content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | remove dead has_side_effects logic | 416b5ef17343acebfd19e1436e3b2990e99e1d0e | <ide><path>src/renderers/dom/shared/DOMProperty.js
<ide> var DOMPropertyInjection = {
<ide> * specifies how the associated DOM property should be accessed or rendered.
<ide> */
<ide> MUST_USE_PROPERTY: 0x1,
<del> HAS_SIDE_EFFECTS: 0x2,
<ide> HAS_BOOLEAN_VALUE: 0x4,
<ide> HAS_NUMERIC_VALUE: 0x8,
<ide> HAS... | 2 |
Ruby | Ruby | remove sneaky empty line | dd9415c8d3c07b4fa2ac066e867297ff06c64568 | <ide><path>Library/Homebrew/extend/os/mac/caveats.rb
<ide> def plist_caveats
<ide> end
<ide> s.join("\n") + "\n" unless s.empty?
<ide> end
<del>
<ide> end | 1 |
Python | Python | update the typing tests for `np.core.shape_base` | 76bad5650e4c741c7104060302d18e9b114b6bdb | <ide><path>numpy/typing/tests/data/fail/array_constructors.py
<ide> np.geomspace(None, 'bob') # E: Argument 1
<ide>
<ide> np.stack(generator) # E: No overload variant
<del>np.hstack({1, 2}) # E: incompatible type
<del>np.vstack(1) # E: incompatible type
<add>np.hstack({1, 2}) # E: No overload variant
<add>np.vsta... | 2 |
PHP | PHP | pass the key to the keyby callback | bccaf7c179237ca558be5df2d7e8e44ef52136cc | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function keyBy($keyBy)
<ide>
<ide> $results = [];
<ide>
<del> foreach ($this->items as $item) {
<del> $results[$keyBy($item)] = $item;
<add> foreach ($this->items as $key => $item) {
<add> $results[$keyBy($item, ... | 2 |
Java | Java | restore support of list of inner bean definitions | 6d688e196d8f4c41284087e5346da29770349b0c | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java
<ide> class BeanDefinitionMethodGenerator {
<ide> private final Executable constructorOrFactoryMethod;
<ide>
<ide> @Nullable
<del> private final String innerBeanPropertyName;
<add> private final String curr... | 8 |
Javascript | Javascript | update running animations | b73b8f98633f399ac804d52bb0c8ed6d2212d3ea | <ide><path>src/core/core.animation.js
<ide> export default class Animation {
<ide> return this._active;
<ide> }
<ide>
<add> update(cfg, to, date) {
<add> const me = this;
<add> if (me._active) {
<add> const currentValue = me._target[me._prop];
<add> const elapsed = date - me._start;
<add> const remain = me.... | 3 |
Python | Python | return default value if comment is malformed | 77765efd94f1e17c2b93607f16b47417d7dc7d29 | <ide><path>libcloud/utils/publickey.py
<ide> def get_pubkey_ssh2_fingerprint(pubkey):
<ide>
<ide>
<ide> def get_pubkey_comment(pubkey, default=None):
<del> if pubkey.startswith("ssh-"):
<del> # This is probably an OpenSSH key
<del> return pubkey.strip().split(' ', 3)[2]
<add> try:
<add> if ... | 1 |
Javascript | Javascript | remove thirdparty fixme | e42af973452ed639ed34dadfd8eff0453f6501ce | <ide><path>actioncable/test/javascript/vendor/mock-socket.js
<ide> if (root.IPv6 === this) {
<ide> root.IPv6 = _IPv6;
<ide> }
<del>
<add>
<ide> return this;
<ide> }
<ide>
<ide> }(this, function (punycode, IPv6, SLD, root) {
<ide> 'use strict';
<ide> /*global location, escape, unescape */
<del... | 1 |
Javascript | Javascript | add a timeout to address a ci failures | b419a7b20b49425d6fa9d29ca254036263138f82 | <ide><path>test/configCases/plugins/profiling-plugin/index.js
<ide> import "./test.json";
<ide>
<del>it("should generate a events.json file", () => {
<add>it("should generate a events.json file", (done) => {
<ide> var fs = require("fs"),
<ide> path = require("path"),
<del> os = require("os");
<del> ... | 1 |
Javascript | Javascript | fix priority of clean-up function on deletion | 05dce7598a60d38d39a6b32572b54e1408c29d9b | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.js
<ide> import type {CapturedValue, CapturedError} from './ReactCapturedValue';
<ide> import type {SuspenseState} from './ReactFiberSuspenseComponent';
<ide> import type {FunctionComponentUpdateQueue} from './ReactFiberHooks';
<ide> import type {Thenable} f... | 3 |
PHP | PHP | add validator as a string | 5cdef0d31228b53ea50c1d5aa7bd42954468d4f3 | <ide><path>src/View/Form/EntityContext.php
<ide>
<ide> use Cake\Network\Request;
<ide> use Cake\ORM\Entity;
<add>use Cake\ORM\TableRegistry;
<ide> use Cake\Validation\Validator;
<ide> use Traversable;
<ide>
<ide> class EntityContext {
<ide> */
<ide> protected $_validators = [];
<ide>
<add>/**
<add> * A dictionary ... | 2 |
PHP | PHP | add auth directive | 71d38b044dad82eb8dfdba2ee2edb69eca415324 | <ide><path>resources/views/welcome.blade.php
<ide> <div class="flex-center position-ref full-height">
<ide> @if (Route::has('login'))
<ide> <div class="top-right links">
<del> @if (Auth::check())
<add> @auth
<ide> <a href=... | 1 |
Text | Text | add dev report 2017-06-26 | 8b0384fd8918e82459aab037d50bca6394bbf781 | <ide><path>reports/2017-06-26.md
<add># Development Report for June 26, 2017
<add>
<add>## Moby Summit
<add>
<add>The Moby Summit held in San Francisco was very active and well attended ([blog](http://mobyproject.org/blog/2017/06/26/moby-summit-recap/) / [linuxkit table notes](https://github.com/linuxkit/linuxkit/blob/... | 1 |
Ruby | Ruby | remove unnecessary full paths | 1aded31fec4a98c2521bca685166f82a8d7d66c6 | <ide><path>Library/Homebrew/test/test_utils.rb
<ide> def test_shell_profile
<ide> end
<ide>
<ide> def test_popen_read
<del> out = Utils.popen_read("/bin/sh", "-c", "echo success").chomp
<add> out = Utils.popen_read("sh", "-c", "echo success").chomp
<ide> assert_equal "success", out
<ide> assert_predi... | 1 |
Ruby | Ruby | use ruby for mocking | caf1bfccc680510b48e058d40c2a99cae965b5cb | <ide><path>actionpack/test/controller/url_for_test.rb
<ide> def test_subdomain_may_be_changed
<ide> end
<ide>
<ide> def test_subdomain_may_be_object
<del> model = mock(:to_param => 'api')
<add> model = Class.new { def self.to_param; 'api'; end }
<ide> add_host!
<ide> assert_eq... | 1 |
Python | Python | add log level as prefixes to respective messages | d04c9ef75a711c9117f5c5662ca604ed5b88607d | <ide><path>numpy/distutils/log.py
<ide> def set_verbosity(v, force=False):
<ide>
<ide> # don't use INFO,.. flags in set_verbosity, these flags are for set_threshold.
<ide> set_verbosity(0, force=True)
<add>
<add>
<add>_error = error
<add>_warn = warn
<add>_info = info
<add>_debug = debug
<add>
<add>
<add>def error(msg... | 2 |
Ruby | Ruby | initialize attributes in initializer | 566d6b3a462c740913852d889f39d6f6824d8c88 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def head?
<ide> end
<ide>
<ide> class CurlDownloadStrategy < AbstractDownloadStrategy
<del> def mirrors
<del> @mirrors ||= resource.mirrors.dup
<del> end
<del>
<del> def tarball_path
<del> @tarball_path ||= Pathname.new("#{HOMEBREW_CACHE}/#{name}-#{resour... | 1 |
Ruby | Ruby | add missing configuration to middleware test | 5aa60833355416f1b877967cdd2c22b37e119102 | <ide><path>railties/test/application/middleware_test.rb
<ide> def app
<ide> test "default middleware stack when requests are local" do
<ide> add_to_config "config.consider_all_requests_local = true"
<ide> add_to_config "config.active_record.migration_error = :page_load"
<add> add_to_config "config.... | 1 |
Python | Python | copy `node.d` only with node_use_dtrace | e0c530259050c4ecc6fe9cf8963992575e43f376 | <ide><path>tools/install.py
<ide> def subdir_files(path, dest, action):
<ide> def files(action):
<ide> action(['out/Release/node'], 'bin/node')
<ide>
<del> # install unconditionally, checking if the platform supports dtrace doesn't
<del> # work when cross-compiling and besides, there's at least one linux flavor
<d... | 1 |
Python | Python | update tests with new behavior | b196eca17de42aab4819f9b735fb277c5c034190 | <ide><path>t/unit/worker/test_loops.py
<ide> def test_on_task_message_missing_name(self):
<ide> on_task(msg)
<ide> x.on_unknown_message.assert_called_with(msg.decode(), msg)
<ide>
<del> def test_on_task_not_registered(self):
<add> def test_on_task_pool_raises(self):
<ide> x, on_task, msg,... | 2 |
Ruby | Ruby | remove legacy cask cache instead of migrating | f7c6fc058f5eff55281fd7559b4217184162edcf | <ide><path>Library/Homebrew/cask/lib/hbc.rb
<ide> module Hbc
<ide>
<ide> def self.init
<ide> Cache.ensure_cache_exists
<del> Cache.migrate_legacy_cache
<add> Cache.delete_legacy_cache
<ide>
<ide> Caskroom.migrate_caskroom_from_repo_to_prefix
<ide> Caskroom.ensure_caskroom_exists
<ide><path>Library... | 2 |
Python | Python | add distant debugging | 5adc20723bbff4fea628f526b256a60ccd98dbf5 | <ide><path>examples/run_openai_gpt.py
<ide> def main():
<ide> parser.add_argument('--weight_decay', type=float, default=0.01)
<ide> parser.add_argument('--lm_coef', type=float, default=0.5)
<ide> parser.add_argument('--n_valid', type=int, default=374)
<add>
<add> parser.add_argument('--server_ip', type=s... | 1 |
Text | Text | add dev docs on satellite packages | 515d5c65d5f5d05eb8d2777e59cb5680dfcb4bd9 | <ide><path>extra/DEVELOPER_DOCS/Satellite Packages.md
<add># spaCy Satellite Packages
<add>
<add>This is a list of all the active repos relevant to spaCy besides the main one, with short descriptions, history, and current status. Archived repos will not be covered.
<add>
<add>## Always Included in spaCy
<add>
<add>Thes... | 1 |
Text | Text | use sentence case in readme headers | 044110e6a94ad280ca64e82476996f6ef2b190d2 | <ide><path>README.md
<ide> The Node.js project uses an [open governance model](./GOVERNANCE.md). The
<ide>
<ide> **This project is bound by a [Code of Conduct][].**
<ide>
<del># Table of Contents
<add># Table of contents
<ide>
<ide> * [Support](#support)
<ide> * [Release Types](#release-types)
<ide> The Node.js proj... | 1 |
Go | Go | generate imports based on what is avaliable | 3061a6a2ab0395c626f9acaa2e5d9c17152b0475 | <ide><path>pkg/apparmor/gen.go
<add>package apparmor
<add>
<add>import (
<add> "io"
<add> "os"
<add> "text/template"
<add>)
<add>
<add>type data struct {
<add> Name string
<add> Imports []string
<add> InnerImports []string
<add>}
<add>
<add>const baseTemplate = `
<add>{{range $value := .Imports}}
<add>{{$v... | 2 |
Javascript | Javascript | add target to getclearcolor | 380067c434f2afcbce6a2f33e72b711039d2b955 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide>
<ide> // Clearing
<ide>
<del> this.getClearColor = function () {
<add> this.getClearColor = function ( target ) {
<ide>
<del> return background.getClearColor();
<add> if ( target === undefined ) {
<add>
<add> console.wa... | 1 |
Mixed | Text | add new error to api docs | b0089e48272f18d856ba147b393371c18d5683fb | <ide><path>api/server/router/network/network_routes.go
<ide> func (n *networkRouter) postNetworkConnect(ctx context.Context, w http.ResponseW
<ide> }
<ide>
<ide> if nw.Info().Dynamic() {
<del> return newNetworkForbiddenError("Operation not supported for swarm scoped networks")
<add> return newNetworkForbiddenError... | 3 |
Go | Go | pass info rather than hash to deletedevice | 8e39b35c7cd02bbb644b7faf2a434de0098e6dea | <ide><path>runtime/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) setupBaseImage() error {
<ide>
<ide> if oldInfo != nil && !oldInfo.Initialized {
<ide> utils.Debugf("Removing uninitialized base image")
<del> if err := devices.deleteDevice(""); err != nil {
<add> if err := devices.deleteDevice... | 1 |
Javascript | Javascript | keep option object as it is | cc5997a2b1cb8a2b66a9b2b7a12e391ad2bb0a6f | <ide><path>packager/src/node-haste/DependencyGraph/ResolutionRequest.js
<ide> function tryResolveSync<T>(action: () => T, secondaryAction: () => T): T {
<ide> }
<ide>
<ide> class ResolutionRequest<TModule: Moduleish, TPackage: Packageish> {
<del> _dirExists: DirExistsFn;
<del> _entryPath: string;
<del> _extraNodeMo... | 1 |
Ruby | Ruby | add (more) documentation to to_time | 881def43e326c36a7870bcc3ba56dc4a006b9a38 | <ide><path>activesupport/lib/active_support/core_ext/date/conversions.rb
<ide> def readable_inspect
<ide> # date.to_time(:local) # => 2007-11-10 00:00:00 0800
<ide> #
<ide> # date.to_time(:utc) # => 2007-11-10 00:00:00 UTC
<add> #
<add> # NOTE: The :local timezone is Ruby's *process* t... | 1 |
Javascript | Javascript | allow empty parameters | 72d0f8821530bc77a369914c285a45991b2bf465 | <ide><path>benchmark/common.js
<ide> function parseOpts(options) {
<ide> var num = keys.length;
<ide> var conf = {};
<ide> for (var i = 2; i < process.argv.length; i++) {
<del> var match = process.argv[i].match(/^(.+)=(.+)$/);
<del> if (!match || !match[1] || !match[2] || !options[match[1]]) {
<add> var ... | 1 |
Go | Go | remove last trace of daemon->server dependency | 20b0841c1bd07c6add812597e0d656d7584e48ac | <ide><path>daemon/container.go
<ide> func (container *Container) monitor(callback execdriver.StartCallback) error {
<ide> if container.Config.OpenStdin {
<ide> container.stdin, container.stdinPipe = io.Pipe()
<ide> }
<del> if container.daemon != nil && container.daemon.srv != nil {
<del> container.LogEvent("die")
... | 4 |
Javascript | Javascript | remove dependency on internal data structure | 86fad4b2f38001374a77abdf12cb9a1ae23e572c | <ide><path>Libraries/Inspector/Inspector.js
<ide> class Inspector extends React.Component {
<ide> // instance that contains it (like View)
<ide> const {
<ide> hierarchy,
<del> instance,
<ide> props,
<ide> selection,
<ide> source,
<ide> } = renderer.getInspectorDataForViewTag(tou... | 1 |
Go | Go | add version pkg | 8dad771daa6572ca15949d3e53e825f4837c0af9 | <ide><path>api/server.go
<ide> import (
<ide> "github.com/dotcloud/docker/pkg/listenbuffer"
<ide> "github.com/dotcloud/docker/pkg/systemd"
<ide> "github.com/dotcloud/docker/pkg/user"
<add> "github.com/dotcloud/docker/pkg/version"
<ide> "github.com/dotcloud/docker/utils"
<ide> "github.com/gorilla/mux"
<ide> "io"
<... | 6 |
Go | Go | fix getmetadata() comment | 15a232fd06e062f8aae4e89e1f520f44c875daeb | <ide><path>daemon/graphdriver/zfs/zfs.go
<ide> func (d *Driver) Status() [][2]string {
<ide> }
<ide> }
<ide>
<del>// GetMetadata is used for implementing the graphdriver.ProtoDriver interface. ZFS does not currently have any meta data.
<add>// GetMetadata returns image/container metadata related to graph driver
<ide>... | 1 |
PHP | PHP | use json_pretty_print available in php 5.4 | ef2220995f73155fd5ebedd754c89656bcb49c25 | <ide><path>src/Illuminate/Foundation/ProviderRepository.php
<ide> public function writeManifest($manifest)
<ide> {
<ide> $path = $this->manifestPath.'/services.json';
<ide>
<del> $this->files->put($path, json_encode($manifest));
<add> $this->files->put($path, json_encode($manifest, JSON_PRETTY_PRINT));
<ide>
<id... | 1 |
Text | Text | clarify use of `0` port value | 60891c6ef0dc3bf9518d7132da6498c66f26763e | <ide><path>doc/api/http.md
<ide> a listener for the `'listening'` event. See also [`net.Server.listen(path)`][].
<ide>
<ide> Begin accepting connections on the specified `port` and `hostname`. If the
<ide> `hostname` is omitted, the server will accept connections on any IPv6 address
<del>(`::`) when IPv6 is available... | 2 |
Python | Python | fix special tokens not correctly tokenized | da8beaaf762c0ea4eecb150039be63949fe5cf94 | <ide><path>src/transformers/tokenization_utils.py
<ide> def tokenize(self, text: TextInput, **kwargs) -> List[str]:
<ide> # TODO: should this be in the base class?
<ide> if hasattr(self, "do_lower_case") and self.do_lower_case:
<ide> # convert non-special tokens to lowercase
<del> ... | 3 |
Text | Text | add pr template | 951d42f54af7bf84897d3d2907e8476a4d2a26db | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<add><!--
<add>Pull Requests without a descriptive title, thorough description, or tests will be closed.
<add>
<add>Please include the benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.
<add>--> | 1 |
Python | Python | improve lithuanian tokenization | 86c43e55fa3a9557e838998bc288bb4833c2d0ec | <ide><path>spacy/lang/lt/__init__.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<add>from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
<ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
<ide> from .stop_words import STOP_WORDS
<ide> from .lex_attrs import LEX_ATTRS
... | 4 |
Text | Text | remove keyword for cifar10.load_data | 0cd9d4682888c4ae6616c784d46ca4a4a44fe581 | <ide><path>docs/templates/preprocessing/image.md
<ide> Generate batches of tensor image data with real-time data augmentation. The data
<ide> Example of using `.flow(X, y)`:
<ide>
<ide> ```python
<del>(X_train, y_train), (X_test, y_test) = cifar10.load_data(test_split=0.1)
<add>(X_train, y_train), (X_test, y_test) = c... | 1 |
Text | Text | add note about symbols vs strings | 797317089301ca469e113ca3f46f29c129246c3e | <ide><path>guides/source/routing.md
<ide> resources :photos do
<ide> end
<ide> ```
<ide>
<add>NOTE: If you're defining additional resource routes with a symbol as the first positional argument, be mindful that it is not equivalent to using a string. Symbols infer controller actions while strings infer paths.
<add>
<id... | 1 |
Javascript | Javascript | use displayerrors for syntaxerror | 68ac0d0d7d82f8fde114ef4644c59ae6060e0b01 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> }
<ide> var script = vm.createScript(code, {
<ide> filename: file,
<del> displayErrors: false
<add> displayErrors: true
<ide> });
<ide> } catch (e) {
<ide> debug('parse error %j', code, e);
<... | 2 |
Python | Python | update punctuation rules | edec51b1b1999b09ccbbea6c836d47db498a40ef | <ide><path>spacy/lang/id/punctuation.py
<ide>
<ide> UNITS = merge_chars(_units)
<ide> CURRENCY = merge_chars(_currency)
<del>HTML_PREFIX = r'<(b|strong|i|em|p|span|div|br)\s?/>'
<del>HTML_SUFFIX = r'</(b|strong|i|em|p|span|div)>'
<add>HTML_PREFIX = r'<(b|strong|i|em|p|span|div|br)\s?/>|<a([^>]+)>'
<add>HTML_SUFFIX = r... | 1 |
Javascript | Javascript | convert arrow function to normal function | 1248616af0ad6cdfc7c5b1113e092ec5b3b484f6 | <ide><path>test/HotTestCases.test.js
<ide> describe("HotTestCases", () => {
<ide> const suite = describe(testName, function() {
<ide> this.timeout(10000);
<ide> });
<del> it(testName + " should compile", done => {
<add> it(testName + " should compile", function(done) {
<ide> this.timeout(10000);... | 1 |
Java | Java | switch defaultsockjsservice to constructor di | 36148b7cb1066b77b7849f9852d36d0fcf0f5db0 | <ide><path>spring-websocket/src/main/java/org/springframework/sockjs/server/AbstractServerSockJsSession.java
<ide> public synchronized void sendHeartbeat() throws Exception {
<ide> }
<ide>
<ide> protected void scheduleHeartbeat() {
<del> Assert.notNull(getSockJsConfig().getHeartbeatScheduler(), "heartbeatScheduler ... | 6 |
Javascript | Javascript | remove dataset while hovered | f191f2f5f9a1e1e1a95f1722b41d168244b1d554 | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> hidden: null, // See isDatasetVisible() comment
<ide> xAxisID: null,
<ide> yAxisID: null,
<del> order: dataset.order || 0,
<add> order: dataset && dataset.order || 0,
<ide> index: datasetIndex,
<ide> _dataset: dataset,
<ide> ... | 1 |
Python | Python | start the timeouthandler thread on demand | 15c34855a6177a5d9bb2497b8e8eef9ddb59272e | <ide><path>celery/concurrency/base.py
<ide> def start(self):
<ide>
<ide> def apply_async(self, target, args=None, kwargs=None, callbacks=None,
<ide> errbacks=None, accept_callback=None, timeout_callback=None,
<del> **compat):
<add> soft_timeout=None, timeout=None, **compat):
<ide>... | 6 |
Text | Text | add v3.16.0-beta.2 to changelog | 7f6cd8f743a7cc2f762a69f44455a7f169ac7bac | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.26.0-beta.2 (February 15, 2021)
<add>
<add>- [#19387](https://github.com/emberjs/ember.js/pull/19387) [BUGFIX] LinkTo with incomplete model failing in rendering tests
<add>- [#19395](https://github.com/emberjs/ember.js/pull/19395) [BUGFIX] Only return e... | 1 |
Mixed | Ruby | use different namespace for proxy calls | 81519dec1add5ee5d93cc24239283ca56379eb9a | <ide><path>activemodel/CHANGELOG.md
<add>* Use different cache namespace for proxy calls
<ide>
<add> Models can currently have different attribute bodies for the same method
<add> names, leading to conflicts. Adding a new namespace `:active_model_proxy`
<add> fixes the issue.
<add>
<add> *Chris Salzberg*... | 3 |
Ruby | Ruby | streamline loading casks from api | 1e536217b2cb4395f1ebe5c0ba5c8bf1db4e7926 | <ide><path>Library/Homebrew/cask/cask.rb
<ide> require "cask/dsl"
<ide> require "cask/metadata"
<ide> require "searchable"
<del>require "api"
<ide>
<ide> module Cask
<ide> # An instance of a cask.
<ide> def outdated_versions(greedy: false, greedy_latest: false, greedy_auto_updates:
<ide> # special case: tap ve... | 6 |
Javascript | Javascript | increase default file size for large-file warning | 4a12354e9acd6d6464c91cfdc9a1699b985aa5cb | <ide><path>src/config-schema.js
<ide> const configSchema = {
<ide> warnOnLargeFileLimit: {
<ide> description: 'Warn before opening files larger than this number of megabytes.',
<ide> type: 'number',
<del> default: 20
<add> default: 40
<ide> }
<ide> }
<ide> }, | 1 |
Javascript | Javascript | apply suggestions from code review | 62aa54efbaa8e4100689e6ddd42e69bbecf99eca | <ide><path>client/src/components/Donation/components/DonateForm.js
<ide> class DonateForm extends Component {
<ide> this.amounts = amountsConfig;
<ide>
<ide> this.state = {
<add> ...defaultStateConfig,
<ide> processing: false,
<del> isDonating: this.props.isDonating,
<del> ...defaultStateC... | 3 |
PHP | PHP | use data_get in request | 3586d080ea048cf1fa4430dc85e707bb9b0e7473 | <ide><path>src/Illuminate/Http/Request.php
<ide> public function input($key = null, $default = null)
<ide> {
<ide> $input = $this->getInputSource()->all() + $this->query->all();
<ide>
<del> return Arr::get($input, $key, $default);
<add> return data_get($input, $key, $default);
<ide> }
<id... | 1 |
Python | Python | improve documentation for session attributes | 0a339545551b5303fb2750e6e5b0e72acbea60d4 | <ide><path>flask/sessions.py
<ide> """
<ide> import hashlib
<ide> import warnings
<add>from collections import MutableMapping
<ide> from datetime import datetime
<ide>
<ide> from itsdangerous import BadSignature, URLSafeTimedSerializer
<ide> from flask.json.tag import TaggedJSONSerializer
<ide>
<ide>
<del>class Sess... | 2 |
Ruby | Ruby | improve test description | 11bd0ea01c8ea7aed68ca0c4f73cefe1408465a9 | <ide><path>activerecord/test/cases/associations/inverse_associations_test.rb
<ide> def test_inverse_instance_should_be_set_before_initialize_callbacks_are_run
<ide> end
<ide> end
<ide>
<del> def test_association_stuff
<add> def test_inverse_works_when_the_association_self_references_the_same_object
<ide> c... | 1 |
Javascript | Javascript | replace \w with [^\s] | ffea217069b6bddbec2bc2e7048f59f4158f0560 | <ide><path>examples/js/loaders/VRMLLoader.js
<ide> THREE.VRMLLoader.prototype = {
<ide>
<ide> if ( /USE/.exec( data ) ) {
<ide>
<del> var defineKey = /USE\s+?(\w+)/.exec( data )[ 1 ];
<add> var defineKey = /USE\s+?([^\s]+)/.exec( data )[ 1 ];
<ide>
<ide> if ( undefined == defines[ defineKey ] ) ... | 1 |
Python | Python | use commin method to compare array values | a6772327279d39fb5e8637fb807451879d1cf828 | <ide><path>numpy/core/tests/test_numeric.py
<ide> def setUp(self):
<ide> (arange(24).reshape(4,3,2).swapaxes(0,1), '?'),
<ide> ]
<ide>
<add> def compare_array_value(self, dz, value, fill_value):
<add> if not value is None:
<add> if fill_value:
<add> ... | 1 |
Javascript | Javascript | fix icon [ci skip] | 44dc987d8542e842b958bb5b9450f83e8e71933d | <ide><path>website/gatsby-config.js
<ide> module.exports = {
<ide> background_color: site.theme,
<ide> theme_color: site.theme,
<ide> display: `minimal-ui`,
<del> icon: legacy ? `src/images/icon.png` : `src/images/icon_legacy.png`,
<add> icon... | 1 |
Javascript | Javascript | fix lesson links | 3eb72fb10de61fe45012d47c8ba6ed37283fcbf1 | <ide><path>threejs/lessons/resources/lesson.js
<ide> function getQueryParams() {
<ide> $(document).ready(function($){
<ide>
<ide> const codeKeywordLinks = {
<del> AnimationAction: 'https://threejs.org/docs/api/animation/AnimationAction.html',
<del> AnimationClip: 'https://threejs.org/docs/api/animation/Animati... | 1 |
Python | Python | raise correct error | e1e73936b150aaa9b9b22afcd5fabbf5e49841ae | <ide><path>spacy/util.py
<ide> def get_model_meta(path):
<ide> meta = read_json(meta_path)
<ide> for setting in ['lang', 'name', 'version']:
<ide> if setting not in meta:
<del> raise IOError('No %s setting found in model meta.json' % setting)
<add> raise ValueError('No %s setting f... | 1 |
Ruby | Ruby | remove invalid copied comment | 5a48d297f283371e2d8b94f2c4c09896629ce938 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch
<ide> def stage
<ide> dst=Dir.getwd
<ide> Dir.chdir @clone do
<del> # http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export
<ide> safe_system 'hg', 'archive', '-y', '-t', 'files', dst
<ide> end
<ide> e... | 1 |
Ruby | Ruby | remove warning from `bin/setup` test | 30206aeff9a106131b2bb241476f0ff5250df862 | <ide><path>railties/test/application/bin_setup_test.rb
<ide> def test_bin_setup_output
<ide> output = `bin/setup 2>&1`
<ide>
<ide> # Ignore line that's only output by Bundler < 1.14
<del> output.sub! /^Resolving dependencies\.\.\.\n/, ""
<add> output.sub!(/^Resolving dependencies\.\.\.\n/... | 1 |
Text | Text | make url paths no longer experimental | 2287deab94cb409ee808d0c6338bc5b08a0c6c80 | <ide><path>doc/api/fs.md
<ide> example `fs.readdirSync('c:\\')` can potentially return a different result than
<ide> <!-- YAML
<ide> added: v7.6.0
<ide> -->
<del>
<del>> Stability: 1 - Experimental
<del>
<ide> For most `fs` module functions, the `path` or `filename` argument may be passed
<ide> as a WHATWG [`URL`][] ob... | 1 |
Ruby | Ruby | remove integration tests | 56bde378f3732353be869e7f925002a4b3b2b525 | <ide><path>Library/Homebrew/test/cmd/install_spec.rb
<ide> expect(HOMEBREW_CELLAR/"testball1/0.1/foo/test").not_to be_a_file
<ide> end
<ide>
<del> it "does not install formulae with forbidden license" do
<del> setup_test_formula "package_license"
<del>
<del> expect { brew "install", "package_license", "HO... | 1 |
Javascript | Javascript | fix dag last run link | d944f5a59daf0c4512f87369c6eabb27666376bf | <ide><path>airflow/www/static/js/dags.js
<ide> function blockedHandler(error, json) {
<ide>
<ide> function lastDagRunsHandler(error, json) {
<ide> Object.keys(json).forEach((safeDagId) => {
<del> const { dagId } = json[safeDagId];
<add> const dagId = json[safeDagId].dag_id;
<ide> const executionDate = json... | 1 |
Text | Text | correct introduced_in metadata for buffer doc | 2289267fc28d4cef0f754fba3f065d5083d7839f | <ide><path>doc/api/buffer.md
<ide> # Buffer
<ide>
<del><!--introduced_in=v0.10.0-->
<add><!--introduced_in=v0.1.90-->
<ide> <!--lint disable maximum-line-length-->
<ide>
<ide> > Stability: 2 - Stable | 1 |
PHP | PHP | apply fixes from styleci | 7af11f5acd7b76df47ad3e2453c8de49da27660f | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function removeTableFromKey($key)
<ide> if (strpos($key, '.') !== false) {
<ide> if (! empty($this->getGuarded()) &&
<ide> $this->getGuarded() !== ['*']) {
<del> throw new LogicException("Mass assign... | 1 |
PHP | PHP | convert looping event into an object | f1978c4c99e3b2edce33b22f383f0a9d3e47791a | <ide><path>src/Illuminate/Queue/Events/Looping.php
<add><?php
<add>
<add>namespace Illuminate\Queue\Events;
<add>
<add>class Looping
<add>{
<add> //
<add>}
<ide><path>src/Illuminate/Queue/QueueManager.php
<ide> public function exceptionOccurred($callback)
<ide> */
<ide> public function looping($callback)
<i... | 3 |
Javascript | Javascript | add example for setproperties | 1745e57010f3807c2aec8cab43c280fe28723237 | <ide><path>packages/ember-metal/lib/set_properties.js
<ide> var changeProperties = Ember.changeProperties,
<ide> a single `beginPropertyChanges` and `endPropertyChanges` batch, so
<ide> observers will be buffered.
<ide>
<add> ```javascript
<add> anObject.setProperties({
<add> firstName: "Stanley",
<add> la... | 1 |
PHP | PHP | fix tabs to spaces | b48f105b3fc1dbc5a145965e5513f7d48a657827 | <ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
<ide> public function testRecoverUsingParentMode() {
<ide>
<ide> $this->Tree->create();
<ide> $this->Tree->save(array('name' => 'About Us', $parentField => $node1, $leftField => 0, $rightField => 0));
<del> $node11 = $this->Tree->id;
<add> $... | 1 |
Javascript | Javascript | use duplex streams in duplex stream test | c083a200b07f998649b52d80ff653219a691d0e2 | <ide><path>test/parallel/test-stream-duplex.js
<ide>
<ide> const common = require('../common');
<ide> const assert = require('assert');
<del>const Duplex = require('stream').Transform;
<add>const Duplex = require('stream').Duplex;
<ide>
<ide> const stream = new Duplex({ objectMode: true });
<ide> | 1 |
Ruby | Ruby | fix collection of `unused_pyc_files` | 155f4d73946c522f3224288546c70085fb0ff44b | <ide><path>Library/Homebrew/cleanup.rb
<ide> def cleanup_python_site_packages
<ide>
<ide> unused_pyc_files += pyc_files.reject { |k,| seen_non_pyc_file[k] }
<ide> .values
<add> .flatten
<ide> return if unused_pyc_files.blank?
<ide>
<ide>... | 1 |
Ruby | Ruby | add a branch to eliminate multiple nil checks | cf985d1a4e7da2ba52f968aceee650bbdda6287e | <ide><path>actionpack/lib/action_dispatch/middleware/request_id.rb
<ide> def initialize(app)
<ide>
<ide> def call(env)
<ide> req = ActionDispatch::Request.new env
<del> req.request_id = external_request_id(req) || internal_request_id
<add> req.request_id = make_request_id(req.x_request_id)
<ide> ... | 1 |
Python | Python | display bug for duration | c6ea5ad18834bf7d915af05795b5b5a122068e03 | <ide><path>airflow/www/app.py
<ide> def dag_link(v, c, m, p):
<ide> '<a href="{url}">{m.dag_id}</a>'.format(**locals()))
<ide>
<ide> def duration_f(v, c, m, p):
<del> return timedelta(seconds=m.duration)
<add> if m.end_date:
<add> return timedelta(seconds=m.duration)
<ide>
<ide> class TaskInstanc... | 1 |
PHP | PHP | prevent array_forget() from mixing up references | 8f1c4334297d4aad9ccbd3bac7b894b3ff662855 | <ide><path>src/Illuminate/Support/Arr.php
<ide> public static function flatten($array)
<ide> */
<ide> public static function forget(&$array, $keys)
<ide> {
<add> $original =& $array;
<add>
<ide> foreach ((array) $keys as $key)
<ide> {
<ide> $parts = explode('.', $key);
<ide> public static function forget(&$... | 2 |
Javascript | Javascript | move binding init in constructor | c13354e339da3849156287b0ad3bb70b9c115632 | <ide><path>lib/child_process.js
<ide> function maybeClose(subprocess) {
<ide> function ChildProcess() {
<ide> EventEmitter.call(this);
<ide>
<add> // Initialize TCPWrap and PipeWrap
<add> process.binding('tcp_wrap');
<add> process.binding('pipe_wrap');
<add>
<ide> var self = this;
<ide>
<ide> this._closesNee... | 2 |
Javascript | Javascript | fix race conditions in tests | 9395786d11b759bdefaa3ce0e6eb99582a5706fd | <ide><path>test/pummel/test-http-client-reconnect-bug.js
<ide> common = require("../common");
<ide> assert = common.assert
<ide>
<del>var tcp = require("tcp"),
<add>var net = require("net"),
<ide> sys = require("sys"),
<ide> http = require("http");
<ide>
<ide> var errorCount = 0;
<ide> var eofCount = 0;
<ide>... | 3 |
Python | Python | add model saving functionality | ea561ba6d87879b9a67a7454e1d29777fb59132d | <ide><path>keras/callbacks.py
<ide> class ModelCheckpoint(Callback):
<ide> this should be `max`, for `val_loss` this should
<ide> be `min`, etc. In `auto` mode, the direction is
<ide> automatically inferred from the name of the monitored quantity.
<add> save_weights_only: if T... | 9 |
Text | Text | remove empty block from console.timeend() example | 8997bd8af279b532bbf61960ee0b8607cc2c5707 | <ide><path>doc/api/console.md
<ide> Stops a timer that was previously started by calling [`console.time()`][] and
<ide> prints the result to `stdout`:
<ide>
<ide> ```js
<del>console.time('100-elements');
<del>for (let i = 0; i < 100; i++) {}
<del>console.timeEnd('100-elements');
<del>// prints 100-elements: 225.438ms
... | 1 |
Go | Go | probe what filesystem to use when mounting | 10083f414017636065aa50610f07784738df8e7a | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) MountDevice(hash, path, mountLabel string) error {
<ide>
<ide> var flags uintptr = syscall.MS_MGC_VAL
<ide>
<add> fstype, err := ProbeFsType(info.DevName())
<add> if err != nil {
<add> return err
<add> }
<add>
<ide> mountOptions :... | 2 |
Javascript | Javascript | simplify glyph segment writing code | e97f74f6e3a1462c2314b4442189d7feddbce66b | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> var bias = 0;
<ide> for (var i = 0; i < segCount - 1; i++) {
<ide> var range = ranges[i];
<del> var start = FontsUtils.integerToBytes(range[0], 2);
<del> var end = FontsUtils.integerToBytes(range[1], 2);
<add> ... | 1 |
Go | Go | remove solaris left-over | d33428f0bf3638b3cef0d8095972cc660383e2c8 | <ide><path>pkg/system/stat_solaris.go
<del>package system // import "github.com/docker/docker/pkg/system"
<del>
<del>import "syscall"
<del>
<del>// fromStatT converts a syscall.Stat_t type to a system.Stat_t type
<del>func fromStatT(s *syscall.Stat_t) (*StatT, error) {
<del> return &StatT{size: s.Size,
<del> mode: s.M... | 1 |
Ruby | Ruby | add test for keg#mach_o_files hardlink behavior." | 70ceb851a596c4f40ccfb448d543bb5eb5089b4a | <ide><path>Library/Homebrew/test/test_keg.rb
<ide> def test_removes_broken_symlinks_that_conflict_with_directories
<ide> keg.unlink
<ide> keg.uninstall
<ide> end
<del>
<del> def test_mach_o_files_skips_hardlinks
<del> a = HOMEBREW_CELLAR.join("a", "1.0")
<del> a.join("lib").mkpath
<del> FileUtils.cp... | 3 |
PHP | PHP | fix cs error | a7f4af32283bd7290e06d180cbf811ce3d82f912 | <ide><path>src/View/Widget/SelectBoxWidget.php
<ide> * This class is intended as an internal implementation detail
<ide> * of Cake\View\Helper\FormHelper and is not intended for direct use.
<ide> */
<del>class SelectBoxWidget extends BasicWidget
<add>class SelectBoxWidget extends BasicWidget
<ide> {
<ide>
<ide> ... | 1 |
Ruby | Ruby | require yaml for isolation test | 109e71d2bb6d2305a091fe7ea96d4f6e9c7cd52d | <ide><path>activemodel/test/cases/serializers/xml_serialization_test.rb
<ide> require 'models/contact'
<ide> require 'active_support/core_ext/object/instance_variables'
<ide> require 'ostruct'
<add>require 'yaml'
<ide>
<ide> module Admin
<ide> class Contact < ::Contact | 1 |
Javascript | Javascript | replace common.fixturesdir w/ fixtures.path | 85a5a2c228594005280d4b7cd70741eae575a490 | <ide><path>test/parallel/test-tls-connect-secure-context.js
<ide> 'use strict';
<del>const common = require('../common');
<add>require('../common');
<ide>
<ide> // Verify connection with explicitly created client SecureContext.
<ide>
<del>const join = require('path').join;
<add>const fixtures = require('../common/fix... | 1 |
PHP | PHP | update phpdoc return values | d88b4c7374b8caf0c7eccafe7fdc5e15bfb6b7c8 | <ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php
<ide> public function showResetForm(Request $request, $token = null)
<ide> * Reset the given user's password.
<ide> *
<ide> * @param \Illuminate\Http\Request $request
<del> * @return \Illuminate\Http\Response
<add> * @return \Illumin... | 2 |
Javascript | Javascript | remove output message in test cases | 264aa3a5c8df60712b1411e88885833ceb9cf477 | <ide><path>test/configCases/dll-plugin/0-issue-10475/node_modules/test-package/index.js
<ide> import * as _constants from './constants';
<ide> export var constants = _constants;
<ide> export { default as someFunction } from './someFunction';
<ide>
<del>console.log(constants);
<add>if(Math.random() < 0) console.log(con... | 1 |
Python | Python | update on_finish from async to sync | e0f6a3928ec386e3b9f4277d82aa4a8f5da36cdd | <ide><path>official/utils/logs/logger.py
<ide> def log_run_info(self, model_name, dataset_name, run_params, test_id=None):
<ide> RUN_STATUS_RUNNING))
<ide>
<ide> def on_finish(self, status):
<del> thread.start_new_thread(
<del> self._bigquery_uploader.update_run_status,
<del> (self._bigquer... | 1 |
Python | Python | remove print statement | 4e48862fa8a8a25fe7a03fd6c3b01269262463fb | <ide><path>spacy/en/language_data.py
<ide> def get_time_exc(hours):
<ide> {ORTH: hour},
<ide> {ORTH: "pm", LEMMA: "p.m."}
<ide> ]
<del> print(exc)
<ide> return exc
<ide>
<ide> | 1 |
Python | Python | improve test for the next_execution cli command | e9ecf0ae10dffcd9ccaf22cc9f19f140fbc5ee55 | <ide><path>tests/cli/commands/test_dag_command.py
<ide> import contextlib
<ide> import io
<ide> import os
<del>import subprocess
<ide> import tempfile
<ide> import unittest
<ide> from datetime import datetime, time, timedelta
<ide> from airflow.cli.commands import dag_command
<ide> from airflow.exceptions import Airflo... | 1 |
Python | Python | avoid url error exception | aa8d7f76a047b24a97614524d29fb5070cf549c7 | <ide><path>keras/utils/data_utils.py
<ide> def dl_progress(count, block_size, total_size):
<ide> try:
<ide> try:
<ide> urlretrieve(origin, fpath, dl_progress)
<del> except URLError as e:
<del> raise Exception(error_msg.format(origin, e.errno, e.reason))
<ide... | 1 |
Java | Java | register runtime hints for @testexecutionlisteners | cced3cba0925b3c5e4f1754a514595511fa15004 | <ide><path>spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java
<ide> MergedContextConfiguration buildMergedContextConfiguration(Class<?> testClass) {
<ide> TestContextBootstrapper testContextBootstrapper =
<ide> BootstrapUtils.resolveTestContextBootstrapper(testClass);
<ide... | 3 |
Ruby | Ruby | fix env typo | 3589e24df03adc074081549229d8cc244643eee4 | <ide><path>Library/Homebrew/tap.rb
<ide> def read_or_set_private_config
<ide> # A specialized {Tap} class for the core formulae
<ide> class CoreTap < Tap
<ide> def default_remote
<del> if OS.mac? || ENV["$HOMEBREW_FORCE_HOMEBREW_ORG"]
<add> if OS.mac? || ENV["HOMEBREW_FORCE_HOMEBREW_ORG"]
<ide> "https://g... | 1 |
PHP | PHP | improve parameter type of `destroy()` | 1b90dc48d4e9d020569d63eef142cbf14e0c824d | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function insertAndSetId(Builder $query, $attributes)
<ide> /**
<ide> * Destroy the models for the given IDs.
<ide> *
<del> * @param \Illuminate\Support\Collection|array|int $ids
<add> * @param \Illuminate\Support\Collection|a... | 1 |
Javascript | Javascript | update example to use a module | 282ed94cf99ebf12af19ac63004ffeceabcbfe4d | <ide><path>src/Angular.js
<ide> function isLeafNode (node) {
<ide> * @returns {*} The copy or updated `destination`, if `destination` was specified.
<ide> *
<ide> * @example
<del> <example>
<add> <example module="copyExample">
<ide> <file name="index.html">
<del> <div ng-controller="Controller">
<add> <div ng-contr... | 1 |
Java | Java | retain order of active profiles in the tcf | 68a704373dfcc3438eabb98f0767aed9cec4f95b | <ide><path>spring-test/src/main/java/org/springframework/test/context/MergedContextConfiguration.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 7 |
Javascript | Javascript | remove common.port from multiple tests | 2e5188de928946c81266b149887d9b31111a5267 | <ide><path>test/parallel/test-cluster-master-error.js
<ide> if (cluster.isWorker) {
<ide> const http = require('http');
<ide> http.Server(() => {
<ide>
<del> }).listen(common.PORT, '127.0.0.1');
<add> }).listen(0, '127.0.0.1');
<ide>
<ide> } else if (process.argv[2] === 'cluster') {
<ide>
<ide><path>test/paral... | 7 |
Ruby | Ruby | handle response_body= when body is nil | c4d85dfbc71043e2a746acd310e32f4f04db801a | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> def url_for(string)
<ide> def response_body=(body)
<ide> body = [body] unless body.nil? || body.respond_to?(:each)
<ide> response.reset_body!
<add> return unless body
<ide> body.each { |part|
<ide> next if part.empty?
<ide> ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.