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
allow sidekiq access to the underlying job class
0e64348ccaf513de731f403259ec5b49e7b3f028
<ide><path>activejob/lib/active_job/queue_adapters/sidekiq_adapter.rb <ide> def enqueue(job) #:nodoc: <ide> # Sidekiq::Client does not support symbols as keys <ide> job.provider_job_id = Sidekiq::Client.push \ <ide> "class" => JobWrapper, <del> "wrapped" => job.class.to_s, <add> ...
1
PHP
PHP
revert a param name
130a405547eef1c2e3931548a9c38a82c360ca53
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function chunk($count, callable $callback) <ide> * <ide> * @param int $count <ide> * @param callable $callback <del> * @param string $idColumn <add> * @param string $column <ide> * @return bool <ide> */ <del> ...
1
Python
Python
remove unused compat._resolve_model()
06e2ad0b7dfb78635aa0e58fa887c7e27f0e17b8
<ide><path>rest_framework/compat.py <ide> <ide> from __future__ import unicode_literals <ide> <del>import inspect <del> <ide> import django <del>from django.apps import apps <ide> from django.conf import settings <ide> from django.core import validators <del>from django.core.exceptions import ImproperlyConfigured <de...
2
Javascript
Javascript
add int32enumtypeannotation to codegen schema
e906c6f78f94716946765eab6ac79d8a8ca72599
<ide><path>packages/react-native-codegen/src/CodegenSchema.js <ide> type PropTypeTypeAnnotation = <ide> name: string, <ide> |}>, <ide> |}> <add> | $ReadOnly<{| <add> type: 'Int32EnumTypeAnnotation', <add> default: number, <add> options: $ReadOnlyArray<{| <add> value: number, <ad...
7
Python
Python
remove unused failing unittest
3ff054e9fdff6252406c7311ca31f03bc32ebaf4
<ide><path>t/distro/test_CI_reqs.py <del>import os <del>import pprint <del> <del>import pytest <del> <del> <del>def _get_extras_reqs_from(name): <del> try: <del> with open(os.path.join('requirements', name)) as fh: <del> lines = fh.readlines() <del> except OSError: <del> pytest.skip('requ...
1
Python
Python
fix inconsistent cache keying in ndpointer
8b366e0b0fff8bd46397d4d013832efce6e338b1
<ide><path>numpy/ctypeslib.py <ide> def ndpointer(dtype=None, ndim=None, shape=None, flags=None): <ide> <ide> """ <ide> <add> # normalize dtype to an Optional[dtype] <ide> if dtype is not None: <ide> dtype = _dtype(dtype) <add> <add> # normalize flags to an Optional[int] <ide> num = None <id...
2
PHP
PHP
unify conjugation order
751e4600db7daf56a5363a1d964e3bde039e5d3b
<ide><path>src/Database/Query.php <ide> protected function _conjugate($part, $append, $conjunction, $types) <ide> } else { <ide> $expression = $this->newExpr() <ide> ->setConjunction($conjunction) <del> ->add([$append, $expression], $types); <add> ->add(...
1
Java
Java
improve routerfunction builder
91e96d8084acb7d92a1a2f086f30cd3381b26440
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctionBuilder.java <ide> <ide> import reactor.core.publisher.Mono; <ide> <del>import org.springframework.http.HttpMethod; <add>import org.springframework.core.io.Resource; <ide> import org.springframework.util.Assert; <id...
3
Text
Text
use non-legacy test example in pr template
9e2b14a80d3468a45f153bb09f5a72999ebb46a3
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> - [ ] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/CONTRIBUTING.md) document? <ide> - [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same chang...
1
Javascript
Javascript
fix objectloader for cached images
457f64b976e1403ffcd844159079e6371a4f0c1a
<ide><path>src/loaders/ImageLoader.js <ide> THREE.ImageLoader.prototype = { <ide> <ide> if ( cached !== undefined ) { <ide> <add> scope.manager.itemStart( url ); <add> <ide> if ( onLoad ) { <ide> <ide> setTimeout( function () { <ide> <ide> onLoad( cached ); <ide> <add> scope.manager.itemEnd( ur...
1
Python
Python
remove unittest dependencies in numpy/random/tests
d58ebd235785a8cb2d9e417b6a029cf60c0fa3be
<ide><path>numpy/random/tests/test_random.py <ide> <ide> import numpy as np <ide> from numpy.testing import ( <del> TestCase, run_module_suite, assert_, assert_raises, assert_equal, <del> assert_warns, assert_no_warnings, assert_array_equal, <del> assert_array_almost_equal, suppress_warnings) <add...
2
Javascript
Javascript
convert non-string values to string
3652831084c3788f786046b907a7361d2e89c520
<ide><path>src/ngCookies/cookies.js <ide> angular.module('ngCookies', ['ng']). <ide> for(name in cookies) { <ide> value = cookies[name]; <ide> if (!angular.isString(value)) { <del> if (angular.isDefined(lastCookies[name])) { <del> cookies[name] = lastCookies[name]; <d...
2
PHP
PHP
move recordnotfoundexception to datasource
a6ac63aad3792d1bb5ea493332a87fe01865e3aa
<ide><path>config/bootstrap.php <ide> class_alias('Cake\Error\Debugger', 'Cake\Utility\Debugger'); <ide> class_alias('Cake\Core\Configure\Engine\PhpConfig', 'Cake\Configure\Engine\PhpConfig'); <ide> class_alias('Cake\Core\Configure\Engine\IniConfig', 'Cake\Configure\Engine\IniConfig'); <add>class_alias('Cake\Datasource...
4
Text
Text
fix a spelling error of 'dnsmasq'
5e450bc5df9b59ea5b1fcee2b12b30669fb8ceff
<ide><path>docs/installation/ubuntulinux.md <ide> NetworkManager (this might slow your network). <ide> <ide> $ sudo nano /etc/NetworkManager/NetworkManager.conf <ide> <del>2. Comment out the `dns=dsnmasq` line: <add>2. Comment out the `dns=dnsmasq` line: <ide> <ide> dns=dnsmasq <ide>
1
Ruby
Ruby
remove an unused argument
386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57
<ide><path>activerecord/lib/active_record/associations.rb <ide> def add_touch_callbacks(reflection, touch_attribute) <ide> # The +extra_conditions+ parameter, which is not used within the main <ide> # Active Record codebase, is meant to allow plugins to define extra <ide> # finder conditions. <d...
1
PHP
PHP
use macro-able trait
63104317ff69db2b28c7b0ac62bb6443e5ff488e
<ide><path>src/Illuminate/Routing/ResponseFactory.php <ide> <ide> class ResponseFactory implements FactoryContract { <ide> <add> use MacroableTrait; <add> <ide> /** <ide> * The view factory implementation. <ide> *
1
Text
Text
add note for using with webpack
4751f77926bb6a9a4fa1a84be4379ec823a99896
<ide><path>README.md <ide> require(['./immutable.min.js'], function (Immutable) { <ide> }); <ide> ``` <ide> <del>If you're using [browserify](http://browserify.org/), the `immutable` npm module <del>also works from the browser. <add>If you're using [webpack](https://webpack.github.io/) or <add>[browserify](http://brow...
1
PHP
PHP
remove duplicate methods
3e1c567f083f22b2beed15f61347ad41e6eca2ab
<ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php <ide> public function testParseAttributeCompact() { <ide> } <ide> $this->assertEquals($helper->parseAttributes(array('compact')), ' compact="compact"'); <ide> <add> $attrs = array('class' => array('foo', 'bar')); <add> $expected = ' class="foo bar"'; <...
3
Mixed
Go
make http usage for registry explicit
f9b4bfa59ba954c8e2d1a0f8cd42f0e75e4d46f3
<ide><path>daemon/config.go <ide> type Config struct { <ide> BridgeIface string <ide> BridgeIP string <ide> FixedCIDR string <add> InsecureRegistries []string <ide> InterContainerCommunication bool <ide> GraphDriver string <ide> GraphOp...
8
Java
Java
fix broken systrace message markers
4b15eb53ece845f30d0c12479e44f2159febe4c0
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> public List<ViewManager> getOrCreateViewManagers( <ide> synchronized (mPackages) { <ide> Set<String> uniqueNames = new HashSet<>(); <ide> for (ReactPackage reactPackage : mPackages) { <del> SystraceMessage.be...
1
Text
Text
add history for net.createserver() options
e0191ca9fb638eb72df48b5a26aa6a0a1d100ddb
<ide><path>doc/api/net.md <ide> changes: <ide> - v17.7.0 <ide> - v16.15.0 <ide> pr-url: https://github.com/nodejs/node/pull/41310 <del> description: The `noDelay`, `keepAlive` and `keepAliveInitialDelay` <add> description: The `noDelay`, `keepAlive`, and `keepAliveInitialDelay` <ide> ...
1
Javascript
Javascript
fix broken link
7718d5fd56e14ac26af14f8c74aaeb5cbfcd32ee
<ide><path>samples/samples.js <ide> path: 'tooltips/positioning.html' <ide> }, { <ide> title: 'Custom Positioning', <del> path: 'tooltips/position-custom.html' <add> path: 'tooltips/positioning-custom.html' <ide> }, { <ide> title: 'Interactions', <ide> path: 'tooltips/interactions.html'
1
Javascript
Javascript
use async/await in text-editor-element-spec
a9d0f82afb759c26c3266476a895f4c37c404cf3
<ide><path>spec/text-editor-element-spec.js <ide> /* global HTMLDivElement */ <ide> <add>const {it, fit, ffit, fffit, beforeEach, afterEach, conditionPromise, timeoutPromise} = require('./async-spec-helpers') <ide> const TextEditor = require('../src/text-editor') <ide> const TextEditorElement = require('../src/text-ed...
2
PHP
PHP
add detector for patch method
0e21687fe500354f0c884e4dcbf8a7555b7dd41c
<ide><path>Cake/Network/Request.php <ide> class Request implements \ArrayAccess { <ide> 'get' => array('env' => 'REQUEST_METHOD', 'value' => 'GET'), <ide> 'post' => array('env' => 'REQUEST_METHOD', 'value' => 'POST'), <ide> 'put' => array('env' => 'REQUEST_METHOD', 'value' => 'PUT'), <add> 'patch' => array('env'...
1
Go
Go
skip tests on non-supported backends
55cd7dd7f90d19332464ac946727297de1969483
<ide><path>daemon/graphdriver/graphtest/graphtest.go <ide> func newDriver(t *testing.T, name string) *Driver { <ide> <ide> d, err := graphdriver.GetDriver(name, root) <ide> if err != nil { <add> if err == graphdriver.ErrNotSupported { <add> t.Skip("Driver %s not supported", name) <add> } <ide> t.Fatal(err) <id...
1
Javascript
Javascript
add some test cases for the same loop promise
857a1d31381342847846b95b80cd811023af58ad
<ide><path>test/unit/same-loop-promise.test.js <add>/* global describe, it, expect */ <add> <add>import { SameLoopPromise } from '../../dist/lib/dynamic' <add> <add>describe('SameLoopPromise', () => { <add> describe('basic api', () => { <add> it('should support basic promise resolving', (done) => { <add> const...
1
PHP
PHP
add type hints to application interfaces
7b901538aa267220e076df67b9490d6e4715e5e5
<ide><path>src/Core/ConsoleApplicationInterface.php <ide> */ <ide> namespace Cake\Core; <ide> <add>use Cake\Console\CommandCollection; <add> <ide> /** <ide> * An interface defining the methods that the <ide> * console runner depend on. <ide> interface ConsoleApplicationInterface <ide> * <ide> * @return vo...
12
Javascript
Javascript
remove special case readonly for computed.alias
99a1c6e95d47f106de896522689ec99e65fc27c4
<ide><path>packages/ember-metal/lib/computed.js <ide> Ember.computed.bool = function(dependentKey) { <ide> @method computed.alias <ide> @for Ember <ide> <del> Available options: <del> <del> * `readOnly`: `true` <del> <ide> @param {String} dependentKey <del> @param {Object} options <ide> */ <del>Ember.computed...
2
Mixed
Go
set exit code of old running container as 137
b0b2f979c7c43e2975d5e39340c168da2da42d1d
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) register(container *Container, updateSuffixarray bool) err <ide> <ide> if container.IsRunning() { <ide> logrus.Debugf("killing old running container %s", container.ID) <del> <del> container.SetStopped(&execdriver.ExitStatus{ExitCode: 0}) <add> // Set exit co...
2
Javascript
Javascript
add new files to docs
d7d7e99c7d46c2a5019d8ff0052e614ce48a5fc4
<ide><path>website/server/extractDocs.js <ide> var components = [ <ide> '../Libraries/Components/Navigation/NavigatorIOS.ios.js', <ide> '../Libraries/Picker/PickerIOS.ios.js', <ide> '../Libraries/Components/ScrollView/ScrollView.js', <add> '../Libraries/CustomComponents/ReactNavigator/ReactNavigator.js', <ide> ...
1
Ruby
Ruby
add mailer suffix to comments for email previews
5f6fc9e389e90d44cf07318f0c3c51a12dfcb6a5
<ide><path>railties/lib/rails/generators/test_unit/mailer/templates/preview.rb <ide> <% module_namespacing do -%> <del># Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %> <add># Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>_mailer <ide> class <%= class_name %>Mailer...
2
Go
Go
add pubsub topics
434d2e8745696255a204d9eefc6a2854ff74e5c2
<ide><path>api/server/router/local/info.go <ide> func (s *router) getEvents(ctx context.Context, w http.ResponseWriter, r *http.R <ide> <ide> enc := json.NewEncoder(output) <ide> <del> current, l, cancel := s.daemon.SubscribeToEvents() <del> defer cancel() <add> buffered, l := s.daemon.SubscribeToEvents(since, since...
5
PHP
PHP
implement higher order orwhere for simpler scopes
33eff6c5ed4e48e79eb36811fb6246e7c35dfda2
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> namespace Illuminate\Database\Eloquent; <ide> <ide> use Closure; <add>use Exception; <ide> use BadMethodCallException; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Pagination\Paginator; <ide> use Illuminate\Contra...
3
Python
Python
use url instead of name in second test
dcef9e8d5f8b1b98211130f0fce2a7c0088d427b
<ide><path>libcloud/test/compute/test_gce.py <ide> def test_ex_get_network(self): <ide> self.assertEqual(network.extra['description'], 'A custom network') <ide> # do the same but this time with URL <ide> url = 'https://www.googleapis.com/compute/v1/projects/project_name/global/networks/lcnetwork...
1
Text
Text
add link to the model from the top readme
6159b59366fc5e467ea00491462a1caef0638946
<ide><path>README.md <ide> running TensorFlow 0.12 or earlier, please <ide> ## Models <ide> - [adversarial_text](adversarial_text): semi-supervised sequence learning with <ide> adversarial training. <add>- [attention_ocr](attention_ocr): a model for real-world image text extraction. <ide> - [autoencoder](autoencoder)...
1
PHP
PHP
refactor the view class
edae391593458ab3ce59040c6c616dc6ffb20f34
<ide><path>system/view.php <ide> private static function parse($view) <ide> <ide> $path = ($module == 'application') ? VIEW_PATH : MODULE_PATH.$module.'/views/'; <ide> <del> if ($module != 'application') $view = substr($view, strpos($view, ':') + 2); <add> if ($module != 'application') <add> { <add> $view = su...
1
Javascript
Javascript
fix param comment for enablesvg
d7274f066e0e288c9288aca74793edf4231fdc19
<ide><path>src/ngSanitize/sanitize.js <ide> function $SanitizeProvider() { <ide> * </code></pre> <ide> * </div> <ide> * <del> * @param {boolean=} regexp New regexp to whitelist urls with. <add> * @param {boolean=} flag Enable or disable SVG support in the sanitizer. <ide> * @returns {boolean|ng.$sanit...
1
Javascript
Javascript
increase util.callbackify() coverage
471e88feb47e8a711e395cf6167d723adf3d1b7a
<ide><path>test/parallel/test-util-callbackify.js <ide> const values = [ <ide> }) <ide> ); <ide> } <add> <add>{ <add> // Verify that non-function inputs throw. <add> ['foo', null, undefined, false, 0, {}, Symbol(), []].forEach((value) => { <add> assert.throws(() => { <add> callbackify(value); <add> }...
1
Javascript
Javascript
remove unused argument
8bad49801c34a0791a8beea3eccbaf0e4fe6d589
<ide><path>packages/ember-metal/lib/watching.js <ide> Ember.finishChains = function(obj) { <ide> @param {String} keyName The property key (or path) that will change. <ide> @return {void} <ide> */ <del>function propertyWillChange(obj, keyName, value) { <add>function propertyWillChange(obj, keyName) { <ide> var m =...
1
Java
Java
update coalesce to prefer newest event
ea913e4691cbac16b2f66a02f6439c3cccd2c28d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java <ide> public boolean canCoalesce() { <ide> <ide> /** <ide> * Given two events, coalesce them into a single event that will be sent to JS instead of two <del> * separate events. By default, just chooses the one the is more recen...
1
Python
Python
simplify string expressions
cf9437d79f9658d1309e4bfe847fe63d52ec7b99
<ide><path>airflow/cli/cli_parser.py <ide> def positive_int(value): <ide> ) <ide> ARG_SAVE_DAGRUN = Arg( <ide> ("--save-dagrun",), <del> help=( <del> "After completing the backfill, saves the diagram for current DAG Run to the indicated file.\n" "\n" <del> ), <add> help=("After completing the backfi...
15
Javascript
Javascript
load extra jsonp chunks with async script tags
b3f0ddab32491dfdf7eb492fb80c4d5b6fc40b1d
<ide><path>lib/JsonpMainTemplatePlugin.js <ide> JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) { <ide> "var script = document.createElement('script');", <ide> "script.type = 'text/javascript';", <ide> "script.charset = 'utf-8';", <add> "script.async = true;", <ide> "script.src = " +...
1
PHP
PHP
return json for unauthenticated ajax requests
8e7672fc040691e8707a30588045d15540def051
<ide><path>app/Exceptions/Handler.php <ide> public function render($request, Exception $e) <ide> protected function unauthenticated($request, AuthenticationException $e) <ide> { <ide> if ($request->ajax() || $request->wantsJson()) { <del> return response('Unauthorized.', 401); <add> ...
1
Go
Go
simplify build constraints
12744335c08d110c6066cb729a95d14658c6f1d2
<ide><path>daemon/logger/journald/doc.go <add>// Package journald provides the log driver for forwarding server logs <add>// to endpoints that receive the systemd format. <add>package journald // import "github.com/docker/docker/daemon/logger/journald" <ide><path>daemon/logger/journald/journald.go <ide> //go:build linu...
3
Go
Go
add suite for testing registries with auth
011b4f01f4aca365c88900b196b1c96f7889631d
<ide><path>integration-cli/check_test.go <ide> type DockerRegistrySuite struct { <ide> <ide> func (s *DockerRegistrySuite) SetUpTest(c *check.C) { <ide> testRequires(c, DaemonIsLinux) <del> s.reg = setupRegistry(c, false) <add> s.reg = setupRegistry(c, false, false) <ide> s.d = NewDaemon(c) <ide> } <ide> <ide> type...
4
Go
Go
rewrite testrunmutablenetworkfiles to avoid races
492b18ac08e2652c1b95fd9f3c786e1fb1f28c3a
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestRunMutableNetworkFiles(t *testing.T) { <ide> for _, fn := range []string{"resolv.conf", "hosts"} { <ide> deleteAllContainers() <ide> <del> content, err := runCommandAndReadContainerFile(fn, exec.Command(dockerBinary, "run", "-d", "--name", "c1", "bus...
1
Java
Java
add redirectview to spring web reactive
2e994f7dc38b5520555720dac215064949ccfabf
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java <add>/* <add> * Copyright 2002-2016 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 ...
4
Javascript
Javascript
fix typo in router error message
1770efad6340bc7325b919049eecfc8a743c6c7f
<ide><path>packages/next-server/lib/EventEmitter.js <ide> export default class EventEmitter { <ide> } <ide> <ide> if (this.listeners[event].has(cb)) { <del> throw new Error(`The listener already exising in event: ${event}`) <add> throw new Error(`Listener already exists for router event: \`${event}\`...
2
Ruby
Ruby
relocate bottle immediately after it's poured
8c7b6291491ec0a6d50c7b0dfcc4912d12253418
<ide><path>Library/Homebrew/formula_installer.rb <ide> def finish <ide> <ide> keg = Keg.new(formula.prefix) <ide> link(keg) <del> fix_install_names(keg) if OS.mac? <add> fix_install_names(keg) <ide> <ide> if build_bottle? && formula.post_install_defined? <ide> ohai "Not running post_install as...
1
Python
Python
fix type annotations for `distributed_concat()`
3ccc27019a72a3cc0aafd5c4eaff5232769018c3
<ide><path>src/transformers/trainer_pt_utils.py <ide> from contextlib import contextmanager <ide> from dataclasses import dataclass <ide> from logging import StreamHandler <del>from typing import Dict, Iterator, List, Optional, Union <add>from typing import Any, Dict, Iterator, List, Optional, Union <ide> <ide> import...
1
Python
Python
add test file
68ab9f269a955ee8341dcbd3f9d199df292c7e0c
<ide><path>libcloud/test/common/test_openstack_identity.py <ide> from mock import Mock <ide> <ide> from libcloud.utils.py3 import httplib <del>from libcloud.utils.py3 import assertRaisesRegex <ide> from libcloud.common.openstack import OpenStackBaseConnection <ide> from libcloud.common.openstack_identity import AUTH_T...
1
Javascript
Javascript
support telephone links
04450c48dfea065e1c9e4ab8adad94993ed1b037
<ide><path>src/ngSanitize/sanitize.js <ide> var START_TAG_REGEXP = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?: <ide> BEGING_END_TAGE_REGEXP = /^<\s*\//, <ide> COMMENT_REGEXP = /<!--(.*?)-->/g, <ide> CDATA_REGEXP = /<!\[CDATA\[(.*?)]]>/g, <del> URI_REGEXP = /^((ftp|https?):\/\/|mailto:|#)/, <add> U...
2
Python
Python
add upsampling*d api conversion interface.
4cf4aa1efe30c3ed0e985ba2d0ae5fa9ed3cec07
<ide><path>keras/layers/convolutional.py <ide> from ..engine import Layer <ide> from ..engine import InputSpec <ide> from ..utils import conv_utils <add>from ..legacy import interfaces <ide> <ide> # imports for backwards namespace compatibility <ide> from .pooling import AveragePooling1D <ide> class UpSampling1D(Layer...
3
Python
Python
solve some bytes vs. str issues in tests
b1ab8f8657cf0165f5e9fd828857ff474d31dfdb
<ide><path>numpy/ma/tests/test_core.py <ide> import numpy.ma.core <ide> from numpy.ma.core import * <ide> <add>from numpy.compat import asbytes, asbytes_nested <add> <ide> pi = np.pi <ide> <ide> import sys <ide> def test_check_on_scalar(self): <ide> assert_equal(fval, default_fill_value(0)) <ide> # <i...
2
Text
Text
update pr template
17564a40a7b8b5dee878cc634077e0a2e63e36fb
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> http://chris.beams.io/posts/git-commit/ <ide> Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information. <ide> In case of fundamental code changes, an Airflow Improvement Proposal ([...
1
Text
Text
fix minor docs issues
d8434eba462752327d4c7769d3ce2c85013c211e
<ide><path>docs/admin/runmetrics.md <ide> indicates the number of page faults which happened since the creation of <ide> the cgroup; this number can never decrease). <ide> <ide> <del> - **cache:** <add> - **cache:** <ide> the amount of memory used by the processes of this control group <ide> that can be assoc...
2
Javascript
Javascript
add capitalize function to ember.string
9bc2b4159bfb6545958c5368e41ebe649cc45ea6
<ide><path>packages/ember-runtime/lib/ext/string.js <ide> var fmt = Ember.String.fmt, <ide> camelize = Ember.String.camelize, <ide> decamelize = Ember.String.decamelize, <ide> dasherize = Ember.String.dasherize, <del> underscore = Ember.String.underscore; <add> underscore = Ember.String.underscore, <a...
3
PHP
PHP
allow callable scope
fe05b8dc6e4a7207191bac25088573f2ed0e7cf8
<ide><path>src/Model/Behavior/TreeBehavior.php <ide> protected function _scope($query) { <ide> <ide> if (empty($config['scope'])) { <ide> return $query; <del> } <del> <del> if (!is_string($config['scope'])) { <add> } elseif (is_array($config['scope'])) { <ide> return $query->where($config['scope']); <add> ...
1
Text
Text
revise strict mode text in assert
3af27f86b6d7a236ce0c1be55a22b17ee538b78f
<ide><path>doc/api/assert.md <ide> <ide> The `assert` module provides a set of assertion functions for verifying <ide> invariants. The module provides a recommended [`strict` mode][] and a more <del>lenient `legacy` mode. <add>lenient legacy mode. <ide> <ide> For more information about the used equality comparisons s...
1
Python
Python
add test for shuffle warning and assert stacklevel
dfdff63cd6c53f1fd1d1c4a9754332887b746e7e
<ide><path>numpy/random/tests/test_random.py <ide> import warnings <ide> <add>import pytest <add> <ide> import numpy as np <ide> from numpy.testing import ( <ide> assert_, assert_raises, assert_equal, assert_warns, <ide> def test_shuffle_masked(self): <ide> assert_equal( <ide> sorte...
1
Ruby
Ruby
remove unnecessary require from test
051658db6552882a4306b9a4240137b9def8db17
<ide><path>Library/Homebrew/test/test_formula.rb <ide> def test_factory <ide> path.dirname.mkpath <ide> File.open(path, 'w') do |f| <ide> f << %{ <del> require 'formula' <ide> class #{Formulary.class_s(name)} < Formula <ide> url 'foo-1.0' <ide> end
1
Text
Text
improve translation of key terms, sentences
1b897a26c0abc7a6fd48bc4e9f58e63a32242417
<ide><path>guide/russian/machine-learning/clustering-algorithms/index.md <ide> localeTitle: Алгоритмы кластеризации <ide> * Каждый кластер содержит похожие объекты <ide> * Объекты, которые не принадлежат к тем же кластерам, не похожи <ide> <del>Алгоритмы кластеризации помогают находить структуру в коллекции немарк...
1
Javascript
Javascript
add benchmark for url.format()
08ea9ee56d0223fc9214821c75a72ba94fe17a74
<ide><path>benchmark/url/url-format.js <add>'use strict'; <add>const common = require('../common.js'); <add>const url = require('url'); <add>const v8 = require('v8'); <add> <add>const bench = common.createBenchmark(main, { <add> type: 'one two'.split(' '), <add> n: [25e6] <add>}); <add> <add>function main(conf) { <ad...
1
Javascript
Javascript
fix superblock title/name on api call
2805835de560d216106d42dca9da4ed5c19bbc83
<ide><path>server/services/map.js <add>import _ from 'lodash'; <ide> import { Observable } from 'rx'; <ide> import { Schema, valuesOf, arrayOf, normalize } from 'normalizr'; <ide> import debug from 'debug'; <del>import { nameify, dasherize, unDasherize } from '../utils'; <add>import { nameify, unDasherize } from '../ut...
1
Ruby
Ruby
add a method_defined? guard for pathname#/
68da1e7765567c64e46bd813eb139bc09e14d863
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def make_relative_symlink(src) <ide> <ide> def / that <ide> self + that.to_s <del> end <add> end unless method_defined?(:/) <ide> <ide> def ensure_writable <ide> saved_perms = nil
1
Java
Java
remove unused applicationcontext fetch
85bf2073f15d372eed15f1a18998fe21c13cdfcf
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java <ide> public void getString(Callback cb) { <ide> @SuppressLint("DeprecatedMethod") <ide> @ReactMethod <ide> public void setString(String text) { <del> ReactApplicationContext reactContext = getReactApplicationContex...
1
Javascript
Javascript
add new ngsrcset directive
d551d72924f7c43a043e4760ff05d7389e310f99
<ide><path>src/ng/directive/booleanAttrs.js <ide> * @param {template} ngSrc any string which can contain `{{}}` markup. <ide> */ <ide> <add>/** <add> * @ngdoc directive <add> * @name ng.directive:ngSrcset <add> * @restrict A <add> * <add> * @description <add> * Using Angular markup like `{{hash}}` in a `srcset` attr...
3
PHP
PHP
prevent a bundle from starting itself into a loop
550249743284b70d4262e6b1520bfaad3c5fd38c
<ide><path>laravel/bundle.php <ide> public static function start($bundle) <ide> throw new \Exception("Bundle [$bundle] has not been installed."); <ide> } <ide> <add> static::$started[] = strtolower($bundle); <add> <ide> // Each bundle may have a "start" script which is responsible for preparing <ide> // the ...
1
Python
Python
add conll_ner2json converter
a6352403982da4211cb83a80ae8bdee2fc861a7b
<ide><path>spacy/cli/converters/conll_ner2json.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>from ...compat import json_dumps, path2str <add>from ...util import prints <add>from ...gold import iob_to_biluo <add> <add> <add>def conll_ner2json(input_path, output_path, n_sents=10, use_morp...
1
Ruby
Ruby
skip isolated tests for prs
c7f0cd6a79e6ee060df982dc0834365b63e53a2c
<ide><path>ci/travis.rb <ide> def rake(*tasks) <ide> <ide> ENV['GEM'].split(',').each do |gem| <ide> [false, true].each do |isolated| <add> next if ENV['TRAVIS_PULL_REQUEST'] && ENV['TRAVIS_PULL_REQUEST'] != 'false' && isolated <ide> next if gem == 'railties' && isolated <ide> next if gem == 'aj:integrati...
1
Ruby
Ruby
use different cache tag for sparse checkouts
6219cd0a9279989caf56eb1f6c530c69ae5dd713
<ide><path>Library/Homebrew/download_strategy.rb <ide> def clone_repo(timeout: nil) <ide> # @api public <ide> class GitDownloadStrategy < VCSDownloadStrategy <ide> def initialize(url, name, version, **meta) <add> # Needs to be before the call to `super`, as the VCSDownloadStrategy's <add> # constructor calls `c...
1
Mixed
Python
extract method for `manual_fields` processing
a0cdba627767ec489fbc683483a8904bdfe606a9
<ide><path>docs/api-guide/schemas.md <ide> Return a list of `coreapi.Link()` instances, as returned by the `get_schema_fiel <ide> <ide> Return a list of `coreapi.Link()` instances, as returned by the `get_schema_fields()` method of any filter classes used by the view. <ide> <add>### get_manual_fields(self, path, meth...
4
Python
Python
fix userloggedinauthentication for post requests
1d9f24f60d1348c53e9a88cb605c7890b6c40146
<ide><path>djangorestframework/authentication.py <ide> def authenticate(self, request): <ide> Returns a :obj:`User` if the request session currently has a logged in user. <ide> Otherwise returns :const:`None`. <ide> """ <del> # TODO: Might be cleaner to switch this back to using request.P...
1
Ruby
Ruby
add relation#delete [pratik naik, emilio tagua]
d5f9173926598ace058b502e00c49f6477820509
<ide><path>activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb <ide> def delete_records(records) <ide> relation = arel_table(@reflection.options[:join_table]) <ide> relation.where(relation[@reflection.primary_key_name].eq(@owner.id). <ide> and(Arel::P...
3
Python
Python
normalize indentation in blender exporter
2e7400d2c7f68dff0bf89ffcc58a80415953da71
<ide><path>utils/exporters/blender/2.66/scripts/addons/io_mesh_threejs/export_threejs.py <ide> <ide> "skinWeights" : [%(weights)s], <ide> <del> "animations" : [%(animations)s] <add> "animations" : [%(animations)s] <ide> """ <ide> <ide> TEMPLATE_VERTEX = "%g,%g,%g"
1
PHP
PHP
add missing versions to deprecation notices
4fd1bd1a35e4eda334c07220ad30585709c299cd
<ide><path>src/Cache/Engine/ApcEngine.php <ide> */ <ide> namespace Cake\Cache\Engine; <ide> <del>// @deprecated Add backwards compat alias. <add>// @deprecated 3.6.0 Add backwards compat alias. <ide> class_alias('Cake\Cache\Engine\ApcuEngine', 'Cake\Cache\Engine\ApcEngine'); <ide> <ide> deprecationWarning('Use Cake\...
55
Java
Java
add ui asserts and logs to a few more places
f77abc583c7a7766c7a0e356ddab5e0febc6ea68
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java <ide> && arrayContains(tagsToDelete, viewToRemove.getId())) { <ide> new LayoutAnimationListener() { <ide> @Override <ide> public void onAnimationEnd() { <add> ...
1
Text
Text
update documentation to reflect changes
3d028fb589d559741ee7f5d51b65f9ba43b91096
<ide><path>docs/sources/activations.md <ide> model.add(Dense(20, 64, init='uniform', activation=tanh)) <ide> model.add(Activation(tanh)) <ide> ``` <ide> <add>You can also specifiy a desired `target` for the average activation of hidden units in a layer. <add>This is accomplished by a generalized KL divergence penalty ...
4
Javascript
Javascript
fix object3d tests
338211e3e6749bb45d99eb3fd9228945d2001094
<ide><path>test/unit/src/core/Object3D.js <ide> QUnit.test( "rotateX" , function( assert ) { <ide> var angleInRad = 1.562; <ide> obj.rotateX(angleInRad); <ide> <del> // should calculate the correct rotation on x <del> checkIfFloatsAreEqual(obj.rotation.x, angleInRad, assert); <add> assert.numEqual( obj.rotation.x, a...
1
Python
Python
change api of zeropadding2d
a02ccc2a7842534c97f1cebcd95cd70e5167e0c8
<ide><path>keras/layers/convolutional.py <ide> def get_config(self): <ide> <ide> <ide> class ZeroPadding2D(Layer): <del> def __init__(self, width=1): <add> def __init__(self, pad=(1, 1)): <ide> super(ZeroPadding2D, self).__init__() <del> self.width = width <add> self.pad = pad <ide> ...
1
Ruby
Ruby
allow count nodes to have math functions
1aeefa68bc93fddfba1d6549bb870d3829dfe0e2
<ide><path>lib/arel/nodes/count.rb <ide> module Arel <ide> module Nodes <ide> class Count < Arel::Nodes::Function <add> include Math <add> <ide> def initialize expr, distinct = false, aliaz = nil <ide> super(expr, aliaz) <ide> @distinct = distinct <ide><path>test/nodes/test_count.rb <id...
2
Python
Python
remove trailing comma
006ae4609207b815afdacb5bd6ad0035a81f4166
<ide><path>tests/test_fields.py <ide> import pytest <ide> from django.http import QueryDict <ide> from django.test import TestCase, override_settings <del>from django.utils import six, <add>from django.utils import six <ide> <ide> import rest_framework <ide> from rest_framework import serializers
1
Javascript
Javascript
read texture info numeric or symbolic (compatible)
9e7bf038a500cf78e48985545e3d5ef01dea6ada
<ide><path>src/loaders/ObjectLoader.js <ide> THREE.ObjectLoader.prototype = { <ide> <ide> }, <ide> <add> parseConstant: function ( json ) { <add> <add> return typeof( json ) === 'number' ? json : THREE[json]; <add> <add> }, <add> <ide> parseImages: function ( json, onLoad ) { <ide> <ide> var scope = this; <ide>...
1
Javascript
Javascript
prevent unexpected vertex weighting
0c08f4f0018b9619e1b87dd44d4373007b67faa3
<ide><path>examples/js/loaders/LDrawLoader.js <ide> THREE.LDrawLoader = ( function () { <ide> <ide> } <ide> <add> // NOTE: Some of the normals wind up being skewed in an unexpected way because <add> // quads provide more "influence" to some vertex normals than a triangle due to <add> // the fact that a quad is m...
1
Javascript
Javascript
upgrade benchmark scripts for new module api
d582599c14ba2adcc1a8f94dcd9c583564e618a7
<ide><path>benchmark/http_simple.js <ide> libDir = process.path.join(process.path.dirname(__filename), "../lib"); <ide> require.paths.unshift(libDir); <ide> <del>process.mixin(require("/utils.js")); <del>http = require("/http.js"); <add>process.mixin(require("sys")); <add>http = require("sys"); <ide> <ide> fixed = ""...
4
Javascript
Javascript
use bytelength in timingsafeequal
61743063cccf5b9ec6e1bc85f453bf9d3f83250a
<ide><path>lib/internal/crypto/util.js <ide> function timingSafeEqual(buf1, buf2) { <ide> throw new ERR_INVALID_ARG_TYPE('buf2', <ide> ['Buffer', 'TypedArray', 'DataView'], buf2); <ide> } <del> if (buf1.length !== buf2.length) { <add> if (buf1.byteLength !== buf2.byteLength) {...
3
PHP
PHP
remove trailing whitespace
3df3c842ae94d17e1ab1861c02d5321d2b4b6ef9
<ide><path>src/TestSuite/ConnectionHelper.php <ide> <ide> /** <ide> * Helper for managing test connections <del> * <add> * <ide> * @internal <ide> */ <ide> class ConnectionHelper
1
Python
Python
fix the import
7bfa929d3ce90f647dd4e4e228312491df517928
<ide><path>numpy/matrixlib/defmatrix.py <ide> __all__ = ['matrix', 'bmat', 'mat', 'asmatrix'] <ide> <ide> import sys <add>from numpy import core <ide> import numpy.core.numeric as N <ide> from numpy.core.numeric import concatenate, isscalar, binary_repr, identity, asanyarray <ide> from numpy.core.numerictypes import i...
1
Text
Text
add link roundup
d4c7991aee61a7cd2561d74bd86da12042ff34c7
<ide><path>docs/_posts/2013-06-27-community-roundup-3.md <ide> browserify: { <ide> <ide> ## JSRomandie Meetup <ide> <del>[Renault John Lecoultre](https://twitter.com/renajohn/) did a React introduction talk at a JS meetup called [JS Romandie](https://twitter.com/jsromandie) last week. <add>[Renault John Lecoultre](ht...
1
Ruby
Ruby
use singular define_attribute_method
00de46acf52868d4e0d9fdee58c823c599a275a1
<ide><path>activemodel/lib/active_model/attributes.rb <ide> def attribute(name, type = Type::Value.new, **options) <ide> end <ide> self.attribute_types = attribute_types.merge(name => type) <ide> define_default_attribute(name, options.fetch(:default, NO_DEFAULT_PROVIDED), type) <del> defi...
1
Text
Text
fix typos in doc/changelogs/changelog_v10.md
317c2e13a3b43e5bdf4f5845ec2af8f4e8d6913b
<ide><path>doc/changelogs/CHANGELOG_V10.md <ide> * Support for NPN (next protocol negotiation) has been dropped. [[`5bfbe5ceae`](https://github.com/nodejs/node/commit/5bfbe5ceae)] <ide> * The `ecdhCurve` default is now `'auto'`. [[`af78840b19`](https://github.com/nodejs/node/commit/af78840b19)] <ide> * Trace Events...
1
Python
Python
add missing newline
985c2a64b46885ef22942df8350517a6163dfd9a
<ide><path>numpy/lib/function_base.py <ide> def unwrap(p, discont=None, axis=-1, *, period=2*pi): <ide> If the discontinuity in `p` is smaller than ``period/2``, <ide> but larger than `discont`, no unwrapping is done because taking <ide> the complement would only make the discontinuity larger. <add> <ide>...
1
Ruby
Ruby
inspect dep name, not dep object
3957a35c338c029512621b78a4b65c3ecdee22bc
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_deps <ide> begin <ide> dep_f = dep.to_formula <ide> rescue <del> problem "Can't find dependency #{dep.inspect}." <add> problem "Can't find dependency #{dep.name.inspect}." <ide> end <ide> <ide> dep.options.reject do ...
1
Javascript
Javascript
remove the `isnum` helper function
05edd91bdb3690b253fb598f2eb716c7a66e154b
<ide><path>src/core/catalog.js <ide> import { <ide> FormatError, <ide> info, <ide> isBool, <del> isNum, <ide> isString, <ide> objectSize, <ide> PermissionFlag, <ide> class Catalog { <ide> } <ide> <ide> let flags = encrypt.get("P"); <del> if (!isNum(flags)) { <add> if (typeof flags !== "numbe...
10
Text
Text
update some readmes
bb49abea2377d6391a98cef536e9da4c26ddaa39
<ide><path>packages/react-dom/README.md <ide> npm install react react-dom <ide> ### In the browser <ide> <ide> ```js <del>var React = require('react'); <del>var ReactDOM = require('react-dom'); <add>import { createRoot } from 'react-dom'; <ide> <del>function MyComponent() { <add>function App() { <ide> return <div>H...
3
Ruby
Ruby
create a new renderer instance on calls to `for`
2db7304c2c338711b265e92a51d29121cbd702e6
<ide><path>actionpack/lib/action_controller/renderer.rb <ide> module ActionController <ide> # ApplicationController.renderer.new(method: 'post', https: true) <ide> # <ide> class Renderer <del> class_attribute :controller, :defaults <del> # Rack environment to render templates in. <del> attr_reader ...
2
Python
Python
add byt5 option to example run_t5_mlm_flax.py
5803a2a7ac87dc9b767454ffc53c17422d2b9f24
<ide><path>examples/flax/language-modeling/run_t5_mlm_flax.py <ide> from transformers import ( <ide> CONFIG_MAPPING, <ide> FLAX_MODEL_FOR_MASKED_LM_MAPPING, <add> AutoTokenizer, <ide> BatchEncoding, <ide> FlaxT5ForConditionalGeneration, <ide> HfArgumentParser, <ide> PreTrainedTokenizerBase, <...
1
Javascript
Javascript
increase coverage by removing dead code
08984b26d351614fe4af0f582acb53c9b43dfda1
<ide><path>lib/buffer.js <ide> function fromObject(obj) { <ide> return b; <ide> } <ide> <del> if (obj != null) { <del> if (obj.length !== undefined || isAnyArrayBuffer(obj.buffer)) { <del> if (typeof obj.length !== 'number' || obj.length !== obj.length) { <del> return new FastBuffer(); <del> ...
1
Javascript
Javascript
remove react.autobind from examples
0c1f2720b38acf1b8968eac46ab887add37ee253
<ide><path>examples/ballmer-peak/example.js <ide> var BallmerPeakCalculator = React.createClass({ <ide> getInitialState: function() { <ide> return {bac: 0}; <ide> }, <del> handleChange: React.autoBind(function() { <add> handleChange: function() { <ide> this.setState({bac: this.refs.bac.getDOMNode().value}...
4
Text
Text
add load impact to readme
4e093b0e25bd0f4635b0dd03a4c9bfd9f082f8cf
<ide><path>README.md <ide> Send a description of the issue via email to [rest-framework-security@googlegrou <ide> [stream-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/stream-readme.png <ide> [rollbar-img]: https://raw.githubusercontent.com/encode/django-rest-framework/mas...
1