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
Text
Text
remove a wrong remark in the buffer.md
ae2b19687bd33804f48b74129c3d51994a984c60
<ide><path>doc/api/buffer.md <ide> added: v6.0.0 <ide> --> <ide> <ide> * `value` {String | Buffer | Integer} What to search for <del>* `byteOffset` {Integer} Where to begin searching in `buf` (not inclusive). <add>* `byteOffset` {Integer} Where to begin searching in `buf`. <ide> **Default:** [`buf.length`] <ide> * `...
1
Javascript
Javascript
rebuild example modules
912f8c5d83dc65a93055156efbf482c45cc3be3a
<ide><path>examples/jsm/controls/OrbitControls.js <ide> var OrbitControls = function ( object, domElement ) { <ide> document.removeEventListener( 'mousemove', onMouseMove, false ); <ide> document.removeEventListener( 'mouseup', onMouseUp, false ); <ide> <del> window.removeEventListener( 'keydown', onKeyDown, fals...
1
Javascript
Javascript
fix ie11 prefetching
69a34dd7787dc44bd4731c9f9816ee428dbaccd3
<ide><path>packages/next/client/page-loader.js <ide> import mitt from '../next-server/lib/mitt' <ide> <del>function hasPrefetch(link) { <add>function hasRel(rel, link) { <ide> try { <ide> link = document.createElement('link') <del> return link.relList.supports('prefetch') <add> return link.relList.supports...
1
Python
Python
introduce a mobilenetv2+fpn backbone for centernet
04c56a0354f7471d1ece5defcabea56f471b3454
<ide><path>research/object_detection/builders/model_builder.py <ide> if tf_version.is_tf2(): <ide> from object_detection.models import center_net_hourglass_feature_extractor <ide> from object_detection.models import center_net_mobilenet_v2_feature_extractor <add> from object_detection.models import center_net_mobi...
4
Ruby
Ruby
remove redundant cflags
95eb1b4a5d79463bca362386029a46a2f8d13414
<ide><path>Library/Homebrew/extend/ENV.rb <ide> <ide> module HomebrewEnvExtension <ide> # -w: keep signal to noise high <del> # -fomit-frame-pointer: we are not debugging this software, we are using it <del> SAFE_CFLAGS_FLAGS = "-w -pipe -fomit-frame-pointer" <add> SAFE_CFLAGS_FLAGS = "-w -pipe" <ide> <ide> de...
1
Python
Python
allow parallel build in runtests.py
da54c08b0336222fda128d2652eb867609add101
<ide><path>runtests.py <ide> def main(argv): <ide> help="Start Unix shell with PYTHONPATH set") <ide> parser.add_argument("--debug", "-g", action="store_true", <ide> help="Debug build") <add> parser.add_argument("--parallel", "-j", type=int, default=0, <add> ...
1
Javascript
Javascript
keep minimum volume after unmuting above 0.1
16c1e0adc0ba7dc7676b3ae151802fc3ab225f44
<ide><path>src/js/control-bar/mute-toggle.js <ide> class MuteToggle extends Button { <ide> const lastVolume = this.player_.lastVolume_(); <ide> <ide> if (vol === 0) { <del> this.player_.volume(lastVolume); <add> const volumeToSet = lastVolume < 0.1 ? 0.1 : lastVolume; <add> <add> this.player_.vo...
2
Javascript
Javascript
get flashes from ssr
5a32585ddd8754325fd4c0f95b803426aefc242f
<ide><path>client/index.js <ide> import { render } from 'redux-epic'; <ide> import createHistory from 'history/createBrowserHistory'; <ide> import useLangRoutes from './utils/use-lang-routes'; <ide> import sendPageAnalytics from './utils/send-page-analytics'; <del>import flashToToast from './utils/flash-to-toast'; <ide...
2
PHP
PHP
add missing class alias
84870da68b3e2d6eff333fe763b9d06fcf6d3d8c
<ide><path>src/Routing/Exception/MissingControllerException.php <ide> <?php <ide> declare(strict_types=1); <ide> <del>class_exists('Cake\Http\Exception\MissingControllerException'); <add>class_alias( <add> 'Cake\Http\Exception\MissingControllerException', <add> 'Cake\Routing\Exception\MissingControllerException'...
1
Javascript
Javascript
fix lint issues
40eff8d5ccfc10e767363446ca21fcbc18157acf
<ide><path>server/component-passport.js <ide> PassportConfigurator.prototype.init = function passportInit(noSession) { <ide> if (err || !user) { <ide> return done(err, user); <ide> } <del> this.app.dataSources.db.connector <add> return this.app.dataSources.db.connector <ide> .colle...
1
Ruby
Ruby
change logic for renamed formulae
2cc6b9032965fed9e937da7b1c723e4b2cfd60a0
<ide><path>Library/Homebrew/formulary.rb <ide> require "digest/md5" <add>require "formula_renames" <ide> <ide> # The Formulary is responsible for creating instances of Formula. <ide> # It is not meant to be used directy from formulae. <ide> class TapLoader < FormulaLoader <ide> def initialize(tapped_name) <ide> ...
1
Python
Python
fix head masking for tft5
8d79e5ca49ea27ded98de927d220d830f34b7124
<ide><path>src/transformers/models/t5/modeling_tf_t5.py <ide> def project(hidden_states, proj_layer, key_value_states, past_key_value): <ide> <ide> # Mask heads if we want to <ide> if layer_head_mask is not None: <del> weights = weights * layer_head_mask <add> tf.debugging.assert_...
2
Text
Text
fix call to super().data
3a29eff5f868dcfb0a62d2613b8f351e32113e83
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip show`: <ide> """ <ide> Drop `maybe_none` field if None. <ide> """ <del> data = super().data() <add> data = super().data <ide> if 'maybe_none' ...
1
Ruby
Ruby
fix the typo [ci skip]
414f496363de3982e32e69c9fa166707d6f8ee74
<ide><path>actionview/lib/action_view/helpers/cache_helper.rb <ide> module Helpers <ide> module CacheHelper <ide> # This helper exposes a method for caching fragments of a view <ide> # rather than an entire action or page. This technique is useful <del> # caching pieces like menus, lists of newstop...
1
Text
Text
fix directive example to match description
f00fa639881a9ef2ab2959f11fa30554396a3dac
<ide><path>docs/reference/builder.md <ide> directive: <ide> <ide> ```Dockerfile <ide> # About my dockerfile <del>FROM ImageName <ide> # directive=value <add>FROM ImageName <ide> ``` <ide> <ide> The unknown directive is treated as a comment due to not being recognized. In
1
Ruby
Ruby
update documentation for abstractadapter#reset!
3b6743ea3ff00789239632cc96f8d0b42f28f47e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def disconnect! <ide> <ide> # Reset the state of this connection, directing the DBMS to clear <ide> # transactions and other connection-related server-side state. Usually a <del> # database-dependent operation; the...
1
Javascript
Javascript
show values instead of assertion message
65b8d2133d89aecd9b044b4bf5f4ac5c5c39ebf2
<ide><path>test/internet/test-dgram-multicast-multi-process.js <ide> function launchChildProcess() { <ide> console.error('[PARENT] %d received %d matching messages.', <ide> worker.pid, count); <ide> <del> assert.strictEqual(count, messages.length, <del> ...
1
Javascript
Javascript
provide link for best practices
4a0f0522429b1ad8ba6a356ccbed1b917d60e0d9
<ide><path>src/ng/directive/input.js <ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ <ide> * current scope. If the property doesn't already exist on this scope, it will be created <ide> * implicitly and added to the scope. <ide> * <add> * For best practices on using `ngModel`, ...
1
Python
Python
fix displacy test
c90fe92e15165abfe5fb828ab9e74e9b9659a9f2
<ide><path>spacy/tests/test_misc.py <ide> def test_displacy_parse_deps(en_vocab): <ide> words = ["This", "is", "a", "sentence"] <ide> heads = [1, 0, 1, -2] <ide> pos = ['DET', 'VERB', 'DET', 'NOUN'] <add> tags = ['DT', 'VBZ', 'DT', 'NN'] <ide> deps = ['nsubj', 'ROOT', 'det', 'attr'] <del> doc = ge...
1
Javascript
Javascript
remove unnecessary haunted house guards
79af1b457baf6e66fff831e7328e06f823445910
<ide><path>test/unit/dimensions.js <del>if ( jQuery.fn.width && jQuery.fn.height ) { <add>if ( jQuery.fn.width ) { <ide> <ide> module("dimensions", { teardown: moduleTeardown }); <ide> <ide> testIframe( "dimensions/documentSmall", "window vs. small document", function( j <ide> testIframe( "dimensions/documentLarge", ...
1
Javascript
Javascript
add support for global alert() on android
1dc56a6758c58ae7608bdc130afb7b831194f7ed
<ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js <ide> function setUpTimers() { <ide> } <ide> <ide> function setUpAlert() { <del> var RCTAlertManager = require('NativeModules').AlertManager; <ide> if (!GLOBAL.alert) { <ide> GLOBAL.alert = function(text) { <del> var a...
1
Ruby
Ruby
remove unneeded code
0a5f3dedf4cead8f6b1ff4ee582be14ffcfa3222
<ide><path>railties/lib/rails/backtrace_cleaner.rb <ide> def add_gem_filters <ide> add_filter { |line| line.sub(gems_regexp, '\2 (\3) \4') } <ide> end <ide> end <del> <del> # For installing the BacktraceCleaner in the test/unit <del> module BacktraceFilterForTestUnit #:nodoc: <del> def self.include...
1
Go
Go
move testcopyvolumeuidgid to integration-cli
9a7c5be7d1d71d339b857ec20ca03cc09d4bbfa2
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestState(t *testing.T) { <ide> } <ide> logDone("run - test container state.") <ide> } <add> <add>// Test for #1737 <add>func TestCopyVolumeUidGid(t *testing.T) { <add> name := "testrunvolumesuidgid" <add> defer deleteImages(name) <add> defer deleteAllConta...
2
Python
Python
add more authors
4cc67551a7d0a1fc8874d36271e9a3cd676a075a
<ide><path>utils/exporters/blender/addons/io_three/__init__.py <ide> <ide> bl_info = { <ide> 'name': "Three.js Format", <del> 'author': "repsac, mrdoob, yomotsu, mpk, jpweeks, rkusa, tschw", <add> 'author': "repsac, mrdoob, yomotsu, mpk, jpweeks, rkusa, tschw, jackcaron, bhouston", <ide> 'version': (1, 5...
1
Ruby
Ruby
fix deprecation warnings in activeresource
93387e2e7c66fb34bde5442ad314c9c63729b75b
<ide><path>activeresource/lib/active_resource/base.rb <ide> class Base <ide> extend ActiveModel::Naming <ide> include CustomMethods, Observing, Validations <ide> include ActiveModel::Conversion <del> include ActiveModel::Serializers::JSON <del> include ActiveModel::Serializers::Xml <add> include Ac...
2
Javascript
Javascript
update next.config.js rewrites
dee70f02377f6c4a6c99f889c159318b0bed770d
<ide><path>examples/with-zones/home/next.config.js <ide> const { BLOG_URL } = process.env <ide> <ide> module.exports = { <del> rewrites() { <add> async rewrites() { <ide> return [ <add> { <add> source: '/:path*', <add> destination: `/:path*`, <add> }, <ide> { <ide> source: '...
1
Ruby
Ruby
fix flakey test in notifications_test.rb
763c219539d76be22e589e6a5faf2d6e8937fcfc
<ide><path>activesupport/test/notifications_test.rb <ide> def test_events_are_initialized_with_details <ide> event = event(:foo, time, time + 0.01, random_id, {}) <ide> <ide> assert_equal :foo, event.name <del> assert_in_delta 10.0, event.duration, 0.0001 <add> assert_in_epsilon 10.0, event.durat...
1
Javascript
Javascript
use imported `run`
be6a683242662eb9cc2e8af8b8e829465b7c0dd4
<ide><path>packages/ember-application/lib/system/application.js <ide> var Application = Namespace.extend(DeferredMixin, { <ide> if (!this.$ || this.$.isReady) { <ide> run.schedule('actions', this, 'domReady', _instance); <ide> } else { <del> this.$().ready(Ember.run.bind(this, 'domReady', _instance))...
1
Text
Text
add missing parenthesis in tlssocket section
4236ef926fdc7264d7b430e0021eb88607f5a5e1
<ide><path>doc/api/tls.md <ide> negotiation. <ide> Instances of `tls.TLSSocket` implement the duplex [Stream][] interface. <ide> <ide> Methods that return TLS connection metadata (e.g. <del>[`tls.TLSSocket.getPeerCertificate()`][] will only return data while the <add>[`tls.TLSSocket.getPeerCertificate()`][]) will only...
1
Javascript
Javascript
improve queuemicrotask performance
cde3928a10627510ae0aee7728e5498a95235482
<ide><path>lib/async_hooks.js <ide> class AsyncResource { <ide> constructor(type, opts = {}) { <ide> validateString(type, 'type'); <ide> <del> if (typeof opts === 'number') { <del> opts = { triggerAsyncId: opts, requireManualDestroy: false }; <del> } else if (opts.triggerAsyncId === undefined) { <del>...
2
Javascript
Javascript
improve code in test-fs-open.js
15c71f6c66a8515597f9a4886b35510950c474ef
<ide><path>test/parallel/test-fs-open.js <ide> 'use strict'; <ide> const common = require('../common'); <del>var assert = require('assert'); <del>var fs = require('fs'); <add>const assert = require('assert'); <add>const fs = require('fs'); <add> <add>let caughtException = false; <ide> <del>var caughtException = false;...
1
Python
Python
update v2 check and fix ncf v2 check error logic
308c79344c144290d431f777fc47deb5c94ccc80
<ide><path>official/recommendation/ncf_keras_main.py <ide> def run_ncf(_): <ide> num_gpus=FLAGS.num_gpus) <ide> params["distribute_strategy"] = strategy <ide> <del> if keras_utils.is_v2_0() and strategy is not None: <add> if not keras_utils.is_v2_0() and strategy is not None: <ide> logging.error("NCF Ker...
1
Javascript
Javascript
add missing default 'binary' option to gltfloader
869cd160f56a46d1ae22b973c107bcc08f79ce0f
<ide><path>examples/js/exporters/GLTFExporter.js <ide> THREE.GLTFExporter.prototype = { <ide> parse: function ( input, onDone, options ) { <ide> <ide> var DEFAULT_OPTIONS = { <add> binary: false, <ide> trs: false, <ide> onlyVisible: true, <ide> truncateDrawRange: true,
1
Javascript
Javascript
change promise.done to promise.then
82f3964f2da8b93b2cd2b6a8d1c9cdb5c2aa6f3a
<ide><path>Libraries/Network/NetInfo.js <ide> const _isConnectedSubscriptions = new Map(); <ide> * NetInfo exposes info about online/offline status <ide> * <ide> * ``` <del> * NetInfo.fetch().done((reach) => { <add> * NetInfo.fetch().then((reach) => { <ide> * console.log('Initial: ' + reach); <ide> * }); <ide> ...
1
Mixed
Javascript
allow monitoring uncaughtexception
f4797ff1ef7304659d747d181ec1e7afac408d50
<ide><path>doc/api/process.md <ide> nonexistentFunc(); <ide> console.log('This will not run.'); <ide> ``` <ide> <add>It is possible to monitor `'uncaughtException'` events without overriding the <add>default behavior to exit the process by installing a <add>`'uncaughtExceptionMonitor'` listener. <add> <ide> #### Warni...
5
Java
Java
update the timeout docs
26a8642a75d4cb039b5e6a2deb76af1c63078c79
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final Observable<TimeInterval<T>> timeInterval(Scheduler scheduler) { <ide> } <ide> <ide> /** <del> * Returns an Observable that completes if either the first item emitted by the source <del> * Observable or any subsequent item don't ...
2
Javascript
Javascript
update example to use a module
e293975b1aac9ea08d4c811d92fae43700dd20ff
<ide><path>src/ng/directive/input.js <ide> var ngModelDirective = function() { <ide> * in input value. <ide> * <ide> * @example <del> * <example name="ngChange-directive"> <add> * <example name="ngChange-directive" module="changeExample"> <ide> * <file name="index.html"> <ide> * <script> <del> * functi...
1
Javascript
Javascript
create `usemergerefs` utility
0b994ac19c1cc377d074f057585621e78aa8682f
<ide><path>Libraries/Utilities/__tests__/useMergeRefs-test.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @emails oncall+react_native <add...
2
PHP
PHP
remove incorrect `static` modifier
7f67ce97f663cfc01f572f0b5b039f99eae7c4a5
<ide><path>src/Illuminate/Support/DateFactory.php <ide> * @see https://carbon.nesbot.com/docs/ <ide> * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php <ide> * <del> * @method static Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null) <del> * ...
1
Python
Python
remove exec_command() from f2py init
0a61f7f425c890f6e757b7ceedf00ba34501e052
<ide><path>numpy/f2py/__init__.py <ide> __all__ = ['run_main', 'compile', 'f2py_testing'] <ide> <ide> import sys <add>import subprocess <add>import os <add> <add>import numpy as np <ide> <ide> from . import f2py2e <ide> from . import f2py_testing <ide> def compile(source, <ide> Fortran source of module / subr...
2
PHP
PHP
move getter above setter
71980d06dc175170dd81a3b5e064ab1c93af12b7
<ide><path>src/Illuminate/Http/JsonResponse.php <ide> public function setData($data = array()) <ide> return $this->update(); <ide> } <ide> <add> /** <add> * Get the JSON encoding options. <add> * <add> * @return int <add> */ <add> public function getJsonOptions() <add> { <add> return $this->jsonOptions; <add> ...
1
Javascript
Javascript
add ember.handlebars action helper
60c55e3085b5c36569328be4414faa0383c5e3ba
<ide><path>packages/ember-handlebars/lib/helpers.js <ide> require("ember-handlebars/helpers/unbound"); <ide> require("ember-handlebars/helpers/debug"); <ide> require("ember-handlebars/helpers/each"); <ide> require("ember-handlebars/helpers/template"); <add>require("ember-handlebars/helpers/action"); <ide>\ No newline a...
3
Go
Go
add exec to the commands list
fccb02622183ee93036d4f5068817830f3297ab5
<ide><path>docker/flags.go <ide> func init() { <ide> {"cp", "Copy files/folders from a container's filesystem to the host path"}, <ide> {"diff", "Inspect changes on a container's filesystem"}, <ide> {"events", "Get real time events from the server"}, <add> {"exec", "Run a command in an existing container"}, ...
1
Javascript
Javascript
refine invariant error message at scrolltoindex
78d2b3c8138f54c2433958b0ad6b9f52ca59115a
<ide><path>Libraries/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<Props, State> { <ide> } = this.props; <ide> const {animated, index, viewOffset, viewPosition} = params; <ide> invariant( <del> index >= 0 && index < getItemCount(data), <del> `scrollToIndex out of...
2
Text
Text
add mention of centralized vcs to svn article
11ed97e860edafb27755387b7c2359ecb03dd56d
<ide><path>guide/english/svn/index.md <ide> title: Apache Subversion <ide> ## Apache Subversion <ide> Apache Subversion is a software versioning and revision control system distributed as open source under the [Apache License](https://en.wikipedia.org/wiki/Apache_License). It is used to maintain current and historical ...
1
Java
Java
harmonize visibility of runtimehints builders
444e06fa2299b07ce9e6e763a611f129a213ce7d
<ide><path>spring-core/src/main/java/org/springframework/aot/hint/ResourceBundleHint.java <ide> public final class ResourceBundleHint implements ConditionalHint { <ide> private final String baseName; <ide> <ide> @Nullable <del> private TypeReference reachableType; <add> private final TypeReference reachableType; <id...
3
Text
Text
fix small typo
a79a96ddaa05f0cdf647fd4dce779d74459614eb
<ide><path>examples/language-modeling/README.md <ide> context length for permutation language modeling. <ide> The `--max_span_length` flag may also be used to limit the length of a span of masked tokens used <ide> for permutation language modeling. <ide> <del>Here is how to fine-tun XLNet on wikitext-2: <add>Here is ...
1
Ruby
Ruby
raise an error when no formula
816fdd0f5aeaa5b862204476afdb947ac1cf863d
<ide><path>Library/Homebrew/dev-cmd/bump-revision.rb <ide> def bump_revision <ide> # user path, too. <ide> ENV["PATH"] = ENV["HOMEBREW_PATH"] <ide> <add> raise FormulaUnspecifiedError if ARGV.formulae.empty? <ide> raise "Multiple formulae given, only one is allowed." if ARGV.formulae.length > 1 <ide> <...
1
Javascript
Javascript
add test for more than two nested async helpers
5f037f29a485a35395021749d6c0ae0c197df74e
<ide><path>packages/ember-testing/tests/acceptance_test.js <ide> test("Nested async helpers", function() { <ide> }); <ide> }); <ide> <add>test("Multiple nested async helpers", function() { <add> expect(2); <add> <add> visit('/posts'); <add> <add> andThen(function() { <add> click('a:first', '#comments-link'); <...
1
PHP
PHP
handle data attachments without warnings
6c0d8dfa1f294f5da88c306f2ae464b9ac66d559
<ide><path>src/Mailer/Email.php <ide> public function setAttachments($attachments) <ide> $name = basename($fileInfo['file']); <ide> } <ide> } <del> if (!isset($fileInfo['mimetype']) && function_exists('mime_content_type')) { <add> if (!isset($fileInf...
2
Javascript
Javascript
replace vars in per_thread.js
9240e54404c5de325db60f8c1ad5e92483cd190b
<ide><path>lib/internal/process/per_thread.js <ide> function wrapProcessMethods(binding) { <ide> } <ide> <ide> function kill(pid, sig) { <del> var err; <add> let err; <ide> <ide> // eslint-disable-next-line eqeqeq <ide> if (pid != (pid | 0)) {
1
Ruby
Ruby
set hash value instead of using merge!
d9f20c575a29e8ec8eb549aae63b7c304dc27489
<ide><path>activemodel/lib/active_model/validations/validates.rb <ide> def validates(*attributes) <ide> raise ArgumentError, "You need to supply at least one attribute" if attributes.empty? <ide> raise ArgumentError, "You need to supply at least one validation" if validations.empty? <ide> <del> ...
1
Python
Python
fix append to an empty chain. fixes .
f148709062f728104dcca32d475d11af4a496be3
<ide><path>celery/canvas.py <ide> def __or__(self, other): <ide> return sig <ide> elif isinstance(other, Signature): <ide> if isinstance(self, _chain): <del> if isinstance(self.tasks[-1], group): <add> if self.tasks and isinstance(self.tasks[-1], group): <id...
2
Javascript
Javascript
add missing crypto checks
2ba1740ba17193face8fe82458ed9912fa35ff6f
<ide><path>test/internet/test-tls-connnect-cnnic.js <ide> // 0x44, 0xB5, 0x00, 0x76, 0x48, 0x11, 0x41, 0xED }, <ide> // }, <ide> // in src/CNNICHashWhitelist.inc <add> <add>var common = require('../common'); <add>if (!common.hasCrypto) { <add> console.log('1..0 # Skipped: missing crypto'); <add> process.exit(); <...
2
Python
Python
add pytest compatible run_module_suite
787b4a094c0a4f2aac338fe2a22e6e923ea14baa
<ide><path>numpy/testing/pytest_tools/nosetester.py <ide> def get_package_name(filepath): <ide> return '.'.join(pkg_name) <ide> <ide> <del>if False: <del> # disable run_module_suite and NoseTester <del> # until later <del> def run_module_suite(file_to_run=None, argv=None): <del> """ <del> R...
1
Ruby
Ruby
rearrange the config merger some more
de9f2f63b8548e2a8950c1727f0a1a6893713505
<ide><path>activerecord/lib/active_record/connection_handling.rb <ide> def establish_connection(spec = nil) <ide> class MergeAndResolveDefaultUrlConfig # :nodoc: <ide> def initialize(raw_configurations) <ide> @raw_config = raw_configurations.dup <add> @env = DEFAULT_ENV.call.to_s <ide> en...
1
Mixed
PHP
apply geteventmanager() in src
4eb9fd139c1a8234f36bcca37e9fe94a995c37e9
<ide><path>src/Controller/Component/AuthComponent.php <ide> class AuthComponent extends Component <ide> public function initialize(array $config) <ide> { <ide> $controller = $this->_registry->getController(); <del> $this->eventManager($controller->eventManager()); <add> $this->eventManager...
16
Python
Python
update examples/ner/run_ner.py to use automodel
2b60a26b463ba59c60c8b2645ec1068a0481e8e2
<ide><path>examples/ner/run_ner.py <ide> from tqdm import tqdm, trange <ide> <ide> from transformers import ( <add> ALL_PRETRAINED_MODEL_ARCHIVE_MAP, <ide> WEIGHTS_NAME, <ide> AdamW, <del> AlbertConfig, <del> AlbertForTokenClassification, <del> AlbertTokenizer, <del> BertConfig, <del> BertFor...
1
Ruby
Ruby
expand requirements recursively when modifying env
53cf970312fb98d53fa5859bc039e453b60274cc
<ide><path>Library/Homebrew/build.rb <ide> end <ide> <ide> def install f <del> f.requirements.each { |dep| dep.modify_build_environment } <add> f.recursive_requirements.each { |req| req.modify_build_environment } <ide> <ide> f.recursive_deps.uniq.each do |dep| <ide> dep = Formula.factory dep <ide><path>Librar...
2
Go
Go
remove ip_forward warning
ef6c0d53410c0be6f33d049e7998b54804497350
<ide><path>pkg/sysinfo/sysinfo.go <ide> func New(quiet bool) *SysInfo { <ide> } <ide> } <ide> <del> content, err3 := ioutil.ReadFile("/proc/sys/net/ipv4/ip_forward") <del> sysInfo.IPv4ForwardingDisabled = err3 != nil || len(content) == 0 || content[0] != '1' <del> if sysInfo.IPv4ForwardingDisabled && !quiet { <del>...
1
Javascript
Javascript
check `meta` for being `undefined` only
c74f76ca663db7a47fac8abae0271bd48656cd7a
<ide><path>packages/ember-metal/lib/chains.js <ide> function addChainWatcher(obj, keyName, node) { <ide> } <ide> <ide> function removeChainWatcher(obj, keyName, node, _meta) { <del> if (!isObject(obj)) { <del> return; <del> } <add> if (!isObject(obj)) { return; } <ide> <del> let meta = _meta || peekMeta(obj); ...
8
Javascript
Javascript
fix a todo
0b77e421529e9e63e57b12690917c72c0149112a
<ide><path>test/unit/src/math/Box2.tests.js <ide> export default QUnit.module( 'Maths', () => { <ide> <ide> } ); <ide> <del> QUnit.todo( "clone", ( assert ) => { <add> QUnit.test( "clone", ( assert ) => { <ide> <ide> <ide> var a = new Box2( zero2, zero2 ); <ide> export default QUnit.module( 'Maths', () => { ...
1
PHP
PHP
change property name in pivot class
29a181fd64a1d07e071351e61e8403bf00ea4b3c
<ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php <ide> class Pivot extends Model <ide> * <ide> * @var \Illuminate\Database\Eloquent\Model <ide> */ <del> protected $parent; <add> protected $pivotParent; <ide> <ide> /** <ide> * The name of the foreign key column. <ide> public...
1
Python
Python
remove ner words from stop words in norwegian
251119455de70957088970ca0aa56624789ea65c
<ide><path>spacy/lang/nb/stop_words.py <ide> <ide> bak bare bedre beste blant ble bli blir blitt bris by både <ide> <del>da dag de del dem den denne der dermed det dette disse drept du <add>da dag de del dem den denne der dermed det dette disse du <ide> <ide> eller en enn er et ett etter <ide> <del>fem fikk fire fj...
1
Javascript
Javascript
improve readability of some crypto tests
d67e71e4f7dd856ce2ad6837fe99b023c8bb72b0
<ide><path>test/parallel/test-crypto-authenticated.js <ide> common.expectWarning('Warning', (common.hasFipsCrypto ? [] : [ <ide> 'deprecated. Valid GCM tag lengths are 4, 8, 12, 13, 14, 15, 16.') <ide> )); <ide> <del>for (const i in TEST_CASES) { <del> const test = TEST_CASES[i]; <del> <add>for (const tes...
2
Javascript
Javascript
shorten path for bogus socket
bfa925f15f20949e02325a58b8cf3ffd1f188077
<ide><path>test/parallel/test-net-pipe-connect-errors.js <ide> if (common.isWindows) { <ide> // file instead <ide> emptyTxt = path.join(common.fixturesDir, 'empty.txt'); <ide> } else { <del> // use common.PIPE to ensure we stay within POSIX socket path length <del> // restrictions, even on CI <ide> common.refre...
1
Ruby
Ruby
add formulae_paths helper
5366da76fd19bb945599bea47a0cf924c4c9e2dc
<ide><path>Library/Homebrew/cli/args.rb <ide> def resolved_formulae <ide> end.uniq(&:name) <ide> end <ide> <add> def formulae_paths <add> @formulae_paths ||= (downcased_unique_named - casks).map do |name| <add> Formulary.path(name) <add> end.uniq(&:name) <add> end <add> <...
1
Javascript
Javascript
use standard path names for chunks
02955791bc99d44f3392479aa4e4e5db4bfb89f3
<ide><path>client/webpack-workers.js <ide> module.exports = (env = {}) => { <ide> ); <ide> return filename + '.js'; <ide> }, <del> chunkFilename: '[name].[contenthash].js', <add> chunkFilename: '[name]-[contenthash].js', <ide> path: staticPath <ide> }, <ide> stats: {
1
Mixed
Ruby
remove obfuscation support from mail_to helper
cf9d9450ec2a183c0007eedd62113f0ed362019c
<ide><path>actionpack/CHANGELOG.md <ide> <ide> *Vasiliy Ermolovich* <ide> <add>* Extract support for email address obfuscation via `:encode`, `:replace_at`, and `replace_dot` options <add> from the `mail_to` helper into the `actionview-encoded_mail_to` gem. <add> <add> *Nick Reed + DHH* <add> <id...
3
Go
Go
share logic to create-or-replace a container
6a2f385aea283aee4cce84c01308f5e7906a1564
<ide><path>daemon/start.go <ide> import ( <ide> containertypes "github.com/docker/docker/api/types/container" <ide> "github.com/docker/docker/container" <ide> "github.com/docker/docker/errdefs" <add> "github.com/docker/docker/libcontainerd" <ide> "github.com/pkg/errors" <ide> "github.com/sirupsen/logrus" <ide> ) <...
3
Python
Python
add keyword for allow_zero
1587fb9c43558b86fc34bbe441831be195488f72
<ide><path>keras/layers/convolutional_recurrent.py <ide> def input_conv(self, x, w, b=None, padding='valid'): <ide> return conv_out <ide> <ide> def recurrent_conv(self, x, w): <del> strides = conv_utils.normalize_tuple(1, self.rank, 'strides', True) <add> strides = conv_utils.normalize_tuple(1, self.rank, ...
2
Python
Python
add thai language tokenizers
d53c3fcbc16b090bdc4665b159ae38851cd8f357
<ide><path>setup.py <ide> def setup_package(): <ide> # Language tokenizers with external dependencies <ide> "ja": ["mecab-python3==0.7"], <ide> "ko": ["natto-py==0.9.0"], <add> "th": ["pythainlp>=2.0"], <ide> }, <ide> python_requires...
1
Python
Python
fix polymorphic identity of hive_to_mysql
c747ae473edbea149a0379df8b14f9d3c8341d3d
<ide><path>airflow/operators/hive_to_mysql.py <ide> class HiveToMySqlTransfer(BaseOperator): <ide> """ <ide> <ide> __mapper_args__ = { <del> 'polymorphic_identity': 'MySqlToHiveOperator' <add> 'polymorphic_identity': 'HiveToMySqlTransfer' <ide> } <ide> template_fields = ('sql', 'mysql_tab...
1
Python
Python
name this test method correctly. refs [16334]
7a600166a7bac4b657bc9d8dac948ddde043a629
<ide><path>tests/modeltests/many_to_one_null/tests.py <ide> def test_assign_clear_related_set(self): <ide> self.assertQuerysetEqual(Article.objects.filter(reporter__isnull=True), <ide> ['<Article: First>', '<Article: Fourth>']) <ide> <del> def test_remove_efficiency(self): <...
1
PHP
PHP
move import to top of file
d1d3bcff041428242b519407d513ee39ccdbb01f
<ide><path>lib/Cake/Console/Shell.php <ide> App::uses('ConsoleInput', 'Console'); <ide> App::uses('ConsoleInputSubcommand', 'Console'); <ide> App::uses('ConsoleOptionParser', 'Console'); <add>App::uses('ClassRegistry', 'Utility'); <ide> App::uses('File', 'Utility'); <ide> <ide> /** <ide> protected function _loadModels...
1
PHP
PHP
fix timezone conversion in manytophp()
2692c1172d4f15cae98c73f5f1a37d2ebbc8ea61
<ide><path>src/Database/Type/DateTimeType.php <ide> public function manyToPHP(array $values, array $fields, Driver $driver) <ide> $instance = clone $this->_datetimeInstance; <ide> $instance = $instance->modify($values[$field]); <ide> if ($instance->getTimezone()->getName() !== date_d...
2
Javascript
Javascript
add pseduo locale (x-pseudo)
82ddf620466399fb551a0329cde3eafd498edd98
<ide><path>src/locale/x-pseudo.js <add>//! moment.js locale configuration <add>//! locale : pseudo (x-pseudo) <add>//! author : Andrew Hood : https://github.com/andrewhood125 <add> <add>import moment from '../moment'; <add> <add>export default moment.defineLocale('x-pseudo', { <add> months : 'J~áñúá~rý_F~ébrú~árý_~M...
2
Text
Text
add v3.1.0 to changelog
b33720734607970789f936e7a4cd1426c440214a
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v3.1.0-beta.5 (March 12, 2018) <del>- [#15601](https://github.com/emberjs/ember.js/pull/15601) [BUGFIX] Ensure Mixin.prototype.toString does not return constructor code <add>### v3.1.0 (April 10, 2018) <add>- [#16293](https://github.com/emberjs/ember.js/pu...
1
Python
Python
use same version specifications as in werkzeug
2713ea98cb0fc22952ba6ddf88209da1a2efa270
<ide><path>setup.py <ide> def run(self): <ide> 'License :: OSI Approved :: BSD License', <ide> 'Operating System :: OS Independent', <ide> 'Programming Language :: Python', <del> 'Programming Language :: Python :: 2.6', <del> 'Programming Language :: Python :: 2.7', <add> 'P...
1
PHP
PHP
use adventage of newer phpunit sytax
c936250731cc5b4f8160a50150971e586442fd4d
<ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php <ide> public function testAuthenticateSuccess() <ide> /** <ide> * test scope failure. <ide> * <del> * @expectedException \Cake\Network\Exception\UnauthorizedException <del> * @expectedExceptionCode 401 <ide> * @return void <ide> */...
136
PHP
PHP
use dispatch instead of fire
5e98a2ce90530847f11a3d8ed7e73d9fea6acc14
<ide><path>src/Illuminate/Auth/SessionGuard.php <ide> public function logout() <ide> } <ide> <ide> if (isset($this->events)) { <del> $this->events->fire(new Events\Logout($user)); <add> $this->events->dispatch(new Events\Logout($user)); <ide> } <ide> <ide> // Once...
17
PHP
PHP
add more methods to collection
9032d1aa4583c6de258f54aa7b67f05897b45bf3
<ide><path>src/Illuminate/Support/Collection.php <ide> public function each(callable $callback) <ide> return $this; <ide> } <ide> <add> /** <add> * Create a new collection consisting of even elements. <add> * <add> * @return static <add> */ <add> public function even() <add> { <add...
2
Python
Python
add option for base model in init-model cli
49ef06d793b885c3bd634ac72f38be067246822a
<ide><path>spacy/cli/init_model.py <ide> <ide> from ..vectors import Vectors <ide> from ..errors import Errors, Warnings <del>from ..util import ensure_path, get_lang_class, OOV_RANK <add>from ..util import ensure_path, get_lang_class, load_model, OOV_RANK <ide> <ide> try: <ide> import ftfy <ide> str, <id...
1
PHP
PHP
remove encrpyption method
33908a5079b3ef791f0c09fc502396692f228a6a
<ide><path>src/Controller/Component/CookieComponent.php <ide> public function delete($key) { <ide> } <ide> } <ide> <del>/** <del> * Get / set encryption type. Use this method in ex: AppController::beforeFilter() <del> * before you have read or written any cookies. <del> * <del> * @param string|null $type Encryption...
2
Text
Text
update description to accommodate tests
dc7092ecd18a1e6d3ea20f18db943ae993ee8d85
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.english.md <ide> forumTopicId: 301363 <ide> Usernames are used everywhere on the internet. They are what give users a unique identity on their favorite sites. <ide> You need to check all...
1
Text
Text
update the upgrading guide
a9adf93d50610b429a1b4ddf51aef44e043b9019
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> Also, make sure `config.cache_classes` is set to `false` in `config/environments <ide> <ide> ### Applications need to run in `zeitwerk` mode <ide> <del>Applications still running in `classic` mode have to switch to `zeitwerk` mode. Please check the [upgrading ...
1
Text
Text
use shields.io instead of pypip.in
7eeb0e81c03ed8c6c9ed4523511641fce9332b64
<ide><path>README.md <ide> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. <ide> <ide> [build-status-image]: https://secure.travis-ci.org/tomchristie/django-rest-framework.svg?branch=master <ide> [travis]: http://travis-ci.org/tomchristie/django-rest-framework?branch=master <del>[pypi-version]: ht...
1
Javascript
Javascript
fix bug in iso-week creation test
d67554fe7d1a317e9761f6d89fb8359ca1eb7de8
<ide><path>test/moment/create.js <ide> exports.create = { <ide> <ide> test.equal(moment('22', 'WW').isoWeek(), 22, 'iso week sets the week by itself'); <ide> test.equal(moment('2012 22', 'YYYY WW').weekYear(), 2012, 'iso week keeps parsed year'); <del> test.equal(moment('22', 'WW').weekYear(), m...
1
PHP
PHP
fix failing tests around positional replacements
5b475a1f15ec5dca553868316c76c2743ab7041c
<ide><path>src/Database/Log/QueryLogger.php <ide> protected function _interpolate($query) <ide> <ide> $keys = []; <ide> $limit = is_int(key($params)) ? 1 : -1; <del> $params = array_reverse($params); <ide> foreach ($params as $key => $param) { <del> $keys[] = is_string($key) ?...
2
Ruby
Ruby
add method to return the corresponding version
31b61cb01342b5a2079cb447693d003bdf455a65
<ide><path>Library/Homebrew/keg.rb <ide> def completion_installed? shell <ide> dir.directory? and not dir.children.length.zero? <ide> end <ide> <add> def version <add> require 'version' <add> Version.new(basename.to_s) <add> end <add> <add> def basename <add> Pathname.new(self.to_s).basename <add> e...
1
Javascript
Javascript
remove stray logging
7aec696bb5a1e570badc08280fb72d14d299d7c8
<ide><path>spec/text-editor-component-spec.js <ide> describe('TextEditorComponent', () => { <ide> expect(initialKoreanCharacterWidth).not.toBe(initialBaseCharacterWidth) <ide> verifyCursorPosition(component, cursorNode, 1, 29) <ide> <del> console.log(initialFontSize); <ide> element.style.fontSiz...
1
Mixed
Ruby
fix code typo in `mysqladapter` .closes
d0ea5c5b20687520740bad636951973a34ac2e68
<ide><path>activerecord/CHANGELOG.md <add>* Fix code typo in `MysqlAdapter` when `Encoding.default_internal` is set. <add> <add> Fixes #12647. <add> <add> *Yves Senn* <add> <ide> * ActiveRecord::Base#attribute_for_inspect now truncates long arrays (more than 10 elements) <ide> <ide> *Jan Bernacki* <ide><...
3
PHP
PHP
add support for middleware groups
737ee84cc2f5a71ae359a1fc7c5ced6d741e901d
<ide><path>src/Illuminate/Foundation/Http/Kernel.php <ide> class Kernel implements KernelContract <ide> */ <ide> protected $middleware = []; <ide> <add> /** <add> * The application's route middleware groups. <add> * <add> * @var array <add> */ <add> protected $middlewareGroups = []; <add...
4
Text
Text
remove extra word and translation
74057447acc2382af0a2bfeb9caf7dfa39b01324
<ide><path>curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/es6/explore-differences-between-the-var-and-let-keywords.chinese.md <ide> localeTitle: 探索var和let关键字之间的差异 <ide> --- <ide> <ide> ## Description <del><section id="description">使用<code>var</code>关键字声明变量的最大问题之一是您可以在没有错误的情况下覆盖变量声明。 <blockq...
1
Python
Python
add seperated class for resnet 50 101 152
e649274ea724d476cdc76ed01624dd9378d27a08
<ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py <ide> class FasterRCNNResnetV1FPNKerasFeatureExtractor( <ide> <ide> def __init__(self, <ide> is_training, <add> resnet_v1_base_model, <add> resnet_v1_base_model_name, <ide> ...
1
Ruby
Ruby
remove cbmc from github_prerelease_allowlist
c22c6c4a93a4197046108ecb49a2546454e65aef
<ide><path>Library/Homebrew/utils/shared_audits.rb <ide> def github_release_data(user, repo, tag) <ide> <ide> GITHUB_PRERELEASE_ALLOWLIST = { <ide> "amd-power-gadget" => :all, <del> "cbmc" => "5.12.6", <ide> "elm-format" => "0.8.3", <ide> "gitless" => "0.8.8", <ide> "inf...
1
Text
Text
fix confusing description of stdout/stdin pipe
c3dff2359dbea4f6f0f001421ddeae4ef76b931f
<ide><path>docs/reference/run.md <ide> You can specify to which of the three standard streams (`STDIN`, `STDOUT`, <ide> For interactive processes (like a shell), you must use `-i -t` together in <ide> order to allocate a tty for the container process. `-i -t` is often written `-it` <ide> as you'll see in later examples...
1
Text
Text
add empty line after http request headers
1f62718f52fd676beabca7b796960d4702b175d1
<ide><path>curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-body-parser-to-parse-post-requests.md <ide> From: john@example.com <ide> User-Agent: someBrowser/1.0 <ide> Content-Type: application/x-www-form-urlencoded <ide> Content-Length: 20 <add> <ide> name=John+Doe&age=25 <ide> ``` <id...
1
Python
Python
remove warning for `full` when dtype is set
7978f3d422e24d1f92d626d19763e5b87193824e
<ide><path>numpy/core/numeric.py <ide> def full(shape, fill_value, dtype=None, order='C'): <ide> <ide> """ <ide> a = empty(shape, dtype, order) <del> if array(fill_value).dtype != a.dtype: <add> if dtype is None and array(fill_value).dtype != a.dtype: <ide> warnings.warn( <del> "in the...
2
Text
Text
add return types and props types to os module
f9c98563da6076d27e5ce44c1a023cce52f46cb5
<ide><path>doc/api/os.md <ide> const os = require('os'); <ide> added: v0.7.8 <ide> --> <ide> <add>* {String} <add> <ide> A string constant defining the operating system-specific end-of-line marker: <ide> <ide> * `\n` on POSIX <ide> Equivalent to [`process.arch`][]. <ide> <ide> ## os.constants <ide> <add>* {Object} ...
1