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 | fix typo in the hook name | 029cbb35352ed79805da1b3a089e724b05bd2a80 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def build_response(klass)
<ide> include ActionDispatch::Assertions
<ide> class_attribute :_controller_class
<ide> setup :setup_controller_request_and_response
<del> ActiveSupport.run_load_hooks(:action_view_test_case, self)
<a... | 1 |
Ruby | Ruby | change def to attr_reader + alias | 7b2ec381ca5ce88fe62a0a42183b3a5df63ee68b | <ide><path>actionpack/lib/action_dispatch/http/cache.rb
<ide> def fresh?(response)
<ide> end
<ide>
<ide> module Response
<del> attr_reader :cache_control
<add> attr_reader :cache_control, :etag
<add> alias :etag? :etag
<ide>
<ide> def initialize(*)
<ide> status, head... | 1 |
Text | Text | add changelog entry | 7aa4b7dc6bd6ecea1f5009c5549ea69dd59d96d4 | <ide><path>activesupport/CHANGELOG.md
<add>* Fix `to_param` behavior when there are nested empty hashes.
<add>
<add> Before:
<add>
<add> params = {c: 3, d: {}}.to_param # => "&c=3"
<add>
<add> After:
<add>
<add> params = {c: 3, d: {}}.to_param # => "c=3&d="
<add>
<add> Fixes #13892.
<add>
<add>... | 1 |
PHP | PHP | fix types of console\command properties | 306208394bf05f9acebce3663c3cfb7e3b1ac21c | <ide><path>src/Illuminate/Console/Command.php
<ide> class Command extends SymfonyCommand
<ide> /**
<ide> * The console command description.
<ide> *
<del> * @var string|null
<add> * @var string
<ide> */
<ide> protected $description;
<ide>
<ide> /**
<ide> * The console command hel... | 1 |
Javascript | Javascript | convert more tests to use emittereventpromise | 42fb2cc55fc07b99243bb2d22b4e7d1634aeb17e | <ide><path>spec/main-process/atom-application.test.js
<ide> describe('AtomApplication', function () {
<ide>
<ide> const atomApplication = buildAtomApplication()
<ide> const window1 = atomApplication.launch(parseCommandLine([path.join(dirAPath, 'new-file')]))
<add> await emitterEventPromise(window1, 'w... | 1 |
Text | Text | add download links to the latest version | 0579fbb7415836728aff0595cf15ec44ac244f6c | <ide><path>README.md
<ide>
<ide> ## Installation
<ide>
<del>To download a zip, go to the Chart.js on Github
<add>You can download the latest version of [Chart.js on GitHub](https://github.com/chartjs/Chart.js/releases/latest) or just use these [Chart.js CDN](https://cdnjs.com/libraries/Chart.js) links.
<ide>
<ide> T... | 2 |
Ruby | Ruby | add equality to all the things (that matter) | 6e638bba594b6164190d2a6fb96ffa07a20b11f3 | <ide><path>lib/arel/nodes/and.rb
<ide> def left
<ide> def right
<ide> children[1]
<ide> end
<add>
<add> def hash
<add> children.hash
<add> end
<add>
<add> def eql? other
<add> self.class == other.class &&
<add> self.children == other.children
<add> end
<add... | 43 |
PHP | PHP | fix error in fixturetask | dd335cb18393e833733730830d0ce03f32982ee1 | <ide><path>lib/Cake/Console/Command/Task/FixtureTask.php
<ide> public function bake($model, $useTable = false, $importOptions = array()) {
<ide> $schema = $this->_generateSchema($tableInfo);
<ide> }
<ide>
<del> if (!isset($importOptions['records']) && !isset($importOptions['fromTable'])) {
<add> if (empty($impo... | 1 |
Python | Python | drop erronous print statements | 8be4496586519f84b839b07efc74148a3559349e | <ide><path>tests/test_fields.py
<ide> def test_source(self):
<ide> class ExampleSerializer(serializers.Serializer):
<ide> example_field = serializers.CharField(source='other')
<ide> serializer = ExampleSerializer(data={'example_field': 'abc'})
<del> print serializer.is_valid()
<del> ... | 1 |
Python | Python | add flag to build v8 with object_print | dd0c5228acaf5695f96809e50771ead3167b0f44 | <ide><path>configure.py
<ide> 'memory footprint, but also implies no just-in-time compilation ' +
<ide> 'support, thus much slower execution)')
<ide>
<add>parser.add_option('--v8-enable-object-print',
<add> action='store_true',
<add> dest='v8_enable_object_print',
<add> default=False,
<add> ... | 1 |
PHP | PHP | support flush db on clusters | f4e8d5c1f1b72e24baac33c336233cca24230783 | <ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php
<ide>
<ide> use Redis;
<ide> use Closure;
<add>use RedisCluster;
<ide> use Illuminate\Contracts\Redis\Connection as ConnectionContract;
<ide>
<ide> /**
<ide> public function createSubscription($channels, Closure $callback, $method = 'subs
<ide> ... | 2 |
Python | Python | improve train_new_entity_type example | 68ad3669351448fc2f86e38f44406f04335dd72a | <ide><path>examples/training/train_new_entity_type.py
<ide> def main(model=None, new_model_name='animal', output_dir=None, n_iter=20):
<ide> else:
<ide> nlp = spacy.blank('en') # create blank Language class
<ide> print("Created blank 'en' model")
<del>
<ide> # Add entity recognizer to model if ... | 1 |
Text | Text | fix some translation errors | bc3268de39d4eacf01ba3ee8e98e23ef9087bac1 | <ide><path>guide/russian/bootstrap/grid-system/index.md
<ide> ---
<ide> title: Grid System
<del>localeTitle: Сетевая система
<add>localeTitle: Система сеток
<ide> ---
<del>## Сетевая система
<add>## Сиситема сеток
<add>
<ide>
<ide> В кратце: система сеток Bootstrap помогает создавать гибкие макеты. Она состоит из сист... | 1 |
Ruby | Ruby | use respond_to_missing? for orderedoptions | 3ea70f985b1799c27b907724920e5615018e505d | <ide><path>activesupport/lib/active_support/ordered_options.rb
<ide> def method_missing(name, *args)
<ide> end
<ide> end
<ide>
<del> def respond_to?(name)
<add> def respond_to_missing?(name, include_private)
<ide> true
<ide> end
<ide> end
<ide><path>activesupport/test/ordered_options_test.r... | 2 |
Python | Python | add created_at attribute to container | 689d59a1eda84ff780872cd34465d8551aafa8be | <ide><path>libcloud/container/base.py
<ide> def __init__(
<ide> ip_addresses, # type: List[str]
<ide> driver, # type: ContainerDriver
<ide> extra=None, # type: dict
<add> created_at=None, # type: str
<ide> ):
<ide> """
<ide> :param id: Container id.
<ide> def __ini... | 2 |
Javascript | Javascript | remove fs timeouts | b975342e7b1fb708e1be4e277215772e8b714ddd | <ide><path>packager/src/AssetServer/index.js
<ide> const path = require('path');
<ide>
<ide> import type {AssetData} from '../node-haste/lib/AssetPaths';
<ide>
<del>const createTimeoutPromise = timeout => new Promise((resolve, reject) => {
<del> setTimeout(reject, timeout, 'fs operation timeout');
<del>});
<del>func... | 1 |
Python | Python | remove a comment | 1202adbbaebb0b2cbd2d90dd4eb2cd61bed0fc06 | <ide><path>libcloud/dns/drivers/rackspace.py
<ide> class RackspaceDNSResponse(OpenStack_1_1_Response):
<ide> """
<ide>
<ide> def parse_error(self):
<del> # Holy fucking jesus,
<del> # "The request could not be understood by the server due to malformed
<del> # syntax." is returned if record... | 1 |
Javascript | Javascript | add keyboard avoiding view examples | a724c8d95ede7f0bdf5b91901beed701f0fc9c9f | <ide><path>packages/rn-tester/js/examples/KeyboardAvoidingView/KeyboardAvoidingViewExample.js
<ide> const CloseButton = props => {
<ide> {marginHorizontal: props.behavior === 'position' ? 0 : 25},
<ide> ]}>
<ide> <Pressable
<del> onPress={() => props.setModdalOpen(false)}
<add> onPress... | 1 |
PHP | PHP | add type hints to files under validation | 521ac1b30a2d4eb0e15bcded01b8fe08fd1351ce | <ide><path>src/Validation/RulesProvider.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Validation/ValidatableInterface.php
<ide> <?php
<add>... | 14 |
PHP | PHP | fix cs error | a42d24c5d0fcad2e199b3fe7ed53be51f219bd33 | <ide><path>src/Mailer/Mailer.php
<ide> abstract class Mailer implements EventListenerInterface
<ide> *
<ide> * @var string
<ide> */
<del> static public $name;
<add> public static $name;
<ide>
<ide> /**
<ide> * Email instance.
<ide><path>tests/TestCase/Cache/Engine/ApcuEngineTest.php
<ide>... | 2 |
Ruby | Ruby | add deprecation_date and disable_date methods | 2eb34b0b27160ed26f46594ff21bd2a629176398 | <ide><path>Library/Homebrew/formula.rb
<ide> def link_overwrite?(path)
<ide> # @return [Boolean]
<ide> delegate deprecated?: :"self.class"
<ide>
<add> # The date that this {Formula} was or becomes deprecated.
<add> # Returns `nil` if no date is specified.
<add> # @!method deprecation_date
<add> # @return Date
... | 1 |
PHP | PHP | fix bug in route handles method | 9bcbe6a357a0f33aabdd7d529c447fe86ae6b04a | <ide><path>laravel/routing/route.php
<ide> public function is($name)
<ide> */
<ide> public function handles($uri)
<ide> {
<del> $pattern = '#'.str_replace('*', '(.*)', $uri).'#';
<add> $pattern = ($uri !== '/') ? str_replace('*', '(.*)', $uri) : '^/$';
<ide>
<ide> return ! is_null(array_first($this->uris, func... | 2 |
Python | Python | fix mini scheduler expansion of mapped task | ed92e5d521f958642615b038ec13068b527db1c4 | <ide><path>airflow/jobs/local_task_job.py
<ide> from __future__ import annotations
<ide>
<ide> import signal
<del>from typing import TYPE_CHECKING
<ide>
<ide> import psutil
<del>from sqlalchemy.exc import OperationalError
<ide>
<ide> from airflow.configuration import conf
<ide> from airflow.exceptions import Airflow... | 5 |
Javascript | Javascript | fix regression when compiled with fips | 0a23538e49e27b95ee35b051b6507eca74e2bb20 | <ide><path>test/parallel/test-process-versions.js
<ide> assert(/^\d+\.\d+\.\d+(?:\.\d+)?-node\.\d+(?: \(candidate\))?$/
<ide> assert(/^\d+$/.test(process.versions.modules));
<ide>
<ide> if (common.hasCrypto) {
<del> assert(/^\d+\.\d+\.\d+[a-z]?$/.test(process.versions.openssl));
<add> assert(/^\d+\.\d+\.\d+[a-z]?(-f... | 1 |
Javascript | Javascript | add test for bypassing queuemicrotask | e2453e2007083a67bf93f59c8ef2f39df2aaf636 | <ide><path>packages/react-reconciler/src/__tests__/ReactIsomorphicAct-test.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its 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> * @jest-environmen... | 1 |
PHP | PHP | fix casing and conflicts | 9e80174f4a055a34fa9c40da51b7ac73deedf0fb | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function groupBy($groupBy)
<ide>
<ide> foreach ($this->items as $key => $value)
<ide> {
<del> $results[$this->getGroupbyKey($groupBy, $key, $value)][] = $value;
<add> $results[$this->getGroupByKey($groupBy, $key, $value)][] = $value;
<ide> }
<ide>... | 1 |
PHP | PHP | fix auth stub | 8fe1ff6804330d92bae2c376eb8e18e9205c4ca3 | <ide><path>src/Illuminate/Auth/Console/MakeAuthCommand.php
<ide> public function fire()
<ide> $this->info('Updated Routes File.');
<ide>
<ide> file_put_contents(
<del> app_path('Http/routes.php'),
<add> base_path('routes/web.php'),
<ide> file_get_co... | 1 |
Python | Python | add a test case for | 0710d23de52a1c2c4841937e4c7c17b81950b9ae | <ide><path>libcloud/test/storage/test_base.py
<ide> # limitations under the License.
<ide>
<ide> import sys
<add>import hashlib
<ide>
<ide> from libcloud.utils.py3 import httplib
<ide> from io import BytesIO
<ide>
<add>import mock
<ide> from mock import Mock
<ide>
<ide> from libcloud.utils.py3 import StringIO
<ide>... | 1 |
Text | Text | fix typo in change log | 80448c3341e6c072b06e69e2f265c849e64a4c27 | <ide><path>laravel/documentation/changes.md
<ide> - Fixed replacement of optional parameters in `URL::transpose` method.
<ide> - Improved `update` handling on `Has_Many` and `Has_One` relationships.
<ide> - Improved View performance by only loading contents from file once.
<del>- Fix handling of URLs beginning with has... | 1 |
Python | Python | use builtin next method | a5cbc93168e08f7a083a7df174a44314c1af9bd4 | <ide><path>numpy/core/shape_base.py
<ide> def format_index(index):
<ide> idxs_ndims = (_block_check_depths_match(arr, parent_index + [i])
<ide> for i, arr in enumerate(arrays))
<ide>
<del> first_index, max_arr_ndim = idxs_ndims.__next__()
<add> first_index, max_arr_ndim = ne... | 1 |
PHP | PHP | apply fixes from styleci | 0cb88d66e87b8843307c98f604216ae73e76453b | <ide><path>src/Illuminate/Support/helpers.php
<ide> function retry($times, callable $callback, $sleep = 0, $when = null)
<ide> {
<ide> $attempts = 0;
<ide>
<del> beginning:
<add> beginning :
<ide> $attempts++;
<ide> $times--;
<ide> | 1 |
Ruby | Ruby | add gitless and telegram-cli to prerelease list | ad4fd55b78772d456b3c8ed84436a6c86212a8f7 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def get_repo_data(regex)
<ide> "libepoxy" => "1.5",
<ide> }.freeze
<ide>
<del> GITHUB_PRERELEASE_ALLOWLIST = %w[].freeze
<add> GITHUB_PRERELEASE_ALLOWLIST = {
<add> "gitless" => "0.8.8",
<add> "telegram-cli" => "1.3.1",
<add> ... | 1 |
Javascript | Javascript | remove unused _valuedidchange function | f67eb2be75bf8f7130d3213f7123a88b1b3479f4 | <ide><path>packages/sproutcore-handlebars/lib/controls/text_field.js
<ide> SC.TextField = SC.View.extend(
<ide> set(this, 'value', this.$().val());
<ide> },
<ide>
<del> _valueDidChange: function() {
<del> SC.run.once(this, this._updateElementValue);
<del> },
<del>
<ide> _updateElementValue: function() {
<... | 1 |
Python | Python | fix lint issues | 25f13fa9a7fdea5d03ff7c1179f0fda586666e54 | <ide><path>official/recommendation/ncf_keras_main.py
<ide> def __init__(self, params):
<ide> super(MetricLayer, self).__init__()
<ide> self.params = params
<ide> self.metric = tf.keras.metrics.Mean(name=rconst.HR_METRIC_NAME)
<del>
<add>
<ide> def call(self, inputs):
<ide> logits, dup_mask = inputs
... | 1 |
Javascript | Javascript | remove infrastructure-log for big-assets test case | 61f9f933d82d7be7842fc79b2127105b0f2dc43f | <ide><path>test/cases/large/big-assets/infrastructure-log.js
<del>module.exports = [
<del> /^Pack got invalid because of write to: ResolverCachePlugin|normal|dependencyType=|esm|path=|.+|request=|\.\/large\/big-assets\/$/
<del>]; | 1 |
Javascript | Javascript | update todo message | a5c6f3e8a1868f39283afc123c2c222af9a91d52 | <ide><path>lib/fs.js
<ide> function watch(filename, options, listener) {
<ide>
<ide> let watcher;
<ide>
<del> // TODO(anonrig): Remove this when/if libuv supports it.
<add> // TODO(anonrig): Remove non-native watcher when/if libuv supports recursive.
<ide> // As of November 2022, libuv does not support recursiv... | 3 |
PHP | PHP | allow trailing slashes | 7670d5c9462d5a34295cc5967b0d420cb7a5e6a0 | <ide><path>src/Illuminate/Routing/Router.php
<ide> protected function findRoute(Request $request)
<ide> // that's used by the Illuminate foundation framework for responses.
<ide> try
<ide> {
<del> $path = '/'.ltrim($request->getPathInfo(), '/');
<add> $path = $this->formatRequestPath($request);
<ide>
<ide> ... | 2 |
Mixed | Ruby | add database_exists? method to connection adapters | fe30211574648fa21bff958a3cf952fd0c20c3b1 | <ide><path>activerecord/CHANGELOG.md
<add>* Add database_exists? method to connection adapters to check if a database exists.
<add>
<add> *Guilherme Mansur*
<add>
<ide> * PostgreSQL: Fix GROUP BY with ORDER BY virtual count attribute.
<ide>
<ide> Fixes #36022.
<ide><path>activerecord/lib/active_record/con... | 8 |
PHP | PHP | add ability to support existing urls | 66b9130107c4f696b054f6409d758fc4e1e83280 | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function setExtensions($extensions, $merge = true) {
<ide> return static::$_validExtensions = array_merge(static::$_validExtensions, $extensions);
<ide> }
<ide>
<add>/**
<add> * Provides legacy support for named parameters on incoming URLs.
<add> *
<add> * ... | 2 |
Python | Python | fix broken `none` value for `timefield` | ad336cc636d98022ea7eda516a04a7937eb32238 | <ide><path>rest_framework/fields.py
<ide> def from_native(self, value):
<ide> def to_native(self, value):
<ide> if value is None:
<ide> return None
<add>
<ide> if isinstance(value, datetime.datetime):
<ide> value = value.date()
<add>
<ide> if self.format.lower() == IS... | 1 |
PHP | PHP | remove ties to old dispatcher code | af19c0e0decc6c82650cc0f0c85a2cc4362b0bf3 | <ide><path>src/Http/ActionDispatcher.php
<ide> class ActionDispatcher
<ide> *
<ide> * @param \Cake\Http\ControllerFactory|null $factory A controller factory instance.
<ide> * @param \Cake\Event\EventManager|null $eventManager An event manager if you want to inject one.
<del> * @param \Cake\Event\Even... | 4 |
Java | Java | fix failing test and warings | f33578ef0f20af90a41c2daddedcb7ba1b96c278 | <ide><path>spring-jms/src/test/java/org/springframework/jms/config/MethodJmsListenerEndpointTests.java
<ide> import org.springframework.messaging.handler.annotation.Payload;
<ide> import org.springframework.messaging.handler.annotation.SendTo;
<ide> import org.springframework.messaging.handler.annotation.support.Defaul... | 1 |
Text | Text | fix return type of `crypto.getfips()` | d4fd03e67371ef8db8c47d2981bbee9601700034 | <ide><path>doc/api/crypto.md
<ide> console.log(aliceSecret === bobSecret);
<ide> added: v10.0.0
<ide> -->
<ide>
<del>* Returns: {boolean} `true` if and only if a FIPS compliant crypto provider is
<del> currently in use.
<add>* Returns: {number} `1` if and only if a FIPS compliant crypto provider is
<add> currently i... | 1 |
Python | Python | ensure bulk_create returns what it is supposed to | f2bc919ec00457fd53f093af53ab71c7f1bcfbcd | <ide><path>django/db/models/query.py
<ide> def bulk_create(self, objs):
<ide> self.model._base_manager._insert(objs_with_pk, fields=fields, using=self.db)
<ide> if objs_without_pk:
<ide> self.model._base_manager._insert(objs_without_pk, fields=[f for f in fields if not isinst... | 2 |
Javascript | Javascript | add mode setting and strict to make.js | 0e948f138db0691dcbd1d06511bf4dbfd80abfab | <ide><path>make.js
<add>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
<add>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<add>
<add>'use strict';
<add>
<ide> require('./external/shelljs/make');
<ide> var builder = require('./external/builder/builder.js');
<ide> v... | 1 |
Mixed | Text | update https urls [ci skip] | b24190807db460d0fa342b401c5166844aab14dc | <ide><path>RELEASING_RAILS.md
<ide> sure the code samples in his book
<ide> all work. These are valuable system tests
<ide> for Rails. You can check the status of these tests here:
<ide>
<del>[http://intertwingly.net/projects/dashboard.html](http://intertwingly.net/projects/dashboard.html)
<add>[https://intertwingly.n... | 10 |
Text | Text | add initial documentation for java-based packages | e92d67d15c9d00bce05504dedc52491c8be71925 | <ide><path>docs/Homebrew-and-Java.md
<add># Homebrew and Java
<add>
<add>This page describes how Java is handled in Homebrew for users. Prospective formula authors may refer to existing Java-based formulae for examples of how to install packages written in Java via Homebrew, or visit the [Homebrew discussion forum](htt... | 1 |
Javascript | Javascript | fix parsing of coordindex when not ending with -1 | 76d1e9d1b95633b52228d595b878052f41e8fed8 | <ide><path>examples/js/loaders/VRMLLoader.js
<ide> THREE.VRMLLoader = ( function () {
<ide>
<ide> // an index of -1 indicates that the current face has ended and the next one begins
<ide>
<del> if ( index[ i + 3 ] === - 1 ) {
<add> if ( index[ i + 3 ] === - 1 || i + 3 >= l ) {
<ide>
<ide> i += 3;
... | 1 |
PHP | PHP | use inner join instead of a left join | 3bdcf7b440febde90c3eb5d0260716cba70847df | <ide><path>lib/Cake/Model/AclNode.php
<ide> public function node($ref = null) {
<ide> 'joins' => array(array(
<ide> 'table' => $table,
<ide> 'alias' => "{$type}0",
<del> 'type' => 'LEFT',
<add> 'type' => 'INNER',
<ide> 'conditions' => array(
<ide> $db->name("{$type}.lft") . ' <= ' . $db... | 1 |
Javascript | Javascript | avoid re-exports from ember-metal/platform | a5d91490cd1ef0e99da06ee61fbb7e1c423b14b8 | <ide><path>packages/ember-application/lib/system/application.js
<ide> import { runLoadHooks } from "ember-runtime/system/lazy_load";
<ide> import Namespace from "ember-runtime/system/namespace";
<ide> import DeferredMixin from "ember-runtime/mixins/deferred";
<ide> import DefaultResolver from "ember-application/system/... | 64 |
Ruby | Ruby | fix rubocop issue | 42469c50610d574d83f329f4a93b3ce4b97fed27 | <ide><path>actionview/lib/action_view/template.rb
<ide> def encode!
<ide> end
<ide> end
<ide>
<del>
<add>
<ide> # Exceptions are marshalled when using the parallel test runner with DRb, so we need
<ide> # to ensure that references to the template object can be marshalled as well. This means forgo... | 1 |
Ruby | Ruby | fix typos and grammar mistake [ci skip] | 517caa85c97b0addba0d27fffa03aec40f70ff1f | <ide><path>activerecord/lib/active_record/attribute_methods.rb
<ide> def column_for_attribute(name)
<ide> end
<ide>
<ide> # Returns the value of the attribute identified by <tt>attr_name</tt> after it has been typecast (for example,
<del> # "2004-12-12" in a data column is cast to a date object, like Date.n... | 2 |
PHP | PHP | remove 5.5 bug workaround | 38d5d28b1afe33f22fde12c4c463b703f8461285 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function fill(array $attributes)
<ide> */
<ide> public function forceFill(array $attributes)
<ide> {
<del> // Since some versions of PHP have a bug that prevents it from properly
<del> // binding the late static context in a c... | 1 |
Ruby | Ruby | add support for rar archives | 0b56c62bf50c1291f0259aa2ea9ff86afe826c0b | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> # TODO check if it's really a tar archive
<ide> safe_system '/usr/bin/tar', 'xf', @tarball_path
<ide> chdir
<add> when 'Rar!'
<add> quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, @tarball_path
<ide> else
<ide... | 1 |
Java | Java | remove inconsistent spaces | fb898e17272c13ef01f68125c3bba35f55f3fb7a | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/adapter/MethodBeforeAdviceInterceptor.java
<ide> public MethodBeforeAdviceInterceptor(MethodBeforeAdvice advice) {
<ide>
<ide> @Override
<ide> public Object invoke(MethodInvocation mi) throws Throwable {
<del> this.advice.before(mi.getMethod(), m... | 14 |
Python | Python | prepare 1.1.1 release | c6d2ccd453bc71144ba891abc6876772144985c4 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '1.1.0'
<add>__version__ = '1.1.1'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='1.1.0',
<add> version='1.1.1',
<ide> description='Deep Learning for Python'... | 2 |
Text | Text | add model card for singbert. | b6512d235792f7be4effcb480f701944b051274b | <ide><path>model_cards/zanelim/singbert/README.md
<add>---
<add>language: en
<add>tags:
<add>- singapore
<add>- sg
<add>- singlish
<add>- malaysia
<add>- ms
<add>- manglish
<add>- bert-base-uncased
<add>license: mit
<add>datasets:
<add>- reddit singapore, malaysia
<add>- hardwarezone
<add>widget:
<add>- text: "die [MAS... | 1 |
Python | Python | set version to v2.2.4 | 26a90f011b8c21dfc06940579479aaff8006ff74 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.4.dev0"
<add>__version__ = "2.2.4"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod... | 1 |
Python | Python | add python 3.6 support to suppress_warnings | 6b49167c3134e695efb1a122f73c3524a9049db5 | <ide><path>numpy/testing/utils.py
<ide> def __init__(self, forwarding_rule="always"):
<ide> self._forwarding_rule = forwarding_rule
<ide>
<ide> def _clear_registries(self):
<add> if hasattr(warnings, "_filters_mutated"):
<add> # clearing the registry should not be necessary on new pythons... | 1 |
Go | Go | ignore lchown error on docker cp | 9e51b7abaea3fb30dc994a1d004cd79f2e100c1a | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdCp(args ...string) error {
<ide> }
<ide>
<ide> if statusCode == 200 {
<del> if err := archive.Untar(stream, copyData.Get("HostPath"), nil); err != nil {
<add> if err := archive.Untar(stream, copyData.Get("HostPath"), &archive.TarOptions{NoLchown: tru... | 4 |
Javascript | Javascript | use native for loop instead of foreach for arrays | 36625de0d3ebc1fc091af474d942c6ce16b0a1c0 | <ide><path>src/Angular.js
<ide> function forEach(obj, iterator, context) {
<ide> iterator.call(context, obj[key], key);
<ide> }
<ide> }
<del> } else if (obj.forEach && obj.forEach !== forEach) {
<del> obj.forEach(iterator, context);
<del> } else if (isArrayLike(obj)) {
<add> } else... | 1 |
Javascript | Javascript | avoid json.stringify for better performance | 0fd50ddd849a262a39316e9ba24effe118c44290 | <ide><path>lib/cache/ResolverCachePlugin.js
<ide> const asyncLib = require("neo-async");
<ide>
<ide> const INVALID = {};
<ide>
<add>const requestToString = request => {
<add> let str = "";
<add> for (const key in request) {
<add> const value = request[key];
<add> if (typeof value === "object" && value !== null) {
<... | 1 |
Ruby | Ruby | use directory? to check rack existence | 1ae44d44299803ec0da62731ac7b808d1d32f5aa | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> msg = "#{f.full_name}-#{f.installed_version} already installed"
<ide> msg << ", it's just not linked" unless f.linked_keg.symlink? || f.keg_only?
<ide> opoo msg
<del> elsif f.oldname && (dir = HOMEBREW_CELLAR/f.oldna... | 2 |
Python | Python | fix cloudstack tests | d8da3fe6838582e3c639a23b0785a59a6a3f35e9 | <ide><path>libcloud/test/compute/test_cloudstack.py
<ide> def test_list_images_no_images_available(self):
<ide> self.assertEqual(0, len(images))
<ide>
<ide> def test_list_images(self):
<del> _, fixture = CloudStackMockHttp()._load_fixture(
<add> _, fixture = self.driver.connection.connection.... | 1 |
Text | Text | clarify note in spanish | 6953662931cad5287ef59d3e57b420d1d8bf6bdc | <ide><path>guide/spanish/java/arrays/index.md
<ide> dataType[] arrayName = {value_0, value_1, ..., value_k};
<ide> ```java
<ide> double[] list = {1, 2, 3, 4};
<ide>
<del> The code above is equivalent to:
<add> El fragmento de código arriba es equivalente a:
<ide> double[] list = new double[4];
<del> *IMPORTANT N... | 1 |
Ruby | Ruby | add test case for `preventing_writes?` | 3d5db4920a3d5fb0bdd4a912fd5e29eec12ef02e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def preventing_writes?
<ide> replica? || prevent_writes
<ide> end
<ide>
<del> # Prevent writing to the database regardless of role.
<add> # Prevent writing to the database regardless of role.
<ide> #
... | 2 |
Ruby | Ruby | stop the recursive insanity | 0fbf829b1e147c6c0f6c9d5e447bad0e9216b7b1 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def update_all(updates, conditions = nil, options = {})
<ide> if conditions || options.present?
<ide> where(conditions).apply_finder_options(options.slice(:limit, :order)).update_all(updates)
<ide> else
<add> limit = nil
<add> ... | 1 |
Javascript | Javascript | add host argument for packager | d4f6e447d2019ba784a83149a22bc6f392accee5 | <ide><path>local-cli/server/runServer.js
<ide> function runServer(args, config, readyCallback) {
<ide>
<ide> const serverInstance = http.createServer(app).listen(
<ide> args.port,
<del> '::',
<add> args.host,
<ide> function() {
<ide> attachHMRServer({
<ide> httpServer: serverInstance,
<id... | 2 |
Python | Python | adjust trimmed_pod_id and replace '.' with '-' | 563315857d1f54f0c56059ff38dc6aa9af4f08b7 | <ide><path>airflow/kubernetes/pod_generator.py
<ide> def make_unique_pod_id(pod_id: str) -> str:
<ide> return None
<ide>
<ide> safe_uuid = uuid.uuid4().hex # safe uuid will always be less than 63 chars
<del> # Strip trailing '-' and '.' as they can't be followed by '.'
<del> trimmed_... | 3 |
Javascript | Javascript | emit $includecontenterror when http request fails | e4419daf705d6d2d116ced573f72c24b5c53be1f | <ide><path>src/ng/directive/ngInclude.js
<ide> * @description
<ide> * Emitted every time the ngInclude content is reloaded.
<ide> */
<add>
<add>
<add>/**
<add> * @ngdoc event
<add> * @name ng.directive:ngInclude#$includeContentError
<add> * @eventOf ng.directive:ngInclude
<add> * @eventType emit on the scope ngInclu... | 2 |
Go | Go | remove unused functions, variables, fields | 744f1c261c57ed68e3bc8d05f4ab58223be24009 | <ide><path>distribution/pull_v2_test.go
<ide> func TestValidateManifest(t *testing.T) {
<ide> t.Fatal("error unmarshaling manifest:", err)
<ide> }
<ide>
<del> verifiedManifest, err = verifySchema1Manifest(&badSignedManifest, expectedDigest)
<add> _, err = verifySchema1Manifest(&badSignedManifest, expectedDigest)
<i... | 8 |
Go | Go | ignore sigurg on linux | b7ebf32ba3f0342343558431df976d4ccb8039ba | <ide><path>pkg/signal/signal.go
<ide> import (
<ide> )
<ide>
<ide> // CatchAll catches all signals and relays them to the specified channel.
<add>// On Linux, SIGURG is not handled, as it's used by the Go runtime to support
<add>// preemptable system calls.
<ide> func CatchAll(sigc chan os.Signal) {
<ide> var handled... | 7 |
Mixed | Ruby | add date and time `#yesterday?` and `#tomorrow?` | 5df9b4584cd6fb653d169ec9a1671532799bdf95 | <ide><path>activesupport/CHANGELOG.md
<add>* Add Date and Time `#yesterday?` and `#tomorrow?` alongside `#today?`.
<add>
<add> Aliased to `#prev_day?` and `#next_day?` to match the existing `#prev/next_day` methods.
<add>
<add> *Jatin Dhankhar*
<add>
<ide> * Add `Enumerable#pick` to complement `ActiveRecord::... | 7 |
PHP | PHP | fix seed method on test case | 0124a458f4cd2306fef0f4989f781781d6e271bd | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide> public function be(UserInterface $user, $driver = null)
<ide> /**
<ide> * Seed a given database connection.
<ide> *
<del> * @param string $connection
<add> * @param string $class
<ide> * @return void
<ide> */
<del> public function seed($conn... | 1 |
Javascript | Javascript | use the correct transclusion scope | 4f32e3eef152bcaab7f7ab151fc824e71a591473 | <ide><path>src/ng/directive/ngSwitch.js
<ide> var ngSwitchDirective = ['$animate', function($animate) {
<ide> if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {
<ide> scope.$eval(attr.change);
<ide> forEach(selectedTranscludes, function(sele... | 2 |
Java | Java | fix race condition in writeresultpublisher | c0c3c01afd3cb756e56039720fdf30a39f3751c4 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/WriteResultPublisher.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 1 |
Ruby | Ruby | remove nulls first/last. closes | 404b73bce1f9347ca05b1496db8fc64438d66bd2 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def distinct(columns, orders) #:nodoc:
<ide>
<ide> # Construct a clean list of column names from the ORDER BY clause, removing
<ide> # any ASC/DESC modifiers
<del> order_columns = orders.collect { |s| s.gsu... | 2 |
Ruby | Ruby | add from_path helper method | ac10b2ab50e987858b9fa5514785b12b7600787f | <ide><path>Library/Homebrew/tap.rb
<ide> def self.fetch(*args)
<ide> CACHE.fetch(cache_key) { |key| CACHE[key] = Tap.new(user, repo) }
<ide> end
<ide>
<add> def self.from_path(path)
<add> path.to_s =~ HOMEBREW_TAP_PATH_REGEX
<add> raise "Invalid tap path '#{path}'" unless $1
<add> fetch($1, $2)
<add> ... | 1 |
Javascript | Javascript | remove setimmediate from timeout test | ab73265b9c3e59d168aab485b0f936aedd47032b | <ide><path>test/sequential/test-http2-session-timeout.js
<ide> server.listen(0, common.mustCall(() => {
<ide> const diff = process.hrtime(startTime);
<ide> const milliseconds = (diff[0] * 1e3 + diff[1] / 1e6);
<ide> if (milliseconds < serverTimeout * 2) {
<del> setImmediate(makeReq);
<add> ... | 1 |
Javascript | Javascript | restrict pbkdf2 args to signed int | 8bf77545389563b864d0352b8c58f292aa1691f2 | <ide><path>lib/internal/crypto/pbkdf2.js
<ide> const {
<ide>
<ide> const {
<ide> validateFunction,
<add> validateInt32,
<ide> validateInteger,
<ide> validateString,
<ide> validateUint32,
<ide> function check(password, salt, iterations, keylen, digest) {
<ide>
<ide> password = getArrayBufferOrView(password,... | 2 |
Text | Text | add missing links in deprecated.md doc | 7bc9e0aebbddb934f14ce287f0c3b419663cb480 | <ide><path>docs/deprecated.md
<ide> weight=80
<ide> The following list of features are deprecated in Engine.
<ide>
<ide> ### `-e` and `--email` flags on `docker login`
<del>**Deprecated In Release: v1.11**
<add>**Deprecated In Release: [v1.11.0](https://github.com/docker/docker/releases/tag/v1.11.0)**
<ide>
<ide> **T... | 1 |
Ruby | Ruby | add comprehensive locking around db transactions | e4c197c7698e204d0c74a2ece20adf831c2f9a8d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
<ide> def initialize(connection)
<ide> end
<ide>
<ide> def begin_transaction(options = {})
<del> run_commit_callbacks = !current_transaction.joinable?
<del> transaction =
<del> if @stack.empty?
<del... | 3 |
Python | Python | add missed deprecations for cncf | 4a73d8f3d1f0c2cb52707901f9e9a34198573d5e | <ide><path>airflow/providers/cncf/kubernetes/backcompat/pod.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<del>"""Classes for interacting with Kubernetes API"""
<add>"""
<add>Classes for interacting with Ku... | 4 |
Javascript | Javascript | simplify the unsubscribe routes and handlers | bf564a5023f154f12505f062323c0e0ae3beefcc | <ide><path>server/boot/randomAPIs.js
<ide> module.exports = function(app) {
<ide> noLangRouter.get('/api/github', githubCalls);
<ide> noLangRouter.get('/chat', chat);
<ide> noLangRouter.get('/twitch', twitch);
<del> noLangRouter.get('/unsubscribe/:email', unsubscribeMonthly);
<del> noLangRouter.get(
<del> '/... | 1 |
Text | Text | fix whitespace in link | f6db83d6f26cb8623acfb669b59b7804fd526716 | <ide><path>README.md
<ide> For this certification, you'll work on **two projects from scratch** and then **
<ide>
<ide> ---
<ide>
<del>This code is running live at [freeCodeCamp.org](https://www.freecodecamp.org). We also have [Gitter chat rooms](https://gitter.im/FreeCodeCamp/FreeCodeCamp), a [Medium publication](ht... | 1 |
Text | Text | fix the column name [ci skip] | 967a6dc8985ee5d9956b23ba23f0f9d39a0c07d9 | <ide><path>activerecord/CHANGELOG.md
<ide> # => SELECT "users".* FROM "users" WHERE "users"."state" = 'pending'
<ide>
<ide> User.active
<del> # => SELECT "users".* FROM "users" WHERE "users"."status" = 'active'
<add> # => SELECT "users".* FROM "users" WHERE "users"."state" = 'active'
<ide... | 3 |
Go | Go | add ian murdock to the names generator | e11ebfcb0984225690dccc1e644712a80bae2dec | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> // Samuel Morse - contributed to the invention of a single-wire telegraph system based on European telegraphs and was a co-developer of the Morse code - https://en.wikipedia.org/wiki/Samuel_Morse
<ide> "morse",
<ide>
<add> // Ian Murdock - founder... | 1 |
Java | Java | create yogaprops interface | e27ca7f24e116bbf8a154ec9fcb85f69ee20af56 | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java
<ide>
<ide> import javax.annotation.Nullable;
<ide>
<del>public abstract class YogaNode {
<add>public abstract class YogaNode implements YogaProps {
<ide>
<ide> /** The interface the {@link #getData()} object can optionally implement. */
<ide> ... | 2 |
PHP | PHP | remove pointless condition | 0750069126b1941060926a63300e6f61f6fec6a0 | <ide><path>lib/Cake/Model/Model.php
<ide> public function deconstruct($field, $data) {
<ide> foreach ($timeFields as $key => $val) {
<ide> if (!isset($data[$val]) || $data[$val] === '0' || $data[$val] === '00') {
<ide> $data[$val] = '00';
<del> } elseif ($data[$val] === '') {
<del> $data[$val] =... | 1 |
Python | Python | remove trailing whitespace from numpy/ma/core.py | b3dfa8de56c4a892db58284aebe7554e25829c64 | <ide><path>numpy/ma/core.py
<ide> def resize(x, new_shape):
<ide> return result
<ide>
<ide>
<del>def rank(obj):
<add>def rank(obj):
<ide> """
<ide> maskedarray version of the numpy function.
<ide>
<ide> def rank(obj):
<ide> rank.__doc__ = np.rank.__doc__
<ide>
<ide>
<del>def ndim(obj):
<add>def ndim(... | 1 |
Go | Go | fix gcplogs memory/connection leak | ef553e14a4e27fc479b9c8e94d76654ec67694fe | <ide><path>daemon/logger/gcplogs/gcplogging.go
<ide> func init() {
<ide> }
<ide>
<ide> type gcplogs struct {
<add> client *logging.Client
<ide> logger *logging.Logger
<ide> instance *instanceInfo
<ide> container *containerInfo
<ide> func New(info logger.Info) (logger.Logger, error) {
<ide> }
<ide>
<ide> l... | 1 |
Ruby | Ruby | pass the outer joins to join_constraints | 796c0fc1b065bc4248a410110e728e5b2c6db19e | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def apply_tables!(node)
<ide> node.children.each { |child| construct_tables! node, child }
<ide> end
<ide>
<del> def join_constraints
<add> def join_constraints(outer_joins)
<add> outer_joins.each { |oj| merg... | 2 |
Ruby | Ruby | add pre el capitan keg_only | 48ba192a3bac609c1bdd7355d4749d624b973c46 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def valid?
<ide> MacOS.version < :mountain_lion
<ide> when :provided_pre_mavericks
<ide> MacOS.version < :mavericks
<add> when :provided_pre_el_capitan
<add> MacOS.version < :el_capitan
<ide> when :provided_until_xcode43
<ide> MacOS:... | 1 |
Text | Text | update exercise portion of onboarding doc | 4c7688138366bc350ed0260583d457733f835828 | <ide><path>doc/onboarding.md
<ide> Landing a PR
<ide> * Close the pull request with a "Landed in `<commit hash>`" comment.
<ide>
<ide>
<del>## exercise: make PRs adding yourselves to the README
<add>## Exercise: Make a PR adding yourself to the README
<ide>
<ide> * Example: https://github.com/nodejs/node/commi... | 1 |
Python | Python | add chinese punctuation | 1f1f35dcd07d419a2aca449c0ef738e098e37b68 | <ide><path>spacy/language_data/punctuation.py
<ide>
<ide> _QUOTES = r"""
<ide> ' '' " ” “ `` ` ‘ ´ ‚ , „ » «
<add>「 」 『 』 ( ) 〔 〕 【 】 《 》 〈 〉
<ide> """
<ide>
<ide>
<ide> _PUNCT = r"""
<ide> … , : ; \! \? ¿ ¡ \( \) \[ \] \{ \} < > _ # \* &
<add>。? ! , 、 ; : ~
<ide> """
<ide>
<ide> | 1 |
Javascript | Javascript | fix lint failure | 648d78dab5b3fbb18ae2d84aceda11ca3803151b | <ide><path>lib/util/identifier.js
<ide> const _makePathsRelative = (context, identifier) => {
<ide> .map(str => looksLikeAbsolutePath(str) ?
<ide> normalizePathSeparator(path.relative(context, str)) : str)
<ide> .join("");
<del>}
<add>};
<ide>
<ide> exports.makePathsRelative = (context, identifier, cache) => {
... | 1 |
PHP | PHP | ignore phpcs and long lines in html template | 6d7a9550d9a128e29f1948d0e566a0222c930896 | <ide><path>src/Error/Renderer/HtmlRenderer.php
<ide> private function renderToggle(string $text, string $id, string $suffix): string
<ide> {
<ide> $selector = $id . '-' . $suffix;
<ide>
<add> // phpcs:disable
<ide> return <<<HTML
<del><a
<del> href="javascript:void(0);"
<del> onclick="... | 1 |
Text | Text | add npm install instructions to readme | 17c9dffed47d105e0872b7944cd6720571129d22 | <ide><path>README.md
<ide> If you'd like to use [bower](http://bower.io), it's as easy as:
<ide> bower install --save react
<ide> ```
<ide>
<add>And it's just as easy with [npm](http://npmjs.com):
<add>
<add>```sh
<add>npm i --save react
<add>```
<add>
<ide> ## Contribute
<ide>
<ide> The main purpose of this reposito... | 1 |
PHP | PHP | add a slash after port number | 9279cb5dad9f9eb5714133dd19813b8a7b602668 | <ide><path>src/Illuminate/Foundation/Console/ServeCommand.php
<ide> public function fire()
<ide>
<ide> $base = $this->laravel->basePath();
<ide>
<del> $this->info("Laravel development server started on http://{$host}:{$port}");
<add> $this->info("Laravel development server started on http://{$host}:{$port}/");
<i... | 1 |
Python | Python | add meaniou metric | de27619e9dc602833a5578e59f034bc49a8d9cd4 | <ide><path>keras/backend/__init__.py
<ide> from .load_backend import manual_variable_initialization
<ide> from .load_backend import get_session
<ide> from .load_backend import set_session
<add> from .load_backend import top_k
<add> from .load_backend import MeanIoU
<ide> elif backend() == 'cntk':
<ide... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.