content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | fix cs error | 323401cf68bb59e046aafbb499e1020c73cc025d | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> <?php
<ide> /**
<del>* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<del>* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<del>*
<del>* Licensed under The MIT License
<del>* For full copyright and license information, ple... | 1 |
Text | Text | add missing patch | d4b4a7e324058d2a50d51197ddd65338d34e477f | <ide><path>guides/source/getting_started.md
<ide> REST convention, so to create a new `Post` object it will look for a
<ide> route named `posts_path`, and to update a `Post` object it will look for
<ide> a route named `post_path` and pass the current object. Similarly, rails
<ide> knows that it should create new object... | 1 |
Text | Text | fix documentation for joins across clusters | 9d4a025be2bb335de7ae2e12a6132d284cb97e21 | <ide><path>guides/source/active_record_multiple_databases.md
<ide> handles outside of Rails.
<ide>
<ide> ### Joining Across Databases
<ide>
<del>Applications cannot join across databases. Rails 6.1 will support using `has_many`
<del>relationships and creating 2 queries instead of joining, but Rails 6.0 will require
<... | 1 |
Text | Text | add setup + tweaks | 3b48806f753b41b8d0540e001d4217cdc054b602 | <ide><path>examples/pplm/README.md
<ide> This folder contains the original code used to run the Plug and Play Language Mo
<ide> 
<ide>
<ide> ## Plug and Play Language Models: a Simple Approach to Steerable Text Generation
<del>Authors: [Sumanth Dathathri](https://dathath.github.io... | 1 |
Javascript | Javascript | remove dormant createbatch experiment | 71d012ecd07baef6f53d02bebd720794f75266ca | <ide><path>packages/react-dom/src/__tests__/ReactDOMRoot-test.js
<ide> describe('ReactDOMRoot', () => {
<ide> expect(container.textContent).toEqual('');
<ide> });
<ide>
<del> it('`root.render` returns a thenable work object', () => {
<del> const root = ReactDOM.unstable_createRoot(container);
<del> const ... | 10 |
Text | Text | update basic formatting | 865ccd6673fc8a29ac48b7ef06afd98d917ebb3d | <ide><path>README.md
<del># CakePHP framework
<add># CakePHP Framework
<ide>
<ide> [](http://travis-ci.org/cakephp/cakephp)
<ide> [](https://packagist.org/packages/cak... | 1 |
Ruby | Ruby | fix rollback of frozen records | 8313797810eefb7e00d0b5a8e91ac02907fa5e8f | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def restore_transaction_record_state(force = false) #:nodoc:
<ide> transaction_level = (@_start_transaction_state[:level] || 0) - 1
<ide> if transaction_level < 1 || force
<ide> restore_state = @_start_transaction_state
<del> ... | 2 |
Ruby | Ruby | return argv from more methods | 22dafbb65800615e8a3f3a499091b8e33c3d39f7 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def handle_invalid_command!(argument, argv)
<ide> end
<ide>
<ide> def handle_rails_rc!(argv)
<del> unless argv.delete("--no-rc")
<add> if argv.find { |arg| arg == '--no-rc' }
<add> argv.reject { |arg|... | 1 |
Text | Text | add changelog for v3.12.4 [ci skip] | 68d216b1db1688b41cf8895d7b1bbf84f25864ba | <ide><path>CHANGELOG.md
<ide> - [#18688](https://github.com/emberjs/ember.js/pull/18688) / [#18621](https://github.com/emberjs/ember.js/pull/18621) / [#18714](https://github.com/emberjs/ember.js/pull/18714) / [#18743](https://github.com/emberjs/ember.js/pull/18743) / [#18762](https://github.com/emberjs/ember.js/pull/18... | 1 |
Ruby | Ruby | pull request allocation up one frame | f1175448ec60d359ede10bc63c3d83a1c2515142 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def url_for(options)
<ide> end
<ide>
<ide> def call(env)
<del> @router.call(env)
<add> req = request_class.new(env)
<add> req.path_info = Journey::Router::Utils.normalize_path(req.path_info)
<add> @router.serve... | 1 |
Javascript | Javascript | run jshint task on travis | 06557aab44860baf3f121f3db424c5ede0764bf4 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> grunt.registerTask('webserver', ['connect:devserver']);
<ide> grunt.registerTask('package', ['bower','clean', 'buildall', 'minall', 'collect-errors', 'docs', 'copy', 'write', 'compress']);
<ide> grunt.registerTask('package-without-bower', ['cl... | 1 |
Go | Go | set default exec driver to windows | 041ba90dbb713656440fb5eadbd5aba892645350 | <ide><path>daemon/config.go
<ide> func (config *Config) InstallCommonFlags() {
<ide> flag.StringVar(&config.Bridge.DefaultGatewayIPv6, []string{"-default-gateway-v6"}, "", "Container default gateway IPv6 address")
<ide> flag.BoolVar(&config.Bridge.InterContainerCommunication, []string{"#icc", "-icc"}, true, "Enable i... | 3 |
Javascript | Javascript | add loaddocs to showcase | ec6d41414d3608ebd146c495573429de02a68e52 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/leanpub/id913517110?ls=1&mt=8',
<ide> author: 'Leanpub',
<ide> },
<add> {
<add> name: 'LoadDocs',
<add> icon: 'http://a2.mzstatic.com/us/r30/Purple3/v4/b5/ca/78/b5ca78ca-392d-6874-48bf-762293... | 1 |
PHP | PHP | add ld-json and fix mime type for json | 4944427809c2c3437870b4a1cf6b102e94e4433e | <ide><path>src/Illuminate/Http/Concerns/InteractsWithContentTypes.php
<ide> public function isJson()
<ide> */
<ide> public function expectsJson()
<ide> {
<del> return ($this->ajax() && ! $this->pjax() && $this->acceptsAnyContentType()) || ($this->prefers(['text/html', 'text/json']) === 'text/json');... | 1 |
PHP | PHP | add type hints and strict types to auth | aa0e24a7adc7a4fd4658afabf94003a7b4fc9be0 | <ide><path>src/Auth/AbstractPasswordHasher.php
<ide> <?php
<add>declare(strict_types = 1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> abstract class AbstractPasswordHasher
<ide> * Constr... | 24 |
Python | Python | document the version string | 2264c395c4c799ca3dbcf5d31a83f6747a6c6b1f | <ide><path>libcloud/__init__.py
<ide>
<ide> """
<ide> libcloud provides a unified interface to the cloud computing resources.
<add>
<add>@var __version__: Current version of libcloud
<ide> """
<ide>
<ide> __version__ = "0.1.1-dev"
<ide>\ No newline at end of file | 1 |
PHP | PHP | ensure loading of deprecated classes | 8f851206c44d40ed5bce4ad0f0d9b087ead0fd09 | <ide><path>src/Command/Command.php
<ide> public function execute(Arguments $args, ConsoleIo $io)
<ide> {
<ide> }
<ide> }
<add>
<add>// phpcs:disable
<add>class_alias(
<add> 'Cake\Command\Command',
<add> 'Cake\Console\Command'
<add>);
<add>// phpcs:enable
<ide><path>src/Console/Command.php
<ide> /**
<ide> ... | 12 |
Ruby | Ruby | fix the application.rb generator | 02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0 | <ide><path>railties/lib/rails/generators/actions.rb
<ide> def add_source(source, options={})
<ide> # file in config/environments.
<ide> #
<ide> def environment(data=nil, options={}, &block)
<del> sentinel = "Rails::Initializer.run do |config|"
<add> sentinel = /class [a-z_:]+ < Rails::Ap... | 1 |
PHP | PHP | add tests for array access implementation | cee00096f03e223967a689fdebeca657d5a9c675 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testOffsetAccess()
<ide> $this->assertEquals('jason', $c[0]);
<ide> }
<ide>
<add> public function testArrayAccessOffsetExists()
<add> {
<add> $c = new Collection(['foo', 'bar']);
<add> $this->assertTrue($c->offsetE... | 1 |
Ruby | Ruby | fix typo `delegte` => `delegate` | edf0c2914cbc980af67472bed69e072e624d0956 | <ide><path>lib/arel/visitors/bind_substitute.rb
<ide> module Arel
<ide> module Visitors
<ide> class BindSubstitute
<del> def initialize delegte
<add> def initialize delegate
<ide> @delegate = delegate
<ide> end
<ide> end | 1 |
Text | Text | add first 4 articles | cf6b82e0925e2795193a4e001b1cc947d26aea7b | <ide><path>threejs/lessons/threejs-fundamentals.md
<add>Title: Three.js Fundamentals
<add>Description: Your first Three.js lesson starting with the fundamentals
<add>
<add>This is the first article in a series of articles about three.js.
<add>[Three.js](http://threejs.org) is a 3D library that tries to make
<add>it as ... | 5 |
PHP | PHP | replace actual view | f50be03c8ea7cc9c675aa594fc9392fad1eb38e1 | <ide><path>src/Illuminate/Notifications/Channels/MailChannel.php
<ide> public function send(Notification $notification)
<ide>
<ide> $view = data_get($notification, 'options.view', 'notifications::email');
<ide>
<del> $this->mailer->send('notifications::email', $data, function ($m) use ($notification, $... | 1 |
Python | Python | remove use of _keras_shape in merge.py | 3966daa90b4c47d2ad36e977c36a6895f2697dd8 | <ide><path>keras/layers/merge.py
<ide> def _merge_function(self, inputs):
<ide> if len(inputs) != 2:
<ide> raise ValueError('`Subtract` layer should be called '
<ide> 'on exactly 2 inputs')
<del> if inputs[0]._keras_shape != inputs[1]._keras_shape:
<add> if... | 1 |
Go | Go | fix seccomp warning | c68e75e51d58167b5b21e77bbc7b701fe0888096 | <ide><path>cli/command/system/info.go
<ide> func prettyPrintInfo(dockerCli *command.DockerCli, info types.Info) error {
<ide> case "Name":
<ide> fmt.Fprintf(dockerCli.Out(), " %s\n", o.Value)
<ide> case "Profile":
<del> if o.Key != "default" {
<del> fmt.Fprintf(dockerCli.Err(), " WARNING: You're ... | 1 |
Python | Python | remove unused import | c9d2b3c5d0311158f04ae96bd1b33432aba0ae8c | <ide><path>scripts/ci/pre_commit/pre_commit_check_extras_have_providers.py
<ide> import os
<ide> import sys
<ide> from os.path import dirname
<del>from textwrap import wrap
<ide> from typing import List
<ide>
<ide> AIRFLOW_SOURCES_DIR = os.path.abspath(os.path.join(dirname(__file__), os.pardir, os.pardir, os.pardir)) | 1 |
PHP | PHP | apply styleci fixes | 1ac97b810cc502c71d7f6ae9d08a7f0b010c9ed3 | <ide><path>tests/Validation/ValidationValidatorTest.php
<ide> public function testValidateGtPlaceHolderIsReplacedProperly()
<ide> 'validation.gt.numeric' => ':value',
<ide> 'validation.gt.string' => ':value',
<ide> 'validation.gt.file' => ':value',
<del> 'validation.gt.arr... | 1 |
Ruby | Ruby | add pcsc-lite to uses_from_macos | 24af65302dafb7d554ff0adbc2593f070096f7b0 | <ide><path>Library/Homebrew/rubocops/uses_from_macos.rb
<ide> class ProvidedByMacos < FormulaCop
<ide> netcat
<ide> openldap
<ide> openlibm
<add> pcsc-lite
<ide> pod2man
<ide> rpcgen
<ide> ruby | 1 |
PHP | PHP | release cache lock if callback fails | 76dd0c70cac9bdc575b1738fd6a3609a02c0ad51 | <ide><path>src/Illuminate/Cache/Lock.php
<ide> public function get($callback = null)
<ide> $result = $this->acquire();
<ide>
<ide> if ($result && is_callable($callback)) {
<del> return tap($callback(), function () {
<add> try {
<add> return $callback();
<add> ... | 1 |
PHP | PHP | fix code style | 81053b46ff3a3ebb6571cef2d6ec7c8f7f18deea | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
<ide> public function belongsToMany($related, $table = null, $foreignKey = null, $rela
<ide>
<ide> $relatedKey = $relatedKey ?: $instance->getForeignKey();
<ide>
<del> $localKey = $localKey ?: $this->getKeyName();
<add> $localKe... | 2 |
PHP | PHP | fix datetime widget display | b08319e415a2f76b3ec7e643eb97831e635f1299 | <ide><path>src/View/Widget/DateTimeWidget.php
<ide> protected function _deconstructDate($value, $options)
<ide> }
<ide> if (!empty($dateArray['minute']) && isset($options['minute']['interval'])) {
<ide> $dateArray['minute'] += $this->_adjustValue($dateArra... | 1 |
Ruby | Ruby | remove warning from railtie | 34530f5bd566be360be4030a38b898cba97bee85 | <ide><path>railties/lib/rails/railtie.rb
<ide> def method_missing(name, *args, &block)
<ide> # `#each_registered_block(type, &block)`
<ide> def register_block_for(type, &blk)
<ide> var_name = "@#{type}"
<del> blocks = instance_variable_get(var_name) || instance_variable_set(var_name, ... | 1 |
PHP | PHP | move bundles file into base directory | a850610c865e7ae2b8bb82bc3941394d6997acd4 | <ide><path>bundles/bundles.php
<del><?php
<del>
<del>/*
<del>|--------------------------------------------------------------------------
<del>| Bundle Configuration
<del>|--------------------------------------------------------------------------
<del>|
<del>| Bundles allow you to conveniently extend and organize your a... | 1 |
Javascript | Javascript | add rfc232 variants | cd6b8d423790b27170a7ef31b92cddcb3141b292 | <ide><path>blueprints/helper-test/qunit-rfc-232-files/tests/__testType__/helpers/__name__-test.js
<add><% if (testType === 'integration') { %>import { module, test } from 'qunit';
<add>import { setupRenderingTest } from 'ember-qunit';
<add>import { render } from '@ember/test-helpers';
<add>import hbs from 'htmlbars-inl... | 4 |
Javascript | Javascript | fix flaky test-regress-gh-897 | 80c72c6d55452ffd0e7719b869bc54c3861595ab | <ide><path>test/parallel/test-regress-GH-897.js
<add>'use strict';
<add>
<add>// Test for bug where a timer duration greater than 0 ms but less than 1 ms
<add>// resulted in the duration being set for 1000 ms. The expected behavior is
<add>// that the timeout would be set for 1 ms, and thus fire before timers set
<add>... | 2 |
PHP | PHP | where | 74a8738162b4a41a5647d423273720aac1abb0f0 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function mergeWheres($wheres, $bindings)
<ide> * Add a basic where clause to the query.
<ide> *
<ide> * @param string|array|\Closure $column
<del> * @param string|null $operator
<add> * @param mixed $operator
<ide> * @p... | 1 |
Ruby | Ruby | remove confusing comments | c32e67b83cc5df5c69726f93d543eeee1c4202dd | <ide><path>Library/Homebrew/utils.rb
<ide> def locate tool
<ide> return @locate_cache[tool] if @locate_cache.has_key? tool
<ide>
<ide> if File.executable? "/usr/bin/#{tool}"
<del> # Always prefer the unix style.
<ide> path = Pathname.new "/usr/bin/#{tool}"
<ide> else
<ide> # Xcrun was prov... | 1 |
Text | Text | use enhancement instead of feature | 35859500ed282b4975dffdcdcad66bf7aad3bd26 | <ide><path>CONTRIBUTING.md
<ide> These are just guidelines, not rules, use your best judgment and feel free to pr
<ide>
<ide> [How Can I Contribute?](#how-can-i-contribute)
<ide> * [Reporting Bugs](#reporting-bugs)
<del> * [Suggesting Features](#suggesting-features)
<add> * [Suggesting Enhancements](#suggesting-en... | 1 |
Python | Python | add non-linearity after history features | d163115e91aaa6a0f73b05b05bcca9774d76bf7c | <ide><path>spacy/_ml.py
<ide> def HistoryFeatures(nr_class, hist_size=8, nr_dim=8):
<ide> return layerize(noop())
<ide> embed_tables = [Embed(nr_dim, nr_class, column=i, name='embed%d')
<ide> for i in range(hist_size)]
<del> embed = concatenate(*embed_tables)
<add> embed = chain(co... | 1 |
Javascript | Javascript | remove code duplication | 41cec4d68056268a5977399976738cecc343a653 | <ide><path>src/ng/directive/select.js
<ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) {
<ide>
<ide> ctrl.$render = render;
<ide>
<del> scope.$watchCollection(valuesFn, function () {
<del> if (!renderScheduled) {
<del> scope.$$postDigest(render);
<del>... | 1 |
Text | Text | add references to pr communication articles | d179ccac928bd45e4baca8647c3605ec36934eec | <ide><path>COLLABORATOR_GUIDE.md
<ide> oppose the PR, it can be landed. Where there is disagreement among TSC members
<ide> or objections from one or more Collaborators, `semver-major` pull requests
<ide> should be put on the TSC meeting agenda.
<ide>
<add>#### Helpful resources
<add>
<add>* How to respectfully and us... | 1 |
Text | Text | add units that padding can be specified in | cfc0662583a7056248cf06ccf3910623c2d905ad | <ide><path>guide/english/css/padding/index.md
<ide> title: Padding
<ide> ---
<ide> # Padding
<ide>
<del>The `padding` CSS property sets the padding area on all four sides of an element. This property can be used to generate space around content (inside the border). It is a shorthand to set all individual paddings at o... | 1 |
Python | Python | fix typo in chord return | 29cfdd7f6b3c10f92fa3ef8e26d193dac62f5103 | <ide><path>celery/backends/base.py
<ide> def on_chord_part_return(self, task, propagate=False):
<ide> key = self.get_key_for_chord(gid)
<ide> deps = GroupResult.restore(gid, backend=task.backend)
<ide> val = self.incr(key)
<del> if val >= deps.total:
<add> if val >= len(deps):
<ide... | 1 |
Go | Go | ensure _tmp dir is always removed | f6577be1c93150149c291f9d18375d7bcae9ebb1 | <ide><path>graph/graph.go
<ide> type Graph struct {
<ide> root string
<ide> idIndex *truncindex.TruncIndex
<ide> driver graphdriver.Driver
<add> imagesMutex sync.Mutex
<ide> imageMutex imageMutex // protect images in driver.
<ide> retained *retainedLayers
<ide> ta... | 3 |
Text | Text | remove empty lines to ensure javascript is loaded | 75123c614bb5a61c383cdc247230b3a76c76e14d | <ide><path>docs/getting-started.md
<ide> to the [Tutorial](docs/tutorial.html).
<ide> container.className.replace(RegExp('display-' + type + '-[a-z]+ ?'), '');
<ide> event && event.preventDefault();
<ide> }
<del>
<ide> function convertBlocks() {
<ide> // Convert <div>...<span><block /></span>...</div>... | 3 |
Javascript | Javascript | remove unused $log param | 0a9c4681c2f1d15819c8cffde2aceb5e4c818749 | <ide><path>test/ng/directive/ngStyleSpec.js
<ide> describe('ngStyle', function() {
<ide> }));
<ide>
<ide>
<del> it('should support lazy one-time binding for object literals', inject(function($rootScope, $compile, $log) {
<add> it('should support lazy one-time binding for object literals', inject(function($rootSco... | 1 |
PHP | PHP | wrap long line | 12ca48c8b1e88cbab5eb642e1fdc1eaf2cc3ce56 | <ide><path>src/Controller/Exception/InvalidParameterException.php
<ide> class InvalidParameterException extends CakeException
<ide> */
<ide> protected $templates = [
<ide> 'failed_coercion' => 'Unable to coerce "%s" to `%s` for `%s` in action %s::%s().',
<del> 'missing_dependency' => 'Failed to ... | 1 |
Mixed | Javascript | reset player on source change. closes closes | 95c29e684f405cb410a7e19dbf9668b5b46d349b | <ide><path>CHANGELOG.md
<ide> CHANGELOG
<ide>
<ide> ## HEAD (Unreleased)
<ide> * Updated the UI to support live video ([view](https://github.com/videojs/video.js/pull/1121))
<add>* The UI now resets after a source change [[view](https://github.com/videojs/video.js/pull/1124)]
<ide>
<ide> --------------------
<ide>
<... | 3 |
Text | Text | fix minor typos in collaborator_guide.md | d8578bad25ef24354027369a56e4e9388035d8a7 | <ide><path>COLLABORATOR_GUIDE.md
<ide> necessary.
<ide>
<ide> ## Accepting Modifications
<ide>
<del>All modifications to the the io.js code and documentation should be
<add>All modifications to the io.js code and documentation should be
<ide> performed via GitHub pull requests, including modifications by
<ide> Collab... | 1 |
Ruby | Ruby | fix rubocop warnings | caecead7a7157e51b4ff3989604816e087707895 | <ide><path>Library/Homebrew/os/mac/xquartz.rb
<ide> module Mac
<ide> module XQuartz
<ide> extend self
<ide>
<del> FORGE_BUNDLE_ID = "org.macosforge.xquartz.X11"
<del> APPLE_BUNDLE_ID = "org.x.X11"
<del> FORGE_PKG_ID = "org.macosforge.xquartz.pkg"
<add> FORGE_BUNDLE_ID = "org.macosforge.xq... | 1 |
Ruby | Ruby | add missing require | da06ae88abeaadb560e9ba01621f108f01cf7158 | <ide><path>activerecord/test/cases/modules_test.rb
<ide> require "cases/helper"
<ide> require 'models/company_in_module'
<ide> require 'models/shop'
<add>require 'models/developer'
<ide>
<ide> class ModulesTest < ActiveRecord::TestCase
<ide> fixtures :accounts, :companies, :projects, :developers, :collections, :prod... | 1 |
Text | Text | fix typo in env howto | 3fc5f73dc9232acc67bcf9a24e1c2218a8c6dcab | <ide><path>docs/basic-features/environment-variables.md
<ide> Next.js allows you to set defaults in `.env` (all environments), `.env.developme
<ide>
<ide> `.env.local` always overrides the defaults set.
<ide>
<del>> **Note**: `.env`, `.env.development`, and `.env.production` files should be included in your repositor... | 1 |
Ruby | Ruby | clear the attribute after done | 762088a0ef1f69ab09833732cfe8190098303ee6 | <ide><path>activesupport/test/core_ext/class/delegating_attributes_test.rb
<ide> def test_delegation_stops_for_nil
<ide>
<ide> assert_equal "1", Child.some_attribute
<ide> assert_nil Mokopuna.some_attribute
<add> ensure
<add> Child.some_attribute=nil
<ide> end
<ide>
<ide> end | 1 |
Javascript | Javascript | fix instancecontainselem bug from typo | 83c3ed290cb9994d89e430fd565d108365b42ac7 | <ide><path>packages/react-dom/src/client/ReactDOMHostConfig.js
<ide> export function clearSuspenseBoundaryFromContainer(
<ide> function instanceContainsElem(instance: Instance, element: HTMLElement) {
<ide> let fiber = getClosestInstanceFromNode(element);
<ide> while (fiber !== null) {
<del> if (fiber.tag === Ho... | 1 |
Ruby | Ruby | remove dependency on `from_now` extension | 9fbfb4bffe72320cc895e2f4eb4e30e108d58bb2 | <ide><path>activesupport/lib/active_support/messages/metadata.rb
<ide> def pick_expiry(expires_at, expires_in)
<ide> if expires_at
<ide> expires_at.utc.iso8601(3)
<ide> elsif expires_in
<del> expires_in.from_now.utc.iso8601(3)
<add> Time.now.utc.advance(se... | 1 |
Python | Python | fix typo in license docstring | d432a654f6c54351b4c2ba149bc32137c92bed40 | <ide><path>examples/pytorch/audio-classification/run_audio_classification.py
<ide> # distributed under the License is distributed on an "AS IS" BASIS,
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<add># limit... | 1 |
Python | Python | use python 2.6 compatible assertions in tests | bf8d3329d43bf534e45cb8182a6d712138566cdc | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_dot(self):
<ide> fx = mx.filled(0)
<ide> r = mx.dot(mx)
<ide> assert_almost_equal(r.filled(0), fx.dot(fx))
<del> self.assertIs(r.mask, nomask)
<add> assert_(r.mask is nomask)
<ide>
<ide> fX = mX.filled(0)
<ide> ... | 1 |
Ruby | Ruby | remove the assignment for real this time | 0372c5078af38081ebc273eab69687a6b9768751 | <ide><path>activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb
<ide> def self.build(lhs_class, name, options)
<ide> class_name = options.fetch(:class_name) {
<ide> model_name = name.to_s.camelize.singularize
<ide>
<del> if parent_name = lhs_class.parent_name
... | 1 |
Mixed | Go | rename a existing container | 21a809d9ae0ef8392f37c9262dca93ff31966e22 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdPause(args ...string) error {
<ide> return encounteredError
<ide> }
<ide>
<add>func (cli *DockerCli) CmdRename(args ...string) error {
<add> cmd := cli.Subcmd("rename", "OLD_NAME NEW_NAME", "Rename a container", true)
<add> if err := cmd.Parse(args); er... | 10 |
Ruby | Ruby | remove unnecessary chomps | c44c8da5e0becf02ef6d6180fadb8efa8df69714 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(flags, bottled: true)
<ide> require_text = "requires"
<ide> end
<ide>
<del> message = <<~EOS.chomp!
<add> message = <<~EOS
<ide> The following #{flag_text}:
<ide> #{flags.join(", ")}
<ide> #{require_text} building tools,... | 1 |
Javascript | Javascript | improve buffer constructor | 4c9b30db675ba3094a733e2691e968b658105334 | <ide><path>lib/buffer.js
<ide> function Buffer(subject, encoding) {
<ide> 'size: 0x' + kMaxLength.toString(16) + ' bytes');
<ide> }
<ide>
<add> this.parent = null;
<ide> if (this.length <= (Buffer.poolSize >>> 1) && this.length > 0) {
<ide> if (this.length > poolSize - poolOffset)
<id... | 1 |
PHP | PHP | allow schema path on fresh | 4f9300bfa4ea5103f16d9d9a05b933fb21cb83fb | <ide><path>src/Illuminate/Database/Console/Migrations/FreshCommand.php
<ide> public function handle()
<ide> '--database' => $database,
<ide> '--path' => $this->input->getOption('path'),
<ide> '--realpath' => $this->input->getOption('realpath'),
<add> '--schema-path' => $th... | 1 |
PHP | PHP | fix another block of at() matchers | 89500f74b51f32015dfd01cf0c02e6de47d6b396 | <ide><path>tests/TestCase/Mailer/Transport/SmtpTransportTest.php
<ide> public function testConnectEhlo()
<ide> public function testConnectEhloTls()
<ide> {
<ide> $this->SmtpTransport->setConfig(['tls' => true]);
<del> $this->socket->expects($this->any())->method('connect')->will($this->returnValu... | 1 |
Go | Go | fix rename for containers on swarm network | ed935930b5d72d6166c5b8366533c629ec7c90b7 | <ide><path>libnetwork/endpoint.go
<ide> func doUpdateHostsFile(n *network, sb *sandbox) bool {
<ide> }
<ide>
<ide> func (ep *endpoint) rename(name string) error {
<del> var err error
<add> var (
<add> err error
<add> netWatch *netWatch
<add> ok bool
<add> )
<add>
<ide> n := ep.getNetwork()
<ide> if n =... | 1 |
Javascript | Javascript | use pdfview.error to avoid issues with alert | e0378530e2243ee73cc9d80bba7bfce5f4182061 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> if (!this.supportsPrinting) {
<ide> var printMessage = mozL10n.get('printing_not_supported', null,
<ide> 'Warning: Printing is not fully supported by this browser.');
<del> alert(printMessage);
<add> this.error(printMessage);
<ide> ... | 1 |
Python | Python | remove unused variable | 47ddce6eb74c10f1e6e87b212be92f977e858daf | <ide><path>spacy/__main__.py
<ide> def __missing__(self, name):
<ide> if __name__ == '__main__':
<ide> import plac
<ide> import sys
<del> cli = CLI()
<ide> sys.argv[0] = 'spacy'
<ide> plac.Interpreter.call(CLI) | 1 |
Ruby | Ruby | add documentation for arel_table | 7ecfe3d30ccfaee8dcca4ee649cc006c090bdfb4 | <ide><path>activerecord/lib/active_record/core.rb
<ide> def ===(object)
<ide> object.is_a?(self)
<ide> end
<ide>
<add> # Returns an instance of +Arel::Table+ loaded with the curent
<add> # table name
<add> #
<add> # class Post < ActiveRecord::Base
<add> # scope :published_a... | 1 |
Python | Python | add new recfunctions to numpy function api | 61371de744b363eacdb2ae277c33d365164380f3 | <ide><path>numpy/lib/recfunctions.py
<ide> def _get_fields_and_offsets(dt, offset=0):
<ide> fields.extend(_get_fields_and_offsets(field[0], field[1] + offset))
<ide> return fields
<ide>
<add>
<add>def _structured_to_unstructured_dispatcher(arr, dtype=None, copy=None,
<add> ... | 1 |
Text | Text | fix example in node-api docs | 6ce085c99b42ff3a63f7e11ebef7934174e825e1 | <ide><path>doc/api/n-api.md
<ide> snippet:
<ide> function AddTwo(num) {
<ide> return num + 2;
<ide> }
<add>global.AddTwo = AddTwo;
<ide> ```
<ide>
<ide> Then, the above function can be invoked from a native add-on using the | 1 |
Ruby | Ruby | pull autoload fix from 2-3-stable | 99803b7cdba13345d267127e14809fc389a0e0c2 | <ide><path>actionpack/lib/action_view/helpers.rb
<ide> module Helpers #:nodoc:
<ide> autoload :FormHelper, 'action_view/helpers/form_helper'
<ide> autoload :FormOptionsHelper, 'action_view/helpers/form_options_helper'
<ide> autoload :FormTagHelper, 'action_view/helpers/form_tag_helper'
<del> autoload :Ja... | 1 |
Mixed | Ruby | add bang version to orderedoptions | e768c519fb6015e00961702a5165c6dab548a954 | <ide><path>activesupport/CHANGELOG.md
<add>* Add a bang version to `ActiveSupport::OrderedOptions` get methods which will raise an `KeyError` if the value is `.blank?`
<add> Before:
<add>
<add> if (slack_url = Rails.application.secrets.slack_url).present?)
<add> // Do something worthwhile
<add> ... | 3 |
PHP | PHP | add explicit test for | 67410cd21384827ddfc739c67b6beef7c1d81f72 | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> public function testHasOne()
<ide> $this->assertSame($table, $hasOne->source());
<ide> }
<ide>
<add> /**
<add> * Test has one with a plugin model
<add> *
<add> * @return void
<add> */
<add> public function testHasOnePlugin()
<add> {... | 1 |
Javascript | Javascript | take help message from commands | cb71a7dab3043ecf7016caec2de234624e10360c | <ide><path>lib/_debugger.js
<ide> Client.prototype.step = function(action, count, cb) {
<ide> };
<ide>
<ide>
<add>var commands = [
<add> 'backtrace',
<add> 'continue',
<add> 'help',
<add> 'info breakpoints',
<add> 'kill',
<add> 'list',
<add> 'next',
<add> 'print',
<add> 'quit',
<add> 'run',
<add> 'scripts'... | 1 |
Ruby | Ruby | use private accessor | 05c3ba113c752c1aebc09260bd0ce36f9e3b722b | <ide><path>lib/action_cable/connection/base.rb
<ide> def process
<ide> if websocket?
<ide> @websocket = Faye::WebSocket.new(@env)
<ide>
<del> @websocket.on(:open) { |event| send_async :on_open }
<del> @websocket.on(:message) { |event| on_message event.data }
<del> @web... | 1 |
PHP | PHP | add a validate method to the validation factory | e84f0a4b5cb8ff976392a45b645397a7ba7db065 | <ide><path>src/Illuminate/Validation/Factory.php
<ide> public function make(array $data, array $rules, array $messages = [], array $cus
<ide> return $validator;
<ide> }
<ide>
<add> /**
<add> * Validate the given data against the provided rules.
<add> *
<add> * @param array $data
<add> ... | 1 |
Python | Python | add kwarg method='get' for make_request() | ea5a6e4408b375340da7739986089fdd7c1bb6e9 | <ide><path>py/libcloud/drivers/slicehost.py
<ide> def _headers(self):
<ide> return { 'Authorization': ('Basic %s'
<ide> % (base64.b64encode('%s:' % self.key))) }
<ide>
<del> def make_request(self, path, data=''):
<del> self.api.request('GET', path, headers=self._headers())
<add> ... | 1 |
Javascript | Javascript | fix unused param line | be58df1b0f6f47c7d49a6e2d75fe07ade4326f41 | <ide><path>examples/js/loaders/XLoader.js
<ide> THREE.XLoader.prototype = {
<ide>
<ide> },
<ide>
<del> endElement: function ( line ) {
<add> endElement: function () {
<ide>
<ide> var scope = this;
<ide> if ( scope.nowReadMode == THREE.XLoader.XfileLoadMode.Mesh ) {
<ide> THREE.XLoader.prototype = {
<ide>
<ide>... | 1 |
Ruby | Ruby | add some basic controller logging tests | 5cc27f2b0302698ef517755df41f3212587bceb9 | <ide><path>actionpack/test/controller/logging_test.rb
<add>require 'abstract_unit'
<add>
<add>class LoggingController < ActionController::Base
<add> def show
<add> render :nothing => true
<add> end
<add>end
<add>
<add>class LoggingTest < ActionController::TestCase
<add> tests LoggingController
<add>
<add> class ... | 1 |
Mixed | Python | fix action support for viewset suffixes | 903204cd7926e9e6ceaaec1bfbf1ba3ed3330ca4 | <ide><path>docs/api-guide/viewsets.md
<ide> You may inspect these attributes to adjust behaviour based on the current action
<ide>
<ide> ## Marking extra actions for routing
<ide>
<del>If you have ad-hoc methods that should be routable, you can mark them as such with the `@action` decorator. Like regular actions, ext... | 7 |
Ruby | Ruby | add explicit mkpath to pathname#write_jar_script | 5cbc5437f5578aa206cefe131072f3cc4738e69c | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def env_script_all_files dst, env
<ide>
<ide> # Writes an exec script that invokes a java jar
<ide> def write_jar_script target_jar, script_name, java_opts=""
<add> mkpath
<ide> (self+script_name).write <<-EOS.undent
<ide> #!/bin/bash
<ide> ex... | 1 |
Javascript | Javascript | convert `downloadmanager` to an es6 class | cbc411a2c7a0f2c195157beebd7ef1c8b737ffdf | <ide><path>web/download_manager.js
<ide> if (typeof PDFJSDev !== 'undefined' && !PDFJSDev.test('CHROME || GENERIC')) {
<ide> }
<ide>
<ide> function download(blobUrl, filename) {
<del> var a = document.createElement('a');
<add> let a = document.createElement('a');
<ide> if (a.click) {
<ide> // Use a.click() if ... | 1 |
Text | Text | fix typo in action pack changelog [ci skip] | ca9e1e210193aaa85d9d8ea750418374d61d2ead | <ide><path>actionpack/CHANGELOG.md
<ide> not meant to handle XML requests.
<ide>
<ide> Third, if the current request is an "interactive" browser request (the user
<del> navigated here by entering the URL in the address bar, submiting a form,
<add> navigated here by entering the URL in the address bar, su... | 2 |
Text | Text | remove empty paragraphs and missing examples | 70a2c7834249328fc8a901fa31ce64e09c0cebbf | <ide><path>packages/next/README.md
<ide> So far, we get:
<ide> - Server rendering and indexing of `./pages`
<ide> - Static file serving. `./static/` is mapped to `/static/` (given you [create a `./static/` directory](#static-file-serving-eg-images) inside your project)
<ide>
<del>To see how simple this is, check out t... | 1 |
Text | Text | fix typo in n-api.md | dcecfb75080dc98176119a81f0afca5805649e75 | <ide><path>doc/api/n-api.md
<ide> held live for the lifespan of the native method call.
<ide>
<ide> In many cases, however, it is necessary that the handles remain valid for
<ide> either a shorter or longer lifespan than that of the native method.
<del>The sections which follow describe the N-API functions than can be... | 1 |
Javascript | Javascript | update default values | a7c3713d7532dbf305f9923185e457101f6a7cec | <ide><path>examples/jsm/nodes/materials/nodes/StandardNode.js
<ide> function StandardNode() {
<ide>
<ide> Node.call( this );
<ide>
<del> this.color = new ColorNode( 0xEEEEEE );
<del> this.roughness = new FloatNode( 0.5 );
<del> this.metalness = new FloatNode( 0.5 );
<del>
<del> this.energyPreservation = true;
<add> ... | 1 |
Python | Python | fix loss scaling | 6da769b18d25238219fbe299bd0fadbca55b59d5 | <ide><path>official/recommendation/ncf_keras_main.py
<ide> def _get_keras_model(params):
<ide> from_logits=True,
<ide> reduction="sum")
<ide>
<del> loss_scale_factor = (batch_size) #*
<del> #tf.distribute.get_strategy().num_replicas_in_sync)
<ide> keras_model.add_loss(loss_obj(
<id... | 1 |
Ruby | Ruby | add anlytics to cask installs | 6701c207e0d30b16eb6cba24f9da5cb4edf91395 | <ide><path>Library/Homebrew/cask/lib/hbc/installer.rb
<ide> def install
<ide> install_artifacts
<ide> enable_accessibility_access
<ide>
<add> Utils::Analytics.report_event("cask_install", @cask.token)
<add>
<ide> puts summary
<ide> end
<ide> | 1 |
Java | Java | download files through rn packager connection | 373eb61f1f411458d4c1c24bb08033bc6d16a316 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java
<ide> import com.facebook.react.common.network.OkHttpCallUtil;
<ide> import com.facebook.react.devsupport.interfaces.PackagerStatusCallback;
<ide> import com.facebook.react.modules.systeminfo.AndroidInfoHelpers;
<add>import com.fac... | 7 |
Python | Python | use a pipe for separating japanese inflections | 227f98081b86b315907ec672f02b0a2334dd10e8 | <ide><path>spacy/lang/ja/__init__.py
<ide> def _get_dtokens(self, sudachipy_tokens, need_sub_tokens: bool = True):
<ide> DetailedToken(
<ide> token.surface(), # orth
<ide> "-".join([xx for xx in token.part_of_speech()[:4] if xx != "*"]), # tag
<del> "-".join(... | 1 |
Javascript | Javascript | add missing word to code comment for clarity | fb28e9048292f3c74d056370852e3da49ea5ede2 | <ide><path>packages/scheduler/src/Scheduler.js
<ide> function unstable_scheduleCallback(
<ide> };
<ide>
<ide> // Insert the new callback into the list, ordered first by expiration, then
<del> // by insertion. So the new callback is inserted any other callback with
<del> // equal expiration.
<add> // by insertio... | 1 |
Ruby | Ruby | use constant everywhere for "create a pat" message | 9394fe2b5211e5a5f5a3d2bb5b991a3c7ccc7bc4 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def initialize(reset, github_message)
<ide> @github_message = github_message
<ide> super <<~EOS
<ide> GitHub API Error: #{github_message}
<del> Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token:
<del> #{... | 1 |
Ruby | Ruby | fix input handling | ac6295491c771c0da2856524b8e7bb39f1f7da72 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_args
<ide> def cleanup
<ide> args = cleanup_args.parse
<ide>
<add> if args.prune.present? && !Integer(args.prune, exception: false) && args.prune != "all"
<add> raise UsageError, "--prune= expects an integer or 'all'."
<add> end
<add>
<ide> ... | 1 |
Text | Text | update upgrade guides | f78c004fdca0e99afe7b386a77a037576b5b4fba | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> Rails.application.configure do
<ide> end
<ide> ```
<ide>
<del>### New config options
<add>### New Framework Defaults
<ide>
<del>## Active Record `belongs_to` Required by Default Option
<add>#### Active Record `belongs_to` Required by Default Option
<ide>
<ide... | 1 |
Python | Python | remove workaround for gh-9968 from test_roundtrip | 79410aab355573b9765434126a0e74162e995776 | <ide><path>numpy/core/tests/test_scalar_methods.py
<ide> def test_roundtrip(self, ftype, frac_vals, exp_vals):
<ide> n, d = f.as_integer_ratio()
<ide>
<ide> try:
<del> # workaround for gh-9968
<del> nf = np.longdouble(str(n))
<del> df = np.longdouble... | 1 |
Javascript | Javascript | remove poweredbystripe asset | 139f8fcb1b06a5903ee43494054295740fb23286 | <ide><path>client/src/components/Donation/components/poweredByStripe.js
<del>/* eslint-disable max-len */
<del>import React from 'react';
<del>
<del>function PoweredByStripe() {
<del> return (
<del> <svg height='26px' width='119px' xmlns='http://www.w3.org/2000/svg'>
<del> <path
<del> d='M113.000,26.000... | 1 |
Java | Java | add fast-path in beanutils#instantiateclass | edcc559b4aabfb71a83a6cb076d5f2f4154b7277 | <ide><path>spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
<ide> import org.springframework.util.ClassUtils;
<ide> import org.springframework.util.CollectionUtils;
<ide> import org.springframework.util.ConcurrentReferenceHashMap;
<add>import org.springframework.util.ObjectUtils;
<ide> import org.spr... | 1 |
Text | Text | fix typo in `src/crypto/readme.md` | 746169de0ec09671c01aeee3a92898cda9b9be6e | <ide><path>src/crypto/README.md
<ide> The following provide generalized utility declarations that are used throughout
<ide> the various other crypto files and other parts of Node.js:
<ide>
<ide> * `crypto_util.h` / `crypto_util.cc` (Core crypto definitions)
<del>* `crypto_common.h` / `crypto_common.h` (Shared TLS util... | 1 |
Ruby | Ruby | handle no sdist for package | b08d1a28ad6c9c12b9f5bbc2cfa3a5df5df95d5c | <ide><path>Library/Homebrew/utils/pypi.rb
<ide> def get_pypi_info(package, version)
<ide> end
<ide>
<ide> sdist = json["urls"].find { |url| url["packagetype"] == "sdist" }
<add> return json["info"]["name"] if sdist.nil?
<add>
<ide> [json["info"]["name"], sdist["url"], sdist["digests"]["sha256"]]
<ide> ... | 1 |
Javascript | Javascript | remove duplicate test | 57ff476c339b08e9a144af38661872ec12d9aead | <ide><path>test/parallel/test-http-agent-no-wait.js
<del>'use strict';
<del>
<del>const common = require('../common');
<del>const assert = require('assert');
<del>const http = require('http');
<del>
<del>const server = http.createServer(function(req, res) {
<del> res.writeHead(200);
<del> res.end();
<del>});
<del>
<d... | 2 |
Javascript | Javascript | remove ambiguous code" | 8c606851056a1bb38abdcf7ab15df8ae35ba0cf9 | <ide><path>lib/internal/streams/end-of-stream.js
<ide> function eos(stream, opts, callback) {
<ide> };
<ide> }
<ide>
<del> const readable = opts.readable ||
<add> let readable = opts.readable ||
<ide> (opts.readable !== false && isReadable(stream));
<del> const writable = opts.writable ||
<add> let writa... | 1 |
Ruby | Ruby | move macro to class level | a929d78d7b4a1341c0ed538cdcce0b381f410a35 | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> def initialize(name, scope, options, extension)
<ide> end
<ide>
<ide> def build(model)
<del> ActiveRecord::Reflection.create(macro, name, scope, options, model)
<add> ActiveRecord::Reflection.create(self.class.macro, ... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.