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
add collectionproxy#delete_all documentation
f9a718eb5e3fe969c3a01cf084c6686cc2ce7aff
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> # <ide> # person.pets.replace(["doo", "ggie", "gaga"]) <ide> # # => ActiveRecord::AssociationTypeMismatch: Pet expected, got String <add> <add> <add> ## <add> # :...
1
PHP
PHP
implement url filters in router
2d5de312a987581d3566049f91e0d538078138df
<ide><path>lib/Cake/Routing/Router.php <ide> class Router { <ide> protected static $_initialState = array(); <ide> <ide> /** <del> * The stack of URL processors to apply against routing urls before passing the <add> * The stack of URL filters to apply against routing urls before passing the <ide> * parameters to the...
2
Python
Python
fix hdf5matrix.__getitem__ for validation_split
66c4fdb8937abe725018de7156c5f66f2ec335ed
<ide><path>keras/utils/io_utils.py <ide> def __getitem__(self, key): <ide> if start is None: <ide> start = 0 <ide> if stop is None: <del> stop = self.data.shape[0] <add> stop = self.shape[0] <ide> if stop + self.start <= self.end: <ide> ...
2
Javascript
Javascript
use a default parameter
5a7b4562e19adcc606d3fa75d1d886be40f41dbd
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> return 'GitRepositoryAsync.destroyed' <ide> } <ide> <del> constructor (_path, options) { <add> constructor (_path, options = {}) { <ide> this.repo = null <ide> this.emitter = new Emitter() <ide> this.subscr...
1
Python
Python
use 5e-5 for bigbird pt/flax equivalence tests
f47afefb210a120545a5e9745292aaf6c316d246
<ide><path>tests/models/big_bird/test_modeling_big_bird.py <ide> def test_for_change_to_full_attn(self): <ide> self.model_tester.create_and_check_for_change_to_full_attn(*config_and_inputs) <ide> <ide> # overwrite from common in order to skip the check on `attentions` <del> def check_outputs(self, fx_ou...
4
Ruby
Ruby
remove unused variable 'regex'
0732ea7136da43cf3d84d8ce20dd7105a16e78b0
<ide><path>actionview/lib/action_view/helpers/text_helper.rb <ide> def excerpt(text, phrase, options = {}) <ide> unless separator.empty? <ide> text.split(separator).each do |value| <ide> if value.match(regex) <del> regex = phrase = value <add> phrase = value <ide>...
1
Javascript
Javascript
fix a tiny typo in error message
dc9693568142f22147c7cefad4e62a6ae68ee504
<ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js <ide> class ResolutionRequest { <ide> toModule, <ide> `Invalid directory ${potentialDirPath} <ide> <del>This might related to https://github.com/facebook/react-native/issues/4968 <add>This might be related to https...
1
Ruby
Ruby
keep cache for strings in notifications/fanout
211222cc182218c06e9a1b094f48d9e96e905865
<ide><path>activesupport/lib/active_support/notifications/fanout.rb <ide> def subscribe(pattern = nil, block = Proc.new) <ide> synchronize do <ide> if String === pattern <ide> @string_subscribers[pattern] << subscriber <add> @listeners_for.delete(pattern) <ide> else <i...
1
Python
Python
fix camembert and xlm-r tokenizer
e37ca8e11a3aa91e27ed659e6d4e01b208aa83ca
<ide><path>transformers/tokenization_camembert.py <ide> <ide> import sentencepiece as spm <ide> from transformers.tokenization_utils import PreTrainedTokenizer <add>from .tokenization_xlnet import SPIECE_UNDERLINE <ide> <ide> logger = logging.getLogger(__name__) <ide> <ide> def _convert_id_to_token(self, index): <id...
2
PHP
PHP
remove useless brackets
389bc84afdff2d51fc9f47dfca897f135e1f8159
<ide><path>src/Illuminate/Database/Eloquent/Collection.php <ide> public function max($key) <ide> { <ide> return $this->reduce(function($result, $item) use ($key) <ide> { <del> return (is_null($result) || $item->{$key} > $result) ? $item->{$key} : $result; <add> return is_null($result) || $item->{$key} > $resul...
8
Python
Python
allow optional max_digits on decimalfield
48f3db36d61d828e44ec36905386b59b3b049cd3
<ide><path>rest_framework/fields.py <ide> def quantize(self, value): <ide> return value <ide> <ide> context = decimal.getcontext().copy() <del> context.prec = self.max_digits <add> if self.max_digits is not None: <add> context.prec = self.max_digits <ide> return val...
2
Javascript
Javascript
fix links at build time instead of run time
aacfe246634d71c2e2ba181225d41577392a6ab5
<ide><path>Gruntfile.js <ide> const path = require('path'); <ide> const semver = require('semver'); <ide> const liveEditor = require('@gfxfundamentals/live-editor'); <ide> const liveEditorPath = path.dirname(require.resolve('@gfxfundamentals/live-editor')); <add>const jsdom = require('jsdom'); <add>const {JSDOM} = jsdo...
2
Text
Text
add stargazers docs for apm
ab947082dc388ff7eabd21ebf4d451be44d66394
<ide><path>docs/apm-rest-api.md <ide> Unstar a package; requires authentication. <ide> <ide> Returns 204 No Content. <ide> <add>#### GET /api/packages/:name/stargazers <add> <add>List users that have starred a package. <add> <add>Returns a list of user objects: <add> <add>``` <add>[ <add> {"login":"aperson"}, <add> ...
1
Go
Go
remove some unused structs and fields
0a352e1a906fbf7592aa95d6327776236d13392a
<ide><path>api/client/events.go <ide> func printOutput(event eventtypes.Message, output io.Writer) { <ide> type eventHandler struct { <ide> handlers map[string]func(eventtypes.Message) <ide> mu sync.Mutex <del> closed bool <ide> } <ide> <ide> func (w *eventHandler) Handle(action string, h func(eventtypes.Mes...
3
PHP
PHP
use bootstrappers instead of events
1a0930650601cbcbbaf4b4ede904bd147e0f461f
<ide><path>src/Illuminate/Console/Application.php <ide> class Application extends SymfonyApplication implements ApplicationContract <ide> */ <ide> protected $lastOutput; <ide> <add> /** <add> * The console application bootstrappers. <add> * <add> * @var array <add> */ <add> protected sta...
3
Javascript
Javascript
add test for tree layout
3c0f29943c5f6373c34c1ccd51a2fb230c32bb51
<ide><path>d3.layout.js <ide> d3.layout.tree = function() { <ide> function firstWalk(node, previousSibling) { <ide> var children = node.children, <ide> layout = node._tree; <del> if (children && children.length) { <del> var n = children.length, <add> if (children && (n = children.le...
4
PHP
PHP
correct doc block
359a420a96f31d0fb63efa2a53f6ba014198af07
<ide><path>src/View/StringTemplate.php <ide> public function formatAttributes($options, $exclude = null) { <ide> * Works with minimized attributes that have the same value as their name such as 'disabled' and 'checked' <ide> * <ide> * @param string $key The name of the attribute to create <del> * @param string $valu...
1
Python
Python
add regression test for #736
ec7739b76e2f37e1221888a5fa49828694039544
<ide><path>spacy/tests/regression/test_issue736.py <add># coding: utf-8 <add>"""Test that times like "7am" are tokenized correctly and that numbers are converted to string.""" <add> <add> <add>from __future__ import unicode_literals <add> <add>import pytest <add> <add> <add>@pytest.mark.xfail <add>@pytest.mark.parametr...
1
Text
Text
fix text in portuguese
dee5216eb31fd568fd011fa1ddfe007216b33a1a
<ide><path>curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/add-a-text-alternative-to-images-for-visually-impaired-accessibility.portuguese.md <ide> localeTitle: Adicionar um texto alternativo a imagens para acessibilidade a defi <ide> --- <ide> <ide> ## Descrição <del><section id="descr...
1
Python
Python
add unit tests for mlengine_operator_utils
3cc5756d04c7d3fd14b71e9ec6f5f906d5a24212
<ide><path>tests/providers/google/cloud/utils/test_mlengine_operator_utils.py <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF ...
2
Ruby
Ruby
fix a broken test
85629c83af7d0d67d483174d836dc6daf1196e7b
<ide><path>railties/lib/rails/generators/generated_attribute.rb <ide> def parse(column_definition) <ide> # if user provided "name:index" instead of "name:string:index" <ide> # type should be set blank so GeneratedAttribute's constructor <ide> # could set it to :string <del> has_in...
1
Text
Text
fix url of trpc's `next-minimal-starter`
d2eb7861c3f61d45d9555132deed355deb9caf41
<ide><path>examples/with-trpc/README.md <ide> <ide> ## Next.js + tRPC minimal implementation <ide> <del>- https://github.com/trpc/examples-next-minimal-starter <add>- https://github.com/trpc/trpc/tree/main/examples/next-minimal-starter
1
PHP
PHP
remove unused methods
c4d4033c1f310bb290c66cdf10ecd7b087c1ad83
<ide><path>src/Http/Cookie/Cookie.php <ide> public function decrypt($key = null) <ide> return $this; <ide> } <ide> <del> /** <del> * Expands a serialized cookie value <del> * <del> * @return $this <del> */ <del> public function expand() <del> { <del> if (!$this->isExpanded) ...
1
Javascript
Javascript
pass thenablestate to replaysuspendedunitofwork
5eb78d0a04dee8fa14189a31c19831dd390225cb
<ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js <ide> function renderRootConcurrent(root: FiberRoot, lanes: Lanes) { <ide> break; <ide> } <ide> case SuspendedOnData: { <del> const didResolve = <del> workInProgressSuspendedThenableState !== null ...
2
Python
Python
prepare pypi release
b2e3780e8cf864508d29df554d1cd26aa44824cd
<ide><path>keras/__init__.py <ide> from . import optimizers <ide> from . import regularizers <ide> <del>__version__ = '1.0.8' <add>__version__ = '1.1.0' <ide><path>setup.py <ide> <ide> <ide> setup(name='Keras', <del> version='1.0.8', <add> version='1.1.0', <ide> description='Deep Learning for Python'...
2
PHP
PHP
use canresetpassword contract
691cac5c8e3f542ac0c509193fd41d6480d695df
<ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php <ide> public function via($notifiable) <ide> /** <ide> * Build the mail representation of the notification. <ide> * <del> * @param mixed $notifiable <add> * @param \Illuminate\Contracts\Auth\CanResetPassword $notifiable <ide> ...
1
Javascript
Javascript
remove deepstrictequal() third argument
eafb30ccbf12a4ded74a30d7634e84fbe4a5add3
<ide><path>test/parallel/test-net-socket-local-address.js <ide> const server = net.createServer((socket) => { <ide> }); <ide> <ide> server.on('close', common.mustCall(() => { <del> assert.deepStrictEqual(clientLocalPorts, serverRemotePorts, <del> 'client and server should agree on the ports us...
1
Javascript
Javascript
add flow types for reacttestrenderer
c203ec00e539015894649d6a0f494b5de99ab71d
<ide><path>Libraries/Utilities/ReactNativeTestTools.js <ide> const React = require('react'); <ide> <ide> const ReactTestRenderer = require('react-test-renderer'); <ide> const ShallowRenderer = require('react-test-renderer/shallow'); <add>// $FlowFixMe - error revealed when flow-typing ReactTestRenderer <ide> const sha...
2
Text
Text
clarify behavior of napi_extended_error_info
f27f8d256e1370cb464764f3369b74200c798839
<ide><path>doc/api/n-api.md <ide> napi_value create_addon(napi_env env); <ide> if (status != napi_ok) { \ <ide> const napi_extended_error_info* error_info = NULL; \ <ide> napi_get_last_error_info((env), &error_info); \ <add> const char* er...
1
Javascript
Javascript
detect main module more reliable
7109be58b3083e21d038d69b6d10497712885947
<ide><path>lib/HotModuleReplacement.runtime.js <ide> module.exports = function() { <ide> var hotApplyOnUpdate = true; <ide> var hotCurrentHash = $hash$; // eslint-disable-line no-unused-vars <ide> var hotCurrentModuleData = {}; <add> var hotMainModule = true; // eslint-disable-line no-unused-vars <ide> var hotCurre...
12
Javascript
Javascript
fix amd require call with three arguments
16e7383202be89ad030a9cedcc52ea3e8df2ac2f
<ide><path>lib/dependencies/AMDRequireDependenciesBlock.js <ide> var AsyncDependenciesBlock = require("../AsyncDependenciesBlock"); <ide> var AMDRequireDependency = require("./AMDRequireDependency"); <ide> <del>function AMDRequireDependenciesBlock(expr, arrayRange, functionRange, module, loc) { <add>function AMDRequir...
9
Python
Python
refactor the code to make it easier to follow
22caded175986a91cab817b5410fb6d0f1c811c0
<ide><path>libcloud/common/openstack.py <ide> def morph_action_hook(self, action): <ide> def request(self, **kwargs): <ide> return super(OpenStackBaseConnection, self).request(**kwargs) <ide> <add> def _set_up_connection_info(self, url): <add> result = self._tuple_from_url(url) <add> (self...
1
Python
Python
fix doctests and builds in various files
9135a1f41192ebe1d835282a1465dc284359d95c
<ide><path>arithmetic_analysis/in_static_equilibrium.py <ide> def polar_force( <ide> True <ide> >>> math.isclose(force[1], 7.0710678118654755) <ide> True <del> >>> polar_force(10, 3.14, radian_mode=True) <del> [-9.999987317275396, 0.01592652916486828] <add> >>> force = polar_force(10, 3.14, radian_...
3
Text
Text
remove extra default export from readme
7310e6bca690ba427fc988ff3302aa1d0bc7315b
<ide><path>packages/next/README.md <ide> export default function MyLink() { <ide> </a> <ide> ) <ide> } <del> <del>export default MyLink <ide> ``` <ide> <ide> You can also add it to the `componentDidMount()` lifecycle method when using `React.Component`:
1
PHP
PHP
fix sql errors in treebehavior
965f0e87c5ddd29c020f77879015cac9a96f2410
<ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php <ide> public function fields(Model $model, $alias = null, $fields = array(), $quote = <ide> $fieldAlias = $this->name($alias . '__' . $fields[$i]); <ide> } else { <ide> $build = explode('.', $fields[$i]); <del> $this->_fieldMappings[$buil...
2
Go
Go
fix imagecache to address right store
ba40132366e196c740cdf2d2f1cbee7ead955d2f
<ide><path>builder/builder.go <ide> type Result struct { <ide> // ImageCacheBuilder represents a generator for stateful image cache. <ide> type ImageCacheBuilder interface { <ide> // MakeImageCache creates a stateful image cache. <del> MakeImageCache(cacheFrom []string) ImageCache <add> MakeImageCache(cacheFrom []stri...
6
Text
Text
fix document typos
3dc3921c76a2d21c652ec867e42e9bbe095d91da
<ide><path>docs/api/v1.23.md <ide> List containers <ide> "ImageID": "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82", <ide> "Command": "echo 1", <ide> "Created": 1367854155, <del> "State": "Exited", <add> "State": "exit...
2
Ruby
Ruby
call to_s on value passed to table_name=
db48ee38471b95cca883217f671d271b6119afc8
<ide><path>activerecord/lib/active_record/model_schema.rb <ide> def table_name <ide> # the documentation for ActiveRecord::Base#table_name. <ide> def table_name=(value) <ide> @original_table_name = @table_name if defined?(@table_name) <del> @table_name = value <add> @table_nam...
2
Go
Go
fix the inconsistent function name for client
16233eb055ef03c760f76c276b4491ee3246c0b4
<ide><path>client/login.go <ide> import ( <ide> ) <ide> <ide> // RegistryLogin authenticates the docker server with a given docker registry. <del>// It returns UnauthorizerError when the authentication fails. <add>// It returns unauthorizedError when the authentication fails. <ide> func (cli *Client) RegistryLogin(ctx...
2
Go
Go
add more tests for labels on containers
5de1298f41ad0ab0b13c839854d6b2a5354294b8
<ide><path>integration-cli/docker_cli_ps_test.go <ide> func TestPsListContainersFilterName(t *testing.T) { <ide> <ide> func TestPsListContainersFilterLabel(t *testing.T) { <ide> // start container <del> runCmd := exec.Command(dockerBinary, "run", "-d", "-l", "match=me", "busybox") <add> runCmd := exec.Command(dockerB...
1
Python
Python
cache the value of gethostname
46c17e99092441c4ba69f9bcd4ce5a0e23754e06
<ide><path>celery/app/trace.py <ide> <ide> import logging <ide> import os <del>import socket <ide> import sys <ide> <ide> from collections import namedtuple <ide> from celery.app.task import Task as BaseTask, Context <ide> from celery.exceptions import Ignore, Reject, Retry, InvalidTaskError <ide> from celery.five im...
7
Python
Python
handle zip & interactive cases in module helpers
a3b30b7e3b026e821716be63d586e078eaa6ee7f
<ide><path>flask/helpers.py <ide> def get_root_path(import_name): <ide> Not to be confused with the package path returned by :func:`find_package`. <ide> """ <ide> loader = pkgutil.get_loader(import_name) <del> if loader is None: <add> if loader is None or import_name == '__main__': <add> # impo...
1
Javascript
Javascript
fix error handling on parse errors
db5a8a33d391520231884da959be31a74f71f441
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> <ide> this.error = error; <ide> this.errors.push(error); <del> this._source = new RawSource( <del> "throw new Error(" + JSON.stringify(this.error.message) + ");" <del> ); <del> this._ast = null; <ide> } <ide> <ide> applyNoParseR...
1
PHP
PHP
update email.blade.php
852ff285db8c62e64e61e7c8b88d4671cffa0736
<ide><path>src/Illuminate/Notifications/resources/views/email.blade.php <ide> @component('mail::subcopy') <ide> @lang( <ide> "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n". <del> 'into your web browser: [:actionURL](:actionURL)', <add> 'into your web browser: ',...
1
Javascript
Javascript
add missing null checks to offscreeninstance code
c1f5884ffeceb8be2277e10c81aeaffca2dfe9d8
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js <ide> import type {Wakeable} from 'shared/ReactTypes'; <ide> import type { <ide> OffscreenState, <ide> OffscreenInstance, <add> OffscreenQueue, <ide> } from './ReactFiberOffscreenComponent'; <ide> import type {HookFlags} from './ReactHookEffectTa...
4
Ruby
Ruby
use safe_system when invoking install_name_tool
759b6ce1a96e4623cf15ef76e8f98374bae5975b
<ide><path>Library/Homebrew/keg_fix_install_names.rb <ide> def each_unique_file_matching string <ide> end <ide> <ide> def install_name_tool(*args) <del> system(MacOS.locate("install_name_tool"), *args) <add> safe_system(MacOS.locate("install_name_tool"), *args) <ide> end <ide> <ide> # If file is a dylib...
1
Text
Text
improve contributing guide
c826048ad0d66f5de647ebdc287cf5c8a02a2e2a
<ide><path>contributing.md <ide> Our Commitment to Open Source can be found [here](https://zeit.co/blog/oss) <ide> <ide> 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device. ...
1
Javascript
Javascript
remove mathjax (#186)
9333729dcae303452ddb2761dbea93cb02242983
<ide><path>packages/learn/src/head/index.js <ide> import favicons from './favicons'; <ide> import meta from './meta'; <ide> import styleSheets from './styleSheets'; <del>import mathjax from './mathjax'; <add>// import mathjax from './mathjax'; <ide> <ide> const metaAndStyleSheets = meta <del> .concat(favicons, styleS...
2
Python
Python
use assertisinstance in tests
09f865276554f35060ff939722ec4cefd578edf6
<ide><path>tests/admin_views/tests.py <ide> def test_non_form_errors_is_errorlist(self): <ide> } <ide> response = self.client.post('/test_admin/admin/admin_views/person/', data) <ide> non_form_errors = response.context['cl'].formset.non_form_errors() <del> self.assertTrue(isinstance(non_f...
31
Javascript
Javascript
provide isolated scope if none is passed
2840aec8f18cd082afcd78f4d3970309b7d3c874
<ide><path>src/ngMock/angular-mocks.js <ide> angular.mock.$ControllerDecorator = ['$delegate', function($delegate) { <ide> * A service that can be used to create instances of component controllers. <ide> * <div class="alert alert-info"> <ide> * Be aware that the controller will be instantiated and attached to the sc...
2
Javascript
Javascript
fix wrong task name on watch for next/export files
a7d3be61ed2cf522aa1a746e5165822022b0205c
<ide><path>packages/next/taskfile.js <ide> export default async function (task) { <ide> await task.watch('pages/**/*.+(js|ts|tsx)', 'pages') <ide> await task.watch('server/**/*.+(js|ts|tsx)', 'server') <ide> await task.watch('build/**/*.+(js|ts|tsx)', 'nextbuild') <del> await task.watch('export/**/*.+(js|ts|tsx)...
1
Go
Go
skip empty networks in plugin install
04e35a01fcc7292272d688599ed23d829b85f46b
<ide><path>plugin/backend_linux.go <ide> func computePrivileges(pd distribution.PullData) (types.PluginPrivileges, error) <ide> } <ide> <ide> var privileges types.PluginPrivileges <del> if c.Network.Type != "null" && c.Network.Type != "bridge" { <add> if c.Network.Type != "null" && c.Network.Type != "bridge" && c.Ne...
1
Javascript
Javascript
use common platform helpers everywhere
dee0e3a3336473973eda3a8e0e334e96f587572a
<ide><path>test/common.js <ide> exports.isLinuxPPCBE = (process.platform === 'linux') && <ide> (os.endianness() === 'BE'); <ide> exports.isSunOS = process.platform === 'sunos'; <ide> exports.isFreeBSD = process.platform === 'freebsd'; <add>exports.isLinux = process.platform === 'linux'; <add>expo...
26
Java
Java
use string#lastindexof(int) where possible
9fbf5dc945688f879c6b3d112b631f54447eae03
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java <ide> boolean hasAnyExternallyManagedInitMethod(String initMethod) { <ide> } <ide> if (this.externallyManagedInitMethods != null) { <ide> for (String candidate : this.externallyManagedInitMethods) { <del> ...
3
Javascript
Javascript
add (typed) array length to the default output
489e77c119dbef43b035338bc7eb3d4a2d1ae0c8
<ide><path>lib/internal/util/inspect.js <ide> const setSizeGetter = uncurryThis( <ide> ObjectGetOwnPropertyDescriptor(SetPrototype, 'size').get); <ide> const mapSizeGetter = uncurryThis( <ide> ObjectGetOwnPropertyDescriptor(MapPrototype, 'size').get); <add>const typedArraySizeGetter = uncurryThis( <add> ObjectGetO...
6
Python
Python
set version to v3.4.2
3d0e895363921d4acb7f89a5b708472681e6fc1b
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.4.1" <add>__version__ = "3.4.2" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"...
1
Python
Python
move xml utility functions into libcloud.utils
c7428dbbfc7750ddabfcd93f508e0c7f1b23b0ba
<ide><path>libcloud/utils.py <ide> def dict2str(data): <ide> result += '%s\n' % str(k) <ide> <ide> return result <add> <add>def fixxpath(xpath, namespace): <add> # ElementTree wants namespaces in its xpaths, so here we add them. <add> return '/'.join(['{%s}%s' % (namespace, e) for e in xpath.spli...
1
Ruby
Ruby
increase benchmark time to 20 seconds
c6bbc10faea55df72000a82a2f6767278a76f121
<ide><path>activerecord/examples/performance.rb <ide> require "active_record" <ide> require 'benchmark/ips' <ide> <add>TIME = (ENV['BENCHMARK_TIME'] || 20).to_i <add>RECORDS = (ENV['BENCHMARK_RECORDS'] || TIME*1000).to_i <add> <ide> conn = { :adapter => 'sqlite3', :database => ':memory:' } <ide> <ide> ActiveRecord...
1
Javascript
Javascript
fix tabs vs spaces in initial workaround commit
d9660e1bf4f378e0fcb77ba266f27cdec7cda022
<ide><path>src/traversing.js <ide> jQuery.each({ <ide> // https://github.com/jquery/jquery/commit/52a0238 <ide> // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. <ide> // http://code.google.com/p/v8/issues/detail?id=1050 <del> ...
1
Javascript
Javascript
simplify async update testing
1fba44f722e9a1540bc6810e4c16e2cade2337fb
<ide><path>api-server/server/utils/in-memory-cache.test.js <ide> describe('InMemoryCache', () => { <ide> it('can handle promises correctly', done => { <ide> const cache = inMemoryCache(before, reportErrorStub); <ide> const promisedUpdate = () => new Promise(resolve => resolve(after)); <del> cache.u...
1
Ruby
Ruby
remove useless assignment
26caf32949f40993409f71887b2490722749022a
<ide><path>activerecord/lib/active_record/base.rb <ide> def initialize(attributes = nil, options = {}) <ide> <ide> assign_attributes(attributes, options) if attributes <ide> <del> result = yield self if block_given? <add> yield self if block_given? <ide> run_callbacks :initialize <del> ...
1
PHP
PHP
use letter abbreviation over undescore
b084985496bc4ea227d77e17d7105c3b317b0467
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> protected function asDateTime($value) <ide> // that is returned back out to the developers after we convert it here. <ide> try { <ide> $date = Date::createFromFormat($format, $value); <del> } catch (InvalidAr...
1
Javascript
Javascript
update the build script so it runs on windows
bddd10037a31aad68b5bb69f0b76dd0dd0ecb8af
<ide><path>build/release.js <ide> var debug = false, <ide> <ide> var fs = require("fs"), <ide> child = require("child_process"), <del> path = require("path"), <del> which = require('which').sync; <add> path = require("path"); <ide> <ide> var releaseVersion, <ide> nextVersion, <ide> finalFiles, <ide> isBeta, <ide>...
1
Text
Text
add v3.21.2 to changelog.md
15217a3ab36a35c8b26361c3155a30efe4a0f8ae
<ide><path>CHANGELOG.md <ide> - [#18984](https://github.com/emberjs/ember.js/pull/18984) / [#19067](https://github.com/emberjs/ember.js/pull/19067) [FEATURE] Add low-level Cache API per [Autotracking Memoization RFC](https://github.com/emberjs/rfcs/blob/master/text/0615-autotracking-memoization.md) <ide> - [#19086](htt...
1
Javascript
Javascript
remove redundant connecting assignment
acd2a3210de92f325e95b4b5edc304f8e70b4063
<ide><path>lib/net.js <ide> function afterConnect(status, handle, req, readable, writable) { <ide> stopPerf(self, kPerfHooksNetConnectContext); <ide> } <ide> } else { <del> self.connecting = false; <ide> let details; <ide> if (req.localAddress && req.localPort) { <ide> details = req.localAd...
2
Text
Text
add russian translation of some sentences
411d0582a711cdc80af8b08583b7ca293f5714fa
<ide><path>curriculum/challenges/russian/03-front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers.russian.md <ide> id: bad87fee1348bd9acde08712 <ide> title: Use Responsive Design with Bootstrap Fluid Containers <ide> challengeType: 0 <ide> videoUrl: '' <del>localeTitle: Используйте адаптив...
1
Go
Go
add image metrics for push and pull
6910019bbebd71d6bb5c949a40e96b49a6b41f45
<ide><path>daemon/images/image_pull.go <ide> import ( <ide> "io" <ide> "runtime" <ide> "strings" <add> "time" <ide> <ide> dist "github.com/docker/distribution" <ide> "github.com/docker/distribution/reference" <ide> import ( <ide> // PullImage initiates a pull operation. image is the repository name to pull, and <...
2
Ruby
Ruby
handle non utf-8 encoded strings
1a703a1234b5ce8bd934899a17fa778e3a38c301
<ide><path>Library/Homebrew/rubocops/extend/formula.rb <ide> def on_class(node) <ide> # Checks for regex match of pattern in the node and <ide> # sets the appropriate instance variables to report the match <ide> def regex_match_group(node, pattern) <del> string_repr = string_content(node) <add>...
1
Javascript
Javascript
fix dom manip within template contents
3299236c898136dc1aa57dc5148811203e931895
<ide><path>src/selector/contains.js <ide> import jQuery from "../core.js"; <ide> <ide> // Note: an element does not contain itself <ide> jQuery.contains = function( a, b ) { <del> var adown = a.nodeType === 9 ? a.documentElement : a, <del> bup = b && b.parentNode; <add> var bup = b && b.parentNode; <ide> <ide> retu...
3
Javascript
Javascript
verify multiple init via well-known symbol
244af7a9d528b105b3e84db2c7d1a05fa295b334
<ide><path>test/addons/hello-world/test.js <ide> 'use strict'; <ide> const common = require('../../common'); <ide> const assert = require('assert'); <del>const binding = require(`./build/${common.buildType}/binding`); <add>const bindingPath = require.resolve(`./build/${common.buildType}/binding`); <add>const binding = ...
1
Text
Text
add note on pagination bugfix. closes
6b6b255684e8cfc25bf91168b46e9ab6512b800a
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> * Bugfix: `client.force_authenticate(None)` should also clear session info if it exists. <ide> * Bugfix: Client sending empty string instead of file now clears `FileField`. <ide> * Bugfix: Empty va...
1
PHP
PHP
add includeunless directive
60a688ae5f5342874cafdcc3603667539e0e9c19
<ide><path>src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php <ide> protected function compileIncludeWhen($expression) <ide> return "<?php echo \$__env->renderWhen($expression, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>"; <ide> } <ide> <add> /** <add> * C...
1
Text
Text
remove irrelevant semver-minor & major
5dfe0d5d61037f8c7f281acec4edec5596abe4ae
<ide><path>CHANGELOG.md <ide> See https://github.com/nodejs/io.js/labels/confirmed-bug for complete and curren <ide> * [[`a130132c8f`](https://github.com/nodejs/io.js/commit/a130132c8f)] - **openssl**: fix keypress requirement in apps on win32 (Shigeki Ohtsu) [iojs/io.js#1389](https://github.com/iojs/io.js/pull/1389) <...
1
Text
Text
update jsfiddle links in issue template
735d376fc58a3b78d58fdb8dacd47bd6fd4b2d69
<ide><path>.github/ISSUE_TEMPLATE/bug_report.md <ide> Steps to reproduce the behavior: <ide> <ide> ***Live example*** <ide> <del>* [jsfiddle-latest-release](https://jsfiddle.net/hbfpj2wv/2/) <del>* [jsfiddle-dev](https://jsfiddle.net/086yzvgc/) <add>* [jsfiddle-latest-release](https://jsfiddle.net/g3atw6k5/) <add>* [...
1
Java
Java
allow @responsebody on the type level
82a26024ae17b7d3c8ba5f805c853a6df0a072e1
<ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseBody.java <ide> /* <del> * Copyright 2002-2010 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ma...
5
Text
Text
improve lazy matching test regex
b84e74ad4247a877b981a85350113cb48f88fdca
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-characters-with-lazy-matching.md <ide> assert(result[0] == '<h1>'); <ide> `myRegex` should use lazy matching <ide> <ide> ```js <del>assert(/\?/g.test(myRegex)); <add>assert(/[^\\][\*\+\?]\?/.test(myRegex)); <...
1
Ruby
Ruby
require macos 10.14.4 for xcode 10.2
da392cd9e836cf7955e9217d7e06b7a411dab107
<ide><path>Library/Homebrew/requirements/xcode_requirement.rb <ide> def initialize(tags = []) <ide> def xcode_installed_version <ide> return false unless MacOS::Xcode.installed? <ide> return true unless @version <add> return true if xcode_swift_compatability? <ide> <ide> MacOS::Xcode.version >= @versi...
1
Mixed
Python
fix empty html values when a default is provided
3fff5cb6e0960b7ff8abd9f13a075f1f057de0a7
<ide><path>docs/api-guide/fields.md <ide> Two options are currently used in HTML form generation, `'input_type'` and `'bas <ide> <ide> A boolean representation. <ide> <add>When using HTML encoded form input be aware that omitting a value will always be treated as setting a field to `False`, even if it has a `default=...
3
Ruby
Ruby
add test for generate namespaced integration test
6affdbee2fbef912542930a79f49545a4bffb063
<ide><path>railties/test/generators/integration_test_generator_test.rb <ide> <ide> class IntegrationTestGeneratorTest < Rails::Generators::TestCase <ide> include GeneratorsTestHelper <del> arguments %w(integration) <ide> <ide> def test_integration_test_skeleton_is_created <del> run_generator <add> run_gene...
1
Ruby
Ruby
change documentation of metal anonymous class
e9f06b2ac151be1957395076f55cbfa9979bf2a5
<ide><path>actionpack/lib/action_controller/base.rb <ide> require "action_controller/metal/params_wrapper" <ide> <ide> module ActionController <del> # The <tt>metal</tt> anonymous class is simple workaround the ordering issues there are with modules. <del> # They need to be included in specific order which makes it ...
1
Ruby
Ruby
determine the repo path in a symlink-friendly way
287cc0dc0273c3bddf034f03d893eee0b8cc81a5
<ide><path>Library/Homebrew/global.rb <ide> end <ide> <ide> HOMEBREW_PREFIX = (Pathname.getwd+__FILE__).dirname.parent.parent.cleanpath <del>HOMEBREW_REPOSITORY = HOMEBREW_PREFIX.realpath <ide> HOMEBREW_CELLAR = HOMEBREW_PREFIX+'Cellar' <ide> HOMEBREW_VERSION = 0.4 <ide> HOMEBREW_WWW = 'http://bit.ly/Homebrew' <ide> ...
1
Javascript
Javascript
improve test coverage of dns/promises
9b903d1d1bdbaf4f0e88977ae96d80e9c739e181
<ide><path>test/parallel/test-dns-lookup-promises-options-deprecated.js <add>// Flags: --expose-internals <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const { internalBinding } = require('internal/test/binding'); <add>const cares = internalBinding('cares_wrap'...
1
Ruby
Ruby
remove needless `silence_warnings`
5d0a4c9aa6a319f7e91c268b20d093e3fc9600ab
<ide><path>railties/test/application/configuration_test.rb <ide> def app(env = "development") <ide> @app ||= begin <ide> ENV["RAILS_ENV"] = env <ide> <del> # FIXME: shush Sass warning spam, not relevant to testing Railties <del> Kernel.silence_warnings do <del> require "#{app_path}...
1
Javascript
Javascript
reset canvas state before drawing annotations
336aa38f4a687de9d1175fbd00738ff48abe0702
<ide><path>src/annotation.js <ide> var Annotation = (function AnnotationClosure() { <ide> } <ide> }; <ide> <add> Annotation.appendToOperatorList = function Annotation_appendToOperatorList( <add> annotations, pageQueue, pdfManager, dependencies, partialEvaluator) { <add> <add> function reject(e) { <add> ...
3
Javascript
Javascript
fix header elevation of navigationexperimental
3f92e09787c0be0b5906f361ed8e5b3f17b2abea
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js <ide> const styles = StyleSheet.create({ <ide> backgroundColor: Platform.OS === 'ios' ? '#EFEFF2' : '#FFF', <ide> borderBottomColor: 'rgba(0, 0, 0, .15)', <ide> borderBottomWidth: Platform.OS === 'ios' ? StyleSheet.hairlineWidt...
1
Javascript
Javascript
replace callback with arrows
91c0a370f6fbdd8b8d856d357c3a79381b1d13c2
<ide><path>test/parallel/test-process-config.js <ide> let config = fs.readFileSync(configPath, 'utf8'); <ide> config = config.split('\n').slice(1).join('\n'); <ide> config = config.replace(/"/g, '\\"'); <ide> config = config.replace(/'/g, '"'); <del>config = JSON.parse(config, function(key, value) { <add>config = JSON....
1
Text
Text
add changelog entry for
dffc6a43f4df05039693380c5cd2bd8762fb0382
<ide><path>activerecord/CHANGELOG.md <add>* Calling `#empty?` on a `has_many` association would use the value from the <add> counter cache if one exists. <add> <add> *David Verhasselt* <add> <ide> * Fix the schema dump generated for tables without constraints and with <ide> primary key with default value ...
1
Ruby
Ruby
remove incorrect tag for tap document
8f852380941f42b41b89415a500aeb30ecd98e83
<ide><path>Library/Homebrew/tap.rb <ide> # case, `user/repo` will be used as the {#name} of this {Tap}, where <ide> # {#user} represents Github username and {#repo} represents repository <ide> # name without leading `homebrew-`. <del># @abstract <ide> class Tap <ide> TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps" <ide>
1
Text
Text
fix schemas example url
d58c89adc1ff2e3adb6e6c0eabe341abb1b75ce6
<ide><path>docs/topics/documenting-your-api.md <ide> To implement a hypermedia API you'll need to decide on an appropriate media type <ide> [image-django-rest-swagger]: ../img/django-rest-swagger.png <ide> [image-apiary]: ../img/apiary.png <ide> [image-self-describing-api]: ../img/self-describing.png <del>[schemas-exam...
1
PHP
PHP
add missing method to dispatcher contract
a01bb86c9b17ebb145d3fca50e8017d3387701a5
<ide><path>src/Illuminate/Contracts/Bus/Dispatcher.php <ide> public function dispatchNow($command, $handler = null); <ide> * @return $this <ide> */ <ide> public function pipeThrough(array $pipes); <add> <add> /** <add> * Retrieve the handler for a command. <add> * <add> * @param mixed $co...
1
Java
Java
remove field no longer used after previous commit
34924810fe13911a56ab5961110155b4cc875ba0
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/DefaultMvcResult.java <ide> */ <ide> package org.springframework.test.web.servlet; <ide> <del>import java.util.concurrent.CountDownLatch; <ide> import java.util.concurrent.atomic.AtomicReference; <ide> <ide> import org.springframework.mock.web...
2
Javascript
Javascript
remove unused import
6cf91060fcf6edd200b0ce5bb45d1bd026cb1eb6
<ide><path>client/index.js <del>import _ from 'lodash'; <ide> import Rx from 'rx'; <ide> import debug from 'debug'; <ide> import { render } from 'redux-epic';
1
PHP
PHP
add t as a new separator
ad4fcb298016409bc4074f3bcdcabf4f7dca3f92
<ide><path>src/Validation/Validation.php <ide> */ <ide> namespace Cake\Validation; <ide> <add>use Cake\Chronos\Date; <ide> use Cake\I18n\Time; <ide> use Cake\Utility\Text; <ide> use DateTimeInterface; <ide> public static function datetime($check, $dateFormat = 'ymd', $regex = null) <ide> $check = static::...
2
PHP
PHP
fix failing tests
6987882363e738345c057a60898ef2941947cf9d
<ide><path>src/Routing/Dispatcher.php <ide> public function dispatch(ServerRequest $request, Response $response) <ide> ); <ide> $actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters); <ide> $response = $actionDispatcher->dispatch($request, $response); <del> ...
3
PHP
PHP
apply fixes from styleci
3d4a013ec226b7163ade27eae03dcd705b55c968
<ide><path>src/Illuminate/Database/Schema/Blueprint.php <ide> public function getChangedColumns() <ide> } <ide> <ide> /** <del> * Determine if the blueprint has auto increment columns <add> * Determine if the blueprint has auto increment columns. <ide> * <ide> * @return bool <ide> */
1
Javascript
Javascript
add a temporary fix for re-evaluation support
1d79787e2e792fb0b5088958fe2cca703e4ea508
<ide><path>lib/fs.js <ide> const isWindows = process.platform === 'win32'; <ide> <ide> const DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); <ide> const errnoException = util._errnoException; <del>const printDeprecation = require('internal/util').printDeprecationMessage; <add> <add>var printDeprec...
1
Text
Text
release notes for 1.3.0-rc.5
d9ff4e42ce1f59ea5af41a1300c4a433071d6e48
<ide><path>CHANGELOG.md <add><a name="1.3.0-rc.5"></a> <add># 1.3.0-rc.5 impossible-choreography (2014-10-08) <add> <add> <add>## Bug Fixes <add> <add>- **$animate:** <add> - ensure class-based animations only consider the most recent DOM operations <add> ([c93924ed](https://github.com/angular/angular.js/commit/c9392...
1
Ruby
Ruby
add test for `brew style`
3064b5b3c301897f8229ccc4f3b5922bcae64ddf
<ide><path>Library/Homebrew/test/cmd/style_spec.rb <add>require "cmd/style" <add> <add>describe "brew style" do <add> around(:each) do |example| <add> begin <add> FileUtils.ln_s HOMEBREW_LIBRARY_PATH, HOMEBREW_LIBRARY/"Homebrew" <add> FileUtils.ln_s HOMEBREW_LIBRARY_PATH.parent/".rubocop.yml", HOMEBREW_LI...
1
Javascript
Javascript
add cache() api
8e2bde6f2751aa6335f3cef488c05c3ea08e074a
<ide><path>packages/react-reconciler/src/__tests__/ReactCache-test.js <ide> let React; <ide> let ReactNoop; <ide> let Cache; <ide> let getCacheSignal; <del>let getCacheForType; <ide> let Scheduler; <ide> let act; <ide> let Suspense; <ide> let Offscreen; <ide> let useCacheRefresh; <ide> let startTransition; <ide> let us...
8
PHP
PHP
use lowercase cipher names
31151477aa65e4ff2c76fc8ad33c423b7adf0bfa
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> public function decrypt($payload, $unserialize = true) <ide> <ide> $tag = empty($payload['tag']) ? null : base64_decode($payload['tag']); <ide> <del> if (self::$supportedCiphers[$this->cipher]['aead'] && strlen($tag) !== 16) { <add> if (se...
1