content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
remove fixdefaultchecked helper
a10dd521df44032065b95c482f8aee1f5d505375
<ide><path>src/manipulation.js <ide> function getAll( context, tag ) { <ide> <ide> if ( !ret ) { <ide> for ( ret = [], elems = context.childNodes || context; (elem = elems[ i ]) != null; i++ ) { <del> core_push.apply( ret, <del> !tag || jQuery.nodeName( elem, tag ) ? <add> core_push.apply( ret, !tag || jQuer...
1
Ruby
Ruby
remove deprecated scope stuff
e1a83690da3dc8e72638a71cf6751986338b4596
<ide><path>activerecord/test/cases/named_scope_test.rb <ide> def test_procedural_scopes_returning_nil <ide> assert_equal all_topics, Topic.written_before(nil) <ide> end <ide> <del> def test_scopes_with_joins <del> address = author_addresses(:david_address) <del> posts_with_authors_at_address = Post.find( ...
5
Ruby
Ruby
add regression test to
50454559f8739ef70ac8b7ab6e885d033519c10d
<ide><path>railties/test/application/middleware/static_test.rb <add># encoding: utf-8 <add>require 'isolation/abstract_unit' <add>require 'rack/test' <add> <add>module ApplicationTests <add> class MiddlewareStaticTest < ActiveSupport::TestCase <add> include ActiveSupport::Testing::Isolation <add> include Rack::T...
1
Javascript
Javascript
avoid binding expectopenevent into the closure
b591f83447acd5e06a41e2eba6883bf9c886e9a9
<ide><path>spec/main-process/atom-application.new.test.js <ide> class LaunchScenario { <ide> const app = this.addApplication() <ide> const windowPromises = [] <ide> for (const windowSpec of this.parseWindowSpecs(source)) { <del> const expectOpenEvent = windowSpec.roots.length > 0 || windowSpec.editors....
1
Python
Python
fix some uninitialized memory in the tests
abf593e91023aca8f1efbd74581a754cdeaf3593
<ide><path>numpy/core/tests/test_regression.py <ide> def test_searchsorted_wrong_dtype(self): <ide> assert_raises(TypeError, np.searchsorted, a, 1.2) <ide> # Ticket #2066, similar problem: <ide> dtype = np.format_parser(['i4', 'i4'], [], []) <del> a = np.recarray((2, ), dtype) <add> ...
2
Ruby
Ruby
add os x-specific sharedenvextension
74d4479246778ff73756fce2208ef04f2c45aafb
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def gcc_with_cxx11_support?(cc) <ide> version && Version.create(version) >= Version.create("4.8") <ide> end <ide> end <add> <add>require "extend/os/extend/ENV/shared" <ide><path>Library/Homebrew/extend/os/extend/ENV/shared.rb <add>require "extend/ENV/shared" ...
3
PHP
PHP
use the widget objects for textarea
1037b103f58a31b608e15044fc849326c2bc1f3e
<ide><path>src/View/Helper/FormHelper.php <ide> public function __call($method, $params) { <ide> */ <ide> public function textarea($fieldName, $options = array()) { <ide> $options = $this->_initInputField($fieldName, $options); <del> $value = null; <del> <del> if (array_key_exists('val', $options)) { <del> $val...
1
Javascript
Javascript
add annotations to reactnativeprivateinterface
08daad44273f16ef513c3b9ab17da0efce334ee5
<ide><path>Libraries/ReactPrivate/ReactNativePrivateInterface.js <ide> * @flow strict-local <ide> */ <ide> <add>import typeof BatchedBridge from '../BatchedBridge/BatchedBridge.js'; <add>import typeof ExceptionsManager from '../Core/ExceptionsManager'; <add>import typeof Platform from '../Utilities/Platform'; <add>i...
1
Ruby
Ruby
fix a file leak
c25e11563c839f2d4c49cb28d3bcbff177cc3fb3
<ide><path>Library/Homebrew/test/test_integration_cmds.rb <ide> def test_uninstall <ide> def test_cleanup <ide> (HOMEBREW_CACHE/"test").write "test" <ide> assert_match "#{HOMEBREW_CACHE}/test", cmd("cleanup", "--prune=all") <add> ensure <add> (HOMEBREW_CACHE/"test").rmtree <ide> end <ide> <ide> def t...
1
Text
Text
fix typo in stream docs
87da53c812c4ee398431d70770c03d2b5ab71651
<ide><path>doc/api/stream.md <ide> added: REPLACEME <ide> * `options` {Object} <ide> * `encoding` {string} <ide> * `highWaterMark` {number} <del> * `objectModel` {boolean} <add> * `objectMode` {boolean} <ide> * `signal` {AbortSignal} <ide> * Returns: {stream.Readable} <ide>
1
Python
Python
add glossary for annotation scheme (closes )
a04b5be1b2b4cc01c1c962294077a842ab1d0e59
<ide><path>spacy/__init__.py <ide> from . import util <ide> from .deprecated import resolve_model_name <ide> from .cli.info import info <add>from .glossary import explain <ide> <ide> from . import en, de, zh, es, it, hu, fr, pt, nl, sv, fi, bn, he, nb, ja <ide> <ide><path>spacy/glossary.py <add># coding: utf8 <add>fr...
2
PHP
PHP
fix code in docblocks for apigen
427f54461a82a7aa2553be58e2b19fa1f4ecfd75
<ide><path>src/Cache/Cache.php <ide> public static function remember($key, $callable, $config = 'default') <ide> * <ide> * ``` <ide> * Cache::add('cached_data', $data); <del> * ```` <add> * ``` <ide> * <ide> * Writing to a specific cache config: <ide> * <ide><path>src/Database/Expr...
4
Text
Text
add #destroy! as a method that triggers callbacks
2cdf6bda4a34c9e20eb0af41ccb18a4bcb192aed
<ide><path>guides/source/active_record_callbacks.md <ide> The following methods trigger callbacks: <ide> * `create!` <ide> * `decrement!` <ide> * `destroy` <add>* `destroy!` <ide> * `destroy_all` <ide> * `increment!` <ide> * `save`
1
Text
Text
add link to full stack react article
e9067e6f5d16d756debcc782ec178b7086752d69
<ide><path>docs/faq/General.md <ide> In the end, Redux is just a tool. It's a great tool, and there's some great rea <ide> - [React How-To](https://github.com/petehunt/react-howto) <ide> - [You Might Not Need Redux](https://medium.com/@dan_abramov/you-might-not-need-redux-be46360cf367) <ide> - [The Case for Flux](http...
1
Ruby
Ruby
remove commentary from error message
d4b6d8ec962f80b9bb121b808162c094b289ec9e
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def kegs <ide> Multiple kegs installed to #{rack} <ide> However we don't know which one you refer to. <ide> Please delete (with rm -rf!) all but one and then try again. <del> Sorry, we know this is lame. <ide> EOS <ide> ...
1
Java
Java
remove duplicate classpathresourcetests class
084d7d1bdc8ef24b7c045efcfb67ea09b0aedd85
<ide><path>spring-core/src/test/java/org/springframework/core/io/ClassPathResourceTests.java <ide> import java.io.IOException; <ide> import java.net.URL; <ide> import java.net.URLClassLoader; <add>import java.util.HashSet; <ide> import java.util.zip.ZipEntry; <ide> import java.util.zip.ZipOutputStream; <ide> <ide> cla...
2
Python
Python
fix a refactor leftover bug
ce47eaa84b02ca41ec87d75cb5d70eab56de43b3
<ide><path>numpy/f2py/f2py2e.py <ide> def run_main(comline_list): <ide> errmess( <ide> 'Tip: If your original code is Fortran source then you must use -m option.\n') <ide> raise TypeError('All blocks must be python module blocks but got %s' % ( <del> repr(p...
1
Java
Java
allow focusing textinput when already focused
d4a498aba2d2843e7a741a31b0c91c6a79a7386c
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java <ide> import android.util.TypedValue; <ide> import android.view.View; <ide> import android.view.ViewGroup; <add>import android.view.accessibility.AccessibilityNodeInfo; <ide> import android.view.inputmethod.EditorInfo; <ide> im...
2
Python
Python
remove werkzeug bug workaround from flask/app.py
b6116c1de3f3556f6ae18d87348355d2545ce314
<ide><path>flask/app.py <ide> def index(): <ide> # Add the required methods now. <ide> methods |= required_methods <ide> <del> # due to a werkzeug bug we need to make sure that the defaults are <del> # None if they are an empty dictionary. This should not be necessary <del> # with...
1
Text
Text
drop the parens
131d2ab3ada2a079ec615b054b69400b998d6685
<ide><path>docs/creating-a-theme.md <ide> # Creating a Theme <ide> <del>Atom's interface is rendered using HTML, and it's styled via [LESS] \(a superset <del>of CSS). Don't worry if you haven't heard of LESS before; it's just like CSS, <del>but with a few handy extensions. <add>Atom's interface is rendered using HTML,...
1
Javascript
Javascript
harden the tests and fix flow
3cf67ab859b10f7d1f4b5d939ed980ba98a49775
<ide><path>src/__tests__/store-test.js <ide> describe('Store', () => { <ide> let React; <ide> let ReactDOM; <ide> let TestUtils; <del> // let bridge; <add> let bridge; <ide> let store; <ide> let print; <ide> <ide> describe('Store', () => { <ide> }; <ide> <ide> beforeEach(() => { <del> // bridge = g...
1
Python
Python
fix chain methods for xcomarg
eaa49b2257913c34b15408a14e445f6106e691ee
<ide><path>airflow/example_dags/example_xcomargs.py <ide> import logging <ide> <ide> from airflow import DAG <add>from airflow.operators.bash import BashOperator <ide> from airflow.operators.python import PythonOperator, get_current_context, task <ide> from airflow.utils.dates import days_ago <ide> <ide> def print_va...
3
Python
Python
add use_lang_emb to config
f1b018740c9355f0bcf0093fc993724eaa737445
<ide><path>pytorch_transformers/modeling_xlm.py <ide> def __init__(self, <ide> causal=False, <ide> asm=False, <ide> n_langs=1, <add> use_lang_emb=True, <ide> max_position_embeddings=512, <ide> embed_init_std=2048 ** -0....
1
Javascript
Javascript
fix the import path to serialize.js from ajax.js
075320149ae30a5c593c06b2fb015bdf033e0acf
<ide><path>src/ajax.js <ide> import "./core/init.js"; <ide> import "./ajax/parseXML.js"; <ide> import "./event/trigger.js"; <ide> import "./deferred.js"; <del>import "./serialize"; // jQuery.param <add>import "./serialize.js"; // jQuery.param <ide> <ide> var <ide> r20 = /%20/g,
1
Javascript
Javascript
fix error message of url.format
78182458e6055515ac342f743aacb79bd3af2edc
<ide><path>lib/url.js <ide> function urlFormat(obj, options) { <ide> obj = urlParse(obj); <ide> } else if (typeof obj !== 'object' || obj === null) { <ide> throw new TypeError('Parameter "urlObj" must be an object, not ' + <del> obj === null ? 'null' : typeof obj); <add> ...
2
Text
Text
fix multiple material blurb
b92cd9e8166c1ce2761b43094f99fcb4cd0c9597
<ide><path>threejs/lessons/threejs-textures.md <ide> It works! <ide> <ide> {{{example url="../threejs-textured-cube-6-textures.html" }}} <ide> <del>It should be noted though that by default the only geometry that supports multiple <del>materials is the `BoxGeometry` and `BoxBufferGeometry`. For other cases you will <...
1
Go
Go
fix empty-lines (revive)
786e6d80baa3d79966d5df80f36010cc690f2871
<ide><path>integration/config/config_test.go <ide> func TestConfigList(t *testing.T) { <ide> }) <ide> assert.NilError(t, err) <ide> assert.Check(t, is.DeepEqual(configNamesFromList(entries), tc.expected)) <del> <ide> } <ide> } <ide> <ide><path>integration/container/daemon_linux_test.go <ide> func TestDaemonHost...
12
Javascript
Javascript
fix e2e runner tests
8e6ecd98ae5ef24a7398aee19c006b9dda5385ff
<ide><path>test/scenario/dslSpec.js <ide> describe("angular.scenario.dsl", function() { <ide> }; <ide> $window.angular.scope = function() { <ide> return { <del> $location: { <del> hashSearch: {x: 2}, <del> hashPath: '/bar', <del> search: {foo: ...
1
Mixed
Text
replace travis ci mentions with github actions
37bc6bdebf159d395b559dd7094934a337d59c8a
<ide><path>CONTRIBUTING.md <ide> __Improving comments__ and __writing proper tests__ are also highly welcome. <ide> <ide> We appreciate any contribution, from fixing a grammar mistake in a comment to implementing complex algorithms. Please read this section if you are contributing your work. <ide> <del>Your contribut...
3
Javascript
Javascript
fix lint warning in logger
68f085a2b6177dc4c698015887613e6a9b55eca7
<ide><path>packager/react-packager/src/Logger/index.js <ide> */ <ide> 'use strict'; <ide> <add>const chalk = require('chalk'); <add>const os = require('os'); <add> <add>const {EventEmitter} = require('events'); <add> <ide> import type { <ide> ActionLogEntryData, <ide> ActionStartLogEntry, <ide> LogEntry, <ide> ...
1
Ruby
Ruby
float comparison adjustment
387036609268c4cf68401a1333715f2ee4aecffc
<ide><path>activesupport/test/notifications_test.rb <ide> def test_events_are_initialized_with_details <ide> <ide> assert_equal :foo, event.name <ide> assert_equal time, event.time <del> assert_in_delta 10.0, event.duration, 0.00000000000001 <add> assert_in_delta 10.0, event.duration, 0.000...
1
Python
Python
add regression test for binary_repr
6ede27f974dc49705dfca697a9e9542537f14a2d
<ide><path>numpy/core/tests/test_regression.py <ide> def check_mem_scalar_indexing(self, level=rlevel): <ide> index = N.array(0,dtype=N.int32) <ide> x[index] <ide> <add> def check_binary_repr_0_width(self, level=rlevel): <add> assert_equal(N.binary_repr(0,width=3),'000') <ide> <ide> if __nam...
1
Javascript
Javascript
set host of development server for setupdevtools
fa574c60920588e29d7b642e547e240ac8655e66
<ide><path>Libraries/Core/Devtools/setupDevtools.js <ide> let register = function () { <ide> if (__DEV__) { <ide> const AppState = require('AppState'); <ide> const WebSocket = require('WebSocket'); <del> const {PlatformConstants} = require('NativeModules'); <ide> /* $FlowFixMe(>=0.54.0 site=react_native_oss) Thi...
1
Ruby
Ruby
fix some formatting
1b276d53fb15a42025d5eeaca1bcd1b837a5dc53
<ide><path>activerecord/lib/active_record/schema_dumper.rb <ide> def table(table, stream) <ide> end.compact <ide> <ide> # find all migration keys used in this table <del> keys = [:name, :limit, :precision, :scale, :default, :null] & column_specs.map{ |k| k.keys }.flatten <add> key...
1
Javascript
Javascript
add trello and blogger apis back in
a1ffc88b58b677b416725bc59ebfd7a572af71ff
<ide><path>app.js <ide> app.get('/account/api', userController.getAccountAngular); <ide> */ <ide> <ide> app.get('/api/github', resourcesController.githubCalls); <add>app.get('/api/blogger', resourcesController.bloggerCalls); <add>app.get('/api/trello', resourcesController.trelloCalls); <ide> <ide> /** <ide> * Bonfi...
2
Python
Python
use isinstance() for type check
758edc60b3f284a997bf04904338532d81a5785a
<ide><path>glances/exports/glances_csv.py <ide> def update(self, stats): <ide> i = 0 <ide> for plugin in plugins: <ide> if plugin in self.plugins_to_export(): <del> if type(all_stats[i]) is list: <add> if isinstance(all_stats[i], list): <ide> ...
3
Text
Text
add section od querying data
fcfbb61f27fbbf65e84be9b53290de34bc4ea8b8
<ide><path>guide/english/gatsbyjs/index.md <ide> Gatsby deploys the site on a static web host such as Amazon S3, Netlify, Github <ide> * To generate the static HTML pages use `gatsby build` <ide> * `gatsby serve` will start a local server that will present your built site. <ide> <del>### More Information: <add>### Que...
1
Ruby
Ruby
add nodoc to relation methods
c47a698d5d497340d4e349257522212173865838
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def #{name}_value=(value) # def readonly_value=(value) <ide> CODE <ide> end <ide> <del> def create_with_value <add> def create_with_value #:nodoc: <ide> @values[:create_with] || {} <ide> end <ide> <ide> def ...
1
PHP
PHP
render exception with symfony console
99ed94ecc82c9424825f697513aaf4dd12288577
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> use Exception; <ide> use Psr\Log\LoggerInterface; <ide> use Symfony\Component\HttpKernel\Exception\HttpException; <add>use Symfony\Component\Console\Application as ConsoleApplication; <ide> use Symfony\Component\Debug\ExceptionHandler as SymfonyDisplayer...
1
Text
Text
use links to ms guide in style guide
b93325cb267e4bb55387b2158140542438a3c371
<ide><path>doc/guides/doc-style-guide.md <ide> this guide. <ide> * `.editorconfig` describes the preferred formatting. <ide> * A [plugin][] is available for some editors to apply these rules. <ide> * Check changes to documentation with `make lint-md`. <del>* Use American English spelling. <del> * OK: _capitalize_, _...
1
Javascript
Javascript
add namedchunksplugin as a exposed plugin
9bfae7e1c8e9d457c27d8f519460c8f0abc6cb6b
<ide><path>lib/webpack.js <ide> exportPlugins(exports, ".", [ <ide> "DllReferencePlugin", <ide> "LoaderOptionsPlugin", <ide> "NamedModulesPlugin", <add> "NamedChunksPlugin", <ide> "HashedModuleIdsPlugin", <ide> "ModuleFilenameHelpers" <ide> ]);
1
PHP
PHP
add toggle() method to belongstomany relation
5c170ad2b9560344cf7b7ab76e800c1c31dfc8b9
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function sync($ids, $detaching = true) <ide> // if they exist in the array of current ones, and if not we will insert. <ide> $current = $this->newPivotQuery()->pluck($this->otherKey)->all(); <ide> <del> $records...
2
Mixed
Javascript
requirestack property for module_not_found
05cd1a0929441943ba2d90c210c2d8bd8560293f
<ide><path>doc/api/errors.md <ide> an `Error` with this code will be emitted. <ide> <ide> <a id="MODULE_NOT_FOUND"></a> <ide> ### MODULE_NOT_FOUND <del> <add><!-- YAML <add>changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/25690 <add> description: Added `requireStack` propert...
3
Text
Text
fix typos and links in engines guide [ci skip]
271d1e7d8ce81355854cbbdc4386aea65ca79195
<ide><path>guides/source/engines.md <del>etting Started with Engines <add>Getting Started with Engines <ide> ============================ <ide> <ide> In this guide you will learn about engines and how they can be used to provide additional functionality to their host applications through a clean and very easy-to-use i...
1
Text
Text
update instructions for openssl updates
cc64c93e156556dffdf2775295a77b97809cfaa2
<ide><path>doc/contributing/maintaining-openssl.md <ide> This document describes how to update `deps/openssl/`. <ide> <ide> If you need to provide updates across all active release lines you will <del>currently need to generate three PRs as follows: <add>currently need to generate four PRs as follows: <ide> <ide> * a...
1
Ruby
Ruby
install specific rubocop version
0a2dd832b932d492c23d2a2b6d06baa3d5879e79
<ide><path>Library/Homebrew/cmd/style.rb <ide> def style <ide> ARGV.formulae.map(&:path) <ide> end <ide> <del> Homebrew.install_gem_setup_path! "rubocop" <add> Homebrew.install_gem_setup_path! "rubocop", "0.31.0" <ide> <ide> args = [ <ide> "--format", "simple", "--config", <ide><path>Library...
2
Ruby
Ruby
remove call to build_request
4b1a0adf5449bfee6e4d350b36a62d9bacdf8654
<ide><path>actionpack/test/controller/url_rewriter_test.rb <ide> def rewrite(routes, options) <ide> end <ide> <ide> def setup <del> @request = build_request <ide> @params = {} <ide> @rewriter = Rewriter.new(@request) #.new(@request, @params) <ide> @routes = ActionDispatch::Routing::RouteSet.new.tap ...
1
PHP
PHP
apply fixes from styleci
805ec49e2d1072fdc4a687743d94ba5ba49bae9e
<ide><path>src/Illuminate/Mail/Events/MessageSent.php <ide> <ide> class MessageSent <ide> { <del> <ide> /** <ide> * The Swift message instance. <ide> *
1
Javascript
Javascript
facebook strategy refactoring
62a87a854275c0df9644c4617072f128069a0a28
<ide><path>config/passport.js <ide> passport.use(new FacebookStrategy({ <ide> }, <ide> function (accessToken, refreshToken, profile, done) { <ide> User.findOne({ facebook: profile.id }, function(err, existingUser) { <del> if (err) done(err); <add> if (err) return done(err); <ide> <del> if (exist...
1
Javascript
Javascript
fix merge issue
70c28f929b457a1fb8c4f37c7c329d3268dd64f1
<ide><path>test/Stats.test.js <ide> Object { <ide> ], <ide> "emitted": true, <ide> "name": "entryB.js", <del> "size": 2000, <add> "size": 2013, <ide> }, <ide> ], <ide> "assetsByChunkName": Object {
1
Javascript
Javascript
fix inconsistency between load and _findpath"
b6dcf8c0125cc589c34bfc3180ab49e6e606a74f
<ide><path>lib/internal/modules/cjs/loader.js <ide> function tryExtensions(p, exts, isMain) { <ide> return false; <ide> } <ide> <del>function readExtensions() { <del> const exts = Object.keys(Module._extensions); <del> for (var i = 0, j = 0; i < exts.length; ++i) { <del> if (path.extname(exts[i]) === '') <del> ...
3
Ruby
Ruby
use logger.warn for warnings
da4fef815592f674252b72cb86cb436a4aae8e28
<ide><path>activemodel/lib/active_model/mass_assignment_security/sanitizer.rb <ide> def logger? <ide> end <ide> <ide> def process_removed_attributes(attrs) <del> logger.debug "WARNING: Can't mass-assign protected attributes: #{attrs.join(', ')}" if logger? <add> logger.warn "Can't mass-assign...
1
Ruby
Ruby
fix bad merge
84908bbde97ef70b09aca4937793052422bc06ed
<ide><path>actionview/test/activerecord/polymorphic_routes_test.rb <ide> def test_new_record_arguments <ide> end <ide> end <ide> <del> def test_new_record_arguments <del> params = nil <del> extend Module.new { <del> define_method("projects_url") { |*args| <del> params = args <del> super...
1
Javascript
Javascript
update the completed all challenges message
07f66b61f4cc8ca3b8c6b8bbda05f9d6c5998b22
<ide><path>server/boot/challenge.js <ide> module.exports = function(app) { <ide> debug('next challengeName', nextChallengeName); <ide> if (!nextChallengeName || nextChallengeName === firstChallenge) { <ide> req.flash('errors', { <del> msg: 'It looks like you have finished al...
1
Text
Text
fix typo in react-md example readme (#959)
61bdae5a086dff51ceb168fab3bd353d31e89cc3
<ide><path>examples/with-react-md/README.md <ide> now <ide> <ide> ## The idea behind the example <ide> <del>This example features how yo use [react-md](https://react-md.mlaursen.com/) (React Material Design) with Next.js. <add>This example features how you use [react-md](https://react-md.mlaursen.com/) (React Materia...
1
Python
Python
update the description of byteswap
d9ad118061c41e9ffa02d89926b0e2d6250b98f4
<ide><path>numpy/core/_add_newdocs.py <ide> <ide> Toggle between low-endian and big-endian data representation by <ide> returning a byteswapped array, optionally swapped in-place. <add> Arrays of byte-strings are not swapped. The real and imaginary <add> parts of a complex number are swapped individually...
1
Javascript
Javascript
extract runinjections from application#initialize
41e2f8042f483f06ecd3bdc44ffbf1a140c52419
<ide><path>packages/ember-application/lib/system/application.js <ide> Ember.Application = Ember.Namespace.extend( <ide> @param router {Ember.Router} <ide> */ <ide> initialize: function(router) { <del> var injections = get(this.constructor, 'injections'), <del> namespace = this; <del> <ide> if (!ro...
1
Java
Java
add test for writablenativemap
17ced5701f100d4400283c079c95a7ebda18afb1
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/WritableNativeMapTest.java <add>package com.facebook.react.tests.core; <add> <add>import static org.fest.assertions.api.Assertions.assertThat; <add> <add>import android.support.test.runner.AndroidJUnit4; <add>import com.facebook.react.bridge.Une...
1
PHP
PHP
fix phpdoc return type on routeregistrar
c46eee10b3faf980e96e1d1647c7b7b8d81f304b
<ide><path>src/Illuminate/Routing/RouteRegistrar.php <ide> public function resource($name, $controller, array $options = []) <ide> /** <ide> * Create a route group with shared attributes. <ide> * <del> * @param \Closure $callback <add> * @param \Closure|string $callback <ide> * @return vo...
1
Text
Text
add member function "at"
fe0373797b622204d65a9a6cfc98c1522c7e7f88
<ide><path>guide/english/cplusplus/vector/index.md <ide> std::vector.front(); // returns the first element of the vector. <ide> std::vector.back(); // returns the last element of the vector. <ide> std::vector.push_back(n); // inserts the element "n" to the end of the vector. <ide> std::vector.pop_back(n); // removes th...
1
Go
Go
add build test for absolute symlink
7496cbbccc278c084620661812ed5f6390c1d2f1
<ide><path>integration-cli/docker_cli_build_test.go <ide> COPY https://index.docker.io/robots.txt /`, <ide> logDone("build - copy - disallow copy from remote") <ide> } <ide> <add>func TestBuildAddBadLinks(t *testing.T) { <add> const ( <add> dockerfile = ` <add> FROM scratch <add> ADD links.tar / <add> ADD foo....
1
Javascript
Javascript
fix lint error
978c994f28ea411a75d40a76a51ceb41915b9fb2
<ide><path>test/helpers/supportsRequireInModule.js <ide> module.exports = function supportsRequireInModule() { <add> // eslint-disable-next-line node/no-unsupported-features/node-builtins <ide> return !!require("module").createRequire; <ide> };
1
Python
Python
fix kpo to have hyphen instead of period
70eede5dd6924a4eb74b7600cce2c627e51a3b7e
<ide><path>airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py <ide> def _set_name(self, name): <ide> raise AirflowException("`name` is required unless `pod_template_file` or `full_pod_spec` is set") <ide> <ide> validate_key(name, max_length=220) <del> return re.sub(r'[^a-z0-9.-]+'...
1
Javascript
Javascript
fix umd builds (reactsharedinternals)
aae83a4b9a0cfd75f5d5e7ee776c5e92e55cc2c3
<ide><path>packages/react/src/forks/ReactSharedInternals.umd.js <ide> import ReactCurrentDispatcher from '../ReactCurrentDispatcher'; <ide> import ReactCurrentOwner from '../ReactCurrentOwner'; <ide> import ReactDebugCurrentFrame from '../ReactDebugCurrentFrame'; <ide> import IsSomeRendererActing from '../IsSomeRendere...
1
Ruby
Ruby
rewrite tex requirement message
be66d746add559161b609106d06317fd25522b58
<ide><path>Library/Homebrew/requirements.rb <ide> class TeXDependency < Requirement <ide> <ide> satisfy { which('tex') || which('latex') } <ide> <del> def message; <<-EOS.undent <add> def message; <add> if File.exist?("/usr/texbin") <add> texbin_path = "/usr/texbin" <add> else <add> texbin_path = ...
1
PHP
PHP
write a simple publisher
b31c47de7c9321388548f765f5d1a044060c8ed4
<ide><path>src/Illuminate/Foundation/Console/VendorPublishCommand.php <add><?php namespace Illuminate\Foundation\Console; <add> <add>use Illuminate\Console\Command; <add>use Illuminate\Filesystem\Filesystem; <add>use Illuminate\Support\ServiceProvider; <add> <add>class VendorPublishCommand extends Command { <add> <add>...
4
Go
Go
use spf13/cobra for docker port
d5971c230dc91fa8764dd5e9bc4124346ad06e02
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) Command(name string) func(...string) error { <ide> "login": cli.CmdLogin, <ide> "logout": cli.CmdLogout, <ide> "pause": cli.CmdPause, <del> "port": cli.CmdPort, <ide> "ps": cli.CmdPs, <ide> "pull": cli.CmdPull, <ide> "push": c...
6
Javascript
Javascript
add annotations to xplat to prepare for lti
17f221c85282c2aa00cd1d0303930a76182513a1
<ide><path>Libraries/Animated/components/AnimatedFlatList.js <ide> import * as React from 'react'; <ide> /** <ide> * @see https://github.com/facebook/react-native/commit/b8c8562 <ide> */ <del>const FlatListWithEventThrottle = React.forwardRef((props, ref) => ( <del> <FlatList scrollEventThrottle={0.0001} {...props} ...
9
Javascript
Javascript
fix arguments order in assert.strictequal
63aef2d193ddbb4fcbe8c95fe2158fbe0bc89230
<ide><path>test/parallel/test-crypto-fips.js <ide> function testHelper(stream, args, expectedOutput, cmd, env) { <ide> assert.ok(response.includes(expectedOutput)); <ide> } else { <ide> // Normal path where we expect either FIPS enabled or disabled. <del> assert.strictEqual(expectedOutput, Number(r...
1
Javascript
Javascript
use actual timeout instances
93eb68e6d23c66b85e8f79540500d5d9f0bbc396
<ide><path>lib/internal/http2/core.js <ide> const { <ide> } = require('internal/http2/util'); <ide> <ide> const { <del> _unrefActive, <del> enroll, <del> unenroll <del>} = require('timers'); <add> kTimeout, <add> setUnrefTimeout, <add> validateTimerDuration <add>} = require('internal/timers'); <add> <add>const {...
4
Ruby
Ruby
avoid deep_dup when intantiating
1b2c907727e4a698d9c2979958aa78a1b4bfdaa1
<ide><path>activerecord/lib/active_record/core.rb <ide> require 'active_support/core_ext/hash/indifferent_access' <del>require 'active_support/core_ext/object/deep_dup' <add>require 'active_support/core_ext/object/duplicable' <ide> require 'thread' <ide> <ide> module ActiveRecord <ide> def relation #:nodoc: <ide> ...
1
Javascript
Javascript
fix overridden methods
dca4e44f398bcd189845d1a07201433110f8f842
<ide><path>dist/Immutable.js <ide> var $Range = Range; <ide> take: function(amount) { <ide> return this.slice(0, amount); <ide> }, <del> skip: function(amount, maintainIndices) { <del> return maintainIndices ? $traceurRuntime.superCall(this, $Range.prototype, "skip", [amount]) : this.slice(amount); <add> s...
4
Go
Go
store the actual archive when commit
aaaf3f072601923594754e46c1f0152847d9c2d9
<ide><path>graph.go <ide> func (graph *Graph) Create(layerData Archive, container *Container, comment, aut <ide> img.Container = container.Id <ide> img.ContainerConfig = *container.Config <ide> } <del> if err := graph.Register(layerData, img); err != nil { <add> if err := graph.Register(layerData, true, img); err ...
3
Javascript
Javascript
remove createreactclass from timerexample.js
c96c93ef4a43cb9f4d4eee30b72e230ead0f7109
<ide><path>RNTester/js/TimerExample.js <ide> 'use strict'; <ide> <ide> var React = require('react'); <del>var createReactClass = require('create-react-class'); <ide> var ReactNative = require('react-native'); <ide> var {AlertIOS, Platform, ToastAndroid, Text, View} = ReactNative; <ide> var RNTesterButton = require('./...
1
Javascript
Javascript
fix error in test-process-simple
c5b5815ae7ff3767ec2d25bd3d02dae81b11e0e8
<ide><path>test/test-process-simple.js <ide> var response = ""; <ide> var exit_status = -1; <ide> <ide> cat.onOutput = function (chunk) { <del> if (chunk) response += chunk; <del> if (response === "hello world") cat.close(); <add> if (chunk) { <add> response += chunk; <add> if (response === "hello world") cat...
1
Javascript
Javascript
restore press in delay
fc45530dedf997a3955c3720d4e7bd3704f8bdb3
<ide><path>Libraries/Pressability/Pressability.js <ide> const isPressInSignal = signal => <ide> const isTerminalSignal = signal => <ide> signal === 'RESPONDER_TERMINATED' || signal === 'RESPONDER_RELEASE'; <ide> <del>const DEFAULT_LONG_PRESS_DELAY_MS = 500; <del>const DEFAULT_PRESS_DELAY_MS = 0; <add>const DEFAULT_L...
2
Ruby
Ruby
tighten post-install checks
e909b54c9697e44d984cd642c866edbf240105da
<ide><path>Library/Homebrew/formula_installer.rb <ide> def pour <ide> <ide> ## checks <ide> <del> def paths <del> @paths ||= ENV['PATH'].split(':').map{ |p| File.expand_path p } <del> end <del> <ide> def check_PATH <ide> # warn the user if stuff was installed outside of their PATH <ide> [f.bin, f.sbi...
2
Javascript
Javascript
remove pii from title
083161e2470df00e2cad51e1e79aa616c8b38f5e
<ide><path>client/src/components/profile/Profile.js <ide> function renderIsLocked(username) { <ide> return ( <ide> <Fragment> <ide> <Helmet> <del> <title>{username} | freeCodeCamp.org</title> <add> <title>Profile | freeCodeCamp.org</title> <ide> </Helmet> <ide> <Spacer size={2} /> ...
2
Javascript
Javascript
support hex values in outputrange
463b072dac1beda0ae89dbda268728b9035296e7
<ide><path>Libraries/Animated/src/Interpolation.js <ide> */ <ide> 'use strict'; <ide> <add>var tinycolor = require('tinycolor2'); <add> <ide> // TODO(#7644673): fix this hack once github jest actually checks invariants <ide> var invariant = function(condition, message) { <ide> if (!condition) { <ide> function inter...
2
Python
Python
remove unused import
1f1bab9264dbff98781ce6c896b358e005c28d4b
<ide><path>spacy/lang/ru/__init__.py <ide> from ..norm_exceptions import BASE_NORMS <ide> from ...util import update_exc, add_lookups <ide> from ...language import Language <del>from ...attrs import LANG, LIKE_NUM, NORM <add>from ...attrs import LANG, NORM <ide> <ide> <ide> class RussianDefaults(Language.Defaults):
1
Ruby
Ruby
reduce method calls
9e16254b4661f0ec55f035f62e70148827dcdf56
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def source_reflection <ide> end <ide> <ide> def has_inverse? <del> !@options[:inverse_of].nil? <add> @options[:inverse_of] <ide> end <ide> <ide> def inverse_of
1
Text
Text
update docs with supported tags and attributes
451176665cb35ef7c1346fa462aca863c0ac5a39
<ide><path>docs/docs/ref-04-tags-and-attributes.md <ide> The following elements are supported: <ide> a abbr address area article aside audio b base bdi bdo big blockquote body br <ide> button canvas caption cite code col colgroup data datalist dd del details dfn <ide> div dl dt em embed fieldset figcaption figure foote...
1
PHP
PHP
is
2a5604bdcdbcd8b533d49fe743c2efbe04ceabc1
<ide><path>src/Illuminate/Routing/Router.php <ide> public function currentRouteName() <ide> /** <ide> * Alias for the "currentRouteNamed" method. <ide> * <del> * @param string $name <add> * @param dynamic string <ide> * @return bool <ide> */ <del> public function is($name) <add> public function is() <ide...
1
Python
Python
fix most of the file-handle resource leaks.
4cde148de0c37981c50f3a8e4a59fa4e5f653e17
<ide><path>docs/autogen.py <ide> def process_docstring(docstring): <ide> new_fpath = fpath.replace('templates', 'sources') <ide> shutil.copy(fpath, new_fpath) <ide> <add> <ide> # Take care of index page. <del>readme = open('../README.md').read() <del>index = open('templates/index.md').read() <a...
17
Python
Python
fix typo in error message in generation_utils
3cfdefaa4dc62a78163c01bad9d42bc1c5100b3e
<ide><path>src/transformers/generation_utils.py <ide> def generate( <ide> raise ValueError("`max_length` needs to be a stopping_criteria for now.") <ide> <ide> if num_beams <= 1: <del> raise ValueError("`num_beams` needs to be greater than 1 for constrained genertation.") <ad...
1
Python
Python
generate wrappers for scalars with value
f6f0ad0643848faa39d62a6a44bbe72aa6f0ad3b
<ide><path>numpy/f2py/auxfuncs.py <ide> 'isunsigned_chararray', 'isunsigned_long_long', <ide> 'isunsigned_long_longarray', 'isunsigned_short', <ide> 'isunsigned_shortarray', 'l_and', 'l_not', 'l_or', 'outmess', <del> 'replace', 'show', 'stripcomma', 'throw_error', <add> 'replace', 'show', 'stripcomma'...
2
Java
Java
add tests for binding to a part field
caaf83b8e6534b8c9a3806661022ac8185985876
<ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/MultipartControllerTests.java <ide> import org.springframework.stereotype.Controller; <ide> import org.springframework.test.web.servlet.MockMvc; <ide> import org.springframework.ui.Model; <add>import org.springframework.util.St...
3
Javascript
Javascript
attach platform to asset url
ce47e56b7b56b81c549e348b8e71b7ad335aaf74
<ide><path>Libraries/Image/__tests__/resolveAssetSource-test.js <ide> function expectResolvesAsset(input, expectedSource) { <ide> describe('resolveAssetSource', () => { <ide> beforeEach(() => { <ide> jest.resetModuleRegistry(); <add> __DEV__ = true; <ide> AssetRegistry = require('AssetRegistry'); <ide> ...
2
Python
Python
fix small typo
75a35032e194a2d065b0071a9e786adf6cee83ea
<ide><path>keras/backend/tensorflow_backend.py <ide> def batch_dot(x, y, axes=None): <ide> # Arguments <ide> x: Keras tensor or variable with `ndim >= 2`. <ide> y: Keras tensor or variable with `ndim >= 2`. <del> axes: int or tupe(int, int). Target dimensions to be reduced. <add> axes:...
1
Text
Text
update readme too
86016594db99450bd1d1278a67a002f7d748423f
<ide><path>examples/dll-app-and-vendor/0-vendor/README.md <ide> This is the vendor build part. <ide> <del>It's built separately from the app part. The vendors dll is only built when vendors has changed and not while the normal development cycle. <add>It's built separately from the app part. The vendors dll is only bui...
1
Mixed
Javascript
remove unused element methods
7a2160461df1541993f1ba2936d87d5292dd14be
<ide><path>docs/getting-started/v3-migration.md <ide> Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`. <ide> * `helpers.numberOfLabelLines` <ide> * `helpers.removeEvent` <ide> * `helpers.scaleMerge` <del>* `scale.getRightValue` <del>* `scale.mergeTicksOptions` <del>* `scale.ticksAsNumber...
7
Python
Python
add commit to tagger example
a405660068f9f1c17a71a54866f475b2b13eef6c
<ide><path>examples/training/train_new_entity_type.py <ide> * Training the Named Entity Recognizer: https://spacy.io/docs/usage/train-ner <ide> * Saving and loading models: https://spacy.io/docs/usage/saving-loading <ide> <del>Developed for: spaCy 1.7.6 <del>Last tested for: spaCy 1.7.6 <add>Developed for: spaCy 1.9.0...
2
Python
Python
skip faulty test
5b6bd4e7880cd51375c2d6c33bbd8173acfd920b
<ide><path>examples/pytorch/test_examples.py <ide> import logging <ide> import os <ide> import sys <add>import unittest <ide> from unittest.mock import patch <ide> <ide> import torch <ide> def test_run_ner(self): <ide> self.assertGreaterEqual(result["eval_accuracy"], 0.75) <ide> self.assertLess...
1
Text
Text
fix typo in why use keras docs
4a28dc5debcd0bd790ef29d202342184fde5a1f4
<ide><path>docs/templates/why-use-keras.md <ide> There are countless deep learning frameworks available today. Why use Keras rath <ide> <ide> ## Keras has broad adoption in the industry and the research community <ide> <del>With over 200,000 individual users as of November 2017, Keras has stronger adoption in both th...
1
Javascript
Javascript
unbind handlers with data + test (#935)
2897b1bd2383031b6764192dc1ccb1d1205139a3
<ide><path>src/event/event.js <ide> jQuery.event = { <ide> } <ide> <ide> // Make sure that the function being executed has a unique ID <del> if ( !handler.guid ) <add> if ( !handler.guid ) { <ide> handler.guid = this.guid++; <add> // Don't forget to set guid for the original handler function <add> if (fn)...
2
Go
Go
move cli.configdir away (in `flags`)
71d60ec0eb7eeddc73d2cf63748ab7debe3f06af
<ide><path>cli/flags/common.go <ide> import ( <ide> "path/filepath" <ide> <ide> "github.com/Sirupsen/logrus" <del> "github.com/docker/docker/cli" <ide> "github.com/docker/docker/opts" <ide> "github.com/docker/go-connections/tlsconfig" <ide> "github.com/spf13/pflag" <ide> func NewCommonOptions() *CommonOptions { <...
6
Javascript
Javascript
update http test to use countdown
07549c6a91f8901b69bfc430b1a552deca9763b8
<ide><path>test/parallel/test-http-status-code.js <ide> require('../common'); <ide> const assert = require('assert'); <ide> const http = require('http'); <add>const Countdown = require('../common/countdown'); <ide> <ide> // Simple test of Node's HTTP ServerResponse.statusCode <ide> // ServerResponse.prototype.statusCo...
1
PHP
PHP
move method. formatting
f3d8d99f585c2e9470974938afdbf47f9153d882
<ide><path>src/Illuminate/Support/Collection.php <ide> public function merge($items) <ide> return new static(array_merge($this->items, $this->getArrayableItems($items))); <ide> } <ide> <add> /** <add> * Create a collection by using this collection for keys and another for its values. <add> * <ad...
1
Python
Python
use set litterals
09992482c93f1b9e28b7958a792e6b3b709834fa
<ide><path>numpy/core/_type_aliases.py <ide> def get(self, key, default=None): <ide> else: <ide> _concrete_typeinfo[k] = v <ide> <del>_concrete_types = set(v.type for k, v in _concrete_typeinfo.items()) <add>_concrete_types = {v.type for k, v in _concrete_typeinfo.items()} <ide> <ide> <ide> def _bits_of(...
12
Text
Text
improve translation index.md
be5d014be5e90a438ce042b64284b36fd5846e87
<ide><path>guide/russian/miscellaneous/design-resources-for-front-end-developers/index.md <ide> --- <ide> title: Design Resources for Front End Developers <del>localeTitle: Ресурсы разработки для разработчиков Front End <add>localeTitle: Дизайн-ресурсы для разработчиков Front End <ide> --- <del>Вы внештатный веб-разраб...
1