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 | fix improper usage of warning filters in the tests | a2bb1cc9b6fc37583494d9a3e14b0ace59d210a5 | <ide><path>numpy/core/tests/test_maskna.py
<ide> from numpy.compat import asbytes
<ide> from numpy.testing import *
<ide> import sys, warnings
<del>
<add>from numpy.testing.utils import WarningManager
<ide>
<ide> def test_array_maskna_flags():
<ide> a = np.arange(3)
<ide> def test_array_maskna_astype():
<ide> ... | 7 |
Ruby | Ruby | remove unused attr | 7804d2d5f3f0250b7f6d693476791be5bb0e597c | <ide><path>Library/Homebrew/resource.rb
<ide> class Resource
<ide> # This is the resource name
<ide> attr_reader :name
<ide>
<del> # This is the associated formula name
<del> attr_reader :owner_name
<del>
<ide> def initialize name, spec
<ide> @name = name
<ide> @spec = spec | 1 |
Text | Text | fix broken link to section | b35b00990c639493364f3dc3fd690462948e2942 | <ide><path>CONTRIBUTING.md
<ide> These are just guidelines, not rules, use your best judgment and feel free to pr
<ide>
<ide> #### Table Of Contents
<ide>
<del>[What should I know before I get started?](#introduction)
<add>[What should I know before I get started?](#what-should-i-know-before-i-get-started)
<ide> * ... | 1 |
Text | Text | use oxford comma in crypto docs | e4dfe5466f8fef8aeeceb579432d494c54377174 | <ide><path>doc/api/crypto.md
<ide> once will result in an error being thrown.
<ide> added: v1.0.0
<ide> -->
<ide>
<del>* Returns: {Buffer} When using an authenticated encryption mode (`GCM`, `CCM`
<add>* Returns: {Buffer} When using an authenticated encryption mode (`GCM`, `CCM`,
<ide> and `OCB` are currently suppor... | 1 |
Javascript | Javascript | add macedonian language | b6413bf9b49786e52ff5c1c724b66110a71df642 | <ide><path>lang/mk.js
<add>// moment.js language configuration
<add>// language : macedonian (mk)
<add>// author : Borislav Mickov : https://github.com/B0k0
<add>
<add>(function (factory) {
<add> if (typeof define === 'function' && define.amd) {
<add> define(['moment'], factory); // AMD
<add> } else if (ty... | 2 |
Mixed | Ruby | fix broken handling of unknown http methods | 1f9a5dd36bd0dcba8ad7692322e79d6ce14c064d | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def key?(key)
<ide> HTTP_METHOD_LOOKUP[method] = method.underscore.to_sym
<ide> }
<ide>
<add> alias raw_request_method request_method # :nodoc:
<add>
<ide> # Returns the HTTP \method that the application should see.
<ide> # In the cas... | 4 |
PHP | PHP | add missing return and remove else statements | 9e62a46a9b1ec1bcab31e41e102e692d9e6a4c80 | <ide><path>Cake/ORM/Association/BelongsToMany.php
<ide> public function cascadeDelete(Entity $entity, $options = []) {
<ide> foreach ($table->find('all')->where($conditions) as $related) {
<ide> $table->delete($related, $options);
<ide> }
<del> } else {
<del> return $table->deleteAll($conditions);
<add> ... | 2 |
Python | Python | change version number | 07e319edaa2c21c9300acdefa60f4b719b44af12 | <ide><path>numpy/version.py
<del>version='0.9.9'
<add>version='1.0'
<ide>
<ide> import os
<ide> svn_version_file = os.path.join(os.path.dirname(__file__), | 1 |
Javascript | Javascript | check error type from net.server.listen() | 8059393934c2ed0e3e7a179f619b803291804344 | <ide><path>test/parallel/test-net-server-try-ports.js
<ide> var connections = 0;
<ide>
<ide> var server1listening = false;
<ide> var server2listening = false;
<add>var server2eaddrinuse = false;
<ide>
<ide> var server1 = net.Server(function(socket) {
<ide> connections++;
<ide> var server2 = net.Server(function(sock... | 1 |
PHP | PHP | indicate defer property removal | 8cb5ae73b8ecb649abd38f2548362f0145dc1da5 | <ide><path>src/Illuminate/Support/ServiceProvider.php
<ide> abstract class ServiceProvider
<ide> /**
<ide> * Indicates if loading of the provider is deferred.
<ide> *
<del> * @deprecated 5.8 Implement the \Illuminate\Contracts\Support\DeferrableProvider interface instead.
<add> * @deprecated Imple... | 1 |
Python | Python | add note about array_like being optional | 3f18d8fab26fb473e495f2e82600ce170d1c577c | <ide><path>numpy/core/_add_newdocs.py
<ide> dtype : dtype, optional
<ide> The type of the output array. If `dtype` is not given, infer the data
<ide> type from the other input arguments.
<del> ${ARRAY_FUNCTION_LIKE} This is an optional argument.
<add> ${ARRAY_FUNCTION_LIKE}
<ide>
<ide> ... | 2 |
Text | Text | add yarn add webpack-cli step | 64db3064c76b52dec070e113998415b9b5e65430 | <ide><path>examples/README.md
<ide> If you think an example is missing, please report it as issue. :)
<ide>
<ide> # Building an Example
<del>1. Run `npm install` in the root of the project.
<del>2. Run `npm link webpack` in the root of the project.
<del>3. Run `node build.js` in the specific example directory. (Ex: `c... | 1 |
Java | Java | consolidate okhttpclient creation | 07c8854a1cbe32d38857cf2001b16e2549058d93 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java
<ide> public interface ResponseHandler {
<ide> private final List<ResponseHandler> mResponseHandlers = new ArrayList<>();
<ide> private boolean mShuttingDown;
<ide>
<del> /* package */ NetworkingModule(
<add> public Ne... | 1 |
Python | Python | prefer app named "app" | 7e824d62e309e0dfe3ed1c823c689f875e95356a | <ide><path>celery/bin/base.py
<ide> def find_app(self, app):
<ide> sym = import_from_cwd(app)
<ide> if isinstance(sym, ModuleType):
<ide> try:
<del> return sym.celery
<add> return sym.app
<ide> except AttributeError:
<del> if getat... | 1 |
Java | Java | use decode from a databuffer where feasible | f89d2ac14891d21714462e6ea4f8dc32d325f1cf | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/reactive/PayloadMethodArgumentResolver.java
<ide> private Mono<Object> decodeContent(MethodParameter parameter, Message<?> message
<ide> if (decoder.canDecode(elementType, mimeType)) {
<ide> if (adapter != null && ... | 3 |
Python | Python | use getfullargspec for python 3. closes | c67de364262def9045cde5318a811d05adc169e5 | <ide><path>celery/contrib/sphinx.py
<ide> """
<ide> from __future__ import absolute_import
<ide>
<del>from inspect import formatargspec, getargspec
<add>try:
<add> from inspect import formatargspec, getfullargspec as getargspec
<add>except ImportError: # Py2
<add> from inspect import formatargspec, getargspec ... | 1 |
Python | Python | disallow any dag tags longer than 100 char | 4b28635b2085a07047c398be6cc1ac0252a691f7 | <ide><path>airflow/models/dag.py
<ide> DEFAULT_VIEW_PRESETS = ['grid', 'graph', 'duration', 'gantt', 'landing_times']
<ide> ORIENTATION_PRESETS = ['LR', 'TB', 'RL', 'BT']
<ide>
<add>TAG_MAX_LEN = 100
<ide>
<ide> DagStateChangeCallback = Callable[[Context], None]
<ide> ScheduleInterval = Union[None, str, timedelta, re... | 2 |
Java | Java | add genericconversionservice jmh benchmark | 212bb7fef65a21fc367f5ee341d5f9f52c112d46 | <ide><path>spring-core/src/jmh/java/org/springframework/core/convert/support/GenericConversionServiceBenchmark.java
<add>/*
<add> * Copyright 2002-2020 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance w... | 2 |
PHP | PHP | add missing public methods to interface | e4f477c42d3e24f6cdf44a45801c0db476ad2b91 | <ide><path>src/Illuminate/Routing/CompiledRouteCollection.php
<ide> public function add(Route $route)
<ide> return $route;
<ide> }
<ide>
<add> /**
<add> * Refresh the name look-up table.
<add> *
<add> * This is done in case any names are fluently defined or if routes are overwritten.
<add> ... | 2 |
Javascript | Javascript | remove ember from namespace list | 507196da7be456628202e93525a30e13a2cc9a1d | <ide><path>packages/ember-extension-support/lib/container_debug_adapter.js
<ide> export default EmberObject.extend({
<ide> let typeSuffixRegex = new RegExp(`${StringUtils.classify(type)}$`);
<ide>
<ide> namespaces.forEach(namespace => {
<del> if (namespace.toString() !== 'Ember') {
<del> for (let k... | 2 |
Python | Python | remove misleading message from ci | ac104025f45b54efff26407e460a5e4279c6495b | <ide><path>dev/breeze/src/airflow_breeze/utils/path_utils.py
<ide> def create_volume_if_missing(volume_name: str):
<ide> from airflow_breeze.utils.run_utils import run_command
<ide>
<ide> res_inspect = run_command(
<del> cmd=["docker", "volume", "inspect", volume_name], stdout=subprocess.DEVNULL, check=... | 1 |
Javascript | Javascript | update event names in pointer event platform tests | ff6c906a66037c423ff4b739d683e9fe1042b673 | <ide><path>packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventAttributesHoverablePointers.js
<ide> const UNINITIALIZED_LAYOUT: Layout = {
<ide> height: NaN,
<ide> };
<ide>
<del>// TODO: remove number suffixes
<ide> const eventList = [
<ide> 'pointerOver',
<del> 'pointerEnter2',
<... | 1 |
PHP | PHP | normalize paths better | 5a728f4445238c40a763844037179da493d6bcf7 | <ide><path>src/Core/functions.php
<ide> function deprecationWarning(string $message, int $stackFrame = 1): void
<ide> $frame += ['file' => '[internal]', 'line' => '??'];
<ide>
<ide> $patterns = (array)Configure::read('Error.disableDeprecations');
<del> $relative = substr($frame['file... | 1 |
Javascript | Javascript | use stronger curves for keygen | 8b2e861da1da827cf8c581efbfd126907df9b593 | <ide><path>test/parallel/test-crypto-keygen.js
<ide> const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
<ide> // Test async elliptic curve key generation, e.g. for ECDSA, with an encrypted
<ide> // private key.
<ide> generateKeyPair('ec', {
<del> namedCurve: 'P-192',
<add> namedCurve:... | 1 |
Java | Java | optimize allocation in stringutils#cleanpath | 8d3e8ca3a2d534f6ee872bb6a65a89c44e987cf6 | <ide><path>spring-core/src/main/java/org/springframework/util/StringUtils.java
<ide> public static String cleanPath(String path) {
<ide> if (!hasLength(path)) {
<ide> return path;
<ide> }
<del> String pathToUse = replace(path, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR);
<add>
<add> String normalizedPath = rep... | 2 |
Java | Java | fix cronexpression issue with zoneddatetime & dst | ab18ab60250e256da4b1502e1786b168c374a229 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/support/CronField.java
<ide> /*
<del> * Copyright 2002-2020 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 ma... | 2 |
Text | Text | release notes for 1.2.14 feisty-cryokinesis | 729fb13c9ef4181cce0a2d96529ec3a8479601be | <ide><path>CHANGELOG.md
<add><a name="1.2.14"></a>
<add># 1.2.14 feisty-cryokinesis (2014-03-01)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:**
<add> - delegate down to addClass/removeClass if setClass is not found
<add> ([18c41af0](https://github.com/angular/angular.js/commit/18c41af065006a804a3d38eecca7ae... | 1 |
Mixed | Python | add scores to output in spancat | 6029cfc3912ba331168fcac71147efd525b51ba6 | <ide><path>spacy/pipeline/spancat.py
<ide> def _make_span_group(
<ide> spans = SpanGroup(doc, name=self.key)
<ide> max_positive = self.cfg["max_positive"]
<ide> threshold = self.cfg["threshold"]
<add>
<add> keeps = scores >= threshold
<add> ranked = (scores * -1).argsort()
<add> ... | 3 |
Javascript | Javascript | add test cases for | e4dfd201f17db9885bee636d99d3fb169ad39450 | <ide><path>test/configCases/plugins/define-plugin/index.js
<ide> it("should define OBJECT.SUB.CODE", function() {
<ide> sub.CODE.should.be.eql(3);
<ide> }(OBJECT.SUB));
<ide> });
<add>it("should define OBJECT.SUB.STRING", function() {
<add> (typeof OBJECT.SUB.STRING).should.be.eql("string");
<add> OBJECT.SUB.STRING.... | 2 |
Javascript | Javascript | fix $on listener signature doc | 4ccd9eb88321f8554ee4dc41b7f8068ce2306765 | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider(){
<ide> * @param {function(event)} listener Function to call when the event is emitted.
<ide> * @returns {function()} Returns a deregistration function for this listener.
<ide> *
<del> * The event listener function format is: `... | 1 |
Python | Python | remove unused import statement | 79c133143297a37b630f791b02c88d58579e05ef | <ide><path>examples/imdb_fasttext.py
<ide> from keras.layers import Embedding
<ide> from keras.layers import GlobalAveragePooling1D
<ide> from keras.datasets import imdb
<del>from keras import backend as K
<ide>
<ide>
<ide> def create_ngram_set(input_list, ngram_value=2): | 1 |
Text | Text | retranslate the sentence from english to chinese | a558b1ca65063631edcae1371c28dda06da950c3 | <ide><path>guide/chinese/swift/variables/index.md
<ide> localeTitle: 变量
<ide>
<ide> 变量将名称与特定类型的值相关联。在Swift中,有两种主要的方法来创建变量。 `let`和`var` 。要声明常量,请使用`let`关键字。要声明可变变量,请使用`var`关键字。
<ide>
<del>在Swift中存储变量的两种方法的好处是防止变化应该是常量的变量的错误。
<add>Swift中使用两种方式储存变量的好处是防止“改变常量值”这种错误。
<ide>
<del>\`\`\`斯威夫特 让daysInAWeek = 7 var amountOfMon... | 1 |
Javascript | Javascript | remove redundant 'animate' in link | ba9fb82f187b375ee9baedd834837b3bc5dd6b8a | <ide><path>src/ngAnimate/module.js
<ide> * @description
<ide> * The ngAnimate `$animate` service documentation is the same for the core `$animate` service.
<ide> *
<del> * Click here {@link ng.$animate $animate to learn more about animations with `$animate`}.
<add> * Click here {@link ng.$animate to learn more about... | 1 |
Python | Python | normalize device names in multi_gpu_model | 7144aeb796d7e1bc6523bca8688dd3160d54e810 | <ide><path>keras/utils/training_utils.py
<ide> def _get_available_devices():
<ide> return [x.name for x in local_device_protos]
<ide>
<ide>
<add>def _normalize_device_name(name):
<add> name = name.lower().replace('device:', '')
<add> return name
<add>
<add>
<ide> def multi_gpu_model(model, gpus):
<ide> ... | 1 |
PHP | PHP | fix psalm errors | dfb498f18b705d0467f9889ec4ba70abe92f74eb | <ide><path>src/Command/PluginAssetsCopyCommand.php
<ide>
<ide> /**
<ide> * Command for copying plugin assets to app's webroot.
<add> *
<add> * @psalm-suppress PropertyNotSetInConstructor
<ide> */
<ide> class PluginAssetsCopyCommand extends Command
<ide> {
<ide> public function execute(Arguments $args, ConsoleIo $io)... | 4 |
Go | Go | fix race on sending stdin close event | 4e262f63876018ca78d54a98eee3f533352b0ac9 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> import (
<ide> "bytes"
<ide> "encoding/json"
<ide> "fmt"
<add> "io"
<ide> "io/ioutil"
<ide> "net"
<ide> "os"
<ide> func (s *DockerSuite) TestRunEmptyEnv(c *check.C) {
<ide> c.Assert(err, checker.NotNil)
<ide> c.Assert(out, checker.Contains, expectedOutput)... | 2 |
Javascript | Javascript | remove check that is always true | b90552b9ca851bf8567acca5176597e6f316a68f | <ide><path>src/core/core.scale.js
<ide> var Scale = Element.extend({
<ide> for (i = 0; i < ticksLength; ++i) {
<ide> tick = ticks[i] || {};
<ide>
<del> // autoskipper skipped this tick (#4635)
<del> if (isNullOrUndef(tick.label) && i < ticks.length) {
<del> continue;
<del> }
<del>
<ide> if (i === me.z... | 1 |
Javascript | Javascript | fix misleading comment | fd18243a50cba987063187b3ff95a2407ed348fa | <ide><path>test/parallel/test-vm-function-declaration.js
<ide> const assert = require('assert');
<ide> const vm = require('vm');
<ide> const o = vm.createContext({ console: console });
<ide>
<del>// This triggers the setter callback in node_contextify.cc
<add>// Function declaration and expression should both be copie... | 1 |
Javascript | Javascript | dump response when request is aborted | 99a7e78e7789a1a0de31c493605abf0a0f35312a | <ide><path>lib/http.js
<ide> ClientRequest.prototype._implicitHeader = function() {
<ide> };
<ide>
<ide> ClientRequest.prototype.abort = function() {
<add> // If we're aborting, we don't care about any more response data.
<add> if (this.res)
<add> this.res._dump();
<add> else
<add> this.once('response', funct... | 2 |
Go | Go | handle image metadata when drivers are switched | 1b28cdc7f977f265d0d8de53e8ec1d773ed54db1 | <ide><path>graph.go
<ide> func (graph *Graph) restore() error {
<ide> }
<ide> for _, v := range dir {
<ide> id := v.Name()
<del> graph.idIndex.Add(id)
<add> if graph.driver.Exists(id) {
<add> graph.idIndex.Add(id)
<add> }
<ide> }
<ide> return nil
<ide> }
<ide> func (graph *Graph) Register(jsonData []byte, la... | 6 |
Javascript | Javascript | use helper function to remove duplication | ef9db4b6a81fbc289ada8783f6ee9155db2bd9ce | <ide><path>packages/ember-handlebars/tests/handlebars_test.js
<ide> test("should escape HTML in normal mustaches", function() {
<ide> output: "you need to be more <b>bold</b>"
<ide> });
<ide>
<del> Ember.run(function() { view.appendTo('#qunit-fixture'); });
<add> appendView();
<ide> equal(view.$('b').length,... | 1 |
Ruby | Ruby | refer to`homebrew/homebrew-cask-versions` properly | 023261038192a4f55c95a4d2486873ec1c9a728a | <ide><path>Library/Homebrew/official_taps.rb
<ide>
<ide> OFFICIAL_CASK_TAPS = %w[
<ide> cask
<del> versions
<add> cask-versions
<ide> ].freeze
<ide>
<ide> OFFICIAL_CMD_TAPS = { | 1 |
Text | Text | add changes to changelog | 01ddd1cecff3fabd1ecaeb86717612e757b74139 | <ide><path>actionview/CHANGELOG.md
<add>* Fix issues with scopes and engine on `current_page?` method.
<add>
<add> Fixes #29401.
<add>
<add> *Nikita Savrov*
<add>
<ide> * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
<ide>
<ide> This makes sure that the label... | 1 |
Go | Go | add proper refcounting to zfs graphdriver | 922986b76e2ac596faed6a724cebcf7082174980 | <ide><path>daemon/graphdriver/zfs/zfs.go
<ide> import (
<ide> "github.com/opencontainers/runc/libcontainer/label"
<ide> )
<ide>
<add>type activeMount struct {
<add> count int
<add> path string
<add> mounted bool
<add>}
<add>
<ide> type zfsOptions struct {
<ide> fsName string
<ide> mountPath string
<ide> fun... | 1 |
Javascript | Javascript | correct the buffersize to highwatermark | 60958d235d6ad789b034a67a528a7d680ac1c727 | <ide><path>benchmark/fs/read-stream-throughput.js
<ide> function main(conf) {
<ide> function runTest() {
<ide> assert(fs.statSync(filename).size === filesize);
<ide> var rs = fs.createReadStream(filename, {
<del> bufferSize: size,
<add> highWaterMark: size,
<ide> encoding: encoding
<ide> });
<ide> | 1 |
Go | Go | avoid a head request for each layer in a v2 pull | 39589800b4750bf28078efe57f7f1e74d971248f | <ide><path>distribution/pull_v2.go
<ide> func (p *v2Puller) download(di *downloadInfo) {
<ide>
<ide> blobs := p.repo.Blobs(context.Background())
<ide>
<del> desc, err := blobs.Stat(context.Background(), di.digest)
<del> if err != nil {
<del> logrus.Debugf("Error statting layer: %v", err)
<del> di.err <- err
<del> ... | 1 |
PHP | PHP | return connection status in debug | c9e83a2dc3ba6f2c5e00d34fdd012b666c1a964c | <ide><path>src/Database/Driver.php
<ide> public function __destruct() {
<ide> * @return array
<ide> */
<ide> public function __debugInfo() {
<del> $secrets = [
<del> 'password' => '*****',
<del> 'login' => '*****',
<del> 'host' => '*****',
<del> 'database' => '*****',
<del> 'port' => '*****',
<del> 'pre... | 1 |
Text | Text | update version numbers in quickstart guide | fc7cebe1550da6ce92de72babdaab2d6ef838c0e | <ide><path>README.md
<ide> Thanks to the awesome folks over at [Fastly](http://www.fastly.com/), there's a
<ide> `<head>`:
<ide>
<ide> ```html
<del><link href="http://vjs.zencdn.net/4.9/video-js.css" rel="stylesheet">
<del><script src="http://vjs.zencdn.net/4.9/video.js"></script>
<add><link href="http://vjs.zencdn.ne... | 1 |
Go | Go | optimize changesdirs on linux | 45c45a2c9a71528489a58fe633849f16e245631c | <ide><path>pkg/archive/changes.go
<ide> import (
<ide> "bytes"
<ide> "fmt"
<ide> "io"
<add> "io/ioutil"
<ide> "os"
<ide> "path/filepath"
<ide> "sort"
<ide> func newRootFileInfo() *FileInfo {
<ide> return root
<ide> }
<ide>
<del>func collectFileInfo(sourceDir string) (*FileInfo, error) {
<del> root := newRootFil... | 4 |
PHP | PHP | move method to trait | 70052b2f5eec8859f1fdb0a84b7705ed464a74de | <ide><path>src/Illuminate/Http/Response.php
<ide> public function setContent($content)
<ide> return parent::setContent($content);
<ide> }
<ide>
<del> /**
<del> * Add an array of headers to the response.
<del> *
<del> * @param array $headers
<del> * @return $this
<del> */
<del> p... | 2 |
Ruby | Ruby | remove xmlsimple dependencies | 4073a6d0a2f5926e10f06fe1702db7b1b7a20751 | <ide><path>actionpack/test/controller/webservice_test.rb
<ide> def test_post_xml_using_a_root_node_named_type
<ide> end
<ide>
<ide> def test_post_xml_using_an_attributted_node_named_type
<del> ActionController::Base.param_parsers[Mime::XML] = Proc.new { |data| XmlSimple.xml_in(data, 'ForceArray' => false) }
<ad... | 1 |
Go | Go | add service hierarchy to rest api | 0912ecfc05ba5d1e3e38ca018e12af08bea8ffcd | <ide><path>libnetwork/api/api.go
<ide> func (h *httpHandler) initRouter() {
<ide> {"/networks/" + nwID + "/endpoints", []string{"partial-id", epPID}, procGetEndpoints},
<ide> {"/networks/" + nwID + "/endpoints", nil, procGetEndpoints},
<ide> {"/networks/" + nwID + "/endpoints/" + epID, nil, procGetEndpoint},
<... | 4 |
Javascript | Javascript | ignore bogus rowspan=1 and colspan=1 in ie | 35adade6ac0b4e485b75fe49e0af6338ff816213 | <ide><path>test/testabilityPatch.js
<ide> function sortedHtml(element, showNgClass) {
<ide> attr.name !='style' &&
<ide> attr.name.substr(0, 6) != 'jQuery') {
<ide> // in IE we need to check for all of these.
<del> if (!/ng-\d+/.exec(attr.name) &&
<del> attr.name ... | 1 |
Python | Python | add version option to cli.train | 7fdfb78141a90d1f27ebd50406d0ba3591a1253f | <ide><path>spacy/cli/train.py
<ide> no_parser=("Don't train parser", "flag", "P", bool),
<ide> no_entities=("Don't train NER", "flag", "N", bool),
<ide> gold_preproc=("Use gold preprocessing", "flag", "G", bool),
<add> version=("Model version", "option", "v", str),
<ide> meta_path=("Optional path to ... | 1 |
Python | Python | add implementation of coulomb's law | 57a7e5738b8224f58941019964da67ece679eab9 | <ide><path>electronics/coulombs_law.py
<add># https://en.wikipedia.org/wiki/Coulomb%27s_law
<add>
<add>from __future__ import annotations
<add>
<add>COULOMBS_CONSTANT = 8.988e9 # units = N * m^s * C^-2
<add>
<add>
<add>def couloumbs_law(
<add> force: float, charge1: float, charge2: float, distance: float
<add>) -> ... | 1 |
Text | Text | update best practises | a42675f7d6c91017d930dfd427f6f73bf5b61753 | <ide><path>docs/New-Maintainer-Checklist.md
<ide> First, send them the invitation email:
<ide>
<ide> ```
<ide> The Homebrew team and I really appreciate your help on issues, pull requests and
<del>your contributions around $THEIR_CONTRIBUTIONS.
<add>your contributions to Homebrew.
<ide>
<ide> We would like to invite ... | 1 |
Javascript | Javascript | improve readability on conditional assignment | 78d2620576386df9f037e87ef4b09c60e8694a77 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
<ide> var attrs, $element, i, ii, linkFn, controller, isolateScope, elementControllers = {}, transcludeFn;
<ide>
<del>... | 1 |
Text | Text | add style_guide (moved from nodejs/docs) | ca5215ebe37ced58baf1247ad931172ae3f9ca91 | <ide><path>CONTRIBUTING.md
<ide> Create a branch and start hacking:
<ide> $ git checkout -b my-branch -t origin/master
<ide> ```
<ide>
<add>Any text you write should follow the [Style Guide](doc/STYLE_GUIDE.md),
<add>including comments and API documentation.
<add>
<ide> ### Step 3: Commit
<ide>
<ide> Make sure git kn... | 2 |
Java | Java | add httprequestbuilder default implementation | a6469baa4f84de1b9da0131db981e2f42b09969d | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/client/reactive/DefaultHttpRequestBuilder.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance w... | 3 |
Javascript | Javascript | resolve the true entry point during tests | 86715efa23c02dd156e61a4476f28045bb5f4654 | <ide><path>packages/react-dom/src/__tests__/ReactDOMFiberAsync-test.js
<ide> describe('ReactDOMFiberAsync', () => {
<ide> expect(ops).toEqual(['BC', 'ABCD']);
<ide> });
<ide>
<del> // @gate experimental
<add> // @gate experimental || www
<ide> it('flushControlled flushes updates before yielding to ... | 26 |
Javascript | Javascript | name anonymous function in _http_common.js | 72624fdd53de106c8afdd400865b89ed5b24ca17 | <ide><path>lib/_http_common.js
<ide> function parserOnMessageComplete() {
<ide> }
<ide>
<ide>
<del>const parsers = new FreeList('parsers', 1000, function() {
<add>const parsers = new FreeList('parsers', 1000, function parsersCb() {
<ide> const parser = new HTTPParser(HTTPParser.REQUEST);
<ide>
<ide> parser._head... | 1 |
Javascript | Javascript | use new attributestylemap for elements | 1276f6f85dc4e3403c549d4940d358915ecac321 | <ide><path>src/text-editor-component.js
<ide> class NodePool {
<ide>
<ide> if (element) {
<ide> element.className = className || ''
<del> element.styleMap.forEach((value, key) => {
<add> element.attributeStyleMap.forEach((value, key) => {
<ide> if (!style || style[key] == null) element.styl... | 1 |
Python | Python | fix comment, simplify math | 49f70f7c3a447c8e0bc9ba0d1be7e4df34f04f58 | <ide><path>numpy/linalg/linalg.py
<ide> def _multi_dot_three(A, B, C):
<ide> than `_multi_dot_matrix_chain_order`
<ide>
<ide> """
<del> # cost1 = cost((AB)C)
<del> cost1 = (A.shape[0] * A.shape[1] * B.shape[1] + # (AB)
<del> A.shape[0] * B.shape[1] * C.shape[1]) # (--)C
<del> # cost2 = ... | 1 |
Go | Go | fix retry logic for out of sequence errors | 157561e95ccaef883fe106a38741acb3d493879f | <ide><path>integration-cli/daemon_swarm.go
<ide> func (d *SwarmDaemon) cmdRetryOutOfSequence(args ...string) (string, error) {
<ide> for i := 0; ; i++ {
<ide> out, err := d.Cmd(args...)
<ide> if err != nil {
<del> if strings.Contains(err.Error(), "update out of sequence") {
<add> if strings.Contains(out, "upda... | 1 |
Python | Python | add compat.v1 to support tf 2.0 in mnist | 9691ef7a2a64c39b3096c34a8fba0e168175cb82 | <ide><path>official/mnist/dataset.py
<ide> def read32(bytestream):
<ide>
<ide> def check_image_file_header(filename):
<ide> """Validate that filename corresponds to images for the MNIST dataset."""
<del> with tf.gfile.Open(filename, 'rb') as f:
<add> with tf.io.gfile.GFile(filename, 'rb') as f:
<ide> magic = r... | 3 |
PHP | PHP | make the rule work without parameters | 169f9d414b256ae741bb5c69cf9ec6a9a298a3fb | <ide><path>src/Illuminate/Validation/Validator.php
<ide> class Validator implements ValidatorContract
<ide> */
<ide> protected $replacers = [];
<ide>
<add> /**
<add> * The array of rules with asterisks.
<add> *
<add> * @var array
<add> */
<add> protected $implicitAttributes = [];
<add>
<... | 2 |
Javascript | Javascript | fix jbig2 decoding issue | c03cf20d371e67ba6dfa222dca15abd552b52e57 | <ide><path>src/core/jbig2.js
<ide> var Jbig2Image = (function Jbig2ImageClosure() {
<ide> }
<ide> ];
<ide>
<add> // See 6.2.5.7 Decoding the bitmap.
<ide> var ReusedContexts = [
<del> 0x1CD3, // '00111001101' (template) + '0011' (at),
<del> 0x079A, // '001111001101' + '0',
<del> 0x00E3, // '001110001... | 1 |
Python | Python | prepare pypi release | 12d068f67554f49707e34cca62981d1196c76aff | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '1.1.2'
<add>__version__ = '1.2.0'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='1.1.2',
<add> version='1.2.0',
<ide> description='Deep Learning for Python'... | 2 |
Javascript | Javascript | replace http to https of comment link urls | ee3416b055a3d877251c095981508e275d99f8c2 | <ide><path>lib/_http_server.js
<ide> function Server(options, requestListener) {
<ide>
<ide> // Similar option to this. Too lazy to write my own docs.
<ide> // http://www.squid-cache.org/Doc/config/half_closed_clients/
<del> // http://wiki.squid-cache.org/SquidFaq/InnerWorkings#What_is_a_half-closed_filedescripto... | 8 |
PHP | PHP | fix doc block | d3cdfda31827e998c3a1a92e724532fe93ef68a2 | <ide><path>src/Illuminate/Foundation/Http/FormRequest.php
<ide> class FormRequest extends Request implements ValidatesWhenResolved
<ide> /**
<ide> * The container instance.
<ide> *
<del> * @var \Illuminate\Container\Container
<add> * @var \Illuminate\Contracts\Container\Container
<ide> */
<id... | 1 |
Ruby | Ruby | remove messages obviated by new arg parser | f0270a585cc37e5b84d70404bf434c6f69c7672d | <ide><path>Library/Homebrew/cmd/desc.rb
<ide> def desc
<ide> search_type << :either if args.search
<ide> search_type << :name if args.name
<ide> search_type << :desc if args.description
<del> if search_type.size > 1
<del> odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--descripti... | 2 |
PHP | PHP | add additional tests for making load() | 3d9650593f7db113f924efe7a64b490f2a85a738 | <ide><path>tests/TestCase/Core/ConfigureTest.php
<ide> <?php
<ide> /**
<del> * ConfigureTest file
<del> *
<del> * Holds several tests
<del> *
<ide> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<i... | 1 |
PHP | PHP | insertsub() | d50b93d7d1e18fafe7b99c03206d5c4c989f74bb | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function insertGetId(array $values, $sequence = null)
<ide> */
<ide> public function insertSub(array $columns, $query)
<ide> {
<add> [$sql, $bindings] = $this->createSub($query);
<add>
<add> return $this->connection->insert(
<a... | 3 |
Text | Text | fix links from toc to subsection for 4.8.x | 5de722ab6d1039980d3bafef42496e3659461573 | <ide><path>doc/changelogs/CHANGELOG_V4.md
<ide> </tr>
<ide> <tr>
<ide> <td valign="top">
<del><a href="#4.8.1">4.8.3</a><br/>
<del><a href="#4.8.1">4.8.2</a><br/>
<add><a href="#4.8.3">4.8.3</a><br/>
<add><a href="#4.8.2">4.8.2</a><br/>
<ide> <a href="#4.8.1">4.8.1</a><br/>
<ide> <a href="#4.8.0">4.8.0</a><br/>
<ide> <... | 1 |
Ruby | Ruby | show messages when (un)installing casks | 3703ef1885ba4afce1ed4ae531dcb7ddc573b3c2 | <ide><path>Library/Homebrew/cask/lib/hbc/installer.rb
<ide> def install
<ide> print_caveats
<ide> fetch
<ide> uninstall_if_neccessary
<add>
<add> oh1 "Installing Cask #{@cask}"
<ide> stage
<ide> install_artifacts
<ide> enable_accessibility_access
<ide> def save_caskfile
<ide> ... | 4 |
Text | Text | add example to to_representation docs | b3a0b271cd21365d8167c9b581c7f7e7deab85d2 | <ide><path>docs/api-guide/serializers.md
<ide> The signatures for these methods are as follows:
<ide>
<ide> Takes the object instance that requires serialization, and should return a primitive representation. Typically this means returning a structure of built-in Python datatypes. The exact types that can be handled w... | 1 |
Text | Text | translate vue components to portuguese | b25cd5f5bb702fc2e6da528ae9ca4f6ad4e7b9b8 | <ide><path>guide/portuguese/vue/components/index.md
<add>---
<add>title: Components
<add>localeTitle: Componentes
<add>---
<add>
<add>## Componentes
<add>
<add>Um problema comum enfrentado por desenvolvedores web é lidar com a replicação de código HTML, não no sentido de uma lista, por exemplo, mas sim quando quando vo... | 1 |
Javascript | Javascript | fix a lint warning and make example tests prettier | fdfd13fbc83f2843bd6420c48b9b39d5fa17113d | <ide><path>examples/testAll.js
<ide> const fs = require('fs')
<ide> const path = require('path')
<ide> const { spawnSync } = require('child_process')
<add>const chalk = require('chalk')
<ide>
<ide> const exampleDirs = fs.readdirSync(__dirname).filter((file) => {
<ide> return fs.statSync(path.join(__dirname, file)).i... | 2 |
PHP | PHP | fix consoleoutput styles() api | 43af5df64d19ffedf6ab3f26222fe17592f871c7 | <ide><path>src/Console/ConsoleIo.php
<ide> public function setOutputAs(int $mode): void
<ide> }
<ide>
<ide> /**
<del> * Add a new output style or get defined styles.
<add> * @return array
<add> * @see \Cake\Console\ConsoleOutput::styles()
<add> */
<add> public function styles(): array
<add> ... | 5 |
Ruby | Ruby | pass the mode through the optlink method | 4ea3997d9c29d37befb415a5e9b3e3f88b184fff | <ide><path>Library/Homebrew/keg.rb
<ide> def link mode=OpenStruct.new
<ide>
<ide> unless mode.dry_run
<ide> make_relative_symlink(linked_keg_record, path, mode)
<del> optlink
<add> optlink(mode)
<ide> end
<ide> rescue LinkError
<ide> unlink
<ide> def link mode=OpenStruct.new
<ide> Obs... | 1 |
Python | Python | fix flakey test | 70a43858e16184c2bc408b404a3b11dcad4f9526 | <ide><path>spacy/tests/regression/test_issue999.py
<ide> def test_issue999(train_data):
<ide> doc = nlp2(raw_text)
<ide> ents = {(ent.start_char, ent.end_char): ent.label_ for ent in doc.ents}
<ide> for start, end, label in entity_offsets:
<del> if (start, end) not in ents:
<del> ... | 1 |
Python | Python | add flax dummy objects | 6d4f8bd02a163ac711bdbec22045f8591ad8aa22 | <ide><path>src/transformers/__init__.py
<ide> if is_flax_available():
<ide> from .modeling_flax_bert import FlaxBertModel
<ide> from .modeling_flax_roberta import FlaxRobertaModel
<add>else:
<add> # Import the same objects as dummies to get them in the namespace.
<add> # They will raise an import error if... | 4 |
Javascript | Javascript | add default padding to iframe iphone view | d5231fc43fb614cecb0f6023d608e51b19d217ce | <ide><path>public/js/lib/coursewares/coursewaresFramework.js
<ide> var libraryIncludes = "<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3
<ide> "<script src='//ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js'></script>" +
<ide> "<script src='//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/... | 1 |
Javascript | Javascript | remove the define.amd.jquery check, ref gh-1150 | 34c4e122a333bbfc80bd4f6e79db20f3a73ae5b3 | <ide><path>src/exports.js
<ide> if ( typeof module === "object" && typeof module.exports === "object" ) {
<ide> // Otherwise expose jQuery to the global object as usual
<ide> window.jQuery = window.$ = jQuery;
<ide>
<del> // Expose jQuery as an AMD module, but only for AMD loaders that
<del> // understand the issues... | 2 |
PHP | PHP | use hasassociation() instead of getassociation() | 29719a6eb1cefd9192432cd0df727f6c5edbffd6 | <ide><path>src/ORM/Association/BelongsToMany.php
<ide> protected function _generateTargetAssociations($junction, $source, $target)
<ide> $junctionAlias = $junction->getAlias();
<ide> $sAlias = $source->getAlias();
<ide>
<del> if (!$target->getAssociation($junctionAlias)) {
<add> if (!$tar... | 3 |
Ruby | Ruby | deprecate custom patterns for pathresolver | 573e361a3ccb2cc716ed028d66da8af144bc0db2 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> class PathResolver < Resolver #:nodoc:
<ide> DEFAULT_PATTERN = ":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}"
<ide>
<ide> def initialize(pattern = nil)
<del> @pattern = pattern || DEFAULT_PATTERN
<add> if pattern
<ad... | 2 |
Javascript | Javascript | use same string representation as $interpolate | fa80a61a05a3b49a2c770d5544cb8480907a18d3 | <ide><path>src/ng/directive/ngBind.js
<ide> var ngBindDirective = ['$compile', function($compile) {
<ide> $compile.$$addBindingInfo(element, attr.ngBind);
<ide> element = element[0];
<ide> scope.$watch(attr.ngBind, function ngBindWatchAction(value) {
<del> element.textContent = isUndefi... | 2 |
Text | Text | add credential helper documentation | 68211f4cb45baca957fef625ba3bb0c422dd20ec | <ide><path>docs/reference/commandline/cli.md
<ide> property is not set, the client falls back to the default table
<ide> format. For a list of supported formatting directives, see
<ide> [**Formatting** section in the `docker stats` documentation](stats.md)
<ide>
<add>The property `credsStore` specifies an external bin... | 2 |
Python | Python | expand linspace docstring | 18d3af5ea658b0f1846e5307fe60263312d52bdd | <ide><path>numpy/lib/function_base.py
<ide> def linspace(start, stop, num=50, endpoint=True, retstep=False):
<ide>
<ide> Return num evenly spaced samples from start to stop. If
<ide> endpoint is True, the last sample is stop. If retstep is
<del> True then return the step value used.
<add> True then retu... | 1 |
Text | Text | add table explaining training metrics [closes ] | 1b6238101ae5c2623ae1411ffbd2d0cdcdad7a49 | <ide><path>website/docs/usage/training.md
<ide> mkdir models
<ide> python -m spacy train es models ancora-json/es_ancora-ud-train.json ancora-json/es_ancora-ud-dev.json
<ide> ```
<ide>
<add>#### Understanding the training output
<add>
<add>When you train a model using the [`spacy train`](/api/cli#train) command, you'l... | 1 |
Text | Text | add v4.8.0-beta.1 to changelog | f48affedde8e19f617c973b4c01df33dfc475fee | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.8.0-beta.1 (September 6, 2022)
<add>
<add>- [#20166](https://github.com/emberjs/ember.js/pull/20166) [BUGFIX] Upgrade router_js to fix Linked list of RouteInfos contains undefined object
<add>
<ide> ### v4.7.0 (September 6, 2022)
<ide>
<ide> - [#20126]... | 1 |
Text | Text | clarify element in role-playing-game | ef1c90ecd7ed923b9ec82ac52730951cdd7147c3 | <ide><path>curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a7bfabe119461eb13ccbd6.md
<ide> dashedName: step-45
<ide>
<ide> # --description--
<ide>
<del>Now you need to modify your display text. Change the `innerText` of the `text` ... | 1 |
Ruby | Ruby | reduce array allocations while finding templates | 07c50800fb08ca486c9592549a24fb18fc5e4309 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> def build_regex(path, details)
<ide> if ext == :variants && details[ext] == :any
<ide> ".*?"
<ide> else
<del> details[ext].compact.uniq.map { |e| Regexp.escape(e) }.join("|")
<add> arr = deta... | 1 |
Python | Python | add clearer error message for diff(0-d) | d7de4ad70d6794b36e4789e4f6146a884113bd66 | <ide><path>numpy/lib/function_base.py
<ide> def diff(a, n=1, axis=-1, prepend=np._NoValue, append=np._NoValue):
<ide>
<ide> a = asanyarray(a)
<ide> nd = a.ndim
<add> if nd == 0:
<add> raise ValueError("diff requires input that is at least one dimensional")
<ide> axis = normalize_axis_index(axis, ... | 2 |
PHP | PHP | fix showing/clearing of custom validity message | b89cbc2aaaac70ee26e58fc8548d2a287a18d839 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _magicOptions($fieldName, $options, $allowOverride)
<ide> $options['templateVars']['customValidityMessage'] = $message;
<ide>
<ide> if ($this->getConfig('autoSetCustomValidity')) {
<del> $options['onin... | 2 |
Javascript | Javascript | remove conditions that are always true | a67575ea404363af75728f963f7fe2d658c1aec0 | <ide><path>examples/js/loaders/XLoader.js
<ide>
<ide> var model = _model;
<ide> var animation = _animation;
<del> var bindFlag = _isBind ? _isBind : true;
<ide> if ( ! model ) {
<ide>
<ide> model = this.Meshes[ 0 ];
<ide> model.geometry.animations = [];
<ide>
<ide> }
<del> if ( bindFl... | 1 |
PHP | PHP | add deprecation warnings to error package | c5570704bea3968089465238898285aa9167de87 | <ide><path>src/Error/Debugger.php
<ide> public static function setOutputFormat($format)
<ide> */
<ide> public static function outputAs($format = null)
<ide> {
<add> deprecationWarning(
<add> 'Debugger::outputAs() is deprecated. Use Debugger::getOutputFormat()/setOutputFormat() instead.'
<... | 2 |
Javascript | Javascript | fix some indents | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0 | <ide><path>examples/js/shaders/BrightnessContrastShader.js
<ide> THREE.BrightnessContrastShader = {
<ide>
<ide> "void main() {",
<ide>
<del> "vUv = uv;",
<add> " vUv = uv;",
<ide>
<del> "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
<add> " gl_Position = projectionMatrix * model... | 6 |
Javascript | Javascript | delay session.receive() by a tick | 564fcb8f7844660bb732d1bf96f352f7cd40411c | <ide><path>lib/internal/http2/core.js
<ide> function connect(authority, options, listener) {
<ide> if (typeof listener === 'function')
<ide> session.once('connect', listener);
<ide>
<del> debug('Http2Session connect', options.createConnection);
<del> // Socket already has some buffered data - emulate receiving... | 2 |
Ruby | Ruby | fix misleading advice to add 'memcache' to gemfile | f659a1576fc4a447bbfbd866c7244d8d790a3d9c | <ide><path>activesupport/lib/active_support/cache/mem_cache_store.rb
<ide> begin
<ide> require 'memcache'
<ide> rescue LoadError => e
<del> $stderr.puts "You don't have memcache installed in your application. Please add it to your Gemfile and run bundle install"
<add> $stderr.puts "You don't have memcache-client in... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.