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
add notes about the deployments
4facf4a1bd10e2857da09da1cac5dab2b59ae22b
<ide><path>docs/how-to-enable-new-languages.md <ide> Then commit and push your branch directly to the News repo. <ide> <ide> Finally, open a PR for review. <ide> <del>Once both your PRs to the CDN and News repo have been approved, they can be merged. Deployment will be handled subsequently by the staff. <add>Once bot...
1
Javascript
Javascript
destroy socket on dns error
4671e54495a29696ae8e5f9bd17ba4c63f5d1b23
<ide><path>lib/net.js <ide> Socket.prototype.connect = function(port /* [host], [cb] */) { <ide> // error event to the next tick. <ide> process.nextTick(function() { <ide> self.emit('error', err); <add> self.destroy(); <ide> }); <ide> } else { <ide> timers.active...
1
Mixed
Javascript
fix stoppable events in tests and docs
e3fcd96dc4b3e51e9b1260a85fe477c2a8901a75
<ide><path>actionview/test/ujs/public/test/call-remote-callbacks.js <ide> asyncTest('setting data("with-credentials",true) with "ajax:before" uses new set <ide> <ide> asyncTest('stopping the "ajax:beforeSend" event aborts the request', 1, function() { <ide> submit(function(form) { <del> form.bindNative('ajax:befo...
9
PHP
PHP
add tests for name
87c4af7de4baecc13b8195a9672259b33d0687b3
<ide><path>tests/TestCase/Routing/RouteCollectionTest.php <ide> public function testParse() <ide> $routes = new RouteBuilder($this->collection, '/b', ['key' => 'value']); <ide> $routes->connect('/', ['controller' => 'Articles']); <ide> $routes->connect('/:id', ['controller' => 'Articles', 'actio...
1
Go
Go
add support for service-level 'volumes' key
0884e3c86892a0f51b8feeeb30ff486c821796f5
<ide><path>cli/command/stack/deploy.go <ide> import ( <ide> "fmt" <ide> "io/ioutil" <ide> "os" <add> "strings" <ide> "time" <ide> <ide> "github.com/spf13/cobra" <ide> import ( <ide> "github.com/aanand/compose-file/loader" <ide> composetypes "github.com/aanand/compose-file/types" <ide> "github.com/docker/docker...
1
Text
Text
add comparison table with new models
f740177c878778fc2f55ba33ad610b47f996a925
<ide><path>model_cards/mrm8488/bert-mini-finetuned-squadv2/README.md <ide> The script for fine tuning can be found [here](https://github.com/huggingface/tr <ide> | Model | EM | F1 score | SIZE (MB) | <ide> | --------------------...
1
Python
Python
add m2m repointing
375178fc19c1170fe046ad26befeba02fc19548c
<ide><path>django/db/backends/schema.py <ide> class BaseDatabaseSchemaEditor(object): <ide> commit() is called. <ide> <ide> TODO: <del> - Repointing of M2Ms <ide> - Check constraints (PosIntField) <ide> """ <ide> <ide> def effective_default(self, field): <ide> <ide> # Actions <ide> <d...
4
Python
Python
fix typo in mlir bridge flag definition
69c092e92e9e050a8c49c569633af1e6e492eaaf
<ide><path>official/nlp/nhnet/trainer.py <ide> def define_flags(): <ide> # Enables MLIR-based TF/XLA bridge. This is part of a soft rollout and will <ide> # eventually be the Google-wide default. <ide> flags.DEFINE_bool("enable_mlir_bridge", True, <del> "Use MLIR TF/XLA bridge (experimental) --...
1
PHP
PHP
fix alphabetical order for password rules
52e99847d0e97ab87b53182d4beb1c091896b5c0
<ide><path>lang/en/validation.php <ide> 'not_regex' => 'The :attribute format is invalid.', <ide> 'numeric' => 'The :attribute must be a number.', <ide> 'password' => [ <del> 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', <ide> 'letters' => 'The :at...
1
PHP
PHP
add test for merged wheres in withcount
03300b0632d1839b12139022bd0a3aa6055f6ddb
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testWithCountAndMergedWheres() <ide> { <ide> $model = new EloquentBuilderTestModelParentStub; <ide> <del> $builder = $model->select('id')->withCount(['activeFoo' => function($q){ <add> $builder = $model->select('i...
1
PHP
PHP
add some docs for cookies
3680ee0f1f681398713e93805745aa049ccf109b
<ide><path>lib/Cake/Network/Http/HttpSocket.php <ide> protected function _buildHeader($header, $mode = 'standard') { <ide> /** <ide> * Builds cookie headers for a request. <ide> * <add> * Cookies can either be in the format returned in responses, or <add> * a simple key => value pair. <add> * <ide> * @param array $c...
1
Text
Text
fix minor typos in governance.md
2fbe15b82c33fac4d09624b071e5f59862fa1dee
<ide><path>GOVERNANCE.md <ide> responsibility for the change. In the case of pull requests proposed <ide> by an existing Collaborator, an additional Collaborator is required <ide> for sign-off. <ide> <del>If one or more Collaborators oppose a proposed change, then the change can not <add>If one or more Collaborators o...
1
Python
Python
make the split of batch outside gpus (#51)
57f839bf283b87fc33e30bbeea182c78b147357f
<ide><path>inception/inception/inception_train.py <ide> def train(dataset): <ide> # Number of classes in the Dataset label set plus 1. <ide> # Label 0 is reserved for an (unused) background class. <ide> num_classes = dataset.num_classes() + 1 <add> <add> # Split the batch of images and labels for to...
1
PHP
PHP
fix another fqn
2c9f2fce78c30e22c4607e1ce75135acaa549d9e
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> use Cake\Core\App; <ide> use Cake\Core\Configure; <ide> use Cake\Event\EventInterface; <add>use Cake\Http\Response; <add>use Cake\Http\ServerRequest; <ide> use Cake\Routing\Router; <ide> use Cake\Utility\Exception\XmlException; <ide> use Cake\Utility...
1
Javascript
Javascript
fix hot loader compatibility with java8 nashorn
ebe2f371c1a9ed303dd30f0c1ee51cd51718e4bd
<ide><path>lib/JsonpMainTemplate.runtime.js <ide> module.exports = function() { <ide> function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars <ide> hotAddUpdateChunk(chunkId, moreModules); <ide> if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules); <del>...
4
Text
Text
add notes to contributing docs
e6f6bb5c7e3e882b0215c981e2f2b6a576820100
<ide><path>docs/topics/contributing.md <ide> If you want to draw attention to a note or warning, use a pair of enclosing line <ide> <ide> --- <ide> <add>## Third party packages <add> <add>New features to REST framework are generally recommended to be implemented as third party libraries that are developed out...
1
PHP
PHP
remove classes from aliases list
2ddf39f29ff1d82e69914318868884af7b24f8ef
<ide><path>config/app.php <ide> <ide> 'aliases' => [ <ide> <del> 'App' => 'Illuminate\Support\Facades\App', <del> 'Artisan' => 'Illuminate\Support\Facades\Artisan', <del> 'Auth' => 'Illuminate\Support\Facades\Auth', <del> 'Blade' => 'Illuminate\Support\Facades\Blade', <de...
2
Ruby
Ruby
build rubygem beta version string correctly
e26da953400f698b0401ec47b6b90ee9f01d808b
<ide><path>lib/ember/version.rb <ide> module Ember <ide> # we might want to unify this with the ember version string, <ide> # but consistency? <ide> def rubygems_version_string <del> if VERSION =~ /rc/ <del> major, rc = VERSION.sub('-','.').scan(/(\d+\.\d+\.\d+\.rc)\.(\d+)/).first <add> if VERSION =~ /...
1
Go
Go
fix lint issues
729d45379fedc4b8cfe692260ef520bbdcc8e3b6
<ide><path>libnetwork/cmd/dnet/dnet.go <ide> func startTestDriver() error { <ide> return err <ide> } <ide> <del> if err := ioutil.WriteFile("/etc/docker/plugins/test.spec", []byte(server.URL), 0644); err != nil { <del> return err <del> } <del> <del> return nil <add> return ioutil.WriteFile("/etc/docker/plugins/tes...
8
Python
Python
fix closing connection dbapi.get_pandas_df
ab1f637e463011a34d950c306583400b7a2fceb3
<ide><path>airflow/hooks/dbapi.py <ide> def get_pandas_df(self, sql, parameters=None, **kwargs): <ide> with closing(self.get_conn()) as conn: <ide> return psql.read_sql(sql, con=conn, params=parameters, **kwargs) <ide> <add> def get_pandas_df_by_chunks(self, sql, parameters=None, *, chunksize, *...
1
PHP
PHP
add ability to easily queue an artisan command
fa33e07b91b33da934d581874c0e8ae919d12be7
<ide><path>src/Illuminate/Contracts/Console/Kernel.php <ide> public function handle($input, $output = null); <ide> */ <ide> public function call($command, array $parameters = array()); <ide> <add> /** <add> * Queue an Artisan console command by name. <add> * <add> * @param string $command <add> * @param arra...
3
Ruby
Ruby
define opt_pkgshare helper method
68a13b240f765b9976dc45bfe97633534544e657
<ide><path>Library/Homebrew/formula.rb <ide> def opt_lib; opt_prefix+'lib' end <ide> def opt_libexec; opt_prefix+'libexec' end <ide> def opt_sbin; opt_prefix+'sbin' end <ide> def opt_share; opt_prefix+'share' end <add> def opt_pkgshare; opt_prefix+'share'+name end <ide> def opt_frameworks; op...
1
Javascript
Javascript
amend glyphmapforstandardfonts to fix issue 4276
0fa154be4e765e7e583bf4c6689482944925a8f5
<ide><path>src/core/fonts.js <ide> var symbolsFonts = { <ide> // glyphs, but common for some set of the standard fonts. <ide> var GlyphMapForStandardFonts = { <ide> '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38, <del> '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 173, <ad...
1
PHP
PHP
fix postgres grammar for nested json arrays
53f3a817ea90964688948ed144e8bdb686a3662f
<ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php <ide> protected function wrapJsonBooleanValue($value) <ide> protected function wrapJsonPathAttributes($path) <ide> { <ide> return array_map(function ($attribute) { <add> if (\strval(\intval($attribute)) === $attribute) { <a...
2
Python
Python
pin moto to <2
802159767baf1768d92c6047c2fdb2094ee7a2a8
<ide><path>setup.py <ide> def get_sphinx_theme_version() -> str: <ide> # See: https://github.com/spulec/moto/issues/3535 <ide> 'mock<4.0.3', <ide> 'mongomock', <del> 'moto', <add> 'moto<2', <ide> 'mypy==0.770', <ide> 'parameterized', <ide> 'paramiko',
1
Go
Go
add env variable to disable kernel version warning
e4aba11e80561d06e457453c58def970518b691c
<ide><path>engine/engine.go <ide> func New(root string) (*Engine, error) { <ide> log.Printf("WARNING: %s\n", err) <ide> } else { <ide> if utils.CompareKernelVersion(k, &utils.KernelVersionInfo{Kernel: 3, Major: 8, Minor: 0}) < 0 { <del> log.Printf("WARNING: You are running linux kernel version %s, which might be...
1
PHP
PHP
fix errors on invalid cookies
4ee742dc4af84f4ebc9e4f93032a2c603d6e8188
<ide><path>src/Http/Cookie/CookieCollection.php <ide> use Psr\Http\Message\ResponseInterface; <ide> use Psr\Http\Message\ServerRequestInterface; <ide> use Traversable; <add>use TypeError; <ide> <ide> /** <ide> * Cookie Collection <ide> public static function createFromHeader(array $header, array $defaults = []) <ide>...
2
Ruby
Ruby
use comma consistently
c7c9919d3aaba19ea8974549d582bba189e0b2a1
<ide><path>Library/Homebrew/compilers.rb <ide> module CompilerConstants <ide> "gcc-4.0" => :gcc_4_0, <ide> "gcc-4.2" => :gcc, <ide> "llvm-gcc" => :llvm, <del> "clang" => :clang <add> "clang" => :clang, <ide> } <ide> <ide> COMPILERS = COMPILER_SYMBOL_MAP.values + <ide> def inspect <ide> ...
1
Javascript
Javascript
remove duplicate word
e1fb8e64b5d2b783a0647d4b1c4d04f063a9e052
<ide><path>Libraries/StyleSheet/StyleSheet.js <ide> var StyleSheetValidation = require('StyleSheetValidation'); <ide> * Code quality: <ide> * <ide> * - By moving styles away from the render function, you're making the code <del> * code easier to understand. <add> * easier to understand. <ide> * - Naming the sty...
1
PHP
PHP
improve support for http/2 in http\client
28ed0d3d6d8ba797dc5a5afc7fbf530a8afbb278
<ide><path>src/Http/Client.php <ide> class Client <ide> 'ssl_verify_depth' => 5, <ide> 'ssl_verify_host' => true, <ide> 'redirect' => false, <add> 'protocolVersion' => '1.1', <ide> ]; <ide> <ide> /** <ide> class Client <ide> * - adapter - The adapter class name or instance. ...
4
Javascript
Javascript
add test coverage
358b7a4458859f768921a31dd3dfe85947d9abeb
<ide><path>scripts/__tests__/hermes-utils-test.js <del>/** <del> * Copyright (c) Meta Platforms, Inc. and affiliates. <del> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <del> * <del> * @format <del> */ <del> <del>import * as pa...
3
Javascript
Javascript
add more info about nuget setup
9622b266f485f559f14a7bad8965d9886e321519
<ide><path>tasks/nuget.js <ide> module.exports = function (grunt) { <add> // To set up on mac: <add> // * brew install nuget # this fetches mono <add> // * go to nuget.org, login, click on username (top right), copy api-key <add> // from the bottom <add> // * grunt nugetkey --key=XXXXXXXX-XXXX-XXXX-XXX...
1
Java
Java
update copyright date
7575616d268997b40758ccb57815d57afceb9ab5
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ScriptUtils.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you m...
1
Python
Python
keep the cruft for compatibility for now
2fefcefa18e3eddae19b15a3603cea80ad381b09
<ide><path>numpy/core/setup.py <ide> def name_to_defsymb(name): <ide> if check_func(f): <ide> moredefs.append(name_to_defsymb(f)) <ide> <del># for func_name, defsymbol in FUNCTIONS_TO_CHECK: <del># if check_func(func_name): <del># moredefs.append(defsymbol) <add> # Keep this...
1
Text
Text
add manual package install directions to atom docs
6092de9af8f3f420c64cffa5b9d8e75b6c8a076c
<ide><path>docs/customizing-atom.md <ide> Themes` section on the `Packages` tab within the Settings panel. <ide> You can install non-bundled packages by going to the `Available Packages` <ide> section on the `Packages` tab within the Settings panel (`cmd-,`). <ide> <add>To manually install a package from [atom.io](htt...
1
Javascript
Javascript
avoid cross-realm objects
18c59c600d6d6149011f3c0a3b6d0e85b31329f3
<ide><path>lib/dependencies/CommonJsImportsParserPlugin.js <ide> class CommonJsImportsParserPlugin { <ide> parser.parseCommentOptions(expr.range); <ide> <ide> if (commentErrors) { <del> for (const e of commentErrors) { <del> const { comment } = e; <add> for (const { cause: e, comment } of comment...
4
PHP
PHP
fix tests for php < 8.1
9dd4b5e052004e37a1af3079cc22f1ba3fd855f7
<ide><path>tests/Database/DatabaseEloquentMorphToTest.php <ide> public function testLookupDictionaryIsProperlyConstructedForStringableEnums() <ide> { <ide> if (PHP_VERSION < "8.1") { <ide> $this->markTestSkipped('PHP 8.1 is required'); <add> } else { <add> $relation = $this->ge...
1
Ruby
Ruby
update actionmailer documentation [ci skip]
e2c7545cdd69376ed7e6ccb2084dda8cbd7571c2
<ide><path>actionmailer/lib/action_mailer/collector.rb <ide> require 'active_support/core_ext/hash/reverse_merge' <ide> require 'active_support/core_ext/array/extract_options' <ide> <del>module ActionMailer #:nodoc: <add>module ActionMailer <ide> class Collector <ide> include AbstractController::Collector <ide> ...
5
Javascript
Javascript
prevent disabled optimization of bind()
88b28896790023ae4653eefbc6687bbf0046c00c
<ide><path>lib/dgram.js <ide> function replaceHandle(self, newHandle) { <ide> self._handle = newHandle; <ide> } <ide> <del>Socket.prototype.bind = function(port /*, address, callback*/) { <add>Socket.prototype.bind = function(port_ /*, address, callback*/) { <ide> var self = this; <add> let port = port_; <ide> <...
1
PHP
PHP
fix @link tag
4d2cc316bb4b231e70649159d5ed1563cbc7e76f
<ide><path>src/Cache/Engine/RedisEngine.php <ide> public function clearGroup(string $group): bool <ide> * <ide> * @param mixed $value Value to serialize. <ide> * @return string <del> * @https://github.com/phpredis/phpredis/issues/81 <add> * @link https://github.com/phpredis/phpredis/issues/81 <id...
1
Javascript
Javascript
provide duration/interval to timers
6263c00828ada8ed1cfd110e59906b99352131d0
<ide><path>test/message/timeout_throw.js <ide> require('../common'); <ide> setTimeout(function() { <ide> // eslint-disable-next-line no-undef <ide> undefined_reference_error_maker; <del>}); <add>}, 1); <ide><path>test/parallel/test-handle-wrap-close-abort.js <ide> setTimeout(function() { <ide> setTimeout(function...
6
Javascript
Javascript
add atom beta to launcheditor
d38644eee53e81c70978ba48ef9dcd2e78fd5b80
<ide><path>local-cli/server/util/launchEditor.js <ide> function isTerminalEditor(editor) { <ide> // of the app every time <ide> var COMMON_EDITORS = { <ide> '/Applications/Atom.app/Contents/MacOS/Atom': 'atom', <add> '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': <add> '/Applications/Atom Beta.app/Conten...
1
Python
Python
fix "ok" alignment in migrate output
d5ca1693341daccce9b0dd8504967a56b289d92f
<ide><path>django/core/management/commands/migrate.py <ide> def handle(self, *args, **options): <ide> def migration_progress_callback(self, action, migration): <ide> if self.verbosity >= 1: <ide> if action == "apply_start": <del> self.stdout.write(" Applying %s... " % migration) ...
2
Javascript
Javascript
remove internal frames from runtime errors
c5f54b1fad19a35dc00322181650545d2961ccc4
<ide><path>lib/repl.js <ide> function REPLServer(prompt, <ide> self._domain.on('error', function debugDomainError(e) { <ide> debug('domain error'); <ide> const top = replMap.get(self); <del> <add> const pstrace = Error.prepareStackTrace; <add> Error.prepareStackTrace = prepareStackTrace(pstrace); <ide> ...
5
Ruby
Ruby
move cxxstdlib methods to the class
249aae177f3e6fb100c391c1f4562cc331c69d2e
<ide><path>Library/Homebrew/compat/formula.rb <ide> def std_cmake_parameters <ide> "-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev" <ide> end <ide> <add> def cxxstdlib <add> self.class.cxxstdlib <add> end <add> <add> def cxxstdlib_check check_type <add> s...
3
Javascript
Javascript
move createwritereq to separate function
aec2f733f97460ddde677b53bcc048b55878c7b3
<ide><path>lib/net.js <ide> Socket.prototype.write = function(chunk, encoding, cb) { <ide> <ide> <ide> Socket.prototype._write = function(dataEncoding, cb) { <del> assert(Array.isArray(dataEncoding)); <add> // assert(Array.isArray(dataEncoding)); <ide> var data = dataEncoding[0]; <ide> var encoding = dataEncodi...
1
Python
Python
fix some typos in solution 1 of euler 686
3bff196981312e41ba9dac91e1bd971b7120726c
<ide><path>project_euler/problem_686/sol1.py <ide> def log_difference(number: int) -> float: <ide> Computing 2^90 is time consuming. <ide> Hence we find log(2^90) = 90*log(2) = 27.092699609758302 <ide> But we require only the decimal part to determine whether the power starts with 123. <del> SO we just r...
1
Text
Text
add 3.2.0-beta.3 to changelog
7f310a6185aabf5a4b828ca64f78b0a22e3a8b74
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.2.0-beta.3 (April 23, 2018) <add>- [#16539](https://github.com/emberjs/ember.js/pull/16539) [BUGFIX] Ember is already registered by the libraries registry already. <add>- [#16559](https://github.com/emberjs/ember.js/pull/16559) [BUGFIX] Fix property nor...
1
Javascript
Javascript
remove dead sourcemap code
0d1d7ba2b7e142e9a3b41dcdaa3b1ca52177f5a5
<ide><path>Libraries/JavaScriptAppEngine/Initialization/SourceMap.js <del> <del>/** <del> * Copyright (c) 2015-present, Facebook, Inc. <del> * All rights reserved. <del> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of this source tree. An add...
4
Go
Go
fix bug in link-local unmarshalling
69c2f8d6dbf2ba1608188ec1b4fb6685a8c12aba
<ide><path>libnetwork/endpoint_info.go <ide> func (epi *endpointInterface) UnmarshalJSON(b []byte) error { <ide> } <ide> } <ide> if v, ok := epMap["llAddrs"]; ok { <del> list := v.([]string) <add> list := v.([]interface{}) <ide> epi.llAddrs = make([]*net.IPNet, 0, len(list)) <ide> for _, llS := range list { <...
2
Text
Text
preserve the right order for model.compile
d7d1ee54a5fa98ef5612224b6167529ff506e1c1
<ide><path>docs/sources/models.md <ide> model = Sequential() <ide> model.add(Dense(2, init='uniform', input_dim=64)) <ide> model.add(Activation('softmax')) <ide> <del>model.compile(loss='mse', optimizer='sgd') <add>model.compile(optimizer='sgd', loss='mse') <ide> <ide> ''' <ide> Demonstration of verbose modes 1 and 2...
1
Ruby
Ruby
add bottle_prefix method
af4247429b7b1352592bca28238d8bb61194454a
<ide><path>Library/Homebrew/formula.rb <ide> def var; HOMEBREW_PREFIX+'var' end <ide> def bash_completion; prefix+'etc/bash_completion.d' end <ide> def zsh_completion; share+'zsh/site-functions' end <ide> <add> # for storing etc, var files for later copying from bottles <add> def bottle_prefix; prefix+'.bot...
1
Text
Text
add issue templates
e122c80c9ddb17e4dad2b6225da2ed9e95e986c7
<ide><path>.github/ISSUE_TEMPLATE/---bug-report.md <add>--- <add>name: "\U0001F41E Bug Report" <add>about: Report a reproducible bug <add>title: '' <add>labels: bug <add>assignees: '' <add> <add>--- <add> <add><!-- Click "Preview" for a more readable version -- <add> <add>Please read and follow the instructions before ...
4
Text
Text
change the name and some elementary bits
194bfa2bc060a24c64b0377a62508c089cc735c8
<ide><path>README.md <del># SproutCore <add># Amber.js <ide> <del>SproutCore is a JavaScript framework that does all of the heavy lifting that you'd normally have to do by hand. There are tasks that are common to every web app; SproutCore does those things for you, so you can focus on building killer features and UI. ...
1
Javascript
Javascript
add test case
f71468b8e1e683942bb75c8415a149ff8947407b
<ide><path>test/configCases/graph/issue-11770/a.js <add>import { val } from "./shared"; <add> <add>it("should have the correct value", () => { <add> expect(val).toBe(84); <add>}); <ide><path>test/configCases/graph/issue-11770/b.js <add>import { other } from "./shared"; <add> <add>it("should have the correct value", () ...
6
Javascript
Javascript
fix default nexttick triggerasyncid
0fd4c73e5cda23dfb5b8e54dc11e07e547e9d576
<ide><path>lib/async_hooks.js <ide> function emitInitS(asyncId, type, triggerAsyncId, resource) { <ide> <ide> // This can run after the early return check b/c running this function <ide> // manually means that the embedder must have used initTriggerId(). <del> if (!Number.isSafeInteger(triggerAsyncId)) { <del> ...
5
Javascript
Javascript
fix dimensions tests in testswarm
13f3cd1611d7905c6fadcf2f8a533096b347a6ad
<ide><path>test/unit/dimensions.js <ide> QUnit.test( "outerWidth/Height for table cells and textarea with border-box in I <ide> $firstTh = jQuery( "<th style='width: 200px;padding: 5px' />" ), <ide> $secondTh = jQuery( "<th style='width: 190px;padding: 5px' />" ), <ide> $thirdTh = jQuery( "<th style='width: 180px...
1
Text
Text
fix copy & paste error in api docs
0fddc0447cbc0fee237a76e5b4128d893156490b
<ide><path>website/docs/api/language.md <ide> Evaluate a pipeline's components. <ide> <ide> <Infobox variant="warning" title="Changed in v3.0"> <ide> <del>The `Language.update` method now takes a batch of [`Example`](/api/example) <add>The `Language.evaluate` method now takes a batch of [`Example`](/api/example) <ide...
1
Python
Python
add a regression test for gh-11216
324e3045c3e5a4c262e9d231663b7228593c8675
<ide><path>numpy/lib/tests/test_arraypad.py <ide> """ <ide> from __future__ import division, absolute_import, print_function <ide> <add>import pytest <add> <ide> import numpy as np <del>from numpy.testing import (assert_array_equal, assert_raises, assert_allclose,) <add>from numpy.testing import (assert_array_equal, a...
1
Go
Go
allow receiving of signals from 'docker kill'
4822fb1e2423d88cdf0ad5d039b8fd3274b05401
<ide><path>profiles/apparmor/apparmor.go <ide> var ( <ide> type profileData struct { <ide> // Name is profile name. <ide> Name string <add> // DaemonProfile is the profile name of our daemon. <add> DaemonProfile string <ide> // Imports defines the apparmor functions to import, before defining the profile. <ide> Imp...
2
Javascript
Javascript
simplify lazy constant loading
c11f3f8b0fa4378e0080f29a52bbe4c77070bea9
<ide><path>src/node.js <ide> process.assert = function (x, msg) { <ide> <ide> var writeError = process.binding('stdio').writeError; <ide> <add> <add>// lazy loaded. <add>var constants; <add>function lazyConstants () { <add> if (!constants) constants = process.binding("constants"); <add> return constants; <add>} <ad...
1
Python
Python
rename spacy.analysis to spacy.pipe_analysis
4465cad6c5bc188f628dc92183e2e855e26bcfc4
<ide><path>spacy/language.py <ide> from .vocab import Vocab <ide> from .lemmatizer import Lemmatizer <ide> from .lookups import Lookups <del>from .analysis import analyze_pipes, analyze_all_pipes, validate_attrs <del>from .analysis import count_pipeline_interdependencies <add>from .pipe_analysis import analyze_pipes, a...
3
Javascript
Javascript
fix notification from showing up in wrong window
5d67183b4d251d929752b2b39377c94fd7f9c07f
<ide><path>extensions/firefox/components/PdfStreamConverter.js <ide> function getLocalizedString(strings, id) { <ide> } <ide> <ide> // All the priviledged actions. <del>function ChromeActions() { <add>function ChromeActions(domWindow) { <add> this.domWindow = domWindow; <ide> } <ide> <ide> ChromeActions.prototype = ...
1
PHP
PHP
add additional tests
dace3d5091be902ccc8c56ae6f12cf3270a2b4cb
<ide><path>laravel/tests/cases/blade.test.php <ide> public function testControlStructuresAreCreatedCorrectly() <ide> { <ide> $blade1 = "@if (true)\nfoo\n@endif"; <ide> $blade2 = "@if (count(".'$something'.") > 0)\nfoo\n@endif"; <del> $blade3 = "@if (true)\nfoo\n@elseif (false)\nbar\n@endif"; <del> $blade4 = "@if...
1
Mixed
Ruby
render default template if block doesn't render
48f140cf7459c963a54637c897448b959dbbfd26
<ide><path>actionpack/CHANGELOG.md <add>* When a `respond_to` collector with a block doesn't have a response, then <add> a `:no_content` response should be rendered. This brings the default <add> rendering behavior introduced by https://github.com/rails/rails/issues/19036 <add> to controller methods employi...
3
Javascript
Javascript
prevent nan props from triggering warnings
198aabaafbe6dfe50be6b1624d1626b0cc91d974
<ide><path>src/classic/element/ReactElementValidator.js <ide> function checkAndWarnForMutatedProps(element) { <ide> <ide> for (var propName in props) { <ide> if (props.hasOwnProperty(propName)) { <del> if (!originalProps.hasOwnProperty(propName) || <del> originalProps[propName] !== props[propName])...
1
Python
Python
build `panopticmaskrcnnmodel` in factory
b851571dc985c8308d23add962b4e0288ba3ee9e
<ide><path>official/vision/beta/projects/panoptic_maskrcnn/modeling/factory.py <ide> from official.vision.beta.modeling.heads import segmentation_heads <ide> from official.vision.beta.projects.panoptic_maskrcnn.configs import panoptic_maskrcnn as panoptic_maskrcnn_cfg <ide> from official.vision.beta.projects.panoptic_m...
1
Javascript
Javascript
improve tests for util.inherits
df738ac56c31ac8a04d6afbd3d7be59cfa5c2e9a
<ide><path>test/parallel/test-util-inherits.js <add>'use strict'; <add> <add>require('../common'); <add>const assert = require('assert'); <add>const inherits = require('util').inherits; <add> <add>// super constructor <add>function A() { <add> this._a = 'a'; <add>} <add>A.prototype.a = function() { return this._a; }; ...
2
Javascript
Javascript
remove unused parameters
859ccd78b56dda4a3952e35a0a414db44fe126cf
<ide><path>benchmark/_benchmark_progress.js <ide> class BenchmarkProgress { <ide> this.updateProgress(); <ide> } <ide> <del> completeConfig(data) { <add> completeConfig() { <ide> this.completedConfig++; <ide> this.updateProgress(); <ide> } <ide> <del> completeRun(job) { <add> completeRun() { <ide>...
1
PHP
PHP
add a test
2f2cbbd8cce29ac6170e24bee94919dc20198612
<ide><path>tests/TestCase/Datasource/ConnectionManagerTest.php <ide> <ide> class FakeConnection <ide> { <add> protected $_config = []; <add> <add> /** <add> * Constructor. <add> * <add> * @param array $config configuration for connecting to database <add> */ <add> public function __construct($...
1
Text
Text
add 5.6 changelog
747771405090139378b648742ccc73649c100099
<ide><path>CHANGELOG-5.6.md <add># Release Notes for 5.6.x <add> <add>## [Unreleased] <add> <add>### Artisan Console <add>- Removed deprecated `optimize` command ([#20851](https://github.com/laravel/framework/pull/20851))
1
Python
Python
add tests to ovh storage driver
2be789d3cecd13d3378bfd3a5662ae5d630a7a6d
<ide><path>libcloud/test/storage/test_ovh.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under th...
1
Go
Go
fix bad import graph from opts/opts.go
b68221c37ee597950364788204546f9c9d0e46a1
<ide><path>daemon/config/config.go <ide> func Validate(config *Config) error { <ide> } <ide> } <ide> <del> if _, err := opts.ParseGenericResources(config.NodeGenericResources); err != nil { <add> if _, err := ParseGenericResources(config.NodeGenericResources); err != nil { <ide> return err <ide> } <ide> <ide><p...
4
Javascript
Javascript
add more truetype rewriting magic ('post' table)
75f09304653625d8e973398d33fd92b2741d1d3d
<ide><path>fonts.js <ide> var kMaxWaitForFontFace = 1000; <ide> * many fonts are loaded. <ide> */ <ide> var fontCount = 0; <add>var fontName = ""; <ide> <ide> /** <ide> * Hold a map of decoded fonts and of the standard fourteen Type1 fonts and <ide> var Fonts = { <ide> }, <ide> <ide> set active(aName) { <add>...
2
Javascript
Javascript
add issignup logic
bf196d37ffb3cdae496646c55729c7a893fccdb9
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> <ide> User.decodeEmail = email => Buffer(email, 'base64').toString(); <ide> <del> User.prototype.requestAuthEmail = function requestAuthEmail() { <add> User.prototype.requestAuthEmail = function requestAuthEmail(isSignUp) { <ide> r...
2
PHP
PHP
adjust condition to what hasherfactory uses
b98e87219c86ed4c4ae220aaa9123cf2ca00664d
<ide><path>src/Auth/FallbackPasswordHasher.php <ide> class FallbackPasswordHasher extends AbstractPasswordHasher { <ide> public function __construct(array $config = array()) { <ide> parent::__construct($config); <ide> foreach ($this->_config['hashers'] as $key => $hasher) { <del> if (!is_int($key)) { <add> if ...
1
Text
Text
add new documentation
bc3bf75c6c6324476357198d9a7ddaa02bb6ecc4
<ide><path>share/doc/homebrew/New-Maintainer-Checklist.md <add># New Maintainer Checklist <add>**This is a guide used by existing maintainers to invite new maintainers. You might find it interesting but there's nothing here users should have to know.** <add> <add>So, there's someone who has been making consistently hig...
1
Javascript
Javascript
add failing test for gh
d21e016c51e0d1b6ce23ee36a67eac2a14e2bede
<ide><path>packages/ember-glimmer/tests/integration/components/curly-components-test.js <ide> moduleFor('Components test: curly components', class extends RenderingTest { <ide> <ide> assertElement('foo'); <ide> } <add> <add> ['@test child triggers revalidate during parent destruction (GH#13846)']() { <add> l...
1
Javascript
Javascript
add check in test-signal-handler
a6d53c67795bf957b8b57d96814520f98069e80e
<ide><path>test/parallel/test-signal-handler.js <ide> var i = 0; <ide> setInterval(function() { <ide> console.log('running process...' + ++i); <ide> <del> if (i == 5) { <add> if (i === 5) { <ide> process.kill(process.pid, 'SIGUSR1'); <ide> } <ide> }, 1); <ide> <ide> // Test on condition where a watcher for ...
1
Java
Java
avoid unused arguments for internal delegates
b449928691553ba791adf20850e9179730b4b3a2
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/DeclareParentsAdvisor.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"); <ide> * you m...
2
Javascript
Javascript
remove console log from release script
3b4d460afd8bcb6437dca1456be2ad178722d9bb
<ide><path>release.js <ide> const groupByLabels = async (commits, github) => { <ide> <ide> for (const commit of commits) { <ide> const pullRequest = await getCommitPullRequest(commit, github) <del> console.log({ pullRequest }) <ide> <ide> if (pullRequest) { <ide> const section = getSectionForPullRe...
1
Ruby
Ruby
use a latch to avoid busy loops
4db4f909174420904d48a9712e337b697d372ac3
<ide><path>activerecord/test/cases/connection_pool_test.rb <ide> require "cases/helper" <add>require 'active_support/concurrency/latch' <ide> <ide> module ActiveRecord <ide> module ConnectionAdapters <ide> def test_reap_and_active <ide> end <ide> <ide> def test_reap_inactive <del> ready = false <...
1
Python
Python
make defchararray to import
5c68587ecc8aec46c15b17f414c3ccad9c1ecb2d
<ide><path>numpy/core/defchararray.py <ide> 'array', 'asarray'] <ide> <ide> _globalvar = 0 <del>_unicode = unicode <add>if sys.version_info[0] >= 3: <add> _unicode = str <add>else: <add> _unicode = unicode <ide> _len = len <ide> <ide> def _use_unicode(*args):
1
Text
Text
clarify documentation for templatehtmlrenderer
3db88778893579e1d7609b584ef35409c8aa5a22
<ide><path>docs/api-guide/renderers.md <ide> Unlike other renderers, the data passed to the `Response` does not need to be se <ide> <ide> The TemplateHTMLRenderer will create a `RequestContext`, using the `response.data` as the context dict, and determine a template name to use to render the context. <ide> <add>--- <...
1
Text
Text
specify return type for tty.isatty()
643a2fa447dd50644039d1ca1ce15c6d4d03bce4
<ide><path>doc/api/tty.md <ide> added: v0.5.8 <ide> --> <ide> <ide> * `fd` {number} A numeric file descriptor <add>* Returns: {boolean} <ide> <ide> The `tty.isatty()` method returns `true` if the given `fd` is associated with <ide> a TTY and `false` if it is not, including whenever `fd` is not a non-negative
1
Go
Go
normalize comment formatting
a45b3a92f60324d34cff24265d79a6f5d7fc99c2
<ide><path>pkg/idtools/utils_unix.go <ide> func resolveBinary(binname string) (string, error) { <ide> if err != nil { <ide> return "", err <ide> } <del> //only return no error if the final resolved binary basename <del> //matches what was searched for <add> // only return no error if the final resolved binary basen...
1
Text
Text
add full list of subsystems
166e52b80b64b60f128e5fdf3da98d76ed4f7dbf
<ide><path>doc/guides/contributing/pull-requests.md <ide> If you want to know more about the code review and the landing process, see the <ide> * `test` <ide> * `tools` <ide> <add>You can find the full list of supported subsystems in the <add>[nodejs/core-validate-commit][] repository. <ide> More than one subsystem ma...
1
Javascript
Javascript
consider options.delay value for closing timeout
7ffb2d3c17643303a51eb4e324c365af70fe3824
<ide><path>src/ngAnimate/animateCss.js <ide> var $AnimateCssProvider = ['$animateProvider', function($animateProvider) { <ide> } <ide> <ide> if (options.delay != null) { <del> var delayStyle = parseFloat(options.delay); <add> var delayStyle; <add> if (typeof options.delay !== "boolean"...
2
Javascript
Javascript
add assert helpers, small cleanup
d7f3c31d9debffe72631b26ac79eaa1f981c0115
<ide><path>pdf.js <ide> /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- / <ide> /* vim: set shiftwidth=4 tabstop=8 autoindent cindent expandtab: */ <add> <ide> function warn(msg) { <ide> if (console && console.log) <ide> console.log(msg); <ide> function error(msg) { <ide> t...
1
Javascript
Javascript
fix first call to url in usewhatwg
c6b586de33b6ac208d3de83b304bfe50f13a4292
<ide><path>benchmark/url/legacy-vs-whatwg-url-parse.js <ide> function useLegacy(n, input) { <ide> } <ide> <ide> function useWHATWG(n, input) { <del> var noDead = url.parse(input); <add> var noDead = new URL(input); <ide> bench.start(); <ide> for (var i = 0; i < n; i += 1) { <ide> noDead = new URL(input);
1
Python
Python
modernize tests for snowflakehook
6f26af95022799cd463d30405b3ac1058f0689da
<ide><path>tests/providers/snowflake/hooks/test_snowflake.py <ide> # specific language governing permissions and limitations <ide> # under the License. <ide> # <del>import os <ide> import re <ide> import unittest <add>from pathlib import Path <ide> from unittest import mock <ide> <add>import pytest <ide> from cryptogr...
1
Text
Text
clarify reactdom.render usage
bff8e3704928292d4643462dcef70266e382acd0
<ide><path>guide/english/certifications/front-end-libraries/react/render-a-class-component-to-the-dom/index.md <ide> class TypesOfVehicles extends React.Component { <ide> ); <ide> } <ide> } <del>ReactDOM.render(<TypesOfVehicles />,'node-id') <add>ReactDOM.render(<TypesOfVehicles />, document.getElementById(...
1
Javascript
Javascript
remove lines with only spaces
013b99b61bd693b98d22b3dd2c9102a9d423c451
<ide><path>packages/container/lib/container.js <ide> function Container(registry, options) { <ide> <ide> // TODO - See note above about transpiler import workaround. <ide> if (!Registry) { Registry = requireModule('container/registry')['default']; } <del> <add> <ide> return new Registry(); <ide> }())...
6
Python
Python
update ukrainian lemmatizer with new lookups
dda86118bd04f4b653e6e9e612998273a6011f4d
<ide><path>spacy/lang/uk/__init__.py <ide> from ..norm_exceptions import BASE_NORMS <ide> from ...util import update_exc, add_lookups <ide> from ...language import Language <add>from ...lookups import Lookups <ide> from ...attrs import LANG, NORM <ide> from .lemmatizer import UkrainianLemmatizer <ide> <ide> class Ukra...
2
Python
Python
fix typo in example
6fb58d30b9a857089d1ce623ee5f90e56533160f
<ide><path>src/transformers/models/speech_to_text/modeling_speech_to_text.py <ide> def forward( <ide> >>> import soundfile as sf <ide> <ide> >>> model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr") <del> >>> processor = Speech2Textprocesso...
1
Ruby
Ruby
reuse immutable objects
0aa5150f9fb81fc6cf9d7b7915c8d7b015e452a2
<ide><path>activerecord/lib/active_record/relation/from_clause.rb <ide> def empty? <ide> end <ide> <ide> def self.empty <del> new(nil, nil) <add> @empty ||= new(nil, nil) <ide> end <ide> end <ide> end <ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def no...
4
Ruby
Ruby
fix tests on action_mailer
e6b0b760cc8bac99765fc43b182505db73e6586b
<ide><path>actionmailer/lib/action_mailer/test_case.rb <ide> module Behavior <ide> <ide> include ActiveSupport::Testing::ConstantLookup <ide> include TestHelper <del> include Rails::Dom::Testing::Assertions::SelectorAssertions <add> include Rails::Dom::Testing::Assertions <ide> <ide> inclu...
4
Java
Java
add constants for application/cbor to mediatype
83078eb6fdc6def52902a4f6abc3a4d347ccb485
<ide><path>spring-web/src/main/java/org/springframework/http/MediaType.java <ide> public class MediaType extends MimeType implements Serializable { <ide> */ <ide> public static final String APPLICATION_ATOM_XML_VALUE = "application/atom+xml"; <ide> <add> /** <add> * Public constant media type for {@code applicatio...
6
Java
Java
add systrace to render logic
8394f9b553fc4349cd8fab4737d8f98ec5525b9d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java <ide> public void measureLayoutRelativeToParent( <ide> * Invoked at the end of the transaction to commit any updates to the node hierarchy. <ide> */ <ide> public void dispatchViewUpdates(int batchId) { <del> updateViewHi...
2
Text
Text
fix typo in changelog.md
bde2b3e39724457147001e66a6dc9af1a5360805
<ide><path>CHANGELOG.md <ide> * **fs**: corruption can be caused by `fs.writeFileSync()` and append-mode `fs.writeFile()` and `fs.writeFileSync()` under certain circumstances, reported in [#1058](https://github.com/iojs/io.js/issues/1058), fixed in [#1063](https://github.com/iojs/io.js/pull/1063) (Olov Lassus). <ide> *...
1