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
Python
Python
add test for np.tensordot on 0d arrays
3a75d8660066132cfc7f4a538ddabfbafcc29267
<ide><path>numpy/core/tests/test_numeric.py <ide> def test_zero_dimension(self): <ide> td = np.tensordot(a, b, (1, 0)) <ide> assert_array_equal(td, np.dot(a, b)) <ide> assert_array_equal(td, np.einsum('ij,jk', a, b)) <add> <add> def test_zero_dimensional(self): <add> # gh-12130...
1
Text
Text
add draft of "atom nightly releases" rfc
16ed259c4d7c7cfdf4f16e5c2991667a7d995b70
<ide><path>docs/rfcs/002-atom-nightly-releases.md <add># Atom Nightly Releases <add> <add>## Status <add> <add>Proposed <add> <add>## Summary <add> <add>This RFC proposes that Atom add a third official release channel which delivers new builds of Atom nightly from the `master` branch. Nightly releases will allow new i...
1
Text
Text
update chinese usage for spacy-pkuseg
aa9c9f3bf0acf88c596b006c157b5f56ed306aeb
<ide><path>website/docs/usage/models.md <ide> The Chinese language class supports three word segmentation options, `char`, <ide> > # Jieba <ide> > cfg = {"segmenter": "jieba"} <ide> > nlp = Chinese.from_config({"nlp": {"tokenizer": cfg}}) <del>> # PKUSeg with "default" model provided by pkuseg <add>> # PKUSeg with "mix...
1
Python
Python
update ut 6th
dee8f31c68e71dc13a6d69917804c684689b11e7
<ide><path>keras/utils/conv_utils.py <ide> def normalize_tuple(value, n, name, allow_zero=False): <ide> req_msg = '> 0' <ide> <ide> if len(unqualified_values) > 0: <del> error_msg += (f' including {unqualified_values}' <add> error_msg += (f' including {set(unqualified_values)}' <ide> f' t...
2
Ruby
Ruby
improve std_cmake_parameters comments
8eaa812711ef73597e2287222393b5630dc6a7d8
<ide><path>Library/Homebrew/formula.rb <ide> def brew <ide> end <ide> end <ide> <del> # we don't have a std_autotools variant because autotools is a lot less <del> # consistent and the standard parameters are more memorable <del> # really Homebrew should determine what works inside brew() then <del> # we cou...
1
Java
Java
add a missing space in exception message
469eb8146e3ac278b396a43c1b7cd8432e6f64e4
<ide><path>spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java <ide> public void validateAllowCredentials() { <ide> this.allowedOrigins != null && this.allowedOrigins.contains(ALL)) { <ide> <ide> throw new IllegalArgumentException( <del> "When allowCredentials is true, allowedOrigin...
1
Go
Go
remove unused graphdriver.isinitialized()
2bc07370ec2f6e3ed80d53484e300cee1e24d13c
<ide><path>daemon/graphdriver/driver.go <ide> func scanPriorDrivers(root string) map[string]bool { <ide> return driversMap <ide> } <ide> <del>// IsInitialized checks if the driver's home-directory exists and is non-empty. <del>func IsInitialized(driverHome string) bool { <del> _, err := os.Stat(driverHome) <del> if o...
1
Python
Python
apply lxml elementtree import pattern properly
3a20e92cab01a7c6634067e589e980fd99dfe87f
<ide><path>libcloud/compute/drivers/abiquo.py <ide> <ide> * Abiquo 3.1 (http://wiki.abiquo.com/display/ABI31/The+Abiquo+API) <ide> """ <del>import xml.etree.ElementTree as ET <add>try: <add> from lxml import etree as ET <add>except ImportError: <add> from xml.etree import ElementTree as ET <ide> <ide> from ...
1
Python
Python
fix various lint errors
ba4154144ca0efd38ac92ea41c4c6c3b6c231e8b
<ide><path>official/recommendation/ncf_common.py <ide> def get_distribution_strategy(params): <ide> "coordinator": tpu_cluster_resolver.cluster_spec() <ide> .as_dict()["coordinator"] <ide> } <del> os.environ['TF_CONFIG'] = json.dumps(tf_config_env) <add> os.environ["TF_CONFIG"] ...
7
Java
Java
use transactional connection during db population
49c9a2a9157861bad53ec47b67c8d821b0b4655a
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulatorUtils.java <ide> /* <del> * Copyright 2002-2011 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <id...
2
Go
Go
add a way to get a pid of a process
0fc52ca6dd628f2b9163f5d328d1d749c6708de4
<ide><path>internal/procfs/procfs_linux.go <add>package procfs <add> <add>/* <add>Copyright 2015 The Kubernetes 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 License. <add>You may obtain a copy of the License at <add> <ad...
3
Python
Python
add a reference paper for adagrad
52c1a7456fe8fc8ecb91ed7a5122d566aa2cb4af
<ide><path>keras/optimizers.py <ide> class Adagrad(Optimizer): <ide> # Arguments <ide> lr: float >= 0. Learning rate. <ide> epsilon: float >= 0. <add> <add> # References <add> - [Adaptive Subgradient Methods for Online Learning and Stochastic Optimization](http://www.jmlr.org/papers/vo...
1
Text
Text
remove d3-voronoi, add d3-delaunay
0fab3304d2ba381c3213336535fb5ecba2f15215
<ide><path>API.md <ide> D3 is a [collection of modules](https://github.com/d3) that are designed to work <ide> * [Axes](#axes-d3-axis) <ide> * [Brushes](#brushes-d3-brush) <ide> * [Chords](#chords-d3-chord) <del>* [XXXCollections](#collections-d3-collection) ([Objects](#objects), [Maps](#maps), [Sets](#sets), [Nests](#...
1
Javascript
Javascript
remove unneeded flag check in test-vm-memleak
2d2a812645db794698abec602a10366e41305b98
<ide><path>test/pummel/test-vm-memleak.js <ide> const vm = require('vm'); <ide> const start = Date.now(); <ide> let maxMem = 0; <ide> <del>const ok = process.execArgv.some(function(arg) { <del> return arg === '--max_old_space_size=32'; <del>}); <del>assert(ok, 'Run this test with --max_old_space_size=32.'); <del> <id...
1
Text
Text
update russian localization
3fec01a28d4809badfaee4c37a751781e0457f6d
<ide><path>curriculum/challenges/russian/05-apis-and-microservices/basic-node-and-express/chain-middleware-to-create-a-time-server.russian.md <ide> localeTitle: Промежуточное ПО для создания серве <ide> Посмотрите на следующий пример: <ide> <blockquote>app.get('/user', function(req, res, next) {<br> req.user = getThe...
1
PHP
PHP
fix failing auth strategy tests
238c190add4e6631cc7d154d86c5df92d55a6e08
<ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php <ide> public function testAuthenticateNoData() <ide> $request = new ServerRequest('posts/index'); <ide> <ide> $this->response->expects($this->never()) <del> ->method('header'); <add> ->method('withHeader'); <ide> <ide> ...
2
Python
Python
update the version to 2.9
d15302ffb6432fb2242985010d2f0dbf14af0cfb
<ide><path>official/pip_package/setup.py <ide> from setuptools import find_packages <ide> from setuptools import setup <ide> <del>version = '2.8.0' <del>tf_version = '2.8.0' # Major version. <add>version = '2.9.0' <add>tf_version = '2.9.0' # Major version. <ide> <ide> project_name = 'tf-models-official' <ide>
1
Python
Python
remove unused import
8c1c86baf0220164c355198708a1c613d27d4132
<ide><path>tests/keras/layers/test_core.py <del>import unittest <ide> import pytest <ide> import numpy as np <ide> from numpy.testing import assert_allclose
1
Javascript
Javascript
remove unused property
f8ce2f9f70962370720d83990014167e2e314ef6
<ide><path>packager/react-packager/src/Bundler/Bundle.js <ide> class Bundle extends BundleBase { <ide> this._ramBundle = { <ide> startupModules, <ide> lazyModules, <del> allModules: modules, <ide> }; <ide> } <ide>
1
Ruby
Ruby
add collectionproxy#clear documentation
3f46f73d004eb19616ad9863fefa4c21ef1d76c3
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> def <<(*records) <ide> end <ide> alias_method :push, :<< <ide> <add> # Removes every object from the collection. This does not destroy <add> # the objects, it sets their foreign keys to +NULL+. Returns +self+ <add> ...
1
Text
Text
fix typos in image preprocessing docs
ce51e199701e71cf68a7187075d2a0115f5baf22
<ide><path>docs/templates/preprocessing/image.md <ide> Generate batches of tensor image data with real-time data augmentation. The data <ide> - __shuffle__: boolean (defaut: False). <ide> - __save_to_dir__: None or str (default: None). This allows you to optimally specify a directory to which to...
1
Python
Python
add problem 32 solution
6e6920866662f314a9cbb125667c64e421046a4b
<ide><path>project_euler/problem_32/solution.py <add>""" <add>We shall say that an n-digit number is pandigital if it makes use of all the <add>digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through <add>5 pandigital. <add> <add>The product 7254 is unusual, as the identity, 39 × 186 = 7254, co...
1
PHP
PHP
update helpers.php
35a8805603b63e18949cab5bb1c260261ddc1435
<ide><path>src/Illuminate/Support/helpers.php <ide> function class_basename($class) <ide> <ide> if (! function_exists('class_uses_recursive')) { <ide> /** <del> * Returns all traits used by a class, its subclasses and trait of their traits. <add> * Returns all traits used by a class, its parent classes and...
1
PHP
PHP
add prefix to key
c6d4546ad866cd32d7bd9b2d8a2ed7a0a03ff346
<ide><path>src/Illuminate/Cache/RedisTaggedCache.php <ide> public function forever($key, $value) <ide> { <ide> $this->pushForeverKeys($namespace = $this->tags->getNamespace(), $key); <ide> <del> parent::forever($key, $value); <add> $this->store->forever($this->getPrefix().sha1($namespace).':'.$key, $value); <ide>...
1
Javascript
Javascript
add backend challenges to test
78c5b11d08c1e68b2ecf2a0d396c7b1bdf941f8f
<ide><path>curriculum/test/test-challenges.js <ide> const jQueryScript = fs.readFileSync( <ide> if (challengeType !== challengeTypes.html && <ide> challengeType !== challengeTypes.js && <ide> challengeType !== challengeTypes.bonfire && <del> challengeType !== challengeTypes.mo...
1
Ruby
Ruby
remove audacity from denylist.rb
69cf697e2ee94ec7e793d5022bbe9e9f1d09ab15
<ide><path>Library/Homebrew/cask/denylist.rb <ide> def self.reason(name) <ide> case name <ide> when /^adobe-(after|illustrator|indesign|photoshop|premiere)/ <ide> "Adobe casks were removed because they are too difficult to maintain." <del> when /^audacity$/ <del> "Audacity was removed be...
1
Javascript
Javascript
fix param name and improve example variable name
30252a05049c557cf3c05cdf4a8d36fa9e4ab395
<ide><path>src/ng/compile.js <ide> * example would not point to the clone, but rather to the original template that was cloned. In <ide> * this case, you can access the clone via the cloneAttachFn: <ide> * <pre> <del> * var templateHTML = angular.element('<p>{{total}}</p>'), <add> * var templateElement...
1
Text
Text
add hurb.com as airflow user
d7982577f4e57f3b9fcb1a655a320fd883c457e9
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Hostnfly](https://www.hostnfly.com/) [[@CyrilLeMat](https://github.com/CyrilLeMat) & [@pierrechopin](https://github.com/pierrechopin) & [@alexisrosuel](https://github.com/alexisrosuel)] <ide> 1. [HotelQuickly](https://github.com/HotelQuickly) ...
1
Python
Python
add test to show libcloud-910 failure
4e5ddfbf2ab6c3bbaf7b2092ce3094dff54d5b59
<ide><path>libcloud/test/test_logging_connection.py <ide> <ide> import sys <ide> from io import StringIO <add>import zlib <ide> import requests_mock <ide> <ide> import libcloud <ide> from libcloud.test import unittest <ide> from libcloud.common.base import Connection <add>from libcloud.utils.py3 import b <ide> from l...
1
Javascript
Javascript
add routenames to rendering assertion warning msg
f31afaea169d6645ff9c7786cdecf30b788dd5a1
<ide><path>packages/ember-routing/lib/system/route.js <ide> function parentTemplate(route, isRecursive) { <ide> <ide> if (!parent) { return; } <ide> <del> Ember.warn("The immediate parent route did not render into the main outlet and the default 'into' option may not be expected", !isRecursive); <add> Ember.warn(...
1
Javascript
Javascript
check queue size before starting animated batch
55ee8ce0c4157ce5d8a95eaa60b9945b435fc988
<ide><path>Libraries/Animated/NativeAnimatedHelper.js <ide> const API = { <ide> }, <ide> disableQueue: function (): void { <ide> invariant(NativeAnimatedModule, 'Native animated module is not available'); <del> <del> if (Platform.OS === 'android') { <del> NativeAnimatedModule.startOperationBatch(); <del...
1
Python
Python
fix default num_attention_heads in segformer doc
d55fcbcc50a27f4f5ad8a5c83786905e55212fa0
<ide><path>src/transformers/models/segformer/configuration_segformer.py <ide> class SegformerConfig(PretrainedConfig): <ide> Patch size before each encoder block. <ide> strides (`List[int]`, *optional*, defaults to [4, 2, 2, 2]): <ide> Stride before each encoder block. <del> num_a...
1
Java
Java
revise use of filterchain in mockmvc
ed9b2966c079b73094f293e5d0c35abd9d59db09
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/MockMvc.java <ide> import java.util.ArrayList; <ide> import java.util.List; <ide> <add>import javax.servlet.Filter; <ide> import javax.servlet.ServletContext; <ide> <ide> import org.springframework.beans.Mergeable; <ide> public final class ...
2
Ruby
Ruby
reduce footprint of fails_with_llvm compat code
456386c9b1cbe599bcc42c96099321ea13afc544
<ide><path>Library/Homebrew/compat/compatibility.rb <ide> def self.resolve_alias name <ide> # up in the DSL section. <ide> def fails_with_llvm msg=nil, data=nil <ide> opoo "Calling fails_with_llvm in the install method is deprecated" <del> puts "Use the fails_with DSL instead." <del> FailsWithLLVM.new(msg...
1
Javascript
Javascript
fix shared handles on windows
7ca4fa56d054926873e22f390f9ddc97e3182e3e
<ide><path>lib/net.js <ide> var createServerHandle = exports._createServerHandle = <ide> return err; <ide> } <ide> <del> if (process.platform === 'win32') { <del> // On Windows, we always listen to the socket before sending it to <del> // the worker (see uv_tcp_duplicate_socket). So we better do it here <...
1
Java
Java
add requestbody resolver and minor improvements
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7
<ide><path>spring-web/src/main/java/org/springframework/web/service/annotation/HttpExchange.java <ide> <ide> import org.springframework.core.annotation.AliasFor; <ide> import org.springframework.web.bind.annotation.Mapping; <add>import org.springframework.web.service.invoker.UrlArgumentResolver; <ide> <ide> <ide> /*...
10
Python
Python
increase docker compose test wait time
af76f64ccd4064e60953c6c5aa956102a553f597
<ide><path>docker_tests/test_docker_compose_quick_start.py <ide> def wait_for_container(container_id: str, timeout: int = 300): <ide> <ide> <ide> def wait_for_terminal_dag_state(dag_id, dag_run_id): <del> # Wait 30 seconds <del> for _ in range(30): <add> # Wait 80 seconds <add> for _ in range(80): <ide> ...
1
Javascript
Javascript
exclude graceful-fs from snapshot
54a813eda91803066fc1bd4e91ba591931588750
<ide><path>script/lib/generate-startup-snapshot.js <ide> module.exports = function (packagedAppPath) { <ide> relativePath == path.join('..', 'node_modules', 'debug', 'node.js') || <ide> relativePath == path.join('..', 'node_modules', 'git-utils', 'lib', 'git.js') || <ide> relativePath == path.jo...
1
Ruby
Ruby
remove return guard and use code convetions
f058e565c1f7ab36199887a56696edb01d85e2cf
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def update_attribute(name, value) <ide> name = name.to_s <ide> verify_readonly_attribute(name) <ide> send("#{name}=", value) <del> save(:validate => false) <add> save(validate: false) <ide> end <ide> <ide> # Updates the ...
1
Ruby
Ruby
fix errors with check suites without workflow runs
17ee0eefb8107067fa3d1793a008dce6a8b352a8
<ide><path>Library/Homebrew/utils/github.rb <ide> def get_workflow_run(user, repo, pr, workflow_id: "tests.yml", artifact_name: "b <ide> commit_node = result["repository"]["pullRequest"]["commits"]["nodes"].first <ide> check_suite = if commit_node.present? <ide> commit_node["commit"]["checkSuites"]["nodes...
1
Text
Text
add short description of asp.net frameworks
9c95c7cf564c89657cf76d7c27ee9adca44dc33f
<ide><path>guide/english/aspnet/index.md <ide> title: ASPNET <ide> ASP.Net is a web development platform provided by Microsoft. It is used for creating web-based applications and websites using HTML, CSS, and JavaScript as front end. <ide> Server-side programming languages like C# and VB .NET may be used to code the b...
1
Javascript
Javascript
invalidate concatenated module on dep change
bd7652823c5c682f43d0c8c02fb34be516ac6afb
<ide><path>lib/optimize/ConcatenatedModule.js <ide> class ConcatenatedModule extends Module { <ide> moduleToInfoMap <ide> ) <ide> ); <add> <add> // Must use full identifier in our cache here to ensure that the source <add> // is updated should our dependencies list change. <ide> innerDependencyTemplates.se...
1
Java
Java
add remaining httpexchange annotations
8a46e968751f566b3bc87623bc0a2957789d47ce
<ide><path>spring-web/src/main/java/org/springframework/web/service/annotation/DeleteExchange.java <add>/* <add> * Copyright 2002-2022 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 License. ...
7
Text
Text
remove white space for quick fix
bce3d5b372934c5d94ff18d52dc6b7375c2405fb
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md <ide> --- <ide> id: 587d7b88367417b2b2512b45 <del>title: Use Higher-Order Functions map, filter, or reduce to Solve a Complex Problem...
1
PHP
PHP
reject controller names that are not camel case
8994971b67bc712b5096730cd379371c63f80dc1
<ide><path>src/Controller/Controller.php <ide> public function __construct(Request $request = null, Response $response = null, <ide> } <ide> <ide> if ($this->name === null && isset($request->params['controller'])) { <del> $this->name = Inflector::camelize($request->params['controller']); <ad...
4
Javascript
Javascript
use regular expression literals
6bcf65d4a788a73b3c3f27d75796609f948f7885
<ide><path>lib/_http_outgoing.js <ide> const outHeadersKey = require('internal/http').outHeadersKey; <ide> const CRLF = common.CRLF; <ide> const debug = common.debug; <ide> <del>var RE_FIELDS = new RegExp('^(?:Connection|Transfer-Encoding|Content-Length|' + <del> 'Date|Expect|Trailer|Upgrade)...
12
Javascript
Javascript
revert recent flow changes
fe7890d569c5aa94c371bdb27c5db7bde4ec385a
<ide><path>packages/events/PluginModuleType.js <ide> import type { <ide> DispatchConfig, <ide> ReactSyntheticEvent, <ide> } from './ReactSyntheticEventType'; <del>import type {TopLevelType} from 'events/TopLevelEventTypes'; <add>import type {TopLevelType} from './TopLevelEventTypes'; <ide> <ide> export type EventT...
3
Ruby
Ruby
remove onos deprecation comment.
20f2b14c38dcfb1962d6cb41f4beabd7396e4eea
<ide><path>Library/Homebrew/formula.rb <ide> class Formula <ide> include Utils::Shebang <ide> include Utils::Shell <ide> include Context <del> include OnOS # TODO: 3.4.0: odeprecate OnOS usage in instance methods. <add> include OnOS <ide> extend Forwardable <ide> extend Cachable <ide> extend Predicable
1
Ruby
Ruby
fix failing test due to hard coded year
543f7892404381f828a9e29d221d0d361cdb5401
<ide><path>actionpack/test/template/date_helper_test.rb <ide> def test_date_select_with_zero_value_and_no_start_year <ide> <ide> def test_date_select_with_zero_value_and_no_end_year <ide> expected = %(<select name="date[first][year]">\n) <del> 2003.upto(2010) { |y| expected << %(<option value="#{y}">#{y}</op...
1
Python
Python
update gyp to b3cef02
1d65b99d5de3078a450101a9166b4168fbcba6fb
<ide><path>tools/gyp/PRESUBMIT.py <ide> def CheckChangeOnCommit(input_api, output_api): <ide> <ide> <ide> TRYBOTS = [ <del> 'gyp-win32', <del> 'gyp-win64', <del> 'gyp-linux', <del> 'gyp-mac', <add> 'linux_try', <add> 'mac_try', <add> 'win_try', <ide> ] <ide> <ide> <ide> def GetPreferredTryMaste...
13
Ruby
Ruby
modify comments and other text
40b0070bebf6ef34435ebd521c14c5a3770fca34
<ide><path>Library/Homebrew/livecheck/livecheck.rb <ide> def run_checks( <ide> version_info[:latest] if version_info.present? <ide> end <ide> <del> # Check current and latest resources (if "--resources" flag is given) <del> # Only check current and latest versions if we have resources t...
3
Javascript
Javascript
improve markdown link checker
77f9e0c814e1fafef2e84eabd24c135748217b26
<ide><path>tools/doc/checkLinks.js <ide> 'use strict'; <ide> <ide> const fs = require('fs'); <del>const { Worker, isMainThread, workerData: path } = require('worker_threads'); <add>const { extname, join, resolve } = require('path'); <add>const unified = require('unified'); <add>const { pathToFileURL } = require('url')...
1
Go
Go
fix error on successful login
35703d4f0c79e936bbff1804167ae9e8dde9b76c
<ide><path>registry/auth.go <ide> func Login(authConfig *AuthConfig, factory *utils.HTTPRequestFactory) (string, e <ide> return "", err <ide> } <ide> if resp.StatusCode == 200 { <del> status = "Login Succeeded" <add> return "Login Succeeded", nil <ide> } else if resp.StatusCode == 401 { <ide> ret...
1
Python
Python
replace _linear_ramp with linspace
5c55d2b3d2946c1d581dcea252d6cea0e1602217
<ide><path>numpy/lib/arraypad.py <ide> # Private utility functions. <ide> <ide> <del>def _linear_ramp(ndim, axis, start, stop, size, reverse=False): <del> """ <del> Create a linear ramp of `size` in `axis` with `ndim`. <del> <del> This algorithm behaves like a vectorized version of `numpy.linspace`. <del> ...
2
Javascript
Javascript
remove dead code
45a321d686231c85e8d6ec5b56b888fe6614afff
<ide><path>src/renderers/shared/reconciler/ReactCompositeComponent.js <ide> var ReactCompositeComponentMixin = { <ide> if (this._pendingElement != null) { <ide> ReactReconciler.receiveComponent( <ide> this, <del> this._pendingElement || this._currentElement, <add> this._pendingElement, <...
1
Python
Python
update affected tests
65970f33208ffb84a31ebc551e330fd39e6e25c0
<ide><path>libcloud/test/storage/test_azure_blobs.py <ide> def _foo_bar_container_foo_bar_object_range(self, method, url, body, headers): <ide> # test_download_object_range_success <ide> body = '0123456789123456789' <ide> <del> self.assertTrue('Range' in headers) <del> self.assertEqual(he...
1
Javascript
Javascript
tweak the bundle validation script
646781b0b4f95d90cf08b7799bbd196e16136f06
<ide><path>scripts/rollup/validate/index.js <ide> function lint({format, filePatterns}) { <ide> <ide> function checkFilesExist(bundle) { <ide> const {format, filePatterns} = bundle; <del> filePatterns.map(pattern => { <del> console.log(`Check if files exist in ${pattern}`); <add> filePatterns.forEach(pattern =>...
1
Javascript
Javascript
fix broken freebsd test
a804026c9b5b9f8d6316fd5e9fdb9f96f7e1c6b3
<ide><path>test/parallel/test-net-server-max-connections-close-makes-more-available.js <ide> var createConnection = function(index) { <ide> sent.push(msg); <ide> }); <ide> <add> connection.on('error', function(err) { <add> assert.equal(err.code, 'ECONNRESET'); <add> resolve(); <add> }); <add>...
1
Javascript
Javascript
add test with combining data-uri and coffee-loader
f65ab7e21d399176f7342d8ccfd9a99cf54424f1
<ide><path>test/cases/resolving/data-uri/index.js <ide> it("should import js module from base64 data-uri", function() { <ide> expect(mod.number).toBe(42); <ide> expect(mod.fn()).toBe("Hello world"); <ide> }); <add> <add>it("should require coffee module from base64 data-uri", function() { <add> const mod = require('co...
1
Text
Text
add arguments to test case titles.
7a51540127b5526135339a60fe51bc8e36b51568
<ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/heronian-triangles.english.md <ide> Implement a function based on Hero's formula that returns the first <code>n<sub> <ide> tests: <ide> - text: <code>heronianTriangle</code> should be a function. <ide> testString: assert(typeof heronia...
1
Java
Java
introduce importselector interface
9a271ce6c92695b9421aa603c9aa56e805c7920c
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java <ide> import java.util.Set; <ide> import java.util.Stack; <ide> <add>import org.springframework.beans.BeanUtils; <ide> import org.springframework.beans.factory.parsing.Location; <ide> import org.sp...
2
Javascript
Javascript
add @flow back to view.js
28fb6ca5a4f011f74735f820dbe2e2c6c3ecff90
<ide><path>Libraries/Components/View/View.js <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <ide> * @providesModule View <add> * @flow <ide> */ <ide> 'use strict'; <ide>
1
Python
Python
add additional assertions
260e676a4a505ec27ffb72c7fea1e17e446d0b23
<ide><path>libcloud/test/storage/test_local.py <ide> def test_objects_success(self): <ide> prefix = os.path.join("path", "to") <ide> objects = self.driver.list_container_objects(container=container, prefix=prefix) <ide> self.assertEqual(len(objects), 2) <add> self.assertEqual(objects[0].n...
1
Mixed
Javascript
add store arg in asynclocalstorage
6510a741c4ed04288d56486a1384b1fbecd08eaf
<ide><path>benchmark/async_hooks/async-resource-vs-destroy.js <ide> function buildDestroy(getServe) { <ide> function buildAsyncLocalStorage(getServe) { <ide> const asyncLocalStorage = new AsyncLocalStorage(); <ide> const server = createServer((req, res) => { <del> asyncLocalStorage.runSyncAndReturn(() => { <add>...
14
Java
Java
use action instead of func0<void>
40be93bf7afef40fa5eb079f5d27aaa6164f93de
<ide><path>src/main/java/rx/internal/operators/OperatorOnBackpressureBuffer.java <ide> import rx.Observable.Operator; <ide> import rx.Producer; <ide> import rx.Subscriber; <del>import rx.functions.Func0; <add>import rx.functions.Action0; <ide> <ide> public class OperatorOnBackpressureBuffer<T> implements Operator<T, T...
2
Text
Text
add changelog for
6caaec74bb4e3e476f43185ca030cdaad5b0e124
<ide><path>activerecord/CHANGELOG.md <ide> end <ide> ``` <ide> <add> Active Record logs will also include timing info for the duration of how long <add> the main thread had to wait to access the result. This timing is useful to know <add> whether or not it's worth to load the query asynchronously. <ad...
1
Python
Python
add anyprecisionadamw optimizer
84c9cc6d1599e1a64ee73e14ce33727ec865baef
<ide><path>src/transformers/trainer.py <ide> import time <ide> import warnings <ide> from collections.abc import Mapping <add>from distutils.util import strtobool <ide> from pathlib import Path <ide> from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union <ide> <ide> def get_optimizer_cls_a...
5
Text
Text
add list of events in remote api docs
fc7f0550965d06dd8dd31fb55c74fe02e9a436dc
<ide><path>docs/sources/reference/api/docker_remote_api_v1.17.md <ide> polling (using since). <ide> <ide> Docker containers will report the following events: <ide> <del> create, destroy, die, export, kill, oom, pause, restart, start, stop, unpause <add> create, destroy, die, exec_create, exec_start, export, kil...
1
Go
Go
move toolsscratchpath to /tmp
993f4072874ee5cdce93ec9b6525e1fa3ebda4c8
<ide><path>daemon/graphdriver/lcow/lcow.go <ide> const ( <ide> <ide> // toolsScratchPath is a location in a service utility VM that the tools can use as a <ide> // scratch space to avoid running out of memory. <del> // TODO @jhowardmsft. I really dislike this path! But needs a platform change or passing parameters t...
1
Text
Text
add some examples for getting current_user
839250e26267a5d7438338665c2d7533dda10786
<ide><path>guides/source/action_cable_overview.md <ide> specific connection later. Note that anything marked as an identifier will autom <ide> create a delegate by the same name on any channel instances created off the connection. <ide> <ide> This example relies on the fact that you will already have handled authentic...
1
Java
Java
avoid unnecessary sorting
2093e35f27cf742e6b447c87a8e2c37df5256a16
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/ReflectiveAspectJAdvisorFactory.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Lice...
6
Java
Java
fix memory leak in headlessjstaskcontext
3af104fbd3ba61160ddb1868283ff4e3debe533e
<ide><path>ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java <ide> <ide> package com.facebook.react.jstasks; <ide> <add>import java.lang.ref.WeakReference; <ide> import java.util.Set; <ide> import java.util.WeakHashMap; <ide> import java.util.concurrent.CopyOnWriteArraySet; <ide> public...
1
Python
Python
remove unused imports
983df1fe3f66ab53c254ee37aa29a82554029d3d
<ide><path>keras/layers/dense_attention.py <ide> from keras.engine import base_layer <ide> from keras.utils import control_flow_util <ide> import tensorflow.compat.v2 as tf <del>from tensorflow.python.platform import tf_logging <ide> from tensorflow.python.util.tf_export import keras_export <ide> <ide> <ide> class Ba...
1
Python
Python
fix typo in docstring
4ed53ae5a488b08cd9d65bc12f03859b56e79a88
<ide><path>keras/preprocessing/sequence.py <ide> def pad_sequences(sequences, maxlen=None, dtype='int32', padding='pre', truncating='pre', value=0.): <ide> """ <ide> Pad each sequence to the same length: <del> the length of the longuest sequence. <add> the length of the longest sequence. <ide...
1
Ruby
Ruby
fix orderedhash.select to return self instance
a94966ea094fcfd94cf09642d3a561af80c64602
<ide><path>activesupport/lib/active_support/ordered_hash.rb <ide> def encode_with(coder) <ide> coder.represent_seq '!omap', map { |k,v| { k => v } } <ide> end <ide> <add> def select(*args, &block) <add> dup.tap { |hash| hash.select!(*args, &block) } <add> end <add> <ide> def reject(*args, &blo...
2
PHP
PHP
fix possible notice errors
87677e4cdfa0fee3374cd645d6acb59b9c6f2c04
<ide><path>lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php <ide> public function paintFail($message, $test) { <ide> $trace = $this->_getStackTrace($message); <ide> $testName = get_class($test) . '(' . $test->getName() . ')'; <ide> <add> $actualMsg = $expectedMsg = null; <ide> $failure = $message->getComparison...
1
PHP
PHP
sortrecursive
dd5e57940222878298423c6ba72f45160aca00ab
<ide><path>src/Illuminate/Collections/Arr.php <ide> public static function sort($array, $callback = null) <ide> * Recursively sort an array by keys and values. <ide> * <ide> * @param array $array <add> * @param int $options <add> * @param bool $descending <ide> * @return array <ide> ...
1
Java
Java
add marbles for single.from operators
396f2f6d15a52e5c79d0ee7b4dcfb62f6a8029b7
<ide><path>src/main/java/io/reactivex/Single.java <ide> public static <T> Single<T> error(final Throwable exception) { <ide> * Allows you to defer execution of passed function until SingleObserver subscribes to the {@link Single}. <ide> * It makes passed function "lazy". <ide> * Result of the function in...
1
PHP
PHP
make code a little cleaner
edccb7c6cd8cb668b7303cdbcf73e0d0a6235d03
<ide><path>src/Illuminate/Queue/BeanstalkdQueue.php <ide> <?php namespace Illuminate\Queue; <ide> <del>use Pheanstalk\Job as Pheanstalk_Job; <del>use Pheanstalk\Pheanstalk as Pheanstalk; <add>use Pheanstalk\Job as PheanstalkJob; <add>use Pheanstalk\Pheanstalk; <ide> use Illuminate\Queue\Jobs\BeanstalkdJob; <ide> <ide...
2
Python
Python
add missing imports
fb514fcecddf73ecc20a4796abcc711699508182
<ide><path>numpy/distutils/conv_template.py <ide> import sys <ide> import re <ide> <add>from numpy.compat import contextlib_nullcontext <ide> from numpy.distutils.compat import get_exception <ide> <ide> # names for replacement that are already global. <ide><path>numpy/distutils/from_template.py <ide> import sys <ide>...
2
Javascript
Javascript
fix a test using an undefined context
f73264d685fda7e9b9d9d17bc7d39f9477ed225c
<ide><path>packages/ember-htmlbars/lib/helpers/each.js <ide> import { get } from "ember-metal/property_get"; <ide> import { forEach } from "ember-metal/enumerable_utils"; <add>import normalizeSelf from "ember-htmlbars/utils/normalize-self"; <ide> <ide> export default function eachHelper(params, hash, blocks) { <ide> ...
4
Python
Python
add backend info in saved models
e1a283e9d1aa327a25719003c99dbd282943bfe8
<ide><path>keras/engine/topology.py <ide> def _updated_config(self): <ide> model_config = { <ide> 'class_name': self.__class__.__name__, <ide> 'config': config, <del> 'keras_version': keras_version <add> 'keras_version': keras_version, <add> 'backend': K....
2
Java
Java
allow recursive use of @componentscan
d0c31ad84cffd7af718a45d679483a1c51f9e552
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/CircularComponentScanException.java <add>/* <add> * Copyright 2002-2011 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 ...
15
Ruby
Ruby
use rack namespace for routing args
c20c72e3d9321f8c00587aab479d962e80b02c35
<ide><path>actionpack/lib/action_controller/request.rb <ide> def parameters <ide> end <ide> <ide> def path_parameters=(parameters) #:nodoc: <del> @env["routing_args"] = parameters <add> @env["rack.routing_args"] = parameters <ide> @symbolized_path_parameters = @parameters = nil <ide> end <i...
1
Java
Java
use urldecoder for query params in webflux
645e3492dba42ec14553fca642344cafba571ed0
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java <ide> <ide> package org.springframework.http.server.reactive; <ide> <add>import java.io.UnsupportedEncodingException; <ide> import java.net.URI; <del>import java.nio.charset.StandardCharsets; <add>import java.n...
3
PHP
PHP
fix tests for changes in previous commit
71464917c3846672b6f6e15dfd6181981a06f336
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testAddBehaviorMissing() { <ide> public function testCallBehaviorMethod() { <ide> $table = TableRegistry::get('article'); <ide> $table->addBehavior('Sluggable'); <del> $this->assertEquals('some_value', $table->slugify('some value')); <add> $this->...
1
PHP
PHP
use memcached api instead of memcache
f316553bb7a692dde72a4a3ba08c6bfc6de00283
<ide><path>laravel/cache/drivers/memcached.php <del><?php namespace Laravel\Cache\Drivers; use Memcache; <add><?php namespace Laravel\Cache\Drivers; use Memcached; <ide> <ide> class Memcached extends Driver { <ide> <ide> /** <ide> * The Memcache instance. <ide> * <del> * @var Memcache <add> * @var Memcached <i...
2
Text
Text
clarify incomingmessage.destroy() description
c8930fb9bf647b88bba9b6e7be4f4ea119fb3d57
<ide><path>doc/api/http.md <ide> added: v0.3.0 <ide> * `error` {Error} <ide> <ide> Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` <del>is provided, an `'error'` event is emitted and `error` is passed as an argument <del>to any listeners on the event. <add>is provided, an `'error'` even...
1
Go
Go
fix root detection
d263aa6ca916ba9141f341447a2387e7a6316717
<ide><path>utils.go <ide> func RootIsShared() bool { <ide> if data, err := ioutil.ReadFile("/proc/self/mountinfo"); err == nil { <ide> for _, line := range strings.Split(string(data), "\n") { <ide> cols := strings.Split(line, " ") <del> if len(cols) >= 6 && cols[3] == "/" && cols[4] == "/" { <add> if len(cols...
1
Text
Text
revise collaborator guide on reverting
cf43846e25c67c9f36152d0643faf181df247527
<ide><path>COLLABORATOR_GUIDE.md <ide> after-the-fact. <ide> <ide> ##### Reverting commits <ide> <del>Commits are reverted with `git revert <HASH>`, or `git revert <FROM>..<TO>` for <del>multiple commits. Commit metadata and the reason for the revert should be <del>appended. Commit message rules about line length and...
1
Javascript
Javascript
add prettier for examples directory
9c4eefcdbf4058b65c8b88fe98387166acad127b
<ide><path>examples/active-class-name/components/Link.js <ide> const ActiveLink = ({ router, children, ...props }) => { <ide> <ide> let className = child.props.className || null <ide> if (router.pathname === props.href && props.activeClassName) { <del> className = `${className !== null ? className : ''} ${props...
300
Javascript
Javascript
fix typos and redundant words
ba8c987391a56c68cf1b0d8decd74e19092069c7
<ide><path>src/renderers/dom/client/ReactReconcileTransaction.js <ide> var EVENT_SUPPRESSION = { <ide> <ide> /** <ide> * Provides a queue for collecting `componentDidMount` and <del> * `componentDidUpdate` callbacks during the the transaction. <add> * `componentDidUpdate` callbacks during the transaction. <ide> */ <...
4
Ruby
Ruby
call tap not formula
478e4f112c5482a0424c0a27c6d9d10fea3d2c07
<ide><path>Library/Homebrew/formulary.rb <ide> def get_formula(spec, alias_path: nil) <ide> def load_file <ide> super <ide> rescue MethodDeprecatedError => e <del> e.issues_url = formula.tap.issues_url || formula.tap.to_s <add> e.issues_url = tap.issues_url || tap.to_s <ide> raise <ide> ...
1
PHP
PHP
use null coalescing operator where possible
f4ea4574c83eb80da1aa4f40b6117fd1488afef7
<ide><path>src/Auth/BaseAuthenticate.php <ide> protected function _query(string $username): Query <ide> $finder = key($finder); <ide> } <ide> <del> if (!isset($options['username'])) { <del> $options['username'] = $username; <del> } <add> $options['username'] = $optio...
46
Text
Text
add v3.14.0-beta.4 to changelog
72553a0a51b24b392d5619d445cc3f1c3bab1448
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.14.0-beta.4 (October 7, 2019) <add> <add>- [#18462](https://github.com/emberjs/ember.js/pull/18462) [BUGFIX] Prevents observer re-entry <add> <ide> ### v3.14.0-beta.3 (October 1, 2019) <ide> <ide> - [#18429](https://github.com/emberjs/ember.js/pull/184...
1
Ruby
Ruby
remove unnecessary mocking in actioncable tests
78288f75e127182751938353ef3005a29d9c3bc1
<ide><path>actioncable/test/channel/stream_test.rb <ide> class StreamTest < ActionCable::TestCase <ide> test "streaming start and stop" do <ide> run_in_eventmachine do <ide> connection = TestConnection.new <del> connection.expects(:pubsub).returns mock().tap { |m| m.expects(:subscribe).with("te...
5
Mixed
Ruby
reduce memory usage when loading types in pg
445c12f7dfa345b86e05dc610d665f9afde14c26
<ide><path>activerecord/CHANGELOG.md <add>* Reduce memory usage from loading types on pg. <add> <add> Fixes #19578. <add> <add> *Sean Griffin* <add> <ide> * Add `config.active_record.warn_on_records_fetched_greater_than` option <ide> <ide> When set to an integer, a warning will be logged whenever a resul...
4
Java
Java
fix checkstyle violation
2899652d8ea1b68b92f94ba1f13e028f76c251cb
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java <ide> private static class DefaultResponseSpec implements ResponseSpec { <ide> this.statusHandlers.add(DEFAULT_STATUS_HANDLER); <ide> } <ide> <del> <add> <ide> @Override <ide> public ResponseSpec o...
1
Python
Python
fix trainer and args to mention adamw, not adam.
538245b0c2199a7546bb92eed566965609acb5bb
<ide><path>src/transformers/training_args.py <ide> class TrainingArguments: <ide> left unset, the whole predictions are accumulated on GPU/TPU before being moved to the CPU (faster but <ide> requires more memory). <ide> learning_rate (:obj:`float`, `optional`, defaults to 5e-5): <del> ...
1
PHP
PHP
add docs for return false case
f843df1831342167c371afe72e63509f0a8bf97b
<ide><path>src/ORM/Behavior/CounterCacheBehavior.php <ide> * <ide> * Counter cache using lambda function returning the count <ide> * This is equivalent to example #2 <add> * <ide> * ``` <ide> * [ <ide> * 'Users' => [ <ide> * ] <ide> * ``` <ide> * <add> * When using a lambda function you can return `false` ...
1