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
Javascript
Javascript
fix word spelling
f6210923c012e64738859be4b92700f6937d103b
<ide><path>.eslintrc.js <ide> module.exports = { <ide> ...["implements", "const", "memberof", "readonly", "yields"].reduce( <ide> (acc, tag) => { <ide> acc[tag] = { <del> message: `@${tag} currently not supported in Typescript` <add> message: `@${tag} currently not supported in TypeScript` <i...
1
Java
Java
use a surface switch
bc06d1cc9c8683115a85207c7f461c5ff82b5ef1
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> private void attachRootViewToInstance(final ReactRootView rootView) { <ide> <ide> @Nullable Bundle initialProperties = rootView.getAppProperties(); <ide> final int rootTag = uiManagerModule.addRootView( <del> rootView...
2
Javascript
Javascript
fix strictequal assertion arguments
90e72daad5b9020e90b11c9f125cbe996354d679
<ide><path>test/parallel/test-buffer-alloc.js <ide> const SlowBuffer = require('buffer').SlowBuffer; <ide> <ide> <ide> const b = Buffer.allocUnsafe(1024); <del>assert.strictEqual(1024, b.length); <add>assert.strictEqual(b.length, 1024); <ide> <ide> b[0] = -1; <ide> assert.strictEqual(b[0], 255); <ide> for (let i = 0...
1
PHP
PHP
apply fixes from styleci
22cdcf7cd02a6e35146b4737321a7ce18a075d43
<ide><path>tests/Integration/Console/ConsoleApplicationTest.php <ide> use Illuminate\Console\Command; <ide> use Orchestra\Testbench\TestCase; <ide> use Illuminate\Contracts\Console\Kernel; <del>use Illuminate\Foundation\Testing\PendingCommand; <ide> <ide> class ConsoleApplicationTest extends TestCase <ide> {
1
Go
Go
address feedback from tonis
0cba7740d41369eee33b671f26276325580bc07b
<ide><path>builder/dockerfile/builder.go <ide> func addNodesForLabelOption(dockerfile *parser.Node, labels map[string]string) { <ide> // <ide> // TODO: Remove? <ide> func BuildFromConfig(config *container.Config, changes []string, os string) (*container.Config, error) { <add> if !system.IsOSSupported(os) { <add> retur...
24
PHP
PHP
add accessor for reading individual files
96630e240a7b0133c443b3899c7636efb1102855
<ide><path>src/Network/Request.php <ide> public function getAttributes() <ide> return $this->attributes + $emulated; <ide> } <ide> <add> /** <add> * Get the uploaded file from a dotted path. <add> * <add> * @param string $path The dot separated path to the file you want. <add> * @return ...
2
Text
Text
update seed code for d3.js challenge
f8aa6c04e20cf363d727d93c366f34894625110a
<ide><path>curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/change-the-presentation-of-a-bar-chart.md <ide> assert( <ide> .bar { <ide> width: 25px; <ide> height: 100px; <del> /* Only change code below this line */ <add> /* Add your code below this line */ <ide> <ide> ...
1
Javascript
Javascript
add info circle to claim cert steps
1805631e4a03e7c97950d22090e06650ed9a62a7
<ide><path>client/src/templates/Introduction/components/ClaimCertSteps.js <ide> import { withTranslation, useTranslation } from 'react-i18next'; <ide> import { connect } from 'react-redux'; <ide> import { createSelector } from 'reselect'; <ide> <add>import IntroInformation from '../../../assets/icons/IntroInformation'...
1
PHP
PHP
add doc blocks to callbackstatement
a79b614bef74503ac2c9bb18a33658b305d40fe7
<ide><path>Cake/Database/Statement/CallbackStatement.php <ide> */ <ide> namespace Cake\Database\Statement; <ide> <add>/** <add> * Wraps a statement in a callback that allows row results <add> * to be modified when being fetched. <add> * <add> * This is used by CakePHP to eagerly load association data. <add> */ <ide> ...
1
Ruby
Ruby
use rails() instead of system()
75afb43a25eacaefd7487dfa1f95be03c06c62ee
<ide><path>railties/test/application/assets_test.rb <ide> def teardown <ide> def precompile!(env = nil) <ide> with_env env.to_h do <ide> quietly do <del> precompile_task = "bin/rails assets:precompile --trace 2>&1" <del> output = Dir.chdir(app_path) { %x[ #{precompile_task} ] } <del>...
1
Javascript
Javascript
add tests for jwt authorization
36c473799839bd4b31d29a0aa418f8c5f527d1f5
<ide><path>api-server/server/middlewares/jwt-authorizaion.test.js <del>/* global describe xdescribe it expect */ <del>import { isWhiteListedPath } from './jwt-authorization'; <del> <del>describe('jwt-authorization', () => { <del> describe('isWhiteListedPath', () => { <del> const whiteList = [/^\/is-ok\//, /^\/this-...
3
Java
Java
fix related classes for issue
6bbd921cd4e0da242b2fa97a80fdf488ebf70e44
<ide><path>rxjava-core/src/main/java/rx/internal/operators/OnSubscribeFromIterable.java <ide> public void request(long n) { <ide> } <ide> o.onNext(it.next()); <ide> } <del> o.onCompleted(); <add> if (!o.isUnsubscribed()) { <add> ...
4
Ruby
Ruby
use short formula name in bottle commit
656c713d6c549a1ae1dc25cdc1f9bb887dfd8440
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def merge <ide> end <ide> <ide> unless ARGV.include? "--no-commit" <add> short_name = formula_name.split("/", -1).last <ide> pkg_version = bottle_hash["formula"]["pkg_version"] <ide> <ide> path.parent.cd do <ide> ...
1
Ruby
Ruby
ignore processing instructions when parsing html
303d379dadaf8c5b0b4518173b2689b003c213a8
<ide><path>actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb <ide> def scan_tag <ide> elsif @scanner.scan(/!/) # doctype <ide> tag << @scanner.matched <ide> tag << consume_quoted_regions <add> elsif @scanner.scan(/\?/) # processing instructions, drop them <add> ...
1
PHP
PHP
update tmp constant in tests
f80a10a3b0cf385b690238f5cc5913d3e6ef3137
<ide><path>lib/Cake/Test/init.php <ide> define('APP', ROOT . DS . APP_DIR . DS); <ide> define('WWW_ROOT', APP . WEBROOT_DIR . DS); <ide> define('TESTS', APP . 'Test' . DS); <del>define('TMP', APP . 'tmp' . DS); <add>define('TMP', sys_get_temp_dir() . DS); <ide> define('LOGS', TMP . 'logs' . DS); <ide> define('CACHE', T...
1
Go
Go
simplify the kill "sig" prefix stripping code
4bf70317ed3c2467f444eac9b7865b170da6366c
<ide><path>server/server.go <ide> func (srv *Server) ContainerKill(job *engine.Job) engine.Status { <ide> // The largest legal signal is 31, so let's parse on 5 bits <ide> sig, err = strconv.ParseUint(job.Args[1], 10, 5) <ide> if err != nil { <del> // The signal is not a number, treat it as a string <del> sig...
1
Text
Text
update styleguide keybinding
be561f0e5e1090cdcd0b2fae5de8b4cd29cbc21d
<ide><path>docs/creating-a-package.md <ide> Ideally, you won't need much in the way of styling. We've provided a standard <ide> set of components which define both the colors and UI elements for any package <ide> that fits into Atom seamlessly. You can view all of Atom's UI components by opening <ide> the styleguide: o...
1
Go
Go
add tests for loadmanifest digest verification
74528be903d2f6c9e07ab9a3931b050d5dae6562
<ide><path>graph/manifest_test.go <ide> import ( <ide> "os" <ide> "testing" <ide> <add> "github.com/docker/distribution/digest" <ide> "github.com/docker/docker/image" <ide> "github.com/docker/docker/pkg/tarsum" <ide> "github.com/docker/docker/registry" <ide> "github.com/docker/docker/runconfig" <ide> "github.co...
2
Ruby
Ruby
make `in_batches` queries to preparable
7d5399379cb9ac2d3ffafa28fdc844d7b6c18ab8
<ide><path>activerecord/lib/active_record/relation/batches.rb <ide> def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: <ide> end <ide> end <ide> <del> batch_relation = relation.where(arel_attribute(primary_key).gt(primary_key_offset)) <add> attr = Relation::...
1
Text
Text
add docker commands to local setup
1d6c43c612fbb8cc4d7f76d0ab07f63eb59a9960
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> A quick reference to the commands that you will need when working locally. <ide> <ide> **Docker Build:** <ide> <del>> ### Todo: Add docker quick command list <add>| command | description | <add>| ------- | ----------- | <add>| `npm run docker:init` | Prepare ...
1
Text
Text
fix typo in actionpack changelog.md
c3d5c9447a49fae7a4507b3512d65cd52f789d99
<ide><path>actionpack/CHANGELOG.md <ide> <ide> *Gustavo Gutierrez* <ide> <del>* Calling `ActionController::Parameters#transform_keys/!` without a block now returns <add>* Calling `ActionController::Parameters#transform_keys!` without a block now returns <ide> an enumerator for the parameters instead of th...
1
Javascript
Javascript
add placeholder text to forum posts
90fe00937431b68f1af13f31a4a0af6a935ae130
<ide><path>client/src/templates/Challenges/redux/create-question-epic.js <ide> function createQuestionEpic(action$, state$, { window }) { <ide> <ide> let textMessage = dedent( <ide> `**Tell us what's happening:** <add> Describe your issue in detail here. <ide> <ide> ${ <ide> pro...
1
Text
Text
prepare providers release 0.0.2a1
5a439e84eb6c0544dc6c3d6a9f4ceeb2172cd5d0
<ide><path>airflow/providers/amazon/PROVIDER_CHANGES_0.0.2a1.md <add> <add> <add>### Release 0.0.2a1 <add> <add>| Commit | Committed | Subject | <add>|:-------------------...
118
Ruby
Ruby
remove unused column types override
ea6f28c8a114396376bafe26e1af5d2ca3df6fdb
<ide><path>activerecord/lib/active_record/core.rb <ide> def initialize(attributes = nil, options = {}) <ide> end <ide> <ide> @attributes = defaults <del> @column_types_override = nil <ide> @column_types = self.class.column_types <ide> <ide> init_internals <ide> def initialize(attributes =...
2
Python
Python
move trainers to core/
cbbba228150140a14eea2361868bf66700feff4b
<ide><path>official/core/base_task_test.py <add># Lint as: python3 <add># Copyright 2020 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the ...
4
Python
Python
fix assertion error
7e8f1053bb07f4f73914b5784a87de6dcaea6bcb
<ide><path>tests/test_appctx.py <ide> def index(): <ide> c = app.test_client() <ide> res = c.get('/') <ide> assert res.status_code == 200 <del> assert res.data == u'' <add> assert res.data == b'' <ide> assert called == ['request', 'app'] <ide> <ide>
1
Go
Go
fix internal ipvlan network to work in swarm
c7f8bfa0010f6f92c875e0c11df7ecd397eca35c
<ide><path>libnetwork/drivers/ipvlan/ipvlan_network.go <ide> func parseNetworkOptions(id string, option options.Generic) (*configuration, err <ide> return nil, err <ide> } <ide> } <del> // setting the parent to "" will trigger an isolated network dummy parent link <ide> if val, ok := option[netlabel.Internal]; o...
1
PHP
PHP
fix bug in url generator
3ef7bf2bf4fc7c7b240ea1f0f1bb2e364603f4ca
<ide><path>src/Illuminate/Routing/UrlGenerator.php <ide> public function secureAsset($path) <ide> */ <ide> protected function getScheme($secure) <ide> { <del> if (is_null($secure)) <add> if ( ! $secure) <ide> { <ide> return $this->request->getScheme().'://'; <ide> } <ide><path>tests/Routing/RoutingUrlGener...
2
Javascript
Javascript
add uniquename for css module classes
bdd5d3d9d391faebf826cb951aa5a95d7f96ff07
<ide><path>lib/css/CssLoadingRuntimeModule.js <ide> class CssLoadingRuntimeModule extends RuntimeModule { <ide> const code = Template.asString([ <ide> "link = document.createElement('link');", <ide> uniqueName <del> ? 'link.setAttribute("data-webpack", dataWebpackPrefix + key);' <add> ? 'link.setAttribute...
5
Javascript
Javascript
fix dependencies when snapshot is missing
8ee39ac3ac651a0d2093292ad16e1a215b8816f1
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> contextDependencies: contextDeps, <ide> missingDependencies: missingDeps <ide> } = this.buildInfo; <del> fileDependencies.addAll(fileDeps); <del> contextDependencies.addAll(contextDeps); <del> missingDependencies.addAll(miss...
1
Javascript
Javascript
create name/dashname at seed
b1e34f8cc8554458200009fb2b2f2c82b05823f1
<ide><path>seed/index.js <ide> require('babel/register'); <ide> require('dotenv').load(); <ide> var fs = require('fs'), <add> _ = require('lodash'), <ide> path = require('path'), <ide> app = require('../server/server'), <ide> nonprofits = require('./nonprofits.json'), <ide> jobs = require('./jobs.jso...
1
Javascript
Javascript
remove redundant code
416499c872ba3db45a4dd4b88e015b679931c15f
<ide><path>lib/timers.js <ide> exports.enroll = function(item, msecs) { <ide> // it will reset its timeout. <ide> exports.active = function(item) { <ide> var msecs = item._idleTimeout; <del> if (msecs >= 0) { <del> var list = lists[msecs]; <del> if (!list || L.isEmpty(list)) { <del> insert(item, msecs); <...
1
Ruby
Ruby
use ||= instead of "return ... if ... "
4f119ad85ff77386312b4a5c3289ec53a6f29769
<ide><path>Library/Homebrew/linkage_checker.rb <ide> def unexpected_broken_dylibs <ide> end <ide> <ide> def unexpected_present_dylibs <del> return @unexpected_present_dylibs if @unexpected_present_dylibs <del> <del> @unexpected_present_dylibs = @formula.class.allowed_missing_libraries.reject do |allowed_miss...
1
Go
Go
use mock for search
9a0d7fe0182da541cc99eab9a4930616792e95c3
<ide><path>registry/registry.go <ide> func (r *Registry) PushImageJSONIndex(remote string, imgList []*ImgData, validat <ide> <ide> func (r *Registry) SearchRepositories(term string) (*SearchResults, error) { <ide> utils.Debugf("Index server: %s", r.indexEndpoint) <del> u := IndexServerAddress() + "search?q=" + url.Qu...
3
Javascript
Javascript
fix lint error
a582a1a188b981f8d72d25d26827c837c0ad8be9
<ide><path>src/get-release-channel.js <ide> module.exports = function(version) { <ide> // This matches stable, dev (with or without commit hash) and any other <ide> // release channel following the pattern '1.00.0-channel0' <del> const match = version.match( <del> /\d+\.\d+\.\d+(-([a-z]+)(\d+|-\w{4,})?)?$/ <del...
1
Mixed
Python
add (noun chunks) syntax iterators for danish
e3222fdec9efcc9a4a5d0d9b2f92099fbf36ed7b
<ide><path>.github/contributors/ophelielacroix.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or pro...
4
Javascript
Javascript
add array.flat polyfill to nomodule-polyfills
20c546710d758a17ecb7abac64208d2fa09186e4
<ide><path>packages/next-polyfill-nomodule/src/index.js <ide> import 'core-js/features/array/fill' <ide> import 'core-js/features/array/find' <ide> import 'core-js/features/array/find-index' <ide> import 'core-js/features/array/flat-map' <add>import 'core-js/features/array/flat' <ide> import 'core-js/features/array/fro...
1
PHP
PHP
apply fixes from styleci
89d9cd46e6cf764171cae2c762872aacf87d65dd
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphPivot.php <ide> <ide> namespace Illuminate\Database\Eloquent\Relations; <ide> <del>use Illuminate\Database\Eloquent\Builder; <ide> use Illuminate\Support\Str; <ide> <ide> class MorphPivot extends Pivot
1
Mixed
Javascript
create temp dir in common.js
a6b8ee19b85bbd798510191f0aee596f36b909d2
<ide><path>test/common.js <ide> exports.tmpDirName = 'tmp'; <ide> exports.PORT = +process.env.NODE_COMMON_PORT || 12346; <ide> exports.isWindows = process.platform === 'win32'; <ide> <add>function rimrafSync(p) { <add> try { <add> var st = fs.lstatSync(p); <add> } catch (e) { <add> if (e.code === 'ENOENT') <ad...
5
Go
Go
fix av in build due to userns
6d71f277608b2a655df0942d00607f47dbcaa37b
<ide><path>pkg/archive/diff.go <ide> func UnpackLayer(dest string, layer Reader, options *TarOptions) (size int64, er <ide> defer pools.BufioReader32KPool.Put(trBuf) <ide> <ide> var dirs []*tar.Header <add> <add> if options == nil { <add> options = &TarOptions{} <add> } <add> if options.ExcludePatterns == nil { <ad...
1
Go
Go
resolve connection reset by peer regression
dc0ee98805c1e9282c729a79cdf10e59bad3cb09
<ide><path>daemon/attach.go <ide> func (daemon *Daemon) ContainerAttach(prefixOrName string, c *backend.ContainerA <ide> } <ide> <ide> cfg := stream.AttachConfig{ <del> UseStdin: c.UseStdin && container.Config.OpenStdin, <add> UseStdin: c.UseStdin, <ide> UseStdout: c.UseStdout, <ide> UseStderr: c.UseStde...
1
Javascript
Javascript
upgrade stats to es6
b7c1b5c6724944a92de54590a5171f2805a48cd0
<ide><path>lib/Stats.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>var RequestShortener = require("./RequestShortener"); <del>var SizeFormatHelpers = require("./SizeFormatHelpers"); <add>"use strict"; <ide> <del>function Stats(compilation) { ...
1
Mixed
Ruby
dump warns when `mysqldump` is not in path
0a5fdcd5ae2f7928ce9ce492c9815ad71f858a9f
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Warn when `rake db:structure:dump` with a mysl database and <add> `mysqldump` is not in the PATH or fails. <add> Fixes #9518. <add> <add> *Yves Senn* <add> <ide> * Remove `connection#structure_dump`, which is no longer ...
3
PHP
PHP
add regression test for
264054d9ef36fb6b355417fb56a3cb1147441a6d
<ide><path>tests/TestCase/ORM/EntityTest.php <ide> public function testErrors() { <ide> $this->assertSame($entity, $entity->errors('foo', 'bar')); <ide> $this->assertEquals(['bar'], $entity->errors('foo')); <ide> <add> $this->assertEquals([], $entity->errors('boo')); <add> $entity['boo'] = [ <add> 'someting' =...
1
Ruby
Ruby
remove unneeded requires
a227359c6289613c870c8bb1481754ab00325c12
<ide><path>actionpack/lib/action_view/digestor.rb <del>require 'active_support/core_ext' <del>require 'logger' <del> <ide> module ActionView <ide> class Digestor <ide> EXPLICIT_DEPENDENCY = /# Template Dependency: ([^ ]+)/ <ide> def nested_dependencies <ide> def logical_name <ide> name.gsub(%r|/_|, ...
1
Ruby
Ruby
add nuclear to github_prerelease_allowlist
a176c3f75ba60ecca3701ceb219de6592dbe66d6
<ide><path>Library/Homebrew/utils/shared_audits.rb <ide> def github_release_data(user, repo, tag) <ide> "gitless" => "0.8.8", <ide> "home-assistant" => :all, <ide> "infrakit" => "0.5", <add> "nuclear" => :all, <ide> "pock" => :all, <ide> "riff" ...
1
PHP
PHP
add methods to get/set middleware on a route
9d9e566d8552450202a2d742f0024857d8f6d01b
<ide><path>src/Routing/Route/Route.php <ide> class Route <ide> */ <ide> protected $_extensions = []; <ide> <add> /** <add> * List of middleware that should be applied. <add> * <add> * @var array <add> */ <add> protected $middleware = []; <add> <ide> /** <ide> * Valid HTTP method...
2
Mixed
Javascript
support abortsignal in createsocket
21c8c7e5114c56c8326aa15f11e69d58326553da
<ide><path>doc/api/dgram.md <ide> chained. <ide> <!-- YAML <ide> added: v0.11.13 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/37026 <add> description: AbortSignal support was added. <ide> - version: v11.4.0 <ide> pr-url: https://github.com/nodejs/node/pull/237...
3
Python
Python
set version to v3.4.1
5c2a00cef04b8c6e93e81cd1ca1d752f320c6e5d
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.4.0" <add>__version__ = "3.4.1" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"...
1
Javascript
Javascript
add highlight decorations, but no tests yet
a4224922a3933c93a2827bc914bfb7ad7a95ba3e
<ide><path>src/text-editor-component.js <ide> class TextEditorComponent { <ide> this.cursorsToRender = [] <ide> this.decorationsToRender = { <ide> lineNumbers: new Map(), <del> lines: new Map() <add> lines: new Map(), <add> highlights: new Map() <add> } <add> this.decorationsToMeasure...
1
Javascript
Javascript
move reserved names to top of module
d5479d8fa7c52c79912aba45e3c86e2db32738dd
<ide><path>lib/optimize/ConcatenatedModule.js <ide> const createHash = require("../util/createHash"); <ide> /** @typedef {import("../WebpackError")} WebpackError */ <ide> /** @typedef {import("../util/createHash").Hash} Hash */ <ide> <add>const RESERVED_NAMES = [ <add> // internal name <add> "__WEBPACK_MODULE_DEFAULT_...
1
Java
Java
fix javadoc in dependencydescriptor
acae174f8f0a9013b10b10a65e63c0caf2a28337
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java <ide> public void initParameterNameDiscovery(@Nullable ParameterNameDiscoverer paramet <ide> <ide> /** <ide> * Determine the name of the wrapped parameter/field. <del> * @return the declared name (never {@code ...
1
Javascript
Javascript
move hydration code out of normal suspense path
b2763d3eaa4a56ce9c973945783aba7cac63478f
<ide><path>packages/react-reconciler/src/ReactFiberBeginWork.new.js <ide> function updateSuspenseComponent(current, workInProgress, renderLanes) { <ide> // a stack. <ide> if (current === null) { <ide> // Initial mount <add> <add> // Special path for hydration <ide> // If we're currently hydrating, try to...
4
Javascript
Javascript
remove obsolete sharedarraybuffer eslint config
82ef450e0e22ef3d5cff03d26aed7d708fa10537
<ide><path>.eslintrc.js <ide> module.exports = { <ide> ], <ide> <ide> globals: { <del> SharedArrayBuffer: true, <del> <ide> spyOnDev: true, <ide> spyOnDevAndProd: true, <ide> spyOnProd: true, <ide><path>scripts/rollup/validate/eslintrc.cjs.js <ide> module.exports = { <ide> trustedTypes: true, <i...
7
Ruby
Ruby
relax hub requirement
6dc72f2679208f34d9d09f547dda5a2ba0714a9f
<ide><path>Library/Homebrew/dev-cmd/boneyard-formula-pr.rb <ide> def boneyard_formula_pr <ide> tap_migrations = tap_migrations.sort.inject({}) { |a, e| a.merge!(e[0] => e[1]) } <ide> tap_migrations_path.atomic_write(JSON.pretty_generate(tap_migrations) + "\n") <ide> end <del> unless Formula["hub"].an...
1
Python
Python
remove unused imports.
51a2b441c65e5df4fa7b540c2c1211e3adff53cb
<ide><path>official/mnist/mnist.py <ide> from __future__ import division <ide> from __future__ import print_function <ide> <del>import argparse <del>import sys <del> <ide> from absl import app as absl_app <ide> from absl import flags <ide> import tensorflow as tf # pylint: disable=g-bad-import-order <ide><path>offici...
6
Ruby
Ruby
remove a comment that is not fact in tests
41758964e9515ae879fce0be687da2f5953bc950
<ide><path>activerecord/test/cases/calculations_test.rb <ide> def test_pluck_with_selection_clause <ide> assert_equal [50, 53, 55, 60], Account.pluck(Arel.sql("DISTINCT credit_limit")).sort <ide> assert_equal [50, 53, 55, 60], Account.pluck(Arel.sql("DISTINCT accounts.credit_limit")).sort <ide> assert_equal...
1
PHP
PHP
fix missing use of binding key in belongstomany
6fcff4875f07951294c1185fc4e1769929639ad5
<ide><path>src/ORM/Association/BelongsToMany.php <ide> protected function _generateJunctionAssociations(Table $junction, Table $source, <ide> <ide> if (!$junction->hasAssociation($sAlias)) { <ide> $junction->belongsTo($sAlias, [ <add> 'bindingKey' => $this->getBindingKey(), <ide> ...
4
Ruby
Ruby
add newline to failure message
c3b309e7957d38952a85b4d320ac73112d2733af
<ide><path>Library/Homebrew/requirements/java_requirement.rb <ide> def initialize(tags) <ide> def message <ide> version_string = " #{@version}" if @version <ide> <del> s = "Java#{version_string} is required to install this formula." <add> s = "Java#{version_string} is required to install this formula.\n" <...
1
Javascript
Javascript
remove extra scene parameter from jsm version
447d9dd95897527b504ace0b173056a30f3fe59e
<ide><path>examples/jsm/renderers/CSS2DRenderer.js <ide> var CSS2DRenderer = function () { <ide> <ide> for ( var i = 0, l = object.children.length; i < l; i ++ ) { <ide> <del> renderObject( object.children[ i ], scene, camera ); <add> renderObject( object.children[ i ], camera ); <ide> <ide> } <ide>
1
Javascript
Javascript
handle dashes in keys in tohavedata matcher
2ef6d1be965bb7e579403b809331370849709b6c
<ide><path>vendor/jasmine-jquery.js <ide> var jQueryMatchers = { <ide> <ide> toHaveData: function(key, expectedValue) { <ide> if (this.actual instanceof HTMLElement) { <del> return hasProperty(this.actual.dataset[key], expectedValue) <add> var camelCaseKey <add> for (var part of key.split('-')) { ...
1
Ruby
Ruby
replace capture2e with utils.popen
e8f78878cb81c4dec14f7e1498ead71892502072
<ide><path>Library/Homebrew/utils/livecheck.rb <ide> # frozen_string_literal: true <ide> <del>require "open3" <del> <ide> module Livecheck <del> def livecheck_formula_response(formula_name) <del> ohai "Checking livecheck formula : #{formula_name}" <del> command_args = ["brew", "livecheck", formula_name, "--quie...
2
Ruby
Ruby
add tests for credentials command
8a331566bfe05ccc85f25805693aa892cec449a5
<ide><path>railties/test/commands/credentials_test.rb <ide> class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase <ide> <ide> teardown { teardown_app } <ide> <add> test "edit without editor gives hint" do <add> assert_match "No $EDITOR to open credentials in", run_edit_command(editor: "") <add>...
1
Java
Java
fix checkstyle violations
385292dc41c62e96a083c41c9c686825db251d63
<ide><path>spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java <ide> protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource <ide> FileSystem fileSystem; <ide> try { <ide> fileSystem = FileSystems.getFileSystem(rootDirResource.getURI().r...
1
Python
Python
add a method to convert str to ascii in python 3
54b61fd5a090061b1016e1fee115c6808bbb06ed
<ide><path>glances/compat.py <ide> def mean(numbers): <ide> def to_ascii(s): <ide> """Convert the bytes string to a ASCII string <ide> Usefull to remove accent (diacritics)""" <del> return str(s, 'utf-8') <add> if isinstance(s, binary_type): <add> return s <add> retur...
1
Ruby
Ruby
add test for build.without --without-foo
02a1406a2e4c2d0506861248eb767d99f5ce4515
<ide><path>Library/Homebrew/rubocops/lines_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> problem "Don't negate 'build.without?': use 'build.with?'" <ide> end <ide> <del> # find_instance_method_call(body_node, :build, :without?) do |m| <del> ...
2
Text
Text
add links to inline html table
dd023df135207086c86129aa1683ea4688f97f53
<ide><path>doc/api/crypto.md <ide> The following constants exported by `crypto.constants` apply to various uses of <ide> the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. <ide> <ide> ### OpenSSL Options <del> <add><!--lint disable maximum-line-length--> <ide> <table> <ide> <tr> <ide> ...
1
Text
Text
add optional sudo to make install in readme
ab04a434761cf66d107481d58798f36d3cb49d46
<ide><path>README.md <ide> Prerequisites: <ide> ```text <ide> $ ./configure <ide> $ make <del>$ make install <add>$ [sudo] make install <ide> ``` <ide> <ide> If your Python binary is in a non-standard location or has a <ide> non-standard name, run the following instead: <ide> $ export PYTHON=/path/to/python <ide> $ $P...
1
Python
Python
update 2 mnist examples
ca23406974546c5214a3ec73eb903952c14ab2f0
<ide><path>examples/mnist_cnn.py <ide> import numpy as np <ide> np.random.seed(1337) # for reproducibility <ide> <add>import keras <ide> from keras.datasets import mnist <ide> from keras.models import Sequential <del>from keras.layers import Dense, Dropout, Activation, Flatten <del>from keras.layers import Convolutio...
2
PHP
PHP
add tests for cachemanager
fdcd963158587e9c69980bbf53ad8e1c34d70d9f
<ide><path>src/Illuminate/Cache/CacheManager.php <ide> protected function getPrefix(array $config) <ide> * Get the cache connection configuration. <ide> * <ide> * @param string $name <del> * @return array <add> * @return array|null <ide> */ <ide> protected function getConfig($name) <id...
2
Javascript
Javascript
remove unused require
d6e2abfd69301eb2bada951920db779c773dbea8
<ide><path>lib/dependencies/CommonJsRequireDependencyParserPlugin.js <ide> */ <ide> "use strict"; <ide> <del>const ConstDependency = require("./ConstDependency"); <ide> const CommonJsRequireDependency = require("./CommonJsRequireDependency"); <ide> const CommonJsRequireContextDependency = require("./CommonJsRequireCon...
1
PHP
PHP
fix code styling
7e7013222f98ff31db89fb732d047ce910c8753a
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> protected function compileOverwrite($expression) <ide> */ <ide> protected function compileUnless($expression) <ide> { <del> return "<?php if ( ! $expression): ?>"; <add> return "<?php if (! $expression): ?>"; <ide> } <ide> ...
2
Ruby
Ruby
prevent negative ids in output of #inspect
5bbce6fccc541b9941628cda4eda1f84c5a909ad
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def initialize <ide> end <ide> <ide> def inspect <del> "#<#{self.class.name}:0x#{(object_id << 1).to_s(16)} keys=#{@data.size} queries=#{@query_cache.size}>" <add> "#{to_s[0..-2]} keys=#{@data.size} queries=#{@query_cache.size}>...
1
Text
Text
add quotes around the brew invocation
953a1bf20b6944ef14bd9f6e5f5bc37ed191eba8
<ide><path>docs/Shell-Completion.md <ide> To make Homebrew's completions available in `bash`, you must source the definiti <ide> <ide> ```sh <ide> if type brew &>/dev/null; then <del> HOMEBREW_PREFIX=$(brew --prefix) <add> HOMEBREW_PREFIX="$(brew --prefix)" <ide> if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_com...
1
Ruby
Ruby
allow methods outside the model
9f0f7ec2223ae60ee6e2eab5bc9f036a480e9f81
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def apply_form_for_options!(record, object, options) #:nodoc: <ide> # <input type="text" name="post[title]" value="<the title of the post>"> <ide> # </form> <ide> # <add> # # Though the fields don't have to correspond to m...
3
Python
Python
attempt a port from
1eb7cc3017a6def34fb448781578888764d1e659
<ide><path>spacy/lang/ga/__init__.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <add>from .stop_words import STOP_WORDS <add> <add>from ..tokenizer_exceptions import BASE_EXCEPTIONS <add>from ...language import Language <add>from .....
3
Python
Python
change duration_ms to duration"
1d4c7993a9c6dcacaca5074a80b1043e977c43fb
<ide><path>tools/test.py <ide> def HasRun(self, output): <ide> (duration.seconds + duration.days * 24 * 3600) * 10**6) / 10**6 <ide> <ide> logger.info(' ---') <del> logger.info(' duration: %d.%ds' % (total_seconds, duration.microseconds / 1000)) <add> logger.info(' duration_ms: %d.%d' % (total_secon...
1
Text
Text
release notes for 0.10.0 chicken-hands
30e5f6274a7148c139aeafdb8098f63cbdbd5d33
<ide><path>CHANGELOG.md <add>- The Latest Stable Release: <a href="#0.9.19">0.9.19 canine-psychokinesis</a> <add>- The Latest Unstable Release: <a href="#0.10.0">0.10.0 chicken-hands</a> <add> <add> <ide> <a name="0.10.0"><a/> <del># 0.10.0 chicken-hands (in-progress) # <add># 0.10.0 chicken-hands (2011-09-02) # <add> ...
1
Javascript
Javascript
add support for title in schema
c76f7ec2f4bcca5e3361ff77fc022075368dad91
<ide><path>test/Schemas.lint.js <ide> describe("Schemas", () => { <ide> const allowedProperties = [ <ide> "definitions", <ide> "$ref", <del> "id", <add> "$id", <add> "title", <ide> "items", <ide> "properties", <ide> "additionalProperties", <ide><path>tooling/format-schemas.js <i...
2
Text
Text
update devtools post to note beta 2
3ed9581adbdc2bcf1bca0800050e7907624a83aa
<ide><path>docs/_posts/2015-08-03-new-react-devtools-beta.md <ide> Let us know what issues you run into <ide> [on GitHub](https://github.com/facebook/react-devtools/issues), and check out <ide> [the README](https://github.com/facebook/react-devtools/tree/devtools-next) <ide> for more info. <add> <add>## Update <add>*Au...
1
Text
Text
add missing link references
6c76de13c5849fb8273272490c55460e33c0c556
<ide><path>doc/api/assert.md <ide> Due to the confusing notation, it is recommended not to use a string as the <ide> second argument. This might lead to difficult-to-spot errors. <ide> <ide> [`Error.captureStackTrace`]: errors.html#errors_error_capturestacktrace_targetobject_constructoropt <add>[`Error`]: errors.html#...
2
Javascript
Javascript
reduce the number of db calls for getsessionuser
892e6862ed4ffe4a9d01fec0045475b24e9be1da
<ide><path>api-server/common/models/user.js <ide> export default function(User) { <ide> }); <ide> <ide> User.prototype.getPoints$ = function getPoints$() { <add> if ( <add> Array.isArray(this.progressTimestamps) && <add> this.progressTimestamps.length <add> ) { <add> return Observable.of(this....
4
Javascript
Javascript
add error logs in __debug__
96a7adf49e20197f802813224362470c66a38d20
<ide><path>src/devtools/store.js <ide> export default class Store extends EventEmitter { <ide> <ide> i = i + 3; <ide> <add> if (__DEBUG__) { <add> if (this._idToElement.has(id)) { <add> console.error( <add> 'Store already contains fiber ' + id + '. This is a b...
1
Java
Java
update javadoc on uricomponentsbuilder.query
dacbf4cb34d3b2cf0747daa16903c91d696655a4
<ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java <ide> public UriComponentsBuilder pathSegment(String... pathSegments) throws IllegalAr <ide> * be parsed unambiguously. Such values should be substituted for URI <ide> * variables to enable correct parsing: <ide> * <pre cla...
1
Ruby
Ruby
remove unused method
3c100cfe8ed5a875b0bbdc8fa4e8f2b0cbf78676
<ide><path>activerecord/test/models/developer.rb <ide> def find_least_recent <ide> def log=(message) <ide> audit_logs.build :message => message <ide> end <del> <del> def self.all_johns <del> self.with_exclusive_scope :find => where(:name => 'John') do <del> self.all <del> end <del> end <ide> end <i...
1
Ruby
Ruby
apply suggestions from code review
bdb64aa178c1531661d74f58cd2435c30e029272
<ide><path>Library/Homebrew/formula_installer.rb <ide> def puts_requirement_messages <ide> end <ide> <ide> def forbidden_license_check <del> forbidden_licenses = (Homebrew::EnvConfig.forbidden_licenses || "").split(" ") <add> forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.to_s.split(" ") <ide> ...
1
Ruby
Ruby
stop test resetting global state
e2b6919223cd24bc8e64b4b5230733c0d8f8e6fc
<ide><path>activerecord/test/cases/yaml_serialization_test.rb <ide> class YamlSerializationTest < ActiveRecord::TestCase <ide> fixtures :topics <ide> <ide> def test_to_yaml_with_time_with_zone_should_not_raise_exception <add> tz = Time.zone <ide> Time.zone = ActiveSupport::TimeZone["Pacific Time (US & Canad...
1
Javascript
Javascript
use a domain to catch async errors safely
c0721bcd66829356950b58cc532d6e3d8bbfc641
<ide><path>lib/repl.js <ide> var fs = require('fs'); <ide> var rl = require('readline'); <ide> var Console = require('console').Console; <ide> var EventEmitter = require('events').EventEmitter; <add>var domain = require('domain'); <ide> <ide> // If obj.hasOwnProperty has been overridden, then calling <ide> // obj.hasO...
4
Javascript
Javascript
add missing semicolon
debf96c742934543e210c48c7c11199aa614e381
<ide><path>d3.layout.js <ide> d3.layout.chord = function() { <ide> if (source.value || target.value) { <ide> chords.push(source.value < target.value <ide> ? {source: target, target: source} <del> : {source: source, target: target}) <add> : {source: source, targe...
2
Javascript
Javascript
clarify the comparator parameter
b9d2b30808db367af1c31fa0fa6cef8f1bc086d3
<ide><path>src/ng/filter/filter.js <ide> * The final result is an array of those elements that the predicate returned true for. <ide> * <ide> * @param {function(actual, expected)|true|false} [comparator] Comparator which is used in <del> * determining if the expected value (from the filter expression) and ac...
1
PHP
PHP
fix cookie sessions
a6c638b91c250a38f42536ad7123a45a2d8a9529
<ide><path>src/Illuminate/Session/Middleware/StartSession.php <ide> use Illuminate\Session\SessionManager; <ide> use Illuminate\Session\SessionInterface; <ide> use Symfony\Component\HttpFoundation\Cookie; <add>use Illuminate\Session\CookieSessionHandler; <ide> use Symfony\Component\HttpFoundation\Request; <ide> use Sym...
1
PHP
PHP
fix cs error
c3508f3b9c3c601df2fc63e3e6cf25a1b57a3f42
<ide><path>src/Error/BaseErrorHandler.php <ide> namespace Cake\Error; <ide> <ide> use Cake\Core\Configure; <add>use Cake\Error\PHP7ErrorException; <ide> use Cake\Log\Log; <ide> use Cake\Routing\Router; <del>use Exception; <ide> use Error; <del>use Cake\Error\PHP7ErrorException; <add>use Exception; <ide> <ide> /** <id...
1
Javascript
Javascript
keep stdio after exit
9e84a26cb3d390a6ce051b75c892094fff233f92
<ide><path>lib/internal/worker.js <ide> class Worker extends EventEmitter { <ide> this[kPublicPort] = null; <ide> <ide> const { stdout, stderr } = this[kParentSideStdio]; <del> this[kParentSideStdio] = null; <ide> <ide> if (!stdout._readableState.ended) { <ide> debug(`[${threadId}] explicitly clo...
2
Python
Python
compress target assigner
4f135c700383fa41c239c00ac1255b5b4eae4b27
<ide><path>research/object_detection/core/target_assigner.py <ide> def assign(self, <ide> reg_targets = self._create_regression_targets(anchors, <ide> groundtruth_boxes, <ide> match) <del> cls_targets = se...
1
PHP
PHP
remove proxy for money temporarily
1f394c1fa52439e44a18d59414eff009cb682a27
<ide><path>src/Validation/Validator.php <ide> public function integer($field, $message = null, $when = null) <ide> ]); <ide> } <ide> <del> /** <del> * Add a validation rule to ensure a field is a money value. <del> * <del> * @param string $field The field you want to apply the rule to. <del>...
2
Text
Text
add changelog entry for [ci skip]
c087cfc6717335c1cd4b8e438004cedac2dfa492
<ide><path>activerecord/CHANGELOG.md <add>* Use `UPDATE` rather than `SET` when enabling the `standard_conforming_strings` <add> setting as this allows us to avoid disabling errors on the PostgreSQL connection. <add> The former behavior would cause problems when using a connection pooling tool like <add> PgB...
1
Text
Text
add ayase-252 to collaborators
3e8eda25319e8dc682de4f8028fae35da916d996
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Anatoli Papirovski** &lt;apapirovski@mac.com&gt; (he/him) <ide> * [AshCripps](https://github.com/AshCripps) - <ide> **Ash Cripps** &lt;acripps@redhat.com&gt; <add>* [Ayase-252](https://github.com/Ayase-252) - <add>**Qing...
1
Ruby
Ruby
recommend casks where available
7afe1ed67aa2509791705cf6d54ecfe771c61862
<ide><path>Library/Homebrew/requirements.rb <ide> def message; <ide> <<-EOS.undent <ide> A LaTeX distribution is required for Homebrew to install this formula. <ide> <del> You can install MacTeX distribution from: <add> You can install MacTeX distribution with: <add> brew cask install mactex <add> <...
2
PHP
PHP
use argument unpacking
f80d6f89a3b4b35933892b29857d7cad1cda29bd
<ide><path>src/Illuminate/Support/Facades/Facade.php <ide> public static function __callStatic($method, $args) <ide> throw new RuntimeException('A facade root has not been set.'); <ide> } <ide> <del> switch (count($args)) { <del> case 0: <del> return $instance->$met...
1
Ruby
Ruby
require conversions to use string#ord
f802eb2f0039512105d6ed985e1ed3245f7316d5
<ide><path>activesupport/lib/active_support/cache/file_store.rb <ide> require 'active_support/core_ext/file/atomic' <add>require 'active_support/core_ext/string/conversions' <ide> <ide> module ActiveSupport <ide> module Cache
1