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 | improve punycode coverage to check surrogate pair | 05a00a0c433a285bbae8c9954ec08fc99c42e4f1 | <ide><path>test/parallel/test-punycode.js
<ide> assert.strictEqual(
<ide> 'Willst du die Blthe des frhen, die Frchte des spteren Jahres-x9e96lkal'
<ide> );
<ide> assert.strictEqual(punycode.encode('日本語'), 'wgv71a119e');
<add>assert.strictEqual(punycode.encode('𩸽'), 'x73l');
<ide>
<ide> assert.strictEqual(punycode.d... | 1 |
Ruby | Ruby | fix ruby warnings | 995186a72c6de199114d8701cf2f3a950847ef70 | <ide><path>Library/Homebrew/dependencies.rb
<ide> def initialize language, module_name, import_name=nil
<ide> def fatal?; true; end
<ide>
<ide> def satisfied?
<del> quiet_system *the_test
<add> quiet_system(*the_test)
<ide> end
<ide>
<ide> def message; <<-EOS.undent
<ide><path>Library/Homebrew/download_... | 6 |
Text | Text | update changelog.md | 46fd62311e8fcfb06ba8af1cc455d9ed1d3a84ef | <ide><path>CHANGELOG.md
<ide> - Fixed bug on forceCreate on a MorphMay relationship not including morph type ([#42929](https://github.com/laravel/framework/pull/42929))
<ide> - Fix default parameter bug in routes ([#42942](https://github.com/laravel/framework/pull/42942))
<ide> - Handle cursor paginator when no items a... | 1 |
Javascript | Javascript | avoid iteration when possible in `each_proxy` | 87980e24a49c46cea29c08b76a90a3bc979f54e6 | <ide><path>packages/ember-metal/lib/array.js
<ide> export function objectAt(array, index) {
<ide> return array[index];
<ide> } else {
<ide> return array.objectAt(index);
<del> }
<del>}
<add> }
<add>}
<ide>
<ide> export function replace(array, start, deleteCount, items = EMPTY_ARRAY) {
<ide> if (Array... | 2 |
Python | Python | add support for dim_ordering in initializations | becc5f3a2cd0599be17ac9f62e9ac78bde42702f | <ide><path>keras/initializations.py
<ide> from . import backend as K
<ide>
<ide>
<del>def get_fans(shape):
<del> fan_in = shape[0] if len(shape) == 2 else np.prod(shape[1:])
<del> fan_out = shape[1] if len(shape) == 2 else shape[0]
<add>def get_fans(shape, dim_ordering='th'):
<add> if len(shape) == 2:
<add> ... | 3 |
Python | Python | remove unnecessary file | 9da12cddf0019ce8d852f1dfa38fa6ed5197894e | <ide><path>research/object_detection/meta_architectures/context_rcnn_lib_test_tf1.py
<del># Lint as: python3
<del># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<del>#
<del># Licensed under the Apache License, Version 2.0 (the "License");
<del># you may not use this file except in compliance with the Lic... | 1 |
Ruby | Ruby | reduce allocations when extracting ar models | 14b23ee5fbe184187b33909411f3f28b953207d1 | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_part.rb
<ide> def column_names_with_alias
<ide> end
<ide>
<ide> def extract_record(row)
<del> Hash[column_names_with_alias.map{|cn, an| [cn, row[an]]}]
<add> # This code is performance critical as it is called... | 1 |
Javascript | Javascript | remove common.port from dgram test | ad4765a32641277a91efb565e2056abaa6b6a70b | <ide><path>test/parallel/test-dgram-send-callback-buffer-length-empty-address.js
<ide> const onMessage = common.mustCall(function messageSent(err, bytes) {
<ide> client.close();
<ide> });
<ide>
<del>client.send(buf, offset, len, common.PORT, onMessage);
<add>client.bind(0, () => client.send(buf, offset, len,
<add> ... | 1 |
Mixed | Ruby | avoid use of exceptions to detect invalid floats | 900ce92c9d59931adfda1c40fabe36dbc2f5c972 | <ide><path>actionview/CHANGELOG.md
<add>* Improves the performance of ActionView::Helpers::NumberHelper formatters by avoiding the use of
<add> exceptions as flow control.
<add>
<add> *Mike Dalessio*
<add>
<ide> * `preload_link_tag` properly inserts `as` attributes for files with `image` MIME types, such as J... | 5 |
Text | Text | replace todo with link | 539d134a547259e4904c4ec460a5cdf61c976144 | <ide><path>docs/packages/intro.md
<ide> Keymaps are placed in the `keymaps` subdirectory. By default, all keymaps will b
<ide> loaded in alphabetical order unless there is a `keymaps` array in `package.json`
<ide> specifying which keymaps to load and in what order. It's a good idea to provide
<ide> default keymaps for ... | 1 |
Python | Python | add tests for ma.dot | 3e82108f701b0ce6cbb9e16f5d7fd4c3cb27a97c | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_dot(self):
<ide> assert_almost_equal(r.filled(0), fX.dot(fX))
<ide> assert_(r.mask[1,3])
<ide> r1 = empty_like(r)
<del> mX.dot(mX, r1)
<add> mX.dot(mX, out=r1)
<ide> assert_almost_equal(r, r1)
<ide>
<ide> mYY = ... | 2 |
PHP | PHP | fix another test that fails on postgres sometimes | d9a3ab844f3c563bde72fd28fb990a220b67f3e6 | <ide><path>lib/Cake/Test/Case/Model/ModelReadTest.php
<ide> public function testVirtualFieldsOrder() {
<ide> $this->assertEquals($expected, $result);
<ide>
<ide> $Post->Author->virtualFields = array('joined' => 'Post.id * Author.id');
<del> $result = $Post->find('all');
<add> $result = $Post->find('all', array(
... | 1 |
Ruby | Ruby | remove unused require | 2a8917d30413927df353d77d9835a86f83625d5a | <ide><path>activesupport/lib/active_support/deprecation/method_wrappers.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "active_support/core_ext/module/aliasing"
<ide> require "active_support/core_ext/array/extract_options"
<ide>
<ide> module ActiveSupport | 1 |
PHP | PHP | fix regression in form empty | 8cfd27693f5c555007f474daa904e5f629c824a2 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _datetimeOptions($options)
<ide> // Pass boolean/scalar empty options to each type.
<ide> if (is_array($options[$type]) && isset($options['empty']) && !is_array($options['empty'])) {
<ide> $options[$type]['empty']... | 1 |
Javascript | Javascript | remove reference to onparserexecute | 5f6dfab832979999d2f806fc1a2f1c11a25b0f35 | <ide><path>lib/_http_common.js
<ide> const kOnHeaders = HTTPParser.kOnHeaders | 0;
<ide> const kOnHeadersComplete = HTTPParser.kOnHeadersComplete | 0;
<ide> const kOnBody = HTTPParser.kOnBody | 0;
<ide> const kOnMessageComplete = HTTPParser.kOnMessageComplete | 0;
<add>const kOnExecute = HTTPParser.kOnExecute | 0;
<ide... | 1 |
Ruby | Ruby | use resource for checksum detection | 28cb9978ee6d9b4bcabb9b9b238c98da52411da0 | <ide><path>Library/Homebrew/cmd/create.rb
<ide> def generate!
<ide> puts "You'll need to add an explicit 'version' to the formula."
<ide> end
<ide>
<add> # XXX: why is "and version" here?
<ide> unless ARGV.include? "--no-fetch" and version
<del> spec = SoftwareSpec.new(url, version)
<del> st... | 1 |
Java | Java | simplify code; junits | dba41f09f5d3ec8460c5bded08f1558e3d3e7156 | <ide><path>rxjava-core/src/test/java/rx/subscriptions/SerialSubscriptionTests.java
<ide> import static org.junit.Assert.fail;
<ide> import static org.mockito.Mockito.mock;
<ide> import static org.mockito.Mockito.verify;
<add>import static org.mockito.Mockito.verifyNoMoreInteractions;
<add>import static org.mockito.Mock... | 1 |
PHP | PHP | simplify escape for flash messages | 676ff2f938be2ea0545dba3c9dd7ff12c976e47d | <ide><path>src/Controller/Component/FlashComponent.php
<ide> public function __construct(ComponentRegistry $registry, array $config = [])
<ide> * - `element` The element used to render the flash message. Default to 'default'.
<ide> * - `params` An array of variables to make available when using an element
<id... | 2 |
Text | Text | move bug reporting docs to a comment | 2b3e249d8b2072dcca6b23e5a500b2f9aa094eb6 | <ide><path>.github/ISSUE_TEMPLATE/Bug_report.md
<ide> name: "\U0001F41BBug report"
<ide> about: Something is wrong with Redux.
<ide> ---
<ide>
<del>## Do you want to request a _feature_ or report a _bug_?
<add><!--
<add>Thank you for contributing to open source!
<ide>
<del>(If this is a _usage question_, please **do ... | 1 |
Ruby | Ruby | improve `enqueue_retry.active_job` message | b0f2f5e348a409d52f126c446951fa4397a56302 | <ide><path>activejob/lib/active_job/logging.rb
<ide> def enqueue_retry(event)
<ide> ex = event.payload[:error]
<ide> wait = event.payload[:wait]
<ide>
<del> error do
<del> "Retrying #{job.class} in #{wait.inspect} seconds, due to a #{ex&.class.inspect}. The original exception wa... | 2 |
Javascript | Javascript | remove unused things in `helpers/component` | b3bbb86ad71e1a1ba26a8cffa856deaca7b1e7e3 | <ide><path>packages/ember-glimmer/lib/helpers/component.js
<ide> import { assign } from 'ember-utils';
<ide> import { CachedReference } from '../utils/references';
<ide> import {
<ide> CurlyComponentDefinition,
<del> validatePositionalParameters,
<del> PositionalArgumentsReference
<add> validatePositionalParameter... | 1 |
Ruby | Ruby | use "refute" instead of "assert !" | daa7b4e2f0f045af0dbecc6f531976fe68132cab | <ide><path>activerecord/test/cases/connection_adapters/abstract_adapter_test.rb
<ide> def setup
<ide> end
<ide>
<ide> def test_in_use?
<del> # FIXME: change to refute in Rails 4.0 / mt
<del> assert !adapter.in_use?, 'adapter is not in use'
<add> refute adapter.in_use?, 'adapter is not ... | 1 |
Javascript | Javascript | remove binding param in `changeproperties` | 4c235ae09445fe76f430dcbaf3f86cf9339d38d1 | <ide><path>packages/ember-metal/lib/property_events.js
<ide> function endPropertyChanges() {
<ide>
<ide> @method changeProperties
<ide> @param {Function} callback
<del> @param [binding]
<ide> @private
<ide> */
<del>function changeProperties(callback, binding) {
<add>function changeProperties(callback) {
<ide> ... | 1 |
Mixed | Javascript | add unsubscribe method to non-active dc channels | 07bbb07119a11c55ed6ccbf43ded0407ecf92642 | <ide><path>doc/api/diagnostics_channel.md
<ide> added:
<ide> changes:
<ide> - version: REPLACEME
<ide> pr-url: https://github.com/nodejs/node/pull/40433
<del> description: Added return value.
<add> description: Added return value. Added to channels without subscribers.
<ide> -->
<ide>
<ide> * `onMessage` {... | 2 |
Javascript | Javascript | use a fragment for styles initial prop | 4dd60946395419b45b3d2f6d2851438ac094e9c5 | <ide><path>examples/with-styled-components/pages/_document.js
<ide> export default class MyDocument extends Document {
<ide> const initialProps = await Document.getInitialProps(ctx)
<ide> return {
<ide> ...initialProps,
<del> styles: [...initialProps.styles, ...sheet.getStyleElement()]
<add> ... | 1 |
Ruby | Ruby | add a code example and clarify docs | a78c766f38052ed7701ab900f641c1296c96917b | <ide><path>actionpack/lib/action_controller/metal/helpers.rb
<ide> module ActionController
<ide> #
<ide> # In previous versions of \Rails the controller will include a helper which
<ide> # matches the name of the controller, e.g., <tt>MyController</tt> will automatically
<del> # include <tt>MyHelper</tt>. To ret... | 1 |
Javascript | Javascript | add support for lightimport in vrml | 2944a3f061ddec5350cc941fe5afe15a0f4b4803 | <ide><path>examples/js/loaders/VRMLLoader.js
<ide> THREE.VRMLLoader.prototype = {
<ide> };
<ide>
<ide> break;
<del>
<add>
<add>+ case 'location':
<add>+ case 'direction':
<ide> case 'translation':
<ide> case 'scale':
<ide> case 'size':
<ide> THREE.VRMLLoader.prototype =... | 1 |
PHP | PHP | bind artisan to container | ce5726d870f66e1082f5207b8456e8cc434d5c10 | <ide><path>src/Illuminate/Console/Application.php
<ide> public static function make($app)
<ide> {
<ide> $app->boot();
<ide>
<del> return with($console = new static('Laravel Framework', $app::VERSION))
<del> ->setLaravel($app)
<del> ->setExceptionHandler($app['exception'])
<del> ->setAutoExi... | 1 |
Ruby | Ruby | add --json=v2 for outputing formula and cask json | 4c36cf2e8e072b56a66454ddabe7bb9986a2b83e | <ide><path>Library/Homebrew/cli/named_args.rb
<ide> def to_formulae_and_casks(only: nil, method: nil)
<ide> end
<ide> end
<ide>
<add> def to_formulae_to_casks(method: nil, only: nil)
<add> @to_formulae_to_casks ||= {}
<add> @to_formulae_to_casks[[method, only]] = to_formulae_and_casks(... | 2 |
Python | Python | remove unittest dependencies in numpy/linalg/tests | fb935c60ff529ab9d08317293336a6883a02370c | <ide><path>numpy/linalg/tests/test_build.py
<ide> import re
<ide>
<ide> from numpy.linalg import lapack_lite
<del>from numpy.testing import TestCase, dec, run_module_suite
<add>from numpy.testing import run_module_suite, assert_, dec
<ide>
<ide>
<ide> class FindDependenciesLdd(object):
<ide> def grep_dependencies(se... | 2 |
Python | Python | remove stale pidfile for non privileged user | 8356a08812c579630e8ebff1f26b3ae001c27a36 | <ide><path>celery/platforms.py
<ide> def remove_if_stale(self):
<ide> try:
<ide> os.kill(pid, 0)
<ide> except os.error as exc:
<del> if exc.errno == errno.ESRCH:
<add> if exc.errno == errno.ESRCH or exc.errno == errno.EPERM:
<ide> print('Stale pidfile ex... | 2 |
Python | Python | add coverage for blueprint request process methods | a690ae27a392cfa1474e062f7655250c416cd536 | <ide><path>tests/test_blueprints.py
<ide> def get_answer():
<ide> with app.app_context():
<ide> rv = flask.render_template_string('{{ get_answer() }}')
<ide> assert rv == '42'
<add>
<add>def test_request_processing():
<add> app = flask.Flask(__name__)
<add> bp = flask.Blueprint('bp', __name__)... | 1 |
Python | Python | fix the dunder methods on array_api.ndarray | 061fecb0c68d35ab8761ad5f9f1b05f3c3bd293b | <ide><path>numpy/_array_api/_array_object.py
<ide>
<ide> from enum import IntEnum
<ide> from ._types import Optional, PyCapsule, Tuple, Union, array
<add>from ._creation_functions import asarray
<ide>
<ide> class ndarray:
<ide> # Use a custom constructor instead of __init__, as manually initializing
<ide> def __a... | 1 |
Python | Python | add type hints | d7cc778092ab406cd9269845262e4fc4952c51bc | <ide><path>conversions/decimal_to_binary.py
<ide> """Convert a Decimal Number to a Binary Number."""
<ide>
<ide>
<del>def decimal_to_binary(num):
<add>def decimal_to_binary(num: int) -> str:
<ide>
<ide> """
<ide> Convert a Integer Decimal Number to a Binary Number as str. | 1 |
Java | Java | introduce httpstatuscode interface | ca4b6e86a4dd7f278049a6d91196d817c7953c43 | <ide><path>spring-web/src/main/java/org/springframework/http/DefaultHttpStatusCode.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You... | 3 |
PHP | PHP | enhance docblocks of validation factory | 55a6f1cdb4b107d31ca5e0d4b35cfd0f76dbb6d9 | <ide><path>src/Illuminate/Validation/Factory.php
<ide> class Factory implements FactoryContract
<ide> /**
<ide> * All of the custom validator extensions.
<ide> *
<del> * @var array
<add> * @var array<string, \Closure|string>
<ide> */
<ide> protected $extensions = [];
<ide>
<ide> /**
... | 1 |
Ruby | Ruby | require only what each test concerns | f22a11edc71de44b3ef283066c6307503b83165b | <ide><path>activesupport/test/core_ext/object/acts_like_test.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "abstract_unit"
<del>require "active_support/core_ext/object"
<add>require "active_support/core_ext/date/acts_like"
<add>require "active_support/core_ext/time/acts_like"
<add>require "active_support/... | 4 |
Python | Python | remove debug message | 7c5d332aa3fb9c4c4f392bab31a35a8572923559 | <ide><path>glances/plugins/glances_connections.py
<ide> def msg_curse(self, args=None, max_width=None):
<ide> # Init the return message
<ide> ret = []
<ide>
<del> logger.info(self.is_disable())
<del>
<ide> # Only process if stats exist and display plugin enable...
<ide> if not se... | 2 |
Text | Text | add config options | 4e1f66f90b4a2dfb1cc5213b0bd5e1795b1c1b8d | <ide><path>guides/source/active_record_encryption.md
<ide> Active Record Encryption
<ide>
<ide> This guide covers encrypting your database information using Active Record.
<ide>
<del>After reading this guide, you will know:
<add>After reading this guide you will know:
<ide>
<ide> * How to set up database encryption ... | 1 |
Javascript | Javascript | fix linter errors | 4f1efe6ef69854942c03cddc00a3d1421dc674ca | <ide><path>spec/browser/file-recovery-service.spec.js
<ide> describe("FileRecoveryService", () => {
<ide> let mockWindow, recoveryService, recoveryDirectory
<ide>
<ide> beforeEach(() => {
<del> mockWindow = new Emitter
<add> mockWindow = new Emitter()
<ide> recoveryDirectory = temp.mkdirSync()
<ide> ... | 2 |
Javascript | Javascript | add failing test cases for glimmer 2 conditionals | 913913ac922d36be0ccf67803ca32765b328a6ef | <ide><path>packages/ember-glimmer/tests/utils/shared-conditional-tests.js
<ide> export class SharedSyntaxConditionalsTest extends SharedConditionalsTest {
<ide> }
<ide>
<ide> ['@test it tests for `isTruthy` on the context if available']() {
<del> let template = this.templateFor({ cond: 'this', truthy: 'T1', fal... | 1 |
Python | Python | add configuration for new german distilbert model | 337802783f0ba87a58e2e9adddb47ac5cb00646d | <ide><path>transformers/configuration_distilbert.py
<ide>
<ide> DISTILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP = {
<ide> 'distilbert-base-uncased': "https://s3.amazonaws.com/models.huggingface.co/bert/distilbert-base-uncased-config.json",
<del> 'distilbert-base-uncased-distilled-squad': "https://s3.amazonaws.com/mode... | 1 |
Python | Python | handle malformed responses in slicehost | 800d15f692a4ec02207375bbfbeefc676b6df59a | <ide><path>libcloud/drivers/slicehost.py
<ide> """
<ide> Slicehost Driver
<ide> """
<del>from libcloud.types import NodeState, Provider, InvalidCredsError
<add>from libcloud.types import NodeState, Provider, InvalidCredsError, MalformedResponseError
<ide> from libcloud.base import ConnectionKey, Response, NodeDriver, N... | 1 |
Java | Java | fix typos in resolvabletypetests | 7778508e69f5bb09e58779fd4cdb347bdebe13bb | <ide><path>spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.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> * you may not u... | 1 |
Python | Python | fix tensorflow dataset generator | fcf0652460753f8a81f7576e8abdaa6b3742f00e | <ide><path>src/transformers/data/processors/glue.py
<ide>
<ide> import logging
<ide> import os
<add>from dataclasses import asdict
<ide> from enum import Enum
<ide> from typing import List, Optional, Union
<ide>
<ide> def _tf_glue_convert_examples_to_features(
<ide>
<ide> def gen():
<ide> for ex ... | 2 |
Javascript | Javascript | relocate rsvp configuration | 1ff5df4b65d268e346195b2749a76419649bf6f4 | <ide><path>packages/ember-runtime/lib/ext/rsvp.js
<ide>
<ide> import Ember from 'ember-metal/core';
<ide> import Logger from 'ember-metal/logger';
<add>import run from "ember-metal/run_loop";
<ide>
<ide> var RSVP = requireModule('rsvp');
<ide> var Test, testModuleName = 'ember-testing/test';
<ide>
<add>var asyncStar... | 2 |
Text | Text | add internal documentation | 7938238b31f69d1a8bfa8069387cc2374435996c | <ide><path>doc/guides/internal/readme.md
<add>These flags are for Node.js core development usage only. Do not use these flags
<add>in your own applications. These flags are not subjected to semantic versioning
<add>rules. The core developers may remove these flags in any version of Node.js.
<add>
<add># Internal docume... | 1 |
PHP | PHP | use nullsafe operator in connection | 91dfbd0c3823069eb8e8d65752a6c85e81e5b4d8 | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function beforeExecuting(Closure $callback)
<ide> */
<ide> public function listen(Closure $callback)
<ide> {
<del> if (isset($this->events)) {
<del> $this->events->listen(Events\QueryExecuted::class, $callback);
<del> }... | 2 |
Text | Text | add article with examples for criteria in gherkin | 27407b16790bed8087903130dc8da08a0843a4cd | <ide><path>guide/english/agile/acceptance-criteria/index.md
<ide> Acceptance criteria can be viewed as an instrument to protect the Delivery Team.
<ide> Consider the following situation: when accepting the user story the Product Owner suggests adding something that was not in the scope of the User story. In this case t... | 1 |
Javascript | Javascript | add missing semicolon in dragcontrols | 3d7e3b644e0517f6804b7fd118985c5c62acdde7 | <ide><path>examples/js/controls/DragControls.js
<ide> THREE.DragControls = function( _camera, _objects, _domElement ) {
<ide>
<ide> }
<ide>
<del>}
<add>}; | 1 |
Text | Text | update anonymous message board url | 690cc04a3c47e952000fb29c62b102e3af06e9d4 | <ide><path>curriculum/challenges/chinese/06-information-security-and-quality-assurance/information-security-and-quality-assurance-projects/anonymous-message-board.chinese.md
<ide> localeTitle: 匿名留言板
<ide> ---
<ide>
<ide> ## Description
<del><section id="description">构建一个功能类似于此的完整堆栈JavaScript应用程序: <a href="https://horn... | 5 |
Javascript | Javascript | change node-uuid to uuid | 96e563fbe2239dd91002bb61bb68d2df0946bf43 | <ide><path>loopbackMigration.js
<ide> /* eslint-disable no-process-exit */
<ide> require('dotenv').load();
<ide> var Rx = require('rx'),
<del> uuid = require('node-uuid'),
<add> uuid = require('uuid'),
<ide> assign = require('lodash/object/assign'),
<ide> mongodb = require('mongodb'),
<ide> secrets = require('.... | 1 |
Javascript | Javascript | extend eslint to test files | 766ca49cd094562f3a2e870e0c2b162ee16c8189 | <ide><path>gulpfile.js
<ide> var package = require('./package.json');
<ide>
<ide> var srcDir = './src/';
<ide> var outDir = './dist/';
<add>var testDir = './test/';
<ide>
<ide> var header = "/*!\n" +
<ide> " * Chart.js\n" +
<ide> function packageTask() {
<ide> function lintTask() {
<ide> var files = [
<ide> s... | 27 |
Java | Java | update @requestparam javadoc | 3abe05c65e40755e209971888e3d5e6ea38b2487 | <ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/RequestParam.java
<ide> boolean required() default true;
<ide>
<ide> /**
<del> * The default value to use as a fallback. Supplying a default value implicitly
<del> * sets {@link #required()} to false.
<add> * The default value to use as a... | 1 |
Javascript | Javascript | update obsolete information pointer | 874b6b948c508bcf8f37f2bbda95cb5f14bbf425 | <ide><path>benchmark/_http-benchmarkers.js
<ide> exports.run = function(options, callback) {
<ide> benchmarker: exports.default_http_benchmarker
<ide> }, options);
<ide> if (!options.benchmarker) {
<del> callback(new Error('Could not locate any of the required http ' +
<del> 'benchmarke... | 1 |
Javascript | Javascript | support multiple packager servers | 1c57291faae4cd13a4686dd18cb59c4fb4d40560 | <ide><path>packager/react-packager/index.js
<ide> var debug = require('debug');
<ide> var omit = require('underscore').omit;
<ide> var Activity = require('./src/Activity');
<ide>
<add>exports.createServer = createServer;
<ide> exports.middleware = function(options) {
<ide> var server = createServer(options);
<ide> ... | 2 |
Python | Python | fix spelling in _get_response_if_not_available() | bb130640940fec2f3818f2cbe1cda702e6ff5b69 | <ide><path>libcloud/test/__init__.py
<ide> def _generate_random_data(self, size):
<ide>
<ide> @property
<ide> def response(self):
<del> return self._get_response_if_not_availale()
<add> return self._get_response_if_not_available()
<ide>
<ide> @property
<ide> def status(self):
<del> ... | 1 |
Go | Go | add endpointresolver interface | f9f549cbe445177c1f0f4b13173e3b049674a3a1 | <ide><path>plugin/manager.go
<ide> type Executor interface {
<ide> Signal(id string, signal int) error
<ide> }
<ide>
<add>// EndpointResolver provides looking up registry endpoints for pulling.
<add>type EndpointResolver interface {
<add> LookupPullEndpoints(hostname string) (endpoints []registry.APIEndpoint, err err... | 2 |
Ruby | Ruby | fix false negative for formulae options | 6a0086a0a7242e214bfdf8a1e0a79dc057e75eb0 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def line_problems(line, _lineno)
<ide> if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+(.*)/
<ide> dep = $1
<ide> $2.split(" ").map do |o|
<add> break if ["if", "unless"].include?(o)
<ide> next unless o =~ /^\[?['"](.*)['"]/
<ide> pr... | 1 |
Javascript | Javascript | add a test case about nodeenv | 0743250281b233efc202ea6ff65a1b8debdc63fe | <ide><path>lib/WebpackOptionsDefaulter.js
<ide> class WebpackOptionsDefaulter extends OptionsDefaulter {
<ide> }
<ide> }
<ide> ]);
<del> this.set(
<del> "optimization.nodeEnv",
<del> "make",
<del> options => options.mode || "production"
<del> );
<add> this.set("optimization.nodeEnv", "make", options =... | 3 |
Python | Python | pass x-presto-client-info in presto hook | 05b44099459a7e698c3df88cec1bcad145748448 | <ide><path>airflow/providers/presto/hooks/presto.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<add>import json
<ide> import os
<ide> import warnings
<ide> from typing import Any, Callable, Iterable, Option... | 2 |
Ruby | Ruby | fix tests under 32-bit sl | 303feacdd92f693918a9bc8f5bfa14d6ca7a1244 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_formula_specs
<ide> assert_equal :sha1, f.bottle.checksum.hash_type
<ide> assert_equal :sha256, f.devel.checksum.hash_type
<ide> assert_equal case MacOS.cat
<del> when :snow_leopard then 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
<del> ... | 2 |
Text | Text | improve vocabulary and orthography | 136a42abc162a64ac57ff45417553b58a031990b | <ide><path>README.md
<ide> synchronizes data from your UI (view) with your JavaScript objects (model) throu
<ide> binding. To help you structure your application better and make it easy to test, AngularJS teaches
<ide> the browser how to do dependency injection and inversion of control.
<ide>
<del>It also helps with s... | 1 |
Java | Java | remove javadoc linebreaks | a75d4f992e37ff903096820594a27a0a3f1b7ad6 | <ide><path>src/main/java/rx/functions/Functions.java
<ide> private Functions() {
<ide> }
<ide>
<ide> /**
<del> * Converts a {@link Func0} to a {@link FuncN} to allow heterogeneous handling of functions with different
<del> * arities.
<add> * Converts a {@link Func0} to a {@link FuncN} to allow hete... | 1 |
Python | Python | remove unnecessary check | 0b476b02a46b930798f8cf7e2922c4222535ad76 | <ide><path>libcloud/utils/iso8601.py
<ide> from datetime import datetime, timedelta, tzinfo
<ide> import re
<ide>
<del>from libcloud.utils.py3 import basestring
<del>
<ide> __all__ = ["parse_date", "ParseError"]
<ide>
<ide> # Adapted from http://delete.me.uk/2005/03/iso8601.html
<ide> class ParseError(Exception):
<id... | 1 |
Python | Python | use shelve instead of persistentdict | d775531a591eed44ef3125018843f08cb7a7cffc | <ide><path>celery/beat.py
<del>from celery import registry
<del>from datetime import datetime
<ide> from UserDict import UserDict
<del>from celery.serialization import pickle
<add>from datetime import datetime
<add>from celery import registry
<add>import shelve
<ide> import atexit
<del>import errno
<ide> import time
<i... | 1 |
Python | Python | produce a 3k-compatible __config__.py | 7fde981edb7cc6ea20ac2e0083c932900c67ff5c | <ide><path>numpy/distutils/misc_util.py
<ide> def scons_generate_config_py(target):
<ide> f.write(r'''
<ide> def show():
<ide> for pkg, config in _config.items():
<del> print "package %s configuration:" % pkg
<add> print("package %s configuration:" % pkg)
<ide> for lib, libc in config.item... | 1 |
Javascript | Javascript | remove unused $animate delegation methods | 85f0d4af97b48f069290ce57888639e5744bdad2 | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.animate = angular.module('mock.animate', ['ng'])
<ide> }
<ide> };
<ide>
<del> forEach(['enter','leave','move','show','hide','addClass','removeClass'], function(method) {
<add> forEach(['enter','leave','move','addClass','removeClass'], fu... | 1 |
Javascript | Javascript | make read()-based api sync | ebd8b2ab43045ec97b00aa1c9e640ab1f8a36b65 | <ide><path>packager/src/node-haste/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest {
<ide>
<ide> let p = fromModule.getPackage();
<ide> if (p) {
<del> p = p.redirectRequire(toModuleName);
<add> p = Promise.resolve(p.redirectRequire(toModuleName));
<ide> } else {
<ide> p =... | 2 |
Javascript | Javascript | shorten requestanimationframe test | 5b0369366a83d7339f925bfef3a277d7287c9bd2 | <ide><path>src/support.js
<ide> a = div.getElementsByTagName("a")[0],
<ide> select = document.createElement("select"),
<ide> opt = select.appendChild( document.createElement("option") ),
<del> input = div.getElementsByTagName("input")[0];
<add> input = div.getElementsByTagName("input")[0],
<add> raf = "Request... | 1 |
Ruby | Ruby | remove unnecessary branch from quoting in mysql | 1a3e739dbeda69f4f8aeb91964ca7b14189d1efa | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
<ide> def quote(value, column = nil)
<ide> if value.kind_of?(String) && column && column.type == :binary
<ide> s = value.unpack("H*")[0]
<ide> "x'#{s}'"
<del> elsif value.kind_of?(BigDecimal)
<del>... | 1 |
Ruby | Ruby | fix regex style | 7974ce24b619f921071dc607f0ea1a50e5379b9f | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_coretap_git_origin
<ide> return if ENV["CI"] || ENV["JENKINS_HOME"]
<ide>
<ide> branch = coretap_path.git_branch
<del> return if branch.nil? || branch =~ %r{master}
<add> return if branch.nil? || branch =~ /master/
<ide>
<ide>
<i... | 1 |
PHP | PHP | add an interface for schemacollections | 7329244ed35da66199e1e23f9b0d46b647b4924a | <ide><path>src/Database/Connection.php
<ide> use Cake\Database\Retry\ReconnectStrategy;
<ide> use Cake\Database\Schema\CachedCollection;
<ide> use Cake\Database\Schema\Collection as SchemaCollection;
<add>use Cake\Database\Schema\CollectionInterface as SchemaCollectionInterface;
<ide> use Cake\Datasource\ConnectionInte... | 4 |
PHP | PHP | add association properties to accessible fields | b7645fc4b2e2a629edcd909a075df67a249d5672 | <ide><path>src/Console/Command/Task/ModelTask.php
<ide> public function getFields($model) {
<ide> $columns = $schema->columns();
<ide> $primary = $this->getPrimaryKey($model);
<ide> $exclude = array_merge($primary, ['created', 'modified', 'updated']);
<add>
<add> $associations = $model->associations();
<add> fo... | 2 |
Java | Java | fix typos in servicelocatorfactorybean | cf687fcc72a84ec090b170f39d5ec016c5017fdb | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java
<ide> * int or a custom enumeration type, for example, stringified via
<ide> * {@code toString}. The resulting String can be used as bean name as-is,
<ide> * provided that corresponding beans are defined in ... | 1 |
Text | Text | use hyphenated version of assert_url [ci skip] | 82a2a78be816c16deb191abd72306a3c0aa9859d | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> config.assets.js_compressor = :uglifier
<ide>
<ide> ### sass-rails
<ide>
<del>* `asset_url` with two arguments is deprecated. For example: `asset-url("rails.png", image)` becomes `asset-url("rails.png")`
<add>* `asset-url` with two arguments is deprecated. For... | 1 |
Ruby | Ruby | use brewed curl if called for by download url | ed3042c37a66b5dddcdd426221dbb38f88272f41 | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def preprocess_url(url)
<ide> url
<ide> end
<ide>
<add> # Fetch with brewed curl if using the download or homepage URL
<add> # and the download URL specifies `using: :homebrew_curl`.
<add> sig { params(formula_or_cask: T.any(Formula, Cask::Cas... | 5 |
Text | Text | add gnome 3 to popular distribution (line41) | 8bafea5e7e936b3b008c6d255870482b19fb6450 | <ide><path>guide/english/linux/index.md
<ide> Other popular distributions of Linux include:
<ide> * CentOS
<ide> * RHEL
<ide> * Arch Linux
<add>* Gnome 3
<ide> * Elementary OS
<ide> * Tails
<ide> | 1 |
PHP | PHP | add 'retrieved' to the list of observable events | 2af7339b956d22db98ec0b018942fc626bd1c8c1 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
<ide> public function getObservableEvents()
<ide> [
<ide> 'creating', 'created', 'updating', 'updated',
<ide> 'deleting', 'deleted', 'saving', 'saved',
<del> 'restoring', 'restored',
<add> ... | 1 |
Go | Go | update libcontainer context changes | c9fdb08bdafb90b76cfa804b079d2e446a3503e4 | <ide><path>daemon/execdriver/native/configuration/parse.go
<ide> func systemdSlice(container *libcontainer.Config, context interface{}, value str
<ide> }
<ide>
<ide> func apparmorProfile(container *libcontainer.Config, context interface{}, value string) error {
<del> container.Context["apparmor_profile"] = value
<add>... | 4 |
Go | Go | remove unused types in registry package | 9e76e184e4c4b7df90c594b5323b2e423688e490 | <ide><path>registry/types.go
<ide> type RegistryInfo struct {
<ide> Standalone bool `json:"standalone"`
<ide> }
<ide>
<del>type FSLayer struct {
<del> BlobSum string `json:"blobSum"`
<del>}
<del>
<del>type ManifestHistory struct {
<del> V1Compatibility string `json:"v1Compatibility"`
<del>}
<del>
<del>type Manifest... | 1 |
Ruby | Ruby | add externalpatch to dependency_collector | 478f18a8f57705a0c16b27b257f022f91c0b630b | <ide><path>Library/Homebrew/software_spec.rb
<ide> def requirements
<ide> end
<ide>
<ide> def patch(strip = :p1, src = nil, &block)
<del> patches << Patch.create(strip, src, &block)
<add> p = Patch.create(strip, src, &block)
<add> dependency_collector.add(p.resource) if p.is_a? ExternalPatch
<add> patc... | 1 |
Go | Go | add 2 seocnd delay to allow gossip converge | 4d233943331865cab0cdd1b0bb986a4492bf74b1 | <ide><path>daemon/cluster/executor/container/controller.go
<ide> import (
<ide> "golang.org/x/time/rate"
<ide> )
<ide>
<add>const defaultGossipConvergeDelay = 2 * time.Second
<add>
<ide> // controller implements agent.Controller against docker's API.
<ide> //
<ide> // Most operations against docker's API are done thr... | 1 |
Javascript | Javascript | attempt #3 to fix format | 992d17be6f5db725869c15122f53bc2107817a13 | <ide><path>test/lang/ms-my.js
<ide> exports["lang:ms-my"] = {
<ide>
<ide> test.done();
<ide> },
<del>petang
<add>
<ide> "weeks year starting friday" : function(test) {
<ide> test.expect(6);
<ide> | 1 |
PHP | PHP | remove transliteration of 'ия' in tests | cddab3c603581186bf2512751fec69fd7518424e | <ide><path>tests/Support/SupportStrTest.php
<ide> public function testStringAscii()
<ide>
<ide> public function testStringAsciiWithSpecificLocale()
<ide> {
<del> $this->assertSame('h H sht Sht a A ia yo', Str::ascii('х Х щ Щ ъ Ъ ия йо', 'bg'));
<add> $this->assertSame('h H sht Sht a A ia yo', Str... | 1 |
Text | Text | replace h tags | 062b1cd424c1339f526827e5ad65417b40515fcb | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/understanding-case-sensitivity-in-variables.md
<ide> In JavaScript all variables and function names are case sensitive. This means th
<ide>
<ide> `MYVAR` is not the same as `MyVar` nor `myvar`. It is possible to have... | 7 |
Javascript | Javascript | drop autorun assertion | cff0b102833de4a5953ba303b3955b0164a153b7 | <ide><path>packages/@ember/runloop/index.js
<del>import { assert, deprecate, isTesting } from '@ember/debug';
<add>import { assert, deprecate } from '@ember/debug';
<ide> import { onErrorTarget } from 'ember-error-handling';
<ide> import { beginPropertyChanges, endPropertyChanges } from 'ember-metal';
<ide> import Back... | 2 |
PHP | PHP | add test for async request fire events | f8b9392b9f2651db566a67fa57fc3e285463bbf6 | <ide><path>tests/Http/HttpClientTest.php
<ide> public function testTheRequestSendingAndResponseReceivedEventsAreFiredWhenAReque
<ide> m::close();
<ide> }
<ide>
<add> public function testTheRequestSendingAndResponseReceivedEventsAreFiredWhenARequestIsSentAsync()
<add> {
<add> $events = m::mock(... | 1 |
Mixed | Ruby | add support for generated columns in postgresql | 2cf41d7a5eb2f3d09b14673d91a91c5de04d2c9e | <ide><path>activerecord/CHANGELOG.md
<add>* Add support for generated columns in PostgreSQL adapter
<add>
<add> Generated columns are supported since version 12.0 of PostgreSQL. This adds
<add> support of those to the PostgreSQL adapter.
<add>
<add> ```ruby
<add> create_table :users do |t|
<add> t.st... | 9 |
Text | Text | underscore typo [ci skip] | 780be3995517435695b73ac7201a3bd9525fff1e | <ide><path>guides/source/i18n.md
<ide> Thus the following calls are equivalent:
<ide>
<ide> ```ruby
<ide> I18n.t 'activerecord.errors.messages.record_invalid'
<del>I18n.t 'errors.messages.record_invalid', scope: :active_record
<add>I18n.t 'errors.messages.record_invalid', scope: :activerecord
<ide> I18n.t :record_inva... | 1 |
Ruby | Ruby | add permissions check | e66cb917023f235903803f3df53df9bc86c2f321 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> require "cmd/tap"
<add>require "cmd/doctor"
<ide> require "formula_versions"
<ide> require "migrator"
<ide> require "formulary"
<ide> def update
<ide> EOS
<ide> end
<ide>
<add> # check permissions
<add> checks = Checks.new
<add> %w[
<add> check_ac... | 1 |
Ruby | Ruby | update xcode message for 10.8 | ffe21a9cd143353b3b42f278a48539480eda5a00 | <ide><path>Library/Homebrew/blacklist.rb
<ide> def blacklisted? name
<ide> when /(lib)?lzma/
<ide> "lzma is now part of the xz formula."
<ide> when 'xcode' then <<-EOS.undent
<del> Xcode can be installed via the App Store (on Lion), or from:
<add> Xcode can be installed via the App Store (on Lion or newer... | 1 |
Python | Python | update senter test and auto-format | 581bda9f985eba04e01c69c2c2f0a978ae6e6684 | <ide><path>spacy/tests/pipeline/test_senter.py
<ide> def test_label_types():
<ide> with pytest.raises(NotImplementedError):
<ide> nlp.get_pipe("senter").add_label("A")
<ide>
<add>
<ide> SENT_STARTS = [0] * 14
<ide> SENT_STARTS[0] = 1
<ide> SENT_STARTS[5] = 1
<ide> SENT_STARTS[9] = 1
<ide>
<ide> TRAIN_DATA... | 1 |
Text | Text | solve issues in crowdin comments | 59abda3ff20273260481eff8b158988cd551993e | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings.md
<ide> You should use two double quotes (`"`) and four escaped double quotes (`\"`).
<ide> assert(code.match(/\\"/g).length === 4 && code.match(/[^\\]"/g).length === 2);
<ide> ```
... | 14 |
Javascript | Javascript | add some unit tests for d3.geo.circle | 8710e5bbd174d9c6ae82642796aec1f5f4c36086 | <ide><path>test/geo/circle-test.js
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("d3.geo.circle");
<add>
<add>suite.addBatch({
<add> "circle": {
<add> "clip": {
<add> topic: function() {
<add> return d3.geo.circle().origin([-71.03, -42.37]).cl... | 1 |
Javascript | Javascript | fix tool path in test-doctool-versions.js | 0ddfd0fc129b0122437055e0aa87bdfa81744e80 | <ide><path>test/doctool/test-doctool-versions.js
<ide> const tmpdir = require('../common/tmpdir');
<ide> const util = require('util');
<ide>
<ide> const debuglog = util.debuglog('test');
<del>const versionsTool = path.join('../../tools/doc/versions.js');
<add>const versionsTool = path.resolve(__dirname, '../../tools/d... | 1 |
Javascript | Javascript | remove dead code | 9fc2a3400cddbb00448c5e57c10ca349f2b3e4c8 | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> }
<ide> }
<ide>
<del> function unmountFiberRecursively(fiber, traverseSiblings = false) {
<del> if (__DEBUG__) {
<del> debug('unmountFiberRecursively()', fiber, traverseSiblings);
<del> }
<del> if (!shouldFilterFiber(fiber)) {
... | 1 |
Javascript | Javascript | copy buffergeo to self or instancedgeo | c49dcddcdbde8c6fe5ead6ae19dd70c7bb6ce6b1 | <ide><path>src/core/BufferGeometry.js
<ide> THREE.BufferGeometry.prototype = {
<ide> return geometry;
<ide>
<ide> },
<add>
<add> copy: function ( geometry ) {
<add>
<add> for ( var attr in geometry.attributes ) {
<add>
<add> var sourceAttr = geometry.attributes[attr];
<add> this.addAttribute( attr, sourceAt... | 1 |
Java | Java | fix warnings, polish javadoc for @validated et al | 34798a47ab71daf1d62eabf03ae5f708743d42c9 | <ide><path>org.springframework.context/src/main/java/org/springframework/validation/SmartValidator.java
<ide> public interface SmartValidator extends Validator {
<ide>
<ide> /**
<del> * Validate the supplied <code>target</code> object, which must be
<del> * of a {@link Class} for which the {@link #supports(Class)} ... | 3 |
Javascript | Javascript | call functions as jquery does | a784fab605d825f1158c6292b3c42f8c4a502fdf | <ide><path>src/ng/http.js
<ide> function $HttpParamSerializerJQLikeProvider() {
<ide> (topLevel ? '' : ']'));
<ide> });
<ide> } else {
<add> if (isFunction(toSerialize)) {
<add> toSerialize = toSerialize();
<add> }
<ide> parts.push(encodeUriQuery(... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.