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
Ruby
Ruby
remove unnecessary lasgn
2a5218dacc4bc6ef574279d5ddf069c33b8b3802
<ide><path>Library/Homebrew/build.rb <ide> def detect_stdlibs <ide> # of software installs an executable that links against libstdc++ <ide> # and dylibs against libc++, libc++-only dependencies can safely <ide> # link against it. <del> stdlibs = keg.detect_cxx_stdlibs :skip_executables => true <add> k...
1
Javascript
Javascript
allow circular references
d3aafd02efd3a403d646a3044adcf14e63a88d32
<ide><path>lib/assert.js <ide> assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { <ide> } <ide> }; <ide> <del>function _deepEqual(actual, expected, strict) { <add>function _deepEqual(actual, expected, strict, memos) { <ide> // 7.1. All identical values are equivalent, as determined by =...
2
Javascript
Javascript
improve tab completion coverage
68e6673224365120f50286169148539c7043efd8
<ide><path>test/parallel/test-readline-tab-complete.js <ide> common.skipIfDumbTerminal(); <ide> const width = getStringWidth(char) - 1; <ide> <ide> class FakeInput extends EventEmitter { <del> columns = ((width + 1) * 10 + (lineBreak ? 0 : 10)) * 3 <add> columns = ((width + 1) * 10 + (lineBreak ? 0 : 1...
1
Go
Go
remove job from `docker top`
3e096cb9c9e9d708df7982be5694daaa62bb4849
<ide><path>api/client/top.go <ide> package client <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <ide> "net/url" <ide> "strings" <ide> "text/tabwriter" <ide> <del> "github.com/docker/docker/engine" <add> "github.com/docker/docker/api/types" <ide> flag "github.com/docker/docker/pkg/mflag" <ide> ) <ide> <...
5
Mixed
Ruby
add relation#find_or_create_by and friends
eb72e62c3042c0df989d951b1d12291395ebdb8e
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Add `find_or_create_by`, `find_or_create_by!` and <add> `find_or_initialize_by` methods to `Relation`. <add> <add> These are similar to the `first_or_create` family of methods, but <add> the behaviour when a record is cre...
5
Mixed
Javascript
remove watcher state errors for fs.watch
301f6cc553bd73cfa345ae7de6ee81655efc57d0
<ide><path>doc/api/errors.md <ide> falsy value. <ide> An invalid symlink type was passed to the [`fs.symlink()`][] or <ide> [`fs.symlinkSync()`][] methods. <ide> <del><a id="ERR_FS_WATCHER_ALREADY_STARTED"></a> <del>### ERR_FS_WATCHER_ALREADY_STARTED <del> <del>An attempt was made to start a watcher returned by `fs.wa...
4
PHP
PHP
fix method order
7bac330c68a5ad23f24918d310fd55722d5f1d00
<ide><path>src/Illuminate/Pagination/Paginator.php <ide> public function __construct(Factory $factory, array $items, $total, $perPage = n <ide> if (is_null($perPage)) <ide> { <ide> $this->perPage = (int) $total; <del> $this->items = array_slice($items, 0, $this->perPage); <ide> $this->hasMore = count($items...
1
Text
Text
improve the doc of the 'information' event
0a5a762a16224479003dd44b7855b236fc481de9
<ide><path>doc/api/http.md <ide> the client should send the request body. <ide> added: v10.0.0 <ide> --> <ide> <del>Emitted when the server sends a 1xx response (excluding 101 Upgrade). This <del>event is emitted with a callback containing an object with a status code. <add>* `info` {Object} <add> * `statusCode` {int...
1
Text
Text
update build badge
dcee2eac68e0c1b4061c94c69e920ed2d42f42f2
<ide><path>README.md <del># The Algorithms - Python <!-- [![Build Status](https://travis-ci.org/TheAlgorithms/Python.svg)](https://travis-ci.org/TheAlgorithms/Python) --> <add># The Algorithms - Python <ide> [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg?logo=paypal&style=flat-square)](https://www.payp...
1
Text
Text
add a note about breaking changes
d07fb284628076518ee15e2240b3eea1456e56ca
<ide><path>docs/developers/contributing.md <ide> New contributions to the library are welcome, but we ask that you please follow <ide> - Check that your code will pass tests, `gulp test` will run tests for you. <ide> - Keep pull requests concise, and document new functionality in the relevant `.md` file. <ide> - Consid...
1
Text
Text
add lost params for including stetho
5daf1cfa6d773ed51e08510230abd0d2ce7506ca
<ide><path>docs/Debugging.md <ide> The debugger will receive a list of all project roots, separated by a space. For <ide> 2. In ```android/app/src/main/java/com/{yourAppName}/MainApplication.java```, add the following imports: <ide> <ide> ```java <add> import android.os.Bundle; <ide> import com.facebook.react...
1
Javascript
Javascript
throw check in test-zlib-write-after-close
817b28b4e4cc35aa6c3e5ad3be37aafc0b539d45
<ide><path>test/parallel/test-zlib-write-after-close.js <ide> const zlib = require('zlib'); <ide> zlib.gzip('hello', common.mustCall(function(err, out) { <ide> const unzip = zlib.createGunzip(); <ide> unzip.close(common.mustCall(function() {})); <del> assert.throws(function() { <del> unzip.write(out); <del> })...
1
Go
Go
fix panic on error looking up volume driver
5baf8a411899b1aa39f921df8debfd925491be68
<ide><path>volume/store/store.go <ide> func (s *VolumeStore) Remove(v volume.Volume) error { <ide> <ide> vd, err := volumedrivers.GetDriver(v.DriverName()) <ide> if err != nil { <del> return &OpErr{Err: err, Name: vd.Name(), Op: "remove"} <add> return &OpErr{Err: err, Name: v.DriverName(), Op: "remove"} <ide> } <...
1
Python
Python
remove unused import
c8282437a7f75f9c3af7a1b2ad57297be41863ff
<ide><path>keras/applications/imagenet_utils.py <del>import numpy as np <ide> import json <ide> <ide> from ..utils.data_utils import get_file
1
Text
Text
remove dependancy status badge
e98767ecee543048d448f1476673eee5840510e8
<ide><path>README.md <ide> # Atom <ide> <ide> [![Build status](https://dev.azure.com/github/Atom/_apis/build/status/Atom%20Production%20Branches?branchName=master)](https://dev.azure.com/github/Atom/_build/latest?definitionId=32&branchName=master) <del>[![Dependency Status](https://david-dm.org/atom/atom.svg)](https:/...
1
Text
Text
add npm info to getting started doc
b87106c1817d380576fbd6fc1ae1e7928d38b6ba
<ide><path>docs/00-Getting-Started.md <ide> You can also grab Chart.js using bower: <ide> bower install Chart.js --save <ide> ``` <ide> <add>or NPM: <add> <add>```bash <add>npm install chart.js --save <add>``` <add> <ide> Also, Chart.js is available from CDN: <ide> <ide> https://cdnjs.cloudflare.com/ajax/libs/Chart.j...
1
Text
Text
add docs about nextruntime for custom webpack
d1db7141ba029acbafcec3684e469611c59b43ad
<ide><path>docs/api-reference/next.config.js/custom-webpack-config.md <ide> The second argument to the `webpack` function is an object with the following pr <ide> - `buildId`: `String` - The build id, used as a unique identifier between builds <ide> - `dev`: `Boolean` - Indicates if the compilation will be done in deve...
1
Python
Python
add test for ticket #324
1ce64f75d452492caa9bffbb36d4b3711c3e4e23
<ide><path>numpy/core/tests/test_regression.py <ide> def check_object_array_assign(self, level=rlevel): <ide> x.flat[2] = (1,2,3) <ide> assert_equal(x.flat[2],(1,2,3)) <ide> <add> def check_ndmin_float64(self, level=rlevel): <add> """Ticket #324""" <add> x = N.array([1,2,3],dty...
1
PHP
PHP
use a get wrapper to avoid null issues
f9bae5b1f50c13f19fd273c6a6dfeeb134525b79
<ide><path>src/Mailer/Transport/SmtpTransport.php <ide> public function __destruct() <ide> */ <ide> public function __wakeup() <ide> { <del> /** @psalm-suppress PossiblyNullPropertyAssignmentValue */ <ide> $this->_socket = null; <ide> } <ide> <ide> public function connected(): bool <ide...
1
Go
Go
add netns strategy
f52b2fdcbb29258c5b492fdb2479d473fcb42ca0
<ide><path>pkg/libcontainer/network/netns.go <add>package network <add> <add>import ( <add> "fmt" <add> "os" <add> "syscall" <add> <add> "github.com/dotcloud/docker/pkg/libcontainer" <add> "github.com/dotcloud/docker/pkg/system" <add>) <add> <add>// crosbymichael: could make a network strategy that instead of returnin...
2
Javascript
Javascript
allow "section/" links pointing to "section/index"
238094310694f0755e6089bf92c36d0ff55fe626
<ide><path>docs/spec/ngdocSpec.js <ide> describe('ngdoc', function(){ <ide> expect(doc.convertUrlToAbsolute('angular.widget')).toEqual('section/angular.widget'); <ide> }); <ide> <add> it('should change id to index if not specified', function() { <add> expect(doc.convertUrlToAbsolute('...
2
Java
Java
eliminate windowuntil from stringdecoder
d55210551612e7ded3a068818ebc76a1e151bab3
<ide><path>spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java <ide> <ide> import org.springframework.core.ResolvableType; <ide> import org.springframework.core.io.buffer.DataBuffer; <add>import org.springframework.core.io.buffer.DataBufferLimitException; <ide> import org.springframework.core.i...
3
Python
Python
fix some docstring typos
b15219689f57ac41b3b7f79708c457cc9693fa5d
<ide><path>celery/task/base.py <ide> class TaskType(type): <ide> Automatically registers the task in the task registry, except <ide> if the ``abstract`` attribute is set. <ide> <del> If no ``name`` attribute is provieded, the name is automatically <add> If no ``name`` attribute is provided, the name is a...
1
Javascript
Javascript
remove useless hasownproperty checks
69521477a1f77c8c149c166c5c6b77a93bb3a009
<ide><path>src/core/core.element.js <ide> module.exports = function(Chart) { <ide> <ide> helpers.each(this._model, function(value, key) { <ide> <del> if (key[0] === '_' || !this._model.hasOwnProperty(key)) { <add> if (key[0] === '_') { <ide> // Only non-underscored properties <ide> ...
2
Python
Python
remove dead code in tests
40255ab00207f343d5e913c616c20f0f79504bfe
<ide><path>transformers/tests/modeling_tf_common_test.py <ide> def test_attention_outputs(self): <ide> self.model_tester.seq_length, <ide> self.model_tester.key_len if hasattr(self.model_tester, 'key_len') else self.model_tester.seq_length]) <ide> <del> def test_headmaski...
1
Ruby
Ruby
clarify the need to run command twice
2af9c080799c25a0bb4f6f6b8d2685b6c0e47299
<ide><path>railties/test/commands/dev_cache_test.rb <ide> def teardown <ide> <ide> test 'dev:cache deletes file and outputs message' do <ide> Dir.chdir(app_path) do <del> output = `rails dev:cache` <del> output = `rails dev:cache` <add> `rails dev:cache` # Create caching file. <a...
1
PHP
PHP
fix cs error
8802e1fd42b3a4d1cb5e57e365039434ce483fde
<ide><path>tests/TestCase/Mailer/EmailTest.php <ide> use Cake\Log\Log; <ide> use Cake\Mailer\Email; <ide> use Cake\Mailer\Transport\DebugTransport; <del>use Cake\Mailer\TransportFactory; <ide> use Cake\TestSuite\TestCase; <ide> use Exception; <ide> use SimpleXmlElement;
1
Go
Go
remove unused requireschema2
85fddc0081339ea12e6c7bd71f702aa737f589b2
<ide><path>distribution/config.go <ide> type Config struct { <ide> // ReferenceStore manages tags. This value is optional, when excluded <ide> // content will not be tagged. <ide> ReferenceStore refstore.Store <del> // RequireSchema2 ensures that only schema2 manifests are used. <del> RequireSchema2 bool <ide> } <id...
3
PHP
PHP
fix typo that was causing tests to fail
7ab598656d07646323cc942aba4a5e49c28479d3
<ide><path>lib/Cake/Network/Email/SmtpTransport.php <ide> protected function _connect() { <ide> $this->_socket->enableCrypto('tls'); <ide> $this->_smtpSend("EHLO {$host}", '250'); <ide> } <del> } catch (Errpr\SocketException $e) { <add> } catch (Error\SocketException $e) { <ide> if ($this->_config['tls'...
1
Python
Python
add vision_encoder_decoder to models/__init__.py
840fc8dbca9cfcfaaa6a2f7333294c7b740ed775
<ide><path>src/transformers/models/__init__.py <ide> t5, <ide> tapas, <ide> transfo_xl, <add> vision_encoder_decoder, <ide> visual_bert, <ide> vit, <ide> wav2vec2, <ide><path>utils/check_repo.py <ide> def get_model_modules(): <ide> "modeling_tf_pytorch_utils", <ide> "modeling_...
2
Javascript
Javascript
fix app crash caused by textinput
53d18c83c8de220d3da5f30271a2e9a0765b8df2
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> var TextInput = React.createClass({ <ide> this.props.onChange && this.props.onChange(event); <ide> this.props.onChangeText && this.props.onChangeText(text); <ide> <add> if (!this.refs.input) { <add> // calling `this.props.onChange` or `this.p...
1
PHP
PHP
use self and static
ce821c04a0fe042892629217701307253626cf72
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function touchOwners() <ide> { <ide> $this->$relation()->touch(); <ide> <del> if ($this->$relation instanceof Model) <add> if ($this->$relation instanceof self) <ide> { <ide> $this->$relation->touchOwners(); <ide> } <ide><path>src/Il...
3
Python
Python
add a high max for mlperf tests so they are green.
2533c6978e9b57d8d8dfd6f11bcedcdd73d2f15d
<ide><path>official/recommendation/ncf_keras_benchmark.py <ide> def _run_and_report_benchmark_mlperf_like(self): <ide> Note: MLPerf like tests are not tuned to hit a specific hr@10 value, but <ide> we want it recorded. <ide> """ <del> self._run_and_report_benchmark(hr_at_10_min=0.61) <add> self._run_a...
1
Text
Text
use function form of this.setstate
5de58ad98d5047e6a00e9a298fcf2f01f83e5da6
<ide><path>curriculum/challenges/english/03-front-end-libraries/react/bind-this-to-a-class-method.english.md <ide> One common way is to explicitly bind <code>this</code> in the constructor so <co <ide> <ide> ## Instructions <ide> <section id='instructions'> <del>The code editor has a component with a <code>state</code...
5
Text
Text
remove redundant table of contents for n-api
d3abb60b050858af6d5dff7fdd67cf94c76936b8
<ide><path>doc/api/n-api.md <ide> properties: <ide> using `napi_get_last_error_info`. More information can be found in the error <ide> handling section [Error Handling][]. <ide> <del>The documentation for N-API is structured as follows: <del> <del>* [Basic N-API Data Types][] <del>* [Error Handling][] <del>* [Obje...
1
Python
Python
fix libcloud connection class
366310b2694bbbbb306998eadfa12c05e561c005
<ide><path>libcloud/utils/loggingconnection.py <ide> from pipes import quote as pquote <ide> from xml.dom.minidom import parseString <ide> <del>import sys <ide> import os <ide> <ide> from libcloud.common.base import (LibcloudConnection, <del> HTTPResponse, <ide> ...
1
Javascript
Javascript
remove unneeded `--expose-internals`
556de23dfbc829903f97b0a253ae71c1414fab13
<ide><path>test/wpt/test-timers.js <ide> 'use strict'; <ide> <del>// Flags: --expose-internals <del> <ide> require('../common'); <ide> const { WPTRunner } = require('../common/wpt'); <ide>
1
Python
Python
obtain sentence for each mention
4392c01b7bfb22e435249128ac15c196c5b50bd1
<ide><path>examples/pipeline/wiki_entity_linking/run_el.py <ide> def is_dev(file_name): <ide> return file_name.endswith("3.txt") <ide> <ide> <del>def evaluate(predictions, golds, to_print=True): <add>def evaluate(predictions, golds, to_print=True, times_hundred=True): <ide> if len(predictions) != len(golds): ...
3
Javascript
Javascript
pass options to scrollintoview
044e6ba9cd217a079d99a2274b3bf5f5e6d70875
<ide><path>src/devtools/views/Element.js <ide> export default function ElementView({ index, style }: Props) { <ide> const component = useRef(null); <ide> useEffect(() => { <ide> if (isSelected && component.current !== null) { <del> component.current.scrollIntoView(); <add> component.current.scrollInto...
1
PHP
PHP
fix tests under testsuite namespace
5182d862348f90e781857404e52e0be1d52e9849
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> public function implementedEvents() <ide> return [ <ide> 'Controller.startup' => 'startup', <ide> 'Controller.beforeRender' => 'beforeRender', <del> 'Controller.beforeRedirect' => 'beforeRedirect', <ide> ...
4
Javascript
Javascript
fix timeout reset after keep-alive timeout
d71718db6aa4feb8dc10edbad1134472468e971a
<ide><path>lib/_http_server.js <ide> function socketOnData(server, socket, parser, state, d) { <ide> assert(!socket._paused); <ide> debug('SERVER socketOnData %d', d.length); <ide> <del> if (state.keepAliveTimeoutSet) { <del> socket.setTimeout(0); <del> if (server.timeout) { <del> socket.setTimeout(ser...
3
Text
Text
fix typo in changelog for 8.8.0
57a716febd9fe6b4e5d39e1f7d03094019bd211e
<ide><path>doc/changelogs/CHANGELOG_V8.md <ide> * **crypto**: <ide> - expose ECDH class [#8188](https://github.com/nodejs/node/pull/8188) <ide> * **http2**: <del> - http2 is now exposed by defualt without the need for a flag [#15685](https://github.com/nodejs/node/pull/15685) <add> - http2 is now exposed by default...
1
Javascript
Javascript
inline cache mock for dependencygraph-test
666706b0da142d3d13668066c1b1ef14607f681d
<ide><path>packager/react-packager/__mocks__/debug.js <ide> */ <ide> 'use strict'; <ide> <del>module.exports = function() { <del> return function() {}; <del>}; <add>module.exports = () => () => {}; <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js <ide> jest....
3
Text
Text
remove description of `dependency_loading` option
19ede1f85dc802c81ac80eed29b4e36a6b5b2286
<ide><path>guides/source/configuring.md <ide> application. Accepts a valid week day symbol (e.g. `:monday`). <ide> end <ide> ``` <ide> <del>* `config.dependency_loading` is a flag that allows you to disable constant autoloading setting it to false. It only has effect if `config.cache_classes` is true, which it...
1
Javascript
Javascript
remove outdated comment
727ef10fdfd3c3710248f1567f291d925a589b64
<ide><path>src/renderers/webgl/WebGLLights.js <ide> function WebGLLights( extensions, capabilities ) { <ide> <ide> const uniforms = cache.get( light ); <ide> <del> // (a) intensity is the total visible light emitted <del> //uniforms.color.copy( color ).multiplyScalar( intensity / ( light.width * light.heigh...
1
Python
Python
use six.text_type for hyperlink names
b1b47036d756475faad8e03f7eb2f3f93aac2107
<ide><path>rest_framework/relations.py <ide> def get_url(self, obj, view_name, request, format): <ide> return self.reverse(view_name, kwargs=kwargs, request=request, format=format) <ide> <ide> def get_name(self, obj): <del> return str(obj) <add> return six.text_type(obj) <ide> <ide> def ...
1
Go
Go
use device/inode of the root dir, not the image
e6a73e65a23163273fa63d54b8f12530f7eef104
<ide><path>devmapper/deviceset_devmapper.go <ide> func (devices *DeviceSetDM) initDevmapper() error { <ide> return err <ide> } <ide> <del> // Set the device prefix from the device id and inode of the data image <add> // Set the device prefix from the device id and inode of the docker root dir <ide> <del> st, err :...
1
Text
Text
fix layout problem in v4 changelog
9744928cf5fae9b2a5a5c88f7aeeeb3a01220afe
<ide><path>CHANGELOG.md <ide> release. <ide> ---- <ide> ---- <ide> <del>## 2016-06-23, Version 5.12.0 (Stable), @evanlucas <del> <del><a href="doc/changelogs/CHANGELOG_V5.md#5.12.0">Moved to doc/changelogs/CHANGELOG_V5.md#5.12.0</a>. <del> <del>## 2016-06-23, Version 4.4.6 'Argon' (LTS), @thealphanerd <del> <del><a hr...
2
Javascript
Javascript
replace indexof with includes
9564c20810d7dccaae8bb917251681051a2a1144
<ide><path>test/async-hooks/init-hooks.js <ide> class ActivityCollector { <ide> const violations = []; <ide> function v(msg) { violations.push(msg); } <ide> for (const a of this._activities.values()) { <del> if (types != null && types.indexOf(a.type) < 0) continue; <add> if (types != null && !type...
2
Ruby
Ruby
add test showing root match in path namespace
561d9eff0c5702c449a2a0117ad9950ad8842dc2
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def self.matches?(request) <ide> <ide> namespace :path => :api do <ide> resource :me <add> match '/' => 'mes#index' <ide> end <ide> end <ide> end <ide> def test_path_namespace <ide> get '/api/me' <ide> assert_equal '...
1
Python
Python
create dummy connection correctly
e2a8ab10d4ce790a60920544d186e5cc97909a24
<ide><path>libcloud/drivers/dummy.py <ide> def __init__(self, creds): <ide> driver=self, <ide> extra={'foo': 'bar'}), <ide> ] <add> self.connection = DummyConnection(self.creds) <ide> <ide> def get_uuid(self, unique_field=None): <ide> return str(uuid.uuid4()...
1
Text
Text
add iterm2 introduction
3f512e0af428f0dae78283fc9f5be89c8d8bf03e
<ide><path>client/src/pages/guide/english/terminal-commandline/macos-terminal/index.md <ide> Use the following syntax to delete a file <ide> <ide> **rm _#PATH_TO_FILE_** <ide> <add># iTerm2 <ide> <add>iTerm2 is an alternative to the legacy terminal in Mac OS. iTerm2 brings some new features such as: <ide> <add>* Sp...
1
Text
Text
remove appmetrics from tierlist
92cd72626eb3e335ba2f52cb026ea2d037d90e2b
<ide><path>doc/contributing/diagnostic-tooling-support-tiers.md <ide> The tools are currently assigned to Tiers as follows: <ide> | Debugger | Command line Debug Client | ? | Yes | 1 | <ide> | Tracing | trace\_events (API) | No ...
1
Java
Java
remove deprecated methods in spring-test-mvc
2748f2b8eba22264408f2a05725810b58e80649d
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/mock/client/match/MockRestRequestMatchers.java <ide> public static XpathRequestMatchers xpath(String expression, Map<String, String> <ide> return new XpathRequestMatchers(expression, namespaces, args); <ide> } <ide> <del> <del> // Deprecated meth...
2
Ruby
Ruby
fix a bug with time_select and prompts
46e2901f12e48dbe86eba416097d7546d215c790
<ide><path>actionview/lib/action_view/helpers/date_helper.rb <ide> def select_year <ide> end <ide> end <ide> <add> def prompt_text(prompt, type) <add> prompt.kind_of?(String) ? prompt : I18n.translate(:"datetime.prompts.#{type}", locale: @options[:locale]) <add> end <add> <ide>...
2
Python
Python
add generic connection type
6d1d53b780c48297fa2e6d8e075fdaa0f0f42e22
<ide><path>airflow/www/views.py <ide> def _get_connection_types() -> List[Tuple[str, str]]: <ide> ('fs', 'File (path)'), <ide> ('mesos_framework-id', 'Mesos Framework ID'), <ide> ('email', 'Email'), <add> ('generic', 'Generic'), <ide> ] <ide> providers_mana...
1
Python
Python
apply unicode fixer
3a5c5475b5c2043dbe6791d3a5100a45d491546e
<ide><path>doc/sphinxext/numpydoc/docscrape_sphinx.py <ide> from __future__ import division, absolute_import, print_function <ide> <del>import re, inspect, textwrap, pydoc <add>import re, inspect, textwrap, pydoc, aya <ide> import sphinx <ide> import collections <ide> from .docscrape import NumpyDocString, FunctionDoc...
17
Java
Java
use assertj in annotationattributestests
03dd45fbd62bdc158bf31098fd54cf5de3da2026
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotationAttributesTests.java <ide> public void typeSafeAttributeAccess() { <ide> @Test <ide> public void unresolvableClassWithClassNotFoundException() throws Exception { <ide> attributes.put("unresolvableClass", new ClassNotFoundException("m...
1
PHP
PHP
add reply-to on config for mailer
4f3813069fc00a595673afb4a074d18002aa1c06
<ide><path>src/Illuminate/Mail/MailServiceProvider.php <ide> public function register() <ide> if (is_array($to) && isset($to['address'])) { <ide> $mailer->alwaysTo($to['address'], $to['name']); <ide> } <add> <add> $replyTo = $app['config']['mail.reply-to'];...
2
Text
Text
add £450, £400, £100 and £50 tiers
ec50f2ed89975fcdf081b9002e8645754cc92bbe
<ide><path>SUPPORTERS.md <ide> # Kickstarter Supporters <ide> <ide> This file contains a list of the awesome people who gave £5 or more to <del>[our Kickstarter](http://www.kickstarter.com/projects/homebrew/brew-test-bot). <add>[our Kickstarter](http://www.kickstarter.com/projects/homebrew/brew-test-bot). <ide> <ide...
1
Text
Text
improve test robustness
be4070a73dbc05eb4d4dbfef6dbdaee16e0b34a9
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/make-a-person.english.md <ide> tests: <ide> <ide> ```js <ide> var Person = function(firstAndLast) { <add> // Only change code below this line <ide> // Complete the method below and implement the ot...
1
Mixed
Ruby
add allocations to template renderer subscription
e8c1be4ae7797f3ede588d2cf04a0155b4d6ce4a
<ide><path>actionpack/lib/action_controller/log_subscriber.rb <ide> def start_processing(event) <ide> <ide> def process_action(event) <ide> info do <del> payload = event.payload <add> payload = event.payload <ide> additions = ActionController::Base.log_process_action(payload) <del> <i...
5
Ruby
Ruby
rework the routing documentation
5ead15b07597e9cdb887cfe6aa74de4a14140bb1
<ide><path>actionpack/lib/action_dispatch/routing.rb <ide> require 'active_support/core_ext/regexp' <ide> <ide> module ActionDispatch <del> # = Routing <del> # <ide> # The routing module provides URL rewriting in native Ruby. It's a way to <ide> # redirect incoming requests to controllers and actions. This repla...
1
Go
Go
change alias for oci-specs to match existing code
91bd9a6642699edaa1cee76cbf712baa2ba374a1
<ide><path>daemon/containerd/service.go <ide> import ( <ide> "github.com/docker/docker/image" <ide> "github.com/docker/docker/layer" <ide> "github.com/opencontainers/go-digest" <del> ocispec "github.com/opencontainers/image-spec/specs-go/v1" <add> specs "github.com/opencontainers/image-spec/specs-go/v1" <ide> ) <ide...
1
Javascript
Javascript
fix spelling/grammar in test comment
c8d9957f68b4cd9891bf529a018338673e5b51ce
<ide><path>src/core/__tests__/ReactCompositeComponent-test.js <ide> describe('ReactCompositeComponent', function() { <ide> <ide> it('should give context for PropType errors in nested components.', () => { <ide> // In this test, we're making sure that if a proptype error is found in a <del> // component, we gi...
1
Python
Python
fix typo in training_args_tf.py
d441f8d29dedeb0b64277f5323787a891b207a9a
<ide><path>src/transformers/training_args_tf.py <ide> class TFTrainingArguments(TrainingArguments): <ide> If a value is passed, will limit the total amount of checkpoints. Deletes the older checkpoints in <ide> :obj:`output_dir`. <ide> no_cuda (:obj:`bool`, `optional`, defaults to :obj:`...
1
Javascript
Javascript
use lru for encoded strings
255385d25545796023a049df65461abdd49a61be
<ide><path>src/utils.js <ide> // @flow <ide> <add>const LRU = require('lru-cache'); <add> <ide> const FB_MODULE_RE = /^(.*) \[from (.*)\]$/; <ide> const cachedDisplayNames: WeakMap<Function, string> = new WeakMap(); <ide> <add>// On large trees, encoding takes significant time. <add>// Try to reuse the already encode...
1
Python
Python
improve quine–mccluskey algorithm
9af2eef9b3761bf51580dedfb6fa7136ca0c5c2c
<ide><path>boolean_algebra/quine_mc_cluskey.py <ide> from __future__ import annotations <ide> <add>from typing import Sequence <add> <ide> <ide> def compare_string(string1: str, string2: str) -> str: <ide> """ <ide> def compare_string(string1: str, string2: str) -> str: <ide> >>> compare_string('0110','1101')...
1
Python
Python
update hostvirtual docstring
1fca5254f629d4c027e7aa7a5c12b99d6a9ee728
<ide><path>libcloud/compute/drivers/hostvirtual.py <ide> def destroy_node(self, node): <ide> return bool(result) <ide> <ide> def ex_stop_node(self, node): <add> """ <add> Stop a node. <add> <add> @param node: Node which should be used <add> @type node: L{Node} <add> <...
1
Ruby
Ruby
raise error when cmd is bash file
c56fff39280b6d059f72cdf999f93d705d045c10
<ide><path>Library/Homebrew/brew.rb <ide> class MissingEnvironmentVariables < RuntimeError; end <ide> end <ide> exec "brew-#{cmd}", *ARGV <ide> else <del> raise "command made by bash not ruby: #{cmd}" if Commands.only_bash_command_list.include?(cmd) <del> <ide> possible_tap = OFFICIAL_CMD_TAPS.find { |...
3
PHP
PHP
remove unused property
8bd3875080f24080983adf5626f6441665eb9e9b
<ide><path>src/ORM/Rule/IsUnique.php <ide> class IsUnique <ide> */ <ide> protected $_fields; <ide> <del> /** <del> * The options to use. <del> * <del> * @var array <del> */ <del> protected $_options; <del> <ide> /** <ide> * Constructor. <ide> *
1
Javascript
Javascript
add test case for get week number of the year
52666299dabe4a6157d984c7a47ee3aa62911998
<ide><path>test/moment/format.js <ide> exports.format = { <ide> test.equal(JSON.stringify({ <ide> date : date <ide> }), '{"date":"2012-10-09T20:30:40.678Z"}', "should output ISO8601 on JSON.stringify"); <add> test.done(); <add> }, <add> <add> "weeks format" : function(test) { <a...
1
Ruby
Ruby
add shortcut test to abstract/render_test.rb
dcb8b64975832ac75d92104da3c95876e56eec66
<ide><path>actionpack/test/abstract/render_test.rb <ide> def default <ide> render <ide> end <ide> <add> def shortcut <add> render "template" <add> end <add> <ide> def template_name <ide> render :_template_name => :template_name <ide> end <ide> def test_render_default ...
1
Python
Python
add tests for arc eager oracle
53b3249e06416488241a34c5d75435ca042eea84
<ide><path>spacy/tests/parser/test_arc_eager_oracle.py <add>from ...vocab import Vocab <add>from ...pipeline import DependencyParser <add>from ...tokens import Doc <add>from ...gold import GoldParse <add>from ...syntax.nonproj import projectivize <add> <add>annot_tuples = [ <add> (0, 'When', 'WRB', 11, 'advmod', 'O'...
1
PHP
PHP
update server.php email address
6f055a9b473ddd164fff688b551c78d3334cfe32
<ide><path>server.php <ide> * Laravel - A PHP Framework For Web Artisans <ide> * <ide> * @package Laravel <del> * @author Taylor Otwell <taylorotwell@gmail.com> <add> * @author Taylor Otwell <taylor@laravel.com> <ide> */ <ide> <ide> $uri = urldecode(
1
Go
Go
fix bug in ipsec key rotation
bc6a60dae563ec3c8842b26d1f30081ceb6a1171
<ide><path>libnetwork/drivers/overlay/encryption.go <ide> func updateNodeKey(lIP, rIP net.IP, idxs []*spi, curKeys []*key, newIdx, priIdx, <ide> <ide> if delIdx != -1 { <ide> // -rSA0 <del> programSA(rIP, lIP, spis[delIdx], nil, reverse, false) <add> programSA(lIP, rIP, spis[delIdx], nil, reverse, false) <ide> }...
1
Ruby
Ruby
handle corrupt checkouts
da2efa46aaf4600e5c4e1fbfa83f0973dbac55e3
<ide><path>Library/Homebrew/download_strategy.rb <ide> def cached_location <ide> @co <ide> end <ide> <add> def repo_valid? <add> @co.join(".svn").directory? <add> end <add> <ide> def fetch <ide> @url.sub!(/^svn\+/, '') if @url =~ %r[^svn\+http://] <ide> ohai "Checking out #{@url}" <add> <add> i...
1
Java
Java
add support for view manager commands in fabric
3ac914478d9636e7fffe29751e916ac16f311652
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> import com.facebook.react.modules.fabric.ReactFabric; <ide> import com.facebook.react.uimanager.DisplayMetricsHolder; <ide> import com.facebook.react.uimanager.UIImplementationProvider; <del>import com.facebook.react.uimanager.UIMa...
8
PHP
PHP
fix coding standards
eadc3a75e564ac0d12e29e0d5d3c86193f986266
<ide><path>lib/Cake/Console/Command/AclShell.php <ide> public function view() { <ide> $this->hr(); <ide> <ide> $stack = array(); <del> $last = null; <add> $last = null; <ide> <ide> foreach ($nodes as $n) { <ide> $stack[] = $n; <ide><path>lib/Cake/Console/Command/ApiShell.php <ide> public function getOptio...
47
Java
Java
fix punctuation in javadoc
580b8b92f8efc95ef44bbe914cc2867838b46428
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java <ide> * <ide> * <p>This base class provides an {@code @ExceptionHandler} method for handling <ide> * internal Spring MVC exceptions. This method returns a {@code ResponseEntity} <del> * fo...
1
Javascript
Javascript
remove duplicated test for eventtarget
42ff00e4b501ecc3f182bf0c3f5ad4dd8a67f874
<ide><path>test/parallel/test-eventtarget.js <ide> let asyncTest = Promise.resolve(); <ide> {}, // No handleEvent function <ide> false <ide> ].forEach((i) => throws(() => target.addEventListener('foo', i), err(i))); <del> <del> [ <del> 'foo', <del> 1, <del> {}, // No handleEvent function <del> ...
1
Python
Python
add test for tokenization of 'i.' for danish
8dc265ac0c2bbea683d900f64c5080a23879c9da
<ide><path>spacy/tests/lang/da/test_exceptions.py <ide> def test_da_tokenizer_handles_exc_in_text(da_tokenizer): <ide> tokens = da_tokenizer(text) <ide> assert len(tokens) == 5 <ide> assert tokens[2].text == "bl.a." <add> <add>def test_da_tokenizer_handles_custom_base_exc(da_tokenizer): <add> text = "Her...
1
PHP
PHP
enable array_forget to unset one or many keys
3ef0926153aaa9ab814c87977a1fbad66823dd50
<ide><path>src/Illuminate/Http/Request.php <ide> public function except($keys) <ide> <ide> $results = $this->input(); <ide> <del> foreach ($keys as $key) array_forget($results, $key); <add> array_forget($results, $keys); <ide> <ide> return $results; <ide> } <ide><path>src/Illuminate/Support/helpers.php <ide> ...
3
Python
Python
use plac annotations for arguments and add n_iter
c3b681e5fbe157ea70167da1e67c740e8339af6f
<ide><path>examples/training/train_new_entity_type.py <ide> """ <ide> from __future__ import unicode_literals, print_function <ide> <add>import plac <ide> import random <ide> from pathlib import Path <ide> <ide> ] <ide> <ide> <del>def main(model=None, new_model_name='animal', output_dir=None): <del> """Set up th...
1
PHP
PHP
fix regression about other aliases to be sorted
449a857164b4b4c08407905dfd214ba381218c27
<ide><path>src/Controller/Component/PaginatorComponent.php <ide> protected function _prefix(Table $object, $order, $validate = false) <ide> } <ide> $correctAlias = ($tableAlias === $alias); <ide> <del> if ($correctAlias && (!$validate || $object->hasField($field))) { <add...
2
Ruby
Ruby
move custom assertion to its proper place
3cece0b6574c496605df055a2ebf77177f5b6e7f
<ide><path>activesupport/lib/active_support/test_case.rb <ide> def test_order <ide> alias :assert_not_predicate :refute_predicate <ide> alias :assert_not_respond_to :refute_respond_to <ide> alias :assert_not_same :refute_same <del> <del> # Assertion that the block should not raise an exception. <del> ...
2
PHP
PHP
update doc comment
593e9c67a5923d13df82067d76ae08ca9269c521
<ide><path>src/Core/StaticConfigTrait.php <ide> public static function configured() { <ide> * If an array is given, the parsed dsn will be merged into this array. Note that querystring <ide> * arguments are also parsed and set as values in the returned configuration. <ide> * <del> * @param array $config An array wit...
1
Javascript
Javascript
add sourceurl comment to all compiled js files
408202729ec842029a68a730bf2dbff532379f20
<ide><path>src/compile-cache.js <ide> function compileFileAtPath (compiler, filePath, extension) { <ide> var cachePath = compiler.getCachePath(sourceCode, filePath) <ide> var compiledCode = readCachedJavascript(cachePath) <ide> if (compiledCode == null) { <del> compiledCode = compiler.compile(sourceCod...
1
Ruby
Ruby
improve the performance of string xor operation
e35e19a8b7edd355e76b7114be00dbc750453beb
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb <ide> def per_form_csrf_token(session, action_path, method) <ide> <ide> def xor_byte_strings(s1, s2) <ide> s2_bytes = s2.bytes <del> s1.bytes.map.with_index { |c1, i| c1 ^ s2_bytes[i] }.pack('c*') <add> s1.each_...
1
Text
Text
add missing comma in docs example
4ba768e22c56141d5488f8ee1f1d78d703b0fbfd
<ide><path>docs/api-reference/next.config.js/headers.md <ide> module.exports = { <ide> headers: [ <ide> { <ide> key: 'x-hello', <del> value: 'world' <del> } <del> ] <add> value: 'world', <add> }, <add> ], <ide> }, <ide> { <i...
1
Python
Python
add a deprecation test
5c9bd6e13ac87d961df82197bb82746d5e279f52
<ide><path>numpy/core/tests/test_deprecations.py <ide> def test_type_aliases(self): <ide> self.assert_deprecated(lambda: np.long) <ide> self.assert_deprecated(lambda: np.unicode) <ide> <add> # from np.core.numerictypes <add> self.assert_deprecated(lambda: np.typeDict) <add> <ide> <ide> c...
1
Javascript
Javascript
fix the arguments order in `assert.strictequal`
092ab7a1d39d97a3e93f8ed46d80d8ad783b2f9c
<ide><path>test/pummel/test-http-many-keep-alive-connections.js <ide> server.listen(common.PORT, function connect() { <ide> }); <ide> <ide> process.on('exit', function() { <del> assert.strictEqual(expected, responses); <del> assert.strictEqual(expected, requests); <add> assert.strictEqual(responses, expected); <add...
1
Ruby
Ruby
add regression tests for
dff86e6ea07cdddb65a683f1dc7e4b7f165e8c3e
<ide><path>activesupport/test/time_zone_test.rb <ide> def test_parse_with_javascript_date <ide> assert_equal Time.utc(2012, 5, 28, 7, 0, 0), twz.utc <ide> end <ide> <add> def test_parse_doesnt_use_local_dst <add> with_env_tz 'US/Eastern' do <add> zone = ActiveSupport::TimeZone['UTC'] <add> twz = zo...
1
Ruby
Ruby
put backtrace_cleaner to env
fe7d4f09ef2296e45ab4a82c1556c63382856607
<ide><path>actionpack/lib/action_dispatch/middleware/show_exceptions.rb <ide> def rescue_action_diagnostics(env, exception) <ide> template = ActionView::Base.new([RESCUES_TEMPLATE_PATH], <ide> :request => Request.new(env), <ide> :exception => exception, <del> :application_trace => a...
4
Javascript
Javascript
fix errors breaking pipe
28e4252a005787deb2bde1f5ac2bcbc9b79ec766
<ide><path>client/commonFramework/end.js <ide> $(document).ready(function() { <ide> .flatMap(code => common.detectLoops$(code)) <ide> .flatMap( <ide> ({ err }) => err ? Observable.throw(err) : Observable.just(code) <del> ); <add> ) <add> .flatMap(co...
1
Javascript
Javascript
use property, primordials
ea866dc81b81a71f6ff4c9cb44f8953ce5b398a6
<ide><path>lib/internal/event_target.js <ide> const { <ide> Set, <ide> Symbol, <ide> NumberIsNaN, <add> SymbolToStringTag, <ide> } = primordials; <ide> <ide> const { <ide> class Event { <ide> // isTrusted is special (LegacyUnforgeable) <ide> Object.defineProperty(this, 'isTrusted', { <ide> get() {...
1
Javascript
Javascript
fix default value for persistent in watchfile()
8195e0f7232fed3d6a3a2cc8464fec5e36f4433c
<ide><path>src/node.js <ide> process.watchFile = function (filename) { <ide> } <ide> <ide> if (options.persistent === undefined) options.persistent = true; <del> if (options.interval === undefined) options.persistent = 0; <del> <add> if (options.interval === undefined) options.interval = 0; <ide> <ide> if...
1
Javascript
Javascript
fix outdated urls
66e7a4c1aa7b523f49147bff49a90ff6ffe9a1cd
<ide><path>Libraries/StyleSheet/StyleSheetTypes.js <ide> type ____LayoutStyle_Internal = $ReadOnly<{| <ide> /** `direction` specifies the directional flow of the user interface. <ide> * The default is `inherit`, except for root node which will have <ide> * value based on the current locale. <del> * See htt...
2
Javascript
Javascript
restore tree-sitter in grammar iterator
cec3b058fb72960da24b735bfbdcd4d9dc976990
<ide><path>src/grammar-registry.js <ide> module.exports = class GrammarRegistry { <ide> } <ide> <ide> forEachGrammar(callback) { <del> this.grammars.forEach(callback); <add> this.getGrammars({ includeTreeSitter: true }).forEach(callback); <ide> } <ide> <ide> grammarForId(languageId) {
1
PHP
PHP
remove dead code
d3e96cf12e04bee156365783f96f02498cbfa173
<ide><path>src/Illuminate/Database/Schema/Grammars/Grammar.php <ide> public function compileForeign(Blueprint $blueprint, Fluent $command) <ide> * Compile the blueprint's column definitions. <ide> * <ide> * @param \Illuminate\Database\Schema\Blueprint $blueprint <del> * @param bool $change <ide> * @return ar...
1