content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Python
Python
use v2 optimizer and dlr
b9d2b1bbd8e9af1d3d56f2a8182c168673f833ff
<ide><path>official/resnet/keras/keras_imagenet_main.py <ide> def run_imagenet_with_keras(flags_obj): <ide> # opt = tf.train.GradientDescentOptimizer(learning_rate=0.0001) <ide> # I am setting an initial LR of 0.001 since this will be reset <ide> # at the beginning of the training loop. <del> # opt = gradient_de...
1
Mixed
Javascript
fix crash on overlaycolor usage
6bc483c8cc115606fac721bd0332ae66f0b3136e
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/tests/ImageOverlayColorTestCase.java <add>/** <add> * Copyright (c) 2014-present, Facebook, Inc. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> */ <add> ...
4
Python
Python
update about.py and increment version
d5c8d2f5fd4177b6f4980689ae972352563c28e5
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '1.8.2' <add>__version__ = '2.0.0' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https://spacy....
1
Go
Go
fix false failure
cc866470981a1e6a839004f24eb30bb708078068
<ide><path>integration/container/update_linux_test.go <ide> func TestUpdateMemory(t *testing.T) { <ide> <ide> const ( <ide> setMemory int64 = 314572800 <del> setMemorySwap = 524288000 <add> setMemorySwap int64 = 524288000 <ide> ) <ide> <ide> _, err := client.ContainerUpdate(ctx, cID, containertypes.U...
1
Javascript
Javascript
improve allocations needed in serialization
db9b2df6cdb33377ef8d832563522c926d12d4e6
<ide><path>lib/serialization/BinaryMiddleware.js <ide> class BinaryMiddleware extends SerializerMiddleware { <ide> /** <ide> * @param {DeserializedType} data data <ide> * @param {Object} context context object <add> * @param {{ leftOverBuffer: Buffer | null, allocationSize: number, increaseCounter: number }} allo...
1
Java
Java
support primary txmgrs and datasources in the tcf
677a321571e25449962befe876f543ce576ea3ca
<ide><path>spring-test/src/main/java/org/springframework/test/context/transaction/TestContextTransactionUtils.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2016 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Licen...
3
Ruby
Ruby
remove return guard
b6a68737fb7f16fabff3a231e97adf42727e239a
<ide><path>activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb <ide> def create_time_zone_conversion_attribute?(name, column) <ide> <ide> private <ide> def round_usec(value) <del> return unless value <del> value.change(:usec => 0) <add> value.change(usec: 0) if val...
2
Ruby
Ruby
show tag properly in about
0b167dd863c9d6795a3af1066afe16994a69ba16
<ide><path>railties/builtin/rails_info/rails/info.rb <ide> def freeze_edge_version <ide> begin <ide> Dir[File.join(rails_vendor_root, 'REVISION_*')].first.scan(/_(\d+)$/).first.first <ide> rescue <del> Dir[File.join(rails_vendor_root, 'TAG_*')].first.scan(/_(\w+)$/).first.firs...
1
Python
Python
update other docstrings
b7e75edad2331152e1c262e95c01522d77798ea2
<ide><path>keras/layers/rnn/gru.py <ide> def standard_gru(inputs, init_h, kernel, recurrent_kernel, bias, mask, <ide> input, such as ragged tensors. If the input has a fixed timestep size, <ide> this should be None. <ide> zero_output_for_mask: Boolean, whether to output zero for masked timestep. <del> ...
2
Ruby
Ruby
add test for multi-word service argument warpping
87f5d989233476f364f9d15316ff68c6d3b6f922
<ide><path>Library/Homebrew/test/caveats_spec.rb <ide> def plist <ide> caveats = described_class.new(f).caveats <ide> <ide> expect(f.service?).to eq(true) <del> expect(caveats).to include("'#{f.bin}/php' 'test'") <add> expect(caveats).to include("#{f.bin}/php test") <add> expect(ca...
1
PHP
PHP
fix setting order
e226fed6ce59e7dc19ea334dff75107364ebda77
<ide><path>src/Illuminate/Queue/Events/JobExceptionOccurred.php <ide> public function __construct($connectionName, $job, $data, $exception) <ide> { <ide> $this->job = $job; <ide> $this->data = $data; <del> $this->connectionName = $connectionName; <ide> $this->exception = $exception; <...
1
Ruby
Ruby
warn the user of required arguments
1a3a1249bf811c783b8d65b9491b66054a19aa5e
<ide><path>Library/Homebrew/cmd/cat.rb <ide> def cat <ide> # unparsable, if the user wants to cat multiple formula they can call <ide> # brew cat multiple times. <ide> <add> raise FormulaUnspecifiedError if ARGV.named.empty? <ide> cd HOMEBREW_REPOSITORY <ide> exec "cat", ARGV.formulae.first.path, *A...
11
Javascript
Javascript
increase the cache duration
e4e2024d1c0860b142a915fab3f7beff975aa048
<ide><path>scripts/code.angularjs.org-firebase/functions/index.js <ide> const path = require('path'); <ide> <ide> const gcsBucketId = `${process.env.GCLOUD_PROJECT}.appspot.com`; <ide> <del>const BROWSER_CACHE_DURATION = 300; <del>const CDN_CACHE_DURATION = 600; <add>const BROWSER_CACHE_DURATION = 60 * 10; <add>const...
1
Text
Text
fix typo xml -> xml, json -> json
6abc3618369268015103121e980f7992b788bd89
<ide><path>guides/source/action_controller_overview.md <ide> end <ide> <ide> Note that while for session values you set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`. <ide> <del>Rendering xml and json data <add>Rendering XML and JSON data <ide> --------------------------- <ide> <de...
1
Go
Go
fix null dereference in findlbendpointsandbox
959dfca7e63360fcb3273bcd314613cbea5bd3fc
<ide><path>libnetwork/service_linux.go <ide> func (n *network) findLBEndpointSandbox() (*endpoint, *sandbox, error) { <ide> if !ok { <ide> return nil, nil, fmt.Errorf("Unable to get sandbox for %s(%s) in for %s", ep.Name(), ep.ID(), n.ID()) <ide> } <del> ep = sb.getEndpoint(ep.ID()) <del> if ep == nil { <add> var s...
1
Python
Python
add separator between data import and train
e4e0ee14bd481fe32e82578665284ea5bf4f5677
<ide><path>examples/run_seq2seq_finetuning.py <ide> def set_seed(args): <ide> torch.manual_seed(args.seed) <ide> <ide> <add># ------------ <add># Load dataset <add># ------------ <add> <ide> class TextDataset(Dataset): <ide> """ Abstracts the dataset used to train seq2seq models. <ide> <ide> def load_and_cac...
1
Ruby
Ruby
use keyword args on committed! and rolledback!
c7f56d99e51a62326c3639ca5b95e5416cb1f1d5
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb <ide> def rollback <ide> def rollback_records <ide> ite = records.uniq <ide> while record = ite.shift <del> record.rolledback! full_rollback? <add> record.rolledback!(force_restore_state: full_r...
2
Text
Text
update support image on readme.md
3e26e78b3be26751b210918da24b2e1455fd4ff8
<ide><path>README.md <ide> In Audio: <ide> ## If you are looking for custom support from the Hugging Face team <ide> <ide> <a target="_blank" href="https://huggingface.co/support"> <del> <img alt="HuggingFace Expert Acceleration Program" src="https://huggingface.co/front/thumbnails/support.png" style="max-width: 60...
1
Text
Text
update serializer docs to use correct param name
3aa1089a6af6774c1e0b12977b85062f837998ca
<ide><path>docs/api-guide/serializers.md <ide> To implement a read-only serializer using the `BaseSerializer` class, we just ne <ide> It's simple to create a read-only serializer for converting `HighScore` instances into primitive data types. <ide> <ide> class HighScoreSerializer(serializers.BaseSerializer): <del>...
1
Go
Go
update host networking with hostname and files
5ca6532011436eee85ccb555a0832a82450454ea
<ide><path>daemon/container.go <ide> func populateCommand(c *Container, env []string) error { <ide> case "none": <ide> case "host": <ide> en.HostNetworking = true <del> case "bridge": <add> case "bridge", "": // empty string to support existing containers <ide> if !c.Config.NetworkDisabled { <ide> network := c...
2
Javascript
Javascript
remove template literal
e6e58fde8bd4e69c02ce0b9fe3f06972320a7fc6
<ide><path>test/addons-napi/test_error/test.js <ide> class MyError extends Error { } <ide> const myError = new MyError('Some MyError'); <ide> <ide> // Test that native error object is correctly classed <del>assert.strictEqual(test_error.checkError(theError), true, <del> 'Error object correctly classe...
1
Ruby
Ruby
use https for fink query url
b3c991a6742d3cd662bed687bad5242216509d5e
<ide><path>Library/Homebrew/cmd/search.rb <ide> module Homebrew <ide> <ide> PACKAGE_MANAGERS = { <ide> macports: ->(query) { "https://www.macports.org/ports.php?by=name&substr=#{query}" }, <del> fink: ->(query) { "http://pdb.finkproject.org/pdb/browse.php?summary=#{query}" }, <add> fink: ->(query) ...
1
Python
Python
use save_group directly
e37689e2e85488080b1c53f3209d25e0211e0027
<ide><path>celery/backends/base.py <ide> def get_traceback(self, task_id): <ide> <ide> def save_group(self, group_id, result): <ide> """Store the result and status of a task.""" <add> <ide> raise NotImplementedError( <del> 'save_group is not supported by this backend.') <add> ...
2
Ruby
Ruby
change commands to not depend on argv
373ad2c62403cc2785dca019952437918edd90e3
<ide><path>railties/lib/rails/commands/db/system/change/change_command.rb <ide> module System <ide> class ChangeCommand < Base # :nodoc: <ide> class_option :to, desc: "The database system to switch to." <ide> <add> def initialize(positional_args, option_args, *) <add> @argv = posi...
3
Javascript
Javascript
build unit tests
59111f17c3244900fdc407e0d3053b4dee76eab0
<ide><path>test/unit/three.editor.unit.js <ide> option.setTextContent( 'Plane' ); <ide> option.onClick( function () { <ide> <del> var geometry = new THREE.PlaneBufferGeometry( 2, 2 ); <add> var geometry = new THREE.PlaneBufferGeometry( 1, 1, 1, 1 ); <ide> var material = new THREE.MeshStandardMaterial(); <id...
2
Javascript
Javascript
fix bustage while merging
a600a3d2ced53005c1f1e358fdcabdfd5766a959
<ide><path>fonts.js <ide> var Font = (function () { <ide> var rule = "@font-face { font-family:'" + fontName + "';src:" + url + "}"; <ide> var styleSheet = document.styleSheets[0]; <ide> styleSheet.insertRule(rule, styleSheet.cssRules.length); <add> <add> return rule; <ide> } <ide> }; <ide>...
1
Ruby
Ruby
add audit check for explicit python linkage
5c414dca5b5affb374bb5409b6d5564a448498dd
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_openssl_links <ide> EOS <ide> end <ide> <add> def check_python_framework_links lib <add> python_modules = Pathname.glob lib/"python*/site-packages/**/*.so" <add> framework_links = python_modules.select do |obj| <add> dlls = obj.dyna...
1
Javascript
Javascript
fix object name in prefer-assert-methods.js
54bb7e3bff819431af1e860daf46844859e002c0
<ide><path>tools/eslint-rules/prefer-assert-methods.js <ide> function parseError(method, op) { <ide> return `'assert.${method}' should be used instead of '${op}'`; <ide> } <ide> <del>const preferedAssertMethod = { <add>const preferredAssertMethod = { <ide> '===': 'strictEqual', <ide> '!==': 'notStrictEqual', <id...
1
PHP
PHP
fix bug in backreference
6d6fc1b13e194036389a6e8c54e1316a506a8c15
<ide><path>laravel/routing/controller.php <ide> protected static function backreference($method, $parameters) <ide> if ($count > 0) unset($parameters[$key]); <ide> } <ide> <del> return array(str_replace('$1', 'index', $method), $parameters); <add> return array(str_replace('(:1)', 'index', $method), $parameters)...
1
Ruby
Ruby
save some allocations in actionview digest
ecbde46a405114fea88cb3704f46347edb9af729
<ide><path>actionview/lib/action_view/digestor.rb <ide> def digest(name:, format: nil, finder:, dependencies: nil) <ide> if dependencies.nil? || dependencies.empty? <ide> cache_key = "#{name}.#{format}" <ide> else <del> cache_key = [ name, format, dependencies ].flatten.compact.join("...
1
Text
Text
escape some double brackets
622bdadfd713b03932c5b142ac46915483a0cb04
<ide><path>docs/extend/plugins_services.md <ide> title: Plugins and Services <ide> <ide> In swarm mode, it is possible to create a service that allows for attaching <ide> to networks or mounting volumes that are backed by plugins. Swarm schedules <del>services based on plugin availability on a node. <add>services bas...
1
Text
Text
add issue and pull request templates
84427591ccffe686f158ce81e5c6ba6694f7da50
<ide><path>.github/ISSUE_TEMPLATE.md <add><!-- <add>Feature Requests: <add> Please read https://github.com/jquery/jquery/wiki/Adding-new-features <add> Most features should start as plugins outside of jQuery. <add> <add>Bug Reports: <add> Note that we only can fix bugs in the latest (1.x, 2.x, 3.x) versions of jQuer...
2
Go
Go
remove deprecated support for duplicate label-keys
8c6322338c91cdb88b1fef4def393d9a7b670366
<ide><path>cmd/dockerd/daemon.go <ide> func loadDaemonCliConfig(opts *daemonOptions) (*config.Config, error) { <ide> logrus.Warnf(`The "-g / --graph" flag is deprecated. Please use "--data-root" instead`) <ide> } <ide> <del> // Labels of the docker engine used to allow multiple values associated with the same key. ...
5
Python
Python
add argument "cache_dir" for transformers.onnx
2afe9cd279651698edf045c6d9f8c2a352789963
<ide><path>src/transformers/onnx/__main__.py <ide> def main(): <ide> "--framework", type=str, choices=["pt", "tf"], default="pt", help="The framework to use for the ONNX export." <ide> ) <ide> parser.add_argument("output", type=Path, help="Path indicating where to store generated ONNX model.") <add> ...
2
Python
Python
ignore concatenation of strings in initexpressions
653d2b27fbe3771d7b669da0aec62a0cdb0654ac
<ide><path>numpy/f2py/crackfortran.py <ide> def analyzeline(m,case,line): <ide> replace(',','+1j*(') <ide> try: <ide> v = eval(initexpr,{},params) <del> except (SyntaxError,NameError),msg: <add> except (SyntaxError,NameError,TypeError),msg...
1
Python
Python
break some long lines
9a20329eabc9c4b8a10c1c7163de40334abde479
<ide><path>numpy/lib/tests/test_arraysetops.py <ide> def test_union1d(self): <ide> c = union1d(a, b) <ide> assert_array_equal(c, ec) <ide> <del> # Tests gh-10340, arguments to union1d should be flattened if they are not already 1D <add> # Tests gh-10340, arguments to union1d should be <ad...
1
Go
Go
move /session api endpoint out of experimental
01c9e7082eba71cbe60ce2e47acb9aad2c83c7ef
<ide><path>api/server/router/session/session.go <ide> func (r *sessionRouter) Routes() []router.Route { <ide> <ide> func (r *sessionRouter) initRoutes() { <ide> r.routes = []router.Route{ <del> router.Experimental(router.NewPostRoute("/session", r.startSession)), <add> router.NewPostRoute("/session", r.startSession...
1
Text
Text
fix grammatical errors
6281a9afcaf5c3d0a254e55fc49d6d2f7b0932f5
<ide><path>threejs/lessons/fr/threejs-responsive.md <ide> Title: Design réactif et Three.js <del>Description: Comment rendre Three.js adaptable à des affichages de taille différente. <add>Description: Comment rendre three.js adaptable à des affichages de taille différente. <ide> TOC: Design réactif <ide> <del>Ceci est...
1
Ruby
Ruby
add route for assets
170680ae9179ea6ce35e1a2ca50ea474bf2126ab
<ide><path>railties/lib/rails/application.rb <ide> def config <ide> @config ||= Application::Configuration.new(find_root_with_flag("config.ru", Dir.pwd)) <ide> end <ide> <del> def self.default_sprockets_paths <del> [ <del> "app/assets", <del> "app/assets/javascripts", <del> "app/ass...
2
Text
Text
use correct capitalisation in cocoapods
f18493400c833b32ee0e9f1a0732cc5ecc178ac8
<ide><path>docs/EmbeddedApp.md <ide> permalink: docs/embeded-app.html <ide> next: activityindicatorios <ide> --- <ide> <del>## Install React Native Using Cocoapods <add>## Install React Native Using CocoaPods <ide> <del>[Cocoapods](http://cocoapods.org/) is a package management tool for iOS/Mac development. We need t...
1
Ruby
Ruby
make a note for tying inbound email to exception
029c693f19ee088af329620fb729dd9005080755
<ide><path>lib/action_mailroom/mailbox.rb <ide> def perform_processing <ide> inbound_email.delivered! <ide> rescue => exception <ide> inbound_email.failed! <add> <add> # TODO: Include a reference to the inbound_email in the exception raised so error handling becomes easier <ide> rescue_with_handler...
1
Javascript
Javascript
remove early returns from updatefiberrecursively
57e8513a300ea5b594d1bff8e659926eff2be409
<ide><path>src/backend/renderer.js <ide> export function attach( <ide> if (__DEBUG__) { <ide> debug('updateFiberRecursively()', nextFiber, parentFiber); <ide> } <del> <add> const shouldIncludeInTree = !shouldFilterFiber(nextFiber); <add> const isSuspense = nextFiber.tag === SuspenseComponent; <add> ...
1
Javascript
Javascript
relax ei search for inline images
c68dbd777efa848650d5abec7a7c78fbd6a76339
<ide><path>src/parser.js <ide> var Parser = (function ParserClosure() { <ide> // parse image stream <ide> var startPos = stream.pos; <ide> <del> // searching for the /\sEI\s/ <add> // searching for the /EI\s/ <ide> var state = 0, ch; <ide> while (state != 4 && (ch = stream.getByte()) ...
1
Javascript
Javascript
fix lint errors for examples/todomvc/
677abce2dc1b9c8dc9331bb8e033ecf47ceceb1e
<ide><path>examples/todomvc/actions/todos.js <del>import * as types from '../constants/ActionTypes'; <add>import * as types from '../constants/ActionTypes' <ide> <ide> export function addTodo(text) { <del> return { type: types.ADD_TODO, text }; <add> return { type: types.ADD_TODO, text } <ide> } <ide> <ide> export ...
23
Ruby
Ruby
remove obsolete tap --repair
d8f9bfa730370c22665bd6b0b649daa87b856c00
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def test_bot <ide> <ide> # Tap repository if required, this is done before everything else <ide> # because Formula parsing and/or git commit hash lookup depends on it. <del> if tap <del> if !repository.directory? <del> safe_system "brew", "tap", ...
1
Javascript
Javascript
add an improved version of the stlloader
bd7fda284d34cbb76ef120beed21ab55815e2089
<ide><path>examples/js/loaders/STLLoader.js <ide> * Supports both binary and ASCII encoded files, with automatic detection of type. <ide> * <ide> * Limitations: Binary decoding ignores header. There doesn't seem to be much of a use for it. <del> * There is perhaps some question as to how valid it is to always ass...
1
Javascript
Javascript
fix the example
64912069caeb5a05da449b6ee04c965477f3ae25
<ide><path>src/angular-mocks.js <ide> window.jasmine && (function(window) { <ide> * Example of what a typical jasmine tests looks like with the inject method. <ide> * <pre> <ide> * <del> * angular.module('myTestsModule', [], function($provide) { <del> * $provide.value('mode', 'test'); <del> * });...
1
Javascript
Javascript
add bullet and bullet_sp
4761d5a83e707e0ed651f02a9e02fc5d66b1869a
<ide><path>Libraries/UTFSequence.js <ide> const deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationI <ide> * - Less chance of typos. <ide> */ <ide> const UTFSequence = deepFreezeAndThrowOnMutationInDev({ <add> BULLET: '\u2022', // bullet: &#8226; <add> BULLET_SP: '\u00A0\u2022\u00A0', // &nbs...
1
Ruby
Ruby
sanitize args before exec
a9e6f0773219d40a089ce7dde86900d4e7a9a937
<ide><path>Library/Homebrew/formula.rb <ide> def system cmd, *args <ide> rd.close <ide> $stdout.reopen wr <ide> $stderr.reopen wr <add> args.collect!{|arg| arg.to_s} <ide> exec(cmd, *args) rescue nil <ide> exit! 1 # never gets here unless exec threw or failed <ide> e...
1
Python
Python
set version to v3.2.0.dev0
8a018f5207d81e15701798243c65194fd1f80aa6
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.1.3" <add>__version__ = "3.2.0.dev0" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility....
1
Ruby
Ruby
add named_args dsl for commands
da811373d3f876da72d53c2828fd4cacefdba210
<ide><path>Library/Homebrew/cli/named_args.rb <ide> def to_kegs_to_casks(only: parent&.only_formula_or_cask, ignore_unavailable: nil <ide> .map(&:freeze).freeze <ide> end <ide> <add> sig { returns(T::Array[Tap]) } <add> def to_taps <add> @to_taps ||= downcased_unique_named.map { |name|...
84
Text
Text
avoid double negation in test guide
bb3c054358901e28a697643b1f76e0a29b68158e
<ide><path>guides/source/testing.md <ide> class UserMailerTest < ActionMailer::TestCase <ide> # Send the email, then test that it got queued <ide> email = UserMailer.create_invite('me@example.com', <ide> 'friend@example.com', Time.now).deliver_now <del> assert_not ActionM...
1
Go
Go
change flag to -o and --opt
c9d7f858fd1c6e2d1287e28ee12952333b327c75
<ide><path>runconfig/hostconfig.go <ide> type HostConfig struct { <ide> PortBindings nat.PortMap <ide> Links []string <ide> PublishAllPorts bool <del> PluginOptions map[string][]string <add> DriverOptions map[string][]string <ide> } <ide> <ide> type KeyValuePair struct { <ide> func ContainerHostCon...
5
Ruby
Ruby
remove example that is generally not required
19f9d0aaf17c5ca70141739dbfb7647423af48cf
<ide><path>Library/Contributions/example-formula.rb <ide> def install <ide> ENV.append_to_cflags "-I ./missing/includes" <ide> end <ide> <del> # This is in general not necessary, but to show how to find the path to <del> # the Mac OS X SDK: <del> ENV.append "CPPFLAGS", "-I#{MacOS.sdk_path}/usr/inclu...
1
Ruby
Ruby
update usage message
212b64836f6e0fe76e11169caf8c6db7a12f34c7
<ide><path>Library/Homebrew/cmd/link.rb <ide> def link_args <ide> switch "-f", "--force", <ide> description: "Allow keg-only formulae to be linked." <ide> switch "--HEAD", <del> description: "If it is installed, link the HEAD version." <add> description: "Link the HEAD v...
1
Javascript
Javascript
remove unnecessary comma in message
aa5e21f2bd6f8c0f3fb33e560ce3233e5e0cc966
<ide><path>lib/dependencies/CommonJsRequireDependencyParserPlugin.js <ide> CommonJsRequireDependencyParserPlugin.prototype.apply = function(parser) { <ide> }); <ide> parser.plugin("expression require", function(expr) { <ide> var dep = new CommonJsRequireContextDependency(options.unknownContextRequest, options.unkno...
1
Javascript
Javascript
use fs.access in fs.exists
d3955d15ff5c68acf91f35177d290ff068068a05
<ide><path>lib/fs.js <ide> fs.exists = function(path, callback) { <ide> } <ide> <ide> try { <del> path = getPathFromURL(path); <del> validatePath(path); <add> fs.access(path, fs.FS_OK, suppressedCallback); <ide> } catch (err) { <ide> return callback(false); <ide> } <del> var req = new FSReqWrap()...
1
Javascript
Javascript
add dropping of custom scripts in amp mode
26a4eb827c384288a4185bdbe14233c025c96dbd
<ide><path>packages/next/pages/_document.js <ide> export class Head extends Component { <ide> badProp = 'name="viewport"' <ide> } else if (type === 'link' && props.rel === 'canonical') { <ide> badProp = 'rel="canonical"' <add> } else if (type === 'script') { <add> badProp = '<script' <...
3
Ruby
Ruby
reflect mapping to match initialize
7af4d91a986337ac4ac4669d161df79e63c0b6c5
<ide><path>activerecord/lib/active_record/aggregations.rb <ide> def init_internals # :nodoc: <ide> # the database). <ide> # <ide> # class Customer < ActiveRecord::Base <del> # composed_of :balance, class_name: "Money", mapping: %w(balance amount) <add> # composed_of :balance, class_name: "Mo...
1
Javascript
Javascript
copy the buffer object before using
60dcd7323f6a62d9539c4de70756a1081a123281
<ide><path>lib/tls.js <ide> function convertProtocols(protocols) { <ide> exports.convertNPNProtocols = function(protocols, out) { <ide> // If protocols is Array - translate it into buffer <ide> if (Array.isArray(protocols)) { <del> protocols = convertProtocols(protocols); <del> } <del> // If it's already a Buf...
2
Javascript
Javascript
fix the examples to work on jsfiddle, update docs
b49ddf9848952a95032e9962796ec3a6e50857de
<ide><path>src/service/route.js <ide> 'use strict'; <ide> <add> <ide> /** <ide> * @ngdoc object <del> * @name angular.module.ng.$route <del> * @requires $location <del> * @requires $routeParams <del> * <del> * @property {Object} current Reference to the current route definition. <del> * @property {Array.<Object>} rou...
2
Ruby
Ruby
remove route#build as it wasn't used
20104ba13daae81184a339b8949054aecbbd7655
<ide><path>actionpack/lib/action_dispatch/journey/route.rb <ide> def self.verb_matcher(verb) <ide> end <ide> end <ide> <del> def self.build(name, app, path, constraints, required_defaults, defaults) <del> new name: name, app: app, path: path, constraints: constraints, <del> require...
2
Go
Go
add test for cleanupservicediscovery
aa81c6d26577ddb7eade6d29d36190dd4c828571
<ide><path>libnetwork/service_common_test.go <add>package libnetwork <add> <add>import ( <add> "net" <add> "testing" <add> <add> "github.com/stretchr/testify/require" <add>) <add> <add>func TestCleanupServiceDiscovery(t *testing.T) { <add> c, err := New() <add> require.NoError(t, err) <add> defer c.Stop() <add> <add> n...
1
Text
Text
remove mdn links from english challenges
20d397f719e7dd96d987ddb52ab100644eca95f8
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript.english.md <ide> is the equivalent of <ide> ## Instructions <ide> <section id='instructions'> <ide> Change the code to use the <code>++</code> operator on <code>myVar</code>. <del><s...
4
Javascript
Javascript
remove the ignorefont variable
f240a5b811a897d77e83653c9f0e59e7d89d8e34
<ide><path>pdf.js <ide> var CanvasGraphics = (function() { <ide> error("FontFile not found for font: " + fontName); <ide> fontFile = xref.fetchIfRef(fontFile); <ide> <del> // Fonts with an embedded cmap but without any assignment in <del> // it are not yet supported, s...
1
Javascript
Javascript
add an evented mixin for ember objects
2326580cda4383ee732e84a28407728fe4231bfb
<ide><path>packages/ember-runtime/lib/mixins.js <ide> require('ember-runtime/mixins/mutable_array'); <ide> require('ember-runtime/mixins/mutable_enumerable'); <ide> require('ember-runtime/mixins/observable'); <ide> require('ember-runtime/mixins/target_action_support'); <add>require('ember-runtime/mixins/evented'); <ide...
3
Text
Text
fix typo in ap changelog [ci skip]
2731ffae7400d0dd9d69b126384a4480270a61cb
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <del>* Add `include_hidden` option to select tag. With `:include_hidden => true` select with `multiple` attribute doesn't generate hidden input with blank value. *Vasiliy Ermolovich* <add>* Add `include_hidden` option to select tag. With...
1
Go
Go
rename a method for clarity
a110ce2f284d09df3e047b1999a1535770433d5f
<ide><path>api/client/cli.go <ide> func (cli *DockerCli) getMethod(name string) (func(...string) error, bool) { <ide> return method.Interface().(func(...string) error), true <ide> } <ide> <del>func (cli *DockerCli) ParseCommands(args ...string) error { <add>// Cmd executes the specified command <add>func (cli *Docker...
2
Javascript
Javascript
add switch docs
a41afb7a1db325c9455945abffa5927ed10d3e93
<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
Go
Go
move rest of console functions to pkg
a949d39f195e7b87288b10b0ef31843e6a3d8eb0
<ide><path>pkg/libcontainer/console/console.go <ide> func Setup(rootfs, consolePath, mountLabel string) error { <ide> } <ide> return nil <ide> } <add> <add>func OpenAndDup(consolePath string) error { <add> slave, err := system.OpenTerminal(consolePath, syscall.O_RDWR) <add> if err != nil { <add> return fmt.Errorf("o...
2
Javascript
Javascript
update code style
69339a0f671b59b35c541425bc23c74c739e8160
<ide><path>src/test/__tests__/ReactTestUtils-test.js <ide> describe('ReactTestUtils', function() { <ide> }); <ide> <ide> it('Test scryRenderedDOMComponentsWithClass with className contains \\n', function() { <del> var renderedComponent = ReactTestUtils.renderIntoDocument(<div>Hello <span className={`x <del> ...
1
PHP
PHP
apply fixes from styleci
192e6caf53f8d4592c6fd1fbf70d60bed58bf9a8
<ide><path>src/Illuminate/Support/Facades/URL.php <ide> * @method static string temporarySignedRoute(string $name, \DateTimeInterface|\DateInterval|int $expiration, array $parameters = [], bool $absolute = true) <ide> * @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true) <i...
1
Javascript
Javascript
remove unneeded message assignment
b5b6506242a048ab3478375272012fa40db23b9c
<ide><path>lib/WebpackError.js <ide> module.exports = class WebpackError extends Error { <ide> constructor(message) { <ide> super(message); <ide> <del> this.message = message; <ide> this.details = undefined; <ide> <ide> Error.captureStackTrace(this, this.constructor);
1
Text
Text
fix href in docs w.r.t. cgroups freezer pointer
b10e11f30e111e6d4ae4b439e64463e08b3ab78b
<ide><path>docs/sources/reference/commandline/cli.md <ide> used, which is observable by the process being suspended. With the cgroups freez <ide> the process is unaware, and unable to capture, that it is being suspended, <ide> and subsequently resumed. <ide> <del>See the [cgroups freezer documentation] <del>(https://w...
1
Text
Text
update typo in typescript docs
dd3bb73d8078f8206dcca2660ba706c5e9e4f6bd
<ide><path>docs/basic-features/typescript.md <ide> The following is an example of how to use the built-in types for API routes: <ide> import { NextApiRequest, NextApiResponse } from 'next' <ide> <ide> export default (req: NextApiRequest, res: NextApiResponse) => { <del> res.status(200).json({ name: 'Jhon Doe' }) <add...
1
Javascript
Javascript
remove ai_v4mapped hint flag on freebsd
04bea9f9c224d9f863f671a1ad52a3f392b292cb
<ide><path>lib/dns.js <ide> exports.lookup = function lookup(hostname, options, callback) { <ide> hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) { <ide> throw new TypeError('invalid argument: hints must use valid flags'); <ide> } <add> <add> // FIXME(indutny): V4MAPPED on FreeBSD results in EAI...
1
PHP
PHP
add getcookie() and replace cookie()
3e6954ccc0b0704101c52978a4cc3e10f4559202
<ide><path>src/Http/ServerRequest.php <ide> protected function _parseAcceptWithQualifier($header) <ide> * <ide> * @param string|null $name Query string variable name or null to read all. <ide> * @return string|array|null The value being read <del> * @deprecated 3.4.0 Use getQuery() instead. <add> ...
2
Text
Text
fix typo in nativecomponentsandroid.md
97f1cdaad4724831e5b2a5a262e6dafe96d29335
<ide><path>docs/NativeComponentsAndroid.md <ide> Setter declaration requirements for methods annotated with `@ReactPropGroup` are <ide> view.setSource(src); <ide> } <ide> <del> @ReactProp(name = "borderRadius", defaultFLoat = 0f) <add> @ReactProp(name = "borderRadius", defaultFloat = 0f) <ide> public void ...
1
Java
Java
add a maybe type as a lazy optional type.
b8a3320cb594f291191fa4a6bee6ed12eff62ffe
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> import io.reactivex.internal.fuseable.*; <ide> import io.reactivex.internal.operators.completable.CompletableFromPublisher; <ide> import io.reactivex.internal.operators.flowable.*; <add>import io.reactivex.internal.operators.maybe.MaybeFromPublisher; <ide> impor...
51
Ruby
Ruby
remove unused variables. refactor code
52343142a7d9cb871fc1f4affc3edb9caff69ab5
<ide><path>Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb <ide> class InternalStanza < AbstractInternalCommand <ide> ARTIFACTS = <ide> DSL::ORDINARY_ARTIFACT_CLASSES.map(&:dsl_key) + <ide> DSL::ARTIFACT_BLOCK_CLASSES.map(&:dsl_key) <del> ARTIFACTS_CLASSES = <del> DSL::ORDINARY_AR...
1
Javascript
Javascript
add verifynooutstandingrequest method
afbe073121f13a23dc33a1d958c0a964029dc6ee
<ide><path>src/angular-mocks.js <ide> angular.module.ngMock.$HttpBackendProvider = function() { <ide> } <ide> }; <ide> <del> $httpBackend.verifyExpectations = function() { <add> $httpBackend.verifyNoOutstandingExpectation = function() { <ide> if (expectations.length) { <ide> throw Error('...
4
Go
Go
fix race conditions in parallel pull
3f802f4a13cc9d35118420f7c769a8b3531476c8
<ide><path>server.go <ide> func (srv *Server) pullImage(r *registry.Registry, out io.Writer, imgID, endpoin <ide> if err != nil { <ide> return err <ide> } <del> <add> out.Write(sf.FormatProgress(utils.TruncateID(imgID), "Pulling", "dependend layers")) <ide> // FIXME: Try to stream the images? <ide> // FIXME: Laun...
1
Java
Java
drop servlet 2.5 runtime compatibility
ae0b7c26c56cbe519f8ec9ab7dbd780d93b6bf3f
<ide><path>spring-web/src/main/java/org/springframework/http/server/ServletServerHttpResponse.java <ide> */ <ide> public class ServletServerHttpResponse implements ServerHttpResponse { <ide> <del> /** Checking for Servlet 3.0+ HttpServletResponse.getHeader(String) */ <del> private static final boolean servlet3Present...
10
Java
Java
add mutate() to requestmappinginfo
ec5f99f981b33e28cbc96f78b1fb560166fd9c1a
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License")...
4
Text
Text
fix typo on `fields.md`
9b5a6bea67114e0d2cdb0f8e4ae1eb1cf05d2fed
<ide><path>docs/api-guide/fields.md <ide> The `.fail()` method is a shortcut for raising `ValidationError` that takes a me <ide> <ide> return Color(red, green, blue) <ide> <del>This style keeps you error messages more cleanly separated from your code, and should be preferred. <add>This style keeps your error ...
1
PHP
PHP
use the constructor for "extra" config logic
0f26fd6a34cf38358d62984066b4bc1ec525fb99
<ide><path>src/Log/Engine/FileLog.php <ide> class FileLog extends BaseLog { <ide> /** <ide> * Sets protected properties based on config provided <ide> * <del>* @param string|array|null $key the key to get/set, or a complete array of configs <del> * @param mixed|null $value the value to set <del> * @return mixed confi...
1
Java
Java
add support for custom types in ammh
3f130a1c086028aef7ce1debdcd18642801525b2
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AnnotationMethodMessageHandler.java <ide> <ide> import java.lang.annotation.Annotation; <ide> import java.lang.reflect.Method; <add>import java.util.ArrayList; <ide> import java.util.Arrays; <ide> import java.util.HashMap; <ide> impor...
1
PHP
PHP
allow float value as expiration
e9ed2169c1420197fb14f1e9e49a5b0884804e02
<ide><path>src/Illuminate/Cache/MemcachedStore.php <ide> public function flush() <ide> */ <ide> protected function toTimestamp($minutes) <ide> { <del> return $minutes > 0 ? Carbon::now()->addMinutes($minutes)->getTimestamp() : 0; <add> return $minutes > 0 ? Carbon::now()->addSeconds($minutes ...
1
Text
Text
add translation of ‘things you can do with python’
9a003be88ee2461814ca44c8fda973649084deb6
<ide><path>guide/chinese/python/index.md <ide> Python 3中的[`print`](https://docs.python.org/3/library/functions.html#print) <ide> <ide> `objects`参数以`*`为前缀,表示该函数将为该参数采用任意数量的参数。 <ide> <add>## 你可以用python来做的事 <add>正如之前所说,Python是一门通用型语言。你可以用它来做任何你想做的事情,但是python一个很重要的应用在于机器学习和人工智能。python同样是一门很受欢迎的网站开发语言,这得益于一些优秀的框架,例如[Djang...
1
Javascript
Javascript
set navigator.product to reactnative
e966cd104110a980f343b794d85ac1b3afb2449e
<ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js <ide> function setUpGeolocation() { <ide> polyfillGlobal('geolocation', require('Geolocation'), GLOBAL.navigator); <ide> } <ide> <add>function setUpProduct() { <add> Object.defineProperty(GLOBAL.navigator, 'product', {value: 'R...
1
Javascript
Javascript
replace fixturesdir with fixtures module
76abf0fae0d015bd2b12d94fdd69bb4a4b1ed75d
<ide><path>test/parallel/test-internal-util-decorate-error-stack.js <ide> // Flags: --expose_internals <ide> 'use strict'; <del>const common = require('../common'); <add>require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const internalUtil = require(...
1
Text
Text
update spanish translation of text
1e878c96bbfba42ad281420fc5ddb75de2abdb37
<ide><path>docs/spanish/CONTRIBUTING.md <ide> Siéntete libre de pedir ayuda en: <ide> - [La categoría "Colaboradores" en nuestro foro público](https://www.freecodecamp.org/forum/c/contributors). <ide> - [La sala de chat de nuestros colaboradores públicos en Gitter](https://gitter.im/FreeCodeCamp/Contributors). <ide> <...
1
Java
Java
use dedicated addadvisors
03b409f891f8ae3e2e22fc347695d07211cf5b8e
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java <ide> protected Object createProxy(Class<?> beanClass, @Nullable String beanName, <ide> } <ide> <ide> Advisor[] advisors = buildAdvisors(beanName, specificInterceptors); <del> for (Advisor advisor : advis...
1
Python
Python
fix insert_job method of bigqueryhook
1cfdebf5f8841d61a11540b88c7913686e89e085
<ide><path>airflow/providers/google/cloud/hooks/bigquery.py <ide> def insert_job( <ide> if not job: <ide> raise AirflowException(f"Unknown job type. Supported types: {supported_jobs.keys()}") <ide> job = job.from_api_repr(job_data, client) <add> # Start the job and wait for it to comp...
2
Ruby
Ruby
replace literal paths to ruby with ruby_path
89bb6664c48c54c3ff281d5b497b8d84143f5549
<ide><path>Library/Homebrew/cmd/--config.rb <ide> def dump_build_config <ide> puts "OS X: #{MACOS_FULL_VERSION}-#{kernel}" <ide> puts "Xcode: #{xcode}" if xcode <ide> puts "CLT: #{clt}" if clt <del> puts "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby:\n #{RUBY_VERSION}-#{RUBY_PATCH...
1
Ruby
Ruby
use a heredoc for this long line
ccec313b03ebf2bd76c7cb362c9825ac1d4f42a6
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_formula_instance f <ide> <ide> case d <ide> when "git", "python", "ruby", "emacs", "mysql", "postgresql", "mercurial" <del> problems << " * Don't use #{d} as a dependency; we allow non-Homebrew\n #{d} installs." <add> problems << <<-EOS <add>...
1
Python
Python
add convolution1d and maxpooling1d
ba45a6eb2631a0be2c75ba7a32c779374b28e171
<ide><path>keras/layers/convolutional.py <ide> def __init__(self, nb_filter, stack_size, filter_length, <ide> <ide> nb_row = 1 <ide> nb_col = filter_length <del> subsample=(1,subsample_length) <add> <add> self.nb_filter = nb_filter <add> self.stack_size = stack_size <add> ...
1
PHP
PHP
add coverage for increasememorylimit
7d47b7fb3a43a47e85376ba69e964ba51942af65
<ide><path>tests/TestCase/Error/ExceptionTrapTest.php <ide> use Cake\Error\Renderer\TextExceptionRenderer; <ide> use Cake\Log\Log; <ide> use Cake\TestSuite\TestCase; <add>use Cake\Utility\Text; <ide> use InvalidArgumentException; <ide> use stdClass; <ide> use Throwable; <ide> <ide> class ExceptionTrapTest extends Test...
1
Javascript
Javascript
fix inspect throw if slice length too long
fa89cf545cad2ae6fc2ed15006b9c118cb9077d2
<ide><path>lib/buffer.js <ide> Buffer.prototype.inspect = function inspect() { <ide> var str = ''; <ide> var max = exports.INSPECT_MAX_BYTES; <ide> if (this.length > 0) { <del> str = this.hexSlice(0, max).match(/.{2}/g).join(' '); <add> str = this.toString('hex', 0, max).match(/.{2}/g).join(' '); <ide> ...
1
Ruby
Ruby
install dependencies before an interactive install
7bfb12aa4565cb0c4a7edbdda1cbd267f10d2a20
<ide><path>Library/Homebrew/cmd/install.rb <ide> def perform_preinstall_checks <ide> def install_formula f <ide> fi = FormulaInstaller.new(f) <ide> fi.options = f.build.used_options <del> fi.ignore_deps = ARGV.ignore_deps? || ARGV.interactive? <add> fi.ignore_deps = ARGV.igno...
1