content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
verify npm compatibility with releases
5fa55eea559a9ebb8c3787edfa1b5a49f30ec2e6
<ide><path>test/parallel/test-release-npm.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const assert = require('assert'); <add>const child_process = require('child_process'); <add>const path = require('path'); <add> <add>const releaseReg = /^v\d+\.\d+\.\d+$/; <add> <add>if (!releaseReg.test...
1
Text
Text
review the changelog entry [ci skip]
d093f8437a110762770ae4595b3f38bde4eda7b8
<ide><path>railties/CHANGELOG.md <del>* Fixes bug with Scaffold generator with --assets=false --resource-route=false See #9525 for more details. <add>* Fixes bug with scaffold generator with `--assets=false --resource-route=false`. <add> Fixes #9525. <ide> <ide> *Arun Agrawal* <ide>
1
Javascript
Javascript
fix loose assert with map and set
85bfd71312ef7e3ac3aa1306ab2d2ff1c9dab9e3
<ide><path>lib/internal/util/comparisons.js <ide> function setEquiv(a, b, strict, memo) { <ide> return true; <ide> } <ide> <add>// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#Loose_equality_using <ide> function findLooseMatchingPrimitives(prim) { <del> var values, n...
2
Text
Text
add build wg info to releases.md
60e6991291e8571c4b27172714582e7d65f29c41
<ide><path>doc/releases.md <ide> Notes: <ide> - Version strings are listed below as _"vx.y.z"_. Substitute for the release <ide> version. <ide> <add>### 0. Pre-release steps <add> <add>Before preparing a Node.js release, the Build Working Group must be notified at <add>least one business day in advance of the expect...
1
Ruby
Ruby
use extend instead of reopening formula
fba5bf85b020300d29dcdedfdac1e3943b217941
<ide><path>Library/Contributions/cmd/brew-unpack.rb <ide> def self.load(filename) <ide> end <ide> end <ide> <del># Need to tweak the Formula class slightly so that patching is option and `DATA` <del># patches work correctly. <del>class Formula <del> # Create a reference to the original Formula.patch method and then...
1
Ruby
Ruby
apply suggestion from review
eecbd5887c7e85010dd741cc7a957bd30a0c3aed
<ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb <ide> def uninstall_script(directives, directive_name: :script, force: false, command: <ide> end <ide> <ide> def uninstall_pkgutil(*pkgs, command: nil, **_) <del> ohai "Uninstalling packages (your password may be necessary):" <add> ...
1
Python
Python
allow use of system-installed brotli
616b7fbcb1a7f53ea21f5ee4e3f80c61951c5728
<ide><path>configure.py <ide> dest='shared_zlib_libpath', <ide> help='a directory to search for the shared zlib DLL') <ide> <add>shared_optgroup.add_option('--shared-brotli', <add> action='store_true', <add> dest='shared_brotli', <add> help='link to a shared brotli DLL instead of static linking') <add...
1
Javascript
Javascript
fix animation regression introduced by
344628ba9c5fc95a1edbc9cf94488461d24a4b32
<ide><path>src/core/core.animations.js <ide> module.exports = { <ide> */ <ide> advance: function() { <ide> var animations = this.animations; <del> var animation, chart; <add> var animation, chart, numSteps, nextStep; <ide> var i = 0; <ide> <add> // 1 animation per chart, so we are looping charts here <ide> ...
1
Javascript
Javascript
use strict in the utils/ too
8c802e5025bb8b67c574540f98fb4850b01c0714
<ide><path>utils/cffStandardStrings.js <add>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / <add>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ <add> <add>"use strict"; <add> <ide> var CFFStrings = [ <del> ".notdef", <add> ".notdef", <ide> "space", <ide> "excl...
2
Python
Python
set version to v3.0.0a12
65474723479a4f452772fdddefd3afd129d381ce
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy-nightly" <del>__version__ = "3.0.0a11" <add>__version__ = "3.0.0a12" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/...
1
Python
Python
add a pkg_path option to add_sconcript
5932ddd5cbd9c756b0b8ab8a4b1ea690b1bb1a7b
<ide><path>numpy/distutils/command/scons.py <ide> def finalize_options(self): <ide> self.pre_hooks = [] <ide> self.post_hooks = [] <ide> self.pkg_names = [] <add> self.pkg_paths = [] <ide> <ide> if self.distribution.has_scons_scripts(): <ide> for i in self.distributio...
2
Java
Java
introduce "sealing" of reactshadownodes
001e217f33894bdbad9c788b29a653d23907b96e
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> import static android.view.View.MeasureSpec.AT_MOST; <ide> import static android.view.View.MeasureSpec.EXACTLY; <ide> import static android.view.View.MeasureSpec.UNSPECIFIED; <del>import static com.facebook.react.uimanager.common...
4
Java
Java
fix false negative test failure in resourcetests
1d9d3e6ff79ce9f0eca03b02cd1df705925575da
<ide><path>org.springframework.core/src/test/java/org/springframework/core/io/ResourceTests.java <ide> <ide> package org.springframework.core.io; <ide> <add>import static org.hamcrest.CoreMatchers.nullValue; <ide> import static org.junit.Assert.*; <ide> <ide> import java.io.ByteArrayInputStream; <ide> public InputSt...
1
Ruby
Ruby
remove useless tests for range#step
a1f695287bc643d6c609026fcabe03e9dace5e60
<ide><path>activesupport/test/core_ext/range_ext_test.rb <ide> def test_should_include_identical_exclusive_with_floats <ide> assert((1.0...10.0).include?(1.0...10.0)) <ide> end <ide> <del> def test_blockless_step <del> assert_equal [1,3,5,7,9], (1..10).step(2).to_a <del> end <del> <del> def test_original_s...
1
Python
Python
add test for np.take refcounting
58548e66d5d3bda3e884ae0c0ab0805ab0160484
<ide><path>numpy/core/tests/test_item_selection.py <ide> from numpy.testing import * <ide> import sys, warnings <ide> <del>def test_take(): <del> a = [[1, 2], [3, 4]] <del> a_str = [[b'1', b'2'],[b'3', b'4']] <del> modes = ['raise', 'wrap', 'clip'] <del> indices = [-1, 4] <del> index_arrays = [np.empty(...
1
Go
Go
remove race in encrypted overlay key update
c97bb416200ee2632f2c3820841e85dd5e9cdb96
<ide><path>libnetwork/drivers/overlay/encryption.go <ide> func (d *driver) setKeys(keys []*key) error { <ide> d.keys = keys <ide> d.secMap = &encrMap{nodes: map[string][]*spi{}} <ide> d.Unlock() <del> logrus.Debugf("Initial encryption keys: %v", d.keys) <add> logrus.Debugf("Initial encryption keys: %v", keys) <ide> ...
1
Ruby
Ruby
normalize paths before calling tab.from_file
391bc4c981311209cf15610c6eb272143e3a6415
<ide><path>Library/Homebrew/tab.rb <ide> def self.create f, compiler, stdlib, args <ide> <ide> def self.from_file path <ide> tab = Tab.new Utils::JSON.load(File.read(path)) <del> tab.tabfile = path.realpath <add> tab.tabfile = path <ide> tab <ide> end <ide> <ide> def self.for_name name <ide> end <...
2
PHP
PHP
add catch exception when connect and get job
e53d363ea783e7307d9e068cd003078a03021b16
<ide><path>src/Illuminate/Queue/Worker.php <ide> protected function daemonShouldRun() <ide> */ <ide> public function pop($connectionName, $queue = null, $delay = 0, $sleep = 3, $maxTries = 0) <ide> { <del> $connection = $this->manager->connection($connectionName); <add> try { <add> ...
1
Python
Python
add test for datasets reserving 'airflow' scheme
977ea91ad33a1d3bb0a7a1614d1823cfc27c3475
<ide><path>tests/models/test_dataset.py <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF licenses this file <add># to you under...
1
Python
Python
fix model name for large xlm-roberta model
a701a0cee1ae6cb7b93b047cc3ffc06b01157955
<ide><path>transformers/configuration_xlm_roberta.py <ide> logger = logging.getLogger(__name__) <ide> <ide> XLM_ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP = { <del> 'xlm-roberta-base': "https://schweter.eu/cloud/transformers/xlm-roberta-large-config.json", <add> 'xlm-roberta-large': "https://schweter.eu/cloud/transfo...
1
Javascript
Javascript
wrap angular-mocks.js in closure
5bd6596856c9f88c0ce3d96ff1ed4daa082cbe29
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> }, <ide> mocks: { <ide> dest: 'build/angular-mocks.js', <del> src: files['angularModules']['ngMock'], <add> src: util.wrap(files['angularModules']['ngMock'], 'module'), <ide> strict: false <ide> }, <id...
2
Ruby
Ruby
use opt path for xz
a8f5527f7475ad0d6ee11f7e7d01f5da3ec13cc2
<ide><path>Library/Homebrew/download_strategy.rb <ide> def stage <ide> with_system_path { safe_system 'tar', 'xf', @tarball_path } <ide> chdir <ide> when :xz <del> raise "You must install XZutils: brew install xz" unless which "xz" <del> with_system_path { <del> safe_system "#{Formula.f...
1
Go
Go
update docker port command
66a159342bfa1b2bb8361f21a17279aa0417bb50
<ide><path>commands.go <ide> func (cli *DockerCli) CmdPort(args ...string) error { <ide> } <ide> <ide> port := cmd.Arg(1) <del> proto := "Tcp" <add> proto := "tcp" <ide> parts := strings.SplitN(port, "/", 2) <ide> if len(parts) == 2 && len(parts[1]) != 0 { <ide> port = parts[0] <del> proto = strings.ToUpper(par...
1
PHP
PHP
remove debug statement
64ba8c6b6e4241994ec36bb476a967a579238789
<ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php <ide> public function testLink() { <ide> $this->assertTags($result, $expected); <ide> <ide> $result = $this->Html->link('say hello to 0123465-798', 'sms:0123465-798?body=hello "cakephp"'); <del> debug($result); <ide> $expected = array('a' => array('hr...
1
Ruby
Ruby
use bundled bin/rake
74306b952626b1e0198718274b861a64ad2b5eb8
<ide><path>ci/ci_build.rb <ide> # A security hole, but there is nothing valuable on rails CI box anyway. <ide> build_results[:geminstaller] = system "sudo geminstaller --config=#{root_dir}/ci/geminstaller.yml --exceptions" <ide> <add>def rake(*tasks) <add> tasks.map { |task| system "#{root_dir}/bin/rake", task }.join...
1
PHP
PHP
apply fixes from styleci
73669ec79a91f59ebfc53ff829f3c62ba2c9e591
<ide><path>tests/Events/EventsDispatcherTest.php <ide> public function testHaltingEventExecution() <ide> $d = new Dispatcher; <ide> $d->listen('foo', function ($foo) { <ide> $this->assertTrue(true); <add> <ide> return 'here'; <ide> }); <ide> $d->listen('foo', func...
1
Python
Python
fix test - testimpersonation
6b5640d3a50c8a6e1d868151fb433e91b6cdedd3
<ide><path>tests/core/test_impersonation_tests.py <ide> from airflow.utils.timezone import datetime <ide> <ide> DEV_NULL = '/dev/null' <del>TEST_DAG_FOLDER = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'dags') <del>TEST_DAG_CORRUPTED_FOLDER = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'dag...
1
PHP
PHP
remove sql from debug output for a query object
0c55ad8ed1c946c4003d4097f2d17be2c44a3f3a
<ide><path>src/Database/Query.php <ide> public function __toString() { <ide> */ <ide> public function __debugInfo() { <ide> return [ <del> 'sql' => $this->sql(), <ide> 'params' => $this->valueBinder()->bindings(), <ide> 'defaultTypes' => $this->defaultTypes(), <ide> 'decorators' => count($this->_resultDe...
1
Javascript
Javascript
alphabetize error codes
324aa6488f26d221f5e8b2b1778539bb6d86f104
<ide><path>lib/internal/errors.js <ide> E('ERR_CONSOLE_WRITABLE_STREAM', <ide> E('ERR_CPU_USAGE', 'Unable to obtain cpu usage %s'); <ide> E('ERR_DNS_SET_SERVERS_FAILED', (err, servers) => <ide> `c-ares failed to set servers: "${err}" [${servers}]`); <del>E('ERR_FALSY_VALUE_REJECTION', 'Promise was rejected with falsy...
1
Javascript
Javascript
add missing module tag
6483dea08c6fae937e62ce242212152d7ef27d91
<ide><path>src/Angular.js <ide> /** <ide> * @ngdoc function <ide> * @name angular.lowercase <add> * @module ng <ide> * @function <ide> * <ide> * @description Converts the specified string to lowercase. <ide> var hasOwnProperty = Object.prototype.hasOwnProperty; <ide> /** <ide> * @ngdoc function <ide> * @name ang...
4
Javascript
Javascript
fix typo in gltfloader
ef27e7f1933fbdda8a30a9004ab4eee7f9c91127
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> } else { <ide> <del> console.warn( "WARNING: joint: ''" + jointId + "' could not be found" ); <add> console.warn( "WARNING: joint: '" + jointId + "' could not be found" ); <ide> <ide> ...
1
PHP
PHP
apply fixes from styleci
0770e7a122f1fc75a55da5dfc26963df5cadfa44
<ide><path>src/Illuminate/Foundation/Events/DiscoverEvents.php <ide> protected static function classFromFile(SplFileInfo $file, $basePath) <ide> $class = trim(Str::replaceFirst($basePath, '', $file->getRealPath()), DIRECTORY_SEPARATOR); <ide> <ide> return str_replace( <del> [DIRECTORY_SEPARA...
1
Ruby
Ruby
avoid deprecate api
b0fc912f1b829391760b50107dad365fa87c744f
<ide><path>activerecord/lib/active_record/relation.rb <ide> def destroy(id) <ide> # If you need to destroy dependent associations or call your <tt>before_*</tt> or <ide> # +after_destroy+ callbacks, use the +destroy_all+ method instead. <ide> def delete_all(conditions = nil) <del> conditions ? where(co...
1
Python
Python
use tf.keras.losses instead of tf.losses
8f6e2547106fcbc2c53a20bdb4454d88e55bed7d
<ide><path>official/recommendation/ncf_keras_main.py <ide> def run_ncf(_): <ide> epsilon=params["epsilon"]) <ide> <ide> if params["keras_use_ctl"]: <del> loss_object = tf.losses.SparseCategoricalCrossentropy( <add> loss_object = tf.keras.losses.SparseCategoricalCrossentropy( <ide> reduction=tf....
1
Go
Go
fix status code
01284cbf7350d1b4537e83ddd60274afccf32ecf
<ide><path>commands.go <ide> func (cli *DockerCli) CmdInspect(args ...string) error { <ide> } <ide> <ide> indented := new(bytes.Buffer) <add> status := 0 <ide> <ide> for _, name := range args { <ide> obj, _, err := cli.call("GET", "/containers/"+name+"/json", nil) <ide> if err != nil { <ide> obj, _, err = c...
1
Ruby
Ruby
support older minitest constant
e9cf30eb2c576507cd6e096cf7f5ab3ffad494f9
<ide><path>Library/Homebrew/cmd/test.rb <ide> module Homebrew extend self <ide> <ide> if Object.const_defined?(:Minitest) <ide> FailedAssertion = Minitest::Assertion <add> elsif Object.const_defined?(:MiniTest) <add> FailedAssertion = MiniTest::Assertion <ide> else <ide> FailedAssertion = Test::Unit::A...
1
Mixed
Python
support env vars and cli overrides for project.yml
c08b3f294cdfb07c4f75e88f955339111074d025
<ide><path>spacy/cli/_util.py <ide> <ide> from ..schemas import ProjectConfigSchema, validate <ide> from ..util import import_file, run_command, make_tempdir, registry, logger <del>from ..util import is_compatible_version, ENV_VARS <add>from ..util import is_compatible_version, SimpleFrozenDict, ENV_VARS <ide> from .....
5
Go
Go
implement docker login with standalone client lib
b36531db6020134c8b561db71a67c4346051ed4a
<ide><path>api/client/lib/errors.go <ide> func (i imageNotFoundError) Error() string { <ide> return fmt.Sprintf("Image not found: %s", i.imageID) <ide> } <ide> <del>// ImageNotFound returns the ID of the image not found on the docker host. <del>func (i imageNotFoundError) ImageIDNotFound() string { <del> return i.ima...
3
PHP
PHP
fix failing tests
369bbcc964741a26139290683dc075e8b9d357f8
<ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php <ide> public function testExportVar() { <ide> request => object(CakeRequest) {} <ide> response => object(CakeResponse) {} <ide> elementCache => 'default' <add> elementCacheSettings => array() <ide> int => (int) 2 <ide> float => (float) 1.333 <ide> } <ide><path...
2
Python
Python
fix typo and auto-format [ci skip]
e5c7e19e82d3a9dec5ad34582b2cd3adc5396b1e
<ide><path>spacy/cli/debug_data.py <ide> def debug_data( <ide> if not has_low_data_warning: <ide> msg.good("Good amount of examples for all labels") <ide> if not has_no_neg_warning: <del> msg.good("Examples without occurences available for all labels") <add> msg.good("E...
1
Python
Python
fix typo in module-level comment
ac749afb940857b74158ce60ff780db12ed5e558
<ide><path>numpy/core/tests/test_deprecations.py <ide> """ <del>"Tests related to deprecation warnings. Also a convenient place <add>Tests related to deprecation warnings. Also a convenient place <ide> to document how deprecations should eventually be turned into errors. <ide> """ <ide> import numpy as np
1
Python
Python
fix edge case in queue management
165927f19fd55bae542b3eda2a1bffbd140b6756
<ide><path>airflow/jobs.py <ide> def prioritize_queued(self, session, executor, dagbag): <ide> session.delete(ti) <ide> if task: <ide> ti.task = task <del> if ti.is_queueable(): <add> if ti.are_dependencies...
1
Python
Python
change import orders
afcd549863c04d0a6b21cc583cc7c52e4824b4ec
<ide><path>celery/concurrency/eventlet.py <ide> from __future__ import absolute_import <ide> <ide> import os <del>import sys <del> <del>from time import time <del> <ide> if not os.environ.get("EVENTLET_NOPATCH"): <ide> import eventlet <ide> import eventlet.debug <ide> eventlet.monkey_patch() <ide> even...
2
Python
Python
float fix on node-gyp in npm tree
8b4af64f50c5e41ce0155716f294c24ccdecad03
<ide><path>deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py <ide> def Sourceify(path): <ide> def QuoteSpaces(s, quote=r'\ '): <ide> return s.replace(' ', quote) <ide> <add>def SourceifyAndQuoteSpaces(path): <add> """Convert a path to its source directory form and quote spaces.""" <add> return QuoteSp...
1
PHP
PHP
fix doc blocks around entity
95d93b206d552bf4c3298ec93ee54463d00a4bc0
<ide><path>src/Datasource/EntityInterface.php <ide> public function &get($property); <ide> * Returns whether this entity contains a property named $property <ide> * regardless of if it is empty. <ide> * <del> * @param string $property The property to check. <add> * @param string|array $property T...
2
Javascript
Javascript
allow exact match without extension in dll
38264a092e130b83bfe521e6e35a3b3e7600f183
<ide><path>lib/DelegatedModuleFactoryPlugin.js <ide> DelegatedModuleFactoryPlugin.prototype.apply = function(normalModuleFactory) { <ide> var request = dependency.request; <ide> if(request && request.indexOf(scope + "/") === 0) { <ide> var innerRequest = "." + request.substr(scope.length); <add> var re...
8
PHP
PHP
fix eloquent builder accessing $orders property
f73e6e4b6bb89a14bac2f5b92dc0f5f8d2b8a6b1
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function chunk($count, callable $callback) <ide> */ <ide> public function each(callable $callback, $count = 1000) <ide> { <del> if (is_null($this->orders) && is_null($this->unionOrders)) { <add> if (is_null($this->query->ord...
1
Javascript
Javascript
add debounced.cancel and use it in resizemanager
8e9d92cc98869ca372a993851722a73451d10f58
<ide><path>src/js/resize-manager.js <ide> class ResizeManager extends Component { <ide> this.off('load', this.loadListener_); <ide> } <ide> <add> if (this.debouncedHandler_) { <add> this.debouncedHandler_.cancel(); <add> } <add> <ide> this.ResizeObserver = null; <ide> this.resizeObserver =...
2
Ruby
Ruby
use okjson directly
d6929f96a5324e245b4370f94314c8e10655367a
<ide><path>Library/Homebrew/options.rb <ide> def to_s <ide> end <ide> alias_method :to_str, :to_s <ide> <del> def to_json <del> flag.inspect <del> end <del> <ide> def <=>(other) <ide> name <=> other.name <ide> end <ide><path>Library/Homebrew/tab.rb <ide> def options <ide> <ide> def to_json <ide> ...
4
Mixed
Ruby
remove the deprecation of update_column
4ac81de52fbcdabc68f6d1fa8a5ee9ff7fff7df1
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Jon Leighton* <ide> <del>* Deprecate `update_column` method in favor of `update_columns`. <del> <del> *Rafael Mendonça França* <del> <ide> * Added an `update_columns` method. This new method updates the given attributes on an object, <ide> without calli...
3
Ruby
Ruby
check casks for macos version conditionals
3556e756fcb9d1fd88be7416e14b624c25b737f8
<ide><path>Library/Homebrew/rubocops/cask/on_system_conditionals.rb <ide> def on_cask(cask_block) <ide> end <ide> <ide> audit_arch_conditionals(cask_body) <add> audit_macos_version_conditionals(cask_body) <ide> simplify_sha256_stanzas <ide> end <ide>
1
Javascript
Javascript
add webglshadercache.
9b86245eafd2c71ace83688ad0f20de1750f2968
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters = {} ) { <ide> cubeuvmaps.dispose(); <ide> objects.dispose(); <ide> bindingStates.dispose(); <add> programCache.dispose(); <ide> <ide> xr.dispose(); <ide> <ide> function WebGLRenderer( parameters = {} ) { <ide> <ide> } ); ...
4
Go
Go
remove unused var block
6e5894b5511846b1be64f6fcae73a8b4ddd0ef24
<ide><path>pkg/parsers/kernel/kernel_unix.go <ide> import ( <ide> <ide> // GetKernelVersion gets the current kernel version. <ide> func GetKernelVersion() (*VersionInfo, error) { <del> var ( <del> err error <del> ) <del> <ide> uts, err := uname() <ide> if err != nil { <ide> return nil, err
1
Java
Java
fix a typo in basejavamodule
3bf068ac937088ea0c741b74403e594eed30b143
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java <ide> public boolean hasConstants() { <ide> return false; <ide> } <ide> <del> // Cleanup Logic for TurboModuels <add> // Cleanup Logic for TurboModules <ide> public void invalidate() { <ide> // Do nothing <ide> }
1
PHP
PHP
respect dark mode on splash
c15a1006d1e8ca335e8aa81314a8a20baf93563f
<ide><path>resources/views/welcome.blade.php <ide> <link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700" rel="stylesheet"> <ide> <ide> <!-- Styles --> <del> <link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> <add> <style> <add> ...
1
Javascript
Javascript
add comments about falsy error types
eb3edefb70f80de23be6c06bf10904048fd369fd
<ide><path>lib/internal/errors.js <ide> E('ERR_CRYPTO_HASH_FINALIZED', 'Digest already called', Error); <ide> E('ERR_CRYPTO_HASH_UPDATE_FAILED', 'Hash update failed', Error); <ide> E('ERR_CRYPTO_INVALID_DIGEST', 'Invalid digest: %s', TypeError); <ide> E('ERR_CRYPTO_INVALID_STATE', 'Invalid state for operation %s', Erro...
1
PHP
PHP
fix coding standards in comment
e85ac9339e1b5a938ba98e7f4e81998250ec489c
<ide><path>lib/Cake/Cache/Cache.php <ide> public static function groupConfigs($group = null) { <ide> * <ide> * {{{ <ide> * $model = $this; <del> * $results = Cache::remember('all_articles', function () use ($model) { <add> * $results = Cache::remember('all_articles', function() use ($model) { <ide> * return $m...
1
Java
Java
improve performance of projection instantiation
6d6aa72e8f0a2c542a083391a5001e388facb215
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java <ide> import java.util.ArrayList; <ide> import java.util.Arrays; <ide> import java.util.Collection; <del>import java.util.LinkedList; <ide> import java.util.List; <ide> import java.util.Map; <ide> import java.util.concurrent.Concu...
2
Ruby
Ruby
refactor the code a bit to reduce the duplication
1ccca1b9cb4c360b6d9784663da542df34ed3773
<ide><path>activerecord/lib/active_record/base.rb <ide> def compute_table_name <ide> # Each dynamic finder using <tt>scoped_by_*</tt> is also defined in the class after it <ide> # is first invoked, so that future attempts to use it do not run through method_missing. <ide> def method_missing(meth...
1
Ruby
Ruby
fix typo in test classname
08f6af2d5357b82b59f968aa5e926f6c6fd1e2ff
<ide><path>activerecord/test/cases/relations_test.rb <ide> require 'models/developer' <ide> require 'models/company' <ide> <del>class RealtionTest < ActiveRecord::TestCase <add>class RelationTest < ActiveRecord::TestCase <ide> fixtures :authors, :topics, :entrants, :developers, :companies, :developers_projects, :acc...
1
Javascript
Javascript
initialize loc member in dependency
9309e85f0f9668e13d33b9df232da658003446c9
<ide><path>lib/Dependency.js <ide> class Dependency { <ide> this.module = null; <ide> this.weak = false; <ide> this.optional = false; <add> this.loc = undefined; <ide> } <ide> <ide> getResourceIdentifier() {
1
Javascript
Javascript
add tests for open() and docks
417e9c697985c28812a140d25a9486c4028191e7
<ide><path>spec/workspace-spec.js <ide> describe('Workspace', () => { <ide> setDocumentEdited = spyOn(atom.applicationDelegate, 'setWindowDocumentEdited') <ide> atom.project.setPaths([atom.project.getDirectories()[0].resolve('dir')]) <ide> waits(1) <add> <add> waitsForPromise(() => atom.workspace.previou...
1
Javascript
Javascript
improve typed array formatting
34a35919e165cba6d5972e004e6b2cbdf2f4c65a
<ide><path>lib/util.js <ide> function formatValue(ctx, value, recurseTimes) { <ide> formatted = formatPrimitiveNoColor(ctx, raw); <ide> return ctx.stylize('[Boolean: ' + formatted + ']', 'boolean'); <ide> } <add> // Fast path for ArrayBuffer. Can't do the same for DataView because it <add> // has...
2
Python
Python
remove duplicates in tag map
a9421652c9dc8b53bd71123d6a9dcf590c0ce990
<ide><path>spacy/en/language_data.py <ide> def get_time_exc(hours): <ide> "ADD": {POS: X}, <ide> "NFP": {POS: PUNCT}, <ide> "GW": {POS: X}, <del> "AFX": {POS: X}, <del> "HYPH": {POS: PUNCT}, <ide> "XX": {POS: X}, <ide> "BES": {POS: VERB}, <ide> "HVS": ...
1
Python
Python
fix azure upload_object_via_stream used with iter
d949d76b9bb24ca7b8f1839c45090db64689453a
<ide><path>libcloud/storage/drivers/azure_blobs.py <ide> import base64 <ide> import os <ide> import binascii <add>from io import BytesIO <ide> <ide> from libcloud.utils.py3 import ET <ide> from libcloud.utils.py3 import httplib <ide> def upload_object_via_stream(self, iterator, container, object_name, <ide> ""...
2
Python
Python
add some tests for polynomial printing
64fce7c67849f44492d55ccf8a745b252bf1368b
<ide><path>numpy/polynomial/tests/test_printing.py <add>import numpy.polynomial as poly <add>from numpy.testing import TestCase, run_module_suite, assert_ <add> <add>class test_str(TestCase): <add> def test_polynomial_str(self): <add> res = str(poly.Polynomial([0,1])) <add> tgt = 'poly([0., 1.])' <add>...
1
Javascript
Javascript
fix route value on popstate (#490)
74d4d22f841ef1e1d0ebcf0067f9f84b1146011b
<ide><path>lib/router/router.js <ide> export default class Router { <ide> onPopState (e) { <ide> this.abortComponentLoad() <ide> <del> const { pathname, query } = parse(window.location.href, true) <del> const route = (e.state || {}).route || toRoute(pathname) <add> let { route } = e.state || {} <add> ...
1
Text
Text
modify output info for docker pull centos
6becc1a5774e391a3dcade645cdeff46577bf6fa
<ide><path>docs/tutorials/dockerimages.md <ide> download the `centos` image. <ide> <ide> $ docker pull centos <ide> <del> Pulling repository centos <del> b7de3133ff98: Pulling dependent layers <del> 5cc9e91966f7: Pulling fs layer <del> 511136ea3c5a: Download complete <del> ef52fb1fe610: Download co...
1
Javascript
Javascript
include host name in error message if available
174f7d2820dcb12f1b4b511840416a03cd65b9cf
<ide><path>lib/dns.js <ide> function errnoException(err, syscall, hostname) { <ide> } <ide> var ex = null; <ide> if (typeof err === 'string') { // c-ares error code. <del> ex = new Error(syscall + ' ' + err); <add> ex = new Error(syscall + ' ' + err + (hostname ? ' ' + hostname : '')); <ide> ex.code = ...
2
Ruby
Ruby
use ref_types when extracting ref to use
5ce4c2a3f889c331fb12483c7bd4fee3b5addf1f
<ide><path>Library/Homebrew/download_strategy.rb <ide> class VCSDownloadStrategy < AbstractDownloadStrategy <ide> <ide> def initialize name, resource <ide> super <del> @ref_type, @ref = destructure_spec_hash(resource.specs) <add> @ref_type, @ref = extract_ref(resource.specs) <ide> @clone = HOMEBREW_CAC...
1
Ruby
Ruby
check the actual constant used
997770f5955a36f0c800388c4592c961e184aec4
<ide><path>activesupport/lib/active_support/notifications/instrumenter.rb <ide> class Event <ide> attr_accessor :payload <ide> <ide> def self.clock_gettime_supported? # :nodoc: <del> defined?(Process::CLOCK_PROCESS_CPUTIME_ID) && <add> defined?(Process::CLOCK_THREAD_CPUTIME_ID) && <ide> ...
1
Text
Text
fix broken links at plugins documentation
354147df012dd35f82e59e3511d9be4fc7610352
<ide><path>docs/extend/plugins.md <ide> plugins. <ide> ## Types of plugins <ide> <ide> Plugins extend Docker's functionality. They come in specific types. For <del>example, a [volume plugin](/extend/plugins_volume) might enable Docker <add>example, a [volume plugin](/docs/extend/plugins_volume.md) might enable Docke...
1
Javascript
Javascript
remove an unnecessary call to then()
bb8f114dcb432f9424db1654e6cb4e6c37283c33
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> <ide> if (!this.projectAtRoot) { <ide> this.projectAtRoot = this.getRepo() <del> .then(repo => this.project.relativize(repo.workdir())) <del> .then(relativePath => relativePath === '') <add> .the...
1
Javascript
Javascript
retain lines in babel under jest
049fd9a902da74ab0346a99efad8d41d75c5c24a
<ide><path>jest/preprocessor.js <ide> module.exports = { <ide> if (!path.match(/\/node_modules\//) && !path.match(/\/third_party\//)) { <ide> return babel.transform(src, { <ide> blacklist: ['spec.functionName', 'validation.react'], <del> filename: path <add> filename: path, <add> ...
1
Javascript
Javascript
fix default encoding for outgoing http messages
d1a13bdd35e6a404b15d229fefdb361ac43a5d81
<ide><path>src/http.js <ide> node.inherits(OutgoingMessage, node.EventEmitter); <ide> <ide> OutgoingMessage.prototype.send = function (data, encoding) { <ide> this.output.push(data); <del> this.outputEncodings.push(encoding || "raws"); <add> encoding = encoding || (data.constructor === Array ? "raw" : "raws"); <ad...
1
Ruby
Ruby
remove macgpg2 check
fdcdcf73500626994dee6bd4d3bafba3bc8974bc
<ide><path>Library/Homebrew/diagnostic.rb <ide> def check_path_for_trailing_slashes <ide> EOS <ide> end <ide> <del> # Installing MacGPG2 interferes with Homebrew in a big way <del> # https://github.com/GPGTools/MacGPG2 <del> def check_for_macgpg2 <del> return if File.exist? "/usr/lo...
1
Python
Python
allow offline upgrade with no options
abaef54d54091ce1c59136247271fd68d4840e28
<ide><path>airflow/utils/db.py <ide> def upgradedb( <ide> if not from_revision: <ide> from_revision = _get_current_revision(session) <ide> <add> if not to_revision: <add> script = _get_script_object() <add> to_revision = script.get_current_head() <add> <ide> if ...
2
Ruby
Ruby
remove unnecessary todo
89ada1977ce648b2121cad7cfb95af9686ea016b
<ide><path>lib/action_mailbox/base.rb <ide> def perform_processing <ide> end <ide> end <ide> rescue => exception <del> # TODO: Include a reference to the inbound_email in the exception raised so error handling becomes easier <ide> rescue_with_handler(exception) || raise <ide> end <ide>
1
Text
Text
fix ruby for-loops examples
0191cb2eb40a56d4a11116cc103cb3f3889f8a34
<ide><path>guide/arabic/ruby/ruby-for-loop/index.md <ide> localeTitle: روبي للحلقات <ide> <ide> للحلقات هي مجرد مثال واحد على التكرار أو التكرار على العناصر. في ما يلي مثال على حلقة for: <ide> <del> `for element in array do <del> puts element <del> end <del>` <add>``` <add>for element in array do <add> puts ele...
6
Ruby
Ruby
prefer each instead of for on activesupport
f4d100bb5a93a9370535cb79b1edca659542f9d1
<ide><path>activesupport/lib/active_support/buffered_logger.rb <ide> def add(severity, message = nil, progname = nil, &block) <ide> # def info <ide> # def warn <ide> # def debug <del> for severity in Severity.constants <add> Severity.constants.each do |severity| <ide> class_eval <<-EOT, __FILE__...
1
Text
Text
fix urlobject link
02dcdca13b7cbe89e1980bab7e8274500bf9e4e1
<ide><path>README.md <ide> For more information, check out [the documentation][docs], in particular, the tu <ide> <ide> * Python (2.6, 2.7) <ide> * Django (1.3, 1.4, 1.5) <del>* [URLObject] (>=2.0.0) <add>* [URLObject][urlobject] (2.0.0+) <ide> <ide> **Optional:** <ide>
1
Text
Text
update model graden readme
fb603b318e2d0603269510a14ab38466804096d8
<ide><path>official/README.md <ide> built from the <ide> as tagged branches or [downloadable releases](https://github.com/tensorflow/models/releases). <ide> * Model repository version numbers match the target TensorFlow release, <ide> such that <del>[release v2.2.0](https://github.com/tensorflow/models/releases/tag/v2....
1
Text
Text
add text about man command.
03ec2dc45f761024e8e370f9c982dc48bd4424bb
<ide><path>guide/english/linux/basic-linux-commands/index.md <ide> When starting out with Linux, there are some basic commands everyone should know <ide> <ide> 3. **man** - manual command <ide> - Shows you the manual for the following command. This is very helpful when trying to figure out how an unfamiliar command wo...
1
Python
Python
improve test case
a158138990d6e1dd5f2f4c970656fd5af2d7ff90
<ide><path>docs/examples/storage/scaleway/upload_example.py <ide> FILE_PATH = "/home/user/myfile.tar.gz" <ide> <ide> cls = get_driver(Provider.SCALEWAY) <del>driver = cls("api key", "api secret key", host="s3.fr-par.scw.cloud") <add> <add>driver = cls("api key", "api secret key", region="fr-par") <ide> <ide> containe...
1
Java
Java
add sockjsframetype enum
c14ba1a0ff72ed11eaa5fc7d808f6f3a3fbe2916
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/DefaultSockJsFrameFormat.java <ide> import org.springframework.util.Assert; <ide> <ide> /** <add> * A default implementation of <add> * {@link org.springframework.web.socket.sockjs.frame.SockJsFrameFormat} that relies <add> * on {@li...
8
Javascript
Javascript
add utayomin to showcase
a1cd6cf678c0fdd8415c46ec04a69aaa2f2763ba
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> icon: 'http://7xk1ez.com2.z0.glb.qiniucdn.com/logo-mobile-0114logo_welcom.png', <ide> link: 'https://itunes.apple.com/us/app/ni-zao-me/id1025294933?l=zh&ls=1&mt=8', <ide> author: 'Scott Chen(@NZAOM)' <add> }, <add> { <add> name: '...
1
Javascript
Javascript
announce ngmessages with aria-live
187e43185dfb1bce6a318d95958c73cfb789d33c
<ide><path>src/ngAria/aria.js <ide> ngAriaModule.directive('ngShow', ['$aria', function($aria) { <ide> .directive('ngDisabled', ['$aria', function($aria) { <ide> return $aria.$$watchExpr('ngDisabled', 'aria-disabled'); <ide> }]) <add>.directive('ngMessages', function() { <add> return { <add> restrict: 'A', <add> ...
2
Text
Text
add contributing section
157d461626007b22354a85cf463870f283f81fcb
<ide><path>README.md <ide> Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/brew/bl <ide> <ide> **If you don't read these it will take us far longer to help you with your problem.** <ide> <add>## Contributing <add>We'd love you to contribute to Homebrew. First, please read our [Contribution Gu...
1
Text
Text
fix a typo
3977b58437b8ce1ea1da6e31747d888efec2419b
<ide><path>examples/pytorch/summarization/README.md <ide> and reply to the questions asked. Then <ide> accelerate test <ide> ``` <ide> <del>that will check everything is ready for training. Finally, you cna launch training with <add>that will check everything is ready for training. Finally, you can launch training wit...
1
Java
Java
constrain upstream requests from take
0c50f0ab1bcfe9bdb1c8cd13ef1dc214c405e580
<ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java <ide> public final <R> Flowable<R> lift(FlowableOperator<? extends R, ? super T> lifte <ide> return RxJavaPlugins.onAssembly(new FlowableLift<R, T>(this, lifter)); <ide> } <ide> <del> /** <del> * Limits both the number of upstream item...
15
Text
Text
add v4.10.0-beta.5 to changelog
78b3590bf074cc1f7e3cb4422aeed9b2bfe57e5d
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>## v4.10.0-beta.5 (December 28, 2022) <add> <add>- [#20327](https://github.com/emberjs/ember.js/pull/20327) [BUGFIX] Fix the types for the mutation-methods of `NativeArray` <add> <ide> ## v4.10.0-beta.4 (December 13, 2022) <ide> <del>- [#20321](https://github...
1
Text
Text
fix description of hassubscribers
f2c26153d79564afe893d8135be616af402d0136
<ide><path>doc/api/diagnostics_channel.md <ide> Check if there are active subscribers to the named channel. This is helpful if <ide> the message you want to send might be expensive to prepare. <ide> <ide> This API is optional but helpful when trying to publish messages from very <del>performance-senstive code. <add>pe...
1
Ruby
Ruby
add test for existing virtual datetime precision
919dd4a331357ceb8b294cdeb9f640ec22bf5c2d
<ide><path>activerecord/test/cases/adapters/mysql2/virtual_column_test.rb <ide> class VirtualColumn < ActiveRecord::Base <ide> def setup <ide> @connection = ActiveRecord::Base.connection <ide> @connection.create_table :virtual_columns, force: true do |t| <del> t.string :name <del> t.virtu...
1
Javascript
Javascript
add writefilter when in the readline
d4af8a6b6ac0045620ad6da94e97a71e6e6fad52
<ide><path>lib/readline.js <ide> exports.createInterface = function (output, completer) { <ide> return new Interface(output, completer); <ide> }; <ide> <add>function writeFilter (stream) { <add> if (stream._writeFiltered) return; <add> stream._writeFiltered = true; <add> stream._normalWrite = stream.write; <add> ...
1
Javascript
Javascript
optimize jpg.js receiveandextend for 1 bit case
0a42edf82f1d36a1681e5d770ffd151ee1569958
<ide><path>src/core/jpg.js <ide> var JpegImage = (function jpegImage() { <ide> } <ide> <ide> function receiveAndExtend(length) { <add> if (length === 1) { <add> return readBit() === 1 ? 1 : -1; <add> } <ide> var n = receive(length); <ide> if (n >= 1 << (length - 1)) { <ide> ...
1
PHP
PHP
remove @author docblocks
7e8a6e5115bd128fa83ffa5a22f6a5dc6da44323
<ide><path>src/Illuminate/Support/helpers.php <ide> function array_wrap($value) <ide> /** <ide> * Determine if the given value is "blank". <ide> * <del> * @author Derek MacDonald (https://github.com/derekmd) <del> * <ide> * @param mixed $value <ide> * @return bool <ide> */ <ide> f...
1
Text
Text
add performance warning to require.extensions
df29d9f5004a6d88603a9435782f4d7fcbcb3153
<ide><path>doc/api/globals.md <ide> However, in practice, there are much better ways to do this, such as <ide> loading modules via some other Node.js program, or compiling them to <ide> JavaScript ahead of time. <ide> <del>Since the Module system is locked, this feature will probably never go <add>Since the module sys...
1
Java
Java
remove unused test class
7ec85b21bbf536292e1e1bffd82d41d10a45277e
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/AbstractRequestAttributesArgumentResolverTests.java <del>/* <del> * Copyright 2002-2016 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may n...
1
Javascript
Javascript
add tests for arrays of `before` and `after`
496dfe7e92d7696d60594b077088232486fe3be8
<ide><path>packages/ember-application/tests/system/initializers_test.js <ide> test("initializers can be registered in a specified order", function() { <ide> deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']); <ide> }); <ide> <add>test("initializers can be registered in a specified order as an...
2
Text
Text
create readme.md model card
e20d8895bdc926babc45e6bfa7ec9047b012aa77
<ide><path>model_cards/rjbownes/Magic-The-Generating/README.md <add>--- <add>widget: <add>- text: "Even the Dwarves" <add>- text: "The secrets of" <add>--- <add> <add># Model name <add>Magic The Generating <add> <add>## Model description <add> <add>This is a fine tuned GPT-2 model trained on a corpus of all available E...
1