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
add missing autoload
37d3266f35e1947f43046fb8296c560145f2b53e
<ide><path>railties/lib/rails/engine.rb <ide> module Rails <ide> # <ide> class Engine < Railtie <ide> autoload :Configuration, "rails/engine/configuration" <add> autoload :Railties, "rails/engine/railties" <ide> <ide> class << self <ide> attr_accessor :called_from, :isolated
1
Python
Python
close _session.session in clear_session
2fde2bec570a12bd2c8e5a8a7bf301b21e58dc05
<ide><path>keras/backend.py <ide> def clear_session(): <ide> _GRAPH.graph = None <ide> tf.compat.v1.reset_default_graph() <ide> reset_uids() <del> _SESSION.session = None <add> if _SESSION.session is not None: <add> _SESSION.session.close() <add> _SESSION.session = None <ide> graph = get_graph() <ide> ...
1
Python
Python
fix python 3 support
c8cbdabfab3a150904a2214930e82112d0231ff2
<ide><path>django/db/migrations/autodetector.py <ide> def _boolean_input(self, question): <ide> return result[0].lower() == "y" <ide> <ide> def _choice_input(self, question, choices): <del> print question <add> print(question) <ide> for i, choice in enumerate(choices): <del> ...
3
Javascript
Javascript
add flow types in geteventmodifierstate
663835a43a5a92ff63c3e3b43e4c9ff40dde173b
<ide><path>packages/react-dom/src/events/getEventModifierState.js <ide> * <ide> * This source code is licensed under the MIT license found in the <ide> * LICENSE file in the root directory of this source tree. <add> * <add> * @flow <ide> */ <ide> <ide> /** <ide> * Translation from modifier key to the associated p...
1
Python
Python
use comprehensions instead of map/lambda
7d28fe802037bf377f94868a7be0991dd352f4d5
<ide><path>glances/exports/glances_csv.py <ide> def update(self, stats): <ide> plugins = stats.getAllPlugins() <ide> <ide> # Loop over available plugin <del> i = 0 <del> for plugin in plugins: <add> for i, plugin in enumerate(plugins): <ide> if plugin in self.plugins_to...
2
Python
Python
drop some trailing spaces in `numpy.ma.core`
b29a997b8a4a999577d9fd575bda20a1d6ecd3be
<ide><path>numpy/ma/core.py <ide> def __getitem__(self, indx): <ide> if self._fill_value is not None: <ide> dout._fill_value = self._fill_value[indx] <ide> <del> # If we're indexing a multidimensional field in a <add> # If we're indexing a mult...
1
Python
Python
define inline to something we can use internally
f87fb9c9e98681907bd396a9835bb517cd8fe978
<ide><path>numpy/core/setup.py <ide> def generate_config_h(ext, build_dir): <ide> if sys.platform=='win32' or os.name=='nt': <ide> win32_checks(moredefs) <ide> <add> # Inline check <add> inline = config_cmd.check_inline() <add> <ide> # Generate the config.h...
1
PHP
PHP
remove unused local variable
33c2a3ee57d422d2be1fbfec12b25d5c3b3e3836
<ide><path>src/Illuminate/Foundation/Application.php <ide> protected function markAsRegistered($provider) <ide> */ <ide> public function loadDeferredProviders() <ide> { <del> $me = $this; <del> <ide> // We will simply spin through each of the deferred providers and register each <ide> // one and boot them if t...
1
Text
Text
remove non-existing link
43cc6aea93ba53cab48d9668771f198a3f468c91
<ide><path>website/docs/api/cli.md <ide> $ python -m spacy train [config_path] [--output] [--code] [--verbose] [--gpu-id] <ide> ## pretrain {#pretrain new="2.1" tag="command,experimental"} <ide> <ide> Pretrain the "token to vector" ([`Tok2vec`](/api/tok2vec)) layer of pipeline <del>components on [raw text](/api/data-f...
1
Go
Go
add check for 404 on get repository data
c8d2ec93caf7c64f3e510e4e75f49614880ed9b9
<ide><path>registry/session.go <ide> func (r *Session) GetRepositoryData(remote string) (*RepositoryData, error) { <ide> } <ide> // TODO: Right now we're ignoring checksums in the response body. <ide> // In the future, we need to use them to check image validity. <del> if res.StatusCode != 200 { <add> if res.StatusC...
1
Python
Python
fix brightbox tests
2195434b94df4c221003a7ca98df4ffbf679aecb
<ide><path>libcloud/test/loadbalancer/test_brightbox.py <ide> class BrightboxLBMockHttp(MockHttpTestCase): <ide> <ide> def _token(self, method, url, body, headers): <ide> if method == 'POST': <del> return self.response(httplib.OK, self.fixtures.load('token.json')) <add> return (httpli...
1
Ruby
Ruby
add livecheck version and duplicate pr check
ea2f4087febd3c9d67cb6013efa5f034a28ee3a2
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> # frozen_string_literal: true <ide> <ide> require "cli/parser" <add>require "utils/popen" <ide> <ide> module Homebrew <ide> module_function <ide> def bump_args <ide> Homebrew::CLI::Parser.new do <ide> usage_banner <<~EOS <ide> `bump` <add> <ide> ...
4
Text
Text
update contact info
d7bf2e0040b91443f14d2d23b73d6856683f3266
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> * [fhinkel](https://github.com/fhinkel) - <ide> **Franziska Hinkelmann** &lt;franziska.hinkelmann@gmail.com&gt; (she/her) <ide> * [gabrielschulhof](https://github.com/gabrielschulhof) - <del>**Gabriel Schulhof** &lt;gabrie...
1
PHP
PHP
update docblock of aclcomponent
223604fb0dacc3decb88cc28244712ed0acab7a0
<ide><path>lib/Cake/Controller/Component/AclComponent.php <ide> public function adapter($adapter = null) { <ide> * Pass-thru function for ACL check instance. Check methods <ide> * are used to check whether or not an ARO can access an ACO <ide> * <del> * @param string $aro ARO The requesting object identifier. <del>...
1
Text
Text
add badges to reamde.md
55c7c502e032a65afc92ac780b69c1b3fb738738
<ide><path>README.md <ide> [![webpack](http://webpack.github.io/assets/logo.png)](http://webpack.github.io) <ide> <del>[![NPM version][npm-image]][npm-url] [![Gitter chat][gitter-image]][gitter-url] [![Gittip donate button][gittip-image]][gittip-url] <add>[![NPM version][npm-image]][npm-url] [![Gitter chat][gitter-ima...
1
Text
Text
fix prettier linting
a231315bf49f13ed51094c0ba5b138ba2339f404
<ide><path>docs/advanced-features/amp-support/introduction.md <ide> description: With minimal config, and without leaving React, you can start addin <ide> </ul> <ide> </details> <ide> <del> <ide> With Next.js you can turn any React page into an AMP page, with minimal config, and without leaving React. <ide> <ide> Y...
1
Javascript
Javascript
remove extraneous buffersize setting
854171dc6f238be528e21e905c4764d9522b7033
<ide><path>lib/_stream_readable.js <ide> util.inherits(Readable, Stream); <ide> function ReadableState(options, stream) { <ide> options = options || {}; <ide> <del> // cast to an int <del> this.bufferSize = ~~this.bufferSize; <del> <ide> // the argument passed to this._read(n,cb) <ide> this.bufferSize = option...
1
Javascript
Javascript
workaround an xml parsing bug in firefox
af1cd6f218f699abc34b1582a910c0df00312aee
<ide><path>test/unit/core.js <ide> QUnit.testUnlessIE( "jQuery.parseXML - error reporting", function( assert ) { <ide> column = columnMatch && columnMatch[ 1 ]; <ide> <ide> assert.strictEqual( line, "1", "reports error line" ); <del> assert.strictEqual( column, "11", "reports error column" ); <add> <add> // Support:...
1
PHP
PHP
return the api resource.
9b41936163a4e7c6e647491ce4d718157cea9a64
<ide><path>src/Illuminate/Routing/Router.php <ide> public function resource($name, $controller, array $options = []) <ide> * @param string $name <ide> * @param string $controller <ide> * @param array $options <del> * @return void <add> * @return \Illuminate\Routing\PendingResourceRegistrati...
1
Ruby
Ruby
drop unneeded drb require
fb4bb93d439f32421c8836261dce0c7de1addf82
<ide><path>actionpack/lib/action_controller/base.rb <ide> require 'action_view' <del>require 'drb' <ide> require 'set' <ide> <ide> module ActionController #:nodoc:
1
Javascript
Javascript
apply suggestions from code review
9a0d9a73ca82faea20ee18950c0b07cd4b71e859
<ide><path>.eslintrc.js <ide> module.exports = { <ide> <ide> rules: { <ide> '@typescript-eslint/ban-ts-comment': 'warn', <del> '@typescript-eslint/ban-types': 'warn', <del> '@typescript-eslint/no-empty-function': 'warn', <del> '@typescript-eslint/no-this-alias': 'warn', <add> ...
1
Text
Text
add changelogs for http
cfa06fa59af4ae736e1ba087a112b4cc8504c785
<ide><path>doc/api/http.md <ide> not be emitted. <ide> ### Event: 'clientError' <ide> <!-- YAML <ide> added: v0.1.94 <add>changes: <add> - version: v6.0.0 <add> pr-url: https://github.com/nodejs/node/pull/4557 <add> description: The default action of calling `.destroy()` on the `socket` <add> wil...
1
Javascript
Javascript
use custom element on pane-element
ae937eca35511d2a8f00609345da14d61e99e4aa
<ide><path>src/pane-element.js <ide> const path = require('path'); <ide> const { CompositeDisposable } = require('event-kit'); <ide> <ide> class PaneElement extends HTMLElement { <del> createdCallback() { <add> constructor() { <add> super(); <ide> this.attached = false; <ide> this.subscriptions = new Comp...
2
Go
Go
fix logconfig.config in inspect
3f61002b05794eb5e4262a39e29f8a45c7260ba3
<ide><path>daemon/inspect.go <ide> func (daemon *Daemon) getInspectData(container *Container) (*types.ContainerJSON <ide> hostConfig.LogConfig.Type = daemon.defaultLogConfig.Type <ide> } <ide> <del> if hostConfig.LogConfig.Config == nil { <add> if len(hostConfig.LogConfig.Config) == 0 { <ide> hostConfig.LogConfig...
2
PHP
PHP
add defaulting and *orfail() to session
e81bb1bb2c0f3ba85f7aa6c8401a674f6f5314e7
<ide><path>src/Http/Session.php <ide> public function check(?string $name = null): bool <ide> * Returns given session variable, or all of them, if no parameters given. <ide> * <ide> * @param string|null $name The name of the session variable (or a path as sent to Hash.extract) <add> * @param mixed $d...
2
Python
Python
fix loading clip vision model
d7e156bd1ae2467e9ea1dbc44f31da0ed2296aee
<ide><path>examples/research_projects/jax-projects/hybrid_clip/configuration_hybrid_clip.py <ide> def __init__(self, projection_dim=512, **kwargs): <ide> <ide> if vision_model_type == "clip": <ide> self.vision_config = AutoConfig.for_model(vision_model_type, **vision_config).vision_config <add> ...
1
Text
Text
fix tagtree.tv link
00037b3ec243223655a58f57b58558877c296754
<ide><path>docs/docs/videos.md <ide> next: complementary-tools.html <ide> <ide> ### Thinking in react - tagtree.tv <ide> <del>A [tagtree.tv](htp://tagtree.tv/) video conveying the principles of [Thinking in React](/react/docs/thinking-in-react.html) while building a simple app <add>A [tagtree.tv](http://tagtree.tv/) ...
1
Python
Python
fix french test (see )
17849dee4bfb65a792e81d6d0bede05bb91d6102
<ide><path>spacy/tests/lang/fr/test_lemmatization.py <ide> def test_lemmatizer_noun_verb_2(FR): <ide> <ide> @pytest.mark.models('fr') <ide> @pytest.mark.xfail(reason="Costaricienne TAG is PROPN instead of NOUN and spacy don't lemmatize PROPN") <del>def test_lemmatizer_noun(model): <add>def test_lemmatizer_noun(FR): <i...
1
Go
Go
move apparmor into security sub dir
d26ea78e42ebf18219b88e01c6252f30aa764aa2
<ide><path>pkg/libcontainer/nsinit/init.go <ide> import ( <ide> "github.com/dotcloud/docker/pkg/libcontainer" <ide> "github.com/dotcloud/docker/pkg/libcontainer/capabilities" <ide> "github.com/dotcloud/docker/pkg/libcontainer/network" <add> "github.com/dotcloud/docker/pkg/libcontainer/security/apparmor" <ide> "gith...
1
Text
Text
fix minor grammar mistake
ad7696a78775df7cc671113b29fb34ca66b3ace5
<ide><path>docs/articles/dockerfile_best-practices.md <ide> these checksums. During the cache lookup, the checksum is compared against the <ide> checksum in the existing images. If anything has changed in the file(s), such <ide> as the contents and metadata, then the cache is invalidated. <ide> <del>* Aside from the `...
1
Python
Python
use actual classes instead of dictionary
30c3d023b37f351bcba7fc412fff191b072f9c6e
<ide><path>tests/providers/google/cloud/operators/test_datacatalog.py <ide> from google.api_core.exceptions import AlreadyExists <ide> from google.api_core.retry import Retry <ide> from google.cloud.datacatalog_v1beta1.types import Entry, EntryGroup, Tag, TagTemplate, TagTemplateField <add>from google.protobuf.field_ma...
2
PHP
PHP
use fqn in docblocks
360c04e72611509e60ae91092ee5fdcfa80fc12d
<ide><path>src/ORM/AssociationCollection.php <ide> class AssociationCollection { <ide> * This makes using plugins simpler as the Plugin.Class syntax is frequently used. <ide> * <ide> * @param string $alias The association alias <del> * @param Association $association The association to add. <del> * @return Associati...
1
Text
Text
add a chapter to the chinese laravel doc
3cc6db752d34974dc238331b5f4d67881f04079f
<ide><path>guide/chinese/laravel/index.md <ide> localeTitle: Laravel <ide> <ide> Laravel是一个免费的开源PHP Web框架,可在[GitHub上](https://github.com/laravel/laravel)获得,并根据MIT许可条款获得许可。它是由泰勒·奥特威尔(Taylor Otwell)创建的,他设计的目标是按照模型 - 视图 - 控制器(MVC)架构模式开发Web应用程序,现在它是GitHub上最受欢迎的PHP框架。 Laravel中的一些主要功能是访问关系数据库的不同方式,有助于应用程序部署和维护的实用程序,以及最后但并非最...
1
Ruby
Ruby
get the name from the reflection
07d522b1bee0cec428c332ac8b7099a737f7ea35
<ide><path>activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb <ide> def valid_options <ide> <ide> def define_callbacks(model, reflection) <ide> super <del> name = self.name <add> name = reflection.name <ide> model.send(:include, Module.new { <ide> class_eva...
1
Go
Go
remove unnecessary archive and reader type
aa2cc18745cbe0231c33782f0fa764f657e3fb88
<ide><path>builder/remote.go <ide> func DetectContextFromRemoteURL(r io.ReadCloser, remoteURL string, createProgres <ide> dockerfileName = DefaultDockerfileName <ide> <ide> // TODO: return a context without tarsum <del> return archive.Generate(dockerfileName, string(dockerfile)) <add> r, err := archive.G...
23
Javascript
Javascript
stop reactinputselection breaking in ie8
ed7fa0ed225522009e5560dac08fcff356e2098f
<ide><path>src/core/ReactInputSelection.js <ide> <ide> "use strict"; <ide> <add>var getTextContentAccessor = require('getTextContentAccessor'); <add> <ide> // It is not safe to read the document.activeElement property in IE if there's <ide> // nothing focused. <ide> function getActiveElement() { <ide> var ReactInputS...
1
Javascript
Javascript
ignore asyncid 0 in exception handler
51783320a4d72eacc8956e371f443b901806533f
<ide><path>lib/internal/process/execution.js <ide> const { <ide> clearAsyncIdStack, <ide> hasAsyncIdStack, <ide> afterHooksExist, <del> emitAfter <add> emitAfter, <add> popAsyncContext, <ide> } = require('internal/async_hooks'); <ide> <ide> // shouldAbortOnUncaughtToggle is a typed array for faster <ide> func...
3
Python
Python
start server in a modified environment
485f2203e05593eb3c849081f65605cab9c26163
<ide><path>unitest-restful.py <ide> def test_000_start_server(self): <ide> <ide> global pid <ide> <del> cmdline = "/usr/bin/python -m glances -w -p %s" % SERVER_PORT <add> cmdline = "/usr/bin/env python -m glances -w -p %s" % SERVER_PORT <ide> print("Run the Glances Web Server on port %s...
2
Javascript
Javascript
use regexp instead of str.replace().join()
02a44e0bfd281a42ddec013185fedc48e8d6d2ed
<ide><path>lib/util.js <ide> function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { <ide> } <ide> if (str.indexOf('\n') > -1) { <ide> if (array) { <del> str = str.split('\n').map(function(line) { <del> return ' ' + line; <del> }).join('\n').substr(...
1
Python
Python
remove channel from delivery_info
232bf5b7b788dcd4e847e672cf1a55d7be31a5f5
<ide><path>celery/worker/job.py <ide> def __init__(self, body, on_ack=noop, <ide> self.expires = None <ide> <ide> self.delivery_info = delivery_info or {} <add> # amqplib transport adds the channel here for some reason, so need <add> # to remove it. <add> self.delivery_info.pop...
1
Ruby
Ruby
pull conditional out of begin block
41cc28ca42e1bcaa9716d6c7930ec9c492ffa356
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install <ide> <ide> @@attempted << f <ide> <del> begin <del> if pour_bottle? :warn => true <add> if pour_bottle?(:warn => true) <add> begin <ide> pour <add> rescue => e <add> raise if ARGV.homebrew_developer? <add> ...
1
Javascript
Javascript
fix .repeatwrapping()
2f77862098bad45d095e99d2863dddd1ec94d559
<ide><path>examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js <ide> fn threejs_mod( x : f32, y : f32 ) -> f32 { <ide> } <ide> ` ), <ide> repeatWrapping: new CodeNode( ` <del>fn threejs_repeatWrapping( uv : vec2<f32>, dimension : vec2<i32> ) -> vec2<i32> { <add>fn threejs_repeatWrapping( uv : vec2<f32>, dimension...
1
Python
Python
update doc format
e7f34ccd4f7d256f959d56f278a0ffe97fbc9ad7
<ide><path>examples/pytorch/multiple-choice/run_swag.py <ide> class DataCollatorForMultipleChoice: <ide> Data collator that will dynamically pad the inputs for multiple choice received. <ide> <ide> Args: <del> tokenizer (:class:`~transformers.PreTrainedTokenizer` or :class:`~transformers.PreTrainedToken...
3
PHP
PHP
add missing comma
fb5489967b9409b3bd0c38694117bffd2e8453cc
<ide><path>src/View/AjaxView.php <ide> <ide> /** <ide> * A view class that is used for AJAX responses. <del> * Currently only switches the default layout and sets the response type - which just maps to <add> * Currently, only switches the default layout and sets the response type - which just maps to <ide> * text/ht...
1
Javascript
Javascript
expand localized tokens in the parser. fixes #665
afec852c5284e15c33f2d7576638362e85e6a756
<ide><path>moment.js <ide> <ide> // format date using native date object <ide> function formatMoment(m, format) { <add> <add> format = expandFormat(format, m.lang()); <add> <add> if (!formatFunctions[format]) { <add> formatFunctions[format] = makeFormatFunction(format); <add> } ...
2
Ruby
Ruby
fix copy & paste test-case naming. [ci skip]
37d4bfbfd9c49cdddcafdc135165b2d6932b074a
<ide><path>activerecord/test/cases/enum_test.rb <ide> require 'cases/helper' <ide> require 'models/book' <ide> <del>class StoreTest < ActiveRecord::TestCase <add>class EnumTest < ActiveRecord::TestCase <ide> fixtures :books <ide> <ide> setup do
1
Javascript
Javascript
remove legacy packages structure
8a7318e9c0f3e58f1e9cc7a6ce591d6c83fcb351
<ide><path>bin/run-tests.js <ide> var execa = require('execa'); <ide> var RSVP = require('rsvp'); <ide> var execFile = require('child_process').execFile; <ide> var chalk = require('chalk'); <del>var FEATURES = require('../broccoli/features'); <del>var getPackages = require('../lib/packages'); <ide> var runInSequence = ...
2
Text
Text
improve changelog entry
e918516d2fdfa24e5fc04ef14e371f08f4a8315f
<ide><path>actionpack/CHANGELOG.md <ide> * Added verification of route constraints given as a Proc or an object responding <del> to `:matches?`. Previously, when given an non-complying object, it would just <del> silently fail to enforce the constraint. It will now raise an ArgumentError <add> to `:matches...
1
Javascript
Javascript
fix lint error
8d86864f66fea8409b2511591a9112924699dc84
<ide><path>hot/log.js <ide> var logLevel = "info"; <ide> <del>function dummy() { } <add>function dummy() {} <ide> <ide> module.exports = function(level, msg) { <ide> if(logLevel === "info" && level === "info")
1
Javascript
Javascript
use filter for create-next-app template
2ff0913864790a456a38445b9ccfe4af1bbfd7c1
<ide><path>packages/create-next-app/templates/default/pages/index.js <ide> const Home = () => ( <ide> </a> <ide> <ide> <a <del> href="https://zeit.co/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" <add> href="https://zeit.co/new?filter=next.js...
1
Text
Text
dont -> don't
87e6a786fe83b738eb42e16374e24f78ddb1a8af
<ide><path>CHANGELOG-8.x.md <ide> - Fixed problems with dots in validator ([#34355](https://github.com/laravel/framework/pull/34355)) <ide> - Maintenance mode: Fix empty Retry-After header ([#34412](https://github.com/laravel/framework/pull/34412)) <ide> - Fixed bug with error handling in closure scheduled tasks ([#344...
1
Text
Text
consolidate misc comments
30c61b808bca9938b7edb14a81e6c80f9602f2d0
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator.english.md <ide> tests: <ide> <div id='js-seed'> <ide> <ide> ```js <del>var myStr; // Only change this line <add>var myStr; // Change this line <ide> <ide> ``` <ide> <ide><p...
3
Javascript
Javascript
improve `nativeimagesource` return type
8924639613bc83703327db276052c5017df7295e
<ide><path>Libraries/Image/nativeImageSource.js <ide> <ide> 'use strict'; <ide> <del>const Platform = require('../Utilities/Platform'); <add>import Platform from '../Utilities/Platform'; <ide> <del>// TODO: Change `nativeImageSource` to return this type. <del>export type NativeImageSource = {| <del> +deprecated: tr...
1
Python
Python
delete an unused function
6a3f774943ef743ad4e246a7010cf818ff2ee647
<ide><path>glances/glances.py <ide> def _init_host(self): <ide> self.host['os_version'] = " ".join(os_version[::2]) <ide> else: <ide> self.host['os_version'] = "" <del> <del> def __get_process_stats_NEW__(self, proc): <del> """ <del> Get process (proc) statistics <del> ...
1
PHP
PHP
fix issue with array based values and interval
c359e4b6890a3cfa979b413f4e1b63c80ccd96cc
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testInputTime() { <ide> * @return void <ide> */ <ide> public function testTimeSelectedWithInterval() { <add> $result = $this->Form->input('Model.start_time', array( <add> 'type' => 'time', <add> 'interval' => 15, <add> 'selecte...
2
PHP
PHP
remove leftover variable
b7b632c2538209a4c4ba8f7407f678ade9256dd5
<ide><path>src/Illuminate/Database/DatabaseManager.php <ide> protected function prepare(Connection $connection) <ide> $connection->setEventDispatcher($this->app['events']); <ide> } <ide> <del> $app = $this->app; <del> <del> <ide> // Here we'll set a reconnector callback. This reconnector can be any callable <i...
1
Go
Go
remove import os/user
b07314e2e066a1308040e1eb45a96a0e1056f28a
<ide><path>utils/utils.go <ide> import ( <ide> "net/http" <ide> "os" <ide> "os/exec" <del> "os/user" <ide> "path/filepath" <ide> "runtime" <ide> "strconv" <ide> func StripComments(input []byte, commentMarker []byte) []byte { <ide> var output []byte <ide> for _, currentLine := range lines { <ide> var commentIn...
1
Java
Java
keep scrollview content visible after edits
528a3c776a26c946a6582489c5e1ad234220dc3c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java <ide> import android.util.Log; <ide> import android.view.MotionEvent; <ide> import android.view.View; <add>import android.view.ViewGroup; <ide> import android.widget.OverScroller; <ide> import android.widget.ScrollView; <ide> <i...
1
Python
Python
fix gpt-j onnx conversion
0b1e0fcf7aa9bb1fec62d04ddba1112d0fe0b184
<ide><path>src/transformers/models/auto/tokenization_auto.py <ide> ("bert", ("BertTokenizer", "BertTokenizerFast" if is_tokenizers_available() else None)), <ide> ("openai-gpt", ("OpenAIGPTTokenizer", "OpenAIGPTTokenizerFast" if is_tokenizers_available() else None)), <ide> ("gpt2", ("...
3
Text
Text
add regex to chai tests for double quotes
c974fd39dda56472f17de37615ff25024d3dad78
<ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-and-testing-with-chai/run-functional-tests-on-an-api-response-using-chai-http-iii---put-method.english.md <ide> tests: <ide> - text: You should test for 'res.status' to be 200. <ide> testString: getUserInput => $.get(getUserInput('url...
5
PHP
PHP
fix a bunch of failing tests
9f1bc1e0a38da7203dd2e9c63ccc03301cebb47d
<ide><path>lib/Cake/Routing/Route/Route.php <ide> public function match($url, $context = array()) { <ide> } <ide> <ide> // Defaults with different values are a fail. <del> if (array_intersect_key($url, $defaults) !== $defaults) { <add> if (array_intersect_key($url, $defaults) != $defaults) { <ide> return fals...
4
Python
Python
remove uncessary django settings
9a2a885d2def491768899458b495b00906fea6b5
<ide><path>testproj/settings.py <ide> DATABASE_HOST = '' <ide> DATABASE_PORT = '' <ide> <del># Local time zone for this installation. Choices can be found here: <del># http://en.wikipedia.org/wiki/List_of_tz_zones_by_name <del># although not all choices may be available on all operating systems. <del># If...
1
PHP
PHP
fix typo in api docs
18aa3717f7e3ed38a6e3895f929b48e95b115b66
<ide><path>src/View/Helper/FormHelper.php <ide> public function submit($caption = null, array $options = []) <ide> * A simple array will create normal options: <ide> * <ide> * {{{ <del> * $options = array(1 => 'one', 2 => 'two); <add> * $options = array(1 => 'one', 2 => 'two'); <ide> * $this...
1
Python
Python
fix bug writing predictions in run_squad_pytorch
38f740a1d579b6d21226fae4f758e315cbfa1243
<ide><path>run_squad_pytorch.py <ide> def main(): <ide> #end_logits = [x.item() for x in end_logits] <ide> end_logits = [x.view(-1).detach().cpu().numpy() for x in end_logits] <ide> for idx, i in enumerate(unique_id): <del> s = start_logits[idx] <del> e ...
1
Python
Python
remove cytoolz usage in cli
0a6072621570464522cbfa6d939dffccc0fa6503
<ide><path>spacy/cli/converters/iob2json.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <del>import cytoolz <del> <ide> from ...gold import iob_to_biluo <add>from ...util import minibatch <ide> <ide> <ide> def iob2json(input_data, n_sents=10, *args, **kwargs): <ide> """ <ide> Con...
1
Ruby
Ruby
apply suggestions from code review
52321b4fcdf4bea64ca5c57e0171a5d36f37085f
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_formula_name <ide> def audit_license <ide> if formula.license.present? <ide> non_standard_licenses = [] <del> formula.license.each do |lic| <del> next if @spdx_data["licenses"].any? { |standard_lic| standard_lic["licenseId"] ...
3
Ruby
Ruby
add collectionproxy#reload documentation
158a71b2cbd6be9ef9c88282b48a3e39e47908ed
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> def clear <ide> self <ide> end <ide> <add> # Reloads the collection from the database. Returns +self+. <add> # Equivalent to +collection(true)+. <add> # <add> # class Person < ActiveRecord::Base <add> ...
1
Text
Text
explain differences between variant processors
22e5f95c83eb0ae7146d8dca8c00410b06ae8804
<ide><path>guides/source/active_storage_overview.md <ide> The default processor for Active Storage is MiniMagick, but you can also use <ide> config.active_storage.variant_processor = :vips <ide> ``` <ide> <add>The two processors are not fully compatible, so when migrating an existing application <add>using MiniMagick...
1
Javascript
Javascript
rewrite imports in rntester to use standard paths
26cce3d7a889e0622636c4e4b6bd42e0abecb275
<ide><path>RNTester/NativeModuleExample/NativeScreenshotManager.js <ide> <ide> 'use strict'; <ide> <del>import type {TurboModule} from 'RCTExport'; <del>import * as TurboModuleRegistry from 'TurboModuleRegistry'; <add>import type {TurboModule} from '../../Libraries/TurboModule/RCTExport'; <add>import * as TurboModule...
103
Python
Python
fix dropout error in bidirectional layer
0be8040e7988996232da210d04002f170a5d3f98
<ide><path>keras/layers/wrappers.py <ide> from __future__ import absolute_import <ide> <ide> import copy <add>import inspect <ide> from ..engine import Layer <ide> from ..engine import InputSpec <ide> from .. import backend as K <ide> def compute_output_shape(self, input_shape): <ide> elif self.merge_mode is N...
2
Go
Go
replace deprecated testutil.errorcontains()
55bebbaecf5e40db9d83b28080ce08dc8642f407
<ide><path>builder/dockerfile/evaluator_test.go <ide> import ( <ide> <ide> "github.com/docker/docker/builder/dockerfile/instructions" <ide> "github.com/docker/docker/builder/remotecontext" <del> "github.com/docker/docker/internal/testutil" <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/docke...
28
PHP
PHP
add test for max and min validation rules
758b805bb99c1ae275ab803346e50f766816d7dd
<ide><path>tests/Validation/ValidationValidatorTest.php <ide> public function testValidateMin() <ide> $v = new Validator($trans, ['foo' => '3'], ['foo' => 'Min:3']); <ide> $this->assertFalse($v->passes()); <ide> <add> // an equal value qualifies. <add> $v = new Validator($trans, ['foo' =>...
1
Text
Text
add dev report for may 8th
1397a4981103c290e095eb9ef8ac822c80d8a758
<ide><path>reports/2017-05-01.md <ide> We are almost done, it should be merged soon. <ide> <ide> Slack works great for synchronous communication, but we need to place for async discussion. A mailing list is currently being setup. <ide> <del>#### Find a good and non-confusing home for the remaining monolith <add>### F...
3
Text
Text
add note about v3 dev code in readme
e63beb8c6da12fe1ae0666bb0a1dea7d9c77629a
<ide><path>README.md <ide> <ide> ## Documentation <ide> <add>Currently, there are two versions of the library (2.9.4 and 3.x.x). Version 2 is the latest stable version while 3 is the next (currently beta) version. As such bear the following in mind: <add> <add>* Current docs points to version 2.9.4 <add>* Npm/CDN/etc...
1
Java
Java
fix regression introduced in 4.3 snapshot
08eb623c41d0ba8276d4131330271ea0f49c7879
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestMethodsRequestCondition.java <ide> public RequestMethodsRequestCondition combine(RequestMethodsRequestCondition oth <ide> * Check if any of the HTTP request methods match the given request and <ide> * return an instance that...
2
Javascript
Javascript
use all timestamps for calculating offsets
13e7a1163b2aa058906228da853b5cd1f07aff8c
<ide><path>src/scales/scale.timeseries.js <ide> class TimeSeriesScale extends TimeScale { <ide> this._table = []; <ide> } <ide> <del> initOffsets(timestamps) { <add> /** <add> * @protected <add> */ <add> initOffsets() { <ide> const me = this; <del> me._table = me.buildLookupTable(); <add> const timestamps = m...
2
PHP
PHP
apply fixes from styleci
d3e486cc588ae4b30b3f3bfb49a5a455530849d6
<ide><path>tests/Mail/MailManagerTest.php <ide> <ide> namespace Illuminate\Tests\Mail; <ide> <del>use Illuminate\Mail\MailManager; <ide> use Orchestra\Testbench\TestCase; <ide> <ide> class MailManagerTest extends TestCase
1
Javascript
Javascript
use buffergeometry for frustum helper
4f7d05ff2b12ec9f9f568f4d4fd32df239a817b8
<ide><path>examples/jsm/csm/CSM.js <ide> export default class CSM { <ide> helper( cameraMatrix ) { <ide> <ide> let frustum; <del> let geometry; <add> let geometry, vertices; <ide> const material = new THREE.LineBasicMaterial( { color: 0xffffff } ); <ide> const object = new THREE.Object3D(); <ide> <ide> for...
1
Go
Go
remove sysinitpath from process
1e81387edcab600c9b8bc2a502988f7b3a2013e7
<ide><path>container.go <ide> func (container *Container) Start() (err error) { <ide> } <ide> <ide> container.process = &execdriver.Process{ <del> ID: container.ID, <del> Privileged: container.hostConfig.Privileged, <del> Rootfs: root, <del> InitPath: "/.dockerinit", <del> Entrypoint: contain...
3
Python
Python
update zombie message to be more descriptive
ef0b97914a6d917ca596200c19faed2f48dca88a
<ide><path>airflow/jobs/scheduler_job.py <ide> def _find_zombies(self, session: Session) -> None: <ide> self.log.warning("Failing (%s) jobs without heartbeat after %s", len(zombies), limit_dttm) <ide> <ide> for ti, file_loc in zombies: <add> <add> zombie_message_details = self._generate_...
2
Javascript
Javascript
use absolute paths from repo root
cf3ae6c32a358729c0eb303d20df0293e9b1c1e2
<ide><path>packager/react-packager/src/ModuleGraph/node-haste/node-haste.flow.js <ide> export type FastFS = { <ide> }; <ide> <ide> type HasteMapOptions = {| <del> allowRelativePaths: boolean, <ide> extensions: Extensions, <ide> files: Array<string>, <ide> helpers: DependencyGraphHelpers, <ide><path>packager/rea...
3
Text
Text
explain worker semantics in async_hooks.md
a319b4a3985cb055f68285817b64ad378e339c6c
<ide><path>doc/api/async_hooks.md <ide> A resource can also be closed before the callback is called. `AsyncHook` does <ide> not explicitly distinguish between these different cases but will represent them <ide> as the abstract concept that is a resource. <ide> <add>If [`Worker`][]s are used, each thread has an indepen...
1
Go
Go
restore error type in findnetwork
51cea0a53c2fd36832277402e9faac81bfb4abd4
<ide><path>daemon/cluster/executor/container/controller.go <ide> func (r *controller) Start(ctx context.Context) error { <ide> <ide> for { <ide> if err := r.adapter.start(ctx); err != nil { <del> if _, ok := err.(libnetwork.ErrNoSuchNetwork); ok { <add> if _, ok := errors.Cause(err).(libnetwork.ErrNoSuchNetwork...
5
PHP
PHP
fix url option key
c1e7d43bb1521ebfa32edb58c71e247b6e15e776
<ide><path>src/Controller/Component/AuthComponent.php <ide> public function redirectUrl($url = null) { <ide> $redir = '/'; <ide> } <ide> if (is_array($redir)) { <del> return Router::url($redir + array('base' => false)); <add> return Router::url($redir + array('_base' => false)); <ide> } <ide> return $red...
2
Ruby
Ruby
fix typos in test method names
f490a81443c9ae27dfb86964e5b74299dbae34ac
<ide><path>actionpack/test/controller/params_wrapper_test.rb <ide> def teardown <ide> UsersController.last_parameters = nil <ide> end <ide> <del> def test_derivered_name_from_controller <add> def test_derived_name_from_controller <ide> with_default_wrapper_options do <ide> @request.env['CONTENT_TYPE'...
1
Ruby
Ruby
make errors during link step more visible
74a081e08df276154ef6722c25da16b788f978cf
<ide><path>Library/Homebrew/install.rb <ide> def install f <ide> onoe "The linking step did not complete successfully" <ide> puts "The package built, but is not symlinked into #{HOMEBREW_PREFIX}" <ide> puts "You can try again using `brew link #{f.name}'" <del> ohai e, e.backtrace if ARGV.debug? <...
1
Javascript
Javascript
copy image
5b4a70bb1d4876ae161e92be5ac37b0858f3bbd3
<ide><path>examples/jsm/utils/RoughnessMipmapper.js <ide> class RoughnessMipmapper { <ide> material.roughnessMap.repeat.copy( roughnessMap.repeat ); <ide> material.roughnessMap.center.copy( roughnessMap.center ); <ide> material.roughnessMap.rotation = roughnessMap.rotation; <add> material.roughnessMap.image ...
1
Text
Text
clarify fs.mkdtemp prefix argument
2ccba1f9fa8e593d09f2f4f284e246e1f8bb6549
<ide><path>doc/api/fs.md <ide> fs.mkdtemp('/tmp/foo-', (err, folder) => { <ide> }); <ide> ``` <ide> <add>*Note*: The `fs.mkdtemp()` method will append the six randomly selected <add>characters directly to the `prefix` string. For instance, given a directory <add>`/tmp`, if the intention is to create a temporary direct...
1
Python
Python
add type hints to xlm model (pytorch)
65cf33e7e53cd46313f3655f274b3f6ca0fd679d
<ide><path>src/transformers/models/xlm/modeling_xlm.py <ide> import itertools <ide> import math <ide> from dataclasses import dataclass <del>from typing import Optional, Tuple <add>from typing import Dict, Optional, Tuple, Union <ide> <ide> import numpy as np <ide> import torch <ide> class PreTrainedModel <ide> ) ...
1
Python
Python
imagenet short tests
44ecc4a756504adee14ffce9564c779018908947
<ide><path>official/resnet/keras/keras_imagenet_benchmark.py <ide> import os <ide> <ide> from absl import flags <del>from absl.testing import flagsaver <del>import tensorflow as tf # pylint: disable=g-bad-import-order <ide> <ide> from official.resnet import imagenet_main <add>from official.resnet.keras import keras_...
1
Go
Go
fix a crash in graphdriver init
a63ff8da46e11c857cd3d743d72d211c96b637e4
<ide><path>graphdriver/driver.go <ide> var ( <ide> } <ide> ) <ide> <add>func init() { <add> drivers = make(map[string]InitFunc) <add>} <add> <ide> func Register(name string, initFunc InitFunc) error { <ide> if _, exists := drivers[name]; exists { <ide> return fmt.Errorf("Name already registered %s", name)
1
Javascript
Javascript
replace deprecated method
e6a6beb38d71a4b165a40ae211636baf6cfb5c27
<ide><path>examples/with-firebase-cloud-messaging/utils/webPush.js <ide> const firebaseCloudMessaging = { <ide> } <ide> <ide> const messaging = firebase.messaging() <del> await messaging.requestPermission() <add> await Notification.requestPermission() <ide> const token = await messaging.get...
1
Text
Text
fix internal link
450548027cd19d97ad53ac402f4ea2eb60d5a09b
<ide><path>docs/how-to-translate-files.md <ide> Our `/learn` interface relies on JSON files loaded into an i18n plugin to genera <ide> <ide> The `links.json`, `meta-tags.json`, `motivation.json`, and `trending.json` files contain information that needs to be updated to reflect your language. However, we cannot load th...
1
Javascript
Javascript
fix some integration tests
38503d1c5fca979424485ed1ad0c523c617e0a5c
<ide><path>test/integration/annotation_spec.js <ide> describe("Checkbox annotation", () => { <ide> pages.map(async ([browserName, page]) => { <ide> for (const selector of selectors) { <ide> await page.click(selector); <add> await page.waitForFunction( <add> `documen...
2
Javascript
Javascript
add `browser` env to all browser facing files
69d354835c70e92a06f272d4a5a07a57c9729507
<ide><path>.eslintrc.js <ide> module.exports = { <ide> { <ide> files: ["lib/**/*.runtime.js", "buildin/*.js", "hot/*.js"], <ide> env: { <del> es6: false <add> es6: false, <add> browser: true <ide> }, <ide> globals: { <ide> Promise: false, <ide> module.exports = { <ide> env: { <ide> moc...
1
Python
Python
display pids of workers that we are waiting for
5ca3e45d5ac2b714cdb0c3a03fd2358361ea4d3a
<ide><path>celery/bin/multi.py <ide> def on_down(node): <ide> def note_waiting(): <ide> left = len(P) <ide> if left: <del> self.note(self.colored.blue('> Waiting for {0} {1}...'.format( <del> left, pluralize(left, 'node'))), newline=False) <add> ...
1
Ruby
Ruby
use absolute path to java in write_jar_script
7f158df8420d574e4bcb2228f3c9c2b845a739cd
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def env_script_all_files(dst, env) <ide> <ide> # Writes an exec script that invokes a Java jar <ide> def write_jar_script(target_jar, script_name, java_opts = "", java_version: nil) <del> (self/script_name).write_env_script "java", "#{java_opts} -jar \"#{targ...
1
Go
Go
add virtualsize for inspect output
ec000cbf30426e745e31a406ecc1c7b1854b1220
<ide><path>graph/service.go <ide> func (s *TagStore) CmdLookup(job *engine.Job) engine.Status { <ide> out.Set("Architecture", image.Architecture) <ide> out.Set("Os", image.OS) <ide> out.SetInt64("Size", image.Size) <add> out.SetInt64("VirtualSize", image.GetParentsSize(0)+image.Size) <ide> if _, err = out.Writ...
1
PHP
PHP
add strict types for network
2eedc702c9e6f16be6d2a9f769f04ff8bc1a1622
<ide><path>src/Network/Exception/SocketException.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide><path>src/Network/Socket.php <ide> <?php <add>declare(...
4
Text
Text
add solutions to css challenges
e73617972095781341af41e5d4e23eb8e0f7df81
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/add-different-padding-to-each-side-of-an-element.english.md <ide> tests: <ide> ## Solution <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><style> <add> .injected-text { <add> margin-bottom: -25px...
24