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
Python
Python
assert exception msg
ce8b3d398f84eb88959fb188e8e0c90dcef65ec0
<ide><path>keras/utils/conv_utils.py <ide> def normalize_tuple(value, n, name, cmp=None): <ide> <ide> unqualified_values = [v for v in value_tuple if cmp is not None and cmp(v)] <ide> if len(unqualified_values) > 0: <del> error_msg += f' that does not satisfy the requirement.' <add> error_msg += (f' ...
2
Python
Python
fix french lemmatization
8bd85fd9d51b8961e6d264554908e1f1b80d8e02
<ide><path>spacy/lang/fr/lemmatizer/lemmatizer.py <ide> def lemmatize(string, index, exceptions, rules): <ide> if not forms: <ide> forms.extend(oov_forms) <ide> if not forms and string in LOOKUP.keys(): <del> forms.append(LOOKUP[string]) <add> forms.append(LOOKUP[string][0]) <ide> if n...
2
Ruby
Ruby
fix cellar any handling
831d034303bf972f6b4a872d5abdf6acb3439656
<ide><path>Library/Homebrew/software_spec.rb <ide> def root_url(var = nil, specs = {}) <ide> end <ide> <ide> def compatible_locations? <del> compatible_cellar = cellar == :any || <del> cellar == :any_skip_relocation || <del> cellar == HOMEBREW_CELLAR.to_s <add> #...
1
Text
Text
add v3.24.0-beta.2 to changelog
1ae3f13e5be1dc949045e7061b924fc0fa3ec47a
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.24.0-beta.2 (November 24, 2020) <add> <add>- [#19282](https://github.com/emberjs/ember.js/pull/19282) [BUGFIX] Issue deprecations (instead of assertions) for tracked mutation in constructor during rendering <add> <ide> ### v3.24.0-beta.1 (November 16, 2...
1
Ruby
Ruby
simplify cxxstdlib_check implementation
95aef5511091dc666beae7c5bdb79df926374554
<ide><path>Library/Homebrew/compat/formula.rb <ide> def std_cmake_parameters <ide> "-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev" <ide> end <ide> <del> def cxxstdlib <del> self.class.cxxstdlib <del> end <del> <ide> def cxxstdlib_check check_type <ide> ...
2
Java
Java
move builder methods to versionresourceresolver
ae48b5f7f22ca967ced6f206b30af38b492bf68b
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistration.java <ide> package org.springframework.web.servlet.config.annotation; <ide> <ide> import java.util.ArrayList; <del>import java.util.HashMap; <ide> import java.util.List; <del>import java.util.Map; <ide>...
4
Python
Python
fix description of dtype default in linspace
68ebc2bad1ad6a99e9939eff205a1a6d936cf4fd
<ide><path>numpy/core/function_base.py <ide> def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, <ide> If True, return (`samples`, `step`), where `step` is the spacing <ide> between samples. <ide> dtype : dtype, optional <del> The type of the output array. If `dtype` ...
1
Go
Go
check typos and fix in daemon directory
cf4f5b47710b3875767f997fc2eb3386cb0b66c0
<ide><path>daemon/links/links_test.go <ide> func TestLinkPortRangeEnv(t *testing.T) { <ide> if env["DOCKER_ENV_PASSWORD"] != "gordon" { <ide> t.Fatalf("Expected gordon, got %s", env["DOCKER_ENV_PASSWORD"]) <ide> } <del> for i := range []int{6379, 6380, 6381} { <add> for _, i := range []int{6379, 6380, 6381} { <ide>...
2
Ruby
Ruby
remove space in -isysroot
32744e174651c8892381ec27fbc640c61fdaf5f3
<ide><path>Library/Homebrew/extend/os/mac/extend/ENV/std.rb <ide> def remove_macosxsdk(version = MacOS.version) <ide> return unless (sdk = MacOS.sdk_path_if_needed(version)) <ide> <ide> delete("SDKROOT") <del> remove_from_cflags "-isysroot #{sdk}" <del> remove "CPPFLAGS", "-isysroot #{sdk}" <del> remo...
1
Java
Java
use real yoganodes in fabricuimanagertest
864cc00a6107fd8144f1c4ecaf5b35260d00cf7d
<ide><path>ReactAndroid/src/test/java/com/facebook/react/fabric/FabricUIManagerTest.java <ide> import com.facebook.react.fabric.FabricUIManager; <ide> import com.facebook.react.uimanager.ReactShadowNode; <ide> import com.facebook.react.uimanager.ReactShadowNodeImpl; <del>import com.facebook.react.uimanager.ReactYogaCon...
1
Javascript
Javascript
reduce usage of public util
4c4e4f4bda7d4ca70ff8e9b8a2efbe1cac27abee
<ide><path>lib/_http_agent.js <ide> 'use strict'; <ide> <ide> const net = require('net'); <del>const util = require('util'); <ide> const EventEmitter = require('events'); <del>const debug = util.debuglog('http'); <add>const debug = require('internal/util/debuglog').debuglog('http'); <ide> const { async_id_symbol } = r...
4
Javascript
Javascript
remove "pass" from progress plugin
96d91631f6cd88cb9093a9001e33cbd7e39633c6
<ide><path>lib/ProgressPlugin.js <ide> class ProgressPlugin { <ide> }; <ide> const numberOfHooks = Object.keys(hooks).length; <ide> Object.keys(hooks).forEach((name, idx) => { <del> let pass = 0; <ide> const title = hooks[name]; <ide> const percentage = idx / numberOfHooks * 0.25 + 0.7; <ide> ...
1
Javascript
Javascript
handle webcrypto generatekey() usages edge case
84db3e7b06979a388a65d8ebce2571554c2dadd6
<ide><path>lib/internal/crypto/webcrypto.js <ide> async function generateKey( <ide> algorithm = normalizeAlgorithm(algorithm); <ide> validateBoolean(extractable, 'extractable'); <ide> validateArray(keyUsages, 'keyUsages'); <del> if (keyUsages.length === 0) { <del> throw lazyDOMException( <del> 'Usages ca...
4
Python
Python
fix method documentation of function sort()
050181e8d660d981d8f4a6b870d1859bf617a414
<ide><path>numpy/ma/core.py <ide> def argsort(a, axis=np._NoValue, kind=None, order=None, endwith=True, fill_value <ide> argsort.__doc__ = MaskedArray.argsort.__doc__ <ide> <ide> def sort(a, axis=-1, kind=None, order=None, endwith=True, fill_value=None): <del> "Function version of the eponymous method." <add> ""...
1
Text
Text
fix broken link to 1.7 hub api
09742bcd692b2594800631e5c5c16d76dcf0e9f2
<ide><path>docs/reference/api/docker-io_api.md <ide> weight = 99 <ide> <ide> # Docker Hub API <ide> <del>This API is deprecated as of 1.7. To view the old version, see the [Docker Hub API](docker-io_api.md) in the 1.7 documentation. <add>This API is deprecated as of 1.7. To view the old version, see the [Docker Hub ...
1
PHP
PHP
apply styleci fixes
acfdc3e5b90a43eeede56f496356009fa87bdee8
<ide><path>src/Illuminate/Foundation/Validation/ValidationException.php <ide> <ide> class ValidationException extends Exception <ide> { <del> /** <del> * The validator instance. <del> * <del> * @var \Illuminate\Validation\Validator <del> */ <del> public $validator; <add> /** <add> * The validator instance. ...
1
PHP
PHP
remove an invalid option for json_encode
11f4590a55e8b9b6c921bff6cb4ebd25c7680585
<ide><path>src/View/JsonView.php <ide> protected function _serialize($serialize) <ide> $data = $this->_dataToSerialize($serialize); <ide> <ide> $jsonOptions = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | <del> JSON_ERROR_INF_OR_NAN | JSON_PARTIAL_OUTPUT_ON_ERROR; <add> ...
1
Javascript
Javascript
add getstats again - remove breaking change
b863851ce969317688799b754131e3546206c7ad
<ide><path>lib/Compilation.js <ide> const ModuleTemplate = require("./ModuleTemplate"); <ide> const Dependency = require("./Dependency"); <ide> const ChunkRenderError = require("./ChunkRenderError"); <ide> const CachedSource = require("webpack-sources").CachedSource; <add>const Stats = require("./Stats"); <ide> <ide> ...
1
Ruby
Ruby
fix indentation issuing warning
9e7bcaa9b394277c3549d706b68b7c9372432638
<ide><path>actionpack/lib/action_dispatch/journey/nfa/transition_table.rb <ide> def inverted <ide> <ide> @inverted <ide> end <del> end <add> end <ide> end <ide> end <ide> end
1
Javascript
Javascript
log an error message to console as well
e8e2370ed102ae6994739b178744fcf37266b31d
<ide><path>src/auto-update-manager.js <ide> export default class AutoUpdateManager { <ide> this.emitter.emit('update-not-available') <ide> }), <ide> applicationDelegate.onUpdateError((message) => { <add> console.error(message) <ide> this.emitter.emit('update-error', message) <ide> ...
1
Text
Text
update explamples to spanish
d3d02afa8d65944ee0330764ed891cbb22aa723a
<ide><path>guide/spanish/ruby/ruby-comments/index.md <ide> --- <ide> title: Ruby Comments <del>localeTitle: Rubí Comentarios <add>localeTitle: Ruby Comentarios <ide> --- <del># Rubí Comentarios <add># Ruby Comentarios <ide> <ide> Los comentarios son líneas de anotación dentro del código que se ignoran en tiempo de eje...
1
Go
Go
fix some output information for container test
92ee5a5d3aaefe2fc3b800de67d2ff0acd6a8aae
<ide><path>container/memory_store_test.go <ide> func TestListContainers(t *testing.T) { <ide> t.Fatalf("expected list size 2, got %v", len(list)) <ide> } <ide> if list[0].ID != "id2" { <del> t.Fatalf("expected older container to be first, got %v", list[0].ID) <add> t.Fatalf("expected id2, got %v", list[0].ID) <id...
2
Ruby
Ruby
add `tap#contents` methods
785750ee6364b14e47dfac352372cb51a83ee9c9
<ide><path>Library/Homebrew/cmd/tap-info.rb <ide> def print_tap_info(taps) <ide> if tap.installed? <ide> info += tap.pinned? ? "pinned" : "unpinned" <ide> info += ", private" if tap.private? <del> if (formula_count = tap.formula_files.size).positive? <del> info += ", #{Fo...
2
Text
Text
fix broken link in collaborator_guide.md
51d8fd3d4e69ec602f038c8ecae6c08c5dad8d40
<ide><path>COLLABORATOR_GUIDE.md <ide> Collaborators or additional evidence that the issue has relevance, the <ide> issue may be closed. Remember that issues can always be re-opened if <ide> necessary. <ide> <del>[**See "Who to CC in issues"**](./onboarding-extras.md#who-to-cc-in-issues) <add>[**See "Who to CC in issu...
1
PHP
PHP
deprecate the read side of join() and from()
a1ab1b5c62810e9872717560dc24f479dcaaa245
<ide><path>src/Database/Query.php <ide> public function modifier($modifiers, $overwrite = false) <ide> public function from($tables = [], $overwrite = false) <ide> { <ide> if (empty($tables)) { <add> deprecationWarning('Using Query::from() to read state is deprecated. Use clause("from") inste...
3
Text
Text
fix initial example in entityruler api docs
d2c474cbb76c3f680660d60da866903ce4893756
<ide><path>website/docs/api/entityruler.md <ide> be a token pattern (list) or a phrase pattern (string). For example: <ide> > <ide> > ```python <ide> > # Construction via create_pipe <del>> ruler = nlp.create_pipe("entityruler") <add>> ruler = nlp.create_pipe("entity_ruler") <ide> > <ide> > # Construction from class <i...
1
Java
Java
fix warnings and polish localsessionfactorybuilder
5360bd899d68bf01ec916c429296735b34e172c3
<ide><path>org.springframework.orm/src/main/java/org/springframework/orm/hibernate4/LocalSessionFactoryBuilder.java <ide> * adding {@link SpringSessionContext} as a default and providing convenient ways <ide> * to specify a DataSource and an application class loader. <ide> * <del> * <p>This is designed for programma...
1
Javascript
Javascript
upgrade dedupeplugin to es6
771c6b287702bd15a7cce8dd77aed119f76f0dd6
<ide><path>lib/optimize/DedupePlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>function DedupePlugin() {} <del>module.exports = DedupePlugin; <add>"use strict"; <add> <add>class DedupePlugin { <add> apply(compiler) { <add> compiler.plugin...
1
Ruby
Ruby
use array arithmetic rather than create sets
6e14feb978434802e7a46b26d99d64e31f545fe2
<ide><path>activerecord/lib/active_record/associations/association_collection.rb <ide> def replace(other_array) <ide> other_array.each { |val| raise_on_type_mismatch(val) } <ide> <ide> load_target <del> other = other_array.size < 100 ? other_array : other_array.to_set <del> current = @t...
1
Python
Python
apply `raise` fixes. closes
3655b732bd08022dab8498b44191d6c4049bc7a8
<ide><path>doc/numpybook/comparison/weave/filter.py <ide> <ide> def filter(a): <ide> if a.ndim != 2: <del> raise ValueError, "a must be 2-d" <add> raise ValueError("a must be 2-d") <ide> code = r""" <ide> int i,j; <ide> for(i=1;i<Na[0]-1;i++) { <ide><path>doc/numpybook/comparison/weave/in...
12
Text
Text
add quotes for event names + fix similar nits
9c8857d9461210185e7272a15a1a2f5b75b31faa
<ide><path>doc/api/assert.md <ide> added: v0.1.21 <ide> changes: <ide> - version: REPLACEME <ide> pr-url: https://github.com/nodejs/node/pull/18418 <del> description: Calling `assert.fail` with more than one argument is deprecated <del> and emits a warning. <add> description: Calling `assert...
26
Javascript
Javascript
simplify report uncaught exception logic
dc1d331403feb3b9d1ca1a2bd306ca7428414ed8
<ide><path>lib/internal/process/execution.js <ide> function createFatalException() { <ide> if (er == null || er.domain == null) { <ide> try { <ide> const report = internalBinding('report'); <del> if (report != null) { <del> if (require('internal/options').getOptionValue( <del> ...
1
Javascript
Javascript
remove material.skinning from webglshadowmap
42e26f906d1f25a701a345fd24bf9b209446fac4
<ide><path>src/renderers/webgl/WebGLShadowMap.js <ide> function WebGLShadowMap( _renderer, _lights, _objects, capabilities ) { <ide> <ide> var depthMaterial = depthMaterialTemplate.clone(); <ide> depthMaterial.morphTargets = useMorphing; <del> depthMaterial.skinning = useSkinning; <ide> <ide> _depthMaterials[ ...
1
PHP
PHP
update docblocks for deletemany()
f235093c8715ff9ce2b0f19dec2f8ff69b6367fb
<ide><path>src/ORM/Table.php <ide> public function delete(EntityInterface $entity, $options = []): bool <ide> * <ide> * @param \Cake\Datasource\EntityInterface[]|\Cake\Datasource\ResultSetInterface $entities Entities to delete. <ide> * @param array|\ArrayAccess $options Options used when calling Table::s...
1
Python
Python
extend http extra_options to livyhook and operator
70731073d0509ac44777624c03cd9eeae71e6fea
<ide><path>airflow/providers/apache/livy/hooks/livy.py <ide> class LivyHook(HttpHook, LoggingMixin): <ide> conn_type = 'livy' <ide> hook_name = 'Apache Livy' <ide> <del> def __init__(self, livy_conn_id: str = default_conn_name) -> None: <add> def __init__( <add> self, livy_conn_id: str = default_c...
4
Python
Python
check submodules on sdist
4cd72742079c6eba4ec0803975c43b779545b537
<ide><path>setup.py <ide> def configuration(parent_package='',top_path=None): <ide> <ide> return config <ide> <add>def check_submodules(): <add> """ verify that the submodules are checked out and clean <add> use `git submodule update --init`; on failure <add> """ <add> if not os.path.exists('.git'...
1
PHP
PHP
fix cs error
8606d5e421258cdbdcb93a6e3394b560c5c29232
<ide><path>src/Utility/Hash.php <ide> public static function sort(array $data, string $path, $dir = 'asc', $type = 're <ide> $dir = strtolower($dir); <ide> } <ide> if (!in_array($dir, [\SORT_ASC, \SORT_DESC], true)) { <del> $dir = ($dir === 'asc') ? \SORT_ASC : \SORT_DESC; <add> ...
1
Text
Text
fix code block
78a1bc3a1c510e08fd1aff81f7d6f957863ae070
<ide><path>curriculum/challenges/arabic/01-responsive-web-design/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element.arabic.md <ide> localeTitle: تحسين إمكانية الوصول إلى المحتوى الص <ide> --- <ide> <ide> ## Description <del><section id="description"> يمنح عنصر HTML5 <code>audio</code> ...
1
Text
Text
add docs about local_assigns on guides
24bcfed15dceb16641896d4b1a875e043d863221
<ide><path>guides/source/layouts_and_rendering.md <ide> You can also pass local variables into partials, making them even more powerful <ide> <ide> Although the same partial will be rendered into both views, Action View's submit helper will return "Create Zone" for the new action and "Update Zone" for the edit action....
1
Javascript
Javascript
remove old bundler code from server class
e9393f694d8f0d0190a3576fd65a65f747f8cce2
<ide><path>local-cli/server/util/__tests__/getInverseDependencies-test.js <del>/** <del> * Copyright (c) 2015-present, Facebook, Inc. <del> * All rights reserved. <del> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of this source tree. An addi...
3
Python
Python
keep input types with lambda layers
328df7303425c2e3bf4274bb1eb0a2040bab5d8c
<ide><path>keras/layers/core.py <ide> from ..utils.generic_utils import func_load <ide> from ..utils.generic_utils import deserialize_keras_object <ide> from ..utils.generic_utils import has_arg <del>from ..utils import conv_utils <ide> from ..legacy import interfaces <ide> <ide> <ide> def __init__(self, function, ou...
2
Ruby
Ruby
add missing require to test_env
826064880e8c1b0b2153b2157294bba9b8eaaf5e
<ide><path>Library/Homebrew/test/test_ENV.rb <ide> require 'testing_env' <ide> require 'utils' <add>require 'hardware' <ide> require 'extend/ENV' <ide> ENV.extend(HomebrewEnvExtension) <ide>
1
Python
Python
add codecarbon integration
037e466b1056b49f29e731c4ebe15889c227a63c
<ide><path>setup.py <ide> _deps = [ <ide> "Pillow", <ide> "black==21.4b0", <add> "codecarbon==1.2.0", <ide> "cookiecutter==1.7.2", <ide> "dataclasses", <ide> "datasets", <ide> def run(self): <ide> extras["speech"] = deps_list("soundfile", "torchaudio") <ide> extras["vision"] = deps_list("Pillow")...
3
Javascript
Javascript
fix warning message for using react.dom.* as type
810582d114f65b3f86301d53f34235b68d6c7f1e
<ide><path>src/core/ReactLegacyElement.js <ide> function warnForNonLegacyFactory(type) { <ide> warning( <ide> false, <ide> 'Do not pass React.DOM.' + type.type + ' to JSX or createFactory. ' + <del> 'Use the string "' + type + '" instead.' <add> 'Use the string "' + type.type + '" instead.' <ide> ); <...
1
Javascript
Javascript
fix viewpager warning
e3b6104810f34e68439234be22a36f804c2ca26c
<ide><path>Libraries/Components/ViewPager/ViewPagerAndroid.android.js <ide> var ViewPagerAndroid = React.createClass({ <ide> }], <ide> collapsable: false, <ide> }; <del> if (child.type && child.type.displayName && (child.type.displayName !== 'View')) { <add> if (child.type && <add> ...
1
Text
Text
fix typo in mkdir example
33f80a864156a77545134503398536c5702b73d7
<ide><path>doc/api/fs.md <ide> import { mkdir } from 'node:fs/promises'; <ide> <ide> try { <ide> const projectFolder = new URL('./test/project/', import.meta.url); <del> const createDir = await mkdir(path, { recursive: true }); <add> const createDir = await mkdir(projectFolder, { recursive: true }); <ide> <ide> ...
1
Java
Java
low the priority for logging events in fabric
b2b2caa3444db4d21566ef918add7235f709538d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> public long createEventTarget(int reactTag) { <ide> long context = mJSContext.get(); <ide> long eventTarget = mBinding.createEventTarget(context, instanceHandle); <ide> if (DEBUG) { <del> Log.e( <add> Log.d(...
1
Javascript
Javascript
add $q.always() method
6605adf6d96cee2ef53dfad24e99d325df732cab
<ide><path>src/ng/q.js <ide> * This method *returns a new promise* which is resolved or rejected via the return value of the <ide> * `successCallback` or `errorCallback`. <ide> * <add> * - `always(callback)` – allows you to observe either the fulfillment or rejection of a promise, <add> * but to do so without ...
2
Text
Text
fix coffee typo
e190c27d10034d4c4ee286839351876bb4ec8dc2
<ide><path>README.md <ide> Just like shipping containers, Standard Containers define a set of STANDARD OPER <ide> <ide> ### 2. CONTENT-AGNOSTIC <ide> <del>Just like shipping containers, Standard Containers are CONTENT-AGNOSTIC: all standard operations have the same effect regardless of the contents. A shipping contai...
1
Python
Python
add comments to explain why we use model.call
71c98d5de8d68313c2cf9a0d851943926f4553fb
<ide><path>official/vision/beta/serving/detection.py <ide> def serve(self, images: tf.Tensor): <ide> <ide> input_image_shape = image_info[:, 1, :] <ide> <add> # To overcome keras.Model extra limitation to save a model with layers that <add> # have multiple inputs, we use `model.call` here to trigger the for...
1
PHP
PHP
apply fixes from styleci
fdc1e61d901ec6f660b505630e34f292495497bb
<ide><path>src/Illuminate/Database/Eloquent/Relations/Relation.php <ide> public function touch() <ide> <ide> if (! $model::isIgnoringTouch()) { <ide> $this->rawUpdate([ <del> $model->getUpdatedAtColumn() => $model->freshTimestampString() <add> $model->getUpdatedAtColum...
1
Javascript
Javascript
enable export mangling for system.js externals
c94aea82ccb4490a10c6e638c7b19a6f15327f9c
<ide><path>lib/Dependency.js <ide> /** <ide> * @typedef {Object} ExportsSpec <ide> * @property {(string | ExportSpec)[] | true | null} exports exported names, true for unknown exports or null for no exports <add> * @property {boolean=} canMangle can the export be renamed (defaults to true) <ide> * @property {Module[...
12
PHP
PHP
add limit bindings for having between + tests
c6b8168e6cbbe339fdc3af5ccdded545779965df
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function havingBetween($column, array $values, $boolean = 'and', $not = f <ide> <ide> $this->havings[] = compact('type', 'column', 'values', 'boolean', 'not'); <ide> <del> $this->addBinding($this->cleanBindings($values), 'having'); <add>...
2
Java
Java
improve compose() generics
a3ccbf906bed6565829fe3bdd8659443549a71e3
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public final <U> Single<U> collectInto(final U initialItem, BiConsumer<? super U <ide> * @return the source Publisher, transformed by the transformer function <ide> * @see <a href="https://github.com/ReactiveX/RxJava/wiki/Implementing-Your-Own-Operator...
5
Ruby
Ruby
introduce block form of mkdir
554d5a2670fbc75279dbc0a13b3c9dc94fbef7e6
<ide><path>Library/Homebrew/formula.rb <ide> def var; HOMEBREW_PREFIX+'var' end <ide> def plist_name; 'homebrew.mxcl.'+name end <ide> def plist_path; prefix+(plist_name+'.plist') end <ide> <add> # A version of mkdir that also changes to that folder in a block <add> def mkdir name, &block <add> FileUtils.mkdir...
1
Text
Text
add example links
bbaf908bb236e421a52b984048fc64cd725eaa2c
<ide><path>docs/upgrading/upgrading-your-ui-theme.md <ide> atom-text-editor::shadow .highlight.my-linter { <ide> } <ide> ``` <ide> <add>Check out the [find-and-replace][https://github.com/atom/find-and-replace/blob/master/stylesheets/find-and-replace.less#L10] package for another example of using `::shadow` to pierce ...
1
Python
Python
fix full_pod_spec for k8spodoperator
221f809c1b4e4b78d5a437d012aa7daffd8410a4
<ide><path>airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py <ide> def create_pod_request_obj(self) -> k8s.V1Pod: <ide> if self.pod_template_file: <ide> self.log.debug("Pod template file found, will parse for base pod") <ide> pod_template = pod_generator.PodGenerator.deserial...
2
Text
Text
add security non-events
6f06e98f57fe4564003d5b2adbe4ef2fcfbe8df8
<ide><path>docs/security/non-events.md <add><!--[metadata]> <add>+++ <add>title = "Docker Security Non-events" <add>description = "Review of security vulnerabilities Docker mitigated" <add>keywords = ["Docker, Docker documentation, security, security non-events"] <add>[menu.main] <add>parent = "smn_secure_docker" <add...
1
Javascript
Javascript
fix test-process-uptime.js test
3c0dd8196aeb2352a16ab41c296165747e8d52f3
<ide><path>test/pummel/test-process-uptime.js <add>// Copyright Joyent, Inc. and other Node contributors. <add>// <add>// Permission is hereby granted, free of charge, to any person obtaining a <add>// copy of this software and associated documentation files (the <add>// "Software"), to deal in the Software without res...
2
Ruby
Ruby
remove an extra comment [ci skip]
718d3b0bc53bb5da4e5fc32d1a27f2119e6c747c
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def register_observer(observer) <ide> # Register an Interceptor which will be called before mail is sent. <ide> # Either a class, string or symbol can be passed in as the Interceptor. <ide> # If a string or symbol is passed in it will be camelize...
1
Python
Python
support custom ops for video ssl
465b85da09bc03135dea8957f335791d04ad4732
<ide><path>official/vision/beta/projects/video_ssl/ops/video_ssl_preprocess_ops.py <add># Lint as: python3 <add># Copyright 2021 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the Licen...
2
Go
Go
remove unused var 'errtlsconfigunavailable'
1ea0be9dbca79efc239a49a802189f2b6d5ae7c0
<ide><path>client/transport.go <ide> package client <ide> <ide> import ( <ide> "crypto/tls" <del> "errors" <ide> "net/http" <ide> ) <ide> <del>var errTLSConfigUnavailable = errors.New("TLSConfig unavailable") <del> <ide> // transportFunc allows us to inject a mock transport for testing. We define it <ide> // here s...
1
Ruby
Ruby
generalize method for setting cpu flags
55d4f4874660c768d28dce18155da627a899a176
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def set_cflags f <ide> end <ide> end <ide> <del> def set_cpu_cflags default, map = {} <add> # Sets architecture-specific flags for every environment variable <add> # given in the list `flags`. <add> def set_cpu_flags flags, default, map = {} <ide> cflags =~...
1
Text
Text
remove rnpm references in favour of react-native
1f9b765f8159216ca7696a0d818acfef7d1e4aff
<ide><path>docs/LinkingLibraries.md <ide> error as soon as you try to use the library._ <ide> <ide> ### Automatic linking <ide> <del>"[rnpm](http://github.com/rnpm/rnpm)" is a community project that allows linking of native dependencies automatically: <del> <ide> #### Step 1 <ide> <del>Install `rnpm`: <del>```bash <...
1
Javascript
Javascript
protect the case where tail is empty
daf5d6034e6234e2917132ba3948fdbf8f998f2d
<ide><path>dist/Immutable.js <ide> function setVectorBounds(vector, begin, end) { <ide> node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail; <ide> } <ide> if (newSize < oldSize) { <del> newTail = newTail.removeAfter(owner, 0, newSize); <add> newTail = newTail && newTail.removeAfter(owner, 0, newSize); ...
3
Javascript
Javascript
add benches for fs.stat & fs.statsync
450ee635846dc583c893f2e5ee80896ca02461e1
<ide><path>benchmark/fs/bench-stat.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const fs = require('fs'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [1e4], <add> kind: ['lstat', 'stat'] <add>}); <add> <add> <add>function main(conf) { <add> const n = conf.n >>> 0; <...
2
Text
Text
fix misspelt keyword in stringstore example
322c5a3ac4da412582e684e8ec2355b68efe7b27
<ide><path>website/docs/api/stringstore.md <ide> Load state from a binary string. <ide> > #### Example <ide> > <ide> > ```python <del>> fron spacy.strings import StringStore <add>> from spacy.strings import StringStore <ide> > store_bytes = stringstore.to_bytes() <ide> > new_store = StringStore().from_bytes(store_bytes...
1
Javascript
Javascript
remove domain specific code
fc96743454db30fbf9b4c4dc9fda0f260f8d35a6
<ide><path>lib/timers.js <ide> Timeout.prototype.unref = function() { <ide> this._handle.owner = this; <ide> this._handle[kOnTimeout] = unrefdHandle; <ide> this._handle.start(delay); <del> this._handle.domain = this.domain; <ide> this._handle.unref(); <ide> } <ide> return this; <ide><path>test/pa...
2
Java
Java
apply allowedoriginpatterns in sockjsservice
8130bf505fa69a00e0d566db36e543a9cf030683
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/support/AbstractSockJsService.java <ide> import java.util.LinkedHashSet; <ide> import java.util.List; <ide> import java.util.Random; <del>import java.util.Set; <ide> import java.util.concurrent.TimeUnit; <ide> <ide> import javax.servlet.ht...
3
Python
Python
fix exception msg matching in tests
59c20848a53402bfcf70625390391054aabac760
<ide><path>numpy/lib/tests/test_loadtxt.py <ide> def test_manual_universal_newlines(self, newline): <ide> <ide> <ide> def test_delimiter_comment_collision_raises(): <del> with pytest.raises(TypeError, match="control characters.*are identical"): <add> with pytest.raises(TypeError, match=".*control characters.*in...
1
PHP
PHP
add afterrender hook for widgets
403af312e049b763963affe2309d1f1c8473962f
<ide><path>src/View/Helper/FormHelper.php <ide> public function widget($name, array $data = []) { <ide> } <ide> unset($data['secure']); <ide> <del> return $widget->render($data); <add> $out = $widget->render($data); <add> if (method_exists($widget, 'afterRender')) { <add> $widget->afterRender($this->_View, $d...
1
Java
Java
adjust webflux behavior for @requestpart list<t>
ff9daa93775961ea3c6561c760d40f43103fdbba
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, V...
2
Java
Java
add missing space in aopconfigexception message
e7d489667c06b76a8fdb248259eba6f1b7f31062
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactoryBean.java <ide> private Advisor namedBeanToAdvisor(Object next) { <ide> // We expected this to be an Advisor or Advice, <ide> // but it wasn't. This is a configuration error. <ide> throw new AopConfigException("Unknown advisor ty...
1
Go
Go
keep old network ids
e017717d96540dd263d95f90fdb2457928909924
<ide><path>daemon/daemon_windows.go <ide> func (daemon *Daemon) initNetworkController(config *config.Config, activeSandbox <ide> controller.WalkNetworks(s) <ide> <ide> drvOptions := make(map[string]string) <del> <add> nid := "" <ide> if n != nil { <add> nid = n.ID() <add> <ide> // global networks should no...
1
Javascript
Javascript
fix import order
d9d2983225f388cba4cb88b462dd81ee45fce66e
<ide><path>lib/WebpackOptionsDefaulter.js <ide> "use strict"; <ide> <ide> const findCacheDir = require("find-cache-dir"); <del>const path = require("path"); <ide> const os = require("os"); <add>const path = require("path"); <ide> const OptionsDefaulter = require("./OptionsDefaulter"); <ide> const Template = require("....
1
Text
Text
add the docstring style guide
2e88fa83600ac690dc38fb1d9b1ebf329e3da373
<ide><path>CONTRIBUTING.md <ide> need to follow the output of the command to resolve them manually. <ide> If you do not want to auto format the code but only show the lint errors, you <ide> can run `sh shell/lint.sh` **at the root directory of the repo**. <ide> <add>### Docstrings <add> <add>We do not have an automate...
1
Text
Text
impove sentence structure. closes
1a7f622edf1dbf2ba40ebe748756e303913d3044
<ide><path>README.md <ide> This is how we use the donations: <ide> <ide> <h2 align="center">Other Backers and Sponsors</h2> <ide> <del>We had other sources of donations before starting to use OpenCollective (or people that can't donate via OpenCollective). We want to acknowledge these sponsors and backers, but donati...
1
Javascript
Javascript
fix typo in lib/buffer.js
4489a48dff3f44ee570a9dde6bb2428bd810b03d
<ide><path>lib/buffer.js <ide> Buffer.prototype.compare = function compare(target, <ide> // - buffer - a Buffer to search <ide> // - val - a string, Buffer, or number <ide> // - byteOffset - an index into `buffer`; will be clamped to an int32 <del>// - encoding - an optional encoding, relevant is val is a string <add>/...
1
Python
Python
remove mutable state from axisconcatenator
37d756c46424b2da04a87e7df45a6c64f9b50117
<ide><path>numpy/lib/index_tricks.py <ide> from numpy.core.numerictypes import find_common_type, issubdtype <ide> <ide> from . import function_base <del>import numpy.matrixlib as matrix <add>import numpy.matrixlib as matrixlib <ide> from .function_base import diff <ide> from numpy.core.multiarray import ravel_multi_in...
2
Ruby
Ruby
add test for casks
cf6ff4d84ce30d79b2247d95daff96f01b917793
<ide><path>Library/Homebrew/test/cmd/--cache_spec.rb <ide> .and not_to_output.to_stderr <ide> .and be_a_success <ide> end <add> <add> it "prints the cache files for a given Cask" do <add> expect { brew "--cache", cask_path("local-caffeine") } <add> .to output(%r{cask: #{HOMEBREW_CACHE}/downloads/...
1
Javascript
Javascript
drain messages from internal message port
c61327d37673ab2ea454d14c36329b113aaca32a
<ide><path>lib/internal/worker.js <ide> class Worker extends EventEmitter { <ide> [kOnExit](code) { <ide> debug(`[${threadId}] hears end event for Worker ${this.threadId}`); <ide> MessagePortPrototype.drain.call(this[kPublicPort]); <add> MessagePortPrototype.drain.call(this[kPort]); <ide> this[kDispose...
2
Text
Text
add v3.11.1 to changelog
d97d74ddff1a2407c5012777cfe185f85db0495d
<ide><path>CHANGELOG.md <ide> - [#18150](https://github.com/emberjs/ember.js/pull/18150) [BUGFIX] Fix a memory retention issue with string-based event listeners <ide> - [#18124](https://github.com/emberjs/ember.js/pull/18124) [CLEANUP] Remove deprecated `NAME_KEY` <ide> <add>### v3.11.1 (June 27, 2019) <add> <add>- [#...
1
Javascript
Javascript
add config to enable sync scheduling by default
78aef38bfa6865b409b30ce143c50635f93b3cc3
<ide><path>src/renderers/shared/fiber/ReactFiberReconciler.js <ide> export type HostConfig<T, P, I, TI, C> = { <ide> removeChild(parentInstance : I, child : I | TI) : void, <ide> <ide> scheduleAnimationCallback(callback : () => void) : void, <del> scheduleDeferredCallback(callback : (deadline : Deadline) => void)...
2
Javascript
Javascript
fix csp errors in with-strict-csp-app example
42c309ad3771a4c77acb4a2dca539d8935eff51f
<ide><path>examples/with-strict-csp/pages/_document.js <ide> const cspHashOf = (text) => { <ide> hash.update(text) <ide> return `'sha256-${hash.digest('base64')}'` <ide> } <del> <ide> export default class MyDocument extends Document { <ide> render() { <del> const csp = `default-src 'self'; script-src 'self' ${...
1
Python
Python
remove unused variables
d79703f39f1273e2c5ec2bc6732226634fcac49a
<ide><path>glances/exports/glances_csv.py <ide> def update(self, stats): <ide> for item in all_stats[i]: <ide> # First line: header <ide> if self.first_line: <del> fieldnames = item.keys() <ide> cs...
5
Ruby
Ruby
remove more codes
e66bf6f5e3085014976ff8fa3981813b77510b69
<ide><path>activerecord/lib/active_record/association_preload.rb <ide> def preload_belongs_to_association(records, reflection, preload_options={}) <ide> options = reflection.options <ide> primary_key_name = reflection.primary_key_name <ide> <add> klasses_and_ids = {} <add> <ide> if optio...
1
PHP
PHP
remove some customization
e271b486d86f4b7c428371a800e64050692fd606
<ide><path>src/Illuminate/Auth/AuthManager.php <ide> public function createTokenDriver($name, $config) <ide> $guard = new TokenGuard( <ide> $this->createUserProvider($config['source']), <ide> $this->app['request'], <del> Arr::get($config, 'input', 'api_token'), <del> ...
2
Text
Text
modify unscoped usage guide to include chaining
b20ef7e92f718cf00da9c0e3a4914fc949e2fe72
<ide><path>guides/source/active_record_querying.md <ide> Client.unscoped.load <ide> <ide> This method removes all scoping and will do a normal query on the table. <ide> <del>Note that chaining `unscoped` with a `scope` does not work. In these cases, it is <del>recommended that you use the block form of `unscoped`: <a...
1
Text
Text
add pretrained checkpoints and tfhub links
61aee86e4cc2a7c5aac82c01bef0173dda81a0aa
<ide><path>official/vision/image_classification/README.md <ide> uses a ResNet50 model implemented in [`resnet_model.py`](./resnet_model.py). <ide> To use <ide> either dataset, make sure that you have the latest version of TensorFlow <ide> installed and <del>[add the models folder to your Python path](/official/#running...
1
Java
Java
use list.of() and set.of() where feasible
720261db26ea917cd979bbac2cd7db1ff70928ee
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java <ide> /* <del> * Copyright 2002-2021 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * yo...
11
Python
Python
add tests for security views
17fbd7a9d8930a5fd252b3db8f6574d4375b8a52
<ide><path>tests/www/test_views.py <ide> def test_home(self): <ide> resp = self.client.get('home', follow_redirects=True) <ide> self.check_content_in_response('DAGs', resp) <ide> <add> def test_users_list(self): <add> resp = self.client.get('users/list', follow_redirects=True) <add> se...
1
Ruby
Ruby
allow reseting of request variants
e1fb3483d6402bd66c41a12d158fd1c987fac983
<ide><path>actionpack/lib/action_dispatch/http/mime_negotiation.rb <ide> def formats <ide> end <ide> end <ide> end <add> <ide> # Sets the \variant for template. <ide> def variant=(variant) <ide> if variant.is_a?(Symbol) <ide> @variant = [variant] <del> elsif ...
2
Ruby
Ruby
remove extraneous files
732c6efa19663f69aad52677cbf41b181061dfd9
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> def bump_args <ide> Homebrew::CLI::Parser.new do <ide> usage_banner <<~EOS <ide> `bump` <del> <ide> Display out-of-date brew formulae, the latest version available, and whether a pull request has been opened. <ide> EOS <ide> end <ide>...
5
Text
Text
add log.d hint
36656e35c928e69b9648b24f6c9822c5d0b8c14c
<ide><path>guide/english/android-development/core-components/index.md <ide> An _activity_ is a component that has a user interface and represents a single s <ide> This call is often used when the user hits the back button, or closes the instance of the app. <ide> <ide> #### Sample code to understand Activity Lifecycle...
1
Javascript
Javascript
remove typo in settimeout comment
3f6450b638a1ddb6ce0aceebaae2aae86c8499f5
<ide><path>lib/net.js <ide> Socket.prototype.setTimeout = function(msecs, callback) { <ide> // Type checking identical to timers.enroll() <ide> msecs = validateTimerDuration(msecs); <ide> <del> // Attempt to clear an existing timer lear in both cases - <add> // Attempt to clear an existing timer in both cases - ...
1
Javascript
Javascript
update broken types in type parser
9037ad3e78324be6952ea114bf1fd701a2803516
<ide><path>tools/doc/type-parser.js <ide> const jsPrimitives = { <ide> <ide> const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`; <ide> const jsGlobalTypes = [ <del> 'Array', 'ArrayBuffer', 'ArrayBufferView', 'DataView', 'Date', 'Error', <add> 'Array', 'ArrayBuffer', 'DataView', 'Date', 'Error', <id...
1
Javascript
Javascript
remove comments from migration
f656311b3e2c320af7174ceb6c3fc36e2b4d976c
<ide><path>seed/loopbackMigration.js <ide> function createConnection(URI) { <ide> } <ide> <ide> function createQuery(db, collection, options, batchSize) { <del> return Rx.Observable.create(function (observer) { <add> return Rx.Observable.create(function(observer) { <ide> var cursor = db.collection(collection).fi...
1
PHP
PHP
apply base64 encoding after helper serialization
803e7be363868a808c5a00572f477ae62f477995
<ide><path>lib/Cake/View/Helper/CacheHelper.php <ide> protected function _writeFile($content, $timestamp, $useCallbacks = false) { <ide> $response = new CakeResponse(array("charset" => Configure::read("App.encoding"))); <ide> $controller = new ' . $this->_View->name . 'Controller($request, $response); <ide> ...
1
Python
Python
fix tf input for np.ndarray
4fbcf8ea496bece21b9442d71280257b9953152a
<ide><path>src/transformers/modeling_tf_utils.py <ide> def input_processing(func, config, input_ids, **kwargs): <ide> signature.pop("kwargs", None) <ide> parameter_names = list(signature.keys()) <ide> output = {} <del> allowed_types = (tf.Tensor, bool, int, ModelOutput, tuple, list, dict) <add> allowe...
2
Javascript
Javascript
upgrade localmodule to es6
9687015e07c0c6b669b4afeae3595a2adf19bfc4
<ide><path>lib/dependencies/LocalModule.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>function LocalModule(module, name, idx) { <del> this.module = module; <del> this.name = name; <del> this.idx = idx; <del> this.used = false; <del>} <del>modu...
1