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
Java
Java
fix noopcache handling of get(key,callable)
15c3cdd48deded4e7f8c21b07b1a88a8d097fcb2
<ide><path>spring-context/src/main/java/org/springframework/cache/support/NoOpCacheManager.java <ide> public <T> T get(Object key, Class<T> type) { <ide> <ide> @Override <ide> public <T> T get(Object key, Callable<T> valueLoader) { <del> return null; <add> try { <add> return valueLoader.call(); <add> } <a...
2
Python
Python
add dprecation warnings
e4ac566625dcb2858ce15148e38595b49eedfa1b
<ide><path>rest_framework/fields.py <ide> class Field(object): <ide> empty = '' <ide> type_name = None <ide> partial = False <del> _use_files = None <add> use_files = False <ide> form_field_class = forms.CharField <ide> <ide> def __init__(self, source=None): <ide> def __init__(self, source=No...
2
Python
Python
make test self-sufficient
1b2e6d61c9a5325d75145a194ff8f3981bf8fe39
<ide><path>celery/tests/worker/test_autoscale.py <ide> def body(self): <ide> sys.stderr = p <ide> _exit.assert_called_with(1) <ide> self.assertTrue(stderr.write.call_count) <add> <add> def test_no_negative_scale(self): <add> total_num_processes = [] <add> worker = Mock(name=...
1
Ruby
Ruby
add constants for repository names
bf60e2da3ddc49de569fd01726e0ad8a5f794fdb
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> def bump <ide> next <ide> end <ide> <del> "homebrew" <add> Repology::HOMEBREW_CORE <ide> else <del> "homebrew_casks" <add> Repology::HOMEBREW_CASK <ide> end <ide> <ide> package_data = Re...
2
Text
Text
fix crypto "decipher.setaad()" typo
7eb2e3ff666afdc02b747e3723354855f8ddb1d0
<ide><path>doc/api/crypto.md <ide> added: v1.0.0 <ide> --> <ide> <ide> When using an authenticated encryption mode (only `GCM` is currently <del>supported), the `cipher.setAAD()` method sets the value used for the <add>supported), the `decipher.setAAD()` method sets the value used for the <ide> _additional authenticat...
1
PHP
PHP
update cacheschedulingmutex.php
38284c86642a7fe3c4e2db7622e116df9b0bb729
<ide><path>src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php <ide> class CacheSchedulingMutex implements SchedulingMutex <ide> public $store; <ide> <ide> /** <del> * Create a new overlapping strategy. <add> * Create a new scheduling strategy. <ide> * <ide> * @param \Illuminate\Contr...
1
Text
Text
remove recommendation to use node-eps
9b34dfed76594992c8cdb8b293a927c87bcb1bd6
<ide><path>COLLABORATOR_GUIDE.md <ide> Pull requests introducing new core modules: <ide> New core modules must be landed with a [Stability Index][] of Experimental, <ide> and must remain Experimental until a semver-major release. <ide> <del>For new modules that involve significant effort, non-trivial additions to <del...
1
Java
Java
correct import order
c515de138aa659ba9697383a07a9bc1bf5be4d81
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/CompoundExpression.java <ide> <ide> package org.springframework.expression.spel.ast; <ide> <add>import java.util.StringJoiner; <add> <ide> import org.springframework.asm.MethodVisitor; <ide> import org.springframework.expression.Evalua...
1
Javascript
Javascript
remove unused parser helper
5a5c4b1b1e49d40846aaf09347e87f1370db06e1
<ide><path>lib/JavascriptParserHelpers.js <ide> exports.addParsedVariableToModule = (parser, name, expression) => { <ide> return true; <ide> }; <ide> <del>exports.requireFileAsExpression = (context, pathToModule) => { <del> const moduleJsPath = exports.getModulePath(context, pathToModule); <del> return `require(${JSO...
1
Python
Python
add x86_64 arch flag if gfortran supports it
b1873ad41a86e21ab51e7f08208241f0e2d1b397
<ide><path>numpy/distutils/fcompiler/gnu.py <ide> def _universal_flags(self, cmd): <ide> if not sys.platform == 'darwin': <ide> return [] <ide> arch_flags = [] <del> for arch in ["ppc", "i686"]: <add> for arch in ["ppc", "i686", "x86_64"]: <ide> if _can_target(cmd, ...
1
PHP
PHP
improve schemaloader tests
4b5428e582e8899cca654eb75e8da26b07c521ba
<ide><path>tests/TestCase/TestSuite/Fixture/SchemaLoaderTest.php <ide> <ide> use Cake\Console\ConsoleIo; <ide> use Cake\Database\Connection; <del>use Cake\Database\DriverInterface; <del>use Cake\Database\Schema\Collection; <del>use Cake\Database\Schema\SchemaDialect; <add>use Cake\Database\Driver\Sqlite; <ide> use Cak...
1
PHP
PHP
apply fixes from styleci
c3cb531df1717c92bd1d70d30f2c018e56fd6b57
<ide><path>src/Illuminate/Notifications/NotificationSender.php <ide> public function sendNow($notifiables, $notification, array $channels = null) <ide> if (empty($viaChannels = $channels ?: $notification->via($notifiable))) { <ide> continue; <ide> } <del> <add> <ide> ...
1
PHP
PHP
fix bug in bundle assets method
2bbb9e55e9928f7fabe4c1881216b27b89691543
<ide><path>laravel/bundle.php <ide> public static function path($bundle) <ide> */ <ide> public static function assets($bundle) <ide> { <del> return ($bundle != DEFAULT_BUNDLE) ? PUBLIC_PATH."bundles/{$bundle}/" : PUBLIC_PATH; <add> return ($bundle != DEFAULT_BUNDLE) ? URL::base()."/bundles/{$bundle}/" : PUBLIC_PA...
1
PHP
PHP
add templates option to numbers()
68883619067ad3f4538a21af37d4840a9145dc34
<ide><path>src/View/Helper/PaginatorHelper.php <ide> public function numbers(array $options = array()) { <ide> $options += $defaults; <ide> <ide> $params = (array)$this->params($options['model']) + array('page' => 1); <del> <ide> if ($params['pageCount'] <= 1) { <ide> return false; <ide> } <ide> <add> $te...
3
Javascript
Javascript
clarify jsdoc entries
43371dd5d2b7c3586e5f41bc30c9cd21bb000d5f
<ide><path>lib/internal/event_target.js <ide> class EventTarget { <ide> /** <ide> * @callback EventTargetCallback <ide> * @param {Event} event <add> */ <add> <add> /** <ide> * @typedef {{ handleEvent: EventTargetCallback }} EventListener <add> */ <add> <add> /** <ide> * @param {string} type <ide> ...
1
Javascript
Javascript
fix currentsrc when flash returns null
c8bd862e3e2c9f1462d1f3fbb7722cd0d56ec9e5
<ide><path>src/js/media/flash.js <ide> vjs.Flash.prototype.currentSrc = function(){ <ide> var src = this.el_.vjs_getProperty('currentSrc'); <ide> // no src, check and see if RTMP <ide> if (src == null) { <del> var connection = this.rtmpConnection(), <del> stream = this.rtmpStream(); <add> var connect...
1
Javascript
Javascript
fix args order in process-getactiverequests
981701b8090769df4b5a17f339d3879caecdc7de
<ide><path>test/parallel/test-process-getactiverequests.js <ide> const fs = require('fs'); <ide> for (let i = 0; i < 12; i++) <ide> fs.open(__filename, 'r', () => {}); <ide> <del>assert.strictEqual(12, process._getActiveRequests().length); <add>assert.strictEqual(process._getActiveRequests().length, 12);
1
Python
Python
add quarter 0 to scramble orders
44f05013291aac8c9a50097759ebf4c5d948c2d0
<ide><path>research/astronet/light_curve_util/kepler_io.py <ide> # Quarter order for different scrambling procedures. <ide> # Page 9: https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20170009549.pdf. <ide> SIMULATED_DATA_SCRAMBLE_ORDERS = { <del> "SCR1": [13, 14, 15, 16, 9, 10, 11, 12, 5, 6, 7, 8, 1, 2, 3, 4, 1...
1
Javascript
Javascript
convert the `domcmapreaderfactory` to an es6 class
32baa6af7a00b20172200ed0fd0757d3a0cc40ae
<ide><path>src/display/dom_utils.js <ide> DOMCanvasFactory.prototype = { <ide> } <ide> }; <ide> <del>var DOMCMapReaderFactory = (function DOMCMapReaderFactoryClosure() { <del> function DOMCMapReaderFactory(params) { <del> this.baseUrl = params.baseUrl || null; <del> this.isCompressed = params.isCompressed || ...
2
Javascript
Javascript
keep trackballcontrols from consuming all events
348c706a4679e52eaf1a0646e18636abfa9509e6
<ide><path>examples/js/controls/TrackballControls.js <ide> THREE.TrackballControls = function ( object, domElement ) { <ide> <ide> if ( _this.enabled === false ) return; <ide> <del> window.removeEventListener( 'keydown', keydown ); <del> <ide> _prevState = _state; <ide> <ide> if ( _state !== STATE.NONE ) { <i...
1
PHP
PHP
prevent a fatal error if router->current is empty
a77c6f40a2e2aa2b5eee9d4df64b4c8625012f0e
<ide><path>src/Illuminate/Routing/Router.php <ide> public function currentRouteNamed($name) <ide> */ <ide> public function currentRouteAction() <ide> { <add> if (!$this->current()) return null; <add> <ide> $action = $this->current()->getAction(); <ide> <ide> return isset($action['controller']) ? $action['co...
1
Python
Python
ignore auth_user_model errors in from_state
5182efce8d73ec552a1d7f3e86a24369bb261044
<ide><path>django/db/migrations/autodetector.py <ide> def _detect_changes(self): <ide> """ <ide> # We'll store migrations as lists by app names for now <ide> self.migrations = {} <del> old_apps = self.from_state.render() <add> old_apps = self.from_state.render(ignore_swappable=True...
2
Javascript
Javascript
fix failing test in older ie
4a48656fbf11b985ae8943ce75c631413cb23485
<ide><path>packages/ember-runtime/tests/system/object/destroy_test.js <ide> test("destroyed objects should not see each others changes during teardown but a <ide> var longLivedObject = new LongLivedObject(); <ide> <ide> Ember.run(function () { <del> for (var key in objs) { <del> if (!objs.hasOwnProperty(ke...
1
Javascript
Javascript
introduce defaultmodulename in module.js
ea01d305f65147325866f68a93d511d076a82016
<ide><path>lib/internal/vm/module.js <ide> const linkingStatusMap = new WeakMap(); <ide> const initImportMetaMap = new WeakMap(); <ide> // ModuleWrap -> vm.Module <ide> const wrapToModuleMap = new WeakMap(); <add>const defaultModuleName = 'vm:module'; <ide> <ide> class Module { <ide> constructor(src, options = {}) {...
1
Javascript
Javascript
add type comment
bfc04315efdc38e94b74b9a17fbd7d755d41ae72
<ide><path>lib/FlagDependencyExportsPlugin.js <ide> class FlagDependencyExportsPlugin { <ide> } <ide> ); <ide> <add> /** @type {WeakMap<Module, true | string[] | null>} */ <ide> const providedExportsCache = new WeakMap(); <ide> compilation.hooks.rebuildModule.tap( <ide> "FlagDependencyExportsP...
1
Python
Python
add tests for memory overlap in ufunc reductions
dae0b12d6a790543bee4002f434a1633f8923188
<ide><path>numpy/core/tests/test_mem_overlap.py <ide> def random_slice_fixed_size(n, step, size): <ide> step *= -1 <ide> return slice(start, stop, step) <ide> <add> # First a few regular views <add> yield x, x <add> for j in range(1, 7, 3): <add> yield x[j:], x[:-j] <add> yie...
1
Ruby
Ruby
remove macos specific dummy call
f4cb9a40a6d5f14659b337beedfd6b537fb14e31
<ide><path>Library/Homebrew/keg.rb <ide> def binary_executable_or_library_files <ide> <ide> def codesign_patched_binary(file); end <ide> <del> def dsymutil_binary(file); end <del> <ide> private <ide> <ide> def resolve_any_conflicts(dst, dry_run: false, verbose: false, overwrite: false)
1
Text
Text
move zfs options doc to the storage section
b674ae0639a893c4b20a848e8ab837b8455f3aae
<ide><path>docs/reference/commandline/cli.md <ide> Currently supported options of `devicemapper`: <ide> > Otherwise, set this flag for migrating existing Docker daemons to <ide> > a daemon with a supported environment. <ide> <del>### Docker execdriver option <del> <ide> Currently supported options of `zfs`: <i...
1
Mixed
Text
forbid cjs globals in esm code snippets
2481facd9ff3af57924c2391c507f13abf73ba3a
<ide><path>.eslintrc.js <ide> module.exports = { <ide> 'doc/api/packages.md/*.js', <ide> ], <ide> parserOptions: { sourceType: 'module' }, <add> rules: { 'no-restricted-globals': [ <add> 'error', <add> { <add> name: '__filename', <add> message: 'Use import.meta.u...
3
PHP
PHP
use env var
251140ef8b2e283dec3025aa6a0cbfd6594c9dad
<ide><path>config/filesystems.php <ide> 'public' => [ <ide> 'driver' => 'local', <ide> 'root' => storage_path('app/public'), <add> 'url' => env('APP_URL').'/storage', <ide> 'visibility' => 'public', <ide> ], <ide>
1
Go
Go
add vfs quota for daemon storage-opts
1397b8c63ca050e76bcd05ecac3314e0f1d5205c
<ide><path>daemon/graphdriver/vfs/driver.go <ide> import ( <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <ide> "github.com/docker/docker/daemon/graphdriver/quota" <add> "github.com/docker/docker/errdefs" <ide> "github.com/docker/docker/pkg/containerfs" <ide> "github.com/docker/docker/pkg/idtools" <add>...
3
Javascript
Javascript
fix coding style in external/builder/builder.js
4f6b363b2cd05ade230515e022540e05bb566935
<ide><path>external/builder/builder.js <add>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ <add>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ <ide> /* jshint node:true */ <ide> /* globals cp, ls, test */ <ide> <ide> function preprocess(inFilename, outFilename, de...
1
Text
Text
use correct name in `with-xata` example
9863df3fb297cb5feaa34b3332d24a0f79f51dc7
<ide><path>examples/with-xata/README.md <ide> Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu <ide> Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cl...
1
Text
Text
join parts of disrupt section in cli.md
0ecd3c68452ff9b9709cdaf5b11b48e36c685a8e
<ide><path>doc/api/cli.md <ide> added: v12.0.0 <ide> --> <ide> <ide> Enables a signal handler that causes the Node.js process to write a heap dump <del>when the specified signal is received. <add>when the specified signal is received. `signal` must be a valid signal name. <add>Disabled by default. <ide> <ide> ```cons...
1
Ruby
Ruby
implement pr feedback
603bdd01a81e62d6b97a5da26d75d409e839a8fa
<ide><path>Library/Homebrew/cask/lib/hbc/cli/search.rb <ide> def self.extract_regexp(string) <ide> def self.search_remote(query) <ide> matches = GitHub.search_code(user: "caskroom", path: "Casks", <ide> filename: query, extension: "rb") <del> Array(matches).map ...
4
Javascript
Javascript
add hooks for tests to override core behavior
5f9bbadd713cbaca569fac413c45caa40399c836
<ide><path>packages/ember-metal/lib/accessors.js <ide> Ember.get = get; <ide> */ <ide> Ember.set = set; <ide> <add>if (Ember.config.overrideAccessors) { <add> Ember.config.overrideAccessors(); <add> get = Ember.get; <add> set = Ember.set; <add>} <add> <ide> // ..........................................................
3
Ruby
Ruby
fix failing test in file update checker
33192cfa07d82e345910cdb279f15305ad463faa
<ide><path>activesupport/test/file_update_checker_test.rb <ide> def test_should_be_robust_enough_to_handle_deleted_files <ide> <ide> def test_should_be_robust_to_handle_files_with_wrong_modified_time <ide> i = 0 <del> time = 1.year.from_now # wrong mtime from the future <add> now = Time.now <add> time =...
1
PHP
PHP
add asserts for template/layout
e35b8085f2255cd4ffe38a3a095ff75ca14bca75
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> public function assertResponseContains($content, $message = '') { <ide> $this->assertContains($content, $this->_response->body(), $message); <ide> } <ide> <add>/** <add> * Assert that the search string was in the template name. <add> * <add> * @param string $fi...
2
Go
Go
remove unused package
932759c288ef3055919388bc0319cddde0bee34a
<ide><path>vendor/github.com/spf13/cobra/doc/man_docs.go <del>// Copyright 2015 Red Hat Inc. All rights reserved. <del>// <del>// Licensed under the Apache License, Version 2.0 (the "License"); <del>// you may not use this file except in compliance with the License. <del>// You may obtain a copy of the License at <del>...
3
Ruby
Ruby
fix output on newer versions of git
591e9d6a52559c8d0e95140bd08c0666f9535705
<ide><path>Library/Homebrew/dev-cmd/tap-new.rb <ide> def tap_new <ide> <ide> unless args.no_git? <ide> cd tap.path do <del> safe_system "git", "init" <add> # Would be nice to use --initial-branch here but it's not available in <add> # older versions of Git that we support. <add> s...
1
Ruby
Ruby
check satisfaction directly
d7a479f55105f277ce96ad1b4385679c93618add
<ide><path>Library/Homebrew/requirements/java_requirement.rb <ide> class JavaRequirement < Requirement <ide> cask "java" <ide> download "http://www.oracle.com/technetwork/java/javase/downloads/index.html" <ide> <del> satisfy(:build_env => false) { java_version } <add> satisfy :build_env => false do <add> args...
1
PHP
PHP
fix broken pr
240fc43029f30bc3291673d7894b47607547ab34
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function getPaginationCount() <ide> { <ide> $this->backupFieldsForCount(); <ide> <del> $columns = $this->columns; <del> <del> // We have to check if the value is "null" so that the count function does <del> // not attempt to count an invalid strin...
1
Ruby
Ruby
fix an error in isolated running of tests
9da153c2d39f52c55af59a42b8551763b5821900
<ide><path>actionmailer/test/old_base/url_test.rb <ide> def signed_up_with_url(recipient) <ide> @recipient = recipient <ide> @welcome_url = url_for :host => "example.com", :controller => "welcome", :action => "greeting" <ide> end <del> <del> class <<self <del> attr_accessor :received_body <del> end <de...
1
Text
Text
add some backticks to flux docs
fa154e6e21fc3010e4501d6ca198b107cfdf4707
<ide><path>examples/todomvc-flux/readme.md <ide> Views ---> (actions) ----> Dispatcher ---> (registerd callback) ---> Stores ---- <ide> <ide> A unidirectional data flow is central to the Flux pattern, and in fact Flux takes its name from the Latin word for flow. In the above diagram, the ___dispatcher___, ___stores___...
1
Ruby
Ruby
add required methods to abstractdownloadstrategy
68b3e6f3fb4947076b94a7c0ab09281a8f19fda4
<ide><path>Library/Homebrew/download_strategy.rb <ide> def expand_safe_system_args args <ide> def quiet_safe_system *args <ide> safe_system(*expand_safe_system_args(args)) <ide> end <add> <add> # All download strategies are expected to implement these methods <add> def fetch; end <add> def stage; end <add> ...
1
Javascript
Javascript
remove trivial buffer imports
1b0d9795b6b738bdc27880a71764d3fe86e68e45
<ide><path>test/internet/test-dgram-multicast-set-interface-lo.js <ide> if (common.isSunOS) { <ide> } <ide> <ide> const networkInterfaces = require('os').networkInterfaces(); <del>const Buffer = require('buffer').Buffer; <ide> const fork = require('child_process').fork; <ide> const MULTICASTS = { <ide> IPv4: ['224.0...
3
Go
Go
verify build completed
fa480403c75c90880a6bc79bab9e10b012379006
<ide><path>integration/build/build_userns_linux_test.go <ide> import ( <ide> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/integration/internal/container" <add> "github.com/docker/docker/pkg/jsonmessage" <ide> "github.com/docker/docker/pkg/stdcopy" <ide> "github.com/docker/docker/testu...
1
Javascript
Javascript
remove unused file
4d425e7f539b4a90fc458bfe8dc62367014b6fe8
<ide><path>examples/module/async-loaded.js <del>export var answer = 42;
1
Text
Text
fix spanish translations for bash-cat
211300c3090a1c050c1344dbaf5e30b63f030fc1
<ide><path>guide/spanish/bash/bash-cat/index.md <ide> localeTitle: Bash Cat <ide> --- <ide> ## Bash Cat <ide> <del>Cat es uno de los comandos más utilizados en los sistemas operativos Unix. <add><code>cat</code> es uno de los comandos más utilizados en los sistemas operativos Unix. <ide> <del>Cat se utiliza para leer...
1
PHP
PHP
fix bugs in redis class
244d4bfd0781d47d85a1bdb664c239bfe427809c
<ide><path>application/config/database.php <ide> <ide> 'redis' => array( <ide> <del> 'default' => array('host' => '127.0.0.1', 'port' => 6379), <add> 'default' => array( <add> 'host' => '127.0.0.1', <add> 'port' => 6379, <add> 'database' => 0 <add> ), <ide> <ide> ), <ide> <ide><path>laravel/redis...
2
Text
Text
fill contributor agreement by robertsipek
260c29794a1caa70f8b0702c31fcfecad6bfdadc
<ide><path>.github/contributors/robertsipek.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or projec...
1
Text
Text
fix path the test environment conditions
a0fc7a4b46dd05b337de56ebde0ae38a52668c9c
<ide><path>TESTING.md <ide> When adding new tests or modifying existing tests under `integration/`, testing <ide> environment should be properly considered. `skip.If` from <ide> [gotest.tools/skip](https://godoc.org/gotest.tools/skip) can be used to make the <ide> test run conditionally. Full testing environment cond...
1
Javascript
Javascript
add textinput.setselection method
771ca921b59cc3b3fd12c8fe3b08ed150bcf7a04
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> type ImperativeMethods = $ReadOnly<{| <ide> clear: () => void, <ide> isFocused: () => boolean, <ide> getNativeRef: () => ?React.ElementRef<HostComponent<mixed>>, <add> setSelection: (start: number, end: number) => void, <ide> |}>; <ide> <ide> const em...
2
Text
Text
move expo samples to a service account
50fbb27bd968703453685e80a5fda466b7bb8d99
<ide><path>README.md <ide> Follow the [Getting Started guide](https://reactnative.dev/docs/getting-started) <ide> - [Creating a New Application][new-app] <ide> - [Adding React Native to an Existing Application][existing] <ide> <del>[hello-world]: https://snack.expo.dev/@hramos/hello,-world! <add>[hello-world]: https:/...
1
Ruby
Ruby
remove expansion config
f167e24e1384380a849da27de0c762ec71ffcd16
<ide><path>actionpack/lib/action_view/railtie.rb <ide> module ActionView <ide> # = Action View Railtie <ide> class Railtie < Rails::Railtie <ide> config.action_view = ActiveSupport::OrderedOptions.new <del> config.action_view.stylesheet_expansions = {} <del> config.action_view.javascript_expansions = { :d...
1
Python
Python
fix initializers and update ops
8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
<ide><path>keras/backend/tensorflow_backend.py <ide> from tensorflow.python.ops import ctc_ops as ctc <ide> from .common import floatx, epsilon, image_data_format <ide> <add>import sys <ide> import functools <ide> import threading <ide> <ide> def update(x, new_x): <ide> # Returns <ide> The variable `x` up...
5
Javascript
Javascript
use array lookup for localized dependency ids
242bc6928faab1305be3a420860a7f4a07348889
<ide><path>packager/react-packager/src/JSTransformer/worker/__tests__/inline-test.js <ide> describe('inline constants', () => { <ide> }); <ide> <ide> it('can work with transformed require calls', () => { <del> const code = `__arbitrary(function() { <del> var a = require(123, 'react-native').Platform.OS; <a...
4
Javascript
Javascript
provide profiling bundle for react-reconciler
b8fa09e9e2b52d46e47ad604ef7c8c3529471b71
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> <ide> /******* React Reconciler *******/ <ide> { <del> bundleTypes: [NODE_DEV, NODE_PROD], <add> bundleTypes: [NODE_DEV, NODE_PROD, NODE_PROFILING], <ide> moduleType: RECONCILER, <ide> entry: 'react-reconciler', <ide> global: 'Rea...
2
Ruby
Ruby
fix 2nd typo in cleaner.rb
8457fa5af5770cd940e83b804567a3cf5d7b05a9
<ide><path>Library/Homebrew/cleaner.rb <ide> def observe_file_removal(path) <ide> end <ide> <ide> # Removes any empty directories in the formula's prefix subtree <del> # Keeps any empty directions protected by skip_clean <add> # Keeps any empty directories protected by skip_clean <ide> # Removes any unresolved...
1
Python
Python
add providers file for dns api
cabb881d062460c88eee45f8f22020b281cfb4b6
<ide><path>libcloud/dns/providers.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Apache...
1
Go
Go
check syslog config on daemon start
960791ba60621ef2b182379e7b237e681b602694
<ide><path>daemon/logger/syslog/syslog.go <ide> func ValidateLogOpt(cfg map[string]string) error { <ide> return fmt.Errorf("unknown log opt '%s' for syslog log driver", key) <ide> } <ide> } <add> if _, _, err := parseAddress(cfg["syslog-address"]); err != nil { <add> return err <add> } <add> if _, err := parseFa...
2
Javascript
Javascript
add scheduleonce and remove flag
0be5c862660e284a86ec35306da85325571987f3
<ide><path>packages/ember-metal/lib/run_loop.js <ide> function invokeOnceTimer(guid, onceTimers) { <ide> delete timers[guid]; <ide> } <ide> <add>function scheduleOnce(queue, target, method, args) { <add> var tguid = Ember.guidFor(target), <add> mguid = Ember.guidFor(method), <add> onceTimers = run.autorun().o...
2
Go
Go
pass unix paths to testrunnodupvolumes
db1f8f7481a825a921295adea36d2e56ee8703ae
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestVolumesFromGetsProperMode(t *testing.T) { <ide> func TestRunNoDupVolumes(t *testing.T) { <ide> defer deleteAllContainers() <ide> <del> bindPath1, err := ioutil.TempDir("", "test1") <del> if err != nil { <del> t.Fatal(err) <del> } <del> defer os.Remove(...
1
PHP
PHP
fix strict errors
5936fa5930ef4a86115f74ac9586c7251c8b9e71
<ide><path>lib/Cake/Utility/ObjectCollection.php <ide> public function trigger($callback, $params = array(), $options = array()) { <ide> $options[$opt] = $event->{$opt}; <ide> } <ide> } <del> $callback = array_pop(explode('.', $event->name())); <add> $parts = explode('.', $event->name()); <add> $callb...
1
Javascript
Javascript
fix strict mode violoation in test
f9c393f4fb32a1263dd64eda347bba81e40473cb
<ide><path>src/core/__tests__/ReactComponentLifeCycle-test.js <ide> describe('ReactComponentLifeCycle', function() { <ide> } <ide> }); <ide> expect(function() { <del> instance = ReactTestUtils.renderIntoDocument(<StatefulComponent />); <add> ReactTestUtils.renderIntoDocument(<StatefulComponent /...
1
Javascript
Javascript
use latest safari in browserstack tests
8cc453f21d243b37137e092087620db8e0a21e3d
<ide><path>testem.browserstack.js <ide> const BrowserStackLaunchers = { <ide> '--os', <ide> 'OS X', <ide> '--osv', <del> 'Mojave', <add> 'Big Sur', <ide> '--b', <ide> 'safari', <ide> '--bv',
1
Python
Python
add 3er line
d2e525abe1fc0e66686c4268130b6cd9fc941d5e
<ide><path>glances/plugins/glances_processlist.py <ide> def msg_curse(self, args=None): <ide> <ide> # Add extended stats but only for the top processes <ide> # !!! CPU consumption !!!! <del> if first: <add> if first and p['extended_stats']: <ide> # Left pad...
1
Ruby
Ruby
add xcode to the blacklist
6ab97f75be351e06aea97355dee043912d549364
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> EOS <ide> when /(lib)?lzma/ <ide> "lzma is now part of the xz formula." <add> when 'xcode' then <<-EOS.undent <add> Xcode can be installed via the App Store (on Lion), or from: <add> http://connect.apple.com/ <add> <add> If...
1
Ruby
Ruby
update error message for validate method
a91b36f6eb502e91c9e3e2e8d3db26abc56696cf
<ide><path>activemodel/lib/active_model/validations.rb <ide> def validates_each(*attr_names, &block) <ide> # value. <ide> def validate(*args, &block) <ide> options = args.extract_options! <add> valid_keys = [:on, :if, :unless] <ide> <ide> if args.all? { |arg| arg.is_a?(Symbol) } <d...
1
Text
Text
fix text to follow portuguese language syntax
f99d3ee779d1ff6dd587d21036c66a508819a72e
<ide><path>curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-flex-shrink-property-to-shrink-items.portuguese.md <ide> localeTitle: Use a propriedade flex-shrink para reduzir os itens <ide> --- <ide> <ide> ## Description <del><section id="description"> Até agora, todas as propriedades nos de...
1
Javascript
Javascript
add tests for parallel rendering
07f2a439433cf791892a71c2695760d57ea4e993
<ide><path>test/unit/api_spec.js <ide> /* globals PDFJS, expect, it, describe, Promise, combineUrl, waitsFor, <ide> InvalidPDFException, MissingPDFException, StreamType, FontType, <ide> PDFDocumentProxy, PasswordException, PasswordResponses, <del> PDFPageProxy, createPromiseCapability */...
1
Ruby
Ruby
fix #write_inheritable_attribute bug that crept in
0a454cd73e9644b154d72b573bc58451010f0e1a
<ide><path>activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb <ide> def inheritable_attributes <ide> <ide> def write_inheritable_attribute(key, value) <ide> if inheritable_attributes.equal?(EMPTY_INHERITABLE_ATTRIBUTES) <del> inheritable_attributes = {} <add> @inheritable_attri...
1
Text
Text
fix html plugin version badge
5d4e1acd39b9f654c00b3e66f002bb279e65f8a3
<ide><path>README.md <ide> within webpack itself use this plugin interface. This makes webpack very <ide> [i18n]: https://github.com/webpack/i18n-webpack-plugin <ide> [i18n-npm]: https://img.shields.io/npm/v/i18n-webpack-plugin.svg <ide> [html-plugin]: https://github.com/ampedandwired/html-webpack-plugin <del>[html-plu...
1
Javascript
Javascript
move internalbinding whitelisting into loaders.js
7bd8bbaabf4ed964476fca4bed267815b2b3967e
<ide><path>lib/internal/bootstrap/loaders.js <ide> writable: false <ide> }); <ide> <add> // internalBindingWhitelist contains the name of internalBinding modules <add> // that are whitelisted for access via process.binding()... this is used <add> // to provide a transition path for modules that are being move...
2
Javascript
Javascript
increase timeout for tests
5687cf71d043bff77b1410e8edd9ea5def1c1d34
<ide><path>test/HotModuleReplacementPlugin.test.js <ide> describe("HotModuleReplacementPlugin", () => { <ide> }); <ide> }); <ide> }); <del> }, 60000); <add> }, 120000); <ide> <ide> it("should correct working when entry is Object and key is a number", done => { <ide> const entryFile = path.join(
1
Python
Python
handle bad zip files nicely when parsing dags.
8924cf1751e5190a1a7b4e33bb40de604b8b76b2
<ide><path>airflow/dag_processing/manager.py <ide> def _refresh_dag_dir(self): <ide> dag_filelocs = [] <ide> for fileloc in self._file_paths: <ide> if not fileloc.endswith(".py") and zipfile.is_zipfile(fileloc): <del> with zipfile.ZipFile(fileloc) as z: <del> ...
1
Javascript
Javascript
ignore stale xhr callbacks
d5ccabce600efb10092fdf0ae033c009026bf4cb
<ide><path>src/widgets.js <ide> angularWidget('ng:view', function(element) { <ide> changeCounter++; <ide> }); <ide> <del> this.$watch(function() {return changeCounter;}, function() { <add> this.$watch(function() {return changeCounter;}, function(scope, newChangeCounter) { <ide> var temp...
2
Python
Python
fix error when serializer gets files but no data
59cce01b3359aa009e697a99eabbf2ef322b28e2
<ide><path>rest_framework/serializers.py <ide> def __init__(self, instance=None, data=None, files=None, <ide> <ide> self.context = context or {} <ide> <del> self.init_data = data <add> self.init_data = data or {} <ide> self.init_files = files <ide> self.object = instance <ide> ...
2
Text
Text
add changelogs for cli
7f24ec1088d1c0d346d2df1263a9bb58a20800ea
<ide><path>doc/api/cli.md <ide> The output of this option is less detailed than this document. <ide> ### `-e`, `--eval "script"` <ide> <!-- YAML <ide> added: v0.5.2 <add>changes: <add> - version: v5.11.0 <add> pr-url: https://github.com/nodejs/node/pull/5348 <add> description: Built-in libraries are now availabl...
1
PHP
PHP
add missing property to testauthenticate
c6e3df4cad2001fb544be7d6a6f7075e11d2e16a
<ide><path>tests/test_app/TestApp/Auth/TestAuthenticate.php <ide> class TestAuthenticate extends BaseAuthenticate <ide> public $callStack = []; <ide> <ide> public $authenticationProvider; <add> <add> public $modifiedUser; <ide> <ide> /** <ide> * @return array<string, mixed>
1
Ruby
Ruby
make `abstractmysqladapter#version` public
d9e74ace9f0d0bba39c3b836b3d79b059d516eb0
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def initialize_schema_migrations_table <ide> end <ide> end <ide> <add> def version <add> @version ||= Version.new(full_version.match(/^\d+\.\d+\.\d+/)[0]) <add> end <add> <ide> # Returns t...
2
PHP
PHP
use constants where possible
024fb658fb26bc8f253d6142d3aebbf1450beda6
<ide><path>lib/Cake/Database/Schema/MysqlSchema.php <ide> public function convertFieldDescription(Table $table, $row) { <ide> 'comment' => $row['Comment'], <ide> ]; <ide> $table->addColumn($row['Field'], $field); <del> if (!empty($row['Key']) && $row['Key'] === 'PRI') { <del> $table->addConstraint('primary', ...
3
Text
Text
add release notes for v5.6.22
ca75ec83c325894206283bc0653c8fca5c4fa66d
<ide><path>CHANGELOG-5.6.md <ide> # Release Notes for 5.6.x <ide> <add>## v5.6.22 (2018-05-15) <add> <add>### Added <add>- Added `Collection::loadMissing()` method ([#24166](https://github.com/laravel/framework/pull/24166), [#24215](https://github.com/laravel/framework/pull/24215)) <add> <add>### Changed <add>- Suppor...
1
PHP
PHP
update global config() function to use new path
cfbb08732411a180ab112ca651c47f8fccc5eb48
<ide><path>src/basics.php <ide> function config() { <ide> $count = count($args); <ide> $included = 0; <ide> foreach ($args as $arg) { <del> if (file_exists(APP . 'Config/' . $arg . '.php')) { <del> include_once APP . 'Config/' . $arg . '.php'; <add> if (file_exists(CONFIG . $arg . '.php')) { <add> inclu...
1
Ruby
Ruby
add doctor check for unbrewed header files
e5c42895a86bb32b68a46ef00ee486d1608e00f5
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_stray_las <ide> EOS <ide> end <ide> <add>def check_for_stray_headers <add> white_list = {} # TODO whitelist MacFuse/OSXFuse headers <add> <add> __check_stray_files "/usr/local/include/**/*.h", white_list, <<-EOS.undent <add> Unbrewed header files wer...
1
Text
Text
update docs to v0.13.0-beta.2
fb2f6c6747e9a388663666aaf467d204a9776f22
<ide><path>docs/docs/ref-02-component-api.ko-KR.md <ide> replaceState(object nextState[, function callback]) <ide> `setState()`와 비슷하지만 기존에 존재하는 state 중 nextState에 없는 키는 모두 삭제됩니다. <ide> <ide> <del>### forceUpdate() <add>### forceUpdate <ide> <ide> ```javascript <ide> forceUpdate([function callback]) <ide> DOMElement ...
4
Javascript
Javascript
remove deprecated property usage
5bda245248ba084f50709f6ccee52c82f19524b6
<ide><path>lib/AmdMainTemplatePlugin.js <ide> class AmdMainTemplatePlugin { <ide> const mainTemplate = compilation.mainTemplate; <ide> <ide> compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => { <del> const externals = chunk.modules.filter((m) => m.external); <add> const externals = chunk...
1
Text
Text
prepare js code for eslint-plugin-markdown
b6d293d2158c66a3edbb86c0c43b4c51af3484f7
<ide><path>doc/api/child_process.md <ide> bat.stderr.on('data', (data) => { <ide> bat.on('exit', (code) => { <ide> console.log(`Child exited with code ${code}`); <ide> }); <add>``` <ide> <add>```js <ide> // OR... <ide> const exec = require('child_process').exec; <ide> exec('my.bat', (err, stdout, stderr) => { <ide> ...
9
Text
Text
add domenic as collaborator
cf5020fc025cba38668b45949a29b5c480e94e3f
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Christopher Monsanto** ([@monsanto](https://github.com/monsanto)) &lt;chris@monsan.to&gt; <ide> * **Ali Ijaz Sheikh** ([@ofrobots](https://github.com/ofrobots)) &lt;ofrobots@google.com&gt; <ide> * **Oleg Elifantiev** ([@Oleg...
1
Text
Text
add line number 21 (about { } )
faadc843d0f77d5bbb8a8690285f9174372cedd4
<ide><path>client/src/pages/guide/english/cplusplus/the-if-statement/index.md <ide> title: C++ If Statement <ide> // Block of statements if test expression is True <ide> } <ide> ``` <add>If there is only one statement after the if statement the '{ }' are not necessarily required . But if there are more number of ...
1
Javascript
Javascript
remove outdated todo
5c4362dc5c30357aed829e630ca4a03bd812e482
<ide><path>src/renderers/dom/fiber/__tests__/ReactDOMFiber-test.js <ide> describe('ReactDOMFiber', () => { <ide> }); <ide> <ide> it('throws if non-element passed to top-level render', () => { <del> // FIXME: These assertions pass individually, but they leave React in <del> // an inconsistent ...
1
Ruby
Ruby
add second t to overwritten
201156b6a9f090c21953e2c69a41f28c33545a1f
<ide><path>actionpack/lib/action_view/context.rb <ide> def _prepare_context <ide> <ide> # Encapsulates the interaction with the view flow so it <ide> # returns the correct buffer on +yield+. This is usually <del> # overwriten by helpers to add more behavior. <add> # overwritten by helpers to add more beh...
1
Text
Text
add some doc detail for invalid header chars
45b7fc2039035f103262eec15b5b9cda01b1f695
<ide><path>doc/api/http2.md <ide> These will be reported using either a synchronous `throw` or via an `'error'` <ide> event on the `Http2Stream`, `Http2Session` or HTTP/2 Server objects, depending <ide> on where and when the error occurs. <ide> <add>### Invalid character handling in header names and values <add> <add>...
1
Javascript
Javascript
add localhost hack for windows
2876141c4292791bc12c0b8701dbcc366dde7297
<ide><path>lib/dns_uv.js <ide> exports.lookup = function(domain, family, callback) { <ide> return {}; <ide> } <ide> <add> // Hack required for Windows because Win7 removed the <add> // localhost entry from c:\WINDOWS\system32\drivers\etc\hosts <add> // See http://daniel.haxx.se/blog/2011/02/21/localhost-hack-...
1
Text
Text
add sharedarraybuffer to buffer documentation
bd0e36dbc60407f23dab92b57bcc7174ad2889da
<ide><path>doc/api/buffer.md <ide> differently based on what arguments are provided: <ide> memory. <ide> * Passing a string, array, or `Buffer` as the first argument copies the <ide> passed object's data into the `Buffer`. <del>* Passing an [`ArrayBuffer`] returns a `Buffer` that shares allocated memory with <del> ...
1
Ruby
Ruby
remove unused code
3c2e7a83197f72693079e788ac439e18672edcba
<ide><path>activerecord/test/cases/migration_test.rb <ide> def test_change_column_with_new_precision_and_scale <ide> <ide> Person.delete_all <ide> Person.connection.add_column 'people', 'wealth', :decimal, :precision => 9, :scale => 7 <del> Person.reset_column_information <ide> <ide> Person.connection....
1
Javascript
Javascript
reduce delta threshold for now
a4a41d1f80e6c8d0e607d67b85efe2e0a2b954a7
<ide><path>packages/sproutcore-touch/lib/gesture_recognizers/pinch.js <ide> SC.PinchGestureRecognizer = SC.Gesture.extend({ <ide> <ide> _currentDistanceBetweenTouches: null, <ide> _previousDistanceBetweenTouches: null, <del> _deltaThreshold: 10, <add> _deltaThreshold: 0, <ide> <ide> scale: 0, <ide>
1
Javascript
Javascript
fix handling of some cameras in mirror.js
9af3f082e8f710eb2e4704f4aee3941a74ed2cfd
<ide><path>examples/js/Mirror.js <ide> THREE.Mirror = function ( renderer, camera, options ) { <ide> this.textureMatrix = new THREE.Matrix4(); <ide> <ide> this.mirrorCamera = this.camera.clone(); <add> this.mirrorCamera.matrixAutoUpdate = true; <ide> <ide> this.texture = new THREE.WebGLRenderTarget( width, height ...
1
Ruby
Ruby
improve fail output
4d2201b8beabf99a1f4bf062a5aef12b19475caa
<ide><path>Library/Homebrew/test/support/helper/integration_command_test_case.rb <ide> def cmd_output(*args) <ide> def cmd(*args) <ide> output = cmd_output(*args) <ide> status = $?.exitstatus <del> puts "\n'brew #{args.join " "}' output: #{output}" if status.nonzero? <del> assert_equal 0, status <add> ...
1
Text
Text
add tpu readme
7f87bfc910812f007c1b16a2ea4f2d85d2942ac5
<ide><path>examples/research_projects/jax-projects/README.md <ide> For more information, check out [this PR](https://github.com/huggingface/hugging <ide> <ide> ## How to setup TPU VM <ide> <del>TODO (should be filled by 2.07.)... <add>In this section we will explain how you can ssh into a TPU VM that has been given t...
1