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
Java
Java
improve error message for missing request body
13403d51e589a3612f8359c8f3e4d2c21947af81
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java <ide> protected <T> Object readWithMessageConverters(NativeWebRequest webRequest, Meth <ide> Object arg = readWithMessageConverters(inputMessage, methodParam, paramType); <ide> if (ar...
1
Javascript
Javascript
create handlebars environment through proper means
8086179d596376becc2819bf1be0c878378a6d68
<ide><path>packages/ember-handlebars-compiler/lib/main.js <ide> Ember.assert("Ember Handlebars requires Handlebars version 1.0 or 1.1, " + <ide> @class Handlebars <ide> @namespace Ember <ide> */ <del>var EmberHandlebars = Ember.Handlebars = objectCreate(Handlebars); <add>var EmberHandlebars = Ember.Handlebars = Han...
1
Text
Text
fix minor typo
72e66e4d67955ca2c6abe33593e693cf7b5478e7
<ide><path>docs/api-guide/generic-views.md <ide> The following attributes control the basic view behavior. <ide> <ide> * `queryset` - The queryset that should be used for returning objects from this view. Typically, you must either set this attribute, or override the `get_queryset()` method. If you are overriding a v...
1
Javascript
Javascript
hide react routes
cd9dcc6953624f294dda95ef68db17f246668d69
<ide><path>server/boot/a-react.js <ide> const debug = debugFactory('freecc:react-server'); <ide> // add routes here as they slowly get reactified <ide> // remove their individual controllers <ide> const routes = [ <del> '/hikes', <del> '/hikes/*', <del> '/jobs' <add> // '/hikes', <add> // '/hikes/*', <add> // '/j...
1
Text
Text
add invoke test_unit to files table [ci skip]
72985ba949058167a342af546c7a1a6a02e1b9fa
<ide><path>guides/source/getting_started.md <ide> invoke test_unit <ide> create test/controllers/welcome_controller_test.rb <ide> invoke helper <ide> create app/helpers/welcome_helper.rb <add>invoke test_unit <ide> invoke assets <ide> invoke coffee <ide> create app/assets/javascripts/welcome.coffee
1
PHP
PHP
add status to redirect helper
4d2ffeef8d27980f556b7ad51c2cc68e039e5064
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function public_path($path = '') <ide> * Get an instance of the redirector. <ide> * <ide> * @param string|null $to <add> * @param int $status <ide> * @return \Illuminate\Routing\Redirector|\Illuminate\Http\RedirectResponse <ide> */ <del> function red...
1
Javascript
Javascript
fix many tests for streams2 net refactor
695abba5ac3365792c17ae3b83ba1272fb34ba5a
<ide><path>test/simple/test-child-process-disconnect.js <ide> if (process.argv[2] === 'child') { <ide> <ide> server.on('connection', function(socket) { <ide> <add> socket.resume(); <add> <ide> process.on('disconnect', function() { <ide> socket.end((process.connected).toString()); <ide> }); <ide><pa...
18
Javascript
Javascript
allow dom nodes in immutableobject
669f4b867f09cb47e603fe58e3d0174d31053769
<ide><path>src/utils/ImmutableObject.js <ide> "use strict"; <ide> <ide> var invariant = require('invariant'); <add>var isDOMNode = require('isDOMNode'); <ide> var merge = require('merge'); <ide> var mergeInto = require('mergeInto'); <ide> var mergeHelpers = require('mergeHelpers'); <ide> if (__DEV__) { <ide> * @par...
3
Javascript
Javascript
fix bug in setproctitle test
2f8596ee107261f12fc226fc70c0bcc4da535f44
<ide><path>test/simple/test-setproctitle.js <ide> assert.equal(process.title, title); <ide> exec('ps -p ' + process.pid + ' -o args=', function(error, stdout, stderr) { <ide> assert.equal(error, null); <ide> assert.equal(stderr, ''); <del> // omitting trailing \n <del> assert.equal(stdout.substring(0, stdout.leng...
1
Ruby
Ruby
improve taploader and tapformulaunavailableerror
140f8e3df780cee9d69c7d314d62ca0abe4a42de
<ide><path>Library/Homebrew/exceptions.rb <ide> def to_s <ide> end <ide> <ide> class TapFormulaUnavailableError < FormulaUnavailableError <del> attr_reader :user, :repo, :shortname <add> attr_reader :tap <ide> <del> def initialize name <del> super <del> @user, @repo, @shortname = name.split("/", 3) <add> de...
2
Ruby
Ruby
push multi-parameter assignement into the types
631707a572fe14f3bbea2779cc97fcc581048d62
<ide><path>activerecord/lib/active_record/aggregations.rb <ide> def writer_method(name, class_name, mapping, allow_nil, converter) <ide> define_method("#{name}=") do |part| <ide> klass = class_name.constantize <ide> if part.is_a?(Hash) <del> part = klass.new(*part.values) ...
12
Ruby
Ruby
remove tab chars before commands to be run
34672e669da887b40f9c35bdb49d146f166362f9
<ide><path>activerecord/lib/active_record/migration.rb <ide> def initialize(name = nil) <ide> class PendingMigrationError < MigrationError#:nodoc: <ide> def initialize(message = nil) <ide> if !message && defined?(Rails.env) <del> super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rai...
1
Ruby
Ruby
remove redundant var
6944dfb5d0a292b1187704b88d78d2e07a31324e
<ide><path>activesupport/test/dependencies_test.rb <ide> def test_const_missing_within_anonymous_module <ide> m = Module.new <ide> m.module_eval "def a() CountingLoader; end" <ide> extend m <del> kls = nil <ide> with_autoloading_fixtures do <ide> kls = nil <ide> assert_nothing_raised { kl...
1
Java
Java
allow parsing of media types with single-quotes
7cdc53487d729c5ddbd23cde0b2d448db9faafae
<ide><path>spring-web/src/main/java/org/springframework/http/MediaType.java <ide> else if (!isQuotedString(value)) { <ide> } <ide> <ide> private boolean isQuotedString(String s) { <del> return s.length() > 1 && s.startsWith("\"") && s.endsWith("\"") ; <add> if (s.length() < 2) { <add> return false; <add> } <add...
2
PHP
PHP
fix cs errors
ddffdfffac49669efb51b7aadba8d832e595d564
<ide><path>src/Database/Connection.php <ide> public function enableSavePoints($enable) <ide> /** <ide> * Disables the usage of savepoints. <ide> * <del> * @param bool $enable Whether or not save points should be used. <ide> * @return $this <ide> */ <ide> public function disableSavePoints...
2
Text
Text
update error handling operators docs
fba8b61b08f3f11e588ed2e7f7b3c183eb71eab8
<ide><path>docs/Error-Handling-Operators.md <del>There are a variety of operators that you can use to react to or recover from `onError` notifications from Observables. For example, you might: <add>There are a variety of operators that you can use to react to or recover from `onError` notifications from reactive source...
1
Text
Text
remove reference to assets version option
fba2473a5baae4f70db0290a8d444c6b80586927
<ide><path>guides/source/configuring.md <ide> pipeline is enabled. It is set to true by default. <ide> <ide> * `config.assets.cache_store` defines the cache store that Sprockets will use. The default is the Rails file store. <ide> <del>* `config.assets.version` is an option string that is used in MD5 hash generation....
1
Ruby
Ruby
add flag to reset repository and taps
857da689bfd513b11ea050102b00c69340a6fa90
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> # --dry-run: Just print commands, don't run them. <ide> # --fail-fast: Immediately exit on a failing step. <ide> # <del># --ci-master: Shortcut for Homebrew master branch CI options. <del># --ci-pr: Shortcut for Homebrew pull request CI optio...
1
Java
Java
introduce hasjavascriptexceptionmetadata interface
6fb1690de12741d3f8cbb202d7898e86e62a252c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/common/HasJavascriptExceptionMetadata.java <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * <p>This source code is licensed under the MIT license found in the LICENSE file in the root <add> * directory of this source tree. <add> *...
2
PHP
PHP
remove extra code
472a93f8710c7783af89ee93b243439e6331eb5c
<ide><path>src/Illuminate/Container/Container.php <ide> public function when($concrete) <ide> */ <ide> protected function resolvable($abstract) <ide> { <del> return $this->bound($abstract) || $this->isAlias($abstract); <add> return $this->bound($abstract); <ide> } <ide> <ide> /**
1
Javascript
Javascript
cover cluster error during dgram socket bind
d3be0f88181b4904f5ceddb88043ef589d777c45
<ide><path>test/parallel/test-dgram-cluster-bind-error.js <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const cluster = require('cluster'); <add>const dgram = require('dgram'); <add>const { UV_UNKNOWN } = process.binding('uv'); <add> <add>if (cluster.isMaster) ...
1
PHP
PHP
add fieldnames() to form contexts
8451e716b62be21ee61ebb6a4d9a70676343e39f
<ide><path>src/View/Form/ArrayContext.php <ide> public function isRequired($field) { <ide> return (bool)$required; <ide> } <ide> <add>/** <add> * {@inheritDoc} <add> */ <add> public function fieldNames() { <add> $schema = $this->_context['schema']; <add> unset($schema['_constraints'], $schema['_indexes']); <add> ...
5
Javascript
Javascript
remove unused function
5cc1428d5f7a8c72e12d7346488b87390f995a5d
<ide><path>src/node.js <ide> var module = (function () { <ide> }; <ide> <ide> <del> function cat (id) { <del> requireNative('fs').readFile(id, 'utf8'); <del> } <del> <del> <ide> // Returns exception if any <ide> Module.prototype._compile = function (content, filename) { <ide> var self = this;
1
Python
Python
remove httplib wrapper and start on requests
b2f5b22622c6fde7c3085afd2e339bdb2eb69f81
<ide><path>libcloud/httplib_ssl.py <ide> verification, depending on libcloud.security settings. <ide> """ <ide> import os <del>import sys <ide> import socket <del>import ssl <ide> import base64 <ide> import warnings <ide> <add>import requests <add> <ide> import libcloud.security <ide> from libcloud.utils.py3 import b ...
1
Python
Python
add test_connection method to airbyte hook
75c91b4acf1ed45d6ccf60a6e1326700233a4f05
<ide><path>airflow/providers/airbyte/hooks/airbyte.py <ide> def get_job(self, job_id: int) -> Any: <ide> json={"id": job_id}, <ide> headers={"accept": "application/json"}, <ide> ) <add> <add> def test_connection(self): <add> """Tests the Airbyte connection by hitting the health...
2
PHP
PHP
fix property declaration
c1a93e93605e1fdfa9947281f30c6ddb0d5eecef
<ide><path>lib/Cake/Network/Http/Cookies.php <ide> class Cookies { <ide> * <ide> * @var array <ide> */ <del> protected $cookies = []; <add> protected $_cookies = []; <ide> <ide> /** <ide> * Store the cookies from a response.
1
Text
Text
move instructions out of requirements
f3d36a9726deffa47df4b452ca2cef020b799c40
<ide><path>docs/build-instructions/windows.md <ide> * [node.js](http://nodejs.org/download/) v0.10.x <ide> * [Python](http://www.python.org/download/) v2.7.x <ide> * [GitHub for Windows](http://windows.github.com/) <del> * Log in to the GitHub for Windows GUI App <del> * Open the `Git Shell` app which was insta...
1
Javascript
Javascript
use parsecommandline in atom-application-test.js
52ea92803dec1f457ad38a86089f98a11ee012eb
<ide><path>spec/main-process/atom-application.test.js <ide> import fs from 'fs-plus' <ide> import path from 'path' <ide> import temp from 'temp' <ide> import AtomApplication from '../../src/main-process/atom-application' <add>import parseCommandLine from '../../src/main-process/parse-command-line' <ide> <ide> const AT...
1
Go
Go
add compat 1.8
3a610f754f425ea6042c3f8b5452273656a06c90
<ide><path>api.go <ide> import ( <ide> ) <ide> <ide> const ( <del> APIVERSION = 1.8 <add> APIVERSION = 1.9 <ide> DEFAULTHTTPHOST = "127.0.0.1" <ide> DEFAULTHTTPPORT = 4243 <ide> DEFAULTUNIXSOCKET = "/var/run/docker.sock" <ide> func getImagesJSON(srv *Server, version float64, w http.ResponseWriter,...
7
Python
Python
add connection arguments in s3tosnowflakeoperator
dbf751112f3f978b1e21ffb91d696035c5e0109c
<ide><path>airflow/providers/snowflake/transfers/s3_to_snowflake.py <ide> class S3ToSnowflakeOperator(BaseOperator): <ide> :type s3_keys: list <ide> :param table: reference to a specific table in snowflake database <ide> :type table: str <del> :param stage: reference to a specific snowflake stage <add> ...
1
Javascript
Javascript
fix minor typos on documentation
79e33078f288f07bd9dfbbbeda0c2deb924786cd
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> var TextInput = React.createClass({ <ide> autoFocus: PropTypes.bool, <ide> /** <ide> * Set the position of the cursor from where editing will begin. <del> * @platorm android <add> * @platform android <ide> */ <ide> textAlign: Pro...
1
Javascript
Javascript
add util.format benchmark
735e0df8e4e8f79256b10959110aa35b466e0cb3
<ide><path>benchmark/util/format.js <add>'use strict'; <add> <add>const util = require('util'); <add>const common = require('../common'); <add>const v8 = require('v8'); <add>const bench = common.createBenchmark(main, { <add> n: [1e6] <add>, type: ['string', <add> 'number', <add> 'object', <add> ...
1
Javascript
Javascript
remove alertexample from rntester in ios
803480aef5d3f9a2a261d043d77ef03a721b326f
<ide><path>RNTester/js/RNTesterList.ios.js <ide> const APIExamples: Array<RNTesterExample> = [ <ide> module: require('./ActionSheetIOSExample'), <ide> supportsTVOS: true, <ide> }, <del> { <del> key: 'AlertExample', <del> module: require('./AlertExample').AlertExample, <del> supportsTVOS: true, <del>...
1
PHP
PHP
apply fixes from styleci
20541a6a62af1ed2f44fdee51043ffb4b739bdb8
<ide><path>src/Illuminate/Queue/Jobs/Job.php <ide> <ide> namespace Illuminate\Queue\Jobs; <ide> <del>use Illuminate\Support\Arr; <ide> use Illuminate\Queue\CalculatesDelays; <ide> <ide> abstract class Job <ide><path>src/Illuminate/Queue/Queue.php <ide> namespace Illuminate\Queue; <ide> <ide> use Illuminate\Support\...
2
Go
Go
remove run from the add instruction
d0084ce5f23453fbc008f5a2c5dd147b0df890e7
<ide><path>buildfile.go <ide> func (b *buildFile) CmdAdd(args string) error { <ide> <ide> cmd := b.config.Cmd <ide> b.config.Cmd = []string{"/bin/sh", "-c", fmt.Sprintf("#(nop) ADD %s in %s", orig, dest)} <del> cid, err := b.run() <add> <add> // Create the container and start it <add> c, err := b.builder.Create(b.co...
1
Python
Python
add test that einsum multiplies scalars fine
610faef24ae57bfb9e9e7f95179e1e405f4c9f0d
<ide><path>numpy/core/tests/test_einsum.py <ide> def check_einsum_sums(self, dtype): <ide> assert_equal(np.einsum(a, [0,0]), np.trace(a).astype(dtype)) <ide> <ide> # multiply(a, b) <add> assert_equal(np.einsum("..., ...", 3, 4), 12) # scalar case <ide> for n in range(1,17): <ide> ...
1
Text
Text
add psmarshall to collaborators
53be304614509d12be024fd8a24b6449c4b90bbf
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Minqi Pan** &lt;pmq2001@gmail.com&gt; <ide> * [princejwesley](https://github.com/princejwesley) - <ide> **Prince John Wesley** &lt;princejohnwesley@gmail.com&gt; <add>* [psmarshall](https://github.com/psmarshall) - <add>...
1
Text
Text
add wisr to inthewild.md
59c67203a76709fffa9a314d77501d877055ca39
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Whistle Labs](http://www.whistle.com) [[@ananya77041](https://github.com/ananya77041)] <ide> 1. [Wildlifestudios](https://wildlifestudios.com/) <ide> 1. [WiseBanyan](https://wisebanyan.com/) <add>1. [Wisr](https://wisr.com.au/) [[@fsodano]...
1
Javascript
Javascript
change logging level for e2e tests to info
e1ec5c7963a3f19700f951104959cffd2ed41caa
<ide><path>karma-e2e.conf.js <ide> files = ['build/angular-scenario.js', ANGULAR_SCENARIO_ADAPTER, 'build/docs/docs <ide> <ide> autoWatch = false; <ide> singleRun = true; <del>logLevel = LOG_DEBUG; <add>logLevel = LOG_INFO; <ide> logColors = true; <ide> browsers = ['Chrome']; <ide>
1
PHP
PHP
use relation setter
8031ca04f8c39a3650a84abc109db5fe8880c75f
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function getRelationshipFromMethod($method) <ide> .'Illuminate\Database\Eloquent\Relations\Relation'); <ide> } <ide> <del> return $this->relations[$method] = $relations->getResults(); <add> $this->setRelation($m...
1
Python
Python
use time.time() if task has a none timestamp
9a6a60479ef1f866b076af1c92c1b2ca8832de87
<ide><path>celery/bin/celeryev.py <ide> def draw(self): <ide> attr = curses.A_NORMAL <ide> if task.uuid == self.selected_task: <ide> attr = curses.A_STANDOUT <del> timestamp = datetime.fromtimestamp(task.timestamp) <add> ...
1
PHP
PHP
add getjsonoptions to jsonresponse
0fd87284daff20f4d674a2498e266ce5fc832f50
<ide><path>src/Illuminate/Http/JsonResponse.php <ide> public function setJsonOptions($options) <ide> return $this->setData($this->getData()); <ide> } <ide> <add> /** <add> * Get the JSON encoding options. <add> * <add> * @return int <add> */ <add> public function getJsonOptions() <add> { <add> return $this->js...
2
Java
Java
create turbomodulemanager earlier
e6f28bb4f7982fc2518e3699e708cfabd313e1cf
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> import com.facebook.react.bridge.CatalystInstanceImpl; <ide> import com.facebook.react.bridge.JSBundleLoader; <ide> import com.facebook.react.bridge.JSIModulePackage; <add>import com.facebook.react.bridge.JSIModuleType; <ide> impor...
3
Python
Python
fix broken import in the test file
8c31ebdd175fa928e0507fc3b07373506afcc96d
<ide><path>libcloud/test/compute/test_dimensiondata.py <ide> from libcloud.utils.py3 import httplib <ide> <ide> from libcloud.common.types import InvalidCredsError <add>from libcloud.common.dimensiondata import DimensionDataAPIException <ide> from libcloud.compute.drivers.dimensiondata import DimensionDataNodeDriver a...
1
Javascript
Javascript
add test for query param bug
e56a6add8de788baa6bee2865c469e6f7bdc1fb9
<ide><path>test/integration/link-with-encoding/pages/index.js <ide> const Home = () => ( <ide> > <ide> <a id="single-colon">Single: :</a> <ide> </Link> <add> <br /> <add> <Link href="/query?id=http://example.com/"> <add> <a id="url-param">Url query param</a> <add> </Link> <ide> </div> <ide...
3
Python
Python
test taskwrapper on_acknowledgement
327f0b2af565d80e0ec0b4a9cfc6bfcc7aae2ca1
<ide><path>celery/tests/test_worker_job.py <ide> from carrot.backends.base import BaseMessage <ide> import simplejson <ide> <add>scratch = {"ACK": False} <add> <add> <add>def on_ack(): <add> scratch["ACK"] = True <add> <ide> <ide> def mytask(i, **kwargs): <ide> return i ** i <ide> def test_execute(self): <ide>...
1
Text
Text
fix typo `lunix` → `linux`
b508d90449515d8eb892557b6db0e9b57ee444a5
<ide><path>examples/with-env-from-next-config-js/README.md <ide> Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut <ide> > ## Special note <ide> > <ide> > `next build` does a hard coded variable substitution into your JavaScript before the final bundle is created. This means <del>> that i...
1
Python
Python
handle msvc intrisincs in check_func
1a555279787f77ecd8b26b30ad7edb36d73d5374
<ide><path>numpy/distutils/command/config.py <ide> def check_func(self, func, <ide> body = [] <ide> if decl: <ide> body.append("int %s ();" % func) <add> # Handle MSVC intrisincs: force MS compiler to make a function call. <add> # Useful to test for some functions when built wi...
1
PHP
PHP
fix some typos
4a30af21e209c57ce2b798b6f38e623f096468de
<ide><path>src/Http/Client/Request.php <ide> protected function addHeaders(array $headers) <ide> * @param string $name The name of the cookie to get/set <ide> * @param string|null $value Either the value or null when getting values. <ide> * @return mixed Either $this or the cookie value. <del> * @dep...
4
Javascript
Javascript
add jsdoc details for event and eventtarget
9d6bd102eed90eb9c50324340c3de05f42a985bd
<ide><path>lib/internal/event_target.js <ide> function isEvent(value) { <ide> } <ide> <ide> class Event { <add> /** <add> * @param {string} type <add> * @param {{ <add> * bubbles?: boolean, <add> * cancelable?: boolean, <add> * composed?: boolean, <add> * }} [options] <add> */ <ide> constructor(...
1
Python
Python
add clip tokenizer to autotokenizer
68b69072908b51ddbc93cdc87ca6b566517fcc70
<ide><path>src/transformers/models/auto/tokenization_auto.py <ide> "RemBertTokenizerFast" if is_tokenizers_available() else None, <ide> ), <ide> ), <add> ( <add> "clip", <add> ( <add> "CLIPTokenizer", <add> ...
1
Python
Python
fix typo in tile
ba6b099b3d4b97fe933e0ebf5f18ca29f8111855
<ide><path>numpy/lib/shape_base.py <ide> def kron(a,b): <ide> return result <ide> <ide> def tile(A, reps): <del> """Repeat an array the number of times given in the integer tuple, tup. <add> """Repeat an array the number of times given in the integer tuple, reps. <ide> <ide> If reps has length d, the re...
1
Java
Java
remove obsolete runtimehintsutils
e1c94d7e6b35ec0081ff3ffdc3b112dcbe2245de
<ide><path>spring-core/src/main/java/org/springframework/aot/hint/support/RuntimeHintsUtils.java <del>/* <del> * Copyright 2002-2022 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <d...
2
Javascript
Javascript
add plane.intersectline with unit tests
3595365f6b45995aa442d1d3039c92e9a91dae5a
<ide><path>src/math/Plane.js <ide> THREE.Plane.prototype = { <ide> <ide> }, <ide> <add> intersectLine: function ( startPoint, endPoint, optionalTarget ) { <add> <add> var result = optionalTarget || new THREE.Vector3(); <add> <add> var direction = THREE.Plane.__v1.sub( endPoint, startPoint ); <add> <add> var denom...
2
Text
Text
add imports in validators docs
54096dc22f255140f148906e85da5e4be0048f10
<ide><path>docs/api-guide/validators.md <ide> It takes a single required argument, and an optional `messages` argument: <ide> <ide> This validator should be applied to *serializer fields*, like so: <ide> <add> from rest_framework.validators import UniqueValidator <add> <ide> slug = SlugField( <ide> max...
1
Python
Python
add missing test
67a432c273cbd65866b1d2cb1e2c62714b633b6e
<ide><path>tests/keras/utils/np_utils_test.py <ide> def test_to_categorical(): <ide> expected_shapes = [(3, num_classes), <ide> (4, 3, num_classes), <ide> (5, 4, 3, num_classes), <del> (3, num_classes)] <add> (3, num_classes),...
1
Ruby
Ruby
convert resource test to spec
babc375372df635c023977de9f1279a7689e2453
<ide><path>Library/Homebrew/test/resource_spec.rb <add>require "resource" <add> <add>describe Resource do <add> subject { described_class.new("test") } <add> <add> describe "#url" do <add> it "sets the URL" do <add> subject.url("foo") <add> expect(subject.url).to eq("foo") <add> end <add> <add> it ...
2
Javascript
Javascript
fix failing tests in ie7 by normalizing url
8267e07a7b054421122f34a73c68c43c8e33204a
<ide><path>packages/ember/tests/helpers/link_to_test.js <ide> test("The {{linkTo}} helper supports leaving off .index for nested routes", func <ide> router.handleURL("/about/item"); <ide> }); <ide> <del> equal(Ember.$('#item a', '#qunit-fixture').attr('href'), '/about'); <add> equal(normalizeUrl(Ember.$('#item...
1
Ruby
Ruby
fix odd indentation
e0d147fa905eb5cd71797777c69b0aaff0802eb5
<ide><path>activerecord/lib/arel/visitors/mysql.rb <ide> def visit_Arel_Nodes_Union(o, collector, suppress_parens = false) <ide> collector << "( " <ide> end <ide> <del> collector = case o.left <del> when Arel::Nodes::Union <del> visit_Are...
1
Ruby
Ruby
fix gdk-pixbuf module installation
d6851033f9da72746eea1e382e228c4abb311e76
<ide><path>Library/Homebrew/keg.rb <ide> def link <ide> # pkg-config database gets explicitly created <ide> when 'pkgconfig' then :mkpath <ide> # lib/language folders also get explicitly created <add> when /^gdk-pixbuf/ then :mkpath <ide> when 'ghc' then :mkpath <ide> when 'lua' then ...
1
Text
Text
adjust paths in openssl maintenance guide
a1b6ae6ca69a4f43405dbd3de140e54077055b95
<ide><path>doc/guides/maintaining-openssl.md <ide> Update all architecture dependent files. Do not forget to git add or remove <ide> files if they are changed before commit: <ide> ```sh <ide> % git add deps/openssl/config/archs <del>% git add deps/openssl/openssl/crypto/include/internal/bn_conf.h <del>% git add deps/op...
1
PHP
PHP
update auth helper
96cc81037f25b99c4a3e9dc3ff7194277240a9f3
<ide><path>src/Illuminate/Foundation/helpers.php <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\HtmlString; <ide> use Illuminate\Container\Container; <del>use Illuminate\Contracts\Auth\Guard; <ide> use Illuminate\Contracts\Auth\Access\Gate; <ide> use Illuminate\Contracts\Routing\UrlGenerator; <ide> use ...
1
PHP
PHP
add missing methods to repositoryinterface
683ddea5243eea02cb6aa763d0afa7d843c5b612
<ide><path>src/Datasource/RepositoryInterface.php <ide> /** <ide> * Describes the methods that any class representing a data storage should <ide> * comply with. <del> * <del> * @method $this setAlias($alias) <del> * @method string getAlias() <ide> */ <ide> interface RepositoryInterface <ide> { <add> /** <add> ...
3
Ruby
Ruby
allow custom purpose for activestorage signed ids
8ef5bd9ced351162b673904a0b77c7034ca2bc20
<ide><path>activestorage/app/models/active_storage/blob.rb <ide> class << self <ide> # that was created ahead of the upload itself on form submission. <ide> # <ide> # The signed ID is also used to create stable URLs for the blob through the BlobsController. <del> def find_signed!(id, record: nil) <del> ...
2
Ruby
Ruby
fix postgresql range tests
f8b4110f009a8d509f0350da4c1388c5a5bb4a2d
<ide><path>activerecord/test/cases/adapters/postgresql/range_test.rb <ide> def setup <ide> @connection = ActiveRecord::Base.connection <ide> begin <ide> @connection.transaction do <del> @connection.create_table('json_data_type') do |t| <add> @connection.create_table('postgresql_ran...
1
PHP
PHP
add a "where date" statement to the query
6469e261ec75a415fd626a4b5ab9bb07adddcd43
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function orWhereNotNull($column) <ide> { <ide> return $this->whereNotNull($column, 'or'); <ide> } <del> <add> <add> /** <add> * Add a "where date" statement to the query. <add> * <add> * @param string $column <add> * @param string $operator...
1
Javascript
Javascript
improve code readability
bd76c7a3ecce17b8bf3004e4cc626f6ec8966e85
<ide><path>examples/js/loaders/AssimpLoader.js <ide> THREE.AssimpLoader.prototype = { <ide> <ide> } <ide> <del> if ( ! key ) return null; <add> if ( ! key ) { <add> <add> return null; <ide> <del> if ( key && nextKey ) { <add> } else if ( nextKey ) { <ide> <ide> var dT = nextKey.mTime - key.mTi...
1
Javascript
Javascript
add prop() support
3800d177030d20c5c3d04e3601f892c46e723dc2
<ide><path>src/jqLite.js <ide> * - [eq()](http://api.jquery.com/eq/) <ide> * - [hasClass()](http://api.jquery.com/hasClass/) <ide> * - [parent()](http://api.jquery.com/parent/) <add> * - [prop()](http://api.jquery.com/prop/) <ide> * - [remove()](http://api.jquery.com/remove/) <ide> * - [removeAttr()](http://api.jq...
2
Javascript
Javascript
remove explicit names from initializers
15c10d5692f7eb3b354334d03a54c4c6a20a388c
<ide><path>blueprints/initializer/files/__root__/initializers/__name__.js <ide> export function initialize(/* application */) { <ide> } <ide> <ide> export default { <del> name: '<%= dasherizedModuleName %>', <ide> initialize <ide> }; <ide><path>blueprints/instance-initializer/files/__root__/instance-initializers/__...
4
Javascript
Javascript
use href instead of search to remove code uri
fb9c1001b053939b2fce715ba139e41e3374e163
<ide><path>client/utils/code-uri.js <ide> export function getCodeUri(location, decodeURIComponent) { <ide> <ide> export function removeCodeUri(location, history) { <ide> if ( <del> typeof location.search.split !== 'function' || <add> typeof location.href.split !== 'function' || <ide> typeof history.replace...
1
Ruby
Ruby
remove unused method
054e2c42a532d4f160bdb36d2b3864880c16ce4b
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def supports_primary_key? <ide> false <ide> end <ide> <del> # Does this adapter support using DISTINCT within COUNT? <del> def supports_count_distinct? <del> true <del> end <del> <ide> # Do...
1
Ruby
Ruby
add another integration test on macos
902993afe40aff3a29f94546223a3bbc4de19264
<ide><path>Library/Homebrew/test/dev-cmd/bottle_spec.rb <ide> def stub_hash(parameters) <ide> end <ide> end <ide> <del>describe "brew bottle --merge", :integration_test, :needs_linux do <add>describe "brew bottle --merge", :integration_test do <ide> let(:core_tap) { CoreTap.new } <ide> let(:tarball) do <ide> ...
1
Javascript
Javascript
add methods for formcontroller
83f445336f80a41f20a83f5b933fccd529cdc9a7
<ide><path>src/ng/directive/form.js <ide> var nullFormCtrl = { <ide> * <ide> * - keys are validation tokens (error names) — such as `required`, `url` or `email`), <ide> * - values are arrays of controls or forms that are invalid with given error. <del> * <add> * <ide> * @description <ide> * `FormController` kee...
1
Javascript
Javascript
fix navigator transition
5189c94a6e876ef5274b22c083034a561ef3d5e8
<ide><path>Libraries/CustomComponents/Navigator/Navigator.js <ide> var Navigator = React.createClass({ <ide> }, <ide> <ide> _transitionTo: function(destIndex, velocity, jumpSpringTo, cb) { <del> if ( <del> destIndex === this.state.presentedIndex && <del> this.state.transitionQueue.length === 0 <del> ...
1
PHP
PHP
move property declaration to parent class
6c9eb4e8e9ddfecd148ba633fdb53b82d018560d
<ide><path>src/Error/BaseErrorHandler.php <ide> abstract class BaseErrorHandler <ide> { <ide> <add> /** <add> * Options to use for the Error handling. <add> * <add> * @var array <add> */ <add> protected $_options = []; <add> <ide> /** <ide> * Display an error message in an environment sp...
2
Go
Go
ignore `label` and `label!` prune filters
62923f29f514fa621e7c31011c11c610cfe33ecd
<ide><path>builder/builder-next/builder.go <ide> func (b *Builder) Prune(ctx context.Context, opts types.BuildCachePruneOptions) <ide> validFilters := make(map[string]bool, 1+len(cacheFields)) <ide> validFilters["unused-for"] = true <ide> validFilters["until"] = true <add> validFilters["label"] = true // TODO(tibor...
1
Python
Python
remove some more stuff
7a5d2b998423e4392c6a8a93b1ab5ff5abd70bfe
<ide><path>libcloud/dns/drivers/rackspace.py <ide> class RackspaceUKDNSDriver(RackspaceDNSDriver): <ide> name = 'Rackspace DNS (UK)' <ide> type = Provider.RACKSPACE_UK <ide> connectionCls = RackspaceUKDNSConnection <del> <del> <del>class RackspaceAUDNSDriver(RackspaceDNSDriver): <del> name = 'Rackspace D...
6
PHP
PHP
apply fixes from styleci
656d0af4577d36770831db97df56305ffd65421b
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphToMany.php <ide> public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, <ide> protected function getCurrentlyAttachedPivots() <ide> { <ide> return parent::getCurrentlyAttachedPivots()->map(function ($record) { <del> ...
1
Python
Python
fix some lint errors
d945e99f666a096ecaf57fd6e2d556444de1dd8a
<ide><path>official/resnet/keras/keras_common.py <ide> import time <ide> <ide> from absl import flags <del>import numpy as np <add>import numpy as np # pylint: disable=g-bad-import-order <ide> import tensorflow as tf # pylint: disable=g-bad-import-order <ide> <ide> from tensorflow.python.keras.optimizer_v2 import g...
2
Javascript
Javascript
clarify the context under which log-file is used
71526995c29de8d9a13c8b5041b24eaf5ad0c891
<ide><path>src/main-process/parse-command-line.js <ide> module.exports = function parseCommandLine(processArgs) { <ide> options <ide> .alias('l', 'log-file') <ide> .string('l') <del> .describe('l', 'Log all output to file.'); <add> .describe('l', 'Log all output to file when running tests.'); <ide> op...
1
PHP
PHP
refactor the gate
5c4541bc43f22b0d99c5cc6db38781060bff836f
<ide><path>src/Illuminate/Auth/Access/Gate.php <ide> class Gate implements GateContract <ide> * @param array $afterCallbacks <ide> * @return void <ide> */ <del> public function __construct(Container $container, callable $userResolver, array $abilities = [], array $policies = [], array $beforeCallbac...
1
Javascript
Javascript
change replacement string
0ca8b1df201044019596db7173d784aeebdea0a7
<ide><path>src/stringify.js <ide> function serializeObject(obj) { <ide> val = toJsonReplacer(key, val); <ide> if (isObject(val)) { <ide> <del> if (seen.indexOf(val) >= 0) return '<<already seen>>'; <add> if (seen.indexOf(val) >= 0) return '...'; <ide> <ide> seen.push(val); <ide> } <ide><pa...
3
Text
Text
remove references to resnext from docs
4385de660eb47251e09d2f5c3f79d3c9f10727dd
<ide><path>docs/templates/applications.md <ide> Weights are downloaded automatically when instantiating a model. They are stored <ide> - [Xception](#xception) <ide> - [VGG16](#vgg16) <ide> - [VGG19](#vgg19) <del>- [ResNet, ResNetV2, ResNeXt](#resnet) <add>- [ResNet, ResNetV2](#resnet) <ide> - [InceptionV3](#inceptionv3...
1
Text
Text
update theme docs
53b0ac22cc3483acc8c71f4b360605f66313f865
<ide><path>docs/creating-a-theme.md <ide> themes which are loaded later (the order is controlled from within the Settings <ide> pane). <ide> <ide> This flexibility is helpful for users which prefer a light interface with a dark <del>syntax theme. Atom currently has interface and syntax themes but it's easy see <del>ho...
1
Python
Python
add legacy command displaying new cli counterparts
201823b91a931b6d78ef8efa48d11394a6fbf318
<ide><path>airflow/cli/cli_parser.py <ide> from tabulate import tabulate_formats <ide> <ide> from airflow import settings <add>from airflow.cli.commands.legacy_commands import check_legacy_command <ide> from airflow.configuration import conf <ide> from airflow.exceptions import AirflowException <ide> from airflow.exec...
3
Go
Go
remove unused named returns
588090c49bf2ec077626d89196515e6bef1f7a69
<ide><path>pkg/units/size.go <ide> func FromHumanSize(size string) (int64, error) { <ide> // in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and <ide> // returns the number of bytes, or -1 if the string is unparseable. <ide> // Units are case-insensitive, and the 'b' suffix is optional. <del>func RAMInBytes(siz...
1
Ruby
Ruby
fix warnings when eager loading on ruby 2.7
afce06bdb24238eb518ab59a20d114ca0091fd38
<ide><path>activesupport/lib/active_support/dependencies/autoload.rb <ide> def self.extended(base) # :nodoc: <ide> @_under_path = nil <ide> @_at_path = nil <ide> @_eager_autoload = false <add> @_eagerloaded_constants = nil <ide> end <ide> end <ide> end
1
Python
Python
prepare 2.0.9 release
c25e06f05a245ebf127ed3856eea19a7c73a9ab9
<ide><path>keras/__init__.py <ide> from . import losses <ide> from . import optimizers <ide> from . import regularizers <del># Importable from root because it's technically not a layer <add> <add># Also importable from root <ide> from .layers import Input <add>from .models import Model <add>from .models import Sequenti...
2
Text
Text
note audit --new-formula for new formula
49e9be1970ae7f58d9ed64ac2dad5187a3ea6d5d
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> Add aliases by creating symlinks in an `Aliases` directory in the tap root. <ide> <ide> You can run `brew audit --strict --online` to test formulae for adherence to Homebrew house style. The `audit` command includes warnings for trailing whitespace, preferred URL...
1
Text
Text
update default homebrew_cache (#316)
d363ae53c08abd7e658a0124e7d3bb79d38a1f08
<ide><path>share/doc/homebrew/External-Commands.md <ide> A shell script for an command named `extcmd` should be named `brew-extcmd`. This <ide> </tr> <ide> <tr> <ide> <td>HOMEBREW_CACHE</td> <del> <td>Where Homebrew caches downloaded tarballs to, typically <code>/Library/Caches/Homebrew</code>. </td> <add> <td...
1
PHP
PHP
add support for easy subscribe
becb439ce4a85e54979feff29886276ad180c232
<ide><path>src/Illuminate/Redis/Database.php <ide> public function command($method, array $parameters = array()) <ide> * @param array|string $channels <ide> * @param \Closure $callback <ide> * @param string $connection <add> * @param string $method <ide> * @return void <ide> */ <del> public function ...
1
PHP
PHP
default the content type on string bodies
2d9867fb67c5b8f981026badb690803ad84c7771
<ide><path>src/Network/Http/Client.php <ide> protected function _createRequest($method, $url, $data, $options) <ide> $request->method($method) <ide> ->url($url) <ide> ->body($data); <add> <ide> if (isset($options['type'])) { <ide> $request->header($this->_typeHeaders(...
2
Mixed
Ruby
remove sqlite support from `rails dbconsole`
688c0ec26454c9ab64d8d11fc689a3fe9ab5924f
<ide><path>railties/CHANGELOG.md <add>* Remove sqlite support from `rails dbconsole`. <add> <add> *Andrew White* <add> <ide> * Rename `railties/bin` to `railties/exe` to match the new Bundler executables <ide> convention. <ide> <ide><path>railties/lib/rails/commands/dbconsole.rb <ide> def start <ide> ...
3
Go
Go
create dirs/files as needed for bind mounts
70ef53f25e177e42046170ef59bb29ebd77a3016
<ide><path>pkg/libcontainer/mount/init.go <ide> func mountSystem(rootfs string, container *libcontainer.Container) error { <ide> return nil <ide> } <ide> <add>func createIfNotExists(path string, isDir bool) error { <add> if _, err := os.Stat(path); err != nil { <add> if os.IsNotExist(err) { <add> if isDir { <add> ...
1
Javascript
Javascript
check all properties in common.expectserror
2fef227a614a16f894b574ba9bfe84fc56b64681
<ide><path>test/common/index.js <ide> exports.expectsError = function expectsError(fn, settings, exact) { <ide> fn = undefined; <ide> } <ide> function innerFn(error) { <del> assert.strictEqual(error.code, settings.code); <ide> if ('type' in settings) { <ide> const type = settings.type; <ide> ...
1
Python
Python
add support to gradient checkpointing for longt5
5a70a77bfa07e8761b195f4239297bf22fa40ad8
<ide><path>src/transformers/models/longt5/modeling_flax_longt5.py <ide> def __init__( <ide> module = self.module_class(config=config, dtype=dtype, **kwargs) <ide> super().__init__(config, module, input_shape=input_shape, seed=seed, dtype=dtype, _do_init=_do_init) <ide> <add> def enable_gradient_chec...
1
Mixed
Text
add network id to container inspect
9f676ade0aef66bb66a26171d6bfb27f105fa1df
<ide><path>container/container_unix.go <ide> import ( <ide> // DefaultSHMSize is the default size (64MB) of the SHM which will be mounted in the container <ide> const DefaultSHMSize int64 = 67108864 <ide> <del>// Container holds the fields specific to unixen implementations. See <del>// CommonContainer for standard fi...
7
Javascript
Javascript
use common.fixtures in tls test
17857d4fc97d03020d3012ed890da509b294d0d2
<ide><path>test/parallel/test-tls-max-send-fragment.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <add> <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const assert = require('assert'); <ide> const tls = req...
1
Text
Text
add v3.0.0-beta.1 to changelog.md
f7f92863501625fc4677a5f787c8be24286ce92e
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 3.0.0-beta.1 (January 1, 2018) <add> <add>- [#15901](https://github.com/emberjs/ember.js/pull/15901) [CLEANUP] Remove Ember.Handlebars.SafeString <add>- [#15894](https://github.com/emberjs/ember.js/pull/15894) [CLEANUP] removed `immediateObserver` <add>- [...
1
PHP
PHP
update query usage in table class
9db42b1594c997296c0ccefe77243c054fd10e01
<ide><path>Cake/ORM/Table.php <ide> public function query() { <ide> */ <ide> public function updateAll($fields, $conditions) { <ide> $query = $this->query(); <del> $query->update($this->table()) <add> $query->update() <ide> ->set($fields) <ide> ->where($conditions); <ide> $statement = $query->execute(); <...
2