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 docblock to what its interface contracts says
2f765a486c58d57fd95c87bfc05a01dfbc6458cb
<ide><path>src/ORM/Table.php <ide> public function exists($conditions) <ide> * <ide> * @param \Cake\Datasource\EntityInterface $entity <ide> * @param array $options <del> * @return bool|\Cake\Datasource\EntityInterface|mixed <add> * @return \Cake\Datasource\EntityInterface|false <ide> * @thr...
1
Python
Python
fix bug in protm script
36cc3cae1caf4190b8c7fe8e773886cad04d2712
<ide><path>dev/stats/get_important_pr_candidates.py <ide> def __init__(self, g, pull_request: PullRequest): <ide> self.len_issue_comments = 0 <ide> self.num_issue_comments = 0 <ide> self.num_issue_reactions = 0 <add> self.protm_score = 0 <ide> <ide> @property <ide> def label_scor...
1
Javascript
Javascript
add code example for emberarray reject
c20639593b23463cb5ca48446335bd4eb80045da
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> <ide> ```javascript <ide> let peopleToMoon = ['Armstrong', 'Aldrin']; <del> <add> <ide> peopleToMoon.get('[]'); // ['Armstrong', 'Aldrin'] <ide> <ide> peopleToMoon.set('[]', ...
1
Text
Text
update doc files for ticks.minrotation
691a7c6a4bef0c6e0b8d1c82bafd4e2807239fac
<ide><path>docs/01-Scales.md <ide> afterUpdate | Function | undefined | Callback that runs at the end of the update <ide> *ticks*.fontFamily | String | "Helvetica Neue" | Font family for the tick labels, follows CSS font-family options. <ide> *ticks*.fontSize | Number | 12 | Font size for the tick labels. <ide> *ticks*...
1
Javascript
Javascript
restore the `btoa`/`atob` polyfills for node.js
0e1b5589e7a54f979e5e572024b71222c9444ebc
<ide><path>examples/node/domstubs.js <ide> DOMElementSerializer.prototype = { <ide> }, <ide> }; <ide> <del>function btoa (chars) { <del> return Buffer.from(chars, 'binary').toString('base64'); <del>} <del> <ide> const document = { <ide> childNodes : [], <ide> <ide> Image.prototype = { <ide> } <ide> } <ide> <d...
16
Javascript
Javascript
add tests for attribute hook/helper
df4e1723ae290cd38876fd4e50b6157208db84d3
<ide><path>packages/ember-htmlbars/lib/helpers/attribute.js <add>import run from "ember-metal/run_loop"; <add> <add>export function attributeHelper(params, hash, options, env) { <add> var dom = env.dom; <add> var name = params[0]; <add> var value = params[1]; <add> <add> var isDirty, lastRenderedValue; <add> <add> ...
8
Text
Text
update maintainer info [ci skip]
3e3d87a068019fd66625ef4f1686f0ad616f7ab5
<ide><path>CONTRIBUTING.md <ide> <ide> # Contribute to spaCy <ide> <del>Thanks for your interest in contributing to spaCy 🎉 The project is maintained <del>by **[@honnibal](https://github.com/honnibal)**, <del>**[@ines](https://github.com/ines)**, **[@svlandeg](https://github.com/svlandeg)** and <del>**[@adrianeboyd]...
2
Ruby
Ruby
add fake controllers for url rewriter tests
2ae84e04aa18f6b35c628349c8c816fe1538cd70
<ide><path>actionpack/test/controller/url_rewriter_test.rb <ide> require 'abstract_unit' <add>require 'controller/fake_controllers' <ide> <ide> ActionController::UrlRewriter <ide> <ide><path>actionpack/test/lib/controller/fake_controllers.rb <ide> class NewsFeedController < ActionController::Base; end <ide> class Els...
2
Python
Python
add bigquery to google cloud storage operator
1790a8ed364744ad97b84c61fdd6f4c2ec015af9
<ide><path>airflow/contrib/hooks/bigquery_hook.py <ide> def get_conn(self): <ide> <ide> def get_pandas_df(self, bql, parameters=None): <ide> """ <del> Returns a Pandas DataFrame for the results produced by a BigQuery query. <add> Returns a Pandas DataFrame for the results produced by a BigQue...
3
Text
Text
remove reference to forum from readme.md
24884999321a00b140bc58271ddb503e1723c199
<ide><path>README.md <ide> Free Code Camp! <ide> <ide> We're a community of busy people learning to code by collaborating on projects for nonprofits. We learn, then use, the JavaScript MEAN stack - MongoDB, Express.js, Angular.js and Node.js. <ide> <del>This app is live at [FreeCodeCamp.com](http://www.FreeCodeCamp....
1
PHP
PHP
remove type attributes from script and link tags
5c49e139f1d94cd0c24555a41975b8216b4f6cc8
<ide><path>src/View/Helper/HtmlHelper.php <ide> class HtmlHelper extends Helper { <ide> 'tagselfclosing' => '<{{tag}}{{attrs}}/>', <ide> 'para' => '<p{{attrs}}>{{content}}</p>', <ide> 'parastart' => '<p{{attrs}}>', <del> 'css' => '<link rel="{{rel}}" type="text/css" href="{{url}}"{{attrs}}/>', <add> 'css' => '<...
2
Python
Python
add warning message to np.npv docs
58dc45505b3d3e2b9de1a6961a749c8bd1165548
<ide><path>numpy/lib/financial.py <ide> def npv(rate, values): <ide> The NPV of the input cash flow series `values` at the discount <ide> `rate`. <ide> <add> Warnings <add> -------- <add> ``npv`` considers a series of cashflows starting in the present (t = 0). <add> NPV can also be defined ...
1
Java
Java
fix checkstyle violation
facdbdb7b62f6b62011934a758e29c5481af4a0b
<ide><path>spring-websocket/src/test/java/org/springframework/web/socket/server/support/WebSocketHttpRequestHandlerTests.java <ide> import static org.mockito.Mockito.mock; <ide> import static org.mockito.Mockito.verify; <ide> import static org.mockito.Mockito.verifyNoMoreInteractions; <del>import static org.mockito.Moc...
1
Java
Java
use stream#toarray in testcompiler
b6c463676afac813d078681a6b5ab48cf24b8c39
<ide><path>spring-context-indexer/src/test/java/org/springframework/context/index/test/TestCompiler.java <ide> public TestCompiler(JavaCompiler compiler, Path tempDir) throws IOException { <ide> <ide> <ide> public TestCompilationTask getTask(Class<?>... types) { <del> List<String> names = Arrays.stream(types).map(C...
1
Ruby
Ruby
update virtualenv to 16.0.0
db56b1add5eddfe1413b3d8828635757a977ea39
<ide><path>Library/Homebrew/language/python_virtualenv_constants.rb <del>PYTHON_VIRTUALENV_URL = "https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a27ff2ec007ecdd5cc52239e7c74990e32af57affe9/virtualenv-15.2.0.tar.gz".freeze <del>PYTHON_VIRTUALENV_SHA256 = "1d7e241b431e7afce47e77f8843a276f652699d1fa4f93b9d...
1
Text
Text
add 2.17.0-beta.2 to changelog
8bfa2013de2c15108b123f41b6a407a56f64108e
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.17.0-beta.2 (October 17, 2017) <add>- [#15613](https://github.com/emberjs/ember.js/pull/15613) [BUGFIX] Don't throw an error, when not all query params are passed to routerService.transitionTo <add>- [#15707](https://github.com/emberjs/ember.js/pull/1570...
1
PHP
PHP
fix missed case for midnight in 12 hour format
27eb5e0291da6cd915a661746ffbd3f392e33a52
<ide><path>src/View/Widget/DateTime.php <ide> protected function _hourSelect($options = []) { <ide> $is24 = $options['format'] == 24; <ide> <ide> $defaultEnd = $is24 ? 24 : 12; <del> <ide> $options['start'] = max(1, $options['start']); <ide> <ide> $options['end'] = min($defaultEnd, $options['end']); <ide> pro...
2
Ruby
Ruby
handle id attribute in primarykey module
d7942d4230e7cfa0c0c7c96c9a10dee49f612155
<ide><path>activerecord/lib/active_record/attribute_methods.rb <ide> def arel_attributes_values(include_primary_key = true, include_readonly_attribut <ide> end <ide> <ide> def attribute_method?(attr_name) <del> attr_name == 'id' || (defined?(@attributes) && @attributes.include?(attr_name)) <add> defi...
2
Python
Python
add namespaces to digitize tests + one more test
54746848f313ba1ee22a812e8b500d4bcc334910
<ide><path>numpy/lib/tests/test_function_base.py <ide> def test_basic(self): <ide> <ide> tgt = np.array([1, 3, 13, 24, 30, 35, 39], ctype) <ide> assert_array_equal(np.cumsum(a, axis=0), tgt) <del> <add> <ide> tgt = np.array([[1, 2, 3, 4], [6, 8, 10, 13], [16, 11, 14, 18...
1
PHP
PHP
add type check before validating url
052e9a51bbbbbe3247d6e080bec2dc222faa3974
<ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php <ide> protected function validateTimezone($attribute, $value) <ide> */ <ide> protected function validateUrl($attribute, $value) <ide> { <add> if (! is_string($value)) { <add> return false; <add> } <add> <ide> ...
1
PHP
PHP
fix double semicolon
adcdb9abf287b7fdc418ef2b73daff367f654c11
<ide><path>src/Illuminate/Foundation/Providers/PublisherServiceProvider.php <ide> protected function registerViewPublisher() <ide> <ide> $this->app->bindShared('view.publisher', function($app) <ide> { <del> $viewPath = $app['path.base'].'/resources/views';; <add> $viewPath = $app['path.base'].'/resources/views...
1
PHP
PHP
use explicit flag as default sorting
3b515cea9cab30e2832ca7b7b9be7923d732cb5e
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function sort($callback = null) <ide> <ide> $callback && is_callable($callback) <ide> ? uasort($items, $callback) <del> : asort($items, $callback); <add> : asort($items, $callback ?? SORT_REGULAR); <ide> <ide> ...
1
Javascript
Javascript
remove unneeded arguments checks
112af1e7ec00d88e4281ad71857d2dc7c83f7450
<ide><path>lib/BannerPlugin.js <ide> const wrapComment = str => { <ide> }; <ide> <ide> class BannerPlugin { <del> constructor(options) { <del> if (arguments.length > 1) { <del> throw new Error( <del> "BannerPlugin only takes one argument (pass an options object)" <del> ); <del> } <del> <add> constructor(optio...
3
Go
Go
add unit tests for remote api
ede0793d94e0bafcddc65b1fcb683169accffea3
<ide><path>api_test.go <ide> func TestInfo(t *testing.T) { <ide> } <ide> } <ide> <del>// func TestHistory(t *testing.T) { <del>// runtime, err := newTestRuntime() <del>// if err != nil { <del>// t.Fatal(err) <del>// } <del>// defer nuke(runtime) <del> <del>// srv := &Server{runtime: runtime} <del> <del>// req...
1
Javascript
Javascript
improve dev and beginner experience
19ebc0dda52ff6b6a6f7e11a3dc181262cddb804
<ide><path>build/grunt.js <ide> module.exports = function(grunt) { <ide> } <ide> }, <ide> babel: { <del> command: 'npm run babel -- --watch', <add> command: 'npm run babel -- --watch --quiet', <ide> options: { <ide> preferLocal: true <ide> } <ide> module.expor...
3
Javascript
Javascript
add test for handling of null env load setting
6bbe60ab712bb47d7a717b8ba01f5ead618e7863
<ide><path>spec/environment-helpers-spec.js <ide> describe('updateProcessEnv(launchEnv)', function () { <ide> TERM: 'xterm-something', <ide> PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/crazy/path' <ide> }) <add> <add> // Doesn't error <add> updateProcessEnv(null) <ide> }) <ide>...
1
Javascript
Javascript
convert layout phase to depth-first traversal
6132919bf2b8851382547b34a442e7e0c09c5697
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js <ide> import { <ide> ChildDeletion, <ide> Snapshot, <ide> Update, <add> Callback, <add> Ref, <ide> Passive, <ide> PassiveMask, <add> LayoutMask, <ide> PassiveUnmountPendingDev, <ide> } from './ReactFiberFlags'; <ide> import getComponent...
5
Go
Go
replace magic consts for golang.org/x/sys consts
89de943401bb23e09047f3c2c8f64f8aec247bc3
<ide><path>pkg/pidfile/pidfile_windows.go <ide> import ( <ide> "golang.org/x/sys/windows" <ide> ) <ide> <del>const ( <del> processQueryLimitedInformation = 0x1000 <del> <del> stillActive = 259 <del>) <del> <ide> func processExists(pid int) bool { <del> h, err := windows.OpenProcess(processQueryLimitedInformation, fal...
1
Python
Python
add choices to options metadata for choicefield
a38d9d5b24501ae0e279c9afbea08e423112ba34
<ide><path>rest_framework/fields.py <ide> def _set_choices(self, value): <ide> <ide> choices = property(_get_choices, _set_choices) <ide> <add> def metadata(self): <add> data = super(ChoiceField, self).metadata() <add> data['choices'] = self.choices <add> return data <add> <ide> def va...
1
Javascript
Javascript
remove main template hooks for hmrplugin
c006675dd9ed4375942405023a623fb1605a8599
<ide><path>lib/HotModuleReplacementPlugin.js <ide> <ide> "use strict"; <ide> <del>const { SyncBailHook, SyncWaterfallHook } = require("tapable"); <add>const { SyncBailHook } = require("tapable"); <ide> const { RawSource } = require("webpack-sources"); <ide> const HotUpdateChunk = require("./HotUpdateChunk"); <ide> co...
1
Python
Python
use strict type checking (not isinstance)
07a3f43cd6406433c2132e7bd14ad43b23677ecd
<ide><path>numpy/core/shape_base.py <ide> def _block_check_depths_match(arrays, index=[]): <ide> def format_index(index): <ide> idx_str = ''.join('[{}]'.format(i) for i in index if i is not None) <ide> return 'arrays' + idx_str <del> if isinstance(arrays, tuple): <add> if type(arrays) is tuple...
1
Java
Java
fix cglib memory leak for method injection
8028eae786ff36ea58df9a385319bf045795fa77
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/CglibSubclassingInstantiationStrategy.java <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <ide> <add>import org.springframework.beans.BeanInstantiationException; <add>import org.springframe...
2
Javascript
Javascript
make regular elements like identity elements
ca436a2b1d4d488a6aeadd9ba7e6ab170e3a5e49
<ide><path>packages/ember-htmlbars/lib/hooks/component.js <ide> export default function componentHook(renderNode, env, scope, _tagName, params, <ide> <ide> let tagName = _tagName; <ide> let isAngleBracket = false; <del> let isTopLevel; <add> let isTopLevel = false; <add> let isDasherized = false; <ide> <ide> ...
4
Python
Python
remove duplicated code
0cdafbf7ecfe0f13335c2ea10fd92391e30c79f0
<ide><path>src/transformers/tokenization_marian.py <ide> def prepare_seq2seq_batch( <ide> if max_target_length is not None: <ide> tokenizer_kwargs["max_length"] = max_target_length <ide> <del> if max_target_length is not None: <del> tokenizer_kwargs["max_length"] = max_target_leng...
1
Text
Text
add link to exercises
38898201d9d176ca22f50ce349024d32644ff8bf
<ide><path>guide/english/css/css3-grid-layout/index.md <ide> Though Grid Layout isn't fully supported by all browsers, it's the most advanced <ide> - [Grid by Example](https://gridbyexample.com/) <ide> - [Wes Bos - Free CSS Grid Course](https://cssgrid.io/) <ide> - [YouTube - CSS Grid Playlist](https://www.youtube.com/...
1
Python
Python
add test for broadcast with one argument
361c0d5ce1dc3d9b68bad42ec05ef7a4b33285ce
<ide><path>numpy/core/tests/test_indexing.py <ide> def _get_multi_index(self, arr, indices): <ide> + arr.shape[ax + len(indx[1:]):])) <ide> <ide> # Check if broadcasting works <del> if len(indx[1:]) != 1: <del> res = np.broadcast(*in...
2
PHP
PHP
add missing type to api docs
52c2674e45b775d9252eedfc1f9c4060a88974b5
<ide><path>src/Routing/Route/Route.php <ide> public function __construct($template, $defaults = [], array $options = []) { <ide> /** <ide> * Get/Set the supported extensions for this route. <ide> * <del> * @param null|array $extensions The extensions to set. Use null to get. <add> * @param null|string|array $extensio...
2
Javascript
Javascript
handle multi-file solutions
063145fe90aaae94e45a132015f19418438c68c1
<ide><path>tools/challenge-md-parser/challengeSeed-to-data.js <ide> function defaultFile(lang) { <ide> }; <ide> } <ide> function createCodeGetter(key, regEx, seeds) { <del> console.log('seeds'); <del> console.log(seeds); <ide> return container => { <ide> const { <ide> properties: { id } <ide> function c...
4
Go
Go
remove unused repoinfo
c1040b222c2520f8a0ebe14e81b5b7fe188e8dc6
<ide><path>api/client/build.go <ide> import ( <ide> "github.com/docker/docker/pkg/ulimit" <ide> "github.com/docker/docker/pkg/urlutil" <ide> "github.com/docker/docker/reference" <del> "github.com/docker/docker/registry" <ide> "github.com/docker/docker/utils" <ide> "github.com/docker/go-units" <ide> ) <ide> func (t...
1
Python
Python
add smart lib in dep
bcea4d1cdc083ab698634bbff926b798d03e20ed
<ide><path>setup.py <ide> def run(self): <ide> 'graph': ['pygal'], <ide> 'ip': ['netifaces'], <ide> 'raid': ['pymdstat'], <add> 'smart': ['pySMART.smartx'], <ide> 'snmp': ['pysnmp'], <ide> 'web': ['bottle', 'requests'], <ide> 'wifi': ['wifi']
1
Python
Python
remove unused set_input method
92e8a20761bedbde8fd56a02a165884e8132f045
<ide><path>keras/engine/topology.py <ide> def input(self): <ide> return self._get_node_attribute_at_index(0, 'input_tensors', <ide> 'input') <ide> <del> def set_input(self, input_tensor, shape=None): <del> if len(self.inbound_nodes) > 1: <del> ...
1
Text
Text
add pref to using draft pr versus wip label
4a7a18bbbe6444c425221f6327ddd072bd07194f
<ide><path>doc/guides/contributing/pull-requests.md <ide> details, but feel free to skip parts if you're not sure what to put. <ide> <ide> Once opened, pull requests are usually reviewed within a few days. <ide> <add>To get feedback on your proposed change even though it is not ready <add>to land, use the `Convert to...
1
Ruby
Ruby
remove a defensive to_s call
22d1f6516f977520ed67601ffde2bfecea746757
<ide><path>Library/Homebrew/build_options.rb <ide> def initialize_copy(other) <ide> end <ide> <ide> def add(name, description) <del> description ||= case name.to_s <add> description ||= case name <ide> when "universal" then "Build a universal binary" <ide> when "32-bit" then "Build 32-bit only" <...
1
Text
Text
fix typo on test.md
3048c3a7682919297d8d7d26897a59dc91b3be09
<ide><path>docs/contributing/test.md <ide> $ TESTDIRS='opts' make test-unit <ide> <ide> You can also use the `TESTFLAGS` environment variable to run a single test. The <ide> flag's value is passed as arguments to the `go test` command. For example, from <del>your local host you can run the `TestBuild` test with this c...
1
Text
Text
modify styles and typo of readme
66bfea679fa782418d9158aea8b1b0ec578eb37b
<ide><path>test/README.md <ide> Basically you don't need to write any expected behaviors your self. The assumpti <ide> <ide> Please follow the approach described bellow: <ide> <del>* write your test code in ```statsCases/``` folder by creating a separate folder for it, for example <del>```statsCases/some-file-import-...
1
PHP
PHP
add failing test for new custom statement handler
73c88939d7b5e554741f6913a1d94cd441678e51
<ide><path>tests/View/ViewBladeCompilerTest.php <ide> public function testCustomExtensionsAreCompiled() <ide> } <ide> <ide> <add> public function testCustomStatements() <add> { <add> $compiler = new BladeCompiler($this->getFiles(), __DIR__); <add> $compiler->addStatement('customControl', function($expression) { <a...
1
Javascript
Javascript
remove dead code in favor of unit tests
2db57bdecc9a0c3cedbd3883d9ee3e8a20232608
<ide><path>lib/path.js <ide> function win32SplitPath(filename) { <ide> // Separate device+slash from tail <ide> var result = splitDeviceRe.exec(filename), <ide> device = (result[1] || '') + (result[2] || ''), <del> tail = result[3] || ''; <add> tail = result[3]; <ide> // Split the tail into dir, b...
2
Python
Python
add deprecate with doc
94e351cbda3fb151af4ae18d6ebfc9b409e27022
<ide><path>utils.py <ide> from numpy.core import product, ndarray <ide> <ide> __all__ = ['issubclass_', 'get_numpy_include', 'issubsctype', <del> 'issubdtype', 'deprecate', 'get_numarray_include', <add> 'issubdtype', 'deprecate', 'deprecate_with_doc', <add> 'get_numarray_include', <ide> ...
1
Java
Java
update @controlleradvice javadoc
fce8ed62cef7df6aaffe5699dc64bf1a0c4faf3a
<ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/ControllerAdvice.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * yo...
1
Javascript
Javascript
improve transferable abort controller exec
367ac71894a70c068da51945edb06052b595bce5
<ide><path>lib/internal/abort_controller.js <ide> class AbortController { <ide> <ide> static [kMakeTransferable]() { <ide> const controller = new AbortController(); <del> controller.#signal = transferableAbortSignal(controller.#signal); <add> controller.#signal = createAbortSignal({ transferable: true }); ...
1
Ruby
Ruby
add cask options to `brew reinstall`
e40eece17bdf83b6d93fc8fff36f94938db22cd3
<ide><path>Library/Homebrew/cli/named_args.rb <ide> def initialize(*args, parent: Args.new, override_spec: nil, force_bottle: false, <ide> super(@args) <ide> end <ide> <add> def to_casks <add> @to_casks ||= to_formulae_and_casks(only: :cask).freeze <add> end <add> <ide> def to_form...
2
PHP
PHP
use alternative for array_add
01541893d20a5540d1f8e911e780f907103bfb60
<ide><path>src/Illuminate/Container/Container.php <ide> public function tag($abstracts, $tags) <ide> <ide> foreach ($tags as $tag) <ide> { <del> array_add($this->tags, $tag, []); <add> if ( ! isset($this->tags[$tag])) $this->tags[$tag] = []; <ide> <ide> foreach ((array) $abstracts as $abstract) <ide> {
1
Python
Python
add unit tests for trapping executor errors
f0eeb151106f9b179f8d8ea27f3fc0066b968404
<ide><path>tests/core.py <ide> from email.mime.multipart import MIMEMultipart <ide> from email.mime.application import MIMEApplication <ide> import errno <add>import signal <ide> from time import sleep <ide> <ide> from dateutil.relativedelta import relativedelta <ide> <ide> NUM_EXAMPLE_DAGS = 14 <ide> DEV_NULL = '/de...
2
Text
Text
add 2.13.1 to changelog
f7615bd2817563226d699824e5487b21c84abb97
<ide><path>CHANGELOG.md <ide> - [#15178](https://github.com/emberjs/ember.js/pull/15178) Refactor route to lookup controller for QPs. <ide> - [#15129](https://github.com/emberjs/ember.js/pull/15129) Fix access to service:-document in ember-engines <ide> <add>### 2.13.1 (May 17, 2017) <add> <add>- [#15129](https://gith...
1
Python
Python
run db shells in pty
67268a00cf1f197eb6a943c37b96521ead481073
<ide><path>airflow/cli/commands/db_command.py <ide> # under the License. <ide> """Database sub-commands""" <ide> import os <del>import subprocess <ide> import textwrap <ide> from tempfile import NamedTemporaryFile <ide> <ide> from airflow import settings <ide> from airflow.exceptions import AirflowException <ide> from...
3
Ruby
Ruby
add tests to serialize and deserialze individually
b59c7c7e69144bafd6d45f1be68f885e8995b6f1
<ide><path>activejob/test/cases/argument_serialization_test.rb <ide> class ArgumentSerializationTest < ActiveSupport::TestCase <ide> assert_arguments_roundtrip([a: 1, "b" => 2]) <ide> end <ide> <add> test "serialize a hash" do <add> symbol_key = { a: 1 } <add> string_key = { "a" => 1 } <add> indifferen...
1
Javascript
Javascript
add cluster 'bind twice' test
cacd3ae004d9796c746472433b83252cf5edb7e7
<ide><path>test/simple/test-cluster-bind-twice.js <add>// Copyright Joyent, Inc. and other Node contributors. <add>// <add>// Permission is hereby granted, free of charge, to any person obtaining a <add>// copy of this software and associated documentation files (the <add>// "Software"), to deal in the Software without...
1
Ruby
Ruby
use +/<tt> instead of ` in the rdoc [ci skip]
94554514fe8c03fae6b9fa389c6288415cb9e717
<ide><path>activerecord/lib/active_record/relation.rb <ide> def cache_key_with_version <ide> # end <ide> # # => SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 ORDER BY "comments"."id" ASC LIMIT 1 <ide> # <del> # If `all_queries: true` is passed, scoping will apply to all queries <...
1
Python
Python
use unicodecsv to make it py3 compatible
5603afa5f706347f939757a1e7a5cd30d51bfd8a
<ide><path>airflow/hooks/hive_hooks.py <ide> from __future__ import print_function <ide> from builtins import zip <ide> from past.builtins import basestring <del>import csv <add>import unicodecsv as csv <ide> import logging <ide> import re <ide> import subprocess <ide> def to_csv( <ide> schema = cur.des...
2
Javascript
Javascript
fix a bug with item controllers
8714394fd9ced690512b2b5ae9a795b6ff2d5136
<ide><path>packages/ember-runtime/lib/controllers/array_controller.js <ide> Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin, <ide> }, <ide> <ide> arrayContentDidChange: function(idx, removedCnt, addedCnt) { <del> this._super(idx, removedCnt, addedCnt); <del> <ide> var subContainers = g...
2
Java
Java
fix duplicate invoke method of transformedbeanname
ab8e388412858339099e299f7db34dffcbde8460
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java <ide> protected Object getObjectForBeanInstance( <ide> return beanInstance; <ide> } <ide> if (!(beanInstance instanceof FactoryBean)) { <del> throw new BeanIsNotAFactoryException(transformedBeanName(nam...
1
Javascript
Javascript
check server status in test-tls-psk-client
0ee6643d36d357da833b9c6b1462227463c765bd
<ide><path>test/sequential/test-tls-psk-client.js <ide> const server = spawn(common.opensslCli, [ <ide> '-psk_hint', IDENTITY, <ide> '-nocert', <ide> '-rev', <del>]); <add>], { encoding: 'utf8' }); <add>let serverErr = ''; <add>let serverOut = ''; <add>server.stderr.on('data', (data) => serverErr += data); <add>s...
1
Python
Python
fix comment typos under models/research
94be38c75f8946fabb35e2ac5c09050262d17aa9
<ide><path>research/attention_ocr/python/inception_preprocessing.py <ide> def distort_color(image, color_ordering=0, fast_mode=True, scope=None): <ide> <ide> Each color distortion is non-commutative and thus ordering of the color ops <ide> matters. Ideally we would randomly permute the ordering of the color ops. <...
4
Ruby
Ruby
add homepage and desc into regex
3c418cfb4eaa5eeafb3613172954c01aca831af1
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def merge <ide> indent = s.slice(/^ +stable do/).length - "stable do".length <ide> string = s.sub!(/^ {#{indent}}stable do(.|\n)+?^ {#{indent}}end\n/m, '\0' + output + "\n") <ide> else <del> string = s.sub!(/( <del> ...
1
Ruby
Ruby
correct doc typo [ci skip]
07c4f253704d398506d433adce0f40b53927d2b5
<ide><path>activerecord/lib/active_record/database_configurations.rb <ide> def initialize(configurations = {}) <ide> # the returned list. Most of the time we're only iterating over the write <ide> # connection (i.e. migrations don't need to run for the write and read connection). <ide> # Defaults to +...
1
Python
Python
fix all is_torch_tpu_available issues
7c4c6f60849fa8c8fa5904e2c6a6e1a21c981f56
<ide><path>examples/pytorch/question-answering/trainer_qa.py <ide> from transformers.trainer_utils import PredictionOutput <ide> <ide> <del>if is_torch_tpu_available(): <add>if is_torch_tpu_available(check_device=False): <ide> import torch_xla.core.xla_model as xm <ide> import torch_xla.debug.metrics as met <...
10
PHP
PHP
add more assertions
cda64c05ca73c0f9421589a5bcdf4fabfe7543da
<ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php <ide> protected function setKeysForSaveQuery(Builder $query) <ide> )); <ide> <ide> return $query->where($this->relatedKey, $this->getOriginal( <del> $this->relatedKey, $this->getAttribute($this->foreignKey) <add> $thi...
2
Javascript
Javascript
use error code rather than message in test
4f0ab76b6c29da74b29125a3ec83bb06e77c2aad
<ide><path>test/parallel/test-child-process-fork-closed-channel-segfault.js <ide> const server = net <ide> send(function(err) { <ide> // Ignore errors when sending the second handle because the worker <ide> // may already have exited. <del> if (err && err.message !== 'Channel closed...
1
Javascript
Javascript
move nulldependencytemplate within nulldependency
c934d2644d3149d572cf1896bd6326b46835ecaf
<ide><path>lib/dependencies/NullDependency.js <ide> class NullDependency extends Dependency { <ide> } <ide> } <ide> <add>NullDependency.Template = class NullDependencyTemplate { <add> apply() {} <add>} <add> <ide> module.exports = NullDependency; <ide><path>lib/dependencies/NullDependencyTemplate.js <del>/* <del> MIT...
3
PHP
PHP
add missing file block
eeae636ff12a670bc1e223283bd89691438bb04f
<ide><path>src/Error/Renderer/TextRenderer.php <ide> <?php <ide> declare(strict_types=1); <ide> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For f...
1
Text
Text
update build requirements in readme
86b7fec0bb0cb1ce5a77a32bad1c12ea4408d272
<ide><path>README.md <ide> Atom will automatically update when a new release is available. <ide> <ide> ### OS X Requirements <ide> * OS X 10.8 or later <del> * [node.js](http://nodejs.org/) <del> * Command Line Tools for [Xcode](https://developer.apple.com/xcode/downloads/) (Run `xcode-select --install`) <add> * ...
1
PHP
PHP
fix code style
354a94ee6a379a4a4fa4fad0b090aea05d795fcb
<ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php <ide> public function compileSavepointRollBack($name) <ide> * <ide> * @return string <ide> */ <del> public function compileRandom(){ <add> public function compileRandom() <add> { <ide> return "RANDOM()"; <ide> } <ide> <id...
3
Javascript
Javascript
add link to photo
2d9c0d9900adf26c8cb1e408e2a7fda843f399bc
<ide><path>app.js <ide> app.use(helmet.contentSecurityPolicy({ <ide> scriptSrc: ['*.optimizely.com'].concat(trusted), <ide> 'connect-src': process.env.NODE_ENV === 'development' ? ['ws://localhost:3001/', 'http://localhost:3001/'] : [], <ide> styleSrc: trusted, <del> imgSrc: ['*.evernote.com', '*.amazona...
1
Python
Python
allow lazy logging
ea7a8f7d808319f91c0e0ae41ea7b159891eef2b
<ide><path>airflow/settings.py <ide> TIMEZONE = pendulum.tz.timezone(tz) <ide> except Exception: <ide> pass <del>log.info("Configured default timezone %s" % TIMEZONE) <add>log.info("Configured default timezone %s", TIMEZONE) <ide> <ide> <ide> HEADER = '\n'.join([ <ide> def configure_vars(): <ide> <ide> ...
1
Javascript
Javascript
add dev/start timing to pr stats
9222ca9f3f225469f9d1840cbfe7af365664b829
<ide><path>.github/actions/next-stats-action/src/run/collect-stats.js <ide> module.exports = async function collectStats( <ide> (hasPagesToFetch || hasPagesToBench) <ide> ) { <ide> const port = await getPort() <add> const startTime = Date.now() <ide> const child = spawn(statsConfig.appStartCommand, { <...
3
Python
Python
resolve typeerror on `.get` from nested groups
dd2cdd9c4f8688f965d7b5658fa4956d083a7b8b
<ide><path>celery/result.py <ide> def iterate(self, timeout=None, propagate=True, interval=0.5): <ide> <ide> def get(self, timeout=None, propagate=True, interval=0.5, <ide> callback=None, no_ack=True, on_message=None, <del> disable_sync_subtasks=True): <add> disable_sync_subtasks=...
3
Javascript
Javascript
add missing var declaration for
c0389e3e37447aa7eb70cfb4837f4df6cdec5bba
<ide><path>src/core.js <ide> jQuery.extend({ <ide> <ide> // arg is for internal usage only <ide> map: function( elems, callback, arg ) { <del> var value, ret = [], <add> var value, key, ret = [], <ide> i = 0, <ide> length = elems.length, <ide> // jquery objects are treated as arrays
1
Javascript
Javascript
remove unused enqueuesetprops methods
cf4255445e7c1f0ce3061fbd2466d5da0877d714
<ide><path>src/isomorphic/classic/element/ReactElement.js <ide> ReactElement.cloneAndReplaceKey = function(oldElement, newKey) { <ide> return newElement; <ide> }; <ide> <del>ReactElement.cloneAndReplaceProps = function(oldElement, newProps) { <del> var newElement = ReactElement( <del> oldElement.type, <del> o...
2
Ruby
Ruby
mark another duration test failing with ruby 1.9
f3560d5a956f13df0571471c63f05369b85ba67d
<ide><path>activesupport/test/core_ext/numeric_ext_test.rb <ide> def setup <ide> } <ide> end <ide> <add> # FIXME: ruby 1.9 <ide> def test_units <ide> @seconds.each do |actual, expected| <ide> assert_equal expected, actual
1
PHP
PHP
use consistent config paths
63dc985f2f02705598e4e8a76946904e4b174ecd
<ide><path>config/view.php <ide> */ <ide> <ide> 'paths' => [ <del> realpath(base_path('resources/views')), <add> resource_path('views'), <ide> ], <ide> <ide> /*
1
Text
Text
synchronize api docs
53b1dcb25ca937c61bd47a29ba7be6e68abc25a5
<ide><path>docs/reference/api/docker_remote_api_v1.18.md <ide> Attach to the container `id` <ide> - **404** – no such container <ide> - **500** – server error <ide> <del> **Stream details**: <add>**Stream details**: <ide> <del> When using the TTY setting is enabled in <del> [`POST /containers/create` <de...
8
Python
Python
fix ui flash when triggering with dup logical date
6a8f0167436b8b582aeb92a93d3f69d006b36f7b
<ide><path>airflow/www/views.py <ide> def trigger(self, session=None): <ide> form=form, <ide> is_dag_run_conf_overrides_params=is_dag_run_conf_overrides_params, <ide> ) <del> # if run_id is not None, filter dag runs based on run id and ignore execution date <add> <ide>...
2
Javascript
Javascript
add regression test for
f55795c8ee37ba882fc69192da9478a8a1f8ce1a
<ide><path>packages/react-dom/src/__tests__/ReactDOMSuspensePlaceholder-test.internal.js <ide> describe('ReactDOMSuspensePlaceholder', () => { <ide> ReactCache = require('react-cache'); <ide> Suspense = React.Suspense; <ide> container = document.createElement('div'); <add> document.body.appendChild(conta...
1
PHP
PHP
remove pseudo instanceconfig defaults
e60797a8229822497f7712690f9f28b293f0ea0e
<ide><path>src/Log/Engine/SyslogLog.php <ide> class SyslogLog extends BaseLog { <ide> <ide> /** <add> * Default config for this class <add> * <ide> * By default messages are formatted as: <ide> * level: message <ide> * <ide> class SyslogLog extends BaseLog { <ide> * <ide> * @var array <ide> */ <del> protected $_...
1
Text
Text
update big brand examples in wordpress guide
ac66dcf052dd33e60f1bb86da9deebb29f226a6f
<ide><path>guide/english/wordpress/index.md <ide> In this instance, you could create a custom post type for products, a custom pos <ide> The free and open-source version of wordpress is found at [https://wordpress.org](https://wordpress.org) and must be self-hosted on a server or local development machine. This is also...
1
PHP
PHP
use a tag
8b1c43036b3d09d65ed4a6fef11918edae4f2058
<ide><path>templates/layout/dev_error.php <ide> font-size: 30px; <ide> margin: 0; <ide> } <del> .header-title small { <add> .header-title a { <ide> font-size: 18px; <ide> cursor: pointer; <ide> margin-left: 10px; <ide> <header> <ide> <h1 class="header-title"...
1
Mixed
Ruby
add an after_bundle callback in rails templates
097b2101897af447591d00fb2809d91894572b87
<ide><path>guides/source/rails_application_templates.md <ide> generate(:scaffold, "person name:string") <ide> route "root to: 'people#index'" <ide> rake("db:migrate") <ide> <del>git :init <del>git add: "." <del>git commit: %Q{ -m 'Initial commit' } <add>after_bundle do <add> git :init <add> git add: "." <add> git c...
5
Text
Text
add mention to changelog
36f17c92627564af12e839c84422b3f327afa27e
<ide><path>CHANGELOG.md <ide> ## Bug Fixes <ide> - **angular.merge:** do not merge __proto__ property <ide> ([726f49](https://github.com/angular/angular.js/commit/726f49dcf6c23106ddaf5cfd5e2e592841db743a)) <del> ([Thanks to the Snyk Security Research Team](https://snyk.io/blog/snyk-research-team-discovers-severe-pro...
1
Go
Go
fix inhibitipv4 nil panic
41a91e9a5d6525cf7e19baa511873c7f7f29df4d
<ide><path>libnetwork/drivers/bridge/bridge_store.go <ide> func (ncfg *networkConfiguration) UnmarshalJSON(b []byte) error { <ide> ncfg.EnableIPv6 = nMap["EnableIPv6"].(bool) <ide> ncfg.EnableIPMasquerade = nMap["EnableIPMasquerade"].(bool) <ide> ncfg.EnableICC = nMap["EnableICC"].(bool) <del> ncfg.InhibitIPv4 = nMa...
1
Ruby
Ruby
fix alias and versioned symlink handling
128aeba3a4d255c31066541f9828fe211b8e1f9d
<ide><path>Library/Homebrew/keg.rb <ide> def remove_old_aliases <ide> # versioned aliases are handled below <ide> next if a.match?(/.+@./) <ide> <del> alias_opt_symlink = opt/a <del> if alias_opt_symlink.symlink? && alias_opt_symlink.exist? <del> alias_opt_symlink.delete if alias_opt_symli...
1
Python
Python
improve keras graph performance for resnet56
dd5a91d3c0c5df38e78c2700d997c9b7dc56d268
<ide><path>official/resnet/cifar10_main.py <ide> def input_fn(is_training, <ide> dtype=tf.float32, <ide> datasets_num_private_threads=None, <ide> parse_record_fn=parse_record, <del> input_context=None): <add> input_context=None, <add> drop_remai...
2
Go
Go
fix todo for printing error messages
883ab41ce8f5163ba8ce0450ffff1e63c266f23b
<ide><path>builder/remotecontext/git.go <ide> import ( <ide> "github.com/docker/docker/builder" <ide> "github.com/docker/docker/builder/remotecontext/git" <ide> "github.com/docker/docker/pkg/archive" <add> "github.com/sirupsen/logrus" <ide> ) <ide> <ide> // MakeGitContext returns a Context from gitURL that is clone...
1
PHP
PHP
remove strtolower(), already done in snake_case()
4a7f96a02e44f464ca20198a81988e1c5a889544
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateAfter($attribute, $value, $parameters) <ide> */ <ide> protected function getMessage($attribute, $rule) <ide> { <del> $lowerRule = strtolower(snake_case($rule)); <add> $lowerRule = snake_case($rule); <ide> <ide> $inlineMessage =...
1
Javascript
Javascript
allow writes after readable 'end' to finish
0e89b64d6606d9c7948259e9090a46d185c5281f
<ide><path>lib/zlib.js <ide> function ZlibBase(opts, mode, handle, { flush, finishFlush, fullFlush }) { <ide> this._defaultFlushFlag = flush; <ide> this._finishFlushFlag = finishFlush; <ide> this._defaultFullFlushFlag = fullFlush; <del> this.once('end', this.close); <add> this.once('end', _close.bind(null, this...
2
Text
Text
add case conversion functions to the article
78949d9f61c86c63de86bf5ccca1add8f1262e3c
<ide><path>guide/english/java/strings/index.md <ide> The result will be: <ide> Free <ide> ``` <ide> <add> <add>#### String Case Conversion <add> <add>1. `.toLowerCase()` - This method will convert the string into lower case characters. <add> Example: <add> ```java <add> String text1 = "Welcome99"; <add> String...
1
PHP
PHP
add date and cast check for dirty
a0402824bf479dc5135b40a7f40095d4e2bbb265
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> public function getDirty() <ide> { <ide> $dirty = []; <ide> <del> foreach ($this->attributes as $key => $value) { <del> if (! array_key_exists($key, $this->original)) { <del> $dirty[$key] = $value;...
1
Javascript
Javascript
implement proper error handling
fc3b3a4101338b5713fb900acb80bbabe597039c
<ide><path>client/index.js <ide> const { <ide> __NEXT_DATA__: { <ide> props, <ide> err, <add> page, <ide> pathname, <ide> query, <ide> buildId, <ide> export default async ({ ErrorDebugComponent: passedDebugComponent, stripAnsi: pa <ide> ErrorComponent = await pageLoader.loadPage('/_error') <i...
6
Ruby
Ruby
handle tap migration in `tap#initialize`
b109e6da5d24baad2fbb76b9b502e817c1f2b902
<ide><path>Library/Homebrew/compat/tap.rb <del>module CaskTapMigrationExtension <del> def parse_user_repo(*args) <del> user, repo = super <add>module CaskTapMigration <add> def initialize(user, repo) <add> super <ide> <del> if user == "caskroom" <del> user = "Homebrew" <del> repo = "cask-#{repo}" ...
3
Javascript
Javascript
use session kupdatetimer from kupdatetimer
fc61ee32fedd5d0bd9bc1dee2b87a41dd7ffa4dd
<ide><path>lib/internal/http2/core.js <ide> class Http2Stream extends Duplex { <ide> return; <ide> if (this[kTimeout]) <ide> _unrefActive([kTimeout]); <del> if (this[kSession] && this[kSession][kTimeout]) <del> _unrefActive(this[kSession][kTimeout]); <add> if (this[kSession]) <add> this[...
1
PHP
PHP
update commandlistshell to give better help
bad819773eac1dd47ac5d3708dc64f185270b15b
<ide><path>lib/Cake/Console/Command/CommandListShell.php <ide> protected function _asText($shellList) { <ide> $this->out(" " . $row); <ide> } <ide> $this->out(); <del> $this->out(__d('cake_console', "To run a command, type <info>cake shell_name [args]</info>")); <add> $this->out(__d('cake_console', "To run an ...
1