content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
PHP
PHP
add support for newqueryforrestoration from queues
54b2cb66de5ea72a4cd392caf473dc94006401f1
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function newQueryWithoutScope($scope) <ide> return $builder->withoutGlobalScope($scope); <ide> } <ide> <add> /** <add> * Get a new query to restore one or more models by the queueable IDs. <add> * <add> * @param array|int $...
2
Javascript
Javascript
bring horizon example up-to-date
eb15be6325fba5333629af74ad9f561bf6cc4505
<ide><path>examples/horizon/horizon.js <del>var w = 960, <del> h = 40; <add>var width = 960, <add> height = 40; <ide> <ide> var chart = horizonChart() <del> .width(w) <del> .height(h) <add> .width(width) <add> .height(height) <ide> .bands(5) <ide> .mode("offset") <ide> .interpolate("basis...
1
Ruby
Ruby
canonicalize `input` in `initialize`
3ff9c5335d8c397c2257a4e59c49ad095074b73e
<ide><path>Library/Homebrew/cask/lib/hbc/system_command.rb <ide> def initialize(executable, args: [], sudo: false, input: [], print_stdout: false <ide> @executable = executable <ide> @args = args <ide> @sudo = sudo <del> @input = input <add> @input = [*input] <ide> @print_stdout = prin...
1
Text
Text
fix spelling of associations
c5c4fc155b49bcf5c99cd7f453153d98c13810d1
<ide><path>guides/source/active_record_migrations.md <ide> add_belongs_to :taggings, :taggable, polymorphic: true <ide> ``` <ide> <ide> The polymorphic option will create two columns on the taggings table which can <del>be used for polymorphic assocations: `taggable_type` and `taggable_id`. <add>be used for polymorphi...
1
Python
Python
improve system tests for cloud build
49abce52178c81954f8a25608f70ffe02fcf7b19
<ide><path>airflow/providers/google/cloud/example_dags/example_cloud_build.py <ide> GCP_PROJECT_ID = os.environ.get("GCP_PROJECT_ID", "example-project") <ide> <ide> GCP_SOURCE_ARCHIVE_URL = os.environ.get("GCP_CLOUD_BUILD_ARCHIVE_URL", "gs://example-bucket/file") <del>GCP_SOURCE_REPOSITORY_NAME = os.environ.get("GCP_C...
3
Javascript
Javascript
remove getmaxviews() from multiview
f1936dc7af6bbcb34725e497f604d77f4039dea8
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> <ide> if ( capabilities.multiview ) { <ide> <del> multiview.attachRenderTarget( camera ); <add> multiview.attachCamera( camera ); <ide> <ide> } <ide> <ide><path>src/renderers/webgl/WebGLCapabilities.js <ide> functio...
4
Javascript
Javascript
fix error when trying to reload page from worker
0ddddf46b5eda704bea70c2704693c2bf9d4dd44
<ide><path>hot/dev-server.js <ide> if (module.hot) { <ide> if (["abort", "fail"].indexOf(status) >= 0) { <ide> log( <ide> "warning", <del> "[HMR] Cannot apply update. Need to do a full reload!" <add> `[HMR] Cannot apply update. ${( <add> typeof window !== "undefined" <add> ? "Need ...
1
Java
Java
update copyright date
9f7a94058a4bbc967fe47bfe6a82d88cb3feddfb
<ide><path>spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use this fi...
4
Javascript
Javascript
add mockingbot to showcase
da9e9e709b42a8875d38977c4ae37c88de92b084
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/yazboz-batak-esli-batak-okey/id1048620855?ls=1&mt=8', <ide> author: 'Melih Mucuk', <ide> }, <add> { <add> name: 'MockingBot', <add> icon: 'https://s3.cn-north-1.amazonaws.com.cn/modao/downloa...
1
Ruby
Ruby
remove gem setup for stackprof
d4b88b1b55eb9505fac9f2aaab10b59d25f5bab2
<ide><path>Library/Homebrew/brew.rb <ide> # frozen_string_literal: true <ide> <ide> if ENV["HOMEBREW_STACKPROF"] <del> require_relative "utils/gems" <del> Homebrew.setup_gem_environment! <ide> require "stackprof" <ide> StackProf.start(mode: :wall, raw: true) <ide> end
1
Python
Python
use super instead
7f2ebd8560adc3cfc1f430eada250385c3c633c5
<ide><path>libcloud/test/compute/test_elasticstack.py <ide> ElasticStackBaseConnection, <ide> ElasticStackBaseNodeDriver as ElasticStack) <ide> from libcloud.compute.drivers.elastichosts import \ <del> (ElasticHostsBaseNodeDriver a...
1
Ruby
Ruby
fix usage of `homebrew_load_path`
18e46b3ec2068310a133f183564f41d183995346
<ide><path>Library/Homebrew/brew.rb <ide> HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent <ide> <ide> require "English" <del>unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s) <del> $LOAD_PATH.unshift(HOMEBREW_LIBRARY_PATH.to_s) <del>end <ide> <ide> unless $LOAD_PATH.include?("#{HOMEBREW_LIBRARY_P...
6
Ruby
Ruby
fix a routing test. reorganize middleware tests
609849a0f10ce37d96444f0359ce325b01d916ca
<ide><path>railties/test/application/middleware/best_practices_test.rb <add>require 'isolation/abstract_unit' <add> <add>module ApplicationTests <add> class BestPracticesTest < Test::Unit::TestCase <add> include ActiveSupport::Testing::Isolation <add> <add> def setup <add> build_app <add> boot_rails <a...
7
Java
Java
fix minor issue in stomp broker relay
1fa4a7d34f56b85753fb38f54a4bc6d5f1c837db
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java <ide> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler <ide> static { <ide> SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor.create(SimpMessageType.HEART...
1
Java
Java
reset pointerevents on null value
866ac173318bd5518b5ed78c2e3da764436be39a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java <ide> public void setHitSlop(final ReactViewGroup view, @Nullable ReadableMap hitSlop) <ide> <ide> @ReactProp(name = ViewProps.POINTER_EVENTS) <ide> public void setPointerEvents(ReactViewGroup view, @Nullable String pointerEv...
1
PHP
PHP
fix error in marshalling belongstomany relations
85aecb628f2cdd4452f681f1125f54907e2b1395
<ide><path>src/ORM/Marshaller.php <ide> public function many(array $data, array $include = []) { <ide> * @return array An array of built entities. <ide> */ <ide> protected function _belongsToMany(Association $assoc, array $data, $include = []) { <del> $hasIds = isset($data['_ids']); <add> $hasIds = array_key_exist...
2
Python
Python
remove test dependency from testapikerberos
d43bb75367c7907dde48118d2757cfeb4df04d0b
<ide><path>tests/www/api/experimental/test_kerberos_endpoints.py <ide> import pytest <ide> <ide> from airflow.api.auth.backend.kerberos_auth import CLIENT_AUTH <add>from airflow.models import DagBag <ide> from airflow.www import app as application <ide> from tests.test_utils.config import conf_vars <add>from tests.tes...
1
Javascript
Javascript
add spatula to showcase
e8e8e8acdc5442a6dd478b82911607307d069371
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> linkAppStore: 'https://itunes.apple.com/cn/app/hong-bei-bang-hai-liang-hong/id1007812319?mt=8', <ide> author: 'Hongbeibang' <ide> }, <add> { <add> name: 'Spatula', <add> icon: 'https://lh3.googleusercontent.com/26xtcDsloLCAOpqgH_8...
1
Python
Python
add documentation for diagonal
bae04d1cd9af556303091bc34d20a6d72e5d7aae
<ide><path>numpy/add_newdocs.py <ide> <ide> <ide> add_newdoc('numpy.core.multiarray','lexsort', <del> """lexsort(keys=, axis=-1) -> array of indices. argsort with list of keys. <del> <del> Return an array of indices similar to argsort, except the sorting is <del> done using the provided sorting keys. First ...
3
Javascript
Javascript
avoid unnecessary lookup
489224ba8557837c9bd59e52220d7ec822ac4be0
<ide><path>src/ngAnimate/animateQueue.js <ide> var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) { <ide> bool = animationsEnabled = !!element; <ide> } else { <ide> var node = getDomNode(element); <del> var recordExists = disabledElementsLookup.get(...
1
Java
Java
improve support for mono<responseentity<?>>
c43040287253bda3e9710759eb722fb54c1e9cc0
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/AbstractHandlerResultHandler.java <ide> import java.util.List; <ide> import java.util.Optional; <ide> import java.util.Set; <add>import java.util.function.Supplier; <ide> <ide> import org.springframework.core.MethodParameter; <ide> im...
6
Javascript
Javascript
add console toggle
b5cbff9d54bcdc4797366414e78871c384f5e878
<ide><path>threejs/resources/threejs-lessons-helper.js <ide> }); <ide> var numLinesRemaining = 100; <ide> var added = false; <add> const toggle = document.createElement('div'); <add> let show = false; <add> Object.assign(toggle.style, { <add> position: 'absolute', <add> right: 0, <add> ...
1
Java
Java
add the ability to attach data to a java cssnode
e0fc8c0ea03c6f0b24dd1d23adb84ac522c397ed
<ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java <ide> private enum LayoutState { <ide> private @Nullable MeasureFunction mMeasureFunction = null; <ide> private LayoutState mLayoutState = LayoutState.DIRTY; <ide> private boolean mIsTextNode = false; <add> private Object mData; <ide> <id...
3
Ruby
Ruby
check method existence rather than ruby version
fdaea3189d490c585c5752f4a0423dcfb972d5fd
<ide><path>Library/Homebrew/test/testing_env.rb <ide> module Test::Unit::Assertions <ide> def assert_empty(obj, msg=nil) <ide> assert_respond_to(obj, :empty?, msg) <ide> assert(obj.empty?, msg) <del> end if RUBY_VERSION.to_f <= 1.8 <add> end unless method_defined?(:assert_empty) <ide> end <ide> <ide> class...
1
Python
Python
fix warning when using xcomarg dependencies
d77f0563b403ae9e1a92e8e9e998a1142bb6f359
<ide><path>airflow/models/baseoperator.py <ide> def apply_defaults(self: BaseOperator, *args: Any, **kwargs: Any) -> Any: <ide> # Store the args passed to init -- we need them to support task.map serialzation! <ide> self._BaseOperator__init_kwargs.update(kwargs) # type: ignore <ide> <del> ...
2
Text
Text
update active storage guide to match recent prs
a3de68b66b28f5a38e303815a7ff77786d0cda43
<ide><path>guides/source/active_storage_overview.md <ide> files to Active Record objects. It comes with a local disk-based service for <ide> development and testing and supports mirroring files to subordinate services for <ide> backups and migrations. <ide> <del>Using Active Storage, an application can transform image...
1
Ruby
Ruby
allow disabling of shallow clone
7eec2d8b5a06ce40a079e2edf1d68ca1df75b70a
<ide><path>Library/Homebrew/download_strategy.rb <ide> class GitDownloadStrategy < VCSDownloadStrategy <ide> %r{http://llvm\.org}, <ide> ] <ide> <add> def initialize name, resources <add> super <add> @shallow = resource.specs.fetch(:shallow) { true } <add> end <add> <ide> def cache_tag; "git" end <ide>...
1
Ruby
Ruby
remove redundant spacing
abd4c699d1f64be9794bcf28409c3a133322fc2c
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def default_stat <ide> end <ide> private :default_stat <ide> <del> <ide> # @private <ide> def cp_path_sub(pattern, replacement) <ide> raise "#{self} does not exist" unless self.exist? <ide> def rmdir_if_possible <ide> false <ide> end <ide> <del> <...
1
Text
Text
fix the links
d7ce4e89d375de18088f918d5d05ee1ee070a293
<ide><path>official/mnist/README.md <ide> APIs. <ide> ## Setup <ide> <ide> To begin, you'll simply need the latest version of TensorFlow installed. <del>First make sure you've [added the models folder to your Python path](official/README.md#running-the-models). <add>First make sure you've [added the models folder to y...
3
Ruby
Ruby
use public_send in extract_values_from_collection
a9764dcc07cf9d6280b313da734d98e096b7d122
<ide><path>actionview/lib/action_view/helpers/form_options_helper.rb <ide> def extract_selected_and_disabled(selected) <ide> def extract_values_from_collection(collection, value_method, selected) <ide> if selected.is_a?(Proc) <ide> collection.map do |element| <del> element.sen...
1
Javascript
Javascript
speed key validation (by over 9000)
0c59c57d66d83481795408cd7697c46a3a7dbf9a
<ide><path>src/core/ReactComponent.js <ide> var invariant = require('invariant'); <ide> var keyMirror = require('keyMirror'); <ide> var merge = require('merge'); <ide> <del>/** <del> * Props key that determines if a component's key was already validated. <del> * @private <del> */ <del>var IS_KEY_VALIDATED = '{is.key.v...
1
Ruby
Ruby
add secure token generator
5cca205114280bcbf9b43134ff396f1ac47b5071
<ide><path>activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb <ide> def change <ide> <% attributes.each do |attribute| -%> <ide> <% if attribute.password_digest? -%> <ide> t.string :password_digest<%= attribute.inject_options %> <add><% elsif attribute.token? -%> <add> ...
6
Python
Python
change the way to store the value in the history
fd23868c4b5940b384be2046579f6ea9eafb65fa
<ide><path>glances/attribute.py <ide> # <ide> # This file is part of Glances. <ide> # <del># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com> <add># Copyright (C) 2016 Nicolargo <nicolas@nicolargo.com> <ide> # <ide> # Glances is free software; you can redistribute it and/or modify <ide> # it under the terms of the ...
4
Python
Python
fix download.py for glove vectors
5a5c7192a58b26837d375ad683d59622c73d267f
<ide><path>spacy/download.py <ide> def download(lang, force=False, fail_on_exist=True): <ide> sputnik.purge(about.__title__, about.__version__) <ide> <ide> try: <del> sputnik.package(about.__title__, about.__version__, about.__models__[lang]) <add> sputnik.package(about.__title__, about.__ver...
1
PHP
PHP
extract some classes for router
b208a4fc3b35da167a2dcb9b581d9e072d20ec92
<ide><path>src/Illuminate/Routing/MiddlewareNameResolver.php <add><?php <add> <add>namespace Illuminate\Routing; <add> <add>use Closure; <add> <add>class MiddlewareNameResolver <add>{ <add> /** <add> * Resolve the middleware name to a class name(s) preserving passed parameters. <add> * <add> * @param st...
4
Text
Text
update readme to link to previous versions
0447fda26d4276a92f01b13c341f0b785c346ea3
<ide><path>README.md <ide> CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0/Chart.js <ide> <ide> ## Documentation <ide> <del>You can find documentation at [www.chartjs.org/docs](http://www.chartjs.org/docs). The markdown files that build the site are available under `/docs`. Please note - in some of the jso...
1
Javascript
Javascript
remove stray @private comments
824e176a84f1ce986cff94b9b12809049c9b4738
<ide><path>src/layout/tree.js <ide> d3.layout.tree = function() { <ide> return a; <ide> } <ide> <del> /** @private */ <ide> function nextLeft(v) { <ide> return v.children ? v.children[0] : v.thread; <ide> } <ide> d3.layout.tree = function() { <ide> firstWalk(root); <ide> secondWalk(r...
1
Python
Python
use explicit reexports for numpy.typing objects
8b8bbdfa5b5331811841176f64470521a890a7c0
<ide><path>numpy/typing/__init__.py <ide> class _8Bit(_16Bit): ... # type: ignore[misc] <ide> _VoidLike, <ide> ) <ide> from ._shape import _Shape, _ShapeLike <del>from ._dtype_like import _SupportsDType, _VoidDTypeLike, DTypeLike <add>from ._dtype_like import _SupportsDType, _VoidDTypeLike, DTypeLike as DTypeLike ...
1
Mixed
Javascript
adjust types for getrandomvalues
b8de7aa4c2731883121bd7dcd19ec116f685eaa0
<ide><path>doc/api/webcrypto.md <ide> Provides access to the `SubtleCrypto` API. <ide> added: v15.0.0 <ide> --> <ide> <del>* `typedArray` {Buffer|TypedArray|DataView|ArrayBuffer} <del>* Returns: {Buffer|TypedArray|DataView|ArrayBuffer} Returns `typedArray`. <add>* `typedArray` {Buffer|TypedArray} <add>* Returns: {Buff...
3
Go
Go
pass extra file to child process as status handler
3b9d88210e763bebdfd7badb6ed3fd507d0f6513
<ide><path>daemon/networkdriver/portmapper/proxy.go <ide> type proxyCommand struct { <ide> <ide> // execProxy is the reexec function that is registered to start the userland proxies <ide> func execProxy() { <add> f := os.NewFile(3, "signal-parent") <ide> host, container := parseHostContainerAddrs() <ide> <ide> p, e...
2
PHP
PHP
change "stirng" to "string"
c633877a8a82b341127bf13a4b4cd7ea0bf9b176
<ide><path>src/Illuminate/Contracts/Queue/Queue.php <ide> public function later($delay, $job, $data = '', $queue = null); <ide> /** <ide> * Push a new job onto the queue. <ide> * <del> * @param stirng $queue <add> * @param string $queue <ide> * @param string $job <ide> * @param mixed $data <ide> *...
2
Ruby
Ruby
fix broken link
227975110317b144988b0c5656b338292462f863
<ide><path>Library/Homebrew/formula.rb <ide> # @see SharedEnvExtension <ide> # @see FileUtils <ide> # @see Pathname <del># @see http://www.rubydoc.info/github/Homebrew/brew/file/docs/Formula-Cookbook.md Formula Cookbook <add># @see https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md Formula Cookbook <...
1
Python
Python
add mask support to new recurrent layers
5b6f56a0407bd73fe4b0193191885113da1e3e5d
<ide><path>keras/layers/recurrent.py <ide> def get_config(self): <ide> <ide> <ide> <del>class JZS1(Layer): <add>class JZS1(Recurrent): <ide> ''' <ide> Evolved recurrent neural network architectures from the evaluation of thousands <ide> of models, serving as alternatives to LSTMs and GRUs. See Jo...
1
Javascript
Javascript
fix borderexample crash on out of tree platforms
ffcaef64e4041f0ebbbede979af0ae816ceee571
<ide><path>packages/rn-tester/js/examples/Border/BorderExample.js <ide> const styles = StyleSheet.create({ <ide> }, <ide> border15: { <ide> borderWidth: 10, <del> borderColor: PlatformColor( <del> 'systemGray4', <del> '@android:color/holo_orange_dark', <del> ), <add> borderColor: Platform.sel...
1
Javascript
Javascript
run tests in the examples build script
8cbd405e90f9abc58d45c9cad9adc018daf62bf1
<ide><path>examples/buildAll.js <ide> var exampleDirs = fs.readdirSync(__dirname).filter((file) => { <ide> // Ordering is important here. `npm install` must come first. <ide> var cmdArgs = [ <ide> { cmd: 'npm', args: ['install'] }, <del> { cmd: 'webpack', args: ['index.js'] } <add> { cmd: 'webpack', args: ['index.j...
1
Text
Text
replace spurious whitespace
f82f68a2efd4a89514fbc9f41ed943f5c5693409
<ide><path>guides/source/classic_to_zeitwerk_howto.md <ide> Rails.autoloaders.each do |autoloader| <ide> end <ide> ``` <ide> <del>With that in place, the check passes : <add>With that in place, the check passes! <ide> <ide> ``` <ide> % bin/rails zeitwerk:check
1
Python
Python
fix conll converter option
4188beda871b1e40eb8d02b8a787b6878c89717e
<ide><path>spacy/cli/convert.py <ide> CONVERTERS = { <ide> "conllubio": conllu_to_docs, <ide> "conllu": conllu_to_docs, <del> "conll": conllu_to_docs, <add> "conll": conll_ner_to_docs, <ide> "ner": conll_ner_to_docs, <ide> "iob": iob_to_docs, <ide> "json": json_to_docs,
1
Javascript
Javascript
allow strings for ports on net.server.listen
d5214b3627fb317349736757263c86804a057149
<ide><path>lib/net.js <ide> function doConnect (socket, port, host) { <ide> }; <ide> } <ide> <del>function isPort (x) { return parseInt(x) >= 0; } <add>function toPort (x) { return (x = Number(x)) >= 0 ? x : false } <ide> <ide> <ide> // var stream = new Stream(); <ide> Stream.prototype.connect = function () { <ide...
1
PHP
PHP
remove unused use statements
21b01491d7a551187f4b27b59e1cc3c7cb70e6c9
<ide><path>tests/TestCase/TestSuite/TestFixtureTest.php <ide> use Cake\Core\Configure; <ide> use Cake\Datasource\ConnectionManager; <ide> use Cake\Log\Log; <del>use Cake\Model\Model; <ide> use Cake\TestSuite\Fixture\TestFixture; <ide> use Cake\TestSuite\TestCase; <ide> use Cake\Utility\ClassRegistry; <ide><path>tests/T...
2
PHP
PHP
reduce number of mocks used in hasmany tests
1d9f83c4f0a270ddf68c5b444a456135876ea847
<ide><path>tests/TestCase/ORM/Association/BelongsToTest.php <ide> public function testAttachToNoFields() <ide> public function testAttachToMultiPrimaryKey() <ide> { <ide> $this->company->primaryKey(['id', 'tenant_id']); <del> // $query = $this->getMock('\Cake\ORM\Query', ['join', 'select'], [null...
1
Python
Python
add support for customdata
bc0217ec8199852082e265d24b5e29c7e1da8d26
<ide><path>libcloud/compute/drivers/azure_arm.py <ide> http://azure.microsoft.com/en-us/services/virtual-machines/ <ide> """ <ide> <add>import base64 <ide> import binascii <ide> import os <ide> import time <ide> def create_node(self, <ide> ex_network=None, <ide> ex_subnet=None, ...
1
Javascript
Javascript
add vector-effect to svg whitelist
9268c1a7101e10d812d200eefacbf80bb6226ec0
<ide><path>src/renderers/dom/shared/SVGDOMPropertyConfig.js <ide> var ATTRS = { <ide> vIdeographic: 'v-ideographic', <ide> vMathematical: 'v-mathematical', <ide> values: 0, <add> vectorEffect: 'vector-effect', <ide> version: 0, <ide> vertAdvY: 'vert-adv-y', <ide> vertOriginX: 'vert-origin-x',
1
Ruby
Ruby
add new line after donate message
da4bf679def7fee08f3856c35130a90ed8ea240a
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def output_update_report <ide> <ide> if Settings.read("donationmessage") != "true" && !args.quiet? <ide> ohai "Homebrew is run entirely by unpaid volunteers. Please consider donating:" <del> puts " #{Formatter.url("https://github.com/Homebrew/brew#...
1
Javascript
Javascript
fix some typos in comments and variable names
eaffcfa9206645edfc8cce2e2382071d75cccdd7
<ide><path>web/debugger.js <ide> var FontInspector = (function FontInspectorClosure() { <ide> } <ide> } <ide> return { <del> // Poperties/functions needed by PDFBug. <add> // Properties/functions needed by PDFBug. <ide> id: 'FontInspector', <ide> name: 'Font Inspector', <ide> panel: null, <ide...
2
Python
Python
use initialized memory for count_nonzero benchmark
6a4858cc1b416bbff014d520a2725cbc25e7d7c4
<ide><path>benchmarks/benchmarks/bench_core.py <ide> class CountNonzero(Benchmark): <ide> ] <ide> <ide> def setup(self, numaxes, size, dtype): <del> self.x = np.empty(shape=( <del> numaxes, size), dtype=dtype) <add> self.x = np.arange(numaxes * size).reshape(numaxes, size) <add> ...
1
Ruby
Ruby
update markdown renderer to be more flexible
0867fcdb5a0d6b38a6326914984ad9d02c52dd0e
<ide><path>guides/rails_guides/markdown.rb <ide> def initialize(view, layout) <ide> @view = view <ide> @layout = layout <ide> @index_counter = Hash.new(0) <add> @raw_header = '' <ide> end <ide> <ide> def render(body) <del> @raw_header, _, @raw_body = body.partition(/^\-{40,}$/).map(...
1
Text
Text
add 2.8.0-beta.4 to changelog.md
518669ed061f2809737e359f86458447a1c55b13
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.8.0-beta.4 (August 29, 2016) <add> <add>- [#14123](https://github.com/emberjs/ember.js/pull/14123) [BUGFIX] Avoid rerendering outlet state during router destruction. <add>- [#14077](https://github.com/emberjs/ember.js/pull/14077) [BUGFIX] Update route-re...
1
Python
Python
add a predict method for sentence_prediction task
ad1661831dda900e457f3beb448049c358f8b175
<ide><path>official/nlp/tasks/sentence_prediction.py <ide> # limitations under the License. <ide> # ============================================================================== <ide> """Sentence prediction (classification) task.""" <add>from typing import List, Union <add> <ide> from absl import logging <ide> import ...
2
Python
Python
fix doctest error with empty output
316d1f4ec9e033b21062b8f2dcdddeef01d7a889
<ide><path>numpy/testing/noseclasses.py <ide> def configure(self, options, config): <ide> self.doctest_tests = True <ide> self.finder = NumpyDocTestFinder() <ide> self.parser = doctest.DocTestParser() <add> self.doctest_result_var = None # default in npd.Doctest <ide> if self.enab...
2
Javascript
Javascript
reset renderstate when bailing out
a53f5cc22eab9617a1d5473e16ce872c7158edef
<ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js <ide> function beginWork( <ide> const didSuspendBefore = <ide> (current.effectTag & DidCapture) !== NoEffect; <ide> <del> const childExpirationTime = workInProgress.childExpirationTime; <del> if (childExpirationTime...
2
PHP
PHP
remove redundant import
43e7a8755f88ebd4b22476f180724339bd73db4e
<ide><path>src/Error/ErrorTrap.php <ide> namespace Cake\Error; <ide> <ide> use Cake\Core\InstanceConfigTrait; <del>use Cake\Error\ErrorRendererInterface; <ide> use Cake\Error\Renderer\ConsoleRenderer; <ide> use Cake\Error\Renderer\HtmlRenderer; <ide> use Closure;
1
Text
Text
add distilbert to supported models
50d1ce411f6aed961e0c214cf96025e20053cbc3
<ide><path>examples/language-modeling/README.md <ide> <ide> Based on the script [`run_language_modeling.py`](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_language_modeling.py). <ide> <del>Fine-tuning (or training from scratch) the library models for language modeling on a tex...
1
PHP
PHP
fix code style
73051cc50e28f83b3609a6bdbc774643e10ea43a
<ide><path>src/View/Helper/FormHelper.php <ide> protected function _extractValidValueSources(array $sources): array <ide> */ <ide> public function setValueSources($sources) <ide> { <del> $this->_valueSources = $this->_extractValidValueSources((array) $sources); <add> $this->_valueSources = $t...
1
PHP
PHP
update userfactory password in line with
9db658d6d1dde21dfe243bbed9450f242858ec8c
<ide><path>database/factories/UserFactory.php <ide> return [ <ide> 'name' => $faker->name, <ide> 'email' => $faker->unique()->safeEmail, <del> 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret <add> 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoE...
1
Python
Python
remove redundant argument to range().
c2268794ab638dd1c4f85b67b582ceb08acfe3c1
<ide><path>examples/conv_filter_visualization.py <ide> def normalize(x): <ide> <ide> <ide> kept_filters = [] <del>for filter_index in range(0, 200): <add>for filter_index in range(200): <ide> # we only scan through the first 200 filters, <ide> # but there are actually 512 of them <ide> print('Processing f...
6
PHP
PHP
update the move logic
07ffe2fcd8fb31225336f09bab7dc214f04854ac
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> class UpgradeShell extends Shell { <ide> <ide> protected $_files = array(); <add> <ide> protected $_paths = array(); <ide> <add> protected $_map = array( <add> 'Controller' => 'Controller', <add> 'Component' => 'Controller/Component', <add> 'Model' => 'M...
1
Javascript
Javascript
fix coding style in test/unit/font_spec.js
6489a80dd0b9ea5cfb499b4a0559d08d3f5f9d29
<ide><path>test/unit/font_spec.js <ide> describe('font', function() { <ide> var line = ''; <ide> for (var i = 0, ii = bytes.length; i < ii; ++i) { <ide> var b = bytes[i].toString(16); <del> if (b.length < 2) <add> if (b.length < 2) { <ide> b = '0' + b; <add> } <ide> line += b....
1
PHP
PHP
add constructor injection for the eventmanager
5a90c3dec2056e45e0dd8763f0575ac0b97455fb
<ide><path>src/Http/ActionDispatcher.php <ide> class ActionDispatcher <ide> * Constructor <ide> * <ide> * @param \Cake\Http\ControllerFactory $factory A controller factory instance. <add> * @param \Cake\Event\EventManager $eventManager An event manager if you want to inject one. <ide> */ <del> ...
2
PHP
PHP
remove unused use statements
cb5757acb1da0ba8d837213f1d182d508eddb9e8
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> namespace Illuminate\Encryption; <ide> <ide> use RuntimeException; <del>use Illuminate\Support\Str; <ide> use Illuminate\Contracts\Encryption\EncryptException; <ide> use Illuminate\Contracts\Encryption\DecryptException; <ide> use Illuminate\Contracts\Encryption\...
3
Text
Text
add upgrade guide for middleware.
eb55af1cfefd30fd86735df769231bfbc90990a9
<ide><path>errors/middleware-upgrade-guide.md <add># Middleware Upgrade Guide <add> <add>As we work on improving Middleware for General Availability (GA), we've made some changes to the Middleware APIs (and how you define Middleware in your application) based on your feedback. <add> <add>This upgrade guide will help yo...
1
Text
Text
add closing quotes to local setup
0e4a1408f8f452503eb5e759f2bd4ab37adee628
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> A quick reference to the commands that you will need when working locally. <ide> | `npm run docker:seed` | Parse all the challenge markdown files and inserts them into MongoDB. | <ide> | `npm run docker:develop` | Start the freeCodeCamp API Server and Client Ap...
1
Ruby
Ruby
remove needless test order config
02b4ba64615f7fb69975ff57d89ee7fa7c8bb45a
<ide><path>railties/test/isolation/abstract_unit.rb <ide> def build_app(options = {}) <ide> config.eager_load = false <ide> config.session_store :cookie_store, key: "_myapp_session" <ide> config.active_support.deprecation = :log <del> config.active_support.test_order = :random <ide> ...
1
Python
Python
optimize np.isin for integer arrays
cedba623b110caf83f46edfa38cb4fbc0191e285
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False): <ide> # Ensure that iteration through object arrays yields size-1 arrays <ide> if ar2.dtype == object: <ide> ar2 = ar2.reshape(-1, 1) <add> # Check if we can use a fast integer algorithm: <add> integer...
1
Go
Go
fix dockernetworksuite not being run
5c891ea9ca9084e81429395d99fdad451d2cffaf
<ide><path>integration-cli/check_test.go <ide> func TestDockerExternalVolumeSuite(t *testing.T) { <ide> func TestDockerNetworkSuite(t *testing.T) { <ide> ensureTestEnvSetup(t) <ide> testRequires(t, DaemonIsLinux) <del> suite.Run(t, &DockerExternalVolumeSuite{ds: &DockerSuite{}}) <add> suite.Run(t, &DockerNetworkSuite...
1
Go
Go
preserve order of environment variables
b426741c1504d45d0e1dd6d76ec5144bd95aa480
<ide><path>cli/command/service/update.go <ide> func updateLabels(flags *pflag.FlagSet, field *map[string]string) { <ide> } <ide> <ide> func updateEnvironment(flags *pflag.FlagSet, field *[]string) { <del> envSet := map[string]string{} <del> for _, v := range *field { <del> envSet[envKey(v)] = v <del> } <ide> if flag...
1
Ruby
Ruby
initialize subscriptions as early as possible
449b3ca7b08c000c05100cc909fc29cbc9f365ee
<ide><path>lib/action_cable/server.rb <ide> <ide> module ActionCable <ide> class Server < Cramp::Websocket <del> on_start :initialize_subscriptions <ide> on_data :received_data <ide> on_finish :cleanup_subscriptions <ide> <ide> def register_channels(*channel_classes) <ide> end <ide> end <ide> ...
1
Go
Go
trim the splited builder lines
4ebec08add53bd9b3e10c331168daa6579ebd6db
<ide><path>builder.go <ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e <ide> if len(tmp) != 2 { <ide> return nil, fmt.Errorf("Invalid Dockerfile format") <ide> } <del> instruction := tmp[0] <del> arguments := tmp[1] <add> instruction := strings.Trim(tmp[0], " ") <add> ar...
1
PHP
PHP
use finfo better
5dee28d4f2cddfefede4f4048499353e5f5d7474
<ide><path>src/Filesystem/File.php <ide> */ <ide> namespace Cake\Filesystem; <ide> <add>use finfo; <add> <ide> /** <ide> * Convenience class for reading, writing and appending to files. <ide> * <ide> public function mime() <ide> if (!$this->exists()) { <ide> return false; <ide> } <del> ...
1
Ruby
Ruby
add missing spdx require
cea6bf6efe52c318a4e33ec2f4fd0374db34b090
<ide><path>Library/Homebrew/formula.rb <ide> require "tab" <ide> require "mktemp" <ide> require "find" <add>require "utils/spdx" <ide> <ide> # A formula provides instructions and metadata for Homebrew to install a piece <ide> # of software. Every Homebrew formula is a {Formula}.
1
PHP
PHP
add missing parameter tag
fe8cb5b178bdc383eb4fb1d466578d581359eb65
<ide><path>src/Validation/Validation.php <ide> public static function ascii($value) <ide> * the basic multilingual plane. Defaults to false. <ide> * <ide> * @param string $value The value to check <add> * @param array $options An array of options. See above for the supported options. <ide> * @...
1
Javascript
Javascript
convert the hand tool to a class
b0aca31de8e34badca5b70272857bc658b61b5e1
<ide><path>web/app.js <ide> var PDFViewerApplication = { <ide> <ide> this.overlayManager = OverlayManager; <ide> <del> HandTool.initialize({ <add> this.handTool = new HandTool({ <ide> container: container, <ide> toggleHandTool: document.getElementById('toggleHandTool') <ide> }); <del> thi...
2
Python
Python
add tutorials and examples for the new optimizer
f4dbe9e55f2fd28ec7ff9ba8b5958141c5ffef2f
<ide><path>keras/optimizer_experimental/optimizer.py <ide> def compute_gradients(self, loss, var_list, tape=None): <ide> and return the value to minimize. <ide> var_list: list or tuple of `Variable` objects to update to minimize <ide> `loss`. <del> tape: (Optional) `tf.GradientTape`. <add> ...
2
PHP
PHP
fix some formatting issues
29198f4c1f5bbf0c800e760436e9d13ce5c9fe89
<ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php <ide> trait ResetsPasswords <ide> { <ide> use RedirectsUsers; <ide> <del> /** <del> * Get the broker to be used during resetting the password. <del> * <del> * @return string|null <del> */ <del> public function getBroker() <del> ...
1
Go
Go
skip some tests for e2e
f089a1df393228085c4895b8db0fa95128173398
<ide><path>integration-cli/docker_api_build_test.go <ide> import ( <ide> ) <ide> <ide> func (s *DockerSuite) TestBuildAPIDockerFileRemote(c *check.C) { <del> testRequires(c, NotUserNamespace) <add> // E2E: Requires built httpserver. <add> testRequires(c, NotUserNamespace, NotE2E) <add> <ide> var testD string <ide> i...
8
Ruby
Ruby
make use of the inherited initializer
a5f57a7ef2af05ac1f7b919040e10c1b21de8e56
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> class SingletonResource < Resource #:nodoc: <ide> DEFAULT_ACTIONS = [:show, :create, :update, :destroy, :new, :edit] <ide> <ide> def initialize(entities, options) <add> super <add> <ide> @as = nil <del>...
1
Ruby
Ruby
exclude hardlinks from mach_o_files
3e5e14a59580325faf397b48d62a52f0013a17f2
<ide><path>Library/Homebrew/keg_relocate.rb <ide> def find_dylib(bad_name) <ide> end <ide> <ide> def mach_o_files <add> hardlinks = Set.new <ide> mach_o_files = [] <ide> path.find do |pn| <add> # if we've already processed a file, ignore its hardlinks (which have the same dev ID and inode) <add> ...
1
Python
Python
add test cases for it, update docstring
0eb48647e520ed61fa5f473f3b540be9885c3861
<ide><path>libcloud/compute/drivers/gce.py <ide> def _build_service_accounts_gce_list(self, service_accounts=None, <ide> accepts the aliases defined in <ide> 'gcloud compute'. <ide> <del> :type service_accounts: ``list`` of ``dict...
2
Javascript
Javascript
replace double quotes with single quotes
e64c9ba077a13a5e493543a7041a090960528595
<ide><path>packages/ember-application/lib/system/application.js <ide> import LinkToComponent from 'ember-routing-views/views/link'; <ide> import RoutingService from 'ember-routing/services/routing'; <ide> import ContainerDebugAdapter from 'ember-extension-support/container_debug_adapter'; <ide> import { _loaded } from ...
4
Go
Go
fix typo in api/types/client.go
c8fd28f12e501c3ba1bea9d380a38f4af8319a41
<ide><path>api/types/client.go <ide> type ImageBuildOptions struct { <ide> Dockerfile string <ide> Ulimits []*units.Ulimit <ide> // See the parsing of buildArgs in api/server/router/build/build_routes.go <del> // for an explaination of why BuildArgs needs to use *string instead of <add> // for an explanat...
1
Javascript
Javascript
improve long buffer test
3e9f636b648e334d7d25fa848f89df024ed563b6
<ide><path>lib/buffer.js <ide> function Buffer (subject, encoding, offset) { <ide> return new Buffer(subject, encoding, offset); <ide> } <ide> <del> var length, type; <add> var type; <ide> <ide> // Are we slicing? <ide> if (typeof offset === 'number') { <ide> function Buffer (subject, encoding, offset) { ...
2
Javascript
Javascript
use $animate.$$setclassimmediately to save code
c44fc6d811e3b6fd4deae90c2a02bed19210190c
<ide><path>src/ng/animate.js <ide> var $AnimateProvider = ['$provide', function($provide) { <ide> return defer.promise; <ide> } <ide> <del> function resolveElementClasses(element, cache) { <add> function resolveElementClasses(element, classes) { <ide> var toAdd = [], toRemove = []; <ide> <ide> ...
2
Ruby
Ruby
fix version parsing on urls with no extensions
e865cee3d33e38485a46e1b88f8aa9466f31633f
<ide><path>Library/Homebrew/test/test_versions.rb <ide> def test_opam_version <ide> assert_version_detected "1.0.2", <ide> "https://opam.ocaml.org/archives/easy-format.1.0.2+opam.tar.gz" <ide> end <add> <add> def test_waf_version <add> assert_version_detected "1.8.12", "https://waf.io/waf-1.8.12" <add> ...
2
Text
Text
add use of alt text "line 15"
f44afe49acff00f5a2dcee60e61558308ed7ab02
<ide><path>guide/english/html/tutorials/images-in-html/index.md <ide> title: Images in HTML <ide> --- <ide> <del> <ide> ## Introduction <ide> <ide> You can define images by using the `<img>` tag. It does not have a closing tag since it can contain only attributes. <ide> To insert an image you define the source and an...
1
Javascript
Javascript
hoist require.resolve for performance reasons
35547246f9aa62d155074a75292ba7c1892156aa
<ide><path>lib/NodeStuffPlugin.js <ide> const ModuleDependency = require("./dependencies/ModuleDependency"); <ide> /** @typedef {import("./DependencyTemplates")} DependencyTemplates */ <ide> /** @typedef {import("./RuntimeTemplate")} RuntimeTemplate */ <ide> <add>const moduleBuildin = require.resolve("../buildin/modul...
2
Text
Text
update stackoverflow link
fa5e8485abcc1a85af04aae42fd1045baeaeeb97
<ide><path>CONTRIBUTING.md <ide> Please report unacceptable behavior to spring-code-of-conduct@pivotal.io. <ide> #### Discuss <ide> <ide> If you have a question, check Stack Overflow using <del>[this list of tags](https://spring.io/questions), organized by Spring project. <add>[this list of tags](https://stackoverflow...
1
Python
Python
handle image_embeds in viltmodel
7f7300856d62f1d27332d8b893280ecb234601d0
<ide><path>src/transformers/models/vilt/modeling_vilt.py <ide> def _set_gradient_checkpointing(self, module, value=False): <ide> is useful if you want more control over how to convert `input_ids` indices into associated vectors than the <ide> model's internal embedding lookup matrix. <ide> <del...
1
Go
Go
propagate getcontainer error from event processor
54e30a62d3ca39c912c8e291e80cfbf80860d607
<ide><path>daemon/monitor.go <ide> package daemon // import "github.com/docker/docker/daemon" <ide> <ide> import ( <ide> "context" <del> "errors" <del> "fmt" <ide> "runtime" <ide> "strconv" <ide> "time" <ide> import ( <ide> "github.com/docker/docker/container" <ide> libcontainerdtypes "github.com/docker/docker/l...
1
Text
Text
fix typo in n-api introduction
eb32e383d89d5f0757129127d9983756b5202a12
<ide><path>doc/api/n-api.md <ide> <ide> N-API (pronounced N as in the letter, followed by API) <ide> is an API for building native Addons. It is independent from <del>the underlying JavaScript runtime (ex V8) and is maintained as part of <add>the underlying JavaScript runtime (for example, V8) and is maintained as par...
1
Javascript
Javascript
remove some useless assignments
366aaf57faa31a694f55d1e9c76765f2d396aaa1
<ide><path>lib/events.js <ide> function _addListener(target, type, listener, prepend) { <ide> <ide> if (existing === undefined) { <ide> // Optimize the case of one listener. Don't need the extra array object. <del> existing = events[type] = listener; <add> events[type] = listener; <ide> ++target._event...
3
Python
Python
pass value directly to last_modified
7c271401b284e6fcc2040fffe317342e2a17a902
<ide><path>flask/helpers.py <ide> def send_file(filename_or_fp, mimetype=None, as_attachment=False, <ide> (default), this value is set by <ide> :meth:`~Flask.get_send_file_max_age` of <ide> :data:`~flask.current_app`. <del> :param last_mod...
2