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
Go
Go
check the output, not the errcode
bcb9adf49e6726eccc1ee1ed41fbe21789c2367f
<ide><path>integration-cli/docker_cli_daemon_test.go <ide> func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) { <ide> <ide> // pull a repository large enough to fill the mount point <ide> out, err := s.d.Cmd("pull", "registry:2") <del> c.Assert(out, check.Not(check.Equals), 1, check.Commentf(...
1
Ruby
Ruby
load an application before use
1555fcf32cb13e65ae9d4f1cd776b8becaed1906
<ide><path>railties/test/application/configuration_test.rb <ide> class MyLogger < ::Logger <ide> config.rake_eager_load = true <ide> RUBY <ide> <add> app "development" <add> <ide> assert_equal true, Rails.application.config.rake_eager_load <ide> end <ide>
1
Python
Python
add initialization for everybody
5705333441f44858d9e656a8370b6c4c2921455b
<ide><path>examples/run_tf_glue.py <ide> import tensorflow as tf <ide> import tensorflow_datasets <del>from transformers import * <add>from pytorch_transformers import * <ide> <ide> # Load dataset, tokenizer, model from pretrained model/vocabulary <ide> tokenizer = BertTokenizer.from_pretrained('bert-base-cased') <del...
9
Javascript
Javascript
remove duplication of $browser to docs
842741ee9958ce3895f709c3faf47bfac762ef64
<ide><path>src/AngularPublic.js <ide> 'use strict'; <ide> <ide> var browserSingleton; <del>/** <del> * @workInProgress <del> * @ngdoc service <del> * @name angular.service.$browser <del> * @requires $log <del> * <del> * @description <del> * Represents the browser. <del> */ <add> <ide> angularService('$browser', functi...
1
PHP
PHP
fix missing inflection on prefix value
a3298a439a7a5c8223c9e032d86411b42a4147c2
<ide><path>src/Routing/Router.php <ide> public static function prefix($name, $params = [], $callback = null) <ide> $callback = $params; <ide> $params = []; <ide> } <add> $name = Inflector::underscore($name); <ide> <ide> if (empty($params['path'])) { <del> $path...
2
Ruby
Ruby
fix a failing test
4e3c215dcbeb122c59fe7158715c07bd4b1f41fd
<ide><path>actionpack/test/template/template_test.rb <ide> def disable_cache <ide> <ide> def find_template(*args) <ide> end <add> <add> attr_writer :formats <ide> end <ide> <ide> class Context
1
Javascript
Javascript
check noop invocation with mustnotcall()
d64d36126604f012461181d7f53c05233056394e
<ide><path>test/parallel/test-child-process-spawnsync-validation-errors.js <ide> function fail(option, value, message) { <ide> fail('cwd', false, err); <ide> fail('cwd', [], err); <ide> fail('cwd', {}, err); <del> fail('cwd', common.noop, err); <add> fail('cwd', common.mustNotCall(), err); <ide> } <ide> <ide> ...
1
Go
Go
remove transportport.fromstring() as it's unused
073f8df0fef934a72f5d74adb6e9f8d2fe09a06f
<ide><path>libnetwork/types/types.go <ide> import ( <ide> "bytes" <ide> "fmt" <ide> "net" <del> "strconv" <ide> "strings" <ide> <ide> "github.com/ishidawataru/sctp" <ide> func (t *TransportPort) String() string { <ide> return fmt.Sprintf("%s/%d", t.Proto.String(), t.Port) <ide> } <ide> <del>// FromString reads ...
2
Python
Python
fix broken kubeexecutor tests
78503e0cd562be422a142d49461cbc27b2982ad2
<ide><path>kubernetes_tests/test_kubernetes_executor.py <ide> @pytest.mark.skipif(EXECUTOR != 'KubernetesExecutor', reason="Only runs on KubernetesExecutor") <ide> class TestKubernetesExecutor(TestBase): <ide> def test_integration_run_dag(self): <del> dag_id = 'example_kubernetes_executor_config' <add> ...
1
Javascript
Javascript
fix integration test with js-colors
17363bbc6fa46f04bf308a23443b931c85856ff2
<ide><path>test/integration/scripting_spec.js <ide> describe("Interaction", () => { <ide> pages = await loadAndWait("js-colors.pdf", "#\\33 4R"); <ide> }); <ide> <del> it("must changes colors", async () => { <add> it("must change colors", async () => { <ide> await Promise.all( <ide> pages...
1
Python
Python
modify transfer operators to handle more data
99b0211d5087cf486415b5fc8399d3f15d84ed69
<ide><path>airflow/providers/google/cloud/transfers/cassandra_to_gcs.py <ide> def execute(self, context: 'Context'): <ide> <ide> cursor = hook.get_conn().execute(self.cql, **query_extra) <ide> <del> files_to_upload = self._write_local_data_files(cursor) <del> <ide> # If a schema is set, create ...
3
Go
Go
add a test case for expose ports order
1e7ba09b60aa0bc527dc7e0159071a6d47796de4
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildExpose(t *testing.T) { <ide> logDone("build - expose") <ide> } <ide> <add>func TestBuildExposeOrder(t *testing.T) { <add> buildID := func(name, exposed string) string { <add> _, err := buildImage(name, fmt.Sprintf(`FROM scratch <add> EXPOSE %s`...
1
PHP
PHP
remove unnecessary code
73695d9766ff341906664c0f101e85189915a516
<ide><path>tests/Database/DatabaseEloquentMorphToTest.php <ide> protected function getRelationAssociate($parent) <ide> public function getRelation($parent = null, $builder = null) <ide> { <ide> $builder = $builder ?: m::mock('Illuminate\Database\Eloquent\Builder'); <del> $builder->shouldReceive('...
2
Javascript
Javascript
replace opacity console error with warning
64d5da775408194f7b0bad551f5b6292136ad081
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> function createAnimatedComponent(Component: any): any { <ide> <ide> for (var key in ViewStylePropTypes) { <ide> if (!Component.propTypes[key] && props[key] !== undefined) { <del> console.error( <add> console.warn( <ide> ...
1
Ruby
Ruby
remove unused debug_routes
18bf7b421d55c60029289edef1df409a58d021e4
<ide><path>actionpack/lib/action_controller/base.rb <ide> class Base <ide> @@consider_all_requests_local = true <ide> cattr_accessor :consider_all_requests_local <ide> <del> # Enable or disable the collection of failure information for RoutingErrors. <del> # This information can be extremely useful when ...
1
Ruby
Ruby
define default prefix constants
8ff7601a92b9200c660706d60e04aa63200baa73
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> <% if !root_url.start_with?(HOMEBREW_BOTTLE_DEFAULT_DOMAIN) %> <ide> root_url "<%= root_url %>" <ide> <% end %> <del> <% if ![Homebrew::DEFAULT_PREFIX, "/usr/local"].include?(prefix) %> <add> <% if ![HOMEBREW_DEFAULT_PREFIX, LINUXBREW_DEFAULT_PREFIX]...
3
PHP
PHP
fix negative validation for pagination
2c76a733715b8754d8752658f743032947cf746c
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> namespace Illuminate\Database\Eloquent; <ide> <ide> use Closure; <add>use InvalidArgumentException; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Pagination\Paginator; <ide> public function lists($column, $key = nu...
1
Java
Java
standardize error objects for promises
a10b4d8c479b2c21dffb0a2bbc76435b7ebfa009
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/Promise.java <ide> public interface Promise { <ide> void resolve(Object value); <ide> void reject(Throwable reason); <add> @Deprecated <ide> void reject(String reason); <add> void reject(String code, Throwable extra); <add> void reject(String code...
2
Ruby
Ruby
shorten jenkins env sha-1s
1856f8eadf68cb69195dac95ac79857485789b74
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def git arguments <ide> end <ide> <ide> def download <add> def shorten_revision revision <add> git("rev-parse --short #{revision}").strip <add> end <add> <ide> def current_sha1 <del> git('rev-parse --short HEAD').strip <add> short...
1
PHP
PHP
remove alias loading that isn't necessary
cb913ead92d57fa5bdf09acf89f1d985466fe624
<ide><path>src/Http/ActionDispatcher.php <ide> public function __construct($factory = null, $eventManager = null, array $filter <ide> $this->addFilter($filter); <ide> } <ide> $this->factory = $factory ?: new ControllerFactory(); <del> <del> // Force aliases to be autoloaded. <del> ...
1
Ruby
Ruby
use full name in verbose
d3788c58efbae7c841faeb89a3eea539862245f7
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def print_outdated(formulae) <ide> end <ide> <ide> outdated_versions = outdated_kegs. <del> group_by(&:name). <del> sort_by(&:first). <del> map { |name, kegs| "#{name} (#{kegs.map(&:version) * ", "})" } * ", " <add> g...
1
Python
Python
handle more expr warnings
04585856537ccf802d881943235205d95b59527e
<ide><path>numpy/f2py/symbolic.py <ide> def _pairs_add(d, k, v): <ide> del d[k] <ide> <ide> <add>class ExprWarning(warnings.UserWarning): <add> pass <add> <add> <add>def warn(message): <add> warnings.warn(message, ExprWarning, stacklevel=2) <add> <add> <ide> class Expr: <ide> """Represents a For...
1
Javascript
Javascript
send os version to the autoupdate endpoint
3a4fed4201247fb85ea30bad9d89394a8206df78
<ide><path>src/main-process/auto-update-manager.js <ide> const { EventEmitter } = require('events'); <add>const os = require('os'); <ide> const path = require('path'); <ide> <ide> const IdleState = 'idle'; <ide> module.exports = class AutoUpdateManager extends EventEmitter { <ide> initialize() { <ide> if (proces...
1
Javascript
Javascript
remove newline in tictactoe example
8f50ace8b3a6439fec63ea5ed8642d290c843cfd
<ide><path>Examples/TicTacToe/TicTacToeApp.js <ide> class Board { <ide> } <ide> } <ide> } <del> <ide> return this.winner() === null; <ide> } <ide> }
1
Text
Text
fix a typo in the documentation
7af469a605a90260951817bc1e8e370fb28b897e
<ide><path>doc/api/deprecations.md <ide> to the `constants` property exposed by the relevant module. For instance, <ide> Type: End-of-life <ide> <ide> Use of the [`crypto.pbkdf2()`][] API without specifying a digest was deprecated <del>in Node.js 6.0 because the method defaulted to using the non-recommendend <add>in N...
1
Javascript
Javascript
fix random broken test (because its sunday?)
2d8704b3c39f29d82df4a73b4f14d36b775d27d9
<ide><path>src/test/locale/zh-cn.js <ide> test("calendar last week", function (assert) { <ide> } <ide> assert.equal(m.calendar(), m.format('[上]ddd凌晨12点整'), 'Monday - ' + i + ' days next week'); <ide> } <add> // ensure at least one assertion is run <add> assert.equal(42, 42); <ide> }); <ide> ...
1
Ruby
Ruby
remove deprecated local_constants
c32ccd837ee37272b5b7abee6afec40cb45491ed
<ide><path>activesupport/lib/active_support/core_ext/module/introspection.rb <ide> def parents <ide> parents << Object unless parents.include? Object <ide> parents <ide> end <del> <del> def local_constants #:nodoc: <del> ActiveSupport::Deprecation.warn(<<-MSG.squish) <del> Module#local_constants is d...
2
Mixed
Ruby
parallelize tests only when overhead is justified
ecc5afed30b83650c7b4ccc004143a12a0ef0f88
<ide><path>activesupport/CHANGELOG.md <add>* Parallelize tests only when overhead is justified by the number of them <add> <add> Running tests in parallel adds overhead in terms of database <add> setup and fixture loading. Now, Rails will only parallelize test executions when <add> there are enough tests to ...
8
Text
Text
fix url for group_names action example
8f55cd8db5480ad811cdf431c4ba89f7f8a04a9d
<ide><path>docs/api-guide/routers.md <ide> The following mappings would be generated... <ide> <tr><th>URL</th><th>HTTP Method</th><th>Action</th><th>URL Name</th></tr> <ide> <tr><td>/users</td><td>GET</td><td>list</td><td>user-list</td></tr> <ide> <tr><td>/users/{username}</td><td>GET</td><td>retrieve</td><...
1
Java
Java
avoid use of `var` declarations
54c7f53eff4b4abf5e288d2e8d3bfc4ff6eecf17
<ide><path>spring-context/src/test/java/org/springframework/context/groovy/GroovyApplicationContextDynamicBeanPropertyTests.java <ide> class GroovyApplicationContextDynamicBeanPropertyTests { <ide> <ide> @Test <ide> void accessDynamicBeanProperties() { <del> var ctx = new GenericGroovyApplicationContext(); <del> c...
2
PHP
PHP
update doc blocks to fqcn
b6e8a99db6dbc60428ca94385bdac1c494592d3e
<ide><path>tests/TestCase/Controller/Component/SecurityComponentTest.php <ide> public function testValidatePostDebugFormat() <ide> /** <ide> * test blackhole will now throw passed exception if debug enabled <ide> * <del> * @expectedException Cake\Controller\Exception\SecurityException <add> * @exp...
30
Javascript
Javascript
fix bug that was crashing heroku
1e427d723c93a3d483627618d95369bedb1489cd
<ide><path>controllers/bonfire.js <ide> var _ = require('lodash'), <del> debug = require('debug')('freecc:cntr:bonfires'), <del> bonfire = require('./../models/bonfire'); <add> debug = require('debug')('freecc:cntr:bonfires'); <add>// bonfire = require('./../models/Bonfire'); <ide> <ide> /** <ide> * Bonfi...
1
Python
Python
fix identation problems in docs
dbb20ce653c2f70b5a9c5f1f39a2de5eaa9e0257
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_create_multiple_nodes( <ide> :type description: ``str`` or ``None`` <ide> <ide> :keyword ex_can_ip_forward: Set to ``True`` to allow this node to <del> send/receive non-matching src/dst packets. <add> ...
1
PHP
PHP
fix another inconsistent type
c4560bfdceda208ed7b5af2e1092345d64e78e57
<ide><path>src/Database/Schema/TableSchema.php <ide> public function getOptions(): array <ide> /** <ide> * {@inheritDoc} <ide> */ <del> public function setTemporary($temporary): TableSchemaInterface <add> public function setTemporary(bool $temporary): TableSchemaInterface <ide> { <ide> $...
2
Python
Python
add traceback in logrecord in ``jsonformatter``
99ec208024933d790272a09a6f20b241410a7df7
<ide><path>airflow/utils/log/json_formatter.py <ide> def usesTime(self): <ide> def format(self, record): <ide> super().format(record) <ide> record_dict = {label: getattr(record, label, None) for label in self.json_fields} <add> if "message" in self.json_fields: <add> msg = record_d...
2
Javascript
Javascript
normalize error message indenation and readibility
4d89326368758d8a97a1b97ea4b9fa796325b734
<ide><path>lib/performance/AssetsOverSizeLimitWarning.js <ide> function AssetsOverSizeLimitWarning(assetsOverSizeLimit, compilation) { <ide> return "\n -" + asset.name; <ide> }).join(""); <ide> <del> this.message = "The following assets exceed the recommended size limit.\n" + <add> this.message = "asset size limit...
3
Java
Java
use set.of() in stringtobooleanconverter
d533eb4a55baa9e03850801c30071af33bb9cbc8
<ide><path>spring-core/src/main/java/org/springframework/core/convert/support/StringToBooleanConverter.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <...
1
Python
Python
use assertequal instead
ac8872daa28037759e2e34311c4848a42b270b25
<ide><path>libcloud/test/compute/test_azure.py <ide> def test_locations_returned_successfully(self): <ide> def test_images_returned_successfully(self): <ide> images = self.driver.list_images() <ide> # There should be 215 standard OSImages and one VMImage returned <del> self.assertEquals(len(i...
1
Text
Text
add a section with es5 examples
eee449c5ffa4a0a9c6f918a052257e2d1366d5dc
<ide><path>README.md <ide> Atomic Flux with hot reloading. <ide> - [Demo](#demo) <ide> - [Examples](#examples) <ide> - [Simple Examples](#simple-examples) <add> - [ES5 Examples](#es5-examples) <ide> - [Async and Universal Examples with Routing](#async-and-universal-examples-with-routing) <ide> - [What does it look...
1
PHP
PHP
add flashnow functionality
2aecef2e625be2e93bc05874feaf24041a8eafab
<ide><path>src/Illuminate/Session/Store.php <ide> public function start() <ide> $this->regenerateToken(); <ide> } <ide> <add> $this->removeFlashNowData(); <add> <ide> return $this->started = true; <ide> } <ide> <ide> public function ageFlashData() <ide> $this->put('flash...
2
Javascript
Javascript
add callback to watching.prototype.invalidate
af3422c5d6e8d69e34679f99ceb92c56219ed985
<ide><path>lib/Compiler.js <ide> function Watching(compiler, watchOptions, handler) { <ide> this.error = null; <ide> this.stats = null; <ide> this.handler = handler; <add> this.callbacks = []; <ide> if(typeof watchOptions === "number") { <ide> this.watchOptions = { <ide> aggregateTimeout: watchOptions <ide> Wa...
1
Python
Python
fix datacollatorforwholewordmask again
4a53e8e9e405779cc9f01c11c4d866b3fb6738e2
<ide><path>src/transformers/data/data_collator.py <ide> def _collate_batch(examples, tokenizer): <ide> return result <ide> <ide> <add>def tolist(x: Union[List[Any], torch.Tensor]): <add> return x.tolist() if isinstance(x, torch.Tensor) else x <add> <add> <ide> @dataclass <ide> class DataCollatorForLanguageMode...
1
Javascript
Javascript
use asyncit here too
8f59693d839f11f8f792c4271648d9e83d4541ba
<ide><path>spec/git-repository-async-spec.js <ide> fdescribe('GitRepositoryAsync-js', () => { <ide> }) <ide> <ide> describe('@open(path)', () => { <del> it('repo is null when no repository is found', () => { <del> waitsForPromise(async () => { <del> repo = GitRepositoryAsync.open(path.join(temp.dir,...
1
Ruby
Ruby
fix set_pk_sequence and add a test for it
3dae34e217320324dd0db9953b9ba77c2419ab34
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb <ide> def set_pk_sequence!(table, value, pk = nil, sequence = nil) #:nodoc: <ide> <ide> if pk <ide> if sequence <del> quoted_sequence = quote_column_name(sequence) <add> quoted_...
2
Python
Python
fix wildcard imports
3ca611fe48f79518004ab98f2f82713469abc687
<ide><path>spacy/language_data/__init__.py <del>from .abbreviations import * <del>from .emoticons import * <ide> from .punctuation import * <del>from .tag_map import * <del>from .entity_rules import * <del>from .tokenizer_exceptions import * <add>from .tag_map import TAG_MAP <add>from .entity_rules import ENTITY_RULES ...
1
Ruby
Ruby
use stderr for header output
888c38480188ac8b1772e85e636ee33c8c9ed252
<ide><path>Library/Homebrew/dev-cmd/release-notes.rb <ide> def release_notes <ide> end <ide> end <ide> <del> puts "Release notes between #{previous_tag} and #{end_ref}:" <add> $stderr.puts "Release notes between #{previous_tag} and #{end_ref}:" <ide> puts output <ide> end <ide> end
1
Ruby
Ruby
introduce view renderer
b73576138529b1344a38f4e4b16c642f3510d514
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> def initialize(*) <ide> # <ide> # Override this method in a module to change the default behavior. <ide> def view_context <del> view_context_class.new(lookup_context, view_assigns, self) <add> view_context_class.new(view_renderer, vi...
5
Javascript
Javascript
remove debugging output
86523359e466eec6cfefa7549a9843c691927c21
<ide><path>src/animation/AnimationClip.js <ide> THREE.AnimationClip = function ( name, duration, tracks ) { <ide> this.tracks = tracks; <ide> this.duration = duration || 1; <ide> <del> // TODO: maybe only do these on demand, as doing them here could potentially slow down loading <add> // maybe only do these on deman...
5
PHP
PHP
convert password reminders to notifications
e23e05e9f949e0d21ad7d39f4e028e826e0328ef
<ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php <add><?php <add> <add>namespace Illuminate\Auth\Notifications; <add> <add>use Illuminate\Notifications\Notification; <add> <add>class ResetPassword extends Notification <add>{ <add> /** <add> * The password reset token. <add> * <add> * @var s...
8
Javascript
Javascript
fix comment about dns lookup test
1204400d6411694d08bde0c3c197c9a72b72f570
<ide><path>test/parallel/test-c-ares.js <ide> const dnsPromises = dns.promises; <ide> assert.strictEqual(res.family, 6); <ide> })().then(common.mustCall()); <ide> <del>// Try resolution without callback <del> <add>// Try resolution without hostname. <ide> dns.lookup(null, common.mustCall((error, result, addressType)...
1
Ruby
Ruby
pass stdinput to super
a56081d99ab056859679a92fb8f4a95e02bb6b5c
<ide><path>actionpack/lib/action_controller/integration.rb <ide> def url_for(options) <ide> <ide> private <ide> class MockCGI < CGI #:nodoc: <del> attr_accessor :stdinput, :stdoutput, :env_table <add> attr_accessor :stdoutput, :env_table <ide> <del> def initialize(env, input=n...
1
Python
Python
update data processors __init__
99a90e43d421369357815b21771f5211c2528667
<ide><path>pytorch_transformers/__init__.py <ide> <ide> from .data import (is_sklearn_available, <ide> InputExample, InputFeatures, DataProcessor, <del> glue_output_modes, glue_convert_examples_to_features, glue_processors) <add> glue_output_modes, glue_convert_ex...
4
Python
Python
add subdir parameter to dags reserialize command
4be5616a5b3ccc146316c651c4279e914c93740b
<ide><path>airflow/cli/cli_parser.py <ide> class GroupCommand(NamedTuple): <ide> "version of Airflow that you are running." <ide> ), <ide> func=lazy_load_command('airflow.cli.commands.dag_command.dag_reserialize'), <del> args=(ARG_CLEAR_ONLY,), <add> args=( <add> ARG...
4
Ruby
Ruby
use stty instead of tput to get terminal width
a9c83f14a749f6295daafc31440d0f74d1aa27e0
<ide><path>Library/Homebrew/utils/tty.rb <ide> def strip_ansi(string) <ide> end <ide> <ide> def width <del> `/usr/bin/tput cols`.strip.to_i <add> (`/bin/stty size`.split[1] || 80).to_i <ide> end <ide> <ide> def truncate(string)
1
Javascript
Javascript
add children.toarray to reactnative
7cbad9f53048ab5d19a8004df30ae621f1bfbd09
<ide><path>Libraries/ReactNative/ReactNative.js <ide> var ReactNative = { <ide> map: ReactChildren.map, <ide> forEach: ReactChildren.forEach, <ide> count: ReactChildren.count, <add> toArray: ReactChildren.toArray, <ide> only: onlyChild <ide> }, <ide> Component: ReactComponent,
1
Ruby
Ruby
require helpers so autoload is properly setup
d6f1291f48d2c7c1719fbeabbafbfa7c6e2f1dc6
<ide><path>actionpack/lib/sprockets/helpers/rails_helper.rb <del>require "action_view/helpers/asset_tag_helper" <add>require "action_view/helpers" <ide> <ide> module Sprockets <ide> module Helpers
1
Ruby
Ruby
allow more ttys
1cd75e4298be0b11185506cb16d67497d335f91c
<ide><path>Library/Homebrew/sandbox.rb <ide> class SandboxProfile <ide> (literal "/dev/random") <ide> (literal "/dev/zero") <ide> (regex #"^/dev/fd/[0-9]+$") <del> (regex #"^/dev/ttys?[0-9]*$") <add> (regex #"^/dev/tty[a-z0-9]*$") <ide> ) <ide> (deny file-...
1
Ruby
Ruby
fix pry deprecation warning on tab-completion
8fe649a4dce7ca14be48fbb066d9a47d848e31ea
<ide><path>activesupport/lib/active_support/deprecation/proxy_wrappers.rb <ide> def inspect <ide> <ide> # Don't give a deprecation warning on methods that IRB may invoke <ide> # during tab-completion. <del> delegate :hash, :instance_methods, :name, to: :target <add> delegate :hash, :instance_meth...
1
Ruby
Ruby
add bottle filenames method
82eee276e3cbd5ace72606273484022e69390334
<ide><path>Library/Homebrew/cmd/versions.rb <ide> def versions <ide> return versions <ide> end <ide> <add> def bottle_filenames branch='HEAD' <add> filenames = [] <add> rev_list(branch).each do |sha| <add> filename = formula_for_sha(sha) {|f| bottle_filename f } <add> unless filenames.include? f...
1
Python
Python
update heap.py (#726)
6f6510623c7250ebea78afbd3d6eab1bfe467ada
<ide><path>data_structures/heap/heap.py <ide> except NameError: <ide> raw_input = input # Python 3 <ide> <add>#This heap class start from here. <ide> class Heap: <del> def __init__(self): <add> def __init__(self): #Default constructor of heap class. <ide> self.h = [] <ide> self.currsize = 0 <ide> <ide>...
1
Python
Python
add test case for integer division
26a9e8134689af1b37b815f969283b42942ec194
<ide><path>numpy/core/tests/test_umath.py <ide> from numpy import zeros, ndarray, array, choose <ide> restore_path() <ide> <add>class test_division(NumpyTestCase): <add> def check_division_int(self): <add> # int division should return the floor of the result, a la Python <add> x = array([5, 10, 90, 10...
1
Javascript
Javascript
add standard define
aaaa526bc49351794e20da2940f48825d2f0c053
<ide><path>examples/js/nodes/materials/StandardNode.js <ide> THREE.StandardNode.prototype.build = function( builder ) { <ide> var material = builder.material; <ide> var code; <ide> <add> material.define( 'STANDARD' ); <ide> material.define( 'PHYSICAL' ); <ide> material.define( 'ALPHATEST', '0.0' ); <ide>
1
Ruby
Ruby
say it briefly
73213f4ca7e0db8d617abfdbbc79e6d31ccb5cc7
<ide><path>railties/helpers/application_controller.rb <ide> <ide> class ApplicationController < ActionController::Base <ide> helper :all # include all helpers, all the time <add> protect_from_forgery # See ActionController::RequestForgeryProtection for details <ide> <del> # See ActionController::RequestForgeryPro...
1
Python
Python
fix typo in pop documentation
553b26f8579a21a2d3644cb3bc5cb2ed8cedabc5
<ide><path>src/flask/ctx.py <ide> def pop(self, name, default=_sentinel): <ide> <ide> :param name: Name of attribute to pop. <ide> :param default: Value to return if the attribute is not present, <del> instead of raise a ``KeyError``. <add> instead of raising a ``KeyError``. <ide>...
1
Javascript
Javascript
improve performance caused by primordials
e1a63a9785ae1d74ae362dea1479d6f890e1d187
<ide><path>lib/_http_agent.js <ide> <ide> 'use strict'; <ide> <del>const { Object } = primordials; <add>const { <add> Object: { <add> setPrototypeOf: ObjectSetPrototypeOf, <add> keys: ObjectKeys, <add> values: ObjectValues <add> } <add>} = primordials; <ide> <ide> const net = require('net'); <ide> const E...
1
Python
Python
add bulk_insert_rows() for more performant inserts
bece6af289109de8be4c5aa97780806ae1db8275
<ide><path>airflow/hooks/oracle_hook.py <ide> def insert_rows(self, table, rows, target_fields = None, commit_every = 1000): <ide> cur.close() <ide> conn.close() <ide> logging.info('Done loading. Loaded a total of {i} rows'.format(**locals())) <add> <add> def bulk_insert_rows(self, table, row...
1
Text
Text
fix total downloads url
9f9a692f724c538e30701877f9073297856c5763
<ide><path>readme.md <ide> ## Laravel Framework (Kernel) <ide> <ide> [![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) <del>[![Total Downloads](https://poser.pugx.org/laravel/framework/downloads.svg)](https://packagist.org/packages/laravel/framework) <add>[![Total ...
1
Go
Go
remove layerstore.setos(), layerstore.getos()
c28a8e9cf7ffc9e0ac56987620d160326902ba11
<ide><path>layer/filestore_unix.go <del>//go:build !windows <del>// +build !windows <del> <del>package layer // import "github.com/docker/docker/layer" <del> <del>import "runtime" <del> <del>// setOS writes the "os" file to the layer filestore <del>func (fm *fileMetadataTransaction) setOS(os string) error { <del> retur...
4
Mixed
Javascript
resolve merge conflict in test_slave.html
f4b169ddba10e8bf59552a9813aef5a3fa58f7e8
<ide><path>fonts.js <ide> var Font = (function () { <ide> return array; <ide> }; <ide> <add> function int16(bytes) { <add> return (bytes[0] << 8) + (bytes[1] & 0xff); <add> }; <add> <add> function int32(bytes) { <add> return (bytes[0] << 24) + (bytes[1] << 16) + <add> (bytes[2] << 8) + (bytes[...
3
Javascript
Javascript
use internal/validators in event_target.js
5e6ae9aa5d228eb9b54f3ebde6a3d791dff3d0ed
<ide><path>lib/internal/event_target.js <ide> const { <ide> Object, <ide> Set, <ide> Symbol, <del> NumberIsNaN, <ide> SymbolToStringTag, <ide> } = primordials; <ide> <ide> const { <ide> codes: { <ide> ERR_INVALID_ARG_TYPE, <ide> ERR_EVENT_RECURSION, <del> ERR_OUT_OF_RANGE, <ide> ERR_MISSING_A...
1
Javascript
Javascript
fix proptypes test in ie10
7cd5e9b399b32daf3f4b1c494cfb4587067360eb
<ide><path>src/core/__tests__/ReactPropTypes-test.js <ide> describe('Component Type', function() { <ide> describe('Instance Types', function() { <ide> it("should warn for invalid instances", function() { <ide> function Person() {} <add> var personName = Person.name || '<<anonymous>>'; <add> var dateName = D...
1
Ruby
Ruby
add serializers for time, date and datetime
d9a5c7011f62dd771a2fa430090e068b1f9785f3
<ide><path>activejob/lib/active_job/serializers.rb <ide> module Serializers <ide> autoload :StandardTypeSerializer <ide> autoload :SymbolSerializer <ide> autoload :DurationSerializer <add> autoload :DateSerializer <add> autoload :TimeSerializer <add> autoload :DateTimeSerializer <ide> <ide> ma...
7
Python
Python
clarify dtype default for logspace and geomspace
e84f49e62d9d951af13a08fc103ef90bae368f6f
<ide><path>numpy/core/function_base.py <ide> def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, <ide> between samples. <ide> dtype : dtype, optional <ide> The type of the output array. If `dtype` is not given, the data type <del> is inferred from `start` and `stop`. ...
1
Javascript
Javascript
convert vars to let/const
ea9714807b0d694e6f67d52ccf7aac93439b16f7
<ide><path>packages/react-native-renderer/index.js <ide> <ide> 'use strict'; <ide> <del>var ReactNativeRenderer = require('./src/ReactNativeRenderer'); <add>const ReactNativeRenderer = require('./src/ReactNativeRenderer'); <ide> <ide> // TODO: decide on the top-level export form. <ide> // This is hacky but makes it ...
25
Javascript
Javascript
repair the fs/readfile benchmark
d9b0e4c729fedfe5369ada4229fd170bd6dc7e2f
<ide><path>benchmark/fs/readfile.js <ide> function main(conf) { <ide> data = null; <ide> <ide> var reads = 0; <add> var bench_ended = false; <ide> bench.start(); <ide> setTimeout(function() { <add> bench_ended = true; <ide> bench.end(reads); <ide> try { fs.unlinkSync(filename); } catch (e) {} <ide>...
1
Text
Text
apply a recommendation (fixes )
71ede8d52c4663520d9b8bbb43ce0852b2fe54ad
<ide><path>docs/03-Line-Chart.md <ide> var myLineChart = Chart.Line(ctx, { <ide> }); <ide> ``` <ide> <del>### Data Structure <add>### Dataset Structure <ide> <ide> The following options can be included in a line chart dataset to configure options for that specific dataset. <ide> <ide><path>docs/04-Bar-Chart.md <ide>...
6
Go
Go
remove unneeded import aliases
9060126639e9141082ab0edbdce921895058af88
<ide><path>client/interface.go <ide> import ( <ide> "time" <ide> <ide> "github.com/docker/docker/api/types" <del> containertypes "github.com/docker/docker/api/types/container" <add> "github.com/docker/docker/api/types/container" <ide> "github.com/docker/docker/api/types/events" <ide> "github.com/docker/docker/api/...
2
Ruby
Ruby
extract common formula helper
4adecd73b64de53913262870a4855e13ae085b81
<ide><path>Library/Homebrew/test/test_formula_spec_selection.rb <ide> require 'formula' <ide> <ide> class FormulaSpecSelectionTests < Test::Unit::TestCase <del> def formula(*args, &block) <del> @_f = Class.new(Formula, &block).new(*args) <del> end <del> <ide> def assert_spec_selected(spec) <ide> assert_equa...
3
Javascript
Javascript
handle bad length argument in constructor
f6bce20e5e4e1fb26b1a35661c278f0b65569900
<ide><path>lib/buffer.js <ide> SlowBuffer.prototype.slice = function(start, end) { <ide> }; <ide> <ide> <add>function coerce(length) { <add> // Coerce length to a number (possibly NaN), round up <add> // in case it's fractional (e.g. 123.456) then do a <add> // double negate to coerce a NaN to 0. Easy, right? <add...
2
Javascript
Javascript
replace css tag with js import
876cbbaf01cef39566e9a35e72e641f57a01f6e0
<ide><path>examples/with-loading/pages/_app.js <ide> import { useEffect } from 'react' <ide> import Link from 'next/link' <del>import Head from 'next/head' <ide> import { useRouter } from 'next/router' <ide> import NProgress from 'nprogress' <add>import '../public/nprogress.css' <ide> <ide> export default function App...
1
Ruby
Ruby
fix #scoped deprecations
1606bee64ade812af1ef5b231e41b44bebddd67f
<ide><path>activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb <ide> def test_class_names <ide> old = ActiveRecord::Base.store_full_sti_class <ide> <ide> ActiveRecord::Base.store_full_sti_class = false <del> post = Namespaced::Post.find_by_title( 'Great stuff', :include => :taggi...
4
Python
Python
add systemv amp, no more log message
2a09d3cdf05b189c08b7de3607f1be1f5d97f96a
<ide><path>glances/amps/glances_systemv.py <add># -*- coding: utf-8 -*- <add># <add># This file is part of Glances. <add># <add># Copyright (C) 2016 Nicolargo <nicolas@nicolargo.com> <add># <add># Glances is free software; you can redistribute it and/or modify <add># it under the terms of the GNU Lesser General Public ...
1
Python
Python
fix parser test
61a503a61195c465328fcf0f283ce64f923b5c55
<ide><path>spacy/tests/conftest.py <ide> def en_vocab(): <ide> <ide> <ide> @pytest.fixture <del>def en_parser(): <del> return util.get_lang_class('en').Defaults.create_parser() <add>def en_parser(en_vocab): <add> nlp = util.get_lang_class('en')(en_vocab) <add> return nlp.create_pipe('parser') <ide> <ide> <...
1
Javascript
Javascript
convert `src/display/svg.js` to es6 syntax
47d3620d5a2a90738f4fd6deebceed3d8df71bc2
<ide><path>src/display/svg.js <ide> * limitations under the License. <ide> */ <ide> /* globals __non_webpack_require__ */ <add>/* eslint no-var: error */ <ide> <ide> import { <ide> createObjectURL, FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, ImageKind, isNum, OPS, <ide> import { <ide> import { DOMSVGFactory } from './d...
1
Javascript
Javascript
improve reliability in http2-session-timeout
d2ffcac55db928e3b525c558259f69142521d435
<ide><path>test/sequential/test-http2-session-timeout.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <del>const h2 = require('http2'); <add>const http2 = require('http2'); <ide> <ide> const serverTimeout = common.platformTimeout(200); <del>const callTi...
1
Java
Java
fix a small typo in parallelflowable
ab0c59094d11142cea4fef70169f053e062d85ec
<ide><path>src/main/java/io/reactivex/parallel/ParallelFlowable.java <ide> * Abstract base class for Parallel publishers that take an array of Subscribers. <ide> * <p> <ide> * Use {@code from()} to start processing a regular Publisher in 'rails'. <del> * Use {@code runOn()} to introduce where each 'rail' shoud run o...
1
Ruby
Ruby
use placeholder for `type_condition` predicate
6a1a1e66ea7a917942bd8369fa8dbfedce391dab
<ide><path>activerecord/lib/active_record/inheritance.rb <ide> def type_condition(table = arel_table) <ide> sti_column = arel_attribute(inheritance_column, table) <ide> sti_names = ([self] + descendants).map(&:sti_name) <ide> <del> sti_column.in(sti_names) <add> predicate_builder...
1
Mixed
Go
add networkdb docs
05c05ea5e9d92d44f4581a183691e0aa3d34568f
<ide><path>libnetwork/docs/networkdb.md <add>NetworkDB <add>========= <add> <add>There are two databases used in libnetwork: <add> <add>- A persistent database that stores the network configuration requested by the user. This is typically the SwarmKit managers' raft store. <add>- A non-persistent peer-to-peer gossip-ba...
2
Javascript
Javascript
exclude the ripgrep module from the v8 snapshots
d35aef3bf0753fadb016b174be27083e6515d4a3
<ide><path>script/lib/generate-startup-snapshot.js <ide> module.exports = function (packagedAppPath) { <ide> requiredModuleRelativePath === path.join('..', 'node_modules', 'winreg', 'lib', 'registry.js') || <ide> requiredModuleRelativePath === path.join('..', 'node_modules', '@atom', 'fuzzy-native', 'li...
1
PHP
PHP
add missing return false
5e77fe839e1894f0137ccc9a54e8f2e4a3656153
<ide><path>lib/Cake/Error/BaseErrorHandler.php <ide> public function handleError($code, $description, $file = null, $line = null, $co <ide> } <ide> $this->_displayError($data, $debug); <ide> $this->_logError($log, $data); <add> return false; <ide> } <ide> <ide> /**
1
Python
Python
fix corner case with joining processes/queues
415b363eb8da243d42ee350f2aba981f338f46b6
<ide><path>airflow/jobs.py <ide> def _execute(self): <ide> self.logger.info("Starting {} scheduler jobs".format(len(jobs))) <ide> for j in jobs: <ide> j.start() <add> <add> while any(j.is_alive() for j in jobs): <add> while not tis_q....
1
Python
Python
add get_secure_random_string utility function
53a67432c963a5dd95c4f796a1888e287018764b
<ide><path>libcloud/test/test_utils.py <ide> from libcloud.utils.py3 import urlquote <ide> from libcloud.compute.types import Provider <ide> from libcloud.compute.providers import DRIVERS <add>from libcloud.utils.misc import get_secure_random_string <ide> <ide> <ide> WARNINGS_BUFFER = [] <ide> def test_unicode_urlquo...
2
Python
Python
use mse in stateful example
58ca064f9321ad4e6db09d9e8b22db4a3d8fc7dc
<ide><path>examples/stateful_lstm.py <ide> def gen_cosine_amp(amp=100, period=25, x0=0, xn=50000, step=1, k=0.0001): <ide> return_sequences=False, <ide> stateful=True)) <ide> model.add(Dense(1)) <del>model.compile(loss='rmse', optimizer='rmsprop') <add>model.compile(loss='mse', optimizer='...
1
Java
Java
remove outdated databufferfactory properties
03a997c9d4ce6815d3a07c4d4b20b3f18554ed7c
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java <ide> <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <del>import reactor.core.publisher.Flux; <ide> import reactor.core.publisher.Mono; <ide> <ide> import org.s...
5
Ruby
Ruby
begin documenting environment variables
db76a0f4cc3838658919570b3453edbcb9ed2fcd
<ide><path>Library/Homebrew/dev-cmd/test-bot.rb <ide> # --ci-pr: Shortcut for Homebrew pull request CI options. <ide> # --ci-testing: Shortcut for Homebrew testing CI options. <ide> # --ci-upload: Homebrew CI bottle upload. <add># <add># Influential environment variables include: <add>#...
1
Ruby
Ruby
use commands module
49dcbee99c46d92d65e9132a555ed3fc2865c1e6
<ide><path>Library/Homebrew/cmd/command.rb <ide> #: * `command` <cmd>: <ide> #: Display the path to the file which is used when invoking `brew` <cmd>. <ide> <add>require "commands" <add> <ide> module Homebrew <ide> def command <ide> abort "This command requires a command argument" if ARGV.empty? <ide> cm...
1
Ruby
Ruby
fix testfixtures autoload
3276286de5c6a28d1e32333e1dabbb0abced510c
<ide><path>activerecord/lib/active_record.rb <ide> module ActiveRecord <ide> autoload :Store <ide> autoload :Suppressor <ide> autoload :TestDatabases <del> autoload :TestFixtures <add> autoload :TestFixtures, "active_record/fixtures" <ide> autoload :Timestamp <ide> autoload :TouchLater <ide> autoload :Tra...
1
Javascript
Javascript
get draco version
22f2fae48a7b1f393529e2c4257abc0a9a3e08b9
<ide><path>examples/js/loaders/sea3d/SEA3DDraco.js <ide> SEA3D.GeometryDraco = function ( name, data, sea3d ) { <ide> var module = SEA3D.GeometryDraco.getModule(), <ide> dracoData = new Int8Array( data.concat( data.position, data.bytesAvailable ).buffer ); <ide> <add> //data.position += 5; // jump "DRACO" magic str...
1
Ruby
Ruby
fix filename case
56aec9494cbe76849140da5b2c4c33c2b42dbbef
<ide><path>Library/Homebrew/test/test_patching.rb <ide> def test_patch_array <ide> def patches <ide> [PATCH_URL_A] <ide> end <del> end.brew { assert_patched 'libexec/noop' } <add> end.brew { assert_patched 'libexec/NOOP' } <ide> end <ide> end <ide> <ide> def test_patch_hash <i...
1
Javascript
Javascript
remove unnnecessary test
4181cc962399cbce4d4b36a2f95bd6c696f168b1
<ide><path>packages/ember-views/tests/views/view/view_lifecycle_test.js <ide> QUnit.module("views/view/view_lifecycle_test - in render", { <ide> } <ide> }); <ide> <del>QUnit.skip("appendChild should work inside a template", function() { <del> run(function() { <del> view = EmberView.create({ <del> template(c...
1