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 |
|---|---|---|---|---|---|
Python | Python | correct another utf-8 issue | 07f73ddeb693b038690181d01ea0c21cedd48846 | <ide><path>glances/outputs/glances_curses.py
<ide> def display_plugin(self, plugin_stats,
<ide> try:
<ide> # Python 2: we need to decode to get real screen size because utf-8 special tree chars
<ide> # occupy several bytes
<del> offset = len(m['... | 1 |
Java | Java | add support for importaware callback | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/generator/AotContributingBeanFactoryPostProcessor.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in c... | 7 |
Ruby | Ruby | improve explanation of with_options | 91871f25f01f6b5d67e7da4aeb6dec0fae7b18fe | <ide><path>activesupport/lib/active_support/core_ext/object/misc.rb
<ide> def returning(value)
<ide> value
<ide> end
<ide>
<del> # An elegant way to refactor out common options
<add> # An elegant way to factor duplication out of options passed to a series of
<add> # method calls. Each method called in the blo... | 1 |
Go | Go | remove setup logging from sysinit | a64ebabdfaca66709d664cb87a35d689e35cfd0d | <ide><path>sysinit/sysinit.go
<ide> import (
<ide> "github.com/dotcloud/docker/execdriver"
<ide> _ "github.com/dotcloud/docker/execdriver/lxc"
<ide> _ "github.com/dotcloud/docker/execdriver/native"
<del> "io"
<ide> "io/ioutil"
<ide> "log"
<ide> "os"
<ide> func SysInit() {
<ide> driver = flag.String("driver"... | 1 |
Javascript | Javascript | add animated color example | 1aec8819585d1e78f646bb0aac29d400083cf144 | <ide><path>packages/rn-tester/js/examples/Animated/AnimatedIndex.js
<ide> import ComposeAnimationsWithEasingExample from './ComposeAnimationsWithEasingExa
<ide> import TransformBounceExample from './TransformBounceExample';
<ide> import ComposingExample from './ComposingExample';
<ide> import TransformStylesExample fro... | 2 |
Javascript | Javascript | ensure computed.oneway is exported properly | 7d3e25ea41ad91978e2405690f5d715e4074f55f | <ide><path>packages/ember-metal/lib/main.js
<ide> import {
<ide> gte,
<ide> lt,
<ide> lte,
<del> oneWay,
<add> oneWay as computedOneWay,
<ide> readOnly,
<ide> defaultTo,
<ide> deprecatingAlias,
<ide> computed.gte = gte;
<ide> computed.lt = lt;
<ide> computed.lte = lte;
<ide> computed.alias = alias;
<del>c... | 1 |
Javascript | Javascript | improve argument validation | 26c973d4b33210111034c360bf6f6f44d1f41cdc | <ide><path>lib/child_process.js
<ide> const { getValidatedPath } = require('internal/fs/utils');
<ide> const {
<ide> isInt32,
<ide> validateAbortSignal,
<add> validateArray,
<ide> validateBoolean,
<add> validateFunction,
<ide> validateObject,
<ide> validateString,
<ide> } = require('internal/validators');
<... | 3 |
PHP | PHP | add missing method signature in docblock | c0c46a4aad10c186419a129283573e86b7c05798 | <ide><path>src/Illuminate/Support/Facades/Bus.php
<ide> * @method static void assertDispatchedAfterResponseTimes(string $command, int $times = 1)
<ide> * @method static void assertNotDispatchedAfterResponse(string|\Closure $command, callable $callback = null)
<ide> * @method static void assertBatched(callable $callb... | 1 |
Javascript | Javascript | remove unused dependency from `ngmodel` directive | f3c8aa279028270f1952d066c0f9a19b9c13dc11 | <ide><path>src/ngAria/aria.js
<ide> ngAriaModule.directive('ngShow', ['$aria', function($aria) {
<ide> .directive('ngRequired', ['$aria', function($aria) {
<ide> return $aria.$$watchExpr('ngRequired', 'aria-required', nodeBlackList, false);
<ide> }])
<del>.directive('ngModel', ['$aria', '$parse', function($aria, $par... | 1 |
Ruby | Ruby | remove outdated comment | 3040bd3aae9e8b03f8c5ddcc44d6eb624d031ae6 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def gcc_42_build_version
<ide> alias_method :gcc_build_version, :gcc_42_build_version
<ide>
<ide> def llvm_build_version
<del> # for Xcode 3 on OS X 10.5 this will not exist
<del> # NOTE may not be true anymore but we can't test
<ide> @llvm_build_vers... | 1 |
Javascript | Javascript | handle https git clone urls | 395c02567cfe0e70ab85f4fc134a4d8643123f6e | <ide><path>shells/utils.js
<ide> function getGitCommit() {
<ide> }
<ide>
<ide> function getGitHubURL() {
<del> // TODO potentially replac this with an fb.me URL (if it can forward the query params)
<del> return execSync('git remote get-url origin')
<add> // TODO potentially replace this with an fb.me URL (assuming ... | 1 |
PHP | PHP | start command class | c9ef4b6de3541ae130d63f5badf4e016f12bd3fb | <ide><path>src/Console/Command.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, please see t... | 2 |
Javascript | Javascript | add regression test for `unpipe()` | 92ece8671a3da8910bc8755b16ac121ba300a122 | <ide><path>test/parallel/test-stream-pipe-unpipe-streams.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>
<add>const { Readable, Writable } = require('stream');
<add>
<add>const source = Readable({read: () => {}});
<add>const dest1 = Writable({write: () => {}}... | 1 |
Javascript | Javascript | call event.stoppropagation in the click handler | 2c7644f91e69de7251b3ee55e58c8316f06b8284 | <ide><path>src/js/control-bar/play-toggle.js
<ide> class PlayToggle extends Button {
<ide> } else {
<ide> this.player_.pause();
<ide> }
<add> event.stopPropagation();
<ide> }
<ide>
<ide> /** | 1 |
Javascript | Javascript | improve translation as per bangla academy | 13a61b285c095bda7ea8e33156090ea5ccfeaef1 | <ide><path>src/locale/bn.js
<ide> numberMap = {
<ide> };
<ide>
<ide> export default moment.defineLocale('bn', {
<del> months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
<del> monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('... | 2 |
Javascript | Javascript | use correct script-url for plnkr on snapshot | c625b0d5680b1ee3e921f5cee18c466bc5733329 | <ide><path>docs/config/services/deployments/production.js
<ide> var cdnUrl = googleCdnUrl + versionInfo.cdnVersion;
<ide> // The currentVersion may not be available on the cdn (e.g. if built locally, or hasn't been pushed
<ide> // yet). This will lead to a 404, but this is preferable to loading a version with which the... | 1 |
PHP | PHP | make dependency optional | 8b33dcd1bbafed763c99bc3b8af4acf6b0ac08cf | <ide><path>src/Illuminate/View/Engines/CompilerEngine.php
<ide> class CompilerEngine extends PhpEngine
<ide> * Create a new compiler engine instance.
<ide> *
<ide> * @param \Illuminate\View\Compilers\CompilerInterface $compiler
<del> * @param \Illuminate\Filesystem\Filesystem $files
<add> * @... | 1 |
Text | Text | fix broken fedora documentation | 62213219dc97a97471f8d7813aa61a74745ec902 | <ide><path>docs/installation/fedora.md
<ide> only the package you install differs. There are two packages to choose from:
<ide> </td>
<ide> <p>
<ide> <a href="https://get.docker.com/rpm/1.7.0/fedora-20/SRPMS/docker-engine-1.7.0-1.fc20.src.rpm">
<del> https://get.docker.com/rpm/1.7.0/fedora-20/SRPMS/d... | 1 |
Javascript | Javascript | return a promise from watchpath | a0bdc50535fa3036d3145f90b33098015f01c0ac | <ide><path>src/path-watcher.js
<ide> class PathWatcherManager {
<ide> // * `path` {String} containing the absolute path to the filesystem entry that was acted upon.
<ide> // * `oldPath` For rename events, {String} containing the filesystem entry's former absolute path.
<ide> //
<del>// Returns a {PathWatcher}... | 1 |
Text | Text | add changes for 1.4.0-beta.6 and 1.3.15 | db866f1f867752f5be082c348f7fcefffcfbd305 | <ide><path>CHANGELOG.md
<add><a name="1.4.0-beta.6"></a>
<add># 1.4.0-beta.6 cookie-liberation (2015-03-17)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:** call `applyStyles` from options on `leave`
<add> ([4374f892](https://github.com/angular/angular.js/commit/4374f892c6fa4af6ba1f2ed47c5f888fdb5fadc5),
<add>... | 1 |
Javascript | Javascript | improve error reporting | 846e8f0265844197fb91eb9764112584c1f6c035 | <ide><path>test/checkArrayExpectation.js
<ide> const check = (expected, actual) => {
<ide> if (expected instanceof RegExp) {
<ide> expected = { message: expected };
<ide> }
<add> if (Array.isArray(expected)) {
<add> return expected.every(e => check(e, actual));
<add> }
<ide> return Object.keys(expected).every(key... | 1 |
Text | Text | add docs for `react.children.toarray` in 0.14.0 | 319b37409769ee32f6a3f5a80a986298f8fd06e4 | <ide><path>docs/docs/ref-01-top-level-api.md
<ide> Verifies the object is a ReactElement.
<ide> #### React.Children.map
<ide>
<ide> ```javascript
<del>object React.Children.map(object children, function fn [, object thisArg])
<add>array React.Children.map(object children, function fn [, object thisArg])
<ide> ```
<ide... | 1 |
Python | Python | handle multimodal inputs | cc5c061e346365252458126abb699b87cda5dcc0 | <ide><path>src/transformers/commands/pt_to_tf.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>import inspect
<ide> import os
<ide> from argparse import ArgumentParser, Namespace
<ide> from importlib import import_module
<ide>
<ide> impor... | 1 |
Python | Python | move folder for exec argument one up | cd632d8ec23c48d59cad982ad60fd619b993deb0 | <ide><path>spacy/cli/project.py
<ide> def update_dvc_config(
<ide> continue
<ide> # Default to "." as the project path since dvc.yaml is auto-generated
<ide> # and we don't want arbitrary paths in there
<del> project_cmd = ["python", "-m", NAME, "project", "exec", ".", name]
<add> ... | 1 |
PHP | PHP | synchronize license tag | 6e767400a760b3c5eaf1f3cde10e9e73582babc5 | <ide><path>src/Utility/Time.php
<ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> * @link http://cakephp.org CakePHP(tm) Project
<ide> * @since 3.0.0
<del> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<add> * @l... | 1 |
Mixed | Ruby | add the ability to nullify the `enum` column | e0ad9ae27e9b6dc5460d91761ce6fbd7a92b08f0 | <ide><path>activerecord/CHANGELOG.md
<add>* Add the ability to nullify the `enum` column.
<add>
<add> Example:
<add>
<add> class Conversation < ActiveRecord::Base
<add> enum gender: [:female, :male]
<add> end
<add>
<add> Conversation::GENDER # => { female: 0, male: 1 }
<add>
<add... | 3 |
Ruby | Ruby | use same logic to handle core fully-qualified name | 6e92609cf42c18a84c0eefd3e7dea56856330f76 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> end
<ide>
<ide> ARGV.named.each do |name|
<del> if !File.exist?(name) && (name !~ HOMEBREW_CORE_FORMULA_REGEX) \
<del> && (name =~ HOMEBREW_TAP_FORMULA_REGEX || name =~ HOMEBREW_CASK_TAP_FORMULA_REGEX)
<add> if !File.exis... | 3 |
Javascript | Javascript | remove symbol polyfill (again) | 0de3ddf56e011c708067319d9b8e94e1cd1ea1a5 | <ide><path>packages/react/src/__tests__/ReactElement-test.js
<ide>
<ide> 'use strict';
<ide>
<del>import {enableSymbolFallbackForWWW} from 'shared/ReactFeatureFlags';
<del>
<ide> let React;
<ide> let ReactDOM;
<ide> let ReactTestUtils;
<ide>
<ide> describe('ReactElement', () => {
<ide> let ComponentClass;
<del> l... | 17 |
Ruby | Ruby | move alternative solution to a new line | db7997e1a0acde9f11ee9ae0b91833f493eff2ef | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(flags, bottled: true)
<ide> EOS
<ide>
<ide> message << <<~EOS.chomp! if bottled
<del> Alternatively, remove the #{flag_text} to attempt bottle installation.
<add> \nAlternatively, remove the #{flag_text} to attempt bottle installation.
<i... | 1 |
Javascript | Javascript | add a fastboot test to help design the api | 104e2c6593bf5ba81da0a39bad74f8ab40912e2d | <ide><path>packages/ember-application/lib/system/application-instance.js
<ide> import { set } from 'ember-metal/property_set';
<ide> import EmberObject from 'ember-runtime/system/object';
<ide> import run from 'ember-metal/run_loop';
<ide> import { computed } from 'ember-metal/computed';
<add>import ContainerProxy from... | 3 |
PHP | PHP | fix style ci errors | 452826b8f17ff07fcbba99523bb15b015b2d94f8 | <ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
<ide> use Illuminate\Foundation\Console\ViewClearCommand;
<ide> use Illuminate\Notifications\Console\NotificationTableCommand;
<ide> use Illuminate\Queue\Console\BatchesTableCommand;
<add>use Illuminate\Queue\Console\ClearCommand as QueueClearCom... | 4 |
Ruby | Ruby | add extra clarifying line in docs. [ci skip] | a3c8e4add7178e86d80584f2c7df51b77fc882ff | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def original_url
<ide> # The +String+ MIME type of the request
<ide> #
<ide> # app.get "/articles"
<add> # app.request.media_type
<ide> # # => "application/x-www-form-urlencoded"
<ide> def media_type
<ide> content_mime... | 1 |
Mixed | Text | add middleware docs | f9c5f4fbd4031db0f4ccbe6f288ab0776254d3c2 | <ide><path>docs/advanced/AsyncActions.md
<del># Async Actions
<ide><path>docs/advanced/Middleware.md
<ide> # Middleware
<ide>
<add>If you used server-side libraries like [Express](http://expressjs.com/) and [Koa](http://koajs.com/), you are familiar with a concept of *middleware*. In these frameworks, middleware is so... | 3 |
Javascript | Javascript | hide reactelement constructor | 7ce8c844bda7d2fe204ad59c10092ffde3f53938 | <ide><path>src/core/ReactElement.js
<ide> var ReactElement = function(type, key, ref, owner, context, props) {
<ide> this.props = props;
<ide> };
<ide>
<add>// We intentionally don't expose the function on the constructor property.
<add>// ReactElement should be indistinguishable from a plain object.
<add>ReactEleme... | 2 |
Ruby | Ruby | fix comment error in example formula | 00cba6dc042d0fec7b0158ea3a16e357d32acf5d | <ide><path>Library/Contributions/example-formula.rb
<ide> def install
<ide> # Sometime you will see that instead of `+` we build up a path with `/`
<ide> # because it looks nicer (but you can't nest more than two `/`):
<ide> (var/'foo').mkpath
<del> # Copy `./example_code/simple/ones` to share/demos/exam... | 1 |
Text | Text | add changes for 1.3.9 and 1.4.0-beta.0 | f2e1a930aa5d98f1efe11e0641261762b47a4721 | <ide><path>CHANGELOG.md
<add><a name="1.4.0-beta.0"></a>
<add># 1.4.0-beta.0 photonic-umbrakinesis (2015-01-13)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$location:** support right button click on anchors in firefox
<add> ([aa798f12](https://github.com/angular/angular.js/commit/aa798f123658cb78b5581513d26577016195c... | 1 |
Ruby | Ruby | add type accessors to dependencies | 2d93935e6a4a303d4c67c9007e02bb5ba73f2644 | <ide><path>Library/Homebrew/dependable.rb
<ide> def recommended?
<ide> tags.include? :recommended
<ide> end
<ide>
<add> def required?
<add> !build? && !optional? && !recommended?
<add> end
<add>
<ide> def options
<ide> Options.coerce(tags - RESERVED_TAGS)
<ide> end
<ide><path>Library/Homebrew/depend... | 3 |
Python | Python | extend works in-place | a67413ccc82ed6bfdf9ea2f6b17ee3869f2f87a7 | <ide><path>examples/run_seq2seq_finetuning.py
<ide> def _fit_to_block_size(sequence, block_size):
<ide> if len(sequence) > block_size:
<ide> return sequence[:block_size]
<ide> else:
<del> return sequence.extend([0] * (block_size - len(sequence)))
<add> sequence.extend([0] * (block_size - l... | 1 |
Ruby | Ruby | provide directed url as well as resolving | c231a73b892e1fd2d4ae2e939fe36bee0238f919 | <ide><path>config/routes.rb
<ide> ActiveStorage::Engine.routes.draw do
<ide> get "/rails/active_storage/disk/:encoded_key/*filename" => "active_storage/disk#show", as: :rails_disk_blob
<del> get "/rails/active_storage/variants/:encoded_blob_key/:variation_key/*filename" => "active_storage/variants#show", as: :rail... | 1 |
Ruby | Ruby | remove trailing whitespace | 863e1a3cc54a7a3fe0b049d5754b235bd4208d3f | <ide><path>Library/Homebrew/utils.rb
<ide> def open url, headers={}, &block
<ide> raise e
<ide> end
<ide> end
<del>
<add>
<ide> def issues_for_formula name
<ide> # bit basic as depends on the issue at github having the exact name of the
<ide> # formula in it. Which for stuff like objective-caml ... | 1 |
Ruby | Ruby | handle duplicate headers | 94449d07c07bb9d858ea11b097d1d2fd33bca187 | <ide><path>Library/Homebrew/test/utils/curl_spec.rb
<ide> },
<ide> }
<ide>
<add> response_hash[:duplicate_header] = {
<add> status_code: "200",
<add> status_text: "OK",
<add> headers: {
<add> "cache-control" => "max-age=604800",
<add> "content-type" => "text/html; chars... | 2 |
Javascript | Javascript | improve inspect readability | 9c5019995c59f81f54719cefcc19c330fdf02635 | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(
<ide> Object.assign(new String('hello'), { [Symbol('foo')]: 123 }),
<ide> { showHidden: true }
<ide> ),
<del> '{ [String: \'hello\'] [length]: 5, [Symbol(foo)]: 123 }'
<add> "{ [String: 'hello'] [length]: 5, [Symbol(foo)]: 123 }"
<ide> ... | 1 |
PHP | PHP | remove periods for consistency | 36a53758c05494ff8375965bd4610b346d14d7e4 | <ide><path>src/Illuminate/Auth/Console/ClearRemindersCommand.php
<ide> class ClearRemindersCommand extends Command {
<ide> *
<ide> * @var string
<ide> */
<del> protected $description = 'Flush expired reminders.';
<add> protected $description = 'Flush expired password reminders';
<ide>
<ide> /**
<ide> * Execut... | 5 |
PHP | PHP | fix phpcs and phpstan errors | 8f762ebd424cdf4fd84746039024d0d9a928cf76 | <ide><path>src/Cache/SimpleCacheEngine.php
<ide> class SimpleCacheEngine implements CacheInterface
<ide> /**
<ide> * The wrapped cache engine object.
<ide> *
<del> * @param \Cake\Cache\CacheEngine
<add> * @var \Cake\Cache\CacheEngine
<ide> */
<ide> protected $innerEngine;
<ide>
<ide> pub... | 1 |
Text | Text | add rafaelgss to collaborators | 6669b3857f0f43ee0296eb7ac45086cd907b9e94 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Andrey Pechkurov** <<apechkurov@gmail.com>> (he/him)
<ide> * [Qard](https://github.com/Qard) -
<ide> **Stephen Belanger** <<admin@stephenbelanger.com>> (he/him)
<add>* [RafaelGSS](https://github.com/RafaelGSS) -
<add... | 1 |
Go | Go | add integration tests for swarm incompatible | d71789828f5c8d2e0f5757f1c003325c4b8a871d | <ide><path>integration-cli/docker_cli_swarm_test.go
<ide> package main
<ide>
<ide> import (
<ide> "encoding/json"
<add> "io/ioutil"
<ide> "time"
<ide>
<ide> "github.com/docker/docker/pkg/integration/checker"
<ide> func (s *DockerSwarmSuite) TestSwarmInitIPv6(c *check.C) {
<ide> c.Assert(err, checker.IsNil, check.... | 1 |
Javascript | Javascript | reset history when destroying urlhandlerregistry | e02337265a1fa0f71490811892f17613e26227b9 | <ide><path>src/url-handler-registry.js
<ide> class UrlHandlerRegistry {
<ide> destroy () {
<ide> this.emitter.dispose()
<ide> this.registrations = new Map()
<add> this.history = []
<ide> this._id = 0
<ide> }
<ide> } | 1 |
Javascript | Javascript | upgrade tapable for webassemblyparser | 7fb34685462342038a36f065cabd5b20f2db3d1a | <ide><path>lib/WebAssemblyParser.js
<ide>
<ide> // Syntax: https://developer.mozilla.org/en/SpiderMonkey/Parser_API
<ide>
<del>const Tapable = require("tapable-old");
<add>const Tapable = require("tapable").Tapable;
<ide>
<ide> class WebAssemblyParser extends Tapable {
<ide> constructor(options) {
<ide> super();
... | 1 |
Javascript | Javascript | update support comment to match convention | 19c1b6109a73bc7d0d5bd84587b5c5a44d3e2a74 | <ide><path>src/ajax/xhr.js
<ide> jQuery.ajaxTransport(function( options ) {
<ide> xhrSuccessStatus[ xhr.status ] || xhr.status,
<ide> xhr.statusText,
<ide> // Support: IE9
<del> // #11426: When requesting binary data, IE9 will throw an exception
<del> // on any attempt to acce... | 1 |
Text | Text | update changelog for 2.17.0-beta.3 | 99b43dc699bede8be3c371b41ca4f1074196ffde | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.17.0-beta.3 (October 23, 2017)
<add>- [#15606](https://github.com/emberjs/ember.js/pull/15606) [BUGFIX] Add fs-extra to deps
<add>- [#15697](https://github.com/emberjs/ember.js/pull/15697) [BUGFIX] Move accessing meta out of the loop
<add>- [#15710](http... | 1 |
Ruby | Ruby | move buildoptions to a separate file | 5088fdd54324b9ab053794909aab05fa2d81454b | <ide><path>Library/Homebrew/build_options.rb
<add>require 'options'
<add>
<add># This class holds the build-time options defined for a Formula,
<add># and provides named access to those options during install.
<add>class BuildOptions
<add> attr_writer :args
<add> include Enumerable
<add>
<add> def initialize args
<a... | 3 |
Text | Text | remove platform assumption from contributing | 868638b90367cb8a20f61995c2ceae656e3f092f | <ide><path>CONTRIBUTING.md
<ide> $ git fetch upstream
<ide> $ git rebase upstream/master
<ide> ```
<ide>
<del>
<ide> ### Step 5: Test
<ide>
<ide> Bug fixes and features **should come with tests**. Add your tests in the
<ide> `test/parallel/` directory. For guidance on how to write a test for the Node.js
<ide> project... | 1 |
Python | Python | remove broken wheel check in setup.py [ci skip] | 856f086ce35e1b8e2abda16c860371543a8b12f2 | <ide><path>setup.py
<ide> def get_package_data(package):
<ide> import pypandoc
<ide> except ImportError:
<ide> print("pypandoc not installed.\nUse `pip install pypandoc`.\nExiting.")
<del> if os.system("pip freeze | grep wheel"):
<del> print("wheel not installed.\nUse `pip install wheel`.\... | 1 |
Text | Text | add missing line to upgrade guide | a17b504bdbd7b3f1e30877995e361df73b76d1e1 | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> You can group multiple disposables into a single disposable with a `CompositeDis
<ide>
<ide> class Something
<ide> constructor: ->
<add> editor = atom.workspace.getActiveTextEditor()
<ide> @disposables.add editor.onDidChange ->
<ide> @disposables.a... | 1 |
Text | Text | update react.rendertostring argument type in docs | 9c3357eef5f1968e78d77eea8e75722d70856303 | <ide><path>docs/docs/ref-01-top-level-api.md
<ide> Remove a mounted React component from the DOM and clean up its event handlers an
<ide> ### React.renderToString
<ide>
<ide> ```javascript
<del>string renderToString(ReactComponent component)
<add>string renderToString(ReactElement element)
<ide> ```
<ide>
<del>Render... | 1 |
Java | Java | implement drawimage using drawee | 7075744b9437ee6327107a6962f8ba82247f2719 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source ... | 5 |
Text | Text | add basic blockchain datastructure implementation | ffe14988e865c4754d48b37d6a69fe09e0252792 | <ide><path>guide/english/blockchain/basic-implementation/index.md
<add>---
<add>title: Basic blockchain implementation
<add>---
<add>
<add># Basic blockchain implementation using ArrayList of Java
<add>
<add>> This's a very basic implementation to get knowledge about blockchain.
<add>
<add>## Quick explanation:
<add>
<... | 1 |
Java | Java | avoid outdated jackson api in tests | 7b6293fa052ed67fabc01e013145294c6b9822b0 | <ide><path>spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java
<ide> private static DeserializerFactoryConfig getDeserializerFactoryConfig(ObjectMapp
<ide>
<ide> @Test
<ide> public void propertyNamingStrategy() {
<del> PropertyNamingStrategy strategy = new Property... | 3 |
Python | Python | fix broken main branch | c3cd787afe92816b738cef50fd26d3db6aa52fe1 | <ide><path>tests/always/test_project_structure.py
<ide> class TestAmazonProviderProjectStructure(ExampleCoverageTest):
<ide> 'airflow.providers.amazon.aws.sensors.emr.EmrContainerSensor',
<ide> # S3 Exasol transfer difficult to test, see: https://github.com/apache/airflow/issues/22632
<ide> 'air... | 1 |
Text | Text | add mapstatetoprops and a comment to import… | 4d569aea20dc745d3588ba104a03cdae122cfd7b | <ide><path>docs/recipes/WritingTests.md
<ide> const App = props => {
<ide> return <div>{props.user}</div>
<ide> }
<ide>
<add>const mapStateToProps = state => {
<add> return state
<add>}
<add>
<ide> export default connect(mapStateToProps)(App)
<ide> ```
<ide>
<ide> import React from 'react'
<ide> import { render as... | 1 |
Python | Python | add ediff1d support for empty arrays | 371f8c6a1df8b2d244afd50d03e492d79a1372fe | <ide><path>numpy/lib/arraysetops.py
<ide>
<ide> ##
<ide> # 03.11.2005, c
<del>def ediff1d( ar1, to_end = None, to_begin = None ):
<add>def ediff1d(ary, to_end = None, to_begin = None):
<ide> """Array difference with prefixed and/or appended value."""
<del> dar1 = ar1[1:] - ar1[:-1]
<del> if to_end and to_beg... | 3 |
Javascript | Javascript | prevent regression for common shells | b321ab6a38660780a235247972f523cc5a7cf0e3 | <ide><path>spec/update-process-env-spec.js
<ide> describe('updateProcessEnv(launchEnv)', function () {
<ide> })
<ide>
<ide> it('allows ATOM_HOME to be overwritten only if the new value is a valid path', function () {
<del> newAtomHomePath = temp.mkdirSync('atom-home')
<add> let newAtomHomePath = temp... | 1 |
Text | Text | add release notes for 1.5.4 | c4fb0eca923cca5bab8814d72386b9bb339665f1 | <ide><path>CHANGELOG.md
<add><a name="1.5.4"></a>
<add># 1.5.4 graduated-sophistry (2016-04-14)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:**
<add> - do not use `noop()` as controller for multiple components
<add> ([4c8aeefb](https://github.com/angular/angular.js/commit/4c8aeefb624de7436ad95f3cd525405e0c3f... | 1 |
Go | Go | fix a simple goroutine leak in unit test | 3dda7311cd645386fbc46078c0c7cfff3d9da4e8 | <ide><path>distribution/xfer/download_test.go
<ide> func TestCancelledDownload(t *testing.T) {
<ide> descriptors := downloadDescriptors(nil)
<ide> _, _, err := ldm.Download(ctx, *image.NewRootFS(), runtime.GOOS, descriptors, progress.ChanOutput(progressChan))
<ide> if err != context.Canceled {
<add> close(progressC... | 1 |
Javascript | Javascript | fix array params | 594df987f279ff423b82e96f0aa5fa6ef9bde959 | <ide><path>lib/helpers/buildUrl.js
<ide> module.exports = function buildUrl(url, params) {
<ide> if (val === null || typeof val === 'undefined') {
<ide> return;
<ide> }
<add>
<add> if (utils.isArray(val)) {
<add> key = key+'[]';
<add> }
<add>
<ide> if (!utils.isArray(val)) {
<ide> val... | 2 |
Ruby | Ruby | update migration version from 5.2 to 7.0 | 506e357f00698aacf8f4d58b1c0ae26470dcdf32 | <ide><path>activestorage/db/migrate/20170806125915_create_active_storage_tables.rb
<del>class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
<add>class CreateActiveStorageTables < ActiveRecord::Migration[7.0]
<ide> def change
<ide> # Use Active Record's configured type for primary and foreign keys
<ide>... | 1 |
Javascript | Javascript | remove debugger workaround for aix | ff975fe1c681f1e68c1d3a7b7fd41ea9b0339acb | <ide><path>test/common/debugger.js
<ide> function startCLI(args, flags = [], spawnOpts = {}) {
<ide> if (this === child.stderr) {
<ide> stderrOutput += chunk;
<ide> }
<del> // TODO(trott): Figure out why the "breakpoints restored." message appears
<del> // in unpredictable places especially on AIX i... | 1 |
Javascript | Javascript | fix testswarm username | 169b4185bcd34803b4459cb564c04e72bd4ddf1e | <ide><path>grunt.js
<ide> module.exports = function( grunt ) {
<ide> pollInterval: 10000,
<ide> done: this.async()
<ide> }, {
<del> authUsername: "jqueryui",
<add> authUsername: "jquery",
<ide> authToken: grunt.file.readJSON( configFile ).jquery.authToken,
<ide> jobName: 'jQuery commit #<a href="https... | 1 |
Java | Java | avoid npe in responsecookie on null domain | a7fe6b8f5c74dd6ea0e531b3ba1e90a455ee15dd | <ide><path>spring-web/src/main/java/org/springframework/http/ResponseCookie.java
<ide> public ResponseCookieBuilder domain(String domain) {
<ide>
<ide> @Nullable
<ide> private String initDomain(String domain) {
<del> if (lenient) {
<add> if (lenient && !StringUtils.isEmpty(domain)) {
<ide> String s = ... | 1 |
PHP | PHP | implement several of the methods needed for psr16 | ec42f97f68cc444f9cfbb17736b242213b6300c1 | <ide><path>src/Cache/SimpleCacheEngine.php
<add><?php
<add>namespace Cake\Cache;
<add>
<add>use Cake\Cache\CacheEngine;
<add>use Psr\SimpleCache\CacheInterface;
<add>use Psr\SimpleCache\InvalidArgumentException;
<add>
<add>/**
<add> * Wrapper for Cake engines that allow them to support
<add> * the PSR16 Simple Cache In... | 2 |
Python | Python | remove a redundant the | 05f18c8d206387c54f00f13cbd34dfb3d7d0c573 | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> a low-level method (`ndarray(...)`) for instantiating an array.
<ide>
<ide> For more information, refer to the `numpy` module and examine the
<del> the methods and attributes of an array.
<add> methods and attributes of an a... | 1 |
PHP | PHP | remove code and tests for non string log message | fa745835a795ea97995b026bd7494802c24fcc37 | <ide><path>src/Log/Engine/BaseLog.php
<ide> namespace Cake\Log\Engine;
<ide>
<ide> use Cake\Core\InstanceConfigTrait;
<del>use Cake\Datasource\EntityInterface;
<del>use JsonSerializable;
<ide> use Psr\Log\AbstractLogger;
<ide>
<ide> /**
<ide> public function scopes()
<ide> }
<ide>
<ide> /**
<del> * Conve... | 5 |
Javascript | Javascript | serialize regexp to string in json. closes #119 | 690dfe000bf11fa6b39235d9a177dc79948841d4 | <ide><path>src/JSON.js
<ide> function toJsonArray(buf, obj, pretty, stack){
<ide> var type = typeof obj;
<ide> if (obj === _null) {
<ide> buf.push($null);
<add> } else if (obj instanceof RegExp) {
<add> buf.push(angular['String']['quoteUnicode'](obj.toString()));
<ide> } else if (type === $function) {
<... | 2 |
Javascript | Javascript | run tests in series to avoid timeouts | 7ac61441a63efdcf1e3f1951832970c9ac1f1f60 | <ide><path>gulpfile.js
<ide> gulp.task('lint-js', lintJsTask);
<ide> gulp.task('lint', gulp.parallel('lint-html', 'lint-js'));
<ide> gulp.task('tsc', typescriptTask);
<ide> gulp.task('unittest', unittestTask);
<del>gulp.task('test', gulp.parallel('lint', 'tsc', 'unittest'));
<add>gulp.task('test', gulp.series('lint', '... | 1 |
Text | Text | add reason why adding div was bad | 0ae42fd4ac2e380f566ee91634bfc41441ad56be | <ide><path>guide/english/react/fragments/index.md
<ide> Fragments are a way to return multiple elements from the render method without u
<ide>
<ide> When attempting to render multiple sibling elements without an enclosing tag in JSX, you will see the error message of `Adjacent JSX elements must be wrapped in an enclos... | 1 |
Javascript | Javascript | add test case for completion bash flag | 288076d4a50df88c600ca6ac006b0e8fb0826780 | <ide><path>test/parallel/test-bash-completion.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>const child_process = require('child_process');
<add>
<add>const p = child_process.spawnSync(
<add> process.execPath, [ '--completion-bash' ]);
<add>assert.ifError(p.error);
<add>a... | 1 |
Javascript | Javascript | avoid destructuring of environment variables. | 2477b1379920accc3a7e9703ba056bd9cdd0f678 | <ide><path>examples/with-mongodb/util/mongodb.js
<ide> import { MongoClient } from 'mongodb'
<ide>
<del>const { MONGODB_URI, MONGODB_DB } = process.env
<add>const MONGODB_URI = process.env.MONGODB_URI
<add>const MONGODB_DB = process.env.MONGODB_DB
<ide>
<ide> if (!MONGODB_URI) {
<ide> throw new Error( | 1 |
Javascript | Javascript | load lightmapscale in objectloader | 54f62cb593e99fac6e52b8fba57329ba3c1098cd | <ide><path>src/loaders/ObjectLoader.js
<ide> THREE.ObjectLoader.prototype = {
<ide>
<ide> material.lightMap = getTexture( data.lightMap );
<ide>
<add> if ( data.lightMapScale !== undefined ) {
<add> material.lightMapScale = data.lightMapScale;
<add> }
<add>
<ide> }
<ide>
<ide> if ( data.aoM... | 1 |
PHP | PHP | remove dead code | e43c525eb2bbe1fb0f49f19d2a191a99c12c2d44 | <ide><path>src/Http/ServerRequest.php
<ide> class ServerRequest implements ServerRequestInterface
<ide> */
<ide> protected $trustedProxies = [];
<ide>
<del> /**
<del> * Contents of php://input
<del> *
<del> * @var string
<del> */
<del> protected $_input;
<del>
<ide> /**
<ide> * ... | 1 |
PHP | PHP | revert new line that casuses styleci failing | a4090a3ad5af8d87625e013d129c68bd82acaff5 | <ide><path>src/Illuminate/Notifications/Messages/SimpleMessage.php
<ide> class SimpleMessage
<ide>
<ide> /**
<ide> * Greeting at the beginning of the notification.
<del> *
<ide> * If null, a greeting depending on the level will be displayed.
<ide> *
<ide> * @var string|null | 1 |
Python | Python | refactor some code in npyio.py | d9ca11117f37d48d07818a3aae3641c023454269 | <ide><path>numpy/lib/_datasource.py
<ide> def __init__(self):
<ide> def _load(self):
<ide> if self._loaded:
<ide> return
<add>
<ide> try:
<ide> import bz2
<ide> if sys.version_info[0] >= 3:
<ide> def _load(self):
<ide> self._file_openers[".bz2"] = ... | 4 |
Ruby | Ruby | fix a typo | 2c96638c70e98058bee29c9f8b9d1d181b9dce9e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def checkout_and_verify(c)
<ide> #
<ide> # Normally there is only a single ConnectionHandler instance, accessible via
<ide> # ActiveRecord::Base.connection_handler. Active Record models use this to
<del> # det... | 1 |
Javascript | Javascript | remove extra process.exit() | 768287489a6d8feb956e8b9f004b08e1b11d62c5 | <ide><path>test/parallel/test-http2-connect-options.js
<ide> server.listen(0, '127.0.0.1', common.mustCall(() => {
<ide> client.close();
<ide> req.close();
<ide> server.close();
<del> process.exit();
<ide> }));
<ide> req.end();
<ide> })); | 1 |
Javascript | Javascript | remove error.message from toast | 42f9b6fc150fb35ff5c5cddb768f18685c1146f0 | <ide><path>client/epics/err-epic.js
<ide> export default function errorSaga(actions) {
<ide> return actions.filter(({ error }) => !!error)
<ide> .map(({ error }) => error)
<ide> .doOnNext(error => console.error(error))
<del> .map(error => makeToast({
<del> message: error.message || 'Something went wro... | 1 |
Javascript | Javascript | remove existential types from xplat/js | afe0c1daea0aaf7b40b7ded08d6eb6d45b17099c | <ide><path>Libraries/Blob/FileReader.js
<ide> class FileReader extends (EventTarget(...READER_EVENTS): any) {
<ide> _error: ?Error;
<ide> _result: ?ReaderResult;
<ide> _aborted: boolean = false;
<del> _subscriptions: Array<*> = [];
<add> _subscriptions: Array<any> = [];
<ide>
<ide> constructor() {
<ide> ... | 12 |
Text | Text | fix typo in ac overview guide [ci skip] | 57c516f77587ba032600968da52c1b279e18c8fa | <ide><path>guides/source/action_controller_overview.md
<ide> root-key because normally it does not exist when calling `new`:
<ide> ```ruby
<ide> # using `fetch` you can supply a default and use
<ide> # the Strong Parameters API from there.
<del>params.fetch(blog:, {}).permit(:title, :author)
<add>params.fetch(:blog, {}... | 1 |
Text | Text | fix backticks in docs | fa3b374c8ad1d589d232abba3b6809993428b57b | <ide><path>website/docs/api/tokenizer.md
<ide> it.
<ide>
<ide> ## Attributes {#attributes}
<ide>
<del>| Name | Type | Description |
<del>| ---------------- | ------- | ------------------------... | 1 |
Ruby | Ruby | fix rubocop warnings | e6b057ea76756fa02ee059febf779aec7759f3e3 | <ide><path>Library/Homebrew/dev-cmd/edit.rb
<ide> def edit
<ide>
<ide> def library_folders
<ide> Dir["#{HOMEBREW_LIBRARY}/*"].reject do |d|
<del> case File.basename(d) when "LinkedKegs", "Aliases" then true end
<add> case File.basename(d)
<add> when "LinkedKegs", "Aliases" then true
<add> end... | 1 |
Text | Text | add @tamakisquare for work on | daf927ef68ce992055e8b7bc1a07cf03ee67b742 | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Markus Kaiserswerth - [mkai]
<ide> * Henry Clifford - [hcliff]
<ide> * Thomas Badaud - [badale]
<add>* Colin Huang - [tamakisquare]
<ide>
<ide> Many thanks to everyone who's contributed to the project.
<ide>
<i... | 1 |
Text | Text | fix typo in the wsl setup guide | 9ab7b2623f7b09eb83e10c27b05009d03b6c2c2c | <ide><path>docs/how-to-setup-wsl.md
<ide> You can check these settings by going to Settings > Languages & Frameworks > Nod
<ide>
<ide> **Docker Desktop for Windows** allows you to install and run databases like MongoDB and other services like NGINX and more. This is useful to avoid common pitfalls with installing Mong... | 1 |
Python | Python | add python 3.3 classifier | 41171d11ae37c4dfae79f17e1477b7bf8bdc034a | <ide><path>setup.py
<ide> def run(self):
<ide> 'Programming Language :: Python',
<ide> 'Programming Language :: Python :: 2.6',
<ide> 'Programming Language :: Python :: 2.7',
<add> 'Programming Language :: Python :: 3.3',
<ide> 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
<... | 1 |
Python | Python | check nan during training loop | 14efeaa5dadb5d78f96a816b521f78aee7dce21f | <ide><path>official/modeling/training/distributed_executor.py
<ide> import json
<ide> import os
<ide>
<add>import numpy as np
<ide> from absl import flags
<ide> from absl import logging
<ide> import tensorflow as tf
<ide> def _run_callbacks_on_batch_end(batch):
<ide> train_loss... | 1 |
Python | Python | fix filtering in test fetcher utils | 5e3b4a70d3d17f2482d50aea230f7ed42b3a8fd0 | <ide><path>utils/tests_fetcher.py
<ide> def infer_tests_to_run(output_file, diff_with_last_commit=False, filters=None):
<ide> # Make sure we did not end up with a test file that was removed
<ide> test_files_to_run = [f for f in test_files_to_run if os.path.isfile(f) or os.path.isdir(f)]
<ide> if... | 1 |
Go | Go | fix same issue in api.go | a7068510a5ee4af6776221ba00bc332266f97088 | <ide><path>api.go
<ide> func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
<ide> remoteURL := r.FormValue("remote")
<ide> repoName := r.FormValue("t")
<ide> rawSuppressOutput := r.FormValue("q")
<del> tag := ""
<del> if strings.Contains(repoName, ":") {
<del> remoteParts := strings.Spl... | 1 |
Java | Java | remove createmountitem code | d451c032844b7ca9691f391356653c920e68b725 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java
<ide> import com.facebook.react.fabric.mounting.MountingManager;
<ide> import com.facebook.react.fabric.mounting.ViewPool;
<ide> import com.facebook.react.fabric.mounting.mountitems.BatchMountItem;
<del>import com.facebook.reac... | 3 |
Javascript | Javascript | fix mini typo in with-cookie-auth-fauna-example | 1a3adaa5d93730ad9d5fbffbf368d1526007fc3e | <ide><path>examples/with-cookie-auth-fauna/pages/api/signup.js
<ide> import { query as q } from 'faunadb'
<ide> import { serverClient, serializeFaunaCookie } from '../../utils/fauna-auth'
<ide>
<del>export default async function signuo(req, res) {
<add>export default async function signup(req, res) {
<ide> const { e... | 1 |
Python | Python | fix distilbert in auto tokenizer | bfe93a5a21a77e0a0f9b35132810aab9d0b1f04c | <ide><path>pytorch_transformers/tokenization_auto.py
<ide> def from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs):
<ide>
<ide> Examples::
<ide>
<del> config = AutoTokenizer.from_pretrained('bert-base-uncased') # Download vocabulary from S3 and cache.
<del> config =... | 1 |
Mixed | Javascript | change common.expectserror() signature | c2e838ee13244dd3dbd98ed86ef1966fe7cd90f1 | <ide><path>test/README.md
<ide> Platform normalizes the `dd` command
<ide>
<ide> Check if there is more than 1gb of total memory.
<ide>
<del>### expectsError(code[, type[, message]])
<del>* `code` [<String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type)
<del> expected error ... | 6 |
Python | Python | remove debug code | cd034c8c3428957170f9f6ce3df1ba418c0306d1 | <ide><path>official/resnet/keras/keras_common.py
<ide> def get_optimizer_loss_and_metrics():
<ide>
<ide>
<ide> def get_dist_strategy():
<del> if True: # FLAGS.num_gpus == 1 and FLAGS.dist_strat_off:
<add> if FLAGS.num_gpus == 1 and FLAGS.dist_strat_off:
<ide> print('Not using distribution strategies.')
<ide> ... | 1 |
Ruby | Ruby | fix tests for the request refactor | eb49bd694997954783632eada901553f041c9507 | <ide><path>actionpack/test/controller/caching_test.rb
<ide> def setup
<ide>
<ide> @request = ActionController::TestRequest.new
<ide> @request.host = 'hostname.com'
<add> @request.env.delete('PATH_INFO')
<ide>
<ide> @response = ActionController::TestResponse.new
<ide> @controller = PageCachingTest... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.