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
remove trailing whitespace
ae8a540101976d38d9114d2e62bd424dc34513b1
<ide><path>lib/Cake/Error/ExceptionRenderer.php <ide> protected function _getController($exception) { <ide> $startup = false; <ide> } <ide> // Retry RequestHandler, as another aspect of startupProcess() <del> // could have failed. Ignore any exceptions out of startup, as <add> // could have failed. Ignor...
1
PHP
PHP
update typehints to match cacheinterface method
25432da03e8fedfc935e678fce7a3cb4672ed99b
<ide><path>src/Cache/Cache.php <ide> public static function read(string $key, string $config = 'default') <ide> * <ide> * @param iterable $keys An array or Traversable of keys to fetch from the cache <ide> * @param string $config optional name of the configuration to use. Defaults to 'default' <del> ...
2
Python
Python
use raise with context instead of reraise
89c927a2b4d7df571371521d6a044931869788e3
<ide><path>celery/backends/base.py <ide> from celery.exceptions import (ChordError, ImproperlyConfigured, <ide> NotRegistered, TaskRevokedError, TimeoutError, <ide> BackendGetMetaError, BackendStoreError) <del>from celery.five import PY3, items, reraise <add...
1
Javascript
Javascript
add hasownproperty checks where appropriate
6c331fba07d49f05594d6014899e2c95d159b5f2
<ide><path>src/addons/transitions/ReactTransitionChildMapping.js <ide> var ReactTransitionChildMapping = { <ide> <ide> var pendingKeys = []; <ide> for (var prevKey in prev) { <del> if (next[prevKey]) { <add> if (next.hasOwnProperty(prevKey)) { <ide> if (pendingKeys.length) { <ide> n...
10
Python
Python
update timedistributed docs
76c553e68f8f64ab49c255b4b0c1336c5243ac46
<ide><path>keras/layers/wrappers.py <ide> class TimeDistributed(Wrapper): <ide> model = Sequential() <ide> model.add(TimeDistributed(Dense(8), input_shape=(10, 16))) <ide> # now model.output_shape == (None, 10, 8) <add> ``` <add> <add> The output will then have shape `(32, 10, 8)`. <ide> ...
1
Python
Python
allow broadcasting in merge layer
50057d8fe23de4e88c1b0b45eafc5bffd922a941
<ide><path>keras/layers/merge.py <ide> def __init__(self, **kwargs): <ide> def _merge_function(self, inputs): <ide> raise NotImplementedError <ide> <add> def _compute_elemwise_op_output_shape(self, shape1, shape2): <add> """Computes the shape of the resultant of an elementwise operation. <add> <a...
2
Ruby
Ruby
add test for `decide_between_versions`
933499089cbba28ba37cc8671685c85d6cd9c6e0
<ide><path>Library/Homebrew/dev-cmd/bump-unversioned-casks.rb <ide> def self.guess_cask_version(cask, installer) <ide> end <ide> <ide> info_plist_paths.each do |info_plist_path| <del> if (version = version_from_info_plist(cask, info_plist_path)) <add> if (version = version_from_info_plist(inf...
2
Javascript
Javascript
extract a utility method on project
6d2e298de1d04326be8ab14c0846e14b4897e4f1
<ide><path>src/project.js <ide> class Project extends Model { <ide> } <ide> } <ide> <del> getDirectoryForProjectPath (projectPath) { <del> let directory = null <add> getProvidedDirectoryForProjectPath (projectPath) { <ide> for (let provider of this.directoryProviders) { <ide> if (typeof provider.d...
1
Python
Python
fix model templates
763ece2feadf51fc5a26c5acbcdf49bab119f3bd
<ide><path>templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py <ide> def __init__(self, config: {{cookiecutter.camelcase_modelname}}Config, input_emb <ide> def build(self, input_shape: tf.TensorShape): <ide> self.bias = self.add_w...
1
Text
Text
add a summary paragraph.
76bf9b9d7e2cf4ac5305f5047666f034ba710c4c
<ide><path>guide/english/agile/minimum-viable-product/index.md <ide> The idea is to rapidly build a minimum set of features that is enough to deploy <ide> - It demonstrates enough future benefit to retain early adopters. <ide> - It provides a feedback loop to guide future development. <ide> <add>The advantage of itera...
1
PHP
PHP
throw exception on missing required parameter
4a414c58a634eea030dcafff10b7161ab46684cb
<ide><path>src/Illuminate/Container/BoundMethod.php <ide> namespace Illuminate\Container; <ide> <ide> use Closure; <add>use Illuminate\Contracts\Container\BindingResolutionException; <ide> use InvalidArgumentException; <ide> use ReflectionFunction; <ide> use ReflectionMethod; <ide> protected static function addDepende...
2
Javascript
Javascript
stop unnecessary `jquery.fn` extension
3a55a881c6a911a6ab1d100a0bbfa5d6c482afe1
<ide><path>packages/ember-handlebars/tests/handlebars_test.js <ide> var firstChild = nthChild; <ide> <ide> var originalLog, logCalls; <ide> <del>(function() { <add>var caretPosition = function (element) { <add> var ctrl = element[0]; <add> var caretPos = 0; <ide> <del> Ember.$.fn.caretPosition = function() { <del...
1
PHP
PHP
update use of deprecated method
f71159032c608705fd1aaf3b79c2f5acbd0a530c
<ide><path>tests/TestCase/Database/Type/BinaryTypeTest.php <ide> public function testToPHP() <ide> $this->assertNull($this->type->toPHP(null, $this->driver)); <ide> <ide> $result = $this->type->toPHP('some data', $this->driver); <del> $this->assertInternalType('resource', $result); <add> ...
2
PHP
PHP
remove unused variables
3e8ab0ad8f5086e8ef3d0f5766f1a0e48b21bce1
<ide><path>src/TestSuite/Fixture/FixtureManager.php <ide> public function load($test) <ide> $this->_insertionMap[$configName] = []; <ide> } <ide> <del> foreach ($fixtures as $name => $fixture) { <add> foreach ($fixtures as $fixture) { <ide> ...
1
Javascript
Javascript
add test for range clamping
5bae5f47889e751e5ebf3560814c8cb1c57af6e1
<ide><path>test/scale/linear-test.js <ide> suite.addBatch({ <ide> assert.inDelta(x(-.5), 1, 1e-6); <ide> assert.inDelta(x(.5), .5, 1e-6); <ide> assert.inDelta(x(1.5), 0, 1e-6); <add> }, <add> "can clamp to the range": function(linear) { <add> var x = linear().clamp(true); <add> ...
1
Javascript
Javascript
remove control.$form and use nullformctrl
4806d28a29ae5c3f83d8f97c11e692ca2313c9ab
<ide><path>src/directive/form.js <ide> var nullFormCtrl = { <ide> $addControl: noop, <ide> $removeControl: noop, <del> $setValidity: noop <add> $setValidity: noop, <add> $setDirty: noop <ide> } <ide> <ide> /** <ide><path>src/directive/input.js <ide> var inputDirective = [function() { <ide> * @description <ide>...
3
Go
Go
fix concurrent uploads that share layers
5c99eebe81958a227dfaed1145840374ce50bbbb
<ide><path>distribution/push_v2.go <ide> type v2Pusher struct { <ide> config *ImagePushConfig <ide> repo distribution.Repository <ide> <del> // pushState is state built by the Download functions. <add> // pushState is state built by the Upload functions. <ide> pushState pushState <ide> } <id...
4
Python
Python
add blocksize arg for ftp hook
64412ee867fe0918cc3b616b3fb0b72dcd88125c
<ide><path>airflow/providers/ftp/hooks/ftp.py <ide> import datetime <ide> import ftplib <ide> import os.path <del>from typing import Any, List, Optional, Tuple <add>from typing import Any, Callable, List, Optional, Tuple <ide> <ide> from airflow.hooks.base import BaseHook <ide> <ide> def delete_directory(self, path: ...
2
Go
Go
modify test to include /dev/shm sharing
3f631b0d94d57e6dc677a8cd86ecc9233c30e98f
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunModeIpcHost(c *check.C) { <ide> func (s *DockerSuite) TestRunModeIpcContainer(c *check.C) { <ide> testRequires(c, SameHostDaemon, DaemonIsLinux) <ide> <del> out, _ := dockerCmd(c, "run", "-d", "busybox", "top") <add> out, _ := docker...
1
Ruby
Ruby
use respond_to_missing for timewithzone
14762dc5effbc7bb9ae94cb5af895a9a33512867
<ide><path>activesupport/lib/active_support/time_with_zone.rb <ide> def marshal_load(variables) <ide> end <ide> <ide> # Ensure proxy class responds to all methods that underlying time instance responds to. <del> def respond_to?(sym, include_priv = false) <add> def respond_to_missing?(sym, include_priv) <...
2
Javascript
Javascript
avoid a string allocation in getmanageditem
ef3a68f61ec28c76191341b11e9f7de122113aba
<ide><path>lib/FileSystemInfo.js <ide> const mergeMaps = (a, b) => { <ide> }; <ide> <ide> const getManagedItem = (managedPath, path) => { <del> const remaining = path.slice(managedPath.length); <del> let i = 0; <add> let i = managedPath.length; <ide> let slashes = 2; <del> loop: while (i < remaining.length) { <del> ...
1
PHP
PHP
fix cs error
f6a7c58c1fca61d8540f7e9f0eda469d24d398b5
<ide><path>src/Mailer/Mailer.php <ide> public function __call(string $method, array $args) <ide> public function set($key, $value = null) <ide> { <ide> deprecationWarning('Mailer::set() is deprecated. Use setViewVars() instead.'); <add> <ide> return $this->setViewVars($key, $value); <ide> } ...
2
Text
Text
update code example for windows in stream.md
9278ce202ac6d188faeff514b67f4646786efc58
<ide><path>doc/api/stream.md <ide> const server = http.createServer((req, res) => { <ide> res.write(typeof data); <ide> res.end(); <ide> } catch (er) { <del> // uh oh! bad json! <add> // uh oh! bad json! <ide> res.statusCode = 400; <ide> return res.end(`error: ${er.message}`); <id...
1
PHP
PHP
resolve phpdoc errors and typos
baa6e84d178e285a01d41ed18d11d0552e4e6efc
<ide><path>lib/Cake/Model/Datasource/Database/Connection.php <ide> /** <ide> * Represents a connection with a database server <ide> * <del> **/ <add> */ <ide> class Connection { <ide> <ide> use TypeConverter; <ide> class Connection { <ide> * Contains the configuration params for this connection <ide> * <ide> * @...
1
PHP
PHP
remove all references to environmentvariables
cf1d3f289b345b9e8da636887cf5f19219dd86f9
<ide><path>src/Illuminate/Foundation/Application.php <ide> use Illuminate\Routing\RoutingServiceProvider; <ide> use Illuminate\Contracts\Support\ResponsePreparer; <ide> use Illuminate\Exception\ExceptionServiceProvider; <del>use Illuminate\Config\FileEnvironmentVariablesLoader; <ide> use Symfony\Component\HttpKernel\Ht...
2
Text
Text
update markdown text
bda98247b1e1558620fa3bdf9b66299fe44e48a1
<ide><path>client/src/pages/guide/english/csharp/for-loop/index.md <ide> for (; i < 5;) <ide> ``` <ide> <ide> ### Other Resources <del>- [Microsoft Documentation](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/for) <ide>\ No newline at end of file <add>- [Microsoft Documentation](https://do...
1
Ruby
Ruby
avoid method_missing and reduce method calls
a8b4bdb3d6efefe658a0ac4cfb28b69fba494704
<ide><path>activerecord/lib/active_record/relation/batches.rb <ide> def find_each(options = {}) <ide> def find_in_batches(options = {}) <ide> relation = self <ide> <del> if orders.present? || taken.present? <add> unless arel.orders.blank? && arel.taken.blank? <ide> ActiveRecord::Base.logger...
1
Javascript
Javascript
fix eslint styles
19ffb5cf1c50e9d91d0a7a35152d20f175a2385d
<ide><path>lib/_debugger.js <ide> Protocol.prototype.execute = function(d) { <ide> if (len - this.bodyStartByteIndex < this.contentLength) { <ide> break; <ide> } <del> // pass thru <add> // falls through <ide> case 'body': <ide> var resRawByteLength = Buffer.byteLength(res.raw, '...
22
Java
Java
apply @safevarargs to managedmap.ofentries(...)
6e2e45d18f7b016fba15d73db08a05fe530813a2
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/ManagedMap.java <ide> public ManagedMap(int initialCapacity) { <ide> * @return a {@code Map} containing the specified mappings <ide> * @since 5.3.16 <ide> */ <add> @SafeVarargs <ide> @SuppressWarnings("unchecked") <ide> public stati...
1
Javascript
Javascript
remove unneccessary assignement
a58f98edd316dfea85cb477071da9362df21ab74
<ide><path>examples/js/geometries/LightningStrike.js <ide> THREE.LightningStrike.prototype.createDefaultSubrayCreationCallbacks = function <ide> var childSubraySeed = random1() * ( currentCycle + 1 ); <ide> <ide> var isActive = phase % period <= dutyCycle * period; <del> <del> probability = lightningStrike.subray...
2
Ruby
Ruby
remove deprecated new_from_hash_copying_default
2ff2b98032409d162cd2a0ffc1b21c63057f628d
<ide><path>activesupport/lib/active_support/hash_with_indifferent_access.rb <ide> def default(*args) <ide> end <ide> end <ide> <del> def self.new_from_hash_copying_default(hash) <del> ActiveSupport::Deprecation.warn(<<-MSG.squish) <del> `ActiveSupport::HashWithIndifferentAccess.new_from_hash_c...
2
Ruby
Ruby
expand destdir in case a relative path is given
60fe954bfd6a8fe50ff576cd502ef92c25d41fe6
<ide><path>Library/Homebrew/cmd/unpack.rb <ide> def unpack <ide> raise FormulaUnspecifiedError if formulae.empty? <ide> <ide> if dir = ARGV.value("destdir") <del> unpack_dir = Pathname.new(dir) <add> unpack_dir = Pathname.new(dir).expand_path <ide> unpack_dir.mkpath <ide> else <ide> u...
1
Text
Text
fix some grammar errors on guide doc
3ffc3635b9f144a054d65fca4adf502d1545551a
<ide><path>guides/source/active_record_querying.md <ide> clients.each do |client| <ide> end <ide> ``` <ide> <del>This code looks fine at the first sight. But the problem lies within the total number of queries executed. The above code executes 1 (to find 10 clients) + 10 (one per each client to load the address) = **1...
3
Text
Text
fix typo in http2stream.close param default
d3600e513ae277534e9a37b51489ec8584fbf3dc
<ide><path>doc/api/http2.md <ide> added: v8.4.0 <ide> --> <ide> <ide> * code {number} Unsigned 32-bit integer identifying the error code. **Default:** <del> `http2.constant.NGHTTP2_NO_ERROR` (`0x00`) <add> `http2.constants.NGHTTP2_NO_ERROR` (`0x00`) <ide> * `callback` {Function} An optional function registered to li...
1
Ruby
Ruby
remove redundant code
dbacaff1c391f615fcbd18cbfffdf089e57fa332
<ide><path>actionpack/lib/action_dispatch/middleware/public_exceptions.rb <ide> def render_format(status, content_type, body) <ide> end <ide> <ide> def render_html(status) <del> found = false <del> path = "#{public_path}/#{status}.#{I18n.locale}.html" if I18n.locale <del> path = "#{public_path}/...
1
Java
Java
fix ambiguous imports
97ab170928f91847de51d8094a0bcf363de82b22
<ide><path>rxjava-core/src/test/java/rx/operators/OperationDistinctTest.java <ide> package rx.operators; <ide> <add>import static org.mockito.Matchers.*; <add>import static org.mockito.Mockito.*; <add>import static org.mockito.MockitoAnnotations.*; <add>import static rx.operators.OperationDistinct.*; <add> <add>import...
4
Python
Python
fix undefined variable in conllu script
7441fce7ba68474798ae9b46e26b28ce0b2d992b
<ide><path>examples/training/conllu.py <ide> def get_token_conllu(token, i): <ide> n = 1 <ide> while token.nbor(n)._.inside_fused: <ide> n += 1 <del> id_ = '%d-%d' % (k, k+n) <add> id_ = '%d-%d' % (i, i+n) <ide> lines = [id_, token.text, '_', '_', '_', '_', '_', '_', '_...
1
PHP
PHP
add multiple cookies to a response
2883c1688cb0bfc7f760d31e7b08bcc5d9dcb830
<ide><path>src/Illuminate/Http/RedirectResponse.php <ide> public function withCookie(Cookie $cookie) <ide> return $this; <ide> } <ide> <add> /** <add> * Add multiple cookies to the response. <add> * <add> * @param array $cookie <add> * @return $this <add> */ <add> public function withCookies(array $cookies) ...
1
Ruby
Ruby
fix indentation mismatch
1b94d5dc6500a34803fda784d87a361b532b3fb4
<ide><path>activesupport/lib/active_support/cache/file_store.rb <ide> def search_dir(dir, &callback) <ide> end <ide> end <ide> end <del> end <add> end <ide> end <ide> end <ide><path>activesupport/lib/active_support/callbacks.rb <ide> def evaluate_method(method, *args, &block) <id...
3
Go
Go
remove os() from layer interface
c94d34f783944ff6586846ccd11e86925fcee171
<ide><path>distribution/xfer/download_test.go <ide> func (ml *mockLayer) DiffSize() (size int64, err error) { <ide> return 0, nil <ide> } <ide> <del>func (ml *mockLayer) OS() string { <del> return ml.os <del>} <del> <ide> func (ml *mockLayer) Metadata() (map[string]string, error) { <ide> return make(map[string]strin...
8
Javascript
Javascript
update stability index linking logic
cb023a3e7078e03bbb7881e98eb250aaca82ae55
<ide><path>tools/doc/html.js <ide> function preprocessElements({ filename }) { <ide> <ide> // Do not link to the section we are already in. <ide> const noLinking = filename.includes('documentation') && <del> heading !== null && heading.children[0].value === 'Stability Index'; <add> ...
1
Text
Text
add info on env variables for formula cookbook
d5f6e4cd34ba2550499876ed4c8988e183b3465c
<ide><path>docs/Formula-Cookbook.md <ide> Homebrew provides two formula DSL methods for launchd plist files: <ide> * [`plist_name`](https://www.rubydoc.info/github/Homebrew/brew/master/Formula#plist_name-instance_method) will return e.g. `homebrew.mxcl.<formula>` <ide> * [`plist_path`](https://www.rubydoc.info/github/H...
1
PHP
PHP
fix additional missing api doc tags
33a5b6e451b710ee59a0eecd262ef3ed78221a7c
<ide><path>lib/Cake/Model/Datasource/Database/Sqlite.php <ide> public function column($real) { <ide> /** <ide> * Generate ResultSet <ide> * <del> * @param mixed $results <add> * @param mixed $results The results to modify. <ide> * @return void <ide> */ <ide> public function resultSet($results) { <ide> public funct...
2
Javascript
Javascript
remove old comments
6f310b55534ad3cbeeb2fb5993678bedc4ad3390
<ide><path>Libraries/Interaction/FrameRateLogger.js <ide> const FrameRateLogger = { <ide> ); <ide> } <ide> if (NativeModules.FrameRateLogger) { <del> // Freeze the object to avoid the prepack warning (PP0017) about leaking <del> // unfrozen objects. <ide> // Needs to clone the object first...
1
Javascript
Javascript
fix morph multimaterial
b4c85224bd0113cbe24b87e9cd9e5cfb527f32c4
<ide><path>examples/js/loaders/FBXLoader.js <ide> THREE.FBXLoader = ( function () { <ide> <ide> setupMorphMaterials: function () { <ide> <add> var self = this; <ide> sceneGraph.traverse( function ( child ) { <ide> <ide> if ( child.isMesh ) { <ide> <del> if ( child.geometry.morphAttributes.position ||...
1
Ruby
Ruby
improve #configured_migrate_path logic
8af4165a18f63f337dcb8fe8c4f90454b22c151d
<ide><path>activerecord/lib/rails/generators/active_record/migration.rb <ide> def default_migrate_path <ide> end <ide> <ide> def configured_migrate_path <del> return unless database = options[:database] <del> config = ActiveRecord::Base.configurations.configs_for( <add> confi...
1
Javascript
Javascript
add test case
9bec35433c05a179c2534b51d42fb61b1eb90200
<ide><path>test/ProfilingPlugin.test.js <ide> describe("Profiling Plugin", function () { <ide> if (err) return done(err); <ide> if (!fs.existsSync(outputPath)) <ide> return done(new Error("Folder should be created.")); <add> const data = require(finalPath); <add> const maxTs = data.reduce((max, entry...
1
Java
Java
avoid npe in pathmatchconfigurer
4c08c276f79e00f66d56344b9aca901f1b326e0c
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/PathMatchConfigurer.java <ide> public PathMatchConfigurer addPathPrefix(String prefix, Predicate<Class<?>> pred <ide> * {@code false} and use of this property becomes unnecessary. <ide> */ <ide> @Deprecated <del> public PathMa...
1
Javascript
Javascript
add exception for file protocol request
88130689589872cd6f19866680162abb46a39d7a
<ide><path>lib/adapters/xhr.js <ide> module.exports = function xhrAdapter(config) { <ide> <ide> // The request errored out and we didn't get a response, this will be <ide> // handled by onerror instead <del> if (request.status === 0) { <add> // With one exception: request that using file: protoco...
1
Ruby
Ruby
remove superfluous assignment in cookies
bed5825f775bdf2a1af6eec9dc1f4071dbde5ead
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def []=(key, options) <ide> options = { :value => value } <ide> end <ide> <del> value = @cookies[key.to_s] = value <add> @cookies[key.to_s] = value <ide> <ide> handle_options(options) <ide>
1
Javascript
Javascript
use spread object
c52ebc06da0a247e2e7aa66e5ae6ba35a9f1d222
<ide><path>test/fixtures/v8-coverage/spawn-subprocess-no-cov.js <ide> const { spawnSync } = require('child_process'); <del>const env = Object.assign({}, process.env, { NODE_V8_COVERAGE: '' }); <add>const env = { ...process.env, NODE_V8_COVERAGE: '' }; <ide> spawnSync(process.execPath, [require.resolve('./subprocess')],...
23
Python
Python
add skip to fix unnoticed bug with good imports
f6c45afb6ffa9fc1bd3d3637f7d38e423798dce9
<ide><path>scripts/flaskext_migrate.py <ide> def fix_from_imports(red): <ide> from_imports = red.find_all("FromImport") <ide> for x, node in enumerate(from_imports): <ide> values = node.value <add> if len(values) < 2: <add> continue <ide> if (values[0].value == 'flask') and (va...
2
Ruby
Ruby
fix rubocop warnings
4e090530b11bbd61c13024bbdb1ef82387b5fb86
<ide><path>Library/Homebrew/cmd/log.rb <ide> def log <ide> <ide> private <ide> <del> def git_log(path=nil) <add> def git_log(path = nil) <ide> if File.exist? "#{`git rev-parse --show-toplevel`.chomp}/.git/shallow" <ide> opoo <<-EOS.undent <ide> The git repository is a shallow clone therefore the...
1
Mixed
Ruby
recommend mandatory starttls for google
89fdd5e34e053183b069595f40c5834559b0920c
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> module ActionMailer <ide> # This is a symbol and one of <tt>:plain</tt> (will send the password Base64 encoded), <tt>:login</tt> (will <ide> # send the password Base64 encoded) or <tt>:cram_md5</tt> (combines a Challenge/Response mechanism to exchange ...
2
Ruby
Ruby
update latesttag in all cases
a94f6ec50c5bc27bcd5b13e134462bebe6e3e347
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def output_update_report <ide> "git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname", "*.*" <ide> ).lines.first.chomp <ide> <add> Settings.write "latesttag", new_tag if new_tag != old_tag <add> <ide> if old_tag.blank...
1
Ruby
Ruby
freeze modelname cache_key also
24c7f41b4fdc411e35131f9065852a685032211f
<ide><path>activesupport/lib/active_support/core_ext/module/model_naming.rb <ide> def initialize(name) <ide> super <ide> @singular = underscore.tr('/', '_').freeze <ide> @plural = @singular.pluralize.freeze <del> @cache_key = tableize <add> @cache_key = tableize.freeze <ide> @partial_p...
1
Javascript
Javascript
add galician locale (es-gl)
47afb426c6f3ec439bebdaa6e5ec4c7200d5d12b
<ide><path>build.js <ide> var JSHINT_CONFIG = { <ide> "strict": false, <ide> "white": true <ide> }; <del>var LANG_MINIFY = "de en-gb es eu fr it kr nb nl pl pt ru sv".split(" "); <del>var LANG_TEST = "de en en-gb es eu fr it kr nb nl pl pt ru sv".split(" "); <add>var LANG_MINIFY = "de en-gb es es-gl eu fr it kr...
3
Go
Go
use sub-tests, and use gotest.tools
8e3f9fd032ddf9c42844a05c5a5ea7c6c002f6f2
<ide><path>volume/mounts/lcow_parser_test.go <ide> package mounts // import "github.com/docker/docker/volume/mounts" <ide> <ide> import ( <add> "fmt" <ide> "strings" <ide> "testing" <ide> <ide> "github.com/docker/docker/api/types/mount" <add> "gotest.tools/v3/assert" <ide> ) <ide> <ide> func TestLCOWParseMountRaw...
3
PHP
PHP
remove underscore prefix from request attribute
3283845606c869339c95666b5eec9b96208c6baa
<ide><path>src/Controller/Component/SecurityComponent.php <ide> public function generateToken(ServerRequest $request): ServerRequest <ide> 'unlockedFields' => $this->_config['unlockedFields'], <ide> ]; <ide> <del> return $request->withAttribute('_formToken', [ <add> return $request->w...
4
Text
Text
update flake8 command
4e8a0d924eafc3f15dff202980cf24f99221eeb3
<ide><path>CONTRIBUTING.md <ide> We want your work to be readable by others; therefore, we encourage you to note <ide> black . <ide> ``` <ide> <del>- All submissions will need to pass the test __flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics__ before they will be accepted so if possible, try th...
2
Python
Python
set version to v3.0.0.dev11
2d9604d39cbf30edf7c4170bb872045e36c7090f
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.0.0.dev10" <add>__version__ = "3.0.0.dev11" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp...
1
Python
Python
add return_tensor parameter for feature extraction
35bd089a241788a43a43e27de1ef3f5cede7954b
<ide><path>src/transformers/pipelines/feature_extraction.py <ide> class FeatureExtractionPipeline(Pipeline): <ide> If no framework is specified, will default to the one currently installed. If no framework is specified and <ide> both frameworks are installed, will default to the framework of the...
2
Javascript
Javascript
fix next info test during stable release
3d5a9bf5e7a44286254c8a5fd9f674537ba41d4f
<ide><path>test/integration/cli/test/index.test.js <ide> describe('CLI Usage', () => { <ide> stdout: true, <ide> stderr: true, <ide> }) <del> expect(info.stderr || '').toBe('') <add> <add> // when a stable release is done the non-latest canary <add> // warning will show so skip this...
1
Java
Java
add @donotstrip to remoteconnection methods
ecd8802c1faef183c8f6dcec4f42ae4e3011bd1d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/Inspector.java <ide> private Page(int id, String title, String vm) { <ide> <ide> @DoNotStrip <ide> public interface RemoteConnection { <add> @DoNotStrip <ide> void onMessage(String message); <add> @DoNotStrip <ide> void onDisconnect(); <...
1
Javascript
Javascript
improve feb translation
b308b60a07ab602a78afffa2a324520bd0957dcc
<ide><path>src/locale/ro.js <ide> //! locale : Romanian [ro] <ide> //! author : Vlad Gurdiga : https://github.com/gurdiga <ide> //! author : Valentin Agachi : https://github.com/avaly <add>//! author : Emanuel Cepoi : https://github.com/cepem <ide> <ide> import moment from '../moment'; <ide> <ide> function relativeTi...
2
Python
Python
fix a typo in a comment in methodviewtype.__new__
6b9fd4a968dc314ec03c6e5c08c5939667f1634c
<ide><path>flask/views.py <ide> def __new__(cls, name, bases, d): <ide> methods.add(key.upper()) <ide> # If we have no method at all in there we don't want to <ide> # add a method list. (This is for instance the case for <del> # the baseclass or another subclass o...
1
Javascript
Javascript
use cached styles
8377b30b8d35283e325123ddd9047544d83ac11c
<ide><path>Libraries/Image/ImageBackground.js <ide> <ide> const Image = require('Image'); <ide> const React = require('React'); <add>const StyleSheet = require('StyleSheet'); <ide> const View = require('View'); <ide> <ide> /** <ide> class ImageBackground extends React.Component { <ide> <Image <ide> ...
1
Python
Python
add fac to spacy.explain (resolves )
559f4139e32b7de01dc0f97ec284b4d356413528
<ide><path>spacy/glossary.py <ide> def explain(term): <ide> 'PERSON': 'People, including fictional', <ide> 'NORP': 'Nationalities or religious or political groups', <ide> 'FACILITY': 'Buildings, airports, highways, bridges, etc.', <add> 'FAC': 'Buildings, airports, highways, br...
1
PHP
PHP
add tests for datetimetype marshalling
8d633748b0a341b8540a9e18284ea0ff0c1e4f41
<ide><path>src/Database/Type/DateTimeType.php <ide> public function toPHP($value, Driver $driver) { <ide> return $value; <ide> } <ide> <add>/** <add> * Convert request data into a datetime object. <add> * <add> * @param mixed $value Request data <add> * @return \DateTime <add> */ <add> public function marshall($val...
2
Text
Text
add min/max to performance documentation
d5393003acb19164d6112e5c4745c37e6a9ee7be
<ide><path>docs/general/performance.md <ide> new Chart(ctx, { <ide> }); <ide> ``` <ide> <add>## Specify `min` and `max` for scales <add> <add>If you specify the `min` and `max`, the scale does not have to compute the range from the data. <add> <add>```javascript <add>new Chart(ctx, { <add> type: 'line', <add> da...
1
Javascript
Javascript
get pages before entry function
0b9b902a89e0afbd167226c71ad31677dbea914b
<ide><path>server/build/webpack.js <ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer <ide> .split(process.platform === 'win32' ? ';' : ':') <ide> .filter((p) => !!p) <ide> <del> let totalPages <add> const pagesEntries = await getPages(dir, {dev, isServer, pageExtensions: c...
1
Text
Text
fix max length on stream.md
1a5ec837ca56774f2a9ee54ee9a0f6cbfa01d4bc
<ide><path>doc/api/stream.md <ide> constructor and implement the `writable._write()` method. The <ide> changes: <ide> - version: REPLACEME <ide> pr-url: https://github.com/nodejs/node/pull/18438 <del> description: Add `emitClose` option to specify if `close` is emitted on destroy <add> description: > <add> ...
1
Javascript
Javascript
add missing semicolons in sea3dlegacy
476491aba1d81f20cd583d9a7c998a6f8fb1eff3
<ide><path>examples/js/loaders/sea3d/SEA3DLegacy.js <ide> THREE.SEA3D.prototype.readSkeleton = function( sea ) { <ide> <ide> for ( var i = 0; i < sea.joint.length; i ++ ) { <ide> <del> var bone = sea.joint[ i ] <add> var bone = sea.joint[ i ]; <ide> <ide> // get world inverse matrix <ide>
1
Mixed
Text
address feedback and expand documentation
308390ba5b7fe03e5ed899c70e49faa47044ace8
<ide><path>Library/Homebrew/livecheck.rb <ide> # also return the related instance variable when no argument is provided. <ide> # <ide> # This information is used by the `brew livecheck` command to control its <del># behavior. <add># behavior. Example `livecheck` blocks can be found in the <add># [`brew livecheck` docum...
5
Ruby
Ruby
use rails.env after loading environment
d8c5ea76bce3bdc810f3d06af7908c6e474b154c
<ide><path>railties/lib/rails/commands/console.rb <ide> def start <ide> end <ide> <ide> if options[:sandbox] <del> puts "Loading #{ENV['RAILS_ENV']} environment in sandbox (Rails #{Rails.version})" <add> puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})" <ide> ...
1
Mixed
Javascript
support all arraybufferview types
2ced07ccaf7682b9ec8fb3bcc3dc8d2bb2798c61
<ide><path>doc/api/zlib.md <ide> ignored by the decompression classes. <ide> * `level` {integer} (compression only) <ide> * `memLevel` {integer} (compression only) <ide> * `strategy` {integer} (compression only) <del>* `dictionary` {Buffer|Uint8Array} (deflate/inflate only, empty dictionary by <add>* `dictionary` {Buff...
6
Javascript
Javascript
move benchmark-dgram to sequential
d0943bcb693dc8a0cf0b903c04918c4ac6e694ea
<add><path>test/sequential/test-benchmark-dgram.js <del><path>test/parallel/test-benchmark-dgram.js <ide> require('../common'); <ide> <ide> const runBenchmark = require('../common/benchmark'); <ide> <add>// Because the dgram benchmarks use hardcoded ports, this should be in <add>// sequential rather than parallel to ...
1
Ruby
Ruby
add rdocs to map.resources
a27ccf176564db7293fba115a7d05087611ae84b
<ide><path>actionpack/lib/action_controller/resources.rb <ide> def add_default_action(collection, method, action) <ide> end <ide> end <ide> <add> # Creates named routes for implementing verb-oriented controllers. This is <add> # useful for implementing REST API's, where a single resource has diff...
1
Python
Python
remove import from non-existing module
a4a37a783efcfd1cbb21acc29077c8096a0a0198
<ide><path>spacy/lang/pl/__init__.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <del>from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <ide> from .stop_words import STOP_WORDS <ide> <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS
1
PHP
PHP
use getconnection in tests
3195338ab72ef6eaace61b98751b37c485930577
<ide><path>tests/TestCase/Database/Driver/SqlserverTest.php <ide> public function testConnectionConfigCustom() <ide> 'settings' => ['config1' => 'value1', 'config2' => 'value2'], <ide> ]; <ide> $driver = $this->getMockBuilder('Cake\Database\Driver\Sqlserver') <del> ->setMethods(['...
1
PHP
PHP
add aggregate example
bd5783b5e9db18b353fe10f5ed8bd6f7ca7b8c6e
<ide><path>config/logging.php <ide> */ <ide> <ide> 'channels' => [ <add> 'aggregate' => [ <add> 'driver' => 'aggregate', <add> 'channels' => ['single', 'daily'], <add> ], <add> <ide> 'single' => [ <ide> 'driver' => 'single', <ide> 'path' => st...
1
Javascript
Javascript
add tls clientcertengine tests
829d8f1cd0351d9fc3ee0ff9ce63c6f6c34da373
<ide><path>test/parallel/test-tls-clientcertengine-invalid-arg-type.js <add>'use strict'; <add>const common = require('../common'); <add> <add>if (!common.hasCrypto) <add> common.skip('missing crypto'); <add> <add>const assert = require('assert'); <add>const tls = require('tls'); <add> <add>{ <add> assert.throws( <ad...
3
PHP
PHP
consolidate event names
0423841897babfcc136a95f7278a7f5b4669a22f
<ide><path>src/Controller/Component.php <ide> * cycle. The available callbacks are: <ide> * <ide> * - `beforeFilter(EventInterface $event)` <del> * Called before the controller's beforeFilter method by default. <add> * Called before Controller::beforeFilter() method by default. <ide> * - `startup(EventInterface...
3
PHP
PHP
clear command
54f198fd9d54ad492eb22a9add5ca15c24208002
<ide><path>src/Illuminate/Foundation/Console/RouteCacheCommand.php <ide> use Illuminate\Filesystem\Filesystem; <ide> use Symfony\Component\Console\Input\InputOption; <ide> use Symfony\Component\Console\Input\InputArgument; <del>use Illuminate\Routing\Generators\ControllerGenerator; <ide> <ide> class RouteCacheCommand ...
3
Python
Python
add testcases for default field values
9f9cb97d6538e320a0740749b200d418d9d52040
<ide><path>rest_framework/fields.py <ide> class URLField(CharField): <ide> type_name = 'URLField' <ide> <ide> def __init__(self, **kwargs): <del> kwargs['max_length'] = kwargs.get('max_length', 200) <ide> kwargs['validators'] = [validators.URLValidator()] <ide> super(URLField, self).__in...
2
Ruby
Ruby
remove errant pkg-config libdir
980db9d3fb6671c7562f97dfa3dd4f22fd74083f
<ide><path>Library/Homebrew/extend/ENV/super.rb <ide> def determine_pkg_config_path <ide> <ide> def determine_pkg_config_libdir <ide> PATH.new( <del> "/usr/lib/pkgconfig", <ide> homebrew_extra_pkg_config_paths, <ide> ).existing <ide> end
1
Ruby
Ruby
example bracket error
342f84ad45f632485f3faa94623132d8f82676a9
<ide><path>actionpack/lib/action_controller/metal/http_authentication.rb <ide> module HttpAuthentication <ide> # class PostsController < ApplicationController <ide> # REALM = "SuperSecret" <ide> # USERS = {"dhh" => "secret", #plain text password <del> # "dap" => Digest::MD5.hexdige...
1
Go
Go
improve workdir test to cover more edge cases
c1f492755b8774005b3627da8ee001ee0b2df4eb
<ide><path>integration/buildfile_test.go <ide> func TestBuildRelativeWorkdir(t *testing.T) { <ide> img, err := buildImage(testContextTemplate{` <ide> FROM {IMAGE} <ide> RUN [ "$PWD" = '/' ] <del> WORKDIR /test1 <add> WORKDIR test1 <ide> RUN [ "$PWD" = '/test1' ] <del> WORKDIR test2 <del> RUN [ "$PWD" = '/tes...
1
Python
Python
add option mentioned in #940
70c10caa06d9feda3f446d0a82655f56cd2afdab
<ide><path>examples/run_glue.py <ide> def evaluate(args, model, tokenizer, prefix=""): <ide> <ide> <ide> def load_and_cache_examples(args, task, tokenizer, evaluate=False): <add> if args.local_rank not in [-1, 0]: <add> torch.distributed.barrier() # Make sure only the first process in distributed training ...
2
PHP
PHP
add "copy" command
01c4d3dd9c2b623fbde0de76e1fdf7485cf96d85
<ide><path>src/Shell/PluginAssetsShell.php <ide> class PluginAssetsShell extends Shell { <ide> <ide> /** <ide> * Attempt to symlink plugin assets to app's webroot. If symlinking fails it <del> * fallback to copying the assets. For vendor namespaced plugin, parent folder <add> * fallbacks to copying the assets. For ve...
2
Python
Python
remove unused import
d2c94474ac11da442dff4548c0fe325eeecc5561
<ide><path>keras/applications/densenet.py <ide> from ..layers import Concatenate <ide> from ..layers import Conv2D <ide> from ..layers import Dense <del>from ..layers import Flatten <ide> from ..layers import GlobalAveragePooling2D <ide> from ..layers import Input <ide> from ..layers import MaxPooling2D
1
Text
Text
fix tiny typo
503aba577f9b272352e316e652c5868a0a11e8be
<ide><path>docs/tutorials/fundamentals/part-5-ui-and-react.md <ide> export default Header <ide> <ide> Our components can now read state from the store, and dispatch actions to the store. However, we're still missing something. Where and how are the React-Redux hooks finding the right Redux store? A hook is a JS functi...
1
Javascript
Javascript
fix argument order in assertion
1dcba68534b810fb2af676121a8dc7a16285a79c
<ide><path>test/parallel/test-http2-pipe-named-pipe.js <ide> server.on('stream', common.mustCall((stream) => { <ide> })); <ide> <ide> dest.on('finish', common.mustCall(() => { <del> assert.strictEqual(fs.readFileSync(loc).length, <del> fs.readFileSync(fn).length); <add> assert.strictEqu...
1
Javascript
Javascript
add tests for synaxtreescopedescriptor
ad41476cbe6fa4ef9a74a341b9e75178aee0339a
<ide><path>spec/text-editor-spec.js <ide> const {clipboard} = require('electron') <ide> const TextEditor = require('../src/text-editor') <ide> const TextBuffer = require('text-buffer') <ide> const TextMateLanguageMode = require('../src/text-mate-language-mode') <add>const TreeSitterLanguageMode = require('../src/tree-s...
2
Ruby
Ruby
materialize subqueries by adding `distinct`
4794a9a6c18439657a2f888d394a85ae93368190
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def subquery_for(key, select) <ide> <ide> subselect = Arel::SelectManager.new(select.engine) <ide> subselect.project Arel.sql(key.name) <del> subselect.from subsubselect.as('__active_record_temp') <add>...
1
Javascript
Javascript
expose `hasscheduledtimers` on `ember.run`
9fa99447d769b02db0437461f6217ba8ec6d22f2
<ide><path>packages/ember/lib/index.js <ide> Ember.run.bind = metal.bind; <ide> Ember.run.cancel = metal.cancel; <ide> Ember.run.debounce = metal.debounce; <ide> Ember.run.end = metal.end; <add>Ember.run.hasScheduledTimers = metal.hasScheduledTimers; <ide> Ember.run.join = metal.join; <ide> Ember.run.later = metal.late...
2
PHP
PHP
remove persistent cache
283bcd028d12433d57f743d6f59710e1d29db3bd
<ide><path>src/View/Helper/StringTemplateTrait.php <ide> public function formatTemplate($name, $data) { <ide> public function templater() { <ide> if (empty($this->_templater)) { <ide> $class = $this->config('templateClass') ?: 'Cake\View\StringTemplate'; <del> $this->_templater = new $class([], str_replace('\\'...
2
Javascript
Javascript
remove string literal from assertion
d12e2f6fcf128cab969cb0dda72d332df62a83e6
<ide><path>test/parallel/test-dns-lookup.js <ide> dns.lookup('example.com', common.mustCall((error, result, addressType) => { <ide> assert.strictEqual(tickValue, 1); <ide> assert.strictEqual(error.code, 'ENOENT'); <ide> const descriptor = Object.getOwnPropertyDescriptor(error, 'message'); <del> assert.strictEqua...
1
Python
Python
set version to v2.2.0.dev16
aedfba867a483060a88a24be883c91e64c8aba42
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.0" <add>__version__ = "2.2.0.dev16" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mo...
1
Text
Text
add jobrapido to inthewild.md
35efb1d554121007ff096086e8d8678c8b67598a
<ide><path>INTHEWILD.md <ide> Currently **officially** using Airflow: <ide> 1. [Jampp](https://github.com/jampp) <ide> 1. [Jeitto](https://www.jeitto.com.br) [[@BrennerPablo](https://github.com/BrennerPablo) & [@ds-mauri](https://github.com/ds-mauri)] <ide> 1. [Jetlore](http://www.jetlore.com/) [[@bderose](https://gith...
1