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 |
|---|---|---|---|---|---|
Ruby | Ruby | use table alias nodes rather than table nodes | e07772556a2167e44158f367beb3a45e6a55671f | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
<ide> def join_has_many_to(relation)
<ide>
<ide> def join_has_many_through_to(relation)
<ide> join_table = Arel::Table.new(
<del> through_reflection.klass.table_name, :engine => a... | 1 |
Mixed | Ruby | fix #to_json for basicobject enumerables | d75eeadf740f5ec01c72cb8b0da77de80db4d2a9 | <ide><path>activesupport/CHANGELOG.md
<add>* Ensure classes which `include Enumerable` get `#to_json` in addition to
<add> `#as_json`.
<add>
<add> *Sammy Larbi*
<add>
<ide> * Change the signature of `fetch_multi` to return a hash rather than an
<ide> array. This makes it consistent with the output of `rea... | 4 |
Python | Python | pass exchange argument on to task.get_publisher | ce3a22a505bc03abce3fb43c3b65190c2543e37d | <ide><path>celery/execute/__init__.py
<ide> def apply_async(task, args=None, kwargs=None, countdown=None, eta=None,
<ide> if countdown: # Convert countdown to ETA.
<ide> eta = datetime.now() + timedelta(seconds=countdown)
<ide>
<del> publish = publisher or task.get_publisher(connection)
<add> publish... | 1 |
Ruby | Ruby | update sdk_path_if_needed logic | eea18a5cb10c9fa51086fd26843d3b47e2425f5b | <ide><path>Library/Homebrew/os/mac.rb
<ide> def sdk_path(v = nil)
<ide> end
<ide>
<ide> def sdk_path_if_needed(v = nil)
<del> return if !MacOS::Xcode.installed? && MacOS::CLT.separate_header_package?
<add> # Prefer Xcode SDK when both Xcode and the CLT are installed.
<add> # Expected results:
<a... | 1 |
Mixed | Ruby | add block support for the helper | 4bb26dd7b298b08f53c7e157ddc19dc7febcf37e | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Add block support for the `mail_to` helper, similar to the `link_to` helper.
<add>
<add> *Sam Pohlenz*
<add>
<ide> * Automatically configure cookie-based sessions to be encrypted if
<ide> `secret_key_base` is set, falling b... | 3 |
Java | Java | reset securitymanager in finally-block and polish | d1a6e494750a3ec39a79f047601c279de96ff99f | <ide><path>spring-core/src/test/java/org/springframework/core/env/StandardEnvironmentTests.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 ... | 1 |
Python | Python | replace usage of the string module | ebf0c2b33cab515dcd45fe265c8da5d7ece39e75 | <ide><path>celery/loaders/__init__.py
<ide> import os
<del>import string
<ide> import warnings
<ide> import importlib
<ide>
<ide> from carrot.utils import rpartition
<ide>
<del>from celery.utils import get_full_cls_name
<add>from celery.utils import get_full_cls_name, first
<ide> from celery.loaders.default import Lo... | 1 |
Python | Python | add regression for #627 | 971218b462b888ea045ab78edae7d36f35dcbaf9 | <ide><path>numpy/linalg/tests/test_regression.py
<ide>
<ide> from numpy.testing import *
<ide> set_package_path()
<del>from numpy import linalg, arange, float64, array
<add>import numpy as np
<add>from numpy import linalg, arange, float64, array, dot, transpose
<ide> restore_path()
<ide>
<ide> rlevel = 1
<ide> def te... | 1 |
PHP | PHP | remove test case that is no longer useful | a7708c914ff1bc12232cb8650723c69f9ab26f33 | <ide><path>lib/Cake/Test/Case/TestSuite/CakeTestSuiteDispatcherTest.php
<del><?php
<del>/**
<del> * CakeTestSuiteDispatcherTest file
<del> *
<del> * Test Case for CakeTestSuiteDispatcher class
<del> *
<del> * PHP version 5
<del> *
<del> * CakePHP : Rapid Development Framework (http://cakephp.org)
<del> * Copyright (c) ... | 1 |
PHP | PHP | fix parse errors in 7.2 | ce0b38e57c290115eb9a0fd7e3b4fff8adaeffa7 | <ide><path>tests/TestCase/Mailer/Transport/SmtpTransportTest.php
<ide> public function testConnectEhloTls()
<ide> "220 Welcome message\r\n",
<ide> "250 Accepted\r\n",
<ide> "220 Server ready\r\n",
<del> "250 Accepted\r\n",
<add> "250 Accepted... | 1 |
Javascript | Javascript | fix select switching to multiple in ie | eaa68b8e6b9c2628ecc1f841a162872cb8fcb18a | <ide><path>src/browser/ui/dom/components/ReactDOMSelect.js
<ide> var ReactDOMSelect = ReactCompositeComponent.createClass({
<ide> updateOptions(this, LinkedValueUtils.getValue(this));
<ide> },
<ide>
<del> componentDidUpdate: function() {
<add> componentDidUpdate: function(prevProps) {
<ide> var value = Lin... | 1 |
Javascript | Javascript | add strict equalities in src/core/stream.js | 4b54d6fd433462761bb58a0b56e657727d7f5274 | <ide><path>src/core/stream.js
<ide> var FlateStream = (function FlateStreamClosure() {
<ide>
<ide> var cmf = str.getByte();
<ide> var flg = str.getByte();
<del> if (cmf == -1 || flg == -1) {
<add> if (cmf === -1 || flg === -1) {
<ide> error('Invalid header in flate stream: ' + cmf + ', ' + flg);
<i... | 1 |
Ruby | Ruby | remove unused delegate | c56a4a4f516b3de4685935650b560221c0427bc1 | <ide><path>railties/lib/rails/engine/railties.rb
<ide> def each(*args, &block)
<ide> def -(others)
<ide> _all - others
<ide> end
<del>
<del> delegate :engines, to: "self.class"
<ide> end
<ide> end
<ide> end | 1 |
Go | Go | fix typo in error message | 93405dd037ffb54e7e72d9d36be4a16d1d76fa50 | <ide><path>daemon/container_unix.go
<ide> func (daemon *Daemon) populateCommand(c *Container, env []string) error {
<ide> ipc.HostIpc = c.hostConfig.IpcMode.IsHost()
<ide> if ipc.HostIpc {
<ide> if _, err := os.Stat("/dev/shm"); err != nil {
<del> return fmt.Errorf("/dev/shm is not mounted, but must be for --... | 1 |
Text | Text | adjust changelog for av & ap | d1fb5d594997c93bc18b08943947603c3fa024b9 | <ide><path>actionpack/CHANGELOG.md
<del>* Use a case insensitive URI Regexp for #asset_path.
<add>* ActionView extracted from ActionPack
<ide>
<del> This fix a problem where the same asset path using different case are generating
<del> different URIs.
<del>
<del> Before:
<del>
<del> image_tag("HTTP... | 2 |
Python | Python | replace try/except with contextlib.suppress() | c10f2266222c434485889b08cc1463acdb8fa169 | <ide><path>rest_framework/fields.py
<add>import contextlib
<ide> import copy
<ide> import datetime
<ide> import decimal
<ide> class BooleanField(Field):
<ide> NULL_VALUES = {'null', 'Null', 'NULL', '', None}
<ide>
<ide> def to_internal_value(self, data):
<del> try:
<add> with contextlib.suppress(... | 8 |
Javascript | Javascript | consolidate http2 tests in one file | 2adf68035c0c8f4106d927568da40baa59ec599a | <ide><path>test/parallel/test-http2-server-destroy-before-additional.js
<del>'use strict';
<del>
<del>const common = require('../common');
<del>if (!common.hasCrypto)
<del> common.skip('missing crypto');
<del>const assert = require('assert');
<del>const h2 = require('http2');
<del>
<del>const server = h2.createServer(... | 8 |
Text | Text | add libasound2 and libgbm1, remove python notice | b9dee1966e184ba8b8597bcf407aab017f301abf | <ide><path>README.md
<ide> An archive is available for people who don't want to install `atom` as root.
<ide> This version enables you to install multiple Atom versions in parallel. It has been built on Ubuntu 64-bit,
<ide> but should be compatible with other Linux distributions.
<ide>
<del>1. Install dependencies (on... | 1 |
PHP | PHP | fix typehint and update errors reported by psalm | ba97442f6c477ed943c20b11a793e285ce71219e | <ide><path>src/Datasource/LocatorInterface.php
<ide> public function get(string $alias, array $options = []);
<ide> * Set a repository instance.
<ide> *
<ide> * @param string $alias The alias to set.
<del> * @param \Cake\Datasource\RepositoryInterface $object The repository to set.
<add> * @param... | 5 |
PHP | PHP | restrict comparison against hardcoded integers | 47580bff887078d514bc45ce20c8c1677820cf27 | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> public function validateGt($attribute, $value, $parameters)
<ide>
<ide> $comparedToValue = $this->getValue($parameters[0]);
<ide>
<del> if (is_null($comparedToValue) && is_numeric($parameters[0])) {
<add> if (is_null($co... | 1 |
Text | Text | add v2.18.0-beta.1 to changelog | 39b18554c7cd59853cfb1f14e1e0c21113881310 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.18.0-beta.1 (November 29, 2017)
<add>
<add>- [#14590](https://github.com/emberjs/ember.js/pull/14590) [DEPRECATION] Deprecate using `targetObject`.
<add>- [#15754](https://github.com/emberjs/ember.js/pull/15754) [CLEANUP] Remove `router.router` deprecati... | 1 |
Ruby | Ruby | move autoremove code to util and add tests | f068f74f55720c4052888d5e8c1103ed439e57b8 | <ide><path>Library/Homebrew/cleanup.rb
<ide> def prune_prefix_symlinks_and_directories
<ide> end
<ide>
<ide> def self.autoremove(dry_run: false)
<add> require "utils/autoremove"
<ide> require "cask/caskroom"
<ide>
<ide> # If this runs after install, uninstall, reinstall or upgrade,
<ide> def ... | 5 |
Python | Python | fix bad test for unknown hook type | 878c43588cce650dd91eddfa4a924ea49893df5e | <ide><path>tests/providers/common/sql/operators/test_sql.py
<ide> def test_get_hook(self, mock_get_conn, database):
<ide> mock_get_conn.assert_called_once_with(self.conn_id)
<ide>
<ide> def test_not_allowed_conn_type(self, mock_get_conn):
<del> mock_get_conn.return_value = Connection(conn_id='sql_de... | 1 |
Javascript | Javascript | remove "const" in uncompiled code | 16a39b8f02f7db9df16b64e41d145bd4f0cb250a | <ide><path>packages/react/index.js
<ide> function testMinificationUsedDCE() {
<ide> try {
<ide> // use scoped variable for our initial test, in case
<ide> // 'top-level' mangling is not enabled.
<del> const source = testMinificationUsedDCE.toString();
<del> const longVariableName = true;
<add> var so... | 1 |
Go | Go | remove engine from trust | 9e50bf6270f426f6ef6649b1985036988b207407 | <ide><path>daemon/daemon.go
<ide> type Daemon struct {
<ide> containerGraph *graphdb.Database
<ide> driver graphdriver.Driver
<ide> execDriver execdriver.Driver
<del> trustStore *trust.TrustStore
<ide> statsCollector *statsCollector
<ide> defaultLogConfig runconfig.LogConfig
<ide> Regist... | 6 |
Python | Python | add chinese.defaults.use_jieba setting, for ud | 9b406181cdc7061e9c5545fdc4d3dfa599650b42 | <ide><path>examples/training/conllu.py
<ide>
<ide> import conll17_ud_eval
<ide>
<add>import spacy.lang.zh
<add>
<add>spacy.lang.zh.Chinese.Defaults.use_jieba = False
<add>
<ide> random.seed(0)
<ide> numpy.random.seed(0)
<ide>
<ide><path>spacy/lang/zh/__init__.py
<ide> class ChineseDefaults(Language.Defaults):
<ide> ... | 2 |
Javascript | Javascript | estimate the size of decoded streams in advance | b3024db67708eee5b9106708406deae87f525eda | <ide><path>src/core/crypto.js
<ide> var CipherTransform = (function CipherTransformClosure() {
<ide> this.streamCipherConstructor = streamCipherConstructor;
<ide> }
<ide> CipherTransform.prototype = {
<del> createStream: function CipherTransform_createStream(stream) {
<add> createStream: function CipherTr... | 5 |
Ruby | Ruby | fix scaffold test | 749f6e6bd996e91debc83b420d5aadfd3f40eac2 | <ide><path>railties/test/generators/scaffold_controller_generator_test.rb
<ide> def test_model_name_option
<ide>
<ide> assert_file "app/views/admin/users/index.html.erb" do |content|
<ide> assert_match(%{"New user", new_admin_user_path}, content)
<add> assert_match(%{"Show this user", [:admin, user]}, c... | 1 |
Javascript | Javascript | introduce settypeof helper to parserhelpers | e5c8525fdbd11cf08ec5743e838b612c9a0262a2 | <ide><path>lib/ParserHelpers.js
<ide> Author Tobias Koppers @sokra
<ide> */
<ide> "use strict";
<add>const BasicEvaluatedExpression = require("./BasicEvaluatedExpression");
<add>const ConstDependency = require("./dependencies/ConstDependency");
<add>
<ide> const ParserHelpers = exports;
<ide>
<ide> ParserHelpers.addP... | 1 |
Text | Text | remove incorrect synchronous label | 71a48c338a7e1a6fe2474f7925009fdfb82938d9 | <ide><path>doc/api/fs.md
<ide> added: REPLACEME
<ide> retries. This option is ignored if the `recursive` option is not `true`.
<ide> **Default:** `100`.
<ide>
<del>Synchronously removes files and directories (modeled on the standard POSIX `rm`
<del>utility). Resolves the `Promise` with no arguments on success.... | 1 |
PHP | PHP | use same condition | 7299d016862c5163570c9c7aa86a95fc26234521 | <ide><path>src/Illuminate/Notifications/resources/views/email.blade.php
<ide> <td style="{{ $fontFamily }} {{ $style['email-body_cell'] }}">
<ide> <!-- Greeting -->
<ide> <h1 style="{{ $style['header-1'] ... | 1 |
Java | Java | integrate deviceconfig into reactnativepanelapps | 2b845d5585c08355ca14c424a424c68f0cf1c62e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public void removeReactInstanceEventListener(
<ide> mReactInstanceEventListeners.remove(listener);
<ide> }
<ide>
<add> /** @return current ReactApplicationContext */
<ide> @VisibleForTesting
<ide> public @Nullable React... | 1 |
Python | Python | remove ma out= workaround | 6bb3fc4e51633104f93bdc5f647058dcf4cf5f68 | <ide><path>numpy/ma/extras.py
<ide> def _median(a, axis=None, out=None, overwrite_input=False):
<ide> s = mid.sum(out=out)
<ide> if not odd:
<ide> s = np.true_divide(s, 2., casting='safe', out=out)
<del> # masked ufuncs do not fullfill `returned is out` (gh-8416)
<... | 1 |
Python | Python | fix f821 flake8 warning (x47) | 2ab78325f079781009d5300cc85ce7f6af6c2576 | <ide><path>examples/contrib/run_swag.py
<ide> def read_swag_examples(input_file, is_training=True):
<ide> lines = []
<ide> for line in reader:
<ide> if sys.version_info[0] == 2:
<del> line = list(unicode(cell, "utf-8") for cell in line)
<add> line = list(unicode... | 21 |
PHP | PHP | add class renames to upgradeshell | 36ff2f68a6a5ff6674fea76f25c262bfa5e58313 | <ide><path>lib/Cake/Console/Command/UpgradeShell.php
<ide> /**
<ide> * A shell class to help developers upgrade applications to CakePHP 3.0
<ide> *
<del> * @package Cake.Console.Command
<ide> */
<ide> class UpgradeShell extends Shell {
<ide>
<ide> public function locations() {
<ide> }
<ide> }
<ide>
<add>/... | 1 |
Text | Text | add link to django rest marshmallow | ab296ced4ea66b1655313ece62551e6cdf1ecb19 | <ide><path>docs/api-guide/serializers.md
<ide> A new interface for controlling this behavior is currently planned for REST fram
<ide>
<ide> The following third party packages are also available.
<ide>
<add>## Django REST marshmallow
<add>
<add>The [django-rest-marshmallow][django-rest-marshmallow] package provides an... | 1 |
Go | Go | use prefix naming for create tests | 27a27b73880c4e79d23b65c9032264a4a8fca1cd | <ide><path>integration-cli/docker_cli_create_test.go
<ide> import (
<ide> )
<ide>
<ide> // Make sure we can create a simple container with some args
<del>func TestDockerCreateArgs(t *testing.T) {
<add>func TestCreateArgs(t *testing.T) {
<ide> runCmd := exec.Command(dockerBinary, "create", "busybox", "command", "arg1"... | 1 |
PHP | PHP | remove comment bloat from route\filter class | ae9824f80b5e8dc66fa991c9eb37bb95c38d69f1 | <ide><path>system/route/filter.php
<ide> public static function call($filters, $parameters = array(), $override = false)
<ide> static::$filters = require APP_PATH.'filters'.EXT;
<ide> }
<ide>
<del> // --------------------------------------------------------------
<del> // Filters can be comma-delimited, so spin... | 1 |
Python | Python | fix some literals | 05f66ad73543db207791ea5d6a2de2e8eaaf1640 | <ide><path>flask/testsuite/basic.py
<ide> def index():
<ide> return 'Hello World'
<ide> rv = app.test_client().open('/', method='OPTIONS')
<ide> self.assert_equal(sorted(rv.allow), ['GET', 'HEAD', 'OPTIONS', 'POST'])
<del> self.assert_equal(rv.data, '')
<add> self.assert_equal(... | 9 |
Python | Python | fix issue with tf dot with dynamic shapes | 0c842391d34d444393ab0f55382d11a4c5105994 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def dot(x, y):
<ide> >>> y = K.placeholder(shape=(3, 4))
<ide> >>> xy = K.dot(x, y)
<ide> >>> xy
<del> <tf.Tensor 'MatMul_9:0' shape=(2, 4) dtype=float32>
<add> <tf.Tensor 'MatMul_9:0' shape=(32, 28, 4) dtype=float32>
<ide> `... | 1 |
Text | Text | add note regarding special case of 0 stat.size | 4d5ff25a813fd18939c9f76b17e36291e3ea15c3 | <ide><path>doc/api/fs.md
<ide> A numeric device identifier if the file represents a device.
<ide>
<ide> The size of the file in bytes.
<ide>
<add>If the underlying file system does not support getting the size of the file,
<add>this will be `0`.
<add>
<ide> #### `stats.blksize`
<ide>
<ide> * {number|bigint} | 1 |
Text | Text | fix example code | bc24a1588eb064f2e4d74e8cc60ad6b22e9427b1 | <ide><path>docs/advanced/AsyncActions.md
<ide> function requestPosts(reddit) {
<ide> };
<ide> }
<ide>
<del>export const REQUEST_POSTS = 'REQUEST_POSTS';
<del>function requestPosts(reddit) {
<add>export const RECEIVE_POSTS = 'RECEIVE_POSTS'
<add>function receivePosts(reddit, json) {
<ide> return {
<del> type: RE... | 1 |
Javascript | Javascript | fix permanent deoptimizations | b45abfda5f34bacbf2dc5f55fa95dd9620031cc7 | <ide><path>lib/repl.js
<ide> REPLServer.prototype.createContext = function() {
<ide> }
<ide> }
<ide>
<del> const module = new Module('<repl>');
<add> var module = new Module('<repl>');
<ide> module.paths = Module._resolveLookupPaths('<repl>', parentModule, true) || [];
<ide>
<del> const require = internalM... | 1 |
Go | Go | allow parallel stop | 2155b46915a4df821405d26f576d9fae9fa5178e | <ide><path>cli/command/container/stop.go
<ide> func NewStopCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide>
<ide> func runStop(dockerCli *command.DockerCli, opts *stopOptions) error {
<ide> ctx := context.Background()
<add> timeout := time.Duration(opts.time) * time.Second
<ide>
<ide> var errs []string
... | 2 |
Ruby | Ruby | fix requirement equality | 9dfc5e39e8f6898588df6c31823c0deb3b0c7f80 | <ide><path>Library/Homebrew/requirement.rb
<ide> def env_proc
<ide> self.class.env_proc
<ide> end
<ide>
<del> def eql?(other)
<add> def ==(other)
<ide> instance_of?(other.class) && name == other.name && tags == other.tags
<ide> end
<add> alias_method :eql?, :==
<ide>
<ide> def hash
<ide> name.has... | 2 |
Text | Text | fix typo cppu | 334be37bff410967dccdccad4e55e17f3c7fc846 | <ide><path>guide/russian/computer-hardware/cpu/index.md
<ide> localeTitle: ЦПУ
<ide>
<ide> Gigahertz - не единственный определяющий фактор в фактической скорости процессора, поскольку разные процессоры с одинаковой скоростью гигагерца (также известные как тактовая частота) могут выполнять реальные задачи на разных ско... | 1 |
Java | Java | delay databuffer release until stream is closed | 9d7b8503d0ee420cfa1ba1a2ffda0500b61042bb | <ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java
<ide> public Flux<XMLEvent> decode(Publisher<DataBuffer> inputStream, ResolvableType e
<ide> try {
<ide> InputStream is = dataBuffer.asInputStream();
<ide> Iterator eventReader = inputFactory.createXMLEventRe... | 1 |
Go | Go | add migratev1 package | 5fc0e1f324b05ce8cc7536cd807995c629e0843d | <ide><path>migrate/v1/migratev1.go
<add>package v1
<add>
<add>import (
<add> "errors"
<add> "fmt"
<add> "io/ioutil"
<add> "os"
<add> "path/filepath"
<add>
<add> "encoding/json"
<add>
<add> "github.com/Sirupsen/logrus"
<add> "github.com/docker/distribution/digest"
<add> "github.com/docker/distribution/reference"
<add> "... | 2 |
Javascript | Javascript | fix deprecation message in `util.pump` | 27a91387ae79a3b7bc2b00a40a17c1b7846da55b | <ide><path>lib/util.js
<ide> function pump(readStream, writeStream, callback) {
<ide> });
<ide> }
<ide> exports.pump = exports.deprecate(pump,
<del> 'util.pump() is deprecated. Use ReadableStream.prototype.pump() instead.');
<add> 'util.pump() is deprecated. Use readableStream.pipe() instead.');
<ide>
<ide>
<... | 1 |
PHP | PHP | throw warning when using underscored fixture names | f86a585210543c00cc55c62145f68760a744d90d | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> protected function _loadFixtures($test)
<ide> list($plugin, $name) = explode('.', $pathName);
<ide> // Flip vendored plugin separators
<ide> $path = str_replace('/', '\\', $plugin);
<add> ... | 47 |
Ruby | Ruby | add comment for config_accessor method | aa1ac1ca8cf9557dae72604a48de1f0e58515b40 | <ide><path>activesupport/lib/active_support/configurable.rb
<ide> def configure
<ide> yield config
<ide> end
<ide>
<add> # Allows you to add shortcut so that you don't have to refer to attribute through config.
<add> # Also look at the example for config to contrast.
<add> #
<add> # ... | 1 |
PHP | PHP | add a test for load model being plugin-prefixed | 91e80161171128a538385b1153805e50737c301a | <ide><path>tests/TestCase/Datasource/ModelAwareTraitTest.php
<ide> public function testLoadModel()
<ide> $this->assertInstanceOf('Cake\ORM\Table', $stub->Comments);
<ide> }
<ide>
<add> /**
<add> * test loadModel() with plugin prefixed models
<add> *
<add> * Load model should not be called wi... | 1 |
PHP | PHP | add support for ftp adapter in filesystem | 648826ce52981353bbfda26e53d546f9d54d101d | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> use OpenCloud\Rackspace;
<ide> use League\Flysystem\FilesystemInterface;
<ide> use League\Flysystem\Filesystem as Flysystem;
<add>use League\Flysystem\Adapter\Ftp as FtpAdapter;
<ide> use League\Flysystem\Rackspace\RackspaceAdapter;
<ide> use League\Flysy... | 1 |
PHP | PHP | backup the locale property | 2ea2cf39e72d243b97f0fba42f85e55fb65e8f73 | <ide><path>tests/TestCase/Database/Type/DateTypeTest.php
<ide> public function testMarshal($value, $expected)
<ide> public function testMarshalWithLocaleParsing()
<ide> {
<ide> $this->type->useLocaleParser();
<del> $expected = new Time('13-10-2013');
<add> $expected = new Date('13-10-2013'... | 2 |
PHP | PHP | add missing return | 3ed442d1ad5112b75d7c60fd8326ff2af7b51eab | <ide><path>src/Illuminate/Console/Events/ScheduledTaskFailed.php
<ide> class ScheduledTaskFailed
<ide> *
<ide> * @param \Illuminate\Console\Scheduling\Event $task
<ide> * @param \Throwable $exception
<add> * @return void
<ide> */
<ide> public function __construct(Event $task, Throwable $... | 1 |
Go | Go | gofmt whole directory | edf541c22b5253a980ee061b35110d0da8fdb905 | <ide><path>api/client/stats.go
<ide> func (cli *DockerCli) CmdStats(args ...string) error {
<ide> if len(errs) > 0 {
<ide> return fmt.Errorf("%s", strings.Join(errs, ", "))
<ide> }
<del> for _ = range time.Tick(500 * time.Millisecond) {
<add> for range time.Tick(500 * time.Millisecond) {
<ide> printHeader()
<ide>... | 4 |
Javascript | Javascript | add nativemethodsmixin docs to website | 2d7747ecb7a21caccd30c15cd254cb2325e94b3c | <ide><path>website/server/extractDocs.js
<ide> var apis = [
<ide> '../Libraries/Interaction/InteractionManager.js',
<ide> '../Libraries/LayoutAnimation/LayoutAnimation.js',
<ide> '../Libraries/LinkingIOS/LinkingIOS.js',
<add> '../Libraries/ReactIOS/NativeMethodsMixin.js',
<ide> '../Libraries/Network/NetInfo.js... | 1 |
Javascript | Javascript | add 手机百度 to the showcase page | 228abd4ff5e279b72a5b703799bd793178be6506 | <ide><path>website/src/react-native/showcase.js
<ide> var featured = [
<ide> infoLink: 'https://engineering.huiseoul.com/building-a-conversational-e-commerce-app-in-6-weeks-with-react-native-c35d46637e07',
<ide> infoTitle: 'Building a conversational E-commerce app in 6 weeks with React Native',
<ide> },
<add>... | 1 |
Ruby | Ruby | remove a duplicate initializer | 34aae6d739918d972e5273b56c767dae76aa7c00 | <ide><path>railties/lib/rails/initializer.rb
<ide> def self.run(initializer = nil, config = nil)
<ide> plugin_loader.load_plugins
<ide> end
<ide>
<del> #
<del> # # pick up any gems that plugins depend on
<del> Initializer.default.add :add_gem_load_paths do
<del> require 'rails/gem_dependency'
<del> # TO... | 1 |
Text | Text | fix a typo | 2d53f70fa20df3b72d996304db2d631fd2fefa6a | <ide><path>CHANGELOG.md
<ide> - Added callable support to operatorForWhere on Collection ([#41414](https://github.com/laravel/framework/pull/41414), [#41424](https://github.com/laravel/framework/pull/41424))
<ide> - Added partial queue faking ([#41425](https://github.com/laravel/framework/pull/41425))
<ide> - Added --n... | 1 |
Ruby | Ruby | fix clang build regex | df8edc94d6237cc58e8eb51d537c7ddb18687e98 | <ide><path>Library/Homebrew/utils.rb
<ide> def clang_version
<ide>
<ide> def clang_build_version
<ide> @clang_build_version ||= if File.exist? "/usr/bin/clang"
<del> `/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d{2,3}(\.\d)*)]
<add> `/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d+(\.\d+)*)... | 1 |
Python | Python | update asset logic and add import-url | f3853442864bc691aa12d99b5b0b32819e3cc3f5 | <ide><path>spacy/cli/project.py
<ide> def fetch_asset(
<ide> dest_path = (project_path / dest).resolve()
<ide> if dest_path.exists() and checksum:
<ide> # If there's already a file, check for checksum
<del> # TODO: add support for caches
<add> # TODO: add support for caches (dvc import-url... | 1 |
Ruby | Ruby | add a metal to minimal examples for comparison | 311d686d031bbc7074bddd8d56ea42780a204b35 | <ide><path>actionpack/examples/minimal.rb
<ide> def report(env, response)
<ide> out.puts '---'
<ide> end
<ide>
<del> def self.run(app, n)
<add> def self.run(app, n, label = nil)
<add> puts '=' * label.size, label, '=' * label.size if label
<ide> env = { 'n' => n, 'rack.input' => StringIO.new(''), 'rack.... | 1 |
Python | Python | implement primary key changing | cd583d6dbd222ae61331a6965b0e1fc86c974c50 | <ide><path>django/db/backends/mysql/introspection.py
<ide> def get_indexes(self, cursor, table_name):
<ide> for row in rows:
<ide> if row[2] in multicol_indexes:
<ide> continue
<del> indexes[row[4]] = {'primary_key': (row[2] == 'PRIMARY'), 'unique': not bool(row[1])}
<add>... | 4 |
Python | Python | fix paramiko test with pytest 3.4 | cdcd98235105132dfc2d88a91d657b0ce29a0056 | <ide><path>libcloud/test/test_init.py
<ide>
<ide> class TestUtils(unittest.TestCase):
<ide> def test_init_once_and_debug_mode(self):
<add> if have_paramiko:
<add> paramiko_logger = paramiko.util.logging.getLogger()
<add> paramiko_logger.setLevel(logging.NOTSET)
<add>
<ide> # De... | 1 |
Ruby | Ruby | remove the configuration key in the correct place | ea26229abefb3429e8edbe5ba8313ad3edff23e4 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def postgresql_connection(config) # :nodoc:
<ide> # Forward any unused config params to PGconn.connect.
<ide> [:statement_limit, :encoding, :min_messages, :schema_search_path,
<ide> :schema_order, :adapter, :poo... | 1 |
PHP | PHP | fix translator package initialization from cache | 5f1e0f45dab803c4efb1a85a8f6fe8c6a5ea6f22 | <ide><path>src/I18n/TranslatorRegistry.php
<ide> public function get($name, $locale = null)
<ide>
<ide> $key = "translations.$name.$locale";
<ide> $translator = $this->_cacher->read($key);
<del> if (!$translator) {
<add> if (!$translator || !$translator->getPackage()) {
<ide> ... | 1 |
Javascript | Javascript | add source and target accessors | f20f416a1755ac619ee9e2c44e3576b4c8e72022 | <ide><path>d3.geo.js
<ide> function d3_geo_boundsPolygon(o, f) {
<ide> }
<ide> // From http://williams.best.vwh.net/avform.htm#Intermediate
<ide> d3.geo.greatcircle = function() {
<add> var source = d3_geo_greatcircleSource,
<add> target = d3_geo_greatcircleTarget,
<add> n = 100,
<add> radius = 6371; //... | 4 |
Ruby | Ruby | add support for -march=sandybridge | 10feb681282be3cdbe3414739b2d10ef44c25e2c | <ide><path>Library/Homebrew/hardware.rb
<ide> def optimization_flags
<ide> @optimization_flags ||= {
<ide> native: arch_flag("native"),
<ide> nehalem: "-march=nehalem",
<add> sandybridge: "-march=sandybridge",
<ide> core2: "-march... | 1 |
PHP | PHP | apply fixes from styleci | 2efc9531debaddeec0fb7d605d627367102b5c68 | <ide><path>src/Illuminate/Notifications/ChannelManager.php
<ide>
<ide> namespace Illuminate\Notifications;
<ide>
<del>use Ramsey\Uuid\Uuid;
<ide> use Illuminate\Mail\Markdown;
<ide> use InvalidArgumentException;
<ide> use Illuminate\Support\Manager;
<ide> use Nexmo\Client as NexmoClient;
<del>use Illuminate\Support\C... | 1 |
Python | Python | improve error handling when docker restarts | d8f7109182dc246fb8f0b183199e611e9470e0e7 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> except Exception as e:
<ide> # Correct issue#649
<ide> logger.error("{} plugin - Cannot get Docker version ({})".format(self.plugin_name, e))
<add> # We may have lost connection remove v... | 1 |
Javascript | Javascript | avoid retry of unserializable entries in pack | e425ab934510096abc711736e932a9dfaf4e27e7 | <ide><path>lib/cache/PackFileCacheStrategy.js
<ide> class Pack {
<ide> write(this.unserializable);
<ide> write(this.lastAccess);
<ide> for (const [identifier, data] of this.content) {
<add> if (this.unserializable.has(identifier)) continue;
<ide> write(identifier);
<ide> if (typeof data === "function") {
... | 1 |
Ruby | Ruby | add more spec cases | 332acbbfc3bc5c8e129c236c3e98580a4a36183a | <ide><path>Library/Homebrew/test/os/mac/software_spec_spec.rb
<ide> allow(OS::Mac).to receive(:version).and_return(OS::Mac::Version.new(sierra_os_version))
<ide> end
<ide>
<del> it "doesn't adds a dependency if it doesn't meet OS version requirements" do
<del> spec.uses_from_macos("foo", after: :high... | 1 |
Python | Python | fix python3 compatibility | bd78f25f122bdbc640ff26f6390b730167c4d091 | <ide><path>glances/core/glances_monitor_list.py
<ide> # along with this program. If not, see <http://www.gnu.org/licenses/>.
<ide>
<ide> # Import system lib
<del>import subprocess
<ide> import re
<add>import subprocess
<ide>
<ide> # Import Glances lib
<ide> from glances.core.glances_globals import glances_processes
<... | 7 |
Javascript | Javascript | fix enum definition | 35afa72ef6217bf80c324702af90ce47b5315478 | <ide><path>lib/logging/Logger.js
<ide>
<ide> "use strict";
<ide>
<del>/**
<del> * @enum {string}
<del> */
<ide> const LogType = Object.freeze({
<del> error: "error", // message, c style arguments
<del> warn: "warn", // message, c style arguments
<del> info: "info", // message, c style arguments
<del> log: "log", // m... | 1 |
Java | Java | improve error handling in collectionfactory | 86f99ec8f75b1a284da874a84729d5197d69d28a | <ide><path>spring-core/src/main/java/org/springframework/core/CollectionFactory.java
<ide> import org.springframework.util.MultiValueMap;
<ide>
<ide> /**
<del> * Factory for collections, being aware of Java 5 and Java 6 collections.
<del> * Mainly for internal use within the framework.
<del> *
<add> * Factory for coll... | 2 |
Javascript | Javascript | stream readable needreadable state | 3daa4b1f76ed413fe984c514c30e4f7bd5abb95e | <ide><path>test/parallel/test-stream-readable-needReadable.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const Readable = require('stream').Readable;
<add>
<add>const readable = new Readable({
<add> read: () => {}
<add>});
<add>
<add>// Initialized to false... | 1 |
Javascript | Javascript | check null proto-of-proto in util.inspect() | 7a39d892d6a257a9443c8e9bedad6d412359864b | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(
<ide> '}'
<ide> );
<ide> }
<add>
<add>{
<add> // Confirm null prototype of generator prototype displays as expected.
<add>
<add> function getProtoOfProto() {
<add> return Object.getPrototypeOf(Object.getPrototypeOf(function* () {}));
<... | 1 |
Ruby | Ruby | remove unused line in test setup | b131cfba055bfbf25f3785c5235c1edbf04ff9f1 | <ide><path>activesupport/test/core_ext/module_test.rb
<ide> class Cd
<ide>
<ide> Someone = Struct.new(:name, :place) do
<ide> delegate :street, :city, :to_f, :to => :place
<del> delegate :state, :to => :@place
<ide> delegate :upcase, :to => "place.city"
<ide> end
<ide> | 1 |
Ruby | Ruby | redirect stdout to stderr when it is not a tty | 466f29a16a173c2c381541884649f272fcf51357 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> module Homebrew
<ide>
<ide> def update_preinstall_header(args:)
<ide> @update_preinstall_header ||= begin
<del> ohai_stdout_or_stderr "Auto-updated Homebrew!" if args.preinstall?
<add> ohai "Auto-updated Homebrew!" if args.preinstall?
<ide> t... | 2 |
Ruby | Ruby | remove unused scopes | 73ec5a26a345846df52d547980f738d5442ef949 | <ide><path>activerecord/test/models/author.rb
<ide> def ratings
<ide>
<ide> has_many :posts_with_signature, ->(record) { where("posts.title LIKE ?", "%by #{record.name.downcase}%") }, class_name: "Post"
<ide>
<del> scope :relation_include_posts, -> { includes(:posts) }
<del> scope :relation_include_tags, -> { in... | 3 |
Python | Python | add basic tests for assert_array_almost_equal | bfc33fd7cfef5f74d73f6df0282660e26d761942 | <ide><path>numpy/testing/tests/test_utils.py
<ide> import numpy as N
<ide> from numpy.testing.utils import *
<ide>
<del>class TestEqual:
<add>class _GenericTest:
<add> def __init__(self, assert_func):
<add> self._assert_func = assert_func
<add>
<ide> def _test_equal(self, a, b):
<del> assert_array... | 1 |
Python | Python | add warning message re issue | e19f4ee719af1a4ce8391c6934ff3edf4cdb7ca3 | <ide><path>spacy/_ml.py
<ide> def link_vectors_to_models(vocab):
<ide> data = ops.asarray(vectors.data)
<ide> # Set an entry here, so that vectors are accessed by StaticVectors
<ide> # (unideal, I know)
<del> thinc.extra.load_nlp.VECTORS[(ops.device, vectors.name)] = data
<add> key = (ops.device, vect... | 1 |
Java | Java | require ehcache 2.10+ | 81057a2cee2990de1a69a191a3cb5e379822a82b | <ide><path>spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheFactoryBean.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<id... | 2 |
Javascript | Javascript | add transparancyfactor in fbxloader | 3c5f1416cc22254e342327378f8917da6257ef32 | <ide><path>examples/jsm/loaders/FBXLoader.js
<ide> var FBXLoader = ( function () {
<ide> break;
<ide>
<ide> case 'TransparentColor':
<add> case 'TransparencyFactor':
<ide> parameters.alphaMap = self.getTexture( textureMap, child.ID );
<ide> parameters.transparent = true;
<ide> break; | 1 |
Javascript | Javascript | keep the zones in the right places | 120bb342e8e5140478e71ec3c3e348a8b305ea80 | <ide><path>client/src/templates/Challenges/classic/Editor.js
<ide> const toStartOfLine = range => {
<ide> return range.setStartPosition(range.startLineNumber, 1);
<ide> };
<ide>
<add>const toLastLine = range => {
<add> return range.setStartPosition(range.endLineNumber, 1);
<add>};
<add>
<ide> class Editor extends C... | 1 |
Javascript | Javascript | improve the `typestest` target in the gulpfile | 7e759c6e2b06652884b2176581e829fd83264194 | <ide><path>gulpfile.js
<ide> var GH_PAGES_DIR = BUILD_DIR + "gh-pages/";
<ide> var SRC_DIR = "src/";
<ide> var LIB_DIR = BUILD_DIR + "lib/";
<ide> var DIST_DIR = BUILD_DIR + "dist/";
<del>var TYPES_BUILD_DIR = BUILD_DIR + "types/";
<add>var TYPES_DIR = BUILD_DIR + "types/";
<add>var TYPESTEST_DIR = BUILD_DIR + "typeste... | 1 |
PHP | PHP | update cache to use configure for settings | 14033106364a47e0705a10fcd2291381d4779bbd | <ide><path>App/Config/cache.php
<ide> namespace App\Config;
<ide>
<ide> use Cake\Core\Configure;
<del>use Cake\Cache\Cache;
<ide>
<ide> /**
<ide> * Turn off all caching application-wide.
<ide> * Configure the cache used for general framework caching. Path information,
<ide> * object listings, and translation cach... | 4 |
Javascript | Javascript | add default value and set urlmodulesplugin | ad51d66e95e0683c9096a1eb431ad7ab3d355039 | <ide><path>lib/WebpackOptionsApply.js
<ide> const OptionsApply = require("./OptionsApply");
<ide>
<ide> const JavascriptModulesPlugin = require("./JavascriptModulesPlugin");
<ide> const JsonModulesPlugin = require("./JsonModulesPlugin");
<add>const UrlModulesPlugin = require("./url/UrlModulesPlugin");
<add>const WebAs... | 2 |
Javascript | Javascript | add js stub for performanceobserver specs | a671d61b6de5f106e9fd803a73fddb4b6fa6656b | <ide><path>Libraries/Performance/PerformanceObserver.js
<add>/**
<add> * Copyright (c) Meta Platforms, Inc. and affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * @flow strict
<add> *... | 1 |
Text | Text | update version in examples [ci skip] | 9c940eab94cd781ef7113b2ae3604e6585ad3d04 | <ide><path>README.md
<ide> python -m spacy download en_core_web_sm
<ide> python -m spacy download en
<ide>
<ide> # pip install .tar.gz archive from path or URL
<del>pip install /Users/you/en_core_web_sm-2.1.0.tar.gz
<del>pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_co... | 2 |
Ruby | Ruby | fix a gramatical mistake | 65263c1b3cc8a903616fc950cdd946be167a1f59 | <ide><path>actionpack/lib/action_controller/base.rb
<ide>
<ide> module ActionController
<ide> # Action Controllers are the core of a web request in \Rails. They are made up of one or more actions that are executed
<del> # on request and then either render a template or redirect to another action. An action is defin... | 1 |
Javascript | Javascript | remove duplicate imports | b556fd7fbe2a6839cd3b7798654713b4036c48a1 | <ide><path>packages/ember-application/lib/ext/controller.js
<ide> import Ember from "ember-metal/core"; // Ember.assert
<ide> import { get } from "ember-metal/property_get";
<ide> import EmberError from "ember-metal/error";
<del>import { inspect } from "ember-metal/utils";
<add>import { inspect, meta } from "ember-meta... | 13 |
Ruby | Ruby | fix failing test because of timezone difference | 3fc53e5ea1074091b4242521d26c5aec1439f98d | <ide><path>activerecord/test/cases/fixtures_test.rb
<ide> def test_only_populates_columns_that_exist
<ide> end
<ide>
<ide> def test_preserves_existing_fixture_data
<del> assert_equal(2.weeks.ago.to_date, pirates(:redbeard).created_on.to_date)
<del> assert_equal(2.weeks.ago.to_date, pirates(:redbeard).updated... | 1 |
Mixed | Python | add examples and num_words for vietnamese | 9a824255d3423e6eab8998e9cea54ddc1fd8ac67 | <ide><path>.github/contributors/avi197.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<ad... | 3 |
Javascript | Javascript | fix writefile[sync] for non-seekable files | f69de13bfe1102ff53aa93d40045352441880704 | <ide><path>lib/fs.js
<ide> function futimesSync(fd, atime, mtime) {
<ide> handleErrorFromBinding(ctx);
<ide> }
<ide>
<del>function writeAll(fd, isUserFd, buffer, offset, length, position, callback) {
<add>function writeAll(fd, isUserFd, buffer, offset, length, callback) {
<ide> // write(fd, buffer, offset, length,... | 1 |
Python | Python | fix typo with mt5 init | a46050d0f54b7c90aadcbde40da688625c1c1455 | <ide><path>src/transformers/models/mt5/__init__.py
<ide> def _get_module(self, module_name: str):
<ide> def __getattr__(self, name):
<ide> if name == "MT5Tokenizer":
<ide> return MT5Tokenizer
<del> elif name == name == "MT5TokenizerFast":
<add> elif name == "MT5... | 1 |
Python | Python | extract a helper function from stringconverter | fc89a21ac71dd7f744ecb07fa45239d71bc00704 | <ide><path>numpy/lib/_iotools.py
<ide> def upgrade_mapper(cls, func, default=None):
<ide> for fct, dft in zip(func, default):
<ide> cls._mapper.insert(-1, (cls._getsubdtype(dft), fct, dft))
<ide>
<add> @classmethod
<add> def _find_map_entry(cls, dtype):
<add> # if a converter f... | 1 |
Text | Text | add changes based on recommendations in issue | 4ac1a72630447391417970eafa842983aa2a3377 | <ide><path>guides/source/getting_started.md
<ide> Now that you've seen how to create a controller, an action and a view, let's cre
<ide>
<ide> In the Blog application, you will now create a new _resource_. A resource is the term used for a collection of similar objects, such as posts, people or animals. You can create... | 1 |
Python | Python | improve float64 performance by sse2 | 2e2e9d56d7afb0f57c0518d4d886163134bf96f0 | <ide><path>benchmarks/benchmarks/bench_linalg.py
<ide>
<ide> import numpy as np
<ide>
<del>
<ide> class Eindot(Benchmark):
<ide> def setup(self):
<ide> self.a = np.arange(60000.0).reshape(150, 400)
<ide> def setup(self):
<ide>
<ide> def time_numpy_linalg_lstsq_a__b_float64(self):
<ide> np.lin... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.