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 initial support for embed api
2abb2e617af8e3353d4411a8bd51d03256e0274a
<ide><path>activemodel/lib/active_model/serializer.rb <ide> def serialize(collection, scope) <ide> <ide> def serialize_ids(collection, scope) <ide> # use named scopes if they are present <del> return collection.ids if collection.respond_to?(:ids) <add> #return collection.ids if coll...
2
Ruby
Ruby
use openstruct to capture the mode
a02d5f33b42502503dafb28b3796693b1a57ebab
<ide><path>Library/Homebrew/cmd/deps.rb <ide> require 'formula' <add>require 'ostruct' <ide> <ide> module Homebrew extend self <ide> def deps <del> if ARGV.include? '--installed' <add> mode = OpenStruct.new( <add> :installed? => ARGV.include?('--installed'), <add> :tree? => ARGV.include?('--tr...
1
Python
Python
add keras version in model save files
05abe814acd329d426645ecb4ca8c1e39defdac0
<ide><path>keras/models.py <ide> def get_json_type(obj): <ide> raise TypeError('Not JSON Serializable:', obj) <ide> <ide> import h5py <add> from keras import __version__ as keras_version <add> <ide> # if file exists and should not be overwritten <ide> if not overwrite and os.path.isfile(filepath...
1
Javascript
Javascript
add coverage for repl .clear+useglobal
338d09d25b380366b0263ac4d90bcc2b8a1d4ac8
<ide><path>lib/repl.js <ide> REPLServer.prototype.createContext = function() { <ide> <ide> Object.defineProperty(context, '_', { <ide> configurable: true, <del> get: () => { <del> return this.last; <del> }, <add> get: () => this.last, <ide> set: (value) => { <ide> this.last = value; <ide>...
2
Python
Python
update ud bin scripts
d844030fd880165f08bf88f4fd386ef878e63360
<ide><path>bin/ud/run_eval.py <ide> from pathlib import Path <ide> import xml.etree.ElementTree as ET <ide> <del>from spacy.cli.ud import conll17_ud_eval <del>from spacy.cli.ud.ud_train import write_conllu <add>import conll17_ud_eval <add>from ud_train import write_conllu <ide> from spacy.lang.lex_attrs import word_sh...
3
Ruby
Ruby
use string arg to io.popen
ec2a3f979ee81e5ed5d5368a6addbe9b31eb3ece
<ide><path>Library/Homebrew/utils.rb <ide> def api_credentials <ide> if ENV["HOMEBREW_GITHUB_API_TOKEN"] <ide> ENV["HOMEBREW_GITHUB_API_TOKEN"] <ide> else <del> github_credentials = IO.popen(["git", "credential-osxkeychain", "get"], "w+") do |io| <add> github_credentials = IO.popen("gi...
1
Text
Text
remove un-needed categories
fd0c00def8dbb57efdceb91b87f95988d0d5af85
<ide><path>threejs/lessons/ru/threejs-cameras.md <ide> Title: Three.js - Камера <ide> Description: Как использовать камеру в Three.js <del>Category: fundamentals <ide> TOC: Камера <ide> <ide> Эта статья является частью серии статей о three.js. <ide><path>threejs/lessons/ru/threejs-fundamentals.md <ide> Title: Основы ...
56
Java
Java
fix ofresponseprocessor signature
d17b99fe37a945436254e99d90c45b413ba73323
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/HandlerFilterFunction.java <ide> default HandlerFunction<R> apply(HandlerFunction<T> handler) { <ide> * @return the filter adaptation of the request processor <ide> */ <ide> static <T extends ServerResponse, R extends ServerRe...
1
Text
Text
fix slight markdown typo in code blocks (#55)
8332400d96bd4defd944c612fe99a8abf7a0d38f
<ide><path>inception/inception/slim/README.md <ide> the code necessary for defining the entire [VGG] <ide> the lengthy and verbose nature of defining just the first three layers (out of <ide> 16) using native tensorflow: <ide> <del>```python {.good} <add>```python{.good} <ide> # VGG16 in TF-Slim. <ide> def vgg16(input...
1
Javascript
Javascript
add display name in more cases
f0fdabae7bbeadde9245d00893b194e0310c8d9b
<ide><path>vendor/fbtransform/transforms/reactDisplayName.js <ide> var Syntax = require('esprima-fb').Syntax; <ide> var utils = require('jstransform/src/utils'); <ide> <add>function addDisplayName(displayName, object, state) { <add> if (object && <add> object.type === Syntax.CallExpression && <add> object.c...
1
Go
Go
use lazy unmount to unmount volumes
b9e701b203ff49966aac00e058feb5d46bbb97f0
<ide><path>daemon/container_unix.go <ide> func (container *Container) unmountVolumes(forceSyscall bool) error { <ide> <ide> for _, volumeMount := range volumeMounts { <ide> if forceSyscall { <del> if err := system.Unmount(volumeMount.Destination); err != nil { <del> logrus.Warnf("%s unmountVolumes: Failed to f...
1
Python
Python
convert encoders tests to pytest style
99d57df990736b882ecafd033bb158a2d2cec0a8
<ide><path>tests/test_encoders.py <ide> from decimal import Decimal <ide> from uuid import uuid4 <ide> <add>import pytest <ide> from django.test import TestCase <ide> <ide> from rest_framework.compat import coreapi <ide> def dst(self, dt): <ide> <ide> current_time = datetime.now().time() <ide> curren...
1
Javascript
Javascript
throw typeerror if callback is missing
9a2654601e58cb738463ea4a195400dd0cdd37ad
<ide><path>lib/zlib.js <ide> for (var ck = 0; ck < ckeys.length; ck++) { <ide> } <ide> <ide> function zlibBuffer(engine, buffer, callback) { <add> if (typeof callback !== 'function') <add> throw new ERR_INVALID_ARG_TYPE('callback', 'function', callback); <ide> // Streams do not support non-Buffer ArrayBufferView...
2
Go
Go
use check in params so we don't ignore errors
bcad3d5212641237fe97c9ea2668869805e3bce8
<ide><path>integration-cli/check_test.go <ide> func (s *DockerSuite) OnTimeout(c *check.C) { <ide> } <ide> <ide> func (s *DockerSuite) TearDownTest(c *check.C) { <del> unpauseAllContainers() <del> deleteAllContainers() <del> deleteAllImages() <del> deleteAllVolumes() <del> deleteAllNetworks() <del> deleteAllPlugins() ...
9
Mixed
Ruby
use proper output format [ci skip]
415e17d0b54681545d36a0f43d4cd8761de77bee
<ide><path>actionpack/lib/action_dispatch/http/request.rb <ide> def controller_class <ide> <ide> # Returns true if the request has a header matching the given key parameter. <ide> # <del> # request.key? :ip_spoofing_check #=> true <add> # request.key? :ip_spoofing_check # => true <ide> def key?...
2
Javascript
Javascript
rewrite code to no longer use __guard__
99aaafed1b8d39713b7e033d68b248f710778fa2
<ide><path>src/project.js <ide> /* <ide> * decaffeinate suggestions: <del> * DS103: Rewrite code to no longer use __guard__ <ide> * DS104: Avoid inline assignments <ide> * DS204: Change includes calls to have a more natural evaluation order <ide> * DS205: Consider reworking code to avoid use of IIFEs <ide> class Pr...
1
Text
Text
clarify err_invalid_repl_input usage
06d74956ae960c066c054a0bd84795025a587e77
<ide><path>doc/api/errors.md <ide> which is not supported. <ide> <a id="ERR_INVALID_REPL_INPUT"></a> <ide> ### `ERR_INVALID_REPL_INPUT` <ide> <del>The input may not be used in the [`REPL`][]. All prohibited inputs are <del>documented in the [`REPL`][]'s documentation. <add>The input may not be used in the [`REPL`][]. ...
1
Go
Go
return an empty config if nil
c85a58b6df38c692275d592049d1b2db1d1b4da3
<ide><path>libnetwork/controller.go <ide> func (c *controller) hostLeaveCallback(hosts []net.IP) { <ide> func (c *controller) Config() config.Config { <ide> c.Lock() <ide> defer c.Unlock() <add> if c.cfg == nil { <add> return config.Config{} <add> } <ide> return *c.cfg <ide> } <ide>
1
Javascript
Javascript
fix lint errors
adbfbdde0a561f25bd810b20bac03dd2be9a693c
<ide><path>src/utils/combineReducers.js <ide> import { ActionTypes } from '../createStore'; <ide> function getErrorMessage(key: String, action: Action): string { <ide> var actionType = action && action.type; <ide> var actionName = actionType && `"${actionType.toString()}"` || 'an action'; <del> <add> <ide> retu...
2
PHP
PHP
fix cs errors
297da498b5aef5ec2809b3368dd9807b7ff6a220
<ide><path>src/Database/Driver/Sqlite.php <ide> protected function _transformFunctionExpression(FunctionExpression $expression): <ide> case 'RAND': <ide> $expression <ide> ->setName('ABS') <del> ->add(["RANDOM() % 1" => 'literal'], [], true); <add> ...
7
Python
Python
fix phrasematcher example
01858e9b5972a8c1dec86f88eef3f17fea63cdc6
<ide><path>examples/multi_word_matches.py <ide> matching over the tag patterns. So no matter how many phrases we're looking for, <ide> our pattern set stays very small (exact size depends on the maximum length we're <ide> looking for, as the query language currently has no quantifiers) <add> <add>The example expects a ...
1
Java
Java
fix reacthorizontalscrollview contentoffset
9f6f97151c44a0f727c9dd938222be1860ecf3f9
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java <ide> private int getSnapInterval() { <ide> } <ide> <ide> private View getContentView() { <del> View contentView = getChildAt(0); <del> return contentView; <add> return getChildAt(0); <ide> } <ide> <ide...
2
Ruby
Ruby
fix the next version of rails from 5.3 to 6.0
43c8877c293d00ccfb3849359a07fa59ee5ac95d
<ide><path>activesupport/lib/active_support/deprecation.rb <ide> class Deprecation <ide> # and the second is a library name. <ide> # <ide> # ActiveSupport::Deprecation.new('2.0', 'MyLibrary') <del> def initialize(deprecation_horizon = "5.3", gem_name = "Rails") <add> def initialize(deprecation_horiz...
1
Python
Python
update the timestamp to default to utc.
31f7f41b4331978b6767d9b0957cda380bc28c48
<ide><path>official/utils/logs/logger.py <ide> def log_metric(self, name, value, unit=None, global_step=None, extras=None): <ide> "value": float(value), <ide> "unit": unit, <ide> "global_step": global_step, <del> "timestamp": datetime.datetime.now().strftime( <add> "times...
1
Java
Java
add mergedannotations.of method
9d6cf57cb740660661c1804a41fe699f5d3b9faa
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java <ide> import java.lang.annotation.Inherited; <ide> import java.lang.reflect.AnnotatedElement; <ide> import java.lang.reflect.Method; <add>import java.util.Collection; <ide> import java.util.function.Predicate; <ide> import j...
4
PHP
PHP
leave db->cachesources unaltered
99fd6e40fe994e836e035fc49ca151d7a04ce657
<ide><path>lib/Cake/Model/Model.php <ide> protected function _generateAssociation($type, $assocKey) { <ide> public function setSource($tableName) { <ide> $this->setDataSource($this->useDbConfig); <ide> $db = ConnectionManager::getDataSource($this->useDbConfig); <del> $db->cacheSources = ($this->cacheSources && $d...
1
Ruby
Ruby
fix typos in activejob queuing test
8e12371da6729cb11be442b686443fa0f0fdc944
<ide><path>activejob/test/integration/queuing_test.rb <ide> require 'active_support/core_ext/numeric/time' <ide> <ide> class QueuingTest < ActiveSupport::TestCase <del> test 'should run jobs enqueued on a listenting queue' do <add> test 'should run jobs enqueued on a listening queue' do <ide> TestJob.perform_lat...
1
Text
Text
clarify the callback arguments of dns.resolve
d33b3d10860d31cbb8d63fd8f6e93555d8cd1c88
<ide><path>doc/api/dns.md <ide> dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { <ide> <!-- YAML <ide> added: v0.1.27 <ide> --> <del>- `hostname` {string} <del>- `rrtype` {string} <add>- `hostname` {string} Hostname to resolve. <add>- `rrtype` {string} Resource record type. Default: `'A'`. <ide> - `call...
1
Javascript
Javascript
remove usage of public util module
a34cb28e60db7132dfb2cd020bb9f039c333cccf
<ide><path>lib/vm.js <ide> const { <ide> ERR_INVALID_ARG_TYPE, <ide> ERR_VM_MODULE_NOT_MODULE, <ide> } = require('internal/errors').codes; <del>const { isModuleNamespaceObject, isArrayBufferView } = require('util').types; <add>const { <add> isModuleNamespaceObject, <add> isArrayBufferView, <add>} = require('inter...
2
Python
Python
add regression test for
86cd7f0efdabadb172894c39183f9645dbd632aa
<ide><path>spacy/tests/regression/test_issue4120.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>import pytest <add>from spacy.matcher import Matcher <add>from spacy.tokens import Doc <add> <add> <add>@pytest.mark.xfail <add>def test_issue4120(en_vocab): <add> """Test that matches with...
1
Go
Go
fix race in cleanup
381d593d04fc46dac5b202d047981e15183c5ed1
<ide><path>container.go <ide> func (container *Container) Attach(stdin io.ReadCloser, stdinCloser io.Closer, s <ide> if container.Config.StdinOnce && !container.Config.Tty { <ide> defer cStdin.Close() <ide> } else { <del> if cStdout != nil { <del> defer cStdout.Close() <del> } <del> if cSt...
1
PHP
PHP
fix cs error
6de2ba16116a8d132a7d0ad73c44c17c8fa09934
<ide><path>src/Core/functions.php <ide> use Cake\Core\Configure; <ide> <ide> if (!defined('DS')) { <del> /** <del> * Define DS as short form of DIRECTORY_SEPARATOR. <del> */ <add> <add>/** <add> * Define DS as short form of DIRECTORY_SEPARATOR. <add> */ <ide> define('DS', DIRECTORY_SEPARATOR); <add> <ide> } <ide> ...
1
Javascript
Javascript
fix transformcontrol zoom for orthographiccamera
a0535a3e1b4eeaacbf22f8bc7c9673efc885c785
<ide><path>examples/js/controls/TransformControls.js <ide> THREE.TransformControlsGizmo = function () { <ide> handle.position.copy( this.worldPosition ); <ide> <ide> var eyeDistance = this.worldPosition.distanceTo( this.cameraPosition ); <add> // Orthographic camera zoom doesn't depend on eyeDistance, but on c...
2
Text
Text
add missing word to release docs.
6309fb79783b601f878ccc44650c153d93d57167
<ide><path>dev/README_RELEASE_AIRFLOW.md <ide> You can find the prerequisites to release Apache Airflow in [README.md](README.m <ide> <ide> ## Build RC artifacts <ide> <del>The Release Candidate artifacts we vote upon should be the exact ones we vote against, without any modification than renaming – i.e. the contents...
1
Python
Python
parametrize tests using different methods
9d9a89445bdf0edaaba4a4a3260493bc3f043a15
<ide><path>numpy/random/tests/test_generator_mt19937.py <ide> def test_multinomial(self): <ide> [5, 5, 3, 1, 2, 4]]]) <ide> assert_array_equal(actual, desired) <ide> <del> def test_multivariate_normal(self): <add> @pytest.mark.parametrize("method", ["svd", "eigh", "cholesky"]...
1
Python
Python
take limit_choices_to into account with fk
e3bd4b90488bab756694ce271a9615460783f987
<ide><path>rest_framework/utils/field_mapping.py <ide> def get_relation_kwargs(field_name, relation_info): <ide> if to_field: <ide> kwargs['to_field'] = to_field <ide> <add> limit_choices_to = model_field and model_field.get_limit_choices_to() <add> if limit_choices_to: <add> kwargs['queryset'...
3
Python
Python
prepare tools/testp.py for python 3
59065308349b7cb8d93439324afc00b7c51fecdf
<ide><path>tools/test.py <ide> import multiprocessing <ide> import errno <ide> import copy <del>import ast <ide> <ide> from os.path import join, dirname, abspath, basename, isdir, exists <ide> from datetime import datetime <ide> from Queue import Queue, Empty <ide> <ide> try: <del> reduce # Python 2 <add> ...
1
Javascript
Javascript
support more attributes for early hint link
2649aab6036447b15ea313fbf61d64b4c19934f6
<ide><path>lib/internal/validators.js <ide> function validateUnion(value, name, union) { <ide> } <ide> } <ide> <del>const linkValueRegExp = /^(?:<[^>]*>;)\s*(?:rel=(")?[^;"]*\1;?)\s*(?:(?:as|anchor|title)=(")?[^;"]*\2)?$/; <add>const linkValueRegExp = /^(?:<[^>]*>;)\s*(?:rel=(")?[^;"]*\1;?)\s*(?:(?:as|anchor|title|c...
2
Javascript
Javascript
minimize abuse of .alternate
c83a0428f126e9f41d199b56fe8bf457dce5dad2
<ide><path>src/renderers/shared/fiber/ReactChildFiber.js <ide> var { <ide> var ReactFiber = require('ReactFiber'); <ide> var ReactReifiedYield = require('ReactReifiedYield'); <ide> <del>function createSubsequentChild(parent : Fiber, nextReusable : ?Fiber, previousSibling : Fiber, newChildren) : Fiber { <add>function c...
4
Text
Text
clarify fast-track of reversions
41c45fd6d2fbd6c2bf6fcfe8fd8894031503e169
<ide><path>COLLABORATOR_GUIDE.md <ide> can be fast-tracked and may be landed after a shorter delay: <ide> * Focused changes that affect only documentation and/or the test suite. <ide> `code-and-learn` and `good-first-issue` pull requests typically fall <ide> into this category. <del>* Changes that revert commit(s) ...
1
Python
Python
remove unused fixture method
2b1978c8349bb08ca70109041d0fc0058352bc7b
<ide><path>libcloud/test/dns/test_gandi_live.py <ide> def test_list_records(self): <ide> self.assertEqual(record.id, 'A:@') <ide> self.assertEqual(record.name, '@') <ide> self.assertEqual(record.type, RecordType.A) <del> self.assertEqual(record.data, ['127.0.0.1']) <add> self.asser...
1
Javascript
Javascript
add test for getvisiblepanecontainers()
5c5fb28da136fce8535874701179ff495ed30893
<ide><path>spec/workspace-spec.js <ide> i = /test/; #FIXME\ <ide> }) <ide> }) <ide> <add> describe('::getVisiblePaneContainers', () => { <add> it('returns all visible pane containers', () => { <add> const center = workspace.getCenter() <add> const leftDock = workspace.getLeftDock() <add> const...
1
Python
Python
add test for ticket
49728cd9286b10cbba3dce776fd83aea3e469e4b
<ide><path>numpy/core/tests/test_regression.py <ide> def test_fromiter_bytes(self): <ide> <ide> def test_array_too_big(self): <ide> """Ticket #1080.""" <del> assert_raises(ValueError,np.zeros,[2**10]*10) <add> assert_raises(ValueError, np.zeros, [2**10]*10) <add> <add> def test_dtype_keyer...
1
PHP
PHP
implement cookie expiration
a17e51077264bd51dd5cb7a0544ef201898ffc78
<ide><path>lib/Cake/Network/Http/Cookies.php <ide> public function store(Response $response, $url) { <ide> <ide> $cookies = $response->cookies(); <ide> foreach ($cookies as $name => $cookie) { <add> if (empty($cookie['domain'])) { <add> $cookie['domain'] = $host; <add> } <add> if (empty($cookie['path'])) ...
2
PHP
PHP
remove unneeded casting
a224205c10b9b5bdb096ec696e55187eb7d03143
<ide><path>src/Database/Query.php <ide> public function setValueBinder(?ValueBinder $binder) <ide> public function enableBufferedResults(bool $enable = true) <ide> { <ide> $this->_dirty(); <del> $this->_useBufferedResults = (bool)$enable; <add> $this->_useBufferedResults = $enable; <ide> ...
1
Text
Text
add hints for "install and set up mongoose"
7f3769f8e04421a55e8ecefab17cfec7be3805d8
<ide><path>guide/english/certifications/apis-and-microservices/mongodb-and-mongoose/install-and-set-up-mongoose/index.md <ide> --- <ide> title: Install and Set Up Mongoose <ide> --- <del>## Install and Set Up Mongoose <add># Install and Set Up Mongoose <ide> <ide> You might want to check both the [MongoDB](https://www...
1
Java
Java
add pointerevents prop to rn android scroll views
48f6967ae88100110160e1faf03e6c0d37e404bd
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java <ide> <ide> package com.facebook.react.uimanager; <ide> <add>import java.util.Locale; <add> <ide> /** <ide> * Possible values for pointer events that a view and its descendants should receive. See <ide> * https://developer.mozilla...
5
Javascript
Javascript
improve url parser benchmark
10ba95c11a9a3857f5e378e343b3febd107dae70
<ide><path>benchmark/url.js <del>var url = require('url'), <del> urls = [ <del> 'http://nodejs.org/docs/latest/api/url.html#url_url_format_urlobj', <del> 'http://blog.nodejs.org/', <del> 'https://encrypted.google.com/search?q=url&q=site:npmjs.org&hl=en', <del> 'javascript:alert("node is awesome")...
1
Javascript
Javascript
remove some stray globals in d3.behavior.*
8223554e50a862ef5366b4461683b43578766799
<ide><path>d3.js <ide> d3.behavior.drag = function() { <ide> <ide> var d3_behavior_dragEvent, <ide> d3_behavior_dragTarget, <add> d3_behavior_dragArguments, <ide> d3_behavior_dragOffset, <ide> d3_behavior_dragMoved, <ide> d3_behavior_dragStopClick; <ide> function d3_behavior_dragMove() { <ide> funct...
4
Ruby
Ruby
add outdated_release? method
7076ed890a1eee10c94791e7557ab16769ab80ef
<ide><path>Library/Homebrew/os/mac.rb <ide> def prerelease? <ide> version >= "10.12" <ide> end <ide> <add> def outdated_release? <add> # TODO: bump version when new OS is released <add> version < "10.9" <add> end <add> <ide> def cat <ide> version.to_sym <ide> end
1
Text
Text
update readme with my pronouns
c7707a1ccaf4cb17e18f4bf11fb04a242d34bdff
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> * [kunalspathak](https://github.com/kunalspathak) - <ide> **Kunal Pathak** &lt;kunal.pathak@microsoft.com&gt; <ide> * [lance](https://github.com/lance) - <del>**Lance Ball** &lt;lball@redhat.com&gt; <add>**Lance Ball*...
1
Text
Text
remove unused link reference
c892f6f97db35a1833bfa22d91a0768a57cdec2b
<ide><path>doc/api/child_process.md <ide> unavailable. <ide> <ide> [`'error'`]: #child_process_event_error <ide> [`'exit'`]: #child_process_event_exit <del>[`'message'`]: #child_process_event_message <ide> [`ChildProcess`]: #child_process_child_process <ide> [`Error`]: errors.html#errors_class_error <ide> [`EventEmitt...
1
Go
Go
improve the crashtest script
c4cd224d901ece4d9a2f15d10a80998f2b970c07
<ide><path>contrib/crashTest.go <ide> import ( <ide> const DOCKER_PATH = "/home/creack/dotcloud/docker/docker/docker" <ide> <ide> func runDaemon() (*exec.Cmd, error) { <add> os.Remove("/var/run/docker.pid") <ide> cmd := exec.Command(DOCKER_PATH, "-d") <ide> outPipe, err := cmd.StdoutPipe() <ide> if err != nil { <id...
1
Javascript
Javascript
remove unused variables
df81b832bb728cfcc11bd1aff9cb6e38c25e3a1c
<ide><path>external/builder/test.js <ide> require('shelljs/make'); <ide> <ide> var builder = require('./builder'); <ide> var fs = require('fs'); <del>var path = require('path'); <ide> <ide> var errors = 0; <ide> <ide><path>external/umdutils/verifier.js <ide> function validateDependencies(context) { <ide> if (!(i...
14
Javascript
Javascript
remove return statement from .update()
10c8fcaa50c1c620d0deb4800490fb29742777a1
<ide><path>src/helpers/VertexNormalsHelper.js <ide> VertexNormalsHelper.prototype.update = ( function () { <ide> <ide> position.needsUpdate = true; <ide> <del> return this; <del> <ide> }; <ide> <ide> }() );
1
Ruby
Ruby
add test for `language` stanza
87299af22547093a4efb9c4a5e06b55bb51f9ff7
<ide><path>Library/Homebrew/cask/test/cask/dsl_test.rb <ide> end <ide> end <ide> <add> describe "language stanza" do <add> after(:each) do <add> ENV["HOMEBREW_LANGUAGES"] = nil <add> end <add> <add> it "allows multilingual casks" do <add> cask = lambda { <add> Hbc::Cask.new("cask-with-...
2
Javascript
Javascript
fix debugstream method
bb7650bb45de60c87455655a306573d5adaba9fa
<ide><path>lib/internal/http2/core.js <ide> const { _connectionListener: httpConnectionListener } = http; <ide> let debug = require('internal/util/debuglog').debuglog('http2', (fn) => { <ide> debug = fn; <ide> }); <add>const debugEnabled = debug.enabled; <ide> <ide> function debugStream(id, sessionType, message, ......
1
Python
Python
improve handling of job_id in bigquery operators
47b05a87f004dc273a4757ba49f03808a86f77e7
<ide><path>airflow/providers/google/cloud/hooks/bigquery.py <ide> This module contains a BigQuery Hook, as well as a very basic PEP 249 <ide> implementation for BigQuery. <ide> """ <add>import hashlib <add>import json <ide> import logging <ide> import time <ide> import warnings <ide> from copy import deepcopy <add>from...
2
Javascript
Javascript
update stub usage
809303b422fa5c44470c80dc6464cce141058200
<ide><path>packages/dalek/test/dalek.test.js <ide> describe('dalek', function() { <ide> atom.devMode = false; <ide> bundledPackages = ['duplicated-package', 'unduplicated-package']; <ide> packageDirPaths = [path.join('Users', 'username', '.atom', 'packages')]; <del> sandbox = sinon.sandbox.create...
4
Ruby
Ruby
remove redundant variable
ba9537c275d5434aff505cdc5d435009715dcc0e
<ide><path>activesupport/lib/active_support/core_ext/hash/deep_dup.rb <ide> class Hash <ide> def deep_dup <ide> duplicate = self.dup <ide> duplicate.each_pair do |k,v| <del> tv = duplicate[k] <del> duplicate[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_dup : v <add> duplicate[k] = v.is_a?(Has...
1
Go
Go
add id to jsonmessage in pull
0e71e368a8a781f593b25fdd1318d3882e6d28e5
<ide><path>commands.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> // FIXME: ProgressReader shouldn't be this annoyning to use <ide> if context != nil { <ide> sf := utils.NewStreamFormatter(false) <del> body = utils.ProgressReader(ioutil.NopCloser(context), 0, cli.err, sf.FormatProgress("Upl...
4
Javascript
Javascript
add missing semicolon
89a3fa93a031dca3d9f1cef33f796b9194a2db98
<ide><path>test/mjsunit/test-assert.js <ide> function makeBlock(f){ <ide> } <ide> } <ide> <del>assert.ok(a.AssertionError instanceof Error, "a.AssertionError instanceof Error") <add>assert.ok(a.AssertionError instanceof Error, "a.AssertionError instanceof Error"); <ide> <ide> assert.throws(makeBlock(a.ok, false),...
1
Java
Java
fix javadoc typo
209bb4ee4b93d8b7f0aed794d784cd830701c8c3
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/client/standard/AnnotatedEndpointConnectionManager.java <ide> import javax.websocket.ContainerProvider; <ide> import javax.websocket.Session; <ide> import javax.websocket.WebSocketContainer; <del>import javax.websocket.server.ServerEndpoint; <ide>...
1
PHP
PHP
fix coding standards in case/error
8b797b2577c5db6e343c1af4db3b297138971d2c
<ide><path>lib/Cake/Test/Case/Error/ErrorHandlerTest.php <ide> */ <ide> class ErrorHandlerTest extends CakeTestCase { <ide> <del> public $_restoreError = false; <add> protected $_restoreError = false; <ide> <ide> /** <ide> * setup create a request object to get out of router later. <ide> public function setUp() { <...
2
Javascript
Javascript
fix iso parsing with more than 3 subsecond digits
739f9bc0d9af4fd658d393b9b52230a665217561
<ide><path>moment.js <ide> <ide> // iso time formats and regexes <ide> isoTimes = [ <del> ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d{1,3}/], <add> ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/], <ide> ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/], <ide> ['HH:mm', /(T|...
2
PHP
PHP
use find() in association internals
bdc8c78cb11ec2c31617bd8868bd06b0056f92d7
<ide><path>src/ORM/Association.php <ide> public function find($type = null, array $options = []): Query <ide> */ <ide> public function exists($conditions): bool <ide> { <del> if ($this->_conditions) { <del> $conditions = $this <del> ->find('all', ['conditions' => $condition...
1
Javascript
Javascript
fix usemutablesource tearing bug
fdb641629e82df6588c16e158978ac57d9aff9ba
<ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js <ide> function useMutableSource<Source, Snapshot>( <ide> const suspenseConfig = requestCurrentSuspenseConfig(); <ide> const lane = requestUpdateLane(fiber, suspenseConfig); <ide> markRootMutableRead(root, lane); <del> <del> /...
3
PHP
PHP
use fqcn for property annotations
814b51cb4a4a4a6492fd30364407e09f8e51be61
<ide><path>src/View/Helper/FormHelper.php <ide> * <ide> * Automatic generation of HTML FORMs from given data. <ide> * <del> * @property HtmlHelper $Html <del> * @property UrlHelper $Url <add> * @property \Cake\View\Helper\HtmlHelper $Html <add> * @property \Cake\View\Helper\UrlHelper $Url <ide> * @link http://book....
6
Javascript
Javascript
run tests without jquery (package by package)
f71bbd07cacd406d3ac12db7d170be791b3a5c50
<ide><path>bin/run-tests.js <ide> function generateEachPackageTests() { <ide> testFunctions.push(function() { <ide> return run('package=' + packageName); <ide> }); <add> if (packages[packageName].requiresJQuery === false) { <add> testFunctions.push(function() { <add> return run('package=' +...
2
Python
Python
remove fix for odd msvcrt version on windows 3.7
02f602b0fe4c5a67fe82f0cd7cb9c820392445f9
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def _build_import_library_x86(): <ide> # Value from msvcrt.CRT_ASSEMBLY_VERSION under Python 3.3.0 <ide> # on Windows XP: <ide> _MSVCRVER_TO_FULLVER['100'] = "10.0.30319.460" <del> # Python 3.7 uses 1415, but get_build_version returns 1...
1
Java
Java
fix dispatch optimization
fa814d4875d924e6835e31339f2012e8b18818ae
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java <ide> import com.facebook.react.uimanager.events.PointerEventHelper.EVENT; <ide> import com.facebook.react.uimanager.events.TouchEvent; <ide> import com.facebook.react.uimanager.events.TouchEventCoalescingKeyHelper; <add>import ...
1
Java
Java
implement new interface method
00018e511d71c3402939cfe22e4b7ab636cee01a
<ide><path>org.springframework.context/src/main/java/org/springframework/context/expression/BeanExpressionContextAccessor.java <ide> package org.springframework.context.expression; <ide> <ide> import org.springframework.beans.factory.config.BeanExpressionContext; <add>import org.springframework.core.convert.TypeDescri...
3
Javascript
Javascript
reuse warning from postcss-loader
16d6eba1c9c0d89c6bc48392ad8cedb3ebbcf4d7
<ide><path>packages/next/build/webpack/loaders/css-loader/src/Warning.js <del>export default class Warning extends Error { <del> constructor(warning) { <del> super(warning) <del> const { text, line, column } = warning <del> this.name = 'Warning' <del> <del> // Based on https://github.com/postcss/postcss/bl...
2
Ruby
Ruby
add does_not_need_relocation field
ab10ab42fa2f85f5b7abce733a02ea7a47e98683
<ide><path>Library/Homebrew/software_spec.rb <ide> def compatible_cellar? <ide> @spec.compatible_cellar? <ide> end <ide> <add> def needs_relocation? <add> @spec.needs_relocation? <add> end <add> <ide> def stage <ide> resource.downloader.stage <ide> end <ide> def initialize <ide> @prefix = DEFAUL...
1
PHP
PHP
remove useless loop
c04fa172ab4488f297549aa8618b066835b78d26
<ide><path>src/Illuminate/Support/Str.php <ide> public static function replaceLast($search, $replace, $subject) <ide> */ <ide> public static function remove($search, $subject, $caseSensitive = true) <ide> { <del> foreach (Arr::wrap($search) as $s) { <del> $subject = $caseSensitive <del> ...
1
Ruby
Ruby
clarify example in activerecord base
ad3e4e3af698afda19549505cf82efb5eb6427f2
<ide><path>activerecord/lib/active_record/base.rb <ide> module ActiveRecord #:nodoc: <ide> # Person.find_by_user_name_and_password #with dynamic finder <ide> # <ide> # Person.where(:user_name => user_name, :password => password, :gender => 'male').first <del> # Payment.find_by_user_name_and_password_and_gende...
1
Javascript
Javascript
prettify tooltips on non-data calendar dates
31d00a993f23a05b0b3b3dd6eef646f8da36c30c
<ide><path>examples/calendar/dji.js <ide> d3.csv("dji.csv", function(csv) { <ide> rect <ide> .attr("class", function(d) { return "day q" + color(data[format(d)]) + "-9"; }) <ide> .append("svg:title") <del> .text(function(d) { return format(d) + ": " + percent(data[format(d)]); }); <add> .text(func...
2
Python
Python
prepare 2.2.1 release
eb2c1fdc2d5f841e328993e3bd0e1a3de268fe20
<ide><path>keras/__init__.py <ide> from .models import Model <ide> from .models import Sequential <ide> <del>__version__ = '2.2.0' <add>__version__ = '2.2.1' <ide><path>keras/applications/__init__.py <ide> <ide> keras_applications.set_keras_submodules( <ide> backend=backend, <del> engine=engine, <ide> laye...
3
Mixed
Python
add decimalfield support
ad436d966fa9ee2f5817aa5c26612c82558c4262
<ide><path>docs/api-guide/fields.md <ide> A floating point representation. <ide> <ide> Corresponds to `django.db.models.fields.FloatField`. <ide> <add>## DecimalField <add> <add>A decimal representation. <add> <add>Corresponds to `django.db.models.fields.DecimalField`. <add> <ide> ## FileField <ide> <ide> A file rep...
4
Ruby
Ruby
restore original make_jobs return type
757cc24f7ec81acaec97d23dace4f6ceb462b4df
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> def set_cpu_cflags(map = Hardware::CPU.optimization_flags) # rubocop:disable Nam <ide> end <ide> <ide> def make_jobs <del> Homebrew::EnvConfig.make_jobs <add> Homebrew::EnvConfig.make_jobs.to_i <ide> end <ide> <ide> # This method does nothing in stdenv...
1
Ruby
Ruby
remove fallback for `bundleversion`
7c6116af992b5fda8bc175277d862ef03624c984
<ide><path>Library/Homebrew/bundle_version.rb <ide> def nice_parts <ide> end <ide> end <ide> <del> fallback = (short_version || version).sub(/\A[^\d]+/, "") <del> <del> [fallback] <add> [short_version, version].compact <ide> end <ide> private :nice_parts <ide> end
1
Go
Go
add agentstopwait method
18098ab1c8614d0d5dd59e6283b1013405c04857
<ide><path>libnetwork/agent.go <ide> func (c *controller) agentSetup() error { <ide> if c.agent != nil && c.agentInitDone != nil { <ide> close(c.agentInitDone) <ide> c.agentInitDone = nil <add> c.agentStopDone = make(chan struct{}) <ide> } <ide> c.Unlock() <ide> <ide><path>libnetwork/controller.go <ide> type N...
2
PHP
PHP
remove redundant test
a8db3e3df3c732b55aa7f8e5ebfb8bbe4abc7243
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testFormEnd() { <ide> $this->assertEquals('</form>', $this->Form->end()); <ide> } <ide> <del>/** <del> * testMultipleFormWithIdFields method <del> * <del> * @return void <del> */ <del> public function testMultipleFormWithIdFields() { <de...
1
Python
Python
add clarity to gcs_download_operator params
ce17c9b1d1cddb9cd008908ec289210c583da0f9
<ide><path>airflow/contrib/operators/gcs_download_operator.py <ide> class GoogleCloudStorageDownloadOperator(BaseOperator): <ide> set the ``store_to_xcom_key`` parameter to True push the file content into xcom. When the file size <ide> exceeds the maximum size for xcom it is recommended to write to a file. <ide...
1
Ruby
Ruby
add fetch_dependency method
48918bb5e33440d97c7ce12186b97fb0026e4bbf
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install_dependencies(deps) <ide> @show_header = true unless deps.empty? <ide> end <ide> <add> def fetch_dependency(dep) <add> df = dep.to_formula <add> fi = FormulaInstaller.new(df) <add> <add> fi.build_from_source = Homebrew.args.build_f...
1
Go
Go
fix lint issue
67ecbba4ff24895389b347977be6342b544da8e7
<ide><path>libnetwork/drivers/bridge/bridge.go <ide> func (n *bridgeNetwork) isolateNetwork(others []*bridgeNetwork, enable bool) err <ide> } <ide> <ide> // Install the rules to isolate this network against each of the other networks <del> if err := setINC(thisConfig.BridgeName, enable); err != nil { <del> return e...
1
Java
Java
implement nativeanimated offsets on android
8e81644f64b96ab4726ce37a6a328acbe4a32783
<ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java <ide> public void update() { <ide> for (int i = 0; i < mInputNodes.length; i++) { <ide> AnimatedNode animatedNode = mNativeAnimatedNodesManager.getNodeById(mInputNodes[i]); <ide> if (animatedNode != null && anima...
12
Go
Go
remove obnoxious types file
244e59e94f153af82e6c3bd8a6c200a48d3cea60
<ide><path>daemon/stats/collector.go <ide> package stats // import "github.com/docker/docker/daemon/stats" <ide> <ide> import ( <add> "bufio" <add> "sync" <ide> "time" <ide> <ide> "github.com/docker/docker/api/types" <ide> import ( <ide> "github.com/sirupsen/logrus" <ide> ) <ide> <add>// Collector manages and pro...
2
PHP
PHP
apply fixes from styleci
4902c74f609b31835fcdf729f85d3f3e8254ae51
<ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php <ide> protected function writeView() <ide> <ide> file_put_contents( <ide> $path.'.blade.php', <del> "<div> <del> <!-- ".Inspiring::quote()." --> <del></div>" <add> '<div> <add> <!-- '.Inspiring::quote(...
6
PHP
PHP
improve eager loading performance on mysql
a4405e91af27429f9e879d8754769cb68eb208d6
<ide><path>src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php <ide> public function addConstraints() <ide> */ <ide> public function addEagerConstraints(array $models) <ide> { <del> $this->query->whereIn( <add> $whereIn = in_array($this->parent->getKeyType(), ['int', 'integer']) ? 'wh...
7
Java
Java
detect order on target class as well
1aec6a6cc29c54cd74a7e609a2fa08d39835abe1
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java <ide> public FactoryAwareOrderSourceProvider(Map<Object, String> instancesToBeanNames) <ide> <ide> @Override <ide> public Object getOrderSource(Object obj) { <del> return getFactoryMethod(this.instance...
4
Javascript
Javascript
add a disclaimer to internal invariants
ac76c95fbc70d486e5619fcfa813d742c559a902
<ide><path>src/renderers/shared/fiber/ReactChildFiber.js <ide> if (__DEV__) { <ide> } <ide> invariant( <ide> typeof child._store === 'object', <del> 'React Component in warnForMissingKey should have a _store', <add> 'React Component in warnForMissingKey should have a _store. ' + <add> 'Th...
7
Go
Go
update withinitsignature to be a daemon.option
f60d6ee4bc742ff12ff295507e73d24407b64fba
<ide><path>integration/service/create_test.go <ide> func testServiceCreateInit(daemonEnabled bool) func(t *testing.T) { <ide> var ops = []daemon.Option{} <ide> <ide> if daemonEnabled { <del> ops = append(ops, daemon.WithInit) <add> ops = append(ops, daemon.WithInit()) <ide> } <ide> d := swarm.NewSwarm(t, t...
2
Javascript
Javascript
generate header ids for better linking
e8cc85f733a49ca53e8cda5a96bbaacc9a20ac7e
<ide><path>docs/spec/domSpec.js <ide> var DOM = require('../src/dom.js').DOM; <add>var normalizeHeaderToId = require('../src/dom.js').normalizeHeaderToId; <ide> <ide> describe('dom', function() { <ide> var dom; <ide> describe('dom', function() { <ide> dom = new DOM(); <ide> }); <ide> <add> describe('html', f...
5
Ruby
Ruby
fix apr formula by aliasing deparallelize to j1
ce3b7c982646ab6859e99e78b18ed69a772f9265
<ide><path>Library/Homebrew/brewkit.rb <ide> module HomebrewEnvExtension <ide> def deparallelize <ide> remove 'MAKEFLAGS', /-j\d+/ <ide> end <add> alias_method :j1, :deparallelize <ide> def gcc_4_0_1 <ide> case MACOS_VERSION <ide> when 10.5
1
Java
Java
update copyright date
91441ba653de8dcced776bdb979a98bd0e223365
<ide><path>spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ...
1
Ruby
Ruby
add signatures for `dev-cmd/unbottled`
749199632b2e5824d6c5d09c7bc83b856c13d273
<ide><path>Library/Homebrew/dev-cmd/unbottled.rb <ide> def unbottled <ide> <ide> Formulary.enable_factory_cache! <ide> <del> @bottle_tag = if args.tag.present? <del> args.tag.to_sym <del> else <del> Utils::Bottles.tag <del> end <add> @bottle_tag = args.tag.presence&.to_sym || Utils::Bottles....
1
Text
Text
update doc writing guide
6292532fd154e0b51b81f9066e86f500ade63c79
<ide><path>docs/README.md <ide> check how they look like before committing for instance). You don't have to comm <ide> ## Building the documentation <ide> <ide> Once you have setup the `doc-builder` and additional packages, you can generate the documentation by typing th <del>folowwing command: <add>following command:...
1
Go
Go
fix flakey test for log file rotate
5ea5c02c887392be1560e559a3c4d53445cf6505
<ide><path>daemon/logger/loggerutils/logfile_test.go <ide> import ( <ide> "io" <ide> "io/ioutil" <ide> "os" <add> "path/filepath" <ide> "strings" <ide> "testing" <ide> "time" <ide> import ( <ide> "github.com/docker/docker/pkg/pubsub" <ide> "github.com/docker/docker/pkg/tailfile" <ide> "gotest.tools/v3/assert" ...
1
Ruby
Ruby
pluralize formulae in tap/untap
8d44db6b40f649e292292d9e164b7aa769d635c7
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def install_tap user, repo <ide> files = [] <ide> tapd.find_formula { |file| files << file } <ide> link_tap_formula(files) <del> puts "Tapped #{files.length} formula" <add> puts "Tapped #{files.length} formula#{plural(files.length, 'e')}" <ide> <ide> i...
4