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
Javascript
Javascript
use .code for error in setgid
e57bf473517f12eb169e960aa80ffd5dcd5994d5
<ide><path>test/parallel/test-process-uid-gid.js <ide> const oldgid = process.getgid(); <ide> try { <ide> process.setgid('nobody'); <ide> } catch (err) { <del> if (err.message !== 'setgid group id does not exist') { <add> if (err.code !== 'ERR_UNKNOWN_CREDENTIAL') { <ide> throw err; <ide> } <ide> process.se...
1
Javascript
Javascript
remove futile optimization
2dd0c2f8feb8eef45e0b077ffa9a648d0c1229c6
<ide><path>src/controllers/controller.bubble.js <ide> module.exports = DatasetController.extend({ <ide> const firstOpts = me._resolveDataElementOptions(start, mode); <ide> const sharedOptions = me._getSharedOptions(mode, points[start], firstOpts); <ide> const includeOptions = me._includeOptions(mode, sharedOption...
2
Ruby
Ruby
remove unnecessary require
f88f699a7b3180e52c2961b9b642f340b2bdae84
<ide><path>activesupport/lib/active_support/core_ext/string/access.rb <del>require 'active_support/multibyte' <del> <ide> class String <ide> # If you pass a single Fixnum, returns a substring of one character at that <ide> # position. The first character of the string is at position 0, the next at <ide><path>active...
3
PHP
PHP
return null on failure
afe41ade2a30a570f86c81819e3e68fd203f8d47
<ide><path>src/Routing/Middleware/AssetMiddleware.php <ide> protected function isNotModified($request, $file) <ide> * Builds asset file path based off url <ide> * <ide> * @param string $url Asset URL <del> * @return string Absolute path for asset file <add> * @return string|null Absolute path for...
1
PHP
PHP
fix docs and add missing test coverage
7cb51d7d777ef072bbb953c6e205e9d4cf62e9b6
<ide><path>src/Routing/RouteCollection.php <ide> class RouteCollection { <ide> /** <ide> * Add a route to the collection. <ide> * <add> * @param \Cake\Routing\Route\Route $route The route object to add. <add> * @param array $options Addtional options for the route. Primarily for the <add> * `_name` option, which en...
2
Text
Text
fix typo in docs
7d085d5b1c7a8efc017e1fc41735b222e776cf13
<ide><path>website/docs/usage/processing-pipelines.md <ide> loss is calculated and to add evaluation scores to the training output. <ide> | [`update`](/api/pipe#update) | Learn from a batch of [`Example`](/api/example) objects containing the predictions and gold-standard annotations, and update the component's ...
1
Go
Go
add test coverage to pkg/signal
4b0df45c1a261354f10abb151b9acfa6b61f517d
<ide><path>pkg/signal/signal_linux_test.go <add>// +build darwin linux solaris <add> <add>package signal <add> <add>import ( <add> "os" <add> "syscall" <add> "testing" <add> "time" <add> <add> "github.com/stretchr/testify/assert" <add>) <add> <add>func TestCatchAll(t *testing.T) { <add> sigs := make(chan os.Signal, 1) ...
2
Javascript
Javascript
modify options to default parameter
9b1d7b5037b788e7e966bbd3dc0f64ac344d184b
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> * @param {Object} options the size display options <ide> * @returns {number} the chunk size <ide> */ <del> size(options) { <add> size(options = {}) { <ide> return this.addMultiplierAndOverhead(this.modulesSize(), options); <ide> } <ide>
1
Javascript
Javascript
fix a typo in server/boot/challenge.js
b575dd112273eddbab530ed08b30ce412b2922e8
<ide><path>server/boot/challenge.js <ide> export default function(app) { <ide> if (!dashedName || !block) { <ide> // this should normally not be hit if database is properly seeded <ide> throw new Error(dedent` <del> Attemped to find '${dashedName}' <add> Attempted to fi...
1
Text
Text
remove obsolete crna information
2b54d70006f385f1d266824cdc4bbce649257634
<ide><path>guide/english/react-native/index.md <ide> It follows the same pattern as React, where the views (what you see on the scree <ide> <ide> There are three quick easy ways to get started with React Native. Depending on your situation, one can be a better option for you. <ide> <del>1. [Expo](https://expo.io) - B...
1
Javascript
Javascript
use stricter `from()` input validation
75eaf25e78fcb21b338855404b2a6082a4414911
<ide><path>lib/buffer.js <ide> Buffer.from = function from(value, encodingOrOffset, length) { <ide> if (typeof value === 'string') <ide> return fromString(value, encodingOrOffset); <ide> <del> if (isAnyArrayBuffer(value)) <del> return fromArrayBuffer(value, encodingOrOffset, length); <add> if (typeof value ...
3
PHP
PHP
add support for custom console error handling
34e1afd8efa3a02ba637ef53a952a0fc1b56f60c
<ide><path>lib/Cake/Console/ShellDispatcher.php <ide> protected function _bootstrap() { <ide> include_once CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'Config' . DS . 'core.php'; <ide> App::build(); <ide> } <del> require_once CAKE . 'Console' . DS . 'ConsoleErr...
1
Mixed
Javascript
add abortsignal support to finished
7837d3fde90552e00f6c29641dab81fd450b23b1
<ide><path>doc/api/stream.md <ide> further errors except from `_destroy()` may be emitted as `'error'`. <ide> <!-- YAML <ide> added: v10.0.0 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/37354 <add> description: The `signal` option was added. <ide> - version: v14.0...
3
Python
Python
fix py3 compatibility
9d120bf9e02520e91cb7a3cc7453f27d9c404412
<ide><path>keras/layers/normalization.py <ide> def get_output(self, train): <ide> X = self.get_input(train) <ide> if self.mode == 0: <ide> input_shape = self.input_shape <del> reduction_axes = range(len(input_shape)) <add> reduction_axes = list(range(len(input_shape))) ...
1
Ruby
Ruby
fix typo in test name and documentation
4237d74213f01a882a1122dd0d3f53d80561ca5f
<ide><path>activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb <ide> def test_valid_column <ide> assert @conn.valid_type?(column.type) <ide> end <ide> <del> # sqlite databses should be able to support any type and not <add> # sqlite databases should be able to support any type and ...
2
Javascript
Javascript
remove unnecessary string literals
a64b2f2b94c018dcfaf2ddb9adffd6dea5082919
<ide><path>test/parallel/test-vm-function-declaration.js <ide> code += '(function(){return this})().b;\n'; <ide> <ide> const res = vm.runInContext(code, o, 'test'); <ide> <del>assert.strictEqual(typeof res, 'function', 'result should be function'); <del>assert.strictEqual(res.name, 'b', 'res should be named b'); <del...
1
PHP
PHP
add missing connection parameters
35b50b1883b8b0771eeb3edc8a11735440a66d5a
<ide><path>Cake/ORM/TableRegistry.php <ide> public static function get($alias, $options = []) { <ide> $class = Inflector::classify($alias); <ide> $className = App::classname($class, 'Model\Repository', 'Table'); <ide> $options['className'] = $className ?: 'Cake\ORM\Table'; <del> $options['className'] = $clas...
3
Python
Python
fix mypy issues in `example_twitter_dag`
041babb0608a102fd9d83e77b7fab5d9831ec2b4
<ide><path>airflow/providers/apache/hive/example_dags/example_twitter_dag.py <ide> def transfer_to_db(): <ide> tags=['example'], <ide> catchup=False, <ide> ) as dag: <del> fetch_tweets = fetch_tweets() <del> clean_tweets = clean_tweets() <del> analyze_tweets = analyze_tweets() <add> fetch = fetch_tw...
1
Java
Java
fix checkstyle violation
74e9825a654b9699ccea7b481629a8c297f6ef73
<ide><path>spring-tx/src/main/java/org/springframework/transaction/package-info.java <ide> /** <ide> * Spring's core transaction management APIs (independent of any specific transaction <del> * management system); an exception hierarchy for Spring's transaction infrastructure; <add> * management system); an exception...
1
PHP
PHP
fix failing tests
30663f23b38b03e49c52eb63b8d6913d4b7e325e
<ide><path>tests/Database/DatabaseEloquentModelTest.php <ide> public function testUpdateProcess() <ide> $events->shouldReceive('fire')->once()->with('eloquent.updated: '.get_class($model), $model)->andReturn(true); <ide> $events->shouldReceive('fire')->once()->with('eloquent.saved: '.get_class($model), $model)->and...
1
Javascript
Javascript
add friendly error message on auth create attemp
7b8dc2e77eacd49bbd46d2714fd4d792c4f87b3e
<ide><path>common/models/User-Identity.js <ide> const debug = debugFactory('fcc:models:userIdent'); <ide> export default function(UserIdent) { <ide> // original source <ide> // github.com/strongloop/loopback-component-passport <add> const createAccountMessage = <add> 'Accounts can only be created using GitHub o...
2
Javascript
Javascript
apply suggestions from code review
7e22ae3ced97db1b37596d40ca25f2f26fd61042
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> let foods = [ <ide> { name: 'apple', eaten: false }, <ide> { name: 'banana', eaten: false }, <del> { name: carrot': eaten: false } <add> { name: 'carrot', eaten: false } ...
1
Java
Java
scheduler correctness improvements
8fa3a37420c3bcca5ed8355a09cd67b75ae6665e
<ide><path>rxjava-core/src/main/java/rx/schedulers/EventLoopsScheduler.java <ide> import rx.Scheduler; <ide> import rx.Subscription; <ide> import rx.functions.Action0; <del>import rx.schedulers.NewThreadScheduler.OnActionComplete; <add>import rx.schedulers.NewThreadScheduler.NewThreadWorker.Remover; <add>import rx.sche...
2
Python
Python
replace non-empty sets with set literals
56d72e3ff8798a2662847355d1b73b2c1f57b31f
<ide><path>airflow/models/dag.py <ide> def get_paused_dag_ids(dag_ids: List[str], session: Session = None) -> Set[str]: <ide> .all() <ide> ) <ide> <del> paused_dag_ids = set(paused_dag_id for paused_dag_id, in paused_dag_ids) <add> paused_dag_ids = {paused_dag_id for paused_dag_id, in...
6
Text
Text
add spectrum badge
fd7cb2a804a1ddcf208ed8adad57d2a3d5d1d14b
<ide><path>readme.md <ide> [![Build status](https://ci.appveyor.com/api/projects/status/gqp5hs71l3ebtx1r/branch/master?svg=true)](https://ci.appveyor.com/project/arunoda/next-js/branch/master) <ide> [![Coverage Status](https://coveralls.io/repos/zeit/next.js/badge.svg?branch=master)](https://coveralls.io/r/zeit/next.js...
1
Javascript
Javascript
fix halffloattype bug in webglutils
51dad3fe3899b3d463b3d6f765a4412833c618f3
<ide><path>src/renderers/webgl/WebGLUtils.js <ide> function WebGLUtils( gl, extensions ) { <ide> <ide> if ( p === HalfFloatType ) { <ide> <add> if ( isWebGL2 ) return gl.HALF_FLOAT; <add> <ide> extension = extensions.get( 'OES_texture_half_float' ); <ide> <del> return isWebGL2 ? gl.HALF_FLOAT : extension.HA...
1
Python
Python
add option to omit extra lexeme tables in cli
daaa7bf45111cd7d033868f875442b494a9dfead
<ide><path>spacy/cli/init_model.py <ide> from ..vectors import Vectors <ide> from ..errors import Errors, Warnings <ide> from ..util import ensure_path, get_lang_class, OOV_RANK <add>from ..lookups import Lookups <ide> <ide> try: <ide> import ftfy <ide> str, <ide> ), <ide> model_name=("Optional nam...
2
Javascript
Javascript
reduce size, simplify setdocument
29a9544a4fb743491a42f827a6cf8627b7b99e0f
<ide><path>src/selector.js <ide> define( [ <ide> "./core", <ide> "./var/document", <add> "./var/documentElement", <ide> "./var/indexOf", <ide> "./var/pop", <ide> "./var/push", <add> "./selector/rbuggyQSA", <ide> "./selector/support", <ide> <ide> // The following utils are attached directly to the jQuery object....
3
Text
Text
update changelog with vulnerability credits
72fbd48f2a805e789fc574176e7a9a87979418d7
<ide><path>CHANGELOG.md <ide> <a name="1.8.0"></a> <ide> # 1.8.0 nested-vaccination (2020-06-01) <ide> <add>_This release contains a breaking change to resolve a security issue which was discovered by <add>Krzysztof Kotowicz(@koto); and independently by Esben Sparre Andreasen (@esbena) while <add>performing a Variant ...
1
Ruby
Ruby
reuse view_context_class when possible
94643fde8f5f2a47faede2c1bdd1b4b786e2685f
<ide><path>actionview/lib/action_view/rendering.rb <ide> def _routes <ide> def _helpers <ide> end <ide> <add> def inherit_view_context_class? <add> superclass.respond_to?(:view_context_class) && <add> supports_path? == superclass.supports_path? && <add> _routes.equal?(supercla...
1
Python
Python
add missing tests for bool scalar conversion
db0041d3a8db8594ddbeed654103a036f5aaa35c
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_array_scalar_relational_operation(self): <ide> assert_(np.array(-1, dtype=dt1) == np.array(-1, dtype=dt2), <ide> "type %s and %s failed" % (dt1, dt2)) <ide> <add> def test_to_bool_scalar(self): <add> assert_...
1
Text
Text
use normal email format
25e4fe185407bf0ed490b08ec5698295583786df
<ide><path>CONTRIBUTING.md <ide> Feel free to ask us questions on the related issue threads, and we will be glad <ide> | Ahmad Abdolsaheb | [`@ahmadabdolsaheb`](https://github.com/ahmadabdolsaheb) | [`@Abdolsaheb`](https://twitter.com/Abdolsaheb) | <ide> | Kristofer Koishigawa | [`@scissorsneedfoodtoo`](https://github....
1
Python
Python
fix typo in docstrings
cd82fc3adab4d88de805a90bb20ec6207a28b310
<ide><path>airflow/api_connexion/schemas/task_instance_schema.py <ide> def get_attribute(self, obj, attr, default): <ide> <ide> <ide> class TaskInstanceReferenceCollection(NamedTuple): <del> """List of objects with meatadata about taskinstance and dag_run_id""" <add> """List of objects with metadata about taski...
1
Python
Python
add tests for default email backend
b14da32464cd0f8feec4a328d8793fcad1fdb05d
<ide><path>tests/core.py <ide> import re <ide> import unittest <ide> import mock <add>import tempfile <ide> from datetime import datetime, time, timedelta <add>from email.mime.multipart import MIMEMultipart <add>from email.mime.application import MIMEApplication <add>import errno <ide> from time import sleep <ide> <id...
1
Javascript
Javascript
stabilize hmr tests on ci
bc845f2206a6cb5c12838f89656fd649272c92b0
<ide><path>packages/next/client/dev/error-overlay/hot-dev-client.js <ide> function handleErrors(errors) { <ide> <ide> // Do not attempt to reload now. <ide> // We will reload on next success instead. <add> if (process.env.__NEXT_TEST_MODE) { <add> if (self.__NEXT_HMR_CB) { <add> self.__NEXT_HMR_CB(formatt...
2
Javascript
Javascript
add test with dynamic indexed access to imports
1237fdedbd0aba40893622347a440a37015610c4
<ide><path>test/cases/parsing/issue-3116/file2.js <add>export default "default"; <add>export var abc = "abc"; <ide><path>test/cases/parsing/issue-3116/index.js <ide> import * as file from "./file"; <add>import * as file2 from "./file2"; <ide> <ide> it("should translate indexed access to harmony import correctly", func...
2
Ruby
Ruby
add releasenotes module
e1f73e407ad5e5ac4dcb602625d930235ed49a53
<ide><path>Library/Homebrew/dev-cmd/release-notes.rb <ide> # frozen_string_literal: true <ide> <ide> require "cli/parser" <add>require "release_notes" <ide> <ide> module Homebrew <ide> extend T::Sig <ide> def release_notes <ide> odie "Ref #{ref} does not exist!" <ide> end <ide> <del> output = Utils.po...
3
Python
Python
use typeerror instead of attributeerror
850e2ab573d7fac171a364d68371dc57b92112fc
<ide><path>numpy/core/tests/test_dtype.py <add>import sys <ide> import numpy as np <ide> from numpy.testing import * <ide> <ide> def test_dtype_non_writable_attributes_deletion(self): <ide> attr = ["subdtype", "descr", "str", "name", "base", "shape", <ide> "isbuiltin", "isnative", "isalignedstr...
2
Text
Text
fix root example
98ad3aba7a45797ea0cb9faeca54604a39af5b99
<ide><path>README.md <ide> export default class Counter { <ide> ```js <ide> import React from 'react'; <ide> import { root } from 'redux'; <del>import * from './stores/index'; <add>import * as stores from './stores/index'; <ide> <ide> // Let it know about all the stores <ide> @root(stores)
1
Ruby
Ruby
remove dead code, and the tests for it
b9a9b91a3e3b892ab72ff5c618181747d6b4be04
<ide><path>actionpack/lib/action_view/compiled_templates.rb <del>module ActionView <del> <del> # CompiledTemplates modules hold methods that have been compiled. <del> # Templates are compiled into these methods so that they do not need to be <del> # read and parsed for each request. <del> # <del> # Each template m...
2
Ruby
Ruby
add check for stray .pc files
f4cd85aa49160d2223d40de12fb0cf719fed1108
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_stray_static_libs <ide> puts <ide> end <ide> <add>def check_for_stray_pcs <add> unbrewed_pcs = Dir['/usr/local/lib/pkgconfig/*.pc'].select { |f| File.file? f and not File.symlink? f } <add> <add> # Package-config files which are generally OK should be a...
1
Python
Python
fix minor typo in configuration.py
2b10680a2f5188400459089713876c1ce49f1caf
<ide><path>airflow/configuration.py <ide> def getimport(self, section, key, **kwargs): <ide> """ <ide> Reads options, imports the full qualified name, and returns the object. <ide> <del> In case of failure, it throws an exception a clear message with the key aad the section names <add> In...
1
Go
Go
use gotest.tools compare and assert.check
38b0c47f37fec8fbf104ae90b48d8b5b263f8e28
<ide><path>integration-cli/docker_cli_links_test.go <ide> import ( <ide> <ide> "github.com/docker/docker/runconfig" <ide> "gotest.tools/v3/assert" <del> "gotest.tools/v3/assert/cmp" <add> is "gotest.tools/v3/assert/cmp" <ide> ) <ide> <ide> type DockerCLILinksSuite struct { <ide> func (s *DockerCLILinksSuite) TestLi...
1
Java
Java
allow static modifier on @bean methods
52bef0b7b024e794186437dee78945fbb5bd209a
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/Bean.java <ide> * <ide> * <p>While a {@link #name()} attribute is available, the default strategy for determining <ide> * the name of a bean is to use the name of the Bean method. This is convenient and <del> * intuitive, but...
5
Text
Text
add a changelog entry for [ci skip]
d39db9da1a7e093f0248c9755fb8333d89dc1724
<ide><path>railties/CHANGELOG.md <add>* `config.assets.raise_runtime_errors` is set to true by default <add> <add> This option has been introduced in <add> [sprockets-rails#100][https://github.com/rails/sprockets-rails/pull/100] <add> and defaults to true in new applications in development. <add> <add> *R...
1
Javascript
Javascript
add config test case
03144929c748f9f9c26a9a109275dd94f3f604ce
<ide><path>test/configCases/chunk-graph/issue-15173/commonAsync/index.js <add>import { commonUtil } from "../commonSync"; <add> <add>export function getCommonAsync() { <add> return commonUtil(); <add>} <ide><path>test/configCases/chunk-graph/issue-15173/commonSync/index.js <add>var EmptyObj = {}; <add> <add>export func...
9
Go
Go
add daemon.startnodewithbusybox function
ead3f4e7c8b7add7beb2de44649b38f41947180f
<ide><path>integration-cli/check_test.go <ide> func (s *DockerSwarmSuite) AddDaemon(c *testing.T, joinSwarm, manager bool) *dae <ide> d.StartAndSwarmInit(c) <ide> } <ide> } else { <del> d.StartNode(c) <add> d.StartNodeWithBusybox(c) <ide> } <ide> <ide> s.daemonsLock.Lock() <ide><path>internal/test/daemon/swa...
2
Python
Python
add missing import
3a045572ed1608daa90dc92229c2da0524fa7f20
<ide><path>spacy/displacy/__init__.py <ide> """ <ide> from __future__ import unicode_literals <ide> <add>import warnings <add> <ide> from .render import DependencyRenderer, EntityRenderer <ide> from ..tokens import Doc, Span <ide> from ..compat import b_to_str
1
Ruby
Ruby
update version tests
4ae8029557cc3eba6dc99c1183a02c1a60b002d2
<ide><path>Library/Homebrew/test/test_versions.rb <ide> def test_pathname_version <ide> d.mkpath <ide> assert_equal '0.1.9', d.version <ide> end <del> <add> <ide> def test_no_version <ide> assert_nil Pathname.new("http://example.com/blah.tar").version <ide> assert_nil Pathname.new("arse").version ...
1
Javascript
Javascript
add constructor check to async-hooks
6fb27af70a5e7f4eb074352aed578d349c81ceac
<ide><path>lib/async_hooks.js <ide> function fatalError(e) { <ide> <ide> class AsyncHook { <ide> constructor({ init, before, after, destroy }) { <del> if (init && typeof init !== 'function') <add> if (init !== undefined && typeof init !== 'function') <ide> throw new TypeError('init must be a function'); ...
2
Text
Text
improve spanish translate
f577e7719edae558c2546d82807012724051c432
<ide><path>guide/spanish/git/difference-git-github/index.md <ide> localeTitle: Diferencia entre Git y GitHub <ide> --- <ide> ## Diferencia entre Git y GitHub <ide> <del>Git y Github son dos cosas diferentes. [Git](https://git-scm.com/) es el [sistema de control de versiones](https://en.wikipedia.org/wiki/Version_contr...
1
PHP
PHP
pass the condition value to "when"
36b255013aeeb841d8fc441401825f9811b0993f
<ide><path>src/Illuminate/Database/Concerns/BuildsQueries.php <ide> public function when($value, $callback, $default = null) <ide> $builder = $this; <ide> <ide> if ($value) { <del> $builder = $callback($builder); <add> $builder = $callback($builder, $value); <ide> } elseif...
2
Ruby
Ruby
remove unnecessary code
e53ccbc3cde32c38e584eb1a285cc09319d81653
<ide><path>Library/Homebrew/cask_dependent.rb <ide> def requirements <ide> end <ide> end <ide> <del> def recursive_dependencies(ignore_missing: false, &block) <del> Dependency.expand(self, ignore_missing: ignore_missing, &block) <add> def recursive_dependencies(&block) <add> Dependency.expand(self, &bloc...
6
Javascript
Javascript
add missing semicolons
d1d0f95585d1a9bcb2684edcab454cb49adbf4eb
<ide><path>lib/webpack.js <ide> const defineMissingPluginError = (pluginName, errorMessage) => { <ide> throw new Error(errorMessage); <ide> } <ide> }); <del>} <add>}; <ide> <ide> defineMissingPluginError( <ide> "UglifyJsPlugin", <ide> "webpack.optimize.UglifyJsPlugin has been removed, please use config.optimiz...
1
Text
Text
add changelog info to the readme with a link
f06daafb641358ebb61e6cda554f9d7f309bc9d0
<ide><path>README.md <ide> Use [Github issues](https://github.com/facebook/immutable-js/issues) for request <ide> We actively welcome pull requests, learn how to [contribute](./CONTRIBUTING.md). <ide> <ide> <add>Changelog <add>--------- <add> <add>Changes are tracked as [Github releases](https://github.com/facebook/i...
1
Text
Text
add open data resources
e1bf16820c5da0f0890f6d38b67994f71f9734d9
<ide><path>guide/english/working-in-tech/open-data/index.md <ide> One way that you can use open data is through Civic Hacking in your local code f <ide> <!-- Please add any articles you think might be helpful to read before writing the article --> <ide> * [Open Data Wikipedia Page](https://en.wikipedia.org/wiki/Open_da...
1
Text
Text
add second part of the debugging guide
2cce36694d9a8554102f776be4ae5d42b6b6b7a9
<ide><path>docs/debugging.md <ide> # Debugging <ide> <del>Even though Atom is still in beta, minimizing problems is always a priority. Atom provides some tools to help you understand unexpected behavior, debug problems and solve them yourself in some cases. <del> <del>This guide describes some of those tools and a few...
1
Go
Go
remove unused sandboxpath
2f038c25868727310992104b7b267fed6c7dad39
<ide><path>daemon/start_windows.go <ide> func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Contain <ide> if err != nil { <ide> return nil, fmt.Errorf("failed to get layer metadata - %s", err) <ide> } <del> if hvOpts.IsHyperV { <del> hvOpts.SandboxPath = filepath.Dir(m["dir"]) <del> } <del> <...
3
Java
Java
add sseeventencoder to webreactiveconfiguration
13b6f4fee47c89f9602710ab1298722fe87504b3
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java <ide> import org.springframework.core.convert.support.ReactiveStreamsToRxJava1Converter; <ide> import org.springframework.format.Formatter; <ide> import org.springframework.http.MediaType; <add>import org....
2
Python
Python
update gen_vocab.py to be python3 compatible
8c68bc0dae04afbfbfd0dab7808219248d52a840
<ide><path>research/adversarial_text/gen_vocab.py <ide> from __future__ import absolute_import <ide> from __future__ import division <ide> from __future__ import print_function <add>from six import iteritems <ide> <ide> from collections import defaultdict <ide> <ide> def main(_): <ide> fill_vocab_from_doc(doc, vo...
1
Ruby
Ruby
fix compiler map key
246b60573f8726e9304e263d13bcfe1095704645
<ide><path>Library/Homebrew/macos.rb <ide> def prefer_64_bit? <ide> "4.5" => { :llvm_build => 2336, :clang => "4.1", :clang_build => 421 }, <ide> "4.5.1" => { :llvm_build => 2336, :clang => "4.1", :clang_build => 421 }, <ide> "4.5.2" => { :llvm_build => 2336, :clang => "4.1", :clang_build => 421 }, <del> ...
1
PHP
PHP
fix bug in container isshared
7b32cb1eb991132f537a3349947cde711245c5fa
<ide><path>src/Illuminate/Container/Container.php <ide> protected function rebound($abstract) <ide> */ <ide> protected function getReboundCallbacks($abstract) <ide> { <del> return array_get($this->reboundCallbacks, $abstract, array()); <add> if (isset($this->reboundCallbacks[$abstract])) <add> { <add> return $...
1
Python
Python
update gpt2 docstring
fd10d79b55d159d845a30adb238cd7019965aa23
<ide><path>pytorch_transformers/tokenization_gpt2.py <ide> def get_pairs(word): <ide> class GPT2Tokenizer(PreTrainedTokenizer): <ide> """ <ide> GPT-2 BPE tokenizer. Peculiarities: <del> - Byte-level BPE <add> - Byte-level Byte-Pair-Encoding <add> - Requires a space to start the input string...
1
Javascript
Javascript
limit push check to http/3
344c5e4e508ee6c7fad98bb5a34daa98ff43df68
<ide><path>lib/internal/quic/core.js <ide> class QuicStream extends Duplex { <ide> <ide> validateObject(headers, 'headers'); <ide> <del> // Push streams are only supported on QUIC servers, and <del> // only if the original stream is bidirectional. <del> // TODO(@jasnell): This is really an http/3 specifi...
1
Python
Python
include type key in schema object properties dict.
79d37bce4cdc14c9642b206ad5690f2efe514d1a
<ide><path>rest_framework/schemas/openapi.py <ide> def _map_serializer(self, serializer): <ide> properties[field.field_name] = schema <ide> <ide> result = { <add> 'type': 'object', <ide> 'properties': properties <ide> } <ide> if required: <ide><path>tests/sche...
2
Ruby
Ruby
add support for emitting sql subqueries
c001fadd2f2f420267db809439581e388684e9de
<ide><path>lib/arel/visitors/to_sql.rb <ide> def visit_Arel_Nodes_Grouping o <ide> "(#{visit o.expr})" <ide> end <ide> <add> def visit_Arel_SelectManager o <add> "(#{o.to_sql.rstrip})" <add> end <add> <ide> def visit_Arel_Nodes_Ascending o <ide> "#{visit o.expr} ASC" <ide> ...
2
Python
Python
fix duplicate task_ids in example_http.py
dc3a4938caa508f4a79985f5f6fa506adf4c29d4
<ide><path>airflow/providers/http/example_dags/example_http.py <ide> ) <ide> # [END howto_operator_http_task_get_op] <ide> # [START howto_operator_http_task_get_op_response_filter] <del>task_get_op = SimpleHttpOperator( <add>task_get_op_response_filter = SimpleHttpOperator( <ide> task_id='get_op_response_filter', <...
1
Ruby
Ruby
add helper method for explicit lazy load
c98a641ff402d3ca5b754f4621a0764f33eab155
<ide><path>railties/test/application/configuration_test.rb <ide> def create <ide> <ide> app "development" <ide> <del> ActionController::Base.object_id # force lazy load hooks to run <add> lazy_load { ActionController::Base } <ide> <ide> assert_equal :raise, ActionController::Parameters.action_o...
1
Go
Go
change registry address to https from http
8be58d3a7f6020fe34281dbe27375005e248f0f5
<ide><path>auth/auth.go <ide> import ( <ide> const CONFIGFILE = "/var/lib/docker/.dockercfg" <ide> <ide> // the registry server we want to login against <del>const REGISTRY_SERVER = "http://registry.docker.io" <add>const REGISTRY_SERVER = "https://registry.docker.io" <ide> <ide> type AuthConfig struct { <ide> Userna...
1
PHP
PHP
modify dd() to conform to psr2
4ffb4a33c881e8e6443a3b09a66ccdc57e6ac028
<ide><path>src/Illuminate/Support/helpers.php <ide> function data_get($target, $key, $default = null) <ide> */ <ide> function dd() <ide> { <del> array_map(function ($x) { (new Dumper)->dump($x); }, func_get_args()); <add> array_map(function ($x) { <add> (new Dumper)->dump($x); <add...
1
PHP
PHP
attach dispatcher filters before firing events
94553a10c676da3a6c2ce3a86768fa935afcea61
<ide><path>src/Error/ExceptionRenderer.php <ide> protected function _shutdown() <ide> { <ide> $this->controller->dispatchEvent('Controller.shutdown'); <ide> $dispatcher = DispatcherFactory::create(); <add> $eventManager = $dispatcher->eventManager(); <add> foreach ($dispatcher->filters...
2
Text
Text
fix a typo in docker-build man page
dcfa881a7b12e9a737b25ada98ec0c76e58c9c9c
<ide><path>docs/man/docker-build.1.md <ide> as context. <ide> <ide> # EXAMPLES <ide> <del>## Building an image using a Dockefile located inside the current directory <add>## Building an image using a Dockerfile located inside the current directory <ide> <ide> Docker images can be built using the build command and a ...
1
Javascript
Javascript
add id to input element to fix e2e test
40319a4ce20abb2441882fa4e3f645c7d03336ae
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> </script> <ide> <form name="myForm" ng-controller="DateController as dateCtrl"> <ide> <label>Pick a date between in 2013: <del> <input type="week" name="input" ng-model="example.value" <add> <input id="exampleInput"...
1
Python
Python
add some debugging info when loglevel is debug
5713c2126caea8c4210b6d0dd600a11ac3528982
<ide><path>celery/worker/__init__.py <ide> def __init__(self, bucket_queue, hold_queue, logger): <ide> def start(self): <ide> """Start processing AMQP messages.""" <ide> task_consumer = self.reset_connection() <add> <add> self.logger.debug("AMQPListener: Starting message consumer...") <ide> ...
1
Go
Go
remove deprecated syntax for docker commit
a0b229071394e6534808f16c4570ed8fd9ff3a1c
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdCommit(args ...string) error { <ide> return nil <ide> } <ide> <del> var name, repository, tag string <del> <del> if cmd.NArg() == 3 { <del> fmt.Fprintf(cli.err, "[DEPRECATED] The format 'CONTAINER [REPOSITORY [TAG]]' as been deprecated. Please use CO...
1
Python
Python
convert sharded pt models
91e1f24ef3efd967871b2b81658db08c648275a6
<ide><path>src/transformers/commands/pt_to_tf.py <ide> is_tf_available, <ide> is_torch_available, <ide> ) <del>from ..utils import logging <add>from ..utils import TF2_WEIGHTS_INDEX_NAME, TF2_WEIGHTS_NAME, logging <ide> from . import BaseTransformersCLICommand <ide> <ide> <ide> <ide> <ide> MAX_ERROR = 5e-5 ...
4
Text
Text
fix links to issues/prs
ad0ba99d8a231da9796eb94adcfa670665ea0eed
<ide><path>CHANGELOG.md <ide> ## Bug Fixes <ide> - **$compile:** support transcluding multi-element directives <ide> ([789db8](https://github.com/angular/angular.js/commit/789db83a8ae0e2db5db13289b2c29e56093d967a), <del> [#15554](https://github.com/angular/angular.js.git/issues/15554), <del> [#15555](https://github...
1
Text
Text
match console.count()/countreset() signatures
cf44abbbfeae02505f2afe629f6cee325ef73e86
<ide><path>doc/api/console.md <ide> operates similarly to the `clear` shell command. On Windows, `console.clear()` <ide> will clear only the output in the current terminal viewport for the Node.js <ide> binary. <ide> <del>### console.count([label]) <add>### console.count([label='default']) <ide> <!-- YAML <ide> added:...
1
Ruby
Ruby
simplify a couple of comments
f052bcbd62fcb8cd3ccfc2adaf82944f27532eed
<ide><path>Library/Homebrew/formula.rb <ide> def installed? <ide> end <ide> <ide> def explicitly_requested? <del> <del> # `ARGV.formulae` will throw an exception if it comes up with an empty <del> # list. <del> # <add> # `ARGV.formulae` will throw an exception if it comes up with an empty list. <ide> ...
1
PHP
PHP
fix error when no model scope is set
d16a9ab98eb18f63782fa2ae8800bcdc0715eaa6
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testFormInputs() { <ide> $this->Form->create('Contact'); <ide> $result = $this->Form->inputs(null, null, array('legend' => 'Hello')); <ide> $this->assertTags($result, $expected); <add> $this->Form->end(); <add> <add> $this->Form-...
2
Java
Java
fix minor issue in exchangeresult
1c4babd410b88ab7543797d63c7f92fe719dbe00
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java <ide> public HttpHeaders getResponseHeaders() { <ide> * Return response cookies received from the server. <ide> */ <ide> public MultiValueMap<String, ResponseCookie> getResponseCookies() { <del> return this.getRe...
1
Go
Go
fix race in read access to map
55564fda1d119bbbec46c0af98af96c30f37a355
<ide><path>libnetwork/network.go <ide> func (n *network) getSvcRecords(ep *endpoint) []etchosts.Record { <ide> epName := ep.Name() <ide> <ide> n.ctrlr.Lock() <add> defer n.ctrlr.Unlock() <ide> sr, _ := n.ctrlr.svcRecords[n.id] <del> n.ctrlr.Unlock() <ide> <ide> for h, ip := range sr.svcMap { <ide> if strings.Sp...
1
Ruby
Ruby
avoid to_sym calls
5d58948fe72e3b0422790b8adc0fab7bbf9e6573
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> def message <ide> alias_method :status_message, :message <ide> <ide> def respond_to?(method) <del> if method.to_sym == :to_path <add> if method.to_s == 'to_path' <ide> stream.respond_to?(:to_path) <ide> else <ide> ...
1
Ruby
Ruby
eliminate dispatcher is_a checks
b6ec5e2c14e30bbb8a8dc434da36fc976440f2ca
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> class Mapper <ide> class Constraints #:nodoc: <ide> attr_reader :app, :constraints <ide> <del> def initialize(app, constraints, request) <add> def initialize(app, constraints, request, dispatcher_p) <ide> # Unwrap C...
1
Javascript
Javascript
fix simple/test-setproctitle on freebsd
9d02bfbc252ec24c3f8b26f6eaac2f28d8df3a6f
<ide><path>test/simple/test-setproctitle.js <ide> assert.equal(process.title, title); <ide> exec('ps -p ' + process.pid + ' -o args=', function(error, stdout, stderr) { <ide> assert.equal(error, null); <ide> assert.equal(stderr, ''); <add> <add> // freebsd always add ' (procname)' to the process title <add> if (p...
1
Java
Java
fix javadoc sentence warning
91346ce510b4f0a7dae0e9df30e0cb572f13a330
<ide><path>src/test/java/io/reactivex/plugins/RxJavaPluginsTest.java <ide> public void uncaughtException(Thread t, Throwable e) { <ide> } <ide> <ide> /** <del> * Ensure set*() accepts a consumers/functions with wider bounds <add> * Ensure set*() accepts a consumers/functions with wider bounds. <ide> ...
2
Text
Text
update license year for all packages
5e701daab9ed4fe0cfd7ae8aeacd7e3d9f314a04
<ide><path>license.md <ide> The MIT License (MIT) <ide> <del>Copyright (c) 2020 Vercel, Inc. <add>Copyright (c) 2021 Vercel, Inc. <ide> <ide> Permission is hereby granted, free of charge, to any person obtaining a copy <ide> of this software and associated documentation files (the "Software"), to deal <ide><path>pack...
4
Javascript
Javascript
fix typo in code comment
e679a4b6e2e3a468787827e3dfe89f13eae8486c
<ide><path>packages/react-reconciler/src/ReactFiberHooks.js <ide> type HookType = <ide> | 'useDebugValue'; <ide> <ide> // the first instance of a hook mismatch in a component, <del>// represented by a portion of it's stacktrace <add>// represented by a portion of its stacktrace <ide> let currentHookMismatchInDev = n...
1
Python
Python
add colorconsole for platform windows
78bc42d7651768e8321cffdb121007dbba9b1979
<ide><path>setup.py <ide> for mo in glob.glob('i18n/*/LC_MESSAGES/*.mo'): <ide> data_files.append((os.path.dirname(mo).replace('i18n/', 'share/locale/'), [mo])) <ide> <add>if sys.platform.startswith('win'): <add> requires = ['psutil>=0.5.1', 'colorconsole==0.6'] <add>else: <add> requires = ['psutil>=0.5.1'] ...
1
Python
Python
add guillemets/chevrons to german orth variants
c39c13f26b119ad3fcac3b3d3669c3f28a7d5504
<ide><path>spacy/lang/de/__init__.py <ide> class GermanDefaults(Language.Defaults): <ide> resources = {"lemma_lookup": "lemma_lookup.json"} <ide> single_orth_variants = [{"tags": ["$("], "variants": ["…", "..."]}, <ide> {"tags": ["$("], "variants": ["-", "—", "–", "--", "---", "——"]}] <del> paire...
1
Ruby
Ruby
add docs for `attr_readonly`
647f4bd17f6c1a3da51738b9da61af8567c87cc0
<ide><path>activerecord/lib/active_record/readonly_attributes.rb <ide> module ReadonlyAttributes <ide> module ClassMethods <ide> # Attributes listed as readonly will be used to create a new record but update operations will <ide> # ignore these fields. <add> # <add> # You can assign a new valu...
1
Javascript
Javascript
set statics on the navigationcard container
1343248bbe8e371ba4a4891901ec6f5ded52b7d4
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCard.js <ide> class NavigationCard extends React.Component<any, Props, any> { <ide> </Animated.View> <ide> ); <ide> } <del> <del> static CardStackPanResponder = NavigationCardStackPanResponder; <del> static CardStackStyleInterpolator =...
1
Javascript
Javascript
emit assets from modules during executing modules
33c862e07b3b47a79dc14f27d9c8f9a1f773dd28
<ide><path>lib/Compilation.js <ide> This prevents using hashes of each other and should be avoided.`); <ide> missingDependencies, <ide> buildDependencies <ide> ); <add> if (module.buildInfo && module.buildInfo.assets) { <add> const { assets: moduleAssets, assetsInfo } = module.b...
1
Ruby
Ruby
add elm option of webpack to generator description
038f1dc42f47e1abda8cb432bc6669616acf8611
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> module Generators <ide> RESERVED_NAMES = %w[application destroy plugin runner test] <ide> <ide> class AppGenerator < AppBase # :nodoc: <del> WEBPACKS = %w( react vue angular ) <add> WEBPACKS = %w( react vue angular elm ) <ide> ...
1
Javascript
Javascript
hide pointlabels of hidden data
f1c99316a714df4637e3d983184c2b680cba2ae5
<ide><path>src/scales/scale.radialLinear.js <ide> function fitWithPointLabels(scale) { <ide> const labelSizes = []; <ide> const padding = []; <ide> <del> const valueCount = scale.getLabels().length; <add> const valueCount = scale._pointLabels.length; <ide> for (let i = 0; i < valueCount; i++) { <ide> const...
2
Javascript
Javascript
use c-ares in lib/net.js
33e774eeba5a97af41fd17a8eb03b333a98ade33
<ide><path>lib/net.js <ide> var sys = require("sys"); <ide> var fs = require("fs"); <ide> var events = require("events"); <add>var dns = require('dns_cares'); <ide> <ide> var kMinPoolSpace = 128; <ide> var kPoolSize = 40*1024; <ide> var toRead = binding.toRead; <ide> var setNoDelay = binding.setNoDelay; <ide> va...
1
Javascript
Javascript
calculate daysinmonth without date()
41d900cfd4e99b3025697e96ba4d3637dbcf632a
<ide><path>src/lib/units/month.js <ide> import { MONTH } from './constants'; <ide> import toInt from '../utils/to-int'; <ide> import isArray from '../utils/is-array'; <ide> import isNumber from '../utils/is-number'; <add>import mod from '../utils/mod'; <ide> import indexOf from '../utils/index-of'; <ide> import { creat...
3
Python
Python
add words and seconds to train info
ba5f4c9b32fd2d625974af13be44677dcd75cf32
<ide><path>spacy/cli/train.py <ide> from typing import Optional, Dict, Any, Tuple, Union, Callable, List <add>from timeit import default_timer as timer <ide> import srsly <ide> import tqdm <ide> from pathlib import Path <ide> def train_while_improving( <ide> ] <ide> raw_batches = util.minibatch(raw_exam...
1
Ruby
Ruby
use string datatype for the setting attribute
05895c6c861597fcefb3114d78dc6cb676fec433
<ide><path>activerecord/test/schema/schema.rb <ide> def create_table(*args, &block) <ide> <ide> create_table :admin_users, :force => true do |t| <ide> t.string :name <del> t.text :settings, :null => true <add> t.string :settings, :null => true, :limit => 1024 <ide> # MySQL does not allow default values...
1
Python
Python
fix minor comment typos
5444687f0f10319897d09e087258700252b1ca74
<ide><path>examples/research_projects/distillation/train.py <ide> def main(): <ide> "--alpha_mlm", <ide> default=0.0, <ide> type=float, <del> help="Linear weight for the MLM loss. Must be >=0. Should be used in coonjunction with `mlm` flag.", <add> help="Linear weight for the MLM l...
1