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 | initialize fabricxx c++ code and register rootview | 596f17efdac234193afba25bfed6035765fb1a74 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinder.java
<ide>
<ide> package com.facebook.react.fabric;
<ide>
<del>public interface FabricBinder {
<add>public interface FabricBinder<T extends FabricBinding> {
<ide>
<del> void setBinding(FabricBinding binding);
<add> void setBinding(T bindi... | 1 |
Javascript | Javascript | fix a typo | fe3fea7003890a9c23de1508a8ef93ce9dfda45b | <ide><path>lib/webpack.js
<ide> const webpack = /** @type {WebpackFunctionSingle & WebpackFunctionMulti} */ (
<ide> if (watch) {
<ide> util.deprecate(
<ide> () => {},
<del> "A 'callback' argument need to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no... | 1 |
Python | Python | remove forgotten print | 5bc397cc85fa1cbc16967b7ca0fede41f90896bc | <ide><path>libcloud/compute/drivers/packet.py
<ide> def list_images(self):
<ide>
<ide> def list_sizes(self):
<ide> data = self.connection.request('/plans').object['plans']
<del> print data
<ide> return [self._to_size(size) for size in data if
<ide> size.get('line') == 'bareme... | 1 |
Python | Python | fix missing block when there is no failure | 5f06a09b9f3f05b4860f11bbbe22861923b49d81 | <ide><path>utils/notification_service_doc_tests.py
<ide> def payload(self) -> str:
<ide> if self.n_failures > 0:
<ide> blocks.extend([self.category_failures])
<ide>
<del> if self.no_failures == 0:
<add> if self.n_failures == 0:
<ide> blocks.append(self.no_failures)
<ide>
... | 1 |
Ruby | Ruby | add test-cases for primary-key-less-views. closes | ec6eee5db0994f92ac2c3c6d2a922c6edd35b2b1 | <ide><path>activerecord/test/cases/view_test.rb
<ide> def test_column_definitions
<ide> ["name", :string],
<ide> ["status", :integer]], Ebook.columns.map { |c| [c.name, c.type] })
<ide> end
<add>
<add> def test_attributes
<add> assert_equal({"id" => 2, "name" => "Ruby for Rails... | 1 |
Javascript | Javascript | update instagram infolink | 61ae070444d2bcda182bc2dbabb266f38a37c78d | <ide><path>website/src/react-native/showcase.js
<ide> var pinned = [
<ide> icon: 'http://a4.mzstatic.com/us/r30/Purple62/v4/1f/8d/f9/1f8df910-8ec7-3b8e-0104-d44e869f4d65/icon175x175.jpeg',
<ide> linkAppStore: 'https://itunes.apple.com/app/instagram/id389801252?pt=428156&ct=igweb.unifiedHome.badge&mt=8',
<ide> ... | 1 |
Python | Python | add license header and fix flake8 | d944a5a069c62c16aa527b29df24b49463df3969 | <ide><path>contrib/scrape-azure-prices.py
<add>#!/usr/bin/env python
<add>#
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The AS... | 1 |
Java | Java | create cxx binding | fd29878a8b64f645c3b6d92eab361f0b7b4d07d1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinder.java
<add>/**
<add> * Copyright (c) 2014-present, Facebook, Inc.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> */
<add>
<add>package com.fa... | 4 |
Go | Go | move maintainer build test to integration-cli | 3dd4c5f49977bb9538ae1c39605895fde69c86ee | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildWithVolume(t *testing.T) {
<ide> logDone("build - with volume")
<ide> }
<ide>
<add>func TestBuildMaintainer(t *testing.T) {
<add> checkSimpleBuild(t,
<add> `
<add> FROM scratch
<add> MAINTAINER dockerio
<add> `,
<add> "testbuildi... | 2 |
Javascript | Javascript | divide install script in blocks | 685255e688d0b38ee5b7784e79e194e50b5512dc | <ide><path>script/lib/install-application.js
<ide> module.exports = function (packagedAppPath, installDir) {
<ide> const shareDirPath = path.join(prefixDirPath, 'share')
<ide> const installationDirPath = path.join(shareDirPath, atomExecutableName)
<ide> const applicationsDirPath = path.join(shareDirPath, 'a... | 1 |
Javascript | Javascript | detect 0 length fs writes with tests | 6744e59e461cc200a1c135c99450b2800c21b5e9 | <ide><path>lib/fs.js
<ide> fs.write = function (fd, buffer, offset, length, position, callback) {
<ide> offset = 0;
<ide> length = buffer.length;
<ide> }
<add> if(!length) return;
<ide>
<ide> binding.write(fd, buffer, offset, length, position, callback || noop);
<ide> };
<ide> fs.writeSync = function (fd,... | 3 |
Python | Python | fix celery tests | 95cef76eae50a79716e42519c6e44359feb302c4 | <ide><path>tests/executors/test_celery_executor.py
<ide> from airflow.utils import timezone
<ide> from airflow.utils.state import State
<ide> from tests.test_utils import db
<del>from tests.test_utils.config import conf_vars
<ide>
<ide>
<ide> def _prepare_test_bodies():
<ide> def fake_execute_command(command):
<ide> ... | 1 |
Python | Python | add weighted_metrics arg to compile | 1bbd52c7081a842fb4af7f582c44de0d2ba644e3 | <ide><path>keras/engine/training.py
<ide> def weighted(y_true, y_pred, weights, mask=None):
<ide> return weighted
<ide>
<ide>
<del>def _masked_objective(fn):
<del> """Adds support for masking to an objective function.
<del>
<del> It transforms an objective function `fn(y_true, y_pred)`
<del> into a cost-... | 3 |
Javascript | Javascript | add angularevent param to $routechangestart event | 6972596ce99f2a11ae07e65ebcb554cef1dd3240 | <ide><path>src/ngRoute/route.js
<ide> function $RouteProvider(){
<ide> * defined in `resolve` route property. Once all of the dependencies are resolved
<ide> * `$routeChangeSuccess` is fired.
<ide> *
<add> * @param {Object} angularEvent Synthetic event object.
<ide> * @param {Route} next Future... | 1 |
Mixed | Ruby | allow string hash values on ar order method | acbd7ab22e5d9179487bd98110234c54535036c4 | <ide><path>activerecord/CHANGELOG.md
<add>* Allow strings to specify the `#order` value.
<add>
<add> Example:
<add>
<add> Model.order(id: 'asc').to_sql == Model.order(id: :asc).to_sql
<add>
<add> Fixes #10732.
<add>
<add> *Marcelo Casiraghi*
<add>
<ide> * Dynamically register PostgreSQL enum OIDs. T... | 3 |
Ruby | Ruby | use instance method instead of before hook | 6dce4367c2bba894bb94e27cdfe4c56fdcc2c3df | <ide><path>activesupport/lib/active_support/testing/time_helpers.rb
<ide> def unstub_object(stub)
<ide>
<ide> # Containing helpers that helps you test passage of time.
<ide> module TimeHelpers
<del> def before_setup
<del> super
<del> @simple_stubs = SimpleStubs.new
<del> end
<del>
<ide>... | 1 |
Text | Text | add axiosist to ecosystem.md (#963) | 62db26b58854f53beed0d9513b5cf18615c64a2d | <ide><path>ECOSYSTEM.md
<ide> This is a list of axios related libraries and resources. If you have a suggestio
<ide> * [axios-debug-log](https://github.com/Gerhut/axios-debug-log) - Axios interceptor of logging requests & responses by debug.
<ide> * [axios-method-override](https://github.com/jacobbuck/axios-method-over... | 1 |
PHP | PHP | apply fixes from styleci | 2d09053c86e4fd4f3718115dff263c26fb730aa0 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public static function __callStatic($method, $parameters)
<ide> */
<ide> protected static function registerMixin($mixin, $replace)
<ide> {
<del> $methods = (new ReflectionClass($mixin))->getMethods(
<add> $methods = (new Reflec... | 1 |
PHP | PHP | rewrite redis layer | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5 | <ide><path>src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php
<ide>
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<del>use Illuminate\Contracts\Redis\Database as RedisDatabase;
<add>use Illuminate\Contracts\Redis\Factory as Redis;
<ide> use Symfony\Component\HttpKernel\Exception\HttpEx... | 26 |
Javascript | Javascript | update example to use a module | e1f3c0cce84f597af6920a5e32be4a1673c91fab | <ide><path>src/ng/compile.js
<ide> * to illustrate how `$compile` works.
<ide> * </div>
<ide> *
<del> <example module="compile">
<add> <example module="compileExample">
<ide> <file name="index.html">
<ide> <script>
<del> angular.module('compile', [], function($compileProvider) {
<add> angular.module... | 1 |
Python | Python | use self.get_temp_dir and simplify the test | 674506c409d5c1a71c9ee2a974fa94a2b94b6e84 | <ide><path>official/nlp/modeling/layers/tn_expand_condense_test.py
<ide> """Tests for ExpandCondense tensor network layer."""
<ide>
<ide> import os
<del>import shutil
<ide>
<ide> from absl.testing import parameterized
<ide> import numpy as np
<ide> def test_model_save(self, input_dim, proj_multiple):
<ide> # Trai... | 1 |
Text | Text | add two white spaces | 2bed4878b86666e4a9dd947274d94a1ac8a7645e | <ide><path>guide/english/data-science-tools/pandas/index.md
<ide> import pandas as pd
<ide> ```
<ide>
<ide> ## Data frames
<del>A data frame consist of a number of rows and column. Each column represents a feature of the data set, and so has a name and a data type. Each row represents a data point through associated f... | 1 |
Ruby | Ruby | fix tests on 1.8 | 3265bbb65998d8175f3cd087f355a007bf4d2d47 | <ide><path>activesupport/test/buffered_logger_test.rb
<ide> def test_should_auto_flush_every_n_messages
<ide> def test_should_create_the_log_directory_if_it_doesnt_exist
<ide> tmp_directory = File.join(File.dirname(__FILE__), "tmp")
<ide> log_file = File.join(tmp_directory, "development.log")
<del> assert ... | 2 |
Python | Python | add test for | fd187d71ade16595fbc9a6064601714d19c8efa9 | <ide><path>spacy/tests/regression/test_issue1727.py
<add>from __future__ import unicode_literals
<add>import numpy
<add>from ...pipeline import Tagger
<add>from ...vectors import Vectors
<add>from ...vocab import Vocab
<add>from ..util import make_tempdir
<add>
<add>
<add>def test_issue1727():
<add> data = numpy.one... | 1 |
Python | Python | set version to v2.1.0a5 | 978d8be8f91b930615acf3043d18f86700f77124 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a5.dev0"
<add>__version__ = "2.1.0a5"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide>... | 1 |
Go | Go | remove deprecated cmd function in integration-cli | 7fbbd515b1018721e91199960d1933383a8262a1 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildNoContext(t *testing.T) {
<ide> t.Fatalf("build failed to complete: %v %v", out, err)
<ide> }
<ide>
<del> if out, _, err := cmd(t, "run", "--rm", "nocontext"); out != "ok\n" || err != nil {
<add> if out, _, err := dockerCmd(t, "run", "--rm", "n... | 8 |
PHP | PHP | apply suggestions from code review | aa83bd947ae7d18cd194797ec008714dfbce37fe | <ide><path>src/Database/QueryCompiler.php
<ide> */
<ide> namespace Cake\Database;
<ide>
<del>use Cake\Database\Expression\QueryExpression;
<ide> use Cake\Database\Exception as DatabaseException;
<add>use Cake\Database\Expression\QueryExpression;
<ide> use Closure;
<ide> use Countable;
<ide> | 1 |
PHP | PHP | apply fixes from styleci | 305c007f3d01c229b2c68b4b30c4fe0d5da341bb | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php
<ide> public function getRelationCountHash()
<ide> */
<ide> protected function relationHasIncrementingId()
<ide> {
<del> return $this->related->getIncrementing() &&
<add> return $this->related->getIncrementing() &&
<ide> ... | 1 |
Go | Go | add integration test for xz path issue | af2021955cb01507984cbd076edaf3caaf5b89b3 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildSymlinkBreakout(t *testing.T) {
<ide> }
<ide> logDone("build - symlink breakout")
<ide> }
<add>
<add>func TestBuildXZHost(t *testing.T) {
<add> name := "testbuildxzhost"
<add> defer deleteImages(name)
<add>
<add> ctx, err := fakeContext(`
<add>FR... | 1 |
Javascript | Javascript | remove empty willmergemixin function | 71f453292eb7d6bb253c0c7222ab8cfc9f2a739f | <ide><path>packages/ember-metal/lib/mixin.js
<ide> function mergeMixins(mixins, meta, descs, values, base, keys) {
<ide> if (props === CONTINUE) { continue; }
<ide>
<ide> if (props) {
<add> // remove willMergeMixin after 3.4 as it was used for _actions
<ide> if (base.willMergeMixin) { base.willMerge... | 2 |
PHP | PHP | add missing return docs and fix cs. | 370dbcfb573b917c963b7ba6fc3f1c44e85863a7 | <ide><path>src/Illuminate/Notifications/HasDatabaseNotifications.php
<ide> trait HasDatabaseNotifications
<ide> {
<ide> /**
<ide> * Get the entity's notifications.
<add> *
<add> * @return \Illuminate\Database\Eloquent\Relations\MorphMany
<ide> */
<ide> public function notifications()
<ide> ... | 1 |
Mixed | Python | fix authtoken migration | 4cdb6b2959f6d13417c48781d53c4e7e685934e7 | <ide><path>docs/api-guide/settings.md
<ide> The name of a parameter in the URL conf that may be used to provide a format suf
<ide>
<ide> Default: `'format'`
<ide>
<add>## REQUIRED_MIGRATIONS
<add>
<add>This is a list of required migrations which are needed by the authtoken migration.
<add>
<add>E.g.
<add>
<add> (
... | 4 |
Python | Python | evaluate content before passing to regex.sub | 921e4ed2ee11edffd19d2ca40f10d47d2c148ea1 | <ide><path>rest_framework/tests/test_description.py
<ide>
<ide> from __future__ import unicode_literals
<ide> from django.test import TestCase
<add>from django.utils.encoding import python_2_unicode_compatible
<ide> from rest_framework.compat import apply_markdown, smart_text
<ide> from rest_framework.views import API... | 2 |
PHP | PHP | escape the delimiter before preg_match | 6b906e3d45d023a7432f3f509bc9509d1f9bf2e3 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function dependsOnOtherFields($rule)
<ide> */
<ide> protected function getExplicitKeys($attribute)
<ide> {
<del> $pattern = str_replace('\*', '([^\.]+)', preg_quote($this->getPrimaryAttribute($attribute)));
<add> $pattern = st... | 1 |
PHP | PHP | fix route commands in consoleshell | d7f1bf52b1f4c479e0a8c38340c497c7f92060d4 | <ide><path>lib/Cake/Console/Command/ConsoleShell.php
<ide> public function startup() {
<ide> foreach ($this->models as $model) {
<ide> $this->out(" - {$model}");
<ide> }
<del> $this->_loadRoutes();
<add>
<add> if (!$this->_loadRoutes()) {
<add> $message = __d(
<add> 'cake_console',
<add> 'There was an ... | 1 |
Javascript | Javascript | remove deprecated function from tests | 954a70e591233add31d9ac2e29840de08f9bb869 | <ide><path>src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js
<ide> describe('ReactCompositeComponent', () => {
<ide>
<ide> reactComponentExpect(instance)
<ide> .expectRenderedChild()
<del> .toBeDOMComponentWithTag('a');
<add> .toBeComponentOfType('a');
<ide>
<ide> ... | 3 |
Python | Python | check enable attribute before using | ed22329789f0db71bec940a90616f3c04008c5c9 | <ide><path>keras/utils/io_utils.py
<ide> def is_interactive_logging_enabled():
<ide> Returns:
<ide> Boolean (True if interactive logging is enabled and False otherwise).
<ide> """
<del> return INTERACTIVE_LOGGING.enable
<add> # Use `getattr` in case `INTERACTIVE_LOGGING`
<add> # does not have the `enable` at... | 1 |
Text | Text | add explicit declaration of fd with null val | 069d2bd2507b62d819b590df859e0db79fb7996f | <ide><path>doc/api/stream.md
<ide> class WriteStream extends Writable {
<ide> constructor(filename) {
<ide> super();
<ide> this.filename = filename;
<add> this.fd = null;
<ide> }
<ide> _construct(callback) {
<ide> fs.open(this.filename, (err, fd) => { | 1 |
PHP | PHP | remove unecessary use | 046cb9d8324752c73df5587da84376ec30abe312 | <ide><path>src/Illuminate/Auth/Console/AuthControllerCommand.php
<ide> <?php namespace Illuminate\Auth\Console;
<ide>
<del>use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\Console\GeneratorCommand;
<ide> use Symfony\Component\Console\Input\InputArgument;
<ide>
<ide><path>src/Illuminate/Auth/Console/LoginReq... | 7 |
Java | Java | improve capacity calculcation in defaultdatabuffer | 7085a303822cda26d60e627ffefdaeaf693c5523 | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you m... | 1 |
Python | Python | add line breaks | 4dcfafde0260e01e13e0d8675f27ab4d26be57d8 | <ide><path>spacy/en/language_data.py
<ide> # improved list from Stone, Denis, Kwantes (2010)
<ide> STOP_WORDS = set("""
<ide>
<del>a about above across after afterwards again against all almost alone along already also although always am among amongst amount an and another any anyhow anyone anything anyway anywhere ar... | 1 |
Javascript | Javascript | serialize errors if stack getter throws | 79a3348d142be713c2aa5dbe41524b54cb6bac03 | <ide><path>lib/internal/error-serdes.js
<ide> function TryGetAllProperties(object, target = object) {
<ide> Assign(all, TryGetAllProperties(GetPrototypeOf(object), target));
<ide> const keys = GetOwnPropertyNames(object);
<ide> ForEach(keys, (key) => {
<del> const descriptor = GetOwnPropertyDescriptor(object, ... | 2 |
PHP | PHP | add mix file for loading versioned mix files | 6ea4997fcf7cf0ae4c18bce9418817ff00e4727f | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function method_field($method)
<ide> }
<ide> }
<ide>
<add>if (! function_exists('mix')) {
<add> /**
<add> * Get the path to a versioned Mix file.
<add> *
<add> * @param string $path
<add> * @return \Illuminate\Support\HtmlString
<add> ... | 1 |
PHP | PHP | fix doc block errors | 72ee388de43fa16d73d209f15ee6482e942e3ca2 | <ide><path>src/Routing/RouteCollection.php
<ide> public function add(Route $route, $options) {
<ide> /**
<ide> * Takes the URL string and iterates the routes until one is able to parse the route.
<ide> *
<del> * @param string $url Url to parse.
<del> * @return array An array of request parameters parsed from the url.... | 1 |
PHP | PHP | getvalueattribute | b789fe1525f6062656198c91908fb01b08510136 | <ide><path>src/Illuminate/Html/FormBuilder.php
<ide> protected function getIdAttribute($name, $attributes)
<ide> * @param string $value
<ide> * @return string
<ide> */
<del> protected function getValueAttribute($name, $value = null)
<add> public function getValueAttribute($name, $value = null)
<ide> {
<ide> ... | 1 |
Javascript | Javascript | fix additional spacing issues | 5c504a1343ed2e2ab91a85dca110c8f5fa749889 | <ide><path>bonfireMDNlinks.js
<ide> *
<ide> **/
<ide>
<del>var links =
<del> {
<add>var links = {
<ide> // ========= NON MDN REFS
<ide> "Currying": "https://leanpub.com/javascript-allonge/read#pabc",
<ide> "Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html",
<ide> var links =
<... | 1 |
Javascript | Javascript | expand http2 util test coverage for headers | d8a226673bd9621a5a07346f8702d7dac2f25481 | <ide><path>test/parallel/test-http2-cookies.js
<ide> const server = h2.createServer();
<ide>
<ide> const setCookie = [
<ide> 'a=b',
<del> 'c=d; Wed, 21 Oct 2015 07:28:00 GMT; Secure; HttpOnly'
<add> 'c=d; Wed, 21 Oct 2015 07:28:00 GMT; Secure; HttpOnly',
<add> 'e=f'
<ide> ];
<ide>
<ide> // we use the lower-level... | 2 |
PHP | PHP | start test cases for middleware | 5ad0d6fe5ebed4b8de37a0dbb9f40b5446bd2668 | <ide><path>src/Routing/DispatcherFilter.php
<ide> <?php
<ide> /**
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * @since 2.2.0
<ide> * @license http://www.opensource.org/lic... | 2 |
PHP | PHP | add key to reflected schema | 1dc32f2920d2452c2a26a42a34ebe04811e0d5da | <ide><path>lib/Cake/Model/Datasource/Database/Connection.php
<ide> public function describe($table) {
<ide> 'default' => $row['Default'],
<ide> 'length' => $length,
<ide> ];
<add> if (!empty($row['Key'])) {
<add> $schema[$row['Field']]['key'] = $this->_driver->keyType($row['Key']);
<add> }
<ide> }
<... | 3 |
PHP | PHP | remove recent deprecations from 3.x | 6f4c09d765b213097e7c9c4dfda296c895d4d678 | <ide><path>src/Database/Query.php
<ide> public function modifier($modifiers, $overwrite = false)
<ide> * passed as an array of strings, array of expression objects, or a single string. See
<ide> * the examples above for the valid call types.
<ide> * @param bool $overwrite whether to reset tables with p... | 4 |
Java | Java | add webapplicationinitializers for web reactive | 2b57a4d618a1e755ee9e362208291c0cde813e8d | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/support/AbstractAnnotationConfigDispatcherHandlerInitializer.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this... | 5 |
Ruby | Ruby | pass additional options to `github.pull_requests` | e9c45ff17b406bed50677b5b5eb04d9422343f27 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def write_access?(repo, user = nil)
<ide> ["admin", "write"].include?(permission(repo, user)["permission"])
<ide> end
<ide>
<del> def pull_requests(repo, base:, state: :open, **_options)
<del> url = "#{API_URL}/repos/#{repo}/pulls?#{URI.encode_www_form(base: ... | 1 |
Javascript | Javascript | add extra brackets | 8ffc44705df6748ba979661af30336ca30a2ff47 | <ide><path>lib/dependencies/ContextDependencyTemplateAsId.js
<ide> ContextDependencyTemplateAsId.prototype.apply = function(dep, source, outputOpti
<ide> if(outputOptions.pathinfo) comment = "/*! " + requestShortener.shorten(dep.request) + " */ ";
<ide> if(dep.module && dep.module.dependencies && dep.module.dependenc... | 2 |
Go | Go | fix panic with dynamic buffer | 5cdf7f507771e159ddd335f3757cd33f7ba4e426 | <ide><path>pkg/tarsum/tarsum.go
<ide> func (ts *tarSum) Read(buf []byte) (int, error) {
<ide> if ts.finished {
<ide> return ts.bufWriter.Read(buf)
<ide> }
<del> if ts.bufData == nil {
<add> if len(ts.bufData) < len(buf) {
<ide> switch {
<ide> case len(buf) <= buf8K:
<ide> ts.bufData = make([]byte, buf8K)
<id... | 2 |
Javascript | Javascript | detect attach/detach from any level | fca030922360a1a2d1292f6936276ad11a7cf7d9 | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> this.attached = false;
<ide> this._animationsDisabled = undefined;
<ide> this.$context = undefined;
<del> this._doResize = debounce(() => this.update('resize'), options.resizeDelay || 0);
<add> this._doResize = debounce(mode => this.upda... | 4 |
Text | Text | add v3.21.0-beta.4 to changelog | 13ff365e9595071639f8ee6c4c338d11a86c3733 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.21.0-beta.4 (August 3, 2020)
<add>
<add>- [#19059](https://github.com/emberjs/ember.js/pull/19059) [BUGFIX] Prevent `<base target="_parent">` from erroring in `HistoryLocation`
<add>- [#19060](https://github.com/emberjs/ember.js/pull/19060) / [#19065](h... | 1 |
Python | Python | fix small issue detected by pylint | fb5486a9664fe5d1e3c3316e620837d12b89142c | <ide><path>libcloud/common/openstack_identity.py
<ide> def __init__(self, auth_url, user_id, key, tenant_name=None,
<ide> Tenant, domain and scope options are ignored as they are contained
<ide> within the app credential itself and can't be changed.
<ide> """
<del> super(OpenStackIdentity... | 1 |
Javascript | Javascript | add an & prefix to custom variant | a0c081348840bac9a6e28dc5b613248dd9d2eb89 | <ide><path>tools/ui-components/tailwind.config.js
<ide> module.exports = {
<ide> },
<ide> plugins: [
<ide> plugin(({ addVariant }) => {
<del> addVariant('aria-disabled', '[aria-disabled="true"]');
<add> addVariant('aria-disabled', '&[aria-disabled="true"]');
<ide> })
<ide> ]
<ide> }; | 1 |
Text | Text | fix minor grammatical errors in docs | 0e4811e9ce30904bbd4f3aef6446d68be6c3a658 | <ide><path>docs/api-guide/fields.md
<ide> The `default` is not applied during partial update operations. In the partial up
<ide>
<ide> May be set to a function or other callable, in which case the value will be evaluated each time it is used. When called, it will receive no arguments. If the callable has a `set_contex... | 2 |
Javascript | Javascript | remove unused code | 7762f374d50d3b1df8513c826862c2056e8718f9 | <ide><path>packager/react-packager/index.js
<ide> var debug = require('debug');
<ide> var Activity = require('./src/Activity');
<ide>
<ide> exports.createServer = createServer;
<del>exports.middleware = function(options) {
<del> var server = createServer(options);
<del> return server.processRequest.bind(server);
<de... | 1 |
Text | Text | update filtering observables docs | 1e4e966e5f848aaf931cb43db77c36a92ab62885 | <ide><path>docs/Filtering-Observables.md
<del>This page shows operators you can use to filter and select items emitted by Observables.
<del>
<del>* [**`filter( )`**](http://reactivex.io/documentation/operators/filter.html) — filter items emitted by an Observable
<del>* [**`takeLast( )`**](http://reactivex.io/documentat... | 1 |
Javascript | Javascript | remove unused simulated flag parameter | b4608dd24caa31b3c78c51acbb5115ad03e884b3 | <ide><path>packages/events/EventPluginHub.js
<ide> let eventQueue: ?(Array<ReactSyntheticEvent> | ReactSyntheticEvent) = null;
<ide> * Dispatches an event and releases it back into the pool, unless persistent.
<ide> *
<ide> * @param {?object} event Synthetic event to be dispatched.
<del> * @param {boolean} simulated... | 5 |
Javascript | Javascript | improve grammar of warning message | 0a47e34d77bac3d998fef965471fe69c3d17d1a7 | <ide><path>lib/NodeStuffPlugin.js
<ide> class NodeStuffPlugin {
<ide> new NodeStuffInWebError(
<ide> dep.loc,
<ide> "global",
<del> "The global namespace object is Node.js feature and doesn't present in browser."
<add> "The global namespace object is a Node.js feature... | 1 |
PHP | PHP | add tests for ucsplit in stringable | 650ca875d3bd7e876ed89f803c705d5d6c121d90 | <ide><path>tests/Support/SupportStringableTest.php
<ide> public function testWhenContainsAll()
<ide> }));
<ide> }
<ide>
<add> public function testUcsplitOnStringable()
<add> {
<add> $this->assertSame(['Taylor', 'Otwell'], $this->stringable('TaylorOtwell')->ucsplit()->toArray());
<add> $... | 1 |
Text | Text | add lead, new maintainers | d6aa0aa8d35c76cc9865035e8570e9ee44600031 | <ide><path>README.md
<ide> This is our PGP key which is valid until May 24, 2017.
<ide> * Full key: https://keybase.io/homebrew/key.asc
<ide>
<ide> ## Who Are You?
<del>Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo), [Andrew Janke](https://github.com/apjanke), [Xu Cheng](https://githu... | 1 |
Javascript | Javascript | fix version check in tick processor | 421316dca17d72919a928f414af8d03e2f3a2476 | <ide><path>lib/internal/v8_prof_polyfill.js
<ide> function versionCheck() {
<ide> var firstLine = readline();
<ide> line = firstLine + '\n' + line;
<ide> firstLine = firstLine.split(',');
<del> const curVer = process.versions.v8.split(/\.-/);
<add> const curVer = process.versions.v8.split(/[.\-]/);
<ide> if (... | 1 |
Javascript | Javascript | use namespaced path in absolute symlinks | a4e273baf43910ba9e5c66949e56b919f8614fb9 | <ide><path>lib/internal/fs/utils.js
<ide> function preprocessSymlinkDestination(path, type, linkPath) {
<ide> path = pathModule.resolve(linkPath, '..', path);
<ide> return pathModule.toNamespacedPath(path);
<ide> }
<add> if (pathModule.isAbsolute(path)) {
<add> // If the path is absolute, use the \\?\-pre... | 2 |
Ruby | Ruby | require formula before using it | 0581532fdc68fc5b624cfa32b49c21552c90b4c2 | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<add>require 'formula'
<add>
<ide> module SharedEnvExtension
<ide> CC_FLAG_VARS = %w{CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS}
<ide> FC_FLAG_VARS = %w{FCFLAGS FFLAGS} | 1 |
Javascript | Javascript | fix error in math helpers | 0ed39c9fd702a0f281206137b01131080be8712b | <ide><path>src/core/core.helpers.js
<ide> } else {
<ide> return max;
<ide> }
<del> }, Number.MIN_VALUE);
<add> }, Number.NEGATIVE_INFINITY);
<ide> };
<ide> helpers.min = function(array) {
<ide> return array.reduce(function(min, value) {
<ide> } else {
<ide> return min;
<ide> }
<del> }, Number... | 1 |
Python | Python | add test for sequential model | 07f2253ff23d26126185fdb81e81d357fc6a7b71 | <ide><path>tests/auto/test_sequential_model.py
<add>from __future__ import absolute_import
<add>from __future__ import print_function
<add>import unittest
<add>import numpy as np
<add>np.random.seed(1337)
<add>
<add>from keras.models import Sequential
<add>from keras.layers.core import Dense, Activation, Merge
<add>fro... | 2 |
Python | Python | add timehistory callback to bert | 533d1e6b26f7fe3e4e355ec1a1aeb3277a059c8a | <ide><path>official/modeling/model_training_utils.py
<ide> def _run_callbacks_on_batch_end(batch, logs):
<ide> train_steps(train_iterator,
<ide> tf.convert_to_tensor(steps, dtype=tf.int32))
<ide> train_loss = _float_metric_value(train_loss_metric)
<del> _run_callbacks_on_batch_end... | 7 |
Python | Python | respect compiler customizations | fecbb3d3500d6a6b7503eaec2de05c998798ef9c | <ide><path>numpy/distutils/tests/test_system_info.py
<ide> def have_compiler():
<ide> """ Return True if there appears to be an executable compiler
<ide> """
<ide> compiler = ccompiler.new_compiler()
<add> compiler.customize(None)
<ide> try:
<ide> cmd = compiler.compiler # Unix compilers
<id... | 1 |
Python | Python | fix str vs bytes and int issues in ma tests | 2a7e659e45db24162bdc49b1a83b7c69796c6be2 | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_basic_ufuncs (self):
<ide> def test_count_func (self):
<ide> "Tests count"
<ide> ott = array([0., 1., 2., 3.], mask=[1, 0, 0, 0])
<del> self.assertTrue(isinstance(count(ott), int))
<add> if sys.version_info[0] >= 3:
<add> ... | 3 |
Text | Text | add version_scheme documentation | cc2a90ec8d4dc8b26a7658f4424cf6949d0bf4cb | <ide><path>share/doc/homebrew/Formula-Cookbook.md
<ide> Where a dependent of a formula fails against a new version of that dependency it
<ide>
<ide> [`revision`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#revision%3D-class_method)s are also used for formulae that move from the system OpenSSL to the Ho... | 1 |
PHP | PHP | length() back in | d71bd108b29637d259f816f461eb122a1bd8a13f | <ide><path>src/Illuminate/Support/Str.php
<ide> public static function limit($value, $limit = 100, $end = '...')
<ide> return mb_substr($value, 0, $limit, 'UTF-8').$end;
<ide> }
<ide>
<add> /**
<add> * Return the length of the given string.
<add> *
<add> * @param string $value
<add> * @return string
<add> */... | 1 |
Ruby | Ruby | fix typos in ar. lots of them | 55686dd1be37d6eb57dc086e4bc72922f49b2e17 | <ide><path>activerecord/lib/active_record/attribute_methods.rb
<ide> module ClassMethods
<ide> # Generates all the attribute related methods for columns in the database
<ide> # accessors, mutators and query methods.
<ide> def define_attribute_methods # :nodoc:
<del> # Use a mutex; we don't want... | 9 |
Java | Java | fix error message in nativeviewhierarchy | 117dcd9c58a0c9de6f63097d42b67f097cfc7dcf | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> public synchronized void updateLayout(
<ide> parentViewGroupManager = (ViewGroupManager) parentViewManager;
<ide> } else {
<ide> throw new IllegalViewOperationException(
<del> ... | 1 |
Go | Go | use consistent command description | 2b0927c9ac23b66d8a05761801d1c5f882ba8dfb | <ide><path>api/client/attach.go
<ide> import (
<ide> //
<ide> // Usage: docker attach [OPTIONS] CONTAINER
<ide> func (cli *DockerCli) CmdAttach(args ...string) error {
<del> cmd := Cli.Subcmd("attach", []string{"CONTAINER"}, "Attach to a running container", true)
<add> cmd := Cli.Subcmd("attach", []string{"CONTAINER"},... | 44 |
Javascript | Javascript | standardize test environment | ecbf93d922ae168ca915cc463ab859d457245333 | <ide><path>test/dsv/csv-test.js
<ide> var vows = require("vows"),
<del> d3 = require("../../"),
<ide> load = require("../load"),
<del> xhr = require("../env-xhr"),
<ide> assert = require("../env-assert");
<ide>
<ide> var suite = vows.describe("d3.csv");
<ide>
<ide> suite.addBatch({
<ide> "csv": {
<del... | 21 |
Javascript | Javascript | add test failure for after-resolve async | c45d8c25939076517b4481ded61bb55aeb51e9ff | <ide><path>test/Integration.test.js
<ide> describe("Integration", function() {
<ide> this.plugin("normal-module-factory", function(nmf) {
<ide> nmf.plugin("after-resolve", function(data, callback) {
<ide> data.resource = data.resource.replace(/extra\.js/, "extra2.js");
<del> callback(null, data)... | 1 |
Text | Text | update changelog from 6.x | bca31670cb89f5bd6e05f16336f13627936b5831 | <ide><path>CHANGELOG.md
<add><a name="6.10.0"></a>
<add># [6.10.0](https://github.com/videojs/video.js/compare/v6.9.0...v6.10.0) (2018-05-11)
<add>
<add>### Features
<add>
<add>* add 'autoSetup' option ([#5123](https://github.com/videojs/video.js/issues/5123)) ([592c255](https://github.com/videojs/video.js/commit/592c2... | 1 |
Ruby | Ruby | improve error handling | c3bf9bda58aba514259d45972a5172e8801d5c65 | <ide><path>Library/Homebrew/dev-cmd/update-test.rb
<ide> def update_test
<ide> elsif date = ARGV.value("before")
<ide> Utils.popen_read("git", "rev-list", "-n1", "--before=#{date}", "origin/master").chomp
<ide> elsif ARGV.include?("--to-tag")
<del> Utils.popen_read("git", "tag", "--list", "--sort=-ve... | 1 |
Python | Python | fix the backward for deepspeed | cd5565bed336305399397624699aaeb3d6196e18 | <ide><path>src/transformers/trainer.py
<ide> def training_step(self, model: nn.Module, inputs: Dict[str, Union[torch.Tensor,
<ide> with amp.scale_loss(loss, self.optimizer) as scaled_loss:
<ide> scaled_loss.backward()
<ide> elif self.deepspeed:
<del> # calling on DS engine... | 1 |
PHP | PHP | add test covering scenario described in | 1d24a2f211e67328b9ad9ae4240bd51599b703d4 | <ide><path>tests/TestCase/ORM/Association/HasManyTest.php
<ide> class HasManyTest extends TestCase
<ide> *
<ide> * @var array
<ide> */
<del> public $fixtures = ['core.Comments', 'core.Articles', 'core.Authors'];
<add> public $fixtures = [
<add> 'core.Comments',
<add> 'core.Articles',
... | 1 |
Javascript | Javascript | improve benchmark runner output | 520a3bd36555316ed84db5172e48f771973a683c | <ide><path>benchmarks/iframe_runner.js
<ide> BenchWarmer.prototype = {
<ide>
<ide> run: function() {
<ide> if (this.profile) {
<del> console.profile(this.emberPath + ": " + this.name);
<del> for (var i=0; i<1000; i++) {
<del> this.fn();
<del> }
<del> console.profileEnd(this.emberPath +... | 2 |
Javascript | Javascript | simplify test checks | 8ae10601b12b621f76be576918962fca25d52dd7 | <ide><path>test/integration/config/test/index.test.js
<ide> describe('Configuration', () => {
<ide>
<ide> await check(
<ide> () => browser.elementByCss('.hello-world').getComputedCss('font-size'),
<del> {
<del> test(content) {
<del> return content === '100px'
<del> },
... | 2 |
Text | Text | fix typo in part-4-using-data.md | 9466f65afd75ce9557f183be226c70a4dccdfd51 | <ide><path>docs/tutorials/essentials/part-4-using-data.md
<ide> Redux action objects are required to have a `type` field, which is normally a de
<ide>
<ide> By default, the action creators generated by `createSlice` expect you to pass in one argument, and that value will be put into the action object as `action.payloa... | 1 |
Mixed | Javascript | remove createelement and pre-allocate arrays | 1f3cf3c28d85b650d7b74022871e2a141c3fc3fb | <ide><path>docs/getting-started/v3-migration.md
<ide> Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released
<ide> * `Chart.chart.chart`
<ide> * `Chart.types`
<ide> * `DatasetController.addElementAndReset`
<add>* `DatasetController.createMetaData`
<add>* `DatasetController.createMetaDataset`
<i... | 2 |
Javascript | Javascript | fix typo in fs.readfile of lying size=0 stat | 4eb2804db9e3bbc06ebda6296620ce5bf6f7b02e | <ide><path>lib/fs.js
<ide> fs.readFile = function(path, encoding_) {
<ide> fs.close(fd, function(er) {
<ide> if (size === 0) {
<ide> // collected the data into the buffers list.
<del> buffer = Buffer.concat(buffer.length, pos);
<add> buffer = Buffer.concat(buffers, pos);
<ide> }
<i... | 1 |
Python | Python | handle no dagrun in dagruniddep | fa3872a89f8de5fc50f85d55d59bbd224109b9da | <ide><path>airflow/ti_deps/deps/dagrun_id_dep.py
<ide> def _get_dep_statuses(self, ti, session, dep_context=None):
<ide> """
<ide> dagrun = ti.get_dagrun(session)
<ide>
<del> if not dagrun.run_id or not match(f"{DagRunType.BACKFILL_JOB.value}.*", dagrun.run_id):
<add> if not dagrun or not... | 2 |
Python | Python | update tf test_step to match train_step | 44eaa2b3036c5c9a83ed781e08e3dc50aae193a9 | <ide><path>src/transformers/modeling_tf_utils.py
<ide> def compile(
<ide> logger.warning(
<ide> "No loss specified in compile() - the model's internal loss computation will be used as the "
<ide> "loss. Don't panic - this is a common way to train TensorFlow models in Transfor... | 1 |
Javascript | Javascript | use rest param & reflect.apply in makecallback | 0a0fbd54983d0760167232511ae95c8ea4f614b3 | <ide><path>lib/fs.js
<ide> function makeCallback(cb) {
<ide> throw new errors.TypeError('ERR_INVALID_CALLBACK');
<ide> }
<ide>
<del> return function() {
<del> return cb.apply(undefined, arguments);
<add> return function(...args) {
<add> return Reflect.apply(cb, undefined, args);
<ide> };
<ide> }
<ide> | 1 |
Javascript | Javascript | update prerender test for windows | fd1636ae4dc2183018c6464d092eba0ee7fd69f2 | <ide><path>test/integration/prerender/pages/something.js
<ide> export async function unstable_getStaticProps({ params }) {
<ide> world: 'world',
<ide> params: params || {},
<ide> time: new Date().getTime(),
<add> random: Math.random(),
<ide> },
<ide> revalidate: false,
<ide> }
<ide> }
<... | 3 |
Python | Python | update newton_raphson.py (#891) | 066f37402d87e31b35a7d9439b394445a1404461 | <ide><path>maths/newton_raphson.py
<ide> def newton_raphson(f, x0=0, maxiter=100, step=0.0001, maxerror=1e-6,logsteps=Fal
<ide> if error < maxerror:
<ide> break
<ide> else:
<del> raise ValueError("Itheration limit reached, no converging solution found")
<add> raise ValueError("Iter... | 1 |
Python | Python | add test for scalar indexing | 2459acb46ddbb268114779e1428dba687ab5650d | <ide><path>numpy/core/tests/test_scalarmath.py
<ide> def test_int_from_long(self):
<ide> # val2 = eval(val_repr)
<ide> # assert_equal( val, val2 )
<ide>
<add>class TestIndexing(NumpyTestCase):
<add> def test_basic(self):
<add> for t in types:
<add> value = t(1)
<add> ... | 1 |
PHP | PHP | fix fatal error caused by renamed method | 669e6d7a03af074ad876ad612390152abcb96530 | <ide><path>src/Shell/I18nShell.php
<ide> public function main() {
<ide> $choice = strtolower($this->in('What would you like to do?', ['E', 'H', 'Q']));
<ide> switch ($choice) {
<ide> case 'e':
<del> $this->Extract->execute();
<add> $this->Extract->main();
<ide> break;
<ide> case 'h':
<ide> $this... | 1 |
Python | Python | fix success message [ci skip] | 2c9804038da8bf9d6b8032c31ef5cfff4e901718 | <ide><path>spacy/cli/init_pipeline.py
<ide> def init_vectors_cli(
<ide> nlp.to_disk(output_dir)
<ide> msg.good(
<ide> "Saved nlp object with vectors to output directory. You can now use the "
<del> "path to it in your config as the 'vectors' setting in [initialize.vocab].",
<add> "path to ... | 1 |
PHP | PHP | reset eager loaders before triggering before find | 2d59a95bfef4195d7170288cdfcbc00b1a1c1095 | <ide><path>src/ORM/Query.php
<ide> public function applyOptions(array $options)
<ide> public function cleanCopy()
<ide> {
<ide> $clone = clone $this;
<add> $clone->setEagerLoader(clone $this->getEagerLoader());
<ide> $clone->triggerBeforeFind();
<ide> $clone->enableAutoFields(fals... | 2 |
Text | Text | fix nits in report docs | 60aaf2c2144d68eae063e09b5216338341d83633 | <ide><path>doc/api/process.md
<ide> added: v11.8.0
<ide> reports for the current process. Additional documentation is available in the
<ide> [report documentation][].
<ide>
<del>## process.report.directory
<add>### process.report.directory
<ide> <!-- YAML
<ide> added: REPLACEME
<ide> -->
<ide> Node.js process.
<ide> c... | 2 |
Javascript | Javascript | add veggies to the showcase | cf8bb75c19e49db303c0477c08463e1af6017a4a | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/cn/app/tong-xing-wang/id914254459?mt=8',
<ide> author: 'Ho Yin Tsun Eugene',
<ide> },
<add> {
<add> name: 'Veggies in Season',
<add> icon: 'https://s3.amazonaws.com/veggies-assets/icon175x175.png',
... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.