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 |
|---|---|---|---|---|---|
Text | Text | update migration guide | e22f8bd7dcb26532d1c5703f4c7c632ffb406c6c | <ide><path>docs/getting-started/v3-migration.md
<ide> Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released
<ide> * Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`. Please see the [installation](installation.md) and [integration](integration.md) docs for details... | 1 |
Text | Text | update the issue template | 2fc9d7ee437e5b666fe1121c10129999ead87b4d | <ide><path>.github/ISSUE_TEMPLATE.md
<del>## Hey there and thank you for using React Native!
<add>We use GitHub Issues for bugs.
<ide>
<del>React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. Before opening a new issue, make sur... | 1 |
PHP | PHP | add depth to log() | 7a4cabe5d3d608b4a0d77d53640b22024e25d487 | <ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php
<ide> public function testLog() {
<ide> $this->assertRegExp("/'here'/", $result);
<ide> }
<ide>
<add>/**
<add> * test log() depth
<add> *
<add> * @return void
<add> */
<add> public function testLogDepth() {
<add> if (file_exists(LOGS . 'debug.log')) {
<add> ... | 2 |
Javascript | Javascript | add getowner/setowner shims | 75876e5a1c20c9b20e0feca9038d71d3baeb0e48 | <ide><path>vendor/ember/shims.js
<ide> 'ember-object': {
<ide> 'default': Ember.Object
<ide> },
<add> 'ember-owner/get': {
<add> 'default': Ember.getOwner
<add> },
<add> 'ember-owner/set': {
<add> 'default': Ember.setOwner
<add> },
<ide> 'ember-platform': {
<i... | 1 |
PHP | PHP | fix empty paths for server.php | bd3ac842a4af4d86576234b08371ee54e1920772 | <ide><path>src/Illuminate/Foundation/resources/server.php
<ide> $publicPath = getcwd();
<ide>
<ide> $uri = urldecode(
<del> parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
<add> parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
<ide> );
<ide>
<ide> // This file allows us to emulate Apache's "mod_rewrite" ... | 1 |
PHP | PHP | update doc block | 21cddebfde8132b549269969db1ae9be7c6a03bf | <ide><path>src/ORM/Association/BelongsToMany.php
<ide> public function conditions($conditions = null)
<ide> }
<ide>
<ide> /**
<del> * @param string|\Cake\ORM\Table $through
<add> * Sets the current join table, either the name of the Table instance or the instance itself.
<add> *
<add> * @param ... | 1 |
Ruby | Ruby | use full path to stty | ebbc2e5b3fae09f6497723a2f0cb12c2248c082e | <ide><path>install_homebrew.rb
<ide> def sudo *args
<ide> end
<ide>
<ide> def getc # NOTE only tested on OS X
<del> system "stty raw -echo"
<add> system "/bin/stty raw -echo"
<ide> STDIN.getc
<ide> ensure
<del> system "stty -raw echo"
<add> system "/bin/stty -raw echo"
<ide> end
<ide>
<ide> ###################... | 1 |
Text | Text | add equalsignorecase to the file | ef8c5e5bfa7e0808680758e43718e134cf4f5e91 | <ide><path>guide/english/java/equality/index.md
<ide> For example, the `java.util.Set` interface specifies that a `Set`'s `equals()` m
<ide>
<ide> However, if a class does not override the default `equals()` implementation, the default implementation will apply, which simply uses the `==` operator to compare the two o... | 1 |
Text | Text | prepend some pre-release notes | ee79b453974f3dc8ead83bff86784366d59a4fb1 | <ide><path>docs/topics/3.0-announcement.md
<del>**THIS DOCUMENT IS CURRENTLY A WORK IN PROGRESS**
<add>## Pre-release notes:
<ide>
<del>See the [Version 3.0 GitHub issue](https://github.com/tomchristie/django-rest-framework/pull/1800) for more details.
<add>The 3.0 release is now ready for some tentative testing and u... | 1 |
Javascript | Javascript | remove extraneous assert | 976826aec0930b0c316837fe3ec14c4a13e43507 | <ide><path>src/event/EventPluginHub.js
<ide> var EventPluginHub = {
<ide> * @param {?function} listener The callback to store.
<ide> */
<ide> putListener: function(id, registrationName, listener) {
<del> invariant(
<del> ExecutionEnvironment.canUseDOM,
<del> 'Cannot call putListener() in a non-DOM ... | 1 |
Go | Go | allow named volumes for external drivers | 3bf0ca31cf61e445554326ba405cc32c7ef64189 | <ide><path>daemon/volumes.go
<ide> func parseBindMount(spec string, config *runconfig.Config) (*mountPoint, error)
<ide> return nil, fmt.Errorf("Invalid volume specification: %s", spec)
<ide> }
<ide>
<del> if !filepath.IsAbs(arr[0]) {
<del> return nil, fmt.Errorf("cannot bind mount volume: %s volume paths must be ... | 6 |
Ruby | Ruby | reduce array allocations | 0fa8c0a1d9d1e51f7dd904c483723eb5d4b9f393 | <ide><path>activesupport/lib/active_support/parameter_filter.rb
<ide> class CompiledFilter # :nodoc:
<ide> def self.compile(filters, mask:)
<ide> return lambda { |params| params.dup } if filters.empty?
<ide>
<del> strings, regexps, blocks = [], [], []
<add> strings, regexps, blocks, deep_re... | 1 |
PHP | PHP | add registered method | dadc76237b58ded295fa5459b1d7a9e4e6f4f33a | <ide><path>src/Illuminate/Foundation/Auth/RegistersUsers.php
<ide> public function register(Request $request)
<ide>
<ide> $this->guard()->login($user);
<ide>
<del> return redirect($this->redirectPath());
<add> return $this->registered($request, $user)
<add> ?: redirect($this->redirect... | 1 |
Ruby | Ruby | remove outdated comment | b730a85e3a327040ae4a8d8f6dcee9335573c100 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> raise "You must install 7zip: brew install p7zip" unless which "7zr"
<ide> safe_system '7zr', 'x', @tarball_path
<ide> else
<del> # we are assuming it is not an archive, use original filename
<del> # this behaviour is due t... | 1 |
Go | Go | fix empty-lines (revive) | 8a2e1245d42d3fb1d27e61b83774354129eb123a | <ide><path>distribution/manifest_test.go
<ide> func TestManifestStore(t *testing.T) {
<ide>
<ide> err = w.Commit(ctx, desc.Size, desc.Digest, opts...)
<ide> assert.NilError(t, err)
<del>
<ide> }
<ide>
<ide> // All tests should end up with no active ingest
<ide> func TestDetectManifestBlobMediaType(t *testing.T)... | 8 |
Python | Python | fix typo in automatically generated marker | 00d823ee8210f5b16bfac336de1edf2027c7d0cc | <ide><path>dev/provider_packages/prepare_provider_packages.py
<ide> def replace_content(file_path, old_text, new_text, provider_package_id):
<ide> os.remove(temp_file_path)
<ide>
<ide>
<add>AUTOMATICALLY_GENERATED_MARKER = "AUTOMATICALLY GENERATED"
<ide> AUTOMATICALLY_GENERATED_CONTENT = (
<del> ".. TH... | 1 |
Javascript | Javascript | fix spelling error in assertion (ngattr*) | f6663b4314e4e8312ec54fb3265fc25754a22f8c | <ide><path>test/ng/compileSpec.js
<ide> describe('$compile', function() {
<ide> element = $compile('<span ng:attr:test="{{name}}" ng-Attr-test2="{{name}}" ng_Attr_test3="{{name}}"></span>')($rootScope);
<ide> expect(element.attr('test')).toBeUndefined();
<ide> expect(element.attr('test2')).toBeUndefin... | 1 |
Python | Python | try #1 to fix ctl | f0a8be5daf03c80a59b4acf087a832cd77e868d1 | <ide><path>official/recommendation/ncf_keras_main.py
<ide> def call(self, inputs):
<ide> return inputs[0]
<ide>
<ide>
<del> def _get_train_and_eval_data(producer, params):
<add>def _get_train_and_eval_data(producer, params):
<ide> """Returns the datasets for training and evalutating."""
<ide>
<ide> def prep... | 1 |
Python | Python | add transformers id to hub requests | f2b744f690e71756e0752255f3580b75f845ff95 | <ide><path>src/transformers/file_utils.py
<ide> from types import ModuleType
<ide> from typing import Any, BinaryIO, Dict, List, Optional, Tuple, Union
<ide> from urllib.parse import urlparse
<add>from uuid import uuid4
<ide> from zipfile import ZipFile, is_zipfile
<ide>
<ide> import numpy as np
<ide> PYTORCH_PRETRAIN... | 1 |
Python | Python | add tags inside try block. | 190e911c46900459ab8d211acc76cefa18090cbf | <ide><path>airflow/sentry.py
<ide> class ConfiguredSentry(DummySentry):
<ide> """Configure Sentry SDK."""
<ide>
<ide> SCOPE_DAG_RUN_TAGS = frozenset(("data_interval_end", "data_interval_start", "execution_date"))
<del> SCOPE_TASK_TAGS = frozenset(("operator",))
<ide> SCOPE_TASK_INSTANCE_... | 1 |
PHP | PHP | remove unnecessary else | 093409654608daa7b28d7c30933bda6f92935014 | <ide><path>src/Illuminate/Queue/Queue.php
<ide> protected function createPayload($job, $data = '', $queue = null)
<ide> {
<ide> if ($job instanceof Closure) {
<ide> return json_encode($this->createClosurePayload($job, $data));
<del> } elseif (is_object($job)) {
<add> }
<add>
<add> ... | 1 |
Javascript | Javascript | add more path.basename() tests | 27549f64cea9b4822cc9e39e2d88b2481ca012a9 | <ide><path>test/parallel/test-path.js
<ide> assert.equal(path.basename('aaa/bbb', 'bbb'), 'bbb');
<ide> assert.equal(path.basename('aaa/bbb//', 'bbb'), 'bbb');
<ide> assert.equal(path.basename('aaa/bbb', 'bb'), 'b');
<ide> assert.equal(path.basename('aaa/bbb', 'b'), 'bb');
<add>assert.equal(path.basename('/aaa/bbb', '/... | 1 |
Python | Python | ignore cache on request.get_json(cache=false) call | 36425d5f91b57210f7707de9564377fea93825b2 | <ide><path>flask/wrappers.py
<ide> def get_json(self, force=False, silent=False, cache=True):
<ide> on the request.
<ide> """
<ide> rv = getattr(self, '_cached_json', _missing)
<del> if rv is not _missing:
<add> # We return cached JSON only when the cache is enabled.
... | 2 |
Go | Go | update documents of `dispatchadd` | 9b374801ac843c3401bfb21d8fd5e205d0bba0d3 | <ide><path>builder/dockerfile/dispatchers.go
<ide> func dispatchLabel(d dispatchRequest, c *instructions.LabelCommand) error {
<ide>
<ide> // ADD foo /path
<ide> //
<del>// Add the file 'foo' to '/path'. Tarball and Remote URL (git, http) handling
<add>// Add the file 'foo' to '/path'. Tarball and Remote URL (http, ht... | 1 |
Javascript | Javascript | remove property for compatibility | 0a7420c63b59d22f6a89c5f3967fac106f743a78 | <ide><path>packages/ember-runtime/lib/mixins/enumerable.js
<ide> function iter(key, value) {
<ide> */
<ide> Ember.Enumerable = Ember.Mixin.create({
<ide>
<del> // compatibility
<del> isEnumerable: true,
<del>
<ide> /**
<ide> Implement this method to make your class enumerable.
<ide> | 1 |
Python | Python | add short delay to prevent busy waiting | b8adad947084c8d0c51d1ee1d858ed8de2fb5745 | <ide><path>libcloud/compute/ssh.py
<ide> # Ref: https://bugs.launchpad.net/paramiko/+bug/392973
<ide>
<ide> import os
<add>import time
<ide> import subprocess
<ide> import logging
<ide>
<ide> def run(self, cmd):
<ide>
<ide> data = chan.recv_stderr(CHUNK_SIZE)
<ide>
<add> # Short sleep... | 1 |
Ruby | Ruby | fix paths usage | 9ebf3388040f696f61144c5baf50673fcadadff6 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_user_path_1
<ide>
<ide> message = ""
<ide>
<del> paths(ENV["HOMEBREW_PATH"]).each do |p|
<add> paths.each do |p|
<ide> case p
<ide> when "/usr/bin"
<ide> unless @seen_prefix_bin
<ide> def check_for_config_s... | 3 |
Java | Java | fix checkstyle violations | dd1330d05ee139987000ce8802357611090fef49 | <ide><path>spring-test/src/main/java/org/springframework/test/context/event/EventPublishingTestExecutionListener.java
<ide> * <p>These events may be consumed for various reasons, such as resetting <em>mock</em>
<ide> * beans or tracing test execution. Since these events may be consumed by regular
<ide> * Spring bean... | 4 |
Javascript | Javascript | add semicolon for jshint | a19131494c7661d8dee04aa9a422c1f171f249e0 | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider(){
<ide> });
<ide> return function deregisterWatchGroup() {
<ide> shouldCall = false;
<del> }
<add> };
<ide> }
<ide>
<ide> if (watchExpressions.length === 1) { | 1 |
Python | Python | fix xlnet save_steps and steps_per_epoch conflicts | e6750c5d3d7429d15b7c101f8e5ff24b6a4be53d | <ide><path>official/modeling/model_training_utils.py
<ide> def _float_metric_value(metric):
<ide> return metric.result().numpy().astype(float)
<ide>
<ide>
<del>def _steps_to_run(current_step, steps_per_epoch, steps_per_loop):
<add>def steps_to_run(current_step, steps_per_epoch, steps_per_loop):
<ide> """Calculate... | 6 |
Ruby | Ruby | fix incorrect example | b95f8be594d64509bb251ecd8315474fab368073 | <ide><path>activesupport/lib/active_support/ordered_options.rb
<ide>
<ide> # Usually key value pairs are handled something like this:
<ide> #
<del># h = ActiveSupport::OrderedOptions.new
<add># h = {}
<ide> # h[:boy] = 'John'
<ide> # h[:girl] = 'Mary'
<ide> # h[:boy] # => 'John'
<ide> # h[:girl] # => 'Mar... | 1 |
PHP | PHP | fix failing tests in entity test | ae59d5c4a1d2d04a3db1453e2beb5b7ce815acf6 | <ide><path>Cake/Test/TestCase/ORM/EntityTest.php
<ide> <?php
<ide> /**
<del> * PHP Version 5.4
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> public function testSetOneParamNoSetters() {
<id... | 1 |
Python | Python | skip failing test until @gante fix it | 870ff9e1dab249e4ffd8363ce132aa5145c94604 | <ide><path>tests/utils/test_cli.py
<ide> def test_cli_env(self):
<ide> self.assertIn("Platform", cs.out)
<ide> self.assertIn("Using distributed or parallel set-up in script?", cs.out)
<ide>
<add> @unittest.skip("Joao will fix me tomorrow.")
<ide> @is_pt_tf_cross_test
<ide> @patch(
<ide> ... | 1 |
Ruby | Ruby | ignore matches to source code | 79b1d4178e25d674cc7e831a9888769dbd673eb3 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f)
<ide> prefix_check = prefix
<ide> end
<ide>
<del> ignores = []
<add> # Ignore matches to source code, which is not required at run time.
<add> # These matches may be caused by debugging symbols.
<add> ... | 1 |
PHP | PHP | remove repeated code | 65fec46142e4e9d284aee2a4d8b07c87be8934bf | <ide><path>src/Illuminate/Database/Migrations/Migrator.php
<ide> public function rollback($pretend = false)
<ide> // of them "down" to reverse the last migration "operation" which ran.
<ide> $migrations = $this->repository->getLast();
<ide>
<del> $migrationsCount = count($migrations);
<add> ... | 1 |
Go | Go | fix tests with dockerinit lookup path | 01f9815b55742654b2f35d13c3aba6a9e48634c7 | <ide><path>docker/docker.go
<ide> import (
<ide> )
<ide>
<ide> func main() {
<del> if selfPath := utils.SelfPath(); selfPath == "/sbin/init" || strings.Contains(selfPath, "/.dockerinit") {
<add> if selfPath := utils.SelfPath(); selfPath == "/sbin/init" || strings.Contains(selfPath, ".dockerinit") {
<ide> // Running ... | 5 |
Javascript | Javascript | improve coverage of modulemap.js | 3b90bd006f6a585f5c992a249712d3b456d4e759 | <ide><path>test/parallel/test-internal-module-map-asserts.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const ModuleMap = require('internal/loader/ModuleMap');
<add>
<add>// ModuleMap.get, ModuleMap.has and ModuleMap.... | 1 |
Ruby | Ruby | warn linux users about using --cask | 020c50e588750151520296fe3b59d7de08de3de3 | <ide><path>Library/Homebrew/cli/parser.rb
<ide> def parse(argv = ARGV.freeze, ignore_invalid_options: false)
<ide>
<ide> @args_parsed = true
<ide>
<del> if !ignore_invalid_options && @args.help?
<del> puts generate_help_text
<del> exit
<add> unless ignore_invalid_options
<add> ... | 6 |
Javascript | Javascript | prevent double $digest when using jquery trigger | 1147f21999edf9a434cd8d24865a6455e744d858 | <ide><path>src/ng/directive/input.js
<ide> function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
<ide> });
<ide> }
<ide>
<del> var listener = function() {
<add> var listener = function(ev) {
<ide> if (composing) return;
<ide> var value = element.val();
<ide>
<ide> function textInput... | 3 |
Text | Text | fix a link to a slack clone example in supabase | cfca41cbfd9e59de95563e60fedcbfe375df5048 | <ide><path>examples/with-supabase-auth-realtime-db/README.md
<ide> This is a full-stack Slack clone example using:
<ide>
<ide> 
<ide>
<del>This example is a clone of the [Slack Clone example](https://github.com/supabase/supabase/tree/master/examples/slack-clone) in th... | 1 |
Text | Text | add link to ubuntu notes about ltsenablementstack | 27f44b9bb162dce988913b981f1f21eb149d875f | <ide><path>docs/sources/installation/ubuntulinux.md
<ide> VirtualBox guest additions. If you didn't install the headers for your
<ide> "precise" kernel, then you can skip these headers for the "raring"
<ide> kernel. But it is safer to include them if you're not sure.
<ide>
<add>Please read the installation instruction... | 1 |
Java | Java | use emptyobserver instead of subscribers.empty() | 5a381a2d6ba3d1b0dbf4754720f708720357a203 | <ide><path>src/main/java/rx/internal/operators/BufferUntilSubscriber.java
<ide> import rx.Observer;
<ide> import rx.Subscriber;
<ide> import rx.functions.Action0;
<add>import rx.observers.EmptyObserver;
<ide> import rx.observers.Subscribers;
<ide> import rx.subjects.Subject;
<ide> import rx.subscriptions.Subscriptions;... | 1 |
Text | Text | use "long term support" in readme | 16ae37848dfed4c2a2fdea68ea2d4f53c982fa47 | <ide><path>README.md
<ide> Looking for help? Check out the
<ide> April and October every year. Releases appearing each October have a support
<ide> life of 8 months. Releases appearing each April convert to LTS (see below)
<ide> each October.
<del>* **LTS**: Releases that receive Long-term Support, with a focus o... | 1 |
Javascript | Javascript | sync router.js - closes | 4ce4b1fc613db57740bcf0e3c8fbde358f784757 | <ide><path>packages/ember-routing/lib/vendor/router.js
<ide> define("router",
<ide> .then(handleAbort)
<ide> .then(afterModel)
<ide> .then(handleAbort)
<del> .then(proceed)
<del> .then(nu... | 1 |
Go | Go | reuse our pkg/locker | a7851e2556edb3e5333b6fe53160755fb5b7d616 | <ide><path>libcontainerd/client.go
<ide> import (
<ide> "fmt"
<ide> "sync"
<ide>
<del> "github.com/Sirupsen/logrus"
<add> "github.com/docker/docker/pkg/locker"
<ide> )
<ide>
<ide> // clientCommon contains the platform agnostic fields used in the client structure
<ide> type clientCommon struct {
<del> backend ... | 3 |
PHP | PHP | fix return value of setentity() | f4da682a925ef4453f17a7cccfd81697bca3fe21 | <ide><path>src/Datasource/EntityTrait.php
<ide> public function setDirty($property, $isDirty)
<ide> if ($isDirty === false) {
<ide> unset($this->_dirty[$property]);
<ide>
<del> return false;
<add> return $this;
<ide> }
<ide>
<ide> $this->_dirty[$property] = tr... | 2 |
Python | Python | enhance the ability of add | 367f8ceddd0f4c7ec1bdc506ed1d6b1c2808b2f2 | <ide><path>matrix/matrix_operation.py
<ide> from typing import List, Tuple
<ide>
<ide>
<del>def add(matrix_a: List[list], matrix_b: List[list]) -> List[list]:
<add>def add(*matrix_s: List[list]) -> List[list]:
<ide> """
<ide> >>> add([[1,2],[3,4]],[[2,3],[4,5]])
<ide> [[3, 5], [7, 9]]
<ide> >>> add([[... | 1 |
Text | Text | add link to rack website | e42100cf42345e84a83c3e711671b7e6de7fef2b | <ide><path>guides/source/getting_started.md
<ide> of the files and folders that Rails created by default:
<ide> |app/|Contains the controllers, models, views, helpers, mailers, channels, jobs and assets for your application. You'll focus on this folder for the remainder of this guide.|
<ide> |bin/|Contains the rails sc... | 1 |
Mixed | Ruby | avoid eager loading in relation#pretty_print | 546de0f6c6a91e4e2019f4759098caa5185176e0 | <ide><path>activerecord/CHANGELOG.md
<add>* Avoid loading every records in `ActiveRecord::Relation#pretty_print`
<add>
<add> ```ruby
<add> # Before
<add> pp Foo.all # Loads the whole table.
<add>
<add> # After
<add> pp Foo.all # Shows 10 items and an ellipsis.
<add> ```
<add>
<add> *Ulysse Buonom... | 3 |
Text | Text | fix typo in util.parseargs usage example | aba2cd74dce406da2f3dcf6a2bd08d9552fa3671 | <ide><path>doc/api/util.md
<ide> const {
<ide> positionals
<ide> } = parseArgs({ args, options });
<ide> console.log(values, positionals);
<del>// Prints: [Object: null prototype] { foo: true, bar: 'b' } []ss
<add>// Prints: [Object: null prototype] { foo: true, bar: 'b' } []
<ide> ```
<ide>
<ide> `util.parseArgs` i... | 1 |
Text | Text | add examples readme | 81efde0ce401f3004e23fc1ed794d445b8cafa51 | <ide><path>examples/README.md
<add><a href="https://explosion.ai"><img src="https://explosion.ai/assets/img/logo.svg" width="125" height="125" align="right" /></a>
<add>
<add># spaCy examples
<add>
<add>For spaCy v3 we've converted many of the [v2 example
<add>scripts](https://github.com/explosion/spaCy/tree/v2.3.x/exa... | 2 |
Ruby | Ruby | check integrity after uploads | 894e1e3183b78d62d873454312882df53a29f850 | <ide><path>lib/active_storage/blob.rb
<ide> def upload(io)
<ide> self.checksum = compute_checksum_in_chunks(io)
<ide> self.byte_size = io.size
<ide>
<del> service.upload(key, io)
<add> service.upload(key, io, checksum: checksum)
<ide> end
<ide>
<ide> def download
<ide><path>lib/active_storage/servi... | 7 |
Ruby | Ruby | fix serialization problem with yaml in 1.8.3 | 76a7a525576fa1ed12a362fac5da6e2f8b6dc92c | <ide><path>activerecord/lib/active_record/base.rb
<ide> def quoted_comma_pair_list(quoter, hash)
<ide>
<ide> def object_from_yaml(string)
<ide> return string unless string.is_a?(String)
<del> if has_yaml_encoding_header?(string)
<del> begin
<del> YAML::load(string)
<del> ... | 2 |
Ruby | Ruby | remove intermediate variable | 0c28247db19f2af9cb71e74f6824715e72f11076 | <ide><path>activerecord/lib/active_record/associations/preloader/through_association.rb
<ide> def through_records_by_owner
<ide>
<ide> owners.each_with_object({}) do |owner, h|
<ide> association = owner.association through_reflection.name
<del> through_records = Array(association.reade... | 1 |
PHP | PHP | use constants where possible | 1d42ee0298e08da186974f3c5b91b3afcf6f580b | <ide><path>src/Datasource/QueryTrait.php
<ide> public function getMapReducers(): array
<ide> * @return $this
<ide> * @throws \InvalidArgumentException
<ide> */
<del> public function formatResults(?callable $formatter = null, $mode = 0)
<add> public function formatResults(?callable $formatter = null... | 2 |
Java | Java | remove junit 3.8 based test class hierarchy | 4525068f56314e8e322e412852feedc1486a0d02 | <ide><path>spring-test/src/main/java/org/springframework/test/annotation/Timed.java
<ide> * @author Sam Brannen
<ide> * @since 2.0
<ide> * @see Repeat
<del> * @see AbstractAnnotationAwareTransactionalTests
<ide> */
<ide> @Documented
<ide> @Retention(RetentionPolicy.RUNTIME)
<ide><path>spring-test/src/main/java/org/... | 3 |
PHP | PHP | add @link to cookiecomponent docblocks | bc0e0b5c053de525e3966f4e553b7e730ea6e3d5 | <ide><path>lib/Cake/Controller/Component/CookieComponent.php
<ide> public function startup($controller) {
<ide> * @param boolean $encrypt Set to true to encrypt value, false otherwise
<ide> * @param string $expires Can be either Unix timestamp, or date string
<ide> * @return void
<add> * @link http://book.cakephp.or... | 1 |
PHP | PHP | fix param types in docblocks | 9f0af8433eaae7a59e297229ca84d998e0e56edf | <ide><path>src/Illuminate/Auth/Access/HandlesAuthorization.php
<ide> protected function allow($message = null, $code = null)
<ide> /**
<ide> * Throws an unauthorized exception.
<ide> *
<del> * @param string $message
<add> * @param string|null $message
<ide> * @param mixed|null $code
<id... | 14 |
PHP | PHP | remove deprecated code in serverrequest | 3c98d7699ba54db8b398613812934d6bd0f00ae4 | <ide><path>src/Http/ServerRequest.php
<ide> */
<ide> namespace Cake\Http;
<ide>
<del>use ArrayAccess;
<ide> use BadMethodCallException;
<ide> use Cake\Core\Configure;
<ide> use Cake\Http\Cookie\CookieCollection;
<ide> * A class that helps wrap Request information and particulars about a single request.
<ide> * Prov... | 11 |
Java | Java | enable registersegment in venice | a23596f70f9ca8a60382ac065a49cfad39c3f38c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java
<ide> public JavaScriptContextHolder getJavaScriptContextHolder() {
<ide> public @Nullable String getSourceURL() {
<ide> return mCatalystInstance.getSourceURL();
<ide> }
<add>
<add> /**
<add> * Register a JS segment after loadi... | 1 |
Javascript | Javascript | fix comments in animationaction | 8cda17649d7cfaff1a9728f3f02c7bc5075ab949 | <ide><path>src/animation/AnimationAction.js
<ide> function AnimationAction( mixer, clip, localRoot ) {
<ide>
<ide> this.repetitions = Infinity; // no. of repetitions when looping
<ide>
<del> this.paused = false; // false -> zero effective time scale
<del> this.enabled = true; // true -> zero effective weight... | 1 |
Java | Java | fix systrace section for lazy view managers | 52a67db629ff12c407605163bdbe3d5dfb5373f1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java
<ide> import com.facebook.react.uimanager.events.EventDispatcher;
<ide> import com.facebook.systrace.Systrace;
<ide> import com.facebook.systrace.SystraceMessage;
<del>
<ide> import java.util.ArrayList;
<ide> import java.util.List;
... | 2 |
Javascript | Javascript | correct pdfdocumentproxyclosure name | 117256ce788cd1c28a9bb39d97e646248624466a | <ide><path>src/api.js
<ide> PDFJS.getDocument = function getDocument(source) {
<ide> * Proxy to a PDFDocument in the worker thread. Also, contains commonly used
<ide> * properties that can be read synchronously.
<ide> */
<del>var PDFDocumentProxy = (function() {
<add>var PDFDocumentProxy = (function PDFDocumentProxy... | 1 |
Java | Java | fix race in turbomodulemanager initialization | 9fdc8daf6152382e787b5da175722435c28bf8b9 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public interface ReactInstanceEventListener {
<ide> private @Nullable @ThreadConfined(UI) DefaultHardwareBackBtnHandler mDefaultBackButtonImpl;
<ide> private @Nullable Activity mCurrentActivity;
<ide> private final Collection... | 1 |
PHP | PHP | fix cs issue | 777a46ff6de464ef88580cf62c09265948086a06 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> public function send() {
<ide> $this->_setContentLength();
<ide> $this->_setContentType();
<ide> foreach ($this->_headers as $header => $values) {
<del> foreach((array)$values as $value) {
<add> foreach ((array)$values as $value) {
<ide> $this->_sendHeade... | 1 |
Javascript | Javascript | remove unneeded weakset | aefcbcda47a2249a2ebd56a5895e07555e8be895 | <ide><path>src/main-process/file-recovery-service.js
<ide> export default class FileRecoveryService {
<ide> this.recoveryDirectory = recoveryDirectory
<ide> this.recoveryFilesByFilePath = new Map()
<ide> this.recoveryFilesByWindow = new WeakMap()
<del> this.observedWindows = new WeakSet()
<ide> }
<ide>... | 1 |
Javascript | Javascript | add position tracking to vrcontrols | 5f6b04a5848e5cb0f2392a7b407bde6dd26137bc | <ide><path>examples/js/controls/VRControls.js
<ide> THREE.VRControls = function ( object, callback ) {
<ide>
<ide> if ( vrInput === undefined ) return;
<ide>
<del> var orientation = vrInput.getState().orientation;
<add> var state = vrInput.getState();
<ide>
<del> if ( orientation !== null ) {
<add> if ( state.... | 1 |
Ruby | Ruby | remove unnecessary `query_scope` | 5047a1229fe13983274bf9675d09748cba281645 | <ide><path>activerecord/lib/active_record/associations/preloader/association.rb
<ide> def scope
<ide> end
<ide>
<ide> def records_for(ids)
<del> query_scope(ids)
<del> end
<del>
<del> def query_scope(ids)
<ide> scope.where(association_key_name => ids)
<ide> end
... | 1 |
Java | Java | use specified resolvabletype in jacksonjsonencoder | a0e223177927608e67d8b3e20436ecd6e68e7ec5 | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/support/JacksonJsonEncoder.java
<ide> import java.nio.ByteBuffer;
<ide> import java.nio.charset.StandardCharsets;
<ide>
<add>import com.fasterxml.jackson.databind.JavaType;
<ide> import com.fasterxml.jackson.databind.ObjectMapper;
<add>import ... | 3 |
PHP | PHP | commit application trait | 8efd39e5b6d5e74928a40709ee54d7ef3c591b89 | <ide><path>src/Illuminate/Foundation/Testing/ApplicationTrait.php
<add><?php namespace Illuminate\Foundation\Testing;
<add>
<add>use Illuminate\Http\Request;
<add>use InvalidArgumentException;
<add>use Symfony\Component\DomCrawler\Form;
<add>use Symfony\Component\DomCrawler\Crawler;
<add>use Illuminate\Contracts\Auth\A... | 1 |
PHP | PHP | fix existence check in mailsentwith | 2297484f72ee5ce50f9ca7bc9c58d1b4acd15c5e | <ide><path>src/TestSuite/Constraint/Email/MailSentWith.php
<ide> public function matches($other)
<ide> $emails = $this->getEmails();
<ide> foreach ($emails as $email) {
<ide> $value = $email->{'get' . ucfirst($this->method)}();
<del> if (in_array($this->method, ['to', 'cc', 'bcc',... | 2 |
Python | Python | add option to worker to control heartbeat interval | 574559dd435c1303bfdc06e78211771c241ee0f8 | <ide><path>celery/bin/worker.py
<ide>
<ide> Do not send event heartbeats.
<ide>
<add>.. cmdoption:: --heartbeat-interval
<add>
<add> Interval in seconds at which to send worker heartbeat
<add>
<ide> .. cmdoption:: --purge
<ide>
<ide> Purges all waiting tasks before the daemon is started.
<ide> def get_opt... | 4 |
Python | Python | add xfailing test (see , , ) | 414a69b736546b3f5adfb1a6f8dccf5b91160694 | <ide><path>spacy/tests/regression/test_issue1971.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>from spacy.matcher import Matcher
<add>from spacy.tokens import Token, Doc
<add>
<add>
<add>def test_issue1971(en_vocab):
<add> # Possibly related to #2675 and #2671?
<add> matcher = Mat... | 1 |
PHP | PHP | add arraycache engine | ed45089396c133b51f370426af868af3b86e9a71 | <ide><path>src/Cache/Engine/ArrayEngine.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, ple... | 2 |
Python | Python | handle http_auth in elasticsearch backend results | 193be0be9dd8b925b3a46fed80887e73707db935 | <ide><path>celery/backends/elasticsearch.py
<ide> class ElasticsearchBackend(KeyValueStoreBackend):
<ide> scheme = 'http'
<ide> host = 'localhost'
<ide> port = 9200
<add> username = None
<add> password = None
<ide> es_retry_on_timeout = False
<ide> es_timeout = 10
<ide> es_max_retries = 3
... | 2 |
PHP | PHP | remove request from context classes | decf51d2f8e360e11c9478c3899245fec4a785ea | <ide><path>src/Form/Form.php
<ide> public function setErrors(array $errors)
<ide> */
<ide> public function execute(array $data): bool
<ide> {
<add> $this->_data = $data;
<add>
<ide> if (!$this->validate($data)) {
<ide> return false;
<ide> }
<ide><path>src/View/Form/ArrayC... | 23 |
Java | Java | fix checkstyle error | e72f4ec501f2bcf37931628cc44d48db03607609 | <ide><path>spring-web/src/main/java/org/springframework/http/ResponseCookie.java
<ide> public interface ResponseCookieBuilder {
<ide> * attached to same site requests if {@code "Strict"} or cross-site
<ide> * requests if {@code "Lax"}.
<ide> * <p>By default set to {@code "Strict"}.
<del> * @see <a href="http... | 1 |
Text | Text | add strategic initiative for shadow realm | 5a3de828c92f989b54b688fa90fdf8ba8e4180ae | <ide><path>doc/contributing/strategic-initiatives.md
<ide> agenda to ensure they are active and have the support they need.
<ide> | ------------------- | --------------------------- | --------------------------------------------- |
<ide> | Core Promise APIs | [Antoine du Hamel][aduh95] | <https://github.com/nodejs/T... | 1 |
Javascript | Javascript | update the legend object during beforeupdate | 537cd749192a211225414804ba0f38a2c6f1811c | <ide><path>src/plugins/plugin.legend.js
<ide> export default {
<ide> }
<ide> },
<ide>
<del> afterUpdate(chart) {
<add> // During the beforeUpdate step, the layout configuration needs to run
<add> // This ensures that if the legend position changes (via an option update)
<add> // the layout system respects the chang... | 1 |
Go | Go | remove the redundant stripcomment | 6c79ee7d1e38f7b2f408105db9af7fcf9942f7ca | <ide><path>builder/parser/parser.go
<ide> func Parse(rwc io.Reader) (*Node, error) {
<ide>
<ide> for scanner.Scan() {
<ide> scannedLine := strings.TrimLeftFunc(scanner.Text(), unicode.IsSpace)
<del> if stripComments(scannedLine) == "" {
<del> continue
<del> }
<del>
<ide> line, child, err := parseLine(scannedL... | 1 |
PHP | PHP | fix errors when columns match value lengths | 0711368f184ca0b44253674e055ae0a244b2d508 | <ide><path>lib/Cake/Database/Dialect/SqliteDialectTrait.php
<ide> protected function _transformFunctionExpression(FunctionExpression $expression)
<ide> }
<ide>
<ide> /**
<del> * Transforms an insert query that is meant to insert multiple tows at a time,
<add> * Transforms an insert query that is meant to insert multi... | 1 |
Javascript | Javascript | remove call to checkframebufferstatus | 6f1caec4b6116fdad310d72148805e89d2ed6087 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters = {} ) {
<ide>
<ide> }
<ide>
<del> if ( _gl.checkFramebufferStatus( _gl.FRAMEBUFFER ) === _gl.FRAMEBUFFER_COMPLETE ) {
<add> // the following if statement ensures valid read requests (no out-of-bounds pixels, see #8604)
<ide>... | 1 |
PHP | PHP | fix cs errors | 63b77c356a31119ad66f0ebefeeb0dee9fafe467 | <ide><path>src/TestSuite/IntegrationTestTrait.php
<ide> public function assertFlashMessageAt(int $at, string $expected, string $key = 'f
<ide> $verboseMessage = $this->extractVerboseMessage($message);
<ide> $this->assertThat(
<ide> $expected,
<del> new FlashParamEquals($this->_req... | 2 |
Text | Text | fix typo in error markdown | bb05e42698a9ea74560ef20b51e2266eb85ba382 | <ide><path>errors/gssp-component-member.md
<del># getStaticProps/getServerProps can not be attached to the page component
<add># getStaticProps/getServerSideProps can not be attached to the page component
<ide>
<ide> #### Why This Error Occurred
<ide> | 1 |
PHP | PHP | add types to insert queries | 3462539a5d32bd94d9307120e5ce156455d1c93b | <ide><path>lib/Cake/Model/Datasource/Database/Expression/ValuesExpression.php
<ide> class ValuesExpression implements Expression {
<ide> */
<ide> protected $_columns = [];
<ide>
<add>/**
<add> * List of column types.
<add> *
<add> * @var array
<add> */
<add> protected $_types = [];
<add>
<ide> /**
<ide> * Flag for ... | 3 |
Ruby | Ruby | take care not to mix in public methods | 347db97eddfc4c303a005b71fce9faf12e74e63a | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def clean_backtrace(&block)
<ide> #
<ide> # The exception is stored in the exception accessor for further inspection.
<ide> module RaiseActionExceptions
<del> attr_accessor :exception
<add> protected
<add> attr_accessor :excepti... | 1 |
Javascript | Javascript | remove usage of `mozfillrule` | 95732279b647adde43d0bb0a3a835ba5b83f86ca | <ide><path>src/display/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> }
<ide>
<ide> if (this.pendingEOFill) {
<del> if (ctx.mozFillRule !== undefined) {
<del> ctx.mozFillRule = 'evenodd';
<del> ctx.fill();
<del> ctx.mozFillRule = 'nonzero';
... | 2 |
PHP | PHP | update the datetime formatting | 2fc66e7910a568dccd4bb061971d5f333f8a3319 | <ide><path>src/Collection/Iterator/SortIterator.php
<ide> public function __construct($items, $callback, $dir = SORT_DESC, $type = SORT_NU
<ide> $callback = $this->_propertyExtractor($callback);
<ide> $results = [];
<ide> foreach ($items as $key => $value) {
<del> if ($value instanceo... | 1 |
Ruby | Ruby | pull namespace defaults out of the options hash | 8711086f5a2e73cd068434a5fafef258ba9f4fe1 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def controller(controller, options={})
<ide> # end
<ide> def namespace(path, options = {})
<ide> path = path.to_s
<del> options = { :path => path, :as => path, :module => path,
<del> :shallow_path... | 2 |
Python | Python | add a comment explaining why we use normal assert | 4dbd084fd7f6448da24feb99a01b4d7bc275b3ff | <ide><path>numpy/tests/test_public_api.py
<ide> def test_numpy_namespace():
<ide> 'who': 'numpy.lib.utils.who',
<ide> }
<ide> bad_results = check_dir(np)
<add> # pytest gives better error messages with the builtin assert than with
<add> # assert_equal
<ide> assert bad_results == whitelist
<ide... | 1 |
Javascript | Javascript | fix couple of failing e2e tests | 517ada2662019aae99af4bffb0e7fc673bbe9ebd | <ide><path>src/service/location.js
<ide> var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+)
<ide> <doc:source>
<ide> <div ng:init="$location = $service('$location')">
<ide> <a id="ex-test" href="#myPath?name=misko">test hash</a>|
<del> <a id="ex-reset" href="#!... | 2 |
Ruby | Ruby | remove unnecessary require of minitest | 4ca5a5ea679508603f28dcae5407a634037670e5 | <ide><path>actionpack/lib/action_dispatch/testing/integration.rb
<ide> require 'active_support/core_ext/kernel/singleton_class'
<ide> require 'active_support/core_ext/object/try'
<ide> require 'rack/test'
<del>require 'minitest'
<ide>
<ide> module ActionDispatch
<ide> module Integration #:nodoc:
<ide><path>activesup... | 4 |
Javascript | Javascript | add 308 status_code, see rfc7238 | ab50fad63bcbedd7c935a9c5d2ab9e4c7202c9f2 | <ide><path>lib/_http_server.js
<ide> var STATUS_CODES = exports.STATUS_CODES = {
<ide> 304 : 'Not Modified',
<ide> 305 : 'Use Proxy',
<ide> 307 : 'Temporary Redirect',
<add> 308 : 'Permanent Redirect', // RFC 7238
<ide> 400 : 'Bad Request',
<ide> 401 : 'Unauthorized',
<ide> 402 : 'Payment Required'... | 1 |
Java | Java | allow modifying handshakeinterceptor list | e81862eed6438c1acf1ecaf6f6d554e31300fb56 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java
<ide> public void setHandshakeInterceptors(List<HandshakeInterceptor> interceptors) {
<ide> * Return the configured WebSocket handshake request interceptors.
<ide> */
<ide> public List<Hand... | 1 |
Ruby | Ruby | fix typo in postressqladapter's documentation | a4139a167421e2c8ca3b84a333d337006282e928 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> module ConnectionAdapters
<ide> # <tt>SET client_min_messages TO <min_messages></tt> call on the connection.
<ide> # * <tt>:variables</tt> - An optional hash of additional parameters that
<ide> # will be used in <t... | 1 |
Ruby | Ruby | hide output from brew cask uninstall test | d11e417105c04a1c21edfb4481bc26e21f1c94f9 | <ide><path>Library/Homebrew/test/cask/cli/uninstall_spec.rb
<ide>
<ide> it "tries anyway on a non-present Cask when --force is given" do
<ide> expect {
<del> Hbc::CLI::Uninstall.run("local-caffeine", "--force")
<add> shutup do
<add> Hbc::CLI::Uninstall.run("local-caffeine", "--force")
<add> ... | 1 |
Javascript | Javascript | convert the `pageviewport` to a proper es6 class | 51673dbc5a752520571f0ce6094608f49293f4d0 | <ide><path>src/display/dom_utils.js
<ide> class DOMSVGFactory {
<ide>
<ide> /**
<ide> * PDF page viewport created based on scale, rotation and offset.
<del> * @class
<del> * @alias PageViewport
<ide> */
<del>var PageViewport = (function PageViewportClosure() {
<add>class PageViewport {
<ide> /**
<del> * @constru... | 1 |
Python | Python | add implementation of typical sampling | 0113aae5b7a3e9de7f6300c71ca593a5fdc3b0c2 | <ide><path>src/transformers/configuration_utils.py
<ide> def __init__(self, **kwargs):
<ide> self.temperature = kwargs.pop("temperature", 1.0)
<ide> self.top_k = kwargs.pop("top_k", 50)
<ide> self.top_p = kwargs.pop("top_p", 1.0)
<add> self.typical_p = kwargs.pop("typical_p", 1.0)
<ide> ... | 5 |
Python | Python | get process stats | 39c82ef24b32fb0992036315a3c30c5178774fa5 | <ide><path>glances/glances.py
<ide> def __get_process_statsNEW__(self, proc):
<ide> Get process (proc) statistics
<ide> !!! Waiting PATCH for PsUtil
<ide> !!! http://code.google.com/p/psutil/issues/detail?id=329
<del> !!! Performance ?
<add> !!! Performance gap ???
<ide> ""... | 1 |
Ruby | Ruby | use ruby 2.4+ native transform_values(!) | bb175287697768c7312c51f14dcc5b65b1d31fb8 | <ide><path>activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb
<ide> def deep_transform_values!(&block)
<ide> def _deep_transform_values_in_object(object, &block)
<ide> case object
<ide> when Hash
<del> object.each_with_object({}) do |(key, value), result|
<del> resul... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.