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 |
|---|---|---|---|---|---|
Java | Java | update copyright headers in idgenerators | e97712b95b8878fec0f40f9141ad29de42f18610 | <ide><path>spring-core/src/main/java/org/springframework/util/AlternativeJdkIdGenerator.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may... | 4 |
Javascript | Javascript | remove extra pages | 9546f9c3ace8727e69d7348c77ce324d1638db42 | <ide><path>test/integration/handles-export-errors/pages/index copy 10.js
<del>// eslint-disable-next-line
<del>export default () => hello.world
<ide><path>test/integration/handles-export-errors/pages/index copy 11.js
<del>// eslint-disable-next-line
<del>export default () => hello.world
<ide><path>test/integration/hand... | 13 |
Python | Python | include keras tensor in the allowed types | 919a964b8ffd2f53b60504072a4127632ba79d60 | <ide><path>src/transformers/modeling_tf_utils.py
<ide> import tensorflow as tf
<ide> from tensorflow.python.keras import backend as K
<ide> from tensorflow.python.keras.engine import data_adapter
<add>from tensorflow.python.keras.engine.keras_tensor import KerasTensor
<ide> from tensorflow.python.keras.saving import hd... | 1 |
Text | Text | fix indents in pe | 49b10b0e32473441d84810fff236dbb0a5d11768 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide>
<ide>
<ide> * IF IT'S A NEW FEATURE OR API CHANGE, TEST THE WATERS:
<del> http://www.numpy.org/devdocs/dev/development_workflow.html#get-the-mailing-list-s-opinion
<add> http://www.numpy.org/devdocs/dev/development_workflow.html#get-the-mailing-list-s-opinio... | 1 |
Python | Python | use check_output to capture in celery task | 439f7dc1d1d531405ecd6e3772bd69a6fcb9f508 | <ide><path>airflow/executors/celery_executor.py
<ide> def execute_command(command_to_exec: CommandType) -> None:
<ide> log.info("Executing command in Celery: %s", command_to_exec)
<ide> env = os.environ.copy()
<ide> try:
<del> subprocess.check_call(command_to_exec, stderr=subprocess.STDOUT,
<del> ... | 2 |
Python | Python | fix the taskset set | 0f33f97deeafadeed4690ef669e8f937afda763d | <ide><path>celery/tests/test_task.py
<ide> def test_counter_taskset(self):
<ide> self.assertEquals(ts.task_name, IncrementCounterTask.name)
<ide> self.assertEquals(ts.total, 9)
<ide>
<del> taskset_id, subtask_ids = ts.run()
<add> taskset_res = ts.run()
<add> subtask_ids = taskset_r... | 1 |
PHP | PHP | adjust comments in crypt class | 5664c9dc92d47a1d7ffb6e703dac56507849c487 | <ide><path>system/crypt.php
<ide> class Crypt {
<ide> */
<ide> public static function encrypt($value)
<ide> {
<del> // Seed the system random number generator if it is being used.
<del> if (($random = static::randomizer()) === MCRYPT_RAND)
<del> {
<del> mt_srand();
<del> }
<add> // If the system random numbe... | 1 |
PHP | PHP | fix some docblocks | 5e905c728e4e486c8d4090d51b5037ec97a5253b | <ide><path>src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php
<ide> public function find($id, $columns = ['*'])
<ide> /**
<ide> * Find multiple related models by their primary keys.
<ide> *
<del> * @param mixed $id
<add> * @param mixed $ids
<ide> * @param array $columns
<ide> * @return \Illu... | 2 |
Python | Python | check matching inputs/outputs in umath generation | 948b9d19d4fbfa485031b622b42d2c5df2e8020d | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def TD(types, f=None, astype=None, in_=None, out=None, simd=None):
<ide> if f is not None:
<ide> if isinstance(f, str):
<ide> func_data = build_func_data(types, f)
<add> elif len(f) != len(types):
<add> raise ValueEr... | 1 |
Ruby | Ruby | add odeprecated comments | f5cd15fa1893d58676a005c54dcaded3cdf61729 | <ide><path>Library/Homebrew/formula.rb
<ide> def pour_bottle?(&block)
<ide> # will not be deprecated.
<ide> # <pre>deprecate! date: "2020-08-27", because: "it is no longer maintained"</pre>
<ide> def deprecate!(date: nil, because: nil)
<add> # TODO: enable for next major/minor release
<add> # odep... | 1 |
Text | Text | reuse link indexes for n-api.md | d742535184655a04aafbf266522231aa1b7430c2 | <ide><path>doc/api/n-api.md
<ide> properties:
<ide> The N-API is a C API that ensures ABI stability across Node.js versions
<ide> and different compiler levels. A C++ API can be easier to use.
<ide> To support using C++, the project maintains a
<del>C++ wrapper module called
<del>[node-addon-api](https://github.com/nod... | 1 |
Text | Text | add verification step to image release process | 5d5598eca6ae4513e2decd851d32db992b6a02ec | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> - [Publish release to SVN](#publish-release-to-svn)
<ide> - [Prepare PyPI "release" packages](#prepare-pypi-release-packages)
<ide> - [Manually prepare production Docker Image](#manually-prepare-production-docker-image)
<add> - [Verify production images](#verify-pro... | 1 |
Text | Text | update coreapi version in docs | 5dd3d1b5d9dcbecf960e484eba9945964418a647 | <ide><path>docs/index.md
<ide> REST framework requires the following:
<ide>
<ide> The following packages are optional:
<ide>
<del>* [coreapi][coreapi] (1.31.0+) - Schema generation support.
<add>* [coreapi][coreapi] (1.32.0+) - Schema generation support.
<ide> * [Markdown][markdown] (2.1.0+) - Markdown support for th... | 1 |
Java | Java | fix instacrash on login in rnfeed | 5534f8b7c7ab9e5458735346444283e775eb3e1d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThread.java
<ide> public interface MessageQueueThread {
<ide> /**
<ide> * @return whether the current Thread is also the Thread associated with this MessageQueueThread.
<ide> */
<add> @DoNotStrip
<ide> boolean isOnThread();
<id... | 2 |
Javascript | Javascript | fix use of 'window' in compositioneventplugin | 458836abd3e74fce7addfef3749391176cc72085 | <ide><path>src/eventPlugins/CompositionEventPlugin.js
<ide>
<ide> var EventConstants = require('EventConstants');
<ide> var EventPropagators = require('EventPropagators');
<add>var ExecutionEnvironment = require('ExecutionEnvironment');
<ide> var ReactInputSelection = require('ReactInputSelection');
<ide> var Syntheti... | 1 |
Text | Text | add a few middlewares | b024e3f66cfb8e0e582240e4e50a47c2fca5d154 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide>
<ide> * [redux-thunk](http://github.com/gaearon/redux-thunk) — The easiest way to write async action creators
<ide> * [redux-promise](https://github.com/acdlite/redux-promise) — [FSA](h... | 1 |
Ruby | Ruby | add an asset_host accessor for consistency | ee58876fcc99cfca420033a9c30c68c326f4d1e6 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> def self.subclasses
<ide> @subclasses ||= []
<ide> end
<ide>
<del> # TODO Move this to the appropriate module
<del> config_accessor :asset_path
<add> config_accessor :asset_host, :asset_path
<ide>
<ide> ActiveSupport.run_load_hooks(:acti... | 1 |
Javascript | Javascript | use generated view config for slider | e52bc2aa73f8139ce4e7e197716aaeb110180df0 | <ide><path>Libraries/Components/Slider/Slider.js
<ide> 'use strict';
<ide>
<ide> const Platform = require('../../Utilities/Platform');
<del>const RCTSliderNativeComponent = require('./RCTSliderNativeComponent');
<add>const SliderNativeComponent = require('./SliderNativeComponent');
<ide> const React = require('react')... | 5 |
Text | Text | add example of event to data values | 41eb16a6506ce1caa699ee5ca6e1d85f01c27b63 | <ide><path>docs/docs/general/interactions/events.md
<ide> var chart = new Chart(ctx, {
<ide> }
<ide> });
<ide> ```
<add>
<add>## Converting Events to Data Values
<add>
<add>A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred. Chart.js provi... | 1 |
Javascript | Javascript | remove tostring call | e5c0dd1695062f463b86313cb35d051a0af1a168 | <ide><path>src/dom-element-pool.js
<ide> class DOMElementPool {
<ide> if (!this.managedElements.has(element)) return
<ide> if (this.freedElements.has(element)) {
<ide> atom.assert(false, 'The element has already been freed!', {
<del> content: element instanceof window.Text ? element.textContent : e... | 1 |
Text | Text | fix remaining inaccuracies in api docs (closes ) | d0b3af9222809b858ca0fa4e23a85c8f3d357eae | <ide><path>website/docs/api/dependencyparser.md
<ide> shortcut for this and instantiate the component using its string name and
<ide> ## DependencyParser.\_\_call\_\_ {#call tag="method"}
<ide>
<ide> Apply the pipe to one document. The document is modified in place, and returned.
<del>This usually happens under the ho... | 5 |
Ruby | Ruby | remove extra colon | 60b70c993127c79f0cc7532ce159902d39f1aa5d | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch
<ide> unless cached_location.exist?
<ide> urls = actual_urls
<ide> unless urls.empty?
<del> ohai "Downloading from: #{urls.last}"
<add> ohai "Downloading from #{urls.last}"
<ide> if !ENV["HOMEBREW_NO_INSECURE_REDIRECT... | 1 |
Java | Java | refine blockhound support | 2f12351292564fb2090707ee117620e2a51be640 | <ide><path>spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java
<ide>
<ide> import org.junit.jupiter.api.BeforeAll;
<ide> import org.junit.jupiter.api.Test;
<add>import org.junit.jupiter.api.condition.DisabledForJreRange;
<ide> import reactor.blockhound.BlockHound;
<add>import r... | 1 |
Ruby | Ruby | improve standardization of strategy tests | 7e07010f06a594f72cbf12a5cae889eaa15c4373 | <ide><path>Library/Homebrew/test/livecheck/strategy/apache_spec.rb
<ide> let(:non_apache_url) { "https://brew.sh/test" }
<ide>
<ide> describe "::match?" do
<del> it "returns true if the argument provided is an Apache URL" do
<add> it "returns true for an Apache URL" do
<ide> expect(apache.match?(apache... | 17 |
Python | Python | update bucket_sort.py (#821) | f5abc04176b9635da963ca701f643acde5da24dc | <ide><path>sorts/bucket_sort.py
<ide> # Time Complexity of Solution:
<ide> # Best Case O(n); Average Case O(n); Worst Case O(n)
<ide>
<del>from __future__ import print_function
<del>from insertion_sort import insertion_sort
<del>import math
<del>
<del>DEFAULT_BUCKET_SIZE = 5
<del>
<del>def bucketSort(myList, bucketS... | 1 |
PHP | PHP | add missing annotation | bf89a65c8de9cd928e32b41785cdcb182579ac82 | <ide><path>src/Database/SqlDialectTrait.php
<ide> public function queryTranslator($type)
<ide> $query = (new IdentifierQuoter($this))->quote($query);
<ide> }
<ide>
<add> /** @var \Cake\ORM\Query $query */
<ide> $query = $this->{'_' . $type . 'QueryTranslator'}($query)... | 1 |
Javascript | Javascript | update the map reference in each minified file | df372ad6e7f44d879a9d3e8b9e0a27f6d8c176b5 | <ide><path>build/release.js
<ide> function makeReleaseCopies( next ) {
<ide> Object.keys( releaseFiles ).forEach(function( key ) {
<ide> var text,
<ide> builtFile = releaseFiles[ key ],
<del> releaseFile = key.replace( /VER/g, releaseVersion );
<add> releaseFile = "dist/" + key.replace( /VER/g, releaseVersion... | 1 |
Python | Python | remove commented lines | d1dba51326abc2b1cf8d621b0fd85c84611f4d28 | <ide><path>data_structures/binary tree/AVLtree.py
<ide> def test(self):
<ide> print("****")
<ide> self.getheight()
<ide> if __name__ == "__main__":
<del># t = AVLtree()
<del># t.test()
<del># q = my_queue()
<del>## q.push(1)
<del>## q.push(2)
<del># for i in range(10):
<del># q.... | 1 |
Text | Text | add docs for `--memory-swap` | 7bb4b56cf98662ef5f1deb64bdf8a120490bc258 | <ide><path>docs/man/docker-run.1.md
<ide> docker-run - Run a command in a new container
<ide> [**--link**[=*[]*]]
<ide> [**--lxc-conf**[=*[]*]]
<ide> [**-m**|**--memory**[=*MEMORY*]]
<add>[**--memory-swap**[=*MEMORY-SWAP]]
<ide> [**--mac-address**[=*MAC-ADDRESS*]]
<ide> [**--name**[=*NAME*]]
<ide> [**--net**[=*"bridge"... | 2 |
Java | Java | suspend the channel when there is no demand | d8099adc9a94e13eb7b6e261e6300e33beaa8c95 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/AbstractListenerWebSocketSession.java
<ide> package org.springframework.web.reactive.socket.adapter;
<ide>
<ide> import java.io.IOException;
<add>import java.util.Queue;
<ide> import java.util.concurrent.atomic.AtomicBoolean;
<ide>... | 5 |
Javascript | Javascript | handle edge case for boolean matcher | 03c795fcd8e7f51796a32e6190d1c471ca189658 | <ide><path>lib/util/compileBooleanMatcher.js
<ide> const compileBooleanMatcher = map => {
<ide> * @returns {function(string): string} a template function to determine the value at runtime
<ide> */
<ide> const compileBooleanMatcherFromLists = (positiveItems, negativeItems) => {
<add> if (positiveItems.length === 0) re... | 1 |
Ruby | Ruby | allow extracting url in sparkle strategy | b3c46ba2b931aa8d6e99eaf1733f0349f2c09a19 | <ide><path>Library/Homebrew/livecheck.rb
<ide> def skip?
<ide> #
<ide> # @param symbol [Symbol] symbol for the desired strategy
<ide> # @return [Symbol, nil]
<del> def strategy(symbol = nil)
<add> def strategy(symbol = nil, &block)
<add> @strategy_block = block if block
<add>
<ide> case symbol
<ide> ... | 3 |
Javascript | Javascript | remove undefined variable | 449f73e05fdb17b76a11f6e122cadf80fdbdf9ba | <ide><path>lib/internal/quic/core.js
<ide> class QuicClientSession extends QuicSession {
<ide>
<ide> // If handle is a number, creating the session failed.
<ide> if (typeof handle === 'number') {
<del> let reason;
<ide> switch (handle) {
<ide> case ERR_FAILED_TO_CREATE_SESSION:
<ide> ... | 1 |
Python | Python | improve exceptions for 'd (would/had) in english | 440b81bddc24669ffe89ef7501fb8c75f98b60d2 | <ide><path>spacy/lang/en/tokenizer_exceptions.py
<ide>
<ide> _exc[orth + "'d"] = [
<ide> {ORTH: orth, LEMMA: PRON_LEMMA, NORM: pron, TAG: "PRP"},
<del> {ORTH: "'d", LEMMA: "would", NORM: "would", TAG: "MD"},
<add> {ORTH: "'d", NORM: "'d"},
<ide> ]
<ide>
<ide> ... | 1 |
Java | Java | use resolvabletype in generictyperesolver | 595efe9aab884bab233c61278f00ef325446d268 | <ide><path>spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
<ide>
<ide> package org.springframework.core;
<ide>
<del>import java.lang.reflect.Array;
<del>import java.lang.reflect.GenericArrayType;
<del>import java.lang.reflect.MalformedParameterizedTypeException;
<ide> import java.lang.refl... | 3 |
PHP | PHP | integrate new plugin hooks into the console runner | bf8e83cab56cbcc0db8666c567f3e68dda7a48d3 | <ide><path>src/Console/CommandRunner.php
<ide> use Cake\Console\Exception\StopException;
<ide> use Cake\Console\Shell;
<ide> use Cake\Core\ConsoleApplicationInterface;
<add>use Cake\Core\PluginApplicationInterface;
<ide> use Cake\Event\EventDispatcherInterface;
<ide> use Cake\Event\EventDispatcherTrait;
<add>use Cake\E... | 3 |
Python | Python | add example of how to do sparse-checkout | e08257d4012b6df624c88b45ba28e8f9829ce2ad | <ide><path>spacy/cli/_git_sparse_checkout_example.py
<add>import tempfile
<add>import typer
<add>from pathlib import Path
<add>import subprocess
<add>import shlex
<add>import shutil
<add>from contextlib import contextmanager
<add>
<add>
<add>@contextmanager
<add>def make_tempdir():
<add> d = Path(tempfile.mkdtemp())... | 1 |
PHP | PHP | fix deprecationwarning message | 5db1ae9ce3347476018f76d24013ec0ea8250195 | <ide><path>src/ORM/Table.php
<ide> public function hasBehavior($name)
<ide> /**
<ide> * Returns an association object configured for the specified alias if any.
<ide> *
<del> * @deprecated 3.6.0 Use getAssociation() and Table::hasAssocation() instead.
<add> * @deprecated 3.6.0 Use getAssociation()... | 1 |
PHP | PHP | use array_values on relationship matches | 9cee86ffb9576b457a614540deba6dd524357eac | <ide><path>laravel/database/eloquent/relationships/has_many.php
<ide> public function match($relationship, &$parents, $children)
<ide> return $v->$foreign == $parent->get_key();
<ide> });
<ide>
<del> $parent->relationships[$relationship] = $matching;
<add> $parent->relationships[$relationship] = array_value... | 2 |
Python | Python | call numpyops instead of get_current_ops() | 0796401c1955fc3508b2d1f50b402b492fa690b2 | <ide><path>spacy/tests/pipeline/test_models.py
<ide> import pytest
<ide> from numpy.testing import assert_almost_equal
<ide> from spacy.vocab import Vocab
<del>from thinc.api import get_current_ops, Model, data_validation
<add>from thinc.api import NumpyOps, Model, data_validation
<ide> from thinc.types import Array2d,... | 1 |
Python | Python | add morph rules in language | b382dc902c54b0e2369c0af8eacfd514064dcc8d | <ide><path>spacy/language.py
<ide> def create_vocab(cls, nlp=None):
<ide> # This is very messy, but it's the minimal working fix to Issue #639.
<ide> # This defaults stuff needs to be refactored (again)
<ide> lex_attr_getters[IS_STOP] = lambda string: string.lower() in cls.stop_words... | 1 |
Ruby | Ruby | fix broken test | 1f7415ab3a5b433ecfb0c10d66343a894d73914a | <ide><path>activerecord/test/cases/json_serialization_test.rb
<ide> def test_should_allow_only_option_for_list_of_authors
<ide> def test_should_allow_except_option_for_list_of_authors
<ide> ActiveRecord::Base.include_root_in_json = false
<ide> authors = [@david, @mary]
<del> assert_equal %([{"id":1},{"id":... | 1 |
Javascript | Javascript | preserve contents for cloned scripts | dec2804c783003c13d356ed3fec664c3ac4b05ee | <ide><path>src/manipulation.js
<ide> function cloneFixAttributes( src, dest ) {
<ide> // cloning other types of input fields
<ide> } else if ( nodeName === "input" || nodeName === "textarea" ) {
<ide> dest.defaultValue = src.defaultValue;
<add>
<add> // IE blanks contents when cloning scripts
<add> } else if ( node... | 2 |
Python | Python | preserve matrices. fix #142 | 7a957813bc80e45b1707535c5ae6cad65c8d84b2 | <ide><path>numpy/lib/function_base.py
<ide> import types
<ide> import numpy.core.numeric as _nx
<ide> from numpy.core.numeric import ones, zeros, arange, concatenate, array, \
<del> asarray, empty, empty_like, asanyarray, ndarray
<add> asarray, asanyarray, empty, empty_like, asanyarray, ndarray
<ide> from numpy... | 2 |
PHP | PHP | fix incorrect padding with multi-byte strings | 76db206551622be1560fb68349da819807350a1b | <ide><path>laravel/crypter.php
<ide> protected static function iv_size()
<ide> */
<ide> protected static function pad($value)
<ide> {
<del> $pad = static::$block - (Str::length($value) % static::$block);
<add> $pad = static::$block - (strlen($value) % static::$block);
<ide>
<ide> return $value .= str_repeat(ch... | 1 |
Javascript | Javascript | remove unnecessary bind | 2e738fb6b53903d11d2557acfe4b17c7c60c3a6b | <ide><path>lib/internal/cluster/child.js
<ide> function shared(message, handle, indexesKey, cb) {
<ide> send({ act: 'close', key });
<ide> handles.delete(key);
<ide> indexes.delete(indexesKey);
<del> return close.apply(this, arguments);
<del> }.bind(handle);
<add> return close.apply(handle, arguments... | 1 |
Python | Python | add style improvements to project euler problem 8 | f3fe29cea1b97db60ee29a78a8f89d1d84ac8c2a | <ide><path>project_euler/problem_08/sol1.py
<ide> """
<add>Problem 8: https://projecteuler.net/problem=8
<add>
<ide> The four adjacent digits in the 1000-digit number that have the greatest
<ide> product are 9 × 9 × 8 × 9 = 5832.
<ide>
<ide> 71636269561882670428252483600823257530420752963450"""
<ide>
<ide>
<del>def ... | 3 |
PHP | PHP | flatten | ca66631b916063c1be8a594c58035e8e432c0277 | <ide><path>src/Illuminate/Support/Arr.php
<ide> public static function last($array, callable $callback, $default = null)
<ide> * Flatten a multi-dimensional array into a single level.
<ide> *
<ide> * @param array $array
<add> * @param int $depth
<ide> * @return array
<ide> */
<del> p... | 4 |
PHP | PHP | improve error message | 63b392a26b2b4fc8d0936ad432491a273fc79dd7 | <ide><path>lib/Cake/Routing/Router.php
<ide> protected static function _validateRouteClass($routeClass) {
<ide> $routeClass !== 'CakeRoute' &&
<ide> (!class_exists($routeClass) || !is_subclass_of($routeClass, 'CakeRoute'))
<ide> ) {
<del> throw new RouterException(__d('cake_dev', 'Route classes must extend Ca... | 1 |
PHP | PHP | add collection to $casts | e22171a44126d458d6e7f89a5ae38fbf15ae321c | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function castAttribute($key, $value)
<ide> case 'array':
<ide> case 'json':
<ide> return json_decode($value, true);
<add> case 'collection':
<add> return new Collection(json_decode($value, true));
<ide> default:
<ide> return $va... | 1 |
Ruby | Ruby | use sandbox.formula? method | 6375adc0ff00073740b49973aacfe81d4cd1099e | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def build
<ide> #{formula.path}
<ide> ].concat(build_argv)
<ide>
<del> if Sandbox.available? && ARGV.sandbox?
<del> Sandbox.print_sandbox_message
<del> end
<add> Sandbox.print_sandbox_message if Sandbox.formula?(formula)
<ide>
<ide> Ut... | 1 |
Python | Python | add more tests for `np.kaiser` | e214496119f6b35819cebaa1562818d27b6c34fb | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_blackman(self, dtype: str, M: int) -> None:
<ide> else:
<ide> assert_almost_equal(np.sum(w, axis=0), 3.7800, 4)
<ide>
<add> def test_kaiser(self, dtype: str, M: int) -> None:
<add> scalar = np.array(M, dtype=dtype)[()]
<add>
... | 1 |
Python | Python | fix typo in glossary (resolves ) | c63e99da8a15d8540bae20cabfecec9f3d8c30ae | <ide><path>spacy/glossary.py
<ide> def explain(term):
<ide> 'ADJA': 'adjective, attributive',
<ide> 'ADJD': 'adjective, adverbial or predicative',
<ide> 'APPO': 'postposition',
<del> 'APRP': 'preposition; circumposition left',
<add> 'APPR': 'preposition; circump... | 1 |
Ruby | Ruby | use mocha for rescue tests | ba814a903386ce12ea5370f5c7df8ef9fb693612 | <ide><path>actionpack/test/controller/rescue_test.rb
<ide> require File.dirname(__FILE__) + '/../abstract_unit'
<del>require 'flexmock'
<add>
<add># gem install mocha
<add>require 'mocha'
<ide>
<ide> class RescueController < ActionController::Base
<ide> def raises
<ide> def raises
<ide>
<ide>
<ide> class RescueTes... | 1 |
Javascript | Javascript | adjust tests after api changes | e460e6ae90e02b1d79a3f55404c788855b04e886 | <ide><path>src/Redux.js
<ide> export default class Redux {
<ide> }
<ide>
<ide> subscribe(listener) {
<del> this.listeners.push(listener);
<add> const { listeners } = this;
<add> listeners.push(listener);
<ide>
<ide> return function unsubscribe () {
<del> const index = this.listeners.indexOf(list... | 3 |
Ruby | Ruby | make internal class as nodoc | a558e5d8ba19a465f1606c82f36cab7680bc2b5d | <ide><path>activesupport/lib/active_support/logger_thread_safe_level.rb
<ide> require 'active_support/concern'
<ide>
<ide> module ActiveSupport
<del> module LoggerThreadSafeLevel
<add> module LoggerThreadSafeLevel # :nodoc:
<ide> extend ActiveSupport::Concern
<ide>
<ide> def after_initialize
<del> @loc... | 1 |
Text | Text | add v4.9.0-beta.2 to changelog | d61d713c055be1cc2c9c916c46d83af75f9af1ab | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.9.0-beta.2 (October 25, 2022)
<add>- [#20227](https://github.com/emberjs/ember.js/pull/20227) [BUGFIX] Fix unsafe internal cast for NativeArray
<add>- [#20228](https://github.com/emberjs/ember.js/pull/20228) [BUGFIX] Remove type export for ControllerMix... | 1 |
Ruby | Ruby | remove usless comments | 526299913fe757af28de9bad868635124b26e071 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_for_tap_ruby_files_locations
<ide> def all
<ide> methods.map(&:to_s).grep(/^check_/)
<ide> end
<del> end # end class Checks
<add> end
<ide> end
<ide> end
<ide>
<ide><path>Library/Homebrew/language/python.rb
<ide> def do_install(targe... | 2 |
Python | Python | fix str representation for rank-0 arrays | f3a4e8ff8d76dbadd59d4d4e2efc359d3b2db091 | <ide><path>numpy/core/numeric.py
<ide> def array_repr(arr, max_line_width=None, precision=None, suppress_small=None):
<ide> return cName + "(%s, dtype=%s)" % (lst, typename)
<ide>
<ide> def array_str(a, max_line_width=None, precision=None, suppress_small=None):
<del> return array2string(a, max_line_width, p... | 1 |
Ruby | Ruby | update code comments | c75a8221a5115dc45634ece380266a8a63c0458d | <ide><path>Library/Homebrew/requirements/gpg2_requirement.rb
<ide> class GPG2Requirement < Requirement
<ide> fatal true
<ide> default_formula "gnupg"
<ide>
<del> # GPGTools installs GnuPG 2.0.x as a vanilla `gpg` symlink
<del> # pointing to `gpg2`. Homebrew install 2.1.x as a non-symlink `gpg`.
<del> # We suppo... | 1 |
Javascript | Javascript | fix singlefile build target | 04e2235ce7f9439b32b811329763f9aa60ee89a4 | <ide><path>make.js
<ide> target.bundle = function(args) {
<ide> // We want shared_src_files in both pdf.js and pdf.worker.js
<ide> // unless it's being built in singlefile mode.
<ide> WORKER_SRC_FILES = SHARED_SRC_FILES.concat(WORKER_SRC_FILES);
<add> } else {
<add> // In singlefile mode, all of the src... | 1 |
Javascript | Javascript | expose enablebabelruntime config param externally | 89a358f34786198c8a9a2d379588efd57b6a0eec | <ide><path>jest/preprocessor.js
<ide> module.exports = {
<ide> options: {
<ide> ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
<ide> dev: true,
<del> disableBabelRuntime: true,
<add> enableBa... | 1 |
Python | Python | fix urlpatterns in test | 6fa534f21475f4c9527b1181f8a427978ce1c085 | <ide><path>tests/test_atomic_requests.py
<ide> def get(self, request, *args, **kwargs):
<ide> BasicModel.objects.all()
<ide> raise Http404
<ide>
<del> return patterns(
<del> '',
<del> url(r'^$', NonAtomicAPIExceptionView.as_view())
<add> return (
<add... | 1 |
Ruby | Ruby | swallow bundler exceptions when running tests | 48b3257582830206b93817e4f519e0b2fe4f9dee | <ide><path>railties/test/generators/shared_generator_tests.rb
<ide> def test_shebang_when_is_the_same_as_default_use_env
<ide> end
<ide>
<ide> def test_template_raises_an_error_with_invalid_path
<del> content = capture(:stderr){ run_generator([destination_root, "-m", "non/existent/path"]) }
<del> assert_matc... | 1 |
Python | Python | avoid dnn import when not running on gpu | f3eeb982d0e4858a333246430833b1087d446f5a | <ide><path>keras/layers/convolutional.py
<ide>
<ide> import theano
<ide> import theano.tensor as T
<del>from theano.sandbox.cuda import dnn
<add>if theano.config.device[:3] == 'gpu':
<add> from theano.sandbox.cuda import dnn
<ide>
<ide> from .. import activations, initializations, regularizers, constraints
<ide> f... | 1 |
Go | Go | reject scope settings in config-only network | bf98dc6a401ed78fb6a24ade8e95a8a5f06d54d7 | <ide><path>libnetwork/network.go
<ide> func (n *network) validateConfiguration() error {
<ide> if n.configOnly {
<ide> // Only supports network specific configurations.
<ide> // Network operator configurations are not supported.
<del> if n.ingress || n.internal || n.attachable {
<add> if n.ingress || n.internal ... | 1 |
Javascript | Javascript | improve performance of limitchunkcountplugin a lot | 6f1c6850714e11240effa4f870aa31d60389eb6d | <ide><path>lib/Chunk.js
<ide> class Chunk {
<ide> /**
<ide> *
<ide> * @param {Chunk} otherChunk the chunk to integrate with
<del> * @param {ModuleReason} reason reason why the module is being integrated
<add> * @param {string} reason reason why the module is being integrated
<ide> * @returns {boolean} returns ... | 3 |
Text | Text | add communications links | 4a41496163eb852abebb81b3cafa1ef818dfd803 | <ide><path>README.md
<ide> Learn more about Rx on the <a href="https://github.com/Netflix/RxJava/wiki">Wiki
<ide>
<ide> <a href='https://netflixoss.ci.cloudbees.com/job/RxJava-pull-requests/'><img src='https://netflixoss.ci.cloudbees.com/job/RxJava-pull-requests/badge/icon'></a>
<ide>
<add>## Communication
<add>
<add... | 1 |
Ruby | Ruby | use utils.git_available? instead of git? | c8efb058267b3500ee5c40ebf58de3feea8841a5 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def find_relative_paths(*relative_paths)
<ide> def inject_file_list(list, str)
<ide> list.inject(str) { |s, f| s << " #{f}\n" }
<ide> end
<del>
<del> # Git will always be on PATH because of the wrapper script in
<del> # Library/ENV/scm, so we check if there i... | 2 |
Python | Python | fix broken format string in debug messages | 65fc555f76bbc17be3291ba6b8bb41adb7f48810 | <ide><path>glances/plugins/glances_ip.py
<ide> def update(self):
<ide> self.stats['mask_cidr'] = self.ip_to_cidr(self.stats['mask'])
<ide> self.stats['gateway'] = netifaces.gateways()['default'][netifaces.AF_INET][0]
<ide> except (KeyError, AttributeError) as e:
<... | 2 |
Javascript | Javascript | correct variable declaration | 028f0e672a611339357484e1c9be1e7d51097004 | <ide><path>packages/ember-runtime/lib/computed/reduce_computed_macros.js
<ide> function propertySort(itemsKey, sortPropertiesKey) {
<ide> this.notifyPropertyChange(key);
<ide> }
<ide>
<add> let itemsKeyIsAtThis = (itemsKey === '@this');
<ide> let normalizedSortProperties = normalizeSortProperties(sort... | 1 |
Go | Go | use containerd api to get version | fec2b144feaaa18998ec2ed34c9bc843c4c29abd | <ide><path>daemon/info_unix.go
<ide> package daemon
<ide>
<ide> import (
<add> "context"
<ide> "os/exec"
<ide> "strings"
<ide>
<ide> func (daemon *Daemon) FillPlatformInfo(v *types.Info, sysInfo *sysinfo.SysInfo)
<ide> }
<ide>
<ide> v.ContainerdCommit.Expected = dockerversion.ContainerdCommitID
<del> if rv, err ... | 4 |
Ruby | Ruby | fix links [ci skip] | 398e4fecde6f8b3263cc7c04face664c248d3966 | <ide><path>activestorage/lib/active_storage/analyzer/image_analyzer.rb
<ide> module ActiveStorage
<ide> # ActiveStorage::Analyzer::ImageAnalyzer.new(blob).metadata
<ide> # # => { width: 4104, height: 2736 }
<ide> #
<del> # This analyzer relies on the third-party [MiniMagick]{https://github.com/minimagick/min... | 1 |
Javascript | Javascript | fix bypassnode without .value | 836e363c07cf59b759b907d4fbf4b4529bc2dcaf | <ide><path>examples/js/nodes/core/BypassNode.js
<ide> THREE.BypassNode.prototype.nodeType = "Bypass";
<ide>
<ide> THREE.BypassNode.prototype.getType = function ( builder ) {
<ide>
<del> return this.value ? this.value.getType( builder ) : 'void';
<add> if ( this.value ) {
<add>
<add> return this.value.getType( buil... | 1 |
Javascript | Javascript | remove reference to `_rendernode` | 6d4302f12c0b7aae7913089ea5a9668fa30cf2e9 | <ide><path>packages/ember-views/lib/views/core_view.js
<ide> const CoreView = EmberObject.extend(Evented, ActionHandler, {
<ide> this._state = 'preRender';
<ide> this._currentState = this._states.preRender;
<ide> this._willInsert = false;
<del> this._renderNode = null;
<ide> this.lastResult = null;
<... | 1 |
PHP | PHP | fix mysql multiple-table delete error | d54500eb013d23ada07b563420e55e3712ef88ae | <ide><path>src/Illuminate/Database/Query/Grammars/MySqlGrammar.php
<ide> public function compileDelete(Builder $query)
<ide> $sql = trim("delete $table from {$table}{$joins} $where");
<ide> } else {
<ide> $sql = trim("delete from $table $where");
<del> }
<ide>
<del> if (is... | 2 |
Text | Text | fix anchors and subtitle in building.md | 359f590b8da55e54b78f65857df6bb1bcef2d352 | <ide><path>BUILDING.md
<ide> file a new issue.
<ide> * [Unix and macOS](#unix-and-macos)
<ide> * [Unix prerequisites](#unix-prerequisites)
<ide> * [macOS prerequisites](#macos-prerequisites)
<del> * [Building Node.js](#building-nodejs)
<add> * [Building Node.js](#building-nodejs-1)
<ide> * [Running ... | 1 |
Ruby | Ruby | help command for visible commands should be hidden | 1cd88288d54dfd4254a9566023d5cb2e11a34db2 | <ide><path>railties/lib/rails/commands/dev/dev_command.rb
<ide> module Rails
<ide> module Command
<ide> class DevCommand < Base # :nodoc:
<del> def help
<del> say "rails dev:cache # Toggle development mode caching on/off."
<add> no_commands do
<add> def help
<add> say "rails dev:c... | 1 |
Text | Text | add a link to the great full-stack tutorial | 02adad6db49931cf1a77d272f0085455b73d2eeb | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> * [redux-tutorial](https://github.com/happypoulp/redux-tutorial) — Learn how to use redux step by step
<ide> * [What the Flux?! Let’s Redux.](https://blog.andyet.com/2015/08/06/what-the-... | 1 |
Javascript | Javascript | remove all the duplicate module warnings | 76846f7e339d20d3efafadbb808f87012ed4b92c | <ide><path>packager/blacklist.js
<ide> var sharedBlacklist = [
<ide> 'node_modules/react-tools/src/renderers/shared/event/EventPropagators.js',
<ide> 'node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js',
<ide> 'node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironm... | 1 |
Ruby | Ruby | add tests for fixtureresolver | a3044967ed48e27104e8c97719c798ee2f416846 | <ide><path>actionpack/test/template/testing/fixture_resolver_test.rb
<add>require 'abstract_unit'
<add>
<add>class FixtureResolverTest < ActiveSupport::TestCase
<add> def test_should_return_empty_list_for_unknown_path
<add> resolver = ActionView::FixtureResolver.new()
<add> templates = resolver.find_all("path", ... | 1 |
PHP | PHP | remove duplicate unset() | ed4068a725b8f05dc5bfad09afd6aac1b06861c7 | <ide><path>src/Illuminate/Container/Container.php
<ide> public function getBindings()
<ide> */
<ide> protected function dropStaleInstances($abstract)
<ide> {
<del> unset($this->instances[$abstract]);
<del>
<del> unset($this->aliases[$abstract]);
<add> unset($this->instances[$abstract], $this->aliases[$abstract])... | 2 |
Javascript | Javascript | fix style violations in the input.js file | 3217a249e18c12fb1ade59073773e2ab67a67792 | <ide><path>src/widget/input.js
<ide> var EMAIL_REGEXP = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/;
<ide> var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
<ide> var INTEGER_REGEXP = /^\s*(\-|\+)?\d+\s*$/;
<ide>
<add>
<ide> /**
<ide> * @ngdoc inputType
<ide> * @name angular.inputType.text
<ide> angu... | 1 |
Python | Python | use pathlib instead | a037206f0a5453050f19fc4801d2efa445cbe4d7 | <ide><path>bin/wiki_entity_linking/kb_creator.py
<ide> DESC_WIDTH = 64 # dimension of output entity vectors
<ide>
<ide>
<del>def create_kb(nlp, max_entities_per_alias, min_entity_freq, min_occ,
<del> entity_def_output, entity_descr_output,
<del> count_input, prior_prob_input, wikidata_input... | 3 |
PHP | PHP | remove bc mapping of "ext" to "_ext" | 1ea269a1e2d0a8b38fd3b3e55d27792254e27e8c | <ide><path>src/Routing/Router.php
<ide> public static function url($url = null, $options = []) {
<ide> $frag = '#' . $url['#'];
<ide> unset($url['#']);
<ide> }
<del> if (isset($url['ext'])) {
<del> $url['_ext'] = $url['ext'];
<del> unset($url['ext']);
<del> }
<ide> if (isset($url['ssl'])) {
<ide... | 3 |
Go | Go | skip testuuidgeneration on api < v1.40 | 05bd9958f26269d5f2996d3dd89bb1ab296c14ee | <ide><path>integration/system/uuid_test.go
<ide> import (
<ide> "context"
<ide> "testing"
<ide>
<add> "github.com/docker/docker/api/types/versions"
<ide> "github.com/google/uuid"
<ide> "gotest.tools/assert"
<add> "gotest.tools/skip"
<ide> )
<ide>
<ide> func TestUUIDGeneration(t *testing.T) {
<add> skip.If(t, vers... | 1 |
PHP | PHP | add a test for using sqlite with an absolute path | 7c6cb2494e0b1657657344eb42156476ad28f5f6 | <ide><path>tests/TestCase/Core/StaticConfigTraitTest.php
<ide> public function testCustomParseDsn() {
<ide> ];
<ide> $this->assertEquals($expected, TestConnectionManagerStaticConfig::parseDsn($dsn));
<ide>
<add> $dsn = 'sqlite:////absolute/path';
<add> $expected = [
<add> 'className' => 'Cake\Database\Connecti... | 1 |
Ruby | Ruby | fix doc in postgres database creation | 2dc86ead1de8fd523ec40db79e92318062616967 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
<ide> def recreate_database(name, options = {}) #:nodoc:
<ide> end
<ide>
<ide> # Create a new PostgreSQL database. Options include <tt>:owner</tt>, <tt>:template</tt>,
<del> # <tt>:encoding</tt>, <tt>:c... | 1 |
Ruby | Ruby | use odie when commands encounter errors | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> def load_logs(dir)
<ide> logs[file.basename.to_s] = { content: contents }
<ide> end
<ide> end
<del> raise "No logs." if logs.empty?
<add> odie "No logs." if logs.empty?
<ide>
<ide> logs
<ide> end
<ide><path>Library/Homebrew/cmd/install.rb... | 10 |
Text | Text | add missing commas | 99a3adbdaa0b1d6ebdc31c04cf71472a79c4147c | <ide><path>CHANGELOG.md
<ide>
<ide> ## Bug Fixes
<ide> - **$q:** Add traceback to unhandled promise rejections
<del> ([174cb4](https://github.com/angular/angular.js/commit/174cb4a8c81e25581da5b452c2bb43b0fa377a9b)
<add> ([174cb4](https://github.com/angular/angular.js/commit/174cb4a8c81e25581da5b452c2bb43b0fa377a9b),... | 1 |
Ruby | Ruby | add missing documentation bits | a3924483fb05181b4f0ac1ea1f13f92a2ab6c4e6 | <ide><path>activerecord/lib/active_record/encryption/encryptable_record.rb
<ide> module EncryptableRecord
<ide> # designated column +original_<name>+. When reading the encrypted content, the version with the original case is
<ide> # server. But you can still execute queries that will ignore the case... | 1 |
Javascript | Javascript | use explicit .valueof() calls instead of coercion | b576d2ffc2ee8e690c487598623d19ea95bd879b | <ide><path>src/lib/create/from-anything.js
<ide> function configFromInput(config) {
<ide> if (input === undefined) {
<ide> config._d = new Date(hooks.now());
<ide> } else if (isDate(input)) {
<del> config._d = new Date(+input);
<add> config._d = new Date(input.valueOf());
<ide> } else ... | 5 |
Python | Python | avoid extra copy if otype is object on output | 440a5f9ad84f91460d6ee18aa7fdccac03c72625 | <ide><path>numpy/lib/function_base.py
<ide> def __call__(self, *args):
<ide> self.ufunc = frompyfunc(self.thefunc, nargs, self.nout)
<ide>
<ide> # Convert to object arrays first
<del> newargs = [asanyarray(arg,dtype=object) for arg in args]
<add> newargs = [array(arg,copy=False,subok=... | 1 |
Text | Text | add missing date | c87e95c23942d2b9c38784a4ad3e9a6d043a4977 | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ### 3.0.2
<ide>
<del>**Date**: [December 2014][3.0.2-milestone].
<add>**Date**: [17th December 2014][3.0.2-milestone].
<ide>
<ide> * Ensure `request.user` is made available to response mid... | 1 |
Javascript | Javascript | remove dead code from pdfthumbnailview | 777d69b52ed2196cb69c851c07ae39421498ab65 | <ide><path>web/pdf_thumbnail_view.js
<ide> var PDFThumbnailView = (function PDFThumbnailViewClosure() {
<ide> return canvas.getContext('2d');
<ide> },
<ide>
<del> drawingRequired: function PDFThumbnailView_drawingRequired() {
<del> return !this.hasImage;
<del> },
<del>
<ide> draw: function PDF... | 1 |
Python | Python | remove rogue print | afe9b37f600ba7dad9de249f56ea1e7c539939f7 | <ide><path>rest_framework/pagination.py
<ide> def __init__(self, *args, **kwargs):
<ide> else:
<ide> context_kwarg = {}
<ide>
<del> print object_serializer
<ide> self.fields[results_field] = object_serializer(source='object_list',
<ide> ... | 1 |
Ruby | Ruby | use recursive flatten | 6ebb061b18cd5af087453879b3eac0f719ea4ec4 | <ide><path>activerecord/lib/active_record/associations/association_proxy.rb
<ide> def flatten_deeper(array)
<ide> end
<ide> else
<ide> def flatten_deeper(array)
<del> array.sum [] do |elem|
<del> if elem.respond_to?(:each)
<del> flatten_deeper(elem)
<de... | 1 |
Text | Text | change step tests to use expected/found values | 26fad221aae0e15ef21920db3c0ace34c9179671 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efc4f528d6a74d05e68af74.md
<ide> You should make sure the checkbox is still present.
<ide> assert($('input[type="checkbox"]')[0]);
<ide> ```
<ide>
<del>Your checkbox should still have an `id` attribute with the... | 1 |
Javascript | Javascript | replace fixturedir with fixtures.path | 733d528ac42f07f37391775811d307e3227da7e4 | <ide><path>test/parallel/test-common.js
<ide>
<ide> 'use strict';
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> const assert = require('assert');
<del>const { join } = require('path');
<ide> const { execFile } = require('child_process');
<ide>
<ide> // test for ... | 1 |
Text | Text | remove broken links in model zoo | 3ea7d47e00783030da3cd4fa580cb3f7e60d2185 | <ide><path>research/object_detection/g3doc/detection_model_zoo.md
<ide> Model name
<ide> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------: | :---------------------: | ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.