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
Text
Text
translate tip-17 to korean
4df79154de13a6ff7b5f99628fbc9e5f5294d5dc
<ide><path>docs/tips/17-children-undefined-ko-KR.md <add>--- <add>id: children-undefined-ko-KR <add>title: 정의되지 않은 this.props.children <add>layout: tips <add>permalink: children-undefined-ko-KR.html <add>prev: references-to-components-ko-KR.html <add>next: use-react-with-other-libraries-ko-KR.html <add>--- <add> <add>`...
1
Javascript
Javascript
change callback function to arrow function
d964d276dbd41dd383f9463ab238b4ef69920b36
<ide><path>test/parallel/test-stream-unshift-empty-chunk.js <ide> let nChunks = 10; <ide> const chunk = Buffer.alloc(10, 'x'); <ide> <ide> r._read = function(n) { <del> setImmediate(function() { <add> setImmediate(() => { <ide> r.push(--nChunks === 0 ? null : chunk); <ide> }); <ide> }; <ide> <ide> let readAll...
1
Python
Python
fix syntax mistake
6c4f488e8912d83b6191ddd09cd076732b36ffad
<ide><path>spacy/language.py <ide> def train(cls, path, gold_tuples, *configs): <ide> self.end_training() <ide> <ide> def __init__(self, **overrides): <del> if 'data_dir' in overrides and overrides.get(path) is True: <add> if 'data_dir' in overrides and 'path' not in overrides: <ide> ...
1
Text
Text
use repository instead of repo
b9866098a7f8588970bb9107eadd6deb853c1fa2
<ide><path>doc/guides/collaborator-guide.md <ide> issues. If a user opens a security issue in the public repository: <ide> <ide> * Ask the user to submit a report through HackerOne as outlined in <ide> [SECURITY.md][]. <del>* Move the issue to the private repo called <add>* Move the issue to the private repository c...
1
Mixed
Javascript
add once method to use promises with eventemitter
b1ef279d5726905d7941f4a58978b379daa3cdc4
<ide><path>doc/api/events.md <ide> newListeners[0](); <ide> emitter.emit('log'); <ide> ``` <ide> <add>## events.once(emitter, name) <add><!-- YAML <add>added: REPLACEME <add>--> <add>* `emitter` {EventEmitter} <add>* `name` {string} <add>* Returns: {Promise} <add> <add>Creates a `Promise` that is resolved when the `Ev...
3
Javascript
Javascript
fix casing of shouldflushdiscreteupdates
7aa35ceae0d3a4d846498f128227ffa7c84900f4
<ide><path>packages/react-dom/src/events/DOMEventResponderSystem.js <ide> export function processEventQueue(): void { <ide> return; <ide> } <ide> if (discrete) { <del> if (shouldflushDiscreteUpdates(currentTimeStamp)) { <add> if (shouldFlushDiscreteUpdates(currentTimeStamp)) { <ide> flushDiscreteUpd...
2
Python
Python
fix logic for using threads
a601525837bd2357c7a428942add2907c623f91a
<ide><path>numpy/core/setup.py <ide> def check_func(func_name): <ide> if check_func('strtod'): <ide> moredefs.append(('PyOS_ascii_strtod', 'strtod')) <ide> <del> if moredefs: <del> target_f = open(target,'a') <del> for d in moredefs: <del> ...
1
Ruby
Ruby
reduce number of strings
ef9bbb87e8228940f768580a7d05d5feadec0d1e
<ide><path>activerecord/lib/active_record/schema_dumper.rb <ide> def default_string(value) <ide> when BigDecimal <ide> value.to_s <ide> when Date, DateTime, Time <del> "'" + value.to_s(:db) + "'" <add> "'#{value.to_s(:db)}'" <ide> else <ide> value.inspect <i...
2
Go
Go
add missing tests and docs for pkg/fileutils
09adf87f23b3de97f90612c9bc08413053b81a14
<ide><path>pkg/fileutils/fileutils.go <ide> import ( <ide> "github.com/Sirupsen/logrus" <ide> ) <ide> <del>func Exclusion(pattern string) bool { <add>// exclusion return true if the specified pattern is an exclusion <add>func exclusion(pattern string) bool { <ide> return pattern[0] == '!' <ide> } <ide> <del>func Em...
2
Go
Go
reject multiple networks on container creation
cfa515fd9d1530bd84e98c6d6564e641dcb2d0fe
<ide><path>daemon/create.go <ide> func (daemon *Daemon) ContainerCreate(params types.ContainerCreateConfig) (types <ide> return types.ContainerCreateResponse{Warnings: warnings}, err <ide> } <ide> <add> err = daemon.verifyNetworkingConfig(params.NetworkingConfig) <add> if err != nil { <add> return types.ContainerC...
4
Python
Python
implement list_locations & list_images
1271ee438f631c57867958fba530df52a08e904c
<ide><path>libcloud/compute/drivers/vsphere.py <ide> from libcloud.common.types import InvalidCredsError <ide> from libcloud.compute.base import NodeDriver <ide> from libcloud.compute.base import Node <add>from libcloud.compute.base import NodeImage, NodeLocation <ide> from libcloud.compute.types import NodeState, Prov...
1
Python
Python
fix concat bp and more efficient batch calls
2fa3fac8512c1ed102a64017123246ca156cfef5
<ide><path>examples/pipeline/wiki_entity_linking/train_el.py <ide> def train_model(self, training_dir, entity_descr_output, trainlimit=None, devlim <ide> # raise errors instead of runtime warnings in case of int/float overflow <ide> np.seterr(all='raise') <ide> <del> Doc.set_extension("entity_id...
2
Javascript
Javascript
fix jshint warning
1363cbd6b49410a82a969dc3aeae094becc44997
<ide><path>test/auto/injectorSpec.js <ide> describe('injector', function() { <ide> // Only Chrome and Firefox support this syntax. <ide> if (/chrome|firefox/i.test(navigator.userAgent)) { <ide> it('should be possible to annotate functions that are declared using ES6 syntax', function() { <add> /*js...
1
Go
Go
persist container to disk after rename
c5c72cf151b21482b2f27417322342c6d781108c
<ide><path>daemon/rename.go <ide> package daemon <ide> <del>import ( <del> "github.com/docker/docker/engine" <del>) <add>import "github.com/docker/docker/engine" <ide> <ide> func (daemon *Daemon) ContainerRename(job *engine.Job) engine.Status { <ide> if len(job.Args) != 2 { <ide> func (daemon *Daemon) ContainerRenam...
2
Javascript
Javascript
hold maxmipmaplevel in textureproperties
33ecb129e2193b9f56c93cacabe20dc01b00167d
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> uniforms.reflectivity.value = material.reflectivity; <ide> uniforms.refractionRatio.value = material.refractionRatio; <ide> <del> uniforms.maxMipLevel.value = material.envMap.maxMipLevel; <add> uniforms.maxMipLevel.v...
2
Go
Go
delete a useless variable
87cada6d7f62589ce77dc0557ad97f4140b49c70
<ide><path>volume/drivers/adapter.go <ide> import ( <ide> ) <ide> <ide> var ( <del> errInvalidScope = errors.New("invalid scope") <ide> errNoSuchVolume = errors.New("no such volume") <ide> ) <ide>
1
Go
Go
add more tests for pkg/chrootarchive
a08048d5c835f1558fbdbac2f7d833552e13d979
<ide><path>pkg/chrootarchive/archive_test.go <ide> package chrootarchive <ide> <ide> import ( <add> "bytes" <add> "fmt" <ide> "io" <ide> "io/ioutil" <ide> "os" <add> "path" <ide> "path/filepath" <ide> "testing" <ide> "time" <ide> func TestChrootTarUntar(t *testing.T) { <ide> } <ide> } <ide> <add>func TestChroo...
1
Java
Java
introduce "synthesizable" cache in annotationutils
bd787769be49fb935648330daa68bece2775eeea
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java <ide> public abstract class AnnotationUtils { <ide> private static final Map<Class<?>, Boolean> annotatedInterfaceCache = <ide> new ConcurrentReferenceHashMap<Class<?>, Boolean>(256); <ide> <add> private static final Map<...
1
Text
Text
fix a function name in repl.md
224cbf8bd8600c5ac9d3241fad4de74a72d0419f
<ide><path>doc/api/repl.md <ide> multi-line input, the eval function can return an instance of `repl.Recoverable` <ide> to the provided callback function: <ide> <ide> ```js <del>function eval(cmd, context, filename, callback) { <add>function myEval(cmd, context, filename, callback) { <ide> let result; <ide> try { ...
1
Python
Python
update pavement.py to work with versioneer
ec90d3c175e6cb1efd0ab8172b909f6fde8c277d
<ide><path>pavement.py <ide> import sys <ide> import shutil <ide> import hashlib <add>import textwrap <ide> <ide> # The paver package needs to be installed to run tasks <ide> import paver <ide> installersdir=os.path.join("release", "installers")),) <ide> <ide> <del>#-------------------------...
1
Ruby
Ruby
remove redundant variable
da4db35acda825828809902e9bcccae020454ccb
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def next_id <ide> end <ide> <ide> def matches?(_kind, _filter) <del> _filter_matches = false <del> <ide> if @_is_object_filter <ide> _filter_matches = @filter.to_s.start_with?(_method_name_for_object_filter(_kind, _filt...
1
Python
Python
add missing args to `airflow clear`
6706babfd404173768b00f6add1b27d66d31a7e0
<ide><path>airflow/bin/cli.py <ide> class CLIFactory(object): <ide> 'help': "Clear a set of task instance, as if they never ran", <ide> 'args': ( <ide> 'dag_id', 'task_regex', 'start_date', 'end_date', 'subdir', <del> 'upstream', 'downstream', 'no_confirm'), <add> ...
1
Javascript
Javascript
use consistent coding style in assert/*
34189563496a7d418382ac402241d4970b32b78b
<ide><path>benchmark/assert/deepequal-buffer.js <ide> const bench = common.createBenchmark(main, { <ide> n: [2e4], <ide> len: [1e2, 1e3], <ide> strict: [0, 1], <del> method: [ <del> 'deepEqual', <del> 'notDeepEqual' <del> ] <add> method: [ 'deepEqual', 'notDeepEqual' ], <ide> }); <ide> <ide> function ma...
9
Text
Text
add 2.14.0-beta.2 to changelog
1e5b8a90f82d1e81cb673c4f1f6e3a8fdd5a6a2c
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.14.0-beta.2 (May 10, 2017) <add> <add>- [#15138](https://github.com/emberjs/ember.js/pull/15138) [BUGFIX] Fix mocha blueprint service test filename <add>- [#15193](https://github.com/emberjs/ember.js/pull/15193) [BUGFIX] Ensure `factoryFor` does validati...
1
PHP
PHP
add assertion on setmatching return type
d06e4d9a453a570e1846e442d4541bc35e48168b
<ide><path>tests/TestCase/ORM/EagerLoaderTest.php <ide> protected function _quoteArray($elements) <ide> <ide> return $elements; <ide> } <add> <add> /** <add> * Assert that matching('something') and SetMatching('something') return consistent type <add> */ <add> public function testSetMatchingR...
1
Go
Go
fix cross compile
ba52130873395a44d637fc57f98ed174f0ac87bb
<ide><path>archive/changes.go <ide> func ExportChanges(dir string, changes []Change) (Archive, error) { <ide> Mode: int64(stat.Mode & 07777), <ide> Uid: int(stat.Uid), <ide> Gid: int(stat.Gid), <del> ModTime: time.Unix(mtim.Sec, mtim.Nsec), <del> AccessTime: time.Unix(atim....
1
Ruby
Ruby
add skylake [linux]
ad7323bd61b2c2ccd3a5c4ad1478f55fceb17576
<ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb <ide> def family <ide> return :dunno unless intel? <ide> <ide> # See https://software.intel.com/en-us/articles/intel-architecture-and-processor-identification-with-cpuid-model-and-family-numbers <add> # and https://github.com/llvm-mirro...
1
PHP
PHP
add logoutotherdevices to trait
200fdc60015987c67cea815c70241338aa2f5755
<ide><path>src/Illuminate/Auth/Authenticatable.php <ide> <ide> namespace Illuminate\Auth; <ide> <add>use Illuminate\Support\Facades\Hash; <add> <ide> trait Authenticatable <ide> { <ide> /** <ide> trait Authenticatable <ide> */ <ide> protected $rememberTokenName = 'remember_token'; <ide> <add> /** <ad...
1
PHP
PHP
add redis rate limiting job middleware
de94375ece99b258dc71ab905283cf09636a464d
<ide><path>src/Illuminate/Queue/Middleware/RateLimitsJobsWithRedis.php <add><?php <add> <add>namespace Illuminate\Queue\Middleware; <add> <add>use Illuminate\Container\Container; <add>use Illuminate\Contracts\Redis\Factory as Redis; <add>use Illuminate\Redis\Limiters\DurationLimiter; <add>use Illuminate\Support\Interac...
2
PHP
PHP
improve getbehavior() nullable check
97eb855eb6b7671b1d7cec2495ee0d81039a04a3
<ide><path>src/ORM/Table.php <ide> public function behaviors() <ide> */ <ide> public function getBehavior($name) <ide> { <del> if ($this->hasBehavior($name) === false) { <add> $behavior = $this->_behaviors->get($name); <add> if ($behavior === null) { <ide> throw new Invalid...
1
Javascript
Javascript
replace var with let in lib/assert.js
cb34358dd9ceb0b2a7ddcf14120000cb060d8181
<ide><path>lib/assert.js <ide> function getCode(fd, line, column) { <ide> buffer = lines < line ? buffer : Buffer.allocUnsafe(bytesPerRead); <ide> bytesRead = readSync(fd, buffer, 0, bytesPerRead); <ide> // Read the buffer until the required code line is found. <del> for (var i = 0; i < bytesRead; i++) {...
1
Mixed
Text
require pg~>0.18 to ensure ruby 2.2 compatibility
ba7532700f194aae2f9968924f979d77bc84a21e
<ide><path>activerecord/CHANGELOG.md <add>* Increase pg gem version requirement to `~> 0.18`. Earlier versions of the <add> pg gem are known to have problems with Ruby 2.2. <add> <add> *Matt Brictson* <add> <ide> * Correctly dump `serial` and `bigserial`. <ide> <ide> *Ryuta Kamizono* <ide><path>activerec...
2
Go
Go
fix filepath.walk args
d8ec1ee57db37386228e96c136be708d7ded4245
<ide><path>builder/dockerfile/copy_unix.go <ide> func fixPermissions(source, destination string, identity idtools.Identity, overr <ide> <ide> // We Walk on the source rather than on the destination because we don't <ide> // want to change permissions on things we haven't created or modified. <del> return filepath.Wa...
1
Javascript
Javascript
fix undefined stepper
ebf26a5e29ee17c602d7f15413dcd85c099e5738
<ide><path>src/canvas.js <ide> var CanvasGraphics = (function CanvasGraphicsClosure() { <ide> var slowCommands = this.slowCommands; <ide> <ide> while (true) { <del> if (stepper !== null && i === stepper.nextBreakPoint) { <add> if (stepper && i === stepper.nextBreakPoint) { <ide> ste...
1
Ruby
Ruby
use new download strategy for local bottles
95f9c6227a99a2cfa3f9768ab867d3c775693b56
<ide><path>Library/Homebrew/download_strategy.rb <ide> require 'vendor/multi_json' <ide> <ide> class AbstractDownloadStrategy <add> attr_accessor :local_bottle_path <add> <ide> def initialize name, package <ide> @url = package.url <ide> specs = package.specs <ide> def cached_location; end <ide> end <ide> <...
2
Java
Java
expose csslayoutsetlogger to java
867ea1bfaf7f409f905889179de90c7e21e08ad2
<ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSLogger.java <add>/** <add> * Copyright (c) 2014-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 tree. An ad...
2
Ruby
Ruby
remove deprecated option from docs [ci skip]
d9496c19c07d56bb200acd7312bf5d6355d515f4
<ide><path>activerecord/lib/active_record/associations.rb <ide> def association_instance_set(name, association) <ide> # | | belongs_to | <ide> # generated methods | belongs_to | :polymorphic | has_one <ide> # ------------------------...
1
Javascript
Javascript
fix nits in tools/doc/type-parser.js
5d387e9403bc67604b5556538fcddc52857638a6
<ide><path>tools/doc/type-parser.js <ide> 'use strict'; <del>const nodeDocUrl = ''; <add> <ide> const jsDocPrefix = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/'; <del>const jsDocUrl = `${jsDocPrefix}Reference/Global_Objects/`; <add> <ide> const jsPrimitiveUrl = `${jsDocPrefix}Data_structures`; <ide> const...
1
Ruby
Ruby
remove evals from the association
0d22947e00820b4e011775cfb4ede109650db070
<ide><path>activerecord/lib/active_record/associations/builder/association.rb <ide> def configure_dependency <ide> ) <ide> end <ide> <del> mixin.class_eval <<-CODE, __FILE__, __LINE__ + 1 <del> def #{macro}_dependent_for_#{name} <del> association(:#{name}).handle_dependency <del> ...
1
Text
Text
add es6 syntax to challenge' solution
58e70055737ae6b96cea582ef40247ae6b97225b
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/object-oriented-programming/use-an-iife-to-create-a-module/index.md <ide> let funModule = (function() { <ide> })(); <ide> <ide> ``` <add> <add>### Solution 2 <add> <add>If using ES6, the same can be rewritten as: <add> <add>```javascript...
2
Python
Python
set version to 2.0.13.dev4
c3ddf98b1e19f2583e3e7598b74689eb3858a27f
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.13.dev3' <add>__version__ = '2.0.13.dev4' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'ht...
1
PHP
PHP
add failover driver to default mail config file
3399464a7452ac8067cef8fb224b2413e8991a4b
<ide><path>config/mail.php <ide> 'array' => [ <ide> 'transport' => 'array', <ide> ], <add> <add> 'failover' => [ <add> 'transport' => 'failover', <add> 'mailers' => [ <add> 'smtp', <add> 'log', <add> ], <add> ], <id...
1
PHP
PHP
extract duplicate code which handles job failing
55afe12977b55dbafda940e18102bb52276ca569
<ide><path>src/Illuminate/Queue/FailingJob.php <add><?php <add> <add>namespace Illuminate\Queue; <add> <add>use Illuminate\Container\Container; <add>use Illuminate\Queue\Events\JobFailed; <add>use Illuminate\Contracts\Events\Dispatcher; <add> <add>class FailingJob <add>{ <add> /** <add> * Delete the given job, c...
4
PHP
PHP
add unit test for using subquery() in join clause
9f85c81428f80483e8a074df4f0cb704f0055a0f
<ide><path>tests/TestCase/ORM/QueryTest.php <ide> public function testSubqueryAliasing() <ide> $this->assertEqualsSql('SELECT id, title, body, published FROM articles Articles', $subquery->sql()); <ide> } <ide> <del> public function testSubquerySelect() <add> /** <add> * Tests subquery() in where...
1
Javascript
Javascript
fix lint errors
fda78a18717102fa7fa6cd1a7a73e1b75ca7fa02
<ide><path>spec/update-process-env-spec.js <ide> import { <ide> updateProcessEnv, <ide> shouldGetEnvFromShell <ide> } from '../src/update-process-env'; <del>import dedent from 'dedent'; <ide> import mockSpawn from 'mock-spawn'; <ide> const temp = require('temp').track(); <ide> <ide> describe('updateProcessEnv(laun...
1
Javascript
Javascript
add comments in _http_incoming
5ae96908696b7a017df3efb48ec1f8c8be5c24b8
<ide><path>lib/_http_incoming.js <ide> IncomingMessage.prototype._destroy = function _destroy(err, cb) { <ide> <ide> // If aborted and the underlying socket not already destroyed, <ide> // destroy it. <add> // We have to check if the socket is already destroyed because finished <add> // does not call the callbac...
1
Text
Text
fix broken links to guides in the faq
58f23493025f3490257655919c91d0442a39d338
<ide><path>docs/faq.md <ide> Yes! Please [submit an issue or open a pull request][pr-issue-question] if this <ide> <ide> Yes! Please [submit an issue or open a pull request][pr-issue-question] if this does not work. <ide> <del>[plugin-guide]: plugins.md <add>[plugin-guide]: ./guides/plugins.md <ide> <ide> [install-g...
1
Mixed
Javascript
add compressionstream and decompressionstream
09ad64d66de6222e5d029ef40a93287b7f5d8275
<ide><path>doc/api/webstreams.md <ide> added: REPLACEME <ide> <ide> * Type: {WritableStream} <ide> <add>### Class: `CompressionStream` <add><!-- YAML <add>added: REPLACEME <add>--> <add>#### `new CompressionStream(format)` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* `format` {string} One of either `'de...
4
Python
Python
fix linter error
80f0015c53f25d7b53d362d8b76356f221924c5d
<ide><path>benchmarks/benchmarks/bench_ufunc_strides.py <ide> <ide> stride = [1, 2, 4] <ide> stride_out = [1, 2, 4] <del>dtype = ['e', 'f', 'd'] <add>dtype = ['e', 'f', 'd'] <ide> <ide> class Unary(Benchmark): <ide> params = [UNARY_OBJECT_UFUNCS, stride, stride_out, dtype]
1
Text
Text
add info on fixup to security release process
5be8a30cc34adc1dab07f4fc1ed43274e38e5e52
<ide><path>doc/contributing/security-release-process.md <ide> out a better way, forward the email you receive to <ide> [Security release stewards](https://github.com/nodejs/node/blob/HEAD/doc/contributing/security-release-process.md#security-release-stewards). <ide> If necessary add the next rotation of the steward...
1
Python
Python
add comments to savetxt
cdc4c0abf4ed941ccfd46f785bfe44ca4aeedad5
<ide><path>numpy/lib/io.py <ide> def savetxt(fname, X, fmt='%.18e',delimiter=' '): <ide> raise ValueError('fname must be a string or file handle') <ide> <ide> X = np.asarray(X) <add> <add> # Handle 1-dimensional arrays <ide> if X.ndim == 1: <add> # Common case -- 1d array of numbers <ide> ...
1
PHP
PHP
add more typing to log
a7a19f5e6b5a3320477c3b1335b1de4d79f79282
<ide><path>src/Log/Engine/BaseLog.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> public function __construct(array $config = []) <ide> * <ide> ...
13
Javascript
Javascript
fix dev-only redbox in polyfillfunctions
ab97b9f6021d2b31b7155970c2be0c83f7e43f04
<ide><path>Libraries/Utilities/PolyfillFunctions.js <ide> function polyfillObjectProperty<T>( <ide> const descriptor = Object.getOwnPropertyDescriptor(object, name); <ide> if (__DEV__ && descriptor) { <ide> const backupName = `original${name[0].toUpperCase()}${name.substr(1)}`; <del> Object.defineProperty(ob...
1
Javascript
Javascript
freeze hooks to prevent deopts
fc4f30329dcbc2ad63416286ff2d42cd07df1348
<ide><path>lib/ChunkTemplate.js <ide> const { SyncWaterfallHook, SyncHook } = require("tapable"); <ide> module.exports = class ChunkTemplate { <ide> constructor(outputOptions) { <ide> this.outputOptions = outputOptions || {}; <del> this.hooks = { <add> this.hooks = Object.freeze({ <ide> /** @type {SyncWaterfall...
14
Python
Python
report length of dev dataset correctly
e55fa1899aa8bae311064004d0edaed8b37979e5
<ide><path>spacy/cli/debug_data.py <ide> def debug_data( <ide> else: <ide> msg.text(f"Starting with blank model '{lang}'") <ide> msg.text(f"{len(train_dataset)} training docs") <del> msg.text(f"{len(gold_dev_data)} evaluation docs") <add> msg.text(f"{len(dev_dataset)} evaluation docs") <ide> <ide...
1
Javascript
Javascript
keep the ignored files during the upgrade process
7492860ffb3a010ff2273abf45c7414c098bdc37
<ide><path>react-native-git-upgrade/cliEntry.js <ide> function configureGitEnv(tmpDir) { <ide> process.env.GIT_WORK_TREE = '.'; <ide> } <ide> <add>function copyCurrentGitIgnoreFile(tmpDir) { <add> /* <add> * The user may have added new files or directories in the .gitignore file. <add> * We need to keep those f...
1
Python
Python
add references to docs pages
7e810cced64dee089fecc987194b182800006b6d
<ide><path>spacy/lookups.py <ide> def __init__(self): <ide> """Initialize the Lookups object. <ide> <ide> RETURNS (Lookups): The newly created object. <add> <add> DOCS: https://spacy.io/api/lookups#init <ide> """ <ide> self._tables = OrderedDict() <ide> <ide> def add_table(self,...
1
PHP
PHP
avoid use of hash class
29731cdef99bc433789e4f73b72c9577c3cb0a03
<ide><path>src/Datasource/Paginator.php <ide> <ide> use Cake\Core\InstanceConfigTrait; <ide> use Cake\Datasource\Exception\PageOutOfBoundsException; <del>use Cake\Utility\Hash; <ide> <ide> /** <ide> * This class is used to handle automatic model data pagination. <ide> public function getPagingParams() <ide> */ ...
1
Javascript
Javascript
fix variabledeclaration visitors
e44ba306a097f20a71b4f53163cdc8cbfd02fcbd
<ide><path>lib/Parser.js <ide> class Parser extends Tapable { <ide> } <ide> <ide> prewalkVariableDeclaration(statement) { <del> if(statement.declarations) <del> this.prewalkVariableDeclarators(statement.declarations); <del> } <del> <del> walkVariableDeclaration(statement) { <del> if(statement.declarations) <del>...
1
Ruby
Ruby
use tablealias nodes for aliasing subselects
e8563a6234b4f60f8d756d89b3b35026a467694e
<ide><path>lib/arel/factory_methods.rb <ide> module Arel <ide> ### <ide> # Methods for creating various nodes <ide> module FactoryMethods <add> def create_table_alias relation, name <add> Nodes::TableAlias.new(relation, name) <add> end <add> <ide> def create_join to, constraint = nil, klass = Nodes...
4
Text
Text
change "为程序员阅读的书籍" to "程序员书单"
c405e55ea11579ae66a8c63a7f447d4c0ea0274a
<ide><path>guide/chinese/book-recommendations/index.md <ide> --- <ide> title: Books to Read for Programmers <del>localeTitle: 为程序员阅读的书籍 <add>localeTitle: 程序员书单 <ide> --- <ide> ### 书籍清单 <ide> <ide> _软件工程的事实与谬误_ <ide> <ide> 此列表是从Reddit和Stackoverflow上的多个建议线程编译而来的。 <ide> <del>请随意添加您认为有用的更多内容! <ide>\ No newline at end of...
1
Ruby
Ruby
remove nil check
1678e959e973de32287b65c52ebc6cce87148951
<ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb <ide> def replace(record) <ide> raise_on_type_mismatch!(record) if record <ide> <ide> update_counters(record) <del> replace_keys(record) <add> if record <add> replace_keys(record) <add> else <...
2
Python
Python
fix typo in `secrets_manager.py` docstring
0f327788b5b0887c463cb83dd8f732245da96577
<ide><path>airflow/providers/amazon/aws/secrets/secrets_manager.py <ide> class SecretsManagerBackend(BaseSecretsBackend, LoggingMixin): <ide> :param variables_prefix: Specifies the prefix of the secret to read to get Variables. <ide> If set to None (null), requests for variables will not be sent to AWS Secr...
1
Python
Python
add support for pandas dataframe
c173b764c768a686139636da24c54b30734f5c83
<ide><path>keras/engine/training.py <ide> def _standardize_input_data(data, names, shapes=None, <ide> if data is None: <ide> return [None for _ in range(len(names))] <ide> if isinstance(data, dict): <add> for key, value in data.items(): <add> if value.__class__.__name__ == 'DataFrame':...
3
Javascript
Javascript
fix circular dependencies in mockmodal
507b05f4c02b46109f483a2b79c924a775fd7bd3
<ide><path>jest/mockModal.js <ide> 'use strict'; <ide> <ide> const React = require('react'); <del>const Modal = require('../Libraries/Modal/Modal'); <add>import typeof Modal from '../Libraries/Modal/Modal'; <ide> <ide> function mockModal(BaseComponent: $FlowFixMe) { <ide> class ModalMock extends BaseComponent { <de...
1
Ruby
Ruby
remove stray backtick
69799d97b1e7314912b2ee234dec2c179c5fb969
<ide><path>Library/Homebrew/extend/os/mac/formula_cellar_checks.rb <ide> def check_linkage <ide> if tab.poured_from_bottle <ide> output += <<-EOS.undent <ide> Rebuild this from source with: <del> brew reinstall --build-from-source #{formula}` <add> brew reinstall --build-from-source ...
1
Text
Text
improve explanation of package.json "type" field
76d4a234680d96b4284a063c1c69da4b7c2b1ced
<ide><path>doc/api/esm.md <ide> or when referenced by `import` statements within ES module code: <ide> <ide> ### `package.json` `"type"` field <ide> <del>Files ending with `.js` or `.mjs`, or lacking any extension, <del>will be loaded as ES modules when the nearest parent `package.json` file <del>contains a top-level...
1
Javascript
Javascript
remove duplicate words in comments
47ee340a9eb0cd7c73e9f2db8896440881d9caf1
<ide><path>lib/internal/http2/core.js <ide> function onFrameError(id, type, code) { <ide> <ide> // Receiving a GOAWAY frame from the connected peer is a signal that no <ide> // new streams should be created. If the code === NGHTTP2_NO_ERROR, we <del>// are going to send our our close, but allow existing frames to clos...
1
Javascript
Javascript
use long property names in share scope
ab0ea4a4ce9d727cf1ce01843fb3867fb537eb7d
<ide><path>lib/sharing/ConsumeSharedRuntimeModule.js <ide> class ConsumeSharedRuntimeModule extends RuntimeModule { <ide> "}" <ide> ]), <ide> "}", <del> "function load(scopeName, key) {", <del> Template.indent([ <add> `var get = ${runtimeTemplate.returningFunction( <add> "(sharedModule.loaded = 1, sh...
5
Ruby
Ruby
remove redundant parenthesis
1e34ed7d82f8b6ee37be96fcbca259aafb671018
<ide><path>activerecord/test/cases/type/integer_test.rb <ide> class IntegerTest < ActiveRecord::TestCase <ide> type = Type::Integer.new <ide> assert_nil type.cast([1,2]) <ide> assert_nil type.cast({1 => 2}) <del> assert_nil type.cast((1..2)) <add> assert_nil type.cast(1..2) <ide> ...
1
Python
Python
fix gpt/gpt-2 from pretrained
50e62a4cb4d503e3559b88838b8cf9f745fef516
<ide><path>pytorch_transformers/modeling_gpt2.py <ide> def from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs): <ide> """ <ide> num_special_tokens = kwargs.pop('num_special_tokens', None) <ide> <del> model = super(PreTrainedModel, cls).from_pretrained(pretrained_model_name_or_...
1
Python
Python
fix install source path for openssl headers
ec7fbf2bb269f5ce5fa65ad7daf5a24241af97ef
<ide><path>tools/install.py <ide> def files(action): <ide> subdir_files('deps/uv/include', 'include/node/', action) <ide> <ide> if 'false' == variables.get('node_shared_openssl'): <add> subdir_files('deps/openssl/openssl/include/openssl', 'include/node/openssl/', action) <ide> action(['deps/openssl/config...
1
Python
Python
pass kwargs from vault hook to hvac client
1a3f7857f50170cbef767b91e2831fee8019e7b1
<ide><path>airflow/providers/hashicorp/hooks/vault.py <ide> DEFAULT_KV_ENGINE_VERSION, <ide> _VaultClient, <ide> ) <add>from airflow.utils.helpers import merge_dicts <ide> <ide> <ide> class VaultHook(BaseHook): <ide> def __init__( <ide> azure_resource: str | None = None, <ide> radius_host: str...
2
Go
Go
move testrunexit to integration-cli
c19e0fe7e2c626218c854aa97fd3f23d29f11615
<ide><path>integration-cli/docker_cli_run_test.go <ide> package main <ide> <ide> import ( <add> "bufio" <ide> "fmt" <ide> "io/ioutil" <ide> "os" <ide> import ( <ide> "strings" <ide> "sync" <ide> "testing" <add> "time" <ide> <ide> "github.com/docker/docker/pkg/mount" <ide> "github.com/docker/docker/pkg/network...
2
Python
Python
fix a typo
cf1930cf8c78260fbb70d6bd239e6bb5a38bfdb6
<ide><path>libcloud/common/cloudsigma.py <ide> 'host': 'lvs.cloudsigma.com' <ide> }, <ide> 'wdc': { <del> 'name': 'Las Vegas', <add> 'name': 'Washington DC', <ide> 'country': 'United States', <ide> 'host': 'wdc.cloudsigma.com' <ide> }
1
Python
Python
add example_container.py file
8f010817d6519dee00e41c79fc0579cb62ede540
<ide><path>example_container.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Apache Lice...
1
Javascript
Javascript
handle eexist error when starting the server
3cfac35fd8a3a4446c527fe7a9aceafd38d6ab0e
<ide><path>packager/react-packager/src/SocketInterface/SocketServer.js <ide> class SocketServer { <ide> process.send({ type: 'createdServer' }); <ide> }, <ide> error => { <del> if (error.code === 'EADDRINUSE') { <add> if (error.code === 'EADDRINUSE' || error.code === 'EEXIST'...
1
Text
Text
add links to openjsf slack
9d9d2f0cf7163e270df8727bb5a83a53df4336eb
<ide><path>.github/SUPPORT.md <ide> If you didn't find an answer in the resources above, try these unofficial <ide> resources: <ide> <ide> * [Questions tagged 'node.js' on Stack Overflow](https://stackoverflow.com/questions/tagged/node.js) <add>* [#nodejs](https://openjs-foundation.slack.com/archives/CK9Q4MB53) channe...
3
Javascript
Javascript
generalize the optimisation a little
b1c3e11c42c2547dfb27c7eba0fa1aa458863499
<ide><path>packages/ember-glimmer/lib/ember-template-compiler/plugins/transform-has-block-syntax.js <ide> export default function TransformHasBlockSyntax() { <ide> this.syntax = null; <ide> } <ide> <del>const OLD_HAS_BLOCK = 'hasBlock'; <del>const NEW_HAS_BLOCK = 'has-block'; <del>const OLD_HAS_BLOCK_PARAMS = 'hasBl...
1
Javascript
Javascript
show errored file always in the error overlay.
bc2d5f3bdb50aba7a68a35eb51655d96d43d1a08
<ide><path>lib/error-debug.js <ide> export default ({ error, error: { name, message, module } }) => ( <ide> {module ? <div style={styles.heading}>Error in {module.rawRequest}</div> : null} <ide> { <ide> name === 'ModuleBuildError' <del> ? <pre style={styles.message} dangerouslySetInnerHTML={{ __html:...
2
Python
Python
fix shoddy test case
9c58dfec4e6865a5296d0913be907a20f712f0d3
<ide><path>tests/test_authentication.py <ide> def test_login_view_renders_on_get(self): <ide> cf. [#1810](https://github.com/tomchristie/django-rest-framework/pull/1810) <ide> """ <ide> response = self.csrf_client.get('/auth/login/') <del> self.assertContains(response, '<Label class="span...
1
Text
Text
clarify design goals
07cf1424cb5e7bb7284acb282c996690cfc6d8c5
<ide><path>README.md <ide> redux <ide> [![build status](https://img.shields.io/travis/gaearon/redux.svg?style=flat-square)](https://travis-ci.org/gaearon/redux) <ide> [![npm version](https://img.shields.io/npm/v/redux.svg?style=flat-square)](https://www.npmjs.com/package/redux) <ide> <del>An experiment in fully hot-re...
1
Javascript
Javascript
create ember.test with registerhelper method
79aefff9b875026e3925a8a4a2a7b9dfe07a4f0f
<ide><path>packages/ember-testing/lib/helpers.js <del>/*globals EMBER_APP_BEING_TESTED */ <add>require('ember-testing/test'); <ide> <ide> var Promise = Ember.RSVP.Promise, <del> pendingAjaxRequests = 0, <del> originalFind, <del> slice = [].slice, <del> get = Ember.get; <add> get = Ember.get, <add> he...
4
Javascript
Javascript
add test for broken child process stdio
7cdfe8a130deb2300d4311da9f4372e971a37eac
<ide><path>test/parallel/test-child-process-bad-stdio.js <add>'use strict'; <add>// Flags: --expose_internals <add>const common = require('../common'); <add>const assert = require('assert'); <add>const cp = require('child_process'); <add> <add>if (process.argv[2] === 'child') { <add> setTimeout(() => {}, common.platfo...
1
Text
Text
make semicolon at end of line optional
a32427c1200c7ff6ae9a668a81cb4a73dfa4e938
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/finding-a-remainder-in-javascript.md <ide> tests: <ide> - text: The value of <code>remainder</code> should be <code>2</code> <ide> testString: assert(remainder === 2); <ide> - text: You should use the <code>%<...
1
Javascript
Javascript
use arrow syntax for anonymous callbacks
01c5c16aba178e8cd87cd5dc026e995a014440fb
<ide><path>test/parallel/test-net-persistent-ref-unref.js <ide> const net = require('net'); <ide> const { internalBinding } = require('internal/test/binding'); <ide> const TCPWrap = internalBinding('tcp_wrap').TCP; <ide> <del>const echoServer = net.createServer(function(conn) { <add>const echoServer = net.createServer...
1
Text
Text
add missing item to the changelog
9f80a48ad464c9240ea7f9d3f37251559cf7fe7e
<ide><path>CHANGELOG.md <ide> * Fix some transition updates being ignored. ([@acdlite](https://github.com/acdlite) in [#24353](https://github.com/facebook/react/pull/24353)) <ide> * Fix `useDeferredValue` causing an infinite loop when passed an unmemoized value. ([@acdlite](https://github.com/acdlite) in [#24247](https...
1
Python
Python
add decimalfield to field_mapping
c329d2f08511dbc7660af9b8fc94e92d97c015cc
<ide><path>rest_framework/serializers.py <ide> class ModelSerializer(Serializer): <ide> models.DateTimeField: DateTimeField, <ide> models.DateField: DateField, <ide> models.TimeField: TimeField, <add> models.DecimalField: DecimalField, <ide> models.EmailField: EmailField, <ide> ...
1
PHP
PHP
set correct permission on generated folders
faf511ea28d25901aed964dfa37caac65c82d458
<ide><path>src/Shell/I18nShell.php <ide> public function init($language = null) <ide> $sourceFolder = rtrim($response, DS) . DS; <ide> $targetFolder = $sourceFolder . $language . DS; <ide> if (!is_dir($targetFolder)) { <del> mkdir($targetFolder, 0770, true); <add> mkdir($ta...
1
Go
Go
fix docker cp
f950de575483f562bc56b7f42b67b00b3df1387b
<ide><path>daemon/archive.go <ide> import ( <ide> "io" <ide> "os" <ide> "path/filepath" <add> "strings" <ide> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/pkg/archive" <ide> func (container *Container) ExtractToDir(path string, noOverwriteDirNonDir bool, <ide> // Use the resolved pa...
1
Java
Java
improve webflux exception logging
196f3f8cc1aae9f3df06e9d961c62185e8730bfb
<ide><path>spring-web/src/main/java/org/springframework/web/server/adapter/HttpWebHandlerAdapter.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> ...
2
Text
Text
replace linkedin with linkedin
d349399e47da4800f83f43b0706a5bc983f0a15e
<ide><path>guide/arabic/miscellaneous/add-free-code-camp-in-linkedin/index.md <ide> --- <del>title: Add Free Code Camp in Linkedin <add>title: Add Free Code Camp in LinkedIn <ide> localeTitle: أضف Free Code Camp في لينكدين <ide> --- <ide> ينضم LinkedIn إلى Free Code Camp كجامعة. <ide><path>guide/chinese/miscellaneous/a...
6
Java
Java
fix registration of applicationstartupaware
77a658f51bbb257c018888b76b7149dae34c769c
<ide><path>spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java <ide> import org.springframework.context.ApplicationEventPublisher; <ide> import org.springframework.context.ApplicationEventPublisherAware; <ide> import org.springframework.context.ApplicationListener; <add>impo...
1
Go
Go
canonicalize stored paths
28842d3f093e69cf62a090a532aacba1e6ff6d1c
<ide><path>pkg/archive/archive.go <ide> type tarAppender struct { <ide> SeenFiles map[uint64]string <ide> } <ide> <add>// canonicalTarName provides a platform-independent and consistent posix-style <add>//path for files and directories to be archived regardless of the platform. <add>func canonicalTarName(name string,...
5
PHP
PHP
use https for the www.cakephp.org url
45d22ff9e6c16972866b12ca59acd46a1ec30143
<ide><path>src/Http/Response.php <ide> public function getCookies() <ide> * <ide> * ### Full URI <ide> * ``` <del> * cors($request, 'http://www.cakephp.org'); <add> * cors($request, 'https://www.cakephp.org'); <ide> * ``` <ide> * <ide> * ### URI with wildcard <ide> * ``` <del>...
1
PHP
PHP
add langiage line for uploaded validation rule
1562407562859a880f5f494647d5c52f8af8d44e
<ide><path>resources/lang/en/validation.php <ide> 'string' => 'The :attribute must be a string.', <ide> 'timezone' => 'The :attribute must be a valid zone.', <ide> 'unique' => 'The :attribute has already been taken.', <add> 'uploaded' => 'The :attribute...
1
PHP
PHP
add info about new events to docblock
d2320d9f4a876fc5b3b266dd3163addc6c95602c
<ide><path>src/ORM/Table.php <ide> public function exists($conditions) <ide> * listeners will receive the entity and the options array as arguments. The type <ide> * of operation performed (insert or update) can be determined by checking the <ide> * entity's method `isNew`, true meaning an insert a...
1
Text
Text
remove 2.0 notice on main docs
280dfa4343fb7cf188f4573361bbec447b8ea7c2
<ide><path>docs/index.md <ide> <ide> **A toolkit for building well-connected, self-describing Web APIs.** <ide> <del>--- <del> <del>**Note**: This documentation is for the 2.0 version of REST framework. If you are looking for earlier versions please see the [0.4.x branch][0.4] on GitHub. <del> <del>--- <del> <ide> D...
1
Ruby
Ruby
add assertion helpers to pendingmigrationstest
7eff9d6f683239140303dd57af97e06d899309b5
<ide><path>activerecord/test/cases/migration/pending_migrations_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "cases/helper" <add>require "active_support/core_ext/hash/deep_merge" <ide> <ide> module ActiveRecord <ide> class Migration <ide> class PendingMigrationsTest < ActiveRecord::TestCase <ide>...
1
PHP
PHP
remove uneeded "use" statements
66586166f23a2352fa0a3499b9c356e2acd38817
<ide><path>src/Auth/DigestAuthenticate.php <ide> namespace Cake\Auth; <ide> <ide> use Cake\Controller\ComponentRegistry; <del>use Cake\Core\Configure; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Utility\Security; <ide> <ide><path>src/Collection/Collection.php <ide> use ArrayIterator; <ide> use InvalidArgumentEx...
32