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
Python
Python
fix documentation for apply_along_axis
3963ed0ea4e7d89174b1e992d84b47c0751f533f
<ide><path>numpy/lib/shape_base.py <ide> def apply_along_axis(func1d, axis, arr, *args, **kwargs): <ide> """ <ide> Apply a function to 1-D slices along the given axis. <ide> <del> Execute `func1d(a, *args)` where `func1d` operates on 1-D arrays and `a` <del> is a 1-D slice of `arr` along `axis`. <add> ...
1
Text
Text
add introduced_in metadata to _toc.md
13861da9c01a652191220a7648b7dd814d61d613
<ide><path>doc/api/_toc.md <ide> @// NB(chrisdickinson): if you move this file, be sure to update <ide> @// tools/doc/html.js to point at the new location. <add> <add><!--introduced_in=v0.10.0--> <add> <ide> * [About these Docs](documentation.html) <ide> * [Usage & Example](synopsis.html) <ide>
1
Javascript
Javascript
correct the jqlite.removeclass method
e3fad0feb35f02191ace77638a102c79daad63ac
<ide><path>src/jqLite.js <ide> function JQLiteRemoveClass(element, selector) { <ide> element.className = trim( <ide> (" " + element.className + " ") <ide> .replace(/[\n\t]/g, " ") <del> .replace(" " + selector + " ", "") <add> .replace(" " + selector + " ", " ") <ide> ); <ide> } <ide> <ide><p...
2
Javascript
Javascript
fix overrideaccessors for ember data tests
ac54388c817881fc14072b3dfce49cfa1ef63f10
<ide><path>packages/ember-metal/lib/accessors.js <ide> set = function set(obj, keyName, value, tolerant) { <ide> <ide> // Currently used only by Ember Data tests <ide> if (Ember.config.overrideAccessors) { <add> Ember.get = get; <add> Ember.set = set; <ide> Ember.config.overrideAccessors(); <ide> get = Ember.get...
1
Javascript
Javascript
return geometry after calling applymatrix()
b4ea42b634bff4578913eae75968564eaa49a210
<ide><path>src/core/BufferGeometry.js <ide> THREE.BufferGeometry.prototype = { <ide> <ide> } <ide> <add> return this; <add> <ide> }, <ide> <ide> rotateX: function () {
1
Ruby
Ruby
use native string#capitalize
16e3b65674e3a41afe0415c88c75667e72fd0de9
<ide><path>activesupport/lib/active_support/multibyte/chars.rb <ide> def limit(limit) <ide> slice(0...translate_offset(limit)) <ide> end <ide> <del> # Converts the first character to uppercase and the remainder to lowercase. <del> # <del> # 'über'.mb_chars.capitalize.to_s # => "Über" <del...
2
Python
Python
replace source files with lib
0d4faf4ec45e7835056107027191d29de7db549b
<ide><path>numpy/core/setup.py <ide> def generate_umath_c(ext, build_dir): <ide> <ide> config.add_extension('_multiarray_umath', <ide> sources=multiarray_src + umath_src + <del> npymath_sources + common_src + <add> common_src ...
1
Javascript
Javascript
add regression test for
e9c1445ba09ac0ae73465f28514f9aa45074b7c7
<ide><path>packages/react-reconciler/src/__tests__/ReactHooksWithNoopRenderer-test.js <ide> describe('ReactHooksWithNoopRenderer', () => { <ide> }); <ide> expect(ReactNoop).toMatchRenderedOutput('ABC'); <ide> }); <add> <add> it('keeps intermediate state updates (issue #18497)', () => { <add> let _dispatch...
2
Javascript
Javascript
fix flaky test for symlinks
1c5784511895bbc416a5d1ae8a1e22d9dbf612ec
<ide><path>test/parallel/test-fs-link.js <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const path = require('path'); <add>const fs = require('fs'); <add> <add>common.refreshTmpDir(); <add> <add>// test creating and reading hard link <add>const srcPath = path.jo...
2
Javascript
Javascript
add w3cpointerevent example to rntester ios
cf2d05c4fe40839295817ac4d069fb208fda1f07
<ide><path>packages/rn-tester/js/utils/RNTesterList.ios.js <ide> const APIs: Array<RNTesterModuleInfo> = [ <ide> module: require('../examples/Dimensions/DimensionsExample'), <ide> supportsTVOS: true, <ide> }, <add> { <add> key: 'W3C PointerEvents', <add> category: 'Experimental', <add> module: requi...
1
PHP
PHP
move getvartype() to core/functions.php
b3489445b6ec0f81c0dfa4694f0098095d9baa9d
<ide><path>src/Core/functions.php <ide> function deprecationWarning($message, $stackFrame = 2) <ide> trigger_error($message, E_USER_DEPRECATED); <ide> } <ide> } <add> <add>if (!function_exists('getVarType')) { <add> /** <add> * Returns the objects class or var type of it's not an object <add> * <...
2
Go
Go
move mounts into types.go
156987c118f6f4067794e09e90aabeee0002d05c
<ide><path>pkg/libcontainer/container.go <ide> type Network struct { <ide> Gateway string `json:"gateway,omitempty"` <ide> Mtu int `json:"mtu,omitempty"` <ide> } <del> <del>type Mounts []Mount <del> <del>func (s Mounts) OfType(t string) Mounts { <del> out := Mounts{} <del> for _, m := range s { <del> if m.T...
3
PHP
PHP
fix cs error
1464c047c8c09bf3a57fb0150627af94cde2f876
<ide><path>tests/TestCase/View/ViewTest.php <ide> public function testBlockExist() { <ide> $this->assertTrue($this->View->exists('test')); <ide> } <ide> <del> /** <add>/** <ide> * Test setting a block's content to null <ide> * <ide> * @return void
1
Javascript
Javascript
use random port to initialize chromedriver
91b53d4b3b9e87d42d9a369769db3b60ff8eb8ac
<ide><path>spec/integration/helpers/start-atom.js <ide> const chromeDriverDown = done => { <ide> }; <ide> <ide> const buildAtomClient = async (args, env) => { <add> // Since ChromeDriver v2.41, ChromeDriver will only connect if, either we precise a port <add> // for remote debugging, either the embedder (ie electron...
1
Javascript
Javascript
read current time without marking event start time
1022ee0ec140b8fce47c43ec57ee4a9f80f42eca
<ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js <ide> import { <ide> } from './ReactFiber'; <ide> import { <ide> markSpawnedWork, <del> requestCurrentTime, <add> requestCurrentTimeForUpdate, <ide> retryDehydratedSuspenseBoundary, <ide> scheduleWork, <ide> renderDidSuspendDelayIfPossible, <ide>...
7
Text
Text
update the path to the pr image
c49ddbada60f7189dfc0e62fa03fadd27ccffe8e
<ide><path>docs/CONTRIBUTING.md <ide> A pull request (PR) is a method of submitting proposed changes to the freeCodeCa <ide> 2. By default, all pull requests should be against the freeCodeCamp Curriculum repo’s `dev` branch. <ide> **Make sure that your Base Fork is set to freeCodeCamp/curriculum when raising a pul...
1
Javascript
Javascript
add test and mocks
d8e8ea5cbbfae10f1eb0ccfaeb7e8b0668020083
<ide><path>src/renderers/native/ReactNative/__mocks__/InitializeJavaScriptAppEngine.js <add>/** <add> * Copyright 2013-2015, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. A...
14
Text
Text
fix typo in subheader (#4)
886f595c37c13dbacf45cb59f03768911167d9e6
<ide><path>README.md <ide> An example on how to use this class is given in the `run_classifier.py` script w <ide> <ide> ### 3. `BertForQuestionAnswering` <ide> <del>`BertForSequenceClassification` is a fine-tuning model that includes `BertModel` with a token-level classifiers on top of the full sequence of last hidde...
1
PHP
PHP
accept older blowfish hashes
390441d3b939b4b4818a819c7eb58515c3c5da30
<ide><path>lib/Cake/Utility/Security.php <ide> protected static function _crypt($password, $salt = false) { <ide> $salt = vsprintf('$2a$%02d$%s', array(self::$hashCost, $salt)); <ide> } <ide> <del> if ($salt === true || strpos($salt, '$2a$') !== 0 || strlen($salt) < 29) { <add> $invalidCipher = ( <add> strpos...
1
Java
Java
update contentdisposition to rfc 6266
ea4f1ca5d5c45db40da47684ceb522fec8fd294c
<ide><path>spring-web/src/main/java/org/springframework/http/ContentDisposition.java <ide> import static java.time.format.DateTimeFormatter.RFC_1123_DATE_TIME; <ide> <ide> /** <del> * Represent the Content-Disposition type and parameters as defined in RFC 2183. <add> * Represent the Content-Disposition type and parame...
1
Python
Python
print all different tensors on exception
66e8656778392609e1fb769f1a0d0839af3cd76a
<ide><path>src/transformers/commands/pt_to_tf.py <ide> def register_subcommand(parser: ArgumentParser): <ide> train_parser.set_defaults(func=convert_command_factory) <ide> <ide> @staticmethod <del> def compare_pt_tf_models(pt_model, pt_input, tf_model, tf_input): <add> def find_pt_tf_differences(pt_m...
1
Text
Text
fix broken link
bd6d2ec604b5605fe8e92f8b295cc1703667d0bf
<ide><path>guides/source/i18n.md <ide> Contributing to Rails I18n <ide> <ide> I18n support in Ruby on Rails was introduced in the release 2.2 and is still evolving. The project follows the good Ruby on Rails development tradition of evolving solutions in gems and real applications first, and only then cherry-picking t...
1
Javascript
Javascript
add check for using process.binding crypto
acbe00792d3e73ded9d309002974a095e1433afe
<ide><path>tools/eslint-rules/crypto-check.js <ide> const utils = require('./rules-utils.js'); <ide> const msg = 'Please add a hasCrypto check to allow this test to be skipped ' + <ide> 'when Node is built "--without-ssl".'; <ide> <add>const cryptoModules = ['crypto', 'http2']; <add>const requireModules = ...
2
Ruby
Ruby
fix syntax error and remove duplicated test
507d23c421b189ac8386e0605c57ab3db831001e
<ide><path>activerecord/test/cases/relation/where_test.rb <ide> def test_where_with_table_name_and_empty_hash <ide> assert_equal 0, Post.where(:posts => {}).count <ide> end <ide> <add> def test_where_with_table_name_and_empty_array <add> assert_equal 0, Post.where(:id => []).count <add> end <add> ...
1
Javascript
Javascript
fix lint errors
174bac378d47435780747536d45faba1ce63cbe7
<ide><path>src/task-bootstrap.js <add>/* global snapshotResult */ <add> <ide> if (typeof snapshotResult !== 'undefined') { <ide> snapshotResult.setGlobals(global, process, global, {}, console, require) <ide> } <ide> const {userAgent} = process.env <ide> const [compileCachePath, taskPath] = process.argv.slice(2) <ide>...
3
Go
Go
add regression test + go fmt
48833c7b0784bc7055f29dd3448df3af93c462ec
<ide><path>server_test.go <ide> func TestCreateRm(t *testing.T) { <ide> <ide> } <ide> <add>func TestCommit(t *testing.T) { <add> runtime := mkRuntime(t) <add> defer nuke(runtime) <add> <add> srv := &Server{runtime: runtime} <add> <add> config, _, _, err := ParseRun([]string{GetTestImage(runtime).ID, "/bin/cat"}, nil)...
2
Javascript
Javascript
replace action for replacereducers
e6f6c7da7b39ed46273d05d150cf1f578973ac3c
<ide><path>src/combineReducers.js <ide> function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une <ide> unexpectedKeyCache[key] = true <ide> }) <ide> <add> if (action && action.type === ActionTypes.REPLACE) return <add> <ide> if (unexpectedKeys.length > 0) { <ide> return ( <ide> ...
4
Ruby
Ruby
pass relative paths into link exceptions
07e00061a7b8b4c831f6d94e6ee4fbb9804e7723
<ide><path>Library/Homebrew/keg.rb <ide> def suggestion <ide> <ide> def to_s <ide> s = [] <del> s << "Could not symlink #{src.relative_path_from(Pathname(keg))}" <add> s << "Could not symlink #{src}" <ide> s << "Target #{dst}" << suggestion <ide> s << <<-EOS.undent <ide> To forc...
1
Python
Python
use rsync instead of mv
955c65ffea49bac9357794024cadb9ac5310eaca
<ide><path>pavement.py <ide> def clean_docs(options): <ide> <ide> <ide> @task <del>@needs("clean_docs", "paver.doctools.html") <add>@needs("paver.doctools.html") <ide> def html(options): <ide> destdir = path("Documentation") <del> destdir.rmtree() <ide> builtdocs = sphinx_builddir(options) <del> builtdo...
1
Text
Text
put semver-minor on pre-load module fix 2.2.0
5d83401086e40fb51b2017d3b6edd7d83c6bd484
<ide><path>CHANGELOG.md <ide> See https://github.com/nodejs/io.js/labels/confirmed-bug for complete and curren <ide> * [[`1bbf8d0720`](https://github.com/nodejs/io.js/commit/1bbf8d0720)] - **lib**: speed up require(), phase 2 (Ben Noordhuis) [#1801](https://github.com/nodejs/io.js/pull/1801) <ide> * [[`b14fd1a720`](htt...
1
PHP
PHP
remove additional comma
d338d13eec3ae899250ef4685fbeb85a198f7d2d
<ide><path>src/Illuminate/View/Concerns/ManagesComponents.php <ide> protected function componentData() <ide> $this->componentData[count($this->componentStack)], <ide> ['slot' => $defaultSlot], <ide> $this->slots[count($this->componentStack)], <del> ['__laravel_slots' => $s...
1
Go
Go
fix error in pushimage
5690562fc855a7e813a7e3cfb3340f60bd626530
<ide><path>registry.go <ide> func pushImageRec(graph *Graph, stdout io.Writer, img *Image, registry string, t <ide> if res.StatusCode != 200 { <ide> errBody, err := ioutil.ReadAll(res.Body) <ide> if err != nil { <del> errBody = []byte(err.Error()) <add> return fmt.Errorf("HTTP code %d while uploading metadata ...
1
Javascript
Javascript
use ticks consistently
dbd835f4f33d99395ef5951edb4deef1e2df49e0
<ide><path>src/controllers/controller.bar.js <ide> function computeMinSampleSize(scale, pixels) { <ide> min = Math.min(min, Math.abs(pixels[i] - pixels[i - 1])); <ide> } <ide> <del> for (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) { <add> for (i = 0, ilen = scale.ticks.length; i < ilen; ++i) { <ide> cur...
6
Javascript
Javascript
fix challenge ga time completion
154ae0e4893d44f21a21571d1d7f1cc6fdbd035f
<ide><path>client/commonFramework/show-completion.js <ide> window.common = (function(global) { <ide> } = global; <ide> <ide> common.showCompletion = function showCompletion() { <del> var time = Math.floor(Date.now() - window.started); <add> var time = Math.floor(Date.now() - common.started); <ide> <ide> ...
1
Javascript
Javascript
eliminate jest log spew
36bbd8fa31eceabf0fbf52b8daccc848e9c5830c
<ide><path>Libraries/Components/TextInput/__tests__/TextInput-test.js <ide> describe('TextInput tests', () => { <ide> TextInput.State.focusTextInput(textInputRef.current); <ide> expect(textInputRef.current.isFocused()).toBe(true); <ide> expect(TextInput.State.currentlyFocusedInput()).toBe(textInputRef.curre...
6
Javascript
Javascript
fix modal dialog test for showing controls
45a6b3010df2a551146ae534322dec3e1b3714b0
<ide><path>test/unit/modal-dialog.test.js <ide> QUnit.test('open() does not pause, close() does not play() with pauseOnOpen set <ide> }); <ide> <ide> QUnit.test('open() hides controls, close() shows controls', function(assert) { <add> this.player.controls(true); <ide> this.modal.open(); <ide> <ide> assert.expect...
1
Javascript
Javascript
convert snapshot phase to depth-first traversal
2a646f73e4f64000fcd1a483cec1c08614f20e9c
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js <ide> import { <ide> Hydrating, <ide> HydratingAndUpdate, <ide> Passive, <add> BeforeMutationMask, <ide> MutationMask, <del> PassiveMask, <ide> LayoutMask, <add> PassiveMask, <ide> PassiveUnmountPendingDev, <ide> } from './ReactFiberFla...
3
Ruby
Ruby
add descriptive comment
5b576af97efe7ff5375572ad325b18429e9a75a8
<ide><path>actionview/lib/action_view/helpers/asset_url_helper.rb <ide> def asset_path(source, options = {}) <ide> def public_asset_path(source, options = {}) <ide> path_to_asset(source, {public_folder: true}.merge!(options)) <ide> end <del> alias_method :path_to_public_asset, :public_asset_pat...
1
Javascript
Javascript
support min/max values in validateinteger()
4fc7cd9bc1093160ec0e40b626169134194a51e9
<ide><path>lib/internal/validators.js <ide> const { <ide> isArrayBufferView <ide> } = require('internal/util/types'); <ide> const { signals } = internalBinding('constants').os; <add>const { MAX_SAFE_INTEGER, MIN_SAFE_INTEGER } = Number; <ide> <ide> function isInt32(value) { <ide> return value === (value | 0); <ide...
1
Python
Python
update spacy.load() and fix path checks
7670c745b6370fafd29ccedcdcba875156ccd576
<ide><path>spacy/__init__.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <del>from pathlib import Path <del> <del>from .util import set_lang_class, get_lang_class, parse_package_meta <add>from . import util <ide> from .deprecated import resolve_model_name <ide> from .cli import info <ide> ...
1
Ruby
Ruby
fix relation respond_to? and method_missing
5fa497abf5b885187130e58aefcb1c3228295e3c
<ide><path>activerecord/lib/active_record/relation.rb <ide> def conditions(conditions) <ide> end <ide> <ide> def respond_to?(method) <del> if @relation.respond_to?(method) || Array.instance_methods.include?(method.to_s) <del> true <del> else <del> super <del> end <add> @relati...
1
Ruby
Ruby
remove another `blank?` call
e35225e938820544f7e5b29475c2f8cc4da5cb1a
<ide><path>actionpack/lib/action_dispatch/http/mime_type.rb <ide> def ==(mime_type) <ide> end <ide> <ide> def =~(mime_type) <del> return false if mime_type.blank? <add> return false unless mime_type <ide> regexp = Regexp.new(Regexp.quote(mime_type.to_s)) <ide> (@synonyms + [ self ]).any? ...
1
Python
Python
fix typo in fill_diagonal docstring
e7c15600e2c5e2b66a0e26f8511145c588166271
<ide><path>numpy/lib/index_tricks.py <ide> def __getitem__(self, item): <ide> def fill_diagonal(a, val, wrap=False): <ide> """Fill the main diagonal of the given array of any dimensionality. <ide> <del> For an array `a` with ``a.ndim > 2``, the diagonal is the list of <del> locations with indices ``a[i, i, ....
1
Text
Text
add links to faq and list of redux users
b43d6b5924bbe6bb81df5488917b09b45438cda0
<ide><path>README.md <ide> If you enjoyed my course, consider supporting Egghead by [buying a subscription] <ide> * [Basics](http://redux.js.org/docs/basics/index.html) <ide> * [Advanced](http://redux.js.org/docs/advanced/index.html) <ide> * [Recipes](http://redux.js.org/docs/recipes/index.html) <add>* [FAQ](http://red...
1
Java
Java
use monoprocessor instead of fluxidentityprocessor
7cf1ccc41540752a16e370b5dd353b94108ebf22
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpClient.java <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <ide> import org.reactivestreams.Publisher; <del>import reactor.core.publisher.FluxIdentityProcessor; <ide> impo...
2
Go
Go
do some cleanup on .dockerignore paths
c0f0f5c9887032c606750b645001829d9f14f47c
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> return fmt.Errorf("Error reading .dockerignore: '%s'", err) <ide> } <ide> for _, pattern := range strings.Split(string(ignore), "\n") { <add> pattern = strings.TrimSpace(pattern) <add> if pattern == "" { <add...
2
Ruby
Ruby
add config.to_prepare back and add tests for it
d3d487479a6d4a5ba6977fb0075e7937eb19718a
<ide><path>railties/lib/rails/application/finisher.rb <ide> module Finisher <ide> end <ide> end <ide> <add> initializer :add_to_prepare_blocks do <add> config.to_prepare_blocks.each do |block| <add> ActionDispatch::Callbacks.to_prepare(&block) <add> end <add> end <add> <i...
3
Javascript
Javascript
ignore some of the specs on ie
040aa11ceb510d8f8ec8349a3ca99d9db874daf0
<ide><path>docs/component-spec/annotationsSpec.js <ide> describe('Docs Annotations', function() { <ide> body.html(''); <ide> }); <ide> <add> var normalizeHtml = function(html) { <add> return html.toLowerCase().replace(/\s*$/, ''); <add> }; <add> <ide> describe('popover directive', function() { <ide> <ide...
4
Text
Text
add @martync for thanks!
999056cde1c6355d5ca036f109b35b41cb9d47cc
<ide><path>docs/topics/credits.md <ide> The following people have helped make REST framework great. <ide> * Ricky Rosario - [rlr] <ide> * Veronica Lynn - [kolvia] <ide> * Dan Stephenson - [etos] <add>* Martin Clement - [martync] <ide> <ide> Many thanks to everyone who's contributed to the project. <ide> <ide> You can...
1
Text
Text
fix broken refs to url.parse() in http docs
010ac70892d98b547b07075ee84f5e1afa6b0c74
<ide><path>doc/api/http.md <ide> There are a few special headers that should be noted. <ide> [`socket.setTimeout()`]: net.html#net_socket_settimeout_timeout_callback <ide> [`stream.setEncoding()`]: stream.html#stream_stream_setencoding_encoding <ide> [`TypeError`]: errors.html#errors_class_typeerror <del>[`url.parse()`...
2
Ruby
Ruby
add cask methods
05daa0574732a7884bd158b2c3e14bd0709367da
<ide><path>Library/Homebrew/tap.rb <ide> def initialize(user, repo) <ide> def clear_cache <ide> @remote = nil <ide> @formula_dir = nil <add> @cask_dir = nil <ide> @formula_files = nil <ide> @alias_dir = nil <ide> @alias_files = nil <ide> def formula_dir <ide> @formula_dir ||= [path/"Formula...
1
Text
Text
add plugin socket related debug docs
6b8ae528655f65403c4d75d4bd9ce576cd26ff82
<ide><path>docs/extend/index.md <ide> follows: <ide> $ docker-runc exec -t f52a3df433b9aceee436eaada0752f5797aab1de47e5485f1690a073b860ff62 sh <ide> ``` <ide> <add>#### Using curl to debug plugin socket issues. <add> <add>To verify if the plugin API socket that the docker daemon communicates with <add>is responsive, u...
1
Ruby
Ruby
fix undefined method error on invalid input
7787dde7b763ee789f5253f5f213d5890403945a
<ide><path>Library/Homebrew/dev-cmd/pr-publish.rb <ide> def pr_publish <ide> arg = "#{CoreTap.instance.default_remote}/pull/#{arg}" if arg.to_i.positive? <ide> url_match = arg.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX <ide> _, user, repo, issue = *url_match <del> tap = Tap.fetch(user, repo) if repo...
1
Text
Text
add deprecation notice
c111e133ae58f0d3a6a0e464abc047879edd66bf
<ide><path>doc/api/deprecations.md <ide> Type: End-of-Life <ide> <ide> The `--with-lttng` compile time option is removed. <ide> <add><a id="DEP0102"></a> <add>### DEP0102: Using `noAssert` in Buffer#(read|write) operations. <add> <add>Type: End-of-Life <add> <add>Using the `noAssert` argument has no functionality any...
1
Ruby
Ruby
remove json test
2f919089ef381758f4db236dff4c4e6410259a7e
<ide><path>Library/Homebrew/test/json_test.rb <del>require "testing_env" <del>require "json" <del> <del>class JsonSmokeTest < Homebrew::TestCase <del> def test_encode <del> hash = { "foo" => ["bar", "baz"] } <del> json = '{"foo":["bar","baz"]}' <del> assert_equal json, JSON.generate(hash) <del> end <del> <de...
1
PHP
PHP
use json for mysql json now that 5.7 is out
cccdad418159a856c72bec61c3ad16d754d5f35e
<ide><path>src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php <ide> protected function typeEnum(Fluent $column) <ide> */ <ide> protected function typeJson(Fluent $column) <ide> { <del> return 'text'; <add> return 'json'; <ide> } <ide> <ide> /** <ide> protected function typeJson...
1
Javascript
Javascript
check compilance with spec
23068ad97973cacd84bb7724586cf26e6cfcdd12
<ide><path>test/cases/parsing/harmony-spec/export-cycle-a.js <add>function fun() { <add> return true; <add>}; <add> <add>import { callFun } from "./export-cycle-b"; <add> <add>export default callFun(); <add> <add>export { fun }; <ide><path>test/cases/parsing/harmony-spec/export-cycle-b.js <add>import { fun } from "./ex...
8
PHP
PHP
replace 'dynamic' keyword with 'mixed'
3c45bc8e19c15475f11e78bee69af2e92494f1a8
<ide><path>src/Illuminate/Cache/RedisStore.php <ide> public function flush() <ide> /** <ide> * Begin executing a new tags operation. <ide> * <del> * @param array|dynamic $names <add> * @param array|mixed $names <ide> * @return \Illuminate\Cache\RedisTaggedCache <ide> */ <ide> public function tags($names...
15
Python
Python
add transition note to all lib/poly functions
3687b5b5baf499cb7ac718b728386077fa8a3cfa
<ide><path>numpy/lib/polynomial.py <ide> def poly(seq_of_zeros): <ide> """ <ide> Find the coefficients of a polynomial with the given sequence of roots. <ide> <add> .. note:: <add> This forms part of the old polynomial API. Since version 1.4, the <add> new polynomial API defined in `numpy.polyno...
1
Text
Text
fix broken link in chart/readme.md
bbfaafeb552b48560960ab4aba84723b7ccbf386
<ide><path>chart/README.md <ide> to port-forward the Airflow UI to http://localhost:8080/ to cofirm Airflow is wo <ide> <ide> ## Contributing <ide> <del>Check out [our contributing guide!](CONTRIBUTING.md) <add>Check out [our contributing guide!](../CONTRIBUTING.rst)
1
Python
Python
set version to 2.1.5.dev0
c6cb78275888228cc647a950d9adfbf545a60ad6
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy" <del>__version__ = "2.1.4" <add>__version__ = "2.1.5.dev0" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI"
1
Text
Text
use proper jamstack casing
cfa00c9fcd7032db1b3cabbd9629167baa305b5a
<ide><path>docs/deployment.md <ide> description: Deploy your Next.js app to production with Vercel and other hosting <ide> <ide> ## Vercel (Recommended) <ide> <del>The easiest way to deploy Next.js to production is to use the **[Vercel platform](https://vercel.com)** from the creators of Next.js. [Vercel](https://ver...
1
Javascript
Javascript
change var to let
1d2c8b4c81225720f8c2e477e42ad636984d38c3
<ide><path>test/tick-processor/test-tick-processor-unknown.js <ide> const base = require('./tick-processor-base.js'); <ide> base.runTest({ <ide> pattern: /LazyCompile.*\[eval]:1|.*% UNKNOWN/, <ide> code: `function f() { <del> for (var i = 0; i < 1000000; i++) { <add> for (let i = 0; i < 1000000...
1
Ruby
Ruby
simplify prefix test
5c1805434173002c5da18a91a1cd3158661a5424
<ide><path>Library/Homebrew/test/test_formula.rb <ide> class FormulaTests < Test::Unit::TestCase <ide> <ide> def test_prefix <ide> f = TestBall.new <del> assert_equal File.expand_path(f.prefix), (HOMEBREW_CELLAR+f.name+'0.1').to_s <add> assert_equal HOMEBREW_CELLAR/f.name/'0.1', f.prefix <ide> assert_k...
1
Javascript
Javascript
remove redundant error messages
3594223c2e0c92cfb7c1c0a352246387659d2475
<ide><path>test/addons-napi/test_typedarray/test.js <ide> arrayTypes.forEach((currentType) => { <ide> <ide> assert.ok(theArray instanceof currentType, <ide> 'Type of new array should match that of the template'); <del> assert.notStrictEqual(theArray, <del> template, <del> ...
1
Ruby
Ruby
avoid extra allocation in string#from and #to
52498ccafd718975dc7ad8df2bf7f4a9614a239d
<ide><path>activesupport/lib/active_support/core_ext/string/access.rb <ide> def at(position) <ide> # str.from(0).to(-1) # => "hello" <ide> # str.from(1).to(-2) # => "ell" <ide> def from(position) <del> self[position..-1] <add> self[position, length] <ide> end <ide> <ide> # Returns a substring from ...
1
PHP
PHP
add a small optimization for reverse routing
7ce2f4526e894d31881f4a5533f6b26a6439a510
<ide><path>src/Routing/Router.php <ide> protected static function _match($url) { <ide> <ide> // No quick win, iterate and hope for the best. <ide> foreach (static::$_pathScopes as $key => $collection) { <add> $params = $collection->params(); <add> // No point in checking the routes if the scope params are wron...
1
Javascript
Javascript
fix typo in fs.writefile
68af59ef6b97f7f20860a4aff5ea7379f6e80fea
<ide><path>src/node.js <ide> var fsModule = createInternalModule("fs", function (exports) { <ide> if (callback) callback(writeErr); <ide> }); <ide> } else { <del> if (written === _data.length) { <add> if (written === data.length) { <ide> exports.close(fd, callback); <ide>...
1
Go
Go
fix events test flakiness
abbf2aa6ddbf8159a5fceb4df25d7f85aeffe70e
<ide><path>integration-cli/docker_cli_authz_unix_test.go <ide> func (s *DockerAuthzSuite) TestAuthZPluginAllowEventStream(c *check.C) { <ide> c.Assert(s.d.waitRun(containerID), checker.IsNil) <ide> <ide> events := map[string]chan bool{ <del> "create": make(chan bool), <del> "start": make(chan bool), <add> "creat...
3
Text
Text
fix typo in hans example call
0dbddba6d2c5b2c6fc08866358c1994a00d6a1ff
<ide><path>examples/README.md <ide> export HANS_DIR=path-to-hans <ide> export MODEL_TYPE=type-of-the-model-e.g.-bert-roberta-xlnet-etc <ide> export MODEL_PATH=path-to-the-model-directory-that-is-trained-on-NLI-e.g.-by-using-run_glue.py <ide> <del>python examples/test_hans.py \ <add>python examples/hans/test_hans.py \ ...
1
Java
Java
drop @webservlet annotation
7de2650a7070af4db25ef9b5d87528a679302120
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/JettyHttpHandlerAdapter.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <id...
5
Text
Text
fix some pissing a’s and the’s
25367167277c71ef884549a7c83733f2bea8eedf
<ide><path>docs/EmbeddedApp.md <ide> React.AppRegistry.registerComponent('SimpleApp', () => SimpleApp); <ide> <ide> ## Add Container View To Your App <ide> <del>You should now add container view for React Native component. It can be any `UIView` in your app. <add>You should now add a container view for the React Nati...
1
Javascript
Javascript
increase max session duration
d855b74095c616c061d67ae9bd57299ed84dbeae
<ide><path>protractor-travis-conf.js <ide> function capabilitiesForSauceLabs(capabilities) { <ide> 'browserName': capabilities.browserName, <ide> 'platform': capabilities.platform, <ide> 'version': capabilities.version, <del> 'elementScrollBehavior': 1 <add> 'elementScrollBehavior': 1, <add> // All...
1
Python
Python
prepare changes for a future release
303d955298dac5cd8a4fe2d92195350e332db516
<ide><path>docs/conf.py <ide> # built documents. <ide> # <ide> # The short X.Y version. <del>version = '3.5.1' <add>version = '3.5.2-dev' <ide> <ide> # The full version, including alpha/beta/rc tags. <del>release = '3.5.1' <add>release = '3.5.2-dev' <ide> <ide> # The language for content autogenerated by Sphinx. Refe...
2
Javascript
Javascript
add new list examples to uiexplorer
05c36b463b2125150b44b4aa34fe739f48813665
<ide><path>Examples/UIExplorer/js/UIExplorerExampleList.js <ide> */ <ide> 'use strict'; <ide> <del>const ListView = require('ListView'); <ide> const Platform = require('Platform'); <ide> const React = require('react'); <add>const SectionList = require('SectionList'); <ide> const StyleSheet = require('StyleSheet'); <i...
3
PHP
PHP
auth command less noisy
af21db5a47b856306243bd8045d5de0d990ad868
<ide><path>src/Illuminate/Auth/Console/MakeAuthCommand.php <ide> public function fire() <ide> $this->exportViews(); <ide> <ide> if (! $this->option('views')) { <del> $this->info('Installed HomeController.'); <del> <ide> file_put_contents( <ide> app_path('Http/Cont...
1
Javascript
Javascript
use webpack instead of compiler in test
bd10fca49a258d7b8fb9a0415067717bb0fe8a1c
<ide><path>test/Compiler-caching.test.js <ide> var path = require("path"); <ide> var fs = require("fs"); <ide> <ide> var NodeEnvironmentPlugin = require("../lib/node/NodeEnvironmentPlugin"); <del>var Compiler = require("../lib/Compiler"); <add>var webpack = require("../"); <ide> var WebpackOptionsApply = require("../l...
2
PHP
PHP
add model.aftersavecommit event
5025c805965eb8e6531947cef8b021f7bdbfbfcf
<ide><path>src/ORM/Table.php <ide> public function save(EntityInterface $entity, $options = []) <ide> $success = $connection->transactional(function () use ($entity, $options) { <ide> return $this->_processSave($entity, $options); <ide> }); <add> if ($success) { <add> ...
1
Text
Text
move julianduque to emeritus
2f97e973ff540d2ae7de77482c631c06cc99c313
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **João Reis** &lt;reis@janeasystems.com&gt; <ide> * [joyeecheung](https://github.com/joyeecheung) - <ide> **Joyee Cheung** &lt;joyeec9h3@gmail.com&gt; (she/her) <del>* [julianduque](https://github.com/julianduque) - <del>*...
1
Ruby
Ruby
fix rubocop offenses
1b732ec7b2952b47c0c80e6cde3f3b61f2cbb669
<ide><path>Library/Homebrew/PATH.rb <ide> def to_str <ide> <ide> sig { params(other: T.untyped).returns(T::Boolean) } <ide> def ==(other) <del> if other.respond_to?(:to_ary) && to_ary == other.to_ary || <del> other.respond_to?(:to_str) && to_str == other.to_str <del> true <del> else <add> (othe...
12
Text
Text
update focus selector for input
7b8fcea94ee2285cd40d16fbbb69d755051c81ed
<ide><path>guide/english/css/forms/index.md <ide> In the below given example,only input type corresponding to first name will be s <ide> <input type="submit" value="submit"> <ide> </form> <ide> ``` <add>## Style input element with css <add> <add>### :focus selector <add>The `:focus` selector is applied when the eleme...
1
Python
Python
fix argument order
1789c7daf1b8013006b0aef6cb1b8f80573031c5
<ide><path>src/transformers/modeling_tf_transfo_xl.py <ide> def init_mems(self, bsz): <ide> else: <ide> return None <ide> <del> def _update_mems(self, hids, mems, qlen, mlen): <add> def _update_mems(self, hids, mems, mlen, qlen): <ide> # does not deal with None <ide> if mems i...
1
Go
Go
limit push and pull to v2 official registry
88fdcfef02cdc8b4fcff10cded6a89a42a360ec1
<ide><path>graph/pull.go <ide> func (s *TagStore) CmdPull(job *engine.Job) engine.Status { <ide> logName += ":" + tag <ide> } <ide> <del> if len(repoInfo.Index.Mirrors) == 0 && (repoInfo.Index.Official || endpoint.Version == registry.APIVersion2) { <add> if len(repoInfo.Index.Mirrors) == 0 && ((repoInfo.Official &&...
2
Python
Python
reapply patches to legacy merge layer
7095aca51b92cdc621a5c97e7b150b31ee2f207e
<ide><path>keras/legacy/layers.py <ide> def compute_mask(self, inputs, mask=None): <ide> <ide> assert hasattr(mask, '__len__') and len(mask) == len(inputs) <ide> <del> if self.mode in ['sum', 'mul', 'ave']: <add> if self.mode in ['sum', 'mul', 'ave', 'max']: <ide> masks = [K.expand_d...
1
Javascript
Javascript
use `isstream` helper to check for streamness
34e28a248cf3a9e03ad1d94e430dfc376bc29b67
<ide><path>packages/ember-metal/lib/streams/stream.js <ide> import { <ide> getTailPath <ide> } from "ember-metal/path_cache"; <ide> import Ember from "ember-metal/core"; <add>import { <add> isStream <add>} from 'ember-metal/streams/utils'; <ide> <ide> /** <ide> @module ember-metal <ide> Dependency.prototype.removeF...
1
Python
Python
remove unnecessary branch
e311b02e704891b2f31a1e2c8fe2df77a032b09b
<ide><path>divide_and_conquer/inversions.py <ide> Given an array-like data structure A[1..n], how many pairs <ide> (i, j) for all 1 <= i < j <= n such that A[i] > A[j]? These pairs are <ide> called inversions. Counting the number of such inversions in an array-like <del>object is the important. Among other things, coun...
1
Text
Text
fix minor typo
180c6de6a69645225ae0017f0b5030d0c411dacf
<ide><path>docs/source/parallelism.md <ide> a0 | b0 | c0 <ide> a1 | b1 | c1 <ide> a2 | b2 | c2 <ide> ``` <del>Layer La has weights a0, at and a2. <add>Layer La has weights a0, a1 and a2. <ide> <ide> If we have 3 GPUs, the Sharded DDP (= Zero-DP) splits the model onto 3 GPUs like so: <ide>
1
PHP
PHP
change controller->filters to protected
c4eb6c94160d589be9a38aa3426f21a313f98877
<ide><path>laravel/routing/controller.php <ide> protected static function hidden($method) <ide> * @param string $name <ide> * @return array <ide> */ <del> public function filters($name) <add> protected function filters($name) <ide> { <ide> return (array) $this->$name; <ide> }
1
Text
Text
add ayase-252 to triagers
5318e53fd89db5ba90036d040cb0558060813f18
<ide><path>README.md <ide> maintaining the Node.js project. <ide> <ide> ### Triagers <ide> <add>* [Ayase-252](https://github.com/Ayase-252) - <add>**Qingyu Deng** &lt;i@ayase-lab.com&gt; <ide> * [marsonya](https://github.com/marsonya) - <ide> **Akhil Marsonya** &lt;akhil.marsonya27@gmail.com&gt; (he/him) <ide> * [Poo...
1
Go
Go
add back compat for volume drivers `get` and `ls`
f6c20d9b22ec9913f67b6c2ebdb5ef07c87b8cd7
<ide><path>integration-cli/docker_cli_volume_driver_compat_unix_test.go <add>// +build !windows <add> <add>package main <add> <add>import ( <add> "encoding/json" <add> "fmt" <add> "io" <add> "io/ioutil" <add> "net/http" <add> "net/http/httptest" <add> "os" <add> "path/filepath" <add> "strings" <add> <add> "github.com/d...
5
Javascript
Javascript
fix failing example in ember.select docs
833e2367dce711d0b78aa754137f05c438f6dab0
<ide><path>packages/ember-handlebars/lib/controls/select.js <ide> var indexOf = Ember.EnumerableUtils.indexOf, indexesOf = Ember.EnumerableUtils.i <ide> Example: <ide> <ide> ``` javascript <del> App.Names = ["Yehuda", "Tom"]; <add> App.names = ["Yehuda", "Tom"]; <ide> ``` <ide> <ide> ``` handlebars <del> {...
1
PHP
PHP
use the getattributes method on insert
61bdc1f845a1c91ddc1cfadb720052e815b493cc
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function performInsert(Builder $query) <ide> // If the model has an incrementing key, we can use the "insertGetId" method on <ide> // the query builder, which will give us back the final inserted ID for this <ide> // table fro...
1
Javascript
Javascript
use consistent jsdoc types
1e8b296c58b77d3b7b46d45c7ef3e44981c5c3e7
<ide><path>lib/fs.js <ide> function readvSync(fd, buffers, position) { <ide> /** <ide> * Writes `buffer` to the specified `fd` (file descriptor). <ide> * @param {number} fd <del> * @param {Buffer | TypedArray | DataView | string | Object} buffer <add> * @param {Buffer | TypedArray | DataView | string | object} buffer...
10
Ruby
Ruby
handle array option in `type_to_sql`
9ec2d4a39b0e4ee3cbae6f2ed93fb8a86c2d6936
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb <ide> class SchemaCreation < AbstractAdapter::SchemaCreation <ide> private <ide> <ide> def visit_ColumnDefinition(o) <del> o.sql_type = type_to_sql(o.type, o.limit, o.precision, o.scale) <del> ...
1
Ruby
Ruby
remove dependency on `@cache_control` ivar
d05d7e23d19b0f22328ad5ec3c87883c96fc4365
<ide><path>actionpack/lib/action_dispatch/http/cache.rb <ide> def prepare_cache_control! <ide> <ide> def handle_conditional_get! <ide> if etag? || last_modified? || !@cache_control.empty? <del> set_conditional_cache_control! <add> set_conditional_cache_control!(@cache_control) <...
1
PHP
PHP
remove unused variable
2d852a6800931b6a7952314904aee52c6a7c4608
<ide><path>src/Database/ValueBinder.php <ide> public function attachTo($statement) <ide> if (empty($bindings)) { <ide> return; <ide> } <del> $params = $types = []; <add> <ide> foreach ($bindings as $b) { <ide> $statement->bindValue($b['placeholder'], $b['value'], $...
1
Javascript
Javascript
remove unused argument from call to jest method
5bdd4c8c60ed6c12c5af7ffb73660c8f91bf955a
<ide><path>packages/react/src/__tests__/ReactChildren-test.js <ide> describe('ReactChildren', () => { <ide> }); <ide> <ide> function assertCalls() { <del> expect(callback).toHaveBeenCalledTimes(2, 0); <add> expect(callback).toHaveBeenCalledTimes(2); <ide> expect(callback).toHaveBeenCalledWith('...
1
Java
Java
use pathremainingmatchinfo in requestpredicates
b897f96e0ff61ec8965ebd51bbad0d5b798e5e7f
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java <ide> import org.springframework.web.util.UriUtils; <ide> import org.springframework.web.util.patterns.PathPattern; <ide> import org.springframework.web.util.patterns.PathPatternParser; <del>import org.spring...
2
Text
Text
fix typo in remote.md
2243480e99ee70c39887da55fa3257c29843dd0c
<ide><path>libnetwork/docs/remote.md <ide> When the proxy is asked to create a network, the remote process shall receive a <ide> * `Options` value is the arbitrary map given to the proxy by LibNetwork. <ide> * `IPv4Data` and `IPv6Data` are the ip-addressing data configured by the user and managed by IPAM driver. The n...
1
Javascript
Javascript
address early review comments and lint
7783079af7deeca4e7923b4ad37b0156e62f3ed2
<ide><path>client/src/components/Footer/index.js <ide> import React from 'react'; <add>import PropTypes from 'prop-types'; <ide> import { Grid, Row, Col } from '@freecodecamp/react-bootstrap'; <ide> <ide> import Link from '../helpers/Link'; <ide> const ColHeader = ({ children, ...other }) => ( <ide> ); <ide> ColHeader...
10