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 |
|---|---|---|---|---|---|
Text | Text | add link to n-api tutorial website | cb315d2dd36d5ef1a9f7354662ee7e2e1e8fa696 | <ide><path>doc/api/n-api.md
<ide> it still gets the benefits of the ABI stability provided by the C API.
<ide> When using `node-addon-api` instead of the C APIs, start with the API [docs][]
<ide> for `node-addon-api`.
<ide>
<add>The [N-API Resource](https://nodejs.github.io/node-addon-examples/) offers an
<add>excelle... | 1 |
Python | Python | add enum validation for [webserver]analytics_tool | 7c7dbfe186773fdbe2d791667e7e97b8e00f771f | <ide><path>airflow/configuration.py
<ide> class AirflowConfigParser(ConfigParser):
<ide> ("logging", "fab_logging_level"): _available_logging_levels,
<ide> # celery_logging_level can be empty, which uses logging_level as fallback
<ide> ("logging", "celery_logging_level"): _available_logging_leve... | 1 |
Javascript | Javascript | add test-npm-install to parallel tests suite | 061ebb39c94eea22d34d20c6936787310f7bf9b0 | <ide><path>test/parallel/test-npm-install.js
<add>'use strict';
<add>const common = require('../common');
<add>
<add>const path = require('path');
<add>const spawn = require('child_process').spawn;
<add>const assert = require('assert');
<add>const fs = require('fs');
<add>
<add>common.refreshTmpDir();
<add>
<add>const ... | 1 |
Python | Python | fix triggerer --capacity parameter | 9076b67c05cdba23e8fa51ebe5ad7f7d53e1c2ba | <ide><path>airflow/cli/cli_parser.py
<ide> def _check(value):
<ide> # triggerer
<ide> ARG_CAPACITY = Arg(
<ide> ("--capacity",),
<del> type=str,
<add> type=positive_int(allow_zero=False),
<ide> help="The maximum number of triggers that a Triggerer will run at one time.",
<ide> )
<ide> | 1 |
Text | Text | add support for 15.04, add systemd note for 15.04 | 9847c0c8b0409d85a1f79a8d7316ba48d6a3ef9a | <ide><path>docs/installation/ubuntulinux.md
<ide> parent = "smn_linux"
<ide>
<ide> Docker is supported on these Ubuntu operating systems:
<ide>
<add>- Ubuntu Vivid 15.04
<ide> - Ubuntu Trusty 14.04 (LTS)
<ide> - Ubuntu Precise 12.04 (LTS)
<ide> - Ubuntu Saucy 13.10
<ide> your kernel version:
<ide> >version.
<ide> ... | 1 |
Javascript | Javascript | fix api linting | 0ccd0a6f77795cc2fb8047456ae6ab13497f7315 | <ide><path>api-server/common/utils/index.js
<ide> export const fixCompletedChallengeItem = obj =>
<ide> 'solution',
<ide> 'githubLink',
<ide> 'challengeType',
<del> 'files',
<add> 'files'
<ide> ]);
<ide><path>api-server/server/boot/authentication.js
<ide> import { check } from 'express-validator/che... | 6 |
Ruby | Ruby | remove unused require | bb7b8348e6f307fb9b7279bbab4ea19e9313a45e | <ide><path>test/service/s3_service_test.rb
<ide> require "service/shared_service_tests"
<ide> require "httparty"
<del>require "uri"
<ide>
<ide> if SERVICE_CONFIGURATIONS[:s3]
<ide> class ActiveStorage::Service::S3ServiceTest < ActiveSupport::TestCase | 1 |
Java | Java | fix nullability warnings | 0aa3205e3865c34ee98a5d14eeca03abf8f871d4 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/reactive/AbstractEncoderMethodReturnValueHandler.java
<ide>
<ide> package org.springframework.messaging.handler.invocation.reactive;
<ide>
<add>import java.lang.reflect.Method;
<ide> import java.util.Collections;
<ide> import j... | 4 |
Javascript | Javascript | make sure pages bundles are served correctly | 963695820f2189cc2031c8789bad5385f36f6062 | <ide><path>lib/page-loader.js
<del>/* global window, document, __NEXT_DATA__ */
<add>/* global window, document */
<ide> import EventEmitter from './EventEmitter'
<ide>
<ide> const webpackModule = module
<ide> export default class PageLoader {
<ide>
<ide> loadScript (route) {
<ide> route = this.normalizeRoute(r... | 2 |
Ruby | Ruby | fix incorrect formula name from file name | 330015ffbdd766b1af260ae4eb3efa41e6e8c19b | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide> def extract
<ide>
<ide> # The class name has to be renamed to match the new filename,
<ide> # e.g. Foo version 1.2.3 becomes FooAT123 and resides in Foo@1.2.3.rb.
<del> class_name = name.capitalize
<add> class_name = Formulary.class_s(name.to_s)
<ide> ... | 1 |
Javascript | Javascript | add throughput benchmark | 2b46959075062c410d9e4f69f4decaef3dc5abd9 | <ide><path>benchmark/throughput-child.js
<add>var net = require('net');
<add>var received = 0;
<add>var start = new Date();
<add>var socket = net.connect(8000);
<add>
<add>socket.on('data', function(d) {
<add> received += d.length;
<add>});
<add>
<add>var interval = setInterval(function() {
<add> // After 1 gigabyte ... | 2 |
PHP | PHP | fix issue match only app_key in replace | bafd2c423dca3b88d721b55f2f7f83acc4591321 | <ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php
<ide> public function fire()
<ide> */
<ide> protected function setKeyInEnvironmentFile($key)
<ide> {
<del> file_put_contents($this->laravel->environmentFilePath(), str_replace(
<del> 'APP_KEY='.$this->laravel['config']['a... | 1 |
Javascript | Javascript | fix the build of with-material-ui-next | b253479a94091bb79ea30d759b73532d7a29849a | <ide><path>examples/with-material-ui-next/styles/createDefaultContext.js
<ide> import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
<ide> import createPalette from 'material-ui/styles/palette'
<ide> import createMuiTheme from 'material-ui/styles/theme'
<del>import { purple, green } from 'material-ui/style... | 1 |
Go | Go | use correct fn for resizing tty | 3260ddb10bff8d1b5cabe547ecb77e19d379a3c6 | <ide><path>api/client/utils.go
<ide> func (cli *DockerCli) resizeTty(id string, isExec bool) {
<ide> }
<ide>
<ide> var err error
<del> if !isExec {
<add> if isExec {
<ide> err = cli.client.ContainerExecResize(options)
<ide> } else {
<ide> err = cli.client.ContainerResize(options) | 1 |
Javascript | Javascript | remove content property | e9980412296b6469f39605f48ea527776d7ac718 | <ide><path>src/core/ReactDOMIDOperations.js
<ide> var invariant = require('invariant');
<ide> * @private
<ide> */
<ide> var INVALID_PROPERTY_ERRORS = {
<del> content: '`content` must be set using `updateTextContentByID()`.',
<ide> dangerouslySetInnerHTML:
<ide> '`dangerouslySetInnerHTML` must be set using `upd... | 5 |
Python | Python | fix description, update classifiers | 1d2fb0e448fc5c877e2a0e1a49302ebc7c932223 | <ide><path>setup.py
<ide> def run(self):
<ide> name='apache-libcloud',
<ide> version=read_version_string(),
<ide> description='A standard Python library that abstracts away differences' +
<del> 'among multiple cloud provider APIs',
<add> ' among multiple cloud provider APIs',
<... | 1 |
Python | Python | add glossary entry for _sp | 9cc3dc2b67ef41963b78c0d553cfd7175d998d66 | <ide><path>spacy/glossary.py
<ide> def explain(term):
<ide> "XX": "unknown",
<ide> "BES": 'auxiliary "be"',
<ide> "HVS": 'forms of "have"',
<add> "_SP": "whitespace",
<ide> # POS Tags (German)
<ide> # TIGER Treebank
<ide> # http://www.ims.uni-stuttgart.de/forschung/ressourcen/korpora/TIGERCor... | 1 |
Javascript | Javascript | fix the illegal syntax in a module for test | 4098d29d011d96e8a0f4241011bd8cd205746df7 | <ide><path>test/cases/parsing/harmony-export-precedence/a.js
<ide> export function a() { return "a1"; }
<del>export { a, b } from "./b";
<add>export { b } from "./b";
<ide> export * from "./c";
<del>export { d, e } from "./b";
<add>export { d } from "./b";
<ide> export var e = "e1"; | 1 |
Ruby | Ruby | use double quotes for setting path | 0d898edc3761dd2675d86c436a589be49407d55b | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_user_path_1
<ide>
<ide> Consider setting your PATH so that #{HOMEBREW_PREFIX}/bin
<ide> occurs before /usr/bin. Here is a one-liner:
<del> echo export PATH='#{HOMEBREW_PREFIX}/bin:$PATH' >> ~/.bash_profile
<add> ... | 1 |
PHP | PHP | unskip remaining tests | 67b3f60b87081f2bd4cc96061fa0e0ff3b217e04 | <ide><path>tests/TestCase/Console/Command/Task/ViewTaskTest.php
<ide> public function testExecuteWithControllerAndAdminFlag() {
<ide> * @return void
<ide> */
<ide> public function testExecuteWithAlternateTemplates() {
<del> $this->markTestIncomplete('Model baking will not work as models do not work.');
<add> $this... | 1 |
Python | Python | fix concatenation in iob2json converter | 31681d20e038fb0b318a9479856da473b0e0e926 | <ide><path>spacy/cli/converters/iob2json.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<add>from cytoolz import partition_all, concat
<ide>
<ide> from ...compat import json_dumps, path2str
<ide> from ...util import prints
<ide> def iob2json(input_path, output_path, n_sents=10, *a, **k):
<ide> ... | 1 |
Ruby | Ruby | use hash#fetch to eliminate conditional | 9cbb6d2b20a8e3352bedd791fafe3c58f8bef328 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def transaction(options = {})
<ide> options.assert_valid_keys :requires_new, :joinable
<ide>
<ide> last_transaction_joinable = @transaction_joinable
<del> if options.has_key?(:joinable)
<del> ... | 1 |
Python | Python | fix handling of bindvars with no parameters | a8c6451e6196be64469a99247a4e75d6095b5470 | <ide><path>airflow/providers/oracle/hooks/oracle.py
<ide> def callproc(
<ide> sql = f"BEGIN {identifier}({args}); END;"
<ide>
<ide> def handler(cursor):
<add> if cursor.bindvars is None:
<add> return
<add>
<ide> if isinstance(cursor.bindvars, list):
<ide> ... | 2 |
Javascript | Javascript | run `yarn prettier` to format code | 8802c20c22ecef9273c61d10ebb23ac858edb33f | <ide><path>src/renderers/shared/fiber/ReactFiberUpdateQueue.js
<ide>
<ide> 'use strict';
<ide>
<del>import type { Fiber } from 'ReactFiber';
<add>import type {Fiber} from 'ReactFiber';
<ide> import type {PriorityLevel} from 'ReactPriorityLevel';
<ide>
<ide> const { | 1 |
Ruby | Ruby | correct the actioncachetest from [7346] | 0fc77b3928546c09bd1fac40402289fd3730840b | <ide><path>actionpack/test/controller/caching_test.rb
<ide> def test_xml_version_of_resource_is_treated_as_different_cache
<ide> end
<ide>
<ide> def test_correct_content_type_is_returned_for_cache_hit
<add> # run it twice to cache it the first time
<add> get :index, :id => 'content-type.xml'
<ide> get ... | 1 |
Ruby | Ruby | fix the build | 344ea048659f2ba47012f0330183ea4a96752732 | <ide><path>actionpack/lib/action_view.rb
<ide> #++
<ide>
<ide> require 'active_support'
<del>require 'active_support/lazy_load_hooks'
<ide> require 'action_pack'
<ide>
<ide> module ActionView
<ide><path>activemodel/lib/active_model.rb
<ide> #++
<ide>
<ide> require 'active_support'
<del>require 'active_support/lazy_l... | 4 |
Ruby | Ruby | fix start_revision for travis | b37a28514126ac46e06cc1f5c8cc124a0fdff7f1 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def brew_update
<ide> # Use Travis CI Git variables for master or branch jobs.
<ide> elsif ENV["TRAVIS_COMMIT_RANGE"]
<ide> diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..."
<add> diff_start_sha1 = git("merge-base", diff_... | 1 |
Ruby | Ruby | use block syntax to avoid code duplication | 014da68634c59a7df1950dd7b838fd0ba5181969 | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> def form_for(record, options = {}, &proc)
<ide> builder = options[:parent_builder] = instantiate_builder(object_name, object, options, &proc)
<ide> fields_for = fields_for(object_name, object, options, &proc)
<ide> default_option... | 1 |
Python | Python | remove all the casts of y_true to y_pred data type | 6bc2571241a600681f8a157c20e29858c2e1546a | <ide><path>keras/losses.py
<ide> def mean_squared_error(y_true, y_pred):
<ide> Mean squared error values. shape = `[batch_size, d0, .. dN-1]`.
<ide> """
<ide> y_pred = tf.convert_to_tensor(y_pred)
<del> y_true = tf.cast(y_true, y_pred.dtype)
<add>
<ide> return backend.mean(tf.math.squared_difference(y_pred... | 1 |
Go | Go | fix broken json support in cli/command/formatter | 26013fcdd64221c858022392a1430a6c43eaaa26 | <ide><path>cli/command/formatter/disk_usage.go
<ide> type diskUsageImagesContext struct {
<ide> images []*types.ImageSummary
<ide> }
<ide>
<add>func (c *diskUsageImagesContext) MarshalJSON() ([]byte, error) {
<add> return marshalJSON(c)
<add>}
<add>
<ide> func (c *diskUsageImagesContext) Type() string {
<ide> c.A... | 3 |
Java | Java | improve regex for parsing query params | 0721146b14e3df3bde3e6e8f2a871bb0b995ef4f | <ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
<ide> */
<ide> public class UriComponentsBuilder {
<ide>
<del> private static final Pattern QUERY_PARAM_PATTERN = Pattern.compile("([^&=]+)=?([^&=]+)?");
<add> private static final Pattern QUERY_PARAM_PATTERN = Pattern.compile(... | 2 |
Python | Python | prevent docker-ci to test closing prs | 53a07d547554adc61b82f3ff794c0c9c0686be73 | <ide><path>hack/infrastructure/docker-ci/buildbot/github.py
<ide> def getChanges(request, options = None):
<ide> fname = str(datetime.datetime.now()).replace(' ','_').replace(':','-')[:19]
<ide> open('github_{0}.json'.format(fname),'w').write(json.dumps(json.loads(urllib.unquote(request.args['payload'][... | 1 |
Text | Text | tweak some formatting of example index.ios.js | 47f3a77227b6b2402e457fa025abde9e911eaa87 | <ide><path>docs/EmbeddedApp.md
<ide> $ mkdir ReactComponent
<ide> $ touch index.ios.js
<ide> ```
<ide>
<del>Copy & paste following starter code for **index.ios.js**.
<add>Copy & paste following starter code for `index.ios.js` – it’s a barebones React Native app:
<ide>
<ide> ```
<ide> 'use strict';
<ide> var styles = ... | 1 |
Javascript | Javascript | fix use of "dx" in examples | 7155ffa9e317c94f99134ae5fac256dd51806b89 | <ide><path>examples/bundle/bundle-radial.js
<ide> d3.json("../data/flare-imports.json", function(classes) {
<ide> .attr("class", "node")
<ide> .attr("transform", function(d) { return "rotate(" + (d.x - 90) + ")translate(" + d.y + ")"; })
<ide> .append("text")
<del> .attr("dx", function(d) { return ... | 3 |
Java | Java | enhance messageheaderaccessor support | 4867546aec48a49a8bbfd63d86dd32a8ed5eaf83 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java
<ide> import java.util.Collection;
<ide> import java.util.Collections;
<ide> import java.util.HashMap;
<del>import java.util.LinkedHashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import java.util.Set;
<id... | 29 |
Python | Python | add missing numpy library | a91b81ba299deecfec41f1264fa4f4368745772d | <ide><path>keras/legacy/layers.py
<add>import numpy as np
<ide> import types as python_types
<ide> import warnings
<ide> | 1 |
Python | Python | adjust sort order [ci skip] | f25f05c503c83949c9831028e221f3d024358889 | <ide><path>spacy/util.py
<ide> # Default order of sections in the config.cfg. Not all sections needs to exist,
<ide> # and additional sections are added at the end, in alphabetical order.
<ide> # fmt: off
<del>CONFIG_SECTION_ORDER = ["paths", "variables", "system", "nlp", "components", "training", "pretraining"]
<add>C... | 1 |
Javascript | Javascript | simplify cleartimeout & clearinterval | 8204b0f9c6dbbdba1ca4120698a7f87ca1c9d91c | <ide><path>lib/timers.js
<ide> function rearm(timer, start = TimerWrap.now()) {
<ide>
<ide>
<ide> const clearTimeout = exports.clearTimeout = function(timer) {
<del> if (timer && (timer[kOnTimeout] || timer._onTimeout)) {
<del> timer[kOnTimeout] = timer._onTimeout = null;
<add> if (timer && timer._onTimeout) {
<... | 1 |
PHP | PHP | replace shell with command where possible | 633bcac5fc49ccb67a4d00443d86932c4cb507e0 | <ide><path>tests/TestCase/Command/CompletionCommandTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Command;
<ide>
<del>use Cake\Console\Shell;
<add>use Cake\Console\Command;
<ide> use Cake\Core\Configure;
<ide> use Cake\Routing\Router;
<ide> use Cake\TestSuite\ConsoleIntegrationTestCase;
<ide> public function te... | 1 |
Java | Java | fix multiple subscription bug on operation filter | 581b19f0fef9fbd7f4a5e2d6569b8eca09bf28e1 | <ide><path>rxjava-core/src/main/java/rx/operators/OperationFilter.java
<ide> public static <T> Func1<Observer<T>, Subscription> filter(Observable<T> that, Fu
<ide>
<ide> private final Observable<T> that;
<ide> private final Func1<T, Boolean> predicate;
<del> private final AtomicObservableSubscri... | 1 |
Javascript | Javascript | change handlebars bindings to use scheduleonce | 7642bfeeb7d2f025cb1112961aa5898f196661eb | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> function bind(property, options, preserveContext, shouldDisplay, valueNormalizer
<ide>
<ide> /** @private */
<ide> var observer = function() {
<del> Ember.run.once(bindView, 'rerenderIfNeeded');
<add> Ember.run.scheduleOnce('render', b... | 1 |
Go | Go | add mountlabel to dev | 0c7143b32386c62cccd529de69abf88df938757d | <ide><path>pkg/libcontainer/mount/init.go
<ide> package mount
<ide>
<ide> import (
<ide> "fmt"
<add> "os"
<add> "path/filepath"
<add> "syscall"
<add>
<ide> "github.com/dotcloud/docker/pkg/label"
<ide> "github.com/dotcloud/docker/pkg/libcontainer"
<ide> "github.com/dotcloud/docker/pkg/libcontainer/mount/nodes"
<ide... | 1 |
Ruby | Ruby | update collectionproxy#destroy_all documentation | 03402d206ae1d1977e5283173ecb43a88aacead0 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide>
<ide> ##
<ide> # :method: destroy_all
<del> # Destroy all the records from this association.
<add> # Deletes the records of the collection directly from the database.
<ide> ... | 1 |
Javascript | Javascript | fix typo $digest -> $watch | 50eb7f15b8b9bfbf7b1aed193ce72ec9b586dc14 | <ide><path>src/service/scope.js
<ide> function $RootScopeProvider(){
<ide> scope.counter = 0;
<ide>
<ide> expect(scope.counter).toEqual(0);
<del> scope.$digest('name', function(scope, newValue, oldValue) {
<add> scope.$watch('name', function(scope, newValue, oldValue) {
<ide> ... | 1 |
Javascript | Javascript | increase limit for network space overhead test | 2550ddb04909f19068e947a18681e6c675346e42 | <ide><path>test/sequential/test-net-bytes-per-incoming-chunk-overhead.js
<ide> process.on('exit', () => {
<ide> const bytesPerChunk =
<ide> (process.memoryUsage().rss - baseRSS) / receivedChunks.length;
<ide> // We should always have less than one page (usually ~ 4 kB) per chunk.
<del> assert(bytesPerChunk < 5... | 1 |
PHP | PHP | pass array validation rules as array | 5744ca139d686c21169cacdaaddbbaf726ed5553 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function explodeRules($rules)
<ide> {
<ide> foreach ($rules as $key => $rule) {
<ide> if (Str::contains($key, '*')) {
<del> $this->each($key, $rule);
<add> $this->each($key, [$rule]);
<ide>
<ide> ... | 2 |
Ruby | Ruby | update tabs only if core formula installed | f88f2b7054ac3ff11a8b0581549776879738e868 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def update
<ide> install_tap tap_user, tap_repo
<ide> # update tap for each Tab
<ide> tabs = dir.subdirs.each.map { |d| Tab.for_keg(Keg.new(d)) }
<add> next if tabs.first.source["tap"] != "Homebrew/homebrew"
<ide> tabs.each { |tab| tab.source[... | 2 |
PHP | PHP | allow serialize in json and xml alias | cbb4f7db90616e5902fb4658afac9e15cb2f0b82 | <ide><path>lib/Cake/Test/Case/View/JsonViewTest.php
<ide> public function testRenderWithoutViewMultiple() {
<ide> $this->assertSame('application/json', $Response->type());
<ide> }
<ide>
<add>/**
<add> * Test render with an array in _serialize and alias
<add> *
<add> * @return void
<add> */
<add> public function tes... | 4 |
Ruby | Ruby | assign the `#alias_name` to each reflection | f6729309a06f40b32e52f8ee8143d1b1da412597 | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> def next_chain_scope(scope, table, reflection, connection, assoc_klass, foreign_
<ide> end
<ide>
<ide> class ReflectionProxy < SimpleDelegator
<del> attr_accessor :next
<add> attr_accessor :next, :alias_name
<id... | 2 |
PHP | PHP | fix viewfacade reference | f9165439ba826dab16b177680a14cf21f3ce462c | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php
<ide> protected function blade(string $template, array $data = [])
<ide> $tempDirectory = sys_get_temp_dir();
<ide>
<ide> if (! in_array($tempDirectory, ViewFacade::getFinder()->getPaths())) {
<del> View::addLocatio... | 1 |
Java | Java | fix null pointer exception in logbox | ae03bf88a5386915d36095aac09f49f792760171 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.java
<ide> public void show() {
<ide> new Runnable() {
<ide> @Override
<ide> public void run() {
<del> if (mLogBoxDialog == null) {
<add> if (mLogBoxDialog == null && mReactRootView != null... | 1 |
Text | Text | add bullet point on modifying an existing pr | 45de313a9edcc7a57b09a2a80be3aa865cf8c12c | <ide><path>CONTRIBUTING.md
<ide> # How to contribute to transformers?
<ide>
<ide> Everyone is welcome to contribute, and we value everybody's contribution. Code
<del>is thus not the only way to contribute. Answering questions, helping others,
<del>reaching out and improving the documentations are immensely valuable to... | 1 |
PHP | PHP | update uuid pattern to accept the 'nil' uuid | 5aa8a458b16125fe53004b2785e51a3515f75b6b | <ide><path>lib/Cake/Test/Case/Utility/ValidationTest.php
<ide> public function testUrl() {
<ide> }
<ide>
<ide> public function testUuid() {
<add> $this->assertTrue(Validation::uuid('00000000-0000-0000-0000-000000000000'));
<ide> $this->assertTrue(Validation::uuid('550e8400-e29b-11d4-a716-446655440000'));
<ide> ... | 2 |
Mixed | Python | correct allow_null behaviour when required=false | 6c0c69ed6546d24cf68edaecd5a8698553bfbe6a | <ide><path>docs/api-guide/fields.md
<ide> Setting this to `False` also allows the object attribute or dictionary key to be
<ide>
<ide> Defaults to `True`.
<ide>
<del>### `allow_null`
<del>
<del>Normally an error will be raised if `None` is passed to a serializer field. Set this keyword argument to `True` if `None` sh... | 3 |
Ruby | Ruby | fix install order | a7cf6c1ff038a14b09d433e969c4e4a186d7b6f1 | <ide><path>Library/Homebrew/cask/lib/hbc/artifact/abstract_artifact.rb
<ide> def <=>(other)
<ide> Vst3Plugin,
<ide> ScreenSaver,
<ide> ],
<del> Binary,
<ide> Pkg,
<add> Binary,
<ide> PostflightBlock,
<ide> Zap,
<ide> ].each_with_i... | 1 |
Javascript | Javascript | ignore ssr mounts | b5850fe3044b20f00b9d5482b56989a2ad259955 | <ide><path>src/backend/legacy/renderer.js
<ide> export function attach(
<ide> // React 15
<ide> oldReconcilerMethods = decorateMany(renderer.Reconciler, {
<ide> mountComponent(fn, args) {
<del> const [internalInstance, , , hostContainerInfo] = args;
<add> const internalInstance = args[0];
<a... | 1 |
Text | Text | add cdnjs to readme | e03161ae2fa27308df9a200c83049b73ecfcb9c9 | <ide><path>README.md
<ide> var map = Immutable.Map({a:1, b:2, c:3});
<ide>
<ide> ### Browser
<ide>
<del>To use `immutable` from a browser, download [dist/Immutable.min.js](./dist/Immutable.min.js) or use a CDN such as [jsDelivr](http://cdn.jsdelivr.net/immutable.js/latest/Immutable.min.js).
<add>To use `immutable` fr... | 1 |
Python | Python | add related_query_name to foreignkey/m2m. refs | 99b467f272da91b8894dc90d793d8d2c40b78d8c | <ide><path>django/db/models/fields/related.py
<ide> def related_query_name(self):
<ide> # related object in a table-spanning query. It uses the lower-cased
<ide> # object_name by default, but this can be overridden with the
<ide> # "related_name" option.
<del> return self.rel.related_name... | 3 |
Javascript | Javascript | reuse redux store in single test | 8baab3895d9ec8a7c5da8ee44dbbb55d9a5b07d0 | <ide><path>client/src/components/Map/components/SuperBlock.test.js
<ide> import { SuperBlock } from './SuperBlock';
<ide> import mockChallengeNodes from '../../../__mocks__/challenge-nodes';
<ide> import mockIntroNodes from '../../../__mocks__/intro-nodes';
<ide>
<del>function renderWithRedux(ui) {
<del> return rende... | 1 |
Text | Text | remove console style from code blocks | 5427d90fa48398684948067530cd8083f785c248 | <ide><path>docs/api-guide/testing.md
<ide> Extends [Django's existing `RequestFactory` class][requestfactory].
<ide>
<ide> The `APIRequestFactory` class supports an almost identical API to Django's standard `RequestFactory` class. This means the that standard `.get()`, `.post()`, `.put()`, `.patch()`, `.delete()`, `.... | 1 |
Python | Python | support variable batch size in detection generator | 71c7b7f92dfb5853418ef8daa7b83e2b3f3b6d68 | <ide><path>official/vision/beta/modeling/layers/detection_generator.py
<ide> def _select_top_k_scores(scores_in: tf.Tensor, pre_nms_num_detections: int):
<ide> `[batch_size, pre_nms_num_detections, num_classes]`.
<ide> """
<ide> batch_size, num_anchors, num_class = scores_in.get_shape().as_list()
<add> if ba... | 1 |
Python | Python | add spacy.en.lemmatizer to setup.py | aa8ff9257f5cad847b0a09bf8fe3d9c2bc7b17e3 | <ide><path>setup.py
<ide> 'spacy.sv',
<ide> 'spacy.fi',
<ide> 'spacy.bn',
<add> 'spacy.en.lemmatizer',
<ide> 'spacy.language_data',
<ide> 'spacy.serialize',
<ide> 'spacy.syntax', | 1 |
Go | Go | fix display on test | b36dd3f9ccc61e42024cf1f2799c73f0efc77c75 | <ide><path>utils/streamformatter.go
<ide> func (sf *StreamFormatter) FormatProgress(id, action string, progress *JSONProgr
<ide> }
<ide> return b
<ide> }
<del> return []byte(action + " " + progress.String() + "\r")
<add> endl := "\r"
<add> if progress.String() == "" {
<add> endl += "\n"
<add> }
<add> return []byt... | 1 |
Javascript | Javascript | remove bad advice | 26805fb968858b7d40f4d24c81f8e2b75ddc15f8 | <ide><path>packages/container/lib/registry.js
<ide> Registry.prototype = {
<ide> var fullNameType = fullName.split(':')[0];
<ide> if (fullNameType === type) {
<ide> throw new Error('Cannot inject a `' + fullName +
<del> '` on other ' + type +
<del> '(s). Register the `' + fullName +
<del> '... | 2 |
Python | Python | create tensors on device | f82653874b67de5085971517849899e21bdd7c4b | <ide><path>src/transformers/models/t5/modeling_t5.py
<ide> def _relative_position_bucket(relative_position, bidirectional=True, num_buckets
<ide>
<ide> def compute_bias(self, query_length, key_length):
<ide> """Compute binned relative position bias"""
<del> context_position = torch.arange(query_leng... | 1 |
Text | Text | fix errors in config | 25db82371eef40f54e1bd175ef72c479d368a798 | <ide><path>docs/extend/config.md
<ide> Config provides the base accessible fields for working with V0 plugin format
<ide>
<ide> - **`capabilities`** *string array*
<ide>
<del> capabilities of the plugin (*Linux only*), see list [`here`](https://github.com/opencontainers/runc/blob/master/libcontainer/SPEC... | 1 |
Python | Python | release version 2.0.0rc1 | 7df5db7b0c78b0588f82f2148b51461f94320b90 | <ide><path>src/flask/__init__.py
<ide> from .templating import render_template
<ide> from .templating import render_template_string
<ide>
<del>__version__ = "2.0.0.dev"
<add>__version__ = "2.0.0rc1" | 1 |
Javascript | Javascript | reduce internal usage of public require of util | c97851dcd8c5e96a3601df52edd456922399a80b | <ide><path>lib/internal/js_stream_socket.js
<ide> 'use strict';
<ide>
<ide> const assert = require('internal/assert');
<del>const util = require('util');
<ide> const { Socket } = require('net');
<ide> const { JSStream } = internalBinding('js_stream');
<ide> const uv = internalBinding('uv');
<del>const debug = util.deb... | 4 |
Go | Go | hide the mutex in formatter.containerstats | 929a77b814dfe9ab7a11bffc2d16eebd27bd903a | <ide><path>cli/command/container/stats.go
<ide> func runStats(dockerCli *command.DockerCli, opts *statsOptions) error {
<ide> var errs []string
<ide> cStats.mu.Lock()
<ide> for _, c := range cStats.cs {
<del> c.Mu.Lock()
<del> if c.Err != nil {
<del> errs = append(errs, fmt.Sprintf("%s: %v", c.Name, c.Err)... | 3 |
Ruby | Ruby | use an attr_reader for performance | b952470cc228ce4438226e180454bb141063b0ca | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def checkout_and_verify(c)
<ide> # ActiveRecord::Base.connection_handler. Active Record models use this to
<ide> # determine that connection pool that they should use.
<ide> class ConnectionHandler
<add> att... | 1 |
Javascript | Javascript | remove comment in eslint rule | a81443430b255af29462cd08b3f61f3e36a14592 | <ide><path>tools/eslint-rules/align-multiline-assignment.js
<ide> function testAssignment(context, node) {
<ide> function testDeclaration(context, node) {
<ide> node.declarations.forEach((declaration) => {
<ide> const msg = checkExpressionAlignment(declaration.init);
<del> // const start = declaration.init.loc... | 1 |
Go | Go | add memoryswappiness comment back | f41f62b6cc70a6afa533d11804d59d8bf5218ed8 | <ide><path>runconfig/hostconfig.go
<ide> func NewCapList(caps []string) *CapList {
<ide> // Here, "non-portable" means "dependent of the host we are running on".
<ide> // Portable information *should* appear in Config.
<ide> type HostConfig struct {
<del> Binds []string // List of volume bindings for this ... | 1 |
Text | Text | update contact details | 0418cebc583711263d983e0e3acbd474eb6f0fd2 | <ide><path>README.md
<ide>
<ide> **A toolkit for building well-connected, self-describing web APIs.**
<ide>
<del>**Author:** Tom Christie. [Follow me on Twitter][twitter]
<add>**Author:** Tom Christie. [Follow me on Twitter][twitter].
<add>
<add>**Support:** [REST framework discussion group][group].
<ide>
<ide> [!... | 3 |
Java | Java | orderedmessagesender throughput improvement | f5c287a6e66a76c12359ccfeb8a89f7495e7c18b | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/OrderedMessageSender.java
<ide> /*
<del> * Copyright 2002-2018 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");... | 2 |
Javascript | Javascript | use array.isarray exclusively | b0571517c5db009084f93fc70927a16b4ba01d20 | <ide><path>src/Angular.js
<ide> function isDate(value) {
<ide> * @param {*} value Reference to check.
<ide> * @returns {boolean} True if `value` is an `Array`.
<ide> */
<del>var isArray = (function() {
<del> if (!isFunction(Array.isArray)) {
<del> return function(value) {
<del> return toString.call(value) =... | 1 |
Javascript | Javascript | fix unnecessary licenselint suppressions | 75348acbfc7ae443a744e79a19b91b88568711d9 | <ide><path>packages/react-native-codegen/src/parsers/flow/components/__test_fixtures__/failures.js
<ide> *
<ide> * @flow strict-local
<ide> * @format
<del> * @lint-ignore-every LICENSELINT
<ide> */
<ide>
<add>// @licenselint-loose-mode
<add>
<ide> 'use strict';
<ide>
<ide> const COMMANDS_DEFINED_INLINE = `
<ide><... | 8 |
Text | Text | add endoflife instructions to release procedure | 1a087bca3d6ecceab96f9ab818b3b75262222d13 | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> - [Update `main` with the latest release details](#update-main-with-the-latest-release-details)
<ide> - [Update default Airflow version in the helm chart](#update-default-airflow-version-in-the-helm-chart)
<ide> - [Update airflow/config_templates/config.yml file](#up... | 1 |
Ruby | Ruby | add additional tests for | 2a5ae2b714046d3f7eb1219eb366cf84c1cf9bb5 | <ide><path>activesupport/test/core_ext/duration_test.rb
<ide> def test_comparable
<ide> assert_equal(1, (61 <=> 1.minute))
<ide> end
<ide>
<add> def test_twelve_months_equals_one_year
<add> assert_equal 12.months, 1.year
<add> end
<add>
<add> def test_thirty_days_does_not_equal_one_month
<add> assert_no... | 1 |
Javascript | Javascript | add examples to the ember.nativearray docs | 9b442d5205913ef3e58d4c653950bbdf03e60453 | <ide><path>packages/ember-runtime/lib/system/native_array.js
<ide> Ember.NativeArray = NativeArray;
<ide>
<ide> /**
<ide> Creates an `Ember.NativeArray` from an Array like object.
<del> Does not modify the original object.
<add> Does not modify the original object. Ember.A is not needed if
<add> `Ember.EXTEND_PRO... | 1 |
Java | Java | add timer methods in observable.java | 4deca78d518eb4acf8d33e840bba8b336ad10c6c | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationThrottleFirst;
<ide> import rx.operators.OperationTimeInterval;
<ide> import rx.operators.OperationTimeout;
<add>import rx.operators.OperationTimer;
<ide> import rx.operators.OperationTimestamp;
<ide> import rx.operators.Operatio... | 1 |
Javascript | Javascript | remove hikes from map | 7eaccffd15c29faab720ef352e94630c67e74e32 | <ide><path>server/boot/challenge.js
<ide> module.exports = function(app) {
<ide> name: blockArray[0].block,
<ide> dashedName: dasherize(blockArray[0].block),
<ide> challenges: blockArray
<del> }));
<add> }))
<add> .filter(({ name })=> {
<add> return name !== 'Hikes';
<add> })
<add> ... | 1 |
Ruby | Ruby | add forgotten file | 6fcc81b7f9a8b27b898794dfe4f0a8202393e8a3 | <ide><path>activesupport/test/autoloading_fixtures/application.rb
<add>ApplicationController = 10 | 1 |
Text | Text | add guide for gatsby.js styling | 9181e6b3d0d921e7ed61dd2afa8c42b16025331a | <ide><path>guide/english/gatsbyjs/gatsbyjs-styling/index.md
<add>---
<add>title: Gatsby.js Styling
<add>---
<add>
<add>## Gatsby.js Styling
<add>
<add>There are so many ways to add styles to your website — and Gatsby supports almost every possible option, through official and community plugins.
<add>
<add>NOTE: Gatsby ... | 1 |
Text | Text | use correct link to contributing.md | 14fad91084840886dd0f10825cf28d97e57f95b4 | <ide><path>packages/next/README.md
<ide> As we were researching options for server-rendering React that didn’t involve
<ide>
<ide> ## Contributing
<ide>
<del>Please see our [contributing.md](/packages/next/contributing.md)
<add>Please see our [contributing.md](/contributing.md)
<ide>
<ide> ## Authors
<ide> | 1 |
Text | Text | remove loader hooks from unsupported features | d2e44d5e7fcc93c615ac5cef794bdfbcd32c3fc0 | <ide><path>doc/api/esm.md
<ide> points into ESM graphs at run time.
<ide> | `require('./foo.mjs')` | ES Modules have differing resolution and timing, use language standard `import()` |
<ide> | `import()` | pending newer V8 release used in Node.js |
<ide> | `import.meta` | pending V8 implementation |
<del>| Loader Hooks... | 1 |
Text | Text | add ashcripps to collaborators | c8887e78dd709344e94d63ef5b19a4e40b2edb78 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Anto Aravinth** <anto.aravinth.cse@gmail.com> (he/him)
<ide> * [apapirovski](https://github.com/apapirovski) -
<ide> **Anatoli Papirovski** <apapirovski@mac.com> (he/him)
<add>* [AshCripps](https://github.com... | 1 |
Python | Python | add a bigquerycheckoperator | 0c66806072ac07234542dc42e87532715ce732ac | <ide><path>airflow/contrib/hooks/bigquery_hook.py
<ide> def rollback(self):
<ide> raise NotSupportedError("BigQueryConnection does not have transactions")
<ide>
<ide> class BigQueryBaseCursor(object):
<add> # TODO pydocs
<ide> def __init__(self, service, project_id):
<add> # TODO pydocs
<ide> ... | 2 |
Java | Java | add support for non-standard status codes | 29ef985411b480c0fbdb2b858585c3826e5e7b5b | <ide><path>spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License")... | 8 |
Javascript | Javascript | expose `options` arg in `debugger` hb helper | 78f93856c9513edcc9d40e801c1f863d8e536a0c | <ide><path>packages/ember-handlebars/lib/helpers/debug.js
<ide> Ember.Handlebars.registerHelper('log', function(property, options) {
<ide> @for Ember.Handlebars.helpers
<ide> @param {String} property
<ide> */
<del>Ember.Handlebars.registerHelper('debugger', function() {
<add>Ember.Handlebars.registerHelper('debugge... | 1 |
Java | Java | improve webclient.builder javadoc | 8a7bb494362e7a081e18e40726591656551f9922 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java
<ide> interface Builder {
<ide> * </pre>
<ide> * <p><strong>Note:</strong> this method is mutually exclusive with
<ide> * {@link #uriBuilderFactory(UriBuilderFactory)}. If both are used, the
<del> * baseUr... | 1 |
Text | Text | update the binary package links to x86/x64 | f9df96b950885d6510ee6f5b4e525036fb4aba4e | <ide><path>tools/email-footer.md
<ide> Windows x64 Installer: http://nodejs.org/dist/__VERSION__/x64/node-__VERSION__-x
<ide>
<ide> Windows x64 Files: http://nodejs.org/dist/__VERSION__/x64/
<ide>
<del>Linux 32-bit Binary Package: http://nodejs.org/dist/__VERSION__/node-__VERSION__-linux-i686.tar.gz
<add>Linux 32-bit... | 1 |
Javascript | Javascript | change permissions to node files on linux | fc95475d6e2ff4bc1a8e0382c11a0eb45a907f25 | <ide><path>script/lib/package-application.js
<ide> module.exports = function () {
<ide> if (process.platform === 'darwin') {
<ide> bundledResourcesPath = path.join(packagedAppPath, 'Contents', 'Resources')
<ide> setAtomHelperVersion(packagedAppPath)
<add> } else if (process.platform == 'linux') {
<ad... | 1 |
Python | Python | add default_model to about | 780cb847c952ca2a836e90907c36836c53d3cf34 | <ide><path>setup.py
<ide> def write_version(path):
<ide> full_version = '%(full_version)s'
<ide> git_revision = '%(git_revision)s'
<ide> release = %(isrelease)s
<add>default_model = 'en_default==1.0.4'
<ide> if not release:
<ide> version = full_version
<ide> """
<ide><path>spacy/en/download.py
<ide> def link(packag... | 3 |
PHP | PHP | tweak some code | 866a8cfc58430830069bd24feacf2d81e99385a2 | <ide><path>src/Illuminate/Foundation/Bootstrap/DetectEnvironment.php
<ide> public function bootstrap(Application $app)
<ide> {
<ide> try
<ide> {
<del> Dotenv::makeMutable();
<del>
<ide> Dotenv::load($app['path.base'], $app->environmentFile());
<add>
<add> Dotenv::makeMutable();
<ide> }
<ide> catch (Inva... | 1 |
Javascript | Javascript | remove unnecessary condition | 3a6d6560903e882db8776017594ceab79e66a9da | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> const nextFallbackChildSet = nextFiber.child.sibling;
<ide> mountFiberRecursively(nextFallbackChildSet, nextFiber, true);
<ide> shouldResetChildren = true;
<del> } else if (!prevDidTimeout && !nextDidTimeOut) {
<add> } else {... | 1 |
Javascript | Javascript | run eslint on simplehttpserver | 4c91e53687252e2b7f5e59c9325c229a0aa758c5 | <ide><path>utils/servers/simplehttpserver.js
<ide> var port = 8000,
<ide> "mp4": "video/mp4",
<ide> "txt": "text/plain",
<ide> "bin": "application/octet-stream"
<del> };
<add> };
<ide>
<ide> // https://github.com/parshap/node-sanitize-filename/blob/master/index.js#L33-L47
<ide> var illegalRe = /[\?<>:\*\|":]/g;... | 1 |
Python | Python | get the bit at a given position | 8d173438c38cb7d92f6daf2c0e3405067bf4166f | <ide><path>bit_manipulation/single_bit_manipulation_operations.py
<ide> def is_bit_set(number: int, position: int) -> bool:
<ide> return ((number >> position) & 1) == 1
<ide>
<ide>
<add>def get_bit(number: int, position: int) -> int:
<add> """
<add> Get the bit at the given position
<add>
<add> Details: ... | 1 |
Javascript | Javascript | force timezone to be utc for tests | cc79999a31b46e68a4dca5d536fc2fb4fe3d5199 | <ide><path>client/jest-timezone-setup.js
<add>module.exports = async () => {
<add> process.env.TZ = 'UTC';
<add>};
<ide><path>client/jest.config.js
<ide> module.exports = {
<ide> globals: {
<ide> __PATH_PREFIX__: ''
<ide> },
<add> globalSetup: './jest-timezone-setup.js',
<ide> verbose: true,
<ide> transfo... | 3 |
PHP | PHP | fix seed method in foundation testcase | a8d35bf8fc44f2c73f4a58a6c32ab1edbdca85d6 | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide> public function be(UserInterface $user, $driver = null)
<ide> */
<ide> public function seed($class = 'DatabaseSeeder')
<ide> {
<del> $this->app['artisan']->call('seed', array('--class' => $class));
<add> $this->app['artisan']->call('db:seed', array('... | 1 |
Text | Text | add document for http.outgoingmessage | 53b673e92e851a4adae372fdc4945e174303996b | <ide><path>doc/api/http.md
<ide> URL {
<ide> }
<ide> ```
<ide>
<add>## Class: `http.OutgoingMessage`
<add><!-- YAML
<add>added: v0.1.17
<add>-->
<add>
<add>* Extends: {Stream}
<add>
<add>This class serves as the parent class of [`http.ClientRequest`][]
<add>and [`http.ServerResponse`][]. It is an abstract of outgoing ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.