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
fix mistakes in errortrap html rendering
855a5c57a436ea55d7e29d23f35ab0b523398ea4
<ide><path>src/Error/Debugger.php <ide> public static function formatTrace($backtrace, array $options = []) <ide> if (in_array($signature, $options['exclude'], true)) { <ide> continue; <ide> } <del> if ($options['format'] === 'points' && $trace['file'] !== '[internal]'...
3
PHP
PHP
fix boolean binding for json updates
38acdd807faec4b85fd47051341ccaf666499551
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function update(array $values) <ide> <ide> $sql = $this->grammar->compileUpdate($this, $values); <ide> <add> $bindings = $this->grammar->prepareBindingsForUpdate($bindings, $values); <add> <ide> return $this->connection->update($...
3
Text
Text
remove outdated debugging plugins
7d9f5b661f6e830429020bfa86ee02615f7ed304
<ide><path>guides/source/debugging_rails_applications.md <ide> Plugins for Debugging <ide> There are some Rails plugins to help you to find errors and debug your <ide> application. Here is a list of useful plugins for debugging: <ide> <del>* [Footnotes](https://github.com/josevalim/rails-footnotes) Every Rails page ha...
1
Javascript
Javascript
fix typo on inline comment
e07a3cd28f3b360755d6832a01d724a3b7576bc4
<ide><path>packages/react-reconciler/src/ReactFiberScheduler.js <ide> function performSyncWork() { <ide> function performWork(minExpirationTime: ExpirationTime, dl: Deadline | null) { <ide> deadline = dl; <ide> <del> // Keep working on roots until there's no more work, or until the we reach <add> // Keep working o...
1
PHP
PHP
change middlewares to middleware
964c28e128a72ae4c580b7a83a3e13fa7a7c7d76
<ide><path>src/Illuminate/Foundation/Console/Optimize/config.php <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Database/ConnectionResolverInterface.php', <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php', <ide> $basePath.'/vendor/laravel/framewo...
1
Javascript
Javascript
tabify the issues
184db4b62adcb62b49f604289a81f5393119243a
<ide><path>test/unit/src/animation/AnimationAction.tests.js <ide> export default QUnit.module( 'Animation', () => { <ide> // PUBLIC STUFF <ide> QUnit.test( "play", ( assert ) => { <ide> <del> var {mixer,animationAction} = createAnimation(); <add> var {mixer,animationAction} = createAnimation(); <ide> ...
1
Text
Text
remove a duplicated changelog entry [ci skip]
f927591611abc6b51fdea8b0b5a99669e2e77740
<ide><path>activesupport/CHANGELOG.md <del>* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY` <del> as input when `precision: 0` is used. <del> <del> Fixes #19227. <del> <del> *Yves Senn* <del> <ide> * Take DST into account when locating TimeZone from Numeric. <ide> <ide> W...
1
Javascript
Javascript
fix container not defined error
8f14282ab4f4476f76eac3659412e0f8e3ad3f93
<ide><path>web/viewer.js <ide> var PDFView = { <ide> currentScaleValue: null, <ide> initialBookmark: document.location.hash.substring(1), <ide> container: null, <add> initialized: false, <ide> // called once when the document is loaded <del> init: function pdfViewInit() { <add> initialize: function pdfViewIn...
1
Mixed
Javascript
fix flaky `onload()` test for `next/image/future`
f8732d9cd7667129236ecdf7d40f6fd11d69465e
<ide><path>docs/api-reference/next/future/image.md <ide> The callback function will be called with one argument, an object with the follo <ide> - [`naturalWidth`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth) <ide> - [`naturalHeight`](https://developer.mozilla.org/en-US/docs/Web/API/HT...
3
PHP
PHP
update cacheengine to psr16
1ae31c054ecac212ffbd0c29b0b8c09813d8a244
<ide><path>src/Cache/Cache.php <ide> <ide> use Cake\Cache\Engine\NullEngine; <ide> use Cake\Core\StaticConfigTrait; <del>use InvalidArgumentException; <ide> use RuntimeException; <ide> <ide> /** <ide> public static function setRegistry(CacheRegistry $registry): void <ide> * <ide> * @param string $name Name ...
11
Javascript
Javascript
check the node version before starting
eeb9ef09f9972ec1850549f06a324f150b732873
<ide><path>Gruntfile.js <ide> var versionInfo = require('./lib/versions/version-info'); <ide> var path = require('path'); <ide> var e2e = require('./test/e2e/tools'); <ide> <add>var semver = require('semver'); <add>var fs = require('fs'); <add> <add>var useNodeVersion = fs.readFileSync('.nvmrc', 'utf8'); <add>if (!sem...
1
Ruby
Ruby
remove unnecessary `tab.for_formula`
820b6347b8731faed631e4cef8e4e90a52d33501
<ide><path>Library/Homebrew/cmd/leaves.rb <ide> def leaves <ide> <ide> installed.each do |f| <ide> deps = [] <del> tab = Tab.for_formula(f) <ide> <ide> f.deps.each do |dep| <ide> if dep.optional? || dep.recommended? <del> deps << dep.to_formula.full_name if tab.with?(dep) <add> ...
3
Text
Text
add bokeh installation
ae47b41ea381e61e03ccf1d1f2351185e33937e5
<ide><path>guide/english/data-science-tools/visualization-bokeh/index.md <ide> Bokeh is a Python interactive visualization library, providing the elegant and c <ide> <ide> This distinguishes bokeh from other visualization libraries such as matplotlib or seaborn. With the help of bokeh even very large data sets can be ...
1
Javascript
Javascript
remove jquery usage in ember-application tests
ef04a33961d48de1065ee6a306d01917b44f9cd9
<ide><path>packages/ember-application/tests/system/application_test.js <ide> import { <ide> } from 'internal-test-helpers'; <ide> <ide> moduleFor('Ember.Application, autobooting multiple apps', class extends ApplicationTestCase { <del> constructor() { <del> jQuery('#qunit-fixture').html(` <add> get fixture() { <a...
7
Javascript
Javascript
remove duplicate assertion tests
13c5db977190f926a213fc8ad7204e1febe36009
<ide><path>lib/buffer.js <ide> Buffer.prototype.writeInt8 = function(value, offset, noAssert) { <ide> var buffer = this; <ide> <ide> if (!noAssert) { <del> assert.ok(value !== undefined && value !== null, <del> 'missing value'); <del> <del> assert.ok(offset !== undefined && offset !== null, <del> ...
1
PHP
PHP
remove useless else with throw
cfc6f403be3bcc190c3dfee907bd5e72c2615d0e
<ide><path>src/Illuminate/Container/Container.php <ide> protected function resolveClass(ReflectionParameter $parameter) <ide> { <ide> return $parameter->getDefaultValue(); <ide> } <del> else <del> { <del> throw $e; <del> } <add> <add> throw $e; <ide> } <ide> } <ide>
1
PHP
PHP
append database name for withcount
55e31ddbaef51fdafdc66a1030d90cb7565ab1cc
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> protected function createSub($query) <ide> protected function parseSub($query) <ide> { <ide> if ($query instanceof self || $query instanceof EloquentBuilder || $query instanceof Relation) { <add> if ($query->getConnection()->getDataba...
1
Ruby
Ruby
update url for clt download
49cd13406b8c51ee2674e160a2d576d3916ab493
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> "lzma is now part of the xz formula." <ide> when 'xcode' then <<-EOS.undent <ide> Xcode can be installed via the App Store (on Lion or newer), or from: <del> http://connect.apple.com/ <add> https://developer.apple.com/downloa...
3
Text
Text
add jkrems to collaborators
e125f174dc15cb9d8c5c4a52dfa0330acdf997c5
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Johan Bergström** &lt;bugs@bergstroem.nu&gt; <ide> * [jhamhader](https://github.com/jhamhader) - <ide> **Yuval Brik** &lt;yuval@brik.org.il&gt; <add>* [jkrems](https://github.com/jkrems) - <add>**Jan Krems** &lt;jan.kre...
1
Go
Go
fix potential panic during plugin set
6572e27df7f3483cfed7a8294c1f6d9cf157809a
<ide><path>integration-cli/docker_cli_plugins_test.go <ide> func (ps *DockerPluginSuite) TestPluginSet(c *check.C) { <ide> defer cancel() <ide> <ide> initialValue := "0" <add> mntSrc := "foo" <add> devPath := "/dev/bar" <add> <ide> err = plugin.Create(ctx, client, name, func(cfg *plugin.Config) { <ide> cfg.Env = ...
2
Python
Python
add albert and xlm to squad script
2a4ef098d65939d436e2a5efbb518fb807b6b1b6
<ide><path>examples/run_squad.py <ide> XLNetForQuestionAnswering, <ide> XLNetTokenizer, <ide> DistilBertConfig, DistilBertForQuestionAnswering, DistilBertTokenizer, <del> AlbertConfig, ...
1
Javascript
Javascript
fix errors for require.parent/main.require
66d7ebd9a817909c8bb9fab172e0950e8ad6a90b
<ide><path>lib/dependencies/CommonJsImportsParserPlugin.js <ide> class CommonJsImportsParserPlugin { <ide> "require.main.require is not supported by webpack." <ide> ) <ide> ); <add> parser.hooks.call <add> .for("require.main.require") <add> .tap( <add> "CommonJsPlugin", <add> expressionIsUnsuppor...
2
Mixed
Ruby
add configuration to enable mail previews
84ed7b8dfeb2ba47ca8c1b0767c85bbf200e786b
<ide><path>actionmailer/CHANGELOG.md <add>* Add `config.action_mailer.preview_enabled` configuration option. <add> <add> This config option can be used to enable the mail preview in environments <add> other than development (such as staging). <add> <add> Defaults to `true` in development and false elsewhere....
7
Mixed
Ruby
add label attribute to <option> from include_blank
e6950a332afd0553a0f11cf5fcb87ad84ec73a2b
<ide><path>actionview/lib/action_view/helpers/date_helper.rb <ide> def build_select(type, select_options_as_html) <ide> select_options[:class] = css_class_attribute(type, select_options[:class], @options[:with_css_classes]) if @options[:with_css_classes] <ide> <ide> select_html = +"\n" <del> ...
6
Text
Text
use static path to tar in readme
8d84234a105f11385551d7312625413c70fd6ae5
<ide><path>README.md <ide> Dude! Just give me a one-liner! <ide> Okay then, but please note this installs Homebrew as root and <ide> [we recommend against that][sudo]. <ide> <del> curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 <add> curl -LsSf http://github.com/mx...
1
PHP
PHP
move tests from protected method to name()
5347287542b577644036c126b991a82bc8f1eade
<ide><path>tests/TestCase/Filesystem/FileTest.php <ide> use Cake\Filesystem\File; <ide> use Cake\Filesystem\Folder; <ide> use Cake\TestSuite\TestCase; <add>use SplFileInfo; <ide> <ide> /** <ide> * FileTest class <ide> public function testUtf8Filenames() <ide> * @dataProvider baseNameValueProvider <ide> * @r...
1
Javascript
Javascript
remove _evalurl when excluding ajax
31f09122677f6ee206796912041827c006031e46
<ide><path>Gruntfile.js <ide> module.exports = function( grunt ) { <ide> ], <ide> // Exclude specified modules if the module matching the key is removed <ide> removeWith: { <add> ajax: [ "manipulation/_evalUrl" ], <ide> callbacks: [ "deferred" ], <ide> css: [ "effects", "dimensions", "offset" ...
1
Ruby
Ruby
remove unneeded require
86b13b6f54fe0f98ef5452ba149ca9956e4a778a
<ide><path>activerecord/test/cases/multiparameter_attributes_test.rb <ide> require "cases/helper" <ide> require 'models/topic' <ide> require 'models/customer' <del>require 'active_support/core_ext/exception' <ide> <ide> class MultiParameterAttributeTest < ActiveRecord::TestCase <ide> fixtures :topics
1
Javascript
Javascript
bind keypress on ng-click w/ option
5481e2cfcd4d136a1c7f45cd4ce0fa1a8a15074d
<ide><path>src/ngAria/aria.js <ide> * | {@link ng.directive:ngDisabled ngDisabled} | aria-disabled | <ide> * | {@link ng.directive:ngShow ngShow} | aria-hidden ...
2
PHP
PHP
fix memcached test failures
afcd0312bfaf7a95e6e786637e2a23044f054a9e
<ide><path>lib/Cake/Test/Case/Cache/Engine/MemcachedEngineTest.php <ide> public function testSaslAuthException() { <ide> 'password' => 'password' <ide> ); <ide> <del> $this->skipIf( <del> method_exists($Memcached->getMemcached(), 'setSaslAuthData'), <del> 'Memcached extension is installed with SASL support' ...
1
Text
Text
update hoc example in usingimmutablejs docs
0f6322a4ab886329d4835081603cccca195ecfa0
<ide><path>docs/recipes/UsingImmutableJS.md <ide> Something needs to map the Immutable.JS props in your Smart Component to the pur <ide> Here is an example of such a HOC: <ide> <ide> ``` <del>import { React } from 'react'; <add>import React from 'react'; <ide> import { Iterable } from 'immutable'; <ide> <ide> export ...
1
Javascript
Javascript
ignore scale of light.matrixworld
3c16ded83fcf2224ad7345777502a2adfbb6cec7
<ide><path>examples/js/helpers/RectAreaLightHelper.js <ide> if ( max > 1 ) c.multiplyScalar( 1 / max ); <ide> this.children[ 0 ].material.color.copy( this.material.color ); <ide> <del> } <add> } // ignore world scale on light <ide> <del> this.matrixWorld.copy( this.light.matrixWorld ).scale( this.scale ...
2
Java
Java
improve contentcachingrequestwrapper performance
4d0800f3924fa8a7fc4a9b411974760b9e4e1305
<ide><path>spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java <ide> public ContentCachingInputStream(ServletInputStream is) { <ide> this.is = is; <ide> } <ide> <add> @Override <add> public int readLine(final byte[] b, final int off, final int len) throws IOException { <add> ...
1
Java
Java
relax generic type detection for responseentity
71201e1a4310990762ed9a0a74114c3aac4905c5
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessor.java <ide> public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer m <ide> <ide> ServletServerHttpRequest inputMessage = createInputMessage(webRequest); <ide> Type paramType...
1
Ruby
Ruby
preserve order on the rhs query
8988f0b8beec83a8ead61da93818270e82e76694
<ide><path>activerecord/lib/active_record/associations/preloader/association.rb <ide> def build_scope <ide> scope.select! preload_values[:select] || values[:select] || table[Arel.star] <ide> scope.includes! preload_values[:includes] || values[:includes] <ide> <add> if preload_values.key?...
1
Text
Text
move changelog entry from to the top [ci skip]
de20debe64df114090c32bcfcdc9f40dc34a79d2
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Introduce `ActionView::Template::Handlers::ERB.escape_whitelist`. This is a list <add> of mime types where template text is not html escaped by default. It prevents `Jack & Joe` <add> from rendering as `Jack &amp; Joe` for the...
1
Python
Python
add default value for `l2_normalize`
ddd8f470aeac84049b9d1d05b6d9a9b568f9b5f7
<ide><path>keras/backend/cntk_backend.py <ide> def has_seq_axis(x): <ide> return hasattr(x, 'dynamic_axes') and len(x.dynamic_axes) > 1 <ide> <ide> <del>def l2_normalize(x, axis): <add>def l2_normalize(x, axis=None): <ide> axis = [axis] <ide> axis = _normalize_axis(axis, x) <ide> norm = C.sqrt(C.reduc...
3
PHP
PHP
remove useless $app argument
4d6737d59ad4d5dd532a77c46749c34b624b8e50
<ide><path>src/Illuminate/Auth/GeneratorServiceProvider.php <ide> protected function registerAuthControllerCommand() <ide> */ <ide> protected function registerAuthMakeCommand() <ide> { <del> $this->app->bindShared('command.auth.make', function($app) <add> $this->app->bindShared('command.auth.make', function() <id...
9
Python
Python
use subclass for new version of signed connection
65579bf0f3836767fb1c9fed3b4253d9a4e6e4dd
<ide><path>libcloud/common/aws.py <ide> def add_default_headers(self, headers): <ide> class SignedAWSConnection(AWSTokenConnection): <ide> <ide> def add_default_params(self, params): <add> params['SignatureVersion'] = '2' <add> params['SignatureMethod'] = 'HmacSHA256' <add> params['AWSAccessKe...
2
Python
Python
change method order
44b5542d144b26eaa3c69b7b7f26162c57060458
<ide><path>spacy/language.py <ide> def create_pipe( <ide> self._pipe_configs[name] = filled <ide> return resolved[factory_name] <ide> <del> def replace_listeners( <del> self, <del> tok2vec_name: str, <del> pipe_name: str, <del> listeners: Iterable[str] = SimpleFrozenList(...
1
Python
Python
detect utf encodings when loading json
0e1e9a04aaf29ab78f721cfc79ac2a691f6e3929
<ide><path>flask/json.py <ide> :copyright: (c) 2015 by Armin Ronacher. <ide> :license: BSD, see LICENSE for more details. <ide> """ <add>import codecs <ide> import io <ide> import uuid <ide> from datetime import date <ide> def _load_arg_defaults(kwargs): <ide> kwargs.setdefault('cls', JSONDecoder) <ide>...
3
Python
Python
fix remaining uses of deprecated python imp module
bfa4ad3f93608074bacf04c4d9ed0546dd443163
<ide><path>numpy/core/setup.py <ide> from numpy.distutils import log <ide> from distutils.dep_util import newer <ide> from distutils.sysconfig import get_config_var <del>from numpy._build_utils.apple_accelerate import (uses_accelerate_framework, <del> get_sgemv_fix) <del>...
2
Javascript
Javascript
exclude harmony test cases in old versions
7a1a0f5c0f34013522d7e12935f67eac0f59a182
<ide><path>test/TestCases.test.js <ide> var checkArrayExpectation = require("./checkArrayExpectation"); <ide> <ide> var webpack = require("../lib/webpack"); <ide> <add>var harmony = (+process.versions.node.split(".")[0]) >= 4; <add> <ide> describe("TestCases", function() { <ide> var casesPath = path.join(__dirname, ...
1
Python
Python
fix post_init of some trainingarguments
ca05c2a47dfab4f1b7d325ee641fed65b0d7a762
<ide><path>src/transformers/training_args.py <ide> class TrainingArguments: <ide> def __post_init__(self): <ide> if self.disable_tqdm is None: <ide> self.disable_tqdm = logger.getEffectiveLevel() > logging.WARN <del> if self.evaluate_during_training is not None: <del> self.eval...
1
Javascript
Javascript
remove unused challenge utils
15c49ec52091f1d65f96a807a7c3687f294220bc
<ide><path>server/utils/index.js <del>var path = require('path'), <del> // debug = require('debug')('freecc:cntr:resources'), <del> cheerio = require('cheerio'), <add>var cheerio = require('cheerio'), <ide> request = require('request'), <del> R = require('ramda'), <del> _ = require('lodash'), <del> f...
1
Javascript
Javascript
improve error when creating urls from action
9b09cf37d0e8908ee8cd8a41920596a1f6509324
<ide><path>packages/ember-states/lib/router.js <ide> Ember.Router = Ember.StateManager.extend( <ide> var currentState = get(this, 'currentState'); <ide> var targetStateName = currentState.eventTransitions[eventName]; <ide> <del> Ember.assert("You must specify a target state for an event in order to get link...
1
Go
Go
fix jsonmessage in build
05f416d869777aa613a5a197ad287c18b77366d3
<ide><path>buildfile.go <ide> type StdoutFormater struct { <ide> } <ide> <ide> func (sf *StdoutFormater) Write(buf []byte) (int, error) { <del> formattedBuf := sf.StreamFormatter.FormatStatus("", "%s", string(buf)) <add> formattedBuf := sf.StreamFormatter.FormatStream(string(buf)) <ide> n, err := sf.Writer.Write(form...
4
Javascript
Javascript
convert assert.equal to assert.strictequal
6ed0e8b49c842a25f64b5c003c51a21b51f38c65
<ide><path>test/parallel/test-buffer-slow.js <ide> try { <ide> assert.strictEqual( <ide> SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength); <ide> } catch (e) { <del> assert.equal(e.message, 'Array buffer allocation failed'); <add> assert.strictEqual(e.message, 'Array buffer allocation failed'); <ide> } <...
1
Python
Python
fix another crash on single-core systems.
c242705bc56693f8343731e2d78efe79896a43ea
<ide><path>official/recommendation/data_preprocessing.py <ide> def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size, <ide> <ide> # By limiting the number of workers we guarantee that the worker <ide> # pool underlying the training generation doesn't starve other processes. <del> num_workers = i...
1
Ruby
Ruby
add module for logging filesystem leaks in tests
acf76f3f5502846f21933cbf77302f332f18c1c1
<ide><path>Library/Homebrew/test/testing_env.rb <ide> def assert_version_tokens tokens, version <ide> end <ide> end <ide> <add> module FSLeakLogger <add> def self.included(klass) <add> require "find" <add> @@log = File.open("fs_leak_log", "w") <add> klass.make_my_diffs_pretty! <add> end <ad...
1
Javascript
Javascript
fix gltfloader uncaught exception
47e792705d29e547660d4a5ef9fd1bff6a41e443
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> if ( value ) { <ide> <del> fns.push( value ); <del> <ide> if ( value instanceof Promise ) { <ide> <del> value.then( function ( key, value ) { <add> value = value.then( function ( key, value ) { <i...
1
Mixed
Javascript
remove coercion to string in writing methods
950a4411facdcaf6450cf3943f034177d0e21e3d
<ide><path>doc/api/deprecations.md <ide> resources and not the actual references. <ide> <ide> <!-- YAML <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/42796 <add> description: End-of-Life. <ide> - version: v18.0.0 <ide> pr-url: https://github.com/nodejs/node/pu...
7
Ruby
Ruby
convert unpack target to pathname
8ba503ebb612b6e5c276d8f3adf9ec5ce02db161
<ide><path>Library/Homebrew/resource.rb <ide> def unpack(target=nil) <ide> if block_given? <ide> yield self <ide> elsif target <add> target = Pathname.new(target) unless target.is_a? Pathname <ide> target.install Dir['*'] <ide> end <ide> end
1
PHP
PHP
apply fixes from styleci
fd9cfe21a0ab2715744a5f9bdb465632fb14eb92
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php <ide> protected function getEagerModelKeys(array $models) <ide> // fail plus returns zero results, which should be what the developer expects. <ide> if (count($keys) === 0) { <ide> return [$this->related->getIncrementing() &...
1
PHP
PHP
improve help message + phpcs
05a06f7243f05a60c32e492a93235c6069147add
<ide><path>src/Command/PluginAssetsCopyCommand.php <ide> class PluginAssetsCopyCommand extends Command <ide> * <ide> * Copying plugin assets to app's webroot. For vendor namespaced plugin, <ide> * parent folder for vendor name are created if required. <del> * <add> * <ide> * @param \Cake\Co...
4
Javascript
Javascript
add visibility toggle
1f08ad1f824b1e521a3bf40c5a398aa66321e792
<ide><path>examples/jsm/csm/CSMHelper.js <del>import { Group, Mesh, LineSegments, BufferGeometry, LineBasicMaterial, Box3Helper, Box3, PlaneBufferGeometry, MeshBasicMaterial, BufferAttribute, DoubleSide } from '../../../build/three.module.js'; <add>import { <add> Group, <add> Mesh, <add> LineSegments, <add> BufferGeome...
1
Java
Java
simplify access to response body in webclient
e6b4edc757b9470db5238155a958622b1d005baa
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java <ide> import org.springframework.http.HttpStatus; <ide> import org.springframework.http.MediaType; <ide> import org.springframework.http.ResponseCookie; <add>import org.springframework.http.ResponseEntity; <ide>...
5
Javascript
Javascript
avoid $.fn.data overhead with jquery
bfce0675e267089b4b459077cf749a1625074af0
<ide><path>src/ngAnimate/animateQueue.js <ide> var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) { <ide> var animateChildren; <ide> var elementDisabled = disabledElementsLookup.get(getDomNode(element)); <ide> <del> var parentHost = element.data(NG_ANIMATE_PIN_DATA); <add> ...
1
Text
Text
add changes for 1.6.9
b969c3e3540d05a781404beebecdd4fa4ceb2d2e
<ide><path>CHANGELOG.md <add><a name="1.6.9"></a> <add># 1.6.9 fiery-basilisk (2018-02-02) <add> <add> <add>## Bug Fixes <add>- **input:** add `drop` event support for IE <add> ([5dc076](https://github.com/angular/angular.js/commit/5dc07667de00c5e85fd69c5b7b7fe4fb5fd65a77)) <add>- **ngMessages:** prevent memory leak f...
1
Text
Text
use code markup/markdown in headers
7bb1f475c567de38ae06429fec209adb9aee4699
<ide><path>doc/api/timers.md <ide> The timer functions within Node.js implement a similar API as the timers API <ide> provided by Web Browsers but use a different internal implementation that is <ide> built around the Node.js [Event Loop][]. <ide> <del>## Class: Immediate <add>## Class: `Immediate` <ide> <ide> This o...
1
PHP
PHP
apply code style
e9e63be1dcad45735e7bb7f074a0f86cfab67a07
<ide><path>tests/Integration/Routing/PreviousUrlTest.php <ide> <ide> namespace Illuminate\Tests\Integration\Routing; <ide> <add>use Orchestra\Testbench\TestCase; <add>use Illuminate\Support\Facades\Route; <ide> use Illuminate\Foundation\Http\FormRequest; <ide> use Illuminate\Session\SessionServiceProvider; <ide> use ...
1
PHP
PHP
refactor the request class
88ebf6125cb2d384b553dfd50046b727ed825649
<ide><path>system/request.php <ide> public static function uri() <ide> <ide> $uri = static::raw_uri(); <ide> <del> if (strpos($uri, $base = parse_url(Config::get('application.url'), PHP_URL_PATH)) === 0) <del> { <del> $uri = substr($uri, strlen($base)); <del> } <add> $base = parse_url(Config::get('application...
1
Python
Python
add first step of the glances client/master
12d3e8993053794ad8980b9633c50820dce11564
<ide><path>glances/glances.py <ide> import time <ide> from datetime import datetime, timedelta <ide> import gettext <add>import SocketServer <add>import socket <add>import json <add>import zlib <add>import collections <ide> <ide> # International <ide> #============== <ide> class glancesStats: <ide> This class stor...
1
Python
Python
fix small bug in assert_almost_equal
2537604cbcb61027706c358d6dd6afcd99a30686
<ide><path>numpy/testing/utils.py <ide> def assert_almost_equal(actual,desired,decimal=7,err_msg='',verbose=True): <ide> desiredr = desired <ide> desiredi = 0 <ide> try: <del> assert_almost_equal(actualr, desiredr) <del> assert_almost_equal(actuali, desiredi) <add> ...
1
Go
Go
remove nil contexts
0c08913d523da2a935e65ade93884194c1906991
<ide><path>graph/pull_v2.go <ide> func (p *v2Puller) download(di *downloadInfo) { <ide> } <ide> di.tmpFile = tmpFile <ide> <del> blobs := p.repo.Blobs(nil) <add> blobs := p.repo.Blobs(context.Background()) <ide> <del> desc, err := blobs.Stat(nil, di.digest) <add> desc, err := blobs.Stat(context.Background(), di.dig...
2
Javascript
Javascript
use close event to wait for stdio
8d63f4037e52eda125c5a70dafa602f47c13d0ad
<ide><path>test/parallel/test-trace-events-category-used.js <ide> let procEnabledOutput = ''; <ide> <ide> procEnabled.stdout.on('data', (data) => procEnabledOutput += data); <ide> procEnabled.stderr.pipe(process.stderr); <del>procEnabled.once('exit', common.mustCall(() => { <add>procEnabled.once('close', common.mustCa...
1
Javascript
Javascript
fix typo in preprocessdata.js
f5e529176eb676caa4ac0577f83efd5e464b3ccf
<ide><path>packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js <ide> const WARNING_STRINGS = { <ide> 'A big nested update was scheduled during layout. ' + <ide> 'Nested updates require React to re-render synchronously before the browser can paint. ' + <ide> 'Consider delaying thi...
1
Ruby
Ruby
add formula tests
4abd48812bb544426442749266acb13a20ce434c
<ide><path>Library/Homebrew/test/test_formula.rb <ide> def test_formula_instantiation <ide> name = "formula_name" <ide> path = Formulary.core_path(name) <ide> spec = :stable <del> alias_path = CoreTap.instance.alias_dir/"formula_alias" <add> <add> f = klass.new(name, path, spec) <add> assert_equal ...
2
Javascript
Javascript
remove charset in tests
dbc634cf700595845abc43604e1fb6cea903b97f
<ide><path>lib/defaults.js <ide> var defaults = { <ide> return data.toString(); <ide> } <ide> if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) { <del> setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); <add> setContentTypeIfUnset(headers, 'a...
3
Text
Text
add missing metadata for fs.open
c1ed782ab497377dee1cf450254932834b38f87d
<ide><path>doc/api/fs.md <ide> object with an `encoding` property specifying the character encoding to use. <ide> <!-- YAML <ide> added: v0.0.2 <ide> changes: <add> - version: v9.9.0 <add> pr-url: https://github.com/nodejs/node/pull/18801 <add> description: The `as` and `as+` modes are supported now. <ide> - v...
1
Javascript
Javascript
add a better deprecation for `{{bind-attr}}`
196b290a5a2955f7f1058c12c70ea42154667091
<ide><path>packages/ember-template-compiler/lib/plugins/transform-bind-attr-to-attributes.js <ide> import { dasherize } from "ember-template-compiler/system/string"; <ide> @class TransformBindAttrToAttributes <ide> @private <ide> */ <del>function TransformBindAttrToAttributes() { <add>function TransformBindAttrToAt...
2
Ruby
Ruby
remove unnecessary code from delete method
7ad476be6f5b843cded4d1d84d2d22f3f4b43dfc
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def delete(*records) <ide> _options = records.extract_options! <ide> dependent = _options[:dependent] || options[:dependent] <ide> <del> if records.first == :all <del> if (loaded? || dependent == :des...
1
Javascript
Javascript
fix broken ci with a run of prettier
dcfa0dc3922fb45509573805c22bbc29a14ef4d2
<ide><path>flow/HermesInternalType.js <ide> declare type $HermesInternalType = { <ide> */ <ide> +getRuntimeProperties?: () => { <ide> 'OSS Release Version': string, <del> 'Build': string, <add> Build: string, <ide> [string]: mixed, <ide> }, <ide>
1
Javascript
Javascript
consolidate arraybufferview validation
7bddfcc61a5a7d04583a8c4fec462ca5ce45b677
<ide><path>lib/fs.js <ide> const { <ide> stringToFlags, <ide> stringToSymlinkType, <ide> toUnixTimestamp, <del> validateBuffer, <ide> validateOffsetLengthRead, <ide> validateOffsetLengthWrite, <ide> validatePath <ide> const { <ide> const { <ide> isUint32, <ide> parseMode, <add> validateBuffer, <ide> ...
5
Python
Python
make some changes for pr"
e9f620aff555c9f4e7e55b3e462092504961873a
<ide><path>research/object_detection/meta_architectures/context_rcnn_lib_tf2.py <ide> # limitations under the License. <ide> # ============================================================================== <ide> """Library functions for ContextRCNN.""" <del>from __future__ import absolute_import <del>from __future__ im...
1
Python
Python
fix error code
f4d547b73c31e7578dcc676b9276dab3dce851ad
<ide><path>spacy/util.py <ide> def get(cls, registry_name: str, func_name: str) -> Callable: <ide> # specific error messages and implement a fallback to spacy-legacy. <ide> if not hasattr(cls, registry_name): <ide> names = ", ".join(cls.get_registry_names()) or "none" <del> raise ...
1
Python
Python
remove unused parameters
709745927b119a0414a167a10e363d9a9ef1ef38
<ide><path>examples/contrib/run_transfo_xl.py <ide> def main(): <ide> ) <ide> ) <ide> <del> model.reset_length(args.tgt_len, args.ext_len, args.mem_len) <add> model.reset_memory_length(args.mem_len) <ide> if args.clamp_len > 0: <ide> model.clamp_len = args.clamp_len <ide> if args.same...
4
Text
Text
add new windows installation tutorials
2b320a230979c3222162567b9d1d3193b0806cd5
<ide><path>docs/sources/installation/windows.md <ide> is developed, you can launch only Linux containers from your Windows machine. <ide> <ide> ## Demonstration <ide> <del><iframe width="640" height="480" src="//www.youtube.com/embed/oSHN8_uiZd4?rel=0" frameborder="0" allowfullscreen></iframe> <add><iframe width="640...
1
Ruby
Ruby
remove unnecessary test code
a57b7842d0fcdcbcc567532d3a5c1f2628057a0d
<ide><path>activerecord/test/cases/named_scope_test.rb <ide> def test_scopes_with_string_name_can_be_composed <ide> assert_equal Topic.replied.approved, Topic.replied.approved_as_string <ide> end <ide> <del> def test_scopes_can_be_specified_with_deep_hash_conditions <del> assert_equal Topic.replied.approved,...
2
Ruby
Ruby
prevent shadowing outer variables
6f035067e40b4044ab241cd8086ee44897c975c3
<ide><path>activestorage/app/models/active_storage/variation.rb <ide> def initialize(transformations) <ide> # Accepts an open MiniMagick image instance, like what's returned by <tt>MiniMagick::Image.read(io)</tt>, <ide> # and performs the +transformations+ against it. The transformed image instance is then returned...
1
Javascript
Javascript
fix branding violation
37e0a1217f633138b7f53cdfe7d41fbe742aef92
<ide><path>lib/DefinePlugin.js <ide> class DefinePlugin { <ide> <ide> /** <ide> * Apply the plugin <del> * @param {Compiler} compiler Webpack compiler <add> * @param {Compiler} compiler webpack compiler <ide> * @returns {void} <ide> */ <ide> apply(compiler) {
1
Javascript
Javascript
kill workers when master dies
94d337eb0fbf78bda2af6938b4a65d3c94808caf
<ide><path>lib/cluster.js <ide> cluster.setupMaster = function(options) { <ide> silent: options.silent || false <ide> }; <ide> <del> // Kill workers when a uncaught exception is received <del> process.on('uncaughtException', function(err) { <del> // Did the user install a listener? If so, it overrides this ...
2
Ruby
Ruby
remove conflict marker
1a18198af042031979549b8a5679950f9354caed
<ide><path>activesupport/lib/active_support/core_ext/enumerable.rb <ide> def each_with_object(memo) <ide> end <ide> memo <ide> end unless [].respond_to?(:each_with_object) <del>>>>>>>> parent of 4d20de8... Added Enumerable#pluck to wrap the common pattern of collect(&:method) *DHH* <ide> <ide> # Convert an...
1
PHP
PHP
remove helper from eloquent factory
11143c5fd7898589c0be07e08ef2e53b9fde1c3a
<ide><path>src/Illuminate/Database/Eloquent/Factory.php <ide> public function __construct(Faker $faker) <ide> * Create a new factory container. <ide> * <ide> * @param \Faker\Generator $faker <del> * @param string|null $pathToFactories <add> * @param string $pathToFactories <ide> * @ret...
1
Ruby
Ruby
remove unnecessary default argument
2356131e5fc79983a53142a8cb71710fc97c01e8
<ide><path>Library/Homebrew/version.rb <ide> def detected_from_url? <ide> end <ide> end <ide> <del> def self.detect(url, specs={}) <add> def self.detect(url, specs) <ide> if specs.has_key?(:tag) <ide> FromURL.new(specs[:tag][/((?:\d+\.)*\d+)/, 1]) <ide> else
1
Ruby
Ruby
add missing documentation for rails.error
e4c237e0143291a2a2d5a32b84bdb955543a3b78
<ide><path>railties/lib/rails.rb <ide> def env=(environment) <ide> @_env = ActiveSupport::EnvironmentInquirer.new(environment) <ide> end <ide> <add> # Returns the ActiveSupport::ErrorReporter of the current Rails project, <add> # otherwise it returns +nil+ if there is no project. <add> # <add> # ...
1
Python
Python
add side inputs
ff2bf0b02d578effdb6ed336616612603f453375
<ide><path>research/object_detection/model_lib_v2.py <ide> def _compute_losses_and_predictions_dicts( <ide> <ide> prediction_dict = model.predict( <ide> preprocessed_images, <del> features[fields.InputDataFields.true_image_shape]) <add> features[fields.InputDataFields.true_image_shape], <add> mo...
1
Ruby
Ruby
reduce method calls
a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5
<ide><path>activerecord/lib/active_record/associations/has_many_association.rb <ide> def construct_create_scope <ide> end <ide> <ide> def we_can_set_the_inverse_on_this?(record) <del> !@reflection.inverse_of.nil? <add> @reflection.inverse_of <ide> end <ide> end <ide> end
1
Python
Python
update chinese tokenizer for spacy-pkuseg fork
5d19dfc9d32c7fd039118d9fe0f8cf713e7af471
<ide><path>spacy/lang/zh/__init__.py <ide> <ide> <ide> # fmt: off <del>_PKUSEG_INSTALL_MSG = "install pkuseg and pickle5 with `pip install pkuseg==0.0.25 pickle5`" <del>_PKUSEG_PICKLE_WARNING = "Failed to force pkuseg model to use pickle protocol 4. If you're saving this model with python 3.8, it may not work with py...
2
Text
Text
add hightlight to tutorials/using redux data
4a86a059f9abec25ee97b720bfdfada457e820b2
<ide><path>docs/tutorials/essentials/part-4-using-data.md <ide> import { postAdded } from './postsSlice' <ide> export const AddPostForm = () => { <ide> const [title, setTitle] = useState('') <ide> const [content, setContent] = useState('') <add> // highlight-next-line <ide> const [userId, setUserId] = useState('...
1
Python
Python
add sample_fn to input_reader
c6970b7f2d0a04258d358c11b9e326dab2d18f4e
<ide><path>official/core/input_reader.py <ide> def __init__(self, <ide> params: cfg.DataConfig, <ide> dataset_fn=tf.data.TFRecordDataset, <ide> decoder_fn: Optional[Callable[..., Any]] = None, <add> sample_fn: Optional[Callable[..., Any]] = None, <ide> ...
1
Java
Java
add test case for httprequest with relative uris
d3b5ba7a361866ea96fcc64d3f76be9b5be3b8e4
<ide><path>spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ...
1
Python
Python
add test for insert
0d127c8bcc0612deaf0624c7d5a7deeb0d69ada6
<ide><path>numpy/lib/tests/test_function_base.py <ide> def check_type(self): <ide> t3 = linspace(0,1,2).dtype <ide> assert_equal(t1, t2) <ide> assert_equal(t2, t3) <add> <add>class test_insert(NumpyTestCase): <add> def check_basic(self): <add> a = [1,2,3] <add> assert_eq...
1
Text
Text
add sca for @thomasbird
f6e43789421bd00376b9d38e8f1b53499a2dd777
<ide><path>.github/contributors/thomasbird.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project...
1
Javascript
Javascript
add some abort() ajax tests. verifies that works
84dd82eb1a295e8671a98ebf5a854dbac63caf78
<ide><path>test/unit/ajax.js <ide> test("jQuery.ajax() - error callbacks", function() { <ide> }); <ide> }); <ide> <add>test("jQuery.ajax() - abort", function() { <add> expect( 6 ); <add> stop(); <add> <add> jQuery('#foo').ajaxStart(function(){ <add> ok( true, "ajaxStart" ); <add> }).ajaxStop(function(){ <add> ok( t...
1
Python
Python
initialize a new model from a config object
eaabaaf750613e00fdece7245ef04ca3d1a775a9
<ide><path>examples/run_language_modeling.py <ide> def main(): <ide> ) <ide> else: <ide> logger.info("Training new model from scratch") <del> model = AutoModelWithLMHead(config=config) <add> model = AutoModelWithLMHead.from_config(config) <ide> <ide> model.to(args.device) <ide>
1
Javascript
Javascript
add note about lacking browser support
3ba98186b8a50f4ee2c778cef5edfa95aa8c115c
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> * @description <ide> * Input with date validation and transformation. In browsers that do not yet support <ide> * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601 <del> * date f...
1
PHP
PHP
return no-entityinterface $row earlier
dc10f871d676b7feb675957bc45e1716a18b268e
<ide><path>src/ORM/Behavior/TranslateBehavior.php <ide> protected function _rowMapper($results, $locale) <ide> public function groupTranslations($results) <ide> { <ide> return $results->map(function ($row) { <del> if ($row instanceof EntityInterface) { <del> $translations = (ar...
1
Python
Python
fix bad syntax in generated __config__.py files
aa2c1141f3782ac063f78380bead0be3a066c5cd
<ide><path>numpy/distutils/misc_util.py <ide> def generate_config_py(target): <ide> f.write('__all__ = ["get_info","show"]\n\n') <ide> for k, i in system_info.saved_results.items(): <ide> f.write('%s=%r\n' % (k, i)) <del> f.write('\ndef get_info(name): g=globals(); return g.get(name,g.get(name+"_info...
1
Text
Text
use backticks around back slash character
33356e403a220c61ef32a31dad0fa587cf3b0c1e
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/reuse-patterns-using-capture-groups.md <ide> Some patterns you search for will occur multiple times in a string. It is wastef <ide> <ide> You can search for repeat substrings using <dfn>capture groups</dfn>. Paren...
1