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
Python
Python
make numpy/f2py/crackfortran docstring read better
cabc07e185a0ffad5f8055760b385aa5cca85896
<ide><path>numpy/f2py/crackfortran.py <ide> #!/usr/bin/env python <ide> """ <add>crackfortran --- read fortran (77,90) code and extract declaration information. <add> <add>Copyright 1999-2004 Pearu Peterson all rights reserved, <add>Pearu Peterson <pearu@ioc.ee> <add>Permission to use, modify, and distribute this softw...
1
Python
Python
remove unused model_dir option
c031c677ccfcf0c425c4ad838ddf1f795add9b5d
<ide><path>examples/keras_parikh_entailment/__main__.py <ide> import pickle <ide> <ide> <del>def train(model_dir, train_loc, dev_loc, shape, settings): <add>def train(train_loc, dev_loc, shape, settings): <ide> train_texts1, train_texts2, train_labels = read_snli(train_loc) <ide> dev_texts1, dev_texts2, d...
1
Ruby
Ruby
use quiet_system to silence some useless warnings
581e1b2c7eef68a25f73f95a6bcc50d6fa22af68
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def ensure_writable <ide> end <ide> <ide> def install_info <del> system '/usr/bin/install-info', '--quiet', self.to_s, (self.dirname+'dir').to_s <add> quiet_system "/usr/bin/install-info", "--quiet", to_s, "#{dirname}/dir" <ide> end <ide> <ide> def un...
1
Javascript
Javascript
replace string concatenation with template
1dba1620bb43a6479207d57c904ce80a6c10a43d
<ide><path>test/fixtures/cluster-preload-test.js <ide> const cluster = require('cluster'); <ide> if (cluster.isMaster) { <ide> cluster.fork(); // one child <ide> cluster.on('exit', function(worker, code, signal) { <del> console.log('worker terminated with code ' + code); <add> console.log(`worker terminated w...
1
Javascript
Javascript
remove unnecessary param
e41c0f0485bd5cadc55c279a39fd422c0c74399d
<ide><path>lib/IgnorePlugin.js <ide> class IgnorePlugin { <ide> * Not that if "contextRegExp" is given, both the "resourceRegExp" <ide> * and "contextRegExp" have to match. <ide> */ <del> checkResult(result, callback) { <add> checkResult(result) { <ide> if(!result) { <ide> return true; <ide> }
1
Python
Python
use new file paths
6a3d9ed9476a80d62d78590c567c1d77439188d9
<ide><path>libcloud/test/backup/test_dimensiondata.py <ide> def _oec_0_9_myaccount_NOJOB(self, method, url, body, headers): <ide> <ide> def _caas_2_2_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_server_e75ead52_692f_4314_8725_c8a4f4d13a87(self, method, url, body, headers): <ide> body = self.fixtures.load( <...
3
PHP
PHP
expand docs for marshalling methods
1cc4b06db0cb1f31c8719bbb48ed05134e621349
<ide><path>Cake/ORM/Table.php <ide> public function marshaller($safe = false) { <ide> * on the primary key data existing in the database when the entity <ide> * is saved. Until the entity is saved, it will be a detached record. <ide> * <add> * By default all the associations on this table will be hydrated. You can <...
1
Java
Java
add s/c retryuntil + marbles
0ed3572c8961dfdfa7dc73dd0419b5f789d1d1ad
<ide><path>src/main/java/io/reactivex/rxjava3/core/Completable.java <ide> public final Completable retry(@NonNull Predicate<? super Throwable> predicate) <ide> return fromPublisher(toFlowable().retry(predicate)); <ide> } <ide> <add> /** <add> * Retries until the given stop function returns {@code tr...
6
Text
Text
fix typos, change 'ctrk' to 'ctrl'
3df4ee421c4679e0d11dc6f6a843c6428b046078
<ide><path>CHANGELOG.md <ide> If you rely on the $modelValue validation, you can overwrite the `min`/`max` val <ide> link: function(scope, element, attrs, ctrl) { <ide> var maxValidator = ctrl.$validators.max; <ide> <del> ctrk.$validators.max = function(modelValue, viewValue) { <add> ctrl.$validators.max =...
1
Python
Python
remove unnecessary bytes() calls
b37aa284eb4aee17f5c6659e7533427ffcc5a2c8
<ide><path>rest_framework/renderers.py <ide> def render(self, data, accepted_media_type=None, renderer_context=None): <ide> Render `data` into JSON, returning a bytestring. <ide> """ <ide> if data is None: <del> return bytes() <add> return b'' <ide> <ide> renderer_...
3
Java
Java
fix behavior of blockingobservable.last
997546f4b5906cbea94dbd5c9fb05408724c61f3
<ide><path>rxjava-core/src/main/java/rx/observables/BlockingObservable.java <ide> public Iterator<T> getIterator() { <ide> * <img width="640" src="https://github.com/Netflix/RxJava/wiki/images/rx-operators/B.last.png"> <ide> * <ide> * @return the last item emitted by the source {@link Observable} <add> ...
2
Javascript
Javascript
update user challenge map on challenge complete
8be0d194a5a4f0e00b3639f7e98aea80dfe9dee9
<ide><path>common/app/redux/actions.js <ide> export const updateUserLang = createAction( <ide> types.updateUserLang, <ide> (username, lang) => ({ username, lang }) <ide> ); <add> <add>// updateUserChallenge( <add>// username: String, <add>// challengeInfo: Object <add>// ) => Action <add>export const updateUser...
6
Text
Text
update next doc path
9c8fdafecc1f061dd35124f93fc63fe3c2da1f4b
<ide><path>docs/Testing.md <ide> title: Testing <ide> layout: docs <ide> category: Guides <ide> permalink: docs/testing.html <del>next: activityindicatorios <add>next: embeded-app <ide> --- <ide> <ide> ## Running Tests and Contributing
1
Javascript
Javascript
simplify size calculation
63f0930161f94c46d1ff5932ed1d09d4ed35d4f3
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> this.modules.forEach(m => m.updateHash(hash)); <ide> } <ide> <del> size(options) { <del> const CHUNK_OVERHEAD = typeof options.chunkOverhead === "number" ? options.chunkOverhead : 10000; <del> const ENTRY_CHUNK_MULTIPLICATOR = options.entryChunkMultiplicator || 10...
1
Python
Python
create fractionalknapsack.py (#438)
94324e91b439fb24704707f3ed20ff2e607acee4
<ide><path>dynamic_programming/FractionalKnapsack.py <add>from itertools import accumulate <add>from bisect import bisect <add> <add>def fracKnapsack(vl, wt, W, n): <add> <add> r = list(sorted(zip(vl,wt), key=lambda x:x[0]/x[1],reverse=True)) <add> vl , wt = [i[0] for i in r],[i[1] for i in r] <add> acc=list(a...
1
Javascript
Javascript
remove deprecation messages
a5ae7f57f179df2f9223cca6cd3706b110d6e5be
<ide><path>Libraries/react-native/react-native-implementation.js <ide> module.exports = { <ide> get ViewPropTypes() { <ide> return require('DeprecatedViewPropTypes'); <ide> }, <del> <del> // Deprecated <del> get BackAndroid() { <del> invariant( <del> false, <del> 'BackAndroid is deprecated and ha...
1
Javascript
Javascript
remove instrumentation and nesting warning
4073dc79d7534e58e7a13d1f05c184b66b5f6aa7
<ide><path>src/renderers/dom/fiber/ReactDOMFiberComponent.js <ide> var ReactDOMFiberInput = require('ReactDOMFiberInput'); <ide> var ReactDOMFiberOption = require('ReactDOMFiberOption'); <ide> var ReactDOMFiberSelect = require('ReactDOMFiberSelect'); <ide> var ReactDOMFiberTextarea = require('ReactDOMFiberTextarea'); <...
1
Javascript
Javascript
cover image redirect to undefined
797dca5913446c15ea7787f05ec3cf8b27edb845
<ide><path>examples/cms-strapi/components/cover-image.js <ide> export default function CoverImage({ title, url, slug }) { <ide> ) <ide> return ( <ide> <div className="sm:mx-0"> <del> <Link href={`/posts/${slug}`}> <del> {slug ? <a aria-label={title}>{image}</a> : image} <del> </Link> <add> ...
1
Ruby
Ruby
replace map.flatten with flat_map in actionpack
817fe31196dd59ee31f71ef1740122b6759cf16d
<ide><path>actionpack/lib/action_dispatch/journey/gtg/builder.rb <ide> def transition_table <ide> marked[s] = true # mark s <ide> <ide> s.group_by { |state| symbol(state) }.each do |sym, ps| <del> u = ps.map { |l| followpos(l) }.flatten <add> u = ps.flat_map { |l| foll...
7
Text
Text
fix the link for squashing-instructions
720f13d8d588156dc85229af3c3820c5bf0f1362
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> Now, please open a Pull Request (on your github repo page) for new and updated b <ide> <ide> * One formula per commit; one commit per formula <ide> * Keep merge commits out of the request <del>* If you have any merge or mixup commits, please [squash](http:/...
1
Javascript
Javascript
use an ellipsis character instead
904619509e9ea2de60fccafe19b5d3aa1634d107
<ide><path>test/integration/preload-viewport/pages/invalid-prefetch.js <ide> import Link from 'next/link' <ide> export default () => ( <ide> <> <ide> <Link href="/something-invalid-oops"> <del> <a id="invalid-link">I'm broken...</a> <add> <a id="invalid-link">I'm broken…</a> <ide> </Link> <ide> </...
1
Javascript
Javascript
remove tests relying on !process.features.uv
9631e29933c3ac8a568ee8af6f0500e381d88d23
<ide><path>test/internet/test-dns.js <ide> var assert = require('assert'), <ide> net = require('net_uv'), <ide> isIP = net.isIP, <ide> isIPv4 = net.isIPv4, <del> isIPv6 = net.isIPv6, <del> uv = process.features.uv; <add> isIPv6 = net.isIPv6; <ide> <ide> var expected = 0, <ide> completed = 0, <...
3
Ruby
Ruby
reset ld when switching compilers
5dc15272d9fa925bd801e4b54b8fe91040ae2b21
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def O1 <ide> <ide> def gcc_4_0_1 <ide> # we don't use xcrun because gcc 4.0 has not been provided since Xcode 4 <del> self['CC'] = "#{MacOS.dev_tools_path}/gcc-4.0" <add> self['CC'] = "#{MacOS.dev_tools_path}/gcc-4.0" <add> self['LD'] = self['CC'] <ide> ...
2
Python
Python
add test for public role permissions.
a52e77d0b41edd775d962111d419b1d2a44f5c2d
<ide><path>tests/www/test_security.py <ide> def test_update_and_verify_permission_role(self): <ide> <ide> assert role_perms_len == new_role_perms_len <ide> <add> def test_verify_public_role_has_no_permissions(self): <add> with self.app.app_context(): <add> public = self.appbuilder.sm.find...
1
Javascript
Javascript
remove downloadmanager dependency
4c6ca1c78f1f0e5ebf5cc06f14cd173f19d0edeb
<ide><path>web/pdf_attachment_view.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <del>/* globals DownloadManager, getFileName */ <add>/* globals getFileName */ <ide> <ide> 'use strict'; <ide> <ide> var PDFAttachmentView = (function PD...
2
Text
Text
fix misleading `console.log` output example
54d70a0f532f39e00720928194876c0d4166c9de
<ide><path>docs/api-reference/edge-runtime.md <ide> Running `console.log` on `process.env` **will not** show all your Environment Va <ide> console.log(process.env) <ide> // { NEXT_RUNTIME: 'edge' } <ide> console.log(process.env.TEST_VARIABLE) <del>// { NEXT_RUNTIME: 'edge', TEST_VARIABLE: 'value' } <add>// value <ide> ...
1
Python
Python
add specific notebook progresscalback
62b5622e6b6477ca345d1e774a99c4a9f8bc98bc
<ide><path>src/transformers/file_utils.py <ide> except (AttributeError, ImportError): <ide> _has_sklearn = False <ide> <add>try: <add> # Test copied from tqdm.autonotebook: https://github.com/tqdm/tqdm/blob/master/tqdm/autonotebook.py <add> get_ipython = sys.modules["IPython"].get_ipython <add> if "IPKern...
3
Ruby
Ruby
add example for unknownattributeerror
25f829e43fbae0c29a3f2e54f5f0c7ebd7c9b46e
<ide><path>activemodel/lib/active_model/errors.rb <ide> class StrictValidationFailed < StandardError <ide> end <ide> <ide> # Raised when unknown attributes are supplied via mass assignment. <add> # <add> # class Person <add> # include ActiveModel::AttributeAssignment <add> # include ActiveModel::Vali...
1
Javascript
Javascript
add coverage for spawnsync() killsignal
01db04bd304c39f222cf71e5b16e2e26d1bdf8d5
<ide><path>test/parallel/test-child-process-spawnsync-kill-signal.js <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const cp = require('child_process'); <add> <add>if (process.argv[2] === 'child') { <add> setInterval(() => {}, 1000); <add>} else { <add> const ...
1
Javascript
Javascript
add test coverage of helper unit test
cb8dc6c82bde289f4339d65c0c0a53ddf1a233ca
<ide><path>node-tests/blueprints/helper-test.js <ide> describe('Acceptance: ember generate and destroy helper', function() { <ide> })); <ide> }); <ide> <add> it('helper foo/bar-baz unit', function() { <add> var args = ['helper', '--test-type=unit', 'foo/bar-baz']; <add> <add> return emberNew() <add> ...
2
Text
Text
clarify definition of "symmetric difference"
38ef6d68e5fad64519f74922bdcec7a2fd236ce8
<ide><path>curriculum/challenges/english/08-coding-interview-prep/algorithms/find-the-symmetric-difference.english.md <ide> forumTopicId: 301611 <ide> <ide> ## Description <ide> <section id='description'> <del>Create a function that takes two or more arrays and returns an array of the <dfn>symmetric difference</dfn> (...
1
Java
Java
fix dispatch of onlayout event for first render
844e11967d9292bd5cfe423d0fd57e34388f2337
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcher.java <ide> public void dispatchEvent(Event event) { <ide> for (EventDispatcherListener listener : mListeners) { <ide> listener.onEventDispatch(event); <ide> } <del> <add> <ide> synchronized (mEventsStagingLoc...
1
Javascript
Javascript
remove old process list
09758fa71385f6de75efa172785ff2af1b4906f9
<ide><path>glances/outputs/static/js/services/plugins/processlist.js <del>glancesApp.service('GlancesPluginProcessList', function($filter, GlancesPlugin) { <del> var _pluginName = "processlist"; <del> var _maxProcessesToDisplay = undefined; <del> this.processes = []; <del> this.ioReadWritePresent = false; <...
1
Text
Text
update new maintainer checklist
ac6b4dbe6e6921f6cb33fbbd87d4f39416a6af90
<ide><path>docs/New-Maintainer-Checklist.md <ide> contribute to Homebrew, but we will ask you to step down as a maintainer. <ide> <ide> A few requests: <ide> <del>- Please make pull requests on any changes to Homebrew/brew code or any <del> non-trivial (e.g. not a test or audit improvement or version bump) changes <...
1
Javascript
Javascript
freeze more intrinsics
7264dbd038c90ca5524974d7d4705d1d4b692e15
<ide><path>lib/internal/freeze_intrinsics.js <ide> 'use strict'; <ide> <ide> const { <add> AggregateError, <add> AggregateErrorPrototype, <ide> Array, <ide> ArrayBuffer, <ide> ArrayBufferPrototype, <add> ArrayIteratorPrototype, <ide> ArrayPrototype, <ide> ArrayPrototypeForEach, <ide> ArrayPrototypePush,...
2
Java
Java
rewrite concurrentlrucache implementation
c470262c8ea733fd0846a50232599715ec2d2b83
<ide><path>spring-core/src/jmh/java/org/springframework/util/ConcurrentLruCacheBenchmark.java <add>/* <add> * Copyright 2002-2022 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License. <add>...
4
Go
Go
fix minor linting issues
417eac47a093369a6a7db7a65570de7c5187eb8e
<ide><path>integration-cli/docker_cli_external_volume_driver_test.go <ide> func newVolumePlugin(c *testing.T, name string) *volumePlugin { <ide> <ide> v.Mountpoint = hostVolumePath(pr.Name) <ide> send(w, map[string]vol{"Volume": v}) <del> return <ide> }) <ide> <ide> mux.HandleFunc("/VolumeDriver.Remove", func(...
2
Ruby
Ruby
remove more flaky tests."
af2c57dbeb9143262c7a95618793e15b91ff60c1
<ide><path>Library/Homebrew/test/cask/cmd/upgrade_spec.rb <ide> end <ide> end <ide> <add> context "dry run upgrade" do <add> let(:installed) { <add> [ <add> "outdated/local-caffeine", <add> "outdated/local-transmission", <add> "outdated/auto-updates", <add> "outdated/version-...
1
Python
Python
add function create_default_optimizer to spacy._ml
2eb11d60f2640f20ed4c7df901194961958890fb
<ide><path>spacy/_ml.py <ide> def cosine(vec1, vec2): <ide> return vec1.dot(vec2) / (norm1 * norm2) <ide> <ide> <add>def create_default_optimizer(ops, **cfg): <add> learn_rate = util.env_opt('learn_rate', 0.001) <add> beta1 = util.env_opt('optimizer_B1', 0.9) <add> beta2 = util.env_opt('optimizer_B2'...
1
Ruby
Ruby
fix code style
ecc8f283cfc1b002b5141c527a827e74b770f2f0
<ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb <ide> def render(status, body, format) <ide> def log_error(request, wrapper) <ide> logger = logger(request) <ide> return unless logger <add> <ide> exception = wrapper.exception <ide> <ide> trace = wrapper.application_t...
1
Mixed
Text
fix typos [ci skip]
53331b478d32e42a8155414379b2edbe4277a3a4
<ide><path>activejob/CHANGELOG.md <ide> ``` <ide> <ide> A new message will be logged in case a job couldn't be enqueued, either because the callback chain was halted or <del> because an exception happened during enqueing. (i.e. Redis is down when you try to enqueue your job) <add> because an exception ha...
2
Javascript
Javascript
calculate correct checksum for the field header
0a7531cb33c465e53532be4af039af24e5a37106
<ide><path>fonts.js <ide> var Font = (function () { <ide> var length = data.length; <ide> <ide> // checksum <del> var checksum = tag.charCodeAt(0) + <del> tag.charCodeAt(1) + <del> tag.charCodeAt(2) + <del> tag.charCodeAt(3) + <del> off...
1
Javascript
Javascript
add dom fixture for unmasking passwords
dbeb37fe69e3de7bee43695531d58f761c5633a4
<ide><path>fixtures/dom/src/components/Header.js <ide> const Header = React.createClass({ <ide> <option value="/range-inputs">Range Inputs</option> <ide> <option value="/text-inputs">Text Inputs</option> <ide> <option value="/number-inputs">Number Input</option> <add> ...
4
Python
Python
fix isort errors
4c8efed81cb9f1058f8c710833b84adf12bcaac9
<ide><path>celery/bin/migrate.py <ide> <ide> from celery.bin.base import Command <ide> <del> <ide> MIGRATE_PROGRESS_FMT = """\ <ide> Migrating task {state.count}/{state.strtotal}: \ <ide> {body[task]}[{body[id]}]\ <ide><path>celery/utils/deprecated.py <ide> def _inner(fun): <ide> <ide> @wraps(fun) <ide> ...
3
Javascript
Javascript
change bindingcontext to context
4df1d40e5b650fa20c598b36f5da14e7ab2aa5e9
<ide><path>packages/ember-handlebars/lib/helpers/view.js <ide> EmberHandlebars.ViewHelper = Ember.Object.create({ <ide> // <ide> // is converted to this: <ide> // <del> // classNameBinding="bindingContext.isGreen:green" <add> // classNameBinding="context.isGreen:g...
2
Text
Text
update devops docs
506f250599969ad81bc321d4a3bf64ad39ffb9fe
<ide><path>docs/devops.md <ide> Currently, only members on the developer team can push to the production branche <ide> <ide> And that's it, this will automatically trigger a build on the build pipeline for the `production-staging` branch. Typically this takes ~20-25 minutes for the all the applications. Once the build...
1
Ruby
Ruby
simplify auxiliary command files directory finding
993c0696e61f3449c97e31c54088ee7578953307
<ide><path>railties/lib/rails/command/base.rb <ide> def usage_path <ide> # For a `Rails::Command::TestCommand` placed in `rails/command/test_command.rb` <ide> # would return `rails/test`. <ide> def default_command_root <del> path = File.expand_path(File.join(base_name, command_name), __...
1
Javascript
Javascript
update the title of the sign in view
3a2f53fdb73188147ba320426f1596858eb839d8
<ide><path>server/boot/user.js <ide> module.exports = function(app) { <ide> return res.redirect('/'); <ide> } <ide> return res.render('account/signin', { <del> title: 'Sign in to Free Code Camp using a Social Media Account' <add> title: 'Sign in to Free Code Camp' <ide> }); <ide> } <ide>
1
Python
Python
remove dup lines
ef997dfa2feb16f3933acb9692e20956aa6f2a62
<ide><path>libcloud/compute/drivers/openstack.py <ide> def ex_create_subnet(self, name, network, cidr, ip_version=4, **kwargs): <ide> :param ip_version: ip_version of subnet which should be used <ide> :type ip_version: ``int`` <ide> <del> :param ip_version: ip_version of subnet which should be u...
1
Javascript
Javascript
remove www builds of fetch
2e7cc949ae7c7ed5a583d15b4ea32c68c7730dab
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> <ide> /******* React Fetch Browser (experimental, new) *******/ <ide> { <del> bundleTypes: [ <del> NODE_DEV, <del> NODE_PROD, <del> NODE_PROFILING, <del> FB_WWW_DEV, <del> FB_WWW_PROD, <del> FB_WWW_PROFILING, <del> ...
1
Javascript
Javascript
prevent unwanted opening of the soft keyboard
0bbd20f255b2954b5c41617fe718cf6eca36a972
<ide><path>src/ngMobile/directive/ngClick.js <ide> ngMobile.directive('ngClick', ['$parse', '$timeout', '$rootElement', <ide> // If we didn't find an allowable region, bust the click. <ide> event.stopPropagation(); <ide> event.preventDefault(); <add> <add> // Blur focused form elements <add> event.tar...
2
Javascript
Javascript
fix whitespace in util.js
6789c921f52b5be713a9fb84f6ef6203c8c9b649
<ide><path>src/js/util.js <ide> vjs.util = {}; <ide> <ide> /** <del> * Merge two options objects, <del> * recursively merging any plain object properties as well. <del> * Previously `deepMerge` <del> * <add> * Merge two options objects, recursively merging any plain object properties as <add> * well. Previously `de...
1
PHP
PHP
fix cs error
35a24369e9b5d357a3d83ac0d57ffa9b3e7a0994
<ide><path>src/Event/EventManager.php <ide> public function __debugInfo() <ide> $properties['_listeners'][$key] = $listenerCount . ' listener(s)'; <ide> } <ide> if ($this->_eventList) { <del> for ($i = 0; $i < count($this->_eventList); $i++) { <add> $count = count($this...
1
PHP
PHP
fix wrong indention
8e211ead462c96929fd31392a000c417840955bc
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> <ide> class Builder { <ide> <del> /** <del> * The database connection instance. <del> * <del> * @var \Illuminate\Database\Connection <del> */ <del> protected $connection; <del> <del> /** <del> * The schema grammar instance. <del>...
1
Javascript
Javascript
upgrade newwatchingplugin to es6
938072f0ebd6943920440510abb1071eea9010e6
<ide><path>lib/NewWatchingPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>function NewWatchingPlugin() {} <del>module.exports = NewWatchingPlugin; <add>'use strict'; <add> <add>class NewWatchingPlugin { <add> apply(compiler) { <add> comp...
1
Ruby
Ruby
improve documentation comments for livecheck dsl
05b3518b0cb3dac595531014326858016a622ae2
<ide><path>Library/Homebrew/livecheck.rb <ide> # frozen_string_literal: true <ide> <del># Livecheck can be used to check for newer versions of the software. <del># The livecheck DSL specified in the formula is evaluated the methods <del># of this class, which set the instance variables accordingly. The <del># informat...
1
Python
Python
correct an issue on percpu display
00bd5aad2b5f16f5a70626fc5231707b3bbe33dc
<ide><path>glances/glances.py <ide> def displayCpu(self, cpu, percpu, proclist): <ide> <ide> # Display CPU stats <ide> if screen_y > self.cpu_y + 5 and tag_percpu: <del> # display per-CPU stats when space is available <add> # Display per-CPU <ide> self.term_window.addn...
1
Text
Text
add the text "comparison" to the article
d4b8acfbde34aeb55a938f4a2cc4fb0e1be92c16
<ide><path>client/src/pages/guide/english/python/basic-operators/index.md <ide> Operators are symbols which tells the interpreter to do a specific operation (vi <ide> The different types of operators in Python are listed below: <ide> <ide> 1. Arithmetic Operators <del>2. Relational Operators <add>2. Comparison (Relati...
1
Ruby
Ruby
remove some code dups
69fdfab4871473866a9021b9750d788c8d9964df
<ide><path>actionpack/lib/action_view/helpers/form_options_helper.rb <ide> class InstanceTag #:nodoc: <ide> include FormOptionsHelper <ide> <ide> def to_select_tag(choices, options, html_options) <del> html_options = html_options.stringify_keys <del> add_default_name_and_id(html_options) <del...
1
Ruby
Ruby
allow pluralize_table_names for individual model
6a3b3fba5a173dc8cd308c30426247e93e5fc97e
<ide><path>activerecord/lib/active_record/base.rb <ide> class Base <ide> # Indicates whether table names should be the pluralized versions of the corresponding class names. <ide> # If true, the default table name for a Product class will be +products+. If false, it would just be +product+. <ide> # See table...
2
Text
Text
add an article about redux saga
9ac2f23facd3748e4a0ec6fcd328b93e1fd3acf5
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> * [Getting Started with React, Redux, and Immutable](http://www.theodo.fr/blog/2016/03/getting-started-with-react-redux-and-immutable-a-test-driven-tutorial-part-2/) — A test-driven intr...
1
Javascript
Javascript
add ondidreplaceatomproject api
f2eede833e3121bd1e0e73bb8d8f9d9217ef5b57
<ide><path>src/project.js <ide> class Project extends Model { <ide> replaceAtomProject (newSettings) { <ide> atom.config.resetProjectSettings(newSettings.config) <ide> this.projectFilePath = newSettings.originPath <add> this.emitter.emit('replaced-atom-project', newSettings) <add> } <add> <add> onDidRepl...
1
Python
Python
redo the changes in [7773] in a better way
6dd2b5468fa275d53aa60fdcaff8c28bdc5e9c25
<ide><path>django/db/models/sql/query.py <ide> def add_filter(self, filter_expr, connector=AND, negate=False, trim=False, <ide> # that's harmless. <ide> self.promote_alias(table) <ide> <del> # To save memory and copying time, convert the value from the Python <del> # objec...
4
Text
Text
create overview for python's enumerate function
fe2d44a6ad0f532ef088272e13028094a0d98215
<ide><path>guide/english/python/enumerate/index.md <add>--- <add>title: Python's Enumerate Function <add>--- <add> <add>## Overview <add>`enumerate()` is a built-in function in Python. It is useful for iteration over a list or any other iterable. <add> <add>## Arguments <add>`enumerate()` requires an iterable, and `sta...
1
Javascript
Javascript
move language methods into externs
eec1fc13fe9822a3aee7284b4580029fadc0b6bf
<ide><path>src/js/exports.js <ide> goog.exportProperty(vjs.Player.prototype, 'preload', vjs.Player.prototype.preloa <ide> goog.exportProperty(vjs.Player.prototype, 'remainingTime', vjs.Player.prototype.remainingTime); <ide> goog.exportProperty(vjs.Player.prototype, 'supportsFullScreen', vjs.Player.prototype.supportsFul...
3
Javascript
Javascript
update navigator component doc
4ec53ee8fa2183fdeef52f0cb03c40bd6c56c451
<ide><path>Libraries/CustomComponents/Navigator/Navigator.js <ide> var GESTURE_ACTIONS = [ <ide> ]; <ide> <ide> /** <del> * Use `Navigator` to transition between different scenes in your app. To <del> * accomplish this, provide route objects to the navigator to identify each <del> * scene, and also a `renderScene` fun...
1
Python
Python
add an extra example in runtests.py help test
e372d06eb8b4cf8e156e2a5b177f5bf222b4584a
<ide><path>runtests.py <ide> <ide> $ python runtests.py <ide> $ python runtests.py -s {SAMPLE_SUBMODULE} <add> $ # Run a standalone test function: <ide> $ python runtests.py -t {SAMPLE_TEST} <add> $ # Run a test defined as a method of a TestXXX class: <add> $ python runtests.py -t {SAMPLE_TEST2} <...
1
PHP
PHP
use single quote / no comparison
2e85ba230073c7498bbcbe99db7489fcc1224836
<ide><path>src/TestSuite/Constraint/Email/MailSubjectContains.php <ide> public function matches($other): bool <ide> $subject = $message->getOriginalSubject(); <ide> <ide> $other = preg_quote($other, '/'); <del> if (preg_match("/$other/", $subject) > 0) { <add> preg_match('...
1
PHP
PHP
fix subtle error in regex matching uri scheme
1ff77f2363eb7403bb994bd78f18c0793a3d00c9
<ide><path>lib/Cake/Routing/Router.php <ide> public static function url($url = null, $full = false) { <ide> $output .= Inflector::underscore($params['controller']) . '/' . $url; <ide> } <ide> } <del> $protocol = preg_match('#^[a-z][a-z0-9+-.]*\://#i', $output); <add> $protocol = preg_match('#^[a-z][a-z0-9+\-...
1
Javascript
Javascript
replace hasownproperty() with object.hasown()
0018ee1f687f01d477d6a0f4d4657a1220f27d61
<ide><path>benchmark/common.js <ide> class Benchmark { <ide> this.config = this.queue[0]; <ide> <ide> process.nextTick(() => { <del> if (process.env.hasOwnProperty('NODE_RUN_BENCHMARK_FN')) { <add> if (Object.hasOwn(process.env, 'NODE_RUN_BENCHMARK_FN')) { <ide> fn(this.config); <ide> }...
1
Text
Text
add note that seccomp 2.2.1 or higher is required
6ab52f9f00968e15e8dcae145dbaea04da394d83
<ide><path>docs/security/seccomp.md <ide> feature to restrict your application's access. <ide> This feature is available only if the kernel is configured with `CONFIG_SECCOMP` <ide> enabled. <ide> <add>> **Note**: On Ubuntu 14.04, Debian Wheezy, and Debian Jessie, you must download <add>> the [latest static Docker Lin...
1
Go
Go
add test to detect data races
9080e5a1f7e764a05237e876b20cd1abc2d6ff89
<ide><path>daemon/logger/loggerutils/logfile_race_test.go <add>//go:build race <add>// +build race <add> <add>package loggerutils // import "github.com/docker/docker/daemon/logger/loggerutils" <add> <add>import ( <add> "context" <add> "fmt" <add> "io" <add> "path/filepath" <add> "testing" <add> "time" <add> <add> "gith...
1
Python
Python
replace extra links value
17d3e78e1b4011267e81846b5d496769934a5bcc
<ide><path>airflow/www/views.py <ide> def task_group_to_tree(task_item_or_group, dag, dag_runs, tis, session): <ide> if ti.task_id == task_item_or_group.task_id <ide> ], <ide> 'label': task_item_or_group.label, <del> 'extra_links': [], <add> 'extra_links': t...
1
Python
Python
fix func signature
d9a81fc0c5d8339357a42435009a5be3a190b305
<ide><path>tests/test_trainer.py <ide> def __init__(self, a=0, b=0, double_output=False): <ide> self.double_output = double_output <ide> self.config = None <ide> <del> def forward(self, input_x=None, labels=None, **kwargs): <add> def forward(self, input_x, labels=None, **kwargs): ...
1
Text
Text
add v3.12.0 to changelog
1479f4aa2b101ce94314527fa096eed74cff2126
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del># v3.12.0-beta.1 (June 27, 2019) <add>### v3.12.0 (August 5, 2019) <ide> <add>- [#18159](https://github.com/emberjs/ember.js/pull/18159) [BUGFIX] Update router.js to ensure buildRouteInfoMetadata does not eagerly cache routes in lazy Engines <add>- [#18226](h...
1
PHP
PHP
apply fixes from styleci
6d1da017689c004efece0bde8c3790202c359a31
<ide><path>tests/Routing/RouteRegistrarTest.php <ide> public function testCanRegisterResourceWithMissingOption() <ide> { <ide> $this->router->middleware('resource-middleware') <ide> ->resource('users', RouteRegistrarControllerStub::class) <del> ->missing(function () { return 'missing'...
1
Javascript
Javascript
fix duplicate head tags
3be175b4663da23c08596428f99857fff869a8d8
<ide><path>examples/with-apollo-and-redux/lib/withData.js <ide> import React from 'react' <ide> import PropTypes from 'prop-types' <ide> import { ApolloProvider, getDataFromTree } from 'react-apollo' <add>import Head from 'next/head' <ide> import initApollo from './initApollo' <ide> import initRedux from './initRedux' ...
2
Javascript
Javascript
return stacktrace button in yellow box
8159b2cd2a32f81ef0421386e454fa049cc8c54f
<ide><path>Libraries/ReactNative/YellowBox.js <ide> const WarningInspector = ({ <ide> <View style={styles.inspector}> <ide> <View style={styles.inspectorCount}> <ide> <Text style={styles.inspectorCountText}>{countSentence}</Text> <del> <TouchableHighlight <del> activeOpacity={0.5} <del...
1
Ruby
Ruby
assert correct response body
8ae38dab5251613a7e7f5af5289e524abca20efd
<ide><path>activestorage/test/controllers/disk_controller_test.rb <ide> class ActiveStorage::DiskControllerTest < ActionDispatch::IntegrationTest <ide> blob = create_blob <ide> <ide> get blob.service_url <del> assert_equal "inline; filename=\"hello.txt\"; filename*=UTF-8''hello.txt", @response.headers["Cont...
1
PHP
PHP
add skip for test that fails on sqlserver
f22c80e9ec4964b6d5068c260ceef5af81eab239
<ide><path>lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php <ide> public function testImportOptionsAlternateConnection() { <ide> * @return void <ide> */ <ide> function testImportRecordsNoEscaping() { <add> $db = ConnectionManager::getDataSource('test'); <add> if ($db instanceof Sqlserver) { <add> $thi...
1
Python
Python
set celery_executor to use queue name as exchange
828419ede1330402e79e68451ad0554a4e6342ea
<ide><path>airflow/executors/celery_executor.py <ide> class CeleryConfig(object): <ide> CELERY_RESULT_BACKEND = configuration.get('celery', 'CELERY_RESULT_BACKEND') <ide> CELERYD_CONCURRENCY = configuration.getint('celery', 'CELERYD_CONCURRENCY') <ide> CELERY_DEFAULT_QUEUE = DEFAULT_QUEUE <add> CELERY_DE...
1
PHP
PHP
add assertion for soft deleted models
7b84baa5093e18fe988724bd27e1a58f191e000a
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php <ide> <ide> namespace Illuminate\Foundation\Testing\Concerns; <ide> <add>use Illuminate\Foundation\Testing\Constraints\HasSoftDeletedInDatabase; <ide> use PHPUnit_Framework_Constraint_Not as ReverseConstraint; <ide> use Illuminate\Foundat...
3
Ruby
Ruby
fix broken dylib spacing
93051b27d6886dae6df01544c86df579f21f6410
<ide><path>Library/Homebrew/extend/os/mac/formula_cellar_checks.rb <ide> def check_linkage <ide> return unless checker.broken_dylibs? <ide> output = <<-EOS.undent <ide> #{formula} has broken dynamic library links: <del> #{checker.broken_dylibs.to_a * "\n "} <add> #{checker.broken_dy...
1
Go
Go
handle compressed tars in applylayer
a96a26c62f6333e61134759256db43a7f5946631
<ide><path>archive/archive.go <ide> package archive <ide> import ( <ide> "archive/tar" <ide> "bytes" <add> "compress/gzip" <add> "compress/bzip2" <ide> "fmt" <ide> "github.com/dotcloud/docker/utils" <ide> "io" <ide> func DetectCompression(source []byte) Compression { <ide> return Uncompressed <ide> } <ide> <add>...
2
Python
Python
add type hints for luke in pytorch
6c2f3ed74c9b73eb389bffd0aea9c9358470220b
<ide><path>src/transformers/models/luke/modeling_luke.py <ide> <ide> import math <ide> from dataclasses import dataclass <del>from typing import Optional, Tuple <add>from typing import Optional, Tuple, Union <ide> <ide> import torch <ide> import torch.utils.checkpoint <ide> class LukeModel(LukePreTrainedModel): <ide>...
1
Text
Text
add arabic translation for bash-touch
e1c47c3de88adb02e116749eefc7dd9bbb59af03
<ide><path>guide/arabic/bash/bash-touch/index.md <add>--- <add>title: Bash touch <add>localeTitle: باش touch <add>--- <add> <add>## ايعاز باش: touch (لمس) <add> <add>**تغير تاريخ ووقت الملفات.** <add> <add>``` <add>touch [options] filename <add>``` <add> <add>بإمكان الايعاز انشاء ملف جديد او اذا استخدمنا الايعاز على اي...
1
Mixed
Javascript
undo previous edit when get key code 0x1f
271725a36359003b9a26ad8522688c3a319a750d
<ide><path>doc/api/readline.md <ide> const { createInterface } = require('readline'); <ide> <td>Previous history item</td> <ide> <td></td> <ide> </tr> <add> <tr> <add> <td><kbd>Ctrl</kbd>+<kbd>-</kbd></td> <add> <td>Undo previous change</td> <add> <td>Any keystroke emits key code <code>0x1F</code> w...
3
PHP
PHP
fix url parsing
ffb4034631a3840273b33b7d1031afaf4d1d80e3
<ide><path>application/config/application.php <ide> | <ide> */ <ide> <del> 'profiler' => true, <add> 'profiler' => false, <ide> <ide> /* <ide> |-------------------------------------------------------------------------- <ide><path>laravel/url.php <ide> public static function base() <ide> <ide> $base = 'http://l...
2
Python
Python
return rawresponse instance
5a7204822b5f91bf698fbd564d7c46a611bfff26
<ide><path>libcloud/storage/base.py <ide> def _upload_object(self, object_name, content_type, upload_func, <ide> raise LibcloudError(value='Object upload failed, Perhaps a timeout?', <ide> driver=self) <ide> <del> result_dict = { 'response': response.response, 'data_h...
2
Python
Python
fix spelling of execution.
0a8abbfd64f6be245472808773bbde96bd0fb91f
<ide><path>airflow/executors/kubernetes_executor.py <ide> def clear_not_launched_queued_tasks(self, session=None) -> None: <ide> if pod_list.items: <ide> continue <ide> # Fallback to old style of using execution_date <del> kwargs['label_selector'] = dict_string + ',exe...
1
Ruby
Ruby
add missing option on numbers helper
2ebed7a36e74ab4609d20152a09b69abf7b94397
<ide><path>actionview/lib/action_view/helpers/number_helper.rb <ide> def number_to_percentage(number, options = {}) <ide> # to ","). <ide> # * <tt>:separator</tt> - Sets the separator between the <ide> # fractional and integer digits (defaults to "."). <add> # * <tt>:delimiter_pattern</tt> - ...
1
Javascript
Javascript
fix docs generation
9965642ebc888bf7dbe735200f3bb68fa370c3fa
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> function createAnimatedComponent(Component: any): any { <ide> class AnimatedComponent extends React.Component { <ide> _component: any; <ide> _propsAnimated: AnimatedProps; <add> _setComponentRef: Function; <add> <add> constructor(props: O...
1
Javascript
Javascript
update upgrade command with 0.26 breaking changes
e3bbd300f6eb93c6734976ae6de1219793e1b5ff
<ide><path>local-cli/upgrade/upgrade.js <ide> module.exports = function upgrade(args, config) { <ide> ); <ide> return Promise.resolve(); <ide> } <add> <add> if (semver.satisfies(v, '~0.26.0')) { <add> console.log( <add> chalk.yellow( <add> ...
1
Python
Python
add tests for doc creation
2c118ab3a6b516fae87280dac69cb9c5d7caa5a9
<ide><path>spacy/tests/doc/test_creation.py <add>'''Test Doc sets up tokens correctly.''' <add>from __future__ import unicode_literals <add>import pytest <add> <add>from ...vocab import Vocab <add>from ...tokens.doc import Doc <add>from ...lemmatizerlookup import Lemmatizer <add> <add> <add>@pytest.fixture <add>def lem...
1
Ruby
Ruby
use systemcommand.run instead of custom wrapper
5d606dd0a275446f00f31884ac042572f3a620ad
<ide><path>Library/Homebrew/cask/lib/hbc/caskroom.rb <ide> def migrate_caskroom_from_repo_to_prefix <ide> FileUtils.mv repo_caskroom, Hbc.caskroom <ide> else <ide> opoo "#{Hbc.caskroom.parent} is not writable, sudo is needed to move the Caskroom." <del> command "/bin/mv", repo_caskroom, Hbc...
1
Javascript
Javascript
clarify a test description
d077966ff1ac18262f4615ff1a533db24d4432a7
<ide><path>test/ng/directive/ngOptionsSpec.js <ide> describe('ngOptions', function() { <ide> expect(option.text()).toBe('is blank'); <ide> }); <ide> <del> it('should support option without a value attribute', function() { <add> it('should be ignored when it has no value attribute', function() { <add> ...
1
Javascript
Javascript
add detailed message for assertion failure
2336df1b502d55261baf3ebd6e22c011c619b069
<ide><path>test/addons-napi/test_typedarray/test.js <ide> arrayTypes.forEach((currentType) => { <ide> const theArray = test_typedarray.CreateTypedArray(template, buffer); <ide> <ide> assert.ok(theArray instanceof currentType, <del> 'Type of new array should match that of the template'); <add> ...
1
Ruby
Ruby
fix callbacks on actionpack
af5b12c64c878f08336d38e91cc64137a30fb8da
<ide><path>actionpack/lib/abstract_controller/callbacks.rb <ide> module Callbacks <ide> include ActiveSupport::NewCallbacks <ide> <ide> included do <del> define_callbacks :process_action, "response_body" <add> define_callbacks :process_action, :terminator => "response_body" <ide> end <ide> <ide>...
1
Text
Text
add smap energy to list of companies using airflow
6dc474fc82aa9325081b0c5f2b92c948e2f16f74
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Simply Business](https://www.simplybusiness.com/) [[@simplybusiness](https://github.com/simplybusiness)] <ide> 1. [Skai](https://www.skai.io/) [[@kenshoo](https://github.com/kenshoo)] <ide> 1. [Skyscanner](https://www.skyscanner.net/) [[@s...
1
PHP
PHP
fix failing test, caused by postgres ordering
97f48dcdb35b407d6af86348345ebfd217cd8678
<ide><path>lib/Cake/Test/Case/Model/ModelWriteTest.php <ide> public function testSaveManyTransaction() { <ide> <ide> $result = $TestModel->find('all', array( <ide> 'recursive' => -1, <del> 'fields' => array('author_id', 'title','body','published') <add> 'fields' => array('author_id', 'title','body','published...
1