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
Ruby
Ruby
use a single lock for all connections
ea549392986bcaa5546a61404a015b135b39a1a1
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def initialize(config_or_deprecated_connection, deprecated_logger = nil, depreca <ide> @verified = false <ide> end <ide> <add> THREAD_LOCK = ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor.new <add> ...
1
Mixed
Text
add documentation for stack commands
10919e890942cbdaa65f180dbcd475d21b9c6713
<ide><path>api/client/stack/opts.go <ide> import ( <ide> ) <ide> <ide> func addBundlefileFlag(opt *string, flags *pflag.FlagSet) { <del> flags.StringVarP( <add> flags.StringVar( <ide> opt, <del> "bundle", "f", "", <add> "bundle", "", <ide> "Path to a Distributed Application Bundle file (Default: STACK.dab)") <id...
6
PHP
PHP
replace function sizeof (alias) by count
71df8dbbba8ace80cd60b9019fc3ab65cca1df81
<ide><path>cake/libs/model/datasources/dbo/dbo_adodb.php <ide> function rollback(&$model) { <ide> function listSources() { <ide> $tables = $this->_adodb->MetaTables('TABLES'); <ide> <del> if (!sizeof($tables) > 0) { <add> if (!count($tables) > 0) { <ide> trigger_error(ERROR_NO_TABLE_LIST, E_USER_NOTICE); <ide>...
3
Ruby
Ruby
reset argv in teardown
d86342a2519b6bdc5393302e3e81e5b72aa26e7f
<ide><path>Library/Homebrew/test/cleanup_test.rb <ide> def setup <ide> <ide> def teardown <ide> FileUtils.rm_f @ds_store <del> ARGV.delete "--dry-run" <del> ARGV.delete "--prune=all" <ide> super <ide> end <ide> <ide><path>Library/Homebrew/test/formula_installer_test.rb <ide> def test_a_basic_install...
4
Python
Python
fix convert cli
7cc9c3e9a6f28422485eb2a054d12850481aeb71
<ide><path>spacy/cli/convert.py <ide> def convert(_, input_file, output_dir, n_sents, morphology): <ide> prints("Can't find converter for %s" % input_path.parts[-1], <ide> title="Unknown format", exits=1) <ide> CONVERTERS[file_ext](input_path, output_path, <del> n_sents=n_sents, mo...
1
Text
Text
remove unecessary word
2d7ea2cc2ba780a113e34b3cb8524eb6b1bd71f2
<ide><path>guides/source/action_controller_overview.md <ide> This will read and stream the file 4kB at the time, avoiding loading the entire <ide> <ide> If `:type` is not specified, it will be guessed from the file extension specified in `:filename`. If the content type is not registered for the extension, `applicatio...
1
Javascript
Javascript
fix close event of readline.interface()
e1aa066fe16e5feb2d5621ce0d2163703da1110c
<ide><path>lib/readline.js <ide> function Interface(input, output, completer, terminal) { <ide> self.close(); <ide> } <ide> <add> function ontermend() { <add> if (util.isString(self.line) && self.line.length > 0) { <add> self.emit('line', self.line); <add> } <add> self.close(); <add> } <add> <ide...
2
PHP
PHP
use fqcn in doc block
432c45132f396ea0252e6e74606fc4b56d0ec01e
<ide><path>src/I18n/TranslatorRegistry.php <ide> class TranslatorRegistry extends TranslatorLocator <ide> * <ide> * Constructor. <ide> * <del> * @param PackageLocator $packages The package locator. <add> * @param \Aura\Intl\PackageLocator $packages The package locator. <ide> * <del> * @p...
1
Python
Python
require thinc 7.1
b8edc8dffb7fb5651973181a46ced5da5ec1a7cf
<ide><path>setup.py <ide> def setup_package(): <ide> "murmurhash>=0.28.0,<1.1.0", <ide> "cymem>=2.0.2,<2.1.0", <ide> "preshed>=2.0.1,<2.1.0", <del> "thinc>=7.0.8,<7.1.0", <add> "thinc>=7.1.0,<7.2.0", <ide> "blis>=0.4.0,<0.5.0"...
1
Python
Python
update the `nbitbase` example
4ef10a55103ddf98730305db11461457cfc93e6e
<ide><path>numpy/typing/__init__.py <ide> class NBitBase: <ide> <ide> .. code-block:: python <ide> <add> >>> from __future__ import annotations <ide> >>> from typing import TypeVar, TYPE_CHECKING <ide> >>> import numpy as np <ide> >>> import numpy.typing as npt <ide> <del> >...
2
Javascript
Javascript
remove unnecessary call to `isdefined()`
d088fbeae3bc718e5f29d84f46c7e3e1d8863064
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> onChangesQueue.push(triggerOnChangesHook); <ide> } <ide> // If the has been a change on this property already then we need to reuse the previous value <del> if (isDefined(change...
1
Go
Go
add health check in docker cluster
1ded1f26e154e283ab26f347971d4d4a51edc94f
<ide><path>daemon/cluster/executor/backend.go <ide> package executor <ide> <ide> import ( <ide> "io" <add> "time" <ide> <ide> clustertypes "github.com/docker/docker/daemon/cluster/provider" <ide> "github.com/docker/engine-api/types" <ide> "github.com/docker/engine-api/types/container" <add> "github.com/docker/eng...
6
Python
Python
change exporter to allow dynamic batch inference
4ddc9f2d806530ceb99a86a621075a4a9813df62
<ide><path>object_detection/export_inference_graph.py <ide> <ide> The inference graph contains one of three input nodes depending on the user <ide> specified option. <del> * `image_tensor`: Accepts a uint8 4-D tensor of shape [1, None, None, 3] <del> * `encoded_image_string_tensor`: Accepts a scalar string tensor of...
3
Text
Text
fix typo in faq
7b4e6ef50c5989bce69574e1487901ff5b381f58
<ide><path>docs/sources/faq.md <ide> You can build a Theano function that will return the output of a certain layer g <ide> # with a Sequential model <ide> get_3rd_layer_output = theano.function([model.layers[0].input], <ide> model.layers[3].get_output(train=False)) <del>3rd_laye...
1
Ruby
Ruby
clarify control flow
b367830af7fb75cd59863b3a1311d4a5bc4b37a8
<ide><path>lib/active_job/parameters.rb <ide> <ide> module ActiveJob <ide> class Parameters <del> TYPE_WHITELIST = [NilClass, Fixnum, Float, String, TrueClass, FalseClass, Hash, Array, Bignum] <add> TYPE_WHITELIST = [ NilClass, Fixnum, Float, String, TrueClass, FalseClass, Hash, Array, Bignum ] <ide> <ide> ...
1
PHP
PHP
fix cs error
27a4ea25d3ae770664135f6e7f287b6221a47b47
<ide><path>src/Mailer/Mailer.php <ide> public function getTransport(): AbstractTransport <ide> { <ide> if ($this->transport === null) { <ide> throw new BadMethodCallException( <del> 'Transport was not defined. You must set on using setTransport() or set `transport` option in your ...
3
Text
Text
add code example to inspector.url() method
411360150aff0ab2daaf00a0710822555d10e26a
<ide><path>doc/api/inspector.md <ide> parameter usage. <ide> <ide> Return the URL of the active inspector, or `undefined` if there is none. <ide> <add>```console <add>$ node --inspect -p 'inspector.url()' <add>Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 <add>For help see https://nod...
1
Ruby
Ruby
add gcc 4.0 to compilerselector compiler queue
6e3cb9f735165ecdda5bcc3d6cd656fa29872c5a
<ide><path>Library/Homebrew/compilers.rb <ide> def initialize(f, old_compiler) <ide> @f = f <ide> @old_compiler = old_compiler <ide> @compilers = CompilerQueue.new <del> %w{clang llvm gcc}.map(&:to_sym).each do |cc| <add> %w{clang llvm gcc gcc_4_0}.map(&:to_sym).each do |cc| <ide> unless MacOS.s...
1
PHP
PHP
add response helper
b43ba4f4277f7a1fb9a2544e290b0b994ab9f57b
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function redirect($to = null, $status = 302) <ide> } <ide> } <ide> <add>if ( ! function_exists('response')) <add>{ <add> /** <add> * Return a new response from the application. <add> * <add> * @param string $content <add> * @param int $status <add> * ...
1
Python
Python
return subclasses from ediff1d
9a90abf995d0d8d9e96992a083dc55a41a93254f
<ide><path>numpy/lib/arraysetops.py <ide> def ediff1d(ary, to_end=None, to_begin=None): <ide> if to_begin is None and to_end is None: <ide> return ary[1:] - ary[:-1] <ide> <del> # get the length of the diff'd values <del> l = len(ary) - 1 <del> if l < 0: <del> # force length to be non negat...
2
Python
Python
add pause and unpause subcommands to cli
b7cfa3c6082b33be0d374a17a79a43416cf7c8cc
<ide><path>airflow/bin/cli.py <ide> def trigger_dag(args): <ide> session.commit() <ide> <ide> <del>def dag_state(args): <add>def pause(args): <add> set_is_paused(True, args) <add> <add> <add>def unpause(args): <add> set_is_paused(False, args) <add> <add> <add>def set_is_paused(is_paused, args): <ide> da...
2
Ruby
Ruby
address changes from review
15102a3234bae24a1aeeb458ccb0182f4685788d
<ide><path>Library/Homebrew/livecheck/strategy/electron_builder.rb <del># typed: false <add># typed: true <ide> # frozen_string_literal: true <ide> <ide> module Homebrew <ide> class ElectronBuilder <ide> PRIORITY = 0 <ide> <ide> # The `Regexp` used to determine if the strategy applies to the URL. <del...
2
Ruby
Ruby
use binread to read the files
0155bf4021e34c70b3b88eaf75ce41e1140fe474
<ide><path>actionpack/lib/action_view/template/resolver.rb <ide> require "pathname" <ide> require "active_support/core_ext/class" <add>require "active_support/core_ext/io" <ide> require "action_view/template" <ide> <ide> module ActionView <ide> def query(path, details, formats) <ide> next if File.directory?(p)...
1
Text
Text
fix animation example code
d8e9eb978b3b2bbee7bfaf94dccb25fc8a3fd8ec
<ide><path>docs/docs/09.1-animation.md <ide> var TodoList = React.createClass({ <ide> render: function() { <ide> var items = this.state.items.map(function(item, i) { <ide> return ( <del> <div key={i} onClick={this.handleRemove.bind(this, i)}> <add> <div key={item} onClick={this.handleRemove.bi...
1
Javascript
Javascript
remove two obsolete pummel tests
8e1a8ffe24867192379cf92d329d9babc94a58f6
<ide><path>test/pummel/test-buffer-big.js <del>'use strict'; <del>var common = require('../common'); <del>var assert = require('assert'); <del> <del>// The tests below should throw an error, not abort the process... <del>assert.throws(function() { new Buffer(0x3fffffff + 1); }, RangeError); <del>assert.throws(function(...
2
Go
Go
cap the amount of buffering done by bytespipe
64f8ee444d23ae29a236f169f1d7faf7042b524a
<ide><path>daemon/container.go <ide> func (streamConfig *streamConfig) StdinPipe() io.WriteCloser { <ide> } <ide> <ide> func (streamConfig *streamConfig) StdoutPipe() io.ReadCloser { <del> reader, writer := io.Pipe() <del> streamConfig.stdout.Add(writer) <del> return ioutils.NewBufReader(reader) <add> bytesPipe := iou...
5
Javascript
Javascript
add tests for casesensitivemoduleswarning
23e57e5b9767869a7882c713bd6002aecb009576
<ide><path>test/CaseSensitiveModulesWarning.test.js <add>var should = require("should"); <add>var CaseSensitiveModulesWarning = require("../lib/CaseSensitiveModulesWarning"); <add> <add>var createModule = function(identifier, numberOfReasons) { <add> var reasons = new Array(numberOfReasons || 0).fill(null).map(function...
1
Python
Python
remove dup_select_related method
389892aae595b86c4be28c43e3312d76a68a0173
<ide><path>django/db/models/query.py <ide> def prefetch_related(self, *lookups): <ide> clone._prefetch_related_lookups.extend(lookups) <ide> return clone <ide> <del> def dup_select_related(self, other): <del> """ <del> Copies the related selection status from the QuerySet 'other' t...
1
PHP
PHP
remove unneeded test inside conditional
5da05d9216610dc2d7987ae2e908378d0bfaf09f
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function read(Model $model, $queryData = array(), $recursive = null) { <ide> } else { <ide> $db = ConnectionManager::getDataSource($linkModel->useDbConfig); <ide> } <del> } elseif ($model->recursive > 1 && ($type === 'belongsTo' || $...
1
Javascript
Javascript
remove last call to `getdomnode` in tests
f3e6436bee20fde003fc5e36b6295c63d371c3d7
<ide><path>src/browser/ui/__tests__/ReactDOMComponent-test.js <ide> describe('ReactDOMComponent', function() { <ide> expect( <ide> ReactBrowserEventEmitter.getListener(rootNodeID, 'onClick') <ide> ).toBe(callback); <del> expect(rootNode).toBe(instance.getDOMNode()); <add> expect(rootNode)....
1
Javascript
Javascript
check memoryusage properties
7d3a7ea0d7df9b6f11df723dec370f49f4f87e99
<ide><path>test/parallel/test-memory-usage.js <ide> require('../common'); <ide> var assert = require('assert'); <ide> <ide> var r = process.memoryUsage(); <del>assert.equal(true, r['rss'] > 0); <add>assert.ok(r.rss > 0); <add>assert.ok(r.heapTotal > 0); <add>assert.ok(r.heapUsed > 0);
1
Javascript
Javascript
remove unused imports
846227b17eeca2b4500508f92fd1c831ffcf7ba7
<ide><path>packages/ember-glimmer/lib/component-managers/outlet.js <ide> */ <ide> import { generateGuid, guidFor } from 'ember-utils'; <ide> import { <del> ComponentDefinition, <del> CompiledArgs <add> ComponentDefinition <ide> } from '@glimmer/runtime'; <ide> import { DEBUG } from 'ember-env-flags'; <ide> import { ...
2
Ruby
Ruby
remove dead code
628a23cdd230f7f830ecbba137ab2430f69e8db5
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def nested_scope? #:nodoc: <ide> @scope.nested? <ide> end <ide> <del> def with_exclusive_scope <del> begin <del> @scope = @scope.new(:as => nil, :path => nil) <del> <del> with_scope_lev...
1
Ruby
Ruby
remove unnecessary test setup
6a4606d3a64e60189ea4ba5243830dcd97e6de14
<ide><path>actionpack/test/dispatch/show_exceptions_test.rb <ide> class ShowExceptionsTest < ActionDispatch::IntegrationTest <ide> <ide> class Boomer <del> def initialize(detailed = false) <del> @detailed = detailed <del> end <del> <ide> def call(env) <del> env['action_dispatch.show_detailed_exc...
1
PHP
PHP
fix doc block
bf9f8f702f8f8847d95e7a6c79771ccf93370344
<ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php <ide> public function assertMissing($path) <ide> } <ide> <ide> /** <del> * Determine if a directory is empty. <add> * Assert that the given directory is empty. <ide> * <ide> * @param string $path <ide> * @return $this
1
PHP
PHP
update factory count
0a3faed03e24cb5d633abc6cd53781b395952fd7
<ide><path>src/Illuminate/Database/Eloquent/Factories/HasFactory.php <ide> trait HasFactory <ide> public static function factory(...$parameters) <ide> { <ide> return Factory::factoryForModel(get_called_class()) <del> ->count(is_numeric($parameters[0] ?? null) ? $parameters[0] : 1) <ad...
1
Python
Python
convert core tests to pytest
7dd3d062ff59dfcb11cb1df05098e4a0b80abd64
<ide><path>tests/keras/layers/test_core.py <ide> import unittest <add>import pytest <ide> import numpy as np <ide> from numpy.testing import assert_allclose <ide> <ide> from keras import backend as K <ide> from keras.layers import core <ide> <ide> <del>class TestLayerBase(unittest.TestCase): <del> def test_input_...
1
Go
Go
update push to reflect the correct api
08121c8f6b435779027d837c1e7fc8046bc1e165
<ide><path>registry/registry.go <ide> func (r *Registry) PushImageJsonIndex(remote string, imgList []*ImgData, validat <ide> if err != nil { <ide> return nil, err <ide> } <del> <del> utils.Debugf("json sent: %s\n", imgListJson) <del> <del> req, err := http.NewRequest("PUT", auth.IndexServerAddress()+"/repositories/...
1
Java
Java
add assert abstractstandardrequestupgradestrategy
079fb2db737c830da62e57a02102bf0e9d70d6cb
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/support/AbstractStandardUpgradeStrategy.java <ide> import org.springframework.http.server.ServerHttpRequest; <ide> import org.springframework.http.server.ServerHttpResponse; <ide> import org.springframework.http.server.ServletServerHttpRequ...
1
Javascript
Javascript
upgrade "suites" to be qunit 2 compat
cceca7ee192c8f034f6ddb09dcd2c8faf9de68bd
<ide><path>packages/ember-runtime/tests/suites/array.js <ide> const ObserverClass = EnumerableTestsObserverClass.extend({ <ide> }, <ide> <ide> arrayWillChange() { <del> equal(this._before, null, 'should only call once'); <add> QUnit.config.current.assert.equal(this._before, null, 'should only call once'); <i...
45
Text
Text
add instructions on how to run bert with configs
eb674a1f7670762a12f9d36bc652b5156c43592a
<ide><path>official/nlp/MODEL_GARDEN.md <add># TF-NLP Model Garden <add> <add>## Introduction <add> <add>This TF-NLP library provides a collection of scripts for the training and <add>evaluation of transformer-based models, on various tasks such as sentence <add>classification, question answering, and translation. Addi...
2
Python
Python
consider the case where lambda is input layer
fb8e80daf456f00ac8b7404f49c551115cfca138
<ide><path>keras/layers/core.py <ide> def __init__(self, function, output_shape=None, ndim=2): <ide> else: <ide> self.function = marshal.dumps(function.func_code) <ide> if output_shape is None: <del> output_shape = self.previous.output_shape <add> output_shape = input_shape <ide> elif type(output_shape) in...
1
Mixed
Javascript
return http 431 on hpe_header_overflow error
bcf2886a84407028572fd1084242a1c789c056f8
<ide><path>doc/api/http.md <ide> changes: <ide> description: The `rawPacket` is the current buffer that just parsed. Adding <ide> this buffer to the error object of `'clientError'` event is to <ide> make it possible that developers can log the broken packet. <add> - version: REPLA...
3
Ruby
Ruby
show summary headings when appropriate
1d606388b40e28defa86877b2b3976c2b2923c9b
<ide><path>Library/Homebrew/install.rb <ide> def install f <ide> opoo 'A top-level "man" folder was found.' <ide> puts "Homebrew requires that man pages live under share." <ide> puts 'This can often be fixed by passing "--mandir=#{man}" to configure.' <add> show_summary_heading = true <ide> e...
1
Javascript
Javascript
ignore typescript bug
d7d9b9bfa3e981baa46bd919c893b05d041f12fa
<ide><path>bin/webpack.js <ide> #!/usr/bin/env node <ide> <add>// @ts-ignore <ide> process.exitCode = 0; <ide> <ide> /** <ide> if (installedClis.length === 0) { <ide> " and " <ide> )} together. To work with the "webpack" command you need only one CLI package, please remove one of them or use them directly via ...
1
Python
Python
add additional print and assert
0b42b1c4f794259daac3de279b04213a18141cc9
<ide><path>integration/storage/test_azure_blobs.py <ide> def setUpClass(cls): <ide> # to clean those up to ensure we dont hit any limits. <ide> # To avoid deleting groups from concurrent runs, we only delete resources older than a <ide> # couple (6) of hours <add> print("Checking and clea...
1
Javascript
Javascript
correct a typo with enumerable
9b567c5a072202f5d7c1f33f41630c5602748c66
<ide><path>server/server.js <ide> if (!requireProto.hasOwnProperty('ensure')) { <ide> callback(this); <ide> }, <ide> writable: false, <del> enumarble: false <add> enumerable: false <ide> } <ide> } <ide> );
1
Javascript
Javascript
add missing comments
164fec6322f7fd0942cce670d2516eed808048d7
<ide><path>src/config-schema.js <ide> import path from 'path' <ide> import fs from 'fs-plus' <ide> <add>// This is loaded by atom-environment.coffee. See <add>// https://atom.io/docs/api/latest/Config for more information about config <add>// schemas. <ide> const configSchema = { <ide> core: { <ide> type: 'objec...
1
Python
Python
add log message for max_processes
a8092685458d70d283f4721e341a4805ac494f0b
<ide><path>glances/core/glances_standalone.py <ide> """Manage the Glances standalone session.""" <ide> <ide> # Import Glances libs <add>from glances.core.glances_globals import logger <ide> from glances.core.glances_stats import GlancesStats <ide> from glances.outputs.glances_curses import GlancesCurses <ide> from gla...
1
Python
Python
remove print statement
6b325c2c1211325629eddbf7e853f8d51eeb18a7
<ide><path>spacy/lemmatizer.py <ide> def is_base_form(self, univ_pos, morphology=None): <ide> morphology = {} if morphology is None else morphology <ide> others = [key for key in morphology if key not in (POS, 'number', 'pos', 'verbform')] <ide> true_morph_key = morphology.get('morph', 0) <del> ...
1
PHP
PHP
use arguments to make sure they are being passed
2696ff2eae8e28f6e721c8d8232d6cb4856dad91
<ide><path>tests/TestCase/Mailer/MailerTest.php <ide> public function testProxies() <ide> $email = $this->getMockForEmail('setHeaders'); <ide> $email->expects($this->once()) <ide> ->method('setHeaders') <del> ->with([]); <del> $result = (new TestMailer($email))->setHeaders(...
1
PHP
PHP
apply fixes from styleci
27e8438d7a781074a70bda7e4845716063ec56da
<ide><path>src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php <ide> protected function tooManyAttempts($key, $maxAttempts, $decayMinutes) <ide> <ide> $this->remaining = $limiter->remaining; <ide> <del> return !$attempt; <add> return ! $attempt; <ide> } <ide> } <ide><path>tests/I...
2
PHP
PHP
turn profiler off using runtime config
c1bcfec3d2da1c6ef27b3de685228622ef21aa51
<ide><path>laravel/profiling/profiler.php <ide> public static function render($response) <ide> // We only want to send the profiler toolbar if the request is not an AJAX <ide> // request, as sending it on AJAX requests could mess up JSON driven API <ide> // type applications, so we will not send anything in those...
1
Ruby
Ruby
fix `"dependencies"` being `nil`
be4e926b15ec58ff6273e6bf9377cfc8d11e57f9
<ide><path>Library/Homebrew/formula_auditor.rb <ide> def linux_only_gcc_dep?(formula) <ide> # depends_on "gcc" <ide> # end <ide> # ``` <del> variations_deps = [] <del> variations.each_value do |data| <del> variations_deps += data["dependencies"] <del> end <del> variations_...
1
Javascript
Javascript
support gratuitous animation example on android
0cc4306d6c46d7a11b29a0cf754faa127e01570b
<ide><path>RNTester/js/examples/Animated/AnimatedGratuitousApp/AnExApp.js <ide> const { <ide> Animated, <ide> LayoutAnimation, <ide> PanResponder, <add> Platform, <ide> StyleSheet, <add> UIManager, <ide> View, <ide> } = require('react-native'); <ide> <ide> class Circle extends React.Component<any, any> { <...
2
Python
Python
fix typo when returning verticahook
96cd211b77820981c739c2e07b710114b31bb196
<ide><path>airflow/models.py <ide> def get_hook(self): <ide> elif self.conn_type == 'oracle': <ide> return hooks.OracleHook(oracle_conn_id=self.conn_id) <ide> elif self.conn_type == 'vertica': <del> return hooks.VerticaHook(vertica_conn_id=self.conn_id) <add> ...
1
Go
Go
implement build from git
12c9b9b3c94d595ab155fc90dfc426eeada8bc75
<ide><path>api.go <ide> import ( <ide> "io/ioutil" <ide> "log" <ide> "net/http" <add> "os" <add> "os/exec" <add> "path" <ide> "strconv" <ide> "strings" <ide> ) <ide> func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ <ide> repoName = remoteParts[0] <ide> } <ide> <del> var dockerfi...
2
Javascript
Javascript
improve fspromises readfile performance
e216d8f4a1277e77903e9c2c716fefa3b196761b
<ide><path>lib/internal/fs/promises.js <ide> // See https://github.com/libuv/libuv/pull/1501. <ide> const kIoMaxLength = 2 ** 31 - 1; <ide> <del>// Note: This is different from kReadFileBufferLength used for non-promisified <del>// fs.readFile. <del>const kReadFileMaxChunkSize = 2 ** 14; <add>const kReadFileBufferLeng...
2
Javascript
Javascript
fix no-redeclare in code
eebc5ceaf60b101e9ccc65ae5bd07967ca9e803e
<ide><path>bin/convert-argv.js <ide> module.exports = function(optimist, argv, convertOptions) { <ide> return a.concat(i); <ide> }, []); <ide> <add> var i; <ide> if(argv.config) { <ide> configPath = path.resolve(argv.config); <del> for(var i = extensions.length - 1; i >= 0; i--) { <add> for(i = extensions.leng...
16
Java
Java
append unique number to log prefix for undertow
bad8954e65b5c27d40d19fe98a0e12f8986114d6
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.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"); <...
1
Text
Text
fix typo in doc
d13ce702a8346b72bf6461cb1da52d08d39a2d4a
<ide><path>docs/docs/07.1-more-about-refs.md <ide> Consider the case when you wish to tell an `<input />` element (that exists with <ide> ``` <ide> <ide> <del>Notice how, in this example, we want to "tell" the input something - something that it cannot infer from its props over time. In this case we want to "tell" it...
1
Python
Python
add date to index, unbreak object push
5bf7069053d33276e770341079e6a907613903de
<ide><path>glances/exports/glances_elasticsearch.py <ide> def init(self): <ide> if not self.export_enable: <ide> return None <ide> <add> self.index='{}-{}'.format(self.index, datetime.today().strftime("%Y.%m.%d")) <ide> try: <ide> es = Elasticsearch(hosts=['{}:{}'.format(...
1
Text
Text
fix a small typo
c8a9c856c25a1a360a91d2c7bc11e0dacfb9c3a4
<ide><path>docs/api-guide/renderers.md <ide> The TemplateHTMLRenderer will create a `RequestContext`, using the `response.dat <ide> <ide> --- <ide> <del>**Note:** When used with a view that makes use of a serializer the `Response` sent for rendering may not be a dictionay and will need to be wrapped in a dict before ...
1
Mixed
Python
add slim image to docs/docker-stack/readme.md
cd9d935c350f33e194e46bab3d8150ef303e1181
<ide><path>docs/docker-stack/README.md <ide> You can find the following images there (Assuming Airflow version `2.4.0.dev0`): <ide> * `apache/airflow:2.4.0.dev0` - the versioned Airflow image with default Python version (3.7 currently) <ide> * `apache/airflow:2.4.0.dev0-pythonX.Y` - the versioned Airflow image with spe...
2
Python
Python
add option to generate panoptic masks
e46a24972c6220d8d0800dddfebda8f6d3256366
<ide><path>official/vision/beta/projects/panoptic_maskrcnn/modeling/factory.py <ide> def build_panoptic_deeplab( <ide> norm_epsilon=norm_activation_config.norm_epsilon, <ide> kernel_regularizer=l2_regularizer) <ide> <del> post_processing_config = model_config.post_processor <del> post_processor = panopti...
3
PHP
PHP
fix white line
86aea2615e57b4ac02db238dcca4fcb73ac98b45
<ide><path>tests/TestCase/I18n/Parser/MoFileParserTest.php <ide> * @since 3.0.0 <ide> * @license https://opensource.org/licenses/mit-license.php MIT License <ide> */ <del> <ide> namespace Cake\Test\TestCase\I18n\Parser; <ide> <ide> use Cake\I18n\Parser\MoFileParser;
1
Go
Go
fix profiler http serving
3bea892d5458fc627f2ebe26f44a09df018d1fcc
<ide><path>api/server/profiler.go <ide> import ( <ide> "github.com/gorilla/mux" <ide> ) <ide> <del>func NewProfiler() http.Handler { <del> var ( <del> p = &Profiler{} <del> r = mux.NewRouter() <del> ) <del> r.HandleFunc("/vars", p.expVars) <add>func ProfilerSetup(mainRouter *mux.Router, path string) { <add> var r =...
2
Ruby
Ruby
add missing deprecation requires
fef31be2bceba083744c856f29dabdc3fb03402b
<ide><path>railties/lib/rails/application/configuration.rb <add>require 'active_support/deprecation' <ide> require 'rails/engine/configuration' <ide> <ide> module Rails <ide><path>railties/lib/rails/configuration.rb <add>require 'active_support/deprecation' <ide> require 'active_support/ordered_options' <ide> require ...
3
Javascript
Javascript
add error for number constructor, too
2f63b0d6c9f16e4820d969532e8f9ae00ab66bdd
<ide><path>eslint-rules/no-primitive-constructors.js <ide> module.exports = function(context) { <ide> '\'\' + value' <ide> ); <ide> break; <add> case 'Number': <add> report( <add> node, <add> name, <add> 'To cast a value to a number, use the plus operator...
1
Text
Text
add django api client to the third party packages
327cbef29977bb999f292d3c8b7b3efc2491691d
<ide><path>docs/community/third-party-packages.md <ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque <ide> * [drf-viewset-profiler][drf-viewset-profiler] - Lib to profile all methods from a viewset line by line. <ide> * [djangorestframework-features][djangorestframework-features] - A...
1
PHP
PHP
fix some failing tests related to routing
836fa834b428aa77657802051a7424ff5347a222
<ide><path>lib/Cake/Test/TestCase/TestSuite/ControllerTestCaseTest.php <ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) <ide> */ <ide> namespace Cake\Test\TestCase\TestSuite; <add> <ide> use Cake\Controller\Controller; <ide> use Cake\Core\App; <ide> use Cake\Core\Configure; <ide...
2
PHP
PHP
escape urls to avoid xss
0c88f6365f85e0659ff6cf571a3b709077fc11e9
<ide><path>src/View/Helper/HtmlHelper.php <ide> protected function _prepareCrumbs($startText, $escape = true) <ide> * - `fullBase` If true the src attribute will get a full address for the image file. <ide> * - `plugin` False value will prevent parsing path as a plugin <ide> * <del> * @param string $...
6
Javascript
Javascript
move events to the jsstreamsocket
6abb7e594417ce8bf539fcfc896b3ab3b2c6b5d5
<ide><path>lib/internal/http2/core.js <ide> function connect(authority, options, listener) { <ide> } <ide> } <ide> <del> socket.on('error', socketOnError); <del> socket.on('close', socketOnClose); <del> <ide> const session = new ClientHttp2Session(options, socket); <ide> <add> // ClientHttp2Session may cre...
2
Go
Go
add progress bar on docker push
1fc9405537a1c528a59356ec36189a61db146701
<ide><path>registry.go <ide> func (graph *Graph) PushImage(stdout io.Writer, imgOrig *Image, authConfig *auth <ide> // FIXME: Don't do this :D. Check the S3 requierement and implement chunks of 5MB <ide> // FIXME2: I won't stress it enough, DON'T DO THIS! very high priority <ide> layerData2, err := Tar(path.Join(...
1
Python
Python
avoid comparison to none in tok2vec
78301b2d29fe0c37fb05d98b3cf141cc3d6b060a
<ide><path>spacy/_ml.py <ide> def drop_layer_fwd(X, drop=0.): <ide> <ide> <ide> def Tok2Vec(width, embed_size, pretrained_dims=0): <add> if pretrained_dims is None: <add> pretrained_dims = 0 <ide> cols = [ID, NORM, PREFIX, SUFFIX, SHAPE, ORTH] <ide> with Model.define_operators({'>>': chain, '|': con...
1
Mixed
Go
modify options for the command plugin install
d08886618eac804e879cc2953a3a07863e90e5e6
<ide><path>api/client/plugin/install.go <ide> func newInstallCommand(dockerCli *client.DockerCli) *cobra.Command { <ide> } <ide> <ide> flags := cmd.Flags() <del> flags.BoolVar(&options.grantPerms, "grant-all-permissions", false, "grant all permissions necessary to run the plugin") <del> flags.BoolVar(&options.disabl...
2
Text
Text
remove link to sign in crypto.md
00b200fc34193e9c7a40b803e28c76ef067d0b93
<ide><path>doc/api/crypto.md <ide> console.log(sign.sign(private_key, 'hex')); <ide> // Prints the calculated signature <ide> ``` <ide> <del>A [`sign`][] instance can also be created by just passing in the digest <add>A `Sign` instance can also be created by just passing in the digest <ide> algorithm name, in which ...
1
Javascript
Javascript
introduce default config
c6c97cbd9d00c89aeb47677cb571205c830f025b
<ide><path>local-cli/cli.js <ide> var bundle = require('../private-cli/src/bundle/bundle'); <ide> var childProcess = require('child_process'); <ide> var Config = require('../private-cli/src/util/Config'); <add>var defaultConfig = require('./default.config'); <ide> var fs = require('fs'); <ide> var generate = require('....
5
Ruby
Ruby
use sub instead of gsub
d27dd860c7f4f9b9e5aebe7d0c6e9b6108d8717c
<ide><path>actionpack/lib/action_view/renderable_partial.rb <ide> module RenderablePartial <ide> # So you can not set or modify any instance variables <ide> <ide> def variable_name <del> @variable_name ||= name.gsub(/^_/, '').to_sym <add> @variable_name ||= name.sub(/\A_/, '').to_sym <ide> end <i...
1
Python
Python
add check on connect
fd29d2157d031cda430005456669763c4014f8b4
<ide><path>libcloud/container/drivers/docker.py <ide> import shlex <ide> import re <ide> import os <add>import socket <ide> <ide> try: <ide> import simplejson as json <ide> def __init__(self, key='', secret='', secure=False, host='localhost', <ide> if host.startswith(prefix): <ide> host...
1
PHP
PHP
update doc blocks based on feedback
4d9e65ea1651de2004e117def5261eb0cc9021e4
<ide><path>src/Routing/ScopedRouteCollection.php <ide> public function params() { <ide> } <ide> <ide> /** <del> * Get the explicity named routes in the collectio. <add> * Get the explicity named routes in the collection. <ide> * <ide> * @return array An array of named routes indexed by their name. <ide> */ <ide> p...
1
Python
Python
add warning if initial vectors are empty
7944761ba7335048b6d81784cfdcedecf87b3cac
<ide><path>spacy/errors.py <ide> class Warnings: <ide> "`spacy.load()` to ensure that the model is loaded on the correct " <ide> "device. More information: " <ide> "http://spacy.io/usage/v3#jupyter-notebook-gpu") <add> W112 = ("The model specified to use for initial vectors ({name...
2
Ruby
Ruby
use database agnostic function/quoting in test
4a5b3ca972e867d9b9276dcd98b0a6b9b6fb7583
<ide><path>activerecord/test/cases/unsafe_raw_sql_test.rb <ide> class UnsafeRawSqlTest < ActiveRecord::TestCase <ide> end <ide> <ide> test "order: allows Arel.sql with binds" do <del> ids_expected = Post.order(Arel.sql('INSTR(title, "comments"), id')).pluck(:id) <add> ids_expected = Post.order(Arel.sql("REPL...
1
Ruby
Ruby
destroy rich text dependents
a79fa9d2233be0ac968dbec6c00e8eca5b1d0117
<ide><path>lib/action_text/attribute.rb <ide> def #{name}=(body) <ide> end <ide> CODE <ide> <del> has_one :"rich_text_#{name}", -> { where(name: name) }, class_name: "ActionText::RichText", as: :record, inverse_of: :record, dependent: false <add> has_one :"rich_text_#{name}", -> { where...
1
Text
Text
add intermediate solution to guide
ae5e2398aa1444124d0d29c898952dbf4c5b0579
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/factorialize-a-number/index.md <ide> Got it? ![:wink:](https://forum.freecodecamp.com/images/emoji/emoji_one/wink.png <ide> <ide> **Solution ahead!** <ide> <del>## ![:beginner:](https://forum.freecodecamp.com/i...
1
Text
Text
add javascript context to docs
893ec223654f1eddedf42f2092de6cfcfd633e6c
<ide><path>guide/english/typescript/index.md <ide> title: TypeScript <ide> <ide> So as you are most likely aware, JavaScript is expanding its footprint everyday and it is both overwhelming and amazing what you can do with the language nowadays. <ide> <del>However, as more large-scale projects start to use JavaScript,...
1
Text
Text
fix typos in `test.md`
f0639eb8bad739b27b7cdefef4fac8e48c889f16
<ide><path>doc/api/test.md <ide> changes: <ide> * `only` {boolean} If truthy, and the test context is configured to run <ide> `only` tests, then this test will be run. Otherwise, the test is skipped. <ide> **Default:** `false`. <del> * `signal` {AbortSignal} Allows aborting an in-progress test <add> * `sign...
1
PHP
PHP
add authenticatesession middleware
fc302a6667f9dcce53395d01d8e6ba752ea62955
<ide><path>src/Illuminate/Foundation/Http/Kernel.php <ide> class Kernel implements KernelContract <ide> \Illuminate\Session\Middleware\StartSession::class, <ide> \Illuminate\View\Middleware\ShareErrorsFromSession::class, <ide> \Illuminate\Auth\Middleware\Authenticate::class, <add> \Illumi...
2
Python
Python
add support for runtime selected ufunc simd loops
0a2276a66f7bfbce4c3cf6aa1f0f820a24342bf5
<ide><path>numpy/core/code_generators/generate_umath.py <ide> class TypeDescription(object): <ide> astype : dict or None, optional <ide> If astype['x'] is 'y', uses PyUFunc_x_x_As_y_y/PyUFunc_xx_x_As_yy_y <ide> instead of PyUFunc_x_x/PyUFunc_xx_x. <add> simd: list <add> Available SIMD ufun...
1
PHP
PHP
add more test on view
73e7b702b19c0039cda702c6f17b4ef9a767e29f
<ide><path>tests/View/ViewFlowTest.php <ide> <ide> use Mockery as m; <ide> use Illuminate\View\Factory; <add>use Illuminate\Filesystem\Filesystem; <add>use Illuminate\View\Engines\CompilerEngine; <ide> use Illuminate\View\Compilers\BladeCompiler; <ide> <ide> class ViewFlowTest extends PHPUnit_Framework_TestCase <ide>...
1
Javascript
Javascript
improve format performance
faaefa8082033809246d004a9c46b0a612c3bb99
<ide><path>benchmark/util/format.js <ide> <ide> const util = require('util'); <ide> const common = require('../common'); <del>const types = [ <del> 'string', <del> 'number', <del> 'object', <del> 'unknown', <del> 'no-replace' <del>]; <del>const bench = common.createBenchmark(main, { <del> n: [2e6], <del> type: ...
2
Javascript
Javascript
remove empty block
73a75c2ee63ea65709f63b71ade3b81a02b519fc
<ide><path>lib/internal/webstreams/readablestream.js <ide> function readableStreamPipeTo( <ide> <ide> async function run() { <ide> // Run until step resolves as true <del> while (!await step()) {} <add> while (!await step()); <ide> } <ide> <ide> if (signal !== undefined) {
1
Javascript
Javascript
add util functions to pdfjs
04c8d1454d9fa30c376b08b667184c6bf449819e
<ide><path>src/util.js <ide> function stringToBytes(str) { <ide> <ide> var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; <ide> <del>var Util = (function UtilClosure() { <add>var Util = PDFJS.Util = (function UtilClosure() { <ide> function Util() {} <ide> <ide> Util.makeCssRgb = function Util_makeCssRgb(r, g, b) { <ide><...
2
PHP
PHP
fix vendor publish command
bcf9ed1d415fc11b4ba7d956b44284938d2ce467
<ide><path>src/Illuminate/Foundation/Console/VendorPublishCommand.php <ide> use Illuminate\Foundation\Events\VendorTagPublished; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\ServiceProvider; <add>use Illuminate\Support\Str; <ide> use League\Flysystem\Filesystem as Flysystem; <ide> use League\Flysystem...
1
Text
Text
fix links to beginner friendly issues
c355a34de107befd26bc495272b91c11957f3fd0
<ide><path>CONTRIBUTING.md <ide> Working on your first Pull Request? You can learn how from this free video serie <ide> <ide> [**How to Contribute to an Open Source Project on GitHub**](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github) <ide> <del>We have a list of [beginner friendly is...
2
Java
Java
disallow empty @propertysource(value = {})
80dd32e95ccb6e7c4836a751b1414f4be741a1fe
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java <ide> protected AnnotationMetadata doProcessConfigurationClass( <ide> String name = propertySource.getString("name"); <ide> String[] locations = propertySource.getStringArray("value"); <ide> ...
2
Java
Java
avoid use of stream api in controlleradvicebean
2759b4b909ab254ca2d6e3eb55a5b2374901c91b
<ide><path>spring-web/src/main/java/org/springframework/web/method/ControllerAdviceBean.java <ide> <ide> package org.springframework.web.method; <ide> <del>import java.util.Arrays; <add>import java.util.ArrayList; <ide> import java.util.List; <del>import java.util.stream.Collectors; <ide> <ide> import org.springfram...
1
Ruby
Ruby
remove unnecessary string casts
dca786176e250843c3d27d562675e62c86d9d47a
<ide><path>Library/Homebrew/formula.rb <ide> def system cmd, *args <ide> @exec_count ||= 0 <ide> @exec_count += 1 <ide> logd = HOMEBREW_LOGS/name <del> logfn = "#{logd}/%02d.%s" % [@exec_count, File.basename(cmd.to_s).split(' ').first] <add> logfn = "#{logd}/%02d.%s" % [@exec_count, File.basename(cmd)...
1
Java
Java
fix javadoc reference
d3b051a9330de8bdd00ccff69d75a613d16f2cf5
<ide><path>spring-core/src/main/java/org/springframework/util/backoff/BackOff.java <ide> * BackOffExecution exec = backOff.start(); <ide> * <ide> * // In the operation recovery/retry loop: <del> * long waitInterval = exec.nextBackOffMillis(); <add> * long waitInterval = exec.nextBackOff(); <ide> * if (waitInterval ...
1
Python
Python
add chinese punctuation
188b439b25dbe020977761cc719efaf452e79423
<ide><path>spacy/language_data/punctuation.py <ide> <ide> _PUNCT = r""" <ide> … , : ; \! \? ¿ ¡ \( \) \[ \] \{ \} < > _ # \* & <del>。? ! , 、 ; : ~ <add>。 ? ! , 、 ; : ~ <ide> """ <ide> <ide>
1