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
add link to the paper and the tratz dataset
ad7755c81fa5bf9f9731e6cd7196f10cc30b38b8
<ide><path>research/lexnet_nc/README.md <ide> Training a model requires the following: <ide> 1. A collection of noun compounds that have been labeled using a *relation <ide> inventory*. The inventory describes the specific relationships that you'd <ide> like the model to differentiate (e.g. *part of* versus *com...
1
Javascript
Javascript
organize tokenizedbuffer test
4c2680e68a9d9ed1234b192bc3cdcdd7d8878132
<ide><path>spec/tokenized-buffer-spec.js <ide> describe('TokenizedBuffer', () => { <ide> }) <ide> }) <ide> <del> describe('when the buffer is destroyed', () => { <del> beforeEach(() => { <del> buffer = atom.project.bufferForPathSync('sample.js') <del> tokenizedBuffer = new TokenizedBuffer({buffer, ...
1
Ruby
Ruby
fix mutable constants violations
d1ea6f38d3ea1ad8d1665ad18267ed1a2ad08b8c
<ide><path>Library/Homebrew/cask/artifact/installer.rb <ide> module Cask <ide> module Artifact <ide> class Installer < AbstractArtifact <del> VALID_KEYS = Set.new [ <del> :manual, <del> :script, <del> ] <add> VALID_KEYS = Set.new([ <add> :manual, <add> ...
28
Python
Python
add required packages which are missing.
579ef7d6fef0f0104f7b5e01dfa18ea085e42a83
<ide><path>research/setup.py <ide> from setuptools import setup <ide> <ide> <del>REQUIRED_PACKAGES = ['Pillow>=1.0'] <add>REQUIRED_PACKAGES = ['Pillow>=1.0', 'Matplotlib>=2.1', 'Cython>=0.28.1'] <ide> <ide> setup( <ide> name='object_detection',
1
Javascript
Javascript
correct small typo
774b2adb89d0d4334ce707ddd456fe96e8546e97
<ide><path>src/ng/interpolate.js <ide> function $InterpolateProvider() { <ide> * Use {@link ng.$interpolateProvider#methods_endSymbol $interpolateProvider#endSymbol} to change <ide> * the symbol. <ide> * <del> * @returns {string} start symbol. <add> * @returns {string} end symbol. <ide> */ <...
1
Javascript
Javascript
fix no shadow warnings
2c3f807ace66b943416bfda103bb063a63a03d41
<ide><path>Libraries/Interaction/__tests__/InteractionManager-test.js <ide> describe('promise tasks', () => { <ide> expectToBeCalledOnce(task2); <ide> }); <ide> <del> const bigAsyncTest = resolve => { <add> const bigAsyncTest = resolveTest => { <ide> jest.useRealTimers(); <ide> <ide> const task1 = cre...
4
Text
Text
use serial comma in worker_threads docs
ca0044bd1d221df7d3efbf735a1a98e2e1fef731
<ide><path>doc/api/worker_threads.md <ide> circularData.foo = circularData; <ide> port2.postMessage(circularData); <ide> ``` <ide> <del>`transferList` may be a list of [`ArrayBuffer`][], [`MessagePort`][] and <add>`transferList` may be a list of [`ArrayBuffer`][], [`MessagePort`][], and <ide> [`FileHandle`][] objects....
1
Python
Python
fix hyperlink misrendering in documentation
672028a5f2712f8f65b4d97c617a25d81972775e
<ide><path>docs/autogen.py <ide> def process_class_docstring(docstring): <ide> r'\n __\1__\n\n', <ide> docstring) <ide> <del> docstring = re.sub(r' ([^\s\\]+):(.*)\n', <add> docstring = re.sub(r' ([^\s\\\(]+):(.*)\n', <ide> r' - __\...
1
Ruby
Ruby
remove helper script
d49100487944014a2c8a554e1eff257addddf460
<ide><path>Library/add-typed.rb <del>#!/usr/bin/env ruby <del> <del>require 'pathname' <del>require 'open3' <del> <del> <del>Dir.chdir "#{__dir__}/Homebrew" <del> <del>files = Pathname.glob("**/*.rb").reject { |path| path.to_s.start_with?("vendor/") } <del> <del>files.each do |file| <del> <del> content = file.read <de...
1
Javascript
Javascript
remove navigator recommendation
a0304327a9c1989b49ac4c106d824e2b31a6cc16
<ide><path>Libraries/Components/Navigation/NavigatorIOS.ios.js <ide> type Event = Object; <ide> * animations and behavior from UIKIt. <ide> * <ide> * As the name implies, it is only available on iOS. Take a look at <del> * [`Navigator`](docs/navigator.html) for a similar solution for your <del> * cross-platform need...
1
Javascript
Javascript
skip long path tests on non-windows
19e06d71cfa26b6f8a1ce0fa566891553eb351b2
<ide><path>test/parallel/test-fs-long-path.js <ide> var fs = require('fs'); <ide> var path = require('path'); <ide> var assert = require('assert'); <ide> <add>if (!common.isWindows) { <add> console.log('1..0 # Skipped: this test is Windows-specific.'); <add> return; <add>} <add> <ide> var successes = 0; <ide> <ide>...
2
Text
Text
correct the codeblock for `hmacimportparams.hash`
f1c196d6a49edf3d26338a39a3b16b6ca39a95a1
<ide><path>doc/api/webcrypto.md <ide> digest, the salt should be 256-bits of random data). <ide> added: v15.0.0 <ide> --> <ide> <del>#### 'hmacImportParams.hash` <add>#### `hmacImportParams.hash` <ide> <!-- YAML <ide> added: v15.0.0 <ide> -->
1
Java
Java
improve performance of numberutils
48b965ad333da1b4b8fb67dd5a08ad985b5ad135
<ide><path>spring-core/src/main/java/org/springframework/util/NumberUtils.java <ide> else if (Byte.class == targetClass) { <ide> if (value < Byte.MIN_VALUE || value > Byte.MAX_VALUE) { <ide> raiseOverflowException(number, targetClass); <ide> } <del> return (T) new Byte(number.byteValue()); <add> return (T...
1
Javascript
Javascript
implement reference testing for printing
8ccf09d5dd410a7ebd9c048b91bbd73fa7f7e5ba
<ide><path>test/driver.js <ide> var Driver = (function DriverClosure() { <ide> <ide> // Initialize various `eq` test subtypes, see comment below. <ide> var renderAnnotations = false, <del> renderForms = false; <add> renderForms = false, <add> ren...
1
Text
Text
add info for siri shortcuts
aa5314ff59bdca50998961ec5835d3e228514ec4
<ide><path>guide/english/voice/index.md <ide> The software components within the platform include both Natural Language Unders <ide> <ide> IBM Watson Speech-to-Text uses machine learning to accurately predict speech in real time. Currently seven different languages are supported, as well as live voice and pre-recorded...
1
Ruby
Ruby
pass template object to handler#compile
1959db324653d5db345b935c9d2696c544d836af
<ide><path>actionpack/lib/action_view/template_handlers/builder.rb <ide> def compile(template) <ide> content_type_handler = (@view.send!(:controller).respond_to?(:response) ? "controller.response" : "controller") <ide> "#{content_type_handler}.content_type ||= Mime::XML\n" + <ide> "xml = ::Build...
4
Python
Python
fix minor typos in tests
885db908d58838852e5c6b94090c9d00dfbb621a
<ide><path>tests/api/auth/test_client.py <ide> class TestGetCurrentApiClient(unittest.TestCase): <ide> ("cli", 'api_client'): 'airflow.api.client.json_client', <ide> ("cli", 'endpoint_url'): 'http://localhost:1234', <ide> }) <del> def test_should_create_cllient(self, mock_client): <add> def te...
5
Javascript
Javascript
use slab allocator
f210530f46e8ddbd9e7cc0d0c37778888c27f526
<ide><path>lib/tls.js <ide> function convertNPNProtocols(NPNProtocols, out) { <ide> } <ide> } <ide> <add> <add>function SlabBuffer() { <add> this.create(); <add>}; <add> <add> <add>SlabBuffer.prototype.create = function create() { <add> this.isFull = false; <add> this.pool = new Buffer(10 * 1024 * 1024); <add> t...
1
Javascript
Javascript
add missing width & height attrs
ed71513b99efa509598183c0b08decba35bfc3fd
<ide><path>examples/cartogram/cartogram.js <ide> var data = [ <ide> .169, , .132, .167, .139, .184, .159, .14, .146, .157, , .139, .183, .16, .143 <ide> ]; <ide> <del>var svg = d3.select("#chart") <del> .append("svg:svg"); <add>var svg = d3.select("#chart").append("svg:svg") <add> .attr("width", 960) <add> .a...
1
Javascript
Javascript
fix regression in doctool
572e28efa2e3cde78b5e7984b7760fd4c270f619
<ide><path>tools/doc/generate.js <ide> args.forEach(function(arg) { <ide> } <ide> }); <ide> <add>nodeVersion = nodeVersion || process.version; <add> <ide> if (!inputFile) { <ide> throw new Error('No input file specified'); <ide> } <ide> function next(er, input) { <ide> break; <ide> <ide> case 'html': <d...
2
Javascript
Javascript
update user state from server
3823ed19bcb03fc0c86d04c32e6241a5b01f685d
<ide><path>api-server/server/boot/settings.js <ide> const updatePrivacyTerms = (req, res, next) => { <ide> <ide> function updateUserFlag(req, res, next) { <ide> const { user, body: update } = req; <del> user.updateAttributes(update, createStandardHandler(req, res, next)); <add> return user.updateAttributes(update,...
2
Go
Go
use generic handler for pprof profile lookups
a1b06933aff80763ec62a288d5178a4321be1baa
<ide><path>api/server/profiler.go <ide> func profilerSetup(mainRouter *mux.Router) { <ide> r.HandleFunc("/pprof/profile", pprof.Profile) <ide> r.HandleFunc("/pprof/symbol", pprof.Symbol) <ide> r.HandleFunc("/pprof/trace", pprof.Trace) <del> r.HandleFunc("/pprof/block", pprof.Handler("block").ServeHTTP) <del> r.Handl...
1
Javascript
Javascript
require modules from react native as node modules.
151e1d7014ed63452218be496a6edf2355eb6a11
<ide><path>gulpfile.js <ide> var paths = { <ide> }, <ide> }; <ide> <del>var fbjsModuleMap = require('fbjs/module-map'); <del>var moduleMap = {}; <del>for (var key in fbjsModuleMap) { <del> moduleMap[key] = fbjsModuleMap[key]; <del>} <del>var whiteListNames = [ <del> 'deepDiffer', <del> 'deepFreezeAndThrowOnMutati...
1
Javascript
Javascript
fix all the typos
551d6fc1dd983594831bdf8d716291ac4a86255c
<ide><path>packages/ember-application/lib/system/application-instance.js <ide> let ApplicationInstance = EmberObject.extend(RegistryProxy, ContainerProxy, { <ide> We would like new code (like the `visit` API) to stop making this assumption, <ide> so we created the asynchronous version above that returns a promi...
2
PHP
PHP
fix issues with sparse arrays in themeview
354716cf60d3c375771fd14f9e79fab4725e0f41
<ide><path>lib/Cake/View/ThemeView.php <ide> protected function _paths($plugin = null, $cached = true) { <ide> $themePaths = array(); <ide> <ide> if (!empty($this->theme)) { <del> $count = count($paths); <del> for ($i = 0; $i < $count; $i++) { <del> if (strpos($paths[$i], DS . 'Plugin' . DS) === false <del>...
1
PHP
PHP
trigger deprecation warning
31e41d5c1d659d80054691a5f644047186f82109
<ide><path>src/Mailer/Email.php <ide> protected function _constructTransport($name) <ide> $className = App::className($config['className'], 'Mailer/Transport', 'Transport'); <ide> if (!$className) { <ide> $className = App::className($config['className'], 'Network/Email', 'Transport'); <add> ...
1
Python
Python
fix the typo
b92fe6f93c39b16f46fc04b5722cc3c0ec874422
<ide><path>numpy/core/_dtype.py <ide> def _is_packed(dtype): <ide> from a list of the field names and dtypes with no additional <ide> dtype parameters. <ide> <del> Duplicates the C `is_dtype_struct_simple_unaligned_layout` functio. <add> Duplicates the C `is_dtype_struct_simple_unaligned_layout` function...
1
Java
Java
render top back and back button on search results
850ce649d467f8be274b0260441dab6f81b15e3f
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java <ide> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView <ide> private @Nullable String mJSModuleName; <ide> private @Nullable Bundle mLaunchOptions; <ide> private @Nullable KeyboardListener mKeyboardListener...
1
PHP
PHP
fix bad merge
b53adbfb3a8f1a0f04665ccdf64566dc775f4058
<ide><path>tests/TestCase/Controller/Component/PaginatorComponentTest.php <ide> use Cake\Controller\Controller; <ide> use Cake\Core\Configure; <ide> use Cake\Datasource\ConnectionManager; <add>use Cake\Datasource\EntityInterface; <ide> use Cake\Datasource\Paginator; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Net...
1
Javascript
Javascript
add locale and test for tetum (tet) locale
5b76fb6492e830000ac3457e1e30de4cee7192a5
<ide><path>src/locale/tet.js <add>//! moment.js locale configuration <add>//! locale : Tetun Dili (East Timor) [tdt] <add>//! author : Joshua Brooks : https://github.com/joshbrooks <add>//! author : Onorio De J. Afonso : https://github.com/marobo <add> <add>import moment from '../moment'; <add> <add>export default mome...
2
PHP
PHP
add failing test for handling head request
811f52cbfe22f0da99ed6340486468518f2e1159
<ide><path>tests/Routing/RoutingRouteTest.php <ide> public function testBasicDispatchingOfRoutes() <ide> $this->assertEquals('fred25', $router->dispatch(Request::create('fred', 'GET'))->getContent()); <ide> $this->assertEquals('fred30', $router->dispatch(Request::create('fred/30', 'GET'))->getContent()); <ide> $t...
1
Javascript
Javascript
calculate array lengths once at start of loop
907b8c1675865ac38dd055f3f304272e68b233d0
<ide><path>src/ng/parse.js <ide> Parser.prototype = { <ide> <ide> return extend(function $parseArrayLiteral(self, locals) { <ide> var array = []; <del> for (var i = 0; i < elementFns.length; i++) { <add> for (var i = 0, ii = elementFns.length; i < ii; i++) { <ide> array.push(elementFns[i](s...
1
Javascript
Javascript
publish dist bower.json & co to s3
bfe959e72879f38adde992a3e46ea4cd6fabef3d
<ide><path>config/s3ProjectConfig.js <ide> function fileMap(revision,tag,date) { <ide> "ember.min.js": fileObject("ember.min", ".js", "text/javascript", revision, tag, date), <ide> "ember.prod.js": fileObject("ember.prod", ".js", "text/javascript", rev...
1
Go
Go
remove some intermediate variables
a4bfd9788ff96e2e8a8b65d43f1b4cf0f621a734
<ide><path>volume/local/local.go <ide> type activeMount struct { <ide> // is the base path that the Root instance uses to store its <ide> // volumes. The base path is created here if it does not exist. <ide> func New(scope string, rootIdentity idtools.Identity) (*Root, error) { <del> rootDirectory := filepath.Join(scop...
1
Text
Text
modernize code examples in the cluster.md
e03ee719e6e760777b237861bf0b7835432af8bb
<ide><path>doc/api/cluster.md <ide> const http = require('http'); <ide> const numCPUs = require('os').cpus().length; <ide> <ide> if (cluster.isMaster) { <add> console.log(`Master ${process.pid} is running`); <add> <ide> // Fork workers. <del> for (var i = 0; i < numCPUs; i++) { <add> for (let i = 0; i < numCPUs; ...
1
Ruby
Ruby
fix the build
47be2f101cf133d6d1b9527b8764306d6ddcbf2c
<ide><path>actionpack/test/dispatch/mapper_test.rb <ide> module ActionDispatch <ide> module Routing <ide> class MapperTest < ActiveSupport::TestCase <ide> class FakeSet <del> attr_reader :routes <add> attr_reader :routes, :draw_paths <ide> alias :set :routes <ide> <ide> def in...
2
Javascript
Javascript
clarify input and ngmodel behavior
036871df5ea9777b15dc6f7ddb03bdafa9c1f122
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> * @description <ide> * Standard HTML text input with angular data binding, inherited by most of the `input` elements. <ide> * <del> * *NOTE* Not every feature offered is available for all input types. <ide> * <ide> * @param {string} ngM...
1
Python
Python
write binary file during training
8a693c2605df8ebf2c5521e2f419bc7d57ebb950
<ide><path>spacy/cli/train.py <ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0, <ide> with nlp.use_params(optimizer.averages): <ide> with (output_path / ('model%d.pickle' % i)).open('wb') as file_: <ide> dill.dump(nlp, file_, -1) <del> ...
1
Java
Java
fix exception message
591429e538d1e59b47dff4c760cfd8763c57ebd7
<ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java <ide> protected void processScheduled(Scheduled scheduled, Method method, Object bean) <ide> } <ide> catch (NumberFormatException ex) { <ide> throw new IllegalArgumentException( <d...
1
Text
Text
fix the issue link
1054ea559ca1c27dcd9e187cf44aba377a947d3d
<ide><path>docs/topics/release-notes.md <ide> For older release notes, [please see the version 2.x documentation][old-release- <ide> [gh3321]: https://github.com/tomchristie/django-rest-framework/issues/3321 <ide> <ide> <!-- 3.2.4 --> <del>[gh3314]: https://github.com/tomchristie/django-rest-framework/issues/@3314 <de...
1
Ruby
Ruby
add cpu family armv8.3-a
559d0a91a28b40e6e2c6d2dcf00b14cfdf7989d4
<ide><path>Library/Homebrew/extend/os/mac/hardware/cpu.rb <ide> def type <ide> end <ide> <ide> def family <del> return :dunno if arm? <del> <ide> case sysctl_int("hw.cpufamily") <ide> when 0x73d67300 # Yonah: Core Solo/Duo <ide> :core <ide> def family <ide> :kabyl...
1
PHP
PHP
improve doc block to be more precise
eb337dcffe59bc0d410c4f70eb9d1550a9647326
<ide><path>src/ORM/Table.php <ide> protected function _update($entity, $data) <ide> * any one of the records fails to save due to failed validation or database <ide> * error. <ide> * <del> * @param array|\Cake\ORM\ResultSet $entities Entities to save. <add> * @param \Cake\Datasource\EntityInterfa...
1
Javascript
Javascript
move semicolon to a later location in bundle #830
ffd9cce20ac7b2cc76cb0fbeb4b9815e6f31b5a1
<ide><path>lib/ChunkTemplate.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <add>var ConcatSource = require("webpack-core/lib/ConcatSource"); <ide> var Template = require("./Template"); <ide> <ide> function ChunkTemplate(outputOptions) { <ide> Chun...
5
PHP
PHP
fix urlencode prob
3a62036a9cfa544205dfee84b398066e91c1cd0a
<ide><path>laravel/html.php <ide> public static function decode($value) <ide> */ <ide> public static function script($url, $attributes = array()) <ide> { <del> $url = urlencode(URL::to_asset($url)); <add> $url = URL::to_asset($url); <ide> <ide> return '<script src="'.$url.'"'.static::attributes($attributes).'>...
1
Go
Go
replace loop with single append
64238fef8c7b739a2ae5648386cf594eb3a162e5
<ide><path>api/server/router/network/network_routes.go <ide> func (n *networkRouter) getNetworksList(ctx context.Context, w http.ResponseWrit <ide> list := []types.NetworkResource{} <ide> <ide> if nr, err := n.clusterProvider.GetNetworks(); err == nil { <del> for _, nw := range nr { <del> list = append(list, nw) ...
11
Ruby
Ruby
remove extraneous flag conflicts
8f3d230995ed76dcd7c8dc8abd9bf0a27c761bae
<ide><path>Library/Homebrew/cmd/list.rb <ide> def list_args <ide> description: "Sort by time modified, listing most recently modified first." <ide> switch :verbose <ide> switch :debug <del> conflicts "--casks", "--unbrewed", "--multiple", "--pinned", "-l", "-r", "-t" <add> ["--unbrewe...
1
PHP
PHP
remove redundant doc blocks
98f4673f27bd4e3851818536796074946327517a
<ide><path>src/Http/Cookie/Cookie.php <ide> public function toHeaderValue() <ide> } <ide> <ide> /** <del> * Create a cookie with an updated name <del> * <del> * @param string $name Name of the cookie <del> * @return static <add> * {@inheritDoc} <ide> */ <ide> public function withNa...
1
Python
Python
use local insertion sort (solves #334) (#370)
c0033f92ade8153e85162ad9a7741eee2d3550bb
<ide><path>sorts/bucket_sort.py <ide> # This program will illustrate how to implement bucket sort algorithm <ide> <ide> # Wikipedia says: Bucket sort, or bin sort, is a sorting algorithm that works by distributing the <del># elements of an array into a number of buckets. Each bucket is then sorted individually, either...
1
Javascript
Javascript
add venmo oauth2 strategy
862ddb33fd520281336707ca8b05ed076dfbebf6
<ide><path>config/passport.js <ide> passport.use('foursquare', new OAuth2Strategy({ <ide> } <ide> )); <ide> <add>passport.use('venmo', new OAuth2Strategy({ <add> authorizationURL: 'https://api.venmo.com/v1/oauth/authorize', <add> tokenURL: 'https://api.venmo.com/v1/oauth/access_token', <add> clientID: secre...
1
Text
Text
update the contributing file for root usage
fcfac4ba5921a60bbb9d0d19dd9fd7551436d26d
<ide><path>CONTRIBUTING.md <del># This board is for bug reports and feature requests only. If you need help, please use [stackoverflow](http://stackoverflow.com/questions/tagged/three.js). <add># The issues section is for bug reports and feature requests only. If you need help, please use [stackoverflow](http://stackov...
1
PHP
PHP
improve code to break early
706e4640221804bc9615025753ce4c7ce5de51b8
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> public function assertJsonValidationErrors($errors) <ide> foreach (Arr::wrap($jsonErrors[$key]) as $jsonErrorMessage) { <ide> if (Str::contains($jsonErrorMessage, $value)) { <ide> $hasError = ...
1
PHP
PHP
add tests for getrequest()
dd754b12c6c1171fa14ee00c851579422e2e5ac7
<ide><path>lib/Cake/Test/TestCase/Routing/RouterTest.php <ide> public function testSetRequestInfoLegacy() { <ide> $this->assertEquals('/', $result->webroot); <ide> } <ide> <add>/** <add> * test get request. <add> * <add> * @return void <add> */ <add> public function testGetRequest() { <add> $requestA = new Request...
1
Text
Text
improve array sort challenge
c27dc72e4dd3097c16b953c5d0d07d8767803151
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method.english.md <ide> challengeType: 1 <ide> The <code>sort</code> method sorts the elements of an array according to the callback function. <ide> For example: <ide>...
1
Javascript
Javascript
check error message in test-http-outgoing-proto
1155ade002423eb62044598e13bf52a68f3330e5
<ide><path>test/parallel/test-http-outgoing-proto.js <ide> const OutgoingMessage = http.OutgoingMessage; <ide> const ClientRequest = http.ClientRequest; <ide> const ServerResponse = http.ServerResponse; <ide> <del>assert.throws(OutgoingMessage.prototype._implicitHeader); <add>assert.throws(OutgoingMessage.prototype._i...
1
Text
Text
fix a typo that says you application [ci skip]
7f255245bd7c6de1037454e4e344175a4239aca5
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> part of the rewrite, the following features have been removed from the encoder: <ide> 2. Support for the `encode_json` hook <ide> 3. Option to encode `BigDecimal` objects as numbers instead of strings <ide> <del>If you application depends on one of these featur...
1
Javascript
Javascript
clarify ngapp usage
dc238ce123d6f4357878d0e6e58c8e2343337e26
<ide><path>src/Angular.js <ide> function encodeUriQuery(val, pctEncodeSpaces) { <ide> * @description <ide> * <ide> * Use this directive to auto-bootstrap an application. Only <del> * one directive can be used per HTML document. The directive <add> * one ngApp directive can be used per HTML document. The directive <i...
1
Javascript
Javascript
enable native animations when possible
f9779e3eb79d50ddf0d80bbc0d047914d9e0c10c
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js <ide> */ <ide> 'use strict'; <ide> <del>const NavigationTransitioner = require('NavigationTransitioner'); <add>const NativeAnimatedModule = require('NativeModules').NativeAnimatedModule; <ide> const NavigationCard = require('Navigatio...
2
Text
Text
fix some typos in readme
0f65d8cbbe8be704670e337ad4383568babf5789
<ide><path>README.md <ide> This repo is tested on Python 2.7 and 3.5+ (examples are tested only on python 3 <ide> ### With pip <ide> <ide> First you need to install one of, or both, TensorFlow 2.0 and PyTorch. <del>Please refere to [TensorFlow installation page](https://www.tensorflow.org/install/pip#tensorflow-2.0-rc...
1
Javascript
Javascript
improve tests for thrown errors
7c5a5ce8ac34bd4bdecf2c33858b09e56ee61937
<ide><path>packages/container/tests/registry_test.js <ide> QUnit.test('Throw exception when trying to inject `type:thing` on all type(s)', <ide> <ide> throws(function() { <ide> registry.typeInjection('controller', 'injected', 'controller:post'); <del> }, 'Cannot inject a `controller:post` on other controller(s)...
1
Javascript
Javascript
fix wrong example
2ec3b2120ee1c6cfeee1a400d5cbae1c7d3bf781
<ide><path>packages/ember-handlebars/lib/controls/select.js <ide> Ember.SelectOption = Ember.View.extend({ <ide> <ide> ```html <ide> <select class="ember-select"> <del> <option value>Please Select</option> <ide> <option value="1">Yehuda</option> <ide> <option value="2">Tom</option> <ide> </select> <id...
1
Javascript
Javascript
add chop to showcase
518915a750b1f6871650599bbd742fbe028b19db
<ide><path>website/src/react-native/showcase.js <ide> var featured = [ <ide> linkPlayStore: 'https://app.jd.com/android.html', <ide> infoLink: 'http://ir.jd.com/phoenix.zhtml?c=253315&p=irol-homeProfile', <ide> infoTitle: 'JD.com is China’s largest ecommerce company by revenue and a member of the Fortune Gl...
1
Javascript
Javascript
replace angular.annotate with annotate
d3fb5b411e979d0a4815c663c3489652fc5350f9
<ide><path>test/InjectorSpec.js <ide> describe('injector', function(){ <ide> <ide> describe('inject', function(){ <ide> it('should inject names', function(){ <del> expect(angular.annotate('a', {}).$inject).toEqual(['a']); <del> expect(angular.annotate('a', 'b', {}).$inject).toEqual(['a', 'b']); <add> ...
1
Javascript
Javascript
add test case
2ec870f139cc1b1415fd1b46754a0571f2ffb122
<ide><path>test/ConfigCacheTestCases.longtest.js <del>const { describeCases } = require("./ConfigTestCases.template"); <add>const { describeCases, logErrors } = require("./ConfigTestCases.template"); <ide> <ide> describeCases({ <ide> name: "ConfigCacheTestCases", <add> infrastructureLogErrors: { <add> allowList: [ <...
2
Text
Text
fix typo in activejob guide [ci skip]
41739a2677ce52ea842c14f1bf3323256e0c6a10
<ide><path>guides/source/active_job_basics.md <ide> class GuestsCleanupJob < ActiveJob::Base <ide> queue_as :default <ide> <ide> before_enqueue do |job| <del> # do somthing with the job instance <add> # do something with the job instance <ide> end <ide> <ide> around_perform do |job, block|
1
Text
Text
add more translation in fundamentals
2db5c64849502534e2e96e7afb328e6b4b3839be
<ide><path>threejs/lessons/tr/threejs-fundamentals.md <ide> TOC: Temel Bilgiler <ide> <ide> Bu three.js ile alakalı makale serisindeki ilk makaledir. [Three.js](https://threejs.org) bir web sayfasına 3D içerik sağlamayı mümkün olduğunca kolaylaştırmaya çalışan bir 3D kütüphanedir. <ide> <del>Three.js sıklıkla WebGL i...
1
Java
Java
ignore failing test
8df6b86dd1efbb0a62be789e5b88897df5404148
<ide><path>org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/annotation/Spr7839Tests.java <ide> public void arrayOfLists() throws Exception { <ide> } <ide> <ide> @Test <add> @Ignore <ide> public void map() throws Exception { <ide> request.setRequestURI("/nested/map"); <ide> req...
1
Ruby
Ruby
fix freeze applying to cloned objects
d5867a01a82d14216541c8bfc38e466b02580376
<ide><path>activerecord/lib/active_record/core.rb <ide> def hash <ide> id.hash <ide> end <ide> <del> # Freeze the attributes hash such that associations are still accessible, even on destroyed records. <add> # Clone and freeze the attributes hash such that associations are still <add> # accessible, ...
2
Ruby
Ruby
remove unnecessary nested if
0bf2f92f467b4b4cca889a9e53299772bd1641f9
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def outdated_brews(formulae) <ide> all_versions = [] <ide> older_or_same_tap_versions = [] <ide> <del> if f.oldname && !f.rack.exist? <del> if Pathname.new("#{HOMEBREW_CELLAR}/#{f.oldname}").exist? <del> raise Migrator::MigrationNeededE...
1
Mixed
Go
fix nits in comments
bc85efdb4fa637fcbef54864e8d3f0255c4bbe80
<ide><path>libnetwork/controller.go <ide> func (c *controller) SetKeys(keys []*types.EncryptionKey) error { <ide> } <ide> for s, count := range subsysKeys { <ide> if count != keyringSize { <del> return fmt.Errorf("incorrect number of keys for susbsystem %v", s) <add> return fmt.Errorf("incorrect number of keys ...
6
Text
Text
bring dab into title and intro
6defef56194e7fe74f6f1bbc0ccb0565bc51ffd1
<add><path>experimental/docker-stacks-and-bundles.md <del><path>experimental/docker-stacks.md <del># Docker Stacks <add># Docker Stacks and Distributed Application Bundles <ide> <ide> ## Overview <ide> <del>Docker Stacks are an experimental feature introduced in Docker 1.12, alongside <del>the concept of swarm mode, ...
1
Javascript
Javascript
redirect /challenges/* to /learn/*
4a45b5ac1c010e7733221b263971b9e5f1f6d50b
<ide><path>client/gatsby-node.js <ide> exports.onCreateBabelConfig = ({ actions }) => { <ide> }); <ide> }; <ide> <add>exports.onCreatePage = async ({ page, actions }) => { <add> const { createPage } = actions; <add> // Only update the `/challenges` page. <add> if (page.path.match(/^\/challenges/)) { <add> // p...
4
Python
Python
ensure dispatcher typeerrors report original name
8fabdecb556354559f9dcc280c75001f3df8aaa8
<ide><path>numpy/core/overrides.py <ide> import collections <ide> import functools <ide> import os <add>import sys <ide> <ide> from numpy.core._multiarray_umath import ( <ide> add_docstring, implement_array_function, _get_implementing_args) <ide> def decorator(implementation): <ide> <ide> @functools.wraps...
2
Javascript
Javascript
create dedicated debug endpoints
c9084aea2c30c4e1e341651e48483dd3e1ceda4b
<ide><path>api-server/server/boot/sentry-debug.js <add>import { wrapHandledError } from '../utils/create-handled-error'; <add> <add>export default function bootStatus(app) { <add> const api = app.loopback.Router(); <add> <add> // DEBUG ROUTE <add> api.get('/sentry/error', () => { <add> throw Error('debugging sent...
1
Ruby
Ruby
handle duplicate migration names in multi db
1a1c455a5542b02ec91ca9fc93d5a4acff362820
<ide><path>activerecord/lib/active_record/migration.rb <ide> def migration <ide> end <ide> <ide> def load_migration <del> require(File.expand_path(filename)) <add> Object.send(:remove_const, name) rescue nil <add> <add> load(File.expand_path(filename)) <ide> name.constantize.ne...
2
PHP
PHP
document the assoc arrays as per their string key
bb4d2c947c8a3570b0664d84bafc99013db010db
<ide><path>src/Auth/AbstractPasswordHasher.php <ide> abstract class AbstractPasswordHasher <ide> * <ide> * These are merged with user-provided config when the object is used. <ide> * <del> * @var array <add> * @var array<string, mixed> <ide> */ <ide> protected $_defaultConfig = []; <ide>...
121
Java
Java
remove jmxmp from testgroup
bd414df9443f0bdda7681f32a1141b8041c8518d
<ide><path>spring-context/src/test/java/org/springframework/jmx/AbstractMBeanServerTests.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ma...
8
Go
Go
remove libcontainer dependency
b0b71dbe1cb9e4c06966328a5cd7b54ed0701581
<ide><path>pkg/sysinfo/cgroup2_linux.go <ide> import ( <ide> "path" <ide> "strings" <ide> <add> "github.com/containerd/cgroups" <ide> cgroupsV2 "github.com/containerd/cgroups/v2" <ide> "github.com/containerd/containerd/pkg/userns" <del> "github.com/opencontainers/runc/libcontainer/cgroups" <ide> "github.com/sirup...
2
Javascript
Javascript
fix cachewithcontext inversion
8fcd251a7f2220737ebd27b363713fbe9350cd82
<ide><path>lib/cache/ResolverCachePlugin.js <ide> class ResolverCachePlugin { <ide> } <ide> const identifier = `/resolve/${type}${optionsIdent}${objectToString( <ide> request, <del> cacheWithContext <add> !cacheWithContext <ide> )}`; <ide> const activeRequest = a...
1
PHP
PHP
fix psalm failure
45b457d4cded0e569544461f62cfb994364af7ce
<ide><path>src/ORM/Table.php <ide> public function validateUnique($value, array $options, ?array $context = null): <ide> } <ide> } <ide> $class = static::IS_UNIQUE_CLASS; <add> /** @var \Cake\ORM\Rule\IsUnique $rule */ <ide> $rule = new $class($fields, $options); <ide> <ide> ...
1
Javascript
Javascript
add test for #591
f71943d63365319a3fce0b24d17e6d96a937987c
<ide><path>packages/ember-runtime/tests/system/object/subclasses_test.js <ide> test('defining sub-sub class should only go to parent', function() { <ide> ok(Sub.subclasses.contains(SubSub), 'Sub contains SubSub'); <ide> }); <ide> <add>// TEST lazy prototype and Em.rewatch(prototype) <add>test('chains should copy for...
1
Javascript
Javascript
turn sanitizer into a service
0f6b2ef9823953533dd98849fc29c08e6a05c4a4
<ide><path>angularFiles.js <ide> angularFiles = { <ide> 'src/JSON.js', <ide> 'src/Injector.js', <ide> 'src/Resource.js', <del> 'src/sanitizer.js', <ide> 'src/jqLite.js', <ide> 'src/apis.js', <ide> 'src/service/anchorScroll.js', <ide> angularFiles = { <ide> 'src/service/route.js', <ide> ...
2
Text
Text
end sentences with a `.`. [ci skip]
64c784f5534bdd18866700f9441d99bcef568c3a
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Neeraj Singh* <ide> <del>* Removed deprecated method `scoped` <add>* Removed deprecated method `scoped`. <ide> <ide> *Neeraj Singh* <ide> <del>* Removed deprecated method `default_scopes?` <add>* Removed deprecated method `default_scopes?`. <ide> <i...
3
Ruby
Ruby
move helper class to the top
01da3593939ba6037a00f8eb9a2051b4b6f6f325
<ide><path>activerecord/lib/active_record/associations/join_dependency.rb <ide> class JoinDependency # :nodoc: <ide> autoload :JoinBase, 'active_record/associations/join_dependency/join_base' <ide> autoload :JoinAssociation, 'active_record/associations/join_dependency/join_association' <ide> <add> ...
1
Python
Python
improve performance for cifar resnet benchmarks
2ed43e66c4507798c5a3be0f4cc98c57ebb112a2
<ide><path>official/resnet/keras/keras_cifar_main.py <ide> def run(flags_obj): <ide> <ide> strategy = distribution_utils.get_distribution_strategy( <ide> distribution_strategy=flags_obj.distribution_strategy, <del> num_gpus=flags_obj.num_gpus) <add> num_gpus=flags_obj.num_gpus, <add> num_workers...
2
Text
Text
change sentences for better comprehension
ea571ee044841514d155dac0d86296f83e0eef45
<ide><path>guide/english/sql/sql-where-clause/index.md <ide> title: SQL Where Clause <ide> <ide> ### `WHERE` Clause (and/or, `IN`, `BETWEEN`, and `LIKE`) <ide> <del>The `WHERE` clause is used to limit the number of rows returned. <add>The `WHERE` clause is used to filter the number of rows returned. <ide> <ide> ...
1
Javascript
Javascript
replace \u2019 with regular ascii quote
fd8587eb38804311c53d1da8315f267614d77c58
<ide><path>lib/buffer.js <ide> function fromString(string, encoding) { <ide> var b = new FastBuffer(allocPool, poolOffset, length); <ide> var actual = b.write(string, encoding); <ide> if (actual !== length) { <del> // byteLength() may overestimate. That’s a rare case, though. <add> // byteLength() may overe...
2
Text
Text
add @ramiro for thanks!
b8561f41238e0ad79b2cc823518a93314d987979
<ide><path>docs/topics/credits.md <ide> The following people have helped make REST framework great. <ide> * Jeremy Satterfield - [jsatt] <ide> * Christopher Paolini - [chrispaolini] <ide> * Filipe A Ximenes - [filipeximenes] <add>* Ramiro Morales - [ramiro] <ide> <ide> Many thanks to everyone who's contributed to the ...
1
Javascript
Javascript
remove default parameters from lint rule
c8e137b1b53ef6059bcee48376d1617fb734fdfc
<ide><path>tools/eslint-rules/align-multiline-assignment.js <ide> //------------------------------------------------------------------------------ <ide> // Rule Definition <ide> //------------------------------------------------------------------------------ <del>function getBinaryExpressionStarts(binaryExpression, sta...
1
Python
Python
fix package command and add version option
fe06697150ba7ce0cf28dfe37cdf9d84b58fa234
<ide><path>spacy/cli/package.py <ide> def package_cli( <ide> # fmt: off <ide> input_dir: Path = Arg(..., help="Directory with model data", exists=True, file_okay=False), <ide> output_dir: Path = Arg(..., help="Output parent directory", exists=True, file_okay=False), <del> meta_path: Optional[Path] = Opt(...
1
Ruby
Ruby
use uri and inflector
3962be5b8c20da54421ae472f06c741f0472fd46
<ide><path>activeresource/lib/active_resource/base.rb <ide> require 'active_support' <ide> require 'active_support/core_ext/class/attribute_accessors' <ide> require 'active_support/core_ext/class/inheritable_attributes' <add>require 'active_support/core_ext/kernel/reporting' <ide> require 'active_support/core_ext/modul...
1
Ruby
Ruby
remove the old command files
03c982fa3417fc49a380eeb88fdd26fdd4bae46b
<ide><path>railties/lib/rails/commands/application.rb <del>require "rails/generators" <del>require "rails/generators/rails/app/app_generator" <del> <del>module Rails <del> module Generators <del> class AppGenerator # :nodoc: <del> # We want to exit on failure to be kind to other libraries <del> # This is ...
14
PHP
PHP
add ses_region to local environment file
d75a0f3bafe9e4b56f24ea52d43c0d68d877c1dd
<ide><path>config/services.php <ide> 'ses' => [ <ide> 'key' => env('SES_KEY'), <ide> 'secret' => env('SES_SECRET'), <del> 'region' => 'us-east-1', <add> 'region' => env('SES_REGION','us-east-1'), <ide> ], <ide> <ide> 'sparkpost' => [
1
Javascript
Javascript
fix backgroundcolor typing.
a43fd60e18aff9ee6bcaf8ec576adb8678d5bcf4
<ide><path>Libraries/Components/TextInput/InputAccessoryView.js <ide> <ide> 'use strict'; <ide> <del>const DeprecatedColorPropType = require('../../DeprecatedPropTypes/DeprecatedColorPropType'); <ide> const Platform = require('../../Utilities/Platform'); <ide> const React = require('react'); <ide> const StyleSheet = ...
1
PHP
PHP
remove unused function
f747225b893bb1f3564619b60d665b1dfa88fe12
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> protected function _url($url) <ide> return [$path, $query]; <ide> } <ide> <del> /** <del> * Convert an array URL into a string so we can dispatch it. <del> * <del> * This requires loading routes. <del> * <del> * @param array $url...
1
Text
Text
make minor improvements to stream.md
1fceccb4cfe250dffe9455fd2158db452376c8cc
<ide><path>doc/api/stream.md <ide> added: v8.0.0 <ide> * Returns: {this} <ide> <ide> Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` <del>event unless `emitClose` is set in `false`. After this call, the writable <add>event (unless `emitClose` is set to `false`). After this call, the writab...
1
Go
Go
remove deprecated filter functions
c334a87aec0de7467d5b1661666e779eb6416075
<ide><path>api/types/filters/parse.go <ide> package filters // import "github.com/docker/docker/api/types/filters" <ide> <ide> import ( <ide> "encoding/json" <del> "errors" <ide> "regexp" <ide> "strings" <ide> <ide> func NewArgs(initialArgs ...KeyValuePair) Args { <ide> return args <ide> } <ide> <del>// ParseFla...
3
Go
Go
add tag store
7de380c5c673411639d84e07c29830eb81cb1c8d
<ide><path>tag/store.go <add>package tag <add> <add>import ( <add> "encoding/json" <add> "errors" <add> "fmt" <add> "io/ioutil" <add> "os" <add> "path/filepath" <add> "sync" <add> <add> "github.com/docker/distribution/reference" <add> "github.com/docker/docker/image" <add>) <add> <add>// DefaultTag defines the default ...
2
Javascript
Javascript
improve test case
a7f9d4d40b679c15bd22efa8ff97da93f5df4136
<ide><path>test/cases/side-effects/dynamic-reexports/checked-export/index.js <ide> export { value, value2 } from "./module"; <add> <add>throw new Error("Should not be loaded"); <ide><path>test/cases/side-effects/dynamic-reexports/dedupe-target-static/index.js <ide> export * from "./a"; <ide> export * from "./b"; <add> ...
6
PHP
PHP
improve crypt class comments
825ac35a47d410f53a8bf1ca09bac55651e11197
<ide><path>system/crypt.php <ide> class Crypt { <ide> public static function encrypt($value) <ide> { <ide> // ----------------------------------------------------- <del> // Determine the input vector source. <add> // Determine the input vector source. Different servers <add> // and operating systems will have va...
1
PHP
PHP
pluralize fixtures filename
a6df593fc6871fae4fdbaa85b6b732f3b4e4aeec
<add><path>tests/Fixture/AfterTreesFixture.php <del><path>tests/Fixture/AfterTreeFixture.php <ide> * AfterTreeFixture class <ide> * <ide> */ <del>class AfterTreeFixture extends TestFixture { <add>class AfterTreesFixture extends TestFixture { <ide> <ide> /** <ide> * fields property <add><path>tests/Fixture/Articles...
50