content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | fix failing tests in postgres | 552bc0234a703af4799e2a54219afffad982c65b | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testComplexNestedTypesInJoinedWhere()
<ide>
<ide> $result = $query->first();
<ide> $this->assertNotEmpty($result);
<del> $this->assertInstanceOf('Cake\I18n\Time', $result->comment->article->author->updated);
<add> ... | 1 |
Javascript | Javascript | remove unnecessary assertions | 9b292272ff3d71a0ebabe46d040346dbd34585db | <ide><path>test/parallel/test-handle-wrap-isrefed.js
<ide> const { internalBinding } = require('internal/test/binding');
<ide> const spawn = require('child_process').spawn;
<ide> const cmd = common.isWindows ? 'rundll32' : 'ls';
<ide> const cp = spawn(cmd);
<del> strictEqual(Object.getPrototypeOf(cp._handle).has... | 2 |
Ruby | Ruby | pass sdk_path in std_cmake_args | 2af64920fac8b892cc55cbfe9f6cd064def5a267 | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_args
<ide> -DCMAKE_BUILD_TYPE=Release
<ide> -DCMAKE_FIND_FRAMEWORK=LAST
<ide> -DCMAKE_VERBOSE_MAKEFILE=ON
<add> -DCMAKE_OSX_SYSROOT=#{MacOS.sdk_path}
<ide> -Wno-dev
<ide> ]
<ide> end | 1 |
Text | Text | add req.body to custom express server example | daa7f821a956e1d0e8cf954d648b768a92e6fcb2 | <ide><path>examples/custom-server-express/README.md
<ide> npm run dev
<ide> yarn
<ide> yarn dev
<ide> ```
<add>
<add>### Populate body property
<add>
<add>Without the use of the body-parser package `req.body` will return undefined. To get express to populate `req.body` you need to install the body parser package and ca... | 1 |
Python | Python | use data_validation context manager | cc2f58a1b06773bb8ee6aed5ec05f231737e1777 | <ide><path>spacy/cli/debug_model.py
<ide> from pathlib import Path
<ide> from wasabi import msg
<ide> from thinc.api import require_gpu, fix_random_seed, set_dropout_rate, Adam, Config
<del>from thinc.api import Model, DATA_VALIDATION
<add>from thinc.api import Model, data_validation
<ide> import typer
<ide>
<ide> fro... | 1 |
Javascript | Javascript | fix a small lint error in fonts_utils.js | 826e0baf14df507665daff37e5dcce37ffdc69d6 | <ide><path>utils/fonts_utils.js
<ide> function readCharset(aStream, aCharstrings) {
<ide> */
<ide> function readCharstringEncoding(aString) {
<ide> if (!aString)
<del> return "";
<add> return '';
<ide>
<ide> var charstringTokens = [];
<ide> | 1 |
Javascript | Javascript | add another way to detect cmyk images | 8d52a1e92a450f5b43049b3f1527bad8aaf79bfe | <ide><path>src/parser.js
<ide> var Parser = (function parserParser() {
<ide> return new LZWStream(stream, earlyChange);
<ide> } else if (name == 'DCTDecode' || name == 'DCT') {
<ide> var bytes = stream.getBytes(length);
<del> return new JpegStream(bytes, stream.dict);
<add> return ne... | 3 |
Javascript | Javascript | remove side effect from atomwindow constructor | cf3d272e47b7e9cd218a0425646497c30b9a43ed | <ide><path>src/main-process/atom-application.js
<ide> class AtomApplication extends EventEmitter {
<ide> options.window = window
<ide> this.openPaths(options)
<ide> } else {
<del> new AtomWindow(this, this.fileRecoveryService, options)
<add> this.addWindow(new AtomWindow(th... | 2 |
Ruby | Ruby | skip the test if test data download fails | c245ca30f248367e07d5d831195b12c93a1e3137 | <ide><path>activesupport/test/multibyte_conformance_test.rb
<ide> class MultibyteConformanceTest < ActiveSupport::TestCase
<ide> include MultibyteTestHelpers
<ide>
<del> UNIDATA_URL = "http://www.unicode.org/Public/#{ActiveSupport::Multibyte::Unicode::UNICODE_VERSION}/ucd"
<ide> UNIDATA_FILE = '/NormalizationTest... | 4 |
Mixed | Ruby | add migrations_paths option to model generator | 77aaeced89cb84404cf69f8b23834520de3214a9 | <ide><path>activerecord/lib/rails/generators/active_record/model/model_generator.rb
<ide> class ModelGenerator < Base # :nodoc:
<ide> class_option :parent, type: :string, desc: "The parent class for the generated model"
<ide> class_option :indexes, type: :boolean, default: true, desc: "Add indexes for refer... | 4 |
Go | Go | add validation for ref | a588898f99d697e5ff481ecb3b273f45410f10e6 | <ide><path>builder/remotecontext/git/gitutils.go
<ide> func parseRemoteURL(remoteURL string) (gitRepo, error) {
<ide> u.Fragment = ""
<ide> repo.remote = u.String()
<ide> }
<add>
<add> if strings.HasPrefix(repo.ref, "-") {
<add> return gitRepo{}, errors.Errorf("invalid refspec: %s", repo.ref)
<add> }
<add>
<ide> ... | 2 |
Go | Go | fix alphabetisation of possible names | 1db286c5e855a91df446a76c6d79122dad498d8e | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> "hungry",
<ide> "infallible",
<ide> "inspiring",
<del> "interesting",
<ide> "intelligent",
<add> "interesting",
<ide> "jolly",
<ide> "jovial",
<ide> "keen", | 1 |
Javascript | Javascript | enable createroot api in www | dc48cc38ea3c7bfa9c90ec00492cb7d13d996ab4 | <ide><path>scripts/rollup/shims/rollup/ReactFeatureFlags-www.js
<ide> export const {
<ide> // The rest of the flags are static for better dead code elimination.
<ide> export const enableAsyncSubtreeAPI = true;
<ide> export const enableReactFragment = false;
<del>export const enableCreateRoot = false;
<add>export const ... | 1 |
PHP | PHP | remove singularization on schema class names | 7718d473c4e17aef89129c90d96c7eca60799d09 | <ide><path>lib/Cake/Console/Command/SchemaShell.php
<ide> public function startup() {
<ide> $name = $plugin;
<ide> }
<ide> }
<del> $name = Inflector::classify($name);
<add> $name = Inflector::camelize($name);
<ide> $this->Schema = new CakeSchema(compact('name', 'path', 'file', 'connection', 'plugin'));
<id... | 2 |
Javascript | Javascript | favor strict equality in pummel net tests | 8ff3d61d8ba90fde01827643db3d87ee97f502e6 | <ide><path>test/pummel/test-net-connect-econnrefused.js
<ide> function pummel() {
<ide> net.createConnection(common.PORT).on('error', function(err) {
<ide> assert.equal(err.code, 'ECONNREFUSED');
<ide> if (--pending > 0) return;
<del> if (rounds == ROUNDS) return check();
<add> if (rounds === ... | 5 |
Text | Text | add the text article infinite loop to my article | 3f6a61fbcad1da241268b9137ae67bd5d2ebeea1 | <ide><path>guide/english/java/loops/infinite-loops/index.md
<ide> The loop above runs infinitely because every time i approaches 49, it is set to
<ide>
<ide> But a program stuck in such a loop will keep using computer resources indefinitely. This is undesirable, and is a type of 'run-time error'.
<ide>
<del>To preven... | 1 |
Python | Python | add insert_args for support transfer replace | 636625fdb99e6b7beb1375c5df52b06c09e6bafb | <ide><path>airflow/operators/generic_transfer.py
<ide> class GenericTransfer(BaseOperator):
<ide> :param preoperator: sql statement or list of statements to be
<ide> executed prior to loading the data. (templated)
<ide> :type preoperator: str or list[str]
<add> :param insert_args: extra params for `i... | 2 |
Text | Text | add v3.22.0-beta.4 to changelog | 984c9adaa2e863fd2f8dd919600f364e84c6a9a4 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.22.0-beta.4 (September 30, 2020)
<add>
<add>- [#19138](https://github.com/emberjs/ember.js/pull/19138) [BUGFIX] Fix tag cycles in query parameters
<add>- [#19094](https://github.com/emberjs/ember.js/pull/19094) [BUGFIX] Fix RouterService#isActive() to w... | 1 |
Javascript | Javascript | add ref comment to test-regress-gh-814 | 6ea3bf93a4c06c6086b8546e88a4ae5a3bba5596 | <ide><path>test/pummel/test-regress-GH-814.js
<ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<add>// Refs: https://github.com/nodejs/node-v0.x-archive/issues/814
<add>
<ide> 'use strict';
<ide> // Flags: --expose_gc
<ide> | 1 |
Ruby | Ruby | add mdfind method to macos module | 8f6ee310046589680962805f58bcc07b0a064095 | <ide><path>Library/Homebrew/macos.rb
<ide> module MacOS extend self
<add>
<add> MDITEM_BUNDLE_ID_KEY = "kMDItemCFBundleIdentifier"
<add> XCODE_4_BUNDLE_ID = "com.apple.dt.Xcode"
<add> XCODE_3_BUNDLE_ID = "com.apple.Xcode"
<add> CLT_STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
<add> CLT_FROM_XCODE_PKG_I... | 1 |
PHP | PHP | cosolidate doc block headers | c364e5eb61dc2ccd6afeef17fb16ad0cec0b84dd | <ide><path>src/Collection/CollectionInterface.php
<ide> public function each(callable $c);
<ide> * in the current iteration, the key of the element and this collection as
<ide> * arguments, in that order.
<ide> *
<del> * ##Example:
<add> * ## Example:
<ide> *
<ide> * Filtering odd numbers in an array, at the end o... | 3 |
Ruby | Ruby | add nodes for boolean constants | 11f929b5c485adab60ea2d8b515ef2abcf5400f4 | <ide><path>lib/arel/factory_methods.rb
<ide> module Arel
<ide> ###
<ide> # Methods for creating various nodes
<ide> module FactoryMethods
<add> def create_true
<add> Arel::Nodes::True.new
<add> end
<add>
<add> def create_false
<add> Arel::Nodes::False.new
<add> end
<add>
<ide> def create... | 8 |
Java | Java | add code examples to and polish @bean javadoc | 6b4ef0237c147a3fe02b446bdc831a228c5a8da7 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/Bean.java
<ide> /*
<del> * Copyright 2002-2009 the original author or authors.
<add> * Copyright 2002-2011 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 1 |
Ruby | Ruby | fix iconv dylib name | d88158b9fe80f479d4b499ba95c3e3e77c3cc585 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_gettext
<ide> end
<ide>
<ide> def check_for_iconv
<del> unless find_relative_paths("lib/iconv.dylib", "include/iconv.h").empty?
<add> unless find_relative_paths("lib/libiconv.dylib", "include/iconv.h").empty?
<ide> if (f = Formula.factory("libiconv") ... | 1 |
Ruby | Ruby | define the delegate methods on one line. fixes | 44c51fc9cc7a0cdcf8b657e1900eb141083ef683 | <ide><path>activesupport/lib/active_support/core_ext/module/delegation.rb
<ide> def delegate(*methods)
<ide> # whereas conceptually, from the user point of view, the delegator should
<ide> # be doing one call.
<ide> if allow_nil
<del> module_eval(<<-EOS, file, line - 3)
<del> def #{met... | 2 |
Javascript | Javascript | use es5 .trim() | b34c55cc3cdaecd7aad66a7fbf613f90637b48d7 | <ide><path>src/fonts.js
<ide> var Type1Parser = function type1Parser() {
<ide>
<ide> str = str.substr(start, count);
<ide>
<del> // Trim
<del> str = str.replace(/^\s+/, '');
<del> str = str.replace(/\s+$/, '');
<add> str = str.trim();
<ide> // Remove adjacent spaces
<ide> str = str.replace(/\s... | 1 |
PHP | PHP | fix bug in request uri parsing | 527340d793f2ac0de3d61938770b9407b61ec8c7 | <ide><path>laravel/request.php
<ide> public static function uri()
<ide> {
<ide> if ( ! is_null(static::$uri)) return static::$uri;
<ide>
<del> $uri = $_SERVER['REQUEST_URI'];
<add> $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
<ide>
<ide> // Remove the root application URL from the request URI. If t... | 1 |
PHP | PHP | fix windows tests | e2b0963018c00b2a55754a0bd0f23c3436c88ed6 | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testCachePathsResolveToBootstrapCacheDirectory()
<ide> {
<ide> $app = new Application('/base/path');
<ide>
<del> $this->assertSame('/base/path/bootstrap/cache/services.php', $app->getCachedServicesPath());
<del> $... | 1 |
Python | Python | add __array__ to the array_api array object | 74a3ee7a8b75bf6dc271c9a1a4b55d2ad9758420 | <ide><path>numpy/array_api/_array_object.py
<ide> def __repr__(self: Array, /) -> str:
<ide> mid = np.array2string(self._array, separator=', ', prefix=prefix, suffix=suffix)
<ide> return prefix + mid + suffix
<ide>
<add> # This function is not required by the spec, but we implement it here for
<... | 2 |
Javascript | Javascript | improve crypto hmac test assertions | fe38ace643701507ce0fa6b3903d4adce14b7255 | <ide><path>test/parallel/test-crypto-hmac.js
<ide> if (!common.hasCrypto)
<ide> const assert = require('assert');
<ide> const crypto = require('crypto');
<ide>
<del>// Test HMAC
<del>const h1 = crypto.createHmac('sha1', 'Node')
<del> .update('some data')
<del> .update('to hmac')
<del> ... | 1 |
Python | Python | specify unicode strings for python 2.7 | 9751312aff48b70a28a8e52c553d749666675d9c | <ide><path>spacy/tests/pipeline/test_el.py
<ide> def test_kb_valid_entities(nlp):
<ide> mykb = KnowledgeBase(nlp.vocab)
<ide>
<ide> # adding entities
<del> mykb.add_entity(entity_id="Q1", prob=0.9)
<del> mykb.add_entity(entity_id="Q2", prob=0.2)
<del> mykb.add_entity(entity_id="Q3", prob=0.5)
<add> ... | 1 |
Javascript | Javascript | add keyword in email support for passwordless | af433600273eb8423fdf2ecb5de12e1fe3496130 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> .flatMap(token => {
<ide>
<ide> const { id: loginToken } = token;
<del> const loginEmail = user.email;
<add> const loginEmail = new Buffer(user.email).toString('base64');
<ide> const host = ge... | 2 |
Javascript | Javascript | update message on the success | 38160d6dd73442085f8ce4314b5ddf166465da81 | <ide><path>client/src/components/Donation/components/DonateCompletion.js
<ide> function DonateCompletion({ processing, reset, success, error = null }) {
<ide> Your donation will support free technology education for people
<ide> all over the world.
<ide> </p>
<del> <p>... | 1 |
Python | Python | fix example_emr_serverless system test | 1bbd8fe3ef4ca0362f033c99016f857329870dd1 | <ide><path>airflow/providers/amazon/aws/hooks/s3.py
<ide> def check_for_bucket(self, bucket_name: str | None = None) -> bool:
<ide> # https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.head_bucket
<ide> return_code = int(e.response["Error"]["Code"])
<ide... | 2 |
Javascript | Javascript | add konkani devanagari | 79fc3a9509aca42f19cff43041d8f9b058b5aa48 | <ide><path>src/locale/gom-deva.js
<add>//! moment.js locale configuration
<add>//! locale : Konkani Devanagari script [gom-deva]
<add>//! author : The Discoverer : https://github.com/WikiDiscoverer
<add>
<add>import moment from '../moment';
<add>
<add>function processRelativeTime(number, withoutSuffix, key, isFuture) {... | 2 |
Ruby | Ruby | fix bug with rolling back frozen attributes | 237165feb3e5f7b117b05353bd64d756b9f18f74 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def rollback_transaction_records(rollback) #:nodoc
<ide> begin
<ide> record.rolledback!(rollback)
<ide> rescue Exception => e
<del> record.logger.error(e) if rec... | 4 |
Python | Python | fix build by changing call signature | f20d90cc2598c95dbcf7e0246f83499f4f4c5c27 | <ide><path>numpy/f2py/tests/test_callback.py
<ide> def callback(cu, lencu):
<ide>
<ide> f = getattr(self.module, "string_callback_array")
<ide> for cu in [cu1, cu2, cu3]:
<del> res = f(callback, cu, len(cu))
<add> res = f(callback, cu, cu.size)
<ide> assert res == 0
<i... | 1 |
Ruby | Ruby | use tab/space when finding vars (and not newlines) | 098b97801bbc237dc9a4105c5a016478dfdcdb9c | <ide><path>Library/Homebrew/test/test_inreplace.rb
<ide> def test_change_make_var_empty
<ide> assert_equal "FLAG=def\nFLAG2=abc", s1
<ide> end
<ide>
<add> def test_change_make_var_empty_2
<add> # Replace empty flag
<add> s1="FLAG = \nmv file_a file_b"
<add> s1.extend(HomebrewInreplaceExtension)
<ad... | 2 |
Javascript | Javascript | improve docs for keyboardavoidingview | cb6ec7c32141ef5bdde837d7f9d71b7adb83b751 | <ide><path>Libraries/Components/Keyboard/KeyboardAvoidingView.js
<ide> type KeyboardChangeEvent = {
<ide> const viewRef = 'VIEW';
<ide>
<ide> /**
<del> * It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard.
<del> * It can automatically adjust either its posit... | 1 |
Python | Python | add nested loops to the template processor | 99f7707f80dafab4709fd4e833766a24a40ecfc7 | <ide><path>numpy/distutils/conv_template.py
<ide> def parse_structure(astr):
<ide> _special_names = {}
<ide>
<ide> template_re = re.compile(r"@([\w]+)@")
<del>named_re = re.compile(r"#([\w]*)=([^#]*?)#")
<add>named_re = re.compile(r"#\s*([\w]*)\s*=\s*([^#]*)#")
<ide>
<ide> parenrep = re.compile(r"[(]([^)]*?)[)]\*(\d+... | 1 |
PHP | PHP | add deprecation warnings to the database package | 46de16e00f9789cf6d93c0be73e8e5c69e18cdc8 | <ide><path>src/Database/Connection.php
<ide> public function getDriver()
<ide> */
<ide> public function driver($driver = null, $config = [])
<ide> {
<add> deprecationWarning('Connection::driver() is deprecated. Use Connection::setDriver()/getDriver() instead.');
<ide> if ($driver !== null) {... | 28 |
Javascript | Javascript | fix premature destroy | 7b6c4283d26079bb6fd3d300d0ac952a087d8a7b | <ide><path>lib/internal/http2/core.js
<ide> class Http2Stream extends Duplex {
<ide> }
<ide>
<ide> // TODO(mcollina): remove usage of _*State properties
<del> if (!this.writable) {
<add> if (this._writableState.finished) {
<ide> if (!this.readable && this.closed) {
<ide> this.destroy();
<id... | 1 |
PHP | PHP | commit file missed earlier | 7cd2d245c476b7345bad782ef28934fd18dadaa9 | <ide><path>tests/test_app/TestApp/View/Widget/TestUsingViewWidget.php
<add><?php
<add>declare(strict_types=1);
<add>
<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 L... | 1 |
Go | Go | prevent journald from being built on arm | 6f6f10a75f8b447637e8a89d685452871899e9c0 | <ide><path>daemon/logger/journald/journald.go
<del>// +build linux
<add>// +build linux,!arm
<ide>
<ide> // Package journald provides the log driver for forwarding server logs
<ide> // to endpoints that receive the systemd format.
<ide><path>daemon/logger/journald/journald_unsupported.go
<del>// +build !linux
<add>// ... | 4 |
Python | Python | add tests for complexwarning in astype | b4397571d9a43ccd9ae237294e41384442b3e71b | <ide><path>numpy/core/tests/test_api.py
<ide> import sys
<ide>
<ide> import numpy as np
<add>import pytest
<ide> from numpy.testing import (
<del> assert_, assert_equal, assert_array_equal, assert_raises, HAS_REFCOUNT
<add> assert_, assert_equal, assert_array_equal, assert_raises, assert_warns,
<add> HAS_R... | 1 |
Java | Java | delete unused imports in spring-test | 2f039454107ad0ed67f31a38d7b11a4f9318a5b1 | <ide><path>spring-test/src/test/java/org/springframework/test/context/testng/transaction/programmatic/ProgrammaticTxMgmtTestNGTests.java
<ide> import java.util.Arrays;
<ide> import java.util.Collections;
<ide> import java.util.List;
<del>import javax.sql.DataSource;
<ide>
<del>import org.testng.IHookCallBack;
<del>imp... | 3 |
Ruby | Ruby | fix regexp encoding under 1.9/2.0 | b38d555030ea8c09fd3fd0bba9c11f458908ec99 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def compression_type
<ide>
<ide> # Get enough of the file to detect common file types
<ide> # POSIX tar magic has a 257 byte offset
<del> magic_bytes = nil
<del> File.open(self) { |f| magic_bytes = f.read(262) }
<del>
<ide> # magic numbers stolen f... | 1 |
Python | Python | add test for interval timetable catchup=false | 205219c522b77abe9d36d51807c32189c900cfd4 | <ide><path>airflow/timetables/interval.py
<ide> def next_dagrun_info(
<ide> earliest = restriction.earliest
<ide> if not restriction.catchup:
<ide> earliest = self._skip_to_latest(earliest)
<add> elif earliest is not None:
<add> earliest = self._align(earliest)
<ide> ... | 3 |
PHP | PHP | add a test for mapping not-test files to nothing | 230d67976d8824247900db6e715f534cb76c4999 | <ide><path>lib/Cake/Test/Case/Console/Command/TestShellTest.php
<ide> public function testMapPluginTestToCase() {
<ide> $this->assertSame('Controller/ExampleController', $return);
<ide> }
<ide>
<add>/**
<add> * testMapNotTestToNothing
<add> *
<add> * @return void
<add> */
<add> public function testMapNotTestToNothi... | 1 |
Text | Text | add lookup to http.request() options | 5bd6f516d82d069ff8710b86108dedc333b2b580 | <ide><path>doc/api/http.md
<ide> changes:
<ide> * `hostname` {string} Alias for `host`. To support [`url.parse()`][],
<ide> `hostname` will be used if both `host` and `hostname` are specified.
<ide> * `localAddress` {string} Local interface to bind for network connections.
<add> * `lookup` {Function} Custom lo... | 1 |
Java | Java | add problemdetail and `@exceptionhandler` support | 714d4512607d87a1d187d57b10ca9d1e336dbd84 | <ide><path>spring-web/src/main/java/org/springframework/http/ProblemDetail.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obt... | 6 |
PHP | PHP | remove unused argument | 6ae503d9000e6594b322e435176501242acdc8aa | <ide><path>src/Validation/Validation.php
<ide> protected static function _check($check, $regex)
<ide> * Luhn algorithm
<ide> *
<ide> * @param string|array $check Value to check.
<del> * @param bool $deep If true performs deep check.
<ide> * @return bool Success
<ide> * @see http://en.wikipe... | 1 |
Ruby | Ruby | avoid implicit rollback when testing migration | 4f7d32311e6500eac52fee1aedd4aca18d73fce5 | <ide><path>activerecord/test/cases/adapters/postgresql/uuid_test.rb
<ide> def test_schema_dumper_for_uuid_primary_key_default
<ide> end
<ide> end
<ide>
<add> uses_transaction \
<ide> def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
<ide> @verbose_was = ActiveRecord::Migration.verbos... | 1 |
Javascript | Javascript | resolve process.setegid error on ubuntu | 3dc540410596ff1173586ba1bd9c171196d6f348 | <ide><path>test/parallel/test-process-geteuid-getegid.js
<ide> if (process.getuid() !== 0) {
<ide>
<ide> // If we are running as super user...
<ide> const oldgid = process.getegid();
<del>process.setegid('nobody');
<add>try {
<add> process.setegid('nobody');
<add>} catch (err) {
<add> if (err.message !== 'setegid gr... | 1 |
Javascript | Javascript | change es6 module syntax to module.exports | 4a814d1370329ac75a6fb0924c73c48b3d3754fb | <ide><path>Libraries/Components/View/ViewContext.js
<ide> export type ViewChildContext = {|
<ide> +isInAParentText: boolean,
<ide> |};
<ide>
<del>export const ViewContextTypes = {
<del> isInAParentText: PropTypes.bool,
<add>module.exports = {
<add> ViewContextTypes: {
<add> isInAParentText: PropTypes.bool,
<add... | 1 |
Text | Text | fix typos in docs/reference/builder.md | 9ccb1f159e964384df32c083058197340941fafa | <ide><path>docs/reference/builder.md
<ide> Practices](../userguide/eng-image/dockerfile_best-practices.md) for a tip-orient
<ide> The [`docker build`](commandline/build.md) command builds an image from
<ide> a `Dockerfile` and a *context*. The build's context is the files at a specified
<ide> location `PATH` or `URL`. ... | 1 |
Mixed | Javascript | fix spelling errors | 2b28c540ad7ebf4a9c3a6f108a9cb5b673d3712d | <ide><path>CONTRIBUTING.md
<ide> restarted.
<ide> git push origin my-fix-branch -f
<ide> ```
<ide>
<del> This is generally easier to follow, but seperate commits are useful if the Pull Request contains
<add> This is generally easier to follow, but separate commits are useful if the Pull Request contains
... | 3 |
PHP | PHP | fix issue with postgres | 7c42905d10f978ba08b8dc765f8f1d6b692d74d2 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testComplexOrderWithUnion()
<ide> {
<ide> $table = TableRegistry::get('Comments');
<ide> $query = $table->find();
<del> $inner = $table->find()->where(['id >' => 3]);
<del> $inner2 = $table->find()->where(['id ... | 1 |
Text | Text | add 1.13.0 changelog.md | 433bb525214db1359df18be280f555d915f7e386 | <ide><path>CHANGELOG.md
<ide> information on the list of deprecated flags and APIs please have a look at
<ide> https://docs.docker.com/engine/deprecated/ where target removal dates can also
<ide> be found.
<ide>
<add>## 1.13.0 (2016-12-08)
<add>
<add>### Builder
<add>+ Add capability to specify images used as a cache ... | 1 |
Mixed | Go | add tls support for discovery backend | 124792a8714425283226c599ee69cbeac2e4d650 | <ide><path>daemon/config.go
<ide> type CommonConfig struct {
<ide> // mechanism.
<ide> ClusterStore string
<ide>
<add> // ClusterOpts is used to pass options to the discovery package for tuning libkv settings, such
<add> // as TLS configuration settings.
<add> ClusterOpts map[string]string
<add>
<ide> // ClusterAdv... | 13 |
Java | Java | restore removal of trailing semicolon content | 990a9c74b93b3124dae554e6246b9b75504a5d23 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
<ide> private static String removeSemicolonContentInternal(String requestUri) {
<ide> }
<ide> StringBuilder sb = new StringBuilder(requestUri);
<ide> while (semicolonIndex != -1) {
<del> int slashIndex = requestUri.indexOf('/', ... | 1 |
Javascript | Javascript | fix quaternion.slerp for small angles | 4c6fcc8585ffa21ea7153942deafa4ea4c867161 | <ide><path>src/math/Quaternion.js
<ide> Object.assign( Quaternion.prototype, {
<ide>
<ide> }
<ide>
<del> var sinHalfTheta = Math.sqrt( 1.0 - cosHalfTheta * cosHalfTheta );
<add> var sqrSinHalfTheta = 1.0 - cosHalfTheta * cosHalfTheta;
<ide>
<del> if ( Math.abs( sinHalfTheta ) < 0.001 ) {
<add> if ( sqrSinHalfT... | 1 |
Ruby | Ruby | add missing requires inside av | 3f2ac795b8f49ad07ec30790fe716cbdac78642c | <ide><path>actionview/lib/action_view/base.rb
<ide> require 'active_support/core_ext/class/attribute_accessors'
<ide> require 'active_support/ordered_options'
<ide> require 'action_view/log_subscriber'
<add>require 'action_view/helpers'
<add>require 'action_view/context'
<add>require 'action_view/template'
<add>require... | 4 |
Text | Text | fix minor errata on debugging section [ci-skip] | d578002b9194bbe940030382c031bb885dcce3b2 | <ide><path>guides/source/debugging_rails_applications.md
<ide> It's also possible to use these options together: `backtrace [num] /pattern/`.
<ide>
<ide> #### The outline command
<ide>
<del>This command is similar to `pry` and `irb`'s `ls` command. It will show you what's accessible from you current scope, including:... | 1 |
Text | Text | fix grammatical errors in linux build file | 6832845b91f7a7ae4c58b58ffee0e430cf22f44d | <ide><path>docs/build-instructions/linux.md
<ide> Ubuntu LTS 12.04 64-bit is the recommended platform.
<ide>
<ide> * `sudo apt-get install build-essential git libgnome-keyring-dev fakeroot`
<ide> * Instructions for [Node.js](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint-elemen... | 1 |
Ruby | Ruby | change outdated message | f0601e91bc6bbd9abbc5cf76acfd6685aabc5239 | <ide><path>Library/Homebrew/install.rb
<ide> def install_formula(
<ide> version_upgrade = "#{f.linked_version} -> #{f.pkg_version}"
<ide>
<ide> oh1 <<~EOS
<del> #{f.name} #{f.linked_version} is installed and outdated
<add> #{f.name} #{f.linked_version} is installed but outdated
<ide> ... | 1 |
Text | Text | remove confusing note about child process stdio | 189eaa043535c27cde96a863a2f90785913b1071 | <ide><path>doc/api/child_process.md
<ide> stdout in excess of that limit without the output being captured, the child
<ide> process will block waiting for the pipe buffer to accept more data. This is
<ide> identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`
<ide> option if the output will not... | 1 |
Java | Java | fix jsonview + httpentity reactive handling | c530745015d5c7031cfcb6f633f3f459ed97935d | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageReaderArgumentResolver.java
<ide> * failure results in an {@link ServerWebInputException}.
<ide> *
<ide> * @author Rossen Stoyanchev
<add> * @author Sebastien Deleuze
<ide> * @since 5.0
<ide> */
<ide> p... | 5 |
Text | Text | fix markdown syntax error | 55f82e9a7d6a890670d81ab7b6dcd80c25639a7a | <ide><path>guides/source/plugins.md
<ide> class ActsAsYaffleTest < ActiveSupport::TestCase
<ide> end
<ide> ```
<ide>
<del>Run the test to make sure the last two tests fail with an error that contains "NoMethodError: undefined method `squawk'",
<add>Run the test to make sure the last two tests fail with an error that c... | 1 |
Javascript | Javascript | hide empty sensors in web ui | 6f1caa5c31be89a3bb8ac279bb89404835a10374 | <ide><path>glances/outputs/static/js/services/plugins/glances_sensors.js
<ide> glancesApp.service('GlancesPluginSensors', function(GlancesPlugin) {
<ide> this.sensors = [];
<ide>
<ide> this.setData = function(data, views) {
<del> _.remove(data[_pluginName], function(sensor) {
<del> return sen... | 1 |
Ruby | Ruby | remove lock from method model | fca1906bc22dae61262b1d76672baa64b1cf5315 | <ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb
<ide> def initialize(name, format, include, exclude, klass, model) # :nodoc:
<ide> end
<ide>
<ide> def model
<del> super || synchronize { super || self.model = _default_wrap_model }
<add> super || self.model = _default_wrap_m... | 1 |
Text | Text | update readme to reflect jdk 1.7 build prereq | f0f76e493dd58f4f51a05619402aa4ec5de8dc15 | <ide><path>README.md
<ide> simple step-by-step instructions.
<ide> The Spring Framework uses a [Gradle][]-based build system. In the instructions
<ide> below, [`./gradlew`][] is invoked from the root of the source tree and serves as
<ide> a cross-platform, self-contained bootstrap mechanism for the build. The only
<del... | 1 |
Javascript | Javascript | remove capabilities from webglglprogram | 085ad279fa802ecf34b7b64a50b280ca920a8cf3 | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> function generateEnvMapBlendingDefine( parameters, material ) {
<ide>
<ide> }
<ide>
<del>function WebGLProgram( renderer, extensions, code, material, shader, parameters, capabilities ) {
<add>function WebGLProgram( renderer, extensions, code, material, shader, para... | 2 |
Python | Python | fix a warning on python3 | 82ca6d418588ccd61d663ec8029937290b62d583 | <ide><path>examples/addition_rnn.py
<ide> class colors:
<ide> y = y[indices]
<ide>
<ide> # Explicitly set apart 10% for validation data that we never train over
<del>split_at = len(X) - len(X) / 10
<add>split_at = len(X) - len(X) // 10
<ide> (X_train, X_val) = (slice_X(X, 0, split_at), slice_X(X, split_at))
<ide> (y_t... | 1 |
Ruby | Ruby | use stricter formula match | 72d13106361c1dda00ea520638080b80cdefad43 | <ide><path>Library/Contributions/cmd/brew-pull.rb
<ide> def tap arg
<ide> `git diff #{revision}.. --name-status`.each_line do |line|
<ide> status, filename = line.split
<ide> # Don't try and do anything to removed files.
<del> if (status == 'A' or status == 'M') and filename.include? '/Formula/' or... | 2 |
Python | Python | fix tests for boolean | 04102657b2348c02fe3b870d7fb6b9e941de16d8 | <ide><path>numpy/lib/tests/test_ufunclike.py
<ide> Test isposinf, isneginf, sign
<ide> >>> a = nx.array([nx.Inf, -nx.Inf, nx.NaN, 0.0, 3.0, -3.0])
<ide> >>> U.isposinf(a)
<del>array([True, False, False, False, False, False], dtype=bool)
<add>array([ True, False, False, False, False, False], dtype=bool)
<ide> >>> U.isne... | 1 |
Text | Text | commit textual suggestions from pr review | 3cd03898cff204aa2589735e39da7630b347c647 | <ide><path>README.md
<ide> Call for Contributions
<ide>
<ide> The NumPy project welcomes your expertise and enthusiasm!
<ide>
<del>Small improvements or fixes are always appreciated. (Issues labeled as "good
<del>first issue" may be a good starting point.) If you are considering larger
<add>Small improvements or fixe... | 1 |
Text | Text | fix typo in writing-your-own-keras-layers.md | 4b6f514cfc3d6c6ce535adff43b5028a98fa5abf | <ide><path>docs/templates/layers/writing-your-own-keras-layers.md
<ide> class MyLayer(Layer):
<ide> return (input_shape[0], self.output_dim)
<ide> ```
<ide>
<del>It is also possible to define Keras layers which have multiple input tensors and multiple ouput tensors. To do this, you should assume that the input... | 1 |
Javascript | Javascript | improve coverage on removelisteners functions | 7d2dc90aeb7a7e05588b1623dd03be72970fa222 | <ide><path>test/parallel/test-event-emitter-remove-all-listeners.js
<ide> function listener() {}
<ide> const ee = new events.EventEmitter();
<ide> assert.deepStrictEqual(ee, ee.removeAllListeners());
<ide> }
<add>
<add>{
<add> const ee = new events.EventEmitter();
<add> ee._events = undefined;
<add> assert.stric... | 2 |
Javascript | Javascript | fix linting errors | ef6bfe8cb2d22e691a7f1d3dcd9dc0e1039b9b23 | <ide><path>lib/adapters/xhr.js
<ide> module.exports = function xhrAdapter(resolve, reject, config) {
<ide>
<ide> // For IE 8/9 CORS support
<ide> // Only supports POST and GET calls and doesn't returns the response headers.
<del> if (window.XDomainRequest && !("withCredentials" in request) && !isURLSameOrigin(con... | 1 |
Python | Python | remove warning ignoring from nanfuncs | c1ddf841f6a48248b946a990ae750505b8b91686 | <ide><path>numpy/lib/nanfunctions.py
<ide> def _divide_by_count(a, b, out=None):
<ide> in place. If `a` is a numpy scalar, the division preserves its type.
<ide>
<ide> """
<del> with np.errstate(invalid='ignore'):
<add> with np.errstate(invalid='ignore', divide='ignore'):
<ide> if isinstance(... | 3 |
Javascript | Javascript | add vimeo to connect sources | 6eca181f6f3857865b80acae48a7dfd354ac2fe2 | <ide><path>server/server.js
<ide> app.use(helmet.csp({
<ide> 'http://cdn.inspectlet.com/inspectlet.js',
<ide> 'http://www.freecodecamp.org'
<ide> ].concat(trusted),
<del> 'connect-src': [].concat(trusted),
<add> 'connect-src': [
<add> 'vimeo.com'
<add> ].concat(trusted),
<ide> styleSrc: [
<ide> '*... | 1 |
Text | Text | remove styleguide content from `readme.md` | 5659eeaadd750e404152c731728ebf922c824226 | <ide><path>website/README.md
<ide> rendered version is available at https://spacy.io/styleguide._
<ide>
<ide> </Comment>
<ide>
<del>The [spacy.io](https://spacy.io) website is implemented using
<del>[Gatsby](https://www.gatsbyjs.org) with
<del>[Remark](https://github.com/remarkjs/remark) and [MDX](https://mdxjs.com/)... | 1 |
Text | Text | add translation kr/threejs-game.md | 682f4bd31093fe1fd5b70cb40c8f83bd245d5371 | <ide><path>threejs/lessons/kr/threejs-game.md
<add>Title: Three.js로 게임 만들기
<add>Description: Three.js로 게임을 만들어봅니다
<add>Category: solutions
<add>TOC: 게임 만들기
<add>
<add>제가 꽤 많이 받았던 질문 중 하나가 Three.js로 게임을 만드는 방법에 관한 것이었습니다. 기초적인 것이긴 해도 부디 이 글에 여러분이 원했던 내용이 있다면 좋겠네요.
<add>
<add>글을 쓰는 현재를 기준으로, 아마 이 글이 이 시리즈에서 가장 긴 글이 될 것 같... | 1 |
Go | Go | exclude default routes from checkrouteoverlaps | a886fbfa4a01f7d73c9c2d836da89ecf23a40a33 | <ide><path>network.go
<ide> func networkSize(mask net.IPMask) int32 {
<ide>
<ide> func checkRouteOverlaps(networks []netlink.Route, dockerNetwork *net.IPNet) error {
<ide> for _, network := range networks {
<del> if networkOverlaps(dockerNetwork, network.IPNet) {
<add> if !network.Default && networkOverlaps(dockerN... | 1 |
Text | Text | add comment to example about 2xx status codes | a720c0edcc40a86bee9a696cd791df3420c398ad | <ide><path>doc/api/http.md
<ide> http.get('http://nodejs.org/dist/index.json', (res) => {
<ide> const contentType = res.headers['content-type'];
<ide>
<ide> let error;
<add> // Any 2xx status code signals a successful response but
<add> // here we're only checking for 200.
<ide> if (statusCode !== 200) {
<ide>... | 1 |
Java | Java | fix bytecode generation for spel opplus | 94ee763bc8bd945a79dcc3aa9330734cde6bc730 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/OpPlus.java
<ide> private void walk(MethodVisitor mv, CodeFlow cf, SpelNodeImpl operand) {
<ide> else {
<ide> cf.enterCompilationScope();
<ide> operand.generateCode(mv,cf);
<add> if (cf.lastDescriptor() != "Ljava/lang/String") ... | 2 |
Text | Text | add hostnfly as users of airflow | c0c71cac630ab9b8d82a2283338de9375d28ad4f | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [HelloFresh](https://www.hellofresh.com) [[@tammymendt](https://github.com/tammymendt) & [@davidsbatista](https://github.com/davidsbatista) & [@iuriinedostup](https://github.com/iuriinedostup)]
<ide> 1. [Holimetrix](http://holimetrix.com/) [[@t... | 1 |
Ruby | Ruby | fix rdoc markup [ci skip] | 16a27b68ea7ed22c71ca898d8dd369e9dbd4b019 | <ide><path>railties/lib/rails/paths.rb
<ide> module Paths
<ide> #
<ide> # Notice that when you add a path using +add+, the path object created already
<ide> # contains the path with the same path value given to +add+. In some situations,
<del> # you may not want this behavior, so you can give +:with+ as ... | 1 |
Go | Go | prevent a panic with docker run -v / | 536da93380f1cacb82c344ad09c2daaae29f8ac3 | <ide><path>commands.go
<ide> func parseRun(cmd *flag.FlagSet, args []string, capabilities *Capabilities) (*Co
<ide> flVolumes.Set(dstDir)
<ide> binds = append(binds, bind)
<ide> flVolumes.Delete(bind)
<add> } else if bind == "/" {
<add> return nil, nil, cmd, fmt.Errorf("Invalid volume: path can't be '/'")
<... | 3 |
Text | Text | add content, standardize style | 84cbd7ca33592b1a85c34fd72471085730dc74d6 | <ide><path>guide/english/accessibility/accessibility-basics/index.md
<ide> title: Accessibility Basics
<ide>
<ide> Accessibility's role in development is essentially understanding the user's perspective and needs, and knowing that the web, and applications are a solution for people with disabilities.
<ide>
<del>In th... | 3 |
Text | Text | update initial sample with colours | dfcf874735cb2cd7ed3e395ce66a6a89172c6d1c | <ide><path>docs/00-Getting-Started.md
<ide> var myChart = new Chart(ctx, {
<ide> labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
<ide> datasets: [{
<ide> label: '# of Votes',
<del> data: [12, 19, 3, 5, 2, 3]
<add> data: [12, 19, 3, 5, 2, 3],
<add> ... | 1 |
Javascript | Javascript | add disabled binding to all controls | 4532f0a3afeab665f244acef9139f99de477b93d | <ide><path>packages/sproutcore-handlebars/lib/controls/button.js
<ide> SC.Button = SC.View.extend({
<ide> classNameBindings: ['isActive'],
<ide>
<ide> tagName: 'button',
<del> attributeBindings: ['type'],
<add> attributeBindings: ['type', 'disabled'],
<ide> type: 'button',
<del>
<add> disabled: false,
<add>... | 9 |
Text | Text | use code markup/markdown in headers | ff6e7a0b3e53ac191ee4f2c765fcd473c5dc570c | <ide><path>doc/api/util.md
<ide> module developers as well. It can be accessed using:
<ide> const util = require('util');
<ide> ```
<ide>
<del>## util.callbackify(original)
<add>## `util.callbackify(original)`
<ide> <!-- YAML
<ide> added: v8.2.0
<ide> -->
<ide> callbackFunction((err, ret) => {
<ide> });
<ide> ```
<ide... | 1 |
PHP | PHP | fix some tests and skip simple cache tests | ba07cbe0c4260c7484d0e541c9b3ee08e22c11f3 | <ide><path>src/Cache/Cache.php
<ide> public static function remember(string $key, callable $callable, string $config
<ide> return $existing;
<ide> }
<ide> $results = call_user_func($callable);
<del> self::set($key, $results, $config);
<add> self::write($key, $results, $config);... | 3 |
Text | Text | fix broken links in table of contents readme | 903d52551ced08424566bba3b6b9a16142fbf388 | <ide><path>README.md
<ide> React Native brings [**React**'s][r] declarative UI framework to iOS and Android
<ide>
<ide> ## Contents
<ide>
<del>- [Requirements](#requirements)
<del>- [Building your first React Native app](#building-your-first-react-native-app)
<del>- [Documentation](#documentation)
<del>- [Upgrading](... | 1 |
Python | Python | fix typos on comments and docstrings | 8a6fb0b15aeb8ed887f1cc216da55fda26d35264 | <ide><path>examples/cifar10_cnn_tfaugment2d.py
<ide> def augment_2d(inputs, rotation=0, horizontal_flip=False, vertical_flip=False):
<ide> rotation: A float, the degree range for rotation (0 <= rotation < 180),
<ide> e.g. 3 for random image rotation between (-3.0, 3.0).
<ide> horizontal_flip: A bo... | 4 |
Javascript | Javascript | pass an hoc to renderpage() | 9c18c548bb547485c7358d86881cb8add5f2bcdb | <ide><path>server/render.js
<ide> async function doRender (req, res, pathname, query, {
<ide> // the response might be finshed on the getinitialprops call
<ide> if (res.finished) return
<ide>
<del> const renderPage = () => {
<add> const renderPage = (enhancer = Page => Page) => {
<ide> const app = createElem... | 1 |
Python | Python | show serialization exceptions in dag parsing log | 9cd5a97654fa82f1d4d8f599e8eb81957b3f7286 | <ide><path>airflow/models/dagbag.py
<ide> def _serialize_dag_capturing_errors(dag, session):
<ide> except OperationalError:
<ide> raise
<ide> except Exception:
<add> self.log.exception("Failed to write serialized DAG: %s", dag.full_filepath)
<ide> r... | 2 |
Python | Python | improve testing coverage for dlpack | 158c7283b5de5ec7b832407c15fafacc95cb8ee6 | <ide><path>numpy/core/tests/test_dlpack.py
<ide> def test_dunder_dlpack_stream(self):
<ide> x = np.arange(5)
<ide> x.__dlpack__(stream=None)
<ide>
<add> with pytest.raises(RuntimeError):
<add> x.__dlpack__(stream=1)
<add>
<add> def test_strides_not_multiple_of_itemsize(self):
<ide>... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.