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
add tests for individual spacy layers
6ccacff54e4c279c0b37652119bd507ee466a5df
<ide><path>spacy/tests/pipeline/test_models.py <ide> from typing import List <add> <add>import numpy <ide> import pytest <del>from numpy.testing import assert_equal <add>from numpy.testing import assert_almost_equal <add>from spacy.vocab import Vocab <ide> from thinc.api import get_current_ops, Model, data_validation <...
1
Javascript
Javascript
cache the replaced source for performance
8a7b508165ee05bb01f64a9c4e3bb7d63c471443
<ide><path>lib/NormalModule.js <ide> NormalModule.prototype.build = function build(options, compilation, resolver, fs <ide> this.dependencies.length = 0; <ide> this.variables.length = 0; <ide> this.blocks.length = 0; <add> this._cachedSource = null; <ide> if(options.module && options.module.noParse) { <ide> ...
1
Javascript
Javascript
specify vendored packages in ember's brocfile
00ad738432088ab02eba822b5d55137b9e138ffd
<ide><path>Brocfile.js <ide> var EmberBuild = require('emberjs-build'); <ide> var packages = require('./lib/packages'); <ide> <add>var vendoredPackage = require('emberjs-build/lib/vendored-package'); <add>var htmlbarsPackage = require('emberjs-build/lib/htmlbars-package'); <add>var vendoredES6Package = require...
1
PHP
PHP
start removal of magin "test_suite" connection
9d2e4b1b0449adfe6f74ea647f84833ce9c23df0
<ide><path>cake/tests/lib/cake_fixture_manager.php <ide> protected function _initDb() { <ide> $testDbAvailable = $db->isConnected(); <ide> } <ide> <del> // Try for default DB <ide> if (!$testDbAvailable) { <del> $db = ConnectionManager::getDataSource('default'); <del> $_prefix = $db->config['prefix']; <del...
4
Python
Python
improve module comment
a720b41ffaa78d82faab844bed58bd6397fbf669
<ide><path>celery/task/__init__.py <ide> celery.task <ide> ~~~~~~~~~~~ <ide> <del> This is the old task module, it should not be used anymore. <add> This is the old task module, it should not be used anymore, <add> import from the main 'celery' module instead. <add> If you're looking for the decora...
1
Java
Java
replace use of jdk 1.8 api
24dfe8ec19e90b4fae1eb47de9cd0fa3b98687fc
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java <ide> private static UriComponents applyContributors(UriComponentsBuilder builder, Met <ide> contributor = defaultUriComponentsContributor; <ide> } <ide> <del> int paramCount = method.getPara...
1
Ruby
Ruby
remove default_formula from mpidependency
404845eaeb8e083a306e9b747c8a65b168abae9c
<ide><path>Library/Homebrew/requirements/mpi_dependency.rb <ide> class MPIDependency < Requirement <ide> <ide> fatal true <ide> <del> default_formula 'open-mpi' <del> <ide> env :userpaths <ide> <ide> def initialize *lang_list
1
Javascript
Javascript
expose force.tick. fixes #419
56818fd258c2c9c682c869b15428faf7b266786b
<ide><path>d3.layout.js <ide> d3.layout.force = function() { <ide> }; <ide> } <ide> <del> function tick() { <add> force.tick = function() { <ide> var n = nodes.length, <ide> m = links.length, <ide> q, <ide> d3.layout.force = function() { <ide> <ide> // simulated annealing, basically <i...
3
Text
Text
remove testing block
d37605766dd6c8e930d46accad64c629f587e6db
<ide><path>README.md <ide> Check out our [documentation on the docs tab](https://github.com/github/atom/doc <ide> 1. `gh-setup atom` <ide> <ide> 2. `cd ~/github/atom && rake install` <del> <del>```coffee <del>describe "GitHub Flavored Markdown grammar", -> <del>```
1
PHP
PHP
remove copy + paste tests
955889c6c731a56f9cbe6f572cea4594fd887d3a
<ide><path>lib/Cake/Test/TestCase/Console/Command/Task/TemplateTaskTest.php <ide> public function tearDown() { <ide> unset($this->Task); <ide> } <ide> <del>/** <del> * test that set sets variables <del> * <del> * @return void <del> */ <del> public function testSet() { <del> $this->Task->set('one', 'two'); <del> $...
3
Text
Text
improve description of tz
ac2c082f63e312d5685542b239d5e2d21be6a08b
<ide><path>doc/api/cli.md <ide> changes: <ide> <ide> The `TZ` environment variable is used to specify the timezone configuration. <ide> <del>While the Node.js support for `TZ` will not handle all of the various <del>[ways that `TZ` is handled in other environments][], it will support basic <del>[timezone IDs][] (such...
1
PHP
PHP
return migrated jobs for customization
f21e942ae8a4104ffdf42c231601efe8759c4c10
<ide><path>src/Illuminate/Queue/LuaScripts.php <ide> public static function migrateExpiredJobs() <ide> end <ide> end <ide> <del>return true <add>return val <ide> LUA; <ide> } <ide> } <ide><path>src/Illuminate/Queue/RedisQueue.php <ide> protected function migrate($queue) <ide> * <ide> * @param string...
2
Ruby
Ruby
optimize the code added in fa99de0bd054576336c9
f055bc05d515b80c89b99b775546b954f270bc5c
<ide><path>actionpack/lib/action_view/render/partials.rb <ide> def render_collection <ide> end <ide> <ide> def collection_with_template(template = @template) <del> segments, locals, as, template = [], @locals, @options[:as] || @template.variable_name, @template <add> segments, locals, templat...
1
PHP
PHP
remove psalm false positive issue
0cd136c13a75a5f964bc9105681ee01f680d2296
<ide><path>src/Datasource/Locator/AbstractLocator.php <ide> abstract class AbstractLocator implements LocatorInterface <ide> protected $options = []; <ide> <ide> /** <del> * @inheritDoc <add> * {@inheritDoc} <add> * <add> * @param string $alias The alias name you want to get. <add> * @param...
1
Python
Python
resolve line-too-long in datasets
25cdbaa23b15b6e5bb0b236d3fc829b390389fd7
<ide><path>keras/datasets/imdb.py <ide> def get_word_index(path="imdb_word_index.json"): <ide> path: where to cache the data (relative to `~/.keras/dataset`). <ide> <ide> Returns: <del> The word index dictionary. Keys are word strings, values are their index. <add> The word index dictionary. ...
2
Ruby
Ruby
replace files atomically when relocating
91d31ae1f43cade6fac808b6042133c328638274
<ide><path>Library/Homebrew/keg_fix_install_names.rb <ide> def relocate_install_names old_prefix, new_prefix, old_cellar, new_cellar, optio <ide> <ide> (pkgconfig_files | libtool_files | script_files).each do |file| <ide> file.ensure_writable do <del> file.open('rb') do |f| <del> s = f.read <...
1
Javascript
Javascript
remove redundant declaration
2288e3f21cf9dc1bc01d4f544c2c339ff517f839
<ide><path>lib/internal/util.js <ide> const kCustomPromisifiedSymbol = Symbol('util.promisify.custom'); <ide> const kCustomPromisifyArgsSymbol = Symbol('customPromisifyArgs'); <ide> <ide> function promisify(orig) { <del> if (typeof orig !== 'function') { <del> const errors = require('internal/errors'); <add> if (...
1
PHP
PHP
fix php 5.3 breakage
d14e9e35185f469c039f8bb55f135b73318b57f9
<ide><path>src/Illuminate/Routing/Router.php <ide> protected function addResourceDestroy($name, $base, $controller) <ide> */ <ide> public function getResourceUri($resource) <ide> { <del> if ( ! str_contains($resource, '.')) return $resource; <del> <ide> // To create the nested resource URI, we will simply explod...
1
Text
Text
remove cask’s `test` readme
b0feac6645389c3e201fdb96b051c8cc00837f65
<ide><path>Library/Homebrew/cask/test/README.md <del># Naming <del> <del>Only files matching `*_test.rb` will be executed as tests.
1
Javascript
Javascript
allow 0 as the value of a tag
f0600f0ba9f2e375a997f2a655b01bbaffb48236
<ide><path>packages/ember-views/lib/system/render_buffer.js <ide> Ember._RenderBuffer.prototype = <ide> for (prop in props) { <ide> if (props.hasOwnProperty(prop)) { <ide> var value = props[prop]; <del> if (value) { <add> if (value || typeof(value) === 'number') { <ide> ...
2
PHP
PHP
add more documentation
e3bc28a330416ca3e82d19a41cb3368b5d69e68a
<ide><path>lib/Cake/Network/Http/Adapter/Stream.php <ide> protected function _buildSslContext(Request $request, $options) { <ide> /** <ide> * Open the stream and send the request. <ide> * <del> * @return void <add> * @param Request $request <add> * @return Response The populated response object. <ide> * @throws Cake...
5
Go
Go
add options validation to syslog logger test
a7020454ca23fb7b03d5ec92e4a87c5ecd6a5cf3
<ide><path>daemon/logger/syslog/syslog_test.go <ide> package syslog // import "github.com/docker/docker/daemon/logger/syslog" <ide> <ide> import ( <add> "net" <ide> "reflect" <ide> "testing" <ide> <ide> func TestValidateLogOptEmpty(t *testing.T) { <ide> t.Fatal("Failed to parse empty config", err) <ide> } <ide> ...
1
PHP
PHP
implement a formhelper context class for form\form
d43ac7127691de37038c30a12978f5305cf1dbe6
<ide><path>src/View/Form/FormContext.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, please s...
2
Ruby
Ruby
remove incorrect assert_recognizes example
af4fab7d2ed5568b5c998ff5b02c907da4f3a357
<ide><path>actionpack/lib/action_dispatch/testing/assertions/routing.rb <ide> module RoutingAssertions <ide> # <ide> # # Test a custom route <ide> # assert_recognizes({:controller => 'items', :action => 'show', :id => '1'}, 'view/item1') <del> # <del> # # Check a Simply RESTful generat...
1
Python
Python
resolve line-too-long in root directory
f3cafc77c269f7ecbf80bb4cf4b54e28c153f4e6
<ide><path>keras/activations.py <ide> def softmax(x, axis=-1): <ide> <ide> **Example 2: usage in a `Dense` layer** <ide> <del> >>> layer = tf.keras.layers.Dense(32, activation=tf.keras.activations.softmax) <add> >>> layer = tf.keras.layers.Dense(32, <add> ... activation=tf.k...
13
Javascript
Javascript
get $$observe listeners array as own property
a27d827c22b0b6b3ba6b7495cf4fc338c6934b37
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> */ <ide> $observe: function(key, fn) { <ide> var attrs = this, <del> $$observers = (attrs.$$observers || (attrs.$$observers = {})), <add> $$observers = (attrs.$$observers || (...
2
Javascript
Javascript
add test for object literal
ac57a25cd981fe3ffcfdfeea1e1ac3fccf787696
<ide><path>test/ng/directive/ngStyleSpec.js <ide> describe('ngStyle', function() { <ide> })); <ide> <ide> <add> it('should support binding for object literals', inject(function($rootScope, $compile) { <add> element = $compile('<div ng-style="{height: heightStr}"></div>')($rootScope); <add> $rootScope.$digest...
1
Text
Text
fix typos in changelog
2e053a5be3d0b7693e624d21541b00ed7f262fa9
<ide><path>CHANGELOG.md <ide> * **Critical Bugfix:** Update the version of `prop-types` to fix critical bug. ([@gaearon](https://github.com/gaearon) in [#545c87f](https://github.com/facebook/react/commit/545c87fdc348f82eb0c3830bef715ed180785390)) <ide> <ide> ### React Test Renderer <del>* Fix compatibility with Enzym...
1
Ruby
Ruby
convert magic number to constant
f3aba78ce8436fd09c5bade09092339a21880f7f
<ide><path>lib/active_storage/service/disk_service.rb <ide> require "pathname" <ide> <ide> class ActiveStorage::Service::DiskService < ActiveStorage::Service <add> CHUNK_SIZE = 65536 <add> <ide> attr_reader :root <ide> <ide> def initialize(root:) <ide> def initialize(root:) <ide> <ide> def upload(key, io) <id...
1
Ruby
Ruby
handle non-existing $arconn
4846eeee0f422c885e13325364f8e860a0c1595e
<ide><path>activerecord/test/support/connection.rb <ide> def self.connection_name <ide> end <ide> <ide> def self.connection_config <del> config["connections"][connection_name] <add> config.fetch("connections").fetch(connection_name) do <add> puts "Connection #{connection_name.inspect} not found. Availab...
1
Python
Python
set seed for head_masking test
7f006cdd875799d7d66a8bda964ab90b0f7ed3f4
<ide><path>pytorch_transformers/tests/modeling_common_test.py <ide> def test_headmasking(self): <ide> if not self.test_head_masking: <ide> return <ide> <add> torch.manual_seed(42) <ide> config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common() <id...
1
Ruby
Ruby
fix macos version comparison
282c0a30b61edc46c22b0b1d50ea59d275b64a63
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def detect_version <ide> return MacOS::Xcode.version if MacOS::Xcode.installed? && Xcode::Version.new(MacOS::Xcode.version) < "3.0" <ide> <ide> [MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id| <del> if...
1
Text
Text
add missing files
560fae891223a3e7e4063ce41df5442648a38044
<ide><path>research/object_detection/README.md <ide> release includes: <ide> * Region-Based Fully Convolutional Networks (R-FCN) with Resnet 101, <ide> * Faster RCNN with Resnet 101, <ide> * Faster RCNN with Inception Resnet v2 <del> * Mask R-CNN with Resnet 101. <ide> * Frozen weights (trained on the COCO datas...
3
Go
Go
use len() > 0 instead of != nil
3183af8b19d2adf29dd3fb80689d764353a3fe00
<ide><path>builder/internals.go <ide> func (b *Builder) create() (*daemon.Container, error) { <ide> b.TmpContainers[c.ID] = struct{}{} <ide> fmt.Fprintf(b.OutStream, " ---> Running in %s\n", utils.TruncateID(c.ID)) <ide> <del> if config.Cmd != nil { <add> if len(config.Cmd) > 0 { <ide> // override the entry point ...
1
PHP
PHP
fix lint error
971b34201747310ce0c8035f2071d9d0639f780f
<ide><path>Cake/Utility/RepositoryAwareTrait.php <ide> protected function _setModelClass($name) { <ide> $this->modelClass = Inflector::pluralize($name); <ide> } <ide> } <add> <ide> /** <ide> * Loads and constructs repository objects required by this object <ide> *
1
Javascript
Javascript
keep chunks filenames in production mode
2eeebacb4c99c5f1e4a22a721a7c8a3dc9538e60
<ide><path>build/webpack.js <ide> export default async function getBaseWebpackConfig (dir: string, {dev = false, i <ide> hotUpdateChunkFilename: 'static/webpack/[id].[hash].hot-update.js', <ide> hotUpdateMainFilename: 'static/webpack/[hash].hot-update.json', <ide> // This saves chunks with the name gi...
5
Javascript
Javascript
fix deepequal inconsistencies
a8149c47993d8675d5085fc6617dd7f1a47a9ce1
<ide><path>lib/assert.js <ide> function innerDeepEqual(actual, expected, strict, memos) { <ide> position: 0 <ide> }; <ide> } else { <del> if (memos.actual.has(actual)) { <del> return memos.actual.get(actual) === memos.expected.get(expected); <add> // We prevent up to two map.has(x) calls by direc...
3
PHP
PHP
update flash tests for options array
00632a9c349cd04aab6617ce7b7f7e07fb71e126
<ide><path>tests/TestCase/Controller/Component/FlashComponentTest.php <ide> public function testSet() { <ide> $this->assertNull($this->Session->read('Message.flash')); <ide> <ide> $this->Flash->set('This is a test message'); <del> $expected = ['message' => 'This is a test message', 'params' => ['element' => null]...
2
Javascript
Javascript
return this on copy
991b8fa7c3a1303df69fa8c447e4d021f06751a8
<ide><path>src/lights/LightShadow.js <ide> THREE.LightShadow.prototype = { <ide> <ide> this.mapSize.copy( source.mapSize ); <ide> <add> return this; <add> <ide> }, <ide> <ide> clone: function () {
1
Ruby
Ruby
remove unused method alias
ff2d8fece3ff9645d4a26ca285604e597d15db7e
<ide><path>Library/Homebrew/compilers.rb <ide> class Compiler < Struct.new(:name, :version, :priority) <del> # This is exposed under the `build` name for compatibility, since <del> # `fails_with` continues to use `build` in the public API. <del> # `build` indicates the build number of an Apple compiler. <del> # Thi...
1
PHP
PHP
update model dirty check
f1cfa859e3826b2d996ffc8af30848bc537f06f9
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> public function originalIsEquivalent($key, $current) <ide> } elseif ($this->isDateAttribute($key)) { <ide> return $this->fromDateTime($current) === <ide> $this->fromDateTime($original); <add> } els...
2
Javascript
Javascript
prefix process.env to avoid inconsistency
cf130c70f0b6a002d437fc175ad513ed30a6244a
<ide><path>examples/with-universal-configuration/env-config.js <ide> const prod = process.env.NODE_ENV === 'production' <ide> <ide> module.exports = { <del> 'BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080' <add> 'process.env.BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhos...
2
Javascript
Javascript
issue a warning instead of an error for long names
456ad438d8eabdd3b5bfa7568a600323a2b0278e
<ide><path>src/core/parser.js <ide> var Lexer = (function LexerClosure() { <ide> strBuf.push(String.fromCharCode(ch)); <ide> } <ide> } <del> if (strBuf.length > 128) { <del> error('Warning: name token is longer than allowed by the spec: ' + <del> strBuf.length); <add> ...
1
PHP
PHP
fix return type
9ddc23401389dc5f316591114540f607176491c7
<ide><path>src/Illuminate/Console/Command.php <ide> public function secret($question, $fallback = true) <ide> * @param string $default <ide> * @param mixed $attempts <ide> * @param bool $multiple <del> * @return bool <add> * @return string <ide> */ <ide> public function choice($...
1
Python
Python
avoid race condition in elasticsearch backend
ada19d215fd1289ad8a22eb44b1ac3afe9787d46
<ide><path>celery/backends/elasticsearch.py <ide> <ide> from datetime import datetime <ide> <add>from celery import states <ide> from kombu.utils.encoding import bytes_to_str <ide> from kombu.utils.url import _parse_url <ide> <ide> def __init__(self, url=None, *args, **kwargs): <ide> <ide> def get(self, key): <...
2
Go
Go
resolve full path to docker binary
46578a2359714e32d61af4efaeea86b7ff770359
<ide><path>integration-cli/docker_test_vars.go <ide> package main <ide> <ide> import ( <add> "fmt" <ide> "os" <add> "os/exec" <ide> ) <ide> <ide> // the docker binary to use <ide> var workingDirectory string <ide> func init() { <ide> if dockerBin := os.Getenv("DOCKER_BINARY"); dockerBin != "" { <ide> dockerBinary...
1
Text
Text
fix example code syntax [ci skip]
e06e53e28527a7f90f7e22117174f6376bf6eaf1
<ide><path>guides/source/active_storage_overview.md <ide> input.addEventListener('change', (event) => { <ide> input.value = null <ide> }) <ide> <del>const uploadFile = (file) { <add>const uploadFile = (file) => { <ide> // your form needs the file_field direct_upload: true, which <ide> // provides data-direct-up...
1
Text
Text
update guide to mention code linters available
cdabcc2bd530af4184c2592619ea3fe0ddb2d9af
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> Now get busy and add/edit code. You're on your branch now, so you can write what <ide> * Include tests that fail without your code, and pass with it. <ide> * Update the (surrounding) documentation, examples elsewhere, and the guides: whatever is affected b...
1
Java
Java
simplify logic in mergedsqlconfig
a48851509735d85db4632a6eff2de2248299db40
<ide><path>spring-test/src/main/java/org/springframework/test/context/jdbc/MergedSqlConfig.java <ide> private static ErrorMode retrieveErrorMode(AnnotationAttributes attributes) { <ide> <ide> private static String retrieveSeparator(AnnotationAttributes attributes) { <ide> String separator = attributes.getString("se...
1
Text
Text
move estliberitas to collaborator emeriti list
6982dc7198c92757f54c26f71ca4d1ab2b381118
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Adrian Estrada** &lt;edsadr@gmail.com&gt; (he/him) <ide> * [eljefedelrodeodeljefe](https://github.com/eljefedelrodeodeljefe) - <ide> **Robert Jefe Lindstaedt** &lt;robert.lindstaedt@gmail.com&gt; <del>* [estliberitas](ht...
1
Ruby
Ruby
set the remote config manually
f40650ecd0ff54b6a710791db42884a3b982d0c1
<ide><path>Library/Homebrew/cmd/update.rb <ide> def git_init_if_necessary <ide> if Dir[".git/*"].empty? <ide> safe_system "git", "init" <ide> safe_system "git", "config", "core.autocrlf", "false" <del> safe_system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew.git" <add> ...
1
PHP
PHP
add language line
b084aacc5ad105e39c2b058e9523e73655be8d1f
<ide><path>lang/en/validation.php <ide> 'string' => 'The :attribute must be :size characters.', <ide> ], <ide> 'starts_with' => 'The :attribute must start with one of the following: :values.', <add> 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', <ide> '...
1
Java
Java
fix failing test in cancelwithoutdemandcodectests
02f61e3aaeebf3beb08317a0d3aa934a6d8fc747
<ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java <ide> import com.fasterxml.jackson.databind.SequenceWriter; <ide> import com.fasterxml.jackson.databind.exc.InvalidDefinitionException; <ide> import com.fasterxml.jackson.databind.ser.FilterProvider; <del>import org.apa...
1
Python
Python
update transfo xl example
6cd769957e5eadd59963bb02efd3b746e8d120af
<ide><path>examples/run_transfo_xl.py <ide> <ide> import torch <ide> <del>from pytorch_pretrained_bert import TransfoXLModel, TransfoXLCorpus <add>from pytorch_pretrained_bert import TransfoXLLMHeadModel, TransfoXLCorpus <ide> <ide> logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(message)s...
2
Ruby
Ruby
add blob#type as a stringinquirer
801b4eb465cd48435abddac881b92c93470b6933
<ide><path>app/models/active_storage/blob.rb <ide> def filename <ide> ActiveStorage::Filename.new(self[:filename]) <ide> end <ide> <add> # Returns a `StringInquirer` based on the content_type that is broken into text, image, audio, video, pdf, or, <add> # the catch-all, file. Example: `messages.attachments.sel...
2
Javascript
Javascript
remove old unused grunt tasks
8a4857e85d9eb0b394f10948a26c2a719b7c207d
<ide><path>tasks/embed_locales.js <del> <del>module.exports = function (grunt) { <del> grunt.registerTask('embedLocales', function () { <del> var config = grunt.config('embedLocales'); <del> <del> var files = grunt.file.expand(config.targetLocales); <del> var embeddedContents = determineEmbedded...
4
Text
Text
clarify data flow and counter example
51af568ba748afb55b09b84f6ff8db4aef9efaec
<ide><path>docs/tutorials/fundamentals/part-1-overview.md <ide> Let's look at a minimal working example of a Redux app - a small counter applica <ide> <ide> Because Redux is a standalone JS library with no dependencies, this example is written by only loading a single script tag for the Redux library, and uses basic J...
1
Javascript
Javascript
move module exports proxy into a separate method
c3b674cc116e6656a0eedd9e8f01b1c01c955f2c
<ide><path>lib/internal/bootstrap/loaders.js <ide> undefined; <ide> }; <ide> <add> // Provide named exports for all builtin libraries so that the libraries <add> // may be imported in a nicer way for esm users. The default export is left <add> // as the entire namespace (module.exports) and wrapped in a pro...
1
Python
Python
improve swin for visionencoderdecoder
a7aca42fc48c9fe32002c905705516238b387d5e
<ide><path>src/transformers/models/swin/configuration_swin.py <ide> class SwinConfig(PretrainedConfig): <ide> <ide> attribute_map = { <ide> "num_attention_heads": "num_heads", <add> "num_hidden_layers": "num_layers", <ide> } <ide> <ide> def __init__( <ide> def __init__( <ide> self.e...
3
PHP
PHP
fix docblock typo.
f2c1253fc2aae9df160f6cc8686196066083c0d4
<ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php <ide> protected function removeLeadingBoolean($value) <ide> } <ide> <ide> /** <del> * Get the gramar specific operators. <add> * Get the grammar specific operators. <ide> * <ide> * @return array <ide> */
1
Javascript
Javascript
add support for `promise.allsettled`
2942233c9c319d644485ec1f6d89d2118061e77a
<ide><path>src/shared/compatibility.js <ide> if ( <ide> // need to be polyfilled for the IMAGE_DECODERS build target. <ide> return; <ide> } <del> if ( <del> globalThis.Promise && <del> globalThis.Promise.prototype && <del> globalThis.Promise.prototype.finally <del> ) { <add> if (...
2
Ruby
Ruby
add depends_on spacing checks to brew_audit
bd51ae33431d8aa2b30d150da775097ccd603c9c
<ide><path>Library/Contributions/examples/brew-audit.rb <ide> def ff <ide> problems << " * Remove 'use_mirror' from url." <ide> end <ide> <add> # 2 (or more, if in an if block) spaces before depends_on, please <add> if /^\ ?depends_on/ =~ text <add> problems << " * Check indentation of 'depends_on'." <add> ...
1
PHP
PHP
fix variable name typo
4c40f2fdada85cf2fe6c75ab5bb467536410d59b
<ide><path>tests/TestCase/Error/ExceptionRendererTest.php <ide> public function testError400AsJson() <ide> Router::setRequestInfo($request); <ide> <ide> $exception = new NotFoundException('Custom message'); <del> $execptionLine = __LINE__ - 1; <add> $exceptionLine = __LINE__ - 1; <ide> ...
1
PHP
PHP
add support for request bodies in get requests
3921015bcdfde986b5dcba04242ca5229336d5d1
<ide><path>lib/Cake/Network/Http/Client.php <ide> public function config($config = null) { <ide> /** <ide> * Do a GET request. <ide> * <add> * The $data argument supports a special `_content` key <add> * for providing a request body in a GET request. This is <add> * generally not used but services like ElasticSearch ...
2
Javascript
Javascript
fix style and some docs
17251372b1dedb42d27b01375125cee4f5edcce7
<ide><path>src/widgets.js <ide> * elements. <ide> * * {@link angular.widget.@ng:required ng:required} - Verifies presence of user input. <ide> * * {@link angular.widget.@ng:validate ng:validate} - Validates content of user input. <del> * * {@link angular.widget.HTML HTML} - Standard HTML processed by angular. <add...
2
Go
Go
remove tp5 support from volume
6ceec828bff1663f4193ca4ffc308e4ccb962ec5
<ide><path>volume/volume_windows.go <ide> import ( <ide> "path/filepath" <ide> "regexp" <ide> "strings" <del> <del> "github.com/docker/docker/pkg/system" <ide> ) <ide> <ide> // read-write modes <ide> const ( <ide> // - Variation on hostdir but can be a drive followed by colon as well <ide> // - If a path,...
1
Python
Python
fix url-prefixes for generated pages
5b203bcb7878794e43464304aad7f72f56cae89c
<ide><path>official/utils/docs/build_nlp_api_docs.py <ide> flags.DEFINE_string('output_dir', None, 'Where to write the resulting docs to.') <ide> flags.DEFINE_string( <ide> 'code_url_prefix', <del> 'https://github.com/tensorflow/models/blob/master/tensorflow_models/', <add> 'https://github.com/tensorflow/mode...
2
Java
Java
add methodcall option to handlerresultmatchers
4b1183582a693d3c7bdf3596d1190a700e171ed4
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/result/HandlerResultMatchers.java <ide> import org.springframework.test.web.servlet.ResultMatcher; <ide> import org.springframework.util.ClassUtils; <ide> import org.springframework.web.method.HandlerMethod; <add>import org.springframework.web.se...
2
Python
Python
improve train_ud script
4ff92184f145a776a29653f2adf29d2bcd0083fe
<ide><path>bin/parser/train_ud.py <ide> from spacy.syntax.parser import get_templates <ide> from spacy.syntax.arc_eager import ArcEager <ide> from spacy.scorer import Scorer <add>from spacy.language_data.tag_map import TAG_MAP as DEFAULT_TAG_MAP <ide> import spacy.attrs <ide> import io <ide> <ide> def score_model(voca...
1
Javascript
Javascript
increase coverage of console
74bd3144d6b0745e0b1a8201d820da9e685e232b
<ide><path>test/parallel/test-console-instance.js <ide> out.write = common.mustCall((d) => { <ide> assert.doesNotThrow(() => { <ide> Console(out, err); <ide> }); <add> <add>// Instance that does not ignore the stream errors. <add>const c2 = new Console(out, err, false); <add> <add>out.write = () => { throw new Error(...
1
Javascript
Javascript
remove unnecessary variables
d28159f0fc488dd58ae64a03a91480870eed5390
<ide><path>lib/net.js <ide> exports.createServer = function(options, connectionListener) { <ide> // connect(path, [cb]); <ide> // <ide> exports.connect = exports.createConnection = function() { <del> const argsLen = arguments.length; <del> var args = new Array(argsLen); <del> for (var i = 0; i < argsLen; i++) <add> ...
1
Go
Go
fix merge issue and gofmt
89fb51f6063467124c8883399fc293faae8d8ef5
<ide><path>network.go <ide> import ( <ide> "errors" <ide> "fmt" <ide> "github.com/dotcloud/docker/iptables" <del> "github.com/dotcloud/docker/proxy" <ide> "github.com/dotcloud/docker/netlink" <add> "github.com/dotcloud/docker/proxy" <ide> "github.com/dotcloud/docker/utils" <ide> "log" <ide> "net" <ide><path>runt...
5
Javascript
Javascript
convert existing buffer when calling .setencoding
afb84744c6071e77f0738a7ff1a52aaa81db8b77
<ide><path>lib/_stream_readable.js <ide> Readable.prototype.isPaused = function() { <ide> Readable.prototype.setEncoding = function(enc) { <ide> if (!StringDecoder) <ide> StringDecoder = require('string_decoder').StringDecoder; <del> this._readableState.decoder = new StringDecoder(enc); <add> const decoder = ne...
2
Python
Python
fix broken test for models with batchnorm
1a7ef3349fd9acfc8ee7bc718f9864ac4ea9d064
<ide><path>tests/test_modeling_tf_common.py <ide> def test_keras_fit(self): <ide> else: <ide> metrics = [] <ide> <add> model(model.dummy_inputs) # Build the model so we can get some constant weights <add> model_weights = model.get_weights() <add> <add>...
1
PHP
PHP
add tests for remaining consoleio methods
fa1f4f4b5a4a54ea243803f64e56dc8c8d2d81e4
<ide><path>src/Console/ConsoleIo.php <ide> public function __construct(ConsoleOutput $out = null, ConsoleOutput $err = null <ide> $this->_in = $in ? $in : new ConsoleInput('php://stdin'); <ide> } <ide> <add>/** <add> * Get/set the current output level. <add> * <add> * @param null|int $level The current output level...
2
Text
Text
update new version identifier [ci skip]
493be8e9db85d203fbfaa6365c448dc8fba12b8f
<ide><path>website/docs/api/entityruler.md <ide> All labels present in the match patterns. <ide> | ----------- | ----- | ------------------ | <ide> | **RETURNS** | tuple | The string labels. | <ide> <del>## EntityRuler.ent_ids {#labels tag="property" new="2.2"} <add>## EntityRuler.ent_ids {#labels tag="property" new="...
2
PHP
PHP
use proper assertions
7b1a0732e8e3b70c811f31ce1ed85166e7a0b772
<ide><path>tests/Database/DatabaseEloquentModelTest.php <ide> public function testToArray() <ide> $model->setRelation('multi', new Illuminate\Database\Eloquent\Collection); <ide> $array = $model->toArray(); <ide> <del> $this->assertTrue(is_array($array)); <add> $this->assertInternalType('...
6
PHP
PHP
remove unused variable
e9e797c8fae530980695958ac726cbf5fba88da3
<ide><path>src/Cache/CacheEngine.php <ide> public function setMultiple($values, $ttl = null): bool <ide> $this->setConfig('duration', $ttl); <ide> } <ide> try { <del> $return = []; <ide> foreach ($values as $key => $value) { <ide> $success = $this->set(...
1
Javascript
Javascript
remove unused variable
7c38b292f8ad7057b62f7ee4a2c651d0213d5e5f
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide) { <ide> j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) { <ide> var attrStartName = false; <ide> var attrEndName = false; <del> var index; <ide> <ide> attr = nAttrs[j]; <ide> ...
1
PHP
PHP
remove password rule
d6fd27cdb37b41f58135a8148e37e523f5a7c632
<ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php <ide> public function validateNumeric($attribute, $value) <ide> return is_numeric($value); <ide> } <ide> <del> /** <del> * Validate that the password of the currently authenticated user matches the given value. <del> * <del> ...
2
PHP
PHP
remove dead code
088833e0754fd837fa031b5e77b0dda04e55d5da
<ide><path>tests/test_app/TestApp/Controller/TestsAppsController.php <ide> <ide> class TestsAppsController extends AppController <ide> { <del> <del> public $uses = []; <del> <ide> public $components = ['RequestHandler']; <ide> <ide> public function index()
1
Javascript
Javascript
change the hostname to an invalid name
64cf71195c83a2ff06319cf8719ff31058c9ff80
<ide><path>test/parallel/test-net-better-error-messages-port-hostname.js <ide> var common = require('../common'); <ide> var net = require('net'); <ide> var assert = require('assert'); <ide> <del>var c = net.createConnection(common.PORT, 'blah.blah'); <add>var c = net.createConnection(common.PORT, '...'); <ide> <ide> ...
1
PHP
PHP
add test for element
4f12f254f463f77279b2dac7fece6c01b8a109cf
<ide><path>lib/Cake/Test/Case/View/Helper/TimeHelperTest.php <ide> public function testTimeHelperProxyMethodCalls() { <ide> 'isToday', 'isThisMonth', 'isThisYear', 'wasYesterday', <ide> 'isTomorrow', 'toQuarter', 'toUnix', 'toAtom', 'toRSS', <ide> 'timeAgoInWords', 'wasWithinLast', 'gmt', 'format', 'i18nFormat...
1
Ruby
Ruby
fix outdated comment [ci skip]
e5926a3c44a2666bd09bdae21a273e899074d8f1
<ide><path>actionview/lib/action_view/template.rb <ide> def locals_code <ide> locals = @locals - Module::RUBY_RESERVED_KEYWORDS <ide> locals = locals.grep(/\A@?(?![A-Z0-9])(?:[[:alnum:]_]|[^\0-\177])+\z/) <ide> <del> # Double assign to suppress the dreaded 'assigned but unused variable' warning ...
1
PHP
PHP
fix deprecation warnings in controllertest
ca9b8c40a31f15bc7673c1cf70bbe8fb628a9570
<ide><path>src/Controller/Controller.php <ide> public function redirect($url, $status = 302) <ide> { <ide> $this->autoRender = false; <ide> <del> $response = $this->response; <ide> if ($status) { <del> $response = $response->withStatus($status); <add> $this->response = ...
2
Python
Python
improve error message
1e46a5d3ec173b3f5f264a080bd29901c3839bd7
<ide><path>keras/layers/core.py <ide> def set_weights(self, weights): <ide> str(len(weights)) + ' provided weights)') <ide> for p, w in zip(params, weights): <ide> if K.get_value(p).shape != w.shape: <del> raise Exception('Layer shape %s no...
1
Javascript
Javascript
add --watch mode to "yarn build"
ed36df46c60ea1654d403aaad899cb73f997bdfb
<ide><path>scripts/rollup/build.js <ide> 'use strict'; <ide> <del>const {rollup} = require('rollup'); <add>const rollup = require('rollup'); <ide> const babel = require('rollup-plugin-babel'); <ide> const closure = require('./plugins/closure-plugin'); <ide> const commonjs = require('rollup-plugin-commonjs'); <ide> con...
1
Ruby
Ruby
escape any spaces in path during strip step
1ead7d380ab85946f156ef64a0bc6324691b1704
<ide><path>Library/Homebrew/brew.h.rb <ide> def strip path, args='' <ide> puts "strip #{path}" if ARGV.verbose? <ide> path.chmod 0644 # so we can strip <ide> unless path.stat.nlink > 1 <del> `strip #{args} #{path}` <add> system "strip", *(args+path) <ide> else <add> path = path.to_s.gsub ...
1
Java
Java
fix typo in observableretrytest.java
1d7e8acb3e1fa035a30248a9195a35c7537200b7
<ide><path>src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableRetryTest.java <ide> public void run() { <ide> } <ide> } <ide> <del> /** Observer for listener on seperate thread. */ <add> /** Observer for listener on separate thread. */ <ide> static final class AsyncObserver...
1
Python
Python
add additional test case, use better method name
0616c2e8b99736a63d1bee9c5bb4cbd602373712
<ide><path>libcloud/test/compute/test_gce.py <ide> def setUp(self): <ide> def test_default_scopes(self): <ide> self.assertIsNone(self.driver.scopes) <ide> <del> def test_default_service_account(self): <add> def test_build_service_account_gce_struct_default_service_account(self): <ide> result ...
1
Text
Text
remove unnecessary comments
591a534701663af6a79293fb17cbb1ff23a2650d
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/access-multi-dimensional-arrays-with-indexes.md <ide> if(typeof myArray !== "undefined"){(function(){return "myData: " + myData + " my <ide> ## --seed-contents-- <ide> <ide> ```js <del>// Setup <ide> var myArray = [[...
1
Ruby
Ruby
create unified test helper
6d726e1bd6676d97bf41bc800942881cf8c3e78f
<ide><path>Library/Homebrew/gpg.rb <ide> def self.cleanup_test_processes! <ide> system gpgconf, "--homedir", "keyrings/live", "--kill", <ide> "gpg-agent" <ide> end <add> <add> def self.test(path) <add> create_test_key(path) <add> begin <add> yield <add> ensure <add>...
1
Python
Python
update percentile/quantile docs
7d8a8e746fc841a99f71242f60559b1be2e7340c
<ide><path>numpy/lib/function_base.py <ide> def percentile(a, <ide> method : str, optional <ide> This parameter specifies the method to use for estimating the <ide> percentile. There are many different methods, some unique to NumPy. <del> See the notes for explanation. The options aligning ...
2
PHP
PHP
take extra junk out of route\parser comments
89239abd9e1b2168fe2fc69908e89357024eeb8b
<ide><path>system/route/parser.php <ide> public static function parameters($uri, $route) <ide> $route_segments = explode('/', $route); <ide> <ide> // -------------------------------------------------------------- <del> // Extract all of the parameters out of the URI. Any route <del> // segment wrapped in parenth...
1
Javascript
Javascript
fix bug in todomvc
a32276e400785fdeafdfb2685cd8154aa4a7cc38
<ide><path>examples/todomvc/js/app.js <ide> function cx(obj) { <ide> <ide> var TodoItem = React.createClass({ <ide> handleSubmit: React.autoBind(function() { <del> var val = this.refs.editField.getDOMNode().value.trim(); <add> var val = this.state.editText; <ide> if (val) { <ide> this.props.onSave(va...
1
Ruby
Ruby
update expat check
29ac3efe2e5615ed1c89cc51deac0f2c5d55fbfe
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_CLICOLOR_FORCE <ide> <ide> def check_for_other_frameworks <ide> # Other frameworks that are known to cause problems when present <del> if File.exist? "/Library/Frameworks/expat.framework" <del> puts <<-EOS.undent <del> /Library/Frameworks/expat.f...
1
Java
Java
trim line from lineinfo only once
c480a99a773d461a6f64dab0dfceeaa6cefa2fb4
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/resource/AppCacheManifestTransformer.java <ide> */ <ide> public class AppCacheManifestTransformer extends ResourceTransformerSupport { <ide> <del> private static final Collection<String> MANIFEST_SECTION_HEADERS = <del> Arrays.asList("CACHE MA...
2
Text
Text
fix broken link in docs
e8a388a60a7975f38accf5210031da399e90093e
<ide><path>docs/Navigation.md <ide> const styles = StyleSheet.create({ <ide> <ide> ### Homework <ide> <del>You are now an expert navigator. Take a look at [NavigationExperimental in UIExplorer](https://github.com/facebook/react-native/tree/master/Examples/UIExplorer/NavigationExperimental) to learn how to implement o...
1
Ruby
Ruby
use options instead of @options
17afec0ae3fe9d8895a7e030f6bfb8443ae83be1
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def config <ide> end <ide> <ide> def database_yml <del> template "config/databases/#{@options[:database]}.yml", "config/database.yml" <add> template "config/databases/#{options[:database]}.yml", "config/database.yml" <ide> ...
1
Ruby
Ruby
use | to have more intent revealing code
2f0acf6a0a82e60d670b90d39d1278c55fdfe766
<ide><path>activerecord/lib/active_record/associations/association_scope.rb <ide> def add_constraints(scope) <ide> <ide> scope.includes! item.includes_values <ide> scope.where_values += item.where_values <del> scope.order_values += (item.order_values - scope.order_values) <add> ...
1