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
Java
Java
fix slider height in fabric
07fe994e262723b94263c848ca1733071dcd92cc
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java <ide> import com.facebook.react.bridge.ReadableMap; <ide> import com.facebook.react.common.MapBuilder; <ide> import com.facebook.react.uimanager.LayoutShadowNode; <add>import com.facebook.react.uimanager.PixelUtil; <ide> impor...
1
Python
Python
add text preprocessing tests
18d52e634d75074983cba62f51c3fc6737828d97
<ide><path>keras/preprocessing/text.py <ide> def one_hot(text, n, filters=base_filter(), lower=True, split=" "): <ide> <ide> <ide> class Tokenizer(object): <del> def __init__(self, nb_words=None, filters=base_filter(), lower=True, split=" "): <add> def __init__(self, nb_words=None, filters=base_filter(), <add> ...
2
Python
Python
use list(elem) instead of elem.getchildren()
b3fec669b16442b18cf9e894157904aa169b71d3
<ide><path>libcloud/common/durabledns.py <ide> def parse_body_and_error(self): <ide> xml_obj = self.parse_body() <ide> <ide> # pylint: disable=no-member <del> envelop_body = xml_obj.getchildren()[0] <del> method_resp = envelop_body.getchildren()[0] <add> envelop_body = list(xml_obj...
5
Javascript
Javascript
use more es6 syntaxes in the shopping cart example
c4e6c3228e9cb8bd37d12756ec9049acc65007e1
<ide><path>examples/shopping-cart/src/actions/index.js <ide> import shop from '../api/shop' <ide> import * as types from '../constants/ActionTypes' <ide> <del>function receiveProducts(products) { <del> return { <del> type: types.RECEIVE_PRODUCTS, <del> products: products <del> } <del>} <add>const receiveProduc...
16
Text
Text
fix code examples in stream.md
85f7af77eeae1a3b15a1958102450c4fc9e06df8
<ide><path>doc/api/stream.md <ide> for (let i = 0; i < 100; i++) { <ide> } <ide> writer.end('This is the end\n'); <ide> writer.on('finish', () => { <del> console.error('All writes are now complete.'); <add> console.log('All writes are now complete.'); <ide> }); <ide> ``` <ide> <ide> a readable stream, adding this wr...
1
Javascript
Javascript
update isdatasetvisible call
200abc184ba8a9ff1a5ac091e10fd024690392fb
<ide><path>src/scales/scale.time.js <ide> module.exports = function(Chart) { <ide> <ide> helpers.each(this.chart.data.datasets, function(dataset, datasetIndex) { <ide> var momentsForDataset = []; <del> var datasetVisible = helpers.isDatasetVisible(dataset); <add> var datasetVisible = this.chart.isDatasetV...
1
Text
Text
add new links to code structure
7c68f34f7d2c70cdc8f115a2c34b7c507a1f888d
<ide><path>docs/faq/CodeStructure.md <ide> Find the balance between these two extremes, and you will master Redux. <ide> **Articles** <ide> - [Where do I put my business logic in a React/Redux application?](https://medium.com/@jeffbski/where-do-i-put-my-business-logic-in-a-react-redux-application-9253ef91ce1) <ide> - [...
1
PHP
PHP
fix typo in test methods names
e5bc19c54761ff53a8f297088a7b7d482e5b0a6b
<ide><path>tests/Database/DatabaseEloquentBelongsToManyWithDefaultAttributesTest.php <ide> protected function tearDown(): void <ide> m::close(); <ide> } <ide> <del> public function testwithPivotValueMethodSetsWhereConditionsForFetching() <add> public function testWithPivotValueMethodSetsWhereConditio...
1
Javascript
Javascript
fix typo in comment of jquery-bootstrap example
08b6b28902e473ddbbbccfa8a65e83a4f5760e8a
<ide><path>examples/jquery-bootstrap/js/app.js <ide> var BootstrapButton = React.createClass({ <ide> }); <ide> <ide> var BootstrapModal = React.createClass({ <del> // The following two methods are the only places we need to <add> // The following four methods are the only places we need to <ide> // integrate with ...
1
Javascript
Javascript
fix compiler tests
3fdf0029b7c49b012fd6d000bd9e4e54e12d1a22
<ide><path>test/Compiler-caching.test.js <ide> describe("Compiler (caching)", () => { <ide> options = new WebpackOptionsDefaulter().process(options); <ide> options.cache = true; <ide> options.entry = entry; <add> options.optimization.moduleIds = "natural"; <ide> options.optimization.minimize = false; <ide> o...
1
Javascript
Javascript
fix style issue after eslint update
ec8e0ae697d96c417bda0bbe5be9712cf5923b1f
<ide><path>tools/eslint-rules/required-modules.js <ide> module.exports = function(context) { <ide> module.exports.schema = { <ide> 'type': 'array', <ide> 'items': [ <del> { <del> 'enum': [0, 1, 2] <del> } <add> { <add> 'enum': [0, 1, 2] <add> } <ide> ], <ide> 'additionalItems': { <ide> 'type...
1
Go
Go
improve zfs init log message for zfs
27b002f4a02e2d9f6eded9004b82cb81f121264f
<ide><path>daemon/graphdriver/zfs/zfs_linux.go <ide> package zfs <ide> <ide> import ( <del> "fmt" <del> <ide> "github.com/docker/docker/daemon/graphdriver" <ide> "github.com/sirupsen/logrus" <del> "golang.org/x/sys/unix" <ide> ) <ide> <del>func checkRootdirFs(rootdir string) error { <del> var buf unix.Statfs_t <del...
1
Text
Text
update changelog for 2.4/2.5 releases
dd6a1bdbd0a05a06d7e388052c5760c6336b1012
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v2.3.0-beta.3 (December 19, 2015) <del> <add>### 2.5.0-beta.1 <add> <add>- [#12829](https://github.com/emberjs/ember.js/pull/12829) [BUGFIX] Support tagless components in fastboot <add>- [#12575](https://github.com/emberjs/ember.js/pull/12575) Make accepta...
1
Text
Text
explain controller specific assets more thoroughly
86c5cea9f414d34fd92adb064fde5ecc7b40c727
<ide><path>guides/source/asset_pipeline.md <ide> Assets can still be placed in the `public` hierarchy. Any assets under `public` <ide> <ide> In production, Rails precompiles these files to `public/assets` by default. The precompiled copies are then served as static assets by the web server. The files in `app/assets` a...
1
Go
Go
fix network with -b none
3cb14df68c1a59981907fec3bccab80a1d0dda59
<ide><path>daemon/container_linux.go <ide> func getDevicesFromPath(deviceMapping runconfig.DeviceMapping) (devs []*configs. <ide> } <ide> <ide> func populateCommand(c *Container, env []string) error { <del> en := &execdriver.Network{ <del> NamespacePath: c.NetworkSettings.SandboxKey, <del> } <add> var en *execdriver....
3
Text
Text
update advanced node and express text
b81dea1e827a290bd035c9f5f44e1b195d0098ab
<ide><path>curriculum/challenges/english/06-quality-assurance/advanced-node-and-express/authentication-strategies.md <ide> dashedName: authentication-strategies <ide> <ide> A strategy is a way of authenticating a user. You can use a strategy for allowing users to authenticate based on locally saved information (if you...
8
Text
Text
add steps to contibuting.md
fbdd0ab71873374955e86fae859f882916c09b94
<ide><path>CONTRIBUTING.md <ide> <ide> We want to make contributing to this project as easy and transparent as <ide> possible. Hopefully this document makes the process for contributing clear and <del>answers any questions you may have. If not, feel free to open an [Issue](https://github.com/facebook/immutable-js/issu...
1
Go
Go
run testimportextremelylargeimageworks in parallel
ae3ca7bb9768c8136db373ccad95142168dae287
<ide><path>integration/image/import_test.go <ide> import ( <ide> "testing" <ide> <ide> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/internal/test/daemon" <ide> "github.com/docker/docker/internal/testutil" <ide> "gotest.tools/skip" <ide> ) <ide> <ide> // Ensure we don't regress on CVE-2017-...
1
Javascript
Javascript
simplify defineproperty to match what mixin does
ac900848c109addd2429b7f8d8ca5f08cb78a2a3
<ide><path>packages/ember-metal/lib/properties.js <ide> var Descriptor = Ember.Descriptor = function() {}; <ide> // DEFINING PROPERTIES API <ide> // <ide> <del>/** @private */ <del>function hasDesc(descs, keyName) { <del> if (keyName === 'toString') return 'function' !== typeof descs.toString; <del> else return !!de...
1
Text
Text
add adversarial text to main readme
94924d5d453c431193cf8dea06bba0f6954e6288
<ide><path>README.md <ide> running TensorFlow 0.12 or earlier, please <ide> <ide> <ide> ## Models <add>- [adversarial_text](adversarial_text): semi-supervised sequence learning with <add> adversarial training. <ide> - [autoencoder](autoencoder): various autoencoders. <ide> - [compression](compression): compressing a...
1
Python
Python
add more examples to bert models for torchhub
cf44d9839202d4d67cdc66fbb46162904587409f
<ide><path>hubconfs/bert_hubconf.py <ide> def bertTokenizer(*args, **kwargs): <ide> <ide> Example: <ide> >>> sentence = 'Hello, World!' <del> >>> tokenizer = torch.hub.load('huggingface/pytorch-pretrained-BERT', 'bertTokenizer', 'bert-base-cased', do_basic_tokenize=False, force_reload=False) <add> ...
1
Javascript
Javascript
fix empty children handling for revalue
ab525c4784335113a9c60f6236a9ddc2a4c63af4
<ide><path>d3.layout.js <ide> d3.layout.hierarchy = function() { <ide> // Also converts the data representation into a standard hierarchy structure. <ide> function recurse(data, depth, nodes) { <ide> var childs = children.call(hierarchy, data, depth), <del> n, <ide> node = d3_layout_hierarchyInli...
5
Python
Python
adjust error [ci skip]
d38dc466c5d17cc66f6be4edc028e13e41788b6c
<ide><path>spacy/errors.py <ide> class Errors: <ide> "the documentation:\nhttps://nightly.spacy.io/usage/models") <ide> E030 = ("Sentence boundaries unset. You can add the 'sentencizer' " <ide> "component to the pipeline with: `nlp.add_pipe('sentencizer')`. " <del> "Alternatively,...
1
Python
Python
extend list of abbreviations for ru language
a9756963e67cff6be5445ae441263f889c629123
<ide><path>spacy/lang/ru/tokenizer_exceptions.py <ide> from ...symbols import ORTH, NORM <ide> from ...util import update_exc <ide> <del> <ide> _exc = {} <ide> <ide> _abbrev_exc = [ <ide> {ORTH: "дек", NORM: "декабрь"}, <ide> ] <ide> <del> <ide> for abbrev_desc in _abbrev_exc: <ide> abbrev = abbrev_desc[ORTH...
1
Javascript
Javascript
prefix private modules with `_`
2933b887cd425061192489dcef81816644957f4d
<ide><path>Libraries/EventEmitter/RCTDeviceEventEmitter.js <ide> 'use strict'; <ide> <ide> import EventEmitter from '../vendor/emitter/EventEmitter'; <del>import type EmitterSubscription from '../vendor/emitter/EmitterSubscription'; <del>import EventSubscriptionVendor from '../vendor/emitter/EventSubscriptionVendor'; ...
5
Javascript
Javascript
use abstractmethoderror all over the project
7a3d9e38de749a1803dbda8d6ba5bd2b04ee6f80
<ide><path>lib/DependencyTemplate.js <ide> <ide> "use strict"; <ide> <add>const AbstractMethodError = require("./AbstractMethodError"); <add> <ide> /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ <ide> /** @typedef {import("./ChunkGraph")} ChunkGraph */ <ide> /** @typedef {import("./Dependency...
5
Go
Go
remove use of iota for consts
37dc2582d10ec6dfb7597e904f7cff57b6731edc
<ide><path>registry/types.go <ide> func (av APIVersion) String() string { <ide> <ide> // API Version identifiers. <ide> const ( <del> _ = iota <del> APIVersion1 APIVersion = iota <del> APIVersion2 <add> APIVersion1 APIVersion = 1 <add> APIVersion2 APIVersion = 2 <ide> ) <ide> <ide> var apiVersion...
1
PHP
PHP
remove trailing whitespace
8fc5726920374f40afa773c811eca0c2bc5f0a12
<ide><path>lib/Cake/Model/Behavior/TranslateBehavior.php <ide> public function afterSave(Model $model, $created) { <ide> unset($this->runtime[$model->alias]['beforeValidate'], $this->runtime[$model->alias]['beforeSave']); <ide> $conditions = array('model' => $model->alias, 'foreign_key' => $model->id); <ide> $Run...
1
PHP
PHP
close the cursor after checking the count
711c47b35375ba38edd1bdcb31417b9bd1a0240b
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testUnionOrderBy() <ide> ->union($union) <ide> ->execute(); <ide> $this->assertCount(self::COMMENT_COUNT + self::ARTICLE_COUNT, $result); <add> <add> $rows = $result->fetchAll(); <add> $this->assertCount...
1
Go
Go
fix race in access to nodes len
03088ace1b625de68404367039865533812ca37f
<ide><path>libnetwork/networkdb/cluster.go <ide> func (nDB *NetworkDB) clusterInit() error { <ide> <ide> nDB.networkBroadcasts = &memberlist.TransmitLimitedQueue{ <ide> NumNodes: func() int { <del> return len(nDB.nodes) <add> nDB.RLock() <add> num := len(nDB.nodes) <add> nDB.RUnlock() <add> return num <id...
1
Python
Python
update visualize_util.py to fix
2431764fed27199fe6a0751f44312a0b0c04f889
<ide><path>keras/utils/visualize_util.py <ide> import pydot <ide> # old pydot will not work with python3, must use one <ide> # that works with python3 such as pydot2 or pydot <del> <add>from keras.models import Sequential, Graph <ide> <ide> def plot(model, to_file='model.png'): <ide>
1
Text
Text
combine performance docs
7c66b2f28cf871e1850ea9930759acada679fec7
<ide><path>docs/SUMMARY.md <ide> * [Options](general/options.md) <ide> * [Colors](general/colors.md) <ide> * [Fonts](general/fonts.md) <add> * [Performance](general/performance.md) <ide> * [Configuration](configuration/README.md) <ide> * [Animations](configuration/animations.md) <ide> * [Layout](configurat...
3
Javascript
Javascript
remove $flowfixme on view
f40a04ae3a89f0cc05b99b22ba5dde8cf070250e
<ide><path>Libraries/Components/View/ViewNativeComponent.js <ide> const requireNativeComponent = require('requireNativeComponent'); <ide> <ide> import type {ViewProps} from 'ViewPropTypes'; <ide> <del>/* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an error <del> * found when Flow v0.89 was deplo...
1
Python
Python
use r-string to avoid raising python 3 syntaxerror
65abca9a34f3fd6c48a24d6c5d1340cd080dfb92
<ide><path>research/cognitive_mapping_and_planning/scripts/script_plot_trajectory.py <ide> def worker(j): <ide> t.set_bbox(dict(color='white', alpha=0.85, pad=-0.1)) <ide> <ide> # Action to take. <del> action_latex = ['$\odot$ ', '$\curvearrowright$ ', '$\curvearrowleft$ ', '$\Uparrow$ '] <add> a...
1
Python
Python
fix tests after adding r4 instances
b5d6854da0949428073ba79c0ba57fbd8490eb72
<ide><path>libcloud/test/compute/test_ec2.py <ide> def test_list_sizes(self): <ide> self.assertTrue('m2.4xlarge' in ids) <ide> <ide> if region_name == 'us-east-1': <del> self.assertEqual(len(sizes), 55) <add> self.assertEqual(len(sizes), 61) <ide> ...
1
Javascript
Javascript
fix missing param in benchmark-timers
a27e443df3ae17e9110df043ca2a54d4bd8686f0
<ide><path>test/parallel/test-benchmark-timers.js <ide> const runBenchmark = require('../common/benchmark'); <ide> runBenchmark('timers', <ide> [ <ide> 'type=depth', <add> 'n=1', <ide> 'millions=0.000001', <ide> 'thousands=0.001' <ide> ...
1
Javascript
Javascript
remove unused variable
a43b6fec454e1f00c326902349b26e5710c3d82e
<ide><path>src/renderers/dom/client/wrappers/__tests__/ReactDOMOption-test.js <ide> describe('ReactDOMOption', function() { <ide> spyOn(console, 'error'); <ide> stub = ReactTestUtils.renderIntoDocument(stub); <ide> <del> var node = React.findDOMNode(stub); <del> <ide> expect(console.error.calls.length)....
1
Javascript
Javascript
remove tests placeholders
8fe1a10ae143ba8cf09f590fe9af67918e663d99
<ide><path>test/Connector.spec.js <del>// import expect from 'expect'; <del>// import { Connector } from '../src'; <del> <del>describe('Components', () => { <del> describe('Connector', () => { <del> <del> it('should initialize'); <del> }); <del>}); <ide><path>test/Provider.spec.js <del>// import expect from 'expec...
5
Javascript
Javascript
fix error message check after v8 update
5746769d682aa91494b66de6d685fcb1257e4b80
<ide><path>lib/internal/modules/cjs/loader.js <ide> function enrichCJSError(err) { <ide> usage. However, some cases are not matching, cases like import statement <ide> after a comment block and/or after a variable definition. <ide> */ <del> if (err.message.startsWith('Unexpected token export') || <add> if (...
3
PHP
PHP
remove the upgrade shell
756eb3c7c6f3545dcd3e1b085c200beb41a39451
<ide><path>src/Console/Command/UpgradeShell.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license information, p...
3
Text
Text
fix the broken link
cfb07e642d23622412c5455ca70c42140268f9fe
<ide><path>docs/swarm/swarm-tutorial/index.md <ide> If you are brand new to Docker, see [About Docker Engine](../../index.md). <ide> To run this tutorial, you need the following: <ide> <ide> * [three networked host machines](#three-networked-host-machines) <del>* [Docker Engine 1.12 or later installed](#docker-engine-...
1
Python
Python
fix typo in celery.bin.multi document
7cf08574449f7c051fca7fac44f41d56385466a7
<ide><path>celery/bin/multi.py <ide> $ celery multi show 10 -l INFO -Q:1-3 images,video -Q:4,5 data <ide> -Q default -L:4,5 DEBUG <ide> <del> $ # Additional options are added to each celery worker' comamnd, <add> $ # Additional options are added to each celery worker' command, <ide> $ # but you c...
1
Text
Text
add v4.4.2 to changelog
c18edfca05598cdc6e683566ac0ffaa64dd9de04
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.4.2 (June 13, 2022) <add> <add>- [#20114](https://github.com/emberjs/ember.js/pull/20114) [BUGFIX] Fix generated import paths for test setup functions in addons <add> <ide> ### v4.5.0-beta.2 (June 6, 2022) <ide> <ide> - [#20082](https://github.com/embe...
1
Python
Python
add compat for thinc.neural.optimizers.optimizer
4d048e94d3eaa88e038e56967c0bf7599d11f6ae
<ide><path>spacy/compat.py <ide> except ImportError: <ide> cupy = None <ide> <add>try: <add> from thinc.optimizers import Optimizer <add>except ImportError: <add> from thinc.optimizers import Adam as Optimizer <ide> <ide> pickle = pickle <ide> copy_reg = copy_reg <ide><path>spacy/language.py <ide> from cont...
2
Python
Python
improve checks for sourced components
1ad646cbcf0015cb3b944f98bef1b3a9eeb54e9f
<ide><path>spacy/errors.py <ide> class Warnings: <ide> "http://spacy.io/usage/v3#jupyter-notebook-gpu") <ide> W112 = ("The model specified to use for initial vectors ({name}) has no " <ide> "vectors. This is almost certainly a mistake.") <add> W113 = ("Sourced component '{name}' may not w...
3
Java
Java
implement flex properties in java version as well
e63a7ea7bd229323edce4fca716a8423100ea4d9
<ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java <ide> public class CSSLayout { <ide> public float[] dimensions = new float[2]; <ide> public CSSDirection direction = CSSDirection.LTR; <ide> <del> public float flexBasis; <add> public float computedFlexBasis; <ide> <ide> public int ge...
6
PHP
PHP
apply fixes from styleci
a5a01581871ab0fdf35f009cb9da01fa0a2a6107
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> protected function invalidOperator($operator) <ide> * @param mixed $operator <ide> * @param mixed $value <ide> * @return $this <del> * {@inheritdoc} <add> * {@inheritdoc} <ide> */ <ide> public function orWhere($...
1
Ruby
Ruby
raise useful errors from make_relative_symlink
727f2047602a593b57bf4aebc26242fcc63dd4c8
<ide><path>Library/Homebrew/keg.rb <ide> require "ostruct" <ide> <ide> class Keg < Pathname <add> class LinkError < RuntimeError <add> attr_reader :keg, :src, :dst <add> <add> def initialize(keg, src, dst) <add> @src = src <add> @dst = dst <add> @keg = keg <add> end <add> end <add> <add> cla...
2
Java
Java
replace string comparison with enum
63035a4c083807efce3ad0bb08e318811fa7558b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java <ide> public class ReactMarker { <ide> <ide> public interface MarkerListener { <del> void logMarker(String name, @Nullable String tag); <add> void logMarker(ReactMarkerConstants name, @Nullable String tag); <ide> }; <ide> <ide>...
2
Python
Python
fix tqdm logging level
59b123bc50131aee4bfe6a434314fb5318de7955
<ide><path>src/transformers/file_utils.py <ide> def http_get(url, temp_file, proxies=None, resume_size=0, user_agent=None): <ide> total=total, <ide> initial=resume_size, <ide> desc="Downloading", <del> disable=bool(logger.level <= logging.INFO), <add> disable=bool(logger.getEffecti...
1
Ruby
Ruby
remove needless `silence_warnings`
603475b76fe518fa290330817b851608b13143ea
<ide><path>railties/test/application/asset_debugging_test.rb <ide> class AssetDebuggingTest < ActiveSupport::TestCase <ide> include Rack::Test::Methods <ide> <ide> def setup <del> # FIXME: shush Sass warning spam, not relevant to testing Railties <del> Kernel.silence_warnings do <del> build_ap...
3
Javascript
Javascript
fix typo in withrouter
de6741f886178d8f9b4af6e109838642aebda1c7
<ide><path>lib/router/with-router.js <ide> export default function withRouter (ComposedComponent) { <ide> router: PropTypes.object <ide> } <ide> <del> static displayName = `withRoute(${displayName})` <add> static displayName = `withRouter(${displayName})` <ide> <ide> render () { <ide> const ...
1
PHP
PHP
add auth line
b54ef297b3c723c8438596c6e6afef93a7458b98
<ide><path>resources/lang/en/auth.php <ide> */ <ide> <ide> 'failed' => 'These credentials do not match our records.', <add> 'password' => 'The provided password is incorrect.', <ide> 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', <ide> <ide> ];
1
Text
Text
add v3.6.1 to changelog
9a958e2962e1e75f9905d58b618805043bd6fa6e
<ide><path>CHANGELOG.md <ide> - [#17134](https://github.com/emberjs/ember.js/pull/17134) [CLEANUP] Remove deprecated '_router' <ide> - [#17133](https://github.com/emberjs/ember.js/pull/17133) [CLEANUP] Remove deprecated 'property{Did,Will}Change' <ide> <add>### v3.6.1 (December 18, 2018) <add> <add>- [#17328](https://...
1
Python
Python
use default-hostname as a class-attribute
ef7b7afa9aaca69ea31706fb38b27e8ee4da30be
<ide><path>libcloud/dns/drivers/rcodezero.py <ide> from libcloud.dns.types import Provider, RecordType <ide> from libcloud.utils.py3 import httplib <ide> <add>API_HOST = 'my.rcodezero.at' <add> <ide> __all__ = [ <ide> 'RcodeZeroDNSDriver', <ide> ] <ide> def parse_error(self): <ide> class RcodeZeroConnection(Connec...
1
Javascript
Javascript
fix return type of settimeout in net.socket
4439009d6531230f2f15992483d136bcc416c6ae
<ide><path>lib/internal/stream_base_commons.js <ide> function onStreamRead(arrayBuffer) { <ide> <ide> function setStreamTimeout(msecs, callback) { <ide> if (this.destroyed) <del> return; <add> return this; <ide> <ide> this.timeout = msecs; <ide> <ide><path>test/parallel/test-net-socket-timeout.js <ide> for...
2
Python
Python
add example section in the -h tag
a4dbd65cc336c2e714c7d648837a1b982e0c3a0d
<ide><path>glances/core/glances_main.py <ide> class GlancesMain(object): <ide> username = "glances" <ide> password = "" <ide> <add> # Exemple of use <add> example_of_use = "\ <add>Examples of use:\n\ <add>\n\ <add>Monitor local machine (standalone mode):\n\ <add> $ glances\n\ <add>\n\ <add>Monitor local...
1
Mixed
PHP
update reasons and readme
67f70afe1f4cdb472ba6dc28b03090e5153fb167
<ide><path>readme.md <ide> # Laravel 4 Beta Change Log <ide> <add>## Beta 3 <add> <add>- Fixed a few things in the ArrayStore session driver. <add>- Improve reasons in Password Broker. <add> <ide> ## Beta 2 <ide> <ide> - Migrated to ircmaxell's [password-compat](http://github.com/ircmaxell/password_compat) library fo...
3
Mixed
Python
fix paths to images in readme.md
37afe55775676e2cb4cf6ed0cfc6c892855d6805
<ide><path>README.md <ide> following the ASF Policy. <ide> <ide> - **DAGs**: Overview of all DAGs in your environment. <ide> <del> ![DAGs](/docs/img/dags.png) <add> ![DAGs](/docs/apache-airflow/img/dags.png) <ide> <ide> - **Tree View**: Tree representation of a DAG that spans across time. <ide> <del> ![Tree View...
2
Ruby
Ruby
use global namespace rails
4686ace999467935e659260d1a23c6617bc51986
<ide><path>railties/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb <ide> module <%= camelized %> <del> class Engine < Rails::Engine <add> class Engine < ::Rails::Engine <ide> <% if mountable? -%> <ide> isolate_namespace <%= camelized %> <ide> <% end -%> <ide><path>railties/test/generators/pl...
2
Text
Text
add locate command
3ec8875bf12609157da0af5a02f53330d5e98152
<ide><path>guide/english/linux/basic-linux-commands/index.md <ide> title: Basic Linux Commands <ide> <ide> When starting out with Linux, there are some basic commands everyone should know. <ide> <del> 1. **cd** - change directory <add>1. **cd** - change directory <ide> - `cd` followed by a directory or file path wi...
1
Mixed
Python
convert "dim_ordering" to "data_format"
5adce5266f43f89dcf7f14758e5d895fbf6791ef
<ide><path>docs/templates/applications.md <ide> Weights are downloaded automatically when instantiating a model. They are stored <ide> - [ResNet50](#resnet50) <ide> - [InceptionV3](#inceptionv3) <ide> <del>All of these architectures (except Xception) are compatible with both TensorFlow and Theano, and upon instantiati...
43
PHP
PHP
fix nth where step <= offset
98aa74abd91eefa7fd14cc5a649a6fa264bbdf97
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function nth($step, $offset = 0) <ide> <ide> $position = 0; <ide> <del> foreach ($this->items as $item) { <del> if ($position % $step === $offset) { <add> foreach ($this->slice($offset)->items as $item) { <add> ...
3
Python
Python
fix public address on nic
6b627abcd361568377698ba02e04b1749254de8c
<ide><path>libcloud/compute/drivers/azure_arm.py <ide> def ex_delete_network_security_group(self, name, resource_group, <ide> data=data, <ide> method='DELETE') <ide> <del> def ex_create_network(self, name, resource_group, location=None, addressSpace="1...
1
Java
Java
use callonqueue() instead of latch
01e291751a35299a8059f6a14173c57000f7f6ac
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java <ide> import java.util.Collection; <ide> import java.util.concurrent.Callable; <ide> import java.util.concurrent.CopyOnWriteArrayList; <del>import java.util.concurrent.CountDownLatch; <ide> import java.util.concurrent.TimeUnit; <i...
1
Ruby
Ruby
add flat-.pkg support to curldownloadstrategy
4490b739d5e71912bdd99daa5ab02f9c0b3433e8
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> def stage <ide> if @tarball_path.extname == '.jar' <ide> magic_bytes = nil <add> elsif @tarball_path.extname == '.pkg' <add> # Use more than 4 characters to not clash with magicbytes <add> magic_bytes = "____pkg" <ide> e...
1
Python
Python
improve word embedding example, py3 compatibility
52251f523f6700c50881ebc28edf13913ef0fde5
<ide><path>examples/skipgram_word_embeddings.py <ide> nb_epoch = 1 <ide> dim_proj = 256 # embedding space dimension <ide> <del>save = False <del>load = False <add>save = True <add>load_model = False <add>load_tokenizer = False <ide> train_model = True <ide> save_dir = os.path.expanduser("~/.keras/models") <del>model_l...
1
Ruby
Ruby
add failing test cases
44b819616ad17e1f4bddd332d9bdce87b85e8627
<ide><path>railties/test/generators/shared_generator_tests.rb <ide> def test_skip_keeps <ide> assert_file ".gitignore" do |content| <ide> assert_no_match(/\.keep/, content) <ide> end <del> <add> assert_directory("app/assets/images") <add> assert_directory("app/models/concerns") <ide> assert_no_f...
1
Python
Python
fix serialization of empty doc + unit test
59000ee21dcacb091fd3493bdfe4ea57e664e110
<ide><path>spacy/tests/regression/test_issue5141.py <add>from spacy.tokens import DocBin <add> <add> <add>def test_issue5141(en_vocab): <add> """ Ensure an empty DocBin does not crash on serialization """ <add> doc_bin = DocBin(attrs=["DEP", "HEAD"]) <add> assert list(doc_bin.get_docs(en_vocab)) == [] <add> ...
2
Python
Python
update esm checkpoints to point to `facebook/`
5fda1fbd4625e93d023fe02153ec4a05b26b16cc
<ide><path>src/transformers/models/esm/modeling_esm.py <ide> <ide> logger = logging.get_logger(__name__) <ide> <del>_CHECKPOINT_FOR_DOC = "Rocketknight1/esm2_t6_8M_UR50D" <add>_CHECKPOINT_FOR_DOC = "facebook/esm2_t6_8M_UR50D" <ide> _CONFIG_FOR_DOC = "EsmConfig" <ide> _TOKENIZER_FOR_DOC = "EsmTokenizer" <ide> <ide> E...
3
Text
Text
fix url in displayname description
b4f4f10478c4b552b6cf98d9c6f2709316b9e4fa
<ide><path>docs/docs/ref-03-component-specs.md <ide> The `mixins` array allows you to use mixins to share behavior among multiple com <ide> string displayName <ide> ``` <ide> <del>The `displayName` string is used in debugging messages. JSX sets this value automatically, see [JSX in Depth](react/docs/jsx-in-depth.html#...
1
Javascript
Javascript
enable another test case in test-net-pingpong
d964b4c5aafd431cfb63529a462871c446522f7a
<ide><path>test/simple/test-net-pingpong.js <ide> function pingPongTest(port, host) { <ide> /* All are run at once, so run on different ports */ <ide> if (!process.useUV) { <ide> // these tests will not run yet with net_uv TODO: remove when net_uv supports dns <del> pingPongTest(20989, 'localhost'); <ide> pingPong...
1
Javascript
Javascript
use `trim` helper
96fa70511d0177270369b00471d4020617a45537
<ide><path>test/ng/compileSpec.js <ide> describe('$compile', function() { <ide> it('should allow nested transclude directives with sync template containing sync template', inject(function($compile, $rootScope) { <ide> element = $compile('<div sync-sync>transcluded content</div>')($rootScope); <ide...
1
Text
Text
relax requirements for setaad in ccm mode
9e340357df763fcaa06376e14857dec468787e99
<ide><path>doc/api/crypto.md <ide> mode must adhere to certain restrictions when using the cipher API: <ide> bytes (`7 ≤ N ≤ 13`). <ide> - The length of the plaintext is limited to `2 ** (8 * (15 - N))` bytes. <ide> - When decrypting, the authentication tag must be set via `setAuthTag()` before <del> specifying addi...
1
Ruby
Ruby
drop version to 1.6+
86a838c03f5bea58cb4e19ef77d805a0af93829b
<ide><path>Library/Homebrew/test/language/java_spec.rb <ide> describe Language::Java do <ide> describe "::java_home" do <ide> it "returns valid JAVA_HOME if version is specified", :needs_java do <del> java_home = described_class.java_home("1.8+") <add> java_home = described_class.java_home("1.6+") <ide>...
1
PHP
PHP
add application.buildcontainer event
6edcd5450a63eebd65c88cf0bb0fa6747bdf4e47
<ide><path>src/Http/BaseApplication.php <ide> protected function buildContainer(): ContainerInterface <ide> $plugin->services($container); <ide> } <ide> <add> $event = $this->dispatchEvent('Application.buildContainer', ['container' => $container]); <add> if ($event->getResult() instan...
2
Ruby
Ruby
pass array to puts instead of iterating over it
d2aeadb1cd087081c7631622e01d8522e63e27eb
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def doctor <ide> checks = Checks.new <ide> <ide> if ARGV.include? '--list-checks' <del> checks.methods.grep(/^check_/).sort.each { |m| puts m } <add> puts checks.methods.grep(/^check_/).sort <ide> exit <ide> end <ide>
1
Text
Text
add x-csrftoken http header in swagger-ui example
a9e55334e7d42c03929b33708cee6f0bd908e7c2
<ide><path>docs/topics/documenting-your-api.md <ide> this: <ide> SwaggerUIBundle.presets.apis, <ide> SwaggerUIBundle.SwaggerUIStandalonePreset <ide> ], <del> layout: "BaseLayout" <add> layout: "BaseLayout", <add> requestInterceptor: (request) => { <add> request....
1
PHP
PHP
fix dirty associations that use formatresults
431666a83dbc08cd1625674b37c77f23b98cdda2
<ide><path>src/ORM/Association.php <ide> protected function _formatAssociationResults(Query $query, Query $surrogate, arr <ide> } <ide> <ide> /** @var \Cake\Collection\CollectionInterface $results */ <del> return $results->insert($property, $extracted); <add> return $resul...
5
Javascript
Javascript
fix a crash when rounding very small numbers
7c2062f2895376e823a4c0ac04671297d734fe99
<ide><path>d3.js <ide> var d3_format_types = { <ide> f: function(x, p) { return x.toFixed(p); }, <ide> r: function(x, p) { <ide> var n = 1 + Math.floor(1e-15 + Math.log(x) / Math.LN10); <del> return d3.round(x, p - n).toFixed(Math.max(0, p - n)); <add> return d3.round(x, p - n).toFixed(Math.max(0, Math.mi...
4
Text
Text
add test to return early pattern
f7578406249329889ce45472ced16833db1c59e6
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/return-early-pattern-for-functions.english.md <ide> tests: <ide> testString: assert(abTest(2,8) === 18 ); <ide> - text: <code>abTest(3,3)</code> should return <code>12</code> <ide> testString: assert(abTest(...
1
Text
Text
add roadmap, i18n, tracing, evangelism wgs
ae7a23351f7e5b06ab88b7ea9c18d7c5b2e287e9
<ide><path>WORKING_GROUPS.md <ide> Its responsibilities are: <ide> The current members can be found in their <ide> [README](https://github.com/iojs/build#people). <ide> <add>### Tracing <add> <add>The tracing working group's purpose is to increase the <add>transparency of software written in io.js. <add> <add>Its resp...
1
PHP
PHP
move debug methods to the base query builder
a43424de299ec02e9e08a05c78d460ec1d054cd3
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function getMacro($name) <ide> return Arr::get($this->localMacros, $name); <ide> } <ide> <del> /** <del> * Debug the current query builder instance. <del> * <del> * @return void <del> */ <del> public function dd() <d...
2
Python
Python
add unit tests
e1fa3d72e4a2569691aeb9f9003bdac52de7ce3e
<ide><path>numpy/core/tests/test_ufunc.py <ide> def __rmul__(self, other): <ide> assert_(MyThing.rmul_count == 1, MyThing.rmul_count) <ide> assert_(MyThing.getitem_count <= 2, MyThing.getitem_count) <ide> <add> def test_inplace_fancy_indexing(self): <add> a = np.array([1, 2, 3]) <add> ...
1
Python
Python
fix lint issue
c778f1d42816575198759eb97a33c63855269971
<ide><path>docs/examples/compute/dimensiondata/Nodes_Create_mcp2_Uncustomised.py <ide> # Get dimension data driver <ide> libcloud.security.VERIFY_SSL_CERT = True <ide> cls = get_driver(Provider.DIMENSIONDATA) <del>driver = cls('myusername','mypassword', region='dd-au') <add>driver = cls('myusername', 'mypassword', regi...
1
Python
Python
update code after code review on pr by @kami
f0cc015f437d5119e223c47cd09566735c6dd362
<ide><path>docs/examples/backup/create_backup_from_node.py <ide> import time <ide> from pprint import pprint <ide> <del>from libcloud.backup.types import Provider, BackupTargetJobStatusType <add>from libcloud.backup.types import BackupTargetJobStatusType <add>from libcloud.backup.types import Provider as BackupProvide...
2
Python
Python
add checks to build cleaner model cards
801ec115cfc364e30696f1e2f2506a5159c13632
<ide><path>src/transformers/modelcard.py <ide> def _insert_values_as_list(metadata, name, values): <ide> return metadata <ide> if isinstance(values, str): <ide> values = [values] <add> values = [v for v in values if v is not None] <ide> if len(values) == 0: <ide> return metadata <ide>...
1
Java
Java
fix crash when double launching activity
de4cb7d40318094543f2a160c88e8013772d9f7d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java <ide> public void handleException(RuntimeException e) { <ide> <ide> /** <ide> * Same as {@link Activity#startActivityForResult(Intent, int)}, this just redirects the call to <del> * the current activity. <add> * the current acti...
1
Go
Go
add failing testcase for single quotes in cmd
9edf96782470deb15deec3be07e3988164454148
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildExoticShellInterpolation(t *testing.T) { <ide> <ide> logDone("build - exotic shell interpolation") <ide> } <add> <add>func TestBuildVerifySingleQuoteFails(t *testing.T) { <add> // This testcase is supposed to generate an error because the <add> /...
1
PHP
PHP
update param type
982481f4786648b5de3f6c27fb5795baa2d7ebe9
<ide><path>src/Database/TypeMap.php <ide> public function getTypes(): array <ide> * the column type will be looked for inside the default mapping. If neither exist, <ide> * null will be returned. <ide> * <del> * @param string $column The type for a given column <add> * @param string|int $column T...
1
Go
Go
return closed channel if oom notification fails
7061a993c5b620d6e68450f1b90f3458bfa1add0
<ide><path>daemon/execdriver/native/driver.go <ide> func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba <ide> startCallback(&c.ProcessConfig, pid) <ide> } <ide> <del> oomKillNotification, err := cont.NotifyOOM() <del> if err != nil { <del> oomKillNotification = nil <del> logrus.Warnf(...
1
Text
Text
add introduction to machine learning article
90a9f27440b9edb7d64b0afa79ad9bf9f072db97
<ide><path>guide/english/machine-learning/backpropagation/index.md <ide> This article should only be understood in the greater contexts of neural network <ide> <ide> **In-depth:** <ide> * Lecture 4 CS231n [Introduction to Neural Networks](https://youtu.be/d14TUNcbn1k?t=354) <add>* [Free Code Camps Introduction to Mach...
1
Go
Go
skip privileged tests when non-root
e8648fa19f065de4a4cffcd48d6525dfc4edc11a
<ide><path>plugin/manager_linux_test.go <ide> func (e *executorWithRunning) Signal(id string, signal int) error { <ide> } <ide> <ide> func TestPluginAlreadyRunningOnStartup(t *testing.T) { <add> skip.If(t, os.Getuid() != 0, "skipping test that requires root") <ide> t.Parallel() <ide> <ide> root, err := ioutil.TempD...
1
Javascript
Javascript
check window before using navigator
0f7cc2ba845e34d7a312819e27bbfa88cdb7d49f
<ide><path>packages/react-events/src/Press.js <ide> type PressEvent = {| <ide> shiftKey: boolean, <ide> |}; <ide> <del>const isMac = /^Mac/.test(navigator.platform); <add>const isMac = <add> typeof window !== 'undefined' && window.navigator != null <add> ? /^Mac/.test(window.navigator.platform) <add> : false;...
1
Text
Text
fix node versions in changelog's v8 paragraph
0a86241840e0e5c839724da3268417b87ad69100
<ide><path>CHANGELOG.md <ide> repository and therefore can be seen as an extension to v0.11. <ide> <ide> ### General <ide> <del>- The V8 JavaScript engine bundled with io.js was upgraded dramatically, from version 3.14.5 in Node.js v0.10.45 and 3.26.33 in Node.js v0.10.14 to 3.31.74.1 for io.js v1.0.0. This brings al...
1
Text
Text
remove wait period for npm pull requests
5f9794ea9aaaf5597974a65460e1f3069f68475f
<ide><path>doc/guides/maintaining-npm.md <ide> New pull requests should be opened when a "next" version of npm has <ide> been released. Once the "next" version has been promoted to "latest" <ide> the PR should be updated as necessary. <ide> <del>One week after the "latest" release has been promoted, it can land on mas...
1
PHP
PHP
ignore missing methods
ba60590aa0e62a1c0ee271c0008d73d127cc4feb
<ide><path>src/Illuminate/Support/Facades/Facade.php <ide> protected static function createFreshMockInstance($name) <ide> <ide> $mock->shouldAllowMockingProtectedMethods(); <ide> <add> $mock->shouldIgnoreMissing(); <add> <ide> if (isset(static::$app)) { <ide> static::$app->instance(...
1
Python
Python
add bilateral filter
c1a4cc96c8028d786af151f4177e2ef54250186e
<ide><path>digital_image_processing/filters/bilateral_filter.py <add>""" <add>Implementation of Bilateral filter <add> <add>Inputs: <add> img: A 2d image with values in between 0 and 1 <add> varS: variance in space dimension. <add> varI: variance in Intensity. <add> N: Kernel size(Must be an odd number) <ad...
1
Javascript
Javascript
add a comment explaining replace action
7a16fed9cbc4e720eb2ea13adda46f5ee5ed1b13
<ide><path>src/createStore.js <ide> export default function createStore(reducer, preloadedState, enhancer) { <ide> } <ide> <ide> currentReducer = nextReducer <add> <add> // This action has a similiar effect to ActionTypes.INIT. <add> // Any reducers that existed in both the new and old rootReducer <add> ...
1
Ruby
Ruby
fix broken rmdir script
7a22cda8ddc5dcd8304beab7767132bd4dcdafb9
<ide><path>Library/Homebrew/cask/pkg.rb <ide> def special?(path) <ide> <ide> sig { params(path: T.any(Pathname, T::Array[Pathname])).void } <ide> def rmdir(path) <add> return unless path.exist? <add> <ide> @command.run!( <ide> "/usr/bin/xargs", <ide> args: ["-0", "--", "/bin/bash", ...
1