content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Python
Python
introduce ignore_depends_on_past parameters
e290804d9d23af3451de22f35f834b0e9e90f311
<ide><path>airflow/bin/cli.py <ide> def backfill(args, dag=None): <ide> donot_pickle=(args.donot_pickle or <ide> conf.getboolean('core', 'donot_pickle')), <ide> ignore_dependencies=args.ignore_dependencies, <add> ignore_first_depends_on_past=args.ignore_first...
4
Ruby
Ruby
install tap if needed."
e10ade758d7937b9f713c7d4f1c7c95d2f2b6721
<ide><path>Library/Homebrew/formulary.rb <ide> def get_formula(spec, alias_path: nil) <ide> end <ide> <ide> def load_file <del> tap.install unless tap.installed? <del> <ide> super <ide> rescue MethodDeprecatedError => e <ide> e.issues_url = tap.issues_url || tap.to_s <ide><path>Library/Hom...
2
Text
Text
update upgrad guide
a297fe838946f1412e61647797df78eb5b24b267
<ide><path>upgrade.md <ide> <ide> ## Upgrading From 4.0 to 4.1 <ide> <del>- Update `composer.json` to require `"laravel/framework": "4.1.*"` <add>- Update `composer.json` to require `"laravel/framework": "4.1.*"` <ide> - `composer update`. <ide> - Replace `public/index.php`, `artisan.php`. <ide> - Add new `expire_on...
1
Javascript
Javascript
fix dev mode
deb94f6f4aa414e9dad32c20e8dca38bc1c142cf
<ide><path>static/index.js <ide> let blobStore = null <ide> let devMode = false <ide> let useSnapshot = false <del> let requireFunction = null <ide> <ide> window.onload = function () { <ide> try { <ide> setupAtomHome() <ide> devMode = getWindowLoadSettings().devMode || !getWindowLoadSettings()...
1
Go
Go
fix decode data loss when using int64 in json
0aa250bd60e472dadfd8e9e1f90465e041b03983
<ide><path>engine/env.go <ide> func (decoder *Decoder) Decode() (*Env, error) { <ide> // is returned. <ide> func (env *Env) Decode(src io.Reader) error { <ide> m := make(map[string]interface{}) <del> if err := json.NewDecoder(src).Decode(&m); err != nil { <add> d := json.NewDecoder(src) <add> // We need this or we'll ...
2
PHP
PHP
improve static analyse
6cbf5c9e220a82fce5e1dc1740fdbcdb0ce47717
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function select($columns = ['*']) <ide> /** <ide> * Add a subselect expression to the query. <ide> * <del> * @param \Closure|\Illuminate\Database\Query\Builder|string $query <add> * @param \Closure|$this|string $query <ide> ...
1
PHP
PHP
add tests for i18nshell option parser
d26703758a6e77fabf0edfe61ff5362bbc90d3e5
<ide><path>tests/TestCase/Shell/I18nShellTest.php <ide> public function tearDown() <ide> <ide> $deDir = $this->localeDir . 'de_DE' . DS; <ide> <del> unlink($this->localeDir . 'default.pot'); <del> unlink($this->localeDir . 'cake.pot'); <del> <del> unlink($deDir . 'default.po'); <del> ...
1
Text
Text
fix typos "witht" and "spaguetti"
4f4100b00a36ce743a11f952a484b7d064a6d81e
<ide><path>guide/english/cplusplus/clean-code-guidelines/index.md <ide> int cucumber; // global variable "cucumber" <ide> ## Using goto, continue, etc. <ide> <ide> This is an usual discussion among programmers, just like global variables, these types of statements are usually considered bad practice. <del>They are con...
1
Python
Python
fix integration test
fe35050a8f18dc52304aa8da4e463eececa25240
<ide><path>tests/integration_tests/applications_test.py <ide> def _test_application_basic(app, last_dim=1000): <ide> def _test_application_notop(app, last_dim): <ide> output_shape = _get_output_shape( <ide> lambda: app(weights=None, include_top=False)) <del> assert output_shape == (None, None, None, last...
1
Python
Python
improve variable names in pty_helper.py
971915e89f1106444453eba39263ade92b3ed598
<ide><path>test/pseudo-tty/pty_helper.py <ide> def pipe(sfd, dfd): <ide> # Make select() interruptable by SIGCHLD. <ide> signal.signal(signal.SIGCHLD, lambda nr, _: None) <ide> <del> master_fd, slave_fd = pty.openpty() <del> assert master_fd > STDIN <add> parent_fd, child_fd = pty.openpty() <add> assert parent...
1
Python
Python
add some comments to the code
237ea79464741350d11b0018e982881a0df24323
<ide><path>libcloud/storage/drivers/s3.py <ide> def _headers_to_object(self, object_name, container, headers): <ide> <ide> extra = {} <ide> <add> # Not all the S3 compatible implementations return this header, see <add> # https://github.com/apache/libcloud/pull/1695 for details <ide> if ...
1
Javascript
Javascript
send user instead of req.user
73d26e4a7f57d66bf5733ae3537aebdfecae71fd
<ide><path>config/passport.js <ide> passport.use('tumblr', new OAuthStrategy({ <ide> User.findById(req.user._id, function(err, user) { <ide> user.tokens.push({ kind: 'tumblr', token: token, tokenSecret: tokenSecret }); <ide> user.save(function(err) { <del> done(err, req.user); <add> done(e...
1
Python
Python
move path stuff into a separate function
2be54aa47c60ecebc8f759b8a48933927422a503
<ide><path>libcloud/pricing.py <ide> 'storage': {} <ide> } <ide> <add>def get_pricing_file_path(file_path=None): <add> pricing_directory = os.path.dirname(os.path.abspath(__file__)) <add> pricing_file_path = pjoin(pricing_directory, PRICING_FILE_PATH) <add> <add> return pricing_file_path <add> <ide> def g...
1
Javascript
Javascript
improve handling of built-in named parsers
74b04c9403af4fc7df5b6420f22c9f45a3e84140
<ide><path>src/ng/directive/input.js <ide> function createDateParser(regexp, mapping) { <ide> <ide> function createDateInputType(type, regexp, parseDate, format) { <ide> return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) { <del> badInputChecker(scope, element, attr, ctrl...
4
Text
Text
remove link to forums in readme
f5201e3ca000acb44a318d3157b7628779fe5e6b
<ide><path>README.md <ide> ## Spring Framework <ide> The Spring Framework provides a comprehensive programming and configuration <del>model for modern Java-based enterprise applications - on any kind of deployment <add>model for modern Java-based enterprise applications -- on any kind of deployment <ide> platform. A ke...
1
Javascript
Javascript
add api docs for observeactivetexteditor(callback)
14d8eccc6e5c7adff28888c338dda1086af2a556
<ide><path>src/workspace.js <ide> module.exports = class Workspace extends Model { <ide> return this.onDidChangeActivePaneItem(callback) <ide> } <ide> <add> // Essential: Invoke the given callback with the current active text editor <add> // (if any), with all future active text editors, and when there is no l...
1
PHP
PHP
remove old file
318e39278831a9d8f95b9d1ebfa3cc9cf8c7fd82
<ide><path>src/Illuminate/Foundation/Console/Optimize/config.php <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Foundation/Providers/FoundationServiceProvider.php', <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Foundation/Providers/EventServiceProvider.php', <ide> $basePath.'/vendor/l...
1
Ruby
Ruby
fix documentation for mattr_accessor methods
b864d887501d249b085db7ec686f4e266d301b8a
<ide><path>activesupport/lib/active_support/core_ext/module/attribute_accessors.rb <ide> class Module <ide> # include HairColors <ide> # end <ide> # <del> # Person.hair_colors # => [:brown, :black, :blonde, :red] <add> # Person.new.hair_colors # => [:brown, :black, :blonde, :red] <ide> def mattr_rea...
1
Text
Text
fix typo in dockervolumes.md
40dc0c4861df0e087ffe43c416176a58f574e641
<ide><path>docs/userguide/dockervolumes.md <ide> restore testing using your preferred tools. <ide> <ide> ## Important tips on using shared volumes <ide> <del>Multiple containers can also share one or more data volumes. However, multiple containers writing to a single shared volume can cause data corruption. Make sure...
1
Javascript
Javascript
remove stupid suggestion in todo
7c1054cd099831c5806f2e330441664a8f403def
<ide><path>packages/ember-runtime/lib/computed/reduce_computed.js <ide> DependentArraysObserver.prototype = { <ide> Ember.run.once(this, 'flushChanges'); <ide> }, <ide> <del> // TODO: it probably makes more sense to remove the item during `willChange` <del> // and add it back (with the new value) during `didCh...
1
Ruby
Ruby
drop a conditional by always assigning
a1d7d65f0a21215851e45639ef7d0df35993ecaa
<ide><path>actionpack/lib/action_dispatch/middleware/params_parser.rb <ide> def initialize(app, parsers = {}) <ide> end <ide> <ide> def call(env) <del> if params = parse_formatted_parameters(env) <del> env["action_dispatch.request.request_parameters"] = params <del> end <add> default = en...
1
PHP
PHP
fix failing tests
b3eca7b79d41853812cff20bcbd3ccb00492f9d3
<ide><path>Test/TestCase/View/Helper/StringTemplateTraitTest.php <ide> public function testInitStringTemplates() { <ide> <ide> $result = $this->Template->templates(null); <ide> $this->assertEquals($result, [ <add> 'attribute' => '{{name}}="{{value}}"', <add> 'compactAttribute' => '{{name}}="{{value}}"', <ide> ...
1
Ruby
Ruby
use the right assetions to better error messages
af878151dbf93fae647ec682d96c0caaeb9a81f1
<ide><path>actionpack/test/controller/parameters/parameters_permit_test.rb <ide> def walk_permitted(params) <ide> test "to_h returns converted hash on permitted params" do <ide> @params.permit! <ide> <del> assert @params.to_h.is_a? ActiveSupport::HashWithIndifferentAccess <del> assert_not @params.to_h.is_a...
1
Ruby
Ruby
convert install test to spec
cd4705b7bca5f266907ea6424d721190617edbcd
<add><path>Library/Homebrew/cask/spec/cask/cli/install_spec.rb <del><path>Library/Homebrew/cask/test/cask/cli/install_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::CLI::Install do <ide> it "allows staging and activation of multiple Casks at once" do <ide> shutup do <ide>...
2
Ruby
Ruby
remove more skip
78bac468e6ac0c97ff81c15fe81c5a5a99c1c177
<ide><path>activerecord/test/cases/migration/index_test.rb <ide> def test_add_index <ide> end <ide> end <ide> <del> def test_add_partial_index <del> skip 'only on pg' unless current_adapter?(:PostgreSQLAdapter) <add> if current_adapter?(:PostgreSQLAdapter) <add> def test_add_parti...
4
PHP
PHP
apply fixes from styleci
4f7b2760aefea06d4860af6ee2b0d52b2e93b78b
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> public function assertOk() <ide> { <ide> PHPUnit::assertTrue( <ide> $this->isOk(), <del> 'Response status code [' . $this->getStatusCode() . '] does match expected 200 status code.' <add> 'Response status c...
1
Javascript
Javascript
increase highwatermark on large reads
8c44869f1dc2cdc7337d5a2a4f64e10494b0fb2f
<ide><path>lib/_stream_readable.js <ide> function howMuchToRead(n, state) { <ide> if (n <= 0) <ide> return 0; <ide> <add> // If we're asking for more than the target buffer level, <add> // then raise the water mark. <add> if (n > state.highWaterMark) <add> state.highWaterMark = n; <add> <ide> // don't ha...
2
Javascript
Javascript
add support for checkboxes printing
cb60523a15231d6bab9eecdc559c98fa13dc2b88
<ide><path>src/core/annotation.js <ide> class AnnotationFactory { <ide> * instance. <ide> */ <ide> static create(xref, ref, pdfManager, idFactory) { <del> return pdfManager.ensure(this, "_create", [ <del> xref, <del> ref, <del> pdfManager, <del> idFactory, <del> ]); <add> return p...
3
Mixed
Go
remove execution driver
1fb1136fecfd761300a38f64ac9178979cc0b270
<ide><path>api/client/system/info.go <ide> func runInfo(dockerCli *client.DockerCli) error { <ide> fmt.Fprintf(dockerCli.Out(), "%s: %s\n", pair[0], pair[1]) <ide> } <ide> } <del> ioutils.FprintfIfNotEmpty(dockerCli.Out(), "Execution Driver: %s\n", info.ExecutionDriver) <ide> ioutils.FprintfIfNotEmpty(dockerCli....
3
Python
Python
fix typo in docs
6e1b72096d5ae1e2cc4d8592ff8271b62548d9cf
<ide><path>src/flask/app.py <ide> def handle_http_exception( <ide> <ide> .. versionchanged:: 1.0 <ide> Exceptions are looked up by code *and* by MRO, so <del> ``HTTPExcpetion`` subclasses can be handled with a catch-all <add> ``HTTPException`` subclasses can be handled with a ...
1
Python
Python
convert resnet model to use monitored_session
931c70a1b8c53d3a93dcec3772ac4c27e18ae3e7
<ide><path>resnet/cifar_input.py <ide> def build_input(dataset, data_path, batch_size, mode): <ide> # image = tf.image.random_brightness(image, max_delta=63. / 255.) <ide> # image = tf.image.random_saturation(image, lower=0.5, upper=1.5) <ide> # image = tf.image.random_contrast(image, lower=0.2, upper=1.8) ...
3
Mixed
Javascript
add theme to styled-components example
8cdd539f98ee30ada96ecc6b60c46417d69ea1bc
<ide><path>examples/with-styled-components/README.md <ide> now <ide> <ide> This example features how you use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then ...
3
Text
Text
remove references to textcat spans
792aa7b6ab48ad40254102e5730c420e36822a70
<ide><path>website/docs/api/doc.md <ide> The L2 norm of the document's vector representation. <ide> | `mem` | `Pool` | The document's local memory heap, for all C data it owns. ...
2
Text
Text
remove note about django 1.3
5b071ab35e9f3b1d3f06e90741ded0e10e8a1651
<ide><path>docs/api-guide/filtering.md <ide> For more details on using filter sets see the [django-filter documentation][djan <ide> * By default filtering is not enabled. If you want to use `DjangoFilterBackend` remember to make sure it is installed by using the `'DEFAULT_FILTER_BACKENDS'` setting. <ide> * When using ...
1
Ruby
Ruby
fix failing appcast check
a793bc500cf5f4c00fb37e15688b7dc6ade1e1a3
<ide><path>Library/Homebrew/cask/audit.rb <ide> def check_appcast_contains_version <ide> return if cask.appcast.must_contain == :no_check <ide> <ide> appcast_stanza = cask.appcast.to_s <del> appcast_contents, = curl_output("--compressed", "--user-agent", HOMEBREW_USER_AGENT_FAKE_SAFARI, "--location", ...
1
Java
Java
fix sniff task warnings
71b942698de314cc0ebe0a235188029675922349
<ide><path>spring-context/src/main/java/org/springframework/scheduling/concurrent/ScheduledExecutorFactoryBean.java <ide> public void setExposeUnconfigurableExecutor(boolean exposeUnconfigurableExecutor <ide> <ide> <ide> @Override <add> @UsesJava7 <ide> protected ExecutorService initializeExecutor( <ide> ThreadF...
5
Text
Text
fix broken link in ``dev/refreshing_ci_cache.md``
f222aade58b697550aedfd33b0773749ba71834c
<ide><path>dev/REFRESHING_CI_CACHE.md <ide> merges to `main` branch have separate maintenance step that take care about refr <ide> used to speed up our builds and to speed up rebuilding of [Breeze](../BREEZE.rst) images for development <ide> purpose. This is all happening automatically, usually: <ide> <del>* The lates...
1
PHP
PHP
add tests to translatebehaviorshadowtabletest for
c1eaa40453d9251fb4bd3199d5b48b239403f858
<ide><path>tests/TestCase/ORM/Behavior/TranslateBehaviorShadowTableTest.php <ide> public function testAllowEmptyFalse() <ide> $this->assertEmpty($noFra); <ide> } <ide> <add> /** <add> * Tests adding new translation to a record with a missing translation <add> * <add> * @return void <add> ...
2
Text
Text
fix the chinese document of java
53d9d7f3e30f0f9c1a9397384aa0dd8f79f24cdd
<ide><path>guide/chinese/java/index.md <ide> --- <ide> title: Java <del>localeTitle: Java的 <add>localeTitle: Java <ide> --- <ide> **什么是Java?** <ide> <ide> Java有大量[文档记录](https://docs.oracle.com/javase/8/docs/) ,因为它 <ide> <ide> 此外,这里是Java编码的免费IDE列表: <ide> <del>* [NetBeans的](https://netbeans.org/) <add>* [NetBeans]...
1
Javascript
Javascript
fix constructor call in crypto streams
fed8cff1d0170bb6558da0e7d143599e7c37a47f
<ide><path>lib/crypto.js <ide> function LazyTransform(options) { <ide> } <ide> util.inherits(LazyTransform, stream.Transform); <ide> <del>['read', 'write', 'end'].forEach(function(action, i, actions) { <add>var transformMethods = ['read', 'write', 'end', 'pipe', 'unpipe', <add> 'setEncoding', 'pause', 'resume']; <add...
2
Java
Java
remove resourceservlet deprecated in 4.3.x
132022861e635736e2d4ab0f95247ad10cc39cc0
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/ResourceServlet.java <del>/* <del> * Copyright 2002-2017 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> *...
1
Python
Python
enable defaultdatacollator class
3e8761ab8077e3bb243fe2f78b2a682bd2257cf1
<ide><path>src/transformers/data/data_collator.py <ide> def default_data_collator(features: List[InputDataClass], return_tensors="pt") - <ide> class DefaultDataCollator(DataCollatorMixin): <ide> return_tensors: str = "pt" <ide> <add> def __call__(self, features: List[Dict[str, Any]], return_tensors=None) -> Dic...
1
Javascript
Javascript
add any function
2878c1d0d48e02204c69d37afb7eb608d22a7039
<ide><path>src/js/event-target.js <ide> EventTarget.prototype.removeEventListener = EventTarget.prototype.off; <ide> * The function to be called once for each event name. <ide> */ <ide> EventTarget.prototype.one = function(type, fn) { <del> // Remove the addEventListener alialing Events.on <add> // Remove th...
5
Go
Go
add info struct for v1.24
667315576fac663bd80bbada4364413692e57ac6
<ide><path>api/server/router/system/system_routes.go <ide> import ( <ide> "github.com/docker/docker/api/types/registry" <ide> timetypes "github.com/docker/docker/api/types/time" <ide> "github.com/docker/docker/api/types/versions" <add> "github.com/docker/docker/api/types/versions/v1p24" <ide> "github.com/docker/doc...
2
Ruby
Ruby
use assert_match for exception messages
bb15edf524144480257755196e87a41f9d73d77d
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def app; APP end <ide> message = "No route matches #{url.inspect}, possible unmatched constraints: #{missing.inspect}" <ide> <ide> error = assert_raises(ActionController::UrlGenerationError, message) { product_path(id: nil) } <del> assert_equal messa...
1
Ruby
Ruby
allow access to lock directory inside tests
b7ea9e18306ec0e34b8f3d9bdffba68ee0b3ee7c
<ide><path>Library/Homebrew/dev-cmd/test.rb <ide> def test <ide> sandbox.allow_write_log(f) <ide> sandbox.allow_write_xcode <ide> sandbox.allow_write_path(HOMEBREW_PREFIX/"var/cache") <add> sandbox.allow_write_path(HOMEBREW_PREFIX/"var/homebrew/locks") <ide> sa...
1
Go
Go
remove worthless iptables test
58e011595e4c518a38ec27716585177faa969f72
<ide><path>integration/iptables_test.go <del>package docker <del> <del>import ( <del> "github.com/dotcloud/docker/pkg/iptables" <del> "os" <del> "testing" <del>) <del> <del>// FIXME: this test should be a unit test. <del>// For example by mocking os/exec to make sure iptables is not actually called. <del> <del>func Tes...
1
Python
Python
fix loss masking tests
ae4219e6b13fbe666d4ad5c34ac3cfa86355d8df
<ide><path>tests/auto/test_loss_masking.py <ide> import numpy as np <add>import unittest <ide> from keras.models import Sequential <ide> from keras.layers.core import TimeDistributedDense, Masking <ide> <ide> <del>def test_cost_masking(): <del> X = np.array( <del> [[[1, 1], [2, 1], [3, 1], [5, 5]], <del> ...
1
Javascript
Javascript
apply null as `this` for util.format
0903b6d8a8b63075ff7f2efae8a1922542439728
<ide><path>lib/console.js <ide> function Console(stdout, stderr) { <ide> } <ide> <ide> Console.prototype.log = function() { <del> this._stdout.write(util.format.apply(this, arguments) + '\n'); <add> this._stdout.write(util.format.apply(null, arguments) + '\n'); <ide> }; <ide> <ide> <ide> Console.prototype.info = C...
1
Javascript
Javascript
remove an unused argument
f165e08b1696973a24b0ea57a197dbd0861b95dd
<ide><path>src/Angular.js <ide> function bootstrap(element, modules, config) { <ide> }]); <ide> modules.unshift('ng'); <ide> var injector = createInjector(modules, config.strictDi); <del> injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', '$animate', <del> function(scope, eleme...
1
Ruby
Ruby
add readonly support for relations
7cce95b25ace33e04526d4490e487a080c1f9b96
<ide><path>activerecord/lib/active_record/base.rb <ide> def default_select(qualified) <ide> <ide> def construct_finder_arel(options = {}, scope = scope(:find)) <ide> # TODO add lock to Arel <del> arel_table(options[:from]). <add> relation = arel_table(options[:from]). <ide> ...
3
Python
Python
remove uses of localstack
82c2e0366ce6b74a3786a64631ce58b85b3a7d4e
<ide><path>src/flask/app.py <ide> from .ctx import _AppCtxGlobals <ide> from .ctx import AppContext <ide> from .ctx import RequestContext <del>from .globals import _app_ctx_stack <del>from .globals import _request_ctx_stack <add>from .globals import _cv_app <add>from .globals import _cv_req <ide> from .globals import g...
13
Javascript
Javascript
support semver v2 version number format
7b203fcff6dd01da0bebb43130a0e861c05c4e9c
<ide><path>lib/grunt/utils.js <ide> module.exports = { <ide> if (version) return version; <ide> <ide> var package = JSON.parse(fs.readFileSync('package.json', 'UTF-8')); <del> // TODO(brian): change `(-|rc)` to `-` in the regex below after bower <del> // fixes this issue: https://github.com/bower/bower/i...
1
Javascript
Javascript
add some missing attributes
203dba271b6128f03c99b1ce2f573a316adb4e4e
<ide><path>src/dom/DefaultDOMPropertyConfig.js <ide> var DefaultDOMPropertyConfig = { <ide> /** <ide> * Standard Properties <ide> */ <add> accessKey: null, <ide> accept: null, <ide> action: null, <ide> ajaxify: MUST_USE_ATTRIBUTE, <ide> allowFullScreen: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_...
1
Javascript
Javascript
turn elements/index into an index
ac69e81b045350724f2bc2ff28ed5ccad2690a67
<ide><path>src/controllers/controller.bar.js <ide> import DatasetController from '../core/core.datasetController'; <ide> import defaults from '../core/core.defaults'; <del>import Rectangle from '../elements/element.rectangle'; <add>import {Rectangle} from '../elements/index'; <ide> import {clipArea, unclipArea} from '....
9
Javascript
Javascript
fix the redeclaration and fix performance
58dd3acf92d2bd6693501df2b50f953e72cf1b38
<ide><path>src/renderers/WebGLRenderer.js <ide> THREE.WebGLRenderer = function ( parameters ) { <ide> var gonnaUse = []; <ide> <ide> for ( i = 0; i < il; i ++ ) { <del> var candidateInfluence = influences[ i ] <add> candidateInfluence = influences[ i ] ...
1
Text
Text
add tunniclm as a collaborator
5579e859f72a921558a053e9eddb0d9b3e09bc59
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [thefourtheye](https://github.com/thefourtheye) - **Sakthipriyan Vairamani** &lt;thechargingvolcano@gmail.com&gt; <ide> * [thlorenz](https://github.com/thlorenz) - **Thorsten Lorenz** &lt;thlorenz@gmx.de&gt; <ide> * [Trott](...
1
Javascript
Javascript
fix the versions script
2b741dc8b8568bab1a687ac14eefbae126654e97
<ide><path>lib/versions/version-info.js <ide> var getTaggedVersion = function() { <ide> var gitTagResult = shell.exec('git describe --exact-match', {silent:true}); <ide> <ide> if ( gitTagResult.code === 0 ) { <del> var tag = gitTagResult.output; <add> var tag = gitTagResult.output.trim(); <ide> var versi...
1
Text
Text
fix debugging rails application [ci skip]
b44b3932438a5fc794e9d6711bc76c2f3f35aa8f
<ide><path>guides/source/debugging_rails_applications.md <ide> class ArticlesController < ApplicationController <ide> # ... <ide> <ide> def create <del> @article = Article.new(params[:article]) <add> @article = Article.new(article_params) <ide> logger.debug "New article: #{@article.attributes.inspect}" <...
1
Javascript
Javascript
add some comments
486dabaaf9193a2e141a744c34e17d976f2f6ed9
<ide><path>src/chart/bullet.js <ide> d3.chart.bullet = function() { <ide> return reversed ? function(d) { return width - scale(d); } : 0; <ide> }; <ide> <add> // Update the title. <ide> var titleText = g.selectAll('text.title') <ide> .data(d3_chart_title); <ide> <ide> d3.chart.bullet = functi...
1
PHP
PHP
fix custom keys in belongstomany
cbdfd0a5c44425db21df3086ba95a10514cd1830
<ide><path>src/ORM/Association/BelongsToMany.php <ide> public function junction($table = null) <ide> ]); <ide> } <ide> <add> if (!$source->association($junctionAlias)) { <add> $source->hasMany($junctionAlias, [ <add> 'targetTable' => $table, <add> 'fo...
3
Python
Python
add exceptions for `fit_loop`
a80ecd78daf7d464a6ff915111f62b8cd21c8b6b
<ide><path>keras/engine/training_arrays.py <ide> def fit_loop(model, f, ins, <ide> 'when doing step-wise ' <ide> 'training, i.e. `steps_per_epoch` ' <ide> 'must be set.') <add> elif do_validation: <add> if steps_per_epoch: ...
1
Javascript
Javascript
use abortcontroller with correct name/message
5d179cb2eccac38205b6f03ecf6403df65deea51
<ide><path>lib/timers/promises.js <ide> const { <ide> <ide> let DOMException; <ide> <del>const lazyDOMException = hideStackFrames((message) => { <add>const lazyDOMException = hideStackFrames((message, name) => { <ide> if (DOMException === undefined) <ide> DOMException = internalBinding('messaging').DOMException...
1
Python
Python
fix gpu evaluation
bbb59e371c2060504ea5548a3a440b1b093fde9b
<ide><path>spacy/train.py <ide> def _epoch(indices): <ide> self.nr_epoch += 1 <ide> <ide> def evaluate(self, dev_sents, gold_preproc=False): <del> scorer = Scorer() <add> all_docs = [] <add> all_golds = [] <ide> for raw_text, paragraph_tuples in dev_sents: <ide> ...
1
Javascript
Javascript
add basic missing docs for the $aria service
bf2c55ea297cc55786593dd4100468b7103df0ca
<ide><path>src/ngAria/aria.js <ide> var ngAriaModule = angular.module('ngAria', ['ng']). <ide> * Used for configuring aria attributes. <ide> * <ide> * ## Dependencies <del> * Requires the {@link ngAria `ngAria`} module to be installed. <add> * Requires the {@link ngAria} module to be installed. <ide> */ <ide> funct...
1
PHP
PHP
fix fatal error when checking for phpunit
7107cd663142fe79b98fde39529516344e729685
<ide><path>lib/Cake/Console/Shell.php <ide> public function createFile($path, $contents) { <ide> * @return boolean Success <ide> */ <ide> protected function _checkUnitTest() { <del> if (App::import('Vendor', 'phpunit', array('file' => 'PHPUnit' . DS . 'Autoload.php'))) { <add> if (class_exists('PHPUnit_Framework_T...
1
Ruby
Ruby
move paths to utils
a126946a9be8a1915ce516a674ffe4663583f691
<ide><path>Library/Homebrew/cmd/commands.rb <ide> module Homebrew extend self <del> def paths <del> @paths ||= ENV['PATH'].split(File::PATH_SEPARATOR).collect do |p| <del> begin <del> File.expand_path(p).chomp('/') <del> rescue ArgumentError <del> onoe "The following PATH component is invali...
3
Ruby
Ruby
fix tiny grammatical mistakes[skip ci]
4e2d55e1aabefecd51a5fec244837edfb0dab169
<ide><path>activejob/lib/active_job/test_helper.rb <ide> def queue_adapter_for_test <ide> # end <ide> # end <ide> # <del> # +:only+ and +:except+ options accepts Class, Array of Class or Proc. When passed a Proc, <add> # +:only+ and +:except+ options accept Class, Array of Class or Proc. When pa...
1
Javascript
Javascript
remove copy & copyable
f6cb99ee41910d06a6f1edea420947e5f89712ce
<ide><path>packages/@ember/-internals/runtime/index.js <ide> export { default as Object, FrameworkObject } from './lib/system/object'; <ide> export { default as RegistryProxyMixin } from './lib/mixins/registry_proxy'; <ide> export { default as ContainerProxyMixin } from './lib/mixins/container_proxy'; <del>export { def...
10
Ruby
Ruby
add support for namespaced validators
2650742bd02e108bc4ccdc59efa54b4916e3a443
<ide><path>activemodel/lib/active_model/validations/validates.rb <ide> module ClassMethods <ide> # validates :name, :title => true <ide> # end <ide> # <add> # Additionally validator classes may be in another namespace and still used within any class. <add> # <add> # validates :n...
3
Javascript
Javascript
fix issue with rtl locales and zoomscale
bc7b5c3011460935614a47a03cd077cd1059de72
<ide><path>Libraries/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<Props, State> { <ide> this._hasWarned.perf = true; <ide> } <ide> <del> const zoomScale = e.nativeEvent.zoomScale; <del> <add> // For invalid negative values (w/ RTL), set this to 1. <add> const zoom...
1
PHP
PHP
fix bug in validation unique method
fd446aec624ff607e07c3d0f3aa38fbdfc40dd41
<ide><path>laravel/validator.php <ide> protected function validate_unique($attribute, $value, $parameters) <ide> // fine for the given ID to exist in the table. <ide> if (isset($parameters[2])) <ide> { <del> $query->where('id', '<>', $parameters[2]); <add> $query->where($attribute, '<>', $parameters[2]); <ide...
1
Ruby
Ruby
add test for --json=v2
d96ad81cd02e2cad1ba022e979e8fb83f0d431e7
<ide><path>Library/Homebrew/test/cmd/info_spec.rb <ide> .and not_to_output.to_stderr <ide> .and be_a_success <ide> end <add> <add> it "prints as json with the --json=v2 flag" do <add> setup_test_formula "testball" <add> <add> expect { brew "info", "testball", "--json=v2" } <add> .to output(a_j...
1
PHP
PHP
add test suffix to misnamed tests
6b207dfe4ce5e66be9638e02b8d2be9f190e823c
<add><path>tests/Database/DatabaseEloquentCastsDatabaseStringTest.php <del><path>tests/Database/DatabaseEloquentCastsDatabaseString.php <ide> use Illuminate\Database\Capsule\Manager as DB; <ide> use Illuminate\Database\Eloquent\Model as Eloquent; <ide> <del>class DatabaseEloquentCastsDatabaseString extends TestCase <a...
2
Python
Python
add the `axis` keyword to linalg.norm
40000f508ab5f736b5a62c97a1e4bb72d55bf19c
<ide><path>numpy/linalg/linalg.py <ide> intc, single, double, csingle, cdouble, inexact, complexfloating, \ <ide> newaxis, ravel, all, Inf, dot, add, multiply, identity, sqrt, \ <ide> maximum, flatnonzero, diagonal, arange, fastCopyAndTranspose, sum, \ <del> isfinite, size, finfo, absolut...
2
Javascript
Javascript
capture errors on request data streams
cb630218303095c0075182b542ccb2f72d20dd9d
<ide><path>lib/adapters/http.js <ide> module.exports = function httpAdapter(config) { <ide> <ide> // Send the request <ide> if (utils.isStream(data)) { <del> data.pipe(req); <add> data.on('error', function handleStreamError(err) { <add> reject(enhanceError(err, config, null, req)); <add> ...
2
Javascript
Javascript
use obj instead of array
8d3c63ef073a5ecc4c9a62c982c1760865b1070c
<ide><path>web/viewer.js <ide> var PDFView = { <ide> // Helper function to parse query string (e.g. ?param1=value&parm2=...). <ide> parseQueryString: function pdfViewParseQueryString(query) { <ide> var parts = query.split('&'); <del> var params = []; <add> var params = {}; <ide> for (var i = 0, ii = p...
1
PHP
PHP
put methods in alpha order... *cough* jeffrey
661bf1413a2fe5c613d4ca8121850d9b029001ff
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function bcrypt($value, $options = []) <ide> } <ide> } <ide> <add>if (! function_exists('cache')) { <add> /** <add> * Get / set the specified cache value. <add> * <add> * If an array is passed, we'll assume you want to put to the cache. <add> ...
1
Python
Python
add type hints for return values
b2ed8d443c03bd9fa8cc523bcefcca4eeff04c2e
<ide><path>matrix/rotate_matrix.py <ide> # -*- coding: utf-8 -*- <ide> <ide> """ <del> In this problem, we want to rotate the matrix elements by 90, 180, 270 (counterclockwise) <del> Discussion in stackoverflow: <del> https://stackoverflow.com/questions/42519/how-do-you-rotate-a-two-dimensional-array <add>In this p...
1
Python
Python
remove utils/logs usage for official models
2c6f12e3149ffc324b22de875ad6b7091b0cc638
<ide><path>official/benchmark/models/resnet_cifar_main.py <ide> from official.benchmark.models import resnet_cifar_model <ide> from official.benchmark.models import synthetic_util <ide> from official.utils.flags import core as flags_core <del>from official.utils.logs import logger <ide> from official.utils.misc import ...
7
Python
Python
test the full story processing
1aec940587255083b2451fc18aa604de29c1188c
<ide><path>examples/run_seq2seq_finetuning.py <ide> def __init_(self, tokenizer, data_dir="", block_size=512): <ide> path_to_stories = os.path.join(data_dir, dataset, "stories") <ide> assert os.path.isdir(path_to_stories) <ide> <del> stories_files = os.listdir(path_to_stories) <del> ...
2
Javascript
Javascript
fix korean test label
e8f8736b5d2a0c28b8fbad2de7ca88bec3d18f36
<ide><path>test/lang/ar-sa.js <ide> exports["lang:ar-sa"] = { <ide> }, <ide> <ide> "from" : function (test) { <del> test.expect(30); <del> <ide> var start = moment([2007, 1, 28]); <ide> test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), "ثوان", "44 seconds = a few seconds"...
5
Python
Python
add greedy matcher tests
7072b395c9e0705338c857e7b1ef7087cdb7b928
<ide><path>spacy/tests/regression/test_issue1855.py <add># coding: utf-8 <add>from __future__ import unicode_literals <add>import re <add> <add>from ..matcher import Matcher <add> <add>import pytest <add> <add>pattern1 = [{'ORTH':'A','OP':'1'},{'ORTH':'A','OP':'*'}] <add>pattern2 = [{'ORTH':'A','OP':'*'},{'ORTH':'A','O...
2
Javascript
Javascript
reset texture state
de61a95cefa648f74bdc807b593149d4cb9bdde4
<ide><path>src/renderers/webgl/WebGLState.js <ide> THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) { <ide> <ide> compressedTextureFormats = null; <ide> <add> currentTextureSlot = undefined; <add> currentBoundTextures = {}; <add> <ide> currentBlending = null; <ide> <ide> currentColorWrite = nul...
1
Javascript
Javascript
put libgit2 back
c7dcbeb0dacc42899c6e3ec3551ea9669bc445d7
<ide><path>script/lib/include-path-in-packaged-app.js <ide> const EXCLUDE_REGEXPS_SOURCES = [ <ide> escapeRegExp(path.join('build', 'Release', 'obj.target')), <ide> escapeRegExp(path.join('build', 'Release', 'obj')), <ide> escapeRegExp(path.join('build', 'Release', '.deps')), <del> escapeRegExp(path.join('deps',...
1
Ruby
Ruby
fix regex to strip quotations from hstore values
2c9304891ef264409980abfac499f698876744d0
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/cast.rb <ide> def string_to_hstore(string) <ide> nil <ide> elsif String === string <ide> Hash[string.scan(HstorePair).map { |k,v| <del> v = v.upcase == 'NULL' ? nil : v.gsub(/^"(.*)"$/,'\1').gsub(/\\(...
2
PHP
PHP
apply fixes from styleci
3745d9a97a74185c90d76db921b6daba6d6e24f2
<ide><path>src/Illuminate/Database/Schema/Blueprint.php <ide> use BadMethodCallException; <ide> use Closure; <ide> use Illuminate\Database\Connection; <del>use Illuminate\Database\SQLiteConnection; <del>use Illuminate\Database\Schema\ForeignKeyDefinition; <ide> use Illuminate\Database\Schema\Grammars\Grammar; <add>use ...
2
Java
Java
fix trailing spaces
b47783e3186f83be6a87257a2d13c9619bccaa42
<ide><path>src/main/java/io/reactivex/rxjava3/internal/fuseable/FuseToFlowable.java <ide> * the operator goes from Flowable to some other reactive type and then the sequence calls <ide> * for toFlowable again: <ide> * <pre> <del> * {@code <add> * {@code <ide> * Single<Integer> single = Flowable.range(1, 10).reduce...
4
Go
Go
display only the name of the requirement…
952c8aef3f221ee266627c26b9d8e4c0d936258f
<ide><path>integration-cli/requirement/requirement.go <ide> package requirement <ide> <ide> import ( <ide> "fmt" <add> "path" <ide> "reflect" <ide> "runtime" <add> "strings" <ide> ) <ide> <ide> type skipT interface { <ide> func Is(s skipT, requirements ...Test) { <ide> isValid := r() <ide> if !isValid { <ide> ...
1
Text
Text
clarify `listening` event
8c12a08de56dde4e31f68c0a6944379dd8206dc8
<ide><path>doc/api/dgram.md <ide> function is passed a single `Error` object. <ide> added: v0.1.99 <ide> --> <ide> <del>The `'listening'` event is emitted whenever a socket begins listening for <del>datagram messages. This occurs as soon as UDP sockets are created. <add>The `'listening'` event is emitted once the `dgr...
1
Go
Go
remove redundant format
514adcf4580effa4820be8d5e6d2c0ea9825ceb2
<ide><path>api/server/httputils/form.go <ide> package httputils <ide> <ide> import ( <del> "fmt" <add> "errors" <ide> "net/http" <ide> "path/filepath" <ide> "strconv" <ide> func ArchiveFormValues(r *http.Request, vars map[string]string) (ArchiveOptions, <ide> <ide> switch { <ide> case name == "": <del> return A...
20
Ruby
Ruby
stop debug exploding when zsh is used
6fe261bc5c1da9cd3629c03fd47810f743d532a4
<ide><path>Library/Homebrew/utils.rb <ide> def interactive_shell(f = nil) <ide> end <ide> <ide> if ENV["SHELL"].include?("zsh") && ENV["HOME"].start_with?(HOMEBREW_TEMP.resolved_path.to_s) <add> FileUtils.mkdir_p ENV["HOME"] <ide> FileUtils.touch "#{ENV["HOME"]}/.zshrc" <ide> end <ide>
1
Ruby
Ruby
pass explicit sort to handle apfs
35fae7ce6ab9a8bb0bde731b294771166ed9bdef
<ide><path>Library/Homebrew/cmd/tap-info.rb <ide> module Homebrew <ide> module_function <ide> <ide> def tap_info <add> # TODO: This still returns a non-alphabetised list on APFS. <ide> if ARGV.include? "--installed" <ide> taps = Tap <ide> else <del> taps = ARGV.named.map do |name| <add> ...
1
Python
Python
remove unnecessary else
dca8b983568e1ca7534ad7244e6eb57e1b87cc68
<ide><path>rest_framework/mixins.py <ide> def update(self, request, *args, **kwargs): <ide> self.object = serializer.save(force_insert=True) <ide> self.post_save(self.object, created=True) <ide> return Response(serializer.data, status=status.HTTP_201_CREATED) <del> else: <del>...
1
Python
Python
switch parameter name to 'kind' over 'method'
cde60cee195660f2dafb2993e609d66559525fe8
<ide><path>numpy/lib/arraysetops.py <ide> def setxor1d(ar1, ar2, assume_unique=False): <ide> <ide> <ide> def _in1d_dispatcher(ar1, ar2, assume_unique=None, invert=None, <del> method=None): <add> kind=None): <ide> return (ar1, ar2) <ide> <ide> <ide> @array_function_dispatc...
1
Ruby
Ruby
add --git option to 'brew install -i'
54b5a7afbb7d562c3ee3adf607d6067cd6b7d2dc
<ide><path>Library/Homebrew/install.rb <ide> def install f <ide> ohai "Entering interactive mode" <ide> puts "Type `exit' to return and finalize the installation" <ide> puts "Install to this prefix: #{f.prefix}" <add> <add> if ARGV.flag? '--git' <add> system "git init" <add> ...
1
Go
Go
add realchroot for non linux/windows
34d5b8867fe83403a6998d043a32a49e087f2477
<ide><path>pkg/chrootarchive/chroot_unix.go <ide> func chroot(path string) error { <ide> } <ide> return unix.Chdir("/") <ide> } <add> <add>func realChroot(path string) error { <add> return chroot(path) <add>}
1
PHP
PHP
fix various failing tests
0607437abd647d5e3145f6fbc4149d4c4b1fabff
<ide><path>lib/Cake/Test/Case/View/Helper/CacheHelperTest.php <ide> public function testComplexNoCache () { <ide> $result = $View->render('sequencial_nocache'); <ide> <ide> $this->assertNotRegExp('/cake:nocache/', $result); <del> $this->assertNotRegExpy('/php echo/', $result); <add> $this->assertNotRegExp('/php ...
6
Text
Text
add few information about missing steps [ci skip]
a08cc479389a44aa34529bfa5bdce6baee2fc7c1
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> The following changes are meant for upgrading your application to Rails 4.0. <ide> <ide> ### Gemfile <ide> <del>Rails 4.0 removed the `assets` group from Gemfile. You'd need to remove that line from your Gemfile when upgrading. <add>Rails 4.0 removed the `asse...
1
Text
Text
fix diffrent naming in getting_started.md
9233f52bd96081c728b7087af9435d4fbadb7e46
<ide><path>guides/source/getting_started.md <ide> new articles. Create a file called `app/views/articles/edit.html.erb` and make <ide> it look as follows: <ide> <ide> ```html+erb <del><h1>Editing article</h1> <add><h1>Edit article</h1> <ide> <ide> <%= form_for :article, url: article_path(@article), method: :patch do ...
1