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
add missing ckpt in config docs
3e47d19cfc2f44ce3175b1e73f01db88242c743e
<ide><path>src/transformers/models/albert/configuration_albert.py <ide> class AlbertConfig(PretrainedConfig): <ide> This is the configuration class to store the configuration of a [`AlbertModel`] or a [`TFAlbertModel`]. It is used <ide> to instantiate an ALBERT model according to the specified arguments, defini...
46
Text
Text
fix typo s/higlights/highlights/ [ci skip]
fba75f0ae332636cb46a97474bf682c442b6ee2b
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> class User < ApplicationRecord <ide> end <ide> <ide> user.highlights.attach(filename: "funky.jpg", ...) <del>user.higlights.count # => 1 <add>user.highlights.count # => 1 <ide> <ide> blob = ActiveStorage::Blob.create_after_upload!(filename: "town.jpg", ...) <i...
1
Text
Text
add apostrophe to "let's"
25884ade58e3414f92a9a2cfd34f23d35748c35c
<ide><path>guide/english/javascript/scopes/index.md <ide> Before you type the first line of code in your program, a _global scope_ is crea <ide> <ide> In the example above, the variable `foo` is in the global scope of the program, while the variable `bar` is declared inside a function and is therefore **in the local s...
1
Python
Python
add some important log in aws athena hook
8cf6dca36b0cfc16763cb1d4c96ab04d1fe5ec14
<ide><path>airflow/providers/amazon/aws/hooks/athena.py <ide> class AthenaHook(AwsBaseHook): <ide> :class:`~airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook` <ide> <ide> :param sleep_time: Time (in seconds) to wait between two consecutive calls to check query status on Athena <add> :param log_que...
3
Javascript
Javascript
add examples at the end of the doc pages
a4a551c5718eb8f6d0e60fe477ac0c69fd571020
<ide><path>website/layout/AutodocsLayout.js <ide> var DocsSidebar = require('DocsSidebar'); <ide> var H = require('Header'); <ide> var Header = require('Header'); <ide> var Marked = require('Marked'); <add>var Prism = require('Prism'); <ide> var React = require('React'); <ide> var Site = require('Site'); <ide> var slug...
2
PHP
PHP
remove input facade
55785d3514a8149d4858acef40c56a31b6b2ccd1
<ide><path>src/Illuminate/Support/Facades/Input.php <del><?php <del> <del>namespace Illuminate\Support\Facades; <del> <del>/** <del> * @method static bool matchesType(string $actual, string $type) <del> * @method static bool isJson() <del> * @method static bool expectsJson() <del> * @method static bool wantsJson() <del...
2
Python
Python
add conn_type to fix failing livy tests
e2a909787c044c6960b58d5f864b9ad8b4fc5885
<ide><path>tests/providers/apache/livy/hooks/test_livy.py <ide> class TestLivyHook(unittest.TestCase): <ide> @classmethod <ide> def setUpClass(cls): <del> db.merge_conn(Connection(conn_id='livy_default', host='host', schema='http', port='8998')) <del> db.merge_conn(Connection(conn_id='default_port...
1
Javascript
Javascript
use common/fixtures in fs-symlink test
70a19ae7820b85e8535c7db27151baa3d0705287
<ide><path>test/parallel/test-fs-symlink-dir-junction.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const path = require('path'); <ide> const fs = require('fs'); <ide> <ide> // test creating an...
1
Text
Text
fix broken link
e7c44c90c3fc187e86c6f76296109ecab465bddf
<ide><path>share/doc/homebrew/Brew-Test-Bot.md <ide> by [our Kickstarter in 2013](https://www.kickstarter.com/projects/homebrew/brew- <ide> <ide> It comprises of four Mac Minis running in a data centre in England which host <ide> [a Jenkins instance at http://bot.brew.sh](http://bot.brew.sh) and run the <del>[`brew-te...
1
Python
Python
allow specification of terms to fit in legfit
d54e7351aeda804de6e7b5963bb2b9fa5c76d027
<ide><path>numpy/polynomial/legendre.py <ide> def legfit(x, y, deg, rcond=None, full=False, w=None): <ide> y-coordinates of the sample points. Several data sets of sample <ide> points sharing the same x-coordinates can be fitted at once by <ide> passing in a 2D-array that contains one dataset pe...
1
PHP
PHP
allow passing of conditions to where with arrays
491feeb82ac27542c6a5512f26735451a2d9c09f
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function where($column, $operator = null, $value = null, $boolean = 'and' <ide> // and can add them each as a where clause. We will maintain the boolean we <ide> // received when the method was called and pass it into the nested where. <i...
2
Javascript
Javascript
update cache-control for render errors
4881cd346b8155314c02a6996538fb48d324111d
<ide><path>server/render.js <ide> async function doRender (req, res, pathname, query, { <ide> <ide> export async function renderScriptError (req, res, page, error) { <ide> // Asks CDNs and others to not to cache the errored page <del> res.setHeader('Cache-Control', 'no-store, must-revalidate') <add> res.setHeader(...
1
Text
Text
fix syntax errors in docs example
34901a5ffa6078fd964d5b3acdb222410069230d
<ide><path>docs/api-guide/fields.md <ide> Two examples here are `'input_type'` and `'base_template'`: <ide> <ide> # Use a radio input instead of a select input. <ide> color_channel = serializers.ChoiceField( <del> choices=['red', 'green', 'blue'] <del> style = {'base_template': 'radio.html'} <del...
1
Python
Python
add compat function to normalize dict keys
480ef8bfc8b92b2de6c4960070c9269cfa505c4f
<ide><path>spacy/compat.py <ide> import sys <ide> import ujson <ide> <add>import thinc.neural.util <add> <ide> try: <ide> import cPickle as pickle <ide> except ImportError: <ide> CudaStream = CudaStream <ide> cupy = cupy <ide> fix_text = ftfy.fix_text <add>copy_array = thinc.neural.util.copy_array <ide> <ide> is_...
1
Mixed
Javascript
increase timeouts on arm
7049d7b4746dc5dae82d608ac12dc6e1cf11035e
<ide><path>test/common.js <ide> exports.spawnPwd = function(options) { <ide> } <ide> }; <ide> <add>exports.platformTimeout = function(ms) { <add> if (process.arch !== 'arm') <add> return ms; <add> <add> if (process.config.variables.arm_version === '6') <add> return 6 * ms; // ARMv6 <add> <add> return 2 * m...
12
Go
Go
improve err message when parsing kernel port range
8e4d9f3cf9669f45b0591eea27c47b6f64d89c2d
<ide><path>daemon/networkdriver/portallocator/portallocator.go <ide> func NewErrPortAlreadyAllocated(ip string, port int) ErrPortAlreadyAllocated { <ide> <ide> func init() { <ide> const portRangeKernelParam = "/proc/sys/net/ipv4/ip_local_port_range" <add> portRangeFallback := fmt.Sprintf("using fallback port range %d...
1
Python
Python
use a set instead of a dictionary
a8556c1007dbf7eb329caaa3dbffc9cd708359ec
<ide><path>numpy/core/numeric.py <ide> def _setdef(): <ide> <ide> <ide> def extend_all(module): <del> adict = {} <del> for a in __all__: <del> adict[a] = 1 <add> existing = set(__all__) <ide> try: <ide> mall = getattr(module, '__all__') <ide> except AttributeError: <ide> mall =...
1
Javascript
Javascript
update color settings of mmd
86748161b2b9f641d7d4cc9e10b96c172ad88e2a
<ide><path>examples/js/loaders/MMDLoader.js <ide> THREE.MMDLoader.prototype.parsePmd = function ( buffer ) { <ide> p.diffuse = dv.getFloat32Array( 4 ); <ide> p.shininess = dv.getFloat32(); <ide> p.specular = dv.getFloat32Array( 3 ); <del> p.emissive = dv.getFloat32Array( 3 ); <add> p.ambient = dv.getFloat3...
1
PHP
PHP
simplify request isset
23d409b450ae7cc0b236a396003ac7ea15b7538a
<ide><path>src/Illuminate/Http/Request.php <ide> public function offsetUnset($offset) <ide> } <ide> <ide> /** <del> * Get an input element from the request. <add> * Check if an input element is set on the request. <ide> * <ide> * @param string $key <del> * @return mixed <add> * @ret...
1
Java
Java
simplify assertions within mockmvc internals
50e53343789fe985b09e9be83481005074f716ee
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/result/ContentResultMatchers.java <ide> <ide> import static org.hamcrest.MatcherAssert.assertThat; <ide> import static org.springframework.test.util.AssertionErrors.assertEquals; <add>import static org.springframework.test.util.AssertionErrors.a...
5
Ruby
Ruby
test multiple values with blank value
4774fa0d260c1a403858cba3b54673b845d09cce
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def preprocess_order_args(order_args) <ide> end <ide> <ide> def sanitize_order_arguments(order_args) <del> order_args.compact_blank! <ide> order_args.map! do |arg| <ide> klass.sanitize_sql_for_order(arg) <ide...
2
Javascript
Javascript
remove empty parts of the parsed uri
6550e8cfa07aab1c410ebb8d5b0676d625f93ea3
<ide><path>src/http.js <ide> node.http.parseUri = function (str) { <ide> } <ide> }); <ide> uri.toString = function () { return str; }; <del> <add> <add> for (var i = o.key.length - 1; i >= 0; i--){ <add> if (uri[o.key[i]] == "") delete uri[o.key[i]]; <add> }; <add> <ide> return uri; <ide> }; <ide>
1
Go
Go
fix network inspect for default networks
f301c5765a0d7f4b6866cedfdface6f87874ff53
<ide><path>api/types/types.go <ide> type ContainerJSON struct { <ide> // NetworkSettings exposes the network settings in the api <ide> type NetworkSettings struct { <ide> NetworkSettingsBase <add> DefaultNetworkSettings <ide> Networks map[string]*network.EndpointSettings <ide> } <ide> <ide> type NetworkSettingsBase ...
7
Javascript
Javascript
fix version check in models directory [ci skip]
27c5795ea5b036fda98292a6486353ba4dc47ed3
<ide><path>website/src/templates/models.js <ide> function isStableVersion(v) { <ide> function getLatestVersion(modelId, compatibility) { <ide> for (let [version, models] of Object.entries(compatibility)) { <ide> if (isStableVersion(version) && models[modelId]) { <del> return models[modelId][0] <a...
1
Javascript
Javascript
remove unnecessary regex
700c16b0859a8c982869d5501934bed9e51d3662
<ide><path>src/attributes.js <ide> var rclass = /[\n\t\r]/g, <ide> rfocusable = /^(?:button|input|object|select|textarea)$/i, <ide> rclickable = /^a(?:rea)?$/i, <ide> rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, <del> rinval...
1
Javascript
Javascript
fix typo in test
7f8f8d7136d7392b96cc263ba124ceeb7995a4da
<ide><path>packages/ember-glimmer/tests/integration/components/utils-test.js <ide> moduleFor('Bounds tests', class extends RenderingTest { <ide> <ide> let { parentElement, firstNode, lastNode } = getViewBounds(component); <ide> <del> assert.equal(parentElement, this.element, 'a regular component should have th...
1
PHP
PHP
apply fixes from styleci
2054da77e02f1eebfd367fbfe903e84aa35e5085
<ide><path>tests/Database/DatabaseSchemaBuilderIntegrationTest.php <ide> public function testDropAllTablesWorksWithForeignKeys() <ide> public function testHasColumnWithTablePrefix() <ide> { <ide> $this->db->connection()->setTablePrefix('test_'); <del> <add> <ide> $this->db->connection()-...
1
Java
Java
optimize pre-allocation of views
16a6e51045cf45d6f9d929f7ad4b2228f7417942
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> import com.facebook.react.fabric.mounting.mountitems.DispatchCommandMountItem; <ide> import com.facebook.react.fabric.mounting.mountitems.InsertMountItem; <ide> import com.facebook.react.fabric.mounting.mountitems.MountItem; <add...
3
Text
Text
fix inconsistent formatting
a51554988e615b317e95125f5612a28c3bff8e8a
<ide><path>docs/sources/articles/https.md <ide> it will only connect to servers with a certificate signed by that CA. <ide> <ide> ## Create a CA, server and client keys with OpenSSL <ide> <del>> **Note:** replace all instances of `$HOST` in the following example with the <add>> **Note**: replace all instances of `$HO...
1
Javascript
Javascript
improve getusedname performance
c59df0a54215ad5ba934fe1493c98087a79b0f72
<ide><path>lib/ModuleGraph.js <ide> class ExportsInfo { <ide> if (info === undefined) info = this._otherExportsInfo; <ide> const x = info.getUsedName(name[0]); <ide> if (!x) return false; <add> if (name.length === 1) { <add> if (x === name[0]) return name; <add> return [x]; <add> } <ide> if (info....
1
Text
Text
embed more videos
0c09f38aa17666da3aa46545bee9992ab70fd88f
<ide><path>docs/Videos.md <ide> next: style <ide> <ide> <iframe width="650" height="315" src="//www.youtube.com/embed/hDviGU-57lU" frameborder="0" allowfullscreen></iframe> <ide> <add><iframe width="650" height="315" src="//www.youtube.com/embed/8N4f4h6SThc" frameborder="0" allowfullscreen></iframe> <add> <add><ifram...
1
PHP
PHP
implement psr7 flavour for method & query data
149c9bae3c50e829173f480232584e098cc67794
<ide><path>src/Network/Request.php <ide> public function header($name) <ide> return $this->env($name); <ide> } <ide> <add> /** <add> * Get the HTTP method used for this request. <add> * <add> * @return string The name of the HTTP method used. <add> * @deprected 3.4.0 This method will be ...
2
Python
Python
add deprojectivize to pipeline
5738d373d5b1142cdea1cee4f44d75b454da935a
<ide><path>spacy/language.py <ide> def create_pipeline(cls, nlp=None): <ide> <ide> factories = { <ide> 'make_doc': create_tokenizer, <del> 'token_vectors': lambda nlp, **cfg: TokenVectorEncoder(nlp.vocab, **cfg), <del> 'tags': lambda nlp, **cfg: NeuralTagger(nlp.vocab, **cfg), <del> 'd...
1
Python
Python
add model2model to __init__
bfb9b540d408fd7f0592f321157fe0371c930c5e
<ide><path>examples/run_seq2seq_finetuning.py <ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <del>""" Finetuning seq2seq models for sequence generation. <del> <del>We use ...
2
PHP
PHP
use setexpectedexception() instead of annotations
201851da8aba82ddc5d03f251160cd861c15d8ac
<ide><path>tests/TestCase/I18n/Formatter/IcuFormatterTest.php <ide> public function testNativePluralSelection() <ide> /** <ide> * Tests that passing a message in the wrong format will throw an exception <ide> * <del> * @expectedException Exception <del> * @expectedExceptionMessage msgfmt_create: m...
1
Text
Text
use proper syntax for class method reference
ac568795e71999dacd5cd05fb830050dcf09a4f6
<ide><path>activesupport/CHANGELOG.md <ide> <ide> *Puneet Agarwal* and *Xavier Noria* <ide> <del>* Added `Time#days_in_year` to return the number of days in the given year, or the <add>* Added `Time.days_in_year` to return the number of days in the given year, or the <ide> current year if no argument is p...
1
Python
Python
apply suggestions from code review
3263cc6ef528cdd48bd72651ab735dd75c3339c2
<ide><path>numpy/core/setup.py <ide> def gl_if_msvc(build_cmd): <ide> we are building the library. <ide> """ <ide> if build_cmd.compiler.compiler_type == 'msvc': <add> # explicitly disable whole-program optimization <ide> return ['/GL-'] <ide> return [] <ide> <ide...
2
Javascript
Javascript
use method name instead of method
2bce92383aecf5405119e1377c02b36c14268292
<ide><path>packages/ember-metal/lib/mixin.js <ide> function applyBeforeObservers(obj, m) { <ide> method = beforeObservers[methodName]; <ide> paths = method.__ember_observesBefore__; <ide> for (i=0, l=paths.length; i<l; i++) { <del> addBeforeObserver(obj, paths[i], obj, method); <add> addBeforeObse...
2
Python
Python
add regression test for
635792997cca666be560503e2d95f6e79225c2bf
<ide><path>spacy/tests/regression/test_issue1612.py <add>from __future__ import unicode_literals <add> <add>import pytest <add> <add>from ...lang.en import English <add> <add> <add>def test_issue1612(): <add> nlp = English() <add> doc = nlp('The black cat purrs.') <add> span = doc[1: 3] <add> assert span.or...
1
Java
Java
fix recent javadoc errors
84300b796cbd974b81ff3406502e3a7cd6cf1397
<ide><path>spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java <ide> * <p>On the classpath, bundle resources will be read with the locally configured <ide> * {@link #setDefaultEncoding encoding}: by default, ISO-8859-1; consider switching <ide> * this to UTF-8, or to {@c...
16
Javascript
Javascript
add uint32 test for -1
e454e9b33f2a3e21d0c36a96d47cf39ce3e42d6c
<ide><path>test/js-native-api/test_number/test.js <ide> testUint32(4294967295); <ide> testUint32(4294967296, 0); <ide> testUint32(4294967297, 1); <ide> testUint32(17 * 4294967296 + 1, 1); <add>testUint32(-1, 0xffffffff); <ide> <ide> // Validate documented behavior when value is retrieved as 32-bit integer with <ide> /...
1
PHP
PHP
add negative numbers test
767558e7841b4fa37d67db9e6cb3e3ba19db77f7
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testSort() <ide> $data = (new Collection([5, 3, 1, 2, 4]))->sort(); <ide> $this->assertEquals([1, 2, 3, 4, 5], $data->values()->all()); <ide> <add> $data = (new Collection([-1, -3, -2, -4, -5, 0, 5, 3, 1, 2, 4]))->sort(); <...
1
Text
Text
add configuration serialization to readme
20577d8a7cb7dd38d3c5295c6f44bf377435e608
<ide><path>README.md <ide> This package comprises the following classes that can be imported in Python and <ide> - Configuration classes for BERT, OpenAI GPT and Transformer-XL (in the respective [`modeling.py`](./pytorch_pretrained_bert/modeling.py), [`modeling_openai.py`](./pytorch_pretrained_bert/modeling_openai.py)...
1
Ruby
Ruby
add proper types to dump() and fix inreplace error
2de6958a36a4ef3172e2269a5ce11f15e94e57e9
<ide><path>Library/Homebrew/build_environment.rb <ide> def env(*settings) <ide> ].freeze <ide> private_constant :KEYS <ide> <del> sig { params(env: T.untyped).returns(T::Array[String]) } <add> sig { params(env: T::Hash[String, T.nilable(T.any(String, Pathname))]).returns(T::Array[String]) } <ide> def self.keys...
4
Javascript
Javascript
remove duplicate assignments
e06b5d7af7619e9234bb7eb8a9d66b3c7d245ad9
<ide><path>lib/http.js <ide> ClientRequest.prototype.onSocket = function(socket) { <ide> parser.incoming = null; <ide> req.parser = parser; <ide> <del> parser.socket = socket; <ide> socket.parser = parser; <del> parser.incoming = null; <ide> socket._httpMessage = req; <ide> <ide> // Setup "d...
1
Ruby
Ruby
remove dead code
80c6b901d4d87cee610ab0a438ff6e3c6bf118d1
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> def initialize(status = 200, header = {}, body = []) <ide> <ide> self.body, self.status = body, status <ide> <del> @blank = false <ide> @cv = new_cond <ide> @committed = false <ide> @sending = false ...
1
Java
Java
clarify requestmappinghandleradapter javadoc
2b3ad218e579591396a50363f04c097d05be3a12
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java <ide> public void setSessionAttributeStore(SessionAttributeStore sessionAttributeStore <ide> <ide> /** <ide> * Cache content produced by {@code @SessionAttributes} annotated handlers <del> ...
1
PHP
PHP
simplify file cache
b0a087370c9595efd426506439f52967b1711eaa
<ide><path>src/Illuminate/Filesystem/Cache.php <ide> public function save() <ide> { <ide> $contents = $this->getForStorage(); <ide> <del> if (! is_null($this->expire)) { <del> $this->repository->put($this->key, $contents, $this->expire); <del> } else { <del> $this->repos...
1
Javascript
Javascript
remove redundant arg flipping in evented#one
08ff5b991e2a42ab20adaa8d939ec680a3055c67
<ide><path>packages/@ember/-internals/runtime/lib/mixins/evented.js <ide> export default Mixin.create({ <ide> @public <ide> */ <ide> one(name, target, method) { <del> if (!method) { <del> method = target; <del> target = null; <del> } <del> <ide> addListener(this, name, target, method, true);...
1
Mixed
Javascript
add code snippets to primitives
13027d48f18fa43f3e93d60c75661cd598965b5b
<ide><path>threejs/lessons/resources/threejs-primitives.js <ide> }, <ide> }, <ide> ParametricBufferGeometry: { <del> create() { <del> /* <del> from: https://github.com/mrdoob/three.js/blob/b8d8a8625465bd634aa68e5846354d69f34d2ff5/examples/js/ParametricGeometries.js <add> /* <add> ...
2
Python
Python
introduce types in airflow.bin.cli
0974aabd31abc6aeadf4f07c9c310b6750e28e2f
<ide><path>airflow/bin/cli.py <ide> import os <ide> import textwrap <ide> from argparse import RawTextHelpFormatter <del>from itertools import filterfalse, tee <del>from typing import Callable <add>from typing import Callable, Dict, Iterable, List, NamedTuple, Set, Union <ide> <ide> from tabulate import tabulate_forma...
3
Ruby
Ruby
remove unneeded option from resourceroutegenerator
b6c270fb62a3ee7c89200084df7666347b787717
<ide><path>railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb <ide> module Rails <ide> module Generators <ide> class ResourceRouteGenerator < NamedBase # :nodoc: <del> class_option :api, type: :boolean, <del> desc: "Preconfigure smaller stack for API only a...
1
Python
Python
add missing import
cace39af972a595064250a22a6a6feebc89113be
<ide><path>src/transformers/__init__.py <ide> TF_MODEL_FOR_CAUSAL_LM_MAPPING, <ide> TF_MODEL_FOR_MASKED_LM_MAPPING, <ide> TF_MODEL_FOR_MULTIPLE_CHOICE_MAPPING, <add> TF_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING, <ide> TF_MODEL_FOR_PRETRAINING_MAPPING, <ide> TF_MODEL_FOR_Q...
2
Python
Python
add system and uptime to the export module
71ffcef3d0127da4655e1580e5001203b5ce28f7
<ide><path>glances/exports/glances_export.py <ide> def plugins_to_export(self): <ide> 'fs', <ide> 'processcount', <ide> 'ip', <del> 'system'] <add> 'system', <add> 'uptime'] <ide> <ide> def update(self, stats): <ide> ...
1
Javascript
Javascript
remove the api-caching of annotation-data
9b6d0d994dbe3df5b29b96026958c84f4bc54592
<ide><path>src/display/api.js <ide> class PDFPageProxy { <ide> this.cleanupAfterRender = false; <ide> this.pendingCleanup = false; <ide> this._intentStates = new Map(); <del> this._annotationPromises = new Map(); <ide> this.destroyed = false; <ide> } <ide> <ide> class PDFPageProxy { <ide> getAnn...
1
PHP
PHP
fix signature error
d2dc7e4313be40a7becec0ed8be89931b1435ac5
<ide><path>src/Http/Session/CacheSession.php <ide> public function read($id) <ide> * Helper function called on write for cache sessions. <ide> * <ide> * @param string $id ID that uniquely identifies session in cache. <del> * @param mixed $data The data to be saved. <add> * @param string $data The...
2
Python
Python
claim python 3.6 support
4b9729fc109b72a67e713433ce82c15134d47e65
<ide><path>setup.py <ide> def run(self): <ide> 'Programming Language :: Python :: 3.3', <ide> 'Programming Language :: Python :: 3.4', <ide> 'Programming Language :: Python :: 3.5', <add> 'Programming Language :: Python :: 3.6', <ide> 'Topic :: System :: Monitoring' <ide> ] <i...
1
Ruby
Ruby
swap upcase and to_sym
fb9a39f4fa9a3836eca6e33703691ede17737411
<ide><path>actionpack/lib/action_controller/metal/mime_responds.rb <ide> def initialize(mimes, variant = nil) <ide> @responses = {} <ide> @variant = variant <ide> <del> mimes.each { |mime| @responses[Mime::Type[mime.to_sym.upcase]] = nil } <add> mimes.each { |mime| @responses[Mime::Type[m...
1
Text
Text
add react 17 changelog
46ed2684718d160b06cf6e4f5f5ecf70c7b8974c
<ide><path>CHANGELOG.md <add>## 17.0.0 (October 20, 2020) <add> <add>### React <add> <add>* Add `react/jsx-runtime` and `react/jsx-dev-runtime` for the [new JSX transform](https://babeljs.io/blog/2020/03/16/7.9.0#a-new-jsx-transform-11154-https-githubcom-babel-babel-pull-11154). ([@lunaruan](https://github.com/lunaruan...
1
Ruby
Ruby
assign the cookie hash on request allocation
9f09848918e5f499e9d07a734345ee106d0fb9f9
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def self.new_session <ide> def self.create <ide> env = {} <ide> env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application <add> env["rack.request.cookie_hash"] = {}.with_indifferent_access <ide> ...
2
Python
Python
fix a typo in tag addition
2390b2cf6571d469bebc65b9b4d8eaee33706b57
<ide><path>src/transformers/modelcard.py <ide> def from_keras( <ide> tags = ["generated_from_keras_callback"] <ide> elif isinstance(tags, str) and tags != "generated_from_keras_callback": <ide> tags = [tags, "generated_from_keras_callback"] <del> elif "generated_from_trainer" not ...
1
Mixed
Ruby
replace `immediateexecutor` with nothing
f539be73061a3ef6f2d53237a802e7c082995e87
<ide><path>activerecord/CHANGELOG.md <ide> <ide> Some applications may want one thread pool per database whereas others want to use <ide> a single global thread pool for all queries. By default Rails will set `async_query_executor` <del> to `:immediate` and create a `Concurrent::ImmediateExecutor` object wh...
8
PHP
PHP
use the time utility instead of \datetime
d68caa6077165425db2bbf774cb3e6215f12cf77
<ide><path>src/Controller/Component/CookieComponent.php <ide> <ide> use Cake\Controller\Component; <ide> use Cake\Controller\ComponentRegistry; <del>use Cake\Controller\Controller; <ide> use Cake\Core\Configure; <ide> use Cake\Error; <ide> use Cake\Event\Event; <ide> use Cake\Network\Request; <ide> use Cake\Network\Re...
2
Javascript
Javascript
kill global queue in reactmultichild
418ba27485ef55dfbee06a3f9e56f09380e09a30
<ide><path>src/renderers/dom/client/ReactDOMIDOperations.js <ide> var ReactDOMIDOperations = { <ide> * Updates a component's children by processing a series of updates. <ide> * <ide> * @param {array<object>} updates List of update configurations. <del> * @param {array<string>} markup List of markup strings. ...
5
Python
Python
add volume methods in packet compute driver
d8f140faf4e8d74f72e2c20f608697caed51c751
<ide><path>libcloud/compute/drivers/packet.py <ide> """ <ide> Packet Driver <ide> """ <del>try: <add>try: # Try to use asyncio to perform requests in parallel across projects <ide> import asyncio <del>except ImportError: <add>except ImportError: # If not available will do things serially <ide> asyncio = None <...
1
Javascript
Javascript
omit untitled editors (at least for now)
08a29df12fc965473b0c9e98e4d87fc84154710e
<ide><path>spec/main-process/atom-application.new.test.js <ide> class LaunchScenario { <ide> <ide> getOpenEditors (window) { <ide> return this.evalInWebContents(window.browserWindow.webContents, reply => { <del> reply(atom.workspace.getTextEditors().map(editor => editor.getPath())) <add> reply(atom.wor...
1
Python
Python
add notes to some deprecations
a27f56069fb883c44dd4986d15e751162d85b621
<ide><path>numpy/core/numeric.py <ide> def correlate(a, v, mode='valid', old_behavior=False): <ide> # the old behavior should be made available under a different name, see thread <ide> # http://thread.gmane.org/gmane.comp.python.numeric.general/12609/focus=12630 <ide> if old_behavior: <del> # 2009-07-18 Remo...
2
Mixed
Python
put gaussiannoise in its own module
ab8f7da83fc1e8859df543b386484cfb7e491723
<ide><path>docs/sources/layers/core.md <ide> Apply dropout to the input. Dropout consists in randomly setting a fraction `p` <ide> <ide> --- <ide> <del>## GaussianNoise <del>```python <del>keras.layers.core.GaussianNoise(sigma) <del>``` <del>Apply to the input an additive zero-centred gaussian noise with standard dev...
4
Ruby
Ruby
add commands module for path lookup
0bb7fda143f3a609fdfed27e84422ff55f85db02
<ide><path>Library/Homebrew/commands.rb <add>module Commands <add> def self.path(cmd) <add> if File.exist?(HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh") <add> HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh" <add> elsif File.exist?(HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.sh") <add> HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.sh...
2
Javascript
Javascript
improve asyncresource performance
d3d4e10107a594a758baf2cd5e2c1258671e58c5
<ide><path>lib/async_hooks.js <ide> const { <ide> emitBefore, <ide> emitAfter, <ide> emitDestroy, <add> initHooksExist, <ide> } = internal_async_hooks; <ide> <ide> // Get symbols <ide> class AsyncResource { <ide> throw new ERR_INVALID_ASYNC_ID('triggerAsyncId', triggerAsyncId); <ide> } <ide> <del> ...
2
Text
Text
add todomvc instructions
cf37fdf578c107bf81ebc8994603be3f47958c3d
<ide><path>README.md <ide> Atomic Flux with hot reloading. <ide> - [Why another Flux framework?](#why-another-flux-framework) <ide> - [Philosophy & Design Goals](#philosophy--design-goals) <ide> - [Demo](#demo) <add>- [Running TodoMVC](#running-todomvc) <ide> - [What does it look like?](#what-does-it-look-like) <ide>...
1
Ruby
Ruby
install build deps for `--head`
cb78499cd4b96fa00b51d235e0dd2ea61ec20336
<ide><path>Library/Homebrew/formula_installer.rb <ide> def expand_dependencies <ide> <ide> keep_build_test = false <ide> keep_build_test ||= dep.test? && include_test? && @include_test_formulae.include?(dependent.full_name) <del> keep_build_test ||= dep.build? && !install_bottle_for?(dependent, build)...
1
Javascript
Javascript
expose module wrapper to native modules
5342e3e925652fdd52da05f98768ac63b4fe7e7b
<ide><path>src/node.js <ide> <ide> var internalModuleCache = {}; <ide> <add> var moduleWrapper = <add> ['(function (exports, require, module, __filename, __dirname) { ', <add> '\n});']; <add> <add> <ide> // This contains the source code for the files in lib/ <ide> // Like, natives.fs is the contents of ...
1
Ruby
Ruby
fix use of search_tap method
b2a291529d0878a51e3e082c3668c54abdbff6c1
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_formula_name <ide> same_name_tap_formulae = @@local_official_taps_name_map[name] || [] <ide> <ide> if @online <del> @@remote_official_taps ||= OFFICIAL_TAPS - Tap.select(&:official?).map(&:repo) <del> <del> same_name_tap_formulae += @@remot...
1
Javascript
Javascript
add a todo
00bacbec2575ccb590ac0433996f1c8bb3adde07
<ide><path>test/hotCases/lazy-compilation/context/index.js <add>// TODO: Why is this giving "No tests exported by test case"? <ide> it("should compile to lazy imported context", done => { <ide> const req = require.context("./modules", /^\.\/.*\.js$/); <ide> const result = req("./demo"); <ide> <del> expect(result).to...
1
Javascript
Javascript
remove unused function argument
ab4b632dbf37024783428c10b0b847d15bc1d75f
<ide><path>src/ngMessages/messages.js <ide> angular.module('ngMessages', []) <ide> }); <ide> } <ide> }, <del> detach: function(now) { <add> detach: function() { <ide> if (element) { <ide> $animate.leave(element); <ide> element...
1
PHP
PHP
apply fixes from styleci
a66989e565a88ee4c1a72b5acfb44d95161d98d0
<ide><path>src/Illuminate/Broadcasting/BroadcastManager.php <ide> namespace Illuminate\Broadcasting; <ide> <ide> use Closure; <del>use Illuminate\Contracts\Foundation\CachesRoutes; <ide> use Illuminate\Broadcasting\Broadcasters\LogBroadcaster; <ide> use Illuminate\Broadcasting\Broadcasters\NullBroadcaster; <ide> use I...
4
Text
Text
simplify challenge "access props using this.props"
409399c272a92cf47c369c1bce5b04cc5b78d8ce
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/react/access-props-using-this.props.md <ide> Anytime you refer to a class component within itself, you use the `this` keyword <ide> <ide> # --instructions-- <ide> <del>Render an instance of the `ReturnTempPassword` component in the parent com...
1
Text
Text
remove eslint config link
f3659a5f931bec0e619ccabd678ab0cfdcf323ce
<ide><path>docs/basic-features/eslint.md <ide> Recommended rule-sets from the following ESLint plugins are all used within `esl <ide> - [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) <ide> - [`eslint-plugin-next`](https://www.npmjs.com/package/@next/eslint-plugin-next) <ide> <de...
1
Javascript
Javascript
drop internal uses of .type on the class
9b36b04d75b59a4e0d155735b9ea60ee5fe00afb
<ide><path>src/core/ReactNativeComponent.js <ide> function createInstanceForTag(tag, props, parentType) { <ide> return new genericComponentClass(tag, props); <ide> } <ide> // Unwrap legacy factories <del> return new componentClass.type(props); <add> return new componentClass(props); <ide> } <ide> <ide> var R...
6
Go
Go
add buildinfo for buildkit
fda0226a890b9948a754c48fc3ad5f6e02f43f40
<ide><path>builder/builder-next/adapters/containerimage/pull.go <ide> func (p *puller) CacheKey(ctx context.Context, g session.Group, index int) (stri <ide> if err != nil { <ide> return "", "", nil, false, err <ide> } <del> return dgst.String(), dgst.String(), nil, false, nil <add> return dgst.String(), p.desc...
3
Ruby
Ruby
handle syntax errors in formulae
d3c8e2f9cb78b5b78f95729e8c60fb5ad6daf90d
<ide><path>Library/Contributions/cmd/brew-pull.rb <ide> def tap arg <ide> status, filename = line.split <ide> # Don't try and do anything to removed files. <ide> if (status =~ /A|M/) && (filename =~ %r{Formula/.+\.rb$}) || tap(url) <del> formula = File.basename(filename, '.rb') <del> changed_formu...
1
PHP
PHP
add bus alias
a80e5bca0b36e2377b884772c560f7c871d0bf1f
<ide><path>config/app.php <ide> 'Artisan' => Illuminate\Support\Facades\Artisan::class, <ide> 'Auth' => Illuminate\Support\Facades\Auth::class, <ide> 'Blade' => Illuminate\Support\Facades\Blade::class, <add> 'Bus' => Illuminate\Support\Facades\Bus::class, <ide> 'Cache' => Illumina...
1
Javascript
Javascript
remove valid hostname check in test-dns.js
a1949e8ad9483609fd450f8cc21cc2dca703259e
<ide><path>test/common.js <ide> exports.hasMultiLocalhost = function hasMultiLocalhost() { <ide> return ret === 0; <ide> }; <ide> <del>exports.isValidHostname = function(str) { <del> // See http://stackoverflow.com/a/3824105 <del> var re = new RegExp( <del> '^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0...
2
Python
Python
update data url
82af172ffc51a99966dae984ef51dd5e7bffcb66
<ide><path>tutorials/image/cifar10/cifar10.py <ide> # names of the summaries when visualizing a model. <ide> TOWER_NAME = 'tower' <ide> <del>DATA_URL = 'http://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz' <add>DATA_URL = 'https://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz' <ide> <ide> <ide> def _activation_...
1
Text
Text
add note about variable naming
b763e9b66d1d578b71397c17888f16e9ac485194
<ide><path>CONTRIBUTING.md <ide> At the time of writing (v1.7), spaCy's serialization and deserialization functio <ide> <ide> Although spaCy uses a lot of classes, inheritance is viewed with some suspicion — it's seen as a mechanism of last resort. You should discuss plans to extend the class hierarchy before implemen...
1
PHP
PHP
update doc block
fc8fb360283df84d57b1be22554d9661b509f362
<ide><path>src/Datasource/EntityInterface.php <ide> public function clean(); <ide> * This method can return null in the case there is no prior information on <ide> * the status of this entity. <ide> * <del> * If called with a boolean it will set the known status of this instance, <del> * true mea...
1
PHP
PHP
use cleaner api for plugin loaded info
23bcb93872d3ad2ee919edbe8c4f43425092c49d
<ide><path>src/Core/Plugin.php <ide> */ <ide> namespace Cake\Core; <ide> <del>use Cake\Core\Exception\MissingPluginException; <add>use ArgumentCountError; <ide> use DirectoryIterator; <ide> <ide> /** <ide> public static function bootstrap(string $name): void <ide> } <ide> <ide> /** <del> * Check whether...
1
Javascript
Javascript
fix default prop [ci skip]
3379ebcaa405d3c0f9d4a30f3dc3c7bb5c93a50c
<ide><path>website/src/components/search.js <ide> const Search = ({ id, placeholder, settings }) => { <ide> Search.defaultProps = { <ide> id: 'docsearch', <ide> placeholder: 'Search docs', <add> settings: {}, <ide> } <ide> <ide> Search.propTypes = {
1
Text
Text
add further references
026d73bd8b67f973f833eebad2edf61edf440da9
<ide><path>guide/english/bulma/get-started/index.md <ide> For Bulma to work correctly, you need to make your webpage responsive. <ide> <ide> ### Bulma-start <ide> ```bulma-start``` is a tiny ```npm``` package that includes the npm dependencies you need to build your own website with Bulma. <add> <add>### Further Refer...
1
Ruby
Ruby
add a broadcasting logger so we can split logs
d42b3d4347547b7790d0a716e7548baccf408076
<ide><path>activesupport/lib/active_support/logger.rb <ide> require 'logger' <ide> <ide> module ActiveSupport <add> # Broadcasts logs to multiple loggers <add> class BroadcastLogger < ::Logger # :nodoc: <add> attr_reader :logs <add> <add> def initialize(logs) <add> super(nil) <add> @logs = logs <add>...
2
Text
Text
add conditon to use case structure
f3884d0d2b60b661438c757e48cad9237e151e97
<ide><path>guide/chinese/c/switch/index.md <ide> switch语句就像一组`if statements` 。 <ide> 这是一个可能性列表,每个可能性都有一个动作,以及一个可选的默认动作,以防其他任何事情的评估结果为真。 <ide> <ide> 我们`break`从交换机退出。如果在下一个案例开始之前没有达到`break`语句,则执行将通过并在下一种情况下开始执行代码。 <add>注: switch语句只能使用在char或int这两种类型的数据。 <add> <add>switch (数据类型必须 char or int) <ide> <ide> ## 开关语法...案例 <id...
1
Javascript
Javascript
change docs to mention `setunknownproperty`
30a6eae2518f7e0181d2705d44a02deaa5bad281
<ide><path>packages/ember-metal/lib/property_set.js <ide> var META_KEY = Ember.META_KEY, <ide> /** <ide> Sets the value of a property on an object, respecting computed properties <ide> and notifying observers and other listeners of the change. If the <del> property is not defined but the object implements the `unk...
3
Text
Text
fix typos on `e.g.` abbreviations
7afe6c728e824021dd3f4863e2d8b867d5b12c7f
<ide><path>doc/api/dns.md <ide> will be present on the object: <ide> | `'PTR'` | `value` | <ide> | `'SOA'` | Refer to [`dns.resolveSoa()`][] | <ide> | `'SRV'` | Refer to [`dns.resolveSrv()`][] | <del>| `'TXT'` | This type of record contains an array property called `entries` which refers to [`dns.resolveTxt()`][], eg. ...
2
Ruby
Ruby
add `path` class
a16746906d463ce9e4dc129bc5a76b81585ee1dd
<ide><path>Library/Homebrew/PATH.rb <add>class PATH <add> def initialize(*paths) <add> @paths = parse(*paths) <add> end <add> <add> def prepend(*paths) <add> @paths.unshift(*parse(*paths)) <add> self <add> end <add> <add> def append(*paths) <add> @paths.concat(parse(*paths)) <add> self <add> end <a...
3
Text
Text
strengthen test for reassigning node reference
f2236983a27d92cf844aad87c1688d7e6269b93d
<ide><path>curriculum/challenges/english/10-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.md <ide> tests: <ide> - text: Your <code>remove</code> method should decrease the <code>length</code> of the linked list by one for every node removed. <ide> testString: assert((function(){var test...
1
Ruby
Ruby
document the controller method for ad's mapper
e5eece41b5ac740f8a137b3228d052273c641099
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def scope(*args) <ide> @scope[:blocks] = recover[:block] <ide> end <ide> <add> # Scopes routes to a specific controller <add> # <add> # Example: <add> # controller "food" do <add> # match "baco...
1
Javascript
Javascript
name anonymous functions in canvas.js
a7690dea0a162738c9f458156343d45a054ab960
<ide><path>src/canvas.js <ide> var CanvasGraphics = (function canvasGraphics() { <ide> }, <ide> <ide> // Color <del> setStrokeColorSpace: <del> function canvasGraphicsSetStrokeColorSpacefunction(raw) { <add> setStrokeColorSpace: function canvasGraphicsSetStrokeColorSpace(raw) { <ide> this.curren...
1
Text
Text
add missing metadata for recursive mkdir
77152739fd356c054e148e488936f018563136eb
<ide><path>doc/api/fs.md <ide> Synchronous lstat(2). <ide> <!-- YAML <ide> added: v0.1.8 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/21875 <add> description: The second argument can now be an `options` object with <add> `recursive` and `mode` proper...
1
Python
Python
fix text preprocessing
a1161885d5d7a4a37ba58c7df5e7073850c6d1ea
<ide><path>keras/preprocessing/text.py <ide> else: <ide> maketrans = str.maketrans <ide> <add> <ide> def base_filter(): <ide> f = string.punctuation <ide> f = f.replace("'", '') <ide> f += '\t\n' <ide> return f <ide> <add> <ide> def text_to_word_sequence(text, filters=base_filter(), lower=True, sp...
1