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
restrict new tap names
f94a38e4b1c0276557a2e2807554bd729ded6864
<ide><path>Library/Homebrew/dev-cmd/tap-new.rb <ide> def tap_new_args <ide> def tap_new <ide> tap_new_args.parse <ide> <add> tap_name = args.named.first <ide> tap = Tap.fetch(args.named.first) <add> raise "Invalid tap name '#{tap_name}'" unless tap.path.to_s.match?(HOMEBREW_TAP_PATH_REGEX) <add> <ide> ...
2
Ruby
Ruby
use array() instead of #to_a
be3645518143f2c510623fad40550f074cbca57d
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def create!(method_name, *parameters) #:nodoc: <ide> def deliver!(mail = @mail) <ide> raise "no mail object available for delivery!" unless mail <ide> unless logger.nil? <del> logger.info "Sent mail to #{recipients.to_a.join(', ')}" <add> ...
1
Java
Java
add helper method to resourcehandlerregistry
190bf247a30a2f13ead89383e5e0476584652dd1
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistry.java <ide> package org.springframework.web.servlet.config.annotation; <ide> <ide> import java.util.ArrayList; <add>import java.util.Arrays; <ide> import java.util.LinkedHashMap; <ide> import java.util.List;...
2
PHP
PHP
create tests for validation validate method
8665024c290a19c02e4ebf95059aed62f7351208
<ide><path>tests/Validation/ValidationValidatorTest.php <ide> public function testSometimesWorksOnArrays() <ide> $this->assertTrue($v->passes()); <ide> } <ide> <add> /** <add> * @expectedException \Illuminate\Validation\ValidationException <add> */ <add> public function testValidateThrowsOnFa...
1
Go
Go
add execids in inspect
4b43a6df7acd98228b8b287eedf38ba87dc8a388
<ide><path>daemon/exec.go <ide> type execConfig struct { <ide> <ide> type execStore struct { <ide> s map[string]*execConfig <del> sync.Mutex <add> sync.RWMutex <ide> } <ide> <ide> func newExecStore() *execStore { <ide> func (e *execStore) Add(id string, execConfig *execConfig) { <ide> } <ide> <ide> func (e *execSto...
2
Text
Text
fix broken links in faq toc
0db96121dc8ba328a4e4d8bff16987b3e70cfac1
<ide><path>docs/FAQ.md <ide> - [Is it OK to have more than one middleware chain in my store enhancer? What is the difference between next and dispatch in a middleware function?](/docs/faq/StoreSetup.md#is-it-ok-to-have-more-than-one-middleware-chain-in-my-store-enhancer-what-is-the-difference-between-next-and-dispatc...
1
Text
Text
fix typo "serailizers" to "serializers"
c94d1e6d3ea76eb8bdd28717364e42d14e6722d7
<ide><path>docs/topics/3.0-announcement.md <ide> You can either return `non_field_errors` from the validate method by raising a s <ide> <ide> def validate(self, attrs): <ide> # serializer.errors == {'non_field_errors': ['A non field error']} <del> raise serailizers.ValidationError('A non field error...
1
Text
Text
remove roadmap working group
fde607eb8f54fed22b26b788491f810f26690ed3
<ide><path>WORKING_GROUPS.md <ide> back in to the CTC. <ide> * [Diagnostics](#diagnostics) <ide> * [i18n](#i18n) <ide> * [Evangelism](#evangelism) <del>* [Roadmap](#roadmap) <ide> * [Docker](#docker) <ide> * [Addon API](#addon-api) <ide> * [Benchmarking](#benchmarking) <ide> Responsibilities include: <ide> * Messaging ...
1
Ruby
Ruby
fix rubocop warnings
d937f239324380c839fae6e7ebf9ab97f31e370f
<ide><path>Library/Homebrew/test/test_shell.rb <ide> require "utils/shell" <ide> <ide> class ShellSmokeTest < Homebrew::TestCase <del> def test_path_to_shell() <add> def test_path_to_shell <ide> # raw command name <ide> assert_equal :bash, Utils::Shell.path_to_shell("bash") <ide> # full path <ide> def te...
1
PHP
PHP
fix warning when full_base_url is unknown. fixes
2d5773be6bc8cab2f15b57ac513d6c32467f4cb9
<ide><path>cake/libs/router.php <ide> function url($url = null, $full = false) { <ide> } <ide> $output = str_replace('//', '/', $output); <ide> } <del> if ($full) { <add> if ($full && defined('FULL_BASE_URL')) { <ide> $output = FULL_BASE_URL . $output; <ide> } <ide> if (!empty($extension) && substr($ou...
1
Mixed
Javascript
assign missed deprecation number
ae3137049f619b0de01b063075ece994ff2dc741
<ide><path>doc/api/deprecations.md <ide> Using the `noAssert` argument has no functionality anymore. All input is going <ide> to be verified, no matter if it is set to true or not. Skipping the verification <ide> could lead to hard to find errors and crashes. <ide> <del><a id="DEP0XXX"></a> <del>### DEP0XXX: process.b...
2
Java
Java
fix memory leaks in protobufdecoder
946ec7e22e114e297bc099c89cac1ab5ead9cbb4
<ide><path>spring-core/src/test/java/org/springframework/core/io/buffer/AbstractDataBufferAllocatingTestCase.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Licens...
3
Ruby
Ruby
remove redundant return
b8b014036ee394084992ad2f0dda06c25964b0be
<ide><path>Library/Homebrew/extend/string.rb <ide> def remove_make_var! flags <ide> def get_make_var flag <ide> m = match Regexp.new("^#{flag}[ \\t]*=[ \\t]*(.*)$") <ide> return m[1] if m <del> return nil <ide> end <ide> end
1
Javascript
Javascript
fix regression in x-axis interaction mode
52145de5db5dc3bae093880429b35954f0034993
<ide><path>src/core/core.interaction.js <ide> module.exports = { <ide> * @private <ide> */ <ide> 'x-axis': function(chart, e) { <del> return indexMode(chart, e, {intersect: true}); <add> return indexMode(chart, e, {intersect: false}); <ide> }, <ide> <ide> /** <ide><path>test/specs/global.deprecations.t...
2
Ruby
Ruby
allow partial installation of resources
50d2f632d9157c953dcbaeb33c5b79ef50fee38a
<ide><path>Library/Homebrew/extend/pathname.rb <ide> require 'pathname' <ide> require 'mach' <add>require 'resource' <ide> <ide> # we enhance pathname to make our code more readable <ide> class Pathname <ide> def install *sources <ide> case src <ide> when Resource <ide> src.stage(self) <add> w...
2
Go
Go
remove goroutine leak upon error
721562f29685ebf3f3698113cf0ce8000c02e606
<ide><path>execdriver/lxc/driver.go <ide> func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba <ide> // Poll lxc for RUNNING status <ide> pid, err := d.waitForStart(c, waitLock) <ide> if err != nil { <add> if c.Process != nil { <add> c.Process.Kill() <add> } <ide> return -1, err <id...
2
PHP
PHP
fix phpstan errors on interfaces - level 5
2c08e46229e5e42e0750ef28ed3e9f1412e3d83c
<ide><path>src/Database/Schema/CachedCollection.php <ide> public function listTables(): array <ide> /** <ide> * {@inheritDoc} <ide> */ <del> public function describe(string $name, array $options = []): TableSchemaInterface <add> public function describe(string $name, array $options = []): TableSchem...
15
Python
Python
add shortcut class in providers.py for linode
32659f2b14cb312659b51a01eeef374138c6e371
<ide><path>libcloud/providers.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> from libcloud.types import Provider <add>from libcloud.drivers.linode import LinodeNodeDriver as Linode <ide> from libcloud.drivers.slicehost import SlicehostNodeDriv...
1
Python
Python
fix generation docstrings regarding input_ids=none
1fec32adc6a4840123d5ec5ff5cf419c02342b5a
<ide><path>src/transformers/generation_flax_utils.py <ide> def generate( <ide> <ide> Parameters: <ide> <del> input_ids (:obj:`jnp.ndarray` of shape :obj:`(batch_size, sequence_length)`, `optional`): <add> input_ids (:obj:`jnp.ndarray` of shape :obj:`(batch_size, sequence_length)`): <ide>...
3
Python
Python
fix import on initalization
cd09cd5b40fa9ccab1a40643bd5cf1245fcc4a2c
<ide><path>run_classifier_pytorch.py <ide> import logging <ide> import argparse <ide> <add>import random <ide> import numpy as np <ide> from tqdm import tqdm, trange <ide> import torch <ide><path>run_squad_pytorch.py <ide> import math <ide> import os <ide> from tqdm import tqdm, trange <add>import random <ide> <ide> ...
2
Ruby
Ruby
expose active storage routes
ff25c25127405f49c0021714a9d938558c7822ab
<ide><path>activestorage/config/routes.rb <ide> # frozen_string_literal: true <ide> <ide> Rails.application.routes.draw do <del> get "/rails/active_storage/blobs/:signed_id/*filename" => "active_storage/blobs#show", as: :rails_service_blob, internal: true <add> get "/rails/active_storage/blobs/:signed_id/*filename" ...
2
Python
Python
enable ctrl-c for parallel tests
12912c6b3074371d9860e4b4eb28453493db83a1
<ide><path>tools/test.py <ide> def __init__(self, cases, flaky_tests_mode): <ide> self.total = len(cases) <ide> self.failed = [ ] <ide> self.crashed = 0 <del> self.terminate = False <ide> self.lock = threading.Lock() <add> self.shutdown_event = threading.Event() <ide> <ide> def PrintFailureHead...
1
Python
Python
move read_json out to own util function
31fa73293a260a764fda000f72a167a56eab6330
<ide><path>spacy/util.py <ide> def check_renamed_kwargs(renamed, kwargs): <ide> raise TypeError("Keyword argument %s now renamed to %s" % (old, new)) <ide> <ide> <add>def read_json(location): <add> with location.open('r', encoding='utf8') as f: <add> return ujson.load(f) <add> <add> <ide> def pa...
1
Python
Python
add multiple processing
8e9526b4b56486606979f1c47d3317b0b22340fe
<ide><path>examples/run_squad.py <ide> def load_and_cache_examples(args, tokenizer, evaluate=False, output_examples=Fal <ide> doc_stride=args.doc_stride, <ide> max_query_length=args.max_query_length, <ide> is_training=not evaluate, <del> return_dataset='pt' <add> ...
2
Python
Python
fix some compiler_cxx errors
9913769d0719b6cfca1b3d51baee8421ba7cf288
<ide><path>numpy/distutils/ccompiler.py <ide> def CCompiler_customize(self, dist, need_cxx=0): <ide> except ValueError: <ide> pass <ide> <del> if hasattr(self,'compiler') and self.compiler[0].find('gcc')>=0: <del> if sys.version[:3]>='2.3': <del> if not self...
1
Text
Text
add @linkgoron to collaborators
eaf0f0f1b57adbd1d1acac4b8aba54d29ceab36f
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Chengzhong Wu** &lt;legendecas@gmail.com&gt; (he/him) <ide> * [Leko](https://github.com/Leko) - <ide> **Shingo Inoue** &lt;leko.noor@gmail.com&gt; (he/him) <add>* [linkgoron](https://github.com/linkgoron) - <add>**Nitzan...
1
Python
Python
allow unicode message for exception raised in task
108b36230263cdbd392ceaf62377f88226fa7301
<ide><path>celery/backends/base.py <ide> from celery.exceptions import ( <ide> ChordError, TimeoutError, TaskRevokedError, ImproperlyConfigured, <ide> ) <del>from celery.five import items <add>from celery.five import items, string <ide> from celery.result import ( <ide> GroupResult, ResultBase, allow_join_resul...
2
PHP
PHP
fix style ci
91e517370e1700629f7f2be252da0f0fe62cce0e
<ide><path>src/Illuminate/Console/Scheduling/ScheduleTestCommand.php <ide> public function handle(Schedule $schedule) <ide> $commandBinary = Application::phpBinary().' '.Application::artisanBinary(); <ide> <ide> $matches = array_filter($commandNames, function ($commandName) use ($commandBinary,...
1
Javascript
Javascript
use khandle symbol for accessing native handle
e7f58868b5ea1312f7bac4f152f4d928b64e0202
<ide><path>lib/internal/http2/core.js <ide> const { <ide> updateSettingsBuffer <ide> } = require('internal/http2/util'); <ide> const { <del> createWriteWrap, <ide> writeGeneric, <ide> writevGeneric, <ide> onStreamRead, <ide> kAfterAsyncWrite, <ide> kMaybeDestroy, <ide> kUpdateTimer, <add> kHandle, <ide>...
3
PHP
PHP
normalize url generation
52318f9d17c8b5c7a1ba838fadd07e9457041a89
<ide><path>cake/libs/router.php <ide> function normalize($url = '/') { <ide> $paths = Router::getPaths(); <ide> <ide> if (!empty($paths['base']) && stristr($url, $paths['base'])) { <del> $url = str_replace($paths['base'], '', $url); <add> $url = preg_replace("/{$paths['base']}/", '', $url, 1); <ide> } <ide> ...
2
Ruby
Ruby
add test for update_counters with empty touch
afa2da6456c0e33c1c31dbbcee66f72fd8f32005
<ide><path>activerecord/test/cases/counter_cache_test.rb <ide> class ::SpecialReply < ::Reply <ide> assert_equal previously_updated_at, @topic.updated_at <ide> end <ide> <add> test "update counters doesn't touch timestamps with touch: []" do <add> @topic.update_column :updated_at, 5.minutes.ago <add> prev...
1
Python
Python
use prepare_expires in other backends as well
e482db8eaca05a01f34fb3382d998cf8669c05b7
<ide><path>celery/backends/amqp.py <ide> import threading <ide> import time <ide> <del>from datetime import timedelta <ide> from itertools import count <ide> <ide> from kombu.entity import Exchange, Queue <ide> from celery import states <ide> from celery.backends.base import BaseDictBackend <ide> from celery.exceptio...
6
Text
Text
fix the russian title
f55b1c614645f58a19a92d82b053e55961fd12fa
<ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-variables.russian.md <ide> title: Accessing Object Properties with Variables <ide> challengeType: 1 <ide> guideUrl: 'https://russian.freecodecamp.org/guide/certificates/accessing-objec...
1
PHP
PHP
fix some valdiation rules
8f2c68f838de27e38b3ae9819aba233a562f6616
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateSame($attribute, $value, $parameters) <ide> <ide> $other = Arr::get($this->data, $parameters[0]); <ide> <del> return isset($other) && $value == $other; <add> return isset($other) && $value === $other; <ide> }...
2
Javascript
Javascript
add missing class annotations and lock xplat/js
0ccbe5f70463b5259ae1adcb65deeb89204b1948
<ide><path>Libraries/Lists/FlatList.js <ide> class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> { <ide> } <ide> } <ide> <add> // $FlowFixMe[missing-local-annot] <ide> componentDidUpdate(prevProps: Props<ItemT>) { <ide> invariant( <ide> prevProps.numColumns === this.props.numColumn...
6
Javascript
Javascript
improve punycode test coverage
c6238e2761e9ba5c35aa4842c9be2ae937d28998
<ide><path>test/parallel/test-punycode.js <ide> assert.strictEqual(punycode.ucs2.encode([0xDC00]), '\uDC00'); <ide> assert.strictEqual(punycode.ucs2.encode([0xDC00, 0x61, 0x62]), '\uDC00ab'); <ide> <ide> assert.strictEqual(errors, 0); <add> <add>// test map domain <add>assert.strictEqual(punycode.toASCII('Bücher@日本語.c...
1
Text
Text
clarify esm conditional exports prose
db3b209e7df254794873be5ac91345dee034e130
<ide><path>doc/api/esm.md <ide> For example, a package that wants to provide different ES module exports for <ide> } <ide> ``` <ide> <del>Node.js supports the following conditions: <add>Node.js supports the following conditions out of the box: <ide> <ide> * `"import"` - matched when the package is loaded via `import`...
1
Javascript
Javascript
replace anonymous closure with arrow funct
d88e26de8e1b8d4b337290ffd712543c1ef53de9
<ide><path>test/parallel/test-http-server-stale-close.js <ide> if (process.env.NODE_TEST_FORK_PORT) { <ide> req.write('BAM'); <ide> req.end(); <ide> } else { <del> const server = http.createServer(function(req, res) { <add> const server = http.createServer((req, res) => { <ide> res.writeHead(200, { 'Content-L...
1
Javascript
Javascript
append .eslintignore paths to grunt eslint paths
a22b43bad41592ec61e5fa0fcd2b3a3d44f8bfd3
<ide><path>Gruntfile.js <ide> module.exports = function( grunt ) { <ide> var fs = require( "fs" ), <ide> gzip = require( "gzip-js" ), <ide> isTravis = process.env.TRAVIS, <del> travisBrowsers = process.env.BROWSERS && process.env.BROWSERS.split( "," ); <add> travisBrowsers = process.env.BROWSERS && process.env.B...
1
PHP
PHP
add pool() method to cache
c259c5507fd00a1368baa7ec3c8c0b08ad5ff6a8
<ide><path>src/Cache/Cache.php <ide> public static function engine($config) <ide> return $registry->{$config}; <ide> } <ide> <add> /** <add> * Get a SimpleCacheEngine object for the named cache pool. <add> * <add> * @param string $pool The name of the configured cache backend. <add> * @r...
2
Python
Python
test empty warning for split with manual inputs
f29c387272a9279f82ab04bbbe1bb68040b6d383
<ide><path>numpy/lib/tests/test_shape_base.py <ide> def test_integer_split_2D_rows(self): <ide> compare_results(res, desired) <ide> assert_(a.dtype.type is res[-1].dtype.type) <ide> <add> # Same thing for manual splits: <add> res = assert_warns(FutureWarning, array_split, a, [0, 1, 2], ax...
1
Go
Go
fix progress reader output on close
aa3083f577224ad74384f648b17c1474ab47b44f
<ide><path>pkg/progressreader/progressreader.go <ide> package progressreader <ide> <ide> import ( <add> "io" <add> <ide> "github.com/docker/docker/pkg/jsonmessage" <ide> "github.com/docker/docker/pkg/streamformatter" <del> "io" <ide> ) <ide> <ide> // Reader with progress bar <ide> func (config *Config) Read(p []byt...
1
Javascript
Javascript
fix bug in directionallighthelper
82dd6c5a237aab59e1261ec114a5e40c82f00cfc
<ide><path>src/extras/helpers/DirectionalLightHelper.js <ide> THREE.DirectionalLightHelper = function ( light, sphereSize ) { <ide> this.targetLine = new THREE.Line( lineGeometry, lineMaterial ); <ide> this.targetLine.properties.isGizmo = true; <ide> <add> } <add> else { <add> <add> this.targetSphere = null; <add...
1
Javascript
Javascript
add support for json files to `js_file` rule
ef91708fdbe1aee274833137e386ebf93bff6bc8
<ide><path>packager/react-packager/src/ModuleGraph/worker.js <ide> <ide> // RUNS UNTRANSFORMED IN A WORKER PROCESS. ONLY USE NODE 4 COMPATIBLE FEATURES! <ide> <del>const fs = require('fs'); <del>const dirname = require('path').dirname; <del> <ide> const babel = require('babel-core'); <del>const generate = require('ba...
1
Python
Python
remove unique1d, setmember1d and intersect1d_nu
44ae46c70d0b9cb4909bfafe1e4dbef3cd90f5b9
<ide><path>numpy/lib/arraysetops.py <ide> union1d, <ide> setdiff1d <ide> <del>:Deprecated: <del> unique1d, <del> intersect1d_nu, <del> setmember1d <del> <ide> :Notes: <ide> <ide> For floating point arrays, inaccurate results may appear due to usual round-off <ide> <ide> :Author: Robert Cimrman <ide> """ <del>...
4
Java
Java
add `clienthttprequestinitializer` support
5d785390eb4fae08922d2d98f61a31e617cd0115
<ide><path>spring-web/src/main/java/org/springframework/http/client/ClientHttpRequestInitializer.java <add>/* <add> * Copyright 2002-2019 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the Licens...
3
Javascript
Javascript
use module alias, don't break module bindings
c959fc5cc68b83621371f713b4926ec09f7b5abd
<ide><path>packages/ember-metal/lib/computed.js <ide> import Ember from 'ember-metal/core'; <ide> import { set } from 'ember-metal/property_set'; <ide> import { inspect } from 'ember-metal/utils'; <del>import { meta } from 'ember-metal/meta'; <add>import { meta as metaFor } from 'ember-metal/meta'; <ide> import expandP...
1
Javascript
Javascript
deprecate some usage of netinfo
bca825ee50d6ca343ce704086dff5841312a7f8b
<ide><path>Libraries/Network/NetInfo.js <ide> type ConnectivityStateAndroid = $Enum<{ <ide> <ide> const _subscriptions = new Map(); <ide> <del>let _isConnected; <add>let _isConnectedDeprecated; <ide> if (Platform.OS === 'ios') { <del> _isConnected = function( <add> _isConnectedDeprecated = function( <ide> reach...
1
Go
Go
fix cross compilation breakage
48a7860211cdb0b087658fc684ebd0f8168fb16e
<ide><path>libnetwork/ipams/windowsipam/windowsipam.go <ide> import ( <ide> "net" <ide> <ide> log "github.com/Sirupsen/logrus" <add> "github.com/docker/libnetwork/discoverapi" <ide> "github.com/docker/libnetwork/ipamapi" <ide> "github.com/docker/libnetwork/types" <ide> ) <ide> func (a *allocator) ReleaseAddress(po...
1
Javascript
Javascript
add "烘焙帮" case
8770fd9c11300e0adf1eb7d5193a6a57178e68be
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.plasticaromantica.utayomin', <ide> author: 'Takayuki IMAI' <ide> }, <add> { <add> name: '烘焙帮', <add> icon: 'http://a1.mzstatic.com/us/r30/Purple69/v4/79/85/ba/7985b...
1
Python
Python
generalize the setting of macosx_deployment_target
56a6330e2a69392a7e230f4b0417f9cc623b8dde
<ide><path>numpy/distutils/fcompiler/gnu.py <ide> import re <ide> import os <add>import platform <ide> import sys <ide> import warnings <ide> <ide> class GnuFCompiler(FCompiler): <ide> def get_flags_linker_so(self): <ide> opt = self.linker_so[1:] <ide> if sys.platform=='darwin': <add> os...
1
Text
Text
update code order to help with confusion
00f047728b390f54dbba2ceea43db64238f1b8d8
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.md <ide> Variables `a` and `b` take the first and second values from the array. After tha <ide> <ide> # --instructions-- <ide> <del>Use destructurin...
1
PHP
PHP
apply fixes from styleci
fd53bf979f46e5c9841e07a44a49c7893be58f5c
<ide><path>src/Illuminate/Foundation/Console/EventCacheCommand.php <ide> namespace Illuminate\Foundation\Console; <ide> <ide> use Illuminate\Console\Command; <del>use Illuminate\Support\Collection; <del>use Symfony\Component\Finder\Finder; <del>use Symfony\Component\Finder\SplFileInfo; <ide> use Illuminate\Foundation\...
3
Text
Text
add unreachable code on events example
cee396ea586c02fd22c438f65d5f0e0ab7f12d67
<ide><path>doc/api/events.md <ide> const { on, EventEmitter } = require('events'); <ide> // if concurrent execution is required. <ide> console.log(event); // prints ['bar'] [42] <ide> } <add> // Unreachable here <ide> })(); <ide> ``` <ide>
1
Go
Go
remove unwanted lock
3342e5591b8cdf0cb8d0dda4fae55881fe2568ed
<ide><path>libnetwork/endpoint_info.go <ide> func (ep *endpoint) AddStaticRoute(destination *net.IPNet, routeType int, nextHo <ide> ep.joinInfo.StaticRoutes = append(ep.joinInfo.StaticRoutes, &r) <ide> } else { <ide> // If the route doesn't specify a next-hop, it must be a connected route, bound to an interface. <...
1
PHP
PHP
remove check for non-existent param
bfea79aabd3df1178ef4eafcadfa09f4d0776ae2
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> public function respondAs($type, array $options = []): bool <ide> return false; <ide> } <ide> <del> if (!$request->getParam('requested')) { <del> $response = $response->withType($cType); <del> } <add> ...
1
Text
Text
remove getdomnode from docs
97b44085ffc2308f0003f37b606d1c2fb93da78f
<ide><path>docs/docs/ref-02-component-api.it-IT.md <ide> Chiamare `forceUpdate()` causerà la chiamata di `render()` sul componente, salt <ide> Normalmente dovresti cercare di evitare l'uso di `forceUpdate()` e leggere soltanto `this.props` e `this.state` all'interno di `render()`. Ciò rende il tuo componente "puro" e l...
4
PHP
PHP
resolve ambiguous column names
c06b7162ef172c4c60d626cdd80f530e3a7aebfb
<ide><path>lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php <ide> public function testJoinsAfterFind() { <ide> <ide> $User->Article = $Article; <ide> $User->find('first', array( <del> 'fields' => '*', <add> 'fields' => array('User.*', 'Article.*'), <ide> 'conditions' => array('User.id' => 1), <ide> ...
1
Mixed
Ruby
fix behavior of json encoding for exception
91386c1b355947955b05ee3846e4aedd4eec0eb1
<ide><path>activesupport/CHANGELOG.md <add>* Fix behavior of JSON encoding for `Exception`. <add> <add> *namusyaka* <add> <ide> * Make `number_to_phone` format number with regexp pattern. <ide> <ide> number_to_phone(18812345678, pattern: /(\d{3})(\d{4})(\d{4})/) <ide><path>activesupport/lib/active_suppo...
3
PHP
PHP
deprecate public properties in view class
583dd73c1a33c46e6665010e694f290620f6d306
<ide><path>src/View/View.php <ide> class View implements EventDispatcherInterface <ide> * The name of the subfolder containing templates for this View. <ide> * <ide> * @var string <add> * @deprecated 3.7.0 The property will become protected in 4.0.0. Use getTemplatePath()/setTemplatePath() instead. <...
1
Ruby
Ruby
add fixme note about the thor bug
848776c3da0e4c45d77ad573bb2a250845522b96
<ide><path>railties/lib/rails/generators/named_base.rb <ide> def template(source, *args, &block) <ide> protected <ide> attr_reader :file_name <ide> <add> # FIXME: We are avoiding to use alias because a bug on thor that make <add> # this method public and add it to the task list. <ide> ...
1
Javascript
Javascript
fix typo in menu-sort-helpers-spec.js
2beb93b0d7a0447150f52a9326d2c925e64254d2
<ide><path>spec/menu-sort-helpers-spec.js <ide> describe('contextMenu', () => { <ide> expect(sortMenuItems(items)).toEqual(expected); <ide> }); <ide> <del> it('preserves separators at the begining of set two', () => { <add> it('preserves separators at the beginning of set two', () => { <ide> cons...
1
Ruby
Ruby
allow select to have multiple arguments
04cc446d178653d362510e79a22db5300d463161
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def preload(*args) <ide> relation <ide> end <ide> <del> def select(value = Proc.new) <add> def select(*args, &blk) <add> if !block_given? && args.blank? <add> raise ArgumentError <add> end <ide> if block_gi...
2
Text
Text
add v3.9.0-beta.3 to changelog
514787c9b01461162ce780ff766d3c531b77d16e
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.9.0-beta.3 (March 4, 2019) <add> <add>- [#17684](https://github.com/emberjs/ember.js/pull/17684) [BUGFIX] Enable maximum rerendering limit to be customized. <add>- [#17691](https://github.com/emberjs/ember.js/pull/17691) [BUGFIX] Ensure tagForProperty w...
1
Python
Python
fix xcom arg.py .zip bug
f219bfbe22e662a8747af19d688bbe843e1a953d
<ide><path>airflow/models/xcom_arg.py <ide> from airflow.utils.context import Context <ide> from airflow.utils.edgemodifier import EdgeModifier <ide> from airflow.utils.session import NEW_SESSION, provide_session <del>from airflow.utils.types import NOTSET <add>from airflow.utils.types import NOTSET, ArgNotSet <ide> <...
1
Javascript
Javascript
call tolowercase on the resolved module
8a00f1d129ac5fcbbce8e115a2576e0ea080e4ed
<ide><path>test/parallel/test-require-resolve.js <ide> assert.strictEqual( <ide> require.resolve(fixtures.path('a')).toLowerCase()); <ide> assert.strictEqual( <ide> fixtures.path('nested-index', 'one', 'index.js').toLowerCase(), <del> require.resolve(fixtures.path('nested-index', 'one').toLowerCase())); <add> req...
1
Javascript
Javascript
fix jslint errors
fd30eb21526bdaa5aabb15523b0a766e0cbbe535
<ide><path>lib/_debugger.js <ide> Interface.prototype.unwatch = function(expr) { <ide> <ide> // List watchers <ide> Interface.prototype.watchers = function() { <del> var self = this, <del> verbose = arguments[0] || false, <del> callback = arguments[1] || function() {}, <del> waiting = this._watchers.le...
7
Text
Text
update changelog.md for 3.16.7
a3638c9a3f3d3b8f0d760bfec11c1b1c06adcb55
<ide><path>CHANGELOG.md <ide> - [#18694](https://github.com/emberjs/ember.js/pull/18694) [BUGFIX] Ensure tag updates are buffered, remove error message <ide> - [#18709](https://github.com/emberjs/ember.js/pull/18709) [BUGFIX] Fix `this` in `@tracked` initializer <ide> <del>### v3.16.6 <add>### v3.16.7 (April 13, 2020...
1
Ruby
Ruby
reduce effective scope of pipe variables
479ad0265b4998531be1682d9ac96f8dec10a553
<ide><path>Library/Homebrew/formula.rb <ide> def test_defined? <ide> # Pretty titles the command and buffers stdout/stderr <ide> # Throws if there's an error <ide> def system cmd, *args <del> rd, wr = IO.pipe <del> <ide> # remove "boring" arguments so that the important ones are more likely to <ide> # ...
1
Ruby
Ruby
resolve url to get real file extension
fbcaa8c85ae42f127fd94a5d82f86a3eafb34848
<ide><path>Library/Homebrew/cask/lib/hbc/download.rb <ide> require "fileutils" <add>require "hbc/cache" <ide> require "hbc/quarantine" <ide> require "hbc/verify" <ide> <ide> def perform <ide> downloaded_path <ide> end <ide> <del> private <del> <del> attr_reader :force <del> attr_accessor :downloade...
11
Ruby
Ruby
add pinned status to info
040138164bf3f8e17ba05be4b135455c03bb0cf5
<ide><path>Library/Homebrew/cmd/info.rb <ide> def info_formula f <ide> specs << "devel #{f.devel.version}" if f.devel <ide> specs << "HEAD" if f.head <ide> <del> puts "#{f.name}: #{specs*', '}" <add> puts "#{f.name}: #{specs*', '}#{' (pinned)' if f.pinned?}" <ide> <ide> puts f.homepage <ide>
1
Javascript
Javascript
drop inaccessible methods
8181272fe8e4897391335b14b0c9aac3db4bd3c9
<ide><path>src/core/ReactComponent.js <ide> var ReactComponent = { <ide> mountImageIntoNode(markup, container, shouldReuseMarkup); <ide> }, <ide> <del> /** <del> * Checks if this component is owned by the supplied `owner` component. <del> * <del> * @param {ReactComponent} owner Component to ch...
2
Text
Text
fix links to 09-advanced.md (was 07-advanced.md)
9d7a0fb93ef23fd76ee41596b36235aaf988dcf4
<ide><path>CONTRIBUTING.md <ide> Using issues <ide> <ide> The [issue tracker](https://github.com/chartjs/Chart.js/issues) is the preferred channel for reporting bugs, requesting new features and submitting pull requests. <ide> <del>If you're suggesting a new chart type, please take a look at [writing new chart types]...
1
Ruby
Ruby
dup the callback and set the chain
91e002e31eb50329a5936dab3286b41571868653
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def deprecate_per_key_option(options) <ide> end <ide> end <ide> <del> def clone(chain) <del> obj = super() <del> obj.chain = chain <del> obj.options = @options.dup <del> ob...
1
Javascript
Javascript
escape path variables in replaced values
362e5d37d67d8c582dd11a48d3019bbeefa590fa
<ide><path>lib/TemplatedPathPlugin.js <ide> const getReplacer = (value, allowEmpty) => { <ide> return fn; <ide> }; <ide> <add>const escapePathVariables = value => { <add> return typeof value === "string" <add> ? value.replace( <add> /\[(name|id|moduleid|file|query|filebase|url|hash|chunkhash|modulehash|contenthas...
2
Python
Python
add do_lower_case in examples
0541442558edb3771ec469b46bf236c0679a1cb2
<ide><path>examples/extract_features.py <ide> def main(): <ide> "bert-large-uncased, bert-base-cased, bert-base-multilingual, bert-base-chinese.") <ide> <ide> ## Other parameters <add> parser.add_argument("--do_lower_case", default=False, action='store_true', help="Set this flag if ...
2
Ruby
Ruby
combine git existence and version checks
255c6e7c3fb34fbf8bd8899a051beec930fc7a4d
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_filesystem_case_sensitive <ide> EOS <ide> end <ide> <add>def __check_git_version <add> # https://help.github.com/articles/https-cloning-errors <add> `git --version`.chomp =~ /git version ((?:\d+\.?)+)/ <add> <add> if Version.new($1) < Version.new("1.7.10")...
1
PHP
PHP
add check for simple equals
4df653ef08ce2d6035acb21c4192bb2886e3f6e1
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> protected function originalIsEquivalent($key, $current) <ide> return false; <ide> } <ide> <del> $original = $this->getOriginal($key); <add> if ($current === $original = $this->getOriginal($key)) { <add> ...
1
Python
Python
add 5 epoch warmup to resnet
9bf586de5199644ef88e4f3899b33a52f8329e44
<ide><path>official/resnet/cifar10_test.py <ide> def test_cifar10_end_to_end_synthetic_v2(self): <ide> extra_flags=['-resnet_version', '2'] <ide> ) <ide> <del> def test_flag_restriction(self): <del> with self.assertRaises(SystemExit): <del> integration.run_synthetic( <del> main=cifar10_ma...
4
Python
Python
fix the error message in run_t5_mlm_flax.py
e150c4e2fec67d6cbe8458d989a139b07ea1fe05
<ide><path>examples/flax/language-modeling/run_t5_mlm_flax.py <ide> def __call__(self, examples: List[Dict[str, np.ndarray]]) -> BatchEncoding: <ide> if batch["input_ids"].shape[-1] != self.input_length: <ide> raise ValueError( <ide> f"`input_ids` are incorrectly preprocessed. `input...
1
Java
Java
add support for @serverendpoint annotated classes
914e969ac3a90270d262c4cb817a5ed1eecb2baa
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/EndpointExporter.java <ide> */ <ide> package org.springframework.websocket.server.endpoint; <ide> <add>import java.util.Map; <add> <ide> import javax.websocket.DeploymentException; <ide> import javax.websocket.server.ServerContain...
3
Go
Go
simplify networkoverlaps function
26ac09e004a0d0b82c74d84d0936030940ac8454
<ide><path>libnetwork/netutils/utils.go <ide> func CheckRouteOverlaps(toCheck *net.IPNet) error { <ide> <ide> // NetworkOverlaps detects overlap between one IPNet and another <ide> func NetworkOverlaps(netX *net.IPNet, netY *net.IPNet) bool { <del> // Check if both netX and netY are ipv4 or ipv6 <del> if (netX.IP.To4(...
1
Go
Go
unify readmeminfo implementation
ec878a3d895a635e1fefaa27efe83869a1b6b601
<ide><path>pkg/sysinfo/meminfo.go <ide> package sysinfo <ide> <add>// ReadMemInfo retrieves memory statistics of the host system and returns a <add>// Memory type. It is only supported on Linux and Windows, and returns an <add>// error on other platforms. <add>func ReadMemInfo() (*Memory, error) { <add> return readMem...
4
Go
Go
use correct logger
1d2a6694450e8f2883e98823d9d937dab4241c7f
<ide><path>libcontainerd/supervisor/remote_daemon.go <ide> func (r *remote) startContainerd() error { <ide> <ide> if pid != -1 { <ide> r.daemonPid = pid <del> logrus.WithField("pid", pid). <del> Infof("libcontainerd: %s is still running", binaryName) <add> r.logger.WithField("pid", pid).Infof("%s is still runni...
1
PHP
PHP
use file cache as the default cache engine
2f7f5e13224537eaa4da6b825b1d106bebc35d05
<ide><path>app/Config/core.php <ide> //date_default_timezone_set('UTC'); <ide> <ide> /** <del> * Pick the caching engine to use. If APC is enabled use it. <del> * If running via cli - apc is disabled by default. ensure it's available and enabled in this case <add> * Configure the cache handlers that CakePHP will use...
2
Go
Go
return listenbuffer behavior
281a48d092fa84500c63b984ad45c59a06f301c4
<ide><path>api/server/server.go <ide> func (s *Server) Close() { <ide> } <ide> <ide> // ServeAPI loops through all initialized servers and spawns goroutine <del>// with Server method for each. It sets CreateMux() as Handler also. <add>// with Serve() method for each. <ide> func (s *Server) ServeAPI() error { <ide> va...
2
Text
Text
fix a typo of microtaskmode
4cca942a86af6a6ce2cb8d6ea8ea6e1325d8c58a
<ide><path>doc/api/vm.md <ide> changes: <ide> * `wasm` {boolean} If set to false any attempt to compile a WebAssembly <ide> module will throw a `WebAssembly.CompileError`. **Default:** `true`. <ide> * `microtaskMode` {string} If set to `afterEvaluate`, microtasks (tasks <del> scheduled through `Promise`s...
1
Javascript
Javascript
add stdio checks to cp-exec-maxbuffer
5f866821adf71ff3ed909d4be8c808197663c110
<ide><path>test/parallel/test-child-process-exec-maxBuffer.js <ide> const common = require('../common'); <ide> const assert = require('assert'); <ide> const cp = require('child_process'); <ide> <del>function checkFactory(streamName) { <del> return common.mustCall((err) => { <del> assert.strictEqual(err.message, `$...
1
Javascript
Javascript
move _scrypt call out of handleerror funct
882e8fea669911a008ccdddd889b92414ca68949
<ide><path>lib/internal/crypto/scrypt.js <ide> function scrypt(password, salt, keylen, options, callback = defaults) { <ide> callback.call(wrap, null, keybuf.toString(encoding)); <ide> }; <ide> <del> handleError(keybuf, password, salt, N, r, p, maxmem, wrap); <add> handleError(_scrypt(keybuf, password, salt, N...
1
Text
Text
update functional api guide
f981bdb5514c3b1489fd7def6acf91433dd11bda
<ide><path>docs/templates/getting-started/complete_guide_to_the_keras_functional_api.md <ide> <ide> The `Sequential` model is probably a better choice to implement such a network, but it helps to start with something really simple. <ide> <add>- As you can see, a layer instance is callable (on a tensor), and it return...
1
Text
Text
remove outdated notes on stdio in workers
a5b92a7bb4f1b85f0901a2872da93bb4449aa42e
<ide><path>doc/api/process.md <ide> a [Writable][] stream. <ide> `process.stderr` differs from other Node.js streams in important ways, see <ide> [note on process I/O][] for more information. <ide> <del>This feature is not available in [`Worker`][] threads. <del> <ide> ## process.stdin <ide> <ide> * {Stream} <ide> In...
1
Javascript
Javascript
add test cases
68c44ad842bf7ce7c0886099efc74815e15f9540
<ide><path>test/cases/parsing/harmony-commonjs/a.js <add>export default function test() { <add> return "OK"; <add>} <ide><path>test/cases/parsing/harmony-commonjs/index.js <add>it("should pass when required by CommonJS module", function () { <add> var test1 = require('./a').default; <add> test1().should.be.eql("OK"); <...
2
Ruby
Ruby
add alias method
4613c9ecf5fbb0023fe44cde5c1ce1664b602b74
<ide><path>Library/Homebrew/tap.rb <ide> def formula_names <ide> formula_files.map { |f| "#{name}/#{f.basename(".rb")}" } <ide> end <ide> <add> # an array of all alias files of this {Tap}. <add> # @private <add> def alias_files <add> Pathname.glob("#{path}/Aliases/*").select(&:file?) <add> end <add> <add>...
1
Java
Java
improve method order in mockmvcrequestbuilders
9bda734e0a1bd571078bc2e7c7b41065a7d53fa3
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java <ide> public class MockHttpServletRequestBuilder implements RequestBuilder, Mergeable <ide> * the {@code MockHttpServletRequest} can be plugged in via <ide> * {@link #with(RequestPostProcessor)}. <id...
3
PHP
PHP
remove duplicate trans methods on translator
8557dc56b11c5e4dc746cb5558d6e694131f0dd8
<ide><path>src/Illuminate/Contracts/Translation/Translator.php <ide> interface Translator <ide> * @param string|null $locale <ide> * @return mixed <ide> */ <del> public function trans($key, array $replace = [], $locale = null); <add> public function get($key, array $replace = [], $locale = null);...
5
Javascript
Javascript
fix deadlock when sending handles
1bd4f3a605216838619e4d7dc1eb1600b1deb91f
<ide><path>lib/child_process.js <ide> function setupChannel(target, channel) { <ide> if (obj.simultaneousAccepts) { <ide> net._setSimultaneousAccepts(handle); <ide> } <del> } else if (this._handleQueue) { <add> } else if (this._handleQueue && <add> !(message && message.cmd === 'N...
2
Ruby
Ruby
fix minor typo in code comment
03647a3b7443eed0a11cd43d6cc327120e59f6a1
<ide><path>lib/action_text/attribute.rb <ide> module Attribute <ide> # If you wish to preload the dependent RichText model, you can use the named scope: <ide> # <ide> # Message.all.with_rich_text_content # Avoids N+1 queries when you just want the body, not the attachments. <del> # Message.al...
1
PHP
PHP
refactor the mysql connector
ace9702a1a7b17cb33b2f61eb46973de5e4111e6
<ide><path>src/Illuminate/Database/Connectors/MySqlConnector.php <ide> public function connect(array $config) <ide> $connection->exec("use `{$config['database']}`;"); <ide> } <ide> <del> $collation = $config['collation']; <add> $this->configureEncoding($connection, $config); <ide> <d...
1
Ruby
Ruby
assign this inline
381255adecbbd16fca0d2ae1b52330a254bfae76
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def clang <ide> @compiler = :clang <ide> end <ide> <del> def remove_macosxsdk v=MacOS.version <add> def remove_macosxsdk version=MacOS.version <ide> # Clear all lib and include dirs from CFLAGS, CPPFLAGS, LDFLAGS that were <ide> # previously added by maco...
1
Javascript
Javascript
clarify parameters description
b11120be0ad2fe27e85556ad89c3201c04e217cb
<ide><path>src/ngCookies/cookies.js <ide> angular.module('ngCookies', ['ng']). <ide> * The object may have following properties: <ide> * <ide> * - **path** - `{string}` - The cookie will be available only for this path and its <del> * sub-paths. By default, this would be the URL that appears in you...
1