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 | add comment about unused paremeter | 2fadc8d89ec08631d72028a6513a77e9f3b8fe2f | <ide><path>keras/layers/dense_attention.py
<ide> def compute_mask(self, inputs, mask=None):
<ide> return None
<ide>
<ide> def compute_output_shape(self, input_shape):
<add> # return_attention_scores argument of BaseDenseAttention.call method
<add> # is ignored. Output shape of attention_scores cannot be re... | 1 |
Text | Text | move instruction to instructions section | 8069923febb6922c792119533b29a20c0d0c53cc | <ide><path>curriculum/challenges/english/08-coding-interview-prep/rosetta-code/24-game.english.md
<ide> challengeType: 5
<ide>
<ide> ## Description
<ide> <section id='description'>
<add>The <a href="http://en.wikipedia.org/wiki/24_Game" target="_blank">24 Game</a> tests a person's mental arithmetic.
<add>The aim of th... | 1 |
Javascript | Javascript | fix ui bugs in tree view | 3f7ebfdfe2a1fa90b0854028a5db057adacd46c1 | <ide><path>airflow/www/static/js/tree.js
<ide> function nodeClass(d) {
<ide> document.addEventListener('DOMContentLoaded', () => {
<ide> $('span.status_square').tooltip({ html: true });
<ide>
<del> const now = Date.now() / 1000;
<del> const devicePixelRatio = window.devicePixelRatio || 1;
<ide> // JSON.parse is ... | 1 |
Go | Go | retain deleted entries for longer time | 8936daab5e9aacdb1f6bb8c2b512235e4b5310ac | <ide><path>libnetwork/networkdb/cluster.go
<ide> import (
<ide> "github.com/hashicorp/memberlist"
<ide> )
<ide>
<del>const reapInterval = 2 * time.Second
<add>const reapInterval = 30 * time.Second
<ide>
<ide> type logWriter struct{}
<ide>
<ide><path>libnetwork/networkdb/delegate.go
<ide> func (nDB *NetworkDB) handl... | 2 |
Text | Text | add descriptive hint for skyline project step 22 | 6cc767a3bf21178b2231918b343d46c0259ea71b | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98de.md
<ide> dashedName: step-22
<ide>
<ide> # --description--
<ide>
<del>Create a new variable below the other one called `--building-color2` and give it a value of `#66cc99`. Then... | 1 |
Text | Text | fix typo in stream doc | c09dfe3a0bf63ecff522a7f9c06c21593969e69d | <ide><path>doc/api/stream.md
<ide> total size of the internal write buffer is below the threshold set by
<ide> the size of the internal buffer reaches or exceeds the `highWaterMark`, `false`
<ide> will be returned.
<ide>
<del>A key goal of the `stream` API, an in particular the [`stream.pipe()`] method,
<add>A key goa... | 1 |
Ruby | Ruby | fix string#last example | 53ef85dae8081e81f7dbb1f09a6150777f509cd4 | <ide><path>activesupport/lib/active_support/core_ext/string/access.rb
<ide> def first(limit = 1)
<ide> # the given limit is greater than or equal to the string length, returns self.
<ide> #
<ide> # str = "hello"
<del> # str.last #=> "h"
<add> # str.last #=> "o"
<ide> # str.last(1) #=> "h"
<ide> ... | 1 |
Go | Go | fix missing err assignment in bridge creation | d5c78a4c07929eda2d448f9b2a09fb3d65a75a2d | <ide><path>daemon/networkdriver/bridge/driver.go
<ide> func configureBridge(bridgeIP string, bridgeIPv6 string, enableIPv6 bool) error
<ide> return err
<ide> }
<ide>
<del> if netlink.NetworkLinkAddIp(iface, ipAddr, ipNet); err != nil {
<add> if err := netlink.NetworkLinkAddIp(iface, ipAddr, ipNet); err != nil {
<id... | 1 |
Javascript | Javascript | update more tests for ember-metal-views | f959c8d9664ea53a8fca1ba74aa8ff575db7c2c6 | <ide><path>packages/ember-metal-views/lib/renderer.js
<ide> function Renderer_renderTree(_view, _parentView, _insertAt) {
<ide> var total = 1;
<ide> var levelBase = _parentView ? _parentView._level+1 : 0;
<ide>
<del> // if root view && view has a _morph assigned or _parentView._elementInserted
<del> var willInse... | 4 |
Ruby | Ruby | move dbslayer to the boneyard | 511c92158159843b15e33b05a2659b46a0f76a94 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "curlftpfs" => "homebrew/x11",
<ide> "cwm" => "homebrew/x11",
<ide> "dart" => "dart-lang/dart",
<add> "dbslayer" => "homebrew/boneyard",
<ide> "ddd" => "homebrew/x11",
<ide> "denyhosts" => "homebrew/boneyard",
<ide> "dmenu" => "homebrew/x11", | 1 |
Python | Python | fix doc strings for bigquery tests | 8b1ebdacd8ddbe841a74830f750ed8f5e6f38f0a | <ide><path>tests/providers/google/cloud/operators/test_bigquery.py
<ide> def test_execute_no_force_rerun(self, mock_hook):
<ide> def test_bigquery_insert_job_operator_async(mock_hook):
<ide> """
<ide> Asserts that a task is deferred and a BigQueryInsertJobTrigger will be fired
<del> when the BigQueryInsertJo... | 1 |
Python | Python | fix bugs and warnings from lgtm report | d880dce560fd6369d7418ba83c03cc5947993103 | <ide><path>numpy/f2py/crackfortran.py
<ide> def _eval_scalar(value, params):
<ide> if _is_kind_number(value):
<ide> value = value.split('_')[0]
<ide> try:
<del> value = str(eval(value, {}, params))
<add> value = eval(value, {}, params)
<add> value = (repr if isinstance(value, str) e... | 2 |
Javascript | Javascript | use warning module | eb36b57079f520a8ee690ba02559d6ce24d7a03f | <ide><path>src/browser/__tests__/ReactBrowserEventEmitter-test.js
<ide> describe('ReactBrowserEventEmitter', function() {
<ide> expect(idCallOrder[0]).toBe(getID(CHILD));
<ide> expect(console.warn.calls.length).toEqual(1);
<ide> expect(console.warn.calls[0].args[0]).toBe(
<del> 'Returning `false` from ... | 2 |
Mixed | Python | add search_param and ordering_param to settings | 2353878951b0607a95d539c27c362d0353c53119 | <ide><path>docs/api-guide/filtering.md
<ide> For example:
<ide>
<ide> search_fields = ('=username', '=email')
<ide>
<add>By default, the search parameter is named `'search`', but this may be overridden with the `SEARCH_PARAM` setting.
<add>
<ide> For more details, see the [Django documentation][search-django-admi... | 6 |
Javascript | Javascript | remove unused variable | e44b43877731a8b2c40936776cca2a94a7e2bc7b | <ide><path>tools/doc/addon-verify.js
<ide> let id = 0;
<ide> // Just to make sure that all examples will be processed
<ide> tokens.push({ type: 'heading' });
<ide>
<del>var oldDirs = fs.readdirSync(verifyDir);
<del>oldDirs = oldDirs.filter(function(dir) {
<del> return /^\d{2}_/.test(dir);
<del>}).map(function(dir) {
... | 1 |
Mixed | Text | add loggers registry & logger docs sections | 5230529de2edd89869800a7c19bf3890d003b5bb | <ide><path>spacy/cli/train.py
<ide> def train_while_improving(
<ide> step (int): How many steps have been completed.
<ide> score (float): The main score form the last evaluation.
<ide> other_scores: : The other scores from the last evaluation.
<del> loss: The accumulated losses throughout... | 3 |
Javascript | Javascript | change authentication method again | 66e671862bbde00659ede6b6e86c54b06810e089 | <ide><path>script/vsts/lib/release-notes.js
<ide> module.exports.generateForVersion = async function(
<ide> if (githubToken) {
<ide> changelog.setGithubAccessToken(githubToken);
<ide> octokit.authenticate({
<del> type: 'oauth',
<add> type: 'token',
<ide> token: githubToken
<ide> });
<ide> ... | 1 |
Python | Python | update doc for np.full | cd7aa18d41eb7d8c9c62633d8227567a98d44176 | <ide><path>numpy/core/numeric.py
<ide> def full(shape, fill_value, dtype=None, order='C'):
<ide> ----------
<ide> shape : int or sequence of ints
<ide> Shape of the new array, e.g., ``(2, 3)`` or ``2``.
<del> fill_value : scalar
<add> fill_value : scalar or array_like
<ide> Fill value.
<id... | 1 |
Go | Go | allocate daemon listening ports | 7c225333f22378e380309bd0c3afc1b3311b1373 | <ide><path>api/server/server.go
<ide> import (
<ide>
<ide> log "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/api"
<add> "github.com/docker/docker/daemon/networkdriver/portallocator"
<ide> "github.com/docker/docker/engine"
<ide> "github.com/docker/docker/pkg/listenbuffer"
<ide> "github.com/docker/do... | 2 |
Javascript | Javascript | remove explicit object syntax | 8003ab9cf5c711eb00f741bbd89def56b066b999 | <ide><path>packages/react-cache/src/LRU.js
<ide> const {
<ide> unstable_IdlePriority: IdlePriority,
<ide> } = Scheduler;
<ide>
<del>type Entry<T> = {|
<add>type Entry<T> = {
<ide> value: T,
<ide> onDelete: () => mixed,
<ide> previous: Entry<T>,
<ide> next: Entry<T>,
<del>|};
<add>};
<ide>
<ide> export funct... | 259 |
Text | Text | update url for 404 error | ab4367a751ac75ca42fea9a8dd2211adab9dd273 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/returning-boolean-values-from-functions.english.md
<ide> challengeType: 1
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>You may recall from <a href="waypoint-comparison-with-the-equality-operator" ... | 1 |
Python | Python | change lxc type to lxd | daeec9ce2d1ec51681c2b7e79f9f8e60d816c5d9 | <ide><path>libcloud/container/types.py
<ide> class Provider(object):
<ide> GKE = 'GKE'
<ide> JOYENT = 'joyent'
<ide> KUBERNETES = 'kubernetes'
<del> LXC = 'lxc'
<add> LXD = 'lxd'
<ide> RANCHER = 'rancher'
<ide>
<ide> | 1 |
Javascript | Javascript | convert easy files to prettier | c1989115613242ea35504744f37cc1f03dd641f1 | <ide><path>babel-preset/configs/hmr.js
<ide> * This source code is licensed under the BSD-style license found in the
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<add> *
<add> * @format
<ide> */
<... | 27 |
Text | Text | add note about disabling prefetching | fc9fa106187d0fd7e4a83b8d1ddfcd6ca8185c33 | <ide><path>docs/api-reference/next/link.md
<ide> export default Home
<ide> - `href` - The path or URL to navigate to. This is the only required prop
<ide> - `as` - Optional decorator for the path that will be shown in the browser URL bar. Before Next.js 9.5.3 this was used for dynamic routes, check our [previous docs](... | 1 |
Javascript | Javascript | fix wrong paragraph order | 40d4bb58633f08d5e0d01819db7da765a9ea2f36 | <ide><path>src/ng/directive/ngRepeat.js
<ide> * For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements
<ide> * will be associated by item identity in the array.
<ide> *
<del> * * `variable in expression as alias_expression` – You can also provid... | 1 |
Mixed | Ruby | add cpu_time, idle_time, and allocations to event | 42fec4b8de8c40d7778f936e200081c0dded1ed0 | <ide><path>activesupport/CHANGELOG.md
<add>* Add cpu_time, idle_time, and allocations to Event
<add>
<add> *Eileen M. Uchitelle*, *Aaron Patterson*
<add>
<ide> * RedisCacheStore: support key expiry in increment/decrement.
<ide>
<ide> Pass `:expires_in` to `#increment` and `#decrement` to set a Redis EXPIRE ... | 4 |
PHP | PHP | reset the eventmanager for on setup | 93577235c8e1ed9ace81f9152e3ba2b878155323 | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> namespace Cake\TestSuite;
<ide>
<ide> use Cake\Core\Configure;
<add>use Cake\Event\EventManager;
<ide> use Cake\Network\Request;
<ide> use Cake\Network\Session;
<ide> use Cake\Routing\DispatcherFactory;
<ide> abstract class IntegrationTestCase extends TestCase {
<... | 1 |
Python | Python | remove duplicate keys in [en|fi] data dicts | 7f579ae834398b2045bd19e9032e82ee425739c6 | <ide><path>spacy/en/morph_rules.py
<ide> "them": {LEMMA: PRON_LEMMA, "PronType": "Prs", "Person": "Three", "Number": "Plur", "Case": "Acc"},
<ide>
<ide> "mine": {LEMMA: PRON_LEMMA, "PronType": "Prs", "Person": "One", "Number": "Sing", "Poss": "Yes", "Reflex": "Yes"},
<del> "yours... | 2 |
Javascript | Javascript | adjust test cases to pass production tests | 57bb2dd397b56160f47f28552e4379b04680f2a5 | <ide><path>test/cases/parsing/issue-11353/async_generator_function.js
<ide> export default async function* asyncIdMaker(start = 1, end = 5){
<ide> for (let i = start; i <= end; i++) {
<ide>
<del> // yay, can use await!
<ide> await new Promise(resolve => setTimeout(resolve, 1000));
<ide>
<ide> yield i; | 1 |
Java | Java | introduce tcp & udp server port scanning utility | f311bf3daf2fb359e96e213420c55a39f1c71d4a | <ide><path>spring-core/src/main/java/org/springframework/util/SocketUtils.java
<add>/*
<add> * Copyright 2002-2013 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obta... | 6 |
Mixed | PHP | fix translator choice replacements | 17cd2bf854d98b1ac9b26321ec81d4a40d82f0d5 | <ide><path>readme.md
<ide> - Session driver now automatically set to `array` when running Artisan tasks.
<ide> - Added static `unguard` method to Eloquent to disable all mass assignment protection.
<ide> - Added `--seed` option to `migrate` command.
<add>- Fix bug with replacements not being made on `Lang::choice`.
<id... | 3 |
Ruby | Ruby | remove unnecessary methods for `nullrelation` | fa84a4d7c1ae1462c63502a228db0101a92f6ab0 | <ide><path>activerecord/lib/active_record/null_relation.rb
<ide> module ActiveRecord
<ide> module NullRelation # :nodoc:
<del> def exec_queries
<del> @records = [].freeze
<del> end
<del>
<ide> def pluck(*column_names)
<ide> []
<ide> end
<ide> def delete(_id_or_array)
<ide> 0
<ide> e... | 1 |
Python | Python | remove drop remainder from resnet pipeline. | 3d2f8959774815a42b4c6f6cb0e65699e5816613 | <ide><path>official/resnet/resnet_run_loop.py
<ide> def process_record_dataset(dataset, is_training, batch_size, shuffle_buffer,
<ide> lambda value: parse_record_fn(value, is_training),
<ide> batch_size=batch_size,
<ide> num_parallel_batches=1,
<del> drop_remainder=True))
<add> ... | 1 |
Python | Python | add type hints to xlm-roberta-xl models | cfd623a859890c6d106610d3c688064eadc7bd61 | <ide><path>src/transformers/models/xlm_roberta_xl/modeling_xlm_roberta_xl.py
<ide> def set_output_embeddings(self, new_embeddings):
<ide> @replace_return_docstrings(output_type=CausalLMOutputWithCrossAttentions, config_class=_CONFIG_FOR_DOC)
<ide> def forward(
<ide> self,
<del> input_ids=None,
<d... | 1 |
Javascript | Javascript | update use of gatsby-link | 2e0945ed7ee9dbb06f1db02d3f31182fef317040 | <ide><path>packages/learn/src/components/Header/index.js
<ide> import React from 'react';
<del>import Link from 'gatsby-link';
<add>import { Link } from 'gatsby';
<ide> import FCCSearch from 'react-freecodecamp-search';
<ide>
<ide> import NavLogo from './components/NavLogo';
<ide><path>packages/learn/src/components/Ma... | 5 |
Python | Python | simplify lookup hashing | f2c8b1e3629ba23f1db62352868cb95374d42cdb | <ide><path>spacy/lookups.py
<ide>
<ide> from .errors import Errors
<ide> from .util import SimpleFrozenDict, ensure_path
<del>from .compat import basestring_
<ide> from .strings import get_string_id
<ide>
<ide>
<del>def ensure_hash(key):
<del> if isinstance(key, basestring_):
<del> return get_string_id(key... | 2 |
Text | Text | remove sentence not needed | b11dd87047f40c4c4412ecf784d7446c5ad2a4fb | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return.md
<ide> var answer = plusThree(5); // 8
<ide>
<ide> # --instructions--
<ide>
<del>Create a function `timesFive` that accepts one argument, multiplies it by `5`, and return... | 1 |
Go | Go | add integration test for constraints | 1b1a7f29e5d54a1c9ff892ccc8cf627c08f47ec9 | <ide><path>integration-cli/daemon_swarm.go
<ide> func (d *SwarmDaemon) getServiceTasks(c *check.C, service string) []swarm.Task {
<ide> return tasks
<ide> }
<ide>
<add>func (d *SwarmDaemon) checkServiceRunningTasks(c *check.C, service string) func(*check.C) (interface{}, check.CommentInterface) {
<add> return func(*c... | 2 |
PHP | PHP | fix failing tests | ed0dc2603eadc3ed22a7d2792827bfc8fd338e98 | <ide><path>tests/TestCase/Shell/CompletionShellTest.php
<ide> public function testSubCommandsAppPlugin()
<ide> $this->Shell->runCommand(['subcommands', 'app.sample']);
<ide> $output = $this->out->output;
<ide>
<del> $expected = "derp load sample\n";
<add> $expected = "derp load returnValu... | 1 |
PHP | PHP | remove double space to satisfy phpcs | 3fe062c0203376a579b8727316c2492f7cb712c8 | <ide><path>tests/TestCase/Event/EventManagerTest.php
<ide> public function testMatchingListeners()
<ide> $this->assertEmpty($manager->matchingListeners('^test'));
<ide>
<ide> $expected = ['fake.event', 'real.event', 'test.event', 'event.test'];
<del> $result = $manager->matchingListeners('event... | 1 |
Ruby | Ruby | remove usless attr_reader | a15339ff6527ba2310cb578da2d8e7e0d6b6014e | <ide><path>actionview/lib/action_view/renderer/collection_renderer.rb
<ide> class CollectionRenderer < PartialRenderer # :nodoc:
<ide> class CollectionIterator # :nodoc:
<ide> include Enumerable
<ide>
<del> attr_reader :collection
<del>
<ide> def initialize(collection)
<ide> @collection = ... | 1 |
PHP | PHP | add __call to filesystem manager | 25b4791d7aa4d7c1a833553ac7c3d8de648eedea | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> public function extend($driver, Closure $callback)
<ide> return $this;
<ide> }
<ide>
<add> /**
<add> * Dynamically call the default driver instance.
<add> *
<add> * @param string $method
<add> * @param array $parameters
<add> * @return mixed... | 1 |
Javascript | Javascript | flow type reactdomcomponenttree | 8b155d261368afb1fe93219278b581a1032ea1d7 | <ide><path>packages/react-dom/src/client/ReactDOMComponentTree.js
<ide> *
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<ide> */
<ide>
<add>import type {Fiber} from 'react-reconciler/src/ReactFiber';
<ad... | 4 |
Javascript | Javascript | implement createnodemock for reacttestrenderer | f3569a2c311808d4d6d2b9dcf7ec6df064bce76e | <ide><path>src/renderers/shared/stack/reconciler/ReactCompositeComponent.js
<ide> var ReactCompositeComponent = {
<ide> * @final
<ide> * @private
<ide> */
<del> attachRef: function(ref, component) {
<add> attachRef: function(ref, component, transaction) {
<ide> var inst = this.getPublicInstance();
<ide> ... | 9 |
Javascript | Javascript | remove unnecessary indirection in events | ef95128ae28e77793330b391c4512532a58181c5 | <ide><path>src/renderers/dom/client/ReactBrowserEventEmitter.js
<ide> 'use strict';
<ide>
<ide> var EventConstants = require('EventConstants');
<del>var EventPluginHub = require('EventPluginHub');
<ide> var EventPluginRegistry = require('EventPluginRegistry');
<ide> var ReactEventEmitterMixin = require('ReactEventEmit... | 7 |
Ruby | Ruby | move runtime back to the thread.current | dd61a817dea85990f13664d74bca15bc5796b76e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> class AbstractAdapter
<ide> include QueryCache
<ide> include ActiveSupport::Callbacks
<ide>
<del> attr_accessor :runtime
<ide> define_callbacks :checkout, :checkin
<ide>
<ide> def initialize(connection... | 4 |
Java | Java | remove flag enable_blocking_queues_for_animated | b5a40fb4f482a22f2dc749e6253520d3a1d4301c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java
<ide> import com.facebook.react.bridge.UIManagerListener;
<ide> import com.facebook.react.bridge.WritableMap;
<ide> import com.facebook.react.common.annotations.VisibleForTesting;
<del>import com.facebook.react.config.ReactFeatu... | 2 |
PHP | PHP | fix problems with dots in validator | ded87415833e3708b4994a4abe8c53575d17f24a | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function replacePlaceholders($data)
<ide> $originalData = [];
<ide>
<ide> foreach ($data as $key => $value) {
<del> if (is_array($value)) {
<del> $value = $this->replacePlaceholders($value);
<del> }
... | 2 |
Ruby | Ruby | remove deprecated branch on the scope method | 9281adc64acc5071c1d0d699158c97eae8430810 | <ide><path>activerecord/lib/active_record/scoping/named.rb
<ide> def scope(name, body, &block)
<ide> extension = Module.new(&block) if block
<ide>
<ide> singleton_class.send(:define_method, name) do |*args|
<del> if body.respond_to?(:call)
<del> scope = all.scoping { body.ca... | 1 |
PHP | PHP | break inheritance with objectcollection | e490d20e1a74d60c025bb3488dc8e90045d0c59e | <ide><path>lib/Cake/Console/Shell.php
<ide> use Cake\Utility\File;
<ide> use Cake\Utility\Inflector;
<ide> use Cake\Utility\MergeVariablesTrait;
<add>use Cake\Utility\ObjectCollection;
<ide> use Cake\Utility\String;
<ide>
<ide> /**
<ide> public function loadTasks() {
<ide> if ($this->tasks === true || empty($this->t... | 3 |
Text | Text | add missing yaml labels | 90cd3dd44e164ac7670516512cc364bb2b18eb4c | <ide><path>doc/api/cli.md
<ide> and profile Node.js instances. The tools attach to Node.js instances via a
<ide> tcp port and communicate using the [Chrome DevTools Protocol][].
<ide>
<ide> ### `--loader=file`
<del><!--
<add><!-- YAML
<ide> added: v9.0.0
<ide> -->
<ide> | 1 |
PHP | PHP | apply fixes from styleci | 8a221bf15334cdc864632f751736cc08d95e1cbb | <ide><path>src/Illuminate/Foundation/Testing/PendingCommand.php
<ide> namespace Illuminate\Foundation\Testing;
<ide>
<ide> use Mockery;
<del>use Illuminate\Support\Str;
<ide> use Illuminate\Console\OutputStyle;
<ide> use Illuminate\Contracts\Console\Kernel;
<del>use Mockery\Exception\BadMethodCallException;
<ide> use ... | 1 |
Python | Python | add init_config to nlp.create_pipe | 6b8bdb2d390c4d26577754c213170a0190bb2cc5 | <ide><path>spacy/language.py
<ide> def create_pipe(
<ide> *,
<ide> config: Optional[Dict[str, Any]] = SimpleFrozenDict(),
<ide> raw_config: Optional[Config] = None,
<add> init_config: Optional[Dict[str, Any]] = SimpleFrozenDict(),
<ide> validate: bool = True,
<ide> ) -> Callab... | 2 |
Ruby | Ruby | remove an unused method | 9a23a0350502c7b3c94cb9ee761dea3bc08c6271 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def all_attributes_exists?(attribute_names)
<ide> attribute_names.all? { |name| column_methods_hash.include?(name.to_sym) }
<ide> end
<ide>
<del> def attribute_condition(quoted_column_name, argument)
<del> case argument
<del> ... | 1 |
Java | Java | update package-info for org.springframework.test | 0026d8faf80ed100baec4f6fa9de4c8a8e5726a3 | <ide><path>spring-test/src/main/java/org/springframework/test/package-info.java
<del>
<ide> /**
<add> * Generic unit testing support classes.
<ide> *
<del> * This package contains the legacy JUnit 3.8 class hierarchy, which as of Spring 3.0
<del> * has been deprecated in favor of using the listener-based <em>Spring Te... | 1 |
Text | Text | add bash symbol for docker network inspect | 7c3a26db166bf4d618ae414470f6bed7160f1371 | <ide><path>docs/userguide/networking/work-with-networks.md
<ide> $ docker network disconnect isolated_nw container3
<ide> ```
<ide>
<ide> ```bash
<del>docker network inspect isolated_nw
<add>$ docker network inspect isolated_nw
<ide>
<ide> [
<ide> { | 1 |
Ruby | Ruby | skip non-ruby files when collecting formulae names | af94c4fc50384924752bc917f6a56b28f257500f | <ide><path>Library/Homebrew/cmd/pull.rb
<ide> def pull
<ide> "git", "diff-tree", "-r", "--name-only",
<ide> "--diff-filter=AM", orig_revision, "HEAD", "--", tap.formula_dir.to_s
<ide> ).each_line do |line|
<add> next unless line.end_with? ".rb\n"
<ide> name = "#{tap.name}/... | 1 |
Javascript | Javascript | add unbundling to packager | cc4a5d39db23c5c18b562cb0273d5edae65a287b | <ide><path>local-cli/bundle/bundle.js
<ide> const outputPrepack = require('./output/prepack');
<ide> /**
<ide> * Builds the bundle starting to look for dependencies at the given entry path.
<ide> */
<del>function bundle(argv, config) {
<add>function bundleWithOutput(argv, config, output) {
<ide> const args = parseC... | 15 |
Javascript | Javascript | fix the randomized test | 612feb7cea2697501fa8b8769dd05dd29f5fcde6 | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide>
<ide> it('renders the visible rows correctly after randomly mutating the editor', async () => {
<ide> const initialSeed = Date.now()
<del> for (var i = 0; i < 1; i++) {
<add> for (var i = 0; i ... | 1 |
PHP | PHP | use splfileinfo instead of file in assetmiddleware | c150c5ebf99d4693d8076276a6c797edc844e7ac | <ide><path>src/Routing/Middleware/AssetMiddleware.php
<ide> namespace Cake\Routing\Middleware;
<ide>
<ide> use Cake\Core\Plugin;
<del>use Cake\Filesystem\File;
<ide> use Cake\Utility\Inflector;
<ide> use Psr\Http\Message\ResponseInterface;
<ide> use Psr\Http\Message\ServerRequestInterface;
<add>use SplFileInfo;
<ide> ... | 1 |
PHP | PHP | add __debuginfo() to collection | eaa9179c3604f08ca4a3eeae2ab44d7b7c6779ce | <ide><path>src/Collection/Collection.php
<ide> public function __construct($items)
<ide>
<ide> parent::__construct($items);
<ide> }
<add>
<add> /**
<add> * Returns an array that can be used to describe the internal state of this
<add> * object.
<add> *
<add> * @return array
<add> */
... | 2 |
Javascript | Javascript | ignore firefox specific runtime errors | 3679d361694d711d0c871cf1f958520d48fd6fd3 | <ide><path>cypress/support/index.js
<ide> import './commands';
<ide> // require('./commands')
<ide>
<ide> Cypress.on('uncaught:exception', err => {
<add> console.log('Cypress detected uncaught exception', err.name);
<ide> // Rapidly cy.visiting pages seems to cause an uncaught exception. This seems
<ide> // to be... | 1 |
Python | Python | cleanup some imports involving reduce | 77e09f14bdf9eeebbd20ca861cb51da3e570bb72 | <ide><path>numpy/core/arrayprint.py
<ide> # and by Travis Oliphant 2005-8-22 for numpy
<ide>
<ide> import sys
<add>from functools import reduce
<ide> from . import numerictypes as _nt
<ide> from .umath import maximum, minimum, absolute, not_equal, isnan, isinf
<ide> from .multiarray import format_longfloat, datetime_... | 11 |
Text | Text | update livecheck blocks | e6e0ba0521576ee81630bd25abe60b412a529408 | <ide><path>docs/Cask-Cookbook.md
<ide> If the version depends on multiple header fields, a block can be specified, e.g.
<ide> strategy :header_match do |headers|
<ide> v = headers["content-disposition"][/MyApp-(\d+(?:\.\d+)*)\.zip/i, 1]
<ide> id = headers["location"][%r{/(\d+)/download$}i, 1]
<add> next if v.blank... | 1 |
Ruby | Ruby | remove useless function | cb3f25593b1137e344086364d4b1a52c08e8eb3b | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def permitted_scalar_filter(params, key)
<ide> end
<ide>
<ide> def array_of_permitted_scalars?(value)
<del> if value.is_a?(Array)
<del> value.all? {|element| permitted_scalar?(element)}
<del> end
<del> ... | 1 |
Text | Text | simplify pull request template | 99623af56dc4f9ba6209f0663a39f8327729f859 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<del><!-- IMPORTANT
<add><!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->
<ide>
<del>Before creating a PR, please make sure to verify the following by marking the checkbox... | 1 |
Ruby | Ruby | remove useless nil check | ed376985967e3c1391b57cf1f715b6a982e8c039 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def build_host_url(options)
<ide> end
<ide>
<ide> def named_host?(host)
<del> host && IP_HOST_REGEXP !~ host
<add> IP_HOST_REGEXP !~ host
<ide> end
<ide>
<ide> def normalize_protocol(protocol)
<ide> def norma... | 1 |
PHP | PHP | add additional test for sqlite/postgres datetimes | 5cd5edc41dd2049c9842078f160cbc8e8ef4c85b | <ide><path>tests/TestCase/Database/Schema/PostgresSchemaTest.php
<ide> public static function columnSqlProvider()
<ide> ['type' => 'datetime'],
<ide> '"created" TIMESTAMP'
<ide> ],
<add> [
<add> 'open_date',
<add> ['type' => 'datetime'... | 2 |
Text | Text | fix typo in 09.4-test-utils.md | 5167b7a5b2a77152e202682fbcc7184a6d71f8f2 | <ide><path>docs/docs/09.4-test-utils.md
<ide> Example usage:
<ide> ```javascript
<ide> React.addons.TestUtils.Simulate.click(myComponent);
<ide> React.addons.TestUtils.Simulate.change(myComponent);
<del>React.addons.TestUtils.Simulate.keydown(myComponent, {key: "Enter"});
<add>React.addons.TestUtils.Simulate.keyDown(my... | 1 |
Text | Text | unify the two contributing documents | 12116809980e390f1f5044a45e5e6ba367b2cad4 | <ide><path>CONTRIBUTING.md
<ide> # :tada: Contributing to Atom :tada:
<ide>
<del>These are just guidelines, not rules, use your best judgement and feel free
<del>to propose changes to this document in a pull request.
<add>The following is a set of guidelines for contributing to Atom and its packages,
<add>which are ho... | 3 |
Go | Go | remove job from execinspect | 621ee1f6a4cbc8ee8758ce77a0cf6215c88f12f7 | <ide><path>api/server/server.go
<ide> func getExecByID(eng *engine.Engine, version version.Version, w http.ResponseWri
<ide> if vars == nil {
<ide> return fmt.Errorf("Missing parameter 'id'")
<ide> }
<del> var job = eng.Job("execInspect", vars["id"])
<del> streamJSON(job, w, false)
<del> return job.Run()
<add>
<add... | 3 |
PHP | PHP | fix incorrect doc blocks and phpcs | 1cec66611e4b17027ce2623f209164cc30851159 | <ide><path>src/Shell/Helper/ProgressHelper.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Te... | 2 |
PHP | PHP | use class throwable instead of exception | bb0a7d410f27908f5ec1e95e7f95e775b793d150 | <ide><path>src/Http/Exception/BadRequestException.php
<ide> class BadRequestException extends HttpException
<ide> *
<ide> * @param string|null $message If no message is given 'Bad Request' will be the message
<ide> * @param int|null $code Status code, defaults to 400
<del> * @param \Exception|null $p... | 12 |
PHP | PHP | add timestampstz function to schema blueprint | cc7ac2b81471b4084d1dfbf44851556e705fd927 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function dropTimestamps()
<ide> $this->dropColumn('created_at', 'updated_at');
<ide> }
<ide>
<add> /**
<add> * Indicate that the timestamp columns should be dropped.
<add> *
<add> * @return void
<add> */
<add> public... | 5 |
Ruby | Ruby | use start_with? to check the name in the desc | cdd990f9d70b83956d931b4f48d6f9c3ba53023a | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_desc
<ide> problem "Description shouldn't start with an indefinite article (#{$1})"
<ide> end
<ide>
<del> if desc =~ /^#{formula.name}\s/i
<add> if desc.downcase.start_with? "#{formula.name} "
<ide> problem "Description shouldn't include th... | 1 |
Javascript | Javascript | remove process.mixin dependency from fs | a38aa02f9f31ab7ace90c737e064bb6f2b78e3cd | <ide><path>lib/fs.js
<ide> var FileReadStream = exports.FileReadStream = function(path, options) {
<ide> this.mode = 0666;
<ide> this.bufferSize = 4 * 1024;
<ide>
<del> process.mixin(this, options || {});
<add> options = options || {};
<add> for (var i in options) this[i] = options[i];
<ide>
<ide> var
<ide> ... | 1 |
Javascript | Javascript | improve unexpected warnings error | 18a8eec378d4794b3256233a1599730b998b1183 | <ide><path>test/common/index.js
<ide> let catchWarning;
<ide> function expectWarning(nameOrMap, expected, code) {
<ide> if (catchWarning === undefined) {
<ide> catchWarning = {};
<del> process.on('warning', (warning) => catchWarning[warning.name](warning));
<add> process.on('warning', (warning) => {
<add> ... | 1 |
Java | Java | remove unnecessary 's' from connectableobservable | 3c773caf327f301e81e60bd0743178dcb7e793e8 | <ide><path>src/main/java/io/reactivex/observables/ConnectableObservable.java
<ide> public final Observable<T> refCount(int subscriberCount, long timeout, TimeUnit
<ide> * during the lifetime of the returned Observable. If this ConnectableObservable
<ide> * terminates, the connection is never renewed, no matte... | 1 |
Python | Python | fix tests to match new behaviour | fe615783daf2763496fc827e2377d9baaefcda26 | <ide><path>numpy/core/tests/test_indexing.py
<ide> def test_ellipsis_index(self):
<ide> [4, 5, 6],
<ide> [7, 8, 9]])
<ide> assert_equal(a[...], a)
<del> assert_(a[...] is a)
<add> assert_(a[...].base is a) # `a[...]` was `a` in numpy <1.9.)
<ide>
<ide> ... | 4 |
Javascript | Javascript | add scrollviewexample to rntester on android | 84330f36de516ca97fbc4b04e1162e2ee07c3f49 | <ide><path>RNTester/js/utils/RNTesterList.android.js
<ide> const ComponentExamples: Array<RNTesterExample> = [
<ide> key: 'RefreshControlExample',
<ide> module: require('../examples/RefreshControl/RefreshControlExample'),
<ide> },
<add> {
<add> key: 'ScrollViewExample',
<add> module: require('../exampl... | 1 |
Text | Text | create section for badges | 2786ffb16175a974976a8b408c85a7fa2331045a | <ide><path>README.md
<ide> [](http://webpack.github.io)
<ide>
<del>[![NPM version][npm-image]][npm-url] [![Gitter chat][gitter-image]][gitter-url] [![Gittip donate button][gittip-image]][gittip-url] [![Downloads][downloads-image]][downloads-url]
<add>
<add>[![NPM... | 1 |
Ruby | Ruby | fix few typos in the documentation [ci skip] | b894b7b90a6aced0e78ab84a45bf1c75c871bb2d | <ide><path>activemodel/lib/active_model/callbacks.rb
<ide> module ActiveModel
<ide> # end
<ide> #
<ide> # Then in your class, you can use the +before_create+, +after_create+ and
<del> # +around_create+ methods, just as you would in an Active Record module.
<add> # +around_create+ methods, just as you would in... | 2 |
PHP | PHP | use the dirty function to clear the class property | 685363758212522ae39fe015efce58e51e9e5ed3 | <ide><path>src/ORM/Query.php
<ide> public function __clone()
<ide> */
<ide> public function count()
<ide> {
<del> if ($this->_dirty || $this->_resultsCount === null) {
<add> if ($this->_resultsCount === null) {
<ide> $this->_resultsCount = $this->_performCount();
<ide> }
<... | 1 |
PHP | PHP | add deprecated warning for deprecated method | 5d203b4c08b9c0372954bbb1e3072de61ab94f9d | <ide><path>src/Controller/Controller.php
<ide> public function implementedEvents() {
<ide> * @return void
<ide> */
<ide> public function constructClasses() {
<add> trigger_error(
<add> 'Controller::constructClasses() is deprecated and will be removed in the first RC release',
<add> E_USER_DEPRECATED
<add> );
<... | 5 |
PHP | PHP | remove unused variables | 37d6ad707220d6e32e90a0edd6fbd70579a73ffd | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function implementedEvents() {
<ide> public function initialize(array $config) {
<ide> $controller = $this->_registry->getController();
<ide> $request = $this->request = $controller->request;
<del> $response = $this->response = $controll... | 13 |
Javascript | Javascript | add systrace markers to module require | 16dd5d664b4a269aee0989eb257790a38ca83766 | <ide><path>packager/react-packager/src/Resolver/polyfills/require.js
<ide> // require cycles inside the factory from causing an infinite require loop.
<ide> mod.isInitialized = true;
<ide>
<add> __DEV__ && BridgeProfiling().profile(id);
<add>
<ide> // keep args in sync with with defineModuleCode... | 1 |
Text | Text | update changelog from with author name | 2f0c26bf5913346311b75a3b100d2f79cfe8df3c | <ide><path>activesupport/CHANGELOG.md
<ide> the default behaviour of Date#toJSON() in recent versions of Chrome, Safari and
<ide> Firefox.
<ide>
<add> *James Harton*
<add>
<ide> * Improve `String#squish` to handle Unicode whitespace. *Antoine Lyset*
<ide>
<ide> * Standardise on `to_time` returning an i... | 1 |
Javascript | Javascript | watch string value instead of wrapper | e2068ad426075ac34c06c12e2fac5f594cc81969 | <ide><path>src/ng/directive/ngBind.js
<ide> var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
<ide> * @element ANY
<ide> * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
<ide> */
<del>var ngBindHtmlDirective = ['$sce', function($sce) {
<add>var ngBindHtmlDirecti... | 2 |
Go | Go | fix a minor typo in daemon/container.go | 71f8b09543d782727ada8f63ba7d6fa177ec54db | <ide><path>daemon/container.go
<ide> func (container *Container) Start() (err error) {
<ide> return nil
<ide> }
<ide>
<del> // if we encounter and error during start we need to ensure that any other
<add> // if we encounter an error during start we need to ensure that any other
<ide> // setup has been cleaned up p... | 1 |
Javascript | Javascript | fix use of template & layout together | 85ff4278f0c8f252cd35a1a9ef967aadc01412fc | <ide><path>packages/ember-htmlbars/lib/system/component-node.js
<ide> ComponentNode.create = function(renderNode, env, attrs, found, parentView, path,
<ide> if (attrs && attrs.viewName) { options.viewName = read(attrs.viewName); }
<ide>
<ide> component = componentInfo.component = createOrUpdateComponent(found.... | 4 |
PHP | PHP | use short array syntax | 8fb9991bf9a9a2b1dc857fa4c44fedef82742d16 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _initInputField($field, $options = [])
<ide> $options['disabled'] === 'disabled' ||
<ide> (is_array($options['disabled']) &&
<ide> !empty($options['options']) &&
<del> array_diff($op... | 4 |
PHP | PHP | add required option support | 4d2ae46f6c45e4b5d43148a7f9d2a22a120300ea | <ide><path>src/Console/ConsoleInputOption.php
<ide> class ConsoleInputOption
<ide> */
<ide> protected $_choices;
<ide>
<add> /**
<add> * Is the option required.
<add> *
<add> * @var bool
<add> */
<add> protected $required;
<add>
<ide> /**
<ide> * Make a new Input Option
<ide> ... | 3 |
Javascript | Javascript | make dependencygraph.processfilechange private | 0cb2bc104f9958dfea2a7e22b229a19abeb59fca | <ide><path>packager/src/node-haste/index.js
<ide> class DependencyGraph extends EventEmitter {
<ide> this._hasteFS = event.hasteFS;
<ide> this._moduleMap = event.moduleMap;
<ide> event.eventsQueue.forEach(({type, filePath, stat}) =>
<del> this.processFileChange(type, filePath, stat)
<ad... | 1 |
Text | Text | release notes for 1.3.0-rc.0 sonic-boltification | 202aed77700b44777516d453ca88196b1b916191 | <ide><path>CHANGELOG.md
<add><a name="1.3.0-RC.0"></a>
<add># 1.3.0-RC.0 sonic-boltification (2014-08-29)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:**
<add> - wait two until two digests are over until enabling animations
<add> ([92576743](https://github.com/angular/angular.js/commit/92576743eec0cef5ffdd70... | 1 |
Javascript | Javascript | remove disabled debugger test | 65c100ae8b9cfd7b9aea2eb50af32074e4306ffa | <ide><path>test/disabled/test-debug-brk-file.js
<del>// Copyright Joyent, Inc. and other Node contributors.
<del>//
<del>// Permission is hereby granted, free of charge, to any person obtaining a
<del>// copy of this software and associated documentation files (the
<del>// "Software"), to deal in the Software without r... | 2 |
Go | Go | remove trustkeypath, and local utilities | 5cdd6ab7cd4af97da2150cd649acfdb19ea8d700 | <ide><path>cmd/dockerd/config.go
<ide> import (
<ide> "github.com/spf13/pflag"
<ide> )
<ide>
<del>// defaultTrustKeyFile is the default filename for the trust key
<del>const defaultTrustKeyFile = "key.json"
<del>
<ide> // installCommonConfigFlags adds flags to the pflag.FlagSet to configure the daemon
<ide> func inst... | 9 |
Text | Text | pluralize controller and helper class names | 91a58211757f84b06c2e1856c271509d082783dd | <ide><path>guides/source/testing.md
<ide> located under the `test/helpers` directory.
<ide> Given we have the following helper:
<ide>
<ide> ```ruby
<del>module UserHelper
<add>module UsersHelper
<ide> def link_to_user(user)
<ide> link_to "#{user.first_name} #{user.last_name}", user
<ide> end
<ide> end
<ide> We... | 1 |
Ruby | Ruby | remove locals dependency from template | b2600bfc181664fcfe448d100ca054017b0576dd | <ide><path>actionpack/lib/action_view/lookup_context.rb
<ide> def view_paths=(paths)
<ide> @view_paths = ActionView::Base.process_view_paths(paths)
<ide> end
<ide>
<del> def find(name, prefix = nil, partial = false)
<del> @view_paths.find(*args_for_lookup(name, prefix, partial))
<add> de... | 9 |
Python | Python | prepare tools/test.py for python 3 | 29204f4ebcb6a722dfa8163ad079293dae6d8067 | <ide><path>tools/test.py
<ide> from datetime import datetime
<ide> from Queue import Queue, Empty
<ide>
<add>try:
<add> reduce # Python 2
<add>except NameError: # Python 3
<add> from functools import reduce
<add>
<add>try:
<add> xrange # Python 2
<add>except NameError:
<add> xrange = range # P... | 1 |
PHP | PHP | fix bad behavior with `myexceptionisstrange` | 191e1af05afe2d1368bbdb43cf38feb2f5b0f9ff | <ide><path>src/Error/ExceptionRenderer.php
<ide> protected function _method(\Exception $exception)
<ide> {
<ide> list(, $baseClass) = namespaceSplit(get_class($exception));
<ide>
<del> if(strpos($baseClass, 'Exception')!==false) {
<add> if(substr($baseClass, -9) === 'Exception') {
<id... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.