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 paginator limit if query string exists
7718399b6c8bc3fefa39f22d4a50dda2eafb3bc5
<ide><path>src/View/Helper/PaginatorHelper.php <ide> public function limitControl(array $limits = [], $default = null, array $options <ide> $out .= $this->Form->control('limit', $options + [ <ide> 'type' => 'select', <ide> 'label' => __('View'), <del> 'value' => $d...
2
PHP
PHP
apply fixes from styleci
96ed7ba166f8c2ba95d433b7e22d62f011fc6046
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function take($limit) <ide> } <ide> <ide> /** <del> * Take items in the collection until the given condition is met. <del> * <del> * @param mixed $key <del> * @return static <del> */ <del> public function takeUntil...
2
Go
Go
remove defensive check of mux vars handling
389ce0aae6a303660e591ef80272322ac82854e2
<ide><path>api/server/httputils/form.go <ide> type ArchiveOptions struct { <ide> // ArchiveFormValues parses form values and turns them into ArchiveOptions. <ide> // It fails if the archive name and path are not in the request. <ide> func ArchiveFormValues(r *http.Request, vars map[string]string) (ArchiveOptions, error...
7
Javascript
Javascript
add support for local vars in expressions
761b2ed85ad9685c35f85513e17363abf17ce6b3
<ide><path>src/service/parse.js <ide> 'use strict'; <ide> <ide> var OPERATORS = { <del> 'null':function(self){return null;}, <del> 'true':function(self){return true;}, <del> 'false':function(self){return false;}, <add> 'null':function(){return null;}, <add> 'true':function(){return true;}, <add> 'fal...
2
Python
Python
show warning if session cookie domain is ip
c3d49e29ea42d2f468bc780c15683ca197b50d02
<ide><path>flask/helpers.py <ide> def total_seconds(td): <ide> :rtype: int <ide> """ <ide> return td.days * 60 * 60 * 24 + td.seconds <add> <add>def is_ip(ip): <add> """Returns the if the string received is an IP or not. <add> <add> :param string: the string to check if it an IP or not <add> :param...
2
Ruby
Ruby
allow installation from urls
ea03121688a19c827f1da230ac90c37e29e77608
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def usage; <<-EOS.undent <ide> private <ide> <ide> def downcased_unique_named <del> @downcased_unique_named ||= named.map{|arg| arg.downcase}.uniq <add> # Only lowercase names, not paths or URLs <add> @downcased_unique_named ||= named.map do |arg| <add> ...
2
Text
Text
fix incorrect sentence
934fb7ae60edd31a3b6153bfce399ceec12b3e75
<ide><path>guide/english/javascript/assignment-operators/index.md <ide> title: Assignment Operators <ide> <ide> # Assignment Operators <ide> <del>Assignment operators, as the name suggests, assign (or re-assign) values to a variable. While there are quite a few variations on the assignment operators, they all build o...
1
Mixed
Javascript
add cdn support with assetprefix
dec85fe6c4c5360aced57d75f9cea78ed388f2f8
<ide><path>client/index.js <ide> import mitt from 'mitt' <ide> import HeadManager from './head-manager' <ide> import { createRouter } from '../lib/router' <ide> import App from '../lib/app' <del>import evalScript from '../lib/eval-script' <ide> import { loadGetInitialProps, getURL } from '../lib/utils' <ide> import Err...
24
Python
Python
fix dtype getter
a1344dbfb97c18fc4c23568f39d6631fba05c218
<ide><path>src/transformers/modeling_utils.py <ide> def get_first_parameter_dtype(parameter: Union[nn.Module, GenerationMixin, "Modu <ide> try: <ide> return next(parameter.parameters()).dtype <ide> except StopIteration: <del> # For nn.DataParallel compatibility in PyTorch 1.5 <add> # For n...
1
Javascript
Javascript
remove dead code from dompropertyoperations
0a2ed64450fcafecbbe502d4bb812843085e3918
<ide><path>packages/react-dom/src/client/DOMPropertyOperations.js <ide> export function setValueForProperty(node, name, value) { <ide> ); <ide> return; <ide> } <del> <del> if (__DEV__) { <del> var payload = {}; <del> payload[name] = value; <del> } <ide> } <ide> <ide> export function setValueForAttrib...
1
Javascript
Javascript
make _.js work in strict mode
4f1397ef3ceaead952bc80fc23918e503a7915ac
<ide><path>vendor/underscore.js <ide> return this._wrapped; <ide> }; <ide> <del>})(); <add>// fix for 'use strict' - need an explicit `this` <add>}).call(this || window);
1
Text
Text
unlock the timers api
c76f737ebc945c59e602b810381136bede427cd3
<ide><path>doc/api/timers.md <ide> # Timers <ide> <del>> Stability: 3 - Locked <add>> Stability: 2 - Stable <ide> <ide> The `timer` module exposes a global API for scheduling functions to <ide> be called at some future period of time. Because the timer functions are
1
Text
Text
remove duplicate flags
da9bbf9acc867bb8dc2e6980a9f7c508fdd740bb
<ide><path>research/deeplab/g3doc/cityscapes.md <ide> python deeplab/train.py \ <ide> --train_crop_size=769 \ <ide> --train_batch_size=1 \ <ide> --dataset="cityscapes" \ <del> --train_split="train" \ <ide> --tf_initial_checkpoints=${PATH_TO_INITIAL_CHECKPOINT} \ <ide> --train_logdir=${PATH_TO_TRA...
2
PHP
PHP
remove un-needed method
6d3d1919873cabde40f2943d800dacf884d371fc
<ide><path>src/Illuminate/Routing/Controllers/Controller.php <ide> public function getControllerFilters() <ide> return $this->filters; <ide> } <ide> <del> /** <del> * Handle calls to missing methods on the controller. <del> * <del> * @param array $parameters <del> * @return mixed <del> */ <del> public funct...
1
Go
Go
remove v1 code not related to searching
3f7c62f6f6ddca1cd2f875cf0924549d9c5a4827
<ide><path>registry/errors.go <ide> import ( <ide> "github.com/docker/docker/errdefs" <ide> ) <ide> <del>type notFoundError string <del> <del>func (e notFoundError) Error() string { <del> return string(e) <del>} <del> <del>func (notFoundError) NotFound() {} <del> <ide> func translateV2AuthError(err error) error { <id...
3
Mixed
Javascript
provide access to $xhr header defaults
c5f3a413bc00acf9ac1046fb15b454096a8890c6
<ide><path>CHANGELOG.md <ide> - New [ng:disabled], [ng:selected], [ng:checked], [ng:multiple] and [ng:readonly] directives. <ide> - Added support for string representation of month and day in [date] filter. <ide> - Added support for `prepend()` to [jqLite]. <add>- Added support for configurable HTTP header defaults for...
5
Text
Text
fix a small typo in `docs/deprecated.md`
45e5b2552ab1ca685e88e0feeedc92fb817d8567
<ide><path>docs/deprecated.md <ide> filesystem does not support `d_type`. For example, XFS does not support `d_type` <ide> if it is formatted with the `ftype=0` option. <ide> <ide> Please also refer to [#27358](https://github.com/docker/docker/issues/27358) for <del>futher information. <add>further information. <ide> ...
1
Javascript
Javascript
update vectorkeyframetrack inheritance
a400150ede2af942095d33eeb4243fc1c00a49a5
<ide><path>src/animation/tracks/VectorKeyframeTrack.js <del>import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js'; <del>import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js'; <add>import { KeyframeTrack } from '../KeyframeTrack.js'; <ide> <ide> /** <ide> * <ide> import { KeyframeTr...
1
Javascript
Javascript
add annotations to example
547871e779f7a1e340c03296405735415764a0e8
<ide><path>src/loader.js <ide> function setupModuleLoader(window) { <ide> * myModule.value('appName', 'MyCoolApp'); <ide> * <ide> * // configure existing services inside initialization blocks. <del> * myModule.config(function($locationProvider) { <add> * myModule.config(['$locationProvider', func...
1
Ruby
Ruby
use hash defaults to dry up ||= calls
77a6e2558475b80481739c091a873bf39f46cf3b
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> class Fixtures <ide> MAX_ID = 2 ** 30 - 1 <ide> DEFAULT_FILTER_RE = /\.ya?ml$/ <ide> <del> @@all_cached_fixtures = {} <add> @@all_cached_fixtures = Hash.new { |h,k| h[k] = {} } <ide> <ide> def self.find_table_name(table_name) # :nodoc: <ide> Acti...
1
Ruby
Ruby
remove unnecessary @compiled_root from static.rb
3c217faa860d70bb26912864bfd1eca76142b1b9
<ide><path>actionpack/lib/action_dispatch/middleware/static.rb <ide> module ActionDispatch <ide> class FileHandler <ide> def initialize(root, index: 'index', headers: {}) <ide> @root = root.chomp('/') <del> @compiled_root = /^#{Regexp.escape(root)}/ <ide> @file_server = ::Rack::File.ne...
1
Javascript
Javascript
make $sniffer service private
aaedefb92e6bec6626e173e5155072c91471596a
<ide><path>src/service/sniffer.js <ide> 'use strict'; <ide> <ide> /** <del> * @ngdoc object <add> * !!! This is an undocumented "private" service !!! <add> * <ide> * @name angular.module.ng.$sniffer <ide> * @requires $window <ide> * <ide> */ <ide> function $SnifferProvider(){ <ide> this.$get = ['$window', functi...
2
Javascript
Javascript
exclude lots of native node module cruft
1895121784e4262970550988e3f01b4ca5dcf562
<ide><path>script/lib/include-path-in-packaged-app.js <ide> const EXCLUDE_REGEXPS_SOURCES = [ <ide> escapeRegExp(path.join('node_modules', 'pegjs')), <ide> escapeRegExp(path.join('node_modules', '.bin', 'pegjs')), <ide> escapeRegExp(path.join('node_modules', 'spellchecker', 'vendor', 'hunspell') + path.sep) + '.*...
1
Mixed
Javascript
replace `onevent` by `before/afterevent`
7205ff5e2aa4515bae0c62bb9d8355745837270e
<ide><path>docs/09-Advanced.md <ide> Plugins should implement the `IPlugin` interface: <ide> <ide> destroy: function(chartInstance) { } <ide> <del> /** <del> * Called when an event occurs on the chart <del> * @param e {Core.Event} the Chart.js wrapper around the native event. e.native is the original event <del> ...
5
Ruby
Ruby
organize the matchers a bit more
3ab6ae0c601d1b4459efd8bb39650fee370aa5b8
<ide><path>spec/algebra/integration/basic_spec.rb <ide> require 'spec_helper' <ide> <del>def have_rows(expected) <del> simple_matcher "have rows" do |given, matcher| <del> found, got, expected = [], [], expected.map { |r| r.tuple } <del> given.each do |row| <del> got << row.tuple <del> found << expect...
8
Python
Python
fix wrong import
97f2e0d810a9bf539061bdac588e4f5dc03a5561
<ide><path>libcloud/container/drivers/kubernetes.py <ide> from libcloud.compute.base import NodeImage <ide> <ide> from libcloud.utils.misc import to_n_cpus <del>from libcloud.utils.mist import to_cpu_str <add>from libcloud.utils.misc import to_cpu_str <ide> from libcloud.utils.misc import to_memory_str <ide> from libc...
1
Python
Python
pass regression test for #401 (resolves #401)
d0b85faf692ac37ff435c05148b0c7d7212effe1
<ide><path>spacy/tests/regression/test_issue401.py <ide> import pytest <ide> <ide> <del>@pytest.mark.xfail <ide> @pytest.mark.models <ide> @pytest.mark.parametrize('text,i', [("Jane's got a new car", 1), <ide> ("Jane thinks that's a nice car", 3)])
1
Javascript
Javascript
add strictequal method to assert
1593237ecc8b3710fa024cbd7afa30c48b1541aa
<ide><path>test/parallel/test-http2-create-client-secure-session.js <ide> function onStream(stream, headers) { <ide> const socket = stream.session[kSocket]; <ide> <ide> assert(stream.session.encrypted); <del> assert(stream.session.alpnProtocol, 'h2'); <add> assert.strictEqual(stream.session.alpnProtocol, 'h2'); ...
1
Text
Text
update copyright year in license to 2014
51032692f335db8b75411a097810b5e7740fc871
<ide><path>LICENSE.md <del>Copyright (c) 2013 Nick Downie <add>Copyright (c) 2014 Nick Downie <ide> <ide> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without lim...
1
Javascript
Javascript
simplify unique titles test
d6f217c1b956517ff36bf192f273940473bc6d5e
<ide><path>seed/challengeTitles.js <ide> class ChallengeTitles { <ide> } <ide> check(title) { <ide> if (typeof title !== 'string') { <del> throw new Error(`Expected a valid string for ${title}, got ${typeof title}`); <add> throw new Error(`Expected a valid string for ${title}, but got a(n) ${typeof ti...
1
Python
Python
update tokenizer exceptions for german
702d1eed930b354e5fece66142fe938d68fbd672
<ide><path>spacy/de/tokenizer_exceptions.py <ide> from __future__ import unicode_literals <ide> <ide> from ..symbols import * <del>from ..language_data import PRON_LEMMA <add>from ..language_data import PRON_LEMMA, DET_LEMMA <ide> <ide> <ide> TOKENIZER_EXCEPTIONS = { <ide> ], <ide> <ide> "'S": [ <del> ...
1
Python
Python
fix identation in executor_config example
264c466b467845bcca25081e91ed76222ae5e7fa
<ide><path>airflow/models/baseoperator.py <ide> class derived from this one results in the creation of a task object, <ide> <ide> MyOperator(..., <ide> executor_config={ <del> "KubernetesExecutor": <del> {"image": "myCustomDockerImage"} <del> ...
1
Javascript
Javascript
add e2e test for jsonp error handling
862d78c1d96a22ae215ec272e6f0d07b374421bf
<ide><path>src/service/xhr.js <ide> var self = this; <ide> <ide> this.fetch = function() { <del> self.clear(); <add> self.code = null; <add> self.response = null; <add> <ide> $xhr(self.method, self.url, function(code, response) { <ide> ...
1
Javascript
Javascript
remove default export from plugins/index
5920858513710276dc33d33a172ce67bd4215d13
<ide><path>src/index.js <ide> Chart.scaleService = scaleService; <ide> Chart.Ticks = Ticks; <ide> <ide> // Register built-in scales <del>import * as scales from './scales/index'; <add>import * as scales from './scales'; <ide> Object.keys(scales).forEach(key => Chart.scaleService.registerScale(scales[key])); <ide> <id...
2
PHP
PHP
remove unneeded class
6b167368c96ad146cdeab9c67ede66e5f9759ac8
<ide><path>src/Illuminate/Foundation/Artisan.php <del><?php namespace Illuminate\Foundation; <del> <del>use Illuminate\Console\Application as ConsoleApplication; <del> <del>class Artisan { <del> <del> /** <del> * The application instance. <del> * <del> * @var \Illuminate\Foundation\Application <del> */ <del> protec...
1
Mixed
Ruby
allow any key in renderer environment hash
6fccd7b6293dcae383757379c5c3809c6674084e
<ide><path>actionpack/CHANGELOG.md <add>* Allow keys not found in RACK_KEY_TRANSLATION for setting the environment when rendering <add> arbitrary templates. <add> <add> *Sammy Larbi* <add> <ide> * Remove deprecated support to non-keyword arguments in `ActionDispatch::IntegrationTest#process`, <ide> `#get`...
3
Ruby
Ruby
remove redundant `test_too_many_binds`
36483cdb486fb72ef08ada2a60a0085f2bf66f2f
<ide><path>activerecord/test/cases/adapters/sqlite3/bind_parameter_test.rb <del># frozen_string_literal: true <del> <del>require "cases/helper" <del>require "models/topic" <del> <del>module ActiveRecord <del> module ConnectionAdapters <del> class SQLite3Adapter <del> class BindParameterTest < ActiveRecord::SQL...
1
Text
Text
use a local virtualenv, not in the users homedir
9a8082878a08bb87f5e71f245caedc3c9dfd3616
<ide><path>docs/tutorial/1-serialization.md <ide> The tutorial is fairly in-depth, so you should probably get a cookie and a cup o <ide> Before we do anything else we'll create a new virtual environment, using [virtualenv]. This will make sure our package configuration is kept nicely isolated from any other projects w...
1
Python
Python
resolve line-too-long in premade_models
ee4e6ec720941958833f022cddec708902f78c2d
<ide><path>keras/premade_models/linear.py <ide> def __init__( <ide> units: Positive integer, output dimension without the batch size. <ide> activation: Activation function to use. <ide> If you don't specify anything, no activation is applied. <del> use_bias: whether to calculate...
2
Javascript
Javascript
use worker.exitedafterdisconnect consistently
eaaec57332c466b39a12245de3b31d002250bec1
<ide><path>test/parallel/test-cluster-worker-constructor.js <ide> const cluster = require('cluster'); <ide> let worker; <ide> <ide> worker = new cluster.Worker(); <del>assert.strictEqual(worker.suicide, undefined); <add>assert.strictEqual(worker.exitedAfterDisconnect, undefined); <ide> assert.strictEqual(worker.state,...
5
Python
Python
remove unused import
43e9f5e71a159d3e2ebdab332961bc5379b932f6
<ide><path>libcloud/storage/drivers/cloudfiles.py <ide> # limitations under the License. <ide> <ide> import httplib <del>import os.path <ide> import urllib <ide> <ide> try:
1
Javascript
Javascript
move polyfill for codepointat to string prototype
c8129b878755b0885f09ee4e6ae6efc44eefe8ff
<ide><path>src/shared/compatibility.js <ide> const hasDOM = typeof window === 'object' && typeof document === 'object'; <ide> // Provides support for String.codePointAt in legacy browsers. <ide> // Support: IE11. <ide> (function checkStringCodePointAt() { <del> if (String.codePointAt) { <add> if (String.prototype.cod...
1
Ruby
Ruby
reword polymorphic routes + mounted engine rdoc
dafb4d604a54d691132b89768c1e34dd0d7067ac
<ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb <ide> module Routing <ide> # edit_polymorphic_path(@post) # => "/posts/1/edit" <ide> # polymorphic_path(@post, :format => :pdf) # => "/posts/1.pdf" <ide> # <del> # == Using with mounted engines <add> # == Usage w...
1
PHP
PHP
fix incorrect test
570c4f71d9f579952abd367870a3d6e944173942
<ide><path>tests/TestCase/TestSuite/FixtureManagerTest.php <ide> public function testLoadSingle() <ide> $this->manager->loadSingle('Articles'); <ide> $this->manager->loadSingle('Tags'); <ide> <del> $table = $this->getTableLocator()->get('ArticlesTags'); <add> $table = $this->getTableLocat...
1
Text
Text
add note to changelog
4c8d248757cb18b9251411e0c3a2d29e951386d5
<ide><path>CHANGELOG.md <ide> * Fix `null` showing up in a warning instead of the component stack. ([@gaearon](https://github.com/gaearon) in [#10915](https://github.com/facebook/react/pull/10915)) <ide> * Fix IE11 crash in development mode. ([@leidegre](https://github.com/leidegre) in [#10921](https://github.com/faceb...
1
Javascript
Javascript
add comment about 3rd party integrations
8e90194f7d38136be48bfebc8fc3c45d88dbc2d6
<ide><path>shells/browser/shared/src/renderer.js <ide> Object.defineProperty( <ide> '__REACT_DEVTOOLS_ATTACH__', <ide> ({ <ide> enumerable: false, <add> // This property needs to be configurable to allow third-party integrations <add> // to attach their own renderer. Note that using third-party integratio...
1
Javascript
Javascript
use a default branch instead of master
ce5e0f3068172fedd689b8905381a1796ee6481d
<ide><path>script/lib/update-dependency/fetch-outdated-dependencies.js <ide> const apm = async function({ dependencies, packageDependencies }) { <ide> <ide> const npm = async function(cwd) { <ide> try { <del> console.log('Checking npm registry...'); <add> console.log('Checking npm registry...', cwd); <ide> <i...
4
Text
Text
release notes for 1.1.2 and 1.0.4
0551aa95f0376c52568a027296e225d828cede38
<ide><path>CHANGELOG.md <add><a name="1.1.2"></a> <add># 1.1.2 tofu-animation (2013-01-22) <add> <add>_Note: 1.1.x releases are [considered unstable](http://blog.angularjs.org/2012/07/angularjs-10-12-roadmap.html). <add>They pass all tests but we reserve the right to change new features/apis in between minor releases. ...
1
Ruby
Ruby
add some whitespace for readability
1818c4e8b49d053ca7a220288dd6823984bc0328
<ide><path>activerecord/lib/active_record/insert_all.rb <ide> def initialize(model, inserts, on_duplicate:, returning: nil, unique_by: nil) <ide> raise ArgumentError, "Empty list of attributes passed" if inserts.blank? <ide> <ide> @model, @connection, @inserts, @on_duplicate, @returning, @unique_by = model...
2
Python
Python
fix silly mistake in chararray
b963f883d4db71676ee9be260f63f38f6aead8e6
<ide><path>numpy/core/defchararray.py <ide> def __getitem__(self, obj): <ide> val = ndarray.__getitem__(self, obj) <ide> if isinstance(val, (string_, unicode_)): <ide> return val.rstrip() <add> return val <ide> <ide> def __add__(self, other): <ide> b = broadcast(self, oth...
1
Text
Text
add changelog for
512a8c7363d23c3f84eccbf9b1ca128e583c9aab
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Add i18n scope to disance_of_time_in_words. *Steve Klabnik* <add> <ide> * `assert_template`: <ide> - is no more passing with empty string. <ide> - is now validating option keys. It accepts: `:layout`, `:partial`, `:locals`...
1
Java
Java
remove warning suppression in mocks
41737e827cf47c933f664b1256af67dd278e1620
<ide><path>spring-test/src/main/java/org/springframework/mock/web/MockPageContext.java <ide> public Enumeration<String> getAttributeNames() { <ide> return Collections.enumeration(new LinkedHashSet<String>(this.attributes.keySet())); <ide> } <ide> <del> @SuppressWarnings("unchecked") <ide> public Enumeration<String...
2
Ruby
Ruby
add libressl to uses_from_macos allow list
25b7d28f91d88dc2ac431cebba9a9c2998b365f1
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_formula_name <ide> USES_FROM_MACOS_ALLOWLIST = %w[ <ide> apr <ide> apr-util <add> libressl <ide> openblas <ide> openssl@1.1 <ide> ].freeze
1
PHP
PHP
replace spaces with tabs
7435635e501140d9addf2eabd5524a5d027e5b98
<ide><path>src/Illuminate/Console/Command.php <ide> public function table(array $headers, array $rows, $style = 'default') <ide> $table = new Table($this->output); <ide> $table->setHeaders($headers); <ide> $table->setRows($rows); <del> $table->setStyle($style); <add> $table->setStyle($style); <ide> $tab...
1
Ruby
Ruby
get more tests to pass
9cfd1d44915f4615bbb760198cd01bf4dfc69f5a
<ide><path>railties/lib/initializer.rb <add>require "pathname" <add> <ide> module Rails <ide> class Configuration <ide> attr_accessor :cache_classes, :load_paths, :eager_load_paths, :framework_paths, <ide> :load_once_paths, :gems_dependencies_loaded, :after_initialize_blocks, <ide> ...
2
Javascript
Javascript
fix bug where the wrong context was being passed
eb62b083150d3777ba11c0efbbacc64052d98457
<ide><path>packages/ember-states/lib/state.js <ide> Ember.State = Ember.Object.extend(Ember.Evented, { <ide> }); <ide> <ide> Ember.State.transitionTo = function(target) { <del> var event = function(router, context) { <del> router.transitionTo(target, context); <add> var event = function(router, event) { <add> ...
1
Ruby
Ruby
trim entries where possible to fix ruby crashes
4265540cc41959c4bf5d68cd5e9f046b8aa79cc5
<ide><path>Library/Homebrew/load_path.rb <ide> <ide> HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath.freeze <ide> <del>$LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.to_s) unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s) <add>$LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s <ide> <ide> require "vendor/bundle/bundler/setup...
2
Python
Python
fix xcom.delete error in airflow 2.2.0
47c5973b3d1ad6d492fb1ceff19d5ec43b8e74af
<ide><path>airflow/models/xcom.py <ide> class BaseXCom(Base, LoggingMixin): <ide> BaseXCom.execution_date == foreign(DagRun.execution_date) <ide> )""", <ide> uselist=False, <add> passive_deletes="all", <ide> ) <ide> run_id = association_proxy("dag_run", "run_id") <ide>
1
Text
Text
fix lint errors for docs/basics/
6d2cf8948cefd46d9ed62fdc2fdf2ae4f8376b66
<ide><path>docs/basics/Actions.md <ide> First, let’s define some actions. <ide> Here’s an example action which represents adding a new todo item: <ide> <ide> ```js <del>const ADD_TODO = 'ADD_TODO'; <add>const ADD_TODO = 'ADD_TODO' <ide> ``` <ide> <ide> ```js <ide> const ADD_TODO = 'ADD_TODO'; <ide> Actions are plain ...
6
Text
Text
add more detail to svg paths
88bf0150f4dd5561d7ac6f63d00de77a05a3032c
<ide><path>guide/english/svg/shapes/index.md <ide> title: SVG Shapes <ide> <ide> Several shapes can be created using SVG drawing. An SVG drawing can use and combine seven shapes: Path, Rectangle, Circle, Ellipse, Line, Polyline, and Polygon. <ide> <add>Almost all shapes take these common attributes: <add> <add>``` <a...
1
Python
Python
add multilingual documentation support
8ff619d95eb21f74ac0a1ef97b8313c5d25e029d
<ide><path>docs/source/conf.py <ide> # A list of files that should not be packed into the epub file. <ide> epub_exclude_files = ["search.html"] <ide> <add># Localization <add>locale_dirs = ['locale/'] <add>gettext_compact = False <ide> <ide> def setup(app): <ide> app.add_css_file("css/huggingface.css") <ide><path...
3
Javascript
Javascript
support custom properties
619bf98d5b479f9582dbc40259b666f1c5a83146
<ide><path>src/css.js <ide> var <ide> // except "table", "table-cell", or "table-caption" <ide> // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display <ide> rdisplayswap = /^(none|table(?!-c[ea]).+)/, <add> rcustomProp = /^--/, <ide> cssShow = { position: "absolute", visibility: "hidde...
3
PHP
PHP
allow connection in 'exists' validation (test)
9ad2666abfc64e81dc3b4e7cdc5e24ab0c6cdab1
<ide><path>tests/Validation/ValidationValidatorTest.php <ide> public function testValidationExists() <ide> $mock3->shouldReceive('getMultiCount')->once()->with('users', 'email_addr', ['foo'], [])->andReturn(false); <ide> $v->setPresenceVerifier($mock3); <ide> $this->assertFalse($v->passes()); <a...
1
Python
Python
eliminate more warnings in testing
c08e80eb6c1f47a9d65e363316ae1f6c6e6f870d
<ide><path>numpy/core/numeric.py <ide> class errstate(object): <ide> # Note that we don't want to run the above doctests because they will fail <ide> # without a from __future__ import with_statement <ide> def __init__(self, **kwargs): <del> try: <del> self.errcall = kwargs.pop('errcall') ...
2
Go
Go
allow unc paths on build
df7ab6f3dbec85c1cf32b36c4c7dcfdc374f6566
<ide><path>api/client/build.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> return nil <ide> } <ide> <add>// isUNC returns true if the path is UNC (one starting \\). It always returns <add>// false on Linux. <add>func isUNC(path string) bool { <add> return runtime.GOOS == "windows" && strings.Ha...
1
PHP
PHP
bind only true ints as ints
6e77be515a1830ebcae9dce5a504e2b74a089dad
<ide><path>src/Illuminate/Database/Connection.php <ide> public function bindValues($statement, $bindings) <ide> foreach ($bindings as $key => $value) { <ide> $statement->bindValue( <ide> is_string($key) ? $key : $key + 1, $value, <del> filter_var($value, FILTER_VALIDAT...
1
Text
Text
remove comments about react 0.13
d31a333e6b9ff1d554fee097fd58ca96a53f35ff
<ide><path>docs/basics/ExampleTodoList.md <ide> let store = createStore(todoApp); <ide> <ide> let rootElement = document.getElementById('root'); <ide> render( <del> // The child must be wrapped in a function <del> // to work around an issue in React 0.13. <ide> <Provider store={store}> <ide> <App /> <ide> </...
2
Text
Text
fix spellings error
8214fa6b26862334214fb7a82a23aa7d4841b1a4
<ide><path>docs/introduction/GettingStarted.md <ide> The [**Redux Fundamentals tutorial**](../tutorials/fundamentals/part-1-overview. <ide> <ide> ### Learn Modern Redux Livestream <ide> <del>Redux maintainer Mark Erikson appeared on the "Learn with Jason" show to explain how we recommend using Redux today. The show i...
4
Python
Python
use a line-break in the `nested_iters` signature
2fa73cd2296ee68626d2cb3b816aaa39ba546e2d
<ide><path>numpy/core/_add_newdocs.py <ide> <ide> add_newdoc('numpy.core', 'nested_iters', <ide> """ <del> nested_iters(op, axes, flags=None, op_flags=None, op_dtypes=None, order="K", casting="safe", buffersize=0) <add> nested_iters(op, axes, flags=None, op_flags=None, op_dtypes=None, \ <add> order="K", c...
1
PHP
PHP
fix more typing issues
7dd994e7891fa91c997b0c2e6cb95fb92edd517f
<ide><path>src/Database/Exception/NestedTransactionRollbackException.php <ide> class NestedTransactionRollbackException extends Exception <ide> * Constructor <ide> * <ide> * @param string|null $message If no message is given a default meesage will be used. <del> * @param int $code Status code, defaul...
4
Python
Python
fix meta defaults and error in package command
b89f6fa011c6f49e3e04041c6646c045ffe45845
<ide><path>spacy/cli/package.py <ide> def package( <ide> meta = generate_meta(meta, msg) <ide> errors = validate(ModelMetaSchema, meta) <ide> if errors: <del> msg.fail("Invalid model meta.json", "\n".join(errors), exits=1) <add> msg.fail("Invalid model meta.json") <add> print("\n".j...
1
PHP
PHP
add methods to get/set default strategy class
8db3384ae4a14721716d60cb6946c6f9836a1dbf
<ide><path>src/ORM/Behavior/TranslateBehavior.php <ide> class TranslateBehavior extends Behavior implements PropertyMarshalInterface <ide> 'getLocale' => 'getLocale', <ide> 'translationField' => 'translationField', <ide> ], <del> 'strategyClass' => EavStrategy::class, <ide> ...
2
Text
Text
remove duplicate period
6ee8e929c30ff7c95bab65bee6e9ce503c3c3331
<ide><path>guides/source/asset_pipeline.md <ide> The first feature of the pipeline is to concatenate assets. This is important in <ide> <ide> Rails 2.x introduced the ability to concatenate JavaScript and CSS assets by placing `:cache => true` at the end of the `javascript_include_tag` and `stylesheet_link_tag` method...
1
Ruby
Ruby
keep rescue template paths in an array
5c6e9d48e18fe72ca0cf0f3594494c0f34ffefd3
<ide><path>actionpack/lib/action_dispatch/middleware/debug_view.rb <ide> <ide> module ActionDispatch <ide> class DebugView < ActionView::Base # :nodoc: <del> RESCUES_TEMPLATE_PATH = File.expand_path("templates", __dir__) <add> RESCUES_TEMPLATE_PATHS = [File.expand_path("templates", __dir__)] <ide> <ide> d...
3
PHP
PHP
fix incorrect @return value in docblock
b877dadfe9d892244a7418f4ea446e1dd4dbc8c0
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function create(array $attributes, array $joining = [], $touch = true) <ide> * <ide> * @param array $records <ide> * @param array $joinings <del> * @return \Illuminate\Database\Eloquent\Model <add> * @return ...
1
Javascript
Javascript
fix broken layout caused by unclosed `
17ddba873b49d9329f09b67bb52088e40cb9979a
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}. <ide> * Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}. <ide> * <del> * - **`defaults.jsonpCallbackParam`** - `{...
1
Text
Text
add notes on cosmetic patches
6143de0b927089f48b58fa6a8c924e658c9373fc
<ide><path>CONTRIBUTING.md <ide> <ide> * Before submitting, please read the [Contributing to Ruby on Rails](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html) guide to know more about coding conventions and benchmarks. <ide> <add>#### **Did you fix whitespace, format code, or make a purely cosmetic...
1
Python
Python
add part to tag map
f112e7754e4f4368f0a82c3aae3a58f5300176f0
<ide><path>spacy/language_data/tag_map.py <ide> "X": {POS: X}, <ide> "CONJ": {POS: CONJ}, <ide> "ADJ": {POS: ADJ}, <del> "VERB": {POS: VERB} <add> "VERB": {POS: VERB}, <add> "PART": {POS: PART} <ide> }
1
Text
Text
add import in docs. [ci skip]
febaa4db00c322d169a5e60ecd22c909e8a836c2
<ide><path>docs/api-guide/throttling.md <ide> If the `.wait()` method is implemented and the request is throttled, then a `Ret <ide> <ide> The following is an example of a rate throttle, that will randomly throttle 1 in every 10 requests. <ide> <add> import random <add> <ide> class RandomRateThrottle(throttlin...
1
Mixed
Python
handle binary or unicode with jsonfield
265ec8ac62ef4b2b8ee74525e7c263bf559a2355
<ide><path>docs/api-guide/fields.md <ide> You can also use the declarative style, as with `ListField`. For example: <ide> <ide> ## JSONField <ide> <del>A field class that validates that the incoming data structure consists of valid JSON primitives. In its alternate binary mode, it will represent and validate JSON enc...
2
Javascript
Javascript
fix failing unit tests in tap gesture recognizer
274a545562554f631eb85a99874a26f433d97f3a
<ide><path>packages/sproutcore-touch/lib/gesture_recognizers/tap.js <ide> SC.TapGestureRecognizer = SC.Gesture.extend({ <ide> didBegin: function() { <ide> this._initialLocation = this.centerPointForTouches(this._touches); <ide> <del> this._waitingForMoreTouches = true; <del> this._waitingInterval = window....
3
PHP
PHP
tweak some wording
6b939c477c34205a177e8a9d21fa82a1038472d6
<ide><path>app/Http/Controllers/Auth/AuthController.php <ide> class AuthController extends Controller { <ide> use AuthenticatesAndRegistersUsers; <ide> <ide> /** <del> * Where to redirect after registration or login. <add> * Redirect path after registration or login. <ide> * <ide> * @var string <ide> */ <ide...
2
PHP
PHP
add missing parameter to tomail
4df539c76353ff1931b0441f0d8f3f07bbf7b342
<ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php <ide> public function via($notifiable) <ide> /** <ide> * Build the mail representation of the notification. <ide> * <add> * @param mixed $notifiable <ide> * @return \Illuminate\Notifications\Messages\MailMessage <ide> */ <del> ...
1
Ruby
Ruby
call public methods rather than class_eval'ing
28f6b895c6eccd4347eb636c99ec4d54a026cabe
<ide><path>activemodel/lib/active_model/naming.rb <ide> def _singularize(string, replacement='_') <ide> # provided method below, or rolling your own is required. <ide> module Naming <ide> def self.extended(base) #:nodoc: <del> base.class_eval do <del> remove_possible_method(:model_name) <del> ...
1
Javascript
Javascript
stop multiple prettier runs on large commits
0a5c7cbfcfb27d056ccebabe862c69181279d3a9
<ide><path>.lintstagedrc.js <ide> const { ESLint } = require('eslint'); <ide> <ide> const cli = new ESLint(); <ide> <add>// This lets us abort if we've already run a stage for all files <add>const completedStages = new Set(); <add> <ide> // if a lot of files are changed, it's faster to run prettier/eslint on the <ide...
1
Text
Text
remove references to spaderun from readme
cdace7e3957374f2dcb02e89eebf05dacfa1b66a
<ide><path>README.md <ide> example, to run all of the unit tests together: <ide> <ide> # Adding New Packages <ide> <del>Be sure you include the new package as a dependency in the global `package.json` and run `spaderun update`. <del> <del>Note that unless you are adding new __tests__ or adding a new package you shoul...
1
Text
Text
replace github -> github (arabic)
504728857ffb194e04c0a720001a500f0583cc35
<ide><path>guide/arabic/electron/index.md <ide> localeTitle: الإلكترون <ide> * [Skype](https://www.skype.com/) (تطبيق الدردشة المرئية الشهير من Microsoft) <ide> * [سلاك](https://slack.com/) (تطبيق مراسلة للفرق) <ide> * [Discord](https://discordapp.com) (تطبيق مراسلة مشهور للاعبين) <del>* [سطح مكتب Github](https...
24
PHP
PHP
apply fixes from styleci
0d18dc3d41d3a3dc48f5bceabed1dbe45d9597ac
<ide><path>tests/Integration/Console/ConsoleApplicationTest.php <ide> public function test_artisan_call_using_command_class() <ide> $this->assertEquals($exitCode, 0); <ide> } <ide> <del> /** <add> /* <ide> * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException <ide> ...
1
Javascript
Javascript
flatten text children before rendering
0934ab948ded53f0509ed1914fbcb834e3cf48d1
<ide><path>src/renderers/art/ReactARTFiber.js <ide> function applyShapeProps(instance, props, prevProps = {}) { <ide> function applyTextProps(instance, props, prevProps = {}) { <ide> applyRenderableNodeProps(instance, props, prevProps); <ide> <del> const string = childrenAsString(props.children); <add> const strin...
1
Python
Python
clarify elasticsearchtaskhandler docstring
d8c4449a91b9b93691c03e1af45bdedc5e23fd5e
<ide><path>airflow/providers/elasticsearch/log/es_task_handler.py <ide> class ElasticsearchTaskHandler(FileTaskHandler, ExternalLoggingMixin, LoggingMixin): <ide> """ <ide> ElasticsearchTaskHandler is a python log handler that <del> reads logs from Elasticsearch. Note logs are not directly <del> indexed i...
1
Python
Python
set version to v2.1.0a7.dev9
22923b9cb1ffca740218c5f9f2b0d922bed062c7
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy-nightly" <del>__version__ = "2.1.0a7" <add>__version__ = "2.1.0a7.dev9" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI" <ide>...
1
Go
Go
enforce login for push/pull
e02f7912bcc07dbddd47bcf0106ca881fd768559
<ide><path>commands.go <ide> func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string <ide> if err := cmd.Parse(args); err != nil { <ide> return nil <ide> } <del> if cmd.NArg() == 0 { <add> if cmd.NArg() == 0 || *user == "" { <ide> cmd.Usage() <ide> return nil <ide> } <ide> <add> if sr...
1
Ruby
Ruby
add unit tests
a06bd4e45df2a98a05e6752d7a662807176b3a77
<ide><path>Library/Homebrew/test/version/parser_spec.rb <add># typed: false <add># frozen_string_literal: true <add> <add>require "version/parser" <add> <add>describe Version::Parser do <add> specify "::new" do <add> expect { described_class.new } <add> .to raise_error("Version::Parser is declared as abstract;...
2
Text
Text
fix distinct example [skip ci]
5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9
<ide><path>README.md <ide> The `OR` operator works like this: <ide> users.where(users[:name].eq('bob').or(users[:age].lt(25))) <ide> ``` <ide> <del>The `AND` operator behaves similarly. The exception is the `DISTINCT` operator, which is not chainable: <add>The `AND` operator behaves similarly. Here is an example of th...
1
Javascript
Javascript
respect the 'readable' flag on sockets
2789323902a745eea16c645e38d9d67b6fcb69a0
<ide><path>lib/net.js <ide> util.inherits(Socket, stream.Duplex); <ide> // so that only the writable side will be cleaned up. <ide> function onSocketFinish() { <ide> debug('onSocketFinish'); <del> if (this._readableState.ended) { <add> if (!this.readable || this._readableState.ended) { <ide> debug('oSF: ended, ...
2
Python
Python
remove unused update_shared argument
dc3a623d0008c1362a2f26369f777b5ceef8958b
<ide><path>spacy/cli/train.py <ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0, <ide> for batch in minibatch(train_docs, size=batch_sizes): <ide> docs, golds = zip(*batch) <ide> nlp.update(docs, golds, sgd=optimizer, <del> ...
1
Ruby
Ruby
add pkgetc method
8e318d81bcbf88d1829cdfba8c390f553c8787a1
<ide><path>Library/Homebrew/formula.rb <ide> def etc <ide> (HOMEBREW_PREFIX/"etc").extend(InstallRenamed) <ide> end <ide> <add> # A subdirectory of `etc` with the formula name suffixed. <add> # e.g. `$HOMEBREW_PREFIX/etc/openssl@1.1` <add> # Anything using `pkgetc.install` will not overwrite other files on <a...
1
Go
Go
fix the 'repositories' file
ac392bc0d775455f71da3c71956f9f6ae7a87f6d
<ide><path>server/server.go <ide> func (srv *Server) ImageExport(job *engine.Job) engine.Status { <ide> <ide> utils.Debugf("Serializing %s", name) <ide> <add> rootRepoMap := map[string]graph.Repository{} <ide> rootRepo, err := srv.daemon.Repositories().Get(name) <ide> if err != nil { <ide> return job.Error(err) ...
1
Python
Python
set the so_reuseaddr option on the socket
9d345f583631709cfdd38b77d2947ec74d83a562
<ide><path>celery/contrib/rdb.py <ide> def get_avail_port(self, host, port, search_limit=100, skew=+0): <ide> this_port = None <ide> for i in range(search_limit): <ide> _sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) <add> _sock.setsockopt(socket.SOL_SOCKET, socket.SO_RE...
1
Text
Text
add note about running the tests
6f509917f5af51fb50a297f7dfdfe30954979ee4
<ide><path>README.md <ide> Next, from the root directory of this repository, install D3's dependencies: <ide> <ide> You can see the list of dependencies in package.json. NPM will install the <ide> packages in the node_modules directory. <add> <add>To run the tests, use: <add> <add> make test
1