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
Text
Text
update docs about releasing providersk
dd410fd3c9de14e94034dcb4ccae52bbf5216199
<ide><path>dev/README_RELEASE_PROVIDER_PACKAGES.md <ide> - [Publish release](#publish-release) <ide> - [Summarize the voting for the Apache Airflow release](#summarize-the-voting-for-the-apache-airflow-release) <ide> - [Publish release to SVN](#publish-release-to-svn) <del> - [Publish the Regular convenience packa...
1
Ruby
Ruby
match #{prefix}/libexec and prefix+'libexec'
be9d91b2b80fdfe82720b2e2d3ceec378e33b371
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_formula_text name, text <ide> end <ide> <ide> # Prefer formula path shortcuts in Pathname+ <del> if text =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|lib|libexec|sbin|share))} <add> if text =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|shar...
1
Ruby
Ruby
fix unbottled dependency handling
eb74717a9e24eb94de9a60508a208b224dff8172
<ide><path>Library/Homebrew/exceptions.rb <ide> def dump(verbose: false) <ide> end <ide> end <ide> <del># Raised by {FormulaInstaller#check_dependencies_bottled} and <del># {FormulaInstaller#install} if the formula or its dependencies are not bottled <del># and are being installed on a system without necessary build...
3
Python
Python
implement different approach to fix bug
8fbd472e562237dd56ce251e266e2090d6c5003b
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False): <ide> ar1 = np.asarray(ar1).ravel() <ide> ar2 = np.asarray(ar2).ravel() <ide> <add> # Ensure that iteration through object arrays yields size-1 arrays <add> if ar2.dtype == object: <add> ar2 = ar2.resh...
1
Javascript
Javascript
watch object refference or equality
d6e3e1baabc3acc930e4fda387b62cbd03e64577
<ide><path>src/directives.js <ide> function classDirective(name, selector) { <ide> if (isObject(newVal) && !isArray(newVal)) <ide> newVal = map(newVal, function(v, k) { if (v) return k }); <ide> if (newVal) element.addClass(isArray(newVal) ? newVal.join(' ') : newVal); } <del> }); ...
3
Text
Text
fix broken links in english challenges
cb35d49a210950f672b602412e86346e5f940de5
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.english.md <ide> videoUrl: 'https://scrimba.com/c/ce2pEtB' <ide> <ide> ## Description <ide> <section id='description'> <del>If you'll recall from our discussion of <a href="javascript...
4
Javascript
Javascript
move error creation helpers to errors.js
c0762c2f54f80b92f2f5e0f9af51f4c048c53e4f
<ide><path>lib/dgram.js <ide> const SEND_BUFFER = false; <ide> // Lazily loaded <ide> var cluster = null; <ide> <del>const errnoException = util._errnoException; <del>const exceptionWithHostPort = util._exceptionWithHostPort; <add>const errnoException = errors.errnoException; <add>const exceptionWithHostPort = errors....
10
Go
Go
add init_windows.go for compilation
40b6ebfe754d6efe839f89ecfd4727ccdbbea359
<ide><path>libnetwork/ns/init_windows.go <add>package ns <add> <add>// File is present so that go build ./... is closer to working on Windows from repo root.
1
Javascript
Javascript
add table parsing capability to the doctool
0584aeb30a97d8ca81f242f4ddc05a0c6f9b7684
<ide><path>tools/doc/html.js <ide> function analyticsScript(analytics) { <ide> `; <ide> } <ide> <add>// replace placeholders in text tokens <add>function replaceInText(text) { <add> return linkJsTypeDocs(linkManPages(text)); <add>} <add> <ide> // handle general body-text replacements <ide> // for example, link man ...
1
Go
Go
fix error message when invalid directory
74a2b13687787a33b0963f020f704d3cdde4b06d
<ide><path>commands.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> } else if utils.IsURL(cmd.Arg(0)) || utils.IsGIT(cmd.Arg(0)) { <ide> isRemote = true <ide> } else { <add> if _, err := os.Stat(cmd.Arg(0)); err != nil { <add> return err <add> } <ide> context, err = Tar(cmd.Arg(0), Uncom...
1
Java
Java
take unsubscribes before onnext
d21720938426e6612ec026c2bd2d80395fbd3f07
<ide><path>src/main/java/rx/internal/operators/OperatorTake.java <ide> public void onError(Throwable e) { <ide> @Override <ide> public void onNext(T i) { <ide> if (!isUnsubscribed()) { <del> child.onNext(i); <ide> if (++count >= limit) { <id...
1
Javascript
Javascript
add test case
30856a67501a5a7f1f4f88b7c40ef106be02d07d
<ide><path>test/ConfigTestCases.template.js <ide> const describeCases = config => { <ide> return; <ide> } <ide> <del> const globalContext = { <del> console: console, <del> expect: expect, <del> setTimeout: setTimeout, <del> clearTimeout: clearTimeout, <del> ...
6
Ruby
Ruby
handle tap aliases
002f8f2eb79af9db832133ca785abf6097582e3a
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_class <ide> end <ide> end <ide> <del> @@aliases ||= Formula.aliases <add> # core aliases + tap alias names + tap alias full name <add> @@aliases ||= Formula.aliases + Formula.tap_aliases <ide> <ide> def audit_formula_name <ide> return unless @str...
1
Text
Text
add devenvironment link to contributing.md
9a4b0b982393e0612fef70c37a04654ea46b4c1d
<ide><path>CONTRIBUTING.md <ide> Want to hack on Docker? Awesome! Here are instructions to get you started. They are probably not perfect, please let us know if anything feels <ide> wrong or incomplete. <ide> <add>## Build Environment <add> <add>For instructions on setting up your development environment, please see o...
1
Python
Python
fix f401 flake8 warning (x88 / 116)
783a61699962f4b058688db21d417e1932423417
<ide><path>examples/distillation/distiller.py <ide> import os <ide> import time <ide> <del>import numpy as np <ide> import torch <ide> import torch.nn as nn <ide> import torch.nn.functional as F <ide> from torch.optim import AdamW <ide> from torch.utils.data import BatchSampler, DataLoader, RandomSampler <ide> from to...
52
Python
Python
fix formatting and consistency
1436b9f15a5cd9ba1576281636ef528e1de763c3
<ide><path>spacy/es/language_data.py <ide> def get_time_exc(hours): <ide> <ide> <ide> TOKENIZER_EXCEPTIONS = dict(TOKENIZER_EXCEPTIONS) <del>update_exc(TOKENIZER_EXCEPTIONS, get_time_exc(range(1, 12 + 1))) <ide> STOP_WORDS = set(STOP_WORDS) <ide> <del> <ide> update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(ORTH_ONLY)...
1
Python
Python
update trove classifiers
66ee1969751e1bf1d5fada15e6a1e7212cab58d9
<ide><path>setup.py <ide> def run(self, *args, **kwargs): <ide> test_suite="nose.collector", <ide> classifiers=[ <ide> "Development Status :: 5 - Production/Stable", <del> "Operating System :: OS Independent", <del> "Environment :: No Input/Output (Daemon)", <del> "Intended Audience...
1
Text
Text
fix script link
43b860a8728facf8efe16bb145060a152c929bf7
<ide><path>threejs/lessons/ru/threejs-optimize-lots-of-objects.md <ide> scene.add(mesh); <ide> [другой статье](threejs-optimize-lots-of-objects-animated.html). <ide> <ide> <canvas id="c"></canvas> <del><script type="module" src="resources/threejs-lots-of-objects.js"></script> <add><script type="module" src="../resourc...
1
Javascript
Javascript
remove unneeded classnamebinding tests
60dddda0f54b1849988c9823ca11d869cf8180fe
<ide><path>packages/ember-views/tests/views/view/actions_test.js <del>import run from 'ember-metal/run_loop'; <del>import { Mixin } from 'ember-metal/mixin'; <del>import Controller from 'ember-runtime/controllers/controller'; <del>import EmberObject from 'ember-runtime/system/object'; <del>import View from 'ember-views...
2
Javascript
Javascript
use updated monaco api
457dbe13be6a9afddd23945c381499cc9aeb1152
<ide><path>client/src/templates/Challenges/classic/Editor.js <ide> class Editor extends Component { <ide> this.props.setEditorFocusability(true) <ide> ); <ide> // This is to persist changes caused by the accessibility tooltip. <del> // Unfortunately it relies on Monaco's implementation details <del> ...
1
Go
Go
avoid testexecwindowsopenhandles timing out
f8821202c649a19cbec063399174f03c3f66527c
<ide><path>integration-cli/docker_cli_exec_test.go <ide> func (s *DockerSuite) TestExecWindowsOpenHandles(c *check.C) { <ide> exec <- true <ide> }() <ide> <add> count := 0 <ide> for { <ide> top := make(chan string) <ide> var out string <ide> func (s *DockerSuite) TestExecWindowsOpenHandles(c *check.C) { <ide> ...
1
Javascript
Javascript
add buffer slice utf-8 test
0abcf44d6b1a31250272eb4a4e24192eeba53db1
<ide><path>test/parallel/test-buffer.js <ide> writeTest.write('e', 3, 'ascii'); <ide> writeTest.write('j', 'ascii', 4); <ide> assert.equal(writeTest.toString(), 'nodejs'); <ide> <add>// ASCII slice test <add> <ide> var asciiString = 'hello world'; <ide> var offset = 100; <ide> <ide> for (var i = 0; i < asciiString.le...
1
PHP
PHP
improve error messages when replies run out
969d40df5076c6adda32a7f032b80732d6b59d67
<ide><path>src/TestSuite/ConsoleIntegrationTestTrait.php <ide> use Cake\TestSuite\Constraint\Console\ExitCode; <ide> use Cake\TestSuite\Stub\ConsoleInput; <ide> use Cake\TestSuite\Stub\ConsoleOutput; <add>use Cake\TestSuite\Stub\MissingConsoleInputException; <ide> <ide> /** <ide> * A test case class intended to make ...
4
Ruby
Ruby
remove final reference to formula_exist
ba63619f8efacd04ca6e75b593fec3fc95f56edb
<ide><path>Library/Homebrew/test/spec_helper.rb <ide> <ide> require "test/support/helper/spec/shared_context/homebrew_cask" if OS.mac? <ide> require "test/support/helper/spec/shared_context/integration_test" <del>require "test/support/helper/spec/shared_examples/formulae_exist" <ide> <ide> TEST_DIRECTORIES = [ <ide> ...
1
Go
Go
avoid jsonlog allocation in loop
473bb5274ce7a520bc73ccb3529f99729a799062
<ide><path>pkg/jsonlog/jsonlog.go <ide> func (jl *JSONLog) Format(format string) (string, error) { <ide> return fmt.Sprintf("[%s] %s", jl.Created.Format(format), jl.Log), nil <ide> } <ide> <add>func (jl *JSONLog) Reset() { <add> jl.Log = "" <add> jl.Stream = "" <add> jl.Created = time.Time{} <add>} <add> <ide> func W...
1
Text
Text
follow docs convention for notes
ee325eb5d5fbb91de7e6bbd7cfab4e7d30287821
<ide><path>docs/docs/09.5-clone-with-props.md <ide> In rare situations a component may want to change the props of a component that <ide> <ide> Do a shallow copy of `component` and merge any props provided by `extraProps`. Props are merged in the same manner as [`transferPropsTo()`](/react/docs/component-api.html#tran...
1
Javascript
Javascript
extract appcontainer into its own module
f26c908638cbf7a7708fc092e531447d4f26c4e5
<ide><path>Libraries/ReactIOS/AppContainer.js <add>/** <add> * Copyright (c) 2015-present, 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. An additional grant <add> * of pate...
2
Text
Text
add docker wg
679596c8483340bf6df65cd4a647a2c4196af6fb
<ide><path>WORKING_GROUPS.md <ide> back in to the TC. <ide> * [i18n](#i18n) <ide> * [Evangelism](#evangelism) <ide> * [Roadmap](#roadmap) <add>* [Docker](#docker) <ide> * [Starting a Working Group](#starting-a-wg) <ide> * [Bootstrap Governance](#bootstrap-governance) <ide> <ide> Its responsibilities are: <ide> * Produ...
1
Python
Python
fix bug in `preprocess_weights_for_loading`
1ddf23528e38d6ef47ad42d10010da90d8c21018
<ide><path>keras/engine/topology.py <ide> def preprocess_weights_for_loading(layer, weights, <ide> (2, 3, 1, 0)) <ide> weights = [kernel, recurrent_kernel, bias] <ide> <add> if layer.__class__.__name__ in ['Model', 'Sequential']: <add> ...
1
Java
Java
fix trailing slash in nested path
7582adc0bc4d9456465338f92198fbcbdc84151a
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java <ide> public ServerRequest nestRequest(ServerRequest request) { <ide> if (!subPath.startsWith("/")) { <ide> subPath = "/" + subPath; <ide> } <add> if (requestPath.endsWith("/") && !subPath.endsWit...
1
Javascript
Javascript
provide info about actual error
2bee7996a57a44aec1f7ee3a07cd49a5b235ad78
<ide><path>lib/assert.js <ide> function expectsNoError(stackStartFn, actual, error, message) { <ide> actual, <ide> expected: error, <ide> operator: stackStartFn.name, <del> message: `Got unwanted ${fnType}${details}\n${actual && actual.message}`, <add> message: `Got unwanted ${fnType}${detai...
3
Ruby
Ruby
fix my own typo now, ops! [ci skip]
10a37f33b795519c63cc4eced2329326bd7c6852
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def not(opts, *rest) <ide> # # WHERE "authors"."id" IS NULL <ide> # <ide> # Additionally, multiple relations can be combined. This will return posts <del> # that are missing both an author and any` comments: <add> #...
1
Text
Text
fix typo in caching with rails guide [skip ci]
17545b4d889149d8185c0a3a78030703d7e70c0e
<ide><path>guides/source/caching_with_rails.md <ide> Caching in Development <ide> ---------------------- <ide> <ide> It's common to want to test the caching strategy of your application <del>in developement mode. Rails provides the rake task `dev:cache` to <add>in development mode. Rails provides the rake task `dev:c...
1
PHP
PHP
fix migration path
c4a5b3b0967820eacdcc1d351d48f1e1afa07ec9
<ide><path>src/Illuminate/Database/Console/Migrations/BaseCommand.php <ide> protected function getMigrationPath() <ide> return $this->laravel['path.base'].$path; <ide> } <ide> <del> return $this->laravel['path'].'/database/migrations'; <add> return $this->laravel['path.database'].'/migrations'; <ide> } <ide> ...
2
Ruby
Ruby
skip broken formulae
7ff5de2ad816e54eef5baa839365fd465088ae44
<ide><path>Library/Homebrew/formula.rb <ide> def self.names <ide> <ide> # an array of all Formula, instantiated <ide> def self.all <del> names.map{ |fn| Formula.factory(fn) } <add> all = [] <add> names.each do |n| <add> begin <add> all << Formula.factory(n) <add> rescue <add> # Don...
1
Text
Text
fix indentation for proper markdown syntax
c7010bef6ea96fb6035a746ad0f5c2a24c46ae21
<ide><path>CONTRIBUTING.md <ide> Before you submit your pull request consider the following guidelines: <ide> <ide> If the PR gets too outdated we may ask you to rebase and force push to update the PR: <ide> <del> ```shell <del> git rebase master -i <del> git push origin my-fix-branch -f <del> ``` <add>``...
1
Ruby
Ruby
default the reaping frequency to 10 seconds
7cc588b684f6d1af3e7fab1edfa6715e269e41a2
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def initialize(spec) <ide> <ide> @checkout_timeout = spec.config[:checkout_timeout] || 5 <ide> @dead_connection_timeout = spec.config[:dead_connection_timeout] || 5 <del> @reaper = Reaper.new self, s...
1
Javascript
Javascript
implement textarea keyword
5d95e7b739dd40a91925625adf449ed1b785db98
<ide><path>packages/ember-htmlbars/lib/env.js <ide> import view from "ember-htmlbars/keywords/view"; <ide> import componentKeyword from "ember-htmlbars/keywords/component"; <ide> import partial from "ember-htmlbars/keywords/partial"; <ide> import input from "ember-htmlbars/keywords/input"; <add>import textarea from "em...
5
Text
Text
update korean transltaion to 4c778e2
e67c0943b887dc9e4f9853d904f92367d5cef091
<ide><path>docs/docs/02.1-jsx-in-depth.ko-KR.md <ide> var person = React.createElement( <ide> ); <ide> ``` <ide> <add>### 불린 어트리뷰트 <add> <add>어트리뷰트의 값을 생략하면 JSX는 값을 `true`로 취급합니다. 어트리뷰트 표현식에 `false`를 넘기려면 사용해야만 합니다. HTML 폼 엘리먼트에 `disabled`, `required`, `checked`, `readOnly`같은 어트리뷰트를 사용할 일이 자주 있습니다. <add> <add>```javas...
6
Python
Python
fix flax_multiple_choice_sample typo
eec9c8bbd784059275527897aad75df59442a370
<ide><path>src/transformers/file_utils.py <ide> def _prepare_output_docstrings(output_type, config_class, min_indent=None): <ide> >>> encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors='jax', padding=True) <ide> >>> outputs = model(**{{k: v[None, :] for k,v in encoding.items()}}) <ide> <...
1
PHP
PHP
apply suggestions from code review
036e1220cd7a8d022031a56290d9310b39edb0a9
<ide><path>src/ORM/Table.php <ide> public function get($primaryKey, array $options = []): EntityInterface <ide> if ($cacheConfig) { <ide> if (!$cacheKey) { <ide> $cacheKey = sprintf( <del> 'get-%s.%s%s', <add> 'get-%s-%s-%s', <ide> ...
1
Ruby
Ruby
use actiondispatch mimes in asset_tag_helper_test
5579871687c95797039bcd978063e0a0a4782d78
<ide><path>actionview/test/template/asset_tag_helper_test.rb <ide> require "abstract_unit" <ide> require "active_support/ordered_options" <ide> <add>require "action_dispatch" <add>ActionView::Template::Types.delegate_to Mime <add> <ide> class AssetTagHelperTest < ActionView::TestCase <ide> tests ActionView::Helpers:...
1
PHP
PHP
pass path to route loader
bf30ca7238203f224e32b1c88037b5ec774b0f85
<ide><path>public/index.php <ide> * @link http://laravel.com <ide> */ <ide> <add>$t = microtime(true); <add> <ide> // -------------------------------------------------------------- <ide> // The path to the application directory. <ide> // -------------------------------------------------------------- <ide> // ---...
1
Python
Python
add english lex_attrs overrides
88adeee5485aaa021de3aa7632e8687d1fc9459c
<ide><path>spacy/lang/en/__init__.py <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <ide> from .tag_map import TAG_MAP <ide> from .stop_words import STOP_WORDS <add>from .lex_attrs import LEX_ATTRS <ide> from .morph_rules import MORPH_RULES <ide> from .lemmatizer import LEMMA_RULES, LEMMA_INDEX, LEMMA_EXC...
2
Text
Text
remove tmp file
b3f2a208322c84886a19dcf2faa8c6ecc5e7f1bb
<ide><path>changelog.tmp.md <del><a name="v1.0.0rc3"></a> <del># v1.0.0rc3 (2012-03-27) <del> <del> <del>## Bug Fixes <del> <del>- **$compile:** <del> - create new (isolate) scopes for directives on root elements ([5390fb37](https://github.com/angular/angular.js/commit/5390fb37d2c01937922613fc57df4986af521787), closes...
1
Javascript
Javascript
remove unused code block
73343d5ceef7cb4ddee1ed0ddd2c51d1958e3bb1
<ide><path>lib/_http_server.js <ide> ServerResponse.prototype.writeHead = function(statusCode) { <ide> <ide> var obj = arguments[headerIndex]; <ide> <del> if (obj && this._headers) { <del> if (util.isArray(obj)) { <del> // handle array case <del> // TODO: remove when array is no longer accepted <del> ...
1
Javascript
Javascript
fix url interception in hash-bang mode
58ef32308f45141c8f7f7cc32a6156cd328ba692
<ide><path>src/ng/http.js <ide> function isSameDomain(requestUrl, locationUrl) { <ide> relativeProtocol: match[2] === undefined || match[2] === '' <ide> }; <ide> <del> match = URL_MATCH.exec(locationUrl); <add> match = SERVER_MATCH.exec(locationUrl); <ide> var domain2 = { <ide> protocol: match[1], ...
4
Python
Python
add more tests for qr factorization
d0b6a7a48e4662b3c2788d541b06ad5d46a2f177
<ide><path>numpy/linalg/tests/test_deprecations.py <add>"""Test deprecation and future warnings. <add> <add>""" <add>import numpy as np <add>from numpy.testing import assert_warns, run_module_suite <add> <add> <add>def test_qr_mode_full_future_warning(): <add> """Check mode='full' FutureWarning. <add> <add> In nu...
2
Javascript
Javascript
remove applyastemplateargument function
917200d46a9b390c9062c69019aafb9a87d7f92a
<ide><path>lib/dependencies/ModuleDependencyTemplateAsId.js <ide> class ModuleDependencyTemplateAsId { <ide> content = require("./WebpackMissingModule").module(dep.request); <ide> source.replace(dep.range[0], dep.range[1] - 1, content); <ide> } <del> <del> applyAsTemplateArgument(name, dep, source) { <del> if(!d...
1
Java
Java
add support for forwardedheaderfilter sendredirect
db2ebd30da027498273ed7a4ea6714d07adef6fd
<ide><path>spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java <ide> import java.util.Locale; <ide> import java.util.Map; <ide> import java.util.Set; <add> <ide> import javax.servlet.FilterChain; <ide> import javax.servlet.ServletException; <ide> import javax.servlet.http.HttpServletReque...
2
Ruby
Ruby
share common logic
443111896e71f394a19047caf6ac9e0e8e2e9b4d
<ide><path>Library/Homebrew/update_migrator/cache_entries_to_symlinks.rb <ide> def migrate_cache_entries_to_symlinks(initial_version) <ide> <ide> ohai "Migrating cache entries..." <ide> <add> cache_entries = lambda do |path| <add> if path.directory? <add> path.children <add> .reject(&:sy...
1
Go
Go
update version to not use string anymore
3ee37f547f4685ab88bfc39517cc18c1911451e5
<ide><path>api/common.go <ide> package api <ide> import ( <ide> "fmt" <ide> "github.com/dotcloud/docker/engine" <add> "github.com/dotcloud/docker/pkg/version" <ide> "github.com/dotcloud/docker/utils" <ide> "mime" <ide> "strings" <ide> ) <ide> <ide> const ( <del> APIVERSION = "1.10" <del> DEFAULTHTTPHOST ...
4
Javascript
Javascript
add localesorted argument to weekday listers
08b2661a9e8384ff0eeabbf4c4f339164e0bcc92
<ide><path>src/lib/locale/lists.js <ide> function get (format, index, field, setter) { <ide> return locale[field](utc, format); <ide> } <ide> <del>function list (format, index, field, count, setter) { <add>function listMonthsImpl (format, index, field) { <ide> if (typeof format === 'number') { <ide> in...
2
Javascript
Javascript
remove old eslint-ignores from unstable_ prefix
b2624012ea52438dee783425e0d6b87d14c0fc9e
<ide><path>packages/next/export/worker.js <ide> export default async function({ <ide> let curRenderOpts = {} <ide> let renderMethod = renderToHTML <ide> <del> // eslint-disable-next-line camelcase <ide> const renderedDuringBuild = getStaticProps => { <del> // eslint-disable-next-line camelcase <ide...
23
Python
Python
add sparse option to np.core.numeric.indices
504b287bdf4745256044f336f17c88ddcb0175dd
<ide><path>numpy/core/numeric.py <ide> def roll(a, shift, axis=None): <ide> array([8, 9, 0, 1, 2, 3, 4, 5, 6, 7]) <ide> >>> np.roll(x, -2) <ide> array([2, 3, 4, 5, 6, 7, 8, 9, 0, 1]) <del> <add> <ide> >>> x2 = np.reshape(x, (2,5)) <ide> >>> x2 <ide> array([[0, 1, 2, 3, 4], <ide> def cross(a,...
2
Mixed
Ruby
add metadata to schema_migrations
0a5afa229d769bce9e221f34053bb93b60817a5a
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Add metadata columns to schema_migrations table. <add> New columns are: migrated_at (timestamp), <add> fingerprint (md5 hash of migration source), and <add> name (filename minus version and extension) <add> <add> *...
10
Javascript
Javascript
improve coverage of the buffer module
8699ecd3400259be3e2c1b373f5de34a7fb43128
<ide><path>test/parallel/test-buffer-alloc.js <ide> assert.strictEqual(512, c.length); <ide> const d = Buffer.from([]); <ide> assert.strictEqual(0, d.length); <ide> <add>// Test offset properties <add>{ <add> const b = Buffer.alloc(128); <add> assert.strictEqual(128, b.length); <add> assert.strictEqual(0, b.byteOff...
4
Text
Text
fix some recent nits in fs.md
039eb5624950ca5eba46fad8ab78924441d7acfc
<ide><path>doc/api/fs.md <ide> added: v12.12.0 <ide> <ide> A class representing a directory stream. <ide> <del>Created by [`fs.opendir()`][], [`fs.opendirSync()`][], or [`fsPromises.opendir()`][]. <add>Created by [`fs.opendir()`][], [`fs.opendirSync()`][], or <add>[`fsPromises.opendir()`][]. <ide> <ide> ```js <ide> ...
1
PHP
PHP
add missing docblock for typehint
8a503c32999750e601d2d4e82a34bd4e8a290454
<ide><path>src/I18n/Number.php <ide> public static function formatter(array $options = []): NumberFormatter <ide> static::$_formatters[$locale][$type] = new NumberFormatter($locale, $type); <ide> } <ide> <add> /** @var \NumberFormatter $formatter */ <ide> $formatter = static::$_forma...
1
Python
Python
fix typo in docstring for pipeline
3b583d02d6d63295e1756116cd611d651c7ffe96
<ide><path>src/transformers/pipelines/__init__.py <ide> def pipeline( <ide> - :obj:`"text2text-generation"`: will return a :class:`~transformers.Text2TextGenerationPipeline`. <ide> - :obj:`"text-generation"`: will return a :class:`~transformers.TextGenerationPipeline`. <ide> - :obj:`...
1
Javascript
Javascript
create context for more stuff
f3213f2d00c0df8dfa137ac8150b819747a9e475
<ide><path>lib/ContextModule.js <ide> ContextModule.prototype.source = function(dependencyTemplates, outputOptions, re <ide> var str = [ <ide> "var map = ", JSON.stringify(map, null, "\t"), ";\n", <ide> "function webpackContext(req) {\n", <del> "\treturn require(map[req] || (function() { throw new Error(\"Cannot ...
8
Javascript
Javascript
remove support for `process.platform`
46d98e1d688890b18445b9fe7e9d208f4ea6c758
<ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js <ide> function setUpProcess() { <ide> if (!global.process.env.NODE_ENV) { <ide> global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production'; <ide> } <del> <del> polyfillLazyGlobal('platform', () => require('Platfo...
3
Ruby
Ruby
allow regex without capture groups
0deceac28cf190900ca861f7da27f05cf82f8b61
<ide><path>Library/Homebrew/livecheck/strategy/page_match.rb <ide> def self.page_matches(url, regex, &block) <ide> end <ide> end <ide> <del> page.scan(regex).map(&:first).uniq <add> page.scan(regex).map do |match| <add> case match <add> when String <add> ...
1
Text
Text
clarify case for already placed valid number
728f44ab38a42df1cb763f828957ea3f2a4e131d
<ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md <ide> async (getUserInput) => { <ide> }; <ide> ``` <ide> <add>If `value` submitted to `/api/check` is already placed in `puzzle` on that `coordinate`, the returned value will be an object containing a `valid` prop...
1
Javascript
Javascript
fix jshint issue
8f6f8820686cc57ab0ee3139c4d7d7c2c13b7014
<ide><path>src/elements/element.point.js <ide> module.exports = function(Chart) { <ide> Chart.elements.Point = Chart.Element.extend({ <ide> inRange: function(mouseX, mouseY) { <ide> var vm = this._view; <del> return vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.rad...
1
Java
Java
avoid creation of unnecessary environment objects
91f05c8b9d4e108e744484d808564a95b618e731
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java <ide> public class AnnotatedBeanDefinitionReader { <ide> <ide> private final BeanDefinitionRegistry registry; <ide> <del> private Environment environment = new StandardEnvironment(); <add> p...
4
Text
Text
fix changelog.md formatting
e5f9ef62f6d94c908b9a0cde6e4dff2e5088964e
<ide><path>CHANGELOG.md <ide> release. <ide> </td> <ide> <td valign="top"> <ide> <b><a href="doc/changelogs/CHANGELOG_V14.md#14.17.2">14.17.2</a></b><br/> <del><a href="doc/changelogs/CHANGELOG_V14.md#14.17.1">14.17.1</a></b> <add><a href="doc/changelogs/CHANGELOG_V14.md#14.17.1">14.17.1</a><br/> <ide> <a href=...
1
Text
Text
add example to concisely return object
2e92a63a690fc35f82ad14cea9daae428a55cf90
<ide><path>guide/english/javascript/arrow-functions/index.md <ide> const multiply = (x, y) => x * y; <ide> // if you only have one argument/parameter <ide> const multiplyBy2 = x => x * 2; <ide> <add>// if you need to concisely return an object, you can wrap the {} inside the () to avoid syntax conflicts <add>const ge...
1
Ruby
Ruby
fix incorrect usage of 'or'
bb2e67f37e608f1987348c06c6c1435ea6850568
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_xcode_select_path <ide> # with the advent of CLT-only support, we don't need xcode-select <ide> return if MacOS.clt_installed? <ide> unless File.file? "#{MacOS.xcode_folder}/usr/bin/xcodebuild" and not MacOS.xctools_fucked? <del> path = MacOS.app_with_b...
1
Python
Python
use bundle entry-points (and rearrange setup.py)
a8d02a2f4d528d1ac47fec67b33b4a838c1618f9
<ide><path>celery/contrib/bundles.py <add>import os <add>import sys <add> <add>from celery import VERSION <add>from bundle import Bundle <add>from bundle.extensions import Dist <add> <add> <add>defaults = {"author": "Celery Project", <add> "author_email": "bundles@celeryproject.org", <add> "url": ...
2
PHP
PHP
return instance from foundation helpers
33f4a611095812ebb8a8a2fda2870caf22789e9b
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function bcrypt($value, $options = array()) <ide> * @param mixed $default <ide> * @return mixed <ide> */ <del> function config($key, $default = null) <add> function config($key = null, $default = null) <ide> { <add> if (is_null($key)) return app('config')...
1
Python
Python
assign ips upon machine creation
ca8e25b6a495a7ea883c82aadd289833dcf1cf29
<ide><path>libcloud/compute/drivers/packet.py <ide> <ide> <ide> import datetime <add>import json <ide> <ide> from libcloud.utils.py3 import httplib <ide> <ide> def list_sizes(self): <ide> size.get('line') == 'baremetal'] <ide> <ide> def create_node(self, name, size, image, location, <del> ...
1
PHP
PHP
add support for appendable component attributes
09b887b85614d3e2539e74f40d7aa9c1c9f903d3
<ide><path>src/Illuminate/View/AppendableAttributeValue.php <add><?php <add> <add>namespace Illuminate\View; <add> <add>class AppendableAttributeValue <add>{ <add> public $value; <add> <add> public function __construct($value) <add> { <add> $this->value = $value; <add> } <add>} <ide><path>src/Illumin...
5
Ruby
Ruby
integrate amo xml serializer into ar
e83a05af076637cc78f0408f5810d5f8f965e10c
<ide><path>activemodel/lib/active_model/serializers/xml.rb <ide> def initialize(name, serializable) <ide> @value = compute_value <ide> end <ide> <add> # There is a significant speed improvement if the value <add> # does not need to be escaped, as <tt>tag!</tt> escapes all values...
2
Ruby
Ruby
require minitest rather than test/unit
b15d2c0708b78ee1c8ad6958022214bda18bdbae
<ide><path>actionmailer/test/abstract_unit.rb <ide> lib = File.expand_path("#{File.dirname(__FILE__)}/../lib") <ide> $:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) <ide> <del>require 'test/unit' <add>require 'minitest/autorun' <ide> require 'action_mailer' <ide> require 'action_mailer/test_case' <ide> ...
13
Javascript
Javascript
replace simple quote by double quote
6158e4f522fa4b9293085a1e3cd7c6ff97fe5079
<ide><path>glances/outputs/static/js/components/plugin-alert/component.js <ide> import angular from "angular"; <ide> import GlancesPluginAlertController from "./controller"; <ide> import template from "./view.html"; <ide> <del>export default angular.module('glancesApp').component('glancesPluginAlert', { <add>export de...
3
Java
Java
fix typo in error message.
c799bc08ade4fb981a2a5b2ad983a0adf1445c23
<ide><path>src/main/java/io/reactivex/observers/BaseTestConsumer.java <ide> public final U assertValueSequence(Iterable<? extends T> sequence) { <ide> throw fail("More values received than expected (" + i + ")"); <ide> } <ide> if (expectedNext) { <del> throw fail("Fever values rec...
1
Javascript
Javascript
return self from readable.wrap
14947b6c5e12ec65e6df75d4db5bcf47f7b29819
<ide><path>lib/_stream_readable.js <ide> Readable.prototype.wrap = function(stream) { <ide> // underlying stream. <ide> self._read = function(n) { <ide> if (paused) { <del> stream.resume(); <ide> paused = false; <add> stream.resume(); <ide> } <ide> }; <add> <add> return self; <ide> }; <id...
2
Ruby
Ruby
add async and inline adapters
b17a7e4c4daa4ab54223b0c5e2d03b491c070e0e
<ide><path>actioncable/lib/action_cable/subscription_adapter/async.rb <add>require 'action_cable/subscription_adapter/inline' <add> <add>module ActionCable <add> module SubscriptionAdapter <add> class Async < Inline # :nodoc: <add> private <add> def subscriber_map <add> @subscriber_map ||= Asyn...
2
Text
Text
improve russian translation
78e4ef96317b27b1e56769c27e3ce8f9844b3b76
<ide><path>curriculum/challenges/russian/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.russian.md <ide> localeTitle: Используйте файл .env <ide> ## Description <ide> <section id='description'> <ide> Файл <code>.env</code> - это скрытый файл, который используется для передачи переменных среды вашему...
1
Go
Go
check sysinfo for cpuset cpu.shares and blkio
b7599d58cb103e3b13b3a51553fd69f5f8b60893
<ide><path>daemon/daemon_unix.go <ide> func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *runconfig.HostC <ide> return warnings, fmt.Errorf("Invalid value: %v, valid memory swappiness range is 0-100.", swappiness) <ide> } <ide> } <add> if hostConfig.CPUShares > 0 && !daemon.SystemConfig().CPUShares ...
3
Javascript
Javascript
implement synthetic modules for node 10
a53578be7e6dbbc3767440add2666ffb248c9985
<ide><path>test/ConfigTestCases.template.js <ide> const describeCases = config => { <ide> specifier, <ide> "evaluated" <ide> ); <del> return await asModule(result); <add> return await asModule(result, module.context); <ide> } <ide>...
3
Text
Text
fix typo on oop challenge
abc6c3c2088e2ee7d7688ce8247aa5a9a7c6c96d
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/remember-to-set-the-constructor-property-when-changing-the-prototype.english.md <ide> function Dog(name) { <ide> // Modify the code below this line <ide> Dog.prototype = { <ide> <del> numLegs: 2, <add> n...
1
Java
Java
fix directories i/o in resourcehttprequesthandler
4d5fca596dfe193556ad7148d16aae718805a84d
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java <ide> <ide> package org.springframework.web.servlet.resource; <ide> <add>import java.io.FileNotFoundException; <ide> import java.io.IOException; <ide> import java.io.InputStream; <ide> import java.io.Output...
2
Ruby
Ruby
use pg connection#escape over connection.escape
a2dc26e5add938058b99e2c6c4fe4640dfdae9dd
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb <ide> def quote(value) # :nodoc: <ide> <ide> # Quotes strings for use in SQL input. <ide> def quote_string(s) # :nodoc: <del> PG::Connection.escape(s) <add> @connection.escape(s) <ide> end <ide...
3
Python
Python
add assert_docs_equal util to compare two docs
442237787c7b25b38fb441a444f7c780f847f686
<ide><path>spacy/tests/util.py <ide> def apply_transition_sequence(parser, doc, sequence): <ide> def get_cosine(vec1, vec2): <ide> """Get cosine for two given vectors""" <ide> return numpy.dot(vec1, vec2) / (numpy.linalg.norm(vec1) * numpy.linalg.norm(vec2)) <add> <add> <add>def assert_docs_equal(doc1, doc2): <...
1
Javascript
Javascript
fix deprecation warning in test-doctool-html
0a77830342c699ff8b3e4e2602b57afd01311baa
<ide><path>test/doctool/test-doctool-html.js <ide> function toHTML({ input, filename, nodeVersion, versions }) { <ide> .use(html.preprocessText, { nodeVersion }) <ide> .use(html.preprocessElements, { filename }) <ide> .use(html.buildToc, { filename, apilinks: {} }) <del> .use(remark2rehype, { allowDanger...
1
Ruby
Ruby
lock the whole boot step, get rid of unneeded hash
844af9fa7c18a0ee3316d6cf1289b144d48d84d7
<ide><path>activesupport/lib/active_support/evented_file_update_checker.rb <ide> def initialize(files, dirs = {}, &block) <ide> @block = block <ide> @updated = Concurrent::AtomicBoolean.new(false) <ide> @lcsp = @ph.longest_common_subpath(@dirs.keys) <del> @pid_hash = Concurrent::H...
1
Ruby
Ruby
incorporate suggestions from code review
2a941ec6b17bcb0d9557cf3604d64a3954cc199e
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit <ide> # Run tap audits first <ide> if args.tap <ide> tap = Tap.fetch(args.tap) <del> ta = TapAuditor.new(tap, options) <add> ta = TapAuditor.new(tap, strict: args.strict?) <ide> ta.audit <ide> <ide> if ta.problems.any? <id...
2
Ruby
Ruby
make arel methods private api
cd93d7175e3f92c77744110204dc9194a3aa592c
<ide><path>activerecord/lib/active_record/core.rb <ide> def ===(object) <ide> # class Post < ActiveRecord::Base <ide> # scope :published_and_commented, -> { published.and(self.arel_table[:comments_count].gt(0)) } <ide> # end <del> def arel_table <add> def arel_table # :nodoc: <ide> ...
2
Javascript
Javascript
add docs for ngpattern, ngminlength, ngmaxlength
8863836cd4b82c8f0f9d72de4323aace28402c38
<ide><path>src/ng/directive/validators.js <ide> var requiredDirective = function() { <ide> }; <ide> }; <ide> <add>/** <add> * @ngdoc directive <add> * @name ngPattern <add> * <add> * @description <add> * <add> * ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `n...
1
Python
Python
fix a typo in doc comment about reset_after
f717f8cf0978b5e2fa3560870681e49dda248ef3
<ide><path>keras/layers/recurrent_v2.py <ide> class GRU(recurrent.DropoutRNNCellMixin, recurrent.GRU): <ide> <ide> The second variant is compatible with CuDNNGRU (GPU-only) and allows <ide> inference on CPU. Thus it has separate biases for `kernel` and <del> `recurrent_kernel`. To use this variant, set `'reset_af...
1
Go
Go
update recommended kernel in checkkernel
ceae5f54b3abe805b3323476dafb00595b064ed2
<ide><path>daemon/daemon.go <ide> func checkKernel() error { <ide> // test for specific functionalities. <ide> // Unfortunately we can't test for the feature "does not cause a kernel panic" <ide> // without actually causing a kernel panic, so we need this workaround until <del> // the circumstances of pre-3.8 crashe...
1
Go
Go
restore volume refs after daemon restart
9acf7c765c7e074f6c75eaf162ca06ecfe40d692
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) restore() error { <ide> } <ide> <ide> for _, c := range registeredContainers { <del> for _, mnt := range c.VolumeMounts() { <del> daemon.volumes.Add(mnt.volume) <del> } <add> c.registerVolumes() <ide> } <ide> <ide> if !debug { <ide><path>daemon/volumes....
4
Javascript
Javascript
prevent browser console errors during testing
e416032b3845d337ebe4f2819ab44ca044afd159
<ide><path>src/display/font_loader.js <ide> FontLoader.prototype = { <ide> clear: function fontLoaderClear() { <ide> var styleElement = this.styleElement; <ide> if (styleElement) { <del> styleElement.parentNode.removeChild(styleElement); <add> if (styleElement.parentNode) { <add> // Prevent "...
4
Ruby
Ruby
document the return value of update_all [ci skip]
b488d8e08950685ae978b118af813516ce71fecc
<ide><path>activerecord/lib/active_record/relation.rb <ide> def _exec_scope(name, *args, &block) # :nodoc: <ide> # Updates all records in the current relation with details given. This method constructs a single SQL UPDATE <ide> # statement and sends it straight to the database. It does not instantiate the invol...
1
Python
Python
rewrite cli errors
5436dddf64f0103088c4ca212f16efa40c88766a
<ide><path>flask/cli.py <ide> def find_best_app(script_info, module): <ide> # Search for the most common names first. <ide> for attr_name in ('app', 'application'): <ide> app = getattr(module, attr_name, None) <add> <ide> if isinstance(app, Flask): <ide> return app <ide> <ide> def f...
3
PHP
PHP
fix tests for previous commit
eb4c229522ae69000dd4b89b9f4feaec3c68ec5a
<ide><path>tests/TestCase/Routing/Middleware/RoutingMiddlewareTest.php <ide> public function testInvokeScopedMiddleware() <ide> 'REQUEST_METHOD' => 'GET', <ide> 'REQUEST_URI' => '/api/ping', <ide> ]); <del> $handler = new TestRequestHandler(); <del> $middleware = new Routin...
1
Go
Go
allow maximum possible vni
a95260646a160a38f276ae357031e434e7b7e2c9
<ide><path>libnetwork/drivers/overlay/overlay.go <ide> const ( <ide> vethPrefix = "veth" <ide> vethLen = 7 <ide> vxlanIDStart = 256 <del> vxlanIDEnd = 1000 <add> vxlanIDEnd = (1 << 24) - 1 <ide> vxlanPort = 4789 <ide> vxlanVethMTU = 1450 <ide> )
1
Javascript
Javascript
implement helper methods in ember.view
411321a81346b2d15ecfb110510a0bd9dd68108b
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View = Ember.Object.extend(Ember.Evented, <ide> // Variable in which the old class value is saved. The observer function <ide> // closes over this variable, so it knows which string to remove when <ide> // the property changes. <del> v...
1