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
Text
Text
use ## for intro heading
c089fc20746b7d6aa06e0483550c702899e5c222
<ide><path>docs/intro.md <del># Welcome to the Atom guide <add>## Welcome to the Atom guide
1
Python
Python
use keepdims in favor of re-inserting dimensions
4bdcbab61d996a1839ee521c0ca92457d00f876e
<ide><path>numpy/lib/arraypad.py <ide> def _prepend_max(arr, pad_amt, num, axis=-1): <ide> max_slice = tuple(slice(None) if i != axis else slice(num) <ide> for (i, x) in enumerate(arr.shape)) <ide> <del> # Shape to restore singleton dimension after slicing <del> pad_singleton = tuple(x ...
1
Javascript
Javascript
define a launcher for ie11 (saucelabs)
041057232206e07164ed0aa4ecb9abe0f3fc23f4
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> platform: 'Windows 2012', <ide> version: '10' <ide> }, <add> 'SL_IE_11': { <add> base: 'SauceLabs', <add> browserName: 'internet explorer', <add> platform: 'Windows 8.1', <add...
1
Javascript
Javascript
add jshint to the test task
3e79c9b09850899038f8609649de60ec326b8d10
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> <ide> <ide> //alias tasks <del> grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['package','test:unit','test:promises-aplus', 'tests:docs', 'test:e2e']); <add> grunt.registerTask('test', 'Run unit, docs and e2e tests with...
1
Python
Python
isolate numeric compatibility to numpy.linalg.old
db77da02aced7b10bd3fd8306cf66d88a0e8800e
<ide><path>numpy/lib/convertcode.py <ide> def fromstr(filestr): <ide> filestr, fromall2 = changeimports(filestr, 'numerix', 'numpy') <ide> filestr, fromall3 = changeimports(filestr, 'numpy_base', 'numpy') <ide> filestr, fromall3 = changeimports(filestr, 'MLab', 'numpy.lib.mlab') <del> filestr, fromall3 =...
3
Ruby
Ruby
fix strange messages for `rails g foo`
3215c6b743fa6fc99ad371c1fcbbbbb8c9f2bc61
<ide><path>railties/lib/rails/generators.rb <ide> def self.invoke(namespace, args=ARGV, config={}) <ide> options = sorted_groups.flat_map(&:last) <ide> suggestions = options.sort_by {|suggested| levenshtein_distance(namespace.to_s, suggested) }.first(3) <ide> msg = "Could not find generator...
1
Javascript
Javascript
create links to forumtopicids or search
16551d2ad6e2f097eea1cef4722e637bf673d8ad
<ide><path>client/src/templates/Challenges/classic/Show.js <ide> class ShowClassic extends Component { <ide> } <ide> <ide> getGuideUrl() { <del> const { <del> fields: { slug } <del> } = this.getChallenge(); <del> return createGuideUrl(slug); <add> const { forumTopicId, title } = this.getChallenge(...
2
Mixed
PHP
allow starter closure for bundles
7af5afc4b5d6af58149dc0ca4c85451a142ba39a
<ide><path>laravel/bundle.php <ide> public static function start($bundle) <ide> <ide> // Each bundle may have a start script which is responsible for preparing <ide> // the bundle for use by the application. The start script may register <del> // any classes the bundle uses with the auto-loader, etc. <del> if (f...
2
Text
Text
add note about vendoring dependencies
8ac3cd0e7078055a92e27c0f2e98138e1f2bfab4
<ide><path>docs/Acceptable-Formulae.md <ide> Clang is the default C/C++ compiler on macOS (and has been for a long time). Sof <ide> ### Stuff that requires heavy manual pre/post-install intervention <ide> We're a package manager so we want to do things like resolve dependencies and set up applications for our users. If...
1
Javascript
Javascript
add test for missing `close`/`finish` event
9436a860cb599be0e3f64d3bccfa81e389aa9fa8
<ide><path>test/parallel/test-http-response-close-event-race.js <add>var common = require('../common'); <add>var assert = require('assert'); <add>var http = require('http'); <add> <add>var clientRequest = null; <add>var eventCount = 0; <add>var testTickCount = 3; <add> <add>var server = http.createServer(function(req, ...
1
Go
Go
fix daemon tests
6d36431e2395867d7bb101dbfd4340e132fd5438
<ide><path>integration-cli/docker_cli_daemon_experimental_test.go <ide> func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) { <ide> c.Fatalf("Could not install plugin: %v %s", err, out) <ide> } <ide> <add> defer func() { <add> if out, err := s.d.Cmd("plugin", "disable", pluginName); err != n...
2
Ruby
Ruby
add a note on custom validation contexts
2bb0abbec0e4abe843131f188129a1189b1bf714
<ide><path>activemodel/lib/active_model/validations.rb <ide> module ClassMethods <ide> # <ide> # Options: <ide> # * <tt>:on</tt> - Specifies the contexts where this validation is active. <del> # You can pass a symbol or an array of symbols. <del> # (e.g. <tt>on: :create</tt> or <tt>on: :...
5
Javascript
Javascript
fix missed renaming of settiming to applyanimation
9ca853d4d1f587a50d26e3860869a57501ae19f2
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js <ide> class NavigationCardStack extends React.Component { <ide> navigationState={this.props.navigationState} <ide> renderOverlay={this.props.renderOverlay} <ide> renderScene={this._renderScene} <del> setTi...
1
PHP
PHP
add test for fix in
aca66f9007c96bb1e4d207c7cdf43ac1de28f74a
<ide><path>tests/TestCase/Network/Http/ClientTest.php <ide> public function testGetSimpleWithHeadersAndCookies() <ide> $this->assertSame($result, $response); <ide> } <ide> <add> /** <add> * test get request with no data <add> * <add> * @return void <add> */ <add> public function testG...
1
PHP
PHP
update exception message
5a3e67a56edf4c0ab288d55fd2cec97d3d889f3d
<ide><path>src/Http/Cookie/Cookie.php <ide> protected static function dateTimeInstance($expires): ?DateTimeInterface <ide> <ide> if (!is_string($expires) && !is_int($expires)) { <ide> throw new InvalidArgumentException(sprintf( <del> 'Invalid type `%s` for expires.', <add> ...
1
PHP
PHP
apply fixes from styleci
127a83d8d2b1f3842b685982ac531936ef3030c4
<ide><path>src/Illuminate/Http/Request.php <ide> protected function getInputSource() <ide> * @param \Illuminate\Http\Request|null $to <ide> * @return static <ide> */ <del> public static function createFrom(Request $from, $to = null) <add> public static function createFrom(self $from, $to = null) ...
1
Go
Go
add workaround for gcr auth issue
bcd8298c35f53f79b42c6e089e8da114ddb5c57e
<ide><path>builder/builder-next/adapters/containerimage/pull.go <ide> import ( <ide> "io/ioutil" <ide> "runtime" <ide> "sync" <add> "sync/atomic" <ide> "time" <ide> <ide> "github.com/containerd/containerd/content" <ide> type SourceOpt struct { <ide> <ide> type imageSource struct { <ide> SourceOpt <del> g flight...
1
PHP
PHP
remove the server file
80fb944e45801cec81b459f73892dbfc80c39de6
<ide><path>server.php <del><?php <del> <del>$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); <del> <del>$uri = urldecode($uri); <del> <del>$public = __DIR__ . '/public'; <del> <del>$requested = $public . $uri; <del> <del>// This file allows us to emulate Apache's "mod_rewrite" functionality from the <del>// bui...
1
Javascript
Javascript
fix polyfill for ie11
55e89e759a1a81a2815cbcc53359197dbcb41779
<ide><path>packages/next/build/babel/preset.js <ide> module.exports = (context, opts = {}) => ({ <ide> [require('@babel/plugin-proposal-class-properties'), opts['class-properties'] || {}], <ide> require('@babel/plugin-proposal-object-rest-spread'), <ide> [require('@babel/plugin-transform-runtime'), { <del> ...
1
Python
Python
add a --timer argument to runtests
0a2614309f261c4a6043d410d8d14612da3f7025
<ide><path>runtests.py <ide> $ python runtests.py --ipython <ide> $ python runtests.py --python somescript.py <ide> $ python runtests.py --bench <add> $ python runtests.py --timer 20 <ide> <ide> Run a debugger: <ide> <ide> def main(argv): <ide> parser.add_argument("--coverage", action="store_true",...
1
Javascript
Javascript
fix public paths
10bee0f025d5b780c4e0d3f0eb65c9d279f35b85
<ide><path>webpack.config.js <ide> module.exports = { <ide> chunkFilename: __DEV__ ? <ide> '[name].js' : <ide> '[name]-[chunkhash].js', <del> path: path.join(__dirname, '/public/js'), <del> publicPath: '/js' <add> path: path.join(__dirname, '/public/js/') <ide> }, <ide> resolve: { <ide> ...
1
Python
Python
use integer literal instead of float
10d28b6dc9cda2be1ca1236515a5936c3571207b
<ide><path>numpy/lib/polynomial.py <ide> def __init__(self, c_or_r, r=False, variable=None): <ide> raise ValueError("Polynomial must be 1d only.") <ide> c_or_r = trim_zeros(c_or_r, trim='f') <ide> if len(c_or_r) == 0: <del> c_or_r = NX.array([0.], dtype=c_or_r.dtype) <add> ...
1
Text
Text
fix dotcloud link
f2fd765450e024808a3019bdc118f87c97446f97
<ide><path>README.md <ide> databases, and backend services without depending on a particular stack <ide> or provider. <ide> <ide> Docker began as an open-source implementation of the deployment engine which <del>powers [dotCloud](https://www.dotcloud.com), a popular Platform-as-a-Service. <del>It benefits directly fro...
1
Javascript
Javascript
add rafflecopter to whitelist
4066872b8daee4ac46a1441a979c9bf4bd0fbda1
<ide><path>app.js <ide> var trusted = [ <ide> '*.twimg.com', <ide> "*.githubusercontent.com", <ide> "'unsafe-eval'", <del> "'unsafe-inline'" <add> "'unsafe-inline'", <add> "*.rafflecopter.com" <ide> ]; <ide> //var connectSrc; <ide> //if (process.env.NODE_ENV === 'development') {
1
PHP
PHP
fix some docblocks
85ed20ecf8a11a4a801c71d3d36a325c4714ff58
<ide><path>src/ORM/Query.php <ide> class Query extends DatabaseQuery implements JsonSerializable, QueryInterface <ide> * Whether the user select any fields before being executed, this is used <ide> * to determined if any fields should be automatically be selected. <ide> * <del> * @var bool <add> ...
1
PHP
PHP
fix incorrect docblock
ce1b387de298c10db8a37e95dca53ad88448955b
<ide><path>lib/Cake/Test/Case/Network/Email/MailTransportTest.php <ide> <?php <ide> /** <del> * SmtpTransportTest file <add> * MailTransportTest file <ide> * <ide> * PHP 5 <ide> *
1
Text
Text
update chinese hyperlinks
869e08e7e08877379efe5d30fda02d81ed171595
<ide><path>docs/devops.md <ide> Currently a public beta testing version is available at: <ide> | :---------- | :------- | :--------------------------------------- | <ide> | Learn | English | <https://www.freecodecamp.dev> | <ide> | | Espanol | <https://www.freecodecamp.dev/espanol> | <de...
2
PHP
PHP
fix whitespace error
44b7d013ae304a05699179bb4ea0077956c57e10
<ide><path>lib/Cake/Utility/Validation.php <ide> public static function date($check, $format = 'ymd', $regex = null) { <ide> $separator . '((1[6-9]|[2-9]\\d)\\d{2})$%'; <ide> <ide> $regex['my'] = '%^(' . $month . $separator . $year . ')$%'; <del> $regex['ym'] = '%^(' . $year . $separator . $month . ')$%'; <add>...
1
Javascript
Javascript
improve code in test-vm-preserves-property
89c8f58921f9fed3f2f284bc5c66e3877782b2f3
<ide><path>test/parallel/test-vm-preserves-property.js <ide> 'use strict'; <ide> <ide> require('../common'); <del>var assert = require('assert'); <add>const assert = require('assert'); <ide> <del>var vm = require('vm'); <add>const vm = require('vm'); <ide> <del>var x = {}; <add>const x = {}; <ide> Object.definePrope...
1
Text
Text
add batch_size to data formats docs
972820e2b3ea76d57a6971fa6feede83dfd56fd9
<ide><path>website/docs/api/data-formats.md <ide> your config and check that it's valid, you can run the <ide> > before_creation = null <ide> > after_creation = null <ide> > after_pipeline_creation = null <add>> batch_size = 1000 <ide> > <ide> > [nlp.tokenizer] <ide> > @tokenizers = "spacy.Tokenizer.v1" <ide> Defines t...
1
PHP
PHP
fix styleci issue
a3eebe0c883759b2503b77195e66cd863fce5948
<ide><path>src/Illuminate/Http/Client/PendingRequest.php <ide> public function createClient($handlerStack) <ide> } <ide> <ide> /** <del> * add handlers to the handler stack <add> * add handlers to the handler stack. <ide> * <ide> * @param \GuzzleHttp\HandlerStack $handlerStack <ide> * ...
3
Javascript
Javascript
improve arrayutils by removing unnecessary slices
bde32ee1de36c01551c13a5669b16a6e9a98f4b8
<ide><path>packages/ember-metal/lib/array.js <ide> var arrayIndexOf = Ember.arrayIndexOf = isNativeFunc(Array.prototype.indexOf) ? <ide> var slice = [].slice; <ide> <ide> Ember.ArrayUtils = { <del> map: function(obj) { <del> var args = slice.call(arguments, 1); <del> return obj.map ? obj.map.apply(obj, args) : ...
1
Javascript
Javascript
use dynamic flag in test renderer in www
b899819e77cf0b7fccafaa4bb70363c430b574df
<ide><path>packages/shared/forks/ReactFeatureFlags.test-renderer.www.js <ide> import invariant from 'shared/invariant'; <ide> import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags'; <ide> import typeof * as PersistentFeatureFlagsType from './ReactFeatureFlags.persistent'; <ide> <add>// Re-export dynamic f...
1
Python
Python
use temporary file in gcstos3operator
2c5f636e5cfac7cc246d6ed93660bf0f8e968982
<ide><path>airflow/providers/amazon/aws/hooks/s3.py <ide> def check_for_bucket(self, bucket_name: Optional[str] = None) -> bool: <ide> return False <ide> <ide> @provide_bucket_name <del> def get_bucket(self, bucket_name: Optional[str] = None) -> str: <add> def get_bucket(self, bucket_name: Option...
3
Javascript
Javascript
fix merge errors from rebase
ab9310982827fb9ff38168fcc26535e0159c01cf
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> to: user.email, <ide> from: 'team@freecodecamp.org', <ide> subject: 'Welcome to freeCodeCamp!', <del> protocol: isDev ? null : 'https', <del> host: isDev ? devHost : 'freecodecamp.org', <del> port: isDev ? nu...
2
Javascript
Javascript
avoid unnecessary usage of var
b5f0b49b9b04ec5d452b78aba5ff5a49dcc1e377
<ide><path>lib/os.js <ide> platform[SymbolToPrimitive] = () => process.platform; <ide> * @returns {string} <ide> */ <ide> function tmpdir() { <del> var path; <add> let path; <ide> if (isWindows) { <ide> path = process.env.TEMP || <ide> process.env.TMP || <ide> function getCIDR(address, netmask, fam...
1
Text
Text
fix code + link on utility/readme.md
54a87e06ba728677f5cc46804914646b97b1c2d7
<ide><path>src/Utility/README.md <ide> A ``Hash`` (as in PHP arrays) class, capable of extracting data using an intuiti <ide> <ide> ```php <ide> $things = [ <del> ['name' => 'Mark', 'age' => 15], <del> ['name' => 'Susan', 'age' => 30] <del> ['name' => 'Lucy', 'age' => 25] <add> ['name' => 'Mark', 'age' => 15], <add...
1
Javascript
Javascript
add rowspan dom property
bcc6b524fb136bdc857e64d380659624193911e1
<ide><path>src/dom/DefaultDOMPropertyConfig.js <ide> var DefaultDOMPropertyConfig = { <ide> readOnly: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, <ide> required: HAS_BOOLEAN_VALUE, <ide> role: MUST_USE_ATTRIBUTE, <add> rowSpan: null, <ide> scrollLeft: MUST_USE_PROPERTY, <ide> scrollTop: MUST_USE_PROPE...
1
Java
Java
fix checkstyle errors
a606fb4b212aeabf632bb22fe863bcbf9fcac9fc
<ide><path>spring-test/src/test/java/org/springframework/test/web/reactive/server/HttpHandlerConnectorTests.java <ide> <ide> import org.springframework.core.io.buffer.DataBuffer; <ide> import org.springframework.core.io.buffer.DefaultDataBufferFactory; <del>import org.springframework.core.testfixture.io.buffer.DataBuf...
3
Text
Text
add rich trott to the ctc
dae5bf0127e7b1fdd80996c9fe995f7941d8ebb1
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [rvagg](https://github.com/rvagg) - **Rod Vagg** &lt;rod@vagg.org&gt; <ide> * [shigeki](https://github.com/shigeki) - **Shigeki Ohtsu** &lt;ohtsu@iij.ad.jp&gt; <ide> * [trevnorris](https://github.com/trevnorris) - **Trevor N...
1
PHP
PHP
add default config properties for cache engines
2dcf3e692a98e3df24670b8a6ad1a9c74ac2e04a
<ide><path>Cake/Cache/CacheEngine.php <ide> abstract class CacheEngine { <ide> */ <ide> protected $_config = []; <ide> <add>/** <add> * Default configuration <add> * <add> * These settings apply to all cache engines, and can be overriden by a specific cache <add> * engine or runtime settings <add> * <add> * @var arr...
5
Javascript
Javascript
fix linting errors
e5449ee65fa3a8812b4f126ef04b56de16a4fc68
<ide><path>server/boot/challenge.js <ide> const dasherize = utils.dasherize; <ide> const unDasherize = utils.unDasherize; <ide> const getMDNLinks = utils.getMDNLinks; <ide> <add>/* <ide> function makeChallengesUnique(challengeArr) { <ide> // clone and reverse challenges <ide> // then filter by unique id's <ide> ...
1
Java
Java
fix typos in test code
bd3499671c7067c176898a02f70b9cdd78628911
<ide><path>spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java <ide> void copyPropertiesHonorsGenericTypeMatchesForUpperBoundedWildcard() { <ide> * {@code Number} can NOT be copied to {@code Integer}. <ide> */ <ide> @Test <del> void copyPropertiesDoesNotCopyeFromSuperTypeToSubType() { <add> vo...
19
Python
Python
fix typo on line 126
6b2b476f8633504e4c032dc948ab7dda04cd3d3f
<ide><path>scheduling/shortest_job_first.py <ide> def calculate_average_times( <ide> processes = list(range(1, no_of_processes + 1)) <ide> <ide> for i in range(no_of_processes): <del> print("Enter the arrival time and brust time for process:--" + str(i + 1)) <add> print("Enter the arrival time an...
1
Python
Python
fix data parallelism in trainer
04dc65e5c6adbfe43944beedfa12fb6b7bec0e60
<ide><path>src/transformers/training_args.py <ide> class TrainingArguments: <ide> default=0.0, metadata={"help": "The label smoothing epsilon to apply (zero means no label smoothing)."} <ide> ) <ide> adafactor: bool = field(default=False, metadata={"help": "Whether or not to replace Adam by Adafactor."}...
2
Javascript
Javascript
remove modules that require intl
540b79605b7c383a6343afdce6322bc256c3023e
<ide><path>benchmark/fixtures/require-builtins.js <ide> const list = [ <ide> 'http', <ide> 'http2', <ide> 'https', <del> 'inspector', <ide> 'module', <ide> 'net', <ide> 'os', <ide> const list = [ <ide> 'string_decoder', <ide> 'timers', <ide> 'tls', <del> 'trace_events', <ide> 'tty', <ide> 'url',...
1
PHP
PHP
add trailing [] to multi select
bd448bc54ab0924239bc7cedb9398345547fbe36
<ide><path>Cake/View/Input/SelectBox.php <ide> public function render($data) { <ide> unset($data['disabled']); <ide> } <ide> <add> $template = 'select'; <add> if (!empty($data['multiple'])) { <add> $template = 'selectMultiple'; <add> unset($data['multiple']); <add> } <ide> $attrs = $this->_templates->for...
2
Python
Python
use info module for spacy.info()
cd94ea109536c8cb06cba8d875c2ae1754e31654
<ide><path>spacy/__init__.py <ide> from pathlib import Path <ide> from .util import set_lang_class, get_lang_class, parse_package_meta <ide> from .deprecated import resolve_model_name <add>from .info import info <ide> <ide> from . import en <ide> from . import de <ide> def load(name, **overrides): <ide> return cls...
1
Java
Java
abersnaze/rxjava into string-observable
3c156d4096f35bda55eb5f38265e2ef050259ea1
<ide><path>rxjava-contrib/rxjava-string/src/main/java/rx/observables/StringObservable.java <ide> /** <ide> * Copyright 2013 Netflix, Inc. <del> * <add> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use this file except in compliance with the License. <ide> * You may ...
2
Ruby
Ruby
add high sierra symbol
5a9dad0bf0534ac4a9e16a57e6d2b17c96b2244a
<ide><path>Library/Homebrew/os/mac/version.rb <ide> module OS <ide> module Mac <ide> class Version < ::Version <ide> SYMBOLS = { <add> high_sierra: "10.13", <ide> sierra: "10.12", <ide> el_capitan: "10.11", <ide> yosemite: "10.10",
1
Python
Python
add support for gp3 and io2 volumes
c84b341c86bc1e2c18ecb0db28967908d04c6824
<ide><path>libcloud/compute/drivers/ec2.py <ide> } <ide> <ide> VALID_EC2_REGIONS = REGION_DETAILS_PARTIAL.keys() <del>VALID_VOLUME_TYPES = ['standard', 'io1', 'gp2', 'st1', 'sc1'] <add>VALID_VOLUME_TYPES = ['standard', 'io1', 'io2', 'gp2', 'gp3', 'st1', 'sc1'] <ide> <ide> <ide> class EC2NodeLocation(NodeLocation): <...
2
Text
Text
correct doc sentence [ci skip]
2816494f5acdfb08d3b0fa54d91e2f41d9acbbe5
<ide><path>guides/source/active_record_querying.md <ide> Client.unscoped { <ide> Dynamic Finders <ide> --------------- <ide> <del>For every field (also known as an attribute) you define in your table, Active Record provides a finder method. If you have a field called `first_name` on your `Client` model for example, yo...
1
Java
Java
remove okhttp from release build for instagram
e1e86a1174d57f75d7b314fe151c46cbac6800f2
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/webworkers/WebWorkers.java <ide> public static MessageQueueThread createWebWorkerThread(int id, MessageQueueThrea <ide> * NB: We write to a temp file instead of returning a String because, depending on the size of the <ide> * worker script, allocatin...
1
Ruby
Ruby
remove unnecessary reduce in duration#inspect
3cfb05daa4f1e76eaca0a79fc9df340af02ee3dc
<ide><path>activesupport/lib/active_support/duration.rb <ide> def inspect #:nodoc: <ide> return "0 seconds" if parts.empty? <ide> <ide> parts. <del> reduce(::Hash.new(0)) { |h, (l, r)| h[l] += r; h }. <ide> sort_by { |unit, _ | PARTS.index(unit) }. <ide> map { |unit, val| "#{val...
1
Python
Python
add fibonacci series using recursion
8fb4df5367b5c03d2851532063f6fa781fe2f980
<ide><path>Maths/fibonacciSeries.py <add># Fibonacci Sequence Using Recursion <add> <add>def recur_fibo(n): <add> if n <= 1: <add> return n <add> else: <add> return(recur_fibo(n-1) + recur_fibo(n-2)) <add> <add>limit = int(input("How many terms to include in fionacci series:")) <add> <add>if limit <...
1
Ruby
Ruby
add missing require
302fdb7677b95ac1c428bd5c545252bc52ac2313
<ide><path>activesupport/lib/active_support/current_attributes.rb <ide> <ide> require "active_support/callbacks" <ide> require "active_support/core_ext/enumerable" <add>require "active_support/core_ext/module/delegation" <ide> <ide> module ActiveSupport <ide> # Abstract super class that provides a thread-isolated a...
1
PHP
PHP
fix bug in soft delete scope application
acf0fb9bbf24972defafc2844b9a524e0855306e
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function withGlobalScope($identifier, $scope) <ide> { <ide> $this->scopes[$identifier] = $scope; <ide> <add> if (method_exists($scope, 'extend')) { <add> $scope->extend($this); <add> } <add> <ide> return $...
3
PHP
PHP
add test that covers the deprecated locale method
5f7d23291cb28d4a1721e022ee0614bdbcc9d7f9
<ide><path>tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php <ide> public function testFindSingleLocaleWithgetConditions() <ide> $this->assertEquals($expected, $row->toArray()); <ide> } <ide> <add> /** <add> * Tests the deprecated locale method. <add> * <add> * @group deprecated <add> ...
1
Text
Text
fix few typos
478a14a61934e617988f70aaf692fcd6d7b1e226
<ide><path>website/docs/usage/layers-architectures.md <ide> overview of the `TrainablePipe` methods used by <ide> <ide> </Infobox> <ide> <del>### Example: Entity elation extraction component {#component-rel} <add>### Example: Entity relation extraction component {#component-rel} <ide> <ide> This section outlines an ...
1
Javascript
Javascript
add projectseptember app in showcase
d3929c62d9bcba174c6261a877247e1d0234b22c
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/posyt-anonymously-meet-right/id1037842845?mt=8', <ide> author: 'Posyt.com', <ide> }, <add> { <add> name: 'Project September', <add> icon: 'http://a2.mzstatic.com/us/r30/Purple49/v4/88/0f/3b/8...
1
Javascript
Javascript
throw error when compiling multiple roots
04a62e83bcd4067749fa5e2eb0181bc43500169c
<ide><path>src/Compiler.js <ide> Compiler.prototype = { <ide> var index = 0, <ide> template, <ide> parent = templateElement.parent(); <add> if (templateElement.length > 1) { <add> // https://github.com/angular/angular.js/issues/338 <add> throw Error("Cannot compile multiple element root...
4
Javascript
Javascript
pass maxdigits to labelfn
291bf4d835ccc348530a488522d285541b897d69
<ide><path>src/text-editor-component.js <ide> class LineNumberGutterComponent { <ide> number = softWrapped ? '•' : bufferRow + 1 <ide> number = NBSP_CHARACTER.repeat(maxDigits - number.length) + number <ide> } else { <del> number = this.props.labelFn({bufferRow, scre...
2
Java
Java
expose mapped handler as an exchange attribute
67330dfc23564ac830e6b33143cf48bd824dfa67
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/HandlerMapping.java <ide> public interface HandlerMapping { <ide> <ide> /** <del> * Name of the {@link ServerWebExchange} attribute that contains the <del> * best matching pattern within the handler mapping. <del> * <p>Note: This attribute is...
6
Mixed
Javascript
add a non-destroying iterator to readable
df85d37050bf2c2681e00d4c80b0907fe4c19da2
<ide><path>doc/api/stream.md <ide> async function print(readable) { <ide> print(fs.createReadStream('file')).catch(console.error); <ide> ``` <ide> <del>If the loop terminates with a `break` or a `throw`, the stream will be <del>destroyed. In other terms, iterating over a stream will consume the stream <add>If the loop...
3
Javascript
Javascript
fix lint errors
9c16e5c67313077dd1b75ccfaf6e006e7c072dec
<ide><path>spec/integration/helpers/start-atom.js <ide> const buildAtomClient = async (args, env) => { <ide> host: 'localhost', <ide> port: ChromedriverPort, <ide> capabilities: { <del> browserName: 'chrome', //Webdriverio will figure it out on it's own, but I will leave it in case it's helpful in the ...
3
Ruby
Ruby
parenthesize argument(s) for future version'
eca31da253471f2f8fc2893e35281aa0c7a357ed
<ide><path>Library/Homebrew/formula.rb <ide> def initialize url, specs=nil <ide> # Returns a suitable DownloadStrategy class that can be <ide> # used to retreive this software package. <ide> def download_strategy <del> return detect_download_strategy @url if @using.nil? <add> return detect_download_strategy...
1
Python
Python
add a test case for new method
5685a7b0339d7f697cbcdb8f0e8e0a74c956a26b
<ide><path>libcloud/test/compute/test_gce.py <ide> def test_ex_instancegroup_set_named_ports(self): <ide> {'name': 'foo', <ide> 'port': 4444}) <ide> <add> def test_ex_instancegroupmanager_set_autohealing_policies(self): <add> kwargs = {'host': 'lchost', <a...
1
Python
Python
fix metaclass usage for py3
83f76585725fd380b61f35576bb1c307fe2a1a5e
<ide><path>flask/views.py <ide> :license: BSD, see LICENSE for more details. <ide> """ <ide> from .globals import request <add>from ._compat import with_metaclass <ide> <ide> <ide> http_method_funcs = frozenset(['get', 'post', 'head', 'options', <ide> def __new__(cls, name, bases, d): <ide> return rv <ide...
1
PHP
PHP
allow modulus of 0
a61b5ae0d9830df5819d03af4e47c3c256a5dce0
<ide><path>src/View/Helper/PaginatorHelper.php <ide> public function numbers(array $options = []) <ide> $templater->{$method}($options['templates']); <ide> } <ide> <del> if ($options['modulus'] && $params['pageCount'] > $options['modulus']) { <add> if ($options['modulus'] !== false &&...
2
Javascript
Javascript
fix a lint error
d8905b524d2ff3d7590b56ed990e6602de526793
<ide><path>web/viewer.js <ide> var PageView = function(container, content, id, pageWidth, pageHeight, <ide> for (var i = 0; i < links.length; i++) { <ide> var link = document.createElement('a'); <ide> link.style.left = (Math.floor(links[i].x - this.x) * scale) + 'px'; <del> link.style.top = (Math.f...
1
Text
Text
update v2.2 page [ci skip]
66aa0d479fa8710bc81257d4b18a11a0fe65f73d
<ide><path>website/docs/usage/v2-2.md <ide> menu: <ide> <ide> spaCy v2.2 features improved statistical models, new pretrained models for <ide> Norwegian and Lithuanian, better Dutch NER, as well as a new mechanism for <del>storing language data that makes the installation about **7&times; smaller** on <del>disk. We've...
1
Ruby
Ruby
use default argument in test
e4af759bf3ee621e9ad37ad71c637c24501205a5
<ide><path>railties/test/application/rake/multi_dbs_test.rb <ide> def db_migrate_and_schema_cache_dump_and_schema_cache_clear <ide> end <ide> end <ide> <del> def db_migrate_and_schema_dump_and_load(schema_format) <add> def db_migrate_and_schema_dump_and_load(schema_format = "ruby") <ide> ...
1
Javascript
Javascript
simplify the output scale for css zoom
52e429550ce43edbedb6f94795f41478f06dca6f
<ide><path>web/page_view.js <ide> var PageView = function pageView(container, id, scale, <ide> var outputScale = getOutputScale(ctx); <ide> <ide> if (USE_ONLY_CSS_ZOOM) { <del> // Use a scale that will give a 100% width canvas. <del> outputScale.sx *= 1 / (viewport.scale / CSS_UNITS); <del> outp...
1
Python
Python
use translatable error strings. refs
6cb6510132b319c96b28bea732032aaf2d495895
<ide><path>rest_framework/exceptions.py <ide> (`django.http.Http404` and `django.core.exceptions.PermissionDenied`) <ide> """ <ide> from __future__ import unicode_literals <add> <add>from django.utils.translation import ugettext_lazy as _ <add>from django.utils.translation import ungettext_lazy <ide> from rest_framewor...
1
Python
Python
remove tests in old structure
36a41720af85ec282054bd3db1d160d7e151e73c
<ide><path>tests/test_graph_model.py <del>from __future__ import print_function <del>import pytest <del>import numpy as np <del>import os <del>np.random.seed(1337) <del> <del>from keras.models import Graph, Sequential <del>from keras.layers import containers <del>from keras.layers.core import Dense, Activation <del>fro...
2
PHP
PHP
fix shaky test
b17f5337affb28802c861e8f8af4fb1d5bec2582
<ide><path>tests/Integration/Http/ThrottleRequestsTest.php <ide> public function getEnvironmentSetUp($app) <ide> <ide> public function test_lock_opens_immediately_after_decay() <ide> { <del> Carbon::setTestNow(null); <add> Carbon::setTestNow(Carbon::create(2018, 1, 1, 0, 0, 0)); <ide> <ide> ...
1
Text
Text
replace some words
33d0db176a23bb18a322ad27f696596007aa96e5
<ide><path>curriculum/challenges/russian/03-front-end-libraries/front-end-libraries-projects/build-a-drum-machine.russian.md <ide> localeTitle: Построение барабанной машины <ide> --- <ide> <ide> ## Description <del><section id="description"> <strong>Цель.</strong> Создайте приложение <a href="https://codepen.io" targe...
1
Javascript
Javascript
add https options to rn cli server
2c32acb755730ac20775aec4aad50d853d0577bf
<ide><path>local-cli/server/runServer.js <ide> const defaultSourceExts = require('metro-bundler/build/defaults').sourceExts; <ide> const defaultPlatforms = require('metro-bundler/build/defaults').platforms; <ide> const defaultProvidesModuleNodeModules = require('metro-bundler/build/defaults') <ide> .providesModuleNod...
4
Javascript
Javascript
fix resource stack for deep stacks
2ba93e1db4992e73af42c47b445a54c2a767bd6e
<ide><path>lib/internal/async_hooks.js <ide> function hasAsyncIdStack() { <ide> // This is the equivalent of the native push_async_ids() call. <ide> function pushAsyncContext(asyncId, triggerAsyncId, resource) { <ide> const offset = async_hook_fields[kStackLength]; <add> execution_async_resources[offset] = resource;...
2
Mixed
Ruby
keep inner join when merging relations
249ddd0c39e6f24145ae1150d4c8eec9f11219b1
<ide><path>activerecord/CHANGELOG.md <add>* Merging two relations representing nested joins no longer transforms the joins of <add> the merged relation into LEFT OUTER JOIN. Example to clarify: <add> <add> ``` <add> Author.joins(:posts).merge(Post.joins(:comments)) <add> # Before the change: <add> #=> ...
3
Javascript
Javascript
reduce size by eliminating single-use variable
0aa832afec04215ed5e14b1cc5fc287ad7939792
<ide><path>src/manipulation.js <ide> var <ide> <ide> // checked="checked" or checked <ide> rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, <del> rscriptTypeMasked = /^true\/(.*)/, <ide> rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; <ide> <ide> // Prefer a tbody over its parent table for containing new...
1
PHP
PHP
fix cs error
cf569b9c15834c4e070d799ca80a438795d80cb4
<ide><path>src/Auth/AbstractPasswordHasher.php <ide> <?php <ide> declare(strict_types=1); <add> <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide><path>src/Auth/BaseAuthenticate.php <ide> <?php <ide>...
300
Javascript
Javascript
use dots reporter for sauce
8bc02f72c9a756ae1e8ac11f6435db9a74141207
<ide><path>Gruntfile.js <ide> module.exports = function (grunt) { <ide> browsers: ['Firefox'], <ide> }, <ide> sauce: { <add> options: {reporters: ['dots']}, <ide> singleRun: true, <ide> browsers: [ <ide> 'sl_chrom...
1
Javascript
Javascript
remove console.log statement
e03b0b0dcf85dc44ec21c8aefe3cc26f4b92fc91
<ide><path>test/binCases/errors/parse/test.js <ide> module.exports = function testAssertions(code, stdout, stderr) { <ide> code.should.be.eql(2); <ide> <del> console.log(stdout); <ide> stdout[0].should.containEql("Hash: "); <ide> stdout[1].should.containEql("Version: "); <ide> stdout[2].should.containEql("Time: ")...
1
Ruby
Ruby
add test coverage to module setup extensions
783deae99a4850f597135146b19e7ee4622da94e
<ide><path>activesupport/test/core_ext/module/setup_test.rb <add>require 'abstract_unit' <add>require 'active_support/core/time' <add>require 'active_support/core_ext/module/setup' <add> <add>class SetupTest < Test::Unit::TestCase <add> module Baz <add> module ClassMethods <add> def baz <add> "baz" <add...
1
Ruby
Ruby
add brew doctor check for dyld vars
a634dc6a2c2e0a4027f2fa4e95a111f88e00c1a7
<ide><path>Library/Homebrew/brew_doctor.rb <ide> def check_for_config_scripts <ide> end <ide> end <ide> <add>def check_for_dyld_vars <add> if ENV['DYLD_LIBRARY_PATH'] <add> puts <<-EOS.undent <add> Setting DYLD_LIBARY_PATH can break dynamic linking. <add> You should probably unset it. <add> <add> EO...
1
Ruby
Ruby
remove some caching
099fd0efc47225afde9394d5f4225fc8ddcd4ae8
<ide><path>actionpack/lib/action_dispatch/routing/url_for.rb <ide> def url_for(options = nil) <ide> protected <ide> <ide> def optimize_routes_generation? <del> return @_optimized_routes if defined?(@_optimized_routes) <del> @_optimized_routes = _routes.optimize_routes_generation? && default_u...
1
Python
Python
add on_gpu() check
83e285fd00b3dba52c3a829010ac6d9f6e6610bc
<ide><path>keras/layers/convolutional.py <ide> <ide> import theano <ide> import theano.tensor as T <del>if theano.config.device[:3] == 'gpu': <del> from theano.sandbox.cuda import dnn <ide> <ide> from .. import activations, initializations, regularizers, constraints <del>from ..utils.theano_utils import shared_zer...
2
Text
Text
add some info on `tty#setrawmode()`
a0a6ff2ea5afc93c5d6b592ebecc17ff5b4ffa6a
<ide><path>doc/api/tty.md <ide> raw device. Defaults to `false`. <ide> added: v0.7.7 <ide> --> <ide> <add>Allows configuration of `tty.ReadStream` so that it operates as a raw device. <add> <add>When in raw mode, input is always available character-by-character, not <add>including modifiers. Additionally, all special ...
1
Go
Go
add tests for docker stats versioning
8ceded6d0384bef32dfddf800057fa08d910e95e
<ide><path>integration-cli/docker_api_stats_test.go <ide> import ( <ide> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/pkg/integration/checker" <add> "github.com/docker/docker/pkg/version" <ide> "github.com/go-check/check" <ide> ) <ide> <add>var expectedNetworkInterfaceStats = strings....
1
Javascript
Javascript
add test for `jquery.isplainobject(localstorage)`
ce6c83f710c28108ccb4d50a7b924baa890dc961
<ide><path>test/unit/core.js <ide> QUnit[ typeof Symbol === "function" ? "test" : "skip" ]( "isPlainObject(Symbol)" <ide> assert.equal( jQuery.isPlainObject( Object( Symbol() ) ), false, "Symbol inside an object" ); <ide> } ); <ide> <add>QUnit.test( "isPlainObject(localStorage)", function( assert ) { <add> assert.exp...
1
Text
Text
remove comments before tests
7d7a1127a7ea1dbe5dbb5f836902b7ba6430983b
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/write-concise-declarative-functions-with-es6.english.md <ide> Refactor the function <code>setGear</code> inside the object <code>bicycle</code <ide> ```yml <ide> tests: <ide> - text: Traditional function expression should not be...
1
Text
Text
fix mistake in http2stream.respondwithfile
51bc7fa59896d1b1623255b5f3c0122e88f99676
<ide><path>doc/api/http2.md <ide> of the given file: <ide> <ide> If an error occurs while attempting to read the file data, the `Http2Stream` <ide> will be closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` <del>code. <add>code. If the `onError` callback is defined it will be called, otherwise <add...
1
Python
Python
fix runtime dtype
170eb70b77cf8334856492b9a6cc969cf35c5704
<ide><path>official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_deeplab.py <ide> def panoptic_deeplab_coco() -> cfg.ExperimentConfig: <ide> <ide> config = cfg.ExperimentConfig( <ide> runtime=cfg.RuntimeConfig( <del> mixed_precision_dtype='float32', enable_xla=True), <add> mixed_pr...
1
Ruby
Ruby
optimize some code around merge
056685373493b8431905202f1d7947759b783386
<ide><path>activerecord/lib/active_record/associations/through_association.rb <ide> module ThroughAssociation #:nodoc: <ide> def target_scope <ide> scope = super <ide> chain[1..-1].each do |reflection| <del> scope = scope.merge( <add> scope.merge!( <ide> r...
1
Go
Go
remove redundant period
cb5b8767b6988855daa1a264202be929c24c6177
<ide><path>api/client/run.go <ide> import ( <ide> ) <ide> <ide> const ( <del> errCmdNotFound = "not found or does not exist." <del> errCmdCouldNotBeInvoked = "could not be invoked." <add> errCmdNotFound = "not found or does not exist" <add> errCmdCouldNotBeInvoked = "could not be invoked" <ide> ) <id...
2
Text
Text
add more examples on how to set key-value pairs
3a82e9f8571d229c730e74df749136c222cafaa2
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md <ide> forumTopicId: 301153 <ide> <ide> ## Description <ide> <section id='description'> <del>At their most basic, objects are just collections of <dfn>key-valu...
1
PHP
PHP
change method names and vars
2b2cde66defa59ffa02ca117262983acae8eda46
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php <ide> protected function getConfigurationFiles(Application $app) <ide> $configPath = realpath($app->configPath()); <ide> <ide> foreach (Finder::create()->files()->name('*.php')->in($configPath) as $file) { <del> $nesting = ...
1
Ruby
Ruby
add xcode 4.3.3
b9f4b682b507d093bb779a5d5355edc93c22b3cb
<ide><path>Library/Homebrew/utils.rb <ide> def prefer_64_bit? <ide> "4.2" => {:llvm_build_version=>2336, :clang_version=>"3.0", :clang_build_version=>211}, <ide> "4.3" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318}, <ide> "4.3.1" => {:llvm_build_version=>2336, :clang_versio...
1
PHP
PHP
add $_ids option in association
e94a17740303b46c116ad57092127a6406a267b7
<ide><path>src/ORM/Marshaller.php <ide> protected function _mergeBelongsToMany($original, $assoc, $value, $options) <ide> { <ide> $hasIds = array_key_exists('_ids', $value); <ide> $associated = isset($options['associated']) ? $options['associated'] : []; <add> $_ids = array_key_exists('_ids',...
1