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 | remove unused gruntutils import from docs config | 687981913c8500fe5dc718303fd6be7ffe4035b0 | <ide><path>docs/config/services/gitData.js
<ide> "use strict";
<ide>
<del>var gruntUtils = require('../../../lib/grunt/utils');
<ide> var versionInfo = require('../../../lib/versions/version-info');
<ide>
<ide> /** | 1 |
Go | Go | remove api test for bind mount / | af025f2a95090974eaaf3d8792d5f467d0a637be | <ide><path>integration/api_test.go
<ide> func TestPostContainersStart(t *testing.T) {
<ide> containerKill(eng, containerID, t)
<ide> }
<ide>
<del>// Expected behaviour: using / as a bind mount source should throw an error
<del>func TestRunErrorBindMountRootSource(t *testing.T) {
<del> eng := NewTestEngine(t)
<del> de... | 1 |
Javascript | Javascript | fix progresstimestamps update | 80d26ed9b12a21cecb139550d091d763c8ff1c10 | <ide><path>server/boot/challenge.js
<ide> function buildUserUpdate(
<ide> completedDate: oldChallenge.completedDate,
<ide> lastUpdated: completedChallenge.completedDate
<ide> };
<del>
<add> } else {
<ide> updateData.$push = {
<del> timestamp: Date.now(),
<del> completedChallenge: challeng... | 1 |
Text | Text | fix nock response to return a body | c6c4359ef081f1f16df92cf4ba54743787996fae | <ide><path>docs/recipes/WritingTests.md
<ide> describe('async actions', () => {
<ide> it('creates FETCH_TODOS_SUCCESS when fetching todos has been done', (done) => {
<ide> nock('http://example.com/')
<ide> .get('/todos')
<del> .reply(200, { todos: ['do something'] })
<add> .reply(200, { body: { to... | 1 |
PHP | PHP | add macroabletrait for filesystem | b493e47579abbc8e3d64aa03d2f5b153e960f980 | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide>
<ide> use FilesystemIterator;
<ide> use Symfony\Component\Finder\Finder;
<add>use Illuminate\Support\Traits\MacroableTrait;
<ide> use Illuminate\Contracts\Filesystem\FileNotFoundException;
<ide>
<ide> class Filesystem {
<ide>
<add> use MacroableTrait;
<add>
<... | 2 |
Javascript | Javascript | playerresize event on player dimension api calls | e0ed0b5cd762f83dc54a7b56e8774718485e924d | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> * @param {number} [value]
<ide> * The value to set the `Player`'s width to.
<ide> *
<add> * @param {boolean} [skipListeners]
<add> * Skip the playerresize event trigger
<add> *
<ide> * @return {number}
<ide> * ... | 2 |
Javascript | Javascript | allow specific description for cli options | 5c76d8d39df20abd039293429a1e33d175261df0 | <ide><path>lib/cli.js
<ide> const getArguments = (schema = webpackSchema) => {
<ide> const getDescription = path => {
<ide> for (const { schema } of path) {
<ide> if (schema.cli && schema.cli.helper) continue;
<add> if (schema.cliDescription) return schema.cliDescription;
<ide> if (schema.description) return... | 1 |
PHP | PHP | fix strict typing errors | c549c091a98ed7c07eadeb9c0797a9e67e258e98 | <ide><path>src/Mailer/Transport/MailTransport.php
<ide> public function send(Message $message): array
<ide>
<ide> $message = implode($eol, (array)$message->getBody());
<ide>
<del> $params = $this->_config['additionalParameters'] ?? null;
<add> $params = $this->_config['additionalParameters'] ?? ... | 1 |
Ruby | Ruby | use a whitelist to delegate methods to array | aa85bdba68eb981588cecfef9dea0c0fa3e1c673 | <ide><path>activerecord/lib/active_record/relation/delegation.rb
<ide> def inherited(child_class)
<ide> # may vary depending on the klass of a relation, so we create a subclass of Relation
<ide> # for each different klass, and the delegations are compiled into that subclass only.
<ide>
<del> delegate :to_xm... | 2 |
Text | Text | add example usage | 5882c442e52921d6e8755efccd7e11a2ae405bbe | <ide><path>examples/README.md
<ide> similar API between the different models.
<ide> | [Language Model fine-tuning](#language-model-fine-tuning) | Fine-tuning the library models for language modeling on a text dataset. Causal language modeling for GPT/GPT-2, masked language modeling for BERT/RoBERTa. |
<ide> | [Language... | 1 |
Python | Python | do backward compatibility correctly | 0f7a8b3dfbd9c99162074aeebc80981cfd3decbb | <ide><path>numpy/conftest.py
<ide> import warnings
<ide> import pytest
<ide> import numpy
<add>import importlib
<ide>
<ide> from numpy.core.multiarray_tests import get_fpu_mode
<ide>
<ide> def pytest_collection_modifyitems(config, items):
<ide> @pytest.fixture(autouse=True)
<ide> def add_np(doctest_namespace):
<ide> ... | 4 |
Ruby | Ruby | ensure environment variables are strings | 3ce5737425488d0199a0146af7d85ae448221a13 | <ide><path>Library/Homebrew/service.rb
<ide> def run_type(type = nil)
<ide> end
<ide> end
<ide>
<del> sig { params(variables: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) }
<add> sig { params(variables: T::Hash[String, String]).returns(T.nilable(T::Hash[String, String... | 2 |
Javascript | Javascript | remove settimeout for body existance | 8000c6cf20f682ef11bc52656efdaeb965c0dffa | <ide><path>src/core.js
<ide> jQuery.extend({
<ide> return;
<ide> }
<ide>
<del> // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
<del> if ( !document.body ) {
<del> return setTimeout( jQuery.ready );
<del> }
<del>
<ide> // Remember that the DOM is ready
<ide> jQuery... | 1 |
PHP | PHP | remove unused properties and methods | bbe801cfe43f8b2ad6f97342f14b1fe79c80ae17 | <ide><path>src/View/Helper/FormHelper.php
<ide> class FormHelper extends Helper {
<ide> */
<ide> public $requestType = null;
<ide>
<del>/**
<del> * The default model being used for the current form.
<del> *
<del> * @var string
<del> */
<del> public $defaultModel = null;
<del>
<ide> /**
<ide> * Persistent default op... | 1 |
Ruby | Ruby | remove unnecessary mocha stub | 2af162c4626f39e4b337d5f6f606c56bee0e544e | <ide><path>activerecord/test/cases/tasks/database_tasks_test.rb
<ide> def test_ignores_configurations_without_databases
<ide>
<ide> def test_ignores_remote_databases
<ide> @configurations["development"].merge!("host" => "my.server.tld")
<del> $stderr.stubs(:puts)
<ide>
<ide> assert_not_called(Act... | 1 |
Ruby | Ruby | avoid double type cast when serializing attributes | 8e383fdad662339700c2715a9d144b4cdebe75ec | <ide><path>activemodel/lib/active_model/attribute.rb
<ide> def type_cast(value)
<ide> type.cast(value)
<ide> end
<ide>
<add> def value_for_database
<add> Type::SerializeCastValue.serialize(type, value)
<add> end
<add>
<ide> def came_from_user?
<ide> !type.valu... | 30 |
Javascript | Javascript | add hasfipscrypto to test/common.js | 8ac852fec0c6a946f02fd64d99689880e51d0bdb | <ide><path>test/common.js
<ide> Object.defineProperty(exports, 'opensslCli', {get: function() {
<ide> return opensslCli;
<ide> }, enumerable: true });
<ide>
<del>Object.defineProperty(exports, 'hasCrypto', {get: function() {
<del> return process.versions.openssl ? true : false;
<del>}});
<add>Object.defineProperty(... | 1 |
Javascript | Javascript | remove attribute match from quickis | 746074f0f74b0c0916fb2db2b6370c324822f31a | <ide><path>src/event.js
<ide> var rnamespaces = /\.(.*)$/,
<ide> rhoverHack = /\bhover(\.\S+)?/,
<ide> rkeyEvent = /^key/,
<ide> rmouseEvent = /^(?:mouse|contextmenu)|click/,
<del> rquickIs = /^([\w\-]+)?(?:#([\w\-]+))?(?:\.([\w\-]+))?(?:\[([\w+\-]+)=["']?([\w\-]*)["']?\])?$/,
<add> rquickIs = /^(\w*)(?:#([\w\-]+))?... | 2 |
Go | Go | fix offline image transfert | be282b57d561bdb7e686ed8d4f7b6327e7a65b70 | <ide><path>server.go
<ide> func (srv *Server) exportImage(image *Image, tempdir string) error {
<ide> // temporary directory
<ide> tmpImageDir := path.Join(tempdir, i.ID)
<ide> if err := os.Mkdir(tmpImageDir, os.ModeDir); err != nil {
<add> if os.IsExist(err) {
<add> return nil
<add> }
<ide> return err
... | 1 |
Javascript | Javascript | support instanceof operator | 0d8e6452ecd4923220134ed8a3c78cafb6ed82c1 | <ide><path>src/moment.js
<ide> moment.defineLocale = defineLocale;
<ide> moment.weekdaysShort = weekdaysShort;
<ide> moment.normalizeUnits = normalizeUnits;
<ide> moment.relativeTimeThreshold = relativeTimeThreshold;
<add>moment.prototype = fn;
<ide>
<ide> export default moment;
<id... | 2 |
PHP | PHP | add the find method to the eloquent query class | a68d2242d3a60e2d3fdd0a40aba0fbeaed2aa40b | <ide><path>laravel/database/eloquent/query.php
<ide> public function __construct($model)
<ide> $this->table = $this->table();
<ide> }
<ide>
<add> /**
<add> * Find a model by its primary key.
<add> *
<add> * @param mixed $id
<add> * @param array $columns
<add> * @return mixed
<add> */
<add> public functio... | 1 |
Javascript | Javascript | upgrade compilation to es6 | 86169bd7ebcb39c9664e7d34123c243146cf206e | <ide><path>lib/Compilation.js
<ide> /*
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<del>*/
<del>var async = require("async");
<del>
<del>var Tapable = require("tapable");
<del>var EntryModuleNotFoundError = require("./EntryModuleNotFoundError");
<del>var Mod... | 1 |
Javascript | Javascript | prevent double attr interpolation w/ templateurl | fc115bfd0d18017f4bcef1e39fb22d97a98f8ab1 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide) {
<ide> origAsyncDirective = directives.shift(),
<ide> // The fact that we have to copy and patch the directive seems wrong!
<ide> derivedSyncDirective = extend({}, origAsyncDirective, {
<del> controller: nul... | 2 |
PHP | PHP | remove type hint | 4d8f0a1a72fe9ea915570df2ef58cbafd43ec96a | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function is($model)
<ide> /**
<ide> * Determine if two models are not the same.
<ide> *
<del> * @param \Illuminate\Database\Eloquent\Model $model
<add> * @param \Illuminate\Database\Eloquent\Model|null $model
<ide> * @retu... | 1 |
Text | Text | remove uannecessary require | f054855bbf15201487f4a7fdac8812c958330af1 | <ide><path>doc/api/n-api.md
<ide> napi_status napi_create_async_work(napi_env env,
<ide> - `[in] env`: The environment that the API is invoked under.
<ide> - `[in] async_resource`: An optional object associated with the async work
<ide> that will be passed to possible async_hooks [`init` hooks][].
<del>- `[in] async_... | 1 |
PHP | PHP | add ascii() and utf8() validators | ca939252454f4af7d680c3186f3de0d1abbf0fce | <ide><path>src/Validation/Validation.php
<ide> public static function longitude($value, array $options = [])
<ide> return self::geoCoordinate($value, $options);
<ide> }
<ide>
<add> /**
<add> * Check that the input value is within the ascii byte range.
<add> *
<add> * This method will reject ... | 2 |
Python | Python | fix head_mask for model templates | 897a24c869e2ac2ed44f17956f1009fd8f055f5e | <ide><path>templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py
<ide> class TF{{cookiecutter.camelcase_modelname}}ModelTest(TFModelTesterMixin, unitte
<ide> else ()
<ide> )
<ide>
<add> test_head_masking = False
<add>
<ide>... | 1 |
Text | Text | use rails secret in rails guides | c8ac079413acca3f62d4e15bb1b5a1c5bf7d2039 | <ide><path>guides/source/security.md
<ide> Thus the session becomes a more secure place to store data. The encryption is
<ide> done using a server-side secret key `secrets.secret_key_base` stored in
<ide> `config/secrets.yml`.
<ide>
<del>That means the security of this storage depends on this secret (and on the digest... | 2 |
Python | Python | add a way to import airflow without side-effects | 5e5cf6316e7e33f639baa3ee65295159e930c791 | <ide><path>airflow/__init__.py
<ide>
<ide> # flake8: noqa: F401
<ide>
<add>import os
<ide> import sys
<ide> from typing import Callable, Optional
<ide>
<ide> # lib.)
<ide> __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
<ide>
<del>settings.initialize()
<add># Perform side-effects un... | 1 |
Javascript | Javascript | extract logic to get the socket name to a function | a7d1e682e6d6a11c53733cd31ca3b24d5a86d1ba | <ide><path>src/main-process/atom-application.js
<ide> const getDefaultPath = () => {
<ide> }
<ide> }
<ide>
<add>// Returns a unique id for each Atom instance. This id allows many Atom windows
<add>// that share the same configuration to reuse the same main process.
<add>const getAtomInstanceId = (atomVersion) => {
<... | 1 |
Javascript | Javascript | remove useless default caught | 824fb49a706dc8e12911d5d142aa8fc779fe59d2 | <ide><path>lib/internal/bootstrap_node.js
<ide> var caught;
<ide>
<ide> if (process.domain && process.domain._errorHandler)
<del> caught = process.domain._errorHandler(er) || caught;
<add> caught = process.domain._errorHandler(er);
<ide>
<ide> if (!caught)
<ide> caught = proces... | 1 |
Javascript | Javascript | fix sizebot - point correctly to circleci artifact | d84c539b31bc703fe6271965ce85344f50c8c207 | <ide><path>dangerfile.js
<ide> function git(args) {
<ide>
<ide> for (let i = 0; i < baseArtifactsInfo.length; i++) {
<ide> const info = baseArtifactsInfo[i];
<del> if (info.path === 'home/circleci/project/build/bundle-sizes.json') {
<add> if (info.path.endsWith('bundle-sizes.json')) {
<ide> ... | 1 |
Text | Text | remove non-existent chart value from readme | 561060aaa82ddb63fe2a38473bfd920a5aeff786 | <ide><path>chart/README.md
<ide> The following tables lists the configurable parameters of the Airflow chart and
<ide> | `webserver.resources.limits.memory` | Memory Limit of webserver | `~` ... | 1 |
Go | Go | take docker_test_host into account | e1ef33449f484678d236cb49e80daf5ba1e1899c | <ide><path>integration-cli/docker_utils.go
<ide> import (
<ide> "net/http"
<ide> "net/http/httptest"
<ide> "net/http/httputil"
<add> "net/url"
<ide> "os"
<ide> "os/exec"
<ide> "path"
<ide> func (d *Daemon) Cmd(name string, arg ...string) (string, error) {
<ide> return string(b), err
<ide> }
<ide>
<add>func daem... | 1 |
Go | Go | add integ-test for fixed--cidr == bridge network | 5b53839326621e8796fee88e376fc4ca42ed980f | <ide><path>integration-cli/docker_cli_daemon_test.go
<ide> func (s *DockerDaemonSuite) TestDaemonBridgeFixedCidr(c *check.C) {
<ide> }
<ide> }
<ide>
<add>func (s *DockerDaemonSuite) TestDaemonBridgeFixedCidrFixedCIDREqualBridgeNetwork(c *check.C) {
<add> d := s.d
<add>
<add> bridgeName := "external-bridge"
<add> brid... | 1 |
Ruby | Ruby | add initial tests for weakhash | 4da31d21bc0fe10fc329eb6d89ba52b27f8ed25e | <ide><path>activesupport/test/weak_hash_test.rb
<add>require 'abstract_unit'
<add>require 'active_support/weak_hash'
<add>
<add>class WeakHashTest < ActiveSupport::TestCase
<add>
<add> def setup
<add> @weak_hash = ActiveSupport::WeakHash.new
<add> @str = "A";
<add> @obj = Object.new
<add> end
<add>
<add> te... | 1 |
Ruby | Ruby | add docs for the type registry | 82d12eb9045cba57172ec7cc0786d0f72a8b711f | <ide><path>activerecord/lib/active_record/attributes.rb
<ide> module ClassMethods
<ide> # end
<ide> # end
<ide> #
<add> # # config/initializers/types.rb
<add> # ActiveRecord::Type.register(:money, MoneyType)
<add> #
<add> # # /app/models/store_listing.rb
<ide> # ... | 2 |
Javascript | Javascript | remove custom umd | 20141202c1f81dec33f498c97ef9664e4a7c1cd2 | <ide><path>src/js/video.js
<ide> * @file video.js
<ide> * @module videojs
<ide> */
<del>
<del>/* global define */
<del>
<ide> import window from 'global/window';
<ide> import document from 'global/document';
<ide> import * as setup from './setup';
<ide> videojs.insertContent = Dom.insertContent;
<ide> */
<ide> vide... | 1 |
Javascript | Javascript | set proper modulename values | 8b8ae79a1f78b3be1b39ae500cb9f85f65cfc3f7 | <ide><path>packages/ember-glimmer/tests/integration/application/rendering-test.js
<ide> moduleFor('Application test: rendering', class extends ApplicationTest {
<ide> template: 'Hi {{person.name}} from component'
<ide> });
<ide>
<del> let expectedBacktrackingMessage = /modified "model\.name" twice on \[ob... | 8 |
Python | Python | fix bug which lowercases special tokens | 2670b0d682746e1fe94ab9c7b4d2fd7f4af03193 | <ide><path>transformers/tests/tokenization_tests_commons.py
<ide> def test_pickle_tokenizer(self):
<ide> def test_added_tokens_do_lower_case(self):
<ide> tokenizer = self.get_tokenizer(do_lower_case=True)
<ide>
<del> text = "aaaaa bbbbbb low cccccccccdddddddd l"
<del> text2 = ... | 2 |
Text | Text | remove references to deprecated test tasks | 2478b5e619fb8714755480429eba85eef93cbed7 | <ide><path>guides/source/testing.md
<ide> You don't need to set up and run your tests by hand on a test-by-test basis. Rai
<ide> | `rake test:models` | Runs all the model tests from `test/models`|
<ide> | `rake test:units` | Runs all the unit tests from `test/models`, `test/helpers`, and `test/unit`|
<ide>
... | 1 |
Ruby | Ruby | add documentation for url connection strings | 1f427b534199399545f90fd0895d62c005247501 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
<ide> def connection
<ide> # "database" => "path/to/dbfile"
<ide> # )
<ide> #
<add> # Or a URL:
<add> #
<add> # ActiverRecord::Base.establish_connection(
<add> # "postgres://myuser:myp... | 1 |
Javascript | Javascript | emit close event if request aborted | 8fa5fcc0ba74c23490c34da1a6c6e9a454280740 | <ide><path>lib/internal/http2/compat.js
<ide> function onStreamClosedResponse() {
<ide> res.emit('finish');
<ide> }
<ide>
<del>function onAborted(hadError, code) {
<add>function onStreamAbortedRequest(hadError, code) {
<ide> if ((this.writable) ||
<ide> (this._readableState && !this._readableState.ended)) {
... | 2 |
Javascript | Javascript | use flat array in `meta/_foreachin` | 271d8cd7b6987f177318081925a5e3c74abe9762 | <ide><path>packages/ember-metal/lib/meta.js
<ide> export class Meta {
<ide> if (seen[innerKey] === undefined) {
<ide> seen[innerKey] = true;
<ide> calls = calls || [];
<del> calls.push([innerKey, innerMap[innerKey]]);
<add> calls.push(innerKey, innerMap[... | 1 |
Java | Java | add @since tags to firstelement methods | c2141e2e9323f09ef42f2af92458c2d7bb9b424b | <ide><path>spring-core/src/main/java/org/springframework/util/CollectionUtils.java
<ide> else if (candidate != val.getClass()) {
<ide> }
<ide>
<ide> /**
<del> * Retrieve the last element of the given Set, using {@link SortedSet#last()}
<del> * or otherwise iterating over all elements (assuming a linked set).
<add>... | 1 |
Javascript | Javascript | decrease duration of test-cli-syntax | a74ddff1d9f6b99f8eb57ae77a7d64e433c60abb | <ide><path>test/parallel/test-cli-syntax.js
<ide>
<ide> const common = require('../common');
<ide> const assert = require('assert');
<del>const spawnSync = require('child_process').spawnSync;
<add>const {exec, spawnSync} = require('child_process');
<ide> const path = require('path');
<ide>
<ide> const node = process.... | 1 |
Javascript | Javascript | remove unnecessary lookup in example with emotion | 029bac4fd9e23f60dedac59ed57c5a5cc5d5b299 | <ide><path>examples/with-emotion/pages/_document.js
<ide> export default class MyDocument extends Document {
<ide> super(props)
<ide> const { __NEXT_DATA__, ids } = props
<ide> if (ids) {
<del> __NEXT_DATA__.ids = this.props.ids
<add> __NEXT_DATA__.ids = ids
<ide> }
<ide> }
<ide> | 1 |
Java | Java | allow custom requestmappinghandlermapping | 500179e5c0c7892e21a6255314554f5919e8a4a5 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the ... | 1 |
Python | Python | fix usage of disable_pipes | f81cc0bd1c59776332254a8bb3e43f3b9d0781d7 | <ide><path>examples/training/train_ner.py
<ide> def main(model=None, output_dir=None, n_iter=100):
<ide>
<ide> # get names of other pipes to disable them during training
<ide> other_pipes = [pipe for pipe in nlp.pipe_names if pipe != 'ner']
<del> with nlp.disable_pipes(*other_pipes) as disabled: # only tra... | 3 |
Javascript | Javascript | assign correct cache to child compilation | 0975d13da711904429c6dd581422c755dd04869c | <ide><path>lib/CachePlugin.js
<ide> class CachePlugin {
<ide> }
<ide>
<ide> apply(compiler) {
<add> const cacheMap = new Map();
<add> cacheMap.set(compiler, this.cache);
<ide> if(Array.isArray(compiler.compilers)) {
<ide> compiler.compilers.forEach((c, idx) => {
<ide> c.apply(new CachePlugin(this.cache[id... | 9 |
Go | Go | remove job from load | 70bb0d8ed7847d7e7850a1a864ff258767f0ad7a | <ide><path>api/server/server.go
<ide> func (s *Server) getImagesGet(eng *engine.Engine, version version.Version, w htt
<ide> }
<ide>
<ide> func (s *Server) postImagesLoad(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<del> job := eng.Job("load")
<d... | 3 |
PHP | PHP | fix name reference for expected variable | 267a2287a9cebc71200d07e9c8d15a947ff35f94 | <ide><path>tests/TestCase/Database/Driver/SqliteTest.php
<ide> public function testConnectionConfigCustom() {
<ide> $connection->expects($this->exactly(2))->method('exec');
<ide>
<ide> $driver->expects($this->once())->method('_connect')
<del> ->with($dsn, expected);
<add> ->with($dsn, $expected);
<ide> $driv... | 1 |
Javascript | Javascript | use const as appropriate | 71c0d0370a98c50c4b49659bd6ece3359437902c | <ide><path>lib/timers.js
<ide> function TimersList(msecs, unrefed) {
<ide> // adds listOnTimeout to the C++ object prototype, as
<ide> // V8 would not inline it otherwise.
<ide> TimerWrap.prototype[kOnTimeout] = function listOnTimeout(now) {
<del> var list = this._list;
<del> var msecs = list.msecs;
<add> const list... | 1 |
Text | Text | add changelog entry for [ci skip] | 989cccdc3e6f9c6dcb740b2792fcc74b19eed67e | <ide><path>activerecord/CHANGELOG.md
<add>* Make possible to have an association called `records`.
<add>
<add> Fixes #11645.
<add>
<add> *prathamesh-sonpatki*
<add>
<ide> * `to_sql` on an association now matches the query that is actually executed, where it
<ide> could previously have incorrectly accrued ... | 1 |
Java | Java | support static fields in reflectiontestutils | 063ef240c185fe6ba2ed39ef2fc6767c7a8dd900 | <ide><path>spring-test/src/main/java/org/springframework/test/util/ReflectionTestUtils.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may ... | 3 |
Go | Go | add retry logic during aufs unmount | 0e539fec331cb9dbc4ef784b55516570b11affe2 | <ide><path>daemon/graphdriver/aufs/aufs.go
<ide> import (
<ide> "strings"
<ide> "sync"
<ide> "syscall"
<add> "time"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/vbatts/tar-split/tar/storage"
<ide> func (a *Driver) createDirsFor(id string) error {
<ide> return nil
<ide> }
<ide>
<add>// Helper funct... | 1 |
Text | Text | add solution using all code | 022a2fce8a7de0f830cb8d413c7b82577c5a97fb | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/add-different-margins-to-each-side-of-an-element.english.md
<ide> tests:
<ide> <section id='solution'>
<ide>
<ide> ```js
<del>// solution required
<add><style>
<add> .injected-text {
<add> margin-bottom: -25px;
<add> text-align: center;... | 1 |
Python | Python | fix local storage test failurs under python 3.2 | 028bd5279b89e0b4885ebe067b4a54210c77c8b3 | <ide><path>libcloud/storage/drivers/local.py
<ide>
<ide> from libcloud.utils.files import read_in_chunks
<ide> from libcloud.utils.py3 import relpath
<add>from libcloud.utils.py3 import u
<ide> from libcloud.common.base import Connection
<ide> from libcloud.storage.base import Object, Container, StorageDriver
<ide> fr... | 2 |
PHP | PHP | add validation for the http method | 83dbcd8b8d572237ddc93ff52628e0ee8c5d9c55 | <ide><path>src/Network/Request.php
<ide> public function getMethod()
<ide> public function withMethod($method)
<ide> {
<ide> $new = clone $this;
<add>
<add> if (!is_string($method) ||
<add> !preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method)
<add> ) {
<add> throw ... | 2 |
Text | Text | recommend opening issue on atom/atom | 9f1a3c6effcbfb07b05976e4fd6053a043d3c986 | <ide><path>CONTRIBUTING.md
<ide> The following is a set of guidelines for contributing to Atom and its packages,
<ide> which are hosted in the [Atom Organization](https://github.com/atom) on GitHub.
<ide> If you're unsure which package is causing your problem or if you're having an
<del>issue with Atom core, please use... | 1 |
Ruby | Ruby | extract notes from files in binary | 2495a0ba33832d20e3eadc163999dd40123e10c1 | <ide><path>railties/lib/rails/source_annotation_extractor.rb
<ide> def find_in(dir)
<ide> # Otherwise it returns an empty hash.
<ide> def extract_annotations_from(file, pattern)
<ide> lineno = 0
<del> result = File.readlines(file).inject([]) do |list, line|
<add> result = File.readlines(file, encoding: En... | 1 |
PHP | PHP | prevent zero only lines from being emptied | bae556e73fc18fbf081eba7862fb3767be1a5e2a | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> protected function _wrap($message, $wrapLength = CakeEmail::LINE_LENGTH_MUST) {
<ide> $cut = ($wrapLength == CakeEmail::LINE_LENGTH_MUST);
<ide>
<ide> foreach ($lines as $line) {
<del> if (empty($line)) {
<add> if (empty($line) && $line !== '0') {
<ide> ... | 2 |
Python | Python | fix setup.py to include api_generating files | 2da41b12e72450089c9873ce52428fc1e0eb360d | <ide><path>scipy/base/setup.py
<ide> def generate_umath_c(ext,build_dir):
<ide> join('src','arraymethods.c'),
<ide> join('src','scalartypes.inc.src'),
<ide> join('src','arraytypes.inc.src'),
<del> join('include','scipy','*object.h')
<add> join('include','scipy',... | 1 |
Text | Text | add css syntax | e637a3c703f4e7c7219fc5c2dec425e766e1e8ba | <ide><path>guide/english/css/text-align/index.md
<ide> title: Text Align
<ide>
<ide> This CSS property describes the horizontal alignment of inline content in its parent block element. `text-align` does not control the alignment of block elements, it affects only their inline content.
<ide>
<add>### CSS Syntax
<add>`... | 1 |
Text | Text | add test to prevent hardcoded pass | 895e6b8daf6338920221fa33ff4be59eef815e89 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/testing-objects-for-properties.md
<ide> tests:
<ide> testString: 'assert(checkObj({city: "Seattle"}, "city") === "Seattle");'
<ide> - text: '<code>checkObj({city: "Seattle"}, "district")</code> should return <co... | 1 |
Ruby | Ruby | restore flash sweep | 7ace23abacfecf6d34630bb5141faf80a8b88634 | <ide><path>actionpack/lib/action_dispatch/middleware/flash.rb
<ide> def initialize(app)
<ide> end
<ide>
<ide> def call(env)
<del> if (session = env['rack.session']) && session.key?('flash')
<add> if (session = env['rack.session']) && (flash = session['flash'])
<ide> flash.sweep
<ide> en... | 1 |
Javascript | Javascript | fix logbox.ignorealllogs used with no argument | f28c7505fa5b4a7ddf1e9311d38dfcd15e8953a2 | <ide><path>Libraries/LogBox/LogBox.js
<ide> if (__DEV__) {
<ide> },
<ide>
<ide> ignoreAllLogs: (value?: ?boolean): void => {
<del> LogBoxData.setDisabled(!!value);
<add> LogBoxData.setDisabled(value == null ? true : value);
<ide> },
<ide>
<ide> uninstall: (): void => {
<ide><path>Libraries/L... | 2 |
Javascript | Javascript | add test case | 5853ec5caed54a496bdd030c127134f1a089ce69 | <ide><path>test/configCases/externals/global/index.js
<add>afterEach(() => {
<add> delete global.EXTERNAL_TEST_GLOBAL;
<add>});
<add>
<add>it("should move externals in chunks into entry chunk", function() {
<add> global.EXTERNAL_TEST_GLOBAL = 42;
<add> // eslint-disable-next-line node/no-missing-require
<add> const res... | 2 |
Python | Python | fix use of randint in test_mem_overlap.py | 51726e59137aa0ea6cf216d95f23fe788a7164ea | <ide><path>numpy/core/tests/test_mem_overlap.py
<ide> def test_diophantine_fuzz():
<ide> numbers = []
<ide> while min(feasible_count, infeasible_count) < min_count:
<ide> # Ensure big and small integer problems
<del> A_max = 1 + rng.randint(0, 11)**6
<del> U_max = rng.r... | 1 |
Javascript | Javascript | simplify string concatenation | 32cb926420602cf4d94d8c9cc5f135d4436d019e | <ide><path>test/parallel/test-http-multi-line-headers.js
<ide> const server = net.createServer(function(conn) {
<ide> const response =
<ide> 'HTTP/1.1 200 OK\r\n' +
<ide> 'Connection: close\r\n' +
<del> 'Content-Length: ' + body.length + '\r\n' +
<add> `Content-Length: ${body.length}\r\n` +
<ide... | 1 |
Text | Text | update index.md git file | 7881a603ba502245377f11a5cbd9dc2dbdd21d44 | <ide><path>guide/english/git/git-branch/index.md
<ide> Git's branching functionality lets you create new branches of a project to test
<ide> - [Rename a Branch](#rename-a-branch)
<ide> - [Delete a Branch](#delete-a-branch)
<ide> - [Compare Branches](#compare-branches)
<add>- [Update a Branch from Remote](#update-branch... | 1 |
PHP | PHP | update bodyparsermiddleware to psr 15 standard | c2f919fc2359be2b0cb70dc7f2df6ba756a6fc97 | <ide><path>src/Http/Middleware/BodyParserMiddleware.php
<ide> namespace Cake\Http\Middleware;
<ide>
<ide> use Cake\Http\Exception\BadRequestException;
<del>use Cake\Http\Response;
<ide> use Cake\Utility\Exception\XmlException;
<ide> use Cake\Utility\Xml;
<ide> use Psr\Http\Message\ResponseInterface;
<ide> use Psr\Http... | 3 |
Ruby | Ruby | remove questionable test | 46a11a2b26b375ff1676b6e336cbd153c1041371 | <ide><path>Library/Homebrew/test/test_utils.rb
<ide> require 'testing_env'
<ide>
<ide> class UtilTests < Test::Unit::TestCase
<del>
<ide> def test_put_columns_empty
<ide> assert_nothing_raised do
<ide> # Issue #217 put columns with new results fails.
<ide> puts_columns []
<ide> end
<ide> end
<d... | 1 |
Java | Java | fix "coercion" spelling mistakes in javadoc | 8faf01f56db7697198842f9481e1f7d4814e365d | <ide><path>spring-context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 2 |
Javascript | Javascript | improve $rollbackviewvalue description & example | 25e8c5927ca94eb749f666f579a6f56de6fd8ca8 | <ide><path>src/ng/directive/ngModel.js
<ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
<ide> * which may be caused by a pending debounced event or because the input is waiting for a some
<ide> * future event.
<ide> *
<del> * If you have an input that uses `ng-model-opti... | 1 |
Text | Text | add instructions for testing website locally | 60b2398cc51bf0e7647248fc87d54c93b32993ab | <ide><path>CONTRIBUTING.md
<ide> The core team will be monitoring for pull requests. When we get one, we'll run s
<ide> 1. Fork the repo and create your branch from `master`.
<ide> 2. **Describe your test plan in your commit.** If you've added code that should be tested, add tests!
<ide> 3. If you've changed APIs, upda... | 1 |
PHP | PHP | change doc block | 8934a9189f62907adc9e896c59262a51c06efe1d | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide> trait HasAttributes
<ide> protected $changes = [];
<ide>
<ide> /**
<del> * The attributes that should be cast to native types.
<add> * The attributes that should be cast.
<ide> *
<ide> * @var array
<ide> */ | 1 |
Javascript | Javascript | add displayname to component spec functions | 3bf12bba0d650383c5b9a9140f2aa2d034e7a017 | <ide><path>src/core/ReactCompositeComponent.js
<ide> function mixSpecIntoComponent(ConvenienceConstructor, spec) {
<ide> }
<ide> } else {
<ide> proto[name] = property;
<add> if (__DEV__) {
<add> // Add verbose displayName to the function, which helps when looking
<add> ... | 1 |
PHP | PHP | fix more doc blocks | b221b021bc270725f2e183293aed8d4c5a101964 | <ide><path>src/Collection/CollectionTrait.php
<ide> public function each(callable $c) {
<ide> *
<ide> * @param callable $c the method that will receive each of the elements and
<ide> * returns true whether or not they should be in the resulting collection.
<del> * @return \Cake\Collection\Iterator\FilterIterator;
<a... | 16 |
Text | Text | add v3.27.0-beta.2 to changelog.md | 3a6a3ab2fcf666af5c4d5acf89042331c3c27328 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.27.0 (March 22, 2021)
<add>### v3.27.0-beta.2 (March 25, 2021)
<add>
<add>- [#19473](https://github.com/emberjs/ember.js/pull/19473) Update GlimmerVM to latest (fix compatibility for template import proposals)
<add>- [#19474](https://github.com/emberjs/... | 1 |
Text | Text | add one more method affected in changelog | 0c62e141a3fc9b2d00935bb99d2d5f465e1a4fb4 | <ide><path>actionview/CHANGELOG.md
<ide> * Stop exposing public methods in view's helpers.
<ide>
<del> For example, in methods like `options_from_collection_for_select`,
<del> it was possible to call private methods from the objects used.
<add> For example, in methods like `options_from_collection_for_select`
<... | 1 |
Javascript | Javascript | support numeric input to limitto | 1c8a7459c90efc77b1a0987f976e3bddab4565fe | <ide><path>src/ng/filter/limitTo.js
<ide> *
<ide> * @description
<ide> * Creates a new array or string containing only a specified number of elements. The elements
<del> * are taken from either the beginning or the end of the source array or string, as specified by
<del> * the value and sign (positive or negative) o... | 2 |
PHP | PHP | implement jsonserializable in paginators | 9bc717d955da4943c43cbb042a707e75ebb9265f | <ide><path>src/Illuminate/Pagination/LengthAwarePaginator.php
<ide>
<ide> use Countable;
<ide> use ArrayAccess;
<add>use JsonSerializable;
<ide> use IteratorAggregate;
<ide> use Illuminate\Support\Collection;
<ide> use Illuminate\Contracts\Support\Jsonable;
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use I... | 2 |
Javascript | Javascript | fix races in test-performance-eventlooputil | 135dd8876ee8a80c17d171cb2b13868359572eaf | <ide><path>test/parallel/test-performance-eventlooputil.js
<ide> if (nodeTiming.loopStart === -1) {
<ide> }
<ide>
<ide> setTimeout(mustCall(function r() {
<del> const t = Date.now();
<ide> const elu1 = eventLoopUtilization();
<ide>
<ide> // Force idle time to accumulate before allowing test to continue.
<ide> ... | 1 |
Javascript | Javascript | consolidate svg config to avoid some duplication | 79a62b09eac4de5b19aa9e9858a23be7aecec310 | <ide><path>src/renderers/dom/shared/SVGDOMPropertyConfig.js
<ide> var NS = {
<ide> xml: 'http://www.w3.org/XML/1998/namespace',
<ide> };
<ide>
<add>// We use attributes for everything SVG so let's avoid some duplication and run
<add>// code instead.
<add>
<add>var ATTRS = {
<add> accentHeight: 'accent-height',
<add... | 1 |
PHP | PHP | remove unused code | 58a6dec9120994d2dd8e5e4c6a7709763ffe60f6 | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> public function init(array $config = [])
<ide> }
<ide>
<ide> if ($this->_config['username'] !== null && $this->_config['password'] !== null) {
<del> $sasl = method_exists($this->_Memcached, 'setSaslAuthData');
<ide> if (!metho... | 1 |
Javascript | Javascript | add test for child_process.execfile() | 1d82adc8c7ff4a04a9b8ef3fdbbf28515967cdcb | <ide><path>test/parallel/test-child-process-execfile.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const execFile = require('child_process').execFile;
<add>const path = require('path');
<add>
<add>const fixture = path.join(common.fixturesDir, 'exit.js'... | 1 |
Javascript | Javascript | remove obsolete uniform type properties | f1db204e2d7ebdec7db6cc4b4e8ae7d9d6562c75 | <ide><path>examples/js/renderers/WebGLDeferredRenderer.js
<ide> THREE.ShaderDeferred = {
<ide>
<ide> uniforms: {
<ide>
<del> map: { type: "t", value: null },
<del> offsetRepeat: { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) },
<add> map: { value: null },
<add> offsetRepeat: { value: new THREE.Vector4... | 1 |
Ruby | Ruby | restore the frozen state on rollback. fixes | cb847b9f2e56eeff737323d9a42a2a0a6c23804d | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def restore_transaction_record_state(force = false) #:nodoc:
<ide> @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
<ide> if @_start_transaction_state[:level] < 1
<ide> restore_state = remove_instan... | 2 |
Javascript | Javascript | add childprocess.prototype.killed test case | c8646e0c4159aa53b2ae94d1b69850ce5fa62ca2 | <ide><path>test/simple/test-child-process-kill.js
<ide> cat.on('exit', function(code, signal) {
<ide> termSignal = signal;
<ide> });
<ide>
<add>assert.equal(cat.killed, false);
<ide> cat.kill();
<add>assert.equal(cat.killed, true);
<ide>
<ide> process.on('exit', function() {
<ide> assert.strictEqual(exitCode, nul... | 1 |
Ruby | Ruby | improve check for 'install_name_tool' | 9f79c05656a44f926898774c6029025002bcd621 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_for_stray_developer_directory
<ide> def check_for_bad_install_name_tool
<ide> return if MacOS.version < "10.9"
<ide>
<del> libs = Pathname.new("/usr/bin/install_name_tool").dynamically_linked_libraries
<add> install_name_tool = OS::M... | 1 |
Python | Python | change tests to support older response format | 294961e6fce2c34784f304ca587850d62569b64e | <ide><path>tests/test_helpers.py
<ide> def post_json():
<ide> c = app.test_client()
<ide> rv = c.post('/json', data=None, content_type='application/json')
<ide> assert rv.status_code == 400
<del> assert '<p>No JSON object could be decoded</p>' in rv.data
<add> assert 'No JSON objec... | 1 |
Text | Text | add myles borins to the ctc | 2367e6c901af244b8b75589a69d269772d19db3c | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Rod Vagg** <rod@vagg.org>
<ide> * [shigeki](https://github.com/shigeki) -
<ide> **Shigeki Ohtsu** <ohtsu@iij.ad.jp>
<add>* [TheAlphaNerd](https://github.com/TheAlphaNerd) -
<add>**Myles Borins** <myles.bo... | 1 |
Ruby | Ruby | improve url audits | 5f6515baad38896668ce9750f4026e2d39e898fb | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_conflicts
<ide>
<ide> def audit_urls
<ide> unless f.homepage =~ %r[^https?://]
<del> problem "The homepage should start with http or https."
<add> problem "The homepage should start with http or https (url is #{f.homepage})."
<add> end
<add>
<... | 1 |
Go | Go | fix error on docker wait | 82531f71681c9b5bc5a6c871f81ef67f9e92d708 | <ide><path>commands.go
<ide> func (cli *DockerCli) LoadConfigFile() (err error) {
<ide> func waitForExit(cli *DockerCli, containerId string) (int, error) {
<ide> body, _, err := cli.call("POST", "/containers/"+containerId+"/wait", nil)
<ide> if err != nil {
<del> // If we can't connect, then the daemon probably died... | 1 |
PHP | PHP | move some code into refreshapplication | e3be0deb504cf219544e99f881d2b39a0664e9e1 | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide> public function setUp()
<ide> if ( ! $this->app)
<ide> {
<ide> $this->refreshApplication();
<del>
<del> $this->app->setRequestForConsoleEnvironment();
<del>
<del> $this->app->boot();
<ide> }
<ide> }
<ide>
<ide> protected function refreshAppl... | 1 |
Python | Python | add chroot detection | b53c63b85a9af057b681c45dc359758df1cccd6f | <ide><path>setup.py
<ide>
<ide> from setuptools import setup
<ide>
<add>is_chroot = os.stat('/').st_ino != 2
<add>
<ide>
<ide> def get_data_files():
<ide> data_files = [
<ide> def get_data_files():
<ide> ('share/man/man1', ['man/glances.1'])
<ide> ]
<ide>
<del> if os.name == 'posix' and os.getuid... | 1 |
Python | Python | add preliminary support for finnish | 73f66ec5706108f193b8dcabaf79473a87925d26 | <ide><path>setup.py
<ide> 'spacy.pt',
<ide> 'spacy.nl',
<ide> 'spacy.sv',
<add> 'spacy.fi',
<ide> 'spacy.language_data',
<ide> 'spacy.serialize',
<ide> 'spacy.syntax',
<ide><path>spacy/__init__.py
<ide> from . import pt
<ide> from . import nl
<ide> from . import sv
<del>
<add>from . import fi... | 6 |
Text | Text | use serial comma in process docs | 40fa2e9c110c616b1301c20c2a3cdb2cf6cc165e | <ide><path>doc/api/process.md
<ide> process.on('SIGTERM', handle);
<ide> * `'SIGKILL'` cannot have a listener installed, it will unconditionally
<ide> terminate Node.js on all platforms.
<ide> * `'SIGSTOP'` cannot have a listener installed.
<del>* `'SIGBUS'`, `'SIGFPE'`, `'SIGSEGV'` and `'SIGILL'`, when not raised
<a... | 1 |
Javascript | Javascript | move createsafefragment to the top to satisfy lint | a74cbb2b911b3afad96599728208d95a60d24cbf | <ide><path>src/manipulation.js
<ide> (function( jQuery ) {
<ide>
<add>function createSafeFragment( document ) {
<add> var nodeNames = (
<add> "abbr article aside audio canvas datalist details figcaption figure footer " +
<add> "header hgroup mark meter nav output progress section summary time video"
<add> ).split( "... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.