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 |
|---|---|---|---|---|---|
Javascript | Javascript | update punycode to 2.1.1 | ab10bfe376b17f3f3567605148ef6fdcc5caef7c | <ide><path>lib/punycode.js
<ide> const delimiter = '-'; // '\x2D'
<ide>
<ide> /** Regular expressions */
<ide> const regexPunycode = /^xn--/;
<del>const regexNonASCII = /[^\x20-\x7E]/; // unprintable ASCII chars + non-ASCII chars
<add>const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
<ide> const regexSeparators =... | 1 |
Javascript | Javascript | allow key pressing when triggering browser event | 26e8ab3693eb0ad388247ae5c35cd52eaa709b0c | <ide><path>src/scenario/Scenario.js
<ide> function callerFile(offset) {
<ide> * Triggers a browser event. Attempts to choose the right event if one is
<ide> * not specified.
<ide> *
<del> * @param {Object} Either a wrapped jQuery/jqLite node or a DOMElement
<del> * @param {string} Optional event type.
<add> * @param... | 1 |
Javascript | Javascript | replace loop with padstart | 9d768504d25a2b2899a8d1826794ca24be7e65df | <ide><path>tools/license2rtf.js
<ide> function RtfGenerator() {
<ide> };
<ide>
<ide> function toHex(number, length) {
<del> var hex = (~~number).toString(16);
<del> while (hex.length < length)
<del> hex = `0${hex}`;
<del> return hex;
<add> return (~~number).toString(16).padStart(length, '0');
<ide... | 1 |
Java | Java | use pathcontainer in web.reactive.function.server | 2ccbc55ffdffc08d8f64f0b195b38e602cca7ce1 | <ide><path>spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java
<ide> import java.net.InetSocketAddress;
<ide> import java.net.URI;
<ide> import java.nio.charset.Charset;
<add>import java.nio.charset.StandardCharsets;
<ide> import java.security.Principal;
<ide> import j... | 9 |
Javascript | Javascript | prevent navigation if already on the url | 4bd7bedf48c0c1ebb62f6bd8c85e8ea00f94502b | <ide><path>src/ng/location.js
<ide> function $LocationProvider(){
<ide> rewrittenUrl = $location.$$rewrite(absHref);
<ide>
<ide> if (absHref && !elm.attr('target') && rewrittenUrl) {
<del> // update location manually
<del> $location.$$parse(rewrittenUrl);
<del> $rootScope.$apply();... | 2 |
Text | Text | remove references to doac in docs | a6b6b6ce5536ad4987d0f243466b820c3dea4798 | <ide><path>docs/api-guide/authentication.md
<ide> For details on configuration and usage see the Django REST framework OAuth docum
<ide>
<ide> HTTP digest authentication is a widely implemented scheme that was intended to replace HTTP basic authentication, and which provides a simple encrypted authentication mechanism... | 2 |
PHP | PHP | apply fixes from styleci | e3d6e82c095d29ef85bfd41e4f28f25093bf49b2 | <ide><path>tests/Auth/AuthDatabaseUserProviderTest.php
<ide> public function testRetrieveByCredentialsWithMultiplyPasswordsReturnsNull()
<ide> $provider = new DatabaseUserProvider($conn, $hasher, 'foo');
<ide> $user = $provider->retrieveByCredentials([
<ide> 'password' => 'dayle',
<del> ... | 2 |
Python | Python | add test case for zone with no nodes | f5d6440c7e2b78cc9b62f58967fa58b1480113af | <ide><path>libcloud/test/compute/test_gce.py
<ide> def test_list_nodes(self):
<ide> nodes = self.driver.list_nodes()
<ide> nodes_all = self.driver.list_nodes(ex_zone='all')
<ide> nodes_uc1a = self.driver.list_nodes(ex_zone='us-central1-a')
<add> nodes_uc1b = self.driver.list_nodes(ex_zone... | 1 |
Javascript | Javascript | improve jqlite docs | d769b8b8f0fba81b35e441249e31e7e209d40580 | <ide><path>src/jqLite.js
<ide> *
<ide> * @description
<ide> * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.
<del> * `angular.element` can be either an alias for [jQuery](http://api.jquery.com/jQuery/) function, if
<del> * jQuery is available, or a function that wraps the element or... | 1 |
Ruby | Ruby | remove bottle hooks | 8bbe9b744f627f1b3741b4b667e64ed797e6323a | <ide><path>Library/Homebrew/formula_installer.rb
<ide> require "formula_cellar_checks"
<ide> require "install_renamed"
<ide> require "cmd/postinstall"
<del>require "hooks/bottles"
<ide> require "debrew"
<ide> require "sandbox"
<ide> require "emoji"
<ide> def build_bottle?
<ide> end
<ide>
<ide> def pour_bottle?(ins... | 3 |
Ruby | Ruby | expand #preprocess_url tests more | 5a007a4ec6eed7df2c255e1175ff918fa1f1b00e | <ide><path>Library/Homebrew/test/livecheck/livecheck_spec.rb
<ide> describe "::preprocess_url" do
<ide> let(:github_git_url_with_extension) { "https://github.com/Homebrew/brew.git" }
<ide>
<add> it "returns the unmodified URL for an unparseable URL" do
<add> # Modeled after the `head` URL in the `ncp` fo... | 1 |
Java | Java | bind implementation of merge | 723d9352170bacef29a7f722f42345c248efc3ae | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationJoinPatterns;
<ide> import rx.operators.OperatorMap;
<ide> import rx.operators.OperationMaterialize;
<del>import rx.operators.OperationMerge;
<add>import rx.operators.OperatorMerge;
<ide> import rx.operators.OperationMergeDelayEr... | 8 |
Go | Go | support custom paths for secrets | 67d282a5c95ca1d25cd4e9c688e89191f662d448 | <ide><path>container/container.go
<ide> func (container *Container) InitializeStdio(iop libcontainerd.IOPipe) error {
<ide>
<ide> return nil
<ide> }
<add>
<add>// SecretMountPath returns the path of the secret mount for the container
<add>func (container *Container) SecretMountPath() string {
<add> return filepath.Jo... | 9 |
PHP | PHP | replace redis to contracts interface | ae450475b44d145f5b72fe884d26e250607b37a4 | <ide><path>src/Illuminate/Cache/RedisStore.php
<ide> namespace Illuminate\Cache;
<ide>
<ide> use Illuminate\Contracts\Cache\Store;
<del>use Illuminate\Redis\Database as Redis;
<add>use Illuminate\Contracts\Redis\Database as Redis;
<ide>
<ide> class RedisStore extends TaggableStore implements Store
<ide> { | 1 |
Ruby | Ruby | avoid extra string objects in the inner join case | 890eaf4784fb6b4ee9e1a8f167f6a9b28525722e | <ide><path>lib/arel/visitors/to_sql.rb
<ide> def visit_Arel_Nodes_OuterJoin o
<ide> end
<ide>
<ide> def visit_Arel_Nodes_InnerJoin o
<del> "INNER JOIN #{visit o.left} #{visit o.right if o.right}"
<add> s = "INNER JOIN #{visit o.left}"
<add> if o.right
<add> s << SPACE
<add> ... | 1 |
Ruby | Ruby | fix empty gem rbis for non-vendored dependencies | 14c2afe1d84af5657a3af0f85e194aa619f94661 | <ide><path>Library/Homebrew/sorbet/tapioca/require.rb
<ide> # typed: strict
<ide> # frozen_string_literal: true
<ide>
<del># Add your extra requires here
<add># This should not be made a constant or Tapioca will think it is part of a gem.
<add>dependency_require_map = {
<add> "activesupport" => "active_support",
<add... | 1 |
Javascript | Javascript | add test for node.async_hooks tracing in workers | 908e114750989d42797a917938529a9b2ebed13e | <ide><path>test/parallel/test-trace-events-async-hooks-worker.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>if (!process.binding('config').hasTracing)
<add> common.skip('missing trace events');
<add>
<add>const assert = require('assert');
<add>const cp = require('child_process');
<add>cons... | 1 |
Python | Python | move max_length to nlp.make_doc() | e931d3f72be04dfc0eb34831555ae2f66a90310e | <ide><path>spacy/language.py
<ide> def __call__(self, text, disable=[], component_cfg=None):
<ide>
<ide> DOCS: https://spacy.io/api/language#call
<ide> """
<del> if len(text) > self.max_length:
<del> raise ValueError(
<del> Errors.E088.format(length=len(text), max_lengt... | 1 |
Ruby | Ruby | add initial support for xcode 11.0 | 2a5aee0a0b98f40d6936d124c67cc3ec33d6ee03 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def full_version=(version)
<ide>
<ide> def latest_sdk_version
<ide> # TODO: bump version when new Xcode macOS SDK is released
<del> Version.new "10.14"
<add> Version.new "10.15"
<ide> end
<ide>
<ide> def latest_stable_version
<ide> def preferred_... | 2 |
Ruby | Ruby | allow comparison on model objects - closes | bc743dc1ce4657be0c377edaab69f8e9ca0e350b | <ide><path>activerecord/lib/active_record/base.rb
<ide> def frozen?
<ide> @attributes.frozen?
<ide> end
<ide>
<add> # Allows sort on objects
<add> def <=>(other_object)
<add> self.to_key <=> other_object.to_key
<add> end
<add>
<ide> # Backport dup from 1.9 so that initialize_d... | 2 |
Javascript | Javascript | restore jquery push behavior in .find | 4d3050b3d80dc58cdcca0ce7bfdd780e50b0483f | <ide><path>src/traversing/findFilter.js
<ide> jQuery.filter = function( expr, elems, not ) {
<ide>
<ide> jQuery.fn.extend( {
<ide> find: function( selector ) {
<del> var i,
<add> var i, ret,
<ide> len = this.length,
<del> ret = [],
<ide> self = this;
<ide>
<ide> if ( typeof selector !== "string" ) {
<ide... | 1 |
Python | Python | add extra logging | ceab9a3f2ec25d422a8e6acd9c3f9a84591f2541 | <ide><path>airflow/contrib/auth/backends/kerberos_auth.py
<ide> def login(self, request):
<ide>
<ide> session = settings.Session()
<ide> user = session.query(models.User).filter(
<del> models.User.username == DEFAULT_USERNAME).first()
<add> models.User.username == username).first(... | 2 |
Javascript | Javascript | fix minor issue | 202bbb3422e0884db972df6d022dec11393f7e99 | <ide><path>src/extras/core/Font.js
<ide> Object.assign( Font.prototype, {
<ide>
<ide> function createPaths( text, size, divisions, data ) {
<ide>
<del> var chars = String( text ).split( '' );
<add> var chars = Array.from ? Array.from( text ) : String( text ).split( '' ); // see #13988
<ide> var scale = size / data.r... | 1 |
Javascript | Javascript | add test for a unref'ed timer leak | 6f72d87c274f28021ba3bf7056d8faa18e75b4f1 | <ide><path>test/parallel/test-timers-unref-leak.js
<add>var assert = require('assert');
<add>
<add>var called = 0;
<add>var closed = 0;
<add>
<add>var timeout = setTimeout(function() {
<add> called++;
<add>}, 10);
<add>timeout.unref();
<add>
<add>// Wrap `close` method to check if the handle was closed
<add>var close ... | 1 |
Ruby | Ruby | allow add_to_transaction with null transaction | 95254e4f129cedd4048c63e2f068227d5f80864d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
<ide> def set_state(state)
<ide>
<ide> class NullTransaction #:nodoc:
<ide> def initialize; end
<add> def state; end
<ide> def closed?; true; end
<ide> def open?; false; end
<ide> def joinable?; false... | 2 |
Java | Java | increase randomness in socketutils | d5944c4e398a288ff416a51ab35871024d612804 | <ide><path>spring-core/src/main/java/org/springframework/util/SocketUtils.java
<ide> import java.net.DatagramSocket;
<ide> import java.net.InetAddress;
<ide> import java.net.ServerSocket;
<del>import java.util.Random;
<add>import java.security.SecureRandom;
<ide> import java.util.SortedSet;
<ide> import java.util.TreeS... | 1 |
Ruby | Ruby | fix collectionproxy documentation markup | ab2e2a9d2b772cf4aef4d9f4f2d506a03c205035 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> ##
<ide> # :method: first
<ide> # Returns the first record, or the first +n+ records, from the collection.
<del> # If the collection is empty, the first form returns nil, and th... | 1 |
Ruby | Ruby | reduce number of comparisons and array allocations | 155fd955ac380c7877785f1b74b61ad86fd40772 | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def instantiate(result_set)
<ide> records = result_set.map { |row_hash|
<ide> primary_id = type_caster.type_cast row_hash[primary_key]
<ide> parent = parents[primary_id] ||= join_base.instantiate(row_hash)
<del> ... | 1 |
Text | Text | fix minor details and wording | fdabdf5d53de866dbcf7435c48d5a9af978d8aa5 | <ide><path>docs/rfcs/002-atom-nightly-releases.md
<ide> Today, a bleeding-edge user must manually pull Atom's `master` branch and compil
<ide>
<ide> A user who wants to use the latest improvements to Atom each day can go to atom.io, download the Atom Nightly release, and install it on their machine. This release can ... | 1 |
Javascript | Javascript | change items unknown style | e270ae9f010db42290c2df733383cfb7dcfcd697 | <ide><path>lib/util.js
<ide> function formatValue(ctx, value, recurseTimes, ln) {
<ide> if (ctx.showHidden) {
<ide> formatter = formatWeakSet;
<ide> } else {
<del> extra = '[items unknown]';
<add> extra = '<items unknown>';
<ide> }
<ide> } else if (isWeakMap(value)) {
<ide> ... | 2 |
PHP | PHP | batch insert correction | 78c3357578dc83984f82bb88d0c15d23311f3d28 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> public function compileInsert(Builder $query, array $values)
<ide>
<ide> $columns = $this->columnize(array_keys(reset($values)));
<ide>
<del> // We need to build a list of parameter place-holders of values that are bound
<del> // to the query. Ea... | 2 |
Javascript | Javascript | pluralize dom element | d506b8a9df467f4d182f4a40333df7566c552015 | <ide><path>src/ng/compile.js
<ide> *
<ide> * ### Transclusion
<ide> *
<del> * Transclusion is the process of extracting a collection of DOM element from one part of the DOM and
<add> * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and
<ide> * copying them to another... | 1 |
Javascript | Javascript | fix tests from to use jasmine 2 | a49b7a2dfb57852264eb83a7510490d19268089c | <ide><path>src/isomorphic/classic/class/__tests__/ReactClassMixin-test.js
<ide> describe('ReactClass-mixin', function() {
<ide> },
<ide> });
<ide>
<del> expect(console.error.argsForCall.length).toBe(1);
<del> expect(console.error.argsForCall[0][0]).toBe(
<add> expect(console.error.calls.count()).toB... | 1 |
Python | Python | fix typo in docstring for readonlyfield | b209fe04fc5720fe7d13c8ff9abadfe09df9f146 | <ide><path>rest_framework/fields.py
<ide> class ReadOnlyField(Field):
<ide>
<ide> For example, the following would call `get_expiry_date()` on the object:
<ide>
<del> class ExampleSerializer(self):
<add> class ExampleSerializer(Serializer):
<ide> expiry_date = ReadOnlyField(source='get_expiry_date')... | 1 |
Python | Python | fix conv layers loading for model_from_config | ed4acfae40e15c9598fb07e8bf67f63b98fea6d6 | <ide><path>keras/utils/layer_utils.py
<ide> from ..layers.advanced_activations import LeakyReLU, PReLU
<ide> from ..layers.core import Dense, Merge, Dropout, Activation, Reshape, Flatten, RepeatVector, Layer
<ide> from ..layers.core import ActivityRegularization, TimeDistributedDense, AutoEncoder, MaxoutDense
<add>from... | 1 |
Mixed | Ruby | fix date_select option overwriting html classes | 60ed9d62826678006f0c8abde25ee779b1740c3a | <ide><path>actionview/CHANGELOG.md
<add>* `date_select` helper with option `with_css_classes: true` does not overwrite other classes.
<add>
<add> *Izumi Wong-Horiuchi*
<add>
<ide> * `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
<ide> as input.
<ide>
<ide><path>actionview/lib/a... | 3 |
Text | Text | add space after dot | 8d099567132eba326bbbd956ea430905d6e85219 | <ide><path>guide/english/javascript/es6/for-of/index.md
<ide> for (const fruit of fruits)
<ide> The above snippet is going to return us the items in the array above.
<ide>
<ide> ## for-of loop in knowing index
<del>What if we want to know the index of each item too.In that case we can iterate over fruits.entries() whi... | 1 |
PHP | PHP | add actingas() tests. | 80ef2d0ea836b15c7a45e611d17e9bc24d4bd235 | <ide><path>tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Integration\Foundation\Testing\Concerns;
<add>
<add>use Illuminate\Http\Request;
<add>use Orchestra\Testbench\TestCase;
<add>use Illuminate\Support\Facades\Auth;
<add>use Illumin... | 1 |
Ruby | Ruby | fix formula path usage in brew-gist-logs | 84251bd44fbdc722a36c41891ed2b15b3406afbe | <ide><path>Library/Contributions/cmd/brew-gist-logs.rb
<ide> def initialize response
<ide> end
<ide>
<ide> def repo_name f
<del> dir = (f.path.symlink? ? f.path.realpath.dirname : HOMEBREW_REPOSITORY)
<add> dir = f.path.dirname
<ide> url = dir.cd { `git config --get remote.origin.url` }
<ide> unless url =~ %r{gi... | 1 |
Python | Python | update benchmark codes to match current set | 57d222ff3d422b3c4a454fa66a037c4b478c9524 | <ide><path>benchmarks/benchmarks/bench_random.py
<ide> def time_permutation_int(self):
<ide>
<ide> class RNG(Benchmark):
<ide> param_names = ['rng']
<del> params = ['PCG64', 'MT19937', 'Philox', 'numpy']
<add> params = ['PCG64', 'MT19937', 'Philox', 'SFC64', 'numpy']
<ide>
<ide> def setup(self, bitgen):... | 2 |
Go | Go | fix typo in pullimage | 3f17844b6ec3edb981653ca237d085909d5be671 | <ide><path>server.go
<ide> func (srv *Server) pullImage(r *registry.Registry, out io.Writer, imgID, endpoin
<ide> if err != nil {
<ide> return err
<ide> }
<del> out.Write(sf.FormatProgress(utils.TruncateID(imgID), "Pulling", "dependend layers"))
<add> out.Write(sf.FormatProgress(utils.TruncateID(imgID), "Pulling", ... | 1 |
Text | Text | update rails 5 release notes with syntax fixes | b96e5ea2e158d5f19406a4b25f7a5b5945c5cb2f | <ide><path>guides/source/5_0_release_notes.md
<ide> It also changes the behavior of values passed to `ActiveRecord::Base.where`, whi
<ide> without having to rely on implementation details or monkey patching.
<ide>
<ide> Some things that you can achieve with this:
<add>
<ide> * The type detected by Active Record can be... | 1 |
Javascript | Javascript | use useragentdata in favour of useragent | 2d96c9d78023d75115152f9f520ea51dcf94c958 | <ide><path>src/js/tech/html5.js
<ide> class Html5 extends Tech {
<ide> // Our goal should be to get the custom controls on mobile solid everywhere
<ide> // so we can remove this all together. Right now this will block custom
<ide> // controls on touch enabled laptops like the Chrome Pixel
<del> if ((brow... | 3 |
PHP | PHP | use a regex to test for placeholders | ed358f0fc258e1498c0763b5d047068552454b04 | <ide><path>src/Database/QueryCompiler.php
<ide> public function compile(Query $query, ValueBinder $generator)
<ide> if ($query->valueBinder() !== $generator) {
<ide> foreach ($query->valueBinder()->bindings() as $binding) {
<ide> $placeholder = ':' . $binding['placeholder'];
<del> ... | 1 |
Python | Python | fix flags to force_v2_in_keras_compile | d09994b26ac8592765be45dc8a8444ead55eb32b | <ide><path>official/resnet/keras/keras_imagenet_benchmark.py
<ide> def benchmark_1_gpu_no_dist_strat_run_eagerly(self):
<ide> FLAGS.batch_size = 64
<ide> self._run_and_report_benchmark()
<ide>
<del> def benchmark_1_gpu_force_dist_strat_run_eagerly(self):
<del> """No dist strat but forced ds tf.compile path... | 1 |
Java | Java | reduce byte[] allocations in stompencoder | 95ef9c25c2f68b25e430922aad091dd985cf2a6f | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompEncoder.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> *... | 1 |
PHP | PHP | remove validationerrors properties | 91ff33629d5f55ed018085c23322af1198852b57 | <ide><path>src/Controller/Controller.php
<ide> class Controller implements EventListener {
<ide> */
<ide> public $methods = array();
<ide>
<del>/**
<del> * Holds any validation errors produced by the last call of the validateErrors() method/
<del> *
<del> * @var array
<del> */
<del> public $validationErrors = null;
... | 3 |
Python | Python | fix slow ci by pinning resampy | 9bd3968509010378c32009ed632f96fd69d1f3b8 | <ide><path>setup.py
<ide> "ray[tune]",
<ide> "regex!=2019.12.17",
<ide> "requests",
<add> "resampy<0.3.1",
<ide> "rjieba",
<ide> "rouge-score",
<ide> "sacrebleu>=1.4.12,<2.0.0",
<ide> def run(self):
<ide> extras["integrations"] = extras["optuna"] + extras["ray"] + extras["sigopt"]
<ide>
<ide... | 2 |
Text | Text | make building with ninja more discoverable | d5e94fa7121c9d424588f0e1a388f8c72c784622 | <ide><path>BUILDING.md
<ide> $ ./configure
<ide> $ make -j4
<ide> ```
<ide>
<add>We can speed up the builds by using [Ninja](https://ninja-build.org/). For more
<add>information, see
<add>[Building Node.js with Ninja](doc/contributing/building-node-with-ninja.md).
<add>
<ide> The `-j4` option will cause `make` to run ... | 2 |
Text | Text | fix v2.0.2 entry in changelog.md | c7fb91dc1310f9454d4aa8091bcc6d305322a72f | <ide><path>CHANGELOG.md
<ide> # io.js ChangeLog
<ide>
<del>## 2015-05-15, Version 2.0.1, @Fishrock123
<add>## 2015-05-15, Version 2.0.2, @Fishrock123
<ide>
<ide> ### Notable changes
<ide> | 1 |
Ruby | Ruby | add debug information for empty bom error | c32415529532369c6fffdd34c95da1ee21546f87 | <ide><path>Library/Homebrew/unpack_strategy/dmg.rb
<ide> def extract_to_dir(unpack_dir, basename:, verbose:)
<ide> Tempfile.open(["", ".bom"]) do |bomfile|
<ide> bomfile.close
<ide>
<add> bom = path.bom
<add>
<ide> Tempfile.open(["", ".list"]) do |filelist|
<del> filelis... | 1 |
Javascript | Javascript | enhance test-case to verify correct behaviour | c2fb4b6986c13e6484f646ad732c1470d2c353db | <ide><path>test/ngResource/resourceSpec.js
<ide> describe("resource", function() {
<ide> var cc = CreditCard.get({id: 123});
<ide> $httpBackend.flush();
<ide>
<add> cc.$myProp = 'still here';
<add>
<ide> expect(cc.$promise).toBeDefined();
<ide> expect(cc.$resolved).toBe(true);
<ide>
<ide> var j... | 1 |
Text | Text | remove irrelevant question from faq | 72d3d724a3a0c6bc46981efd0dad8f7f61121a47 | <ide><path>README.md
<ide> as a static resource in your Xcode project. Then set the `jsCodeLocation` in
<ide> `AppDelegate.m` to point to that file and deploy to your device like you would
<ide> any other app.
<ide>
<del>##### Q. What's up with this private repo? Why aren't you just open sourcing it now?
<del>A. We w... | 1 |
Mixed | Ruby | add db to the list of default annotation folders | 553b563749517114323b4e8742509227e0daab67 | <ide><path>railties/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Add `db` to list of folders included by `rake notes` and `rake notes:custom`. *Antonio Cangiano*
<add>
<ide> * Engines with a dummy app include the rake tasks of dependencies in the app namespace.
<ide> Fix #8229
<ide>
<ide><pa... | 3 |
Text | Text | fix typos for docker separate build image | 863f638b5344d0c34aea9f688a095b6c2ccc9a5e | <ide><path>guide/english/docker/separate-build-image/index.md
<ide> title: Separate Build Image
<ide> ---
<ide> ## Overview
<ide>
<del>Making lightweight docker images is key to having a fast development/deployment pipeline. For compiled code, building the binary inside a docker container has the benefit of being a re... | 1 |
Javascript | Javascript | reduce benchmark test run time | 85893afb0594d7de479ade90ac309e138e63f8d7 | <ide><path>test/sequential/test-benchmark-buffer.js
<ide> runBenchmark('buffers',
<ide> 'encoding=utf8',
<ide> 'endian=BE',
<ide> 'len=2',
<add> 'millions=0.000001',
<ide> 'method=',
<ide> 'n=1',
<ide> 'noAssert=true... | 1 |
Ruby | Ruby | allow association as 1st uniqueness validation arg | 3b5fbafab014325bdd42a7cae867ee5c92bc3298 | <ide><path>activerecord/lib/active_record/validations/uniqueness.rb
<ide> def find_finder_class_for(record) #:nodoc:
<ide> end
<ide>
<ide> def build_relation(klass, table, attribute, value) #:nodoc:
<del> column = klass.columns_hash[attribute.to_s]
<add> reflection = klass.reflect_on_associat... | 2 |
Text | Text | add docs for fasttest | d5533cfb6d2c5581c5ea7e2dc33d96cdc4d0f076 | <ide><path>README.md
<ide> We use grunt to automate many tasks. Run `grunt -h` to see a mostly complete lis
<ide> grunt test
<ide> # Build and run tests in your browser
<ide> grunt test --debug
<add># For speed, you can use fasttest and add --filter to only run one test
<add>grunt fasttest --filter=ReactIdentity
<ide> ... | 1 |
Text | Text | create nirantk.md [ci skip] | a5d92a30357a729c442d9be432fae48b06601a7e | <ide><path>.github/contributors/NirantK.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<a... | 1 |
Go | Go | swap cat by top to prevent 2 warnings | 0e021ed470a1014bb924ad7067d85540f8f1e71a | <ide><path>api_test.go
<ide> func TestPostContainersRestart(t *testing.T) {
<ide> container, err := runtime.Create(
<ide> &Config{
<ide> Image: GetTestImage(runtime).ID,
<del> Cmd: []string{"/bin/cat"},
<add> Cmd: []string{"/bin/top"},
<ide> OpenStdin: true,
<ide> },
<ide> )
<ide> func T... | 1 |
Mixed | Javascript | use a default message in assert | 3cd7977a425d4ef6d2e9b6d535763bc5633789bf | <ide><path>doc/api/assert.md
<ide> parameter is an instance of an [`Error`][] then it will be thrown instead of the
<ide> added: v0.1.21
<ide> changes:
<ide> - version: REPLACEME
<del> pr-url: https://github.com/nodejs/node/pull/17581
<del> description: assert.ok() will throw a `ERR_MISSING_ARGS` error.
<del> ... | 3 |
Javascript | Javascript | add test case for preloading buildmanifest | 39e00a3f2f87fa2c1ee6d858dc49120842fb9a5b | <ide><path>test/integration/dynamic-routing/test/index.test.js
<ide> function runTests(dev) {
<ide> expect(res.status).toBe(400)
<ide> })
<ide>
<add> it('should preload buildManifest for auto-export dynamic pages', async () => {
<add> const html = await renderViaHTTP(appPort, '/on-mount/hello')
<add> cons... | 1 |
Ruby | Ruby | disallow unstable specs for versioned formulae | a185f3272edf96fc6e65eaf236a61d067270c966 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide> end
<ide> end
<ide>
<del> if @new_formula && formula.head
<del> new_formula_problem "Formulae should not have a HEAD spec"
<add> if formula.head || formula.devel
<add> unstable_spec_message = "Formulae should... | 1 |
Javascript | Javascript | fix typos and make minor layout improvements | d28ae2126e0c9e24f534aff4f13c9a92c842e5f1 | <ide><path>src/ng/directive/validators.js
<ide> * @description
<ide> *
<ide> * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
<del> * It is most often used for [@link input `input`} and {@link select `select`} controls, but can also be
<add> * It ... | 1 |
Ruby | Ruby | add failing spec for `dependencyorder` cop | fdb2406b2044d74fb28ea7844b0987c8fb9feb20 | <ide><path>Library/Homebrew/test/rubocops/dependency_order_cop_spec.rb
<ide> class Foo < Formula
<ide> RUBY
<ide> end
<ide>
<add> it "supports requirement constants" do
<add> expect_offense(<<~RUBY)
<add> class Foo < Formula
<add> homepage "http://example.com"
<add> url "http... | 1 |
Text | Text | commit suggestions from pr review | 989adad03995109f0b5daeaaf8fe92d9fd98d302 | <ide><path>branding/logo/logoguidelines.md
<ide> These guidelines are meant to help keep the NumPy logo consistent and recognizab
<ide> The primary logo is the horizontal option (logomark and text next to each other) and the secondary logo is the stacked version (logomark over text). I’ve also provided the logomark on ... | 1 |
Javascript | Javascript | remove test for missing feature | d7e5392139347c756e338b3bd104dc1a44b15e11 | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js
<ide> describe('DependencyGraph', function() {
<ide> });
<ide> });
<ide>
<del> //TODO(davidaurelio) Make this actually worked. The test only passed because
<del> // the mocked cache didn't cache.... | 1 |
PHP | PHP | add option to disable local xml file parsing | 2cde19f24c3679e8162e3abbce73818a8b0c02a0 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function startup(Event $event)
<ide> public function convertXml($xml)
<ide> {
<ide> try {
<del> $xml = Xml::build($xml);
<add> $xml = Xml::build($xml, ['readFile' => false]);
<ide> if (isset($x... | 4 |
Text | Text | add some notes about now deployment | ac31f1636ee15daad983d6d801a1e35764c7fe79 | <ide><path>UPGRADING.md
<ide> # Migrating from v8 to v9
<ide>
<add>## Preamble
<add>
<add>#### Production Deployment on ZEIT Now v2
<add>
<add>If you previously configured `routes` in your `now.json` file for dynamic routes, these rules can be removed when leveraging Next.js 9's new [Dynamic Routing feature](https://g... | 2 |
Javascript | Javascript | refine handling of illegal tokens | de0aa23ad71e63c90be947f79b547f7c303ce7b8 | <ide><path>lib/repl.js
<ide> REPLServer.prototype.convertToContext = function(cmd) {
<ide> return cmd;
<ide> };
<ide>
<add>function bailOnIllegalToken(parser) {
<add> return parser._literal === null &&
<add> !parser.blockComment &&
<add> !parser.regExpLiteral;
<add>}
<ide>
<ide> // If the error is ... | 2 |
Text | Text | change mac os x to macos | 7a5d07c7fbd43f3645d7f707fd6a98f2a251bdbd | <ide><path>BUILDING.md
<ide> Depending on host platform, the selection of toolchains may vary.
<ide>
<ide> ## Building Node.js on supported platforms
<ide>
<del>### Unix / OS X
<add>### Unix / macOS
<ide>
<ide> Prerequisites:
<ide>
<ide> Prerequisites:
<ide> * Python 2.6 or 2.7
<ide> * GNU Make 3.81 or newer
<ide> ... | 11 |
PHP | PHP | apply fixes from styleci | 20faf9fc0dc9302eec46a62aa477a700edddae36 | <ide><path>tests/Broadcasting/BroadcasterTest.php
<ide> use Illuminate\Http\Request;
<ide> use Mockery as m;
<ide> use PHPUnit\Framework\TestCase;
<del>use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
<ide> use Symfony\Component\HttpKernel\Exception\HttpException;
<ide>
<ide> class BroadcasterTest... | 1 |
Javascript | Javascript | add regression test for --debug-brk -e 0 | 810cc05116b39963b25c87fd17be32a6bb867eb0 | <ide><path>test/parallel/test-debug-brk.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const spawnSync = require('child_process').spawnSync;
<add>
<add>const args = [`--debug-brk=${common.PORT}`, `-e`, `0`];
<add>const proc = spawnSync(process.execPath,... | 1 |
Text | Text | fix typo line 60 | 64a385662b6f23953831b5c32d2475921c10733b | <ide><path>guide/english/algorithms/flood-fill/index.md
<ide> void flood_fill(int pos_x, int pos_y, int target_color, int color)
<ide>
<ide> As seen above, my starting point is (4,4). After calling the function for the start coordinates **x = 4** and **y = 4**,
<ide> I can start checking if there is no wall or color o... | 1 |
Javascript | Javascript | fix conflict between makeglobal prs | fffe2f3e715c754a9ce2ff2276894ed680aa443d | <ide><path>moment.js
<ide> }
<ide> return local_moment.apply(null, arguments);
<ide> };
<del> extend(this.moment, local_moment);
<add> extend(global.moment, local_moment);
<ide> } else {
<ide> global['moment'] = moment;
<ide> ... | 1 |
Go | Go | fix panic on --label-add | 85bc3194aa12c19a5bd755666d1e9617dc1bb322 | <ide><path>api/client/service/update.go
<ide> func updatePlacement(flags *pflag.FlagSet, placement *swarm.Placement) {
<ide>
<ide> func updateLabels(flags *pflag.FlagSet, field *map[string]string) {
<ide> if flags.Changed(flagLabelAdd) {
<del> if field == nil {
<add> if *field == nil {
<ide> *field = map[string]... | 3 |
Go | Go | add testsandboxinfoequal in sandbox_test.go | 3da12c72198a99a7cd4b37ce54bdbdcf98bb5df9 | <ide><path>libnetwork/sandbox/sandbox_test.go
<ide> func TestInterfaceEqual(t *testing.T) {
<ide> }
<ide> }
<ide>
<add>func TestSandboxInfoEqual(t *testing.T) {
<add> si1 := &Info{Interfaces: getInterfaceList(), Gateway: net.ParseIP("192.168.1.254"), GatewayIPv6: net.ParseIP("2001:2345::abcd:8889")}
<add> si2 := &Inf... | 1 |
PHP | PHP | initialize array in sqlitegrammar.php | b5c0e040b406696b137f681c1defd25ea0e2a89a | <ide><path>src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
<ide> public function compileAdd(Blueprint $blueprint, Fluent $command)
<ide>
<ide> $columns = $this->prefixArray('add column', $this->getColumns($blueprint));
<ide>
<add> $statements = array();
<add>
<ide> foreach ($columns as $column)
<ide> ... | 1 |
Text | Text | add log with function call to challenge | 5ffcd0f28484d3c700ccf62d4e213069a73af95c | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/iterate-through-the-keys-of-an-object-with-a-for...in-statement.md
<ide> const usersObj3 = {
<ide> ## --seed-contents--
<ide>
<ide> ```js
<add>const users = {
<add> Alan: {
<add> online: false
<add> },
<add... | 1 |
Ruby | Ruby | complete all the standard severity levels | 0373afba17406bc513e6d6b6e8ab5b1b8f2bff30 | <ide><path>lib/action_cable/connection/tagged_logger_proxy.rb
<ide> def initialize(logger, tags:)
<ide> @tags = tags.flatten
<ide> end
<ide>
<del> def info(message)
<del> log :info, message
<del> end
<del>
<del> def error(message)
<del> log :error, message
<del> end
<del... | 1 |
Ruby | Ruby | inline this method | a78b9063892aeb4e5084edcfc7ed873587997abc | <ide><path>Library/Homebrew/cleaner.rb
<ide> def prune
<ide> end
<ide> end
<ide>
<del> # Set permissions for executables and non-executables
<del> def clean_file_permissions path
<del> perms = if path.mach_o_executable? || path.text_executable?
<del> 0555
<del> else
<del> 0444
<del> end
<del... | 1 |
Ruby | Ruby | reduce conditionals in url_for | 9df60693d77813b362fb528fc62381ac8f1eec12 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def url_for(options)
<ide> options = default_url_options.merge(options || {})
<ide>
<ide> user, password = extract_authentication(options)
<del> recall = options.delete(:_recall)
<add> recall = options.delete(:_recall)... | 1 |
Javascript | Javascript | add flag to be silent in runner | e4383c0170832368564bd39ddc5dba6e104eb1b2 | <ide><path>benchmark/common.js
<ide> var assert = require('assert');
<ide> var path = require('path');
<add>var silent = +process.env.NODE_BENCH_SILENT;
<ide>
<ide> exports.PORT = process.env.PORT || 12346;
<ide>
<ide> Benchmark.prototype.end = function(operations) {
<ide>
<ide> Benchmark.prototype.report = function... | 1 |
PHP | PHP | fix empty datetime inputs | 46ea01353fab948fd0a116239cc291b59f364f9e | <ide><path>src/View/Widget/DateTimeWidget.php
<ide> protected function _deconstructDate($value, $options)
<ide> ];
<ide> $validDate = false;
<ide> foreach ($dateArray as $key => $dateValue) {
<del> if (isset($value[$key])) {
<del> ... | 2 |
Javascript | Javascript | fix error type | cc6abc6e84b96fd5f1c4123066eba93ddb637e60 | <ide><path>lib/internal/url.js
<ide> class URL {
<ide> constructor(input, base) {
<ide> // toUSVString is not needed.
<ide> input = `${input}`;
<del> if (base !== undefined &&
<del> (!base[searchParams] || !base[searchParams][searchParams])) {
<add> if (base !== undefined) {
<ide> base = ne... | 2 |
Ruby | Ruby | improve existing tests for livecheck dsl | 47d07b2f1baaa2a999c64b768d66ba2f7a80b892 | <ide><path>Library/Homebrew/test/livecheck_spec.rb
<ide> require "livecheck"
<ide>
<ide> describe Livecheck do
<add> HOMEPAGE_URL = "https://example.com/"
<add> STABLE_URL = "https://example.com/example-1.2.3.tar.gz"
<add> HEAD_URL = "https://example.com/example.git"
<add>
<ide> let(:f) do
<ide> formula do
<d... | 1 |
Python | Python | treat internal errors as failure | e0d865c56cb43827db85f7418d02fbfb746d7f7b | <ide><path>celery/app/trace.py
<ide> def trace_task(task, uuid, args, kwargs, request=None, **opts):
<ide> return task.__trace__(uuid, args, kwargs, request)
<ide> except Exception as exc:
<ide> _signal_internal_error(task, uuid, args, kwargs, request, exc)
<del> return trace_ok_t(report_inte... | 4 |
Text | Text | add next_locale cookie note to docs | 782537dd2d265d718c5e2e3a5e51dd418df0f366 | <ide><path>docs/advanced-features/i18n-routing.md
<ide> export default function IndexPage(props) {
<ide> }
<ide> ```
<ide>
<add>## Leveraging the NEXT_LOCALE cookie
<add>
<add>Next.js supports overriding the accept-language header with a `NEXT_LOCALE=the-locale` cookie. This cookie can be set using a language switcher... | 1 |
Python | Python | add tap output to the test runner | 14ed1732cee8d1e721977eb2673b88995ef46608 | <ide><path>tools/test.py
<ide> def HasRun(self, output):
<ide> sys.stdout.flush()
<ide>
<ide>
<add>class TapProgressIndicator(SimpleProgressIndicator):
<add>
<add> def Starting(self):
<add> print '1..%i' % len(self.cases)
<add> self._done = 0
<add>
<add> def AboutToRun(self, case):
<add> pass
<add>
<... | 1 |
Java | Java | refine names in web.server and polish javadoc | 381855aaf315adfd44e22797bbf14f07d08155d9 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java
<ide> import org.springframework.core.annotation.AnnotationAwareOrderComparator;
<ide> import org.springframework.http.server.reactive.ServerHttpRequest;
<ide> import org.springframework.web.server.WebHandler;
<del>impo... | 41 |
Javascript | Javascript | increase tests via permutation matrix | b04f2b661802adf5fd2c7731cd2d5e0f5cfe16d1 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> function readPackage(requestPath) {
<ide> const existing = packageJsonCache.get(jsonPath);
<ide> if (existing !== undefined) return existing;
<ide>
<del> const result = packageJsonReader.read(path.toNamespacedPath(jsonPath));
<add> const result = packageJsonRea... | 7 |
Text | Text | add a missing word to the static optimization doc | 41d4084c040bd74b9519bb347fdfff7ce1f5c3a6 | <ide><path>docs/advanced-features/automatic-static-optimization.md
<ide> This feature allows Next.js to emit hybrid applications that contain **both serv
<ide>
<ide> > Statically generated pages are still reactive: Next.js will hydrate your application client-side to give it full interactivity.
<ide>
<del>One of the ... | 1 |
Text | Text | add ruben to tsc | e45874723fa698df5c761b921c29a49c43af1a30 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Anatoli Papirovski** <apapirovski@mac.com> (he/him)
<ide> * [BethGriggs](https://github.com/BethGriggs) -
<ide> **Beth Griggs** <Bethany.Griggs@uk.ibm.com> (she/her)
<add>* [BridgeAR](https://github.com/Bridg... | 1 |
Text | Text | add link to a iterm2 customization guide | 3de690ae5dc1b4769f133f2d1e3546fd32162a4b | <ide><path>guide/english/terminal-commandline/macos-terminal/index.md
<ide> iTerm2 is an alternative to the legacy terminal in Mac OS. iTerm2 brings some ne
<ide> * and many [more](https://www.iterm2.com/features.html)
<ide>
<ide> Just download iTerm2 from the official [website](https://www.iterm2.com/downloads.html).... | 1 |
Python | Python | fix minor typo in multi.py | 845df9b88c1e5d70f098ecc20a1b7e8835bb832c | <ide><path>celery/bin/multi.py
<ide> $ # You need to add the same arguments when you restart,
<ide> $ # as these aren't persisted anywhere.
<ide> $ celery multi restart Leslie -E --pidfile=/var/run/celery/%n.pid
<del> --logfile=/var/run/celery/%n%I.log
<add> ... | 1 |
Text | Text | clarify maxsockets option of http.agent | 090f0cd7b697f7a77fa0f6e3210d2ef368bfdc6e | <ide><path>doc/api/http.md
<ide> changes:
<ide> the [initial delay](net.md#net_socket_setkeepalive_enable_initialdelay)
<ide> for TCP Keep-Alive packets. Ignored when the
<ide> `keepAlive` option is `false` or `undefined`. **Default:** `1000`.
<del> * `maxSockets` {number} Maximum number of sockets to allo... | 1 |
Javascript | Javascript | fix bad indentation producing a code block | 37bdcc984a0240cf0ac125613acee12f1cee389d | <ide><path>src/ngResource/resource.js
<ide> });
<ide> </pre>
<ide> *
<del> * It's worth noting that the success callback for `get`, `query` and other method gets passed
<del> * in the response that came from the server as well as $http header getter function, so one
<del> * could rewrite the above ... | 1 |
Javascript | Javascript | remove `subobjectload` function, add comments | 0122d2545531626532a829a693df067e3c391e15 | <ide><path>examples/js/loaders/LDrawLoader.js
<ide> THREE.LDrawLoader = ( function () {
<ide> subobject.url = subobjectURL;
<ide>
<ide> // Load the subobject
<del> subobjectLoad( subobjectURL, onSubobjectLoaded, undefined, onSubobjectError, subobject );
<add> // Use another file loader here so we can... | 1 |
Text | Text | improve asynclocalstorage sample | 82d6726dcb4e05a603e971f46956c142f9403968 | <ide><path>doc/api/async_hooks.md
<ide> chains. It allows storing data throughout the lifetime of a web request
<ide> or any other asynchronous duration. It is similar to thread-local storage
<ide> in other languages.
<ide>
<del>The following example builds a logger that will always know the current HTTP
<del>request ... | 1 |
Python | Python | fix syntax error | 9262fc482946c26fe0734a05484e59da84cf9435 | <ide><path>spacy/language.py
<ide> from .tagger import Tagger
<ide> from .lemmatizer import Lemmatizer
<ide> from .syntax.parser import get_templates
<del>from .syntax.import nonproj
<add>from .syntax import nonproj
<ide> from .pipeline import NeuralDependencyParser, EntityRecognizer
<ide> from .pipeline import TokenVe... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.