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
Ruby
Ruby
improve documentation for hash#slice!
4fa6a5c4e02bf6c511ecda9db4fd61e51634fe06
<ide><path>activesupport/lib/active_support/core_ext/hash/slice.rb <ide> def slice(*keys) <ide> # Replaces the hash with only the given keys. <ide> # Returns a hash containing the removed key/value pairs. <ide> # <del> # { a: 1, b: 2, c: 3, d: 4 }.slice!(:a, :b) <del> # # => {:c=>3, :d=>4} <add> # hash =...
1
Text
Text
add small note about aufs layer limitation
d91d381856b7c91fa992c3cd1943f27c269219f2
<ide><path>docs/sources/userguide/dockerimages.md <ide> instructions have executed we're left with the `324104cde6ad` image <ide> (also helpfully tagged as `ouruser/sinatra:v2`) and all intermediate <ide> containers will get removed to clean things up. <ide> <add>> **Note:** <add>> Due to a AUFS limitation, an image ...
1
Ruby
Ruby
add test case for the 's default order contract
673cf4f13b08438bd1bd751420da778c38145df3
<ide><path>activerecord/test/cases/finder_test.rb <ide> def test_first_have_primary_key_order_by_default <ide> expected = topics(:first) <ide> expected.touch # PostgreSQL changes the default order if no order clause is used <ide> assert_equal expected, Topic.first <add> assert_equal expected, Topic.limit...
1
Text
Text
add license to the root directory
2d31404d0782ba809b39a49e4c45797ef1adde12
<ide><path>license.md <add>The MIT License (MIT) <add> <add>Copyright (c) 2016-present Zeit, Inc. <add> <add>Permission is hereby granted, free of charge, to any person obtaining a copy <add>of this software and associated documentation files (the "Software"), to deal <add>in the Software without restriction, including...
1
Python
Python
remove unused methods
3fea8482d4dce98b36350a0ac3f98fdd3c02e379
<ide><path>libcloud/compute/drivers/azure.py <ide> def _update_management_header(self, request): <ide> <ide> return request.headers <ide> <del> def send_request_headers(self, connection, request_headers): <del> # TODO - unused, remove <del> for name, value in request_headers: <del> ...
1
Text
Text
add missing types
28e18cfff0d491e14889935a64395cbbb5b666a6
<ide><path>doc/api/stream.md <ide> Return the value of `highWaterMark` passed when constructing this <ide> added: v9.4.0 <ide> --> <ide> <add>* {number} <add> <ide> This property contains the number of bytes (or objects) in the queue <ide> ready to be written. The value provides introspection data regarding <ide> the ...
1
Text
Text
update docs to point to new update task
3174b5f92a43e4bfdf4f833389b1ac819ac2cdc5
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> Rails generally stays close to the latest released Ruby version when it's releas <ide> <ide> TIP: Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails. Ruby Enterprise Edition has these fixed since the release of 1.8.7-2010.02. On the 1.9 front, Ruby ...
1
Python
Python
fix batch normalization
0debec1c11803f0f7b6f2c75e2c6762bfdc4a468
<ide><path>keras/layers/normalization.py <ide> def set_weights(self, weights): <ide> def get_output(self, train): <ide> X = self.get_input(train) <ide> if self.mode == 0: <del> m = K.mean(X, axis=0) <del> std = K.mean(K.square(X - m) + self.epsilon, axis=0) <del> std...
1
PHP
PHP
remove unused use statements
96e64ef66c69cc8e0c7960ea0c973b7f8b400db2
<ide><path>app/Console/Commands/Inspire.php <ide> <ide> use Illuminate\Console\Command; <ide> use Illuminate\Foundation\Inspiring; <del>use Symfony\Component\Console\Input\InputOption; <del>use Symfony\Component\Console\Input\InputArgument; <ide> <ide> class Inspire extends Command { <ide>
1
PHP
PHP
remove useless setup() method.
36c0af67504504a2df5398aeffce0da9ec58b1a8
<ide><path>tests/Integration/Mail/SendingMailWithLocaleTest.php <ide> protected function getEnvironmentSetUp($app) <ide> ]); <ide> } <ide> <del> protected function setUp(): void <del> { <del> parent::setUp(); <del> } <del> <ide> public function testMailIsSentWithDefaultLocale() <ide> ...
1
Python
Python
add client standalone mode and retry mechanism
3ece6f6dcb6ab14249c493c3b1a16ce1c848c29a
<ide><path>airflow/contrib/hooks/spark_submit_hook.py <ide> def _process_spark_submit_log(self, itr): <ide> """ <ide> Processes the log files and extracts useful information out of it. <ide> <add> If the deploy-mode is 'client', log the output of the submit command as those <add> are the ...
1
Javascript
Javascript
fix comment typo
0955aae47a8cb5ea39255b9beef6f01cd939c653
<ide><path>test/inspector-cli/test-inspector-cli-address.js <ide> function launchTarget(...args) { <ide> const childProc = spawn(process.execPath, args); <ide> return new Promise((resolve, reject) => { <ide> const onExit = () => { <del> reject(new Error('Child process exits unexpectly')); <add> reject...
1
Javascript
Javascript
add www.freecodecamp.org to trusted list
9c14e5846da7ec0497ba4f0b5bba644b46283bf1
<ide><path>server/server.js <ide> var trusted = [ <ide> 'https://freecodecamp.com', <ide> 'https://freecodecamp.org', <ide> '*.freecodecamp.org', <add> // NOTE(berks): add the following as the blob above was not covering www <add> 'http://www.freecodecamp.org', <ide> 'ws://freecodecamp.com/', <ide> 'ws://ww...
1
Ruby
Ruby
fix trailing whitespace
abc042cf9e350a67e855370705586e2744b815e2
<ide><path>actioncable/lib/rails/generators/channel/channel_generator.rb <ide> def create_channel_javascript_file <ide> end <ide> <ide> def import_channels_in_javascript_entrypoint <del> append_to_file "app/javascript/application.js", <add> append_to_file "app/javascript/application....
1
Python
Python
make parameter value more generic and adaptable
9ccb66226642ae8304d8b1a7a375d024e93db1bc
<ide><path>research/object_detection/exporter.py <ide> def freeze_graph_with_def_protos( <ide> if optimize_graph: <ide> logging.info('Graph Rewriter optimizations enabled') <ide> rewrite_options = rewriter_config_pb2.RewriterConfig( <del> layout_optimizer=1) <add> layout_optimizer=rewr...
1
PHP
PHP
remove use of routerexception
bae8a9b43a71e80f02b64dfedb6b65776c1388dc
<ide><path>lib/Cake/Routing/Router.php <ide> <?php <ide> /** <del> * Parses the request URL into controller, action, and parameters. <del> * <del> * PHP 5 <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.o...
1
Javascript
Javascript
allow three.box3 as an input of boxhelper
5d892789529562f2ab8f8f540ab6ca481aabe172
<ide><path>src/extras/helpers/BoxHelper.js <ide> THREE.BoxHelper.prototype.update = ( function () { <ide> <ide> return function ( object ) { <ide> <del> box.setFromObject( object ); <add> if ( object instanceof THREE.Box3 ) { <add> <add> box.copy( object ); <add> <add> } else { <add> <add> box.setFromObject( ...
1
Go
Go
fix bridge and br_netfilter modules loading
0c2293e0a07f85ce7a2e934b0a2f36b3937f2dd4
<ide><path>libnetwork/drivers/bridge/bridge.go <ide> import ( <ide> "fmt" <ide> "io/ioutil" <ide> "net" <add> "os" <ide> "os/exec" <ide> "path/filepath" <ide> "strconv" <add> "strings" <ide> "sync" <ide> "syscall" <ide> <ide> func newDriver() driverapi.Driver { <ide> <ide> // Init registers a new instance of ...
1
PHP
PHP
guess hasone or hasmany relationship
7d78de0b214398d5c34c34fd840eee7812fa22ca
<ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php <ide> public function has(self $factory, $relationship = null) <ide> { <ide> return $this->newInstance([ <ide> 'has' => $this->has->concat([new Relationship( <del> $factory, $relationship ?: Str::camel(Str::plural(c...
1
Python
Python
append build c libraries as dependencies of
2d596da7383cc30092e5812a103eb50b0fb9b16c
<ide><path>numpy/distutils/command/build_ext.py <ide> def run(self): <ide> ' overwriting build_info\n%s... \nwith\n%s...' \ <ide> % (libname, `clibs[libname]`[:300], `build_info`[:300])) <ide> clibs[libname] = build_info <add> local_clibs ...
1
Text
Text
add changelog entry for [ci skip]
fe8239e35ad025fa833a9e8307d4f2b9f7d2978e
<ide><path>actionpack/CHANGELOG.md <add>* Add request headers in the payload of the `start_processing.action_controller` <add> and `process_action.action_controller` notifications. <add> <add> *Gareth du Plooy* <add> <ide> * Add `action_dispatch_integration_test` load hook. The hook can be used to <ide> e...
1
Text
Text
realign a different indentation
c606946c5c5cf856b1c737b5f528f39e0966ec56
<ide><path>guide/english/java/arraylist/index.md <ide> Since ArrayList implements *List*, an ArrayList can be created using the followi <ide> ``` <ide> <ide> **Modify/update element at specified index** <del> ```java <del> variable_name.set(index_number, element); <add> <add> ```java <add> variable_name.set(in...
1
Text
Text
enclose a value of variable in back quote
4dbb8b307c57f6b82b42f47c6c79880b6f00bb2f
<ide><path>docs/docs/08-working-with-the-browser.md <ide> React provides lifecycle methods that you can specify to hook into this process. <ide> ### Updating <ide> <ide> * `componentWillReceiveProps(object nextProps)` is invoked when a mounted component receives new props. This method should be used to compare `this.p...
1
Text
Text
fix typos in docs
130ffa5fbf8751de4eeb4bfd2463f46242ecc50d
<ide><path>website/docs/api/data-formats.md <ide> process that are used when you run [`spacy train`](/api/cli#train). <ide> | `raw_text` | Optional path to a jsonl file with unlabelled text documents for a [rehearsal](/api/language#rehearse) step. Defaults to variable `${paths.raw}`. ~~Optional[str]~~ ...
1
Go
Go
remove obsolete comments
59d58352dfb66a12000d4b65f6c337c7936326e3
<ide><path>graph/graph.go <ide> func (graph *Graph) Get(name string) (*image.Image, error) { <ide> if err != nil { <ide> return nil, err <ide> } <del> // FIXME: return nil when the image doesn't exist, instead of an error <ide> img, err := image.LoadImage(graph.ImageRoot(id)) <ide> if err != nil { <ide> return ...
1
Python
Python
use tf.compat.v2 when accessing policies
a6f9945ac4352774f3219e379865720f7533ddd3
<ide><path>official/transformer/v2/transformer_main.py <ide> def __init__(self, flags_obj): <ide> # this. <ide> loss_scale = flags_core.get_loss_scale(flags_obj, <ide> default_for_fp16="dynamic") <del> policy = tf.keras.mixed_precision.experimental.Policy( <...
3
Python
Python
fix syntax error
f156db84444562a67491a6fd21e722bd5f8e88f4
<ide><path>libcloud/interface.py <ide> def __call__(id, name, driver): <ide> Set values for ivars, including any other requisite kwargs <ide> """ <ide> <del>class INodeLocation(Interface) <add>class INodeLocation(Interface): <ide> """ <ide> Physical Location of a node <ide> """
1
Text
Text
update changelog for 1.3.0-beta.2
44b940e88ddc6483baf1907496510d1d7fba8530
<ide><path>CHANGELOG.md <add><a name="1.3.0-beta.2"></a> <add># 1.3.0-beta.2 silent-ventriloquism (2014-03-14) <add> <add> <add>## Bug Fixes <add> <add>- **$$rAF:** always fallback to a $timeout in case native rAF isn't supported <add> ([7b5e0199](https://github.com/angular/angular.js/commit/7b5e019981f352add88be2984d...
1
Javascript
Javascript
allow chaining of whens and otherwise
15ecc6f3668885ebc5c7130dd34e00059ddf79ae
<ide><path>src/ng/route.js <ide> function $RouteProvider(){ <ide> * If the option is set to `false` and url in the browser changes, then <ide> * `$routeUpdate` event is broadcasted on the root scope. <ide> * <del> * @returns {Object} route object <add> * @returns {Object} self <ide> * <ide> ...
3
Ruby
Ruby
move cellar checks to module
91c5c15a488ad46bf111c7c97c68574a59ac6fac
<ide><path>Library/Homebrew/formula_cellar_checks.rb <add>module FormulaCellarChecks <add> def check_PATH bin <add> # warn the user if stuff was installed outside of their PATH <add> return unless bin.directory? <add> return unless bin.children.length > 0 <add> <add> bin = (HOMEBREW_PREFIX/bin.basename).re...
2
Python
Python
unify dot behavior in tf and theano
75bef59016a8a230823a04836e1ab6e5bf0079dc
<ide><path>keras/backend/tensorflow_backend.py <ide> def int_shape(x): <ide> <ide> <ide> def ndim(x): <del> return len(x.get_shape()) <add> dims = x.get_shape()._dims <add> if dims is not None: <add> return len(dims) <add> return None <ide> <ide> <ide> def dtype(x): <ide> def cast(x, dtype): <ide...
1
Javascript
Javascript
use stat.st_size only to read regular files
a6af70948924625566c48bfb381ce7a804f98520
<ide><path>lib/fs.js <ide> function readFileAfterStat(err, st) { <ide> if (err) <ide> return context.close(err); <ide> <del> var size = context.size = st.size; <add> var size = context.size = st.isFile() ? st.size : 0; <ide> <ide> if (size === 0) { <ide> context.buffers = []; <ide> fs.readFileSync = fun...
1
Javascript
Javascript
tweak the rules for the showcase
50e0d8e171b1d5e780eb870d10f402ea59670f2b
<ide><path>website/src/react-native/showcase.js <ide> /* <ide> Thousands of applications use React Native, so we can't list all of them <ide> in our showcase. To be useful to someone looking through the showcase, <del>either the app must be something that most readers would recognize, or the makers of the application m...
1
Javascript
Javascript
remove reference to three in modules
cdf0bba21a8b3a264f21dcea59dbca28b39905a5
<ide><path>examples/jsm/controls/MapControls.js <ide> var MapControls = function ( object, domElement ) { <ide> }; <ide> <ide> MapControls.prototype = Object.create( EventDispatcher.prototype ); <del>MapControls.prototype.constructor = THREE.MapControls; <add>MapControls.prototype.constructor = MapControls; <ide> <id...
3
Text
Text
add agent conference to conferences docs
09ce083c4cad39714208c36f84cf7cfcff0f691d
<ide><path>docs/community/conferences.md <ide> redirect_from: "docs/conferences.html" <ide> <ide> ## Upcoming Conferences <ide> <add>### Agent Conference 2017 <add>January 20-21 in Dornbirn, Austria <add> <add>[Website](http://agent.sh/) <add> <ide> ### ReactEurope 2017 <ide> May 18th & 19th in Paris, France <ide>
1
Text
Text
fix pr-url in repl.md
4ba1ddb046ed79118f357a9d47458bdf158dfa06
<ide><path>doc/api/repl.md <ide> Returns `true` if `keyword` is a valid keyword, otherwise `false`. <ide> added: v0.1.91 <ide> changes: <ide> - version: v10.0.0 <del> pr-url: https://github.com/nodejs/node/pull/v10.0.0 <add> pr-url: https://github.com/nodejs/node/pull/19187 <ide> description: The `REPL_MAGI...
1
Go
Go
move responsibility of ls/inspect to volume driver
d3eca4451d264aac564594fe46b8c097bd85a5cc
<ide><path>api/client/volume.go <ide> func (cli *DockerCli) CmdVolumeLs(args ...string) error { <ide> <ide> w := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0) <ide> if !*quiet { <add> for _, warn := range volumes.Warnings { <add> fmt.Fprintln(cli.err, warn) <add> } <ide> fmt.Fprintf(w, "DRIVER \tVOLUME NAME")...
30
Text
Text
put the needed import in one example
a5506610ad7b497dadbab1ccde471b3d13c614ff
<ide><path>docs/api-guide/versioning.md <ide> How you vary the API behavior is up to you, but one example you might typically <ide> <ide> The `reverse` function included by REST framework ties in with the versioning scheme. You need to make sure to include the current `request` as a keyword argument, like so. <ide> <...
1
Text
Text
remove an extra period
fe077b50c9ce65c4ac1cc718c34dda45cd24c6fe
<ide><path>guides/source/api_documentation_guidelines.md <ide> Use the article "an" for "SQL", as in "an SQL statement". Also "an SQLite databa <ide> English <ide> ------- <ide> <del>Please use American English (<em>color</em>, <em>center</em>, <em>modularize</em>, etc).. See [a list of American and British English sp...
1
Text
Text
use correct filename in example
6707819986796cbfeaafb7ac31e6f12cd3735b1e
<ide><path>README.md <ide> This is a web notification channel that allows you to trigger client-side web no <ide> streams: <ide> <ide> ```ruby <del># app/channels/web_notifications.rb <add># app/channels/web_notifications_channel.rb <ide> class WebNotificationsChannel < ApplicationCable::Channel <ide> def subscribe...
1
Python
Python
add a test for activity regulrisation
cf49d59aff3766c2cf78d17a78e2b821db902228
<ide><path>test/test_activity_reg.py <add>__author__ = 'mccolgan' <add> <add> <add>from keras.datasets import mnist <add>from keras.models import Sequential <add>from keras.layers.convolutional import Convolution2D <add>from keras.layers.core import Dense, Flatten, ActivityRegularization <add>from keras.utils import np...
1
Ruby
Ruby
improve test coverage for `#in` and `#not_in`
fefac0178c2d4815a2ceeebc2b7c4fea9ab6ed46
<ide><path>test/attributes/test_attribute.rb <ide> module Attributes <ide> end <ide> <ide> describe '#in' do <add> it 'can be constructed with a subquery' do <add> relation = Table.new(:users) <add> mgr = relation.project relation[:id] <add> mgr.where relation[:name].does_...
1
Python
Python
add get_cosine util function
bd20ec0a6adc8a8c267ee316815d727981c04fcb
<ide><path>spacy/tests/util.py <ide> from ..tokens import Doc <ide> from ..attrs import ORTH, POS, HEAD, DEP <ide> <add>import numpy <add> <ide> <ide> def get_doc(vocab, words=[], pos=None, heads=None, deps=None, tags=None, ents=None): <ide> """Create Doc object from given vocab, words and annotations.""" <ide> d...
1
Javascript
Javascript
add abort test for backtrace validation
64edd064b880ff8ce3bcc85d68e0100c8d987fa0
<ide><path>test/abort/test-abort-backtrace.js <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const cp = require('child_process'); <add> <add>if (common.isWindows) { <add> common.skip('Backtraces unimplemented on Windows.'); <add> return; <add>} <add> <add>if (...
1
Text
Text
translate tips 05..10
0b3fe6f47ec11b2e0e2c9b36b8e30ba55a01fb4e
<ide><path>docs/tips/05-maximum-number-of-jsx-root-nodes.ko-KR.md <add>--- <add>id: maximum-number-of-jsx-root-nodes-ko-KR <add>title: JSX 루트 노드의 최대 갯수 <add>layout: tips <add>permalink: maximum-number-of-jsx-root-nodes-ko-KR.html <add>prev: self-closing-tag-ko-KR.html <add>next: style-props-value-px-ko-KR.html <add>---...
6
Ruby
Ruby
maintain return value for recreate_database
78db16d440c610edeb8b2bb37233a5991caf4a29
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def empty_insert_statement_value <ide> # and creates it again using the provided +options+. <ide> def recreate_database(name, options = {}) <ide> drop_database(name) <del> create_database(name, optio...
1
PHP
PHP
apply fixes from styleci
2d150b59250f018bfe03d8d4a7acd4a58cc1c9d6
<ide><path>src/Illuminate/Console/GeneratorCommand.php <ide> public function handle() <ide> protected function qualifyClass($name) <ide> { <ide> $name = ltrim($name, '\\/'); <del> <add> <ide> $rootNamespace = $this->rootNamespace(); <ide> <ide> if (Str::startsWith($name, $rootNa...
6
Ruby
Ruby
add specs for simple in memory joins
d2bf57135f7293a1998a25bd828b0c470cf6b85c
<ide><path>spec/relations/join_spec.rb <add>require 'spec_helper' <add> <add>describe "Arel" do <add> before :all do <add> @owner = Arel::Model.build do |r| <add> r.engine Arel::Testing::Engine.new <add> <add> r.attribute :id, Arel::Attributes::Integer <add> end <add> <add> @thing = Arel::Model.buil...
1
Javascript
Javascript
remove async from void functions in page-loader
72a0c5578e249b5b4c8c76aebb02ebe9e9a1a7ec
<ide><path>packages/next/client/page-loader.js <ide> const relPrefetch = <ide> <ide> const hasNoModule = 'noModule' in document.createElement('script') <ide> <add>function normalizeRoute(route) { <add> if (route[0] !== '/') { <add> throw new Error(`Route name should start with a "/", got "${route}"`) <add> } <ad...
2
Go
Go
remove restart canceled error
fc2e2234c614379d21c16e32c1b82e7819fc3eac
<ide><path>libcontainerd/container_linux.go <ide> import ( <ide> <ide> "github.com/Sirupsen/logrus" <ide> containerd "github.com/docker/containerd/api/grpc/types" <add> "github.com/docker/docker/restartmanager" <ide> "github.com/opencontainers/specs/specs-go" <ide> "golang.org/x/net/context" <ide> ) <ide> func (ct...
2
Javascript
Javascript
remove leb128 opt
b310b9b45c7e8a60c40d13dae967f74e712ec224
<ide><path>lib/wasm/WebAssemblyGenerator.js <ide> const Template = require("../Template"); <ide> const WebAssemblyUtils = require("./WebAssemblyUtils"); <ide> const { RawSource } = require("webpack-sources"); <ide> <del>const { shrinkPaddedLEB128 } = require("@webassemblyjs/wasm-opt"); <ide> const { editWithAST, addWi...
1
Text
Text
add cla for suchow
85603f5b6a780f948acd11ce347764750c0e4247
<ide><path>contributors/suchow.md <add>Syllogism Contributor Agreement <add>=============================== <add> <add>This Syllogism Contributor Agreement (“SCA”) is based on the Oracle Contributor <add>Agreement. The SCA applies to any contribution that you make to any product or <add>project managed by us (the “proj...
1
Python
Python
make more args keyword-only
3d56a3f286485a9f1741286476f8872d8e3be1c8
<ide><path>spacy/language.py <ide> class Language: <ide> def __init__( <ide> self, <ide> vocab: Union[Vocab, bool] = True, <add> *, <ide> max_length: int = 10 ** 6, <ide> meta: Dict[str, Any] = {}, <ide> create_tokenizer: Optional[Callable[["Language"], Callable[[str],...
1
Python
Python
add jsonp support inside of jsonify
cb24646948a8c00c5b39f0d76bf75e153ac502b1
<ide><path>flask/helpers.py <ide> def get_current_user(): <ide> information about this, have a look at :ref:`json-security`. <ide> <ide> .. versionadded:: 0.2 <add> <add> .. versionadded:: 0.9 <add> If the argument ``padded`` true than the json object will pad for <add> JSONP calls like from j...
2
Ruby
Ruby
add xcode 4.5 to standardcompilers map
50efa98638db1484f21f10af3d4a05c568d3896c
<ide><path>Library/Homebrew/macos.rb <ide> def prefer_64_bit? <ide> "4.3.2" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318}, <ide> "4.3.3" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318}, <ide> "4.4" => {:llvm_build_version=>2336, :clang_vers...
1
Javascript
Javascript
improve error message for requiring system modules
7ddf1f569a809c746874d85527915ac68bc0510c
<ide><path>src/node.js <ide> node.Module.cache = {}; <ide> if (fullPath) { <ide> retrieveFromCache(loadPromise, fullPath, parent); <ide> } else { <del> loadPromise.emitError(); <add> loadPromise.emitError(new Error("Cannot find module '" + requestedPath + "'")); <id...
1
Python
Python
apply setupmethod consistently
a406c297aafa28074d11ec6fd27c246c70418cb4
<ide><path>src/flask/app.py <ide> def __init__( <ide> # the app's commands to another CLI tool. <ide> self.cli.name = self.name <ide> <del> def _is_setup_finished(self) -> bool: <del> return self.debug and self._got_first_request <add> def _check_setup_finished(self, f_name: str) -> None: ...
3
Ruby
Ruby
fix ruby 2.7 warnings on `middlewarestackproxy`
fedde239dcee256b417dc9bcfe5fef603bf0d952
<ide><path>actionpack/lib/action_dispatch/middleware/stack.rb <ide> def [](i) <ide> end <ide> <ide> def unshift(klass, *args, &block) <del> middlewares.unshift(build_middleware(klass, args, block)) <add> middlewares.unshift( <add> build_middleware(klass, args, block) do |app| <add> kl...
2
Go
Go
add bytessize in pkg/units
ae4689f14d59ece06bbd2a08a9687dc075e42d6d
<ide><path>pkg/units/size.go <ide> var ( <ide> sizeRegex = regexp.MustCompile(`^(\d+)([kKmMgGtTpP])?[bB]?$`) <ide> ) <ide> <del>var unitAbbrs = [...]string{"B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"} <add>var decimapAbbrs = []string{"B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"} <add>var binaryAbbrs =...
2
Go
Go
fix lint issue from rebase
83af60e6237b4227126dad1ef2f8a2016984ee90
<ide><path>api/types/types.go <ide> type ContainerProcessList struct { <ide> Titles []string <ide> } <ide> <del>// Info contains response of Remote API: <add>// Ping contains response of Remote API: <ide> // GET "/_ping" <ide> type Ping struct { <ide> APIVersion string
1
Text
Text
add changelog entry
1d48e5028493b7b628b9e7df0b74a40b44fc1b67
<ide><path>activesupport/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Make Module#delegate stop using `send` - can no longer delegate to private methods. *dasch* <add> <ide> * AS::Callbacks: deprecate `:rescuable` option. *Bogdan Gusiev* <ide> <ide> * Adds Integer#ordinal to get the ordinal...
1
Ruby
Ruby
improve bottle commit writing
d83ed0d793210bd692fe72830b8f3c0b0f41f5ab
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def merge <ide> <ide> if ARGV.include? '--write' <ide> f = Formula.factory formula_name <del> has_bottle_block = f.class.bottle.checksums.any? <add> update_or_add = nil <ide> <ide> inreplace f.path do |s| <del> if has_bottle_...
1
Java
Java
improve readability of body[inserters|extractors]
d77797f42c2da26286d5bb9681d6f2a0018792ce
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyExtractors.java <ide> import org.springframework.core.ParameterizedTypeReference; <ide> import org.springframework.core.ResolvableType; <ide> import org.springframework.core.io.buffer.DataBuffer; <del>import org.springframework.http.H...
2
Ruby
Ruby
remove an unused connection handler in a test
3c3eb40f8e1fb492c220ef5c5af3e67378a9e14c
<ide><path>activerecord/test/cases/connection_adapters/connection_handlers_multi_pool_config_test.rb <ide> class ConnectionHandlersMultiPoolConfigTest < ActiveRecord::TestCase <ide> <ide> def setup <ide> @handlers = { writing: ConnectionHandler.new } <del> @rw_handler = @handlers[:writing] <ide> ...
1
Java
Java
improve @sessionattributes support during redirect
ea05e0b1add86317c13997678aa01bfb73476487
<ide><path>spring-web/src/main/java/org/springframework/web/method/annotation/ModelFactory.java <ide> public static String getNameForReturnValue(Object returnValue, MethodParameter r <ide> * @throws Exception if creating BindingResult attributes fails <ide> */ <ide> public void updateModel(NativeWebRequest request...
3
Javascript
Javascript
add process no deprecation
6ae6383fdc40c1fe799a8ff600e60ed58366f798
<ide><path>test/parallel/test-child-process-no-deprecation.js <add>'use strict'; <add>const common = require('../common'); <add>process.noDeprecation = true; <add> <add>if (process.argv[2] === 'child') { <add> process.emitWarning('Something else is deprecated.', 'DeprecationWarning'); <add>} else { <add> // parent pr...
1
Python
Python
remove unnecessary comprehension
0eb5020fda46a6eceaa3652846598cb4ba34493b
<ide><path>airflow/executors/celery_executor.py <ide> def update_task_state(self, key: TaskInstanceKey, state: str, info: Any) -> None <ide> <ide> def end(self, synchronous: bool = False) -> None: <ide> if synchronous: <del> while any([task.state not in celery_states.READY_STATES for task in sel...
8
Python
Python
fix broken tests
44b5d6120341c5fb90a0b3022d09f9ad78d9f836
<ide><path>djangorestframework/tests/parsers.py <ide> def setUp(self): <ide> <ide> def test_parse(self): <ide> """ Make sure the `QueryDict` works OK """ <del> parser = FormParser(None) <add> parser = FormParser() <ide> <ide> stream = StringIO(self.string) <ide> (data, files)...
5
Python
Python
add not empty check to linalg.qr
1802219aa005d64520f0892fa9ee223f57cfb1ec
<ide><path>numpy/linalg/linalg.py <ide> def qr(a, mode='full'): <ide> """ <ide> a, wrap = _makearray(a) <ide> _assertRank2(a) <add> _assertNonEmpty(a) <ide> m, n = a.shape <ide> t, result_t = _commonType(a) <ide> a = _fastCopyAndTranspose(t, a)
1
Ruby
Ruby
use encode_with for marshalling
441118458d57011ee1b1f1dcfea558de462c6da9
<ide><path>activerecord/lib/active_record/base.rb <ide> def before_remove_const #:nodoc: <ide> reset_scoped_methods <ide> end <ide> <add> # Specifies how the record is loaded by +Marshal+. <add> # <add> # +_load+ sets an instance variable for each key in the hash it takes as input. <add> ...
2
Text
Text
create model card
c4bcb019062117216e34991ab257b33bd2b91ac8
<ide><path>model_cards/mrm8488/spanbert-large-finetuned-squadv1/README.md <add>--- <add>language: english <add>thumbnail: <add>--- <add> <add># SpanBERT large fine-tuned on SQuAD v1 <add> <add>[SpanBERT](https://github.com/facebookresearch/SpanBERT) created by [Facebook Research](https://github.com/facebookresearch) an...
1
Javascript
Javascript
remove this.type assignment
92a4d59c3221ada339177ca860570893766a6429
<ide><path>src/event.js <ide> jQuery.Event = function( src ) { <ide> } <ide> } <ide> <del> if ( !this.type ) { <del> this.type = src.type; <del> } <del> <ide> // Events bubbling up the document may have been marked as prevented <ide> // by a handler lower down the tree; reflect the correct value. <ide> ...
1
Text
Text
delete some space and unused char
61f1fd4bbb905990312962ceb589f0ede49f3d29
<ide><path>guide/english/android-development/core-components/index.md <del>--- <del>title: Android Core Components <del>--- <del>## Android core components <del>Core components are the essential elements contained in an Android app. Each of them has its own purpose and lifecycle, but not all of them are independent. Th...
1
Python
Python
use a better method to detect complex arrays
7c1435c11d8bc0d1a3a380bc541a46f75749dc52
<ide><path>numpy/polynomial/chebyshev.py <ide> def chebfit(x, y, deg, rcond=None, full=False, w=None): <ide> rcond = len(x)*np.finfo(x.dtype).eps <ide> <ide> # Determine the norms of the design matrix columns. <del> if lhs.dtype.char in np.typecodes['Complex']: <add> if issubclass(lhs.dtype.type, np....
6
Java
Java
introduce computeattribute() in attributeaccessor
1292947f7837c2716d6e0335698af450d4f12732
<ide><path>spring-core/src/main/java/org/springframework/core/AttributeAccessor.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use...
4
Ruby
Ruby
fix indentation and newlines in generated engine
f0f978a4f31930777d402965cad55086ebaa46ba
<ide><path>railties/lib/rails/generators/named_base.rb <ide> def indent(content, multiplier = 2) <ide> end <ide> <ide> def wrap_with_namespace(content) <del> content = indent(content) <add> content = indent(content).chomp <ide> "module #{namespace.name}\n#{content}\nend\n" <...
2
PHP
PHP
rename another trait
51a354f620fd89b667b62623bb9af6dee828a83c
<ide><path>lib/Cake/Model/Datasource/Database/Dialect/PostgresDialectTrait.php <ide> <ide> use Cake\Model\Datasource\Database\Expression\UnaryExpression; <ide> use Cake\Model\Datasource\Database\Query; <add>use Cake\Model\Datasource\Database\SqlDialectTrait; <ide> <del>trait PostgresDialectTrait { <add>trait Postgres...
3
Text
Text
add debugging guide to list of guides
f9c975bba73d5498ed61b44a1dff515ed37f72d2
<ide><path>docs/index.md <ide> * [Converting a TextMate Bundle](converting-a-text-mate-bundle.md) <ide> * [Converting a TextMate Theme](converting-a-text-mate-theme.md) <ide> * [Contributing](contributing.md) <add>* [Debugging](debugging.md) <ide> <ide> ### Advanced Topics <ide>
1
Javascript
Javascript
correct the order of the assertions
00d7b13a18dcf39cb7e7ace87c5c7b43d8024f41
<ide><path>lib/module.js <ide> Module.prototype.load = function(filename) { <ide> // Loads a module at the given file path. Returns that module's <ide> // `exports` property. <ide> Module.prototype.require = function(path) { <del> assert(util.isString(path), 'path must be a string'); <ide> assert(path, 'missing path...
2
Ruby
Ruby
add xcode 7.2.1
e84539135969e84a1b451f524a43f58ff42b6d37
<ide><path>Library/Homebrew/os/mac.rb <ide> def preferred_arch <ide> "7.1" => { :clang => "7.0", :clang_build => 700 }, <ide> "7.1.1" => { :clang => "7.0", :clang_build => 700 }, <ide> "7.2" => { :clang => "7.0", :clang_build => 700 }, <add> "7.2.1" => { :clang => "7.0", :clang_build => 700 }...
1
Javascript
Javascript
add unit tests utils
bb6a1aaafaf366a300178e93bd274f38252dbaa2
<ide><path>test/unit/SmartComparer.js <add>// Smart comparison of three.js objects. <add>// Identifies significant differences between two objects. <add>// Performs deep comparison. <add>// Comparison stops after the first difference is found. <add>// Provides an explanation for the failure. <add>function SmartComparer...
2
Python
Python
remove xfail on test #910
040751ad17c96a6e6bf2c0d70e7e789cbd8dd7d6
<ide><path>spacy/tests/regression/test_issue910.py <ide> def temp_save_model(model): <ide> <ide> <ide> <del>@pytest.mark.xfail <ide> @pytest.mark.models <ide> def test_issue910(train_data, additional_entity_types): <ide> '''Test that adding entities and resuming training works passably OK. <ide> def test_issue91...
1
Mixed
Ruby
ignore config.eager_load=true for rake
9cac69c602f57e397fe01d866cb24ce1781606d4
<ide><path>railties/CHANGELOG.md <add>* Fix `rake environment` to do not eager load modules <add> <add> *Paul Nikitochkin* <add> <ide> * Fix `rake notes` to look into `*.sass` files <ide> <ide> *Yuri Artemev* <ide><path>railties/lib/rails/application.rb <ide> def run_tasks_blocks(app) #:nodoc: <ide> r...
4
Javascript
Javascript
fix a small issue with the 'name' table
1037fdf2ada515ee46c6f63fe4e9d8f7a4df0a28
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> var nameTable = <ide> "\x00\x00" + // format <ide> string16(namesRecordCount) + // Number of names Record <del> string16(namesRecordCount * 12 + 6); // Storage <add> string16...
1
Javascript
Javascript
remove trailing white spaces from all source files
805e083c243655bfaed3c5431dc0f402cb27fcb4
<ide><path>example/personalLog/test/personalLogSpec.js <ide> describe('example.personalLog.LogCtrl', function() { <ide> beforeEach(function() { <ide> logCtrl = createNotesCtrl(); <ide> }); <del> <add> <ide> <ide> it('should initialize notes with an empty array', function() { <ide> expect(logCtrl.logs)....
4
Python
Python
add lowercase lemma to tokenizer exceptions
1d237664af28dd1685acdd11e94c9d1aa8cd1714
<ide><path>spacy/en/tokenizer_exceptions.py <ide> for word in ["who", "what", "when", "where", "why", "how", "there", "that"]: <ide> for orth in [word, word.title()]: <ide> EXC[orth + "'s"] = [ <del> {ORTH: orth}, <add> {ORTH: orth, LEMMA: word}, <ide> {ORTH: "'s"} <ide> ...
1
Javascript
Javascript
use performconcurrentworkonroot for "sync default"
ef37d55b68ddc45d465b84ea2ce30e8328297b2d
<ide><path>packages/react-reconciler/src/ReactFiberLane.new.js <ide> export function getNextLanes(root: FiberRoot, wipLanes: Lanes): Lanes { <ide> // Default priority updates should not interrupt transition updates. The <ide> // only difference between default updates and transition updates is that <ide> ...
9
Javascript
Javascript
intercept property changes instead of sets
27a6c57b0d15766b65a8ae1f74e1ab37e3493add
<ide><path>packages/ember-htmlbars/tests/integration/select_in_template_test.js <ide> function testValueBinding(templateString) { <ide> equal(selectEl.selectedIndex, 1, "The DOM is updated to reflect the new selection"); <ide> } <ide> <del>QUnit.skip("select element should correctly initialize and update selectedInd...
5
PHP
PHP
apply fixes from styleci
f49ea906ac371dc343c6d878f13796f08561cfb0
<ide><path>src/Illuminate/Session/DatabaseSessionHandler.php <ide> public function read($sessionId) <ide> */ <ide> protected function expired($session) <ide> { <del> return (isset($session->last_activity) && <del> $session->last_activity < Carbon::now()->subMinutes($this->minutes)->getTim...
1
Javascript
Javascript
combine ng-bind-html and ng-bind-html-unsafe
dae694739b9581bea5dbc53522ec00d87b26ae55
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> dest: 'build/angular-sanitize.js', <ide> src: util.wrap([ <ide> 'src/ngSanitize/sanitize.js', <del> 'src/ngSanitize/directive/ngBindHtml.js', <ide> 'src/ngSanitize/filter/linky.js' <ide> ], 'modul...
9
Python
Python
add possible solution for field validation error
2250ab6418d3cf99719ea7c5e3b3a861afa850bd
<ide><path>rest_framework/serializers.py <ide> def perform_validation(self, attrs): <ide> Run `validate_<fieldname>()` and `validate()` methods on the serializer <ide> """ <ide> for field_name, field in self.fields.items(): <del> try: <del> validate_method = getattr(sel...
1
Javascript
Javascript
replace erroneous comma with semicolon
3c649703c714f9654f8b6f47ecaa7f93c05a38f8
<ide><path>lib/cluster.js <ide> function workerInit() { <ide> cluster.worker.state = 'listening'; <ide> var address = obj.address(); <ide> message.act = 'listening'; <del> message.port = address && address.port || port, <add> message.port = address && address.port || port; <ide> send(m...
1
Ruby
Ruby
pass second tag as import
b14ff8d16395c2691bda2852afe5fbbdada54398
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_string_spec(spec, tags) <ide> if tags.empty? <ide> Dependency.new(spec, tags) <ide> elsif (tag = tags.first) && LANGUAGE_MODULES.include?(tag) <del> LanguageModuleDependency.new(tag, spec) <add> LanguageModuleDependency.new(tag,...
1
Ruby
Ruby
fix syntax error
e9468e3971b9c38dd6584fcaa25b3acc6d2ab630
<ide><path>activestorage/lib/active_storage/service/s3_service.rb <ide> def exist?(key) <ide> end <ide> end <ide> <del> def url(key, expires_in:, disposition:, filename:, disposition:, content_type:) <add> def url(key, expires_in:, filename:, disposition:, content_type:) <ide> instrument :url, ke...
1
PHP
PHP
refactor the package class
e3785ee7ff9a85132fc7595b6c1cca24144b4035
<ide><path>system/package.php <ide> public static function load($packages) <ide> { <ide> foreach ((array) $packages as $package) <ide> { <del> if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT)) require_once $bootstrap; <add> if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT...
1
Ruby
Ruby
use module#prepend instead of alias_method_chain
d5bddc1b2d3d794b2eddcb7309f41f87a8d665c1
<ide><path>activesupport/lib/active_support/core_ext/marshal.rb <del>require 'active_support/core_ext/module/aliasing' <del> <del>module Marshal <del> class << self <del> def load_with_autoloading(source) <del> load_without_autoloading(source) <add>module ActiveSupport <add> module MarshalWithAutoloading <add...
3
Text
Text
add typescript docs for ssg
b13892e0070993e4d014a70f6b424302fe583635
<ide><path>docs/api-reference/data-fetching/getInitialProps.md <ide> description: Enable Server-Side Rendering in a page and do initial data populati <ide> <ide> # getInitialProps <ide> <add>## Recommended: Use `getStaticProps` or `getServerSideProps` instead <add> <add>If you're using Next.js 9.3 or newer, you shoul...
3
Ruby
Ruby
install bundler gems if necessary
323fec503201eb66bf981f8fab034238db428aae
<ide><path>Library/Homebrew/utils/bottles.rb <ide> def formula_contents(bottle_file, <ide> end <ide> <ide> def add_bottle_stanza!(formula_contents, bottle_output) <add> Homebrew.install_bundler_gems! <ide> require "rubocop-ast" <ide> <ide> ruby_version = Version.new(HOMEBREW_REQUIRE...
1
Python
Python
add example for isscalar on strings
ae17d2c93dfac88cca9859d8b49490deb3991f41
<ide><path>numpy/core/numeric.py <ide> def isscalar(num): <ide> False <ide> >>> np.isscalar(False) <ide> True <add> >>> np.isscalar('numpy') <add> True <ide> <ide> """ <ide> if isinstance(num, generic):
1
Text
Text
add belugadb to airflow users
7ca45b252bbeeb2de223a835b8fa8b6b6200423c
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Azri Solutions](http://www.azrisolutions.com/) [[@userimack](https://github.com/userimack)] <ide> 1. [BandwidthX](http://www.bandwidthx.com) [[@dineshdsharma](https://github.com/dineshdsharma)] <ide> 1. [Bellhops](https://github.com/bellhops) ...
1