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
PHP
PHP
capture the version when parsing response headers
f53e5b3872a12208d68293fa8e1aab4b73aba148
<ide><path>lib/Cake/Network/Http/Response.php <ide> public function __construct($headers = [], $body = '') { <ide> protected function _parseHeaders($headers) { <ide> foreach ($headers as $key => $value) { <ide> if (substr($value, 0, 5) === 'HTTP/') { <del> preg_match('/HTTP\/[\d.]+ ([0-9]+)/i', $value, $matche...
2
Ruby
Ruby
use concat rather than << and flatten
db0c93dbae352a3e4ab83e31d360919f1bc3b3d7
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch <ide> bucket = [] <ide> ARGV.formulae.each do |f| <ide> bucket << f <del> bucket << f.recursive_dependencies.map(&:to_formula) <add> bucket.concat f.recursive_dependencies.map(&:to_formula) <ide> end <del> <del> bucket...
1
Go
Go
fix error message
c378fb774e413ba8bf5cadf655d2b67e9c94245a
<ide><path>daemon/graphdriver/devmapper/device_setup.go <ide> type directLVMConfig struct { <ide> var ( <ide> errThinpPercentMissing = errors.New("must set both `dm.thinp_percent` and `dm.thinp_metapercent` if either is specified") <ide> errThinpPercentTooBig = errors.New("combined `dm.thinp_percent` and `dm.thinp_m...
1
Python
Python
fix broken detection of nan in comparison function
9842632311a9e38a34c740617f308e7926fd9b71
<ide><path>numpy/testing/utils.py <ide> def assert_approx_equal(actual,desired,significant=7,err_msg='',verbose=True): <ide> <ide> def assert_array_compare(comparison, x, y, err_msg='', verbose=True, <ide> header=''): <del> from numpy.core import asarray, isnan <add> from numpy.core impo...
1
Text
Text
add note about node_env being set automatically
0bdcb8ddc2b63f98817915816745ee3cb2010cbf
<ide><path>readme.md <ide> Then run `now` and enjoy! <ide> <ide> Next.js can be deployed to other hosting solutions too. Please have a look at the ['Deployment'](https://github.com/zeit/next.js/wiki/Deployment) section of the wiki. <ide> <add>Note: `NODE_ENV` is properly configured by the `next` subcommands, if absen...
1
Javascript
Javascript
subclass the right class
584a1a317e6a965bf95203a1d5bd06f45d82590d
<ide><path>spec/jasmine-junit-reporter.js <ide> require('jasmine-reporters') <ide> <del>class JasmineJUnitReporter extends jasmine.JUnitReporter { <add>class JasmineJUnitReporter extends jasmine.JUnitXmlReporter { <ide> fullDescription (spec) { <ide> let fullDescription = spec.description <ide> let currentSu...
1
Javascript
Javascript
fix uncaught rejection
75c14e3674e90a9b67335b896c39d3618fb37ac1
<ide><path>packager/src/Server/__tests__/Server-test.js <ide> describe('processRequest', () => { <ide> beforeEach(() => { <ide> Bundler.prototype.bundle = jest.fn(() => <ide> Promise.resolve({ <add> getModules: () => [], <ide> getSource: () => 'this is the source', <ide> getSourceMap:...
2
PHP
PHP
add tests for `queueforget()` method
c35631b524a05d87702c1363bfbf5344550389c0
<ide><path>tests/Cookie/CookieTest.php <ide> public function testHasQueuedWithPath(): void <ide> $this->assertFalse($cookieJar->hasQueued('foo', '/wrongPath')); <ide> } <ide> <add> public function testQueueForget() <add> { <add> $cookieJar = $this->getCreator(); <add> $this->assertCount...
1
Java
Java
deprecate multiple arity ‘from’
e36e7174773a9e5d5895e8259d1f3e52bc6b4892
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public static <T> Observable<T> from(T t1) { <ide> * resulting Observable <ide> * @return an Observable that emits each item <ide> * @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()...
1
Ruby
Ruby
remove useless argument in #columns
dcd74eb519c352c732fd593ecebaacce2e7560cf
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def index_exists?(table_name, column_name, options = {}) <ide> <ide> # Returns an array of Column objects for the table specified by +table_name+. <ide> # See the concrete implementation for details on the exp...
6
Ruby
Ruby
fix missing closing <tt> tag
680fab830898b56d70792d1f708a1bb3bac2b33a
<ide><path>railties/lib/rails/engine.rb <ide> module Rails <ide> # <ide> # The <tt>Application</tt> class adds a couple more paths to this set. And as in your <ide> # <tt>Application</tt>, all folders under +app+ are automatically added to the load path. <del> # If you have an <tt>app/services/tt> folder for exa...
1
PHP
PHP
add missing gettime function in job class
7e200965988cd77530a99d7de369cb7f9b8a2cda
<ide><path>src/Illuminate/Queue/Jobs/Job.php <ide> protected function getSeconds($delay) <ide> } <ide> } <ide> <add> /** <add> * Get the current system time. <add> * <add> * @return int <add> */ <add> protected function getTime() <add> { <add> return time(); <add> } <add> <ide> /** <ide> * Get the name of t...
1
Javascript
Javascript
verify ticks length
bbf298f4614c058e2ec86329566a56bfcd8bc685
<ide><path>src/core/core.ticks.js <ide> import {log10} from '../helpers/helpers.math'; <ide> */ <ide> const formatters = { <ide> /** <del> * Formatter for value labels <del> * @method Chart.Ticks.formatters.values <del> * @param value the value to display <del> * @return {string|string[]} the label to display <d...
2
PHP
PHP
add new json loader for translations
1ab41fb385441494016aeb518b7b809b311e725c
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function trans_choice($id, $number, array $replace = [], $locale = null) <ide> } <ide> } <ide> <add>if (! function_exists('__')) { <add> /** <add> * Translate the given message. <add> * <add> * @param string $id <add> * @param array $re...
5
PHP
PHP
add deprecation warning for routing middleware
9b48a65ce4a192ee570be292145b94a960bb189a
<ide><path>src/Routing/Middleware/RoutingMiddleware.php <ide> class RoutingMiddleware <ide> */ <ide> public function __construct(HttpApplicationInterface $app = null, $cacheConfig = null) <ide> { <add> if ($app === null) { <add> deprecationWarning( <add> 'RoutingMiddleware ...
4
Javascript
Javascript
add serializer for acorn position
e9db83c6c7e5b82588975b246a6ecee2b09a79e4
<ide><path>lib/util/registerExternalSerializer.js <ide> <ide> const ObjectMiddleware = require("../serialization/ObjectMiddleware"); <ide> <add>const Position = /** @type {TODO} */ (require("acorn")).Position; <ide> const SourceLocation = require("acorn").SourceLocation; <ide> const CachedSource = require("webpack-so...
2
PHP
PHP
fix whitespace error
3c9500a3cb54128bb438fbb17f74fa88c3be70b7
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> public function radio($fieldName, $options = array(), $attributes = array()) { <ide> if ($label) { <ide> $optTitle = $this->label($tagName, $optTitle, is_array($label) ? $label : null); <ide> } <del> <add> <ide> if (is_array($between)) { <ide> $op...
1
Text
Text
edit n-api.md for minor improvements
062b35d4e82663b50898f4f47e74d9d64c031379
<ide><path>doc/api/n-api.md <ide> for a reference is 0, all subsequent calls to <ide> get the object associated with the reference [`napi_get_reference_value`][] <ide> will return `NULL` for the returned `napi_value`. An attempt to call <ide> [`napi_reference_ref`][] for a reference whose object has been collected <del...
1
Javascript
Javascript
fix typos and minor wording tweaks on $watch
03ebecd5eb419da79cb3bcef270cac424c4743de
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * reruns when it detects changes the `watchExpression` can execute multiple times per <ide> * {@link ng.$rootScope.Scope#$digest $digest()} and should be idempotent.) <ide> * - The `listener` is called only when the value...
1
Javascript
Javascript
tls key/cert ordering not necessary
475b8db8354b50b971653912de82fc336001c6d3
<ide><path>test/parallel/test-tls-multi-key.js <ide> var fs = require('fs'); <ide> <ide> var options = { <ide> key: [ <add> fs.readFileSync(common.fixturesDir + '/keys/ec-key.pem'), <ide> fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'), <del> fs.readFileSync(common.fixturesDir + '/keys/ec-key....
1
Python
Python
fix the weird boolean+advanced indexing test
fc865d8c6212b51bb03190f2cd732f1d484539dd
<ide><path>numpy/core/tests/test_indexing.py <ide> def test_bool_as_int_argument_errors(self): <ide> def test_boolean_indexing_weirdness(self): <ide> # Weird boolean indexing things <ide> a = np.ones((2, 3, 4)) <del> a[False, True, ...].shape == (0, 2, 3, 4) <del> a[True, [0, 1], True,...
1
PHP
PHP
fix translator bug
d0fca1878a924a2319f5262e5f264f9d59e69418
<ide><path>src/Illuminate/Translation/Translator.php <ide> protected function getLine($namespace, $group, $locale, $item, array $replace) <ide> { <ide> $line = array_get($this->loaded[$namespace][$group][$locale], $item); <ide> <del> if (is_string($line)) return $this->makeReplacements($line, $replace); <add> if ...
1
Javascript
Javascript
use es6 in test-debugger-client.js
56072280996f2b39328952985723f0c76a11a189
<ide><path>test/debugger/test-debugger-client.js <ide> 'use strict'; <ide> const common = require('../common'); <del>var assert = require('assert'); <del>var debug = require('_debugger'); <add>const assert = require('assert'); <add>const debug = require('_debugger'); <ide> <ide> process.env.NODE_DEBUGGER_TIMEOUT = 200...
1
PHP
PHP
remove whitespace at eol
e7fa2a526ff456e5e776290d60461397f73fc464
<ide><path>lib/Cake/Console/Command/Task/TemplateTask.php <ide> public function initialize() { <ide> */ <ide> protected function _findThemes() { <ide> $paths = App::path('Console'); <del> <add> <ide> $plugins = App::objects('plugin'); <ide> foreach ($plugins as $plugin) { <ide> $paths[] = $this->_pluginPat...
1
Python
Python
fix broken tests
4716677f8193a43659b6a467b8c8bce0e2100374
<ide><path>celery/tests/test_worker.py <ide> from celery.decorators import task as task_dec <ide> <ide> <add>class MockEventDispatcher(object): <add> <add> def send(self, *args, **kwargs): <add> pass <add> <add> def close(self): <add> pass <add> <add> <ide> @task_dec() <ide> def foo_task(x, y, z, ...
1
Ruby
Ruby
fix typeerror in fixture creation
7b910917d39bb7d7c5b1b7cdbfb14ff001cac7cc
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> def table_rows <ide> <ide> # interpolate the fixture label <ide> row.each do |key, value| <del> row[key] = value.gsub("$LABEL", label) if value.is_a?(String) <add> row[key] = value.gsub("$LABEL", label.to_s) if value....
1
Javascript
Javascript
fix more forwardref displaynames
76eebce3c20152fdd5386ec405524d0810770eea
<ide><path>Libraries/Components/ActivityIndicator/ActivityIndicator.js <ide> type Props = $ReadOnly<{| <ide> * See http://facebook.github.io/react-native/docs/activityindicator.html <ide> */ <ide> const ActivityIndicator = ( <del> props: $ReadOnly<{| <del> ...Props, <del> forwardedRef?: ?React.Ref<'RCTActivity...
5
PHP
PHP
slug for better result consistency
f132e3e894ea5db842ef054759c03b0088f7c955
<ide><path>src/Illuminate/Support/Str.php <ide> public static function slug($title, $separator = '-') <ide> // Remove all characters that are not the separator, letters, numbers, or whitespace. <ide> $title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', mb_strtolower($title)); <ide> <add> // Conv...
1
Javascript
Javascript
handle content from loaders
f21930b588db5e7a5200439bcb41e7bb8f432106
<ide><path>lib/asset/AssetGenerator.js <ide> const mergeRelatedInfo = (a, b) => { <ide> return result; <ide> }; <ide> <add>const encodeDataUri = (encoding, source) => { <add> let encodedContent; <add> <add> switch (encoding) { <add> case "base64": { <add> encodedContent = source.buffer().toString("base64"); <add> ...
5
Text
Text
fix syntax error in primaryapplicationrecord
b3c5db5455592f28a24a1053aa4b6a83c0fb8774
<ide><path>guides/source/active_record_multiple_databases.md <ide> should share a connection with. <ide> <ide> ``` <ide> class PrimaryApplicationRecord < ActiveRecord::Base <del> self.primary_abstract_class <add> self.primary_abstract_class = true <ide> end <ide> ``` <ide>
1
Javascript
Javascript
fix alfabetic order
a136ee0fd3d9c023aa893e7b52f622d722611aaf
<ide><path>examples/files.js <ide> var files = { <ide> "webgl_materials_envmaps_exr", <ide> "webgl_materials_envmaps_hdr", <ide> "webgl_materials_envmaps_hdr_nodes", <del> "webgl_materials_envmaps_pmrem_nodes", <ide> "webgl_materials_envmaps_parallax", <add> "webgl_materials_envmaps_pmrem_nodes", <ide> "web...
1
Ruby
Ruby
fix variable names
b4efb2c258a3e1735f46a6874ccf67bdd40516a1
<ide><path>Library/Homebrew/utils/notability.rb <ide> def github_repo_data(user, repo) <ide> @github_repo_data ||= {} <ide> @github_repo_data["#{user}/#{repo}"] ||= GitHub.repository(user, repo) <ide> <del> @github_data["#{user}/#{repo}"] <add> @github_repo_data["#{user}/#{repo}"] <ide> rescue GitHub::...
1
PHP
PHP
add error highlighting to error message
c4dbab4681984f2f32f4d11e61afd7d069e2df9e
<ide><path>src/Shell/Task/ExtractTask.php <ide> public function main() { <ide> $this->_output = $response . DS; <ide> break; <ide> } else { <del> $this->err('The directory path you supplied was not found. Please try again.'); <add> $this->err(''); <add> $this->err('<error>The directory path yo...
1
PHP
PHP
simplify repository check
f669a60c96aef6407ff934784d0d7fd0ea860cfe
<ide><path>src/ORM/Rule/LinkConstraint.php <ide> public function __construct($association, string $requiredLinkStatus) <ide> */ <ide> public function __invoke(EntityInterface $entity, array $options): bool <ide> { <del> if ( <del> !isset($options['repository']) || <del> !($opti...
1
Ruby
Ruby
add collectionproxy#build documentation
2c62dd64dbaf1b3c758e7259fa8fefbafbbdcf81
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> # another_person_without.pets.last # => nil <ide> # another_person_without.pets.last(3) # => [] <ide> <add> ## <add> # :method: build <add> # <add> # :call-seq:...
1
Ruby
Ruby
improve regexp of `html_safe_translation_key?`
30a08a898862a67502e58074ffaa8cc2338840f5
<ide><path>actionview/lib/action_view/helpers/translation_helper.rb <ide> def scope_key_by_partial(key) <ide> end <ide> <ide> def html_safe_translation_key?(key) <del> /(\b|_|\.)html$/.match?(key.to_s) <add> /([_.]|\b)html\z/.match?(key.to_s) <ide> end <ide> end <ide> en...
1
Javascript
Javascript
use node v4 syntax in common.js
8a0b7ffac61cef1373d559b3f1d3151192949cbf
<ide><path>benchmark/common.js <ide> Benchmark.prototype.report = function(rate, elapsed) { <ide> }); <ide> }; <ide> <del>exports.v8ForceOptimization = function(method, ...args) { <add>exports.v8ForceOptimization = function(method) { <ide> if (typeof method !== 'function') <ide> return; <add> <ide> const v8 ...
1
Python
Python
adjust parameters and explain background
3f67151194e98f0f53d75252819cc0f08b2d9f6a
<ide><path>benchmarks/benchmarks/bench_lib.py <ide> <ide> <ide> class Pad(Benchmark): <del> """Benchmarks for `numpy.pad`.""" <add> """Benchmarks for `numpy.pad`. <add> <add> When benchmarking the pad function it is useful to cover scenarios where <add> the ratio between the size of the input array and th...
1
Python
Python
change alret global message
c26ad16dfec6dc7c014ae309de5733c2e7ed4e23
<ide><path>glances/plugins/glances_alert.py <ide> tree = [{'msg': 'No warning or critical alert detected', <ide> 'thresholds': [], <ide> 'thresholds_min': 0}, <del> {'msg': 'High CPU user mode by processes', <add> {'msg': 'High CPU user mode', <ide> 'thresholds': ['cpu_user'], <...
1
Ruby
Ruby
improve deleted message
7e2b228460e87ad247b73859da2576d5f782315c
<ide><path>Library/Homebrew/diagnostic.rb <ide> def check_deleted_formula <ide> return if deleted_formulae.blank? <ide> <ide> <<~EOS <del> Some installed formulae were deleted! <add> Some installed kegs have no formulae! <add> This means they were either deleted or installed ...
1
Text
Text
add hints to http.request() options
58166ae0df107cc0648e70cd8c757e0574b323c2
<ide><path>doc/api/http.md <ide> changes: <ide> `hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and <ide> v6 will be used. <ide> * `headers` {Object} An object containing request headers. <add> * `hints` {number} Optional [`dns.lookup()` hints][]. <ide> * `host` {string} A domain name...
1
Java
Java
expose websession on serverrequest
d724644588b77e807ce16b13ae3cd36208807055
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/function/server/DefaultServerRequest.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "...
6
PHP
PHP
fix phpstan warning
a53de2a6bed0d861dfd20359a95071ab86ff1799
<ide><path>src/Database/Statement/BufferedStatement.php <ide> public function lastInsertId($table = null, $column = null) <ide> * @param string $type The type to fetch. <ide> * @return array|false <ide> */ <del> public function fetch($type = parent::FETCH_TYPE_NUM) <add> public function fetch($type...
1
Go
Go
forbid syscalls in tests, add 2 new unit tests
bc82940a575944e4686db203356a8a3fb3a75217
<ide><path>graphdriver/devmapper/driver.go <ide> type Driver struct { <ide> home string <ide> } <ide> <del>func Init(home string) (graphdriver.Driver, error) { <add>var Init = func(home string) (graphdriver.Driver, error) { <ide> deviceSet, err := NewDeviceSet(home, true) <ide> if err != nil { <ide> return nil, e...
3
Text
Text
add reformer to notebooks
223084e42b57cd0d8e78de38e15a42d5d6b04391
<ide><path>notebooks/README.md <ide> Pull Request so it can be included under the Community notebooks. <ide> | [How to generate text](https://github.com/huggingface/blog/blob/master/notebooks/02_how_to_generate.ipynb)| How to use different decoding methods for language generation with transformers | [![Open in Colab](h...
1
Python
Python
eliminate test for longfloat
937e4dbfa532e14e1da0dbc091b83ab0031913af
<ide><path>numpy/core/tests/test_regression.py <ide> def check_arange_endian(self,level=rlevel): <ide> x = N.arange(10,dtype='>f8') <ide> assert_array_equal(ref,x) <ide> <del> def check_longfloat_repr(self,level=rlevel): <del> """Ticket #112""" <del> if N.longfloat(0).itemsize > 8: <de...
1
Python
Python
add usage example to np.char.center docstring
60f1d14f155b5409113060287a089f44a10ba353
<ide><path>numpy/core/defchararray.py <ide> def center(a, width, fillchar=' '): <ide> See Also <ide> -------- <ide> str.center <add> <add> Notes <add> ----- <add> This function is intended to work with arrays of strings. The <add> fill character is not applied to numeric types. <add> <add> ...
1
Python
Python
update volumes with type hints + some refactoring
1cc817bcc961061941fddcd081ab2dc19da6b877
<ide><path>maths/volume.py <ide> <ide> Wikipedia reference: https://en.wikipedia.org/wiki/Volume <ide> """ <add>from typing import Union <add>from math import pi, pow <ide> <del>from math import pi <ide> <add>def vol_cube(side_length: Union[int, float]) -> float: <add> """ <add> Calculate the Volume of a Cube....
1
PHP
PHP
move the test case to its own method
044cf60b69563ce60e73c60cac7f1361a5b346e4
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testInputOverridingMagicSelectType() { <ide> $this->assertTags($result, $expected); <ide> } <ide> <add>/** <add> * Test that magic input() selects are created for type=number <add> * <add> * @return void <add> */ <add> public functio...
1
PHP
PHP
avoid deprecation error on php 8.2
4a00af3b747bc3d87cb0f7bb97bdb781e9312ac0
<ide><path>tests/TestCase/Validation/ValidationTest.php <ide> public function testNotBlankIso88591AppEncoding(): void <ide> $this->assertTrue(Validation::notBlank('fooo' . chr(243) . 'blabla')); <ide> $this->assertTrue(Validation::notBlank('abçďĕʑʘπй')); <ide> $this->assertTrue(Validation::notBl...
1
Ruby
Ruby
recommend sha1 over md5
0b3327b862bc4404a7cf2dd1ff2549346e5068fb
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_specs <ide> when :sha256 then 64 <ide> end <ide> <add> problem "md5 is broken, deprecated: use sha1 instead" if cksum.hash_type == :md5 <add> <ide> if cksum.empty? <ide> problem "#{cksum.hash_type} is empty" <ide> else
1
Python
Python
make savetxt work with filenames
13918161ec7dfe6f7ce1fb871cf978a564d80df3
<ide><path>numpy/lib/npyio.py <ide> else: <ide> from cStringIO import StringIO as BytesIO <ide> <del>_file = open <ide> _string_like = _is_string_like <ide> <ide> def seek_gzip_factory(f): <ide> def load(file, mmap_mode=None): <ide> import gzip <ide> <ide> if isinstance(file, basestring): <del> fi...
2
PHP
PHP
remove class loader from aliases
c58286aa250d6fe0e347ddb1800f96e62e24de08
<ide><path>app/config/app.php <ide> 'Auth' => 'Illuminate\Support\Facades\Auth', <ide> 'Blade' => 'Illuminate\Support\Facades\Blade', <ide> 'Cache' => 'Illuminate\Support\Facades\Cache', <del> 'ClassLoader' => 'Illuminate\Support\ClassLoader', <ide> 'Config' => 'Illu...
2
Go
Go
fix unused variables
63a0e88e8a61b5c0d5f698d5baf37f568ee01d50
<ide><path>integration-cli/docker_api_build_test.go <ide> COPY file /file` <ide> assert.Equal(c, http.StatusOK, res.StatusCode) <ide> <ide> out, err := request.ReadBody(body) <add> require.NoError(c, err) <ide> <ide> ids := getImageIDsFromBuild(c, out) <ide> return ids[len(ids)-1] <ide> ADD file /file` <ide>...
3
Go
Go
unlock os threads
c3a6de9ec80d03aa0b0a7493d787eb706d2e2b11
<ide><path>daemon/logger/journald/read.go <ide> func waitUntilFlushedImpl(s *journald) error { <ide> go func() { <ide> defer close(flushed) <ide> runtime.LockOSThread() <add> defer runtime.UnlockOSThread() <ide> <ide> var ( <ide> j *sdjournal.Journal
1
Javascript
Javascript
escape all chars above \u007f in locale files
695c54c17b3299cd6170c45878b41cb46a577cd2
<ide><path>i18n/spec/closureI18nExtractorSpec.js <ide> describe("pluralExtractor", function() { <ide> }) <ide> }); <ide> <add>describe("serializeContent", function() { <add> it("should not make any modifications to the content of the locale", function() { <add> var serializedContent = closureI18nExtractor.serial...
250
Go
Go
use subtests, and split checks
fc83834ebb6f0e5adef02cafb66ca83363cc2c61
<ide><path>opts/hosts_test.go <ide> func TestParseHost(t *testing.T) { <ide> } <ide> <ide> for _, value := range invalid { <del> if _, err := ParseHost(false, false, value); err == nil { <del> t.Errorf("Expected an error for %v, got [nil]", value) <del> } <add> t.Run(value, func(t *testing.T) { <add> _, err :...
1
Javascript
Javascript
fix jqlite#parent to be compatible with jquery
56c00800c78d3d896fa6cb97ab97b974805152c4
<ide><path>src/jqLite.js <ide> forEach({ <ide> }, <ide> <ide> parent: function(element) { <del> // in IE it returns undefined, but we need differentiate it from functions which have no return <del> return element.parentNode || null; <add> var parent = element.parentNode; <add> return parent && parent.n...
2
Javascript
Javascript
enable react.displayname transform
b309e9b50e0a99333a437899930c997b78098634
<ide><path>packager/transformer.js <ide> function transform(srcTxt, filename, options) { <ide> 'es7.objectRestSpread', <ide> 'flow', <ide> 'react', <add> 'react.displayName', <ide> ], <ide> sourceFileName: filename, <ide> sourceMaps: false,
1
Ruby
Ruby
add a `branch_exists?` method
84632598a0d07782ce3f9f3a51914c174924d511
<ide><path>Library/Homebrew/utils/github.rb <ide> def write_access?(repo, user = nil) <ide> ["admin", "write"].include?(permission(repo, user)["permission"]) <ide> end <ide> <add> def branch_exists?(user, repo, branch) <add> API.open_rest("#{API_URL}/repos/#{user}/#{repo}/branches/#{branch}") <add> true <...
1
Ruby
Ruby
update some bad test cases for serialized columns
24b6fa59523dc9eccf0a7c553d3da083ea860045
<ide><path>activerecord/test/cases/serialized_attribute_test.rb <ide> def test_serialized_attribute_in_base_class <ide> assert_equal(hash, important_topic.content) <ide> end <ide> <del> # This test was added to fix GH #4004. Obviously the value returned <del> # is not really the value 'before type cast' so we ...
1
Text
Text
add missing cleanup step in openssl upgrade
01d8b39040480fde60ce0092eaa574f225f39547
<ide><path>doc/guides/maintaining-openssl.md <ide> release). <ide> % cd ../node/deps/openssl <ide> % rm -rf openssl <ide> % cp -R ../../../openssl openssl <add>% rm -rf openssl/.git* openssl/.travis* <ide> % git add --all openssl <ide> % git commit openssl <ide> ``` <ide> <ide> The commit message can be written as (wi...
1
PHP
PHP
add missing test cases for arr first
bb60a457f6c3692ea4f14355bddd8ee74cff91d7
<ide><path>tests/Support/SupportArrTest.php <ide> public function testFirst() <ide> { <ide> $array = [100, 200, 300]; <ide> <add> //Callback is null and array is empty <add> $this->assertNull(Arr::first([], null)); <add> $this->assertSame('foo', Arr::first([], null, 'foo')); <add> ...
1
Python
Python
update vcloud driver for new create_node api
a579400e241d36637d1600186ecd026963487ade
<ide><path>libcloud/drivers/vcloud.py <ide> def list_images(self): <ide> <ide> return images <ide> <del> def create_node(self, name, image, size, **kwargs): <add> def create_node(self, **kwargs): <ide> """Creates and returns node. <ide> <ide> Non-standard optional keyword arguments: ...
1
Javascript
Javascript
fix typing of view refs
49396aa78d218625c1933fa864acd70853faa9f9
<ide><path>Libraries/Image/ImageBackground.js <ide> const View = require('View'); <ide> <ide> const ensureComponentIsNative = require('ensureComponentIsNative'); <ide> <del>import type {NativeMethodsMixinType} from 'ReactNativeTypes'; <del> <ide> /** <ide> * Very simple drop-in replacement for <Image> which supports...
1
Go
Go
fix empty-lines (revive)
4eb9b5f20e142626adad1de8b2f2b5e0558b1d34
<ide><path>plugin/backend_linux.go <ide> func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header <ide> <ide> pusher, err := resolver.Pusher(ctx, ref.String()) <ide> if err != nil { <del> <ide> return errors.Wrap(err, "error creating plugin pusher") <ide> } <ide> <ide><path>plugin/manager...
3
Go
Go
call d.naivediff.applydiff when usenaivediff==true
dd97134232b8ab58ca06369322ae74164affb86d
<ide><path>daemon/graphdriver/overlay2/overlay.go <ide> func (d *Driver) isParent(id, parent string) bool { <ide> <ide> // ApplyDiff applies the new layer into a root <ide> func (d *Driver) ApplyDiff(id string, parent string, diff io.Reader) (size int64, err error) { <del> if !d.isParent(id, parent) { <add> if useNaiv...
1
Go
Go
fix duplicate iptables rules
f3a68ffa390fb851115c77783fa4031f1d3b2995
<ide><path>pkg/iptables/iptables.go <ide> import ( <ide> "net" <ide> "os" <ide> "os/exec" <add> "regexp" <ide> "strconv" <ide> "strings" <ide> ) <ide> func (c *Chain) Remove() error { <ide> <ide> // Check if an existing rule exists <ide> func Exists(args ...string) bool { <del> if _, err := Raw(append([]string{"-...
1
Text
Text
combine entries in logging configuration section
402e22cc617944bb65fc781317cc24a259852286
<ide><path>UPDATING.md <ide> This section describes the changes that have been made, and what you need to do <ide> Formerly the core code was maintained by the original creators - Airbnb. The code that was in the contrib <ide> package was supported by the community. The project was passed to the Apache community and cu...
1
Javascript
Javascript
add missing spec for angularjsconfig
7530eea7035e26a0bcc358c8ef94c79debabddf4
<ide><path>test/AngularSpec.js <ide> describe ('rngScript', function() { <ide> expect('foo/../my-angular-app-0.9.0-de0a8612.min.js'.match(rngScript)).toBeNull(); <ide> }); <ide> }); <add> <add> <add>describe('angularJsConfig', function() { <add> it('should find angular.js script tag and config', function() { <ad...
1
Javascript
Javascript
increase coverage for buffer.js
d78fd265ddae6cc2fd1b43a22b6d933ffa95c83b
<ide><path>test/parallel/test-buffer-arraybuffer.js <ide> b.writeDoubleBE(11.11, 0, true); <ide> return true; <ide> }); <ide> } <add> <add>{ <add> // If byteOffset is not numeric, it defaults to 0. <add> const ab = new ArrayBuffer(10); <add> const expected = Buffer.from(ab, 0); <add> assert.deepStrictEqual(Bu...
1
Python
Python
revert 0.12 changes but keep the argument swap
0d8916f4b84e8687eb46696883b50b84ac6aa420
<ide><path>tutorials/rnn/translate/seq2seq_model.py <ide> def __init__(self, <ide> b = tf.get_variable("proj_b", [self.target_vocab_size], dtype=dtype) <ide> output_projection = (w, b) <ide> <del> def sampled_loss(inputs,labels): <add> def sampled_loss(inputs, labels): <ide> labels = tf.r...
1
Java
Java
fix layout mountitem logging
9ac0c01d8c6f601a66e7c129cdd47f6804e16354
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java <ide> public String toString() { <ide> : "<hidden>"; <ide> s.append(String.format("UPDATE STATE [%d]: %s\n", mIntBuffer[i++], stateString)); <ide> } else if (type ==...
1
Text
Text
add link to serpy serialization, fixes
5c076e10bbd3defbda05403a678f7397ac5e6f26
<ide><path>docs/api-guide/serializers.md <ide> The following third party packages are also available. <ide> <ide> The [django-rest-marshmallow][django-rest-marshmallow] package provides an alternative implementation for serializers, using the python [marshmallow][marshmallow] library. It exposes the same API as the RE...
1
Text
Text
update changelog for 1.10.3
1c64becab64b1c665887cf45fbdb6fb4dce8c77c
<ide><path>CHANGELOG.md <ide> information on the list of deprecated flags and APIs please have a look at <ide> https://docs.docker.com/misc/deprecated/ where target removal dates can also <ide> be found. <ide> <add>## 1.10.3 (2016-03-10) <add> <add>### Runtime <add> <add>- Fix Docker client exiting with an "Unrecogniz...
1
PHP
PHP
add additional interface notes, correct typo
36291d10b0bd45f8175ddf7b9fe9c6d2854b10ea
<ide><path>src/ORM/ResultSet.php <ide> class ResultSet implements Countable, Iterator, Serializable, JsonSerializable { <ide> use CollectionTrait; <ide> <ide> /** <del> * Original query from where results where generated <add> * Original query from where results were generated <ide> * <ide> * @var Query <ide> */ <...
1
PHP
PHP
return pendingresourceregistration when
777fdc46630978a26ddc605d728c4df91a81d920
<ide><path>src/Illuminate/Routing/PendingResourceRegistration.php <add><?php <add> <add>namespace Illuminate\Routing; <add> <add>class PendingResourceRegistration <add>{ <add> /** <add> * The resource name. <add> * <add> * @var string <add> */ <add> protected $name; <add> <add> /** <add> * ...
4
Go
Go
start containers after all of them are registered
34bd2d622910444ae0d30bd0ac32005e224074c1
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) load(id string) (*Container, error) { <ide> // Register makes a container object usable by the daemon as <container.ID> <ide> // This is a wrapper for register <ide> func (daemon *Daemon) Register(container *Container) error { <del> return daemon.register(containe...
1
Text
Text
fix bug in inception instructions (#322)
f8e16db8275b7a612e2d785c98a423e019aa039a
<ide><path>inception/README.md <ide> DATA_DIR=$HOME/imagenet-data <ide> bazel build inception/download_and_preprocess_imagenet <ide> <ide> # run it <del>bazel-bin/inception/download_and_preprocess_imagenet "${DATA_DIR}$" <add>bazel-bin/inception/download_and_preprocess_imagenet "${DATA_DIR}" <ide> ``` <ide> <ide> The...
1
Ruby
Ruby
improve error message for missing pkg source
8b17017108d5b550562b556c5d407361cea27781
<ide><path>Library/Homebrew/cask/artifact/pkg.rb <ide> def run_installer(command: nil, verbose: false, **_options) <ide> ohai "Running installer for #{cask}; your password may be necessary." <ide> ohai "Package installers may write to any location; options such as --appdir are ignored." <ide> un...
1
Ruby
Ruby
add regression test to
43d600ee20ea20e0ef65670f95186b74633fc090
<ide><path>activerecord/test/cases/forbidden_attributes_protection_test.rb <ide> def test_regular_hash_should_still_be_used_for_mass_assignment <ide> assert_equal 'Guille', person.first_name <ide> assert_equal 'm', person.gender <ide> end <add> <add> def test_blank_attributes_should_not_raise <add> person...
1
Ruby
Ruby
use new quoting style
91f7f68ec453208bb2d933cb8504441232725200
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def self.reset_bottle; @bottle = Bottle.new; end <ide> <ide> BOTTLE_ERB = <<-EOS <ide> bottle do <del> <% if prefix.to_s != '/usr/local' %> <del> prefix '<%= prefix %>' <add> <% if prefix.to_s != "/usr/local" %> <add> prefix "<%= prefix %>" <ide> <% end...
1
Python
Python
update textcat example
b61866a2e4d22842399531bf885dd6b0074b5eaa
<ide><path>examples/training/train_textcat.py <del>'''Train a multi-label convolutional neural network text classifier, <del>using the spacy.pipeline.TextCategorizer component. The model is then added <del>to spacy.pipeline, and predictions are available at `doc.cats`. <del>''' <del>from __future__ import unicode_liter...
1
Java
Java
fix copyright header
7ca6b9f7d2196153307b93ea7df6fc52abb06902
<ide><path>spring-web/src/test/java/org/springframework/mock/web/test/MockBodyContent.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 "License"); <ide> * you may n...
1
PHP
PHP
fix bug in link_to_asset method
3ccad7de604ae39fa8e78189455b5f08632c753c
<ide><path>laravel/html.php <ide> public static function span($value, $attributes = array()) <ide> * @param string $title <ide> * @param array $attributes <ide> * @param bool $https <del> * @param bool $asset <ide> * @return string <ide> */ <del> public static function link($url, $title, $attrib...
1
Javascript
Javascript
add support for negative four-digit years
d7b526416eb348af8f8d2072085a30183be89900
<ide><path>moment.js <ide> parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 <ide> parseTokenThreeDigits = /\d{3}/, // 000 - 999 <ide> parseTokenFourDigits = /\d{4}/, // 0000 - 9999 <del> parseTokenFiveToSixDigits = /[+\-]?\d{5,6}/, // -999,999 - 999,999 <add> parseTokenFiveToSixD...
2
Javascript
Javascript
ensure contiguous arrays in map nodes
ac335b18f50dbf6d849550f9172b3690100cd961
<ide><path>dist/Immutable.dev.js <ide> function packNodes(ownerID, nodes, count, excluding) { <ide> for (var ii = 0, <ide> bit = 1, <ide> len = nodes.length; ii < len; ii++, bit <<= 1) { <del> var nodeII = nodes[ii]; <del> if (nodeII != null && ii !== excluding) { <add> var node = nodes[ii]; <add...
3
Text
Text
update the readme
3d2dedb49fdb319f3711f1e2574657f4ad6511a5
<ide><path>README.md <del># Atom — The hackable editor <add># Atom — A hackable text editor for the 21st Century <ide> <ide> ![Atom](http://i.imgur.com/OrTvUAD.png) <ide> <del>Check out our [guides and API documentation](https://atom.io/docs/latest). <add>Atom is an open source text editor built on top of <add>[atom-...
1
Go
Go
remove stray printf
77590d4dae9223ccd8edf9b153c669f631747f24
<ide><path>integration-cli/docker_cli_exec_test.go <ide> func (s *DockerSuite) TestExecDir(c *check.C) { <ide> id := strings.TrimSpace(out) <ide> <ide> execDir := filepath.Join(execDriverPath, id) <del> fmt.Println(execDriverPath) <ide> stateFile := filepath.Join(execDir, "state.json") <ide> <ide> {
1
PHP
PHP
unskip additional tests
d935b7aeb720b3485e874a40f29223599baca6ca
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testInputMultipleCheckboxes() { <ide> * @return void <ide> */ <ide> public function testSelectHiddenFieldOmission() { <del> $this->markTestIncomplete('Need to revisit once models work again.'); <ide> $result = $this->Form->select('Mode...
1
PHP
PHP
fix docblock issues
c7e89d43f00c2114b6ee7f4997f2571fde4a2097
<ide><path>src/I18n/RelativeTimeFormatter.php <ide> <?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, pl...
1
PHP
PHP
hide db credentials
e4fee14a5b1aca3c0af11549aa722358092853e7
<ide><path>cake/libs/debugger.php <ide> function exportVar($var, $recursion = 0) { <ide> case 'object': <ide> return get_class($var) . "\n" . $_this->__object($var); <ide> case 'array': <add> $var = array_merge($var, array_intersect_key(array( <add> 'password' => '*****', <add> 'login' => '*****'...
2
Ruby
Ruby
add `safe` argument to `git_head`/`git_short_head`
eefe5bb2959c77aa93a6b4a1884644fedbd8b730
<ide><path>Library/Homebrew/extend/git_repository.rb <ide> def git_origin=(origin) <ide> end <ide> <ide> # Gets the full commit hash of the HEAD commit. <del> sig { returns(T.nilable(String)) } <del> def git_head <add> sig { params(safe: T::Boolean).returns(T.nilable(String)) } <add> def git_head(safe: false) ...
2
PHP
PHP
change method order
b6c3743e606cd68eba55b4be8c1e1877630c9c51
<ide><path>src/Illuminate/Filesystem/Filesystem.php <ide> public function name($path) <ide> } <ide> <ide> /** <del> * Extract the file extension from a file path. <add> * Extract the trailing name component from a file path. <ide> * <ide> * @param string $path <ide> * @return string <i...
1
Javascript
Javascript
enable swc externalhelpers when pre-compile
c69d7817a1d964052a74d401cfdbdc09f7399e73
<ide><path>packages/next/taskfile-swc.js <ide> module.exports = function (task) { <ide> <ide> const isClient = serverOrClient === 'client' <ide> <add> /** @type {import('@swc/core').Options} */ <ide> const swcClientOptions = { <ide> module: { <ide> type: 'commonjs', <ide> ...
2
Python
Python
fix syntax error in nimbus.io storage driver
e654223e00901de00ff9892d1c8847534b46ef4d
<ide><path>libcloud/storage/drivers/nimbus.py <ide> def _calculate_signature(self, user_id, method, params, path, timestamp, <ide> <ide> class NimbusStorageDriver(StorageDriver): <ide> name = 'Nimbus' <del> website = 'http://www.nimbusproject.org/' <add> website = 'https://nimbus.io/' <ide> connectionCls...
1
Python
Python
remove duplicate size variable
582497a22d4a4b1cc1bb841769df71e8c7571738
<ide><path>libcloud/compute/drivers/bluebox.py <ide> def list_images(self, location=None): <ide> <ide> def create_node(self, **kwargs): <ide> headers = {'Content-Type': 'application/x-www-form-urlencoded'} <del> size = kwargs["size"] <ide> <ide> name = kwargs['name'] <ide> image = k...
1
Python
Python
fix checkpoint path in bert_benchmark.py
0faa2ff3c3f861ca291b2a97ff714a6fc1c85aac
<ide><path>official/benchmark/bert_benchmark.py <ide> from official.utils.misc import distribution_utils <ide> <ide> # pylint: disable=line-too-long <del>PRETRAINED_CHECKPOINT_PATH = 'placer/prod/home/tensorflow-performance-data/datasets/bert/keras_bert/bert_model.ckpt' <add>PRETRAINED_CHECKPOINT_PATH = 'gs://cloud-tp...
2
Javascript
Javascript
fix process.assert problem
f71e4d8b431f53dc68d729b8eae3c610663e06de
<ide><path>lib/module.js <ide> var NativeModule = require('native_module'); <ide> var Script = process.binding('evals').Script; <ide> var runInThisContext = Script.runInThisContext; <ide> var runInNewContext = Script.runInNewContext; <add>var assert = process.assert; <ide> <ide> function Module(id, parent) { <ide> t...
1
Python
Python
simplify precomputableaffine slightly
433dc3c9c98de097c6f11debf85bcad47b23f9c6
<ide><path>spacy/ml/_precomputable_affine.py <ide> def backward(dY_ids): <ide> model.inc_grad("b", dY.sum(axis=0)) <ide> dY = dY.reshape((dY.shape[0], nO * nP)) <ide> <del> Wopfi = model.ops.as_contig(W.transpose((1, 2, 0, 3))) <add> Wopfi = W.transpose((1, 2, 0, 3)) <ide> Wopfi =...
1