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 |
|---|---|---|---|---|---|
PHP | PHP | firstornew logic | 0b94f5c6df65b31d0cd238b8ebe17554a0131290 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php
<ide> public function firstOrNew(array $attributes)
<ide> {
<ide> if (is_null($instance = $this->where($attributes)->first()))
<ide> {
<del> $instance = $this->related->newInstance();
<add> $instance = $this->related->newInstance($attribu... | 2 |
Python | Python | fix a bug in the estimate remaining time part | d58005cfd4e8bb945043ad8f8e45b120e0aa67d1 | <ide><path>celery/beat.py
<ide> def tick(self):
<ide> result = self.apply_async(entry)
<ide> self.logger.debug("Scheduler: %s sent. id->%s" % (
<ide> entry.name, result.task_id))
<del> else:
<del> if remaining:
<del> re... | 3 |
Python | Python | use recwarn everywhere | d393597c507ea62df534ba2ffb8a4e77cf3f1548 | <ide><path>tests/conftest.py
<ide> def inner(name):
<ide> return inner
<ide>
<ide>
<del>@pytest.fixture
<del>def catch_deprecation_warnings():
<del> import warnings
<del> warnings.simplefilter('default', category=DeprecationWarning)
<del> return lambda: warnings.catch_warnings(record=True)
<add>@pytest.y... | 5 |
Javascript | Javascript | remove unneeded guard | 0e660ce09f5cc5648358866871aef843cfdad509 | <ide><path>lib/internal/crypto/cfrg.js
<ide> async function cfrgImportKey(
<ide> case 'raw': {
<ide> verifyAcceptableCfrgKeyUse(name, 'public', usagesSet);
<ide> keyObject = createCFRGRawKey(name, keyData, true);
<del> if (keyObject === undefined)
<del> throw lazyDOMException('Unable to impo... | 2 |
PHP | PHP | remove unused parameter | f13bb7f0a3db39c9c9cf8618cb70c0c309a54090 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function response($content = '', $status = 200, array $headers = [])
<ide> * @param string $name
<ide> * @param array $parameters
<ide> * @param bool $absolute
<del> * @param \Illuminate\Routing\Route $route
<ide> * @return string... | 1 |
Ruby | Ruby | remove unused argument | c91f1482a178cc82fe37101a04a97cb697ca5d7d | <ide><path>railties/test/application/rake/dbs_test.rb
<ide> def set_database_url
<ide> FileUtils.rm_rf("#{app_path}/config/database.yml")
<ide> end
<ide>
<del> def db_create_and_drop(expected_database, environment_loaded: true)
<add> def db_create_and_drop(expected_database)
<ide> Dir.c... | 1 |
Javascript | Javascript | add tests for issue-2991 | a02d172de4b697538f7b158817355b58957d2eed | <ide><path>test/configCases/records/issue-2991/test.js
<add>try {
<add> require("foo");
<add>} catch(e){}
<add>
<add>it("should write relative paths to records", function() {
<add> var fs = require("fs");
<add> var path = require("path");
<add> var content = fs.readFileSync(path.join(__dirname, "records.json"), "utf-8"... | 2 |
PHP | PHP | remove inline assignments | efe7e3f78b752f172d5585d28bc8c90e12dad6f0 | <ide><path>lib/Cake/Console/ConsoleInput.php
<ide> public function read() {
<ide> */
<ide> public function dataAvailable($timeout = 0) {
<ide> $readFds = array($this->_input);
<del> $readyFds = stream_select($readFds, $w = null, $e = null, $timeout);
<add> $readyFds = stream_select($readFds, $w, $e, $timeout);
<i... | 1 |
Javascript | Javascript | fix helper export, add test | a5e5ad6917ee2f091f826aa5996be1c4d0c10db7 | <ide><path>packages/ember-htmlbars/lib/main.js
<ide> Ember.HTMLBars = {
<ide> DOMHelper
<ide> };
<ide>
<del>if (Ember.FEATURES.isEnabled('ember-htmlbars-helpers')) {
<add>if (Ember.FEATURES.isEnabled('ember-htmlbars-helper')) {
<ide> Helper.helper = makeHelper;
<ide> Ember.Helper = Helper;
<ide> }
<ide><path>pac... | 2 |
Javascript | Javascript | move version into packcontainer | 82452939f587fa0b34db17901dfcc3ef2b7b93c9 | <ide><path>lib/cache/PackFileCacheStrategy.js
<ide> const {
<ide>
<ide> const MAX_INLINE_SIZE = 20000;
<ide>
<del>class DataWithBuildSnapshot {
<add>class PackContainer {
<ide> constructor(
<ide> data,
<add> version,
<ide> buildSnapshot,
<ide> buildDependencies,
<ide> resolveResults,
<ide> resolveBuildDep... | 2 |
PHP | PHP | enable the query log for tests. dry up code | 0735f1d658f2bf3b2f6672bf8f964890e14ed44d | <ide><path>src/Illuminate/Container/Container.php
<ide> protected function getDependencyForCallParameter(ReflectionParameter $parameter,
<ide> */
<ide> protected function callClass($target, array $parameters = array(), $defaultMethod = null)
<ide> {
<add> $segments = explode('@', $target);
<add>
<ide> // If the ... | 2 |
Text | Text | add reacteurope 2018 conference | 803b493314ad65be26ef9bb3a621eb65ce8b11e2 | <ide><path>docs/community/conferences.md
<ide> April 13 in Amsterdam, The Netherlands
<ide>
<ide> [Website](https://react.amsterdam) - [Twitter](https://twitter.com/reactamsterdam) - [Facebook](https://www.facebook.com/reactamsterdam)
<ide>
<add>### ReactEurope 2018
<add>May 17-18 in Paris, France
<add>
<add>[Website... | 1 |
Go | Go | fix cache miss when builtin build args are used | 721e1736ae31914902d2c2196aed5f92e1a0982d | <ide><path>builder/dockerfile/dispatchers.go
<ide> func run(req dispatchRequest) error {
<ide> // that starts with "foo=abc" to be considered part of a build-time env var.
<ide> saveCmd := config.Cmd
<ide> if len(cmdBuildEnv) > 0 {
<del> sort.Strings(cmdBuildEnv)
<del> tmpEnv := append([]string{fmt.Sprintf("|%d", ... | 2 |
Javascript | Javascript | simplify icon param for electron packager | 1d0b39bf512f8d528e026a7560777f1fe660cef9 | <ide><path>script/lib/package-application.js
<ide> module.exports = function () {
<ide> electronVersion: CONFIG.appMetadata.electronVersion,
<ide> extendInfo: path.join(CONFIG.repositoryRootPath, 'resources', 'mac', 'atom-Info.plist'),
<ide> helperBundleId: 'com.github.atom.helper',
<del> icon: getIcon()... | 1 |
Python | Python | fix parser sourcing in ner converter | e6b7600adf70e5586b19d938d3a4ba7b12244f44 | <ide><path>spacy/training/converters/conll_ner_to_docs.py
<ide> def segment_sents_and_docs(doc, n_sents, doc_delimiter, model=None, msg=None):
<ide> nlp = load_model(model)
<ide> if "parser" in nlp.pipe_names:
<ide> msg.info(f"Segmenting sentences with parser from model '{model}'.")
<add> ... | 1 |
Javascript | Javascript | fix a couple of document typos in enumerable | b7faf658b4fe136d522ddf2138bf09be6021fe72 | <ide><path>packages/ember-runtime/lib/mixins/enumerable.js
<ide> function iter(key, value) {
<ide> To make your own custom class enumerable, you need two items:
<ide>
<ide> 1. You must have a length property. This property should change whenever
<del> the number of items in your enumerable object changes. If y... | 1 |
Text | Text | add mdn link for map function | 2e11dcb1ea4ef09993ab46e50b95327e30f2b2b5 | <ide><path>guide/english/javascript/es6/map-function/index.md
<del>---
<del>title: Map Function
<del>---
<del>
<del>## The Map Function
<del>
<del>The `map()` function is used for creating a new array from an existing one, applying a function to each one of the elements of the first array.
<del>
<del>The original synta... | 1 |
Ruby | Ruby | fix inconsistent alignment in gemfile generator | d32a90b9b77d3f7d8098ee6ddb5bf62cb8da0ed7 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def rails_gemfile_entry
<ide> gem 'rails', '#{Rails::VERSION::STRING}'
<ide>
<ide> # Bundle edge Rails instead:
<del> # gem 'rails', :git => 'git://github.com/rails/rails.git'
<add> # gem 'rails', :git => 'git:... | 1 |
Java | Java | fix attempt to the firehose test | e3ca9e519c82b2607a1e692f2f8aa6b614835ebe | <ide><path>src/main/java/io/reactivex/internal/subscribers/EmptySubscriber.java
<ide> * A subscriber that ignores all events (onError is forwarded to RxJavaPlugins though).
<ide> */
<ide> public enum EmptySubscriber implements Subscriber<Object> {
<del> INSTANCE;
<add> /** Empty instance that reports error to t... | 3 |
Text | Text | change lead maintainer date | 573da9002b246a24f4dcba691568fdf00ed5ad9d | <ide><path>docs/Maintainer-Guidelines.md
<ide> Individual Homebrew repositories should not have formal lead maintainers (althou
<ide>
<ide> Maintainers should feel even more free to pleasantly disagree with the work and decisions of the lead maintainer: with greater authority comes greater responsibility to handle and... | 1 |
Javascript | Javascript | install apm using ci | c7b55e5ceae15343be28e4ddca954c2277ea1970 | <ide><path>script/lib/install-apm.js
<ide> const CONFIG = require('../config');
<ide>
<ide> module.exports = function(ci) {
<ide> console.log('Installing apm');
<del> // npm ci leaves apm with a bunch of unmet dependencies
<ide> childProcess.execFileSync(
<ide> CONFIG.getNpmBinPath(),
<del> ['--global-styl... | 1 |
Ruby | Ruby | preserve file attributes like mtime | 4a8632e54d02b8c71ab581f18287a682e1640bcc | <ide><path>Library/Homebrew/cmd/unpack.rb
<ide> def unpack
<ide> ENV["VERBOSE"] = "1" # show messages about tar
<ide> f.brew do
<ide> f.patch if ARGV.flag?("--patch")
<del> cp_r getwd, stage_dir
<add> cp_r getwd, stage_dir, :preserve => true
<ide> end
<ide> ENV["VERBOSE"] =... | 1 |
PHP | PHP | remove more code | 4dab08861a622b9c6948cfc10751d9cc2282218d | <ide><path>src/Console/ConsoleErrorHandler.php
<ide>
<ide> use Cake\Error\BaseErrorHandler;
<ide> use Cake\Error\FatalErrorException;
<del>use Cake\Error\PHP7ErrorException;
<ide> use Exception;
<ide> use Throwable;
<ide>
<ide><path>src/Error/BaseErrorHandler.php
<ide> protected function _logError($level, array $data... | 4 |
Python | Python | add batch_dot to backend | b0ea92bc127d724f514d25d64d079b2d31e980ea | <ide><path>keras/backend/tensorflow_backend.py
<ide> def dot(x, y):
<ide> return tf.matmul(x, y)
<ide>
<ide>
<add>def batch_dot(x, y, axes=None):
<add> if axes:
<add> adj_x = None if axes[0][0] == x.ndim-1 else True
<add> adj_y = True if axes[1][0] == y.ndim-1 else None
<add> else:
<add> ... | 3 |
Python | Python | update doc tests | 6937e311a48db3d06698b8fa4e7f2585b9a90891 | <ide><path>spacy/tests/doc/test_doc_api.py
<ide> def to_str(span):
<ide> def test_doc_api_serialize(en_tokenizer, text):
<ide> tokens = en_tokenizer(text)
<ide> new_tokens = get_doc(tokens.vocab).from_bytes(tokens.to_bytes())
<del> assert tokens.string == new_tokens.string
<add> assert tokens.text == new_... | 1 |
Mixed | Text | add part 2 | 48d9f5807d7ff1cfffc56ac908685fbc49f1ebc4 | <ide><path>docs/tutorials/fundamentals/part-1-overview.md
<ide> import { DetailedExplanation } from '../../components/DetailedExplanation'
<ide>
<ide> Welcome to the Redux Fundamentals tutorial! **This tutorial will introduce you to the core concepts, principles, and patterns for using Redux**. By the time you finish,... | 3 |
PHP | PHP | fix double line | 40b915fa2bcb7c8f521c09c44bcd6a08c35e677d | <ide><path>tests/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testLast()
<ide> $result = $this->Paginator->last(3);
<ide> $this->assertSame('', $result, 'When inside the last links range, no links should be made');
<ide>
<del>
<ide> $result = $this->Paginator->last('lastes... | 1 |
PHP | PHP | add windows phone os to mobile browser list | ac408b38e3dda9458795f4df7f01a59db3f78443 | <ide><path>lib/Cake/Network/CakeRequest.php
<ide> class CakeRequest implements ArrayAccess {
<ide> 'Android', 'AvantGo', 'BlackBerry', 'DoCoMo', 'Fennec', 'iPod', 'iPhone',
<ide> 'J2ME', 'MIDP', 'NetFront', 'Nokia', 'Opera Mini', 'Opera Mobi', 'PalmOS', 'PalmSource',
<ide> 'portalmmm', 'Plucker', 'ReqwirelessW... | 2 |
Javascript | Javascript | set key event handler on control dom element | 465d2afed38e24972f381118eee9916a275a78aa | <ide><path>examples/js/controls/FirstPersonControls.js
<ide> THREE.FirstPersonControls = function ( object, domElement ) {
<ide> this.domElement.removeEventListener( 'mousemove', _onMouseMove, false );
<ide> this.domElement.removeEventListener( 'mouseup', _onMouseUp, false );
<ide>
<del> window.removeEventListene... | 5 |
Ruby | Ruby | remove obsolete autoload | cf7c475ef187e88044cba139cc2e1dbf5f180b15 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> module Associations # :nodoc:
<ide> autoload :HasAndBelongsToManyAssociation, 'active_record/associations/has_and_belongs_to_many_association'
<ide> autoload :HasManyAssociation, 'active_record/associations/has_many_association'
<ide> autoload ... | 1 |
Ruby | Ruby | keep all session tests in the same file | 8a8325766a870df0abcf4662fb71660173737253 | <ide><path>railties/test/application/middleware/flash_test.rb
<del>require 'isolation/abstract_unit'
<del>require 'rack/test'
<del>
<del>module ApplicationTests
<del> class FlashTest < ActiveSupport::TestCase
<del> include ActiveSupport::Testing::Isolation
<del> include Rack::Test::Methods
<del>
<del> def set... | 2 |
PHP | PHP | fix eloquent builder | 32d0f164424ab5b4a2bff2ed927812ae49bd8051 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function chunkById($count, callable $callback, $column = 'id')
<ide> $lastId = 0;
<ide>
<ide> do {
<del> $results = $this->forPageAfterId($count, $lastId, $column)->get();
<add> $clone = clone $this;
<add>
<add> ... | 1 |
Ruby | Ruby | remove deprecation warnings from tests | f944d528c495fe2ac04caeb1354260eae953f4c7 | <ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> def test_depends_and_nullify
<ide> end
<ide>
<ide> def test_restrict
<del> # ActiveRecord::Base.dependent_restrict_raises = true, by default
<add> option_before = ActiveRecord::Base.dependent_restrict_raises
<add> ActiveRe... | 3 |
Ruby | Ruby | use parenthesis so limit works on all dbs | d3b2596884d884b72d50de2b7ced6097df670736 | <ide><path>activerecord/test/cases/base_test.rb
<ide> def test_limit_should_sanitize_sql_injection_for_limit_with_comas
<ide> Topic.limit("1, 7 procedure help()").all
<ide> end
<ide> end
<del>
<del> unless current_adapter?(:MysqlAdapter)
<del> def test_limit_should_allow_sql_literal
<del> assert_... | 1 |
Mixed | Javascript | remove redundant imports in several examples | dd264f582f547508b5b5af2cf1dc665a9c53f8e5 | <ide><path>examples/auth0/pages/about.js
<del>import React from 'react'
<del>
<ide> import Layout from '../components/layout'
<ide> import { useFetchUser } from '../lib/user'
<ide>
<ide><path>examples/auth0/pages/index.js
<del>import React from 'react'
<del>
<ide> import Layout from '../components/layout'
<ide> import... | 47 |
Javascript | Javascript | move hide/unhide logic to offscreen component | cb7075399376f4b913500c4e377d790138b31c74 | <ide><path>packages/react-reconciler/src/ReactFiber.new.js
<ide> import type {WorkTag} from './ReactWorkTags';
<ide> import type {TypeOfMode} from './ReactTypeOfMode';
<ide> import type {ExpirationTimeOpaque} from './ReactFiberExpirationTime.new';
<ide> import type {SuspenseInstance} from './ReactFiberHostConfig';
<add... | 5 |
Text | Text | add article for javascript string.codepointat() | 7659d1fdaaa61334bcb9150419c65adc46a883cc | <ide><path>guide/english/javascript/standard-objects/string/string-prototype-codepointat/index.md
<ide> title: String.prototype.codePointAt
<ide> ---
<ide> ## String.prototype.codePointAt
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/javascript/standard-objects/string... | 1 |
Go | Go | remove links when remove container | 600ad5c1b7b736fba6b103eb99ec87efb050b9ec | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) cleanupContainer(container *container.Container, forceRemo
<ide> return errors.Wrapf(err, "unable to remove filesystem for %s", container.ID)
<ide> }
<ide>
<del> daemon.linkIndex.delete(container)
<add> linkNames := daemon.linkIndex.delete(container)
<ide> se... | 3 |
PHP | PHP | delete a bad test | 8a4639a8347c2b26ff3a0b43e10c509a997befb5 | <ide><path>tests/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testUrlGeneration() {
<ide> $result = $this->Paginator->url();
<ide> $this->assertEquals('/index', $result);
<ide>
<del> $file = fopen('/home/johan/test/log.txt', 'r+');
<del>
<del> fwrite($file, $result);
<del>
<ide> $this->Pa... | 1 |
Python | Python | add a bit of flexibility in progbar.update | b9403cb2621a048a885e30f5a9527a14f061a0a6 | <ide><path>keras/utils/generic_utils.py
<ide> def update(self, current, values=[]):
<ide> else:
<ide> info += ' - %ds' % (now - self.start)
<ide> for k in self.unique_values:
<del> info += ' - %s: %.4f' % (k, self.sum_values[k][0] / max(1, self.sum_values[k][1]))
<... | 1 |
Ruby | Ruby | eliminate pathname extensions | bd84b820188daed991756531071137dc7e0876a0 | <ide><path>activesupport/lib/active_support/core_ext/exception.rb
<del>require 'active_support/core_ext/pathname'
<del>
<ide> module ActiveSupport
<ide> FrozenObjectError = RUBY_VERSION < '1.9' ? TypeError : RuntimeError
<ide> end
<ide>
<ide> # TODO: Turn all this into using the BacktraceCleaner.
<ide> class Excepti... | 4 |
PHP | PHP | change ternary operator | ae111e6311d5cc40423a32ddc7e7da88b1fef158 | <ide><path>src/ORM/Behavior/TreeBehavior.php
<ide> protected function _recoverTree($counter = 0, $parentId = null, $level = -1)
<ide> list($parent, $left, $right) = [$config['parent'], $config['left'], $config['right']];
<ide> $primaryKey = $this->_getPrimaryKey();
<ide> $aliasedPrimaryKey = $th... | 1 |
Text | Text | fix output in inspector heapprofile example | c48467408d6f520b3dda86e34c8f4688acdd52b7 | <ide><path>doc/api/inspector.md
<ide> session.on('HeapProfiler.addHeapSnapshotChunk', (m) => {
<ide> });
<ide>
<ide> session.post('HeapProfiler.takeHeapSnapshot', null, (err, r) => {
<del> console.log('Runtime.takeHeapSnapshot done:', err, r);
<add> console.log('HeapProfiler.takeHeapSnapshot done:', err, r);
<ide> ... | 1 |
Ruby | Ruby | use gcc instead of apple-gcc42 when needed | 165fdf4617b6ebefebfff47237626ac816a86cf8 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def formula formula
<ide> CompilerSelector.new(formula_object).compiler
<ide> rescue CompilerSelectionError => e
<ide> unless installed_gcc
<del> test "brew install apple-gcc42"
<add> test "brew install gcc"
<ide> installe... | 2 |
Text | Text | add changelog entry | ad449525dcd0da359c96203be11db2f606c9c812 | <ide><path>actionpack/CHANGELOG.md
<ide>
<ide> ## Rails 3.2.0 (unreleased) ##
<ide>
<add>* Rails initialization with initialize_on_precompile = false should set assets_dir *Santiago Pastorino*
<add>
<ide> * Add font_path helper method *Santiago Pastorino*
<ide>
<ide> * Depends on rack ~> 1.4.0 *Santiago Pastor... | 1 |
PHP | PHP | adjust whitespace in one more docblock | ab24e0d1f68584e973ece32d41a2302110e97d74 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> protected function restoreFieldsForCount()
<ide> /**
<ide> * Chunk the results of the query.
<ide> *
<del> * @param int $count
<del> * @param callable $callback
<add> * @param int $count
<add> * @param callable $callback... | 1 |
PHP | PHP | remove unnecessary method | 313f8cb48fa678cb01b7688ab5b93facb8e3970e | <ide><path>src/Console/ConsoleErrorHandler.php
<ide> public function __construct(array $options = [])
<ide> public function handleException(Throwable $exception): void
<ide> {
<ide> $this->_displayException($exception);
<del> $this->_logException($exception);
<add> $this->logException($exc... | 3 |
Javascript | Javascript | add failing test case for albers artefacts | fbbbfbf239a5c17b569103dc118b3796ba74d5d7 | <ide><path>test/geo/path-test.js
<ide> suite.addBatch({
<ide> "Polygon": {
<ide> "inserts exterior along clip edge if polygon interior surrounds it": function(path) {
<ide> path({type: "Polygon", coordinates: [[[80, -80], [80, 80], [-80, 80], [-80, -80], [80, -80]]]});
<del> var buffer ... | 1 |
Text | Text | remove old docs | 270d548d33f813c6121f739ce906385c398d1b1b | <ide><path>packages/next/README.md
<ide> - [With named exports](#with-named-exports)
<ide> - [With Custom Loading Component](#with-custom-loading-component)
<ide> - [With No SSR](#with-no-ssr)
<del> - [With Multiple Modules At Once](#with-multiple-modules-at-once)
<ide> - [Custom `<App>`](#custom-app)
... | 1 |
Python | Python | fix some doctest failures | 4c696a070a8034acda819ff3d62464b4cc1f0e8a | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> >>> np.cos(np.zeros((3,3)),np.zeros((2,2)))
<ide> Traceback (most recent call last):
<ide> File "<stdin>", line 1, in <module>
<del> ValueError: invalid return array shape
<add> ValueError: operan... | 1 |
PHP | PHP | fix container return docblock | 52485a0c4a1dd4af7066e4de5ed3b2ee9f26d022 | <ide><path>src/Illuminate/Container/Container.php
<ide> protected function getConcrete($abstract)
<ide> * Get the contextual concrete binding for the given abstract.
<ide> *
<ide> * @param string $abstract
<del> * @return string|null
<add> * @return \Closure|string|null
<ide> */
<ide> ... | 1 |
PHP | PHP | remove extra newline | 01ba43ce2669c19e47ab172661561e0e36509e49 | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> public function testPaginate()
<ide> $this->assertSame($Controller->request->params['paging']['Posts']['pageCount'], 2);
<ide> $this->assertSame($Controller->request->params['paging']['Posts']['prevPage'], true);
<ide> $this->assertSa... | 1 |
Go | Go | add support for 'dangling' filter | 131cbaf5b7b15ffc5e3fc11ed30ce0f67a76c6f8 | <ide><path>api/types/network/network.go
<ide> type ConfigReference struct {
<ide> }
<ide>
<ide> var acceptedFilters = map[string]bool{
<del> "driver": true,
<del> "type": true,
<del> "name": true,
<del> "id": true,
<del> "label": true,
<del> "scope": true,
<add> "driver": true,
<add> "type": true,
<add... | 3 |
Text | Text | add @iekadou for #700 support. thanks! | 17e0ff0fcde23f4bc6734b75f7fff734ae77c26d | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Ryan Detzel - [ryanrdetzel]
<ide> * Omer Katz - [thedrow]
<ide> * Wiliam Souza - [waa]
<add>* Jonas Braun - [iekadou]
<ide>
<ide> Many thanks to everyone who's contributed to the project.
<ide>
<ide> You can al... | 1 |
Ruby | Ruby | fix output handling | c479c680b8e3fb022d8d5cb93d00a1eff5666af8 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def self.run test, command, puts_output_on_success = false
<ide> step.puts_command
<ide>
<ide> command = "#{step.command} &>#{step.log_file_path}"
<del>
<del> output = nil
<ide> if command.start_with? 'git '
<ide> Dir.chdir step.repositor... | 1 |
Python | Python | remove bert2bert from module declaration | 19e99647806ef597e2b21fd6ec2fed6624bdb696 | <ide><path>transformers/__init__.py
<ide> BertForMaskedLM, BertForNextSentencePrediction,
<ide> BertForSequenceClassification, BertForMultipleChoice,
<ide> BertForTokenClassification, BertForQuestionAnswering,
<del> ... | 1 |
Text | Text | update cdn link | d1cccd354639cfc65b5f82ecd5d58666eda2a0a8 | <ide><path>docs/00-Getting-Started.md
<ide> bower install Chart.js --save
<ide>
<ide> Also, Chart.js is available from CDN:
<ide>
<del>https://cdnjs.com/libraries/chart.js
<add>https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js
<ide>
<ide> ###Creating a chart
<ide> | 1 |
Ruby | Ruby | remove unused variables | 36b7bae93cedfa59cba797f7ad3bdcdced700fb7 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def formula formula_name
<ide> if formula.stable? && !ARGV.include?('--no-bottle')
<ide> bottle_args = ["--rb", canonical_formula_name]
<ide> if @tap
<del> tap_user, tap_repo = @tap.split "/"
<ide> bottle_args << "--roo... | 1 |
Javascript | Javascript | fix typo in eventpropagators.js | 751d22117213ebf425e1a81cc7b2def10e67ae5f | <ide><path>src/renderers/shared/shared/event/EventPropagators.js
<ide> function accumulateDirectDispatches(events) {
<ide> * are sets of events that have already been annotated with a set of dispatched
<ide> * listener functions/ids. The API is designed this way to discourage these
<ide> * propagation strategies fro... | 1 |
Text | Text | add more instructions to releasing_rails | 500d6319ff07d880e24fb1cc577ca0dcd50d63e2 | <ide><path>RELEASING_RAILS.md
<ide> branch.
<ide>
<ide> ## Day of release
<ide>
<add>If making multiple releases. Publish them in order from oldest to newest, to
<add>ensure that the "greatest" version also shows up in NPM and GitHub Releases as
<add>"latest".
<add>
<ide> ### Put the new version in the RAILS_VERSION ... | 1 |
Python | Python | fix indent size of docstring's line | eaca5da3e2dc5747fdd7310482396a3738d1b476 | <ide><path>keras/engine/training.py
<ide> def fit(self, x=None,
<ide> batch_size: integer. Number of samples per gradient update.
<ide> epochs: integer, the number of times to iterate
<ide> over the training data arrays.
<del> verbose: 0, 1, or 2. Verbosity mode.
<... | 1 |
Python | Python | set version to v2.1.0a12 | 062934aa12179f2e693e022520b1dec7ef1ba45b | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a11"
<add>__version__ = "2.1.0a12"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Text | Text | change debugging console lesson | d739a0cc5da640fc4a34354cf793481b3599d243 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/understanding-the-differences-between-the-freecodecamp-and-browser-console.english.md
<ide> forumTopicId: 301193
<ide> <section id='description'>
<ide> You may have noticed that some freeCodeCamp JavaScript challenges includ... | 1 |
Javascript | Javascript | remove special loadstart handling | 73b6316f3bdb8cb7582af85d0c17bcde365fd930 | <ide><path>src/js/tech/tech.js
<ide> Tech.withSourceHandlers = function(_Tech) {
<ide>
<ide> if (sh !== _Tech.nativeSourceHandler) {
<ide> this.currentSource_ = source;
<del>
<del> // Catch if someone replaced the src without calling setSource.
<del> // If they do, set currentSource_ to null and di... | 2 |
Javascript | Javascript | use array.prototype.flat where supported | 9df4f1de12728b44a4b0f91748f12421008d9079 | <ide><path>src/core.js
<ide> define( [
<ide> "./var/arr",
<ide> "./var/getProto",
<ide> "./var/slice",
<del> "./var/concat",
<add> "./var/flat",
<ide> "./var/push",
<ide> "./var/indexOf",
<ide> "./var/class2type",
<ide> define( [
<ide> "./var/isWindow",
<ide> "./core/DOMEval",
<ide> "./core/toType"
<del>], fun... | 5 |
Ruby | Ruby | fix quoting of the patch `url` when autocorrecting | a328acc9a109dea01210b0556790728be2023f16 | <ide><path>Library/Homebrew/rubocops/patches.rb
<ide> def patch_problems(patch_url_node)
<ide> gh_patch_param_pattern = %r{https?://github\.com/.+/.+/(?:commit|pull)/[a-fA-F0-9]*.(?:patch|diff)}
<ide> if regex_match_group(patch_url_node, gh_patch_param_pattern) && !patch_url.match?(/\?full_index=\w+... | 1 |
Javascript | Javascript | escape forward slash in email regexp | a88c215f17829c1cfdec36bc1ef40bae10c41dff | <ide><path>src/ng/directive/input.js
<ide> */
<ide>
<ide> var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
<del>var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;
<add>var EMAIL_REGEXP = /^[a-z0-9... | 1 |
Text | Text | add 2.18.2 to the changelog.md | 401ff152f52b14f24f0df1167ff74c5661f76df6 | <ide><path>CHANGELOG.md
<ide> - [#16036](https://github.com/emberjs/ember.js/pull/16036) [CLEANUP] Convert ember-metal accessors tests to new style
<ide> - [#16023](https://github.com/emberjs/ember.js/pull/16023) Make event dispatcher work without jQuery
<ide>
<add>### 2.18.2 (February 14, 2018)
<add>
<add>- [#16245](... | 1 |
Text | Text | add davisjam to collaborators | 7012950e2b8e845b738c82fd6fdf07d35ef13975 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Daniel Bevenius** <daniel.bevenius@gmail.com>
<ide> * [DavidCai1993](https://github.com/DavidCai1993) -
<ide> **David Cai** <davidcai1993@yahoo.com> (he/him)
<add>* [davisjam](https://github.com/davisjam... | 1 |
Ruby | Ruby | remove unnecessary code | dd1f742854e965261a31e05674cba0cf767c364b | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> def shutup
<ide> require 'extend/ARGV' # needs to be after test/unit to avoid conflict with OptionsParser
<ide> require 'extend/ENV'
<ide> ARGV.extend(HomebrewArgvExtension)
<del>ENV.extend(Stdenv)
<ide>
<ide> begin
<ide> require 'rubygems' | 1 |
PHP | PHP | fix some docblock type | 133c34445cc97314c8ab739d2cfb56f1d084f935 | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> class MemcachedEngine extends CacheEngine {
<ide> /**
<ide> * memcached wrapper.
<ide> *
<del> * @var Memcache
<add> * @var Memcached
<ide> */
<ide> protected $_Memcached = null;
<ide>
<ide><path>src/Cache/Engine/RedisEngine.php
<ide> class RedisEngine extends ... | 31 |
Javascript | Javascript | add mocha rfc 232 util test | 2efbfac00652c97a89ba7eadc9a15796648790ea | <ide><path>blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/__name__-test.js
<add>import { expect } from 'chai';
<add>import { describe, it } from 'mocha';
<add>import <%= camelizedModuleName %> from '<%= dasherizedPackageName %>/utils/<%= dasherizedModuleName %>';
<add>
<add>describe('<%= friendlyTestNam... | 3 |
Text | Text | remove description duplication in buffer.md | 1dd9662e2ba4934763ea764f2aede977c6c68339 | <ide><path>doc/api/buffer.md
<ide> console.log(buf);
<ide> // Prints: <Buffer 00 00 00 00 00>
<ide> ```
<ide>
<del>Allocates a new `Buffer` of `size` bytes. If `size` is larger than
<add>If `size` is larger than
<ide> [`buffer.constants.MAX_LENGTH`] or smaller than 0, [`ERR_INVALID_OPT_VALUE`] is
<ide> thrown. A zero-... | 1 |
Python | Python | add tests for multiworkermirroredstrategy | 3b77b6168867b8b4eb3cded2ff73f2268f004dc1 | <ide><path>keras/distribute/multi_worker_test.py
<ide> def testSimpleModelIndependentWorkerSync(self, strategy):
<ide>
<ide> verification_callback.verify(self)
<ide>
<add> @tf.__internal__.distribute.combinations.generate(
<add> tf.__internal__.test.combinations.combine(
<add> mode=["eage... | 1 |
Ruby | Ruby | use formatted number as schema version | 826e49cfbe9589e600e652c31eb62954dcc86061 | <ide><path>activerecord/lib/active_record/schema_dumper.rb
<ide> def initialize(connection, options = {})
<ide> @options = options
<ide> end
<ide>
<add> # turns 20170404131909 into "2017_04_04131909"
<add> def formatted_version
<add> return "" unless @version
<add> stringified = @... | 1 |
Ruby | Ruby | fix deprecation warnings in active support tests | 67e18160e6cd53b2cc605eaeaeae2a0557246e7c | <ide><path>activesupport/test/core_ext/range_ext_test.rb
<ide> def test_cover_on_time_with_zone
<ide> end
<ide>
<ide> def test_include_on_time_with_zone
<del> twz = ActiveSupport::TimeWithZone.new(nil, ActiveSupport::TimeZone["Eastern Time (US & Canada)"], Time.utc(2006, 11, 28, 10, 30))
<del> assert ((twz -... | 1 |
Javascript | Javascript | make the transform defaults to an array | a8a750ab05bdff73ba3af0b98f3f284ff8d1e743 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide>
<ide> var $config = this.defaults = {
<ide> // transform incoming response data
<del> transformResponse: function(data) {
<add> transformResponse: [function(data) {
<ide> if (isString(data)) {
<ide> // strip json vulnerability p... | 1 |
Ruby | Ruby | pass the key to the block in cache.fetch on misses | 81b711256591874b92683e55dc405286eb6df7a6 | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def self.instrument
<ide> # the cache with the given key, then that data is returned.
<ide> #
<ide> # If there is no such data in the cache (a cache miss), then +nil+ will be
<del> # returned. However, if a block has been passed, that blo... | 2 |
Text | Text | add wherekeynot to changelog | c60cf5e029bedf83ee19a2e2a6388c0de374e155 | <ide><path>CHANGELOG-5.5.md
<ide> - ⚠️ Call `setConnection()` in `Model::save()` ([#20466](https://github.com/laravel/framework/pull/20466))
<ide> - ⚠️ Touch parent timestamp only if the model is dirty ([#20489](https://github.com/laravel/framework/pull/20489))
<ide> - Added `Model::loadMissing()` method ([#20630](http... | 1 |
Javascript | Javascript | remove unnessecary assignement | 7f648bbcd4096090aaff65d8b46b9678ac310b73 | <ide><path>examples/js/loaders/FBXLoader.js
<ide> }
<ide>
<ide> polygonIndex ++;
<del>
<del> endOfFace = false;
<ide> faceLength = 0;
<ide>
<ide> // reset arrays for the next face | 1 |
Mixed | Ruby | accept nested functions in dangerous query methods | 8fe1bd555f82715508d386b823a9d91628d10aab | <ide><path>activerecord/CHANGELOG.md
<add>* Allow nested functions as safe SQL string
<add>
<add> *Michael Siegfried*
<add>
<ide> * Allow `destroy_association_async_job=` to be configured with a class string instead of a constant.
<ide>
<ide> Defers an autoloading dependency between `ActiveRecord::Base` and... | 6 |
Ruby | Ruby | add nlopt to migration | 371858f41921f85bf1a98726c91fd9a94e8600a5 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> 'lmutil' => 'homebrew/binary',
<ide> 'jscoverage' => 'homebrew/boneyard',
<ide> 'jsl' => 'homebrew/binary',
<add> 'nlopt' => 'homebrew/science',
<ide> } | 1 |
Text | Text | fix typo in invalid getstaticpaths value example | 156a77409bed5f18947ece8572a24ae6808199ee | <ide><path>errors/invalid-getstaticpaths-value.md
<ide> In one of the page's `unstable_getStaticPaths` the return value had the incorrec
<ide> Make sure to return the following shape from `unstable_getStaticPaths`:
<ide>
<ide> ```js
<del>export async function unstable_getStaticProps() {
<add>export async function unst... | 1 |
Ruby | Ruby | move cache dir creation to fetch | d05478e85b776bf262e6bf2ca7b4b883a25de5ed | <ide><path>Library/Homebrew/formula.rb
<ide> def fetch
<ide> downloader = @downloader
<ide> mirror_list = mirrors
<ide>
<add> # Ensure the cache exists
<add> HOMEBREW_CACHE.mkpath
<add>
<ide> begin
<ide> fetched = downloader.fetch
<ide> rescue CurlDownloadStrategyError => e
<ide> def verify... | 1 |
Go | Go | add client os and arch to docker version | eceacb8334250b9f241b263f28372d5f35ada71d | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdVersion(args ...string) error {
<ide> if dockerversion.GITCOMMIT != "" {
<ide> fmt.Fprintf(cli.out, "Git commit (client): %s\n", dockerversion.GITCOMMIT)
<ide> }
<add> fmt.Fprintf(cli.out, "OS/Arch (client): %s/%s\n", runtime.GOOS, runtime.GOARCH)
<id... | 1 |
Ruby | Ruby | move everything into one file | 9b50fd81d729080b746b9637ad3a0c59049b96a3 | <ide><path>Library/Homebrew/update_migrator.rb
<del>require "update_migrator/cache_entries_to_double_dashes"
<del>require "update_migrator/cache_entries_to_symlinks"
<del>require "update_migrator/legacy_cache"
<del>require "update_migrator/legacy_keg_symlinks"
<del>require "update_migrator/legacy_repository"
<add>requi... | 6 |
Javascript | Javascript | add destroyed method back to coreobject | 06b851a09e42c7f73949547b057b732481e09628 | <ide><path>packages/sproutcore-metal/lib/system/core_object.js
<ide> require('sproutcore-metal/system/mixin');
<ide>
<ide> var rewatch = SC.rewatch;
<ide> var classToString = SC.Mixin.prototype.toString;
<add>var set = SC.set, get = SC.get;
<ide>
<ide> function makeCtor() {
<ide>
<ide> Object.PrototypeMixin = SC.Mix... | 1 |
PHP | PHP | fix old code in auth test cases | 86013f1b849045f845a2e9115553401b99f67879 | <ide><path>laravel/tests/cases/auth.test.php
<ide> public function testUserMethodReturnsNullWhenNoUserExistsAndNoRecallerExists()
<ide> public function testUserReturnsUserByID()
<ide> {
<ide> Session::$instance = new Payload($this->getMock('Laravel\\Session\\Drivers\\Driver'));
<del> Session::$instance->session['d... | 1 |
Python | Python | fix flaky test | 7f3cd093c096c03d9710940dc5cd700c2b7142a6 | <ide><path>tests/integration_tests/test_image_data_tasks.py
<ide> def test_image_classification():
<ide> history = model.fit(X_train, y_train, nb_epoch=10, batch_size=16,
<ide> validation_data=(X_test, y_test),
<ide> show_accuracy=True, verbose=0)
<del> assert(hist... | 1 |
Text | Text | add license badge | 4f189ec80ce01a0275d87d24463ef12b16715d9b | <ide><path>README.md
<ide> [](http://npm-stat.com/charts.html?package=axios)
<ide> [](https://gitter.im/mzabriskie/axios)
<ide> [;
<ide> // `Runtime.executionContextCreated` listener
<ide> process.on('warning', common.mustNotCall());
<ide>
<del>putIn.run(['.clear']);
<ide> putIn.run(['async function test() {']);
<ide> for (let i = 0; i < DEFAULT... | 1 |
Python | Python | add circle sort implementation | e1e7922efac2b7fdfab7555baaf784edb345c222 | <ide><path>sorts/circle_sort.py
<add>"""
<add>This is a Python implementation of the circle sort algorithm
<add>
<add>For doctests run following command:
<add>python3 -m doctest -v circle_sort.py
<add>
<add>For manual testing run:
<add>python3 circle_sort.py
<add>"""
<add>
<add>
<add>def circle_sort(collection: list) -... | 1 |
PHP | PHP | avoid duplication in returned results for habtm | fb0053753e2629b3553fbaa1ba04b0eb78585467 | <ide><path>lib/Cake/Model/Model.php
<ide> public function save($data = null, $validate = true, $fieldList = array()) {
<ide> $this->getEventManager()->dispatch($event);
<ide> }
<ide> if (!empty($this->data)) {
<del> $success = Hash::merge($success, $this->data);
<add> $success = array_merge($success, $t... | 2 |
Javascript | Javascript | solve hoisting in vector3 | 979f99d21b688253cab8b6e69f4816febe64fd91 | <ide><path>src/math/Vector3.js
<ide> import { MathUtils } from './MathUtils.js';
<ide> import { Quaternion } from './Quaternion.js';
<ide>
<del>const _vector = new Vector3();
<add>let _vector;
<ide> const _quaternion = new Quaternion();
<ide>
<ide> class Vector3 {
<ide> class Vector3 {
<ide>
<ide> }
<ide>
<del>};
... | 2 |
Ruby | Ruby | replace class attribute with set constant | b1dcfa782e64859f9d03b6cf9474506ac5129337 | <ide><path>actionview/lib/action_view/template/types.rb
<ide> module ActionView
<ide> class Template
<ide> class Types
<ide> class Type
<del> cattr_accessor :types
<del> self.types = Set.new([ :html, :text, :js, :css, :xml, :json ])
<add> SET = Set.new([ :html, :text, :js, :css, :xml, :... | 1 |
Text | Text | fix a3c wrong readme.md | 01a51ee2f3d54288b298fb3375089b9315e85243 | <ide><path>research/a3c_blogpost/README.md
<ide> In order to run this code, you will need the following prerequisites:
<ide>
<ide> * [OpenAI Gym](https://github.com/openai/gym) - `pip install gym`
<ide> * [pyglet](https://bitbucket.org/pyglet/pyglet/wiki/Home) - `pip install pyglet`
<del>* [TensorFlow](https://www.te... | 1 |
Ruby | Ruby | fix incorrect word | 9bbbae06c57da6a25c70e54877c4867310131db9 | <ide><path>activesupport/lib/active_support/log_subscriber/test_helper.rb
<ide> class LogSubscriber
<ide> # up the queue, subscriptions and turning colors in logs off.
<ide> #
<ide> # The messages are available in the @logger instance, which is a logger with limited
<del> # powers (it actually do not sen... | 1 |
Ruby | Ruby | fix rubocop warnings | 51bda9c90efe3c3fbc197b6c1db793575444a711 | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def resolve_test_tap
<ide>
<ide> if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
<ide> # Also can get tap from Jenkins GIT_URL.
<del> url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/").sub(%r{\.git$}, "")
<add> url_path = g... | 1 |
Javascript | Javascript | remove old references to node.loadingmodules | a0c464638c3b04e22b38358b0526308b8dcd1c63 | <ide><path>src/node.js
<ide> node.Module.prototype.loadScript = function (loadPromise) {
<ide> // remove shebang
<ide> content = content.replace(/^\#\!.*/, '');
<ide>
<del> node.loadingModules = [];
<del>
<ide> function requireAsync (url) {
<ide> return self.newChild(url, {});
<ide> }
<ide> no... | 1 |
Python | Python | add nvtx ranges to `trainablepipe` components | eaf66e74314cf5262cee0f41a42c36dc39fc0975 | <ide><path>spacy/errors.py
<ide> class Warnings(metaclass=ErrorsWithCodes):
<ide> "Only the last span group will be loaded under "
<ide> "Doc.spans['{group_name}']. Skipping span group with values: "
<ide> "{group_values}")
<add> W121 = ("Attempting to trace non-existent method '{... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.