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
improve sentence merging in iob2json
f942903429b33b920c18ed7f9c4fe4715733d55f
<ide><path>spacy/cli/converters/iob2json.py <ide> def iob2json(input_path, output_path, n_sents=10, *a, **k): <ide> Convert IOB files into JSON format for use with train cli. <ide> """ <ide> with input_path.open('r', encoding='utf8') as file_: <del> if n_sents: <del> lines = [' '.join(para...
1
Text
Text
add changelog entry for .reflections api change
5dc598814efa45a1019c262ee01e5cc2db864d26
<ide><path>activerecord/CHANGELOG.md <add>* Change `reflections` public api to return the keys as String objects. <add> <add> Fixes #16928. <add> <add> *arthurnn* <add> <ide> * Renaming a table in pg also renames the primary key index. <ide> <ide> Fixes #12856
1
Javascript
Javascript
add missing options flag to animation example
344dffbc54df221d03eaa6dbbb677b2cefd20a23
<ide><path>src/ngAnimate/module.js <ide> * enter: function(element, doneFn) { <ide> * var runner = $animateCss(element, { <ide> * event: 'enter', <add> * structural: true, <ide> * addClass: 'maroon-setting', <ide> * from: { height:0 }, <ide> * to: { height: 200 }
1
Javascript
Javascript
add checkernode
5b654654adc27595f917c07066cb4d5cfbd9de21
<ide><path>examples/jsm/renderers/nodes/Nodes.js <ide> import SplitNode from './utils/SplitNode.js'; <ide> import SpriteSheetUVNode from './utils/SpriteSheetUVNode.js'; <ide> import TimerNode from './utils/TimerNode.js'; <ide> <add>// procedural <add>import CheckerNode from './procedural/CheckerNode.js'; <add> <ide> /...
2
Python
Python
update all models on each epoch
dbf2a4cf577f0e66bf1591289728ed4ec56d1c5c
<ide><path>spacy/language.py <ide> def get_grads(W, dW, key=None): <ide> tokvecses, bp_tokvecses = tok2vec.model.begin_update(feats, drop=drop) <ide> d_tokvecses = proc.update((docs, tokvecses), golds, <ide> drop=drop, sgd=get_grads, losses=losses) <del> ...
1
Javascript
Javascript
make non-existent routes under `/_next` return 404
8d304ed7ef312604bbc819fb73c5f01ee8a911e7
<ide><path>server/index.js <ide> export default class Server { <ide> } <ide> } <ide> <add> // This path is needed because `render()` does a check for `/_next` and the calls the routing again <add> routes['/_next/:path*'] = async (req, res, params, parsedUrl) => { <add> await this.render4...
3
Text
Text
add additional step to security release process
961967c1ffcdf08855d05380f1e6b4b4d4e8cbac
<ide><path>doc/contributing/security-release-process.md <ide> out a better way, forward the email you receive to <ide> <ide> * [ ] Make sure the PRs for the vulnerabilities are closed. <ide> <add>* [ ] PR in that you stewarded the release in <add> [Security release stewards](https://github.com/nodejs/node/blob/HEAD/...
1
Ruby
Ruby
add powerpc64 cpu
3df97b20d52ef76043fcc33cd5040886dc6da2b3
<ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb <ide> module Hardware <ide> class CPU <ide> class << self <del> OPTIMIZATION_FLAGS_LINUX = { <del> native: "-march=#{Homebrew::EnvConfig.arch}", <del> nehalem: "-march=nehalem", <del> core2: "-march=core2", <del> core:...
4
Javascript
Javascript
refactor the build server to remove tie to fs
8d2bbf940d52c8f44709a62bcd6d46ca34171e2d
<ide><path>server/build/index.js <ide> import { tmpdir } from 'os' <ide> import { join } from 'path' <del>import getConfig from '../config' <ide> import fs from 'mz/fs' <ide> import uuid from 'uuid' <ide> import del from 'del' <ide> export default async function build (dir) { <ide> <ide> try { <ide> await runCom...
3
Text
Text
add awesome list to handy links section
7ac465618c65ec69bffb0d65d00ebca77147b212
<ide><path>README.md <ide> tests for CakePHP by doing the following: <ide> * [CakePHP](http://www.cakephp.org) - The rapid development PHP framework. <ide> * [CookBook](http://book.cakephp.org) - The CakePHP user documentation; start learning here! <ide> * [API](http://api.cakephp.org) - A reference to CakePHP's classe...
1
Go
Go
add regression test
5fb28eab3e670f225019174987424be31a0d0527
<ide><path>integration-cli/docker_cli_logs_test.go <add>package main <add> <add>import ( <add> "fmt" <add> "os/exec" <add> "testing" <add>) <add> <add>// This used to work, it test a log of PageSize-1 (gh#4851) <add>func TestLogsContainerSmallerThanPage(t *testing.T) { <add> testLen := 32767 <add> runCmd := exec.Comman...
1
Python
Python
add more trailing_punctuation to work with yaml
a23059b6f73aaff9709f611826bac892e56663dd
<ide><path>rest_framework/templatetags/rest_framework.py <ide> def add_class(value, css_class): <ide> <ide> <ide> # Bunch of stuff cloned from urlize <del>TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "'"] <add>TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "']", "'}", "'"] <ide> WRAPPING_PUNCTUATION...
1
Javascript
Javascript
fix process.on edge case with signal event
a91b1409636db20e931e14e1be03261f57ab3f7c
<ide><path>src/node.js <ide> w.start(); <ide> <ide> } else if (this.listeners(type).length === 1) { <del> signalWatchers[event].start(); <add> signalWatchers[type].start(); <ide> } <ide> } <ide> <ide><path>test/simple/test-signal-handler.js <ide> console.log('process....
2
Ruby
Ruby
move some logic to runner
739cfd5d90aff0d8eba3d3937df63afaa6ad106f
<ide><path>railties/lib/rails/commands/test.rb <ide> ENV["RAILS_ENV"] = "test" <ide> require "rails/test_unit/runner" <del>require "rails/test_unit/reporter" <ide> <ide> options = Rails::TestRunner::Options.parse(ARGV) <ide> $: << File.expand_path("../../test", APP_PATH) <ide> <del>$runner = Rails::TestRunner.new(opt...
2
PHP
PHP
tests(add extra method deps check to test)
8855e86b6eb005d2c1cc35026360741b58b73081
<ide><path>tests/Container/ContainerCallTest.php <ide> public function testCallWithCallableClassString() <ide> $result = $container->call(ContainerCallCallableClassStringStub::class); <ide> $this->assertInstanceOf(ContainerCallConcreteStub::class, $result[0]); <ide> $this->assertSame('jeffrey', ...
1
Go
Go
move env load to nsenter
8497d1274b046804999699ccb66b11a3249906a1
<ide><path>pkg/libcontainer/namespaces/execin.go <ide> import ( <ide> <ide> // ExecIn uses an existing pid and joins the pid's namespaces with the new command. <ide> func ExecIn(container *libcontainer.Container, nspid int, args []string) error { <del> // clear the current processes env and replace it with the environ...
1
Javascript
Javascript
delay rewriting chunks
bb5eb9384229b8b5c455e941e44b18eb56daf5e5
<ide><path>lib/Module.js <ide> class Module extends DependenciesBlock { <ide> this.usedExports = null; <ide> this.providedExports = null; <ide> this.optimizationBailout = []; <add> <add> // delayed operations <add> this._rewriteChunkInReasons = undefined; <ide> } <ide> <ide> disconnect() { <ide> this.reaso...
1
Text
Text
add note about abi compatibility
97d9ccdeb842fa94b1544f83aff6b8bf23dc65d1
<ide><path>BUILDING.md <ide> To make `./myModule.js` available via `require('myModule')` and <ide> ```console <ide> > .\vcbuild link-module './myModule.js' link-module './myModule2.js' <ide> ``` <add> <add>## Note for downstream distributors of Node.js <add> <add>The Node.js ecosystem is reliant on ABI compatibility wi...
1
Python
Python
use print() function in buildbot_run.py
2d8307e1996ee0c45d3630c1716b5fbfa08ac380
<ide><path>tools/gyp/buildbot/buildbot_run.py <ide> # found in the LICENSE file. <ide> <ide> """Argument-less script to select what to run on the buildbots.""" <add>from __future__ import print_function <ide> <ide> import os <ide> import shutil <ide> def CallSubProcess(*args, **kwargs): <ide> with open(os.devnull) ...
1
Ruby
Ruby
add some documentation
27f87b68b26e4ac68fa9bf05e6003c61cdca854d
<ide><path>lib/active_storage/attached/macros.rb <ide> module ActiveStorage::Attached::Macros <add> # Specifies the relation between a single attachment and the model. <add> # <add> # class User < ActiveRecord::Base <add> # has_one_attached :avatar <add> # end <add> # <add> # There is no column defined o...
6
Ruby
Ruby
move the require to the right place
649b9d93219b5b38bb2fccba5124c4e013726d9e
<ide><path>actioncable/lib/action_cable/engine.rb <ide> require "rails" <ide> require "action_cable" <ide> require "action_cable/helpers/action_cable_helper" <add>require "active_support/core_ext/hash/indifferent_access" <ide> <ide> module ActionCable <ide> class Railtie < Rails::Engine # :nodoc: <ide><path>actionca...
2
Javascript
Javascript
convert large file warning
8f81831ad4f8f5ef4aa5e8f79aa51eb67d41f56d
<ide><path>src/workspace.js <ide> module.exports = class Workspace extends Model { <ide> // * `uri` A {String} containing a URI. <ide> // <ide> // Returns a {Promise} that resolves to the {TextEditor} (or other item) for the given URI. <del> createItemForURI (uri, options) { <add> async createItemForURI (uri, o...
1
Javascript
Javascript
add a charset to the default content-type
732696e840eeaa32d83dc68adbe9ad075291d0e2
<ide><path>server/render.js <ide> export function sendHTML (req, res, html, method, { dev }) { <ide> <ide> res.setHeader('ETag', etag) <ide> if (!res.getHeader('Content-Type')) { <del> res.setHeader('Content-Type', 'text/html') <add> res.setHeader('Content-Type', 'text/html; charset=utf-8') <ide> } <ide> ...
3
Javascript
Javascript
prefer ember.merge over jquery.extend
10474ed87120abfc15e4767b2f4d5ef7aa72745d
<ide><path>packages/ember-handlebars/lib/helpers/view.js <ide> import { IS_BINDING } from "ember-metal/mixin"; <ide> import jQuery from "ember-views/system/jquery"; <ide> import View from "ember-views/views/view"; <ide> import { isGlobalPath } from "ember-metal/binding"; <add>import merge from "ember-metal/merge"; <ide...
2
Javascript
Javascript
fix typos in click test descriptions [ci skip]
1be4edc76f5d773047141be702db35824d2c1602
<ide><path>actionview/test/ujs/public/test/data-disable-with.js <ide> asyncTest('form[data-remote] input|button|textarea[data-disable-with] does not d <ide> start() <ide> }) <ide> <del>asyncTest('ctrl-clicking on a link does not disables the link', 6, function() { <add>asyncTest('ctrl-clicking on a link does not dis...
1
Python
Python
update spacy to 2.2.4.dev0
18ff97589d3f1adccd9aa451959dbfe97f67e29a
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.3" <add>__version__ = "2.2.4.dev0" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod...
1
Text
Text
remove dead links from /examples readme.md
1e7b4e9a5e45bb752435bd9470a234542762656b
<ide><path>examples/README.md <ide> <ide> [code-splitting-specify-chunk-name](code-splitting-specify-chunk-name) <ide> <del>[move-to-parent](move-to-parent) <del> <del>[multiple-commons-chunks](multiple-commons-chunks) <del> <del>[multiple-entry-points-commons-chunk-css-bundle](multiple-entry-points-commons-chunk-css...
1
PHP
PHP
fix method order
d020a40b977b49ce7adee04c6f520bb794804353
<ide><path>src/Illuminate/Foundation/Auth/AuthenticatesUsers.php <ide> public function postLogin(Request $request) <ide> return $this->login($request); <ide> } <ide> <del> /** <del> * Validate user login attributes. <del> * <del> * @param \Illuminate\Http\Request $request <del> * @retu...
1
Text
Text
fix single vs plural
280bcfa9f596a6747bdb99c5e416e924bc400644
<ide><path>docs/docs/typechecking-with-proptypes.md <ide> MyComponent.propTypes = { <ide> }; <ide> ``` <ide> <del>### Requiring Single Children <add>### Requiring Single Child <ide> <ide> With `React.PropTypes.element` you can specify that only a single child can be passed to a component as children. <ide>
1
Ruby
Ruby
remove strange alias for javascripthelper
5501166dec84e1dd63800ea25eaf23290216cf80
<ide><path>actionpack/lib/action_view/helpers/javascript_helper.rb <ide> def array_or_string_for_javascript(option) <ide> end <ide> end <ide> end <del> <del> JavascriptHelper = JavaScriptHelper unless const_defined? :JavascriptHelper <ide> end <ide> end
1
PHP
PHP
update doc block for errorhandler
a59445356c1e6871a12d0697fa10a43bce413455
<ide><path>lib/Cake/Error/ErrorHandler.php <ide> <?php <ide> /** <del> * Error handler <del> * <del> * Provides Error Capturing for Framework errors. <del> * <ide> * PHP 5 <ide> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * <ide> * @copyright Copyright (c) Cake Software Found...
1
Python
Python
prepare tools/install.py for python 3
b8fbe69db1292307adb2c2b2e0d5ef48c4ab2faf
<ide><path>tools/install.py <ide> #!/usr/bin/env python <ide> <add>from __future__ import print_function <ide> import ast <ide> import errno <ide> import os <ide> def load_config(): <ide> def try_unlink(path): <ide> try: <ide> os.unlink(path) <del> except OSError, e: <add> except OSError as e: <ide> if e.e...
1
PHP
PHP
remove incorrect documentation
d75423b271d426e984c58547c6bd6161584ae8db
<ide><path>Cake/Controller/Component/SecurityComponent.php <ide> class SecurityComponent extends Component { <ide> <ide> /** <ide> * Actions to exclude from POST validation checks. <del> * Other checks like requireAuth(), requireSecure(), <del> * requirePost(), requireGet() etc. will still be applied. <add> * Other c...
1
Javascript
Javascript
update imports in ember-runtime package tests
16c3c944a33a11f4bed4fd1f91bb47ce9d10897e
<ide><path>packages/ember-metal/lib/index.js <ide> export { <ide> } from './error_handler'; <ide> export { <ide> META_DESC, <del> meta <add> meta, <add> peekMeta <ide> } from './meta'; <ide> export { default as Error } from './error'; <ide> export { default as Cache } from './cache'; <ide> export { <ide> isWatch...
122
PHP
PHP
remove redundant tests around debug()
9e227f5ba189ef1faff23b7bc614e109e1f76352
<ide><path>src/Error/Debug/ConsoleFormatter.php <ide> public static function environmentMatches(): bool <ide> } <ide> <ide> /** <del> * {@inheritDoc} <add> * @inheritDoc <ide> */ <del> public function formatWrapper(string $contents, array $location) <add> public function formatWrapper(string...
6
Javascript
Javascript
remove support for a watch action to be a string
02c0ed27bc375d5352fefdd7e34aad9758621283
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * <ide> * - `string`: Evaluated as {@link guide/expression expression} <ide> * - `function(scope)`: called with current `scope` as a parameter. <del> * @param {(function()|string)=} listener Callback called whenev...
3
Python
Python
allow default values in writable serializer fields
d6d5b1d82a4ccc1a2fe29ff18e9ecf7c196a07a5
<ide><path>rest_framework/serializers.py <ide> def field_from_native(self, data, files, field_name, into): <ide> except KeyError: <ide> if self.required: <ide> raise ValidationError(self.error_messages['required']) <del> return <add> if self.default is None: <ad...
1
Ruby
Ruby
get all the callback tests to work on new base
196f780e30fcece25e4d09c12f9b9f7374ebed29
<ide><path>actionpack/lib/action_controller/abstract/callbacks.rb <ide> def _normalize_callback_options(options) <ide> end <ide> end <ide> <add> def skip_filter(*names, &blk) <add> skip_before_filter(*names, &blk) <add> skip_after_filter(*names, &blk) <add> skip_around_filter(*n...
3
Python
Python
remove redundant parentheses from python files
75071831baa936d292354f98aac46cd808a4b2b8
<ide><path>airflow/providers/exasol/hooks/exasol.py <ide> def set_autocommit(self, conn, autocommit: bool) -> None: <ide> """ <ide> if not self.supports_autocommit and autocommit: <ide> self.log.warning( <del> "%s connection doesn't support " "autocommit but autocommit activat...
2
Text
Text
update readme to init the submodule
ceda6aada8b90d58a17c5d132ddd4885aecc6e62
<ide><path>README.md <ide> To get a local copy of the current code, clone it using git: <ide> <ide> $ git clone git://github.com/mozilla/pdf.js.git pdfjs <ide> $ cd pdfjs <add> $ git submodule init <add> $ git submodule update <ide> <ide> Next, you need to start a local web server as some browsers don't...
1
Javascript
Javascript
restore es5 compatibility
e8087eccdb65465d36bea483e208db526188e575
<ide><path>Libraries/YellowBox/YellowBox.js <ide> if (__DEV__) { <ide> } <ide> }; <ide> <del> function registerWarning(...args): void { <add> const registerWarning = (...args): void => { <ide> YellowBoxRegistry.add({args, framesToPop: 2}); <del> } <add> }; <ide> } else { <del> // eslint-disable-next-lin...
1
Python
Python
add test for require, stop making extra copies
e744b031c20a9ca8fd550f2c51637cdbc8a40307
<ide><path>numpy/core/numeric.py <ide> def require(a, dtype=None, requirements=None): <ide> a : array_like <ide> The object to be converted to a type-and-requirement-satisfying array. <ide> dtype : data-type <del> The required data-type, the default data-type is float64). <add> The required d...
2
Python
Python
add randomized heap.
f0aa63f0f947180955ab3272dbd1e4ebf646032c
<ide><path>data_structures/heap/randomized_heap.py <add>#!/usr/bin/env python3 <add> <add>from __future__ import annotations <add> <add>import random <add>from typing import Generic, Iterable, List, Optional, TypeVar <add> <add>T = TypeVar("T") <add> <add> <add>class RandomizedHeapNode(Generic[T]): <add> """ <add> ...
1
Python
Python
fix a comment
b83f1e88b8450a80995e6ce1164960166a8af477
<ide><path>official/resnet/keras/resnet_cifar_model.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> # ============================================================================== <del>"""ResNet50 model for Keras adapted from tf.keras.applicat...
1
Go
Go
add file path to errors loading the key file
a90e91b500bb1a39a7726025973b5748148768c1
<ide><path>api/common.go <ide> func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) { <ide> return nil, fmt.Errorf("Error saving key file: %s", err) <ide> } <ide> } else if err != nil { <del> return nil, fmt.Errorf("Error loading key file: %s", err) <add> return nil, fmt.Errorf("Error loa...
1
Python
Python
remove unused imports
31cd05bd63850cbc969c0a5d5467073dbbec0ee9
<ide><path>libcloud/providers.py <ide> """ <ide> <ide> from libcloud.types import Provider <del>from libcloud.drivers.linode import LinodeNodeDriver as Linode <del>from libcloud.drivers.slicehost import SlicehostNodeDriver as Slicehost <del>from libcloud.drivers.rackspace import RackspaceNodeDriver as Rackspace <del> ...
1
Go
Go
fix issues with tailing rotated jsonlog file
84e60a7e10278e3acd2b783d0e6955dc5198b57c
<ide><path>daemon/logger/jsonfilelog/read.go <ide> package jsonfilelog <ide> import ( <ide> "bytes" <ide> "encoding/json" <add> "errors" <ide> "fmt" <ide> "io" <ide> "os" <ide> "time" <ide> <add> "gopkg.in/fsnotify.v1" <add> <ide> "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/logger" <ide...
1
Ruby
Ruby
introduce to_param to assert_redirected_to #880
409d56abda45ee380d6a903cbf835e7a770061d8
<ide><path>actionpack/lib/action_controller/assertions/action_pack_assertions.rb <ide> def assert_redirected_to(options = {}, message=nil) <ide> if options.is_a?(Symbol) <ide> response.redirected_to == options <ide> else <del> options.keys.all? { |k| options[k] == response.red...
1
PHP
PHP
remove unused var
8e7942b063d1bb0c8188f298177dcfb4e0141811
<ide><path>src/Illuminate/Cache/Repository.php <ide> protected function handleManyResult($keys, $key, $value) <ide> */ <ide> public function pull($key, $default = null) <ide> { <del> return tap($this->get($key, $default), function ($value) use ($key) { <add> return tap($this->get($key, $defau...
1
Python
Python
fix method typo in storagedriver (list_containers)
3c9b5e2517c111a62588cfa084af3807b97196a7
<ide><path>libcloud/storage/base.py <ide> def __init__(self, key, secret=None, secure=True, host=None, port=None, **kwargs <ide> super(StorageDriver, self).__init__(key=key, secret=secret, secure=secure, <ide> host=host, port=port, **kwargs) <ide> <del> def list_conta...
1
Ruby
Ruby
use coreformularepository, avoid duplicated logic
871ec755242f0ab174c06f582e192b2a26d085a0
<ide><path>Library/Homebrew/formula.rb <ide> def std_cmake_args <ide> # an array of all core {Formula} names <ide> # @private <ide> def self.core_names <del> @core_names ||= core_files.map { |f| f.basename(".rb").to_s }.sort <add> CoreFormulaRepository.instance.formula_names <ide> end <ide> <ide> # an ...
1
Ruby
Ruby
require used model to fix isolated tests
663e84638188421636232d7f7b762dc37a2609f1
<ide><path>activerecord/test/cases/relation/field_ordered_values_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "cases/helper" <add>require "models/author" <ide> require "models/post" <ide> require "models/book" <ide>
1
Javascript
Javascript
add test for setinterval
3886e183fd5f2cf69f84f9829a39e96a905233ec
<ide><path>test/test-setTimeout.js <ide> function onLoad () { <ide> // this timer shouldn't execute <ide> var id = setTimeout(function () { assertTrue(false); }, 500); <ide> clearTimeout(id); <add> <add> var count = 0; <add> setInterval(function () { <add> count += 1; <add> var endtime = new Date; <ad...
1
Go
Go
add xfs fs magic to graphdriver/driver.go
dd56fa190695a969673f6f663cd5fe78b7c22787
<ide><path>daemon/graphdriver/driver.go <ide> const ( <ide> FsMagicSmbFs = FsMagic(0x0000517B) <ide> FsMagicJffs2Fs = FsMagic(0x000072b6) <ide> FsMagicZfs = FsMagic(0x2fc12fc1) <add> FsMagicXfs = FsMagic(0x58465342) <ide> FsMagicUnsupported = FsMagic(0x00000000) <ide> ) <ide> <ide> var ( ...
1
Javascript
Javascript
implement htmlbars `each` helper
932bab101f01d59b41706294ae3a11fe1b2f7fc0
<ide><path>packages/ember-htmlbars/lib/helpers/each.js <add> <add>/** <add>@module ember <add>@submodule ember-handlebars <add>*/ <add>import Ember from "ember-metal/core"; // Ember.assert; <add> <add> <add>import { fmt } from "ember-runtime/system/string"; <add>import { get } from "ember-metal/property_get"; <add>impo...
5
Ruby
Ruby
upload bottles to archive.org
b0bd15fb41b711782e04d24b307dc515ef65aaa2
<ide><path>Library/Homebrew/archive.rb <add># typed: false <add># frozen_string_literal: true <add> <add>require "digest/md5" <add>require "utils/curl" <add> <add># Archive API client. <add># <add># @api private <add>class Archive <add> extend T::Sig <add> <add> include Context <add> include Utils::Curl <add> <add> ...
3
PHP
PHP
add dump method to collection class
bb5a955c2e146d8cf198ae5ac4c50bb28a194f58
<ide><path>src/Illuminate/Support/Collection.php <ide> use JsonSerializable; <ide> use IteratorAggregate; <ide> use InvalidArgumentException; <add>use Illuminate\Support\Debug\Dumper; <ide> use Illuminate\Support\Traits\Macroable; <ide> use Illuminate\Contracts\Support\Jsonable; <ide> use Illuminate\Contracts\Support\A...
1
Python
Python
fix array dispatcher
9a037558d66f54b27acd133b8b8e92f76717a849
<ide><path>numpy/lib/arraypad.py <ide> def _as_pairs(x, ndim, as_index=False): <ide> # Public functions <ide> <ide> <del>def _pad_dispatcher(array, pad_width, mode, **kwargs): <add>def _pad_dispatcher(array, pad_width, mode=None, **kwargs): <ide> return (array,) <ide> <ide> <ide><path>numpy/lib/tests/test_array...
2
Go
Go
write saved manifest.json in unix paths
0a49de4eb551510cf4aafa7d212ec2bb8041f642
<ide><path>image/tarexport/save.go <ide> import ( <ide> "io" <ide> "io/ioutil" <ide> "os" <add> "path" <ide> "path/filepath" <ide> "runtime" <ide> "time" <ide> func (s *saveSession) save(outStream io.Writer) error { <ide> } <ide> <ide> for _, l := range imageDescr.layers { <del> layers = append(layers, fil...
1
PHP
PHP
avoid failing tests by 1 second off
f8fef907c88d7ce0bd67e2d69b89b013b09db758
<ide><path>lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php <ide> public function testValidateHasManyRecordsPass() { <ide> * @return void <ide> */ <ide> public function testValidateNestedNumericSets() { <del> <add> <ide> $this->Controller->Security->startup($this->Controller); <ide> $key = $thi...
1
PHP
PHP
fix some docblocks and smaller things
5a6a46bcb8dfd556c1e84e47df77cee8fc108ad7
<ide><path>src/Illuminate/Cache/DynamoDbStore.php <ide> class DynamoDbStore implements Store <ide> /** <ide> * The name of the attribute that should hold the key. <ide> * <del> * @var string <add> * @var string <ide> */ <ide> protected $keyAttribute; <ide> <ide> /** <ide> * The...
1
Ruby
Ruby
avoid a new hash allocation
12815e0d44faf1154bebe5703577ff56c13688bc
<ide><path>activemodel/lib/active_model/validations/numericality.rb <ide> def validate_each(record, attr_name, value) <ide> option_value = record.send(option_value) if option_value.is_a?(Symbol) <ide> <ide> unless value.send(CHECKS[option], option_value) <del> record.errors.add(att...
1
Text
Text
fix minor issues reported in
e318c8a97a4adc2503d9c16a9af9f34df0e42d1b
<ide><path>doc/api/crypto.md <ide> console.log(encrypted); <ide> // Prints: ca981be48e90867604588e75d04feabb63cc007a8f8ad89b10616ed84d815504 <ide> ``` <ide> <del>### cipher.final([output_encoding]) <add>### cipher.final([outputEncoding]) <ide> <!-- YAML <ide> added: v0.1.94 <ide> --> <del>- `output_encoding` {string} ...
7
PHP
PHP
fix cache minutes
93baad51c57176d8363b3720b57415c3c4a669fe
<ide><path>src/Illuminate/Cache/Repository.php <ide> protected function getMinutes($duration) <ide> if ($duration instanceof DateTime) <ide> { <ide> $duration = Carbon::instance($duration); <del> } <ide> <del> if ($duration instanceof Carbon) <del> { <ide> return max(0, Carbon::now()->diffInMinutes($durat...
1
Javascript
Javascript
fix documentation on what ember.tryinvoke returns
b947b89ab37c3baabf8182f3592570a9da11f6d9
<ide><path>packages/ember-metal/lib/utils.js <ide> Ember.canInvoke = canInvoke; <ide> @param {String} methodName The method name to check for <ide> @param {Array} args The arguments to pass to the method <ide> <del> @returns {Boolean} true if the method does not return false <del> @returns {Boolean} false otherw...
1
Python
Python
expand japanese requirements warning
4724fa4cf4b24be92a15c39c564d571eeae1470a
<ide><path>spacy/lang/ja/__init__.py <ide> def try_sudachi_import(split_mode="A"): <ide> return tok <ide> except ImportError: <ide> raise ImportError( <del> "Japanese support requires SudachiPy: " "https://github.com/WorksApplications/SudachiPy" <add> "Japanese support requires...
1
Python
Python
fix qa example
fb6cccb86360f5d9ada2f177e914b28ff6bcaac7
<ide><path>src/transformers/modeling_electra.py <ide> def forward( <ide> model = ElectraForQuestionAnswering.from_pretrained('google/electra-base-discriminator') <ide> <ide> question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet" <del> input_ids = tokenizer.encode(question, text) ...
1
Ruby
Ruby
pull regexpoffsets in to a method
56f734a3615ad522a1dbaafc7442f19e4651640b
<ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb <ide> def optional_names <ide> }.map(&:name).uniq <ide> end <ide> <del> class RegexpOffsets < Journey::Visitors::Visitor # :nodoc: <del> attr_reader :offsets <del> <del> def initialize(matchers) <del> ...
1
Text
Text
fix nits in net.md
954bf56c1e9a4a1c195114f61d9b0fe39c80ca2e
<ide><path>doc/api/net.md <ide> as a string. <ide> const server = net.createServer((socket) => { <ide> socket.end('goodbye\n'); <ide> }).on('error', (err) => { <del> // handle errors here <add> // Handle errors here. <ide> throw err; <ide> }); <ide> <ide> Don't call `server.address()` until the `'listening'` eve...
1
Java
Java
add the necessary hints for use of cglib proxies
3086d90e7dc3bcff0cdd2e1c4c7eef401b0adc1e
<ide><path>spring-context/src/main/java/org/springframework/context/aot/GeneratedClassHandler.java <ide> class GeneratedClassHandler implements BiConsumer<String, byte[]> { <ide> <ide> private static final Consumer<Builder> asCglibProxy = hint -> <del> hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS); ...
2
Javascript
Javascript
propagate dirty state to parent forms
04329151d2df833f803629cefa781aa6409fe6a5
<ide><path>src/ng/directive/form.js <ide> function FormController(element, attrs) { <ide> element.removeClass(PRISTINE_CLASS).addClass(DIRTY_CLASS); <ide> form.$dirty = true; <ide> form.$pristine = false; <add> parentForm.$setDirty(); <ide> }; <ide> <ide> } <ide><path>test/ng/directive/formSpec.js <id...
2
Ruby
Ruby
fix handling of xquartz 2.8.0+
ab455d1f38220a358ec67b3bc32d5defa727ae80
<ide><path>Library/Homebrew/os/mac/xquartz.rb <ide> module XQuartz <ide> <ide> module_function <ide> <del> DEFAULT_BUNDLE_PATH = Pathname("Applications/Utilities/XQuartz.app").freeze <add> DEFAULT_BUNDLE_PATH = Pathname("/Applications/Utilities/XQuartz.app").freeze <add> NEW_BUNDLE_PKG_ID = "org....
1
Javascript
Javascript
evaluate new regexp
9d36bd46b35bae2824033c96a32c850188804533
<ide><path>lib/javascript/BasicEvaluatedExpression.js <ide> class BasicEvaluatedExpression { <ide> } <ide> } <ide> <add>/** <add> * @param {string} flags regexp flags <add> * @returns {boolean} is valid flags <add> */ <add>BasicEvaluatedExpression.isValidRegExpFlags = flags => { <add> const len = flags.length; <add> ...
5
Ruby
Ruby
incorporate suggestions from feedback
63aa1920883841fb0d6eb0c5513de63406d91879
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_cpuid_instruction(formula) <ide> objdump ||= Formula["binutils"].opt_bin/"objdump" if Formula["binutils"].any_version_installed? <ide> objdump ||= which("objdump") <ide> objdump ||= which("objdump", ENV["HOMEBREW_PATH"]) <del> objdump |...
1
Javascript
Javascript
add missing tests for animated.forkevent
f0d35904c9a1454569bd4b797bec305c843f9bda
<ide><path>Libraries/Animated/src/__tests__/Animated-test.js <ide> describe('Animated tests', () => { <ide> expect(listener.mock.calls.length).toBe(1); <ide> expect(listener).toBeCalledWith({foo: 42}); <ide> }); <del> it('should call forked event listeners', () => { <add> it('should call forked ev...
1
Javascript
Javascript
use a for loop instead of foreach() in dispatch()
5b586080b43ca233f78d56cbadf706c933fefd19
<ide><path>src/createStore.js <ide> export default function createStore(reducer, initialState, enhancer) { <ide> isDispatching = false <ide> } <ide> <del> listeners.slice().forEach(listener => listener()) <add> var currentListeners = listeners.slice() <add> for (var i = 0; i < currentListeners.lengt...
1
Text
Text
release notes for 1.1.5 and 1.0.7 releases
5cc9837d931dfb2d374bef24688888e0c52c75d1
<ide><path>CHANGELOG.md <add><a name="1.1.5"></a> <add># 1.1.5 triangle-squarification (2013-05-22) <add> <add>_Note: 1.1.x releases are [considered unstable](http://blog.angularjs.org/2012/07/angularjs-10-12-roadmap.html). <add>They pass all tests but we reserve the right to change new features/apis in between minor r...
1
Javascript
Javascript
require extractdependencies only once
31b4648a8aa589b952351796ad6f15a43560120c
<ide><path>packager/react-packager/src/node-haste/__tests__/DependencyGraph-test.js <ide> jest.mock('jest-haste-map/build/crawlers/node', () => { <ide> <ide> const mocksPattern = /(?:[\\/]|^)__mocks__[\\/]([^\/]+)\.js$/; <ide> <add>// This doesn't have state, and it's huge (Babel) so it's much faster to <add>// requi...
1
Text
Text
add text about error.code stability
1368eb893c4c6f282456210e9f8f54f53536d151
<ide><path>doc/api/errors.md <ide> not capture any frames. <ide> * {string} <ide> <ide> The `error.code` property is a string label that identifies the kind of error. <del>See [Node.js Error Codes][] for details about specific codes. <add>`error.code` is the most stable way to identify an error. It will only change be...
1
Ruby
Ruby
allow https on more download strategies
1a52c7f8644f0d6871c3c5fabd4bd7c124b3c9d3
<ide><path>Library/Homebrew/formula.rb <ide> def download_strategy <ide> when %r[^svn+http://] then SubversionDownloadStrategy <ide> when %r[^git://] then GitDownloadStrategy <ide> when %r[^https?://(.+?\.)?googlecode\.com/hg] then MercurialDownloadStrategy <del> when %r[^http://(.+?\.)?googlecode\.com/s...
1
Python
Python
fix exception string of branchpythonoperator
abdede8eaf4c82555850067d9a327ab519ffe44a
<ide><path>airflow/operators/python.py <ide> def execute(self, context: Dict): <ide> invalid_task_ids = branches - valid_task_ids <ide> if invalid_task_ids: <ide> raise AirflowException( <del> f"Branch callable must valid task_ids. Invalid tasks found: {invalid_task_ids}" <add...
2
Python
Python
update japanese tests
656574a01a2e2d12b26cfa63dea4076e3f93dc93
<ide><path>spacy/tests/lang/ja/test_tokenizer.py <ide> ] <ide> <ide> POS_TESTS = [ <del> ('日本語だよ', ['fish', 'NOUN', 'AUX', 'PART']), <del> ('東京タワーの近くに住んでいます。', ['PROPN', 'NOUN', 'ADP', 'NOUN', 'ADP', 'VERB', 'SCONJ', 'VERB', 'AUX', 'PUNCT']), <del> ('吾輩は猫である。', ['PRON', 'ADP', 'NOUN', 'AUX', 'VERB', 'PUNCT'])...
1
Javascript
Javascript
move duplicate spliceone into internal/util
7a71cd7d0c34b0de4d03cd931710aefdbc95c710
<ide><path>lib/events.js <ide> 'use strict'; <ide> <ide> var domain; <add>var spliceOne; <ide> <ide> function EventEmitter() { <ide> EventEmitter.init.call(this); <ide> EventEmitter.prototype.removeListener = <ide> <ide> if (position === 0) <ide> list.shift(); <del> else <add> else ...
3
Javascript
Javascript
prevent exception on empty em.select content
0e4873d1710a0546711c7b052027cbe417fd8ebb
<ide><path>packages/ember-handlebars/lib/controls/select.js <ide> Ember.Select = Ember.View.extend( <ide> content = get(this, 'content'), <ide> prompt = get(this, 'prompt'); <ide> <del> if (!get(content, 'length')) { return; } <add> if (!content || !get(content, 'length')) { return; } <ide> i...
1
Text
Text
add missing & in 'compare & pull request'
5dc3e31cba4d844d08126fd6d3379f5cd93eb689
<ide><path>docs/how-to-open-a-pull-request.md <ide> Some examples of good PRs titles would be: <ide> <ide> 1. Once the edits have been committed, you will be prompted to create a pull request on your fork's GitHub Page. <ide> <del> ![Image - Compare pull request prompt on GitHub](https://contribute.freecodecamp.org...
1
Ruby
Ruby
use better assertions
dd3d8a9060bc17377fcd8c79a8c3ba6019a34ea0
<ide><path>Library/Homebrew/test/test_language_module_dependency.rb <ide> def test_differing_module_and_import_name <ide> import_name = "bar" <ide> l = LanguageModuleDependency.new(:python, mod_name, import_name) <ide> assert_includes l.message, mod_name <del> assert l.the_test.one? { |c| c.include?(impo...
2
PHP
PHP
deprecate the rsshelper
2b5fa36a75b61ec30390142dddbe37c97ea98e90
<ide><path>src/View/Helper/RssHelper.php <ide> * @property \Cake\View\Helper\UrlHelper $Url <ide> * @property \Cake\View\Helper\TimeHelper $Time <ide> * @link http://book.cakephp.org/3.0/en/views/helpers/rss.html <add> * @deprecated 3.5.0 RssHelper is deprecated and will be removed in 4.0.0 <ide> */ <ide> class Rss...
1
Go
Go
fix endpoint error
c679b071f01a9dac7cdc49f8eca5d9560f5b4f55
<ide><path>libnetwork/endpoint.go <ide> func (ep *endpoint) hasInterface(iName string) bool { <ide> <ide> func (ep *endpoint) Leave(sbox Sandbox, options ...EndpointOption) error { <ide> if sbox == nil || sbox.ID() == "" || sbox.Key() == "" { <del> return types.BadRequestErrorf("invalid Sandbox passed to enpoint lea...
1
PHP
PHP
fix doc block
819bc16ef50819793350199819daf232c0c9a8ff
<ide><path>src/Console/Shell.php <ide> public function dispatchShell() { <ide> * you must define all the subcommands your shell needs, whether they be methods on this class <ide> * or methods on tasks. <ide> * <del> * @param string $command The command name to run on this shell. If this argument is empty, <del> * ...
1
Python
Python
fix schema generation for obtainauthtoken view.
609f708a27bd38496b912c44742287c57e7af912
<ide><path>rest_framework/authtoken/serializers.py <ide> <ide> <ide> class AuthTokenSerializer(serializers.Serializer): <del> username = serializers.CharField(label=_("Username")) <add> username = serializers.CharField( <add> label=_("Username"), <add> write_only=True <add> ) <ide> password...
3
Python
Python
improve validate_<fieldname> fix
69e62457ef80b40398a6b137f10d5a0e05c3f07f
<ide><path>rest_framework/serializers.py <ide> def perform_validation(self, attrs): <ide> Run `validate_<fieldname>()` and `validate()` methods on the serializer <ide> """ <ide> for field_name, field in self.fields.items(): <del> if field_name not in self._errors: <del> ...
1
Go
Go
use cgo to get systems clock ticks for metrics
004cf556e86a03d8961416b3e8a0a476a424b10f
<ide><path>pkg/cgroups/fs/cpuacct.go <ide> import ( <ide> "github.com/dotcloud/docker/pkg/system" <ide> ) <ide> <del>var cpuCount = float64(runtime.NumCPU()) <add>var ( <add> cpuCount = float64(runtime.NumCPU()) <add> clockTicks = float64(system.GetClockTicks()) <add>) <ide> <ide> type cpuacctGroup struct { <ide> ...
4
Java
Java
use unsubscribed check instead of a null check
14fcc22ec431e87b88f99a7d5498c321127dd48d
<ide><path>src/main/java/rx/subscriptions/CompositeSubscription.java <ide> /** <ide> * Copyright 2014 Netflix, Inc. <del> * <add> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use this file except in compliance with the License. <ide> * You may obtain a copy of the L...
1
PHP
PHP
add support for jsonserializable
cd1278d535d0e4b7ae405b58ef688fb16b3296bd
<ide><path>lib/Cake/ORM/ResultSet.php <ide> <ide> use Cake\Database\Type; <ide> use \Iterator; <add>use \JsonSerializable; <ide> use \Serializable; <ide> <ide> /** <ide> * queries required for eager loading external associations. <ide> * <ide> */ <del>class ResultSet implements Iterator, Serializable { <add>class ...
2
Go
Go
fix usage of some variables
57e14714ee85e67f59d8c22aed23dc875cf2e58c
<ide><path>libcontainerd/client_windows.go <ide> func (clnt *client) Signal(containerID string, sig int) error { <ide> } else { <ide> // Terminate Process <ide> if err := cont.hcsProcess.Kill(); err != nil { <add> // ignore errors <ide> logrus.Warnf("Failed to terminate pid %d in %s: %q", cont.systemPid, cont...
2
PHP
PHP
fix bad tests
a38e4201e19b7e7e7ec7356031d3f12abb381e6f
<ide><path>tests/Database/DatabaseEloquentModelTest.php <ide> public function testModelAttributesAreCastedWhenPresentInCastsArray() <ide> { <ide> $model = new EloquentModelCastingStub; <ide> $model->setDateFormat('Y-m-d H:i:s'); <del> $model->first = '3'; <del> $model->second = '4.0'; ...
1
Text
Text
improve contributing text
66d97744e9b9bd8b48058ae93b7f95889f307c85
<ide><path>CONTRIBUTING.md <ide> Our Commitment to Open Source can be found [here](https://zeit.co/blog/oss) <ide> 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device. <ide> 2...
1
PHP
PHP
convert test to an integration test
f2511cb98df28595ce08dfde9eed120ad93433de
<ide><path>tests/TestCase/Shell/CompletionShellTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Shell; <ide> <del>use Cake\Console\ConsoleIo; <del>use Cake\TestSuite\Stub\ConsoleOutput as StubOutput; <del>use Cake\TestSuite\TestCase; <add>use Cake\Console\Shell; <add>use Cake\TestSuite\ConsoleIntegrationTestCase;...
1
Text
Text
add guide article and update its challenge
6078081a3feba4647beb67cb94c95f34cd214841
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.english.md <ide> videoUrl: 'https://www.freecodecamp.org/news/how-recursion-works-explained-with- <ide> <ide> ## Description <ide> <section id='description'> <del>Recursion is the concep...
2
Javascript
Javascript
remove confusing abstraction
24d9c94fe5f12dfd1f2d9058a4d8b8fa0efe3230
<ide><path>client/utils/buildChallenges.js <ide> const _ = require('lodash'); <ide> <ide> const { <ide> getChallengesForLang, <del> createChallengeCreator, <add> createChallenge, <ide> challengesDir, <ide> getChallengesDirForLang <ide> } = require('../../curriculum/getChallenges'); <ide> const { curriculumLoca...
3