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 |
|---|---|---|---|---|---|
PHP | PHP | add dsn parsing to staticconfigtrait | 2ee6448a32f31e3c47b8044c50d7d8af151d6069 | <ide><path>src/Core/StaticConfigTrait.php
<ide> public static function config($key, $config = null) {
<ide> if (isset(static::$_config[$key])) {
<ide> throw new BadMethodCallException(sprintf('Cannot reconfigure existing key "%s"', $key));
<ide> }
<del> if (is_object($config)) {
<add> if (is_array($config)) {
... | 1 |
Go | Go | remove unused imports | 276d2bbf1d400415bec8d4652ac61e570b9206e3 | <ide><path>term/term.go
<ide> package term
<ide>
<ide> import (
<del> "fmt"
<del> "io"
<ide> "os"
<ide> "os/signal"
<ide> "syscall" | 1 |
Go | Go | log stderr on failures | 63f9c7784b7c6a726c8c668d68f9c8cb13e19ffb | <ide><path>builder/dockerfile/evaluator_test.go
<ide> package dockerfile // import "github.com/docker/docker/builder/dockerfile"
<ide>
<ide> import (
<ide> "os"
<add> "runtime"
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/builder/remotecontext"
<ide> func initDispatchTestCases() []dispatchTestCase {
<ide>... | 3 |
Ruby | Ruby | use test dsl | b1241bb3a1971bb0cdba2e0f1fef6ad046b5f109 | <ide><path>Library/Homebrew/cmd/create.rb
<ide> def install
<ide> system "make install" # if this fails, try separate make/make install steps
<ide> end
<ide>
<del> def test
<add> test do
<add> # `test do` will create, run in and delete a temporary directory.
<add> #
<ide> ... | 1 |
Javascript | Javascript | remove some redundant imports | 993b78de0bab6024a8ac48ff6502e7e409b10710 | <ide><path>examples/with-three-js/pages/_app.js
<del>import React from 'react'
<ide> import './index.css'
<ide>
<ide> function MyApp({ Component, pageProps }) {
<ide><path>examples/with-three-js/pages/birds.js
<del>import React, { useRef, useState, useEffect, Suspense } from 'react'
<add>import { useRef, useState, use... | 11 |
Javascript | Javascript | add test for setloop (looponce,looprepeat) | cc8d54c1a81e350f89d094a42e342508ec476fd0 | <ide><path>test/unit/src/animation/AnimationAction.tests.js
<ide> import { AnimationMixer } from '../../../../src/animation/AnimationMixer';
<ide> import { AnimationClip } from '../../../../src/animation/AnimationClip';
<ide> import { NumberKeyframeTrack } from '../../../../src/animation/tracks/NumberKeyframeTrack';
<i... | 1 |
Python | Python | add unit tests for oracleoperator | 3235670b058681c896ac107e13b5218e9ca930c7 | <ide><path>tests/providers/oracle/operators/__init__.py
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licenses this file
<ad... | 3 |
Javascript | Javascript | fix |cleanup| regression in the viewer | 5f8373919037321aee05ce0fbaf1aa3fa30358a3 | <ide><path>web/pdf_viewer.js
<ide> var PDFViewer = (function pdfViewer() {
<ide> this.scroll.down);
<ide> if (pageView) {
<ide> this.renderingQueue.renderView(pageView);
<del> return;
<add> return true;
<ide> }
<add> retu... | 1 |
Text | Text | add http working group | 2b1ecfe78c75cbd0818a21d7cf7570f7c1044498 | <ide><path>WORKING_GROUPS.md
<ide> back in to the TSC.
<ide> * [Addon API](#addon-api)
<ide> * [Benchmarking](#benchmarking)
<ide> * [Post-mortem](#post-mortem)
<add>* [Intl](#intl)
<add>* [HTTP](#http)
<add>
<add>#### Process:
<add>
<ide> * [Starting a Working Group](#starting-a-wg)
<ide> * [Bootstrap Governance](#boo... | 1 |
Text | Text | add mscdex as collaborator | 01296923db7715fac43c5a8fbad6aeafa74c1a4a | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Shigeki Ohtsu** ([@shigeki](https://github.com/shigeki)) <ohtsu@iij.ad.jp>
<ide> * **Sam Roberts** ([@sam-github](https://github.com/sam-github)) <vieuxtech@gmail.com>
<ide> * **Wyatt Preul** ([@geek](https://git... | 1 |
PHP | PHP | add test for auth.redirect session var clearing | 7becd58237ecea627c0cfe97cb36cea4b94ad319 | <ide><path>lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
<ide> public function setUp() {
<ide> $this->Auth = new TestAuthComponent($collection);
<ide> $this->Auth->request = $request;
<ide> $this->Auth->response = $this->getMock('CakeResponse');
<add> AuthComponent::$sessionKey = 'Auth.User';
<id... | 1 |
Go | Go | fix typo in deprecation message | bf14bacac3f1cae15ce7b32b5341122c305e630e | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdImport(args ...string) error {
<ide> v.Set("repo", repository)
<ide>
<ide> if cmd.NArg() == 3 {
<del> fmt.Fprintf(cli.err, "[DEPRECATED] The format 'URL|- [REPOSITORY [TAG]]' as been deprecated. Please use URL|- [REPOSITORY[:TAG]]\n")
<add> fmt.Fprin... | 1 |
Java | Java | improve constantfieldfeature compatibility | b64edebadc6e26abaaf670ef6eec18cf38aea1d3 | <ide><path>spring-core/graalvm/src/main/java/org/springframework/aot/graalvm/ConstantFieldFeature.java
<ide> private void duringSetup(DuringSetupAccessImpl access) {
<ide> DebugContext debug = access.getDebugContext();
<ide> try (DebugContext.Scope scope = debug.scope("ConstantFieldFeature.duringSetup")) {
<ide> ... | 2 |
Java | Java | add support for extra messageproducer method | c2da8467320660a98897e5f3a2b7cf1c637146b3 | <ide><path>spring-jms/src/main/java/org/springframework/jms/connection/CachedMessageProducer.java
<ide> public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
<ide> else if (args.length == 3) {
<ide> return sendWithDestinationAndCompletionListenerMethod.invoke(
<ide> target,... | 1 |
Javascript | Javascript | improve ci stability | 87846747df5de34f1a49abfe587d7a2daf9ecfea | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> throw stats.errors[0];
<ide> }
<ide> stats.logs = logs;
<del> callback(stats, files, compilation);
<add> c.close(err => {
<add> if (err) return callback(err);
<add> callback(stats, files, compilation);
<add> });
<ide> });
... | 1 |
PHP | PHP | fix two typos in cacheengine.php | f3262f768bba13fadc1b9dbe867a0c25da61c9ee | <ide><path>lib/Cake/Cache/CacheEngine.php
<ide> abstract public function clear($check);
<ide>
<ide> /**
<ide> * Clears all values belonging to a group. Is upt to the implementing engine
<del> * to decide whether actually deete the keys or just simulate it to acheive
<add> * to decide whether actually delete the keys ... | 1 |
Python | Python | pass kwargs to configuration | b623ddc0002aebe32e2b7a1203a6acbed61bf9a8 | <ide><path>src/transformers/configuration_utils.py
<ide> def __init__(self, **kwargs):
<ide> logger.error("Can't set {} with value {} for {}".format(key, value, self))
<ide> raise err
<ide>
<add> @property
<add> def num_labels(self):
<add> return self._num_labels
<add>
<add... | 2 |
Text | Text | fix markdown escape in updating.md | a28c9c64f6623bdea0089aeb404bad98f9dd8a7d | <ide><path>UPDATING.md
<ide> Some commands have been grouped to improve UX of CLI. New commands are available
<ide>
<ide> For Airflow short option, use exactly one single character, New commands are available according to the following table:
<ide>
<del>| Old command | New comma... | 1 |
Text | Text | fix bullet spacing for website | 8efe148f0731189aed10e2828dc6cffee94c6397 | <ide><path>docs/NativeComponentsIOS.md
<ide> Let's say we want to add an interactive Map to our app - might as well use [`MKM
<ide> Native views are created and manipulated by subclasses of `RCTViewManager`. These subclasses are similar in function to view controllers, but are essentially singletons - only one instanc... | 1 |
Javascript | Javascript | lint the tests | 81a1cd8caad06f4c637dcbde7fa9d60609d8295c | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> });
<ide> });
<ide> });
<del> it("should not emit on errors", function(done) {
<add> it("should not emit on errors", function(done) {
<ide> const compiler = webpack({
<ide> context: __dirname,
<ide> mode: "production",
<ide> descri... | 1 |
PHP | PHP | catch more things | ed3154d8af8f1b9dbb034e2dc92100a0f8f5d4b2 | <ide><path>src/Illuminate/View/View.php
<ide> public function render(callable $callback = null)
<ide> } catch (Exception $e) {
<ide> $this->factory->flushSections();
<ide>
<add> throw $e;
<add> } catch (Throwable $e) {
<add> $this->factory->flushSections();
<add>
<ide> ... | 1 |
Go | Go | enable resource limitation | 409bbdc3212a37e7a21a70eeae0b44e96509f54d | <ide><path>pkg/sysinfo/sysinfo_linux.go
<ide> func New(quiet bool) *SysInfo {
<ide> w := o(sysInfo, cgMounts)
<ide> warnings = append(warnings, w...)
<ide> }
<add> if cgroups.IsCgroup2UnifiedMode() {
<add> warnings = append(warnings, "Your system is running cgroup v2 (unsupported)")
<add> }
<ide> if !quiet {
<id... | 1 |
Ruby | Ruby | move reloader middleware in actiondispatch | d7396b5ca9c066cb16158c02b976dab01f522344 | <ide><path>actionpack/lib/action_controller.rb
<ide> def self.load_all!
<ide> autoload :PolymorphicRoutes, 'action_controller/routing/generation/polymorphic_routes'
<ide> autoload :RecordIdentifier, 'action_controller/record_identifier'
<ide> autoload :Redirector, 'action_controller/base/redirect'
<del> autoload... | 4 |
Ruby | Ruby | fix undefined method crash | ac7a59373087e9d49097ab7f0ddb691e64159959 | <ide><path>Library/Homebrew/utils/inreplace.rb
<ide> module Utils
<ide> class InreplaceError < RuntimeError
<ide> def initialize(errors)
<del> super errors.inject("inreplace failed\n") do |s, (path, errs)|
<add> formatted_errors = errors.inject("inreplace failed\n") do |s, (path, errs)|
<ide> s ... | 1 |
Text | Text | fix typo in error.capturestacktrace | 409418a209558263aebf0ba60c3ebd390b015508 | <ide><path>doc/api/errors.md
<ide> function MyError() {
<ide> }
<ide>
<ide> // Without passing MyError to captureStackTrace, the MyError
<del>// frame would should up in the .stack property. by passing
<add>// frame would show up in the .stack property. By passing
<ide> // the constructor, we omit that frame and all f... | 1 |
PHP | PHP | use static instead of event | 2ca07e8ac7c3b5af8a75c4bb19f49b60988d7e22 | <ide><path>src/Illuminate/Support/Facades/Event.php
<ide> public static function fake($eventsToFake = [])
<ide> */
<ide> public static function fakeFor(callable $callable, array $eventsToFake = [])
<ide> {
<del> $initialDispatcher = Event::getFacadeRoot();
<add> $initialDispatcher = static::g... | 1 |
PHP | PHP | fix doc blocks | c369d6745e07cda661cf8f5ffcef40d0cb7b0132 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> abstract class Model implements ArrayAccess, ArrayableInterface, JsonableInterfa
<ide> protected $fillable = array();
<ide>
<ide> /**
<del> * The attribute that aren't mass assignable.
<add> * The attributes that aren't mass assignable.
<ide> *
<ide> ... | 2 |
Javascript | Javascript | update the css rule with data-ng-cloak | 90ba9aadc6693e01487e6e14e7d1065658572e0f | <ide><path>src/ng/directive/ngCloak.js
<ide> * `angular.min.js` files. Following is the css rule:
<ide> *
<ide> * <pre>
<del> * [ng\:cloak], [ng-cloak], .ng-cloak {
<add> * [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
<ide> * display: none;
<ide> * }
<ide> * </pre> | 1 |
Ruby | Ruby | extract macos module to separate file | 0bb95960e642782c85eb7e227eba844607fc2d00 | <ide><path>Library/Homebrew/macos.rb
<add>module MacOS extend self
<add> def version
<add> MACOS_VERSION
<add> end
<add>
<add> def cat
<add> if mountain_lion?
<add> :mountainlion
<add> elsif lion?
<add> :lion
<add> elsif snow_leopard?
<add> :snowleopard
<add> elsif leopard?
<add> :... | 2 |
Python | Python | create dataparallel model if several gpus | 5f432480c0f9f89e56fec9bf428108637b600f98 | <ide><path>extract_features_pytorch.py
<ide> def main():
<ide> if args.init_checkpoint is not None:
<ide> model.load_state_dict(torch.load(args.init_checkpoint, map_location='cpu'))
<ide> model.to(device)
<add>
<add> if n_gpu > 1:
<add> model = nn.DataParallel(model)
<ide>
<ide> all_i... | 3 |
Javascript | Javascript | use strict assertions in module loader test | 443e218544b82c02643a97666b505ffb0f18751f | <ide><path>test/sequential/test-module-loading.js
<ide> var fs = require('fs');
<ide> console.error('load test-module-loading.js');
<ide>
<ide> // assert that this is the main module.
<del>assert.equal(require.main.id, '.', 'main module should have id of \'.\'');
<del>assert.equal(require.main, module, 'require.main s... | 1 |
Javascript | Javascript | raise error when null bytes detected in paths | 33fa7405778444ca66470ab0729e6fa9fe43d2a6 | <ide><path>lib/fs.js
<ide> function assertEncoding(encoding) {
<ide> }
<ide> }
<ide>
<add>function nullCheck(path, callback) {
<add> if (('' + path).indexOf('\u0000') !== -1) {
<add> var er = new Error('Path must be a string without null bytes.');
<add> if (!callback)
<add> throw er;
<add> process.nex... | 2 |
Mixed | Javascript | fix docs and add missed breaking change | 15efbbdc1fe42f914e6442b32ffc032a4cc8e792 | <ide><path>CHANGELOG.md
<ide> Angular with
<ide> [Unicode Technical Standard #35](http://unicode.org/reports/tr35/#Date_Format_Patterns) used by
<ide> Closure, as well as, future DOM apis currently being proposed to w3c.
<add>- `$xhr.error`'s `request` argument has no `callback` property anymore, use `success` in... | 2 |
Javascript | Javascript | fix issue with metamorph replace | 14d3f7920141600030c60d921c84f5385a28148b | <ide><path>packages/ember-handlebars/lib/views/metamorph_view.js
<ide> var DOMManager = {
<ide> view.transitionTo('preRender');
<ide>
<ide> Ember.run.schedule('render', this, function() {
<del> if (get(view, 'isDestroyed')) { return; }
<add> if (view.isDestroying) { return; }
<ide>
<ide> view.... | 2 |
Text | Text | fix typo in script component docs | ced204066198a695cc633d71358676fdc24c14b3 | <ide><path>docs/basic-features/script.md
<ide> npm run dev
<ide> # ...
<ide> ```
<ide>
<del>Once setup is complete, defining `strategy="worker` will automatically instantiate Partytown in your application and off-load the script to a web worker.
<add>Once setup is complete, defining `strategy="worker"` will automatica... | 1 |
Ruby | Ruby | add xcode 4.5.1 to compiler map | 736717cf24247df492dc6939f8279982c5ebcb4b | <ide><path>Library/Homebrew/macos.rb
<ide> def prefer_64_bit?
<ide> "4.3.3" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
<ide> "4.4" => {:llvm_build_version=>2336, :clang_version=>"4.0", :clang_build_version=>421},
<ide> "4.4.1" => {:llvm_build_version=>2336, :clang_vers... | 1 |
PHP | PHP | ignore standards for php defined constants | e5ad204265055ca8170315201969ea19f9d8eea8 | <ide><path>lib/Cake/Network/CakeSocket.php
<ide> class CakeSocket {
<ide> * @var array
<ide> */
<ide> protected $_encryptMethods = array(
<add> // @codingStandardsIgnoreStart
<ide> 'sslv2_client' => STREAM_CRYPTO_METHOD_SSLv2_CLIENT,
<ide> 'sslv3_client' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
<ide> 'sslv23_cli... | 1 |
Ruby | Ruby | avoid empty api pages | b653c29bbec572eb82c4b82ae89d26acfa15b519 | <ide><path>actionpack/lib/abstract_controller/asset_paths.rb
<ide> module AbstractController
<del> module AssetPaths
<add> module AssetPaths #:nodoc:
<ide> extend ActiveSupport::Concern
<ide>
<ide> included do
<ide><path>actionpack/lib/abstract_controller/base.rb
<ide> require 'active_support/core_ext/module... | 3 |
PHP | PHP | update deprecation suggestions | 41ee62533d61f1727b8b95c0a7528b867410c509 | <ide><path>src/Http/ServerRequest.php
<ide> public function __get($name)
<ide> * @param string $name The property being accessed.
<ide> * @return bool Existence
<ide> * @deprecated 3.4.0 Accessing routing parameters through __isset will removed in 4.0.0.
<del> * Use param() instead.
<add> * U... | 1 |
PHP | PHP | flush the application after each test | 7602d93ce35e8f0baf9915ebc8be4d885ee0259e | <ide><path>src/Illuminate/Container/Container.php
<ide> public function forgetInstances()
<ide> $this->instances = array();
<ide> }
<ide>
<add> /**
<add> * Flush the container of all bindings and resolved instances.
<add> *
<add> * @return void
<add> */
<add> public function flush()
<add> {
<add> $this->aliase... | 3 |
Python | Python | add profile command to cli | cec76801dc870ae3e1f8682e84126ee69a2a25a2 | <ide><path>spacy/__main__.py
<ide> import plac
<ide> import sys
<ide> from spacy.cli import download, link, info, package, train, convert, model
<add> from spacy.cli import profile
<ide> from spacy.util import prints
<ide>
<ide> commands = {
<ide> 'train': train,
<ide> 'convert':... | 1 |
Java | Java | add marble diagrams for single.repeat operators | c8bcb3c92bebde39616597bd46ddb93d6f0f6e18 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final Single<T> onTerminateDetach() {
<ide>
<ide> /**
<ide> * Repeatedly re-subscribes to the current Single and emits each success value.
<add> * <p>
<add> * <img width="640" height="457" src="https://raw.github.com/wiki/ReactiveX/RxJava/... | 1 |
Ruby | Ruby | fix version detection and bottles | d9a18d4c1e679d95ff9828f00d246d9b03ccb984 | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_erlang_version_style
<ide> assert_version_detected 'R13B', 'http://erlang.org/download/otp_src_R13B.tar.gz'
<ide> end
<ide>
<add> def test_another_erlang_version_style
<add> assert_version_detected 'R15B01', 'https://github.com/erlang/otp/tarba... | 2 |
Python | Python | fix val_step in fit_generator with sequence | 6746bda3dcda273580fef2d911c6cc333c8a626c | <ide><path>keras/engine/training_generator.py
<ide> def fit_generator(model,
<ide> if isinstance(val_data, Sequence):
<ide> val_enqueuer = OrderedEnqueuer(val_data,
<ide> use_multiprocessing=use_multiprocessing)
<del> ... | 2 |
Ruby | Ruby | escape globbed parameters in routes correctly | 6776edccf6fb553eb0ac6db55e1d30df1b5b6589 | <ide><path>actionpack/lib/action_controller/routing/segments.rb
<ide> def match_extraction(next_capture)
<ide> end
<ide>
<ide> class PathSegment < DynamicSegment #:nodoc:
<del> RESERVED_PCHAR = "#{Segment::RESERVED_PCHAR}/"
<del> UNSAFE_PCHAR = Regexp.new("[^#{URI::REGEXP::PATTERN::UNRESERVED}#{RESER... | 2 |
Ruby | Ruby | fix error message when adapter is not specified | 83b995206a569d8d08b697ee9f86a64ca1854bcc | <ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb
<ide> def resolve_symbol_connection(env_name, pool_name)
<ide> if db_config
<ide> resolve_connection(db_config.config).merge("name" => pool_name.to_s)
<ide> else
<del> raise(Adapt... | 1 |
Python | Python | fix keyerror on missing exitcode | 206cce971da6941e8c1b0d3c4dbf4fa8afe0fba4 | <ide><path>airflow/providers/amazon/aws/operators/ecs.py
<ide> def _check_success_task(self) -> None:
<ide> )
<ide> containers = task['containers']
<ide> for container in containers:
<del> if container.get('lastStatus') == 'STOPPED' and container['exitCode'] != 0:
... | 2 |
Python | Python | add beam search | 9660ba1cbdec0e419937af06bd99f06fb5ebbf91 | <ide><path>examples/run_summarization_finetuning.py
<del># coding=utf-8
<del># Copyright 2019 The HuggingFace Inc. team.
<del># Copyright (c) 2019 The HuggingFace Inc. All rights reserved.
<del>#
<del># Licensed under the Apache License, Version 2.0 (the "License");
<del># you may not use this file except in complianc... | 6 |
Python | Python | revise some of the docstrings | 8e74c991d1336bd51e71dc492544223055c130f4 | <ide><path>numpy/core/fromnumeric.py
<ide> def diagonal(a, offset=0, axis1=0, axis2=1):
<ide> Returns
<ide> -------
<ide> array_of_diagonals : ndarray
<del> If `a` is 2-D, a 1-D array of the same type as `a` containing the
<del> diagonal is returned (except if `a` is a `matrix`, in which case ... | 1 |
Python | Python | add support for camembert in run_ner example | 56c84863a1a20dfb82b928c5c9f77c21d9def8c7 | <ide><path>examples/run_ner.py
<ide> from transformers import WEIGHTS_NAME, BertConfig, BertForTokenClassification, BertTokenizer
<ide> from transformers import RobertaConfig, RobertaForTokenClassification, RobertaTokenizer
<ide> from transformers import DistilBertConfig, DistilBertForTokenClassification, DistilBertTok... | 1 |
Text | Text | release notes for 0.9.15 lethal-stutter release | 97573c39305a4d91c14703f1064bdfdd7153b080 | <ide><path>CHANGELOG.md
<ide> <a name="0.9.15"><a/>
<del># <angular/> 0.9.15 lethal-stutter (in-progress) #
<add># <angular/> 0.9.15 lethal-stutter (2011-04-11) #
<ide>
<add>### Features
<add>- IE9 support
<add>
<add>
<add>### Bug Fixes
<add>- reverted [ng:view] sync cache fix due to regression in the order of initial... | 1 |
Javascript | Javascript | add object.entries and object.values polyfill | 598df0bc201e4a177d51bd3d29a4249b997987df | <ide><path>packager/react-packager/src/Resolver/index.js
<ide> class Resolver {
<ide> path.join(__dirname, 'polyfills/String.prototype.es6.js'),
<ide> path.join(__dirname, 'polyfills/Array.prototype.es6.js'),
<ide> path.join(__dirname, 'polyfills/Array.es6.js'),
<add> path.join(__dirname, 'polyfi... | 3 |
Ruby | Ruby | remove unused params | 6ddd65c9f366c5bca70cfce770d144e2fca1e679 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def add_route(action, controller, options, _path, to, via, formatted, anchor, op
<ide> ast = Journey::Parser.parse path
<ide>
<ide> mapping = Mapping.build(@scope, @set, ast, controller, default_action, to, via, formatted, option... | 2 |
Text | Text | add a note about the auto-created empty directory | 4196822b9ce82b86041ec627fd37aedddd59bdb4 | <ide><path>docs/getting-started.md
<ide> If you have questions about anything related to Next.js, you're always welcome t
<ide>
<ide> ## Automatic Setup
<ide>
<del>We recommend creating a new Next.js app using `create-next-app`, which sets up everything automatically for you. To create a project, run:
<add>We recomme... | 1 |
Javascript | Javascript | remove keymirror usage in jstimers | d99623fcdc662cd329477bf42ca8740ee4433fe7 | <ide><path>Libraries/JavaScriptAppEngine/System/JSTimers/JSTimers.js
<ide> // in dependencies. NativeModules > BatchedBridge > MessageQueue > JSTimersExecution
<ide> const RCTTiming = require('NativeModules').Timing;
<ide> const JSTimersExecution = require('JSTimersExecution');
<add>
<ide> const parseErrorStack = requi... | 2 |
Text | Text | add angular version in index.md of angular guide | 0c30465ad4079871e38382d03717613b6a8425d5 | <ide><path>guide/chinese/angular/index.md
<ide> Angular(版本2.x及更高版本)是一个基于Typescript的开源框架,
<ide>
<ide> 谷歌于2010年10月20日发布了AngularJS的初始版本。 AngularJS的稳定版本于2017年12月18日发布,版本为1.6.8。 Angular 2.0发布于2014年9月22日在ng-Europe会议上发布。 Angular 2.0的一个特性是动态加载。
<ide>
<del>经过一些修改后,Angular 4.0于2016年12月发布。 Angular 4向后兼容Angular 2.0。 HttpClient库是... | 1 |
Go | Go | fix handling of shared roots | 08ab55419549374742bc879261f1d55b19af7265 | <ide><path>execdriver/lxc/driver.go
<ide> func (d *driver) Run(c *execdriver.Process, startCallback execdriver.StartCallba
<ide> params = append(params, "-w", c.WorkingDir)
<ide> }
<ide>
<add> params = append(params, "--", c.Entrypoint)
<add> params = append(params, c.Arguments...)
<add>
<ide> if d.sharedRoot {
<i... | 1 |
Javascript | Javascript | remove old test file | 069099a3e39b6b25fc5c1b10105c4d280760963f | <ide><path>test-net-server.js
<del>process.Buffer.prototype.toString = function () {
<del> return this.utf8Slice(0, this.length);
<del>};
<del>
<del>var sys = require("sys");
<del>var net = require("./lib/net");
<del>
<del>var server = new net.Server(function (socket) {
<del> sys.puts("connection (" + socket.fd + "):... | 1 |
Python | Python | turn some build warnings into errors | 3fc4412564a9a9bf3a77b4210ea1cbd3f11b19f9 | <ide><path>runtests.py
<ide> def build_project(args):
<ide>
<ide> """
<ide>
<add> import distutils.sysconfig
<add>
<ide> root_ok = [os.path.exists(os.path.join(ROOT_DIR, fn))
<ide> for fn in PROJECT_ROOT_FILES]
<ide> if not all(root_ok):
<ide> def build_project(args):
<ide>
<ide> # ... | 1 |
Text | Text | link official cloud tpu jax docs | 2df546918e4df58a6fd14fac8a634ec9710a80c1 | <ide><path>examples/flax/README.md
<ide> efficient vectorization), and `pjit` (for automatically sharded model parallelis
<ide> computing per-example gradients is simply `vmap(grad(f))`.
<ide>
<ide> [Flax](https://github.com/google/flax) builds on top of JAX with an ergonomic
<del>module abstraction using Python datac... | 1 |
Javascript | Javascript | remove unknown props in art | cb4a0af7dd32130b58bcfe9bcf2bdb9978c92cf5 | <ide><path>src/renderers/art/ReactART.js
<ide> const Surface = React.createClass({
<ide> const Tag = Mode.Surface.tagName;
<ide> return (
<ide> <Tag
<del> accesskey={props.accesskey}
<ide> className={props.className}
<ide> draggable={props.draggable}
<ide> role={props.role}
... | 1 |
PHP | PHP | add model factory after callbacks with states | bc4624cef6e60b8f711da971f7a466d574f484c6 | <ide><path>src/Illuminate/Database/Eloquent/Factory.php
<ide> public function state($class, $state, $attributes)
<ide> */
<ide> public function afterMaking($class, $callback)
<ide> {
<del> $this->afterMaking[$class][] = $callback;
<add> $this->afterMaking[$class]['default'][] = $callback;
<ad... | 3 |
Java | Java | remove test duplication | 8dea3c5ade47af23b098e49a5f6ddd44e40820c0 | <ide><path>spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheCacheTests.java
<ide> protected EhCacheCache getCache() {
<ide> protected Ehcache getNativeCache() {
<ide> return nativeCache;
<ide> }
<del> @Test
<del> public void testCachePut() throws Exception {
<del> Object key = "enescu"... | 1 |
Text | Text | fix small typo in development_dependencies_install | 058ae7e1c90b555756c9ecd029d60b5cd0341be0 | <ide><path>guides/source/development_dependencies_install.md
<ide> And if you are on Fedora or CentOS, you're done with
<ide> $ sudo yum install sqlite3 sqlite3-devel
<ide> ```
<ide>
<del>Get a recent version of [Bundler](http://gembundler.com/:)
<add>Get a recent version of [Bundler](http://gembundler.com/)
<ide>
<i... | 1 |
PHP | PHP | fix a few mistakes | a2e413173dda016a22dbb3af078fc017df45b08d | <ide><path>src/Core/Plugin.php
<ide> public static function load($plugin, array $config = [])
<ide> return;
<ide> }
<ide>
<del> if (!Configure::check('pluginPaths')) {
<add> if (!Configure::check('plugins')) {
<ide> try {
<ide> Configure::load('plugins');
<... | 2 |
Python | Python | add option to run perf tuned args | 2894bb53fa97e104bb440d98cff6f05ed9488490 | <ide><path>official/resnet/imagenet_main.py
<ide> def parse_record(raw_record, is_training, dtype):
<ide> return image, label
<ide>
<ide>
<del>def input_fn(is_training, data_dir, batch_size, num_epochs=1, num_gpus=None,
<del> dtype=tf.float32):
<add>def input_fn(is_training, data_dir, batch_size, num_ep... | 3 |
Mixed | Go | add `--cpus` support for `docker update` | 61022436926a8d0c92068e8116a2ad77f43eb6d6 | <ide><path>cli/command/container/update.go
<ide> type updateOptions struct {
<ide> memorySwap opts.MemSwapBytes
<ide> kernelMemory opts.MemBytes
<ide> restartPolicy string
<add> cpus opts.NanoCPUs
<ide>
<ide> nFlag int
<ide>
<ide> func NewUpdateCommand(dockerCli *command.DockerCli... | 6 |
Python | Python | add code for dynamic sorting | 3f228f476dec45858f36b1fe6541193bcebf32e9 | <ide><path>glances/core/glances_processes.py
<ide> def __init__(self, process=None, stats=None, sort_key=None, root=False):
<ide> self.children = []
<ide> self.children_sorted = False
<ide> self.sort_key = sort_key
<add> self.reverse_sorting = True
<ide> self.is_root = root
<ide> ... | 1 |
Go | Go | add container migration to aufs driver | 29f07f854497571db570be79c8df878624f5b41c | <ide><path>graphdriver/aufs/aufs.go
<ide> func (AufsDriver) Status() [][2]string {
<ide> return nil
<ide> }
<ide>
<add>// Exists returns true if the given id is registered with
<add>// this driver
<ide> func (a AufsDriver) Exists(id string) bool {
<ide> if _, err := os.Lstat(path.Join(a.rootPath(), "diff", id)); err... | 3 |
Javascript | Javascript | remove superfluous check in while loop | b359be74a1102b7220235b41821a410cd6f3b7a0 | <ide><path>src/renderers/shared/stack/reconciler/ReactUpdates.js
<ide> var flushBatchedUpdates = function() {
<ide> // componentDidUpdate) but we need to check here too in order to catch
<ide> // updates enqueued by setState callbacks.
<ide> while (dirtyComponents.length) {
<del> if (dirtyComponents.length) {
... | 1 |
Ruby | Ruby | fix documentation for actionmailer template names | 94b97f6154e3a86fe4520dc685d010a533105650 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> module ActionMailer # :nodoc:
<ide> #
<ide> # For example, if the following templates exist:
<ide> # * signup_notification.text.erb
<del> # * signup_notification.text.html.erb
<del> # * signup_notification.text.xml.builder
<del> # * signup_notification.te... | 1 |
Python | Python | update error code | 872121955c1ba3e8b9d4b2ee9b9ac89b2e85d1d5 | <ide><path>spacy/cli/pretrain.py
<ide> def get_vectors_loss(ops, docs, prediction, objective="L2"):
<ide> elif objective == "cosine":
<ide> loss, d_target = get_cossim_loss(prediction, target)
<ide> else:
<del> raise ValueError(Errors.E139.format(loss_func=objective))
<add> raise ValueErro... | 1 |
Python | Python | fix momentum value flag from string to float | ccb463174f17bab2626d9c292e2d82038f07e8a5 | <ide><path>research/attention_ocr/python/common_flags.py
<ide> def define():
<ide> flags.DEFINE_string('optimizer', 'momentum',
<ide> 'the optimizer to use')
<ide>
<del> flags.DEFINE_string('momentum', 0.9,
<add> flags.DEFINE_float('momentum', 0.9,
<ide> 'momentum value ... | 1 |
Text | Text | explain arbitrariness of ref name in callback | 79be3543ddf9ea7a12a40411e93daecada108645 | <ide><path>docs/docs/refs-and-the-dom.md
<ide> class CustomTextInput extends React.Component {
<ide>
<ide> render() {
<ide> // Use the `ref` callback to store a reference to the text input DOM
<del> // element in this.textInput.
<add> // element in an instance field (for example, this.textInput).
<ide> ... | 1 |
Text | Text | add parentheses to print commands | d63ea99e3f43c0d39bdd496067e2fc5035919087 | <ide><path>guide/english/python/basic-operators/index.md
<ide> A membership operator is used to identify membership in any sequence (e.g. lists
<ide> a = [1,2,3,4,5]
<ide>
<ide> #Is 3 in the list a?
<del>print 3 in a # prints True
<add>print( 3 in a ) # prints True
<ide>
<ide> #Is 12 not in list a?
<del>print 1... | 1 |
Ruby | Ruby | fix failing ap tests | 0f4da5b39394fe1096e93a7f2600f4d90330d1c0 | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def test_nested_resource_constraints
<ide>
<ide> def test_named_routes_collision_is_avoided_unless_explicitly_given_as
<ide> assert_equal "/c/1", routes_collision_path(1)
<del> assert_equal "/forced_collision", routes_forced_collision_path
<add> ass... | 1 |
Go | Go | synchronize mkdirall() with latest os.mkdirall() | f058afc861c2f56bf9e97472e99df65c6493e694 | <ide><path>pkg/system/filesys_windows.go
<ide> func mkdirall(path string, perm *windows.SecurityAttributes) error {
<ide> if dir.IsDir() {
<ide> return nil
<ide> }
<del> return &os.PathError{
<del> Op: "mkdir",
<del> Path: path,
<del> Err: syscall.ENOTDIR,
<del> }
<add> return &os.PathError{Op: "mkdi... | 1 |
Java | Java | add more systrace to rn startup | b1d205a28f7897e582cced36947c84e7bce7dd09 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> private ReactApplicationContext createReactContext(
<ide> catalystInstance.setGlobalVariable("__RCTProfileIsProfiling", "true");
<ide> }
<ide> ReactMarker.logMarker(ReactMarkerConstants.PRE_RUN_JS_BUNDLE_START);
<add>... | 2 |
Mixed | Javascript | move all helpers to src/helpers | c8bdca62e89b4d6d9f334cec7a8bfa673725014c | <ide><path>docs/getting-started/v3-migration.md
<ide> Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released
<ide> * `helpers.getValueAtIndexOrDefault` was renamed to `helpers.valueAtIndexOrDefault`
<ide> * `helpers.easingEffects` was renamed to `helpers.easing.effects`
<ide> * `helpers.log10` ... | 25 |
PHP | PHP | add missing return datatype | a1b0a996ab9ab04702a407169c29a34a17173c97 | <ide><path>src/Illuminate/Queue/Console/ListFailedCommand.php
<ide> private function extractJobName($payload)
<ide> * Match the job name from the payload.
<ide> *
<ide> * @param array $payload
<del> * @return string
<add> * @return string|null
<ide> */
<ide> protected function matchJob... | 3 |
Go | Go | move "commit" to daemon/commit.go | fdad41f5b921dfa06eec613b86147a22aeea5835 | <ide><path>daemon/commit.go
<add>package daemon
<add>
<add>import (
<add> "github.com/docker/docker/engine"
<add> "github.com/docker/docker/image"
<add> "github.com/docker/docker/runconfig"
<add>)
<add>
<add>func (daemon *Daemon) ContainerCommit(job *engine.Job) engine.Status {
<add> if len(job.Args) != 1 {
<add> retu... | 4 |
Javascript | Javascript | use global.gc() instead of gc() | 715e3c6226aa2bd5ec6ed00db1185674e4989e07 | <ide><path>test/parallel/test-fs-filehandle.js
<ide> common.expectWarning({
<ide> ]
<ide> });
<ide>
<del>gc(); // eslint-disable-line no-undef
<add>global.gc();
<ide>
<ide> setTimeout(() => {}, 10); | 1 |
Javascript | Javascript | create source with buffers for wasm | d5ad14813fac3e86523fadbb1c10b0edae27ea91 | <ide><path>lib/wasm/WebAssemblyGenerator.js
<ide> class WebAssemblyGenerator extends Generator {
<ide> // TODO remove this casts when webpack-sources is fixed
<ide> // source() should have return type (string | Buffer)
<ide> const sourceAsAny = /** @type {TODO} */ (source);
<del> let bin = /** @type {ArrayBuffer... | 1 |
Python | Python | remove unnecessary imports | 3184aab941f28dc6c5c305fbac43263bc66f4d1a | <ide><path>numpy/distutils/command/build_ext.py
<ide> msvc_version
<ide> from numpy.distutils.command.config_compiler import show_fortran_compilers
<ide>
<del>try:
<del> set
<del>except NameError:
<del> from sets import Set as set
<ide>
<ide> class build_ext (old_build_ext):
<ide>
<ide><path>numpy/distuti... | 3 |
Mixed | Javascript | allow specifying labels in time scale options | abbddd1298c6dee2e294bf6689b4e62160087347 | <ide><path>docs/axes/cartesian/time.md
<ide> The `ticks.source` property controls the ticks generation.
<ide>
<ide> * `'auto'`: generates "optimal" ticks based on scale size and time options
<ide> * `'data'`: generates ticks from data (including labels from data `{t|x|y}` objects)
<del>* `'labels'`: generates ticks fr... | 5 |
Ruby | Ruby | fix another leftover | 4b606d07137aab247552313c6041bdca89456604 | <ide><path>railties/lib/rails/cli.rb
<del>require 'rails/app_rails_loader'
<add>require 'rails/app_loader'
<ide>
<ide> # If we are inside a Rails application this method performs an exec and thus
<ide> # the rest of this script is not run. | 1 |
Ruby | Ruby | remove unncessary arguments passed to arel_table | fc94c03c1d509eda7f87ab216e8d1115afbfd1ed | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def select_limited_ids_array(options, join_dependency)
<ide> def construct_finder_sql_for_association_limiting(options, join_dependency)
<ide> scope = scope(:find)
<ide>
<del> relation = arel_table(options[:from])
<add> ... | 2 |
Java | Java | update copyright date in contextloaderutils | dc6eaad2e96fac35df9ef2595d5acf7379a59525 | <ide><path>spring-test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ma... | 1 |
Javascript | Javascript | correct the tests | 8fe4295a064caa699edd902711d396164cf092f4 | <ide><path>test/ng/directive/ngIncludeSpec.js
<ide> describe('ng-include', function() {
<ide> $rootScope.url = 'url1';
<ide> $rootScope.$digest();
<ide> $httpBackend.flush();
<del> expect(element.children().scope()).toBeTruthy();
<add> expect(element.children().scope().$parent).toBe($rootScope);
<ide>... | 1 |
PHP | PHP | add ssl option | 76d2075ffc137b882df833d61f4eab544dee4cae | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function promote($which = null) {
<ide> *
<ide> * There are a few 'special' parameters that can change the final URL string that is generated
<ide> *
<del> * - `base` - Set to false to remove the base path from the generated url. If your application
<add> * ... | 2 |
Mixed | Javascript | support all arraybufferview types | a8f460f12d81f63d95b3f1bc12a89e36cae2b271 | <ide><path>doc/api/crypto.md
<ide> const cert2 = crypto.Certificate();
<ide> <!-- YAML
<ide> added: v0.11.8
<ide> -->
<del>- `spkac` {string | Buffer | Uint8Array}
<add>- `spkac` {string | Buffer | TypedArray | DataView}
<ide> - Returns {Buffer} The challenge component of the `spkac` data structure, which
<ide> include... | 3 |
Go | Go | fix grammatical problems in several annotations | 3c376a882b89bc1ff4f7b47667f49440a516bd70 | <ide><path>api/errdefs/is.go
<ide> func getImplementer(err error) error {
<ide> }
<ide> }
<ide>
<del>// IsNotFound returns if the passed in error is a ErrNotFound
<add>// IsNotFound returns if the passed in error is an ErrNotFound
<ide> func IsNotFound(err error) bool {
<ide> _, ok := getImplementer(err).(ErrNotFoun... | 1 |
Go | Go | remove plugin root from filesystem | 5690730a7471726bbaf813e634a7117a562dfb8c | <ide><path>integration-cli/docker_cli_plugins_test.go
<ide> import (
<ide> "github.com/docker/docker/pkg/integration/checker"
<ide> "github.com/go-check/check"
<ide>
<add> "io/ioutil"
<add> "os"
<add> "os/exec"
<add> "path/filepath"
<ide> "strings"
<ide> )
<ide>
<ide> func (s *DockerSuite) TestPluginBasicOps(c *ch... | 2 |
Text | Text | add single arg scenario for util.format | 78af0df25ed803a59ba39cd7c869bac8d87f0548 | <ide><path>doc/api/util.md
<ide> Each argument is converted to a string using `util.inspect()`.
<ide> util.format(1, 2, 3); // '1 2 3'
<ide> ```
<ide>
<add>If only one argument is passed to `util.format()`, it is returned as it is
<add>without any formatting.
<add>
<add>```js
<add>util.format('%% %s'); // '%% %s'
<add... | 1 |
Python | Python | add tests to check labels, kind and annotations | 62aa7965a32f1f8dde83cb9c763deef5b234092b | <ide><path>chart/tests/test_basic_helm_chart.py
<ide> import unittest
<ide> from subprocess import CalledProcessError
<ide> from typing import Any, Dict, List, Union
<add>from unittest import mock
<ide>
<ide> import jmespath
<ide> from parameterized import parameterized
<ide> def test_network_policies_are_valid(self):... | 3 |
Python | Python | set version to 2.3.2 | 7ea2cc76508cdcd6d854381f00f1da79309a0df3 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.3.1"
<add>__version__ = "2.3.2"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/m... | 1 |
Text | Text | fix text to follow portuguese language syntax | e2157d0eeaff9b9e9d96896a0efaa31ca7892f5e | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-flex-grow-property-to-expand-items.portuguese.md
<ide> localeTitle: Use a propriedade flex-grow para expandir itens
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> O oposto de <code>flex-shrink</code> é a prop... | 1 |
Go | Go | fix event removal | 670564d07096c190011bf7adf74afe4d61ef9720 | <ide><path>server/server.go
<ide> func (srv *Server) ContainerKill(job *engine.Job) engine.Status {
<ide> return engine.StatusOK
<ide> }
<ide>
<add>func (srv *Server) EvictListener(from string) {
<add> srv.Lock()
<add> if old, ok := srv.listeners[from]; ok {
<add> delete(srv.listeners, from)
<add> close(old)
<add> ... | 1 |
Python | Python | expend ccompiler tests to cover s390x features | 9cedd787f630fadcff4d256b89aa6ea19bdcdeef | <ide><path>numpy/distutils/tests/test_ccompiler_opt.py
<ide> def assert_(expr, msg=''):
<ide> ppc64le = ("gcc", "clang"),
<ide> armhf = ("gcc", "clang"),
<ide> aarch64 = ("gcc", "clang"),
<add> s390x = ("gcc", "clang"),
<ide> noarch = ("gcc",)
<ide> )
<ide>
<ide> def test_args_options(self):
<ide> ... | 1 |
Python | Python | fix lint error for cloud_lib | 7ba78e942757b1911e93bd298ad07492ca8fc17e | <ide><path>official/utils/logs/cloud_lib.py
<ide>
<ide>
<ide> def on_gcp():
<del> """Detect whether the current running environment is on GCP"""
<add> """Detect whether the current running environment is on GCP."""
<ide> try:
<ide> response = requests.get(GCP_METADATA_URL, headers=GCP_METADATA_HEADER)
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.