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 the assumption of schema in database_url
7429bc58a0dffa94636b21cc0cba1d19a5ae7a84
<ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb <ide> class ConnectionUrlResolver # :nodoc: <ide> def initialize(url) <ide> raise "Database URL cannot be empty" if url.blank? <ide> @uri = uri_parser.parse(url) <del> @adapter = @uri.schem...
1
Ruby
Ruby
remove dead code. @klass isn't used anymore
15adf778af4e1e23d68bfe7684ab2337e5091931
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> class OptimizedUrlHelper < UrlHelper # :nodoc: <ide> <ide> def initialize(route, options) <ide> super <del> @klass = Journey::Router::Utils <ide> @required_parts = @route.required_parts <i...
1
Text
Text
fix linter issue
1ad09593fd077ecc4b42e8f73740349fec9d469a
<ide><path>doc/api/assert.md <ide> Legacy assertion mode uses the [Abstract Equality Comparison][] in: <ide> <ide> To use legacy assertion mode: <ide> <del>```cjs <add>```mjs <ide> import assert from 'assert'; <ide> ``` <ide>
1
Javascript
Javascript
remove obsolete lint comment
bda34bde56f688d38a908cc851e892402bef6f23
<ide><path>test/parallel/test-repl.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <del>/* eslint-disable max-len, strict */ <ide> 'use strict'; <ide> const common = require('../common'); <ide> const assert = require('assert');
1
Python
Python
fix flaky test
8b42fff90e14503d5612106d8d17aebc58a9c061
<ide><path>tests/keras/test_optimizers.py <ide> def test_adagrad(): <ide> <ide> <ide> def test_adadelta(): <del> _test_optimizer(Adadelta()) <del> _test_optimizer(Adadelta(decay=1e-3)) <add> _test_optimizer(Adadelta(), target=0.83) <add> _test_optimizer(Adadelta(decay=1e-3), target=0.83) <ide> <ide> <id...
1
Text
Text
add markdown identifier to code language
dd3c0e08939e4333d53acc9170b906958e42c58e
<ide><path>guide/english/algorithms/sorting-algorithms/radix-sort/index.md <ide> Finally , we sort according to the hundred's digit (most significant digit): <ide> The array becomes : 10, 11, 17, 21, 34, 44, 123, 654 which is sorted. This is how our algorithm works. <ide> <ide> An implementation in C: <del>``` <add>`...
1
Ruby
Ruby
switch bottle provider over to bintray
77d47de3b482b78782dec7fdd1392a7dee436a38
<ide><path>Library/Homebrew/software_spec.rb <ide> def build_url(root_url, filename) <ide> class BottleSpecification <ide> DEFAULT_PREFIX = "/usr/local".freeze <ide> DEFAULT_CELLAR = "/usr/local/Cellar".freeze <del> if ENV["HOMEBREW_BINTRAY_TESTING"] <add> if ENV["HOMEBREW_SOURCEFORGE_TESTING"] <add> DEFAULT_R...
1
Javascript
Javascript
fix flaky test on firefox 54+ and safari 9
7c876285cbfebf69a2ea64a216f903cf8d3803ee
<ide><path>test/ng/directive/ngOptionsSpec.js <ide> describe('ngOptions', function() { <ide> }); <ide> <ide> <del> it('should not re-set the `selected` property if it already has the correct value', function() { <del> scope.values = [{name: 'A'}, {name: 'B'}]; <del> createMultiSelect(); <add> // S...
1
Javascript
Javascript
keep compatibility with `.[ext]`
8788add9126014473e74d643e4f3511e7890979a
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> /** @type {string} */ <ide> this.rawRequest = rawRequest; <ide> /** @type {boolean} */ <del> this.binary = type.startsWith("webassembly"); <add> this.binary = /^(url|webassembly)\b/.test(type); <ide> this.parser = parser; <ide> t...
3
Javascript
Javascript
fix tests on firefox v93+
6a52c4f90cc661c0605cd98e6cb04455ba913f58
<ide><path>test/ng/directive/inputSpec.js <ide> describe('input', function() { <ide> var inputElm = helper.compileInput('<input type="datetime-local" ng-model="breakMe"/>'); <ide> <ide> $rootScope.$apply(function() { <del> $rootScope.breakMe = new Date(2009, 0, 6, 16, 25, 0); <add> $rootScope...
1
Python
Python
teach gyp to write an 'all deps' rule"
fa9f31a4fda5a3782c652e56e394465805ebb50f
<ide><path>tools/gyp/pylib/gyp/generator/make.py <ide> def CalculateMakefilePath(build_file, base_name): <ide> for target in gyp.common.AllTargets(target_list, target_dicts, build_file): <ide> needed_targets.add(target) <ide> <del> all_deps = set() <ide> build_files = set() <ide> include_list = set() <i...
1
Javascript
Javascript
add uuid field to animationclip.tojson
4da3cc11407434a6ccc75d8789b2622cb02a57cb
<ide><path>src/animation/AnimationClip.js <ide> Object.assign( AnimationClip, { <ide> <ide> 'name': clip.name, <ide> 'duration': clip.duration, <del> 'tracks': tracks <add> 'tracks': tracks, <add> 'uuid': clip.uuid <ide> <ide> }; <ide>
1
Text
Text
explain volume_name in post /container binds
2bd2893b9239d0bf0b584612a21ca205c0059170
<ide><path>docs/reference/api/docker_remote_api_v1.21.md <ide> Json Parameters: <ide> + `container_path` to create a new volume for the container <ide> + `host_path:container_path` to bind-mount a host path into the container <ide> + `host_path:container_path:ro` to make the bind-mount ...
1
Text
Text
use https for links in `readme.md`
6d85c7e41ae2978664e4840c75d59f3a2d58cafa
<ide><path>README.md <ide> To get a local copy of the current code, clone it using git: <ide> $ git clone https://github.com/mozilla/pdf.js.git <ide> $ cd pdf.js <ide> <del>Next, install Node.js via the [official package](http://nodejs.org) or via <add>Next, install Node.js via the [official package](https://n...
1
PHP
PHP
remove unnecessary import
75cdbedd505441de42427ab5bb2c7e03e5fb0777
<ide><path>src/Illuminate/Validation/ValidationException.php <ide> use Exception; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Facades\Validator as ValidatorFacade; <del>use Illuminate\Support\Str; <ide> <ide> class ValidationException extends Exception <ide> {
1
Go
Go
fix restore container by nspid
9f03fd76b578f2d9d00b0a1bd76b776e20a7d681
<ide><path>execdriver/namespaces/driver.go <ide> func (d *driver) Kill(p *execdriver.Command, sig int) error { <ide> } <ide> <ide> func (d *driver) Restore(c *execdriver.Command) error { <del> return ErrNotSupported <add> var ( <add> nspid int <add> p = filepath.Join(d.root, "containers", c.ID, "root", ".nspid")...
1
Javascript
Javascript
add values to error message
15fa9fca0c319525766ee45ff05c36bbc8d0247a
<ide><path>test/parallel/test-require-extensions-main.js <ide> require('../common'); <ide> const assert = require('assert'); <ide> const fixtures = require('../common/fixtures'); <ide> <del>const fixturesRequire = <del> require(fixtures.path('require-bin', 'bin', 'req.js')); <add>const fixturesRequire = require(fixtu...
1
Python
Python
log the loss value in summary exporter
17263f301b648d461329af6070664f37e77b6abe
<ide><path>research/object_detection/model_lib_v2.py <ide> def _dist_train_step(data_iterator): <ide> 'steps_per_sec': np.mean(steps_per_sec_list), <ide> 'steps_per_sec_p50': np.median(steps_per_sec_list), <ide> 'steps_per_sec_max': max(steps_per_sec_list), <add> 'last_batch_loss': loss <...
1
Javascript
Javascript
add polyfills to jest setup scripts
1ae7a77934465a33538dd73226359fda141db981
<ide><path>packager/react-packager/src/BundlesLayout/__tests__/BundlesLayoutIntegration-test.js <ide> describe('BundlesLayout', () => { <ide> 'polyfills/error-guard.js', <ide> 'polyfills/String.prototype.es6.js', <ide> 'polyfills/Array.prototype.es6.js', <add> 'polyfills/Array.es6.js', <ide> ]; <ide> ...
5
Ruby
Ruby
remove all journey constant from public api
3b50fb6b2f413b4bfe638b3c9839fe7db5077f73
<ide><path>actionpack/lib/action_dispatch/journey/formatter.rb <ide> require "action_controller/metal/exceptions" <ide> <ide> module ActionDispatch <add> # :stopdoc: <ide> module Journey <ide> # The Formatter class is used for formatting URLs. For example, parameters <ide> # passed to +url_for+ in Rails wil...
5
Java
Java
implement touch intercepting in rctview
d0de0767e3c2a034aca4d4cf5330b0937ea0dd9f
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java <ide> private static boolean isTransformedTouchPointInView( <ide> // This view can't be the target, but its children might <ide> if (view instanceof ViewGroup) { <ide> View targetView = findTouchTargetView(even...
1
Text
Text
change the title so it is more visible.
02185e18dfa2f8ed3b784bb743482622165a82db
<ide><path>guide/english/python/anaconda/index.md <ide> --- <ide> title: Anaconda <ide> --- <add> <add>## Anaconda <ide> **Anaconda** is a package manager, environment manager and Python distribution with a collection of numerous packages. Anaconda is platform-agnostic, so you can use it whether you are on Windows, mac...
1
Javascript
Javascript
update doc example to current router
3d87f631e2b3924b584a6b4ceb2a1a02b4142908
<ide><path>packages/ember-application/lib/system/application.js <ide> var Application = Ember.Application = Ember.Namespace.extend(Ember.DeferredMixin <ide> This allows application developers to do: <ide> <ide> ```javascript <del> App = Ember.Application.create(); <add> var App = Ember.Application.create...
1
PHP
PHP
update doc block
75d239b354ea8c12a22bfb180e809e0c171b6bfb
<ide><path>src/Illuminate/Support/Facades/Validator.php <ide> namespace Illuminate\Support\Facades; <ide> <ide> /** <del> * @method static \Illuminate\Contracts\Validation\Validator make(array $data, array $rules, array $messages = [], array $customAttributes = []) <add> * @method static \Illuminate\Validation\Validat...
1
Ruby
Ruby
handle non-core kegs without receipts
d274d37263e99193567606ac2b7929bc64dba091
<ide><path>Library/Homebrew/tab.rb <ide> def self.for_keg keg <ide> if path.exist? <ide> self.from_file path <ide> else <del> self.dummy_tab Formula.factory(keg.parent.basename) <add> begin <add> self.dummy_tab Formula.factory(keg.parent.basename) <add> rescue FormulaUnavailableError...
1
Ruby
Ruby
allow resource fetching
809fc87da02749435da3ffd843691b38f2169811
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch <ide> end <ide> <ide> puts "Fetching: #{bucket * ', '}" if bucket.size > 1 <del> bucket.each { |f| fetch_formula(f) } <add> bucket.each do |f| <add> fetch_formula(f) <add> f.resources.each do |r| <add> fetch_resource(r) <add> ...
1
Javascript
Javascript
make the docs of time and date picker in order
54da3926d9bac84a9880b062510ab5892bb2b2be
<ide><path>website/server/extractDocs.js <ide> var apis = [ <ide> '../Libraries/Storage/AsyncStorage.js', <ide> '../Libraries/Utilities/BackAndroid.android.js', <ide> '../Libraries/CameraRoll/CameraRoll.js', <add> '../Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js', <ide> '../Libraries/Uti...
1
Python
Python
move pad_sequences to /utils
d022b8c987e470c33f8aac86606f6f7369f64feb
<ide><path>keras/distribute/keras_correctness_test_base.py <ide> from keras.distribute.strategy_combinations import multi_worker_mirrored_strategies <ide> from keras.distribute.strategy_combinations import strategies_minus_tpu <ide> from keras.mixed_precision import policy <del>from keras.preprocessing import sequence ...
6
Text
Text
consolidate collaborator status in governance
41d5666aaa37aa43fc0c15220c8d2fa7929abd39
<ide><path>GOVERNANCE.md <ide> Typical activities of a Collaborator include: <ide> * Participation in working groups <ide> * Merging pull requests <ide> <del>The TSC periodically reviews the Collaborator list to identify inactive <del>Collaborators. Past Collaborators are typically given _Emeritus_ status. Emeriti <de...
1
Text
Text
update some literal translations in index.md
8559cfb06ce3990efee321da3f4a0138a7ed32ce
<ide><path>guide/spanish/agile/test-driven-development/index.md <ide> localeTitle: Desarrollo guiado por pruebas <ide> <ide> Test Driven Development (TDD) es uno de los enfoques de desarrollo de software ágil. Se basa en el concepto de que <ide> <del>> debe escribir un caso de prueba para su código incluso antes de e...
1
Javascript
Javascript
create a registry per applicationinstance
f0aa38781b835e3463fe251f875452ba7a292113
<ide><path>packages/ember-application/lib/system/application-instance.js <ide> import { set } from "ember-metal/property_set"; <ide> import EmberObject from "ember-runtime/system/object"; <ide> import run from "ember-metal/run_loop"; <add>import Registry from 'container/registry'; <ide> <ide> /** <ide> The `Applicat...
2
Ruby
Ruby
fix an issue with duplicate preloaded records
4b455e4f32b7bc39bc43b607c0044684d452b9b2
<ide><path>activerecord/lib/active_record/associations/preloader.rb <ide> def preloaders_for_hash(association, records, scope, polymorphic_parent) <ide> association.flat_map { |parent, child| <ide> grouped_records(parent, records, polymorphic_parent).flat_map do |reflection, reflection_records| <i...
2
Text
Text
fix typos in functional api guide
6911fa2cba77da7e873e27a3448cadf0dce59b1e
<ide><path>docs/templates/getting-started/complete_guide_to_the_keras_functional_api.md <ide> x = Embedding(output_dim=512, input_dim=10000, input_length=100)(main_input) <ide> # containing information about the entire sequence <ide> lstm_out = LSTM(32)(x) <ide> # here we insert the auxiliary loss, allowing the LSTM an...
1
Javascript
Javascript
use template literals
8baaa25aec5a052c32d63f1f7f77bbd0e4a78796
<ide><path>lib/dns.js <ide> function errnoException(err, syscall, hostname) { <ide> } <ide> var ex = null; <ide> if (typeof err === 'string') { // c-ares error code. <del> ex = new Error(syscall + ' ' + err + (hostname ? ' ' + hostname : '')); <add> const errHost = hostname ? ' ' + hostname : ''; <add> ...
1
Javascript
Javascript
gate a test
0e100ed00fb52cfd107db1d1081ef18fe4b9167f
<ide><path>packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js <ide> describe('ReactDOMFizzServer', () => { <ide> ); <ide> }); <ide> <add> // @gate experimental <ide> it('client renders a boundary if it errors before finishing the fallback', async () => { <ide> function App({isClient}) { <ide> ...
1
Javascript
Javascript
fix key name for function keys with modifiers
17ebd464ccdf12a4fb46334ff5d7a71f0f2e70a9
<ide><path>lib/internal/readline/utils.js <ide> function* emitKeys(stream) { <ide> <ide> // Parse the key itself <ide> switch (code) { <del> /* xterm/gnome ESC O letter */ <add> /* xterm/gnome ESC [ letter (with modifier) */ <add> case '[P': key.name = 'f1'; break; <add> case '[...
2
Ruby
Ruby
move root method at top of routes file
43fa48e5aa981bf86635fa31ace9eede24e93826
<ide><path>railties/lib/rails/generators/rails/app/templates/config/routes.rb <ide> <%= app_const %>.routes.draw do <ide> # The priority is based upon order of creation: <ide> # first created -> highest priority. <add> <add> # You can have the root of your site routed with "root" <add> # just remember to delete...
1
Javascript
Javascript
use chrome 51 and ff 47 in unit tests
ca812b0aebfc62287c920c07977be2ad00692d53
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> 'SL_Chrome': { <ide> base: 'SauceLabs', <ide> browserName: 'chrome', <del> version: '47' <add> version: '51' <ide> }, <ide> 'SL_Firefox': { <ide> base: 'SauceLabs', <i...
1
Mixed
Ruby
remove extra decrement of transaction level
e0d59e6219c752d8cffc6b78c2240755f5728922
<ide><path>activerecord/CHANGELOG.md <add>* Remove extra decrement of transaction deep level. <add> <add> Fixes: #4566 <add> <add> *Paul Nikitochkin* <add> <ide> * Reset @column_defaults when assigning `locking_column`. <ide> We had a potential problem. For example: <ide> <ide><path>activerecord/lib/acti...
3
Python
Python
indicate python 3.9 support in setup.py
d8a1f5fd6c2a1df68582bd7923c57f6847574bf3
<ide><path>setup.py <ide> def run(self): <ide> 'Programming Language :: Python :: 3.6', <ide> 'Programming Language :: Python :: 3.7', <ide> 'Programming Language :: Python :: 3.8', <add> 'Programming Language :: Python :: 3.9', <ide> 'Programming Language :: Python :: Implementat...
1
PHP
PHP
use a class constant for easier extandability
ecb3d33462db0eb30d672a6491d29d03cb03cc04
<ide><path>src/Controller/Component/AuthComponent.php <ide> protected function _getUser() <ide> */ <ide> public function redirectUrl($url = null) <ide> { <del> $redirectUrl = $this->request->query(self::QUERY_STRING_REDIRECT); <add> $redirectUrl = $this->request->query(static::QUERY_STRING_RE...
1
PHP
PHP
use spread operators
b68603797a57e89f6bd486129e9043503c960e6c
<ide><path>src/Illuminate/Auth/Access/Gate.php <ide> protected function buildAbilityCallback($callback) <ide> return function () use ($callback) { <ide> list($class, $method) = explode('@', $callback); <ide> <del> return call_user_func_array([$this->resolvePolicy($class), $method], func_...
4
Mixed
Text
fix tests for guide in root
164d900e964d9776a5c9018458616d228d98cbcf
<ide><path>CONTRIBUTING.md <ide> You can help us: <ide> <ide> Guide articles help you get a quick understanding of a technology concept. These are short, plain-English explanations that you can read before going on to more in-depth resources. <ide> <del>You can find an [example article about HTML Anchor Elements here...
7
PHP
PHP
add name() method to view contract
42cca80f61eeae40396bc7c47ff694f70ebf90a1
<ide><path>src/Illuminate/Contracts/View/View.php <ide> <ide> interface View extends Renderable { <ide> <add> /** <add> * Get the name of the view. <add> * <add> * @return string <add> */ <add> public function name(); <add> <ide> /** <ide> * Add a piece of data to the view. <ide> * <ide><path>src/Illuminate/...
2
Text
Text
fix broken markdown for link
0f01226c2a0acb445f55139a4e7f93bc0906080f
<ide><path>API.md <ide> Human-readable reference marks for scales. <ide> * [*axis*.tickSizeInner](https://github.com/d3/d3-axis/blob/v2.1.0/README.md#axis_tickSizeInner) - set the size of inner ticks. <ide> * [*axis*.tickSizeOuter](https://github.com/d3/d3-axis/blob/v2.1.0/README.md#axis_tickSizeOuter) - set the size o...
1
Python
Python
remove incompatible tests
090ac0d1387a9f370f18afbc25314eeec2568d0c
<ide><path>tests/keras/layers/test_simplernn.py <del>import theano <del>import unittest <del>from numpy.testing import assert_allclose <del>import numpy as np <del>from keras.layers.recurrent import SimpleRNN <del>from mock import Mock <del> <del>floatX = theano.config.floatX <del> <del>__author__ = "Jeff Ye" <del> <de...
1
Javascript
Javascript
ignore class methods on comment elements
64fd2c421ed582c16812d164a8a6f031b8e66287
<ide><path>src/jqLite.js <ide> function JQLiteData(element, key, value) { <ide> } <ide> <ide> function JQLiteHasClass(element, selector) { <add> if (!element.getAttribute) return false; <ide> return ((" " + (element.getAttribute('class') || '') + " ").replace(/[\n\t]/g, " "). <ide> indexOf( " " + selector + "...
2
Java
Java
fix exception message about producible media types
e4fcad9f936ba492f28ec5f0421eea4b3f76f8aa
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java <ide> protected <T> void writeWithMessageConverters(T returnValue, <ide> } <ide> } <ide> if (compatibleMediaTypes.isEmpty()) { <del> throw new HttpMediaTypeNotAcceptableExce...
1
Text
Text
remove cii badge in readme
b5444301f5207187c4e8f104868f66980e7fe430
<ide><path>README.md <ide> <img alt="Node.js" src="https://nodejs.org/static/images/logo-light.svg" width="400"/> <ide> </a> <ide> </p> <del><p align="center"> <del> <a title="CII Best Practices" href="https://bestpractices.coreinfrastructure.org/projects/29"><img src="https://bestpractices.coreinfrastructure.or...
1
Python
Python
add gold_preproc flag to cli/train
84bb543e4df265cbce89d78d77b925324f117e31
<ide><path>spacy/cli/train.py <ide> resume=("Whether to resume training", "flag", "R", bool), <ide> no_tagger=("Don't train tagger", "flag", "T", bool), <ide> no_parser=("Don't train parser", "flag", "P", bool), <del> no_entities=("Don't train NER", "flag", "N", bool) <add> no_entities=("Don't train N...
1
Ruby
Ruby
add deprecation warning to non-dsl fails_with_llvm
d4cfa1c0c5e68c147b790604e99b0da3c91ce689
<ide><path>Library/Homebrew/compat/compatibility.rb <ide> def self.resolve_alias name <ide> # This used to be called in "def install", but should now be used <ide> # up in the DSL section. <ide> def fails_with_llvm msg=nil, data=nil <add> opoo "Calling fails_with_llvm in the install method is deprecated" <add>...
1
Javascript
Javascript
use easier readable variable name in movemodule
fc36ac366d256ec88636c675ecf580b5965e11ca
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> }); <ide> } <ide> <del> moveModule(module, other) { <add> moveModule(module, otherChunk) { <ide> module.removeChunk(this); <del> module.addChunk(other); <del> other.addModule(module); <del> module.rewriteChunkInReasons(this, [other]); <add> module.addChunk(oth...
1
Python
Python
fix typo in unsupported version error message
8001087e9e335140b8063a23916d9c05b615acd4
<ide><path>setup.py <ide> your version of Python. If you can't upgrade your pip (or Python), request <ide> an older version of Django REST Framework: <ide> <del> $ python -m pip install "django<3.10" <add> $ python -m pip install "djangorestframework<3.10" <ide> """.format(*(REQUIRED_PYTHON + CURRENT_PYTHON))) <...
1
Javascript
Javascript
add support question covering browser extensions
c37a4ff6638b5809c6c59cfc7916807073e49f98
<ide><path>client/src/pages/support.js <ide> const SupportPage = () => { <ide> </Link> <ide> . <ide> </p> <add> <h4>I cannot pass a challenge, but I think my code is correct</h4> <add> <p> <add> Some browser extensions can interfere with challen...
1
Ruby
Ruby
run all tests in generic mode
932e145d9c44ef6c9f828422bf1daef8f10baa6f
<ide><path>Library/Homebrew/dev-cmd/test-bot.rb <ide> def homebrew <ide> tests_args_coverage << "--coverage" if ENV["TRAVIS"] <ide> end <ide> test "brew", "tests", *tests_args <del> test "brew", "tests", "--generic", "--only=integration_cmds", <del> *tests_a...
1
Javascript
Javascript
fix more indents
5e2f24c8c64d5e861e101ad380ec0ae5390908c4
<ide><path>examples/js/shaders/DOFMipMapShader.js <ide> THREE.DOFMipMapShader = { <ide> <ide> "void main() {", <ide> <del> "vUv = uv;", <del> "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );", <add> " vUv = uv;", <add> " gl_Position = projectionMatrix * modelViewMatrix * vec4( positi...
5
Javascript
Javascript
remove more isomorphic www shims
e68e95284bd06c7407eaced9f44ea31caf1047a6
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> 'prop-types', <ide> 'prop-types/checkPropTypes', <ide> ], <del> fbEntry: 'src/fb/ReactFBEntry', <add> fbEntry: 'src/isomorphic/ReactEntry', <ide> hasteName: 'React', <ide> isRenderer: false, <ide> label: 'core', <ide><p...
7
Python
Python
convert indentation from 2 spaces to 4 spaces
8163baab646c8ad76877ef073a707e88ea096bab
<ide><path>create_pretraining_data.py <ide> <ide> <ide> class TrainingInstance(object): <del> """A single training instance (sentence pair).""" <del> <del> def __init__(self, tokens, segment_ids, masked_lm_positions, masked_lm_labels, <del> is_random_next): <del> self.tokens = tokens <del> self....
11
Ruby
Ruby
ignore unused optional and recommended deps
fe802f05ef60118b67a6999e3eb2c17fdef08645
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_tmpdir <ide> def check_missing_deps <ide> return unless HOMEBREW_CELLAR.exist? <ide> s = Set.new <del> Homebrew.missing_deps(Homebrew.installed_brews).each do |_, deps| <add> Homebrew.missing_deps(Formula.installed).each do |_, deps| <ide> s.merge deps...
2
Javascript
Javascript
fix typo in internal message event name
4d49469d0df0730b16630d8f32fbfc55aaaa0952
<ide><path>lib/child_process.js <ide> function setupChannel(target, channel) { <ide> typeof message === 'object' && <ide> typeof message.cmd === 'string' && <ide> message.cmd.indexOf('NODE_') === 0) { <del> target.emit('inernalMessage', message, recvHandle); <add> t...
1
Javascript
Javascript
apply review feedback
61ce0f79c1eb2a491fd993ac35612824a59415ed
<ide><path>lib/optimize/CommonsChunkPlugin.js <ide> The available options are: <ide> You can however specify the name of the async chunk by passing the desired string as the \"async\" option.`); <ide> } <ide> <del> const chunkNames = options.name ? [options.name] : options.names; <add> /** <add> * Make sure this...
1
Go
Go
use assert.nilerror() instead of assert.assert()
3449b12cc7eefa8ebd0de6ec8b9803c6ee823af0
<ide><path>client/hijack_test.go <ide> func TestTLSCloseWriter(t *testing.T) { <ide> break <ide> } <ide> } <del> assert.Assert(t, err) <add> assert.NilError(t, err) <ide> <ide> ts.Listener = l <ide> defer l.Close() <ide> func TestTLSCloseWriter(t *testing.T) { <ide> defer ts.Close() <ide> <ide> serverURL, e...
13
Javascript
Javascript
add basic rescale support for smacks
5ad3a9cc72de0fb4bf5a02c0084be5a40742b01c
<ide><path>src/image.js <ide> var PDFImage = (function PDFImageClosure() { <ide> smaskPromise.resolve(null); <ide> }; <ide> <add> /** <add> * Resize an image using the nearest neighbor algorithm. Currently only <add> * supports one component images. <add> * @param {TypedArray} pixels The original image...
1
Ruby
Ruby
remove obsolete test file
48d05bdd97e067b534b158bdf56256b45bf59e48
<ide><path>activerecord/test/cases/associations/habtm_join_table_test.rb <del>require 'cases/helper' <del> <del>class MyReader < ActiveRecord::Base <del> has_and_belongs_to_many :my_books <del>end <del> <del>class MyBook < ActiveRecord::Base <del> has_and_belongs_to_many :my_readers <del>end <del> <del>class HabtmJoi...
1
Javascript
Javascript
remove unnecessary fd property from socket
3ce6bc3b5082478dfe6832997640c93de97705be
<ide><path>lib/dgram.js <ide> function Socket(type, listener) { <ide> <ide> this[async_id_symbol] = handle.getAsyncId(); <ide> this.type = type; <del> this.fd = null; // compatibility hack <ide> <ide> if (typeof listener === 'function') <ide> this.on('message', listener); <ide> function startListening(sock...
1
Ruby
Ruby
handle users not having any github credentials
ccb6d5e834dbfe91043b324af95872840903aec7
<ide><path>Library/Homebrew/utils/github.rb <ide> module GitHub <ide> ALL_SCOPES_URL = Formatter.url( <ide> "https://github.com/settings/tokens/new?scopes=#{ALL_SCOPES.join(",")}&description=Homebrew", <ide> ).freeze <add> CREATE_GITHUB_PAT_MESSAGE = <<~EOS <add> Create a GitHub personal access token: <add>...
1
Javascript
Javascript
define functions only once
2f1f22ab26ed5afe3e8860f22fbf486f2e1f5d7f
<ide><path>lib/module.js <ide> var debug = Module._debug; <ide> // -> a <ide> // -> a.<ext> <ide> // -> a/index.<ext> <add> <add>function statPath(path) { <add> var fs = NativeModule.require('fs'); <add> try { <add> return fs.statSync(path); <add> } catch (ex) {} <add> return false; <add>} <add> <add>// ch...
1
Java
Java
copy httpheaders to ensure serializability
97ea8a67892a20b0deedd54e6489895c7f1fea24
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientRequestException.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "...
2
Ruby
Ruby
remove some comments about ruby 1.9 behaviors
21f02f34851f58103fc03e852e0315afdb6f74e0
<ide><path>actionpack/lib/action_dispatch/journey/gtg/transition_table.rb <ide> def visualizer(paths, title = 'FSM') <ide> svg = to_svg <ide> javascripts = [states, fsm_js] <ide> <del> # Annoying hack for 1.9 warnings <add> # Annoying hack warnings <ide> fun_rout...
6
Javascript
Javascript
remove unnecessary white spaces
2036fb1e71b7da7f16f78e602d95a5cc1e3771b0
<ide><path>lib/grunt/utils.js <ide> var getRandomPorts = function() { <ide> var getPackage = function() { <ide> if ( !pkg ) { <ide> <del> // Search up the folder hierarchy for the first package.json <add> // Search up the folder hierarchy for the first package.json <ide> var packageFolder = path.resolv...
1
Ruby
Ruby
accumulate inherited options
b2c9625d780277f021c63e21cac4a7c954170784
<ide><path>Library/Homebrew/formula_installer.rb <ide> def expand_requirements <ide> end <ide> <ide> def expand_dependencies(deps) <del> inherited_options = {} <add> inherited_options = Hash.new { |hash, key| hash[key] = Options.new } <ide> <ide> expanded_deps = Dependency.expand(formula, deps) do |depe...
1
Go
Go
use mount pkg
b890c20555596911d203befaf0e30efece6371d7
<ide><path>pkg/archive/archive_linux.go <ide> import ( <ide> "syscall" <ide> <ide> "github.com/containerd/continuity/fs" <add> "github.com/docker/docker/pkg/mount" <ide> "github.com/docker/docker/pkg/system" <ide> "github.com/pkg/errors" <ide> "golang.org/x/sys/unix" <ide> func mknodChar0Overlay(cleansedOriginalP...
3
Go
Go
fix a syntax error in comments
3fc9a9ccb8ec8783bfcc02b7e4dfd7ee6468fa86
<ide><path>pkg/mflag/flag.go <ide> // Define flags using flag.String(), Bool(), Int(), etc. <ide> // <ide> // This declares an integer flag, -f or --flagname, stored in the pointer ip, with type *int. <del>// import "flag /github.com/docker/docker/pkg/mflag" <add>// import flag "github.com/docker/docker/pkg/mflag" <i...
1
Ruby
Ruby
use public send on the scope parameters
05609f472912cc841d99e3b0adb18c4f3d0eb9ae
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def _compile_source(filter) <ide> <ide> _normalize_legacy_filter(kind, filter) <ide> scopes = Array(chain.config[:scope]) <del> method_to_call = scopes.map{ |s| send(s) }.join("_") <add> method_to_call = scopes.map{ |s...
1
Java
Java
support multiple validators in databinder
54c873b4c430a6c13698080fcde99835ca2a541b
<ide><path>spring-context/src/main/java/org/springframework/validation/DataBinder.java <ide> <ide> import java.beans.PropertyEditor; <ide> import java.lang.reflect.Field; <add>import java.util.ArrayList; <add>import java.util.Arrays; <add>import java.util.Collections; <ide> import java.util.HashMap; <add>import java.u...
1
Javascript
Javascript
fix code comment
4e380be3ec3b9645b2cafb6152d420dceddf41d2
<ide><path>packages/ember-runtime/lib/mixins/mutable_array.js <ide> Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable,/** <ide> method. You can pass either a single index, or a start and a length. <ide> <ide> If you pass a start and length that is beyond the <del> length this meth...
1
Text
Text
note retention period
6b3ee9b8fd813c7b1479e629348cb1b096a89819
<ide><path>docs/Analytics.md <ide> Homebrew is provided free of charge and run entirely by volunteers in their spar <ide> - If a formula is widely used and is failing often it will enable us to prioritise fixing that formula over others. <ide> - Collecting the OS version allows us to decide what versions of macOS to pr...
1
Text
Text
add use cases for api routes to documentation.
0a35b578d4ab482da3b199c501ce192783a7f2a1
<ide><path>docs/api-routes/introduction.md <ide> description: Next.js supports API Routes, which allow you to build your API with <ide> </ul> <ide> </details> <ide> <del>API routes provide a straightforward solution to build your **API** with Next.js. <add>API routes provide a solution to build your **API** with Nex...
1
PHP
PHP
add support for using keys in collection filter
d56e23f0838644c10ebb9ad3fa31412891a2886e
<ide><path>src/Illuminate/Support/Collection.php <ide> public function except($keys) <ide> public function filter(callable $callback = null) <ide> { <ide> if ($callback) { <del> return new static(array_filter($this->items, $callback)); <add> $return = []; <add> <add> for...
2
Ruby
Ruby
fix custome serializer setting
3cc93de6ad58ee306b906a3d979b46276900711a
<ide><path>activejob/lib/active_job/railtie.rb <ide> class Railtie < Rails::Railtie # :nodoc: <ide> end <ide> <ide> initializer "active_job.custom_serializers" do |app| <del> custom_serializers = app.config.active_job.delete(:custom_serializers) <del> ActiveJob::Serializers.add_serializers custom_ser...
3
PHP
PHP
declare unknown variable
a1d75bb8404ae6ccbb6242378418c77f0608469d
<ide><path>src/Routing/RouteCollection.php <ide> public function getMatchingMiddleware($needle) <ide> <ide> if (preg_match($pattern, $needle)) { <ide> $matching = array_merge($matching, $middleware); <add> $resolved = []; <add> <ide> foreach ($matching as $nam...
1
Go
Go
fix conversion of restart-policy from grpc
bc32fcabebb5f3a83d47c00d85317ce82c963edf
<ide><path>daemon/cluster/convert/service.go <ide> func restartPolicyFromGRPC(p *swarmapi.RestartPolicy) *types.RestartPolicy { <ide> var rp *types.RestartPolicy <ide> if p != nil { <ide> rp = &types.RestartPolicy{} <del> rp.Condition = types.RestartPolicyCondition(strings.ToLower(p.Condition.String())) <add> <add...
1
PHP
PHP
replace a `preg_split` call with `explode`
cab42a6f873253f2b0b41b67250b79f87d8f930f
<ide><path>src/Illuminate/Testing/PendingCommand.php <ide> private function applyTableOutputExpectations($mock) <ide> $table->render(); <ide> <ide> $lines = array_filter( <del> preg_split("/\n/", $output->fetch()) <add> explode("\n", $output->fetch()) <ide> ...
1
Text
Text
fix some translate error
c47a7f0bf1f331a7308cc387b1dfcdb3fe33abc9
<ide><path>guide/chinese/javascript/await-promises/index.md <ide> --- <ide> title: Await Promises <del>localeTitle: 等待承诺 <add>localeTitle: Await Promise <ide> --- <del>## 等待承诺 <add>## Await Promise <ide> <del>`async` / `await` [运算符](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators)可以更轻松地实现许多...
1
Python
Python
remove some now unnecessary fixups to lib/npyio
5657366762f802d1119de6be6b19893daca9252d
<ide><path>tools/py3tool.py <ide> def custom_mangling(filename): <ide> f.write(text) <ide> f.close() <ide> <del> if filename.endswith(os.path.join('lib', 'npyio.py')): <del> f = open(filename, 'r') <del> text = f.read() <del> f.close() <del> text = text.replace('from . im...
1
PHP
PHP
fix ternary expr and add a space between lines
3b862b0693a4ce3e13ecd73c65a9fe81e8c752f9
<ide><path>src/Illuminate/Support/Str.php <ide> public static function slug($title, $separator = '-') <ide> $title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', mb_strtolower($title)); <ide> <ide> // Convert all dashes/undescores into separator <del> $flip = ($separator == '-' ? '_' : '-'); <add...
1
Text
Text
resume a stream after pipe() and unpipe()
0b432e08b167ef7b3304e3cbfa5bfcfb862d185c
<ide><path>doc/api/stream.md <ide> possible states: <ide> * `readable._readableState.flowing = true` <ide> <ide> When `readable._readableState.flowing` is `null`, no mechanism for consuming the <del>streams data is provided so the stream will not generate its data. <del> <del>Attaching a listener for the `'data'` even...
1
Go
Go
add buffer to prevent goroutine leak
c322af8019dda164bf5af974bf446c4905674e19
<ide><path>integration-cli/docker_api_attach_test.go <ide> func (s *DockerSuite) TestGetContainersAttachWebsocket(c *testing.T) { <ide> expected := []byte("hello") <ide> actual := make([]byte, len(expected)) <ide> <del> outChan := make(chan error) <add> outChan := make(chan error, 1) <ide> go func() { <ide> _, er...
22
Ruby
Ruby
fix error in formula#specified_path with aliases
16afcff557af2ffaea7f76ea70574f831f7f9ae2
<ide><path>Library/Homebrew/formula.rb <ide> def full_installed_alias_name <ide> <ide> # The path that was specified to find this formula. <ide> def specified_path <del> default_specified_path = alias_path || path <add> default_specified_path = Pathname(alias_path) if alias_path.present? <add> default_spe...
2
Ruby
Ruby
fix ambigious error message of select query method
0f5325a625e757d2e4374ce41cabad63f087c0b5
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def select(*fields) <ide> return super() <ide> end <ide> <del> raise ArgumentError, "Call this with at least one field" if fields.empty? <add> raise ArgumentError, "Call `select' with at least one field" if fields.empty? ...
1
Go
Go
stream json & decode
f665be55fe832086202e54449402c1513cf4f195
<ide><path>volumes/volume.go <ide> func (v *Volume) FromDisk() error { <ide> return err <ide> } <ide> <del> data, err := ioutil.ReadFile(pth) <add> jsonSource, err := os.Open(pth) <ide> if err != nil { <ide> return err <ide> } <add> defer jsonSource.Close() <ide> <del> return json.Unmarshal(data, v) <add> dec ...
1
Javascript
Javascript
ensure readfile[sync] reads from the beginning
4444e731f218edf265a0b160bf1d561df2d5e5b3
<ide><path>lib/fs.js <ide> ReadFileContext.prototype.read = function() { <ide> req.oncomplete = readFileAfterRead; <ide> req.context = this; <ide> <del> binding.read(this.fd, buffer, offset, length, -1, req); <add> binding.read(this.fd, buffer, offset, length, this.pos, req); <ide> }; <ide> <ide> ReadFileContex...
2
Javascript
Javascript
replace `cliengine` with `eslint`
3821662eb7df7ad16f2c727310d90797090f408f
<ide><path>lint-staged.config.js <ide> const escape = require('shell-quote').quote <del>const { CLIEngine } = require('eslint') <add>const { ESLint } = require('eslint') <ide> <del>const cli = new CLIEngine({}) <add>const eslint = new ESLint() <ide> const isWin = process.platform === 'win32' <ide> <ide> module.export...
1
PHP
PHP
avoid notice in mime()
e1365336e20f3581a59cc9b311c686534af24fd1
<ide><path>lib/Cake/Utility/File.php <ide> public function mime() { <ide> } <ide> if (function_exists('finfo_open')) { <ide> $finfo = finfo_open(FILEINFO_MIME); <del> list($type, $charset) = explode(';', finfo_file($finfo, $this->pwd())); <add> $finfo = finfo_file($finfo, $this->pwd()); <add> if (!$finfo) ...
1
Text
Text
add a tip about conditionally applying middleware
0c0434d4b5df1d64033c4eb622e3e12fd9515d55
<ide><path>docs/api/applyMiddleware.md <ide> store.dispatch({ <ide> <ide> * If you use other store enhancers in addition to `applyMiddleware`, make sure to put `applyMiddleware` before them in the composition chain because the middleware is potentially asynchronous. For example, it should go before [redux-devtools](ht...
1
Text
Text
update changelog for 1.12.0
0a7c0fce26f11f14f66493758d568c00815569f4
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### Canary <del> <add>### 1.12.0 (May 13, 2015) <add> <add>- [#10874](https://github.com/emberjs/ember.js/pull/10874) Include all files in jspm package. <add>- [#10876](https://github.com/emberjs/ember.js/pull/10876) [BUGFIX] Make the `{{component}}` helper de...
1
Text
Text
add note about forwarding stream options
5133e783ba0fbd93bf3a65e18c450b61c18f55a0
<ide><path>doc/api/stream.md <ide> parent class constructor: <ide> const { Writable } = require('stream'); <ide> <ide> class MyWritable extends Writable { <del> constructor(options) { <del> super(options); <add> constructor({ highWaterMark, ...options }) { <add> super({ <add> highWaterMark, <add> aut...
1
PHP
PHP
increase code coverage in connectionmanager
b2317272fe3974f38e7e7a642cf97bd915288074
<ide><path>tests/TestCase/Datasource/ConnectionManagerTest.php <ide> public function testAliasError() <ide> $this->assertNotContains('test_kaboom', ConnectionManager::configured()); <ide> ConnectionManager::alias('test_kaboom', 'other_name'); <ide> } <add> <add> /** <add> * Test parseDsn meth...
1
Python
Python
fix some typos
e1ec661d4e368ceabd50e7ef3714c85dbe139c02
<ide><path>ciphers/shuffled_shift_cipher.py <ide> class ShuffledShiftCipher: <ide> This algorithm uses the Caesar Cipher algorithm but removes the option to <ide> use brute force to decrypt the message. <ide> <del> The passcode is a a random password from the selection buffer of <add> The passcode is a r...
5
Javascript
Javascript
initialize transform lazily
855caa82aaef5c6e6dd244b5d9df314994cb23eb
<ide><path>lib/crypto.js <ide> exports.createCredentials = function(options, context) { <ide> }; <ide> <ide> <add>function LazyTransform(options) { <add> this._options = options; <add>} <add>util.inherits(LazyTransform, stream.Transform); <add> <add>['read', 'write', 'end'].forEach(function(action, i, actions) { <ad...
1