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
update patchentity docs to be correct
f51889238a56587b69b2bf7f02c90ce55e7e28aa
<ide><path>src/ORM/Table.php <ide> public function marshaller() <ide> * <ide> * ``` <ide> * $article = $this->Articles->newEntity($this->request->data(), [ <del> * 'fieldList' => ['title', 'body'], <add> * 'fieldList' => ['title', 'body', 'tags', 'comments'], <ide> * 'associated' => ['Tag...
1
Python
Python
add weighted_metrics to saved model config
e06e8a96d5adef8610d682c758ee080a13011eca
<ide><path>keras/engine/saving.py <ide> def get_json_type(obj): <ide> }, <ide> 'loss': model.loss, <ide> 'metrics': model.metrics, <add> 'weighted_metrics': model.weighted_metrics, <ide> 'sample_weight_mode': model.sample_weight_mode, <ide> ...
1
Text
Text
add zendesk as a company which is using airflow
b5761d5b162b17e686cade1677c78e5e32103e0e
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> * Xoom [[@gepser](https://github.com/gepser) & [@omarvides](https://github.com/omarvides)] <ide> * [WePay](http://www.wepay.com) [[@criccomini](https://github.com/criccomini) & [@mtagle](https://github.com/mtagle)] <ide> * Yahoo! <add>* [Zendesk](...
1
Javascript
Javascript
add css tokenizer
aa842de140b5fa56fd4839c40b94c45f491b4d08
<ide><path>lib/css/walkCssTokens.js <add>/* <add> MIT License http://www.opensource.org/licenses/mit-license.php <add> Author Tobias Koppers @sokra <add>*/ <add> <add>"use strict"; <add> <add>/** <add> * @typedef {Object} CssTokenCallbacks <add> * @property {function(string, number, number, number, number): number=} ur...
2
Go
Go
migrate some config secret tests to api test
99e28188507bbcb925b0c09df6b53cdd882d24c5
<ide><path>integration-cli/docker_cli_secret_create_test.go <ide> import ( <ide> "github.com/go-check/check" <ide> ) <ide> <del>func (s *DockerSwarmSuite) TestSecretCreate(c *check.C) { <del> d := s.AddDaemon(c, true, true) <del> <del> testName := "test_secret" <del> id := d.CreateSecret(c, swarm.SecretSpec{ <del> A...
2
Javascript
Javascript
remove unused vars from specs
d7d6d0838f2066ec51dd41559e4b6eeba1adca77
<ide><path>spec/application-delegate-spec.js <ide> /** @babel */ <ide> <del>import { <del> it, <del> fit, <del> ffit, <del> fffit, <del> beforeEach, <del> afterEach <del>} from './async-spec-helpers' <add>import { it } from './async-spec-helpers' <ide> import ApplicationDelegate from '../src/application-delegate...
29
Javascript
Javascript
replace fixturesdir with fixtures module
023b95bf4abe5f37319ead5c5319bf531c3f4dbb
<ide><path>test/parallel/test-https-client-resume.js <ide> if (!common.hasCrypto) <ide> const assert = require('assert'); <ide> const https = require('https'); <ide> const tls = require('tls'); <del>const fs = require('fs'); <add>const fixtures = require('../common/fixtures'); <ide> <ide> const options = { <del> key:...
1
Ruby
Ruby
improve styling of generic help text
4f8e3cae5e05c05b3681b3afd2f7ac480c522eb1
<ide><path>Library/Homebrew/cmd/help.rb <ide> HOMEBREW_HELP = <<-EOS <ide> Example usage: <del> brew [info | home | options ] [FORMULA...] <add> brew (info|home|options) [FORMULA...] <ide> brew install FORMULA... <ide> brew uninstall FORMULA... <del> brew search [foo] <add> brew search [TEXT|/PATTERN/] <ide> ...
1
Java
Java
fix javadoc typos
9837ec59047b08f0813524208b90fc4fc6e1a1ad
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/EnableWebSocket.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"...
2
Ruby
Ruby
give consistent results
967b9b811238c0750f16a6cea902379e5469f15d
<ide><path>Library/Homebrew/cmd/deps.rb <ide> def deps <ide> Formulary.enable_factory_cache! <ide> <ide> recursive = !args.send("1?") <add> installed = args.installed? || ARGV.formulae.all?(&:opt_or_installed_prefix_keg) <add> <add> @use_runtime_dependencies = installed && recursive && <add> ...
1
Python
Python
check lack of hole in check_api_dict
77966f7aa170f0a6eb603f5dae7111429f015262
<ide><path>numpy/core/code_generators/genapi2.py <add>import sys <add> <add>if sys.version_info[:2] < (2, 6): <add> from sets import Set as set <add> <ide> from genapi import API_FILES, find_functions <ide> <ide> def order_dict(d): <ide> def check_api_dict(d): <ide> if len(...
1
PHP
PHP
add second assertequals
b41c9e1153e8bcb39718bae76d8d8384e59a94ce
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testGettingMinItemsFromCollection() <ide> <ide> $c = new Collection([['foo' => 10], ['foo' => 20]]); <ide> $this->assertEquals(10, $c->min('foo')); <add> $this->assertEquals(10, $c->min->foo); <ide> <ide> $c = ...
1
PHP
PHP
allow isset on view objects
9a565be05a8fd78641ca80038573f49712454de4
<ide><path>src/Illuminate/View/View.php <ide> public function __set($key, $value) <ide> $this->with($key, $value); <ide> } <ide> <add> /** <add> * Check if a piece of data is bound to the view. <add> * <add> * @param string $key <add> * @return bool <add> */ <add> public function __isset($key) <add> { <add> ...
1
PHP
PHP
remove inline assignment
9320b197532b28b7322778a87c4be606ef01b02c
<ide><path>lib/Cake/Routing/RouteCollection.php <ide> protected function _getNames($url) { <ide> public function parse($url) { <ide> $out = array(); <ide> for ($i = 0, $len = count($this); $i < $len; $i++) { <del> if (($r = $this->_routes[$i]->parse($url)) !== false) { <del> $out = $r; <del> break; <add> ...
1
Go
Go
pass authentication credentials through to build
6fed46aeb97943315aed12f2dc62565f7bcc53dc
<ide><path>api/server/router/build/build_routes.go <ide> func (br *buildRouter) postBuild(ctx context.Context, w http.ResponseWriter, r * <ide> buildOptions.Dockerfile = dockerfileName <ide> } <ide> <add> buildOptions.AuthConfigs = authConfigs <add> <ide> out = output <ide> if buildOptions.SuppressOutput { <ide> ...
2
Text
Text
fix extra parens in changelog
08fd7d4a4827ab1b8f6b5ff377c63bc465e768f4
<ide><path>CHANGELOG.md <ide> <ide> ### Major changes <ide> <del>- **Initial render now uses `document.createElement` instead of generating HTML.** Previously we would generate a large string of HTML and then set `node.innerHTML`. At the time, this was decided to be faster than using `document.createElement` for the ...
1
Ruby
Ruby
wipe those tears.. references [4335]
f9f65433efa18969b81ec1a8ab8d74d01bfd464e
<ide><path>activerecord/test/migration_test.rb <ide> def test_create_table_with_defaults <ide> end <ide> <ide> def test_create_table_with_limits <del> Person.connection.create_table :testings do |t| <del> t.column :foo, :string, :limit => 255 <add> assert_nothing_raised do <add> Person....
1
Javascript
Javascript
fix language tests
1dd10e69ce54cc9aaee81a85435c2c4d5461eb9b
<ide><path>test/lang/ar-ma.js <ide> exports["lang:ar-ma"] = { <ide> }, <ide> <ide> "parse" : function (test) { <del> test.expect(96); <ide> var tests = 'يناير:يناير_فبراير:فبراير_مارس:مارس_أبريل:أبريل_ماي:ماي_يونيو:يونيو_يوليوز:يوليوز_غشت:غشت_شتنبر:شتنبر_أكتوبر:أكتوبر_نونبر:نونبر_دجنبر:دجنبر'.sp...
71
Python
Python
add test for new model parallelism features
31484afbed45ee589f8e4e247b10188a09399734
<ide><path>src/transformers/modeling_utils.py <ide> def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P <ide> same device. <ide> <ide> To have Accelerate compute the most optimized `device_map` automatically, set `device_map="auto"`. <add> max_mem...
3
Javascript
Javascript
add yyyyyy format for iso string
ea18f28cbb303e08b33ad985e3daf5d3cd1643f6
<ide><path>moment.js <ide> isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, <ide> <ide> // format tokens <del> formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W...
2
Python
Python
remove unused import statement
cf8474401bea3d407535416923c65b433d28fd40
<ide><path>spacy/fr/__init__.py <ide> # encoding: utf8 <ide> from __future__ import unicode_literals, print_function <ide> <del>from os import path <del> <ide> from ..language import Language <ide> from ..attrs import LANG <ide>
1
Python
Python
remove a handful of `import *` from the tests
43920cd32e24eb293b445028c7710b42f9abc7c4
<ide><path>tests/modeltests/mutually_referential/models.py <ide> Strings can be used instead of model literals to set up "lazy" relations. <ide> """ <ide> <del>from django.db.models import * <add>from django.db import models <ide> <del>class Parent(Model): <del> name = CharField(max_length=100) <add> <add>class Pa...
6
Java
Java
add minor optimization to abstracterrors
5068eb2e01a5f534b6ceaefe9d1034446b674164
<ide><path>spring-context/src/main/java/org/springframework/validation/AbstractErrors.java <ide> public Class<?> getFieldType(String field) { <ide> * @return whether the FieldError matches the given field <ide> */ <ide> protected boolean isMatchingFieldError(String field, FieldError fieldError) { <del> return (fi...
1
Go
Go
use container.hostconfig.shmsize directly
0fb1fb1ce0177cf31dd96e9fdb4a5f55155a5966
<ide><path>daemon/container_operations_unix.go <ide> func (daemon *Daemon) setupIpcDirs(c *container.Container) error { <ide> return err <ide> } <ide> <del> shmSize := int64(daemon.configStore.ShmSize) <del> if c.HostConfig.ShmSize != 0 { <del> shmSize = c.HostConfig.ShmSize <del> } <del> shmproperty...
1
Javascript
Javascript
change variable defined identifier let to const
d6d71197789e577ee6424f95b48aa6a8f099d1ae
<ide><path>lib/WebpackOptionsApply.js <ide> class WebpackOptionsApply extends OptionsApply { <ide> } <ide> <ide> if (options.output.library || options.output.libraryTarget !== "var") { <del> let LibraryTemplatePlugin = require("./LibraryTemplatePlugin"); <add> const LibraryTemplatePlugin = require("./LibraryTe...
1
Javascript
Javascript
flow type actionsheetios
61d046be3c9b00f6a4d4f492d558a961a6d4210f
<ide><path>Libraries/ActionSheetIOS/ActionSheetIOS.js <ide> * <ide> * @providesModule ActionSheetIOS <ide> * @flow <add> * @format <ide> */ <ide> 'use strict'; <ide> <del>var RCTActionSheetManager = require('NativeModules').ActionSheetManager; <add>const RCTActionSheetManager = require('NativeModules').ActionSheet...
1
Ruby
Ruby
use render instead render_to_body
9d7d6cd7baf9b9e552a2ece8fca7f381417d06c1
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def collect_responses_and_parts_order(headers) #:nodoc: <ide> <ide> each_template(templates_path, templates_name) do |template| <ide> responses << { <del> :body => render_to_body(:_template => template), <add> :body => rend...
2
Go
Go
reduce duplication in graphdriver
2028d8698d95fb73f0c59a548b8f2adbdf5057a4
<ide><path>daemon/graphdriver/counter.go <ide> func NewRefCounter(c Checker) *RefCounter { <ide> <ide> // Increment increaes the ref count for the given id and returns the current count <ide> func (c *RefCounter) Increment(path string) int { <del> c.mu.Lock() <del> m := c.counts[path] <del> if m == nil { <del> m = &m...
2
Go
Go
fix integration tests
661a8a0e0ce95d9bcb222184c14373fb1dbb1aec
<ide><path>integration/container_test.go <ide> func TestIDFormat(t *testing.T) { <ide> func TestMultipleAttachRestart(t *testing.T) { <ide> runtime := mkRuntime(t) <ide> defer nuke(runtime) <del> container, _ := mkContainer( <add> container, _, _ := mkContainer( <ide> runtime, <ide> []string{"_", "/bin/sh", "-c",...
3
Go
Go
move syslog-tag to syslog.new function
4f91a333d5c9d66ce109c36e7261dbfd3382ebbf
<ide><path>daemon/logger/syslog/syslog.go <ide> import ( <ide> <ide> type Syslog struct { <ide> writer *syslog.Writer <del> tag string <ide> } <ide> <ide> func New(tag string) (logger.Logger, error) { <del> log, err := syslog.New(syslog.LOG_USER, path.Base(os.Args[0])) <add> log, err := syslog.New(syslog.LOG_USER...
1
Text
Text
correct some typos
88f400af91b3c672cf9ad1d04cbd7752a4bea232
<ide><path>guide/english/python/data-structures/tuples/index.md <ide> A `tuple` can also be created with the `tuple` constructor: <ide> ``` <ide> **Accessing elements of a `tuple`:** <ide> <del>Elements of `tuples` are accessed and index the same way that `lists` are. <add>Elements of `tuples` are accessed and indexed...
1
Ruby
Ruby
remove outdated dev-utils
a8f36e88dd322f78efe0a54eb73a7e3b9fd60479
<ide><path>activerecord/dev-utils/eval_debugger.rb <del># Require this file to see the methods Active Record generates as they are added. <del>class Module #:nodoc: <del> alias :old_module_eval :module_eval <del> def module_eval(*args, &block) <del> if args[0] <del> puts "----" <del> print "module_eval ...
7
Javascript
Javascript
remove unnecessary bind from setimmediate
af6c88c571ae0a00d9b6a8a62379635deab21cb5
<ide><path>lib/internal/http2/core.js <ide> class Http2Stream extends Duplex { <ide> // By using setImmediate we allow pushStreams to make it through <ide> // before the stream is officially closed. This prevents a bug <ide> // in most browsers where those pushStreams would be rejected. <del> ...
1
Javascript
Javascript
throw error when url.parse without true is parsed
40738c6e44ffd901be0935bbf865ed19499d7ece
<ide><path>server/index.js <ide> import { resolve, join } from 'path' <del>import { parse } from 'url' <add>import { parse as parseUrl } from 'url' <add>import { parse as parseQs } from 'querystring' <ide> import fs from 'mz/fs' <ide> import http, { STATUS_CODES } from 'http' <ide> import { <ide> export default class S...
1
Javascript
Javascript
remove edge version from the user agent
5a1217e40193c8884155ccaf415091d326ddb52a
<ide><path>test/unit/support.js <ide> testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec <ide> var expected, <ide> userAgent = window.navigator.userAgent; <ide> <del> if ( /edge\/12/i.test( userAgent ) ) { <add> if ( /edge\//i.test( userAgent ) ) { <ide> expected = { <ide> "ajax":...
1
PHP
PHP
apply fixes from styleci
28b8111dac789b248c3c5f7887912c09ce37df0a
<ide><path>tests/Validation/ValidationValidatorTest.php <ide> public function __toString() <ide> { <ide> return 'aslsdlks'; <ide> } <del> } <add> }, <ide> ], ['x' => 'Email']); <ide> $this->assertFalse($v->passes()); <ide> <ide> ...
1
Ruby
Ruby
eliminate repeated work in formulary.factory
ca3688e33e1b98e67242e87a6b067b696f05effb
<ide><path>Library/Homebrew/formulary.rb <ide> def get_formula <ide> # * a formula URL <ide> # * a local bottle reference <ide> def self.factory ref <del> # If a URL is passed, download to the cache and install <del> if ref =~ %r[(https?|ftp)://] <del> f = FromUrlLoader.new(ref) <del> elsif ref =~ P...
1
Text
Text
fix typo in documentation
008c2d0b7aecfa53116346ffd8f8c51d38c59140
<ide><path>examples/pytorch/translation/README.md <ide> and you also will find examples of these below. <ide> Here is an example of a translation fine-tuning with a MarianMT model: <ide> <ide> ```bash <del>python examples/pytorch/seq2seq/run_translation.py \ <add>python examples/pytorch/translation/run_translation.py ...
1
Go
Go
fix rename error when sid is empty
b9ab129554084cf65b6ffcc89d09b5d82bc02459
<ide><path>daemon/rename.go <ide> func (daemon *Daemon) ContainerRename(oldName, newName string) error { <ide> }() <ide> <ide> sid = container.NetworkSettings.SandboxID <del> if daemon.netController != nil { <add> if sid != "" && daemon.netController != nil { <ide> sb, err = daemon.netController.SandboxByID(sid) <...
1
Javascript
Javascript
remove some deprecated methods
88ecb40f79cca1fc8881423672e50632aa4d4a04
<ide><path>src/Three.Legacy.js <ide> import { DataTextureLoader } from './loaders/DataTextureLoader.js'; <ide> import { TextureLoader } from './loaders/TextureLoader.js'; <ide> import { Material } from './materials/Material.js'; <ide> import { LineBasicMaterial } from './materials/LineBasicMaterial.js'; <del>import { M...
1
Go
Go
move dockerignore function to builder/dockerignore
63e3816c1dd449de63500a2b5fec9c2a33a0894c
<ide><path>api/client/build.go <ide> import ( <ide> "github.com/docker/distribution/reference" <ide> "github.com/docker/docker/api" <ide> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/builder/dockerignore" <ide> Cli "github.com/docker/docker/cli" <ide> "github.com/docker/docker/opts" <ide> ...
6
Text
Text
fix command in xlnet readme
14a6c92e25538f0b463ac835d6745f4f60de8749
<ide><path>official/nlp/xlnet/README.md <ide> export IMDB_DIR=~/imdb <ide> mkdir -p ${IMDB_DIR} <ide> <ide> cd ${IMDB_DIR} <del>wget http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz . <add>wget http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz <ide> tar zxvf aclImdb_v1.tar.gz -C ${IMDB_DIR} ...
1
Javascript
Javascript
make reactdom.createportal() official
89508f20d49cde40d1083f7501fac388b86bbcb8
<ide><path>src/renderers/__tests__/ReactUpdates-test.js <ide> describe('ReactUpdates', () => { <ide> var portal = null; <ide> // If we're using Fiber, we use Portals instead to achieve this. <ide> if (ReactDOMFeatureFlags.useFiber) { <del> portal = ReactDOM.unstable_createPortal( <del> ...
7
Ruby
Ruby
fix style issue
ac3ce218e3560713c44e856b2906be7e53a164e0
<ide><path>Library/Homebrew/dev-cmd/man.rb <ide> def cmd_comment_manpage_lines(cmd_path) <ide> <ide> sig { returns(String) } <ide> def global_cask_options_manpage <del> lines = ["These options are applicable to the `install`, `reinstall`, and `upgrade` subcommands with the `--cask` flag.\n"] <add> lines = ["...
1
Mixed
Javascript
implement streams to webstreams adapters
a99c2303051ba8f694ac3bc3cb99998525d9e249
<ide><path>doc/api/stream.md <ide> Calling `Readable.from(string)` or `Readable.from(buffer)` will not have <ide> the strings or buffers be iterated to match the other streams semantics <ide> for performance reasons. <ide> <add>### `stream.Readable.fromWeb(readableStream[, options])` <add><!-- YAML <add>added: REPLACE...
13
Python
Python
remove old model command (now "vocab")
affd3404ab24b5143ba97b26c40a90dc4b1dcbc0
<ide><path>spacy/__main__.py <ide> if __name__ == '__main__': <ide> import plac <ide> import sys <del> from spacy.cli import download, link, info, package, train, convert, model <add> from spacy.cli import download, link, info, package, train, convert <ide> from spacy.cli import vocab, profile, evalua...
3
Javascript
Javascript
add agent.maxfreesockets option
65f6f06a61c36630ee405a697b1d876208212874
<ide><path>lib/_http_agent.js <ide> function Agent(options) { <ide> self.keepAliveMsecs = self.options.keepAliveMsecs || 1000; <ide> self.keepAlive = self.options.keepAlive || false; <ide> self.maxSockets = self.options.maxSockets || Agent.defaultMaxSockets; <add> self.maxFreeSockets = self.options.maxFreeSocket...
2
Javascript
Javascript
fix eol issue in messages on windows
2c42999f7e0cfb4d79124add35e0b19b50100074
<ide><path>lib/assert.js <ide> assert.fail = fail; <ide> assert.AssertionError = AssertionError; <ide> <ide> function getBuffer(fd, assertLine) { <del> var lines = 0; <add> let lines = 0; <ide> // Prevent blocking the event loop by limiting the maximum amount of <ide> // data that may be read. <del> var maxRead...
2
Javascript
Javascript
code&learn var to let update
a7ddf8c5d23951778f904340511dc9c598ee98cb
<ide><path>test/parallel/test-repl-save-load.js <ide> testMe._domain.on('error', function(reason) { <ide> }); <ide> <ide> const testFile = [ <del> 'var top = function() {', <del> 'var inner = {one:1};' <add> 'let top = function() {', <add> 'let inner = {one:1};' <ide> ]; <ide> const saveFileName = join(tmpdir.path...
1
Ruby
Ruby
add missing tests to validators
4796be33a464a4587d0e22dfef113aca597c91c4
<ide><path>activemodel/lib/active_model/validator.rb <ide> class EachValidator < Validator <ide> attr_reader :attributes <ide> <ide> def initialize(options) <del> @attributes = options.delete(:attributes) <add> @attributes = Array(options.delete(:attributes)) <add> raise ":attributes cannot be b...
2
Python
Python
use model error_messages when available
62c000bc12e63a4bb9de8d4cc84e8f1244bf6634
<ide><path>rest_framework/utils/field_mapping.py <ide> def get_field_kwargs(field_name, model_field): <ide> ] <ide> <ide> if getattr(model_field, 'unique', False): <del> validator = UniqueValidator(queryset=model_field.model._default_manager) <add> unique_error_message = model_field.error_mes...
2
Javascript
Javascript
add support for webpack 2's tree-shaking (#926)
f3e541fe23a2742b29b3d7305579fd1d06c02cb1
<ide><path>server/build/babel/preset.js <ide> const babelRuntimePath = require.resolve('babel-runtime/package') <ide> <ide> module.exports = { <ide> presets: [ <del> require.resolve('babel-preset-es2015'), <add> [require.resolve('babel-preset-es2015'), { modules: false }], <ide> require.resolve('babel-pres...
3
Javascript
Javascript
resolve flow errors with reacttestrenderer
c78464f8ea9a5b00ec80252d20a71a1482210e57
<ide><path>src/renderers/art/ReactART.js <ide> function injectAfter(parentNode, referenceNode, node) { <ide> <ide> // ContainerMixin for components that can hold ART nodes <ide> <del>const ContainerMixin = assign({}, ReactMultiChild, { <add>const ContainerMixin = assign({}, ReactMultiChild.prototype, { <ide> <ide> ...
10
Python
Python
remove redundant note on http provider
f2a8a73ca99912d25e9cd8142038cf3a6df622d6
<ide><path>setup.py <ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version <ide> 'requests>=2.26.0', <ide> ] <ide> http_provider = [ <del> # NOTE ! The HTTP provider is NOT preinstalled by default when Airflow is installed - because it <del> # depends on `requests` libra...
1
PHP
PHP
use consistent method logic
56a0b6d2d967bb43dee23e682c1ed74f4ae3f3a6
<ide><path>src/Utility/Inflector.php <ide> public static function normalize($string, $replacement = '_') <ide> */ <ide> public static function tableize($className) <ide> { <del> if (!($result = static::_cache(__FUNCTION__, $className))) { <add> $result = static::_cache(__FUNCTION__, $classNam...
1
Javascript
Javascript
improve disable asynclocalstorage test
68e36ade3de2205c583f2cc6a2d2ec192b75cc95
<ide><path>test/async-hooks/test-async-local-storage-enable-disable.js <ide> asyncLocalStorage.runSyncAndReturn(new Map(), () => { <ide> asyncLocalStorage.getStore().set('foo', 'bar'); <ide> process.nextTick(() => { <ide> assert.strictEqual(asyncLocalStorage.getStore().get('foo'), 'bar'); <add> process.nextT...
1
Javascript
Javascript
use reserved ip in test-net-connect-timeout
ae8d436623109f315229ca9cc05715af362257b0
<ide><path>test/internet/test-net-connect-timeout.js <ide> var gotConnect = false; <ide> <ide> var T = 100; <ide> <del> <del>// 240.*.*.*.* is "reserved for future use" <del>var socket = net.createConnection(9999, '240.0.0.0'); <add>// 192.0.2.1 is part of subnet assigned as "TEST-NET" in RFC 5737. <add>// For use so...
1
Javascript
Javascript
allow unauthenticated donations for year-end
663f726c4ed488eebadea25d0521213460301692
<ide><path>api-server/server/boot/donate.js <ide> import { isEmail, isNumeric } from 'validator'; <ide> <ide> import { <ide> durationKeysConfig, <del> // donationOneTimeConfig, <add> donationOneTimeConfig, <ide> donationSubscriptionConfig <ide> } from '../../../config/donation-settings'; <ide> import keys from '...
4
Python
Python
improve documentation of download-wheels
505ae178178bac36929bf8afe5d523a4d659531c
<ide><path>tools/download-wheels.py <del>#!/usr/bin/env python <add>#!/usr/bin/env python3 <add># -*- encoding:utf-8 -*- <ide> """ <del>Download NumPy wheels from Anaconda staging area. <add>Script to download NumPy wheels from the Anaconda staging area. <add> <add>Usage:: <add> <add> $ ./tools/download-wheels.py <v...
1
Python
Python
make a proper list from zip iterator
9d1e6de4a0701362ccaf352f845fe8a853eaf2fb
<ide><path>spacy/tests/parser/test_nonproj.py <ide> def deprojectivize(proj_heads, deco_labels, EN): <ide> sent = EN.tokenizer.tokens_from_list(['whatever'] * slen) <ide> rel_proj_heads = [ head-i for i,head in enumerate(proj_heads) ] <ide> labelids = [ EN.vocab.strings[label] for label in deco_labels ] <del> pairs ...
1
Javascript
Javascript
remove bundle.js file
00db3039bd6986796f4f80ce2d1d1e9c4df2db81
<ide><path>test/fixtures/bundle.js <del>/* <del> * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). <del> * This devtool is neither made for production nor for readable output files. <del> * It uses "eval()" calls to create a separate source file in the browser devtools. <del> * If...
1
Javascript
Javascript
remove double space in test name
781212aab344b1619806369d768fad0c1ac3e04a
<ide><path>packages/react/src/__tests__/ReactChildren-test.js <ide> describe('ReactChildren', () => { <ide> ); <ide> }); <ide> <del> it('does not warn when there are keys on elements in a fragment', () => { <add> it('does not warn when there are keys on elements in a fragment', () => { <ide> cla...
1
Ruby
Ruby
put exception, retry on missing formula
159ba9b012415ec5bd1c446c66a02702a7909225
<ide><path>Library/Homebrew/dev-cmd/test-bot.rb <ide> def no_args? <ide> <ide> def safe_formula_canonical_name(formula_name) <ide> Formulary.factory(formula_name).full_name <del> rescue TapFormulaUnavailableError => e <add> rescue TapFormulaUnavailableError, FormulaUnavailableError => e <ide> rai...
1
Python
Python
update exception styles, trickier ones
e1a9692cc36e4353798a332c834fce7aa6cf9b54
<ide><path>numpy/core/_mx_datetime_parser.py <ide> def utc_offset(zone): <ide> return _zonetable[uzone]*60 <ide> offset = _zoneoffsetRE.match(zone) <ide> if not offset: <del> raise ValueError,'wrong format or unkown time zone: "%s"' % zone <add> raise ValueError('wrong format or unkown tim...
14
Go
Go
implement dockerregistrysuite in integration-cli
f696b1071a296bee1f4ac7cafa807ce337fb9f2c
<ide><path>integration-cli/check_test.go <ide> func (s *TimerSuite) TearDownTest(c *check.C) { <ide> fmt.Printf("%-60s%.2f\n", c.TestName(), time.Since(s.start).Seconds()) <ide> } <ide> <add>func init() { <add> check.Suite(&DockerSuite{}) <add>} <add> <ide> type DockerSuite struct { <ide> TimerSuite <ide> } <ide> fu...
5
Text
Text
fix typo in fast refresh documentation
e87b739f335dad7b6f032c95a61f9aaa21ec667d
<ide><path>docs/basic-features/fast-refresh.md <ide> description: <ide> <ide> # Fast Refresh <ide> <del>Fast Refresh is a Next.js feature that that gives you instantaneous feedback on <add>Fast Refresh is a Next.js feature that gives you instantaneous feedback on <ide> edits made to your React components. Fast Refres...
1
PHP
PHP
fix route when uncomment $namespace
d3353c9e9a06a044ec573cbf8b73a416e2f2a2ba
<ide><path>app/Providers/RouteServiceProvider.php <ide> public function boot() <ide> $this->routes(function () { <ide> Route::prefix('api') <ide> ->middleware('api') <add> ->namespace($this->namespace) <ide> ->group(base_path('routes/api.php')); <ide> ...
1
Javascript
Javascript
require eventemitter via nativemodule
807acf7f9871c6ee25915e7e159c9ea8b168028b
<ide><path>src/node.js <ide> if (isSignal(type)) { <ide> assert(signalWraps.hasOwnProperty(type)); <ide> <del> if (EventEmitter.listenerCount(this, type) === 0) { <add> if (NativeModule.require('events').listenerCount(this, type) === 0) { <ide> signalWraps[type].close(); <ide> ...
1
Python
Python
handle copyright in add-new-model-like
9c8fde8e196294901eb6abc074f735ecd883ef4c
<ide><path>src/transformers/commands/add_new_model_like.py <ide> import re <ide> from argparse import ArgumentParser, Namespace <ide> from dataclasses import dataclass <add>from datetime import date <ide> from itertools import chain <ide> from pathlib import Path <ide> from typing import Any, Callable, Dict, List, Opti...
1
PHP
PHP
consider real path of app to handle symlinks
36275129d710ea385ad5cb611feda6b75e84e4d9
<ide><path>lib/Cake/Console/Command/Task/ExtractTask.php <ide> protected function _processValidationRules($field, $rules, $file, $domain) { <ide> * @return void <ide> */ <ide> protected function _buildFiles() { <add> $paths = $this->_paths; <add> $paths[] = realpath(APP) . DS; <ide> foreach ($this->_translations...
1
Ruby
Ruby
raise deprecation exceptions in tests
1b4fdc17f4afa716ded74949c1e06ecce838e919
<ide><path>Library/Homebrew/test/cask/dsl_spec.rb <ide> def caveats <ide> end <ide> <ide> describe "depends_on macos" do <del> context "valid", :needs_compat do <add> context "string disabled", :needs_compat do <ide> let(:token) { "compat/with-depends-on-macos-string" } <ide> <ide> it "allows de...
2
Javascript
Javascript
fix error on bad listener type
1afc0c9e86025693a157df935edbe72d7296055d
<ide><path>lib/fs.js <ide> StatWatcher.prototype.stop = function() { <ide> <ide> const statWatchers = new Map(); <ide> <del>fs.watchFile = function(filename) { <add>fs.watchFile = function(filename, options, listener) { <ide> nullCheck(filename); <ide> filename = pathModule.resolve(filename); <ide> var stat; <d...
2
Ruby
Ruby
alphabetize tap migrations
2295c1cc8a093404f6aaca6696baeee6d3b4ec2c
<ide><path>Library/Homebrew/tap_migrations.rb <ide> "pocl" => "homebrew/science", <ide> "qfits" => "homebrew/boneyard", <ide> "qrupdate" => "homebrew/science", <del> "slicot" => "homebrew/science", <ide> "shark" => "homebrew/boneyard", <add> "slicot" => "homebrew/science", <ide> "solfege" => "homebrew/boney...
1
Python
Python
add extgen subpackage
2ff91f96ae8ed6c53c5822696e5527f12b9e1e2c
<ide><path>numpy/f2py/lib/setup.py <ide> def configuration(parent_package='',top_path=None): <ide> from numpy.distutils.misc_util import Configuration <ide> config = Configuration('lib',parent_package,top_path) <ide> config.add_subpackage('parser') <add> config.add_subpackage('extgen') <ide> config.a...
1
Javascript
Javascript
rename $animate.process to $animate.flushnext()
85d705ab69a89cc5b0c8d2636dede4827d0d8141
<ide><path>src/ngMock/angular-mocks.js <ide> angular.mock.animate = angular.module('mock.animate', ['ng']) <ide> var animate = { <ide> queue : [], <ide> enabled : $delegate.enabled, <del> process : function(name) { <add> flushNext : function(name) { <ide> var tick = animate...
8
Text
Text
add changelog metadata for url.format
6e79076feeb04a18253c0dc623307523819142d3
<ide><path>doc/api/url.md <ide> forward-slash characters (`/`) are required following the colon in the <ide> ### url.format(urlObject) <ide> <!-- YAML <ide> added: v0.1.25 <add>changes: <add> - version: v7.0.0 <add> pr-url: https://github.com/nodejs/node/pull/7234 <add> description: URLs with a `file:` scheme wi...
1
Text
Text
fix a minor typo
822ea6057b555ec714c54a6bbb0758a4482f29fb
<ide><path>share/doc/homebrew/Analytics.md <ide> Homebrew's analytics are accessible to Homebrew's current maintainers. Contact @ <ide> The code is viewable in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.rb and https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analyti...
1
Go
Go
implement create veth
2d2c237f50b7954993f6cd1db67c6f8c6d06f881
<ide><path>pkg/netlink/netlink_linux.go <ide> func rtaAlignOf(attrlen int) int { <ide> <ide> type RtAttr struct { <ide> syscall.RtAttr <del> Data []byte <add> Data []byte <add> children []*RtAttr <add> prefix int <ide> } <ide> <ide> func newRtAttr(attrType int, data []byte) *RtAttr { <del> attr := &RtAttr{} <a...
1
Text
Text
fix links and typos
c1ad0b9a1386b7a06483699e1d6f8c15788eaff3
<ide><path>guide/english/user-experience-design/index.md <ide> This section, and its guides, will cover a wide variety of user experience desig <ide> <ide> #### Articles, Resources and Inspiration for User Experience Design <ide> <del> <a href='https://www.prototypr.io/home/' target='_blank' rel='nofollow'>Prtotypr.i...
1
Text
Text
remove reference to sslv3 in tls.md
d2fcd1dd392ae3f32054f0343d750251b842a314
<ide><path>doc/api/tls.md <ide> be returned for server sockets or disconnected client sockets. <ide> <ide> Example responses include: <ide> <del>* `SSLv3` <ide> * `TLSv1` <ide> * `TLSv1.1` <ide> * `TLSv1.2`
1
Python
Python
add project_urls to setup.py
1256d5363def76aac271cc3903a80ab723b78ea6
<ide><path>setup.py <ide> def get_version(package): <ide> 'Programming Language :: Python :: 3.7', <ide> 'Programming Language :: Python :: 3 :: Only', <ide> 'Topic :: Internet :: WWW/HTTP', <del> ] <add> ], <add> project_urls={ <add> 'Funding': 'https://fund.django-rest-framewor...
1
Javascript
Javascript
fix tilingpattern + implement dummyshading ir form
755399a755f6c603fa8f052687aa317cacd369d8
<ide><path>pdf.js <ide> var PartialEvaluator = (function() { <ide> var codeIR = this.getIRQueue(pattern, xref, <ide> dict.get('Resources'), {}, fonts, images, uniquePrefix); <ide> <del> args = TilingPattern.getIR(codeIR, dict); <a...
1
Ruby
Ruby
add colored output to the new test reporter
7fa3a0c90a02d198d6058fb29507564539abdd6a
<ide><path>railties/lib/rails/test_unit/minitest_plugin.rb <ide> def self.plugin_rails_options(opts, options) <ide> options[:fail_fast] = true <ide> end <ide> <add> opts.on("-c", "--[no-]color", <add> "Enable color in the output") do |value| <add> options[:color] = value <add> end <add>...
3
Ruby
Ruby
ignore build deps when built from src
ae17d3cffd6ad1c7c855f456190e1474f8b774ff
<ide><path>Library/Homebrew/cmd/leaves.rb <ide> def installed_as_dependency?(formula) <ide> def leaves <ide> args = leaves_args.parse <ide> <del> leaves_list = Formula.formulae_with_no_formula_dependents(Formula.installed) <add> leaves_list = Formula.installed - Formula.installed.flat_map(&:runtime_formula...
2
Text
Text
use consistent method symbol
f095b195c26be07b75d8f9b8945ca1e2aeed8c85
<ide><path>doc/api/http2.md <ide> changes: <ide> queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all <ide> counted towards the current limit. **Default:** `10`. <ide> * `maxHeaderListPairs` {number} Sets the maximum number of header entries. <del> This is similar to [`http.Server#max...
2
Ruby
Ruby
ignore this test for mysql2
94cff67bd1125fb98abe8b642ce2dc0ea26bb6dd
<ide><path>activerecord/test/cases/attribute_methods_test.rb <ide> def test_read_attributes_before_type_cast_on_boolean <ide> end <ide> end <ide> <del> def test_read_attributes_before_type_cast_on_datetime <del> developer = Developer.find(:first) <del> # Oracle adapter returns Time before type cast <del> ...
1
Ruby
Ruby
get deprecation methods and callers straight
29cec6d0ab540263ac25c906c9ccfd5fb3a389cc
<ide><path>activesupport/lib/active_support/deprecation.rb <ide> def silence <ide> private <ide> def deprecation_message(callstack, message = nil) <ide> file, line, method = extract_callstack(callstack) <del> message ||= "#{method} is deprecated and will be removed from Rails 2.0." <del...
2
Text
Text
fix small typos [ci skip]
610de88b1cbd7a9ee462d646c9d8bf1e3ea73fc8
<ide><path>guides/source/autoloading_and_reloading_constants.md <ide> On the contrary, if `ApplicationController` is unknown, the constant is <ide> considered missing and an autoload is going to be attempted by Rails. <ide> <ide> In order to load `ApplicationController`, Rails iterates over `autoload_paths`. <del>Firs...
1
PHP
PHP
support local driver in url method
414f3da9bb548b4b8f8553bf3645dd5b2d796db0
<ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php <ide> use League\Flysystem\FilesystemInterface; <ide> use League\Flysystem\AwsS3v3\AwsS3Adapter; <ide> use League\Flysystem\FileNotFoundException; <add>use League\Flysystem\Adapter\Local as LocalAdapter; <ide> use Illuminate\Contracts\Filesystem\Filesystem as F...
1
Python
Python
fix merge conflicts
ababd952100de2d4f5f4a3bbb4925406443b98c4
<ide><path>keras/activations.py <ide> def softmax(x): <ide> if ndim == 2: <ide> return K.softmax(x) <ide> elif ndim == 3: <del> # apply softmax to each timestep <del> def step(x, states): <del> return K.softmax(x), [] <del> last_output, outputs, states = K.rnn(step, x, <d...
5
Python
Python
add unit tests for pigoperator
ae171f286fc7701661c7b3b3324c39ef24140c24
<ide><path>tests/providers/apache/pig/operators/__init__.py <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF licenses this file...
3
Text
Text
fix http properties documented as methods
d4378419616ba9eaea1023be8baef938515c160e
<ide><path>doc/api/http.md <ide> added: v5.7.0 <ide> A Boolean indicating whether or not the server is listening for <ide> connections. <ide> <del>### server.maxHeadersCount([limit]) <add>### server.maxHeadersCount <ide> <!-- YAML <ide> added: v0.7.0 <ide> --> <ide> <del>* `limit` {number} Defaults to 1000. <add>* {n...
1
PHP
PHP
improve code readability
dee76c0f158239ea97afe3ba375c2f1e3aa9d07c
<ide><path>src/Datasource/QueryTrait.php <ide> public function all(): ResultSetInterface <ide> return $this->_results; <ide> } <ide> <add> $results = null; <ide> if ($this->_cache) { <ide> $results = $this->_cache->fetch($this); <ide> } <del> if (!isset($re...
1
Python
Python
redirect the other stream to temp. file
36c43214d25101c7acd63e0394877b5e04661639
<ide><path>numpy/distutils/tests/test_exec_command.py <ide> import os <ide> import sys <ide> import StringIO <add>from tempfile import TemporaryFile <ide> <ide> from numpy.distutils import exec_command <ide> <ide> def test_exec_command_stdout(): <ide> <ide> # Test posix version: <ide> with redirect_stdout(St...
1
Javascript
Javascript
fix recursive rm test to actually use tmpdir
a566c05a4996ddf78f2d4993247ec12f57f1f5f6
<ide><path>test/parallel/test-fs-rmdir-recursive.js <ide> const assert = require('assert'); <ide> const fs = require('fs'); <ide> const path = require('path'); <ide> const { validateRmdirOptions } = require('internal/fs/utils'); <del>let count = 0; <ide> <ide> tmpdir.refresh(); <ide> <add>let count = 0; <add>const ne...
1
Javascript
Javascript
fix multiple expectedwarnings bug
682b85036efcaa87c580483f68ba71fbb13af4b9
<ide><path>test/common/index.js <ide> function expectWarning(name, expected) { <ide> // Remove a warning message after it is seen so that we guarantee that we <ide> // get each message only once. <ide> map.delete(expected); <del> }, map.size); <add> }, expected.length); <ide> } <ide> <ide> function expec...
1
Python
Python
apply suggestions from code review
c381719745b6c7c29817a569ce0d431e2cd72ff5
<ide><path>numpy/core/tests/test_nditer.py <ide> def test_0d_iter(): <ide> assert_equal(i.ndim, 0) <ide> assert_equal(len(i), 1) <ide> <del> i = nditer(np.arange(5), ['multi_index'], [['readonly']], op_axes=[()], itershape=()) <add> i = nditer(np.arange(5), ['multi_index'], [['readonly']], <add> ...
1
Javascript
Javascript
add test suite for accumulate function
d61da93878159d300f8b199cf01d240dd4bf429a
<ide><path>packages/events/__tests__/accumulate-test.internal.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @emails react-core <add> */ <...
2
Ruby
Ruby
add railties test of custom handlers and formats
a70ad604cfbbf191bc27e784c3fe1913a8c7b238
<ide><path>railties/test/application/rendering_test.rb <ide> def show <ide> get "/pages/foo.bar" <ide> assert_equal 200, last_response.status <ide> end <add> <add> test "New formats and handlers are detected from initializers" do <add> app_file "config/routes.rb", <<-RUBY <add> Rails.appl...
1
Python
Python
use distribution utils in xlnet
55d41fd67d7c08e9a88cc38f41f2b32089bde134
<ide><path>official/nlp/xlnet/run_classifier.py <ide> # ============================================================================== <ide> """XLNet classification finetuning runner in tf2.0.""" <ide> <del>from __future__ import absolute_import <del>from __future__ import division <del># from __future__ import google...
3