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
Javascript
Javascript
add setnumviews() to webglmultiview
16c4b71837b24cd207225d2f76d9f16f2b558dec
<ide><path>src/renderers/WebGLMultiviewRenderTarget.js <ide> WebGLMultiviewRenderTarget.prototype = Object.assign( Object.create( WebGLRender <ide> <ide> return this; <ide> <add> }, <add> <add> setNumViews: function ( numViews ) { <add> <add> if ( this.numViews !== numViews ) { <add> <add> this.numViews = numVie...
4
Ruby
Ruby
move debugger into middleware
c80fe1093deeb57eee8df11d3c4120158634cb81
<ide><path>railties/lib/commands/server.rb <ide> app = Rack::Builder.new { <ide> use Rails::Rack::Logger <ide> use Rails::Rack::Static <add> use Rails::Rack::Debugger if options[:debugger] <ide> run ActionController::Dispatcher.new <ide> }.to_app <ide> end <ide> <del>if options[:debugger] <del> beg...
3
Javascript
Javascript
fix abc order of docs nav
fab8e38759f620f242557e1219c2e6c8c5766f1f
<ide><path>website/server/extractDocs.js <ide> var components = [ <ide> '../Libraries/Image/Image.ios.js', <ide> '../Libraries/CustomComponents/ListView/ListView.js', <ide> '../Libraries/Components/MapView/MapView.js', <del> '../Libraries/CustomComponents/Navigator/Navigator.js', <ide> '../Libraries/Modal/Moda...
1
Javascript
Javascript
add mocha rfc 232 test blueprints for helpers
e8b58eed1b58edd902ba5b6782cc18ccdb3b7c34
<ide><path>blueprints/helper-test/mocha-rfc-232-files/tests/__testType__/__path__/__name__-test.js <add>import { expect } from 'chai'; <add><% if (testType == 'integration') { %>import { describe, it } from 'mocha'; <add>import { setupRenderingTest } from 'ember-mocha'; <add>import { render } from '@ember/test-helpers'...
4
Text
Text
update the style guide
de716df2e512e50d31c6ddec4c14508a8bd2ddaf
<ide><path>docs/style-guide-for-guide-articles.md <ide> Use Markdown style links in your articles to link to other websites. <ide> > becomes <ide> > `https://example.com/a-long/url/to-a-webpage/` <ide> <add>## List <add> <add>You can make an unordered list by preceding one or more lines of text with - or * <add>To ord...
1
Ruby
Ruby
fix hash#slice code example [ci skip]
255cefbff44d0bf0faeec43a5112e88b7c4424c2
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> require 'active_support/core_ext/module/anonymous' <ide> require 'action_mailer/log_subscriber' <ide> <del>module ActionMailer # :nodoc: <add>module ActionMailer # :notdoc: <ide> # = Action Mailer <ide> # <ide> # Action Mailer allows you to send email from ...
2
Ruby
Ruby
remove unused method / fix documentation
082130d1d43620ca29c2f2f169a5059fa0065a8c
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def find_all_with_query(query) # :nodoc: <ide> # because Resolver guarantees that the arguments are present and <ide> # normalized. <ide> def find_templates(name, prefix, partial, details, outside_app_allowed = false, locals = []) <del> r...
1
Text
Text
add note for windows build path
43029da762fafabf1d5594b83ee4fbab91dc35d0
<ide><path>BUILDING.md <ide> More Developer Tools...`. This step will install `clang`, `clang++`, and <ide> * You may want to setup [firewall rules](tools/macosx-firewall.sh) <ide> to avoid popups asking to accept incoming network connections when running tests: <ide> <add>If the path to your build directory contains ...
1
Text
Text
fix new nits in links
3070d53e31a09be5f8b121dc13d844d04a5541ee
<ide><path>doc/api/http.md <ide> const req = http.request(options, (res) => { <ide> [`agent.createConnection()`]: #http_agent_createconnection_options_callback <ide> [`agent.getName()`]: #http_agent_getname_options <ide> [`destroy()`]: #http_agent_destroy <del>[`getHeader(name)`]: #requestgetheadername <add>[`getHeader...
3
Text
Text
add info on post-publishing arm6 builds
4e65f9d504a8cb6490a1eebbdc827f801f70fca9
<ide><path>doc/releases.md <ide> If you have an error on Windows and need to start again, be aware that you'll ge <ide> <ide> ARMv7 takes the longest to compile. Unfortunately ccache isn't as effective on release builds, I think it's because of the additional macro settings that go in to a release build that nullify p...
1
Text
Text
add more immutability links
c54704355b35ccb76970a8633ea82dfe38557754
<ide><path>docs/usage/structuring-reducers/ImmutableUpdatePatterns.md <ide> your reducers are using Redux Toolkit and Immer. <ide> <ide> In addition, Redux Toolkit's [`createSlice` utility](https://redux-toolkit.js.org/api/createSlice) will auto-generate action creators <ide> and action types based on the reducer func...
1
Python
Python
correct an subsampling issue on python 3
982054becd85e443b0f6e69e1157f9299fabcd83
<ide><path>glances/compat.py <ide> def subsample(data, sampling): <ide> if len(data) <= sampling: <ide> return data <ide> sampling_length = int(round(len(data) / float(sampling))) <del> return [mean(data[s * sampling_length:(s + 1) * sampling_length]) for s in xrange(0, sampling)] <add> return [me...
2
Python
Python
add basic tests for np.array
16c55bad4aa4c49116d963eee85550258c83b934
<ide><path>numpy/core/tests/test_api.py <ide> from numpy.compat import sixu <ide> <ide> # Switch between new behaviour when NPY_RELAXED_STRIDES_CHECKING is set. <del>NPY_RELAXED_STRIDES_CHECKING = np.ones((10,1), order='C').flags.f_contiguous <add>NPY_RELAXED_STRIDES_CHECKING = np.ones((10, 1), order='C').flags.f_cont...
1
Python
Python
remove unnecessary imports and assignments
89ede72fca942e7ceffd414e795e3d2c5e09ed0a
<ide><path>test/message/testcfg.py <ide> <ide> import test <ide> import os <del>from os.path import join, dirname, exists, basename, isdir <add>from os.path import join, exists, basename, isdir <ide> import re <ide> <ide> FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") <ide><path>test/testpy/__init__.py <ide> <ide> i...
7
PHP
PHP
use undeprecated method
f74e4de295f564c6bba5b6d67966289426aaf259
<ide><path>tests/TestCase/Error/ExceptionRendererTest.php <ide> public function testMissingLayoutPathRenderSafe() <ide> 'Controller.beforeRender', <ide> function (Event $event) { <ide> $this->called = true; <del> $event->subject()->viewBuilder()->layoutPath('boom')...
1
Python
Python
fix special tokens mask in encode
fe92755b992eb61239ad361abae3b71f86bbbba1
<ide><path>transformers/tokenization_utils.py <ide> def prepare_for_model(self, ids, pair_ids=None, max_length=None, add_special_tok <ide> token_type_ids = [0] * len(ids) + ([1] * len(pair_ids) if pair else []) <ide> <ide> if return_special_tokens_mask: <del> encoded_inputs["special_toke...
1
Ruby
Ruby
spell existence properly (closes )
b6e7cc63de744c08f7b310ab879ff20af17572e8
<ide><path>actionpack/lib/action_controller/base.rb <ide> def render_action(action_name, status = nil, with_layout = true) <ide> <ide> def render_file(template_path, status = nil, use_full_path = false, locals = {}) <ide> add_variables_to_assigns <del> assert_existance_of_template_file(template_pa...
1
Text
Text
remove extraneous files from contributor tools
e5763e9bb431fd999e460adc316a60a57780b288
<ide><path>tools/contributor/CODE_OF_CONDUCT.md <del>> Our Code of Conduct is available here: <https://code-of-conduct.freecodecamp.org/> <ide><path>tools/contributor/LICENSE.md <del>BSD 3-Clause License <del> <del>Copyright (c) 2018, freeCodeCamp.org <del>All rights reserved. <del> <del>Redistribution and use in sourc...
3
Javascript
Javascript
use __webpack_require__.i to escape brakets
3b6ef1a7abfef15f6ab5bbef30245297f6555be1
<ide><path>lib/DefinePlugin.js <ide> class DefinePlugin { <ide> }(definitions, "")); <ide> <ide> function stringifyObj(obj) { <del> return "({" + Object.keys(obj).map((key) => { <add> return "__webpack_require__.i({" + Object.keys(obj).map((key) => { <ide> let code = obj[key]; <ide> return ...
1
Text
Text
remove node-report from support tiers
819ff24aa1b7d883aaa4600c69fbb4969b352596
<ide><path>doc/contributing/diagnostic-tooling-support-tiers.md <ide> The tools are currently assigned to Tiers as follows: <ide> <ide> | Tool Type | Tool/API Name | Regular Testing in Node.js CI | Integrated with Node.js | Target Tier | <ide> | --------- | ------------------------- | ---------------------...
1
Ruby
Ruby
add test case for joined pluck
6cb956592cc5deb5496729f1e09ca9a4cc22868c
<ide><path>activerecord/test/cases/calculations_test.rb <ide> def test_calculation_with_polymorphic_relation <ide> assert_equal part.id, ShipPart.joins(:trinkets).sum(:id) <ide> end <ide> <add> def test_pluck_joined_with_polymorphic_relation <add> part = ShipPart.create!(name: "has trinket") <add> part.tr...
1
Javascript
Javascript
adjust layout to show youtube controls
c80bc0086e9cef1c2f843bead3160ad4c7aaed85
<ide><path>news/routes/Show/Show.js <ide> import Youtube from 'react-youtube'; <ide> import { Image } from 'react-bootstrap'; <ide> <ide> import Author from './components/Author'; <del>import { Loader } from '../../../common/app/helperComponents'; <add>import { Loader, Spacer } from '../../../common/app/helperComponen...
1
Python
Python
fix flake8 error
70280db22e87f669c9b142bd0dd1852261cbe94b
<ide><path>libcloud/compute/drivers/packet.py <ide> def ex_delete_bgp_session(self, session_uuid): <ide> res = self.connection.request(path, method='DELETE') <ide> return res.status == httplib.OK # or res.status == httplib.NO_CONTENT <ide> <del> def ex_list_events_for_node(self, node, include=None,...
1
Ruby
Ruby
request no byte code python when bottling."
f155b0570e97c51a88392b91062f4a74a85b1f1b
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> def setup_build_environment(formula=nil) <ide> self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks" <ide> end <ide> <del> self['PYTHONDONTWRITEBYTECODE'] = "1" if ARGV.build_bottle? <del> <ide> # Os is the default Apple uses for all its stuff ...
2
Java
Java
implement release of fabricuimanager resources
8529b1ee913229ba0696399a3132c2bd4034eead
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java <ide> public void onTransitionToBridgeIdle() { <ide> mBridgeIdleSemaphore.release(); <ide> } <ide> <add> @Override <add> public void onBridgeDestroyed() { <add> // Do nothing <add> } <add> <id...
8
Ruby
Ruby
add ordinalize to fixnum and bignum instances
dba6b8b46f93ed0116755bea17cfbce7ca6d7c72
<ide><path>activesupport/lib/active_support/core_ext/fixnum.rb <ide> require File.dirname(__FILE__) + '/fixnum/even_odd' <add>require File.dirname(__FILE__) + '/fixnum/inflections' <ide> <ide> class Fixnum #:nodoc: <ide> include ActiveSupport::CoreExtensions::Fixnum::EvenOdd <add> include ActiveSupport::CoreExtensi...
2
Javascript
Javascript
improve coverage for readline.interface
f51c44d32560439f214c4594bb2f8242ca1789a2
<ide><path>test/parallel/test-readline-interface.js <ide> function isWarned(emitter) { <ide> rli.close(); <ide> } <ide> <add> { <add> // Back and Forward one character <add> const fi = new FakeInput(); <add> const rli = new readline.Interface({ <add> input: fi, <add> output: f...
1
Go
Go
fix bug in engine.sender
9236e088eb5a9a6d662b08ef7983dbecf01e6ef0
<ide><path>engine/remote.go <ide> func (s *Sender) Handle(job *Job) Status { <ide> var status int <ide> r.NewRoute().KeyStartsWith("cmd", "status").Handler(func(p []byte, f *os.File) error { <ide> cmd := data.Message(p).Get("cmd") <del> if len(cmd) != 3 { <add> if len(cmd) != 2 { <ide> return fmt.Errorf("usage...
1
PHP
PHP
add throttlesexceptionswithredis job middleware
35071ab6ec3c906c0f26d153e743770e8df86079
<ide><path>src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php <add><?php <add> <add>namespace Illuminate\Queue\Middleware; <add> <add>use Illuminate\Container\Container; <add>use Illuminate\Contracts\Redis\Factory as Redis; <add>use Illuminate\Redis\Limiters\DurationLimiter; <add>use Illuminate\Support\In...
3
Ruby
Ruby
handle redirects in get_content_details
5e9057500419d1a2b41efe784e9f12ae232e7f6e
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def problem(text) <ide> def get_content_details(url) <ide> out = {} <ide> output, = curl_output "--connect-timeout", "15", "--include", url <del> split = output.partition("\r\n\r\n") <del> headers = split.first <del> out[:status] = headers[%r{HTTP\/....
1
Ruby
Ruby
require clt headers on 10.14
e5212d74a6166b1c84bcc32910705da89cc1a95b
<ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb <ide> def fatal_development_tools_checks <ide> check_xcode_minimum_version <ide> check_clt_minimum_version <ide> check_if_xcode_needs_clt_installed <add> check_if_clt_needs_headers_installed <ide> ].freeze <ide> ...
2
Java
Java
fix concat breaks with double oncompleted
cade58c419cc3877ad55d2aaa2241723531a26ce
<ide><path>src/main/java/rx/internal/operators/OperatorConcat.java <ide> void subscribeNext() { <ide> <ide> private final Subscriber<T> child; <ide> private final ConcatSubscriber<T> parent; <add> @SuppressWarnings("unused") <add> private volatile int once = 0; <add> @SuppressWarni...
2
Text
Text
add 2.18.0-beta.4 to the changelog
27a8df9c5916795c869e985fafcab69bb67af01e
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.18.0-beta.4 (December 19, 2017) <add>- [#15982](https://github.com/emberjs/ember.js/pull/15982) [BUGFIX] Fix issue with unchaining ChainNodes (again) <add> <ide> ### 2.18.0-beta.3 (December 12, 2017) <ide> <ide> - [#15924](https://github.com/emberjs/emb...
1
PHP
PHP
fix code style
96d9ac521de59de99c83c56b8a64067cdbf3b038
<ide><path>src/Illuminate/Database/Eloquent/Collection.php <ide> public function getQueueableConnection() <ide> } <ide> <ide> /** <del> * Get the Eloquent query builder from the collection <add> * Get the Eloquent query builder from the collection. <ide> * <ide> * @return Illuminate\Database\...
1
Python
Python
add ex_clone_node method to vsphere driver
106846bf67ce8ccb04befdeaf90408b425852c18
<ide><path>libcloud/compute/drivers/vsphere.py <ide> def list_nodes(self): <ide> <ide> return nodes <ide> <add> @wrap_non_libcloud_exceptions <add> def ex_clone_node(self, node, name, power_on=True, template=False): <add> """ <add> Clone the provided node. <add> <add> :param node: N...
1
Python
Python
replace main_session with @provide_session
8af779ac9d5baa8164152d9dd27d4e4194e7f3ce
<ide><path>airflow/models.py <ide> def mark_success_url(self): <ide> "&downstream=false" <ide> ).format(**locals()) <ide> <del> def current_state(self, main_session=None): <add> @provide_session <add> def current_state(self, session=None): <ide> """ <ide> Get the very lates...
1
Ruby
Ruby
maintain original encoding from path
8607c25ba7810573733d9b37d0015154ba059f5e
<ide><path>actionpack/lib/action_dispatch/journey/router/utils.rb <ide> class Utils # :nodoc: <ide> # normalize_path("") # => "/" <ide> # normalize_path("/%ab") # => "/%AB" <ide> def self.normalize_path(path) <add> encoding = path.encoding <ide> path = "/#{path}" <id...
2
Text
Text
clarify fallback behavior of module require
594dd4242b99824d44b2b0f17421fa86c10f1d12
<ide><path>doc/api/modules.md <ide> If this was in a folder at `./some-library`, then <ide> <ide> This is the extent of Node.js's awareness of `package.json` files. <ide> <del>If the file specified by the `'main'` entry of `package.json` is missing and <del>can not be resolved, Node.js will report the entire module a...
1
Mixed
Javascript
add support for <dialog> tag's open attribute
ffa0447177987398c4089eab85b44c59cfc4b25d
<ide><path>docs/docs/ref-04-tags-and-attributes.md <ide> className cols colSpan content contentEditable contextMenu controls coords <ide> crossOrigin data dateTime defer dir disabled download draggable encType form <ide> formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon <ide> id label lang l...
2
PHP
PHP
adjust initialization of $fixtures
c08505a40bbdcfbe062c81dfbac3ffc190a9ec9e
<ide><path>src/TestSuite/TestCase.php <ide> abstract class TestCase extends BaseTestCase <ide> /** <ide> * Fixtures used by this test case. <ide> * <del> * @var array|string <add> * @var array|string|null <ide> */ <del> public $fixtures = null; <add> public $fixtures; <ide> <ide> /...
1
PHP
PHP
use an expression object
21d5d07d0babe550ea52a17f49c53ee45bc79fc1
<ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php <ide> public function testEagerLoadingBelongsToManyLimitedFieldsWithAutoFields() <ide> $result = $table <ide> ->find() <ide> ->contain(['Tags' => function ($q) { <del> return $q->select(['two' => '1 + 1'])->au...
1
Javascript
Javascript
fix stderr matching for fatal error
b82d72c199e70a0c9fbeb6c06715ef8120b3de2f
<ide><path>test/report/test-report-fatal-error.js <ide> const ARGS = [ <ide> assert.strictEqual(reports.length, 0); <ide> <ide> const lines = child.stderr.split('\n'); <del> // Skip over unavoidable free-form output from V8. <del> const report = lines[1]; <add> // Skip over unavoidable free-form output and gc l...
1
Python
Python
implement all tf interpolation upscaling methods
25e53c1654b0aeeb8bf4ea00dcc2f9743420a9d9
<ide><path>keras/backend.py <ide> def resize_images(x, height_factor, width_factor, data_format, <ide> height_factor: Positive integer. <ide> width_factor: Positive integer. <ide> data_format: One of `"channels_first"`, `"channels_last"`. <del> interpolation: A string, one of `nearest` or `biline...
2
Python
Python
put smaller albert model
1bf38611a4183f9fd0e0928703ed2264e0305647
<ide><path>tests/test_onnx_v2.py <ide> def test_values_override(self): <ide> ) <ide> <ide> PYTORCH_EXPORT_DEFAULT_MODELS = { <del> ("ALBERT", "albert-base-v2", AlbertModel, AlbertConfig, AlbertOnnxConfig), <add> ("ALBERT", "hf-internal-testing/tiny-albert", AlbertModel, AlbertConfig, AlbertOnnxCo...
1
Javascript
Javascript
add android support for modal
998d68d36d08a7daaf8c80dbe5a0fdc4a8652c3e
<ide><path>Libraries/Modal/Modal.js <ide> class Modal extends React.Component { <ide> <RCTModalHostView <ide> animated={this.props.animated} <ide> transparent={this.props.transparent} <del> onDismiss={this.props.onDismiss} <add> onRequestClose={this.props.onRequestClose} <ide> ...
1
PHP
PHP
remove timestamp from index file
adc2e21e7ffe00cb660934f9b798b53479f1b5a7
<ide><path>public/index.php <ide> // -------------------------------------------------------------- <ide> // Launch Laravel. <ide> // -------------------------------------------------------------- <del>require $laravel.'/laravel.php'; <del> <del>echo (microtime(true) - LARAVEL_START) * 1000; <ide>\ No newline at end of...
1
Java
Java
ignore failing test for now
6206e5f11f4395b62c1fb296f2aab3d7299fc889
<ide><path>org.springframework.expression/src/test/java/org/springframework/expression/spel/ConstructorInvocationTests.java <ide> <ide> package org.springframework.expression.spel; <ide> <add>import org.junit.Ignore; <ide> import org.junit.Test; <ide> <ide> /** <ide> public void testWidening01() { <ide> } <ide> <i...
1
PHP
PHP
fix side-effect in destructor
1a74e798309192a9895c9cedabd714ceee345f4e
<ide><path>src/Mailer/Transport/SmtpTransport.php <ide> public function __destruct() <ide> } <ide> } <ide> <add> /** <add> * Unserialize handler. <add> * <add> * Ensure that the socket property isn't reinitialized in a broken state. <add> * <add> * @return void <add> */ <add> ...
2
Python
Python
fix warning when collating list of numpy arrays
ecf29db0e5471205cf89527235d8b1002013c3fd
<ide><path>src/transformers/data/data_collator.py <ide> import warnings <ide> from collections.abc import Mapping <ide> from dataclasses import dataclass <add>from random import randint <ide> from typing import Any, Callable, Dict, List, NewType, Optional, Tuple, Union <ide> <add>import numpy as np <add> <ide> from .....
1
PHP
PHP
allow silent deletion on failed model retrieval
bceded6fef79760b9907dbe105829f7d2d62f899
<ide><path>src/Illuminate/Queue/CallQueuedHandler.php <ide> <ide> namespace Illuminate\Queue; <ide> <add>use Exception; <add>use ReflectionClass; <ide> use Illuminate\Contracts\Queue\Job; <ide> use Illuminate\Contracts\Bus\Dispatcher; <ide> use Illuminate\Database\Eloquent\ModelNotFoundException; <ide> public functio...
2
Javascript
Javascript
fix appendtext after api changes
e48530d3913132ed0d369cf50639820060640201
<ide><path>src/canvas.js <ide> var CanvasGraphics = (function CanvasGraphicsClosure() { <ide> if (textSelection) { <ide> geom.canvasWidth = canvasWidth; <ide> this.textLayer.appendText(font.fallbackName, fontSize, geom); <del> }` <add> } <ide> <ide> return canvasWidth; <ide> }...
2
Text
Text
fix a link in dgram.md
83fcb9f07591ceb89cfe0b6347ffb622aa26cdf4
<ide><path>doc/api/dgram.md <ide> and `udp6` sockets). The bound address and port can be retrieved using <ide> [`socket.address().address`]: #dgram_socket_address <ide> [`socket.address().port`]: #dgram_socket_address <ide> [`socket.bind()`]: #dgram_socket_bind_port_address_callback <del>[`System Error`]: errors.html#e...
1
Javascript
Javascript
update the current branch as well
c76d0f04382865f922096dae0272ffa2da8b8c18
<ide><path>src/git-repository-async.js <ide> module.exports = class GitRepositoryAsync { <ide> }).then((statuses) => { <ide> let cachedStatus = this.pathStatusCache[relativePath] || 0 <ide> let status = statuses[0] ? statuses[0].statusBit() : Git.Status.STATUS.CURRENT <del> if (status !== cachedSta...
1
PHP
PHP
mark unused method and property as deprecated
3ab0ad1c5c83476c03755329ca0d2c32bf891c48
<ide><path>src/ORM/ResultSet.php <ide> class ResultSet implements ResultSetInterface <ide> * Converters are indexed by alias and column name. <ide> * <ide> * @var array <add> * @deprecated 3.2.0 Not used anymore. Type casting is done at the statement level <ide> */ <ide> protected $_types = ...
1
Javascript
Javascript
add usvstring conversion benchmark
6123ed5b25bfedc3054dbaf9f3039e2585b799f8
<ide><path>benchmark/url/usvstring.js <add>'use strict'; <add>const common = require('../common.js'); <add> <add>const inputs = { <add> valid: 'adsfadsfadsf', <add> validsurr: '\uda23\ude23\uda1f\udfaa\ud800\udfff\uda23\ude23\uda1f\udfaa' + <add> '\ud800\udfff', <add> someinvalid: 'asasfdfasd\uda23', <ad...
1
Javascript
Javascript
fix mod function
0c52b0c1887b21b2ad8af5f0bb6bda99bc455d90
<ide><path>examples/js/nodes/math/Math2Node.js <ide> THREE.Math2Node.prototype.generate = function( builder, output ) { <ide> <ide> case THREE.Math2Node.MIN: <ide> case THREE.Math2Node.MAX: <del> case THREE.Math2Node.MODULO: <add> case THREE.Math2Node.MOD: <ide> a = this.a.build( builder, type ); <ide> b =...
1
PHP
PHP
add tests for data_get with arrayaccess object
73eddfa09c4a7d238e29d2e74692b8455fc1ceb7
<ide><path>tests/Support/SupportHelpersTest.php <ide> public function testDataGetWithNestedArrays() <ide> $this->assertEquals(['taylor', 'abigail', 'dayle'], data_get($array, '*.name')); <ide> $this->assertEquals(['taylorotwell@gmail.com', null, null], data_get($array, '*.email', 'irrelevant')); <ide> ...
1
Javascript
Javascript
add challenge order to individual challenge
22c416c7dbd88887929267928a924fca168ce2c1
<ide><path>index.js <ide> Challenge.destroyAll(function(err, info) { <ide> } <ide> challenges.forEach(function(file) { <ide> var challengeSpec = require('./challenges/' + file); <add> var order = challengeSpec.order; <ide> var challenges = challengeSpec.challenges <del> .map(function(challenge) { <a...
1
Javascript
Javascript
fix linting issues
685292bb8d64ac2604cecf3de9d8fa977d85fe50
<ide><path>spec/project-spec.js <ide> describe('Project', () => { <ide> projectPath2 = temp.mkdirSync('project-path2') <ide> projectSpecification = { <ide> paths: [projectPath1, projectPath2], <del> originPath: "originPath", <add> originPath: 'originPath', <ide> config: { <del>...
1
PHP
PHP
simplify app helper. remove recursive call
033801f0ba200a4f7c5e8bb54cbd6c7524e91038
<ide><path>src/Illuminate/Foundation/helpers.php <ide> <?php <ide> <ide> use Illuminate\Support\Str; <add>use Illuminate\Container\Container; <ide> <ide> if ( ! function_exists('abort')) <ide> { <ide> function action($name, $parameters = array()) <ide> * @param array $parameters <ide> * @return mixed|\Illumina...
1
Ruby
Ruby
update pr number with unexpired artifacts
d55cbeac789d00c0ce319ee8cb8e67e3d71aac79
<ide><path>Library/Homebrew/test/utils/github_spec.rb <ide> it "fails to find artifacts that don't exist" do <ide> expect { <ide> described_class.get_artifact_url( <del> described_class.get_workflow_run("Homebrew", "homebrew-core", 51971, artifact_name: "false_bottles"), <add> descri...
1
Javascript
Javascript
remove unneccessary argument
1f2b11a169f9f536ed62424bf9a1ae66b812d175
<ide><path>src/geometries/ExtrudeGeometry.js <ide> function ExtrudeBufferGeometry( shapes, options ) { <ide> for ( var i = 0, l = shapes.length; i < l; i ++ ) { <ide> <ide> var shape = shapes[ i ]; <del> addShape( shape, options ); <add> addShape( shape ); <ide> <ide> } <ide>
1
Text
Text
update broken link for apollo-boost
067a43c1ca4a3b276e1d9204577f96b0365ad07f
<ide><path>docs/redux-toolkit/overview.md <ide> This is good in some cases, because it gives you flexibility, but that flexibili <ide> - "I have to add a lot of packages to get Redux to do anything useful" <ide> - "Redux requires too much boilerplate code" <ide> <del>We can't solve every use case, but in the spirit of...
1
Text
Text
create strings using template literals
8d593a1256a876773fbe3199139fee6bfe670212
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals.english.md <ide> This new way of creating strings gives you more flexibility to create robust str <ide> ## Instructions <ide> <section id='instructions'> <ide> Use template literal syntax wit...
1
Javascript
Javascript
remove crufty variable
1c70462de5b0aced98cc20602d5a53d63fe1ac9b
<ide><path>src/core/timer.js <ide> function d3_timer(callback, delay) { <ide> function d3_timer_step() { <ide> var elapsed, <ide> now = Date.now(), <del> t0 = null, <ide> t1 = d3_timer_queue; <ide> <ide> while (t1) { <ide> elapsed = now - t1.then; <ide> if (elapsed > t1.delay) t1.flush = t...
1
Java
Java
add propagatequeryparams property to redirectview
0bbb7704b517f0721ee1ac810b854fbc3f30697f
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ma...
2
Javascript
Javascript
fix parentview and nearestchildof documentation
4fba5a1e6c8016c74649224280318d43074d8983
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View = Ember.Object.extend(Ember.Evented, <ide> @type Ember.View <ide> @default null <ide> */ <del> _parentView: null, <del> <ide> parentView: Ember.computed(function() { <ide> var parent = get(this, '_parentView'); <ide> <ide> Ember.View =...
1
Javascript
Javascript
replace fixturesdir with fixtures method
1c28dfa09a443bab9f72fd1d89a4f645de8c5a42
<ide><path>test/parallel/test-https-byteswritten.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const assert = require('assert'); <del>const fs = require('fs');...
1
Javascript
Javascript
get profile data in getvenmo controller
81d4712ba9345afa5bf9ea25374edc541a47223d
<ide><path>app.js <ide> app.get('/auth/tumblr', passport.authorize('tumblr')); <ide> app.get('/auth/tumblr/callback', passport.authorize('tumblr', { failureRedirect: '/api' }), function(req, res) { <ide> res.redirect('/api/tumblr'); <ide> }); <del>app.get('/auth/venmo', passport.authorize('venmo', { scope: 'access_pr...
2
Go
Go
calculate pid file after root
7453d028daaba786b7eaa55ce739e24becd09a33
<ide><path>cmd/dockerd/docker.go <ide> package main <ide> import ( <ide> "fmt" <ide> "os" <add> "path/filepath" <add> "runtime" <ide> <ide> "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/cli" <ide> func runDaemon(opts daemonOptions) error { <ide> <ide> daemonCli := NewDaemonCli() <ide> <add> // On...
2
Go
Go
fix more goimports
562880b276edb9130eab6adaab27d8aeb41ec388
<ide><path>daemon/logger/splunk/splunk_test.go <ide> func TestValidateLogOpt(t *testing.T) { <ide> splunkVerifyConnectionKey: "true", <ide> splunkGzipCompressionKey: "true", <ide> splunkGzipCompressionLevelKey: "1", <del> envKey: "a", <del> envRegexKey: "^foo", <del> labelsKey: "b", <del> tagK...
5
Text
Text
fix typos in action cable guide [ci skip]
2ff63580fe5636b384b2de9ce67b6f8d0ad8f622
<ide><path>guides/source/action_cable_overview.md <ide> client-server connection instance established per WebSocket connection. <ide> ## Server-Side Components <ide> <ide> ### Connections <del>Connections form the foundaton of the client-server relationship. For every WebSocket <add>Connections form the foundation of ...
1
Python
Python
set version to v2.1.0a8.dev1
f75be6e7be0f5fac33a43d8ac3075e48784285ac
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy-nightly" <del>__version__ = "2.1.0a8.dev0" <add>__version__ = "2.1.0a8.dev1" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI"
1
Text
Text
update description of nonprofit projects
039854361e7aa374d30ec7821ca2e314d37ae282
<ide><path>guide/english/miscellaneous/how-free-code-camps-nonprofits-projects-work/index.md <ide> --- <ide> title: How Free Code Camps Nonprofits Projects Work <ide> --- <del>Building nonprofit projects is the main way that our campers learn full stack JavaScript and agile software development. You'll begin this proce...
1
Mixed
Javascript
pass the hover event to the onhover event handler
152ce9c9f83e3678aee663ee250d7cda06bb3b99
<ide><path>docs/01-Chart-Configuration.md <ide> responsive | Boolean | true | Resizes the chart canvas when its container does. <ide> responsiveAnimationDuration | Number | 0 | Duration in milliseconds it takes to animate to new size after a resize event. <ide> maintainAspectRatio | Boolean | true | Maintain the origin...
2
Ruby
Ruby
emulate dylinker behavior
27d6cfb12e0a5cac753ab1b1157ebfb9d371f4f3
<ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb <ide> def fix_dynamic_linkage <ide> generic_fix_dynamic_linkage <ide> end <ide> <add> def expand_rpath(file, bad_name) <add> suffix = bad_name.sub(/^@rpath/, "") <add> <add> # short circuit: we expect lib to be usually correct, so we try it first <...
1
Java
Java
fix checkstyle violation (plus related polishing)
e485abbe5628e1817c66e96d7703d523cec8a2cb
<ide><path>spring-web/src/main/java/org/springframework/http/HttpHeaders.java <ide> public ZonedDateTime getFirstZonedDateTime(String headerName) { <ide> * {@link IllegalArgumentException} ({@code true}) or rather return {@code null} <ide> * in that case ({@code false}) <ide> * @return the parsed date header, or ...
1
Python
Python
handle non-int port arguments gracefully
503147f17e51c986ea4059f7f74f2f48582693a5
<ide><path>glances/glances.py <ide> def main(): <ide> sys.exit(2) <ide> server_ip = arg <ide> elif opt in ("-p", "--port"): <add> try: <add> port_number = int(arg) <add> except: <add> print("invalid port number argument: %s" % arg) ...
1
Javascript
Javascript
remove blank lines at end of files
5b2a8053cbe9d2a76477c3e49cc40f0d4953f3ac
<ide><path>test/debugger/test-debugger-repl-utf8.js <ide> var script = common.fixturesDir + '/breakpoints_utf8.js'; <ide> process.env.NODE_DEBUGGER_TEST_SCRIPT = script; <ide> <ide> require('./test-debugger-repl.js'); <del> <ide><path>test/gc/test-http-client-onerror.js <ide> function status() { <ide> process.exit...
29
Javascript
Javascript
add moduleid to stats
5f856ec3b3c4fc2b68b6d2574ed154bbb70c2158
<ide><path>lib/Stats.js <ide> Stats.prototype.toJson = function toJson(options, forToString) { <ide> if(showChunkOrigins) { <ide> obj.origins = chunk.origins.map(function(origin) { <ide> return { <add> moduleId: origin.module ? origin.module.id : undefined, <ide> module: origin.module ? origin.mo...
1
Text
Text
clarify change to process helpers [ci skip]
885348f360640d144bfd881ddb9141ff7cc048f1
<ide><path>guides/source/4_2_release_notes.md <ide> Please refer to the [Changelog][action-view] for detailed changes. <ide> * Placeholder I18n follows the same convention as `label` I18n. <ide> ([Pull Request](https://github.com/rails/rails/pull/16438)) <ide> <add>* When calling the `process` helpers in an in...
1
Javascript
Javascript
create a base time display class, and use it
fa6f88440934f661db0fa6bb4128e3c916ef37b6
<ide><path>src/js/control-bar/time-controls/current-time-display.js <ide> /** <ide> * @file current-time-display.js <ide> */ <del>import document from 'global/document'; <add>import TimeDisplay from './time-display'; <ide> import Component from '../../component.js'; <del>import * as Dom from '../../utils/dom.js'; <de...
4
Text
Text
reverse a string - portuguese
222948d5aca27f03d8a91bfa21d6c49cc82c663d
<ide><path>curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/reverse-a-string.portuguese.md <ide> reverseString("hello"); <ide> <section id='solution'> <ide> <ide> ```js <del>// solution required <add>function reverseString(str) { <add> return str.split('').revers...
1
Python
Python
use super instead of nodedriver.__init__
c4e4ae2f536ae3ef22ed2c767d05c7c12afdbfd6
<ide><path>libcloud/compute/drivers/cloudstack.py <ide> def __init__(self, key, secret=None, secure=True, host=None, <ide> 'you also need to provide url or host and path ' <ide> 'argument') <ide> <del> NodeDriver.__init__(self, key=key, secret=secret, secu...
1
Python
Python
add convolutional layer tests
0969c569a69e067bef903fdb50fc29a9cd6a8748
<ide><path>tests/auto/keras/layers/test_convolutional.py <add>import unittest <add>import numpy as np <add>from numpy.testing import assert_allclose <add>import theano <add> <add>from keras.layers import convolutional <add> <add> <add>class TestConvolutions(unittest.TestCase): <add> def test_convolution_1d(self): <a...
1
Javascript
Javascript
fix incorrect usage of ember.deprecate
73e5b11bba875253f80d11987aaaba4c02c91342
<ide><path>packages/ember-routing-handlebars/lib/helpers/link_to.js <ide> var LinkView = Ember.LinkView = EmberComponent.extend({ <ide> init: function() { <ide> this._super.apply(this, arguments); <ide> <del> Ember.deprecate('Using currentWhen with {{link-to}} is deprecated in favor of `current-when`.', this....
2
Javascript
Javascript
change app.statemanager to app.router
d23ea3ab501fc0e8f591a793b927f572436647a1
<ide><path>packages/ember-application/lib/system/application.js <ide> Ember.Application = Ember.Namespace.extend( <ide> } <ide> <ide> if (router) { <del> set(this, 'stateManager', router); <add> set(this, 'router', router); <ide> } <ide> <ide> // By default, the router's namespace is the cur...
2
PHP
PHP
add filesystem configuration
3ade971b2391b8811d9be9992870db6ad0f4f501
<ide><path>config/filesystems.php <add><?php <add> <add>return [ <add> <add> /* <add> |-------------------------------------------------------------------------- <add> | Default Filesystem Disk <add> |-------------------------------------------------------------------------- <add> | <add> | Here you may specify the def...
1
Python
Python
add current changes
77e6775065e2aebd88ab99e4ef3ddc3569a5acb2
<ide><path>tests/test_modeling_bart.py <ide> def test_cnn_summarization_same_as_fairseq_hard_batch(self): <ide> max_length=max_length + 2, <ide> min_length=min_length + 1, <ide> no_repeat_ngram_size=3, <del> do_sample=False <add> do_sample=False, <add> ...
1
Text
Text
add breaking change notice for issue 12506
67afd9dc6376724036231947ac6e7a78f81375ce
<ide><path>CHANGELOG.md <ide> and/or `beforeRemoveClass` then the CSS classes will not be applied <ide> in time for the children (and the parent class-based animation will not <ide> be cancelled by any child animations). <ide> <add>- **$q** due to [6838c979](https://github.com/angular/angular.js/commit/6838c979451c109...
1
Ruby
Ruby
allow methods arity below -1 in assert_responds
0aeb11e5751c5c998f4d52b0084754d848e2865e
<ide><path>activerecord/test/cases/relation/delegation_test.rb <ide> class DelegationTest < ActiveRecord::TestCase <ide> def assert_responds(target, method) <ide> assert target.respond_to?(method) <ide> assert_nothing_raised do <del> case target.to_a.method(method).arity <del> when 0 <add>...
1
Python
Python
fix typo in documentation
9d104c87dd49771892ba22febcedddeeee2d1baf
<ide><path>keras/layers/preprocessing/string_lookup.py <ide> def adapt(self, data, batch_size=None, steps=None): <ide> During `adapt()`, the layer will build a vocabulary of all string tokens <ide> seen in the dataset, sorted by occurance count, with ties broken by sort <ide> order of the tokens (high to lo...
1
Ruby
Ruby
switch callbacks to minitest hooks
0b29c7bb7b40f66977e374667daf7239970bf635
<ide><path>actionpack/test/abstract_unit.rb <ide> def config <ide> end <ide> <ide> class ActionDispatch::IntegrationTest < ActiveSupport::TestCase <del> setup do <add> def before_setup <ide> @routes = SharedTestRoutes <add> super <ide> end <ide> <ide> def self.build_app(routes = nil) <ide> def self.test_...
1
Python
Python
update textcat ensemble model
c2a18e4fa35355124e9da78c90526a01557e7cfb
<ide><path>spacy/ml/models/textcat.py <ide> def build_text_classifier_v2( <ide> attention_layer = ParametricAttention( <ide> width <ide> ) # TODO: benchmark performance difference of this layer <del> maxout_layer = Maxout(nO=width, nI=width) <del> linear_layer = Linear(nO=nO, ...
1
Javascript
Javascript
use quatequals on quaternions
17cc0b08bd357d8cff144bcf2d066f8bf1ee7028
<ide><path>test/unit/src/math/Euler.js <ide> QUnit.test( "Quaternion.setFromEuler/Euler.fromQuaternion", function( assert ) { <ide> <ide> var v2 = new THREE.Euler().setFromQuaternion( q, v.order ); <ide> var q2 = new THREE.Quaternion().setFromEuler( v2 ); <del> assert.ok( eulerEquals( q, q2 ), "Passed!" ); <add> ...
1
Mixed
Java
convert image resizemode `contain` to fit_center
2070efa019f6b5dfb38500d41e4d7e263f59f0d2
<ide><path>Examples/UIExplorer/ImageExample.js <ide> exports.examples = [ <ide> 'rendered within the frame.', <ide> render: function() { <ide> return ( <del> <View style={styles.horizontal}> <del> <View> <del> <Text style={[styles.resizeModeText]}> <del> Contain <...
4
PHP
PHP
skip validation when recovering trees
544930f882a2e5c3acf65e17e9bfc5f2cea7ecbc
<ide><path>lib/Cake/Model/Behavior/TreeBehavior.php <ide> public function recover(Model $Model, $mode = 'parent', $missingParentAction = n <ide> $rght = $count++; <ide> $Model->create(false); <ide> $Model->id = $array[$Model->alias][$Model->primaryKey]; <del> $Model->save(array($left => $lft, $right => $...
1
Text
Text
add article by the nielsen norman group
84324e704b68e152df62cc8b8504cc2ef6d2cb9e
<ide><path>guide/english/product-design/customer-journey-maps/index.md <ide> This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/ <ide> <ide> #### More Information: <ide> <!-- Please add any articles you think might be helpful to read before writing the article --> <del> <del> <add>- [When ...
1
Text
Text
add hint to match ending string patterns
848458b142dd71d127a18fbee3e412a876369be8
<ide><path>client/src/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/match-ending-string-patterns/index.md <add>--- <add>title: Match Ending String Patterns <ide> --- <del>title: Match Ending String Patterns <del>--- <add> <ide> ## Match Ending String Patterns <ide> <del>T...
1
Javascript
Javascript
avoid indexof when parsing
7ec28a0a506efe9d1c03240fd028bea4a3d350da
<ide><path>lib/querystring.js <ide> function parse(qs, sep, eq, options) { <ide> } <ide> const customDecode = (decode !== qsUnescape); <ide> <del> const keys = []; <ide> var lastPos = 0; <ide> var sepIdx = 0; <ide> var eqIdx = 0; <ide> function parse(qs, sep, eq, options) { <ide> if (value.length > ...
1