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
PHP
PHP
reset use statements order
589fe7968349b191395547b9a0c5044a22d4456f
<ide><path>src/Illuminate/Http/Client/Factory.php <ide> namespace Illuminate\Http\Client; <ide> <ide> use Closure; <add>use function GuzzleHttp\Promise\promise_for; <ide> use GuzzleHttp\Psr7\Response as Psr7Response; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Traits\Macroable; <ide> use PHPUnit\Fra...
1
Javascript
Javascript
add a test case for the path.posix.resolve
e3555e9c2b2877d1214474647a6bae6207046bfb
<ide><path>test/parallel/test-path-resolve.js <ide> if (common.isWindows) { <ide> const resolvedPath = spawnResult.stdout.toString().trim(); <ide> assert.strictEqual(resolvedPath.toLowerCase(), process.cwd().toLowerCase()); <ide> } <add> <add>if (!common.isWindows) { <add> // Test handling relative paths to be saf...
1
Text
Text
add initial draft of converting your package
7a0b8c31d497ccaf4e590a794276bdbbfd0299e8
<ide><path>docs/upgrading/upgrading-your-package.md <add># Upgrading your package to 1.0 APIs <add> <add>Atom is rapidly approaching 1.0. Much of the effort leading up to the 1.0 has been cleaning up APIs in an attempt to future proof, and make a more pleasant experience developing packages. <add> <add>This document wi...
1
Mixed
Ruby
prevent double save of cyclic associations
a1a5d37749964b1e1a23914ef13da327403e34cb
<ide><path>activerecord/CHANGELOG.md <add>* Prevent double saves in autosave of cyclic associations <add> <add> Adds a @saving state which tracks if a record is currently being saved. <add> If @saving is set to true, the record won't be saved by the autosave callbacks. <add> <add> *Petrik de Heus* <add> <ide...
6
Javascript
Javascript
flow type touchablehighlight
f0c18dc820537892dcc33d5aebbf4f52cf299b95
<ide><path>Libraries/Components/Touchable/TouchableHighlight.js <ide> const createReactClass = require('create-react-class'); <ide> const ensurePositiveDelayProps = require('ensurePositiveDelayProps'); <ide> <ide> import type {PressEvent} from 'CoreEventTypes'; <add>import type {Props as TouchableWithoutFeedbackProps}...
5
Javascript
Javascript
resolve the char->glyphs mapping issue
3dbfde89a34796ff8060738f38a227d70be27580
<ide><path>PDFFont.js <ide> var fontCount = 0; <ide> var Fonts = { <ide> _active: null, <ide> get active() { <del> return this._active || { encoding: {} }; <add> return this._active || { encoding: [] }; <ide> }, <ide> <ide> set active(aName) { <ide><path>pdf.js <ide> var Lexer = (function() { <ide> ...
3
PHP
PHP
remove remaining priorities.
19fcecfc782cb7fe0dea6f8a293e167cfb1bf38d
<ide><path>src/Illuminate/Contracts/View/Factory.php <ide> public function share($key, $value = null); <ide> * <ide> * @param array|string $views <ide> * @param \Closure|string $callback <del> * @param int|null $priority <ide> * @return array <ide> */ <del> public function composer...
3
Javascript
Javascript
add beta.freecodecamp.com to csp script source
dbe50a5dfa16a5ad5cb5da4e0b2efb2f1902dc4f
<ide><path>server/server.js <ide> app.use(helmet.csp({ <ide> '*.d3js.org', <ide> 'https://cdn.inspectlet.com/inspectlet.js', <ide> 'http://cdn.inspectlet.com/inspectlet.js', <del> 'http://www.freecodecamp.org' <add> 'http://beta.freecodecamp.com' <ide> ].concat(trusted), <ide> 'connect-src': [ <id...
1
Javascript
Javascript
remove unneeded changes on webglprogram
5a1f73f2a6fa0d599030f915b44d7e033bc832c2
<ide><path>src/renderers/webgl/WebGLProgram.js <ide> function WebGLProgram( renderer, extensions, code, material, shader, parameters, <ide> var vertexGlsl = prefixVertex + vertexShader; <ide> var fragmentGlsl = prefixFragment + fragmentShader; <ide> <del> var glVertexShader = WebGLShader( gl, gl.VERTEX_SHADER, verte...
1
Python
Python
use current result serializer instead of pickle
65ca6bcdd919fce57d1de83ffd80c4236dea7b74
<ide><path>celery/backends/cassandra.py <ide> <ide> from celery.backends.base import BaseDictBackend <ide> from celery.exceptions import ImproperlyConfigured <del>from celery.utils.serialization import pickle <ide> from celery.utils.timeutils import maybe_timedelta, timedelta_seconds <ide> from celery import states <i...
1
Ruby
Ruby
use realtime to reduce garbage. [adymo]
fa4d5f2dc1e63df9ce289aedea844fe69327241b
<ide><path>actionpack/lib/action_controller/benchmarking.rb <ide> def render_with_benchmark(options = nil, extra_options = {}, &block) <ide> db_runtime = ActiveRecord::Base.connection.reset_runtime if Object.const_defined?("ActiveRecord") && ActiveRecord::Base.connected? <ide> <ide> render_output =...
1
PHP
PHP
allow session encryption
7b892e2452006a9cc0c750f09cd55274ae036d06
<ide><path>config/session.php <ide> <ide> 'expire_on_close' => false, <ide> <add> /* <add> |-------------------------------------------------------------------------- <add> | Session Encryption <add> |-------------------------------------------------------------------------- <add> | <add> | This option allows you to...
1
Javascript
Javascript
add missing cache
0e62bdb74abf8b27ea0dc31cb2c8ed1fce49d1eb
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> * @returns {string | null} an identifier for library inclusion <ide> */ <ide> libIdent(options) { <del> return contextify(options.context, this.userRequest); <add> return contextify( <add> options.context, <add> this.userRequest, ...
1
Python
Python
add use_keras_layer flag for fpn
ac739092f50051e08c00377c3595b225b4daa51e
<ide><path>official/vision/configs/decoders.py <ide> class FPN(hyperparams.Config): <ide> num_filters: int = 256 <ide> fusion_type: str = 'sum' <ide> use_separable_conv: bool = False <add> use_keras_layer: bool = False <ide> <ide> <ide> @dataclasses.dataclass <ide><path>official/vision/modeling/decoders/fpn.py...
3
Javascript
Javascript
add missing argument check
a995a335f4ffbd82c2afc6369f7bc515a3721c27
<ide><path>lib/javascript/JavascriptParser.js <ide> class JavascriptParser extends Parser { <ide> } <ide> } else if (expr.operator === "-") { <ide> const argument = this.evaluateExpression(expr.argument); <del> <add> if (!argument) return; <ide> if (argument.isNumber()) { <ide> const res = ...
1
Javascript
Javascript
use platformtimeout() in more places
d847a744051dc74ca4a595e3b0b04f78892cd4d0
<ide><path>test/parallel/test-dgram-udp4.js <ide> server.bind(server_port); <ide> <ide> timer = setTimeout(function() { <ide> throw new Error('Timeout'); <del>}, 200); <add>}, common.platformTimeout(200)); <ide><path>test/parallel/test-http-1.0.js <ide> function test(handler, request_generator, response_validator) {...
2
Javascript
Javascript
shrink support.js, closes gh-818
1ac15582f2a9d45af5a28a9de88d579c8d97bc23
<ide><path>src/support.js <ide> jQuery.support = (function() { <ide> opt, <ide> input, <ide> fragment, <del> tds, <del> events, <ide> eventName, <ide> i, <ide> isSupported, <del> div = document.createElement( "div" ), <del> documentElement = document.documentElement; <add> div = document.createElement(...
1
Ruby
Ruby
fix error message for adapternotfound in spec
e47f0da77b59edd20c5d193b52d7966c0125a12a
<ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb <ide> def spec(config) <ide> adapter_method = "#{spec[:adapter]}_connection" <ide> <ide> unless ActiveRecord::Base.respond_to?(adapter_method) <del> raise AdapterNotFound, "database configuration sp...
2
PHP
PHP
fix method signature in docblock
3efb9647e0325260e8f1018dae4d00bcf056366a
<ide><path>src/ORM/Query.php <ide> * @method \Cake\ORM\Table getRepository() Returns the default table object that will be used by this query, <ide> * that is, the table that will appear in the from clause. <ide> * @method \Cake\Collection\CollectionInterface each(callable $c) Passes each of the query results to t...
1
Ruby
Ruby
remove no need `binds.empty?` checking
be0f3179d4458ba3bc8a026469e4acdc1bebd2df
<ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb <ide> def exec_stmt(sql, name, binds, cache_stmt: false) <ide> type_casted_binds = binds.map { |attr| type_cast(attr.value_for_database) } <ide> <ide> log(sql, name, binds) do <del> if binds.empty? || !cache_stmt <a...
1
Ruby
Ruby
pass the mktemp prefix as an argument
b35d9906e5d9bdf580701b18304561ffbf36dcb8
<ide><path>Library/Homebrew/extend/fileutils.rb <ide> module FileUtils extend self <ide> <ide> # Create a temporary directory then yield. When the block returns, <ide> # recursively delete the temporary directory. <del> def mktemp <del> # Prefer download_name if it is defined, for two reasons: <del> # - Th...
2
Ruby
Ruby
rearrange logic to use positive branches
c75153d280e70e501c9044286ff52e50fe29a054
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def convert_hashes_to_parameters(key, value, assign_if_converted=true) <ide> end <ide> <ide> def convert_value_to_parameters(value) <del> if value.is_a?(Array) && !converted_arrays.member?(value) <add> case value <ad...
1
Go
Go
extract xattrs from tarfiles
c8428d77fdde41786aa5c0c4e64e0e762f873676
<ide><path>archive/archive.go <ide> func createTarFile(path, extractDir string, hdr *tar.Header, reader io.Reader) e <ide> return err <ide> } <ide> <add> for key, value := range hdr.Xattrs { <add> if err := Lsetxattr(path, key, []byte(value), 0); err != nil { <add> return err <add> } <add> } <add> <ide> // The...
1
Ruby
Ruby
fix spelling of envelopeencryptionperformancetest
33baf0dabd6ed70508104e172cb6c09976069c8e
<ide><path>activerecord/test/cases/encryption/performance/envelope_encryption_performance_test.rb <ide> require "cases/encryption/helper" <ide> require "models/book_encrypted" <ide> <del>class ActiveRecord::Encryption::EvenlopeEncryptionPerformanceTest < ActiveRecord::EncryptionTestCase <add>class ActiveRecord::Encryp...
1
Text
Text
update translation breadth-first-search
642e1275f4874b2f6bc87250c7a0966e754fc607
<ide><path>guide/portuguese/algorithms/graph-algorithms/breadth-first-search/index.md <ide> localeTitle: Largura da Primeira Pesquisa (BFS) <ide> --- <ide> ## Largura da Primeira Pesquisa (BFS) <ide> <del>Largura A primeira pesquisa é um dos algoritmos gráficos mais simples. Ele percorre o gráfico verificando primeiro...
1
Java
Java
fix checkstyle violation
1d0fe1223d8bfa47cc5d5c9a88e9a963419e73fe
<ide><path>spring-messaging/src/test/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilderTests.java <ide> <ide> import static org.assertj.core.api.Assertions.assertThat; <ide> import static org.mockito.ArgumentMatchers.any; <del>import static org.mockito.ArgumentMatchers.anyInt; <ide> import stati...
1
Go
Go
setup ipv4 and ipv6 iptables chain
06308f4d37009fb09f79b7206d661449fe0a488a
<ide><path>libnetwork/drivers/bridge/setup_ip_tables.go <ide> func (n *bridgeNetwork) setupIPTables(ipVersion iptables.IPVersion, maskedAddr * <ide> return iptable.ProgramChain(filterChain, config.BridgeName, hairpinMode, false) <ide> }) <ide> <del> n.portMapper.SetIptablesChain(natChain, n.getNetworkBridgeName(...
1
PHP
PHP
use a boolean flag for loading default config
7d224d7b23717ad507fbf3792e4f42416f57fdcd
<ide><path>src/Core/InstanceConfigTrait.php <ide> trait InstanceConfigTrait { <ide> */ <ide> protected $_config = []; <ide> <add>/** <add> * Whether the config property has already been configured with defaults <add> * <add> * @var bool <add> */ <add> protected $_configInitialized = false; <add> <ide> /** <ide> * #...
1
Python
Python
add sew ctc models
e1dc5afd28698d597321ef725467089d0924681c
<ide><path>src/transformers/models/sew/configuration_sew.py <ide> def __init__( <ide> mask_time_length=10, <ide> mask_feature_prob=0.0, <ide> mask_feature_length=10, <del> ctc_loss_reduction="sum", <add> ctc_loss_reduction="mean", <ide> ctc_zero_infinity=False, <ide> ...
8
Javascript
Javascript
render footer correctly
66c552390947434b3aab27f27ed9e8c1eaa26856
<ide><path>client/utils/gatsby/layoutSelector.js <ide> export default function layoutSelector({ element, props }) { <ide> } <ide> <ide> const splitPath = pathname.split('/').filter(x => x); <del> const isSuperBlock = <del> (splitPath.length === 2 && splitPath[0]) === 'learn' || <del> (splitPath.length === 3...
2
PHP
PHP
use jsonserialize in tojson
5543406e19b7585964071a01c8f856b56200181b
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function setIncrementing($value) <ide> */ <ide> public function toJson($options = 0) <ide> { <del> return json_encode($this->toArray(), $options); <add> return json_encode($this->jsonSerialize(), $options); <ide> } <ide> <ide> /**
1
Text
Text
fix links and typos in fs.md
e2617a03888aed62965ebc208f13e1bb3e183aeb
<ide><path>doc/api/fs.md <ide> changes: <ide> parameter in case of success. <ide> - version: v5.0.0 <ide> pr-url: https://github.com/nodejs/node/pull/3163 <del> description: The `file` parameter can be a file descriptor now. <add> description: The `path` parameter can be a file descriptor n...
1
PHP
PHP
fix postgresql dump and load for windows
12b4a9e3fefe28b0afe9f5dd590394b13e1efdce
<ide><path>src/Illuminate/Database/Schema/PostgresSchemaState.php <ide> public function dump(Connection $connection, $path) <ide> })->implode(' '); <ide> <ide> $this->makeProcess( <del> $this->baseDumpCommand().' --file=$LARAVEL_LOAD_PATH '.$excludedTables <add> $t...
1
Go
Go
add james golick to names generator
bf66deeb080787c3bda9aa619d3cdb22c68bbee1
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // Adele Goldstine, born Adele Katz, wrote the complete technical description for the first electronic digital computer, ENIAC. https://en.wikipedia.org/wiki/Adele_Goldstine <ide> "goldstine", <ide> <add> // James Golick, all around gangster. <add...
1
Java
Java
fix circular placeholder prevention
18006c72b014246946fd487159de7e133d173a17
<ide><path>spring-core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java <ide> /* <del> * Copyright 2002-2010 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may...
2
Java
Java
restore use of spmcarrayqueue in rxringbuffer
58a9d34ec36d6f836e85e551ac495cd33895a704
<ide><path>rxjava-core/src/main/java/rx/internal/util/RxRingBuffer.java <ide> import rx.Subscription; <ide> import rx.exceptions.MissingBackpressureException; <ide> import rx.internal.operators.NotificationLite; <add>import rx.internal.util.unsafe.SpmcArrayQueue; <add>import rx.internal.util.unsafe.SpscArrayQueue; <ide...
2
Go
Go
add additional unit-tests
c815b86f407a7566675ce5a737730ae5754b53e5
<ide><path>profiles/seccomp/seccomp_test.go <ide> func TestLoadProfileWithListenerPath(t *testing.T) { <ide> assert.DeepEqual(t, expected, *p) <ide> } <ide> <add>// TestLoadProfileValidation tests that invalid profiles produce the correct error. <add>func TestLoadProfileValidation(t *testing.T) { <add> tests := []str...
1
Javascript
Javascript
remove unused ontimeout, add timeout tests
33760ccc18e4be10cce3d39f59d374881c49ee2e
<ide><path>lib/internal/http2/core.js <ide> const setTimeout = { <ide> return this; <ide> } <ide> }; <del> <del>const onTimeout = { <del> configurable: false, <del> enumerable: false, <del> value: function() { <del> process.nextTick(emit.bind(this, 'timeout')); <del> } <del>}; <del> <del>Object.definePrope...
3
Java
Java
ignore client proxies for export
59d9f73f46c147856479f17faef65317ce6eacea
<ide><path>org.springframework.web/src/main/java/org/springframework/remoting/jaxws/AbstractJaxWsServiceExporter.java <ide> public void publishEndpoints() { <ide> for (String beanName : beanNames) { <ide> try { <ide> Class<?> type = this.beanFactory.getType(beanName); <del> WebService wsAnnotation = type.ge...
1
PHP
PHP
fix incomplete patch 61dd1098d3
56a0eb04b799bd01b8c9d32698fef1725785ee7f
<ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php <ide> public function testNumbers() { <ide> ); <ide> $this->assertTags($result, $expected); <ide> <add> $result = $this->Paginator->numbers(array('modulus' => 3, 'currentTag' => 'span', 'tag' => 'li')); <add> $expected = array( <add> array('li' ...
2
Javascript
Javascript
remove dynamic gks for selective/train
cf7a0c24d4640f07d465c5a67aab2639ddd5d0a9
<ide><path>packages/shared/ReactFeatureFlags.js <ide> export const warnAboutDefaultPropsOnFunctionComponents = false; <ide> <ide> export const disableSchedulerTimeoutBasedOnReactExpirationTime = false; <ide> <del>export const enableTrainModelFix = __EXPERIMENTAL__; <add>export const enableTrainModelFix = true; <ide> ...
7
Go
Go
reduce logging verbosity in allocator
c2064dc18d91a69fb0a0383a73d21c06748cb019
<ide><path>libnetwork/ipam/allocator.go <ide> func (a *Allocator) parsePoolRequest(addressSpace, pool, subPool string, v6 bool <ide> } <ide> <ide> func (a *Allocator) insertBitMask(key SubnetKey, pool *net.IPNet) error { <del> log.Debugf("Inserting bitmask (%s, %s)", key.String(), pool.String()) <add> //log.Debugf("In...
2
Text
Text
fix broken link in timers doc
4e76bffc0c7076a5901179e70c7b8a8f9fcd22e4
<ide><path>doc/api/timers.md <ide> actions. <ide> ## Class: Timeout <ide> <ide> This object is created internally and is returned from [`setTimeout()`][] and <del>[`setInterval()`][]. It can be passed to [`clearTimeout`][] or <add>[`setInterval()`][]. It can be passed to [`clearTimeout()`][] or <ide> [`clearInterval()...
1
Javascript
Javascript
resolve preset es2015 from next directory (#949)
f9717347a48ce778db21a78a01083a177a9f9110
<ide><path>server/build/webpack.js <ide> export default async function createCompiler (dir, { dev = false, quiet = false <ide> } <ide> <ide> const transpiled = babelCore.transform(content, { <del> presets: ['es2015'], <add> presets: [require.resolve('babel-preset-es2015')], <ide> ...
1
PHP
PHP
fix regex for php 7.3
e77eeb84488c1b0ef7fe7b1100b5f12aa8adaa0f
<ide><path>src/Database/SqlDialectTrait.php <ide> public function quoteIdentifier($identifier) <ide> } <ide> <ide> // Alias.field AS thing <del> if (preg_match('/^([\w-]+(\.[\w-\s]+|\(.*\))*)\s+AS\s*([\w-]+)$/ui', $identifier, $matches)) { <add> if (preg_match('/^([\w-]+(\.[\w\s-]+|\(.*\)...
1
Ruby
Ruby
bring am up to date with new rendering stack
36eb1a686c831d5a14998bb9ac7cc60efa363373
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def collect_responses_and_parts_order(headers) #:nodoc: <ide> <ide> def each_template(paths, name, &block) #:nodoc: <ide> Array(paths).each do |path| <del> self.class.view_paths.each do |load_paths| <del> templates = load_paths.find_all(...
5
Ruby
Ruby
remove docs related to ruby 1.8 from array#wrap
219342b642bb3e965147364fabe6a02a8edea559
<ide><path>activesupport/lib/active_support/core_ext/array/wrap.rb <ide> class Array <ide> # Array(:foo => :bar) # => [[:foo, :bar]] <ide> # Array.wrap(:foo => :bar) # => [{:foo => :bar}] <ide> # <del> # Array("foo\nbar") # => ["foo\n", "bar"], in Ruby 1.8 <del> # Array.wrap("foo\nbar") # ...
1
Text
Text
add missing periods or colons
392d80a617fab8630e3f017076f1f59403db6470
<ide><path>doc/api/buffer.md <ide> added: v3.0.0 <ide> <ide> * {integer} The largest size allowed for a single `Buffer` instance. <ide> <del>An alias for [`buffer.constants.MAX_LENGTH`][] <add>An alias for [`buffer.constants.MAX_LENGTH`][]. <ide> <ide> Note that this is a property on the `buffer` module returned by ...
26
Javascript
Javascript
add test for amp errors during auto prerendering
9993092ddd82a8892c112dd1b06c3f0532ec3c83
<ide><path>test/integration/amp-export-validation/test/index.test.js <ide> const appDir = join(__dirname, '../') <ide> const outDir = join(appDir, 'out') <ide> const nextConfig = new File(join(appDir, 'next.config.js')) <ide> <add>let buildOutput <add> <ide> describe('AMP Validation on Export', () => { <ide> beforeA...
1
Ruby
Ruby
change video preview format from png to jpg
b60ee86d9469e4119cb8900e4bd78a04c86e6f1f
<ide><path>activestorage/lib/active_storage/previewer/video_previewer.rb <ide> def self.accept?(blob) <ide> def preview <ide> download_blob_to_tempfile do |input| <ide> draw_relevant_frame_from input do |output| <del> yield io: output, filename: "#{blob.filename.base}.png", content_type: "ima...
3
Ruby
Ruby
remove debugging markers (oops)
df8d22a29b3dfb4313d0b983e92e6683f5df809f
<ide><path>Library/Homebrew/cli/args.rb <ide> def resolve_keg(name) <ide> require "formula" <ide> require "missing_formula" <ide> <del> puts 1 <ide> raise UsageError if name.blank? <ide> <del> puts 2 <ide> rack = Formulary.to_rack(name.downcase) <ide> <del> puts 3...
1
Text
Text
replace require() with reference links in http2.md
07e7ad941bcf1b3b441ed0478381bee48339880c
<ide><path>doc/api/http2.md <ide> Then `request.url` will be: <ide> '/status?name=ryan' <ide> ``` <ide> <del>To parse the url into its parts, `require('url').parse(request.url)` <del>can be used: <add>To parse the url into its parts, [`url.parse(request.url)`][`url.parse()`]. <ide> <ide> ```console <ide> $ node <del>...
1
Python
Python
fix typo in comment
ee4d6fdd4034272bd45b40632dcee89d2cf0ff24
<ide><path>examples/training/train_textcat.py <ide> def main(model=None, output_dir=None, n_iter=20, n_texts=2000): <ide> # add label to text classifier <ide> textcat.add_label('POSITIVE') <ide> <del> # load the IMBD dataset <add> # load the IMDB dataset <ide> print("Loading IMDB data...") <ide> ...
1
Ruby
Ruby
simplify optlink method
548d66be59d8c44eccae72c85f2996b3df0cd57a
<ide><path>Library/Homebrew/keg.rb <ide> def link mode=OpenStruct.new <ide> end <ide> <ide> def optlink <del> if opt_record.symlink? <del> opt_record.delete <del> elsif opt_record.directory? <del> opt_record.rmdir <del> elsif opt_record.exist? <del> opt_record.delete <del> end <add> o...
1
Javascript
Javascript
fix tests for windows
9596bf045d527e27608ac4b7b2990a4e6846fdeb
<ide><path>scripts/codegen/__tests__/generate-artifacts-executor-test.js <ide> describe('delete empty files and folders', () => { <ide> }); <ide> <ide> it("when path is folder and it's empty, removes it", () => { <del> const targetFolder = 'build/'; <add> const targetFolder = 'build'; <ide> const content...
1
Text
Text
add sakthipriyan to the ctc
3c1e5b366f92a51824c5ae0b6f20cd290cf54a0e
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Shigeki Ohtsu** &lt;ohtsu@iij.ad.jp&gt; <ide> * [TheAlphaNerd](https://github.com/TheAlphaNerd) - <ide> **Myles Borins** &lt;myles.borins@gmail.com&gt; <add>* [thefourtheye](https://github.com/thefourtheye) - <add>**Sak...
1
PHP
PHP
add push/pop onto stringtemplate
e85e241278444c43f5870daf2ee1b87487dfd578
<ide><path>src/View/StringTemplate.php <ide> class StringTemplate { <ide> 'compactAttribute' => '{{name}}="{{value}}"', <ide> ]; <ide> <add>/** <add> * A stack of template sets that have been stashed temporarily. <add> * <add> * @var <add> */ <add> protected $_configStack = []; <add> <ide> /** <ide> * Contains the...
2
Python
Python
use the same name everywhere
819c851a3f5befb51ee55b84108d2a0d8819765e
<ide><path>libcloud/compute/drivers/vcloud.py <ide> def reboot_node(self, node): <ide> else: <ide> return False <ide> <del> def ex_deploy_node(self, node, force_customization=False): <add> def ex_deploy_node(self, node, ex_force_customization=False): <ide> """ <ide> Deploys ex...
1
Text
Text
update the readme
d22005489b25d63c927040ad03ff12170fa592b1
<ide><path>official/vision/detection/README.md <ide> python3 ~/models/official/vision/detection/main.py \ <ide> --params_override="{ type: retinanet, train: { checkpoint: { path: ${RESNET_CHECKPOINT?}, prefix: resnet50/ }, train_file_pattern: ${TRAIN_FILE_PATTERN?} }, eval: { val_json_file: ${VAL_JSON_FILE?}, eval_fi...
1
Text
Text
add readme file for the api directory
3e2b97ef26467228f6018e19f517ed535e107026
<ide><path>api/README.md <add>This directory contains code pertaining to the Docker API: <add> <add> - Used by the docker client when comunicating with the docker deamon <add> <add> - Used by third party tools wishing to interface with the docker deamon
1
Ruby
Ruby
update .pluck documentation on uniq
03f35fc439fc4a10c1bc8af710b2c7e2467acd9d
<ide><path>activerecord/lib/active_record/relation/calculations.rb <ide> def calculate(operation, column_name) <ide> # # SELECT people.id, people.name FROM people <ide> # # => [[1, 'David'], [2, 'Jeremy'], [3, 'Jose']] <ide> # <del> # Person.pluck('DISTINCT role') <add> # Person.uniq.pluck(:ro...
1
Javascript
Javascript
fix links in docs
6faeb97515dc19686cbd6025f1557ff5fd4083b9
<ide><path>pages/src/docs/src/Defs.js <ide> var TypeDef = React.createClass({ <ide> case TypeKind.Type: <ide> var qualifiedType = (type.qualifier || []).concat([type.name]); <ide> var qualifiedTypeName = qualifiedType.join('.'); <del> var def = qualifiedType.reduce( <add> var def = q...
2
Javascript
Javascript
accommodate line chunking in windows
807ede70fa52a88604e939dbffbb7b09daeb0beb
<ide><path>lib/internal/inspector/_inspect.js <ide> function runScript(script, scriptArgs, inspectHost, inspectPort, childPrint) { <ide> const child = spawn(process.execPath, args); <ide> child.stdout.setEncoding('utf8'); <ide> child.stderr.setEncoding('utf8'); <del> child.stdout.on('data...
2
Java
Java
improve @nullable annotation
ad2c0f8410e3b8642e65545afe77e38614069b08
<ide><path>spring-core/src/main/java/org/springframework/lang/Nullable.java <ide> import java.lang.annotation.RetentionPolicy; <ide> import java.lang.annotation.Target; <ide> <del>import javax.annotation.meta.TypeQualifierDefault; <add>import javax.annotation.Nonnull; <add>import javax.annotation.meta.TypeQualifierNic...
1
Go
Go
improve docstrings and small cleanup in client
a68ae4a2d95b1ff143025a435195af0f1ab30ace
<ide><path>client/client.go <ide> For example, to list running containers (the equivalent of "docker ps"): <ide> package client // import "github.com/docker/docker/client" <ide> <ide> import ( <del> "errors" <ide> "fmt" <add> "net" <ide> "net/http" <ide> "net/url" <ide> "os" <ide> import ( <ide> "github.com/docke...
3
Javascript
Javascript
add sourcemap support for .mjs output files
12762ff37fe882f11f6fa962a9e18632bcd482e6
<ide><path>lib/SourceMapDevToolPlugin.js <ide> class SourceMapDevToolPlugin { <ide> const fallbackModuleFilenameTemplate = this.fallbackModuleFilenameTemplate; <ide> const requestShortener = compiler.requestShortener; <ide> const options = this.options; <del> options.test = options.test || /\.(js|css)($|\?)/i; <...
1
Ruby
Ruby
fix syntax error with no us-ascii char
9eb72ac78f15078c362cb4bc6cc42ddda182127b
<ide><path>activerecord/lib/active_record/validations.rb <ide> module ActiveRecord <ide> # puts invalid.record.errors <ide> # end <ide> class RecordInvalid < ActiveRecordError <del> attr_reader :record # :nodoc: <add> attr_reader :record # :nodoc: <ide> def initialize(record) # :nodoc: <ide> ...
1
Javascript
Javascript
update plans in config
08ec29fa1b5aa46b68c5286a3264f1f30d224424
<ide><path>config/donation-settings.js <ide> require('dotenv').config({ path: path.resolve(__dirname, '../.env') }); <ide> // Configuration for client side <ide> const durationsConfig = { <ide> year: 'yearly', <del> // month: 'monthly', <add> // month: 'monthly', // We have disabled montly payments <ide> onetime:...
1
Mixed
Go
add system time to /info
2977fd2b7aed42008ca2ad90dcd8fec5ead4e86b
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdInfo(args ...string) error { <ide> if remoteInfo.Exists("NGoroutines") { <ide> fmt.Fprintf(cli.out, "Goroutines: %d\n", remoteInfo.GetInt("NGoroutines")) <ide> } <add> if remoteInfo.Exists("SystemTime") { <add> t, err := remoteInfo.GetTime("Syst...
8
PHP
PHP
respect local env
75e792d61871780f75ecb4eb170826b0ba2f305e
<ide><path>src/Illuminate/Foundation/Console/ServeCommand.php <ide> public function handle() <ide> protected function startProcess() <ide> { <ide> $process = new Process($this->serverCommand(), null, collect($_ENV)->mapWithKeys(function ($value, $key) { <del> return [$key => false]; <add> ...
1
Javascript
Javascript
prefer safe initializer by name storage
0cdbf59ab65f3d9e7235cfb6176ad5944390ea5d
<ide><path>packages/ember-application/lib/system/application.js <ide> import { <ide> import EmberHandlebars from "ember-handlebars-compiler"; <ide> <ide> var ContainerDebugAdapter; <add>function props(obj) { <add> var properties = []; <add> <add> for (var key in obj) { <add> properties.push(key); <add> } <add> <...
1
Go
Go
use "local" secret paths based on the secretid
37ce91ddd60e50a8bcd7ac3a7ba858f94c28c51e
<ide><path>container/container.go <ide> func (container *Container) SecretMountPath() string { <ide> return filepath.Join(container.Root, "secrets") <ide> } <ide> <del>func (container *Container) getLocalSecretPath(r *swarmtypes.SecretReference) string { <del> return filepath.Join(container.SecretMountPath(), filepat...
4
Ruby
Ruby
do less work inside chdir blocks
53b7d45de8f38d1998e5c23a77064ae3df4be522
<ide><path>Library/Homebrew/test/test_pathname.rb <ide> def test_install_removes_original <ide> end <ide> <ide> def setup_install_test <del> cd @src do <del> (@src+'a.txt').write 'This is sample file a.' <del> (@src+'b.txt').write 'This is sample file b.' <del> yield <del> end <add> (@src+'...
1
PHP
PHP
remove ini flag for memcached.sasl
f534945734353ff209e7824f80633f2ff6679e78
<ide><path>src/Cache/Engine/MemcachedEngine.php <ide> public function init(array $config = []) <ide> } <ide> <ide> if ($this->_config['username'] !== null && $this->_config['password'] !== null) { <del> $sasl = method_exists($this->_Memcached, 'setSaslAuthData') && ini_get('memcached.use_sas...
1
PHP
PHP
allow disabling of middleware (for test reasons)
0f67cf19abc74ba5ee2bdc9c946b2bf62d85149c
<ide><path>src/Illuminate/Foundation/Http/Kernel.php <ide> protected function sendRequestThroughRouter($request) <ide> <ide> $this->verifySessionConfigurationIsValid(); <ide> <add> $shouldSkipMiddleware = $this->app->bound('middleware.disable') && <add> $this->app->make('middleware.disable...
3
Python
Python
allow filterting contributors by release version
f75780f13cbffb992d1bfab7286492201e2a59aa
<ide><path>contrib/generate_contributor_list.py <ide> GITHUB_URL = 'https://github.com/apache/libcloud/pull/%s' <ide> <ide> <del>def parse_changes_file(file_path): <add>def parse_changes_file(file_path, version=None): <ide> """ <ide> Parse CHANGES file and return a dictionary with contributors. <ide> <ide> d...
1
Javascript
Javascript
add tracks length check for mmdhelper
228257762a865c00a2463de1275d1dba8099b4f6
<ide><path>examples/js/loaders/MMDLoader.js <ide> THREE.MMDHelper.prototype = { <ide> // the name of them begins with "_". <ide> mesh.mixer.addEventListener( 'loop', function ( e ) { <ide> <del> if ( e.action._clip.tracks[ 0 ].name.indexOf( '.bones' ) !== 0 ) return; <add> if ( e.action._clip.tracks....
1
Python
Python
fix py3 syntax
20cc77a1a466192fb2ea11f61f6cbf678f266b87
<ide><path>numpy/linalg/_gufuncs_linalg.py <ide> <ide> """ <ide> <del>from __future__ import division, absolute_import <add>from __future__ import division, absolute_import, print_function <ide> <ide> <ide> __all__ = ['inner1d', 'dotc1d', 'innerwt', 'matrix_multiply', 'det', 'slogdet', <ide> def poinv(A, UPLO='L', ...
2
Javascript
Javascript
remove default press delay
86ffb9c41e033f59599e01b7ad016706b5f62fc8
<ide><path>Libraries/Pressability/Pressability.js <ide> const isPressInSignal = signal => <ide> const isTerminalSignal = signal => <ide> signal === 'RESPONDER_TERMINATED' || signal === 'RESPONDER_RELEASE'; <ide> <del>const DEFAULT_LONG_PRESS_DELAY_MS = 370; // 500 - 130 <del>const DEFAULT_PRESS_DELAY_MS = 130; <add>...
2
Ruby
Ruby
remove rendererbutils from ap (only av use it)
21c5f2845de42fb2f5feee47d4270c18a4a4d5b0
<ide><path>actionpack/test/abstract_unit.rb <ide> def body_to_string(body) <ide> extend self <ide> end <ide> <del>module RenderERBUtils <del> def view <del> @view ||= begin <del> path = ActionView::FileSystemResolver.new(FIXTURE_LOAD_PATH) <del> view_paths = ActionView::PathSet.new([path]) <del> A...
1
Text
Text
update contributing.md with process for doc fixes
5a8d9acacbb8a2b9175da196cbaf8ff93bac28c8
<ide><path>CONTRIBUTING.md <ide> duplication of work, and help you to craft the change so that it is successfully <ide> project. <ide> * **Small Changes** can be crafted and submitted to [GitHub Repository][github] as a Pull Request. <ide> <add> <add>## Want a Doc Fix? <add>If you want to help improve the docs, it's a...
1
Ruby
Ruby
add macos.lion? for macos_version == 10.7
e3e7831b48b7dbcb435f5233adcff33f91aef3da
<ide><path>Library/Homebrew/utils.rb <ide> def red; underline 31; end <ide> def yellow; underline 33 ; end <ide> def reset; escape 0; end <ide> def em; underline 39; end <del> <add> <ide> private <ide> def color n <ide> escape "0;#{n}" <ide> def snow_leopard? <ide> 10.6 <= MACOS_VERSION ...
1
Text
Text
improve consistency of docs examples [ci skip]
1fa6d6ba55e8d4c84db8d74a284fec1d60dc32c5
<ide><path>website/docs/api/doc.md <ide> compressed binary strings. The `Doc` object holds an array of `TokenC]` structs. <ide> The Python-level `Token` and [`Span`](/api/span) objects are views of this <ide> array, i.e. they don't own the data themselves. <ide> <add>## Doc.\_\_init\_\_ {#init tag="method"} <add> <add...
4
Go
Go
use consistent applylayer in overlayfs
f47d6b9b9de8c567e9e42e12243cbcce99a7bfc7
<ide><path>daemon/graphdriver/overlay/overlay.go <ide> import ( <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/graphdriver" <ide> "github.com/docker/docker/pkg/archive" <add> "github.com/docker/docker/pkg/chrootarchive" <ide> "github.com/docker/libcontainer/label" <ide> ) <ide> <ide>...
1
Javascript
Javascript
add multiple material slots to three editor
4e651f4827b172960f9ff241515d190ac391f5e3
<ide><path>editor/js/Editor.js <ide> Editor.prototype = { <ide> <ide> }, <ide> <add> getObjectMaterial: function ( object, slot ) { <add> <add> var material = object.material; <add> <add> if( Array.isArray( material ) == true){ <add> var slot = slot | 0; <add> <add> if(slot < 0) slot = 0; <add> else if(slot...
5
Python
Python
add pre-commit to ignored requirements
ac45c7c045c704ccc1b91e9d3bcb4328c3f3f8ba
<ide><path>spacy/tests/package/test_requirements.py <ide> def test_build_dependencies(): <ide> "mock", <ide> "flake8", <ide> "hypothesis", <add> "pre-commit", <ide> ] <ide> # ignore language-specific packages that shouldn't be installed by all <ide> libs_ignore_setup = [
1
Text
Text
add language corrections and change the snippet
15bc4107827703bed490ccd3bd1ab7368b79bb0c
<ide><path>guide/russian/css/background-opacity/index.md <ide> localeTitle: Непрозрачность фона <ide> --- <ide> ## Непрозрачность фона <ide> <del>Свойство opacity указывает непрозрачность / прозрачность элемента, то есть степень видимости содержимого за элементом. <add>Свойство прозрачности (opacity) указывает на проз...
1
Ruby
Ruby
remove dead code
a63fa4356a9901f6c141811cbfdeb132b19e201d
<ide><path>Library/Homebrew/formula.rb <ide> def build <ide> @build ||= BuildOptions.new(ARGV.options_only) <ide> end <ide> <del> def url val=nil, specs={} <del> if val.nil? <del> return @stable.url if @stable <del> return @url if @url <del> end <add> def url val, specs={} <ide>...
1
PHP
PHP
remove incorrect annotations
90e206b7f6f5b4b854818ed8b05f25386fe4dc42
<ide><path>tests/TestCase/View/Widget/DateTimeWidgetTest.php <ide> */ <ide> class DateTimeWidgetTest extends TestCase <ide> { <del> /** <del> * @setUp <del> */ <ide> public function setUp(): void <ide> { <ide> parent::setUp(); <ide><path>tests/test_app/TestApp/Model/Behavior/ValidationBehavi...
2
Go
Go
fix minor linting issues
f2d49cb7ee7f1abf666682f8e41db8d318e31731
<ide><path>pkg/system/path_windows_test.go <ide> import ( <ide> func TestCheckSystemDriveAndRemoveDriveLetter(t *testing.T) { <ide> // Fails if not C drive. <ide> _, err := CheckSystemDriveAndRemoveDriveLetter(`d:\`, pathdriver.LocalPathDriver) <del> if err == nil || (err != nil && err.Error() != "The specified path ...
2
Text
Text
add link for learning resource
665d59de691a18200eab6a4a6a0ac239b112e511
<ide><path>guide/english/react-native/state/index.md <ide> const Button = ({ onPress, children, buttonProps, textProps }) => { <ide> ); <ide> }; <ide> ``` <add> <add>#### More Information <add> <add>- [Good article about state and props](https://learnreact.design/2017/08/16/components-props-and-state)
1
Javascript
Javascript
fix boolean attributes as per html5 spec
f7949c1c23cc150cbf51155e0e479e26e53a37c4
<ide><path>src/dom/DOMPropertyOperations.js <ide> var DOMPropertyOperations = { <ide> return ''; <ide> } <ide> var attributeName = DOMProperty.getAttributeName[name]; <add> if (DOMProperty.hasBooleanValue[name]) { <add> return escapeTextForBrowser(attributeName); <add> } <ide> ...
2
Text
Text
add v3.10.0-beta.5 to changelog
642702dd726420f3cb5a8f4622662aac4df15e1c
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.10.0-beta.5 (April 29, 2019) <add> <add>- [#17938](https://github.com/emberjs/ember.js/pull/17938) [BUGFIX] Expose mechanism to detect if a property is a computed <add>- [#17974](https://github.com/emberjs/ember.js/pull/17974) [BUGFIX] Ensure inheritabl...
1
Python
Python
add xml parser
0632e946f977609ca6d6f4272f02c72dee1f49be
<ide><path>djangorestframework/parsers.py <ide> from djangorestframework.compat import yaml <ide> from djangorestframework.response import ErrorResponse <ide> from djangorestframework.utils.mediatypes import media_type_matches <add>from xml.etree import ElementTree as ET <add>import datetime <add>import decimal <ide> ...
4
Text
Text
update habtm documentation in guides
ae83b01b1988d85e2370a53b8c41f5be1a15e946
<ide><path>guides/source/association_basics.md <ide> The `collection.delete` method removes one or more objects from the collection b <ide> @part.assemblies.delete(@assembly1) <ide> ``` <ide> <del>WARNING: This does not trigger callbacks on the join records. <del> <ide> ##### `collection.destroy(object, ...)` <ide> <...
1
Ruby
Ruby
remove testing hwia serialization for old psych
458f4c48ec7095dd1945306fad3d9c35e6f8a70e
<ide><path>activesupport/test/hash_with_indifferent_access_test.rb <ide> def initialize(*) <ide> <ide> yaml_output = klass.new.to_yaml <ide> <del> # `hash-with-ivars` was introduced in 2.0.9 (https://git.io/vyUQW) <del> if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("2.0.9") <del> assert_inclu...
1
Go
Go
fix invalid usage of reflect.sliceheader
c208f03fbddb4355729c3225bb2550c4d54a2c5e
<ide><path>pkg/devicemapper/devmapper_wrapper.go <ide> func dmTaskGetDepsFct(task *cdmTask) *Deps { <ide> } <ide> <ide> // golang issue: https://github.com/golang/go/issues/11925 <del> hdr := reflect.SliceHeader{ <del> Data: uintptr(unsafe.Pointer(uintptr(unsafe.Pointer(Cdeps)) + unsafe.Sizeof(*Cdeps))), <del> Len...
1
Javascript
Javascript
wrap the hashchange event in an ember.run
03cebf38d091604046b0f7704804fe54630bdab9
<ide><path>packages/ember-routing/lib/location/hash_location.js <ide> Ember.HashLocation = Ember.Object.extend({ <ide> var guid = Ember.guidFor(this); <ide> <ide> Ember.$(window).bind('hashchange.ember-location-'+guid, function() { <del> var path = location.hash.substr(1); <del> if (get(self, 'lastSe...
1
Ruby
Ruby
use preferred_gcc instead of gcc
0a292c7041d4497d51259882fc7e44892e875133
<ide><path>Library/Homebrew/compilers.rb <ide> def compiler <ide> raise CompilerSelectionError, formula <ide> end <ide> <del> private <del> <ide> sig { returns(String) } <del> def preferred_gcc <add> def self.preferred_gcc <ide> "gcc" <ide> end <ide> <add> private <add> <ide> def gnu_gcc_versions ...
7
Mixed
Text
use correct path in documentation
1a61496ae5945c0412a3e1692c5909635fb9f27b
<ide><path>guides/source/4_2_release_notes.md <ide> Please refer to the [Changelog][railties] for detailed changes. <ide> url: http://localhost:3001 <ide> namespace: my_app_development <ide> <del> # config/production.rb <add> # config/environments/production.rb <ide> Rails.application.configure d...
3