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 |
|---|---|---|---|---|---|
Javascript | Javascript | prevent aborted event when already completed | f7a6971281d863e2b56682ff0f45eee7a7c4d3bb | <ide><path>test/parallel/test-http-client-spurious-aborted.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const http = require('http');
<add>const assert = require('assert');
<add>const fs = require('fs');
<add>const Countdown = require('../common/countdown');
<add>
<add>function cleanup(fna... | 1 |
Mixed | Javascript | remove problematic auto-linking of curl man pages | 26e660f9627f776678106d0afa7da428c44c45cf | <ide><path>doc/api/repl.md
<ide> For an example of running a "full-featured" (`terminal`) REPL over
<ide> a `net.Server` and `net.Socket` instance, see:
<ide> <https://gist.github.com/TooTallNate/2209310>.
<ide>
<del>For an example of running a REPL instance over [curl(1)][], see:
<add>For an example of running a REPL... | 2 |
Go | Go | use containerd/cgroups to detect cgroups v2 | 6458f750e18ad808331e3e6a81c56cc9abe87b91 | <ide><path>cmd/dockerd/config_unix.go
<ide> package main
<ide> import (
<ide> "os/exec"
<ide>
<add> "github.com/containerd/cgroups"
<ide> "github.com/docker/docker/daemon/config"
<ide> "github.com/docker/docker/opts"
<ide> "github.com/docker/docker/rootless"
<ide> units "github.com/docker/go-units"
<del> "github.... | 5 |
Python | Python | remove logging lines used for testing | 55695f815521f1018a85b6db9dcedd439226fa44 | <ide><path>airflow/jobs.py
<ide> def manage_slas(self, dag, session=None):
<ide>
<ide> if slas:
<ide> sla_dates = [sla.execution_date for sla in slas]
<del> logging.info(len(sla_dates))
<ide> blocking_tis = (
<ide> session
<ide> .query(TI)
<ide... | 1 |
Text | Text | change weird selector name | aeec7ff28444599d2079bcd1cce477305a986d93 | <ide><path>docs/recipes/ComputingDerivedData.md
<ide> In the example above, `visibilityFilterSelector` and `todosSelector` are input-s
<ide>
<ide> ### Composing Selectors
<ide>
<del>A memoized selector can itself be an input-selector to another memoized selector. Here is `visibleTodosSelector` being used as an input-... | 1 |
PHP | PHP | set the class name if not already set | 3571fdc6e16f8acbda1d80e63006075a8e42b9ec | <ide><path>src/ORM/Association.php
<ide> public function __construct($alias, array $options = [])
<ide> }
<ide> }
<ide>
<add> if(!$this->_className) {
<add> $this->_className = $alias;
<add> }
<add>
<ide> list(,$name) = pluginSplit($alias);
<ide> $this->_nam... | 1 |
Python | Python | add tests for numpy.ctypeslib.as_array | 1ec8f6d93ea150d79cfea6515ffe02f6d78753b2 | <ide><path>numpy/tests/test_ctypeslib.py
<ide> import pytest
<ide>
<ide> import numpy as np
<del>from numpy.ctypeslib import ndpointer, load_library
<add>from numpy.ctypeslib import ndpointer, load_library, as_array
<ide> from numpy.distutils.misc_util import get_shared_lib_extension
<del>from numpy.testing import ass... | 1 |
Javascript | Javascript | add coverage for asyncresource constructor | 52f358b5316a40b481a8298239ae1727e1d2bdaa | <ide><path>test/parallel/test-async-wrap-asyncresource-constructor.js
<add>'use strict';
<add>require('../common');
<add>
<add>// This tests that AsyncResource throws an error if bad parameters are passed
<add>
<add>const assert = require('assert');
<add>const AsyncResource = require('async_hooks').AsyncResource;
<add>... | 1 |
Text | Text | train t5 in tensoflow 2 community notebook | a42f62d34f7b2acdb7298e586adbe9f0f28864ea | <ide><path>notebooks/README.md
<ide> Pull Request so it can be included under the Community notebooks.
<ide>
<ide> ## Hugging Face's notebooks 🤗
<ide>
<add>
<ide> | Notebook | Description | |
<ide> |:----------|:-------------|------:|
<ide> | [Getting Started Tokenizers](https://github.com/huggingfac... | 1 |
PHP | PHP | fix coding standards in cache/ | 04c843b17bffd5c0e6a55881491503578f0a8cd5 | <ide><path>lib/Cake/Cache/Cache.php
<ide> public static function settings($name = 'default') {
<ide> }
<ide> return array();
<ide> }
<add>
<ide> }
<ide>
<ide><path>lib/Cake/Cache/CacheEngine.php
<ide> public function init($settings = array()) {
<ide> * Permanently remove all expired and deleted data
<ide> * @re... | 6 |
Text | Text | remove outdated note about read_only+default | bcf196d0ac14a1b6a8d28eda2e8c26711f717d99 | <ide><path>docs/api-guide/validators.md
<ide> If you want the date field to be visible, but not editable by the user, then set
<ide>
<ide> published = serializers.DateTimeField(read_only=True, default=timezone.now)
<ide>
<del>The field will not be writable to the user, but the default value will still be passed t... | 1 |
Javascript | Javascript | fix externalmodule bug | 94e47d572120274b16714aecaff4ada925388f33 | <ide><path>lib/ExternalModule.js
<ide> const Template = require("./Template");
<ide> const StaticExportsDependency = require("./dependencies/StaticExportsDependency");
<ide> const makeSerializable = require("./util/makeSerializable");
<ide> const propertyAccess = require("./util/propertyAccess");
<add>const extractUrlA... | 3 |
Mixed | Javascript | expose allowfileaccess property in webview | 0c576ef84a1c7f79b228f205cc687ab1b945bda1 | <ide><path>Libraries/Components/WebView/WebView.android.js
<ide> class WebView extends React.Component {
<ide> */
<ide> scalesPageToFit: PropTypes.bool,
<ide>
<add> /**
<add> * Sets whether the webview allow access to file system.
<add> * @platform android
<add> */
<add> allowFileAccess: Pro... | 3 |
Text | Text | add changelog for v3.27.4 | ea322a34a9e7b4654c009f27ce81582a96825daf | <ide><path>CHANGELOG.md
<ide>
<ide> - [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
<ide>
<add>## v3.27.4 (June 9, 2021)
<add>
<add>- [#19594](https://github.com/emberjs/ember.js/pull/19594) [BUGFIX] Revert lazy hash changes
<add>- [#19596](htt... | 1 |
Ruby | Ruby | remove unnecessary code | 6cccc2d0fefe2474fb34e44c849ce0c0375c3a88 | <ide><path>Library/Homebrew/test/test_integration_cmds.rb
<ide> class Testball < Formula
<ide>
<ide> def test_desc
<ide> formula_file = CoreFormulaRepository.new.formula_dir/"testball.rb"
<del> content = <<-EOS.undent
<add> formula_file.write <<-EOS.undent
<ide> class Testball < Formula
<ide> ... | 1 |
Javascript | Javascript | add node.assert for internal debugging | 7e7deed5106489f0ff2f8314c33311c0c75e7a45 | <ide><path>src/util.js
<ide> node.inherits = function (ctor, superCtor) {
<ide> ctor.prototype.constructor = ctor;
<ide> };
<ide>
<add>node.assert = function (x) {
<add> if (!(x)) throw (msg || "assertion error");
<add>};
<add>
<ide> // This is useful for dealing with raw encodings.
<ide> node.encodeUtf8 = function... | 1 |
Javascript | Javascript | ignore error/warning when module does not exists | 0a3b0c63d47b5e1ffe76f9e836f7cb96028ad68e | <ide><path>lib/IgnoreErrorModuleFactory.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add> Author Ivan Kopeykin @vankop
<add>*/
<add>
<add>"use strict";
<add>
<add>const ModuleFactory = require("./ModuleFactory");
<add>
<add>/** @typedef {import("./ModuleFactory").ModuleFactoryCreateD... | 4 |
Go | Go | correct all the formate to formatter | b8155bd5bead29bf116aeea9159563e1a6409c41 | <ide><path>cli/command/formatter/disk_usage.go
<ide> const (
<ide> uniqueSizeHeader = "UNIQUE SiZE"
<ide> )
<ide>
<del>// DiskUsageContext contains disk usage specific information required by the formater, encapsulate a Context struct.
<add>// DiskUsageContext contains disk usage specific information required by the... | 2 |
Javascript | Javascript | update old jquery versions for tests | e0c16f6db5c13a72215e98a0a6f426bab5ee959b | <ide><path>bin/run-tests.js
<ide> function generateBuiltTests() {
<ide>
<ide> function generateOldJQueryTests() {
<ide> testFunctions.push(function() {
<del> return run('jquery=1.8.3&nolint=true');
<add> return run('jquery=1.10.2&nolint=true');
<ide> });
<ide> testFunctions.push(function() {
<del> retur... | 1 |
Go | Go | add regression tests for client debug flag | 9f315dd328a33b51133a41067a508a8b59166a39 | <ide><path>api/client/info.go
<ide> import (
<ide> Cli "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> flag "github.com/docker/docker/pkg/mflag"
<add> "github.com/docker/docker/utils"
<ide> "github.com/docker/go-units"
<ide> )
<ide>
<ide> func (cli *DockerCli) CmdInfo(args ...stri... | 5 |
Python | Python | add new tests for array coercion | f253a7e39204142e3cf82d6beeef1ce22f5500cd | <ide><path>numpy/core/tests/test_array_coercion.py
<add>"""
<add>Tests for array coercion, mainly through testing `np.array` results directly.
<add>Note that other such tests exist e.g. in `test_api.py` and many corner-cases
<add>are tested (sometimes indirectly) elsewhere.
<add>"""
<add>
<add>import pytest
<add>from p... | 3 |
Text | Text | add 2.7.1 to the changelog.md | 1568459714bbe54d03b6711ea7d3501e08758300 | <ide><path>CHANGELOG.md
<ide> - [#13855](https://github.com/emberjs/ember.js/pull/13855) [FEATURE ember-runtime-enumerable-includes] Enable by default.
<ide> - [#13855](https://github.com/emberjs/ember.js/pull/13855) [FEATURE ember-testing-check-waiters] Enable by default.
<ide>
<add>### 2.7.1 (August 15, 2016)
<add>
... | 1 |
Ruby | Ruby | memoize calculated ip without additional variable | 43aa2d308c27f387f2ea3051170769bb60b99015 | <ide><path>actionpack/lib/action_dispatch/middleware/remote_ip.rb
<ide> class GetIp
<ide> }x
<ide>
<ide> def initialize(env, middleware)
<del> @env = env
<del> @middleware = middleware
<del> @calculated_ip = false
<add> @env = env
<add> @middleware = m... | 1 |
Text | Text | improve grammar a bit | 507e522e26b4073455b2337bcf1670e52bba5429 | <ide><path>guides/source/working_with_javascript.md
<ide> $(document).ready ->
<ide>
<ide> We call this 'unobtrusive' JavaScript because we're no longer mixing our
<ide> JavaScript into our HTML. We've properly separated our concerns, making future
<del>change easy. We can easily add behavior to any link by adding the... | 1 |
Javascript | Javascript | fix assertion order | 3f7755b24c234eeeb592f484c504b4b85a8f9fb8 | <ide><path>test/parallel/test-https-client-get-url.js
<ide> const options = {
<ide> };
<ide>
<ide> const server = https.createServer(options, common.mustCall((req, res) => {
<del> assert.strictEqual('GET', req.method);
<del> assert.strictEqual('/foo?bar', req.url);
<add> assert.strictEqual(req.method, 'GET');
<add>... | 1 |
Text | Text | update readme.md file in /templates/variables | 25d9fbeccf3af7f7d29fc871fc5ff1219a7f3b96 | <ide><path>airflow/www/templates/airflow/variables/README.md
<ide> ## Variable Editor
<ide> ----
<ide> This folder contains forms used to edit values in the "Variable" key-value
<del>store. This data can be edited under the "Browse" admin tab, but sometimes
<add>store. This data can be edited under the "Admin" admin ... | 1 |
Javascript | Javascript | remove uneeded code | 9bcf4f46fd67872d25a7c31ce056ed90dc281b21 | <ide><path>editor/js/Viewport.js
<ide> var Viewport = function ( editor ) {
<ide> };
<ide>
<ide> var sceneCameraDisplay = new UI.Row();
<del> sceneCameraDisplay.setId( 'cameraSelect' );
<del> sceneCameraDisplay.dom.setAttribute( 'layout', config.getKey( 'project/renderer/sceneCameras' ) || 'topLeft' );
<del> sceneCa... | 1 |
Javascript | Javascript | remove unnecessary use of array.from | 61b228d8a056a14bf79dacdafd305e736d3ac92b | <ide><path>spec/project-spec.js
<ide> /*
<ide> * decaffeinate suggestions:
<del> * DS101: Remove unnecessary use of Array.from
<ide> * DS102: Remove unnecessary code created because of implicit returns
<ide> * DS103: Rewrite code to no longer use __guard__
<ide> * DS201: Simplify complex destructure assignments
<id... | 1 |
Go | Go | use spf13/cobra for docker logs | 4f4b59cc435fbfef236017f3aa36145c1187426b | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<ide> "load": cli.CmdLoad,
<ide> "login": cli.CmdLogin,
<ide> "logout": cli.CmdLogout,
<del> "logs": cli.CmdLogs,
<ide> "network": cli.CmdNe... | 5 |
Python | Python | replace deprecated functions | 7fb8b0f24d841096dd9e1225c71c2ab658a09b17 | <ide><path>im2txt/im2txt/ops/image_processing.py
<ide> def process_image(encoded_image,
<ide> # only logged in thread 0.
<ide> def image_summary(name, image):
<ide> if not thread_id:
<del> tf.image_summary(name, tf.expand_dims(image, 0))
<add> tf.summary.image(name, tf.expand_dims(image, 0))
<ide>
<i... | 4 |
PHP | PHP | remove function import | 78041a1529e2b11146939d4a0e9b607b98a9a5b6 | <ide><path>src/Illuminate/Routing/ControllerDispatcher.php
<ide>
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Routing\Contracts\ControllerDispatcher as ControllerDispatcherContract;
<del>use function method_exists;
<ide>
<ide> class ControllerDispatcher implements ControllerDispatcherContract
<ide> ... | 1 |
Javascript | Javascript | use test/common/tmpdir consistently | 0376b5b7baf627b112915183edf9e1ea2d3856b7 | <ide><path>benchmark/fs/read-stream-throughput.js
<ide>
<ide> const path = require('path');
<ide> const common = require('../common.js');
<del>const filename = path.resolve(process.env.NODE_TMPDIR || __dirname,
<del> `.removeme-benchmark-garbage-${process.pid}`);
<ide> const fs = require('... | 4 |
PHP | PHP | fix $expectedlistener in docblock | 089ce46a43219c05f6087e7aed61474693b83be7 | <ide><path>src/Illuminate/Support/Facades/Event.php
<ide> * @method static void assertDispatchedTimes(string $event, int $times = 1)
<ide> * @method static void assertNotDispatched(string|\Closure $event, callable|int $callback = null)
<ide> * @method static void assertNothingDispatched()
<del> * @method static void... | 1 |
Text | Text | fix url to defaults.js | 484443f2512268e4682081eeb0b05daa983554f2 | <ide><path>README.md
<ide> instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
<ide>
<ide> ### Config order of precedence
<ide>
<del>Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults.js#L28), ... | 1 |
Text | Text | add patch in http verb constraints [ci skip] | 3a0cc5c059b49452057359cab6017f98d93dd916 | <ide><path>guides/source/routing.md
<ide> This will define a `user_path` method that will be available in controllers, hel
<ide>
<ide> ### HTTP Verb Constraints
<ide>
<del>In general, you should use the `get`, `post`, `put` and `delete` methods to constrain a route to a particular verb. You can use the `match` method... | 1 |
Ruby | Ruby | kill unused variable warnings | 5696d948ed0eb9cf755e843564f80801ea864ee2 | <ide><path>activerecord/lib/active_record/schema_dumper.rb
<ide> def table(table, stream)
<ide>
<ide> # first dump primary key column
<ide> if @connection.respond_to?(:pk_and_sequence_for)
<del> pk, pk_seq = @connection.pk_and_sequence_for(table)
<add> pk, _ = @connection.pk_a... | 1 |
Python | Python | add examples for join and index | 7f43baa7b24ec36b65426428209901c7599c41ef | <ide><path>numpy/core/defchararray.py
<ide> def index(a, sub, start=0, end=None):
<ide> --------
<ide> find, str.find
<ide>
<add> Examples
<add> --------
<add> >>> a = np.array(["Computer Science"])
<add> >>> np.char.index(a, "Science", start=0, end=None)
<add> array([9])
<add>
<ide> """
<id... | 1 |
Text | Text | fix typo in readme | 98a4d38eb4a478280b2fbc7aa01c795b814b0138 | <ide><path>README.md
<ide> The environment variables are:
<ide>
<ide> For VirtualBox, you can simply ignore setting any of the environment
<ide> variables and omit the ``provider`` flag. VirtualBox is still supported with
<del>VirtualBox <= 1.1:
<add>Vagrant <= 1.1:
<ide>
<ide> ```bash
<ide> $ vagrant up --provider... | 1 |
Javascript | Javascript | handle invalid prepareasymmetrickey jwk inputs | d94833cf91c0960136cef71076b6a7867e61d903 | <ide><path>lib/internal/crypto/keygen.js
<ide> const {
<ide> SecretKeyObject,
<ide> parsePublicKeyEncoding,
<ide> parsePrivateKeyEncoding,
<del> isJwk
<ide> } = require('internal/crypto/keys');
<ide>
<ide> const {
<ide> const { isArrayBufferView } = require('internal/util/types');
<ide>
<ide> const { getOption... | 4 |
Text | Text | fix broken url in docs | 11dc2aad0e05b80bdf9134a84bb6dd908b1f11ea | <ide><path>docs/docs/charts/scatter.md
<ide> var scatterChart = new Chart(ctx, {
<ide>
<ide> ## Dataset Properties
<ide>
<del>The scatter chart supports all of the same properties as the [line chart](./charts/line#dataset-properties).
<add>The scatter chart supports all of the same properties as the [line chart](./ch... | 1 |
Text | Text | fix description of `decimalfield`'s `max_digits` | aed8387e05a7a665439044d90b7fac5d1fd61225 | <ide><path>docs/api-guide/fields.md
<ide> Corresponds to `django.db.models.fields.DecimalField`.
<ide>
<ide> **Signature**: `DecimalField(max_digits, decimal_places, coerce_to_string=None, max_value=None, min_value=None)`
<ide>
<del>- `max_digits` The maximum number of digits allowed in the number. Note that this num... | 1 |
PHP | PHP | add shortcut to model option | 4572938cce79d8a8a0f222c8bdca2768332e9f19 | <ide><path>src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php
<ide> protected function getPath($name)
<ide> protected function getOptions()
<ide> {
<ide> return [
<del> ['model', null, InputOption::VALUE_OPTIONAL, 'The name of the model'],
<add> ['model', 'm', InputOp... | 1 |
Text | Text | add backwards incompatibility [ci skip] | f873548f6c26a91715beaf91d04831e29e60df2f | <ide><path>website/docs/usage/v2-2.md
<ide> check if all of your models are up to date, you can run the
<ide>
<ide> </Infobox>
<ide>
<del><!-- TODO: copy from release notes once they're ready -->
<add>- The Dutch models have been trained on a new NER corpus (custom labelled UD
<add> instead of WikiNER), so their pre... | 1 |
Go | Go | move imageid validation to stringid pkg | 9f3046f9a03f1a710bdb7fcddd37ff50e71e31c3 | <ide><path>image/v1/imagev1.go
<ide> package v1
<ide>
<ide> import (
<ide> "encoding/json"
<del> "fmt"
<ide> "reflect"
<del> "regexp"
<ide> "strings"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/distribution/digest"
<ide> "github.com/docker/docker/api/types/versions"
<ide> "github.com/dock... | 3 |
PHP | PHP | use peer_name instead of deprecated cn_match | d07a41307b6ba453dfec253096d3916c9cef09b4 | <ide><path>src/Network/Http/Adapter/Stream.php
<ide> protected function _buildSslContext(Request $request, $options)
<ide> if (!empty($options['ssl_verify_host'])) {
<ide> $url = $request->url();
<ide> $host = parse_url($url, PHP_URL_HOST);
<del> $this->_sslContextOptions['CN_... | 2 |
Ruby | Ruby | use file.lutime instead of system call | 8ab5ea52495a3f2a53e376e43e8e3551227e58ef | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f, args:)
<ide>
<ide> keg.find do |file|
<ide> if file.symlink?
<del> # Ruby does not support `File.lutime` yet.
<del> # Shellout using `touch` to change modified time of symlink itself.
<del> syst... | 1 |
Javascript | Javascript | move debug statement | 2154a3ce0f2eca1d26e1ad8e7bbeae1039822a5a | <ide><path>lib/net.js
<ide> function internalConnect(
<ide> var err;
<ide>
<ide> if (localAddress || localPort) {
<del> debug('binding to localAddress: %s and localPort: %d (addressType: %d)',
<del> localAddress, localPort, addressType);
<del>
<ide> if (addressType === 4) {
<ide> localAddress... | 1 |
Text | Text | fix typo in readme (#787) | 789edb87b77db836717e357d632e05e6d06927ed | <ide><path>README.md
<ide> Here's a list of supported events:
<ide>
<ide> > Here `url` is the URL shown in the browser. If you call `Router.push(url, as)` (or similar), then the value of `url` will be `as`.
<ide>
<del>Here's how to property listen to the router event `routeChangeStart`:
<add>Here's how to properly li... | 1 |
Text | Text | add description on depth in model comparison table | c442abf264be7b6c935a63c39e0be72688992ac3 | <ide><path>docs/templates/applications.md
<ide> model = InceptionV3(input_tensor=input_tensor, weights='imagenet', include_top=T
<ide>
<ide> The top-1 and top-5 accuracy refers to the model's performance on the ImageNet validation dataset.
<ide>
<add>Depth refers to the topological depth of the network. This includes... | 1 |
Javascript | Javascript | add test case | 80bf77d26f282f53b7067a9d1084581db5f37b78 | <ide><path>test/watchCases/cache/unsafe-cache/0/index.js
<ide> import value from "./changing-module";
<add>import "./proxy-module";
<ide>
<ide> it("should compile and cleanup correctly", () => {
<ide> expect(value).toBe(WATCH_STEP);
<ide><path>test/watchCases/cache/unsafe-cache/0/proxy-module.js
<ide> import "./uncha... | 5 |
Javascript | Javascript | handle junk at the end of postscript functions | e5732f489d27f40b125714f88d2a8279dbcddd32 | <ide><path>src/function.js
<ide> var PostScriptLexer = (function PostScriptLexerClosure() {
<ide> // operator
<ide> var str = ch.toLowerCase();
<ide> while (true) {
<del> ch = stream.lookChar().toLowerCase();
<add> ch = stream.lookChar();
<add> if (ch === null)
<add> brea... | 2 |
PHP | PHP | fix cs errors | 9bd82d7ac13642f03cde23c43e73c5a5271694b9 | <ide><path>src/Auth/AbstractPasswordHasher.php
<ide> */
<ide> abstract class AbstractPasswordHasher
<ide> {
<del>
<ide> use InstanceConfigTrait;
<ide>
<ide> /**
<ide><path>src/Auth/BaseAuthenticate.php
<ide> */
<ide> namespace Cake\Auth;
<ide>
<del>use Cake\Auth\AbstractPasswordHasher;
<ide> use Cake\Contro... | 300 |
Python | Python | add explanation of a sparse mesh grid | 8f0f33b31da1777d2ebdc803690b8af8602e0e91 | <ide><path>numpy/lib/function_base.py
<ide> def meshgrid(*xi, copy=True, sparse=False, indexing='xy'):
<ide>
<ide> .. versionadded:: 1.7.0
<ide> sparse : bool, optional
<del> If True a sparse grid is returned in order to conserve memory.
<add> If True the shape of the returned coordinate arra... | 1 |
Go | Go | add exec event create/start log | e3d813f37f48ed52330e3dc26aa363e58401fbf5 | <ide><path>daemon/exec.go
<ide> func (d *Daemon) ContainerExecCreate(job *engine.Job) engine.Status {
<ide> Running: false,
<ide> }
<ide>
<add> container.LogEvent("exec_create: " + execConfig.ProcessConfig.Entrypoint + " " + strings.Join(execConfig.ProcessConfig.Arguments, " "))
<add>
<ide> d.registerExecCom... | 1 |
Javascript | Javascript | add tests for new language features | 3d2409c476e52d0ca8729f161eedf98ece37063e | <ide><path>test/parallel/test-assert.js
<ide> common.expectsError(
<ide> }
<ide> );
<ide> common.expectsError(
<del> () => assert(typeof 123 === 'string'),
<add> () => assert(typeof 123n === 'string'),
<ide> {
<ide> code: 'ERR_ASSERTION',
<ide> type: assert.AssertionError,
<ide> generatedMessage: true... | 2 |
Python | Python | update documentation in keypoint boxcoder | 8c767cfebd99bb8e9e6d84635a3f0bf182f7faa5 | <ide><path>research/object_detection/box_coders/keypoint_box_coder.py
<ide> th = log(h / ha)
<ide> tw = log(w / wa)
<ide> tky0 = (ky0 - ya) / ha
<del> tkx0 = (kx0 - xa) / ha
<add> tkx0 = (kx0 - xa) / wa
<ide> tky1 = (ky1 - ya) / ha
<del> tkx1 = (kx1 - xa) / ha
<add> tkx1 = (kx1 - xa) / wa
<ide> ...
<ide> ... | 1 |
Javascript | Javascript | simplify faces creation with for loop | 7360ed9c5ec5cb45fd13701587ef87e92512c333 | <ide><path>examples/js/exporters/OBJExporter.js
<ide> THREE.OBJExporter.prototype = {
<ide> var indexVertex = 0;
<ide> var indexVertexUvs = 0;
<ide> var indexNormals = 0;
<add>
<add> var faceVertexKeys = ["a", "b", "c"];
<ide>
<ide> var parseMesh = function ( mesh ) {
<ide>
<ide> THREE.OBJExporter.prototyp... | 1 |
Ruby | Ruby | improve rspec annotations | 196d7badfae5692bfe7dd79e4559f5b41eea5761 | <ide><path>Library/Homebrew/test/spec_helper.rb
<ide> config.include(Test::Helper::OutputAsTTY)
<ide>
<ide> config.before(:each, :needs_compat) do
<del> skip "Requires compatibility layer." if ENV["HOMEBREW_NO_COMPAT"]
<add> skip "Requires the compatibility layer." if ENV["HOMEBREW_NO_COMPAT"]
<ide> end
<i... | 3 |
Javascript | Javascript | unify donation config | f30f8072b0ed170082713c9d6dc91a259e4a803c | <ide><path>api-server/server/boot/donate.js
<ide> import debug from 'debug';
<ide> import crypto from 'crypto';
<ide> import { isEmail, isNumeric } from 'validator';
<ide>
<add>import {
<add> durationKeysConfig,
<add> donationOneTimeConfig,
<add> donationSubscriptionConfig
<add>} from '../../../config/donation-sett... | 3 |
PHP | PHP | replace loose comparison with casting to boolean | a7c751922d4a728f66bdb18d0a660ced55c88a1b | <ide><path>lib/Cake/Controller/Component/AuthComponent.php
<ide> public function shutdown(Controller $controller) {
<ide> * @return boolean true if the user is logged in, false otherwise
<ide> */
<ide> public function loggedIn() {
<del> return $this->user() != array();
<add> return (boolean)$this->user();
<ide> }... | 1 |
Java | Java | fix typo in javadoc of abstractencoder | 675e0b94c13e4a188a8b8a793f98593c5c897765 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/AbstractEncoder.java
<ide> import org.springframework.util.MimeType;
<ide>
<ide> /**
<del> * Abstract base class for {@link Decoder} implementations.
<add> * Abstract base class for {@link Encoder} implementations.
<ide> *
<ide> * @author Sebastien ... | 1 |
Ruby | Ruby | improve/fix credential handling | 6135da800e4f93ded3a5a331d0efa691f4822afb | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> def gistify_logs(f)
<ide> if ARGV.include?("--new-issue") || ARGV.switch?("n")
<ide> auth = :AUTH_TOKEN
<ide>
<del> unless GitHub.api_credentials
<add> if GitHub.api_credentials_type == :none
<ide> puts "You can create a personal access tok... | 2 |
Java | Java | add missing package-info | 572d0173703e15a80e76eac2ad0bea9c56f35326 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/generator/package-info.java
<add>/**
<add> * Support for generating code that represents the state of a bean factory.
<add> */
<add>@NonNullApi
<add>@NonNullFields
<add>package org.springframework.beans.factory.generator;
<add>
<add>import org.spri... | 1 |
Python | Python | remove unnecessary namedtuple/dataclass | 499c39acba4bedd1b73e3c0687020387013ee4ba | <ide><path>spacy/lang/ko/__init__.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals, print_function
<ide>
<del>import sys
<del>
<ide> from .stop_words import STOP_WORDS
<ide> from .tag_map import TAG_MAP
<ide> from ...attrs import LANG
<ide> from ...language import Language
<ide> from ...tokens i... | 1 |
Ruby | Ruby | use infinity const | a01756c33ed9e2fcb3724dbf607ba64c963b112f | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/cast.rb
<ide> def string_to_time(string)
<ide> return string unless String === string
<ide>
<ide> case string
<del> when 'infinity'; 1.0 / 0.0
<del> when '-infinity'; -1.0 / 0.0
<add> when 'infinity'... | 1 |
PHP | PHP | fix bug in ioc singleton checking | 638032f4c0fa887aabcf494bf2504b54be470a34 | <ide><path>laravel/ioc.php
<ide> public static function resolve($name, $parameters = array())
<ide> // If the resolver is registering as a singleton resolver, we will cache
<ide> // the instance of the object in the container so we can resolve it next
<ide> // time without having to instantiate a brand new instan... | 1 |
Text | Text | remove duplicate whitespaces in doc/api | 83a7247f12feb4f4d8ee558ad2c1528d26b503e0 | <ide><path>doc/api/child_process.md
<ide> pipes between the parent and child. The value is one of the following:
<ide> `'ignore'` will cause Node.js to open `/dev/null` and attach it to the
<ide> child's fd.
<ide> 4. `'inherit'` - Pass through the corresponding stdio stream to/from the
<del> parent process. In... | 7 |
Text | Text | use svg version of travis build status badge | 9397a653a4cfd6725616ea8e1b23093d3b0d59b5 | <ide><path>README.md
<ide> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<ide> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<ide>
<ide>
<del>[build-status-image]: https://secure.travis-ci.org/tomchristie/django-rest-framework.png?branch=master
<add>[build-status... | 1 |
Text | Text | remove python 3.5 reference from readme | 2689624c5cc944805a42d26bb957091b3283dcfb | <ide><path>README.md
<ide> They are based on the official release schedule of Python and Kubernetes, nicely
<ide> make them work in our CI pipeline (which might not be immediate due to dependencies catching up with
<ide> new versions of Python mostly) we release new images/support in Airflow based on the working ... | 1 |
PHP | PHP | add test for mailers not being reset on error | 0ab2d073ee2c73233f156337fd3c2e33488d587d | <ide><path>tests/TestCase/Mailer/MailerTest.php
<ide> namespace Cake\Test\TestCase\Mailer;
<ide>
<ide> use Cake\TestSuite\TestCase;
<add>use RuntimeException;
<ide> use TestApp\Mailer\TestMailer;
<ide>
<ide> class MailerTest extends TestCase
<ide> public function testSendWithUnsetTemplateDefaultsToActionName()
<ide> ... | 1 |
Java | Java | change hasexception to hasthrowable | 0531b8bff5c14d9504beefb4ad47f473e3a22932 | <ide><path>rxjava-core/src/main/java/rx/Notification.java
<ide> public boolean hasValue() {
<ide> *
<ide> * @return a value indicating whether this notification has an exception.
<ide> */
<del> public boolean hasException() {
<add> public boolean hasThrowable() {
<ide> return isOnError() &... | 1 |
Python | Python | set version to v2.1.0a7 | 7d4a52a4d06ade37e27c63c7596acba4d863a32d | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a7.dev12"
<add>__version__ = "2.1.0a7"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide... | 1 |
Text | Text | escape html on "<link> with <a> child" page | 848bb3af73c399f83924fb2b31b4327c05ef7d45 | <ide><path>errors/invalid-new-link-with-extra-anchor.md
<del># Invalid <Link> with <a> child
<add># Invalid <Link> with <a> child
<ide>
<ide> #### Why This Error Occurred
<ide> | 1 |
Go | Go | modify some files | 128d07d3493aeee8ec6a044039f032aeb2adf699 | <ide><path>daemon/cluster/cluster.go
<ide> func (c *Cluster) Init(req types.InitRequest) (string, error) {
<ide> // will be used as local address, if it belongs to this system.
<ide> // If the advertise address is not local, then we try to find
<ide> // a system address to use as local address. If this fails,
<del> ... | 6 |
Javascript | Javascript | improve progress reporting | 1ac28f7fc28325974a77b358cd68830025573df2 | <ide><path>lib/ProgressPlugin.js
<ide> class ProgressPlugin {
<ide> const showActiveModules = this.showActiveModules;
<ide> let lastActiveModule = "";
<ide> let currentLoader = "";
<del> let lastModulesCount = this.modulesCount;
<del> let lastDependenciesCount = this.dependenciesCount;
<add> let lastModulesCou... | 4 |
Python | Python | fix error in arm common libs | e4b35391af5d4472a2f43ce44d9920bad64ba464 | <ide><path>libcloud/common/azure_arm.py
<ide> def request(self, action, params=None, data=None, headers=None,
<ide> # Log in again if the token has expired or is going to expire soon
<ide> # (next 5 minutes).
<ide> if (time.time() + 300) >= int(self.expires_on):
<del> self.get_token_f... | 1 |
Ruby | Ruby | add version.slice to compat suite | 396ca3fc590ff1e8e5c6fb784458d7a5a5162b00 | <ide><path>Library/Homebrew/compat/compatibility.rb
<ide> def mountain_lion?
<ide> end
<ide> alias_method :mountain_lion_or_newer?, :mountain_lion?
<ide> end
<add>
<add>
<add>class Version
<add> def slice *args
<add> opoo "Calling slice on versions is deprecated, use: to_s.slice"
<add> to_s.slice *args
<add>... | 1 |
Ruby | Ruby | use genderless pronouns in api docs | 49ff20d9b164693ed7fee880b69cc14b141678b3 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> module ActionController
<ide> # or you can remove the entire session with +reset_session+.
<ide> #
<ide> # Sessions are stored by default in a browser cookie that's cryptographically signed, but unencrypted.
<del> # This prevents the user from tampering w... | 2 |
PHP | PHP | use assertnull in test case | f748b302f1e13f35b14dd759c9cc73d18f1bebe5 | <ide><path>tests/TestCase/Http/ServerRequestTest.php
<ide> public function testGetEnv()
<ide> $request = new ServerRequest();
<ide>
<ide> //Test default null
<del> $this->assertSame($request->getEnv('Foo'), null);
<add> $this->assertNull($request->getEnv('Foo'), null);
<ide>
<ide> ... | 1 |
Go | Go | update tests with new cookies for registry | b76d6120ac66a853d177f7e53318ab1ee75dca92 | <ide><path>api.go
<ide> func getBoolParam(value string) (bool, error) {
<ide>
<ide> func getAuth(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<ide> // FIXME: Handle multiple login at once
<add> // FIXME: return specific error code if config file missing?
<ide> ... | 4 |
Mixed | Ruby | remove deprecated `name` argument from `#tables` | d5be101dd02214468a27b6839ffe338cfe8ef5f3 | <ide><path>activerecord/CHANGELOG.md
<add>* Remove deprecated `name` argument from `#tables`.
<add>
<add> *Rafael Mendonça França*
<add>
<ide> * Remove deprecated support to passing a column to `#quote`.
<ide>
<ide> *Rafael Mendonça França*
<ide><path>activerecord/lib/active_record/connection_adapters/abstr... | 8 |
Javascript | Javascript | fix lint error, remove unnecessary comment | 8af527919a9c24c913b5e1916f914d9ca0d4982e | <ide><path>src/jpx.js
<ide> var JpxImage = (function JpxImageClosure() {
<ide> ];
<ide>
<ide> function BitModel(width, height, subband, zeroBitPlanes) {
<del> // TODO do we need to know offsets of the coefficients (not only width
<del> // and height) ?
<ide> this.width = width;
<ide> this... | 1 |
PHP | PHP | apply fixes from styleci | be7f51ac647af34d75fb857ee683dc3374292373 | <ide><path>src/Illuminate/Support/Collection.php
<ide> use CachingIterator;
<ide> use JsonSerializable;
<ide> use IteratorAggregate;
<del>use InvalidArgumentException;
<ide> use Illuminate\Support\Debug\Dumper;
<ide> use Illuminate\Support\Traits\Macroable;
<ide> use Illuminate\Contracts\Support\Jsonable; | 1 |
PHP | PHP | skip failing tests | ac63a20811ebb35453dc2716cef0b33d60b36018 | <ide><path>tests/TestCase/Console/Command/Task/TestTaskTest.php
<ide> public function tearDown() {
<ide> * @return void
<ide> */
<ide> public function testFilePathGenerationModelRepeated() {
<add> $this->markTestIncomplete('Not working for some reason');
<ide> $this->Task->expects($this->never())->method('err');
... | 1 |
Python | Python | remove old doc | 0512444ee5dea5fa409ebd9396e9b7edac00afe2 | <ide><path>src/transformers/models/mobilebert/modeling_mobilebert.py
<ide> def forward(
<ide> Labels for computing the masked language modeling loss. Indices should be in ``[-100, 0, ...,
<ide> config.vocab_size]`` (see ``input_ids`` docstring) Tokens with indices set to ``-100`` are ignored
<id... | 1 |
Text | Text | add note about domain locales | 6fbe5b439dc9725af8cd4889b9bb662a53c07e82 | <ide><path>docs/advanced-features/i18n-routing.md
<ide> By using domain routing you can configure locales to be served from different do
<ide> // next.config.js
<ide> module.exports = {
<ide> i18n: {
<del> locales: ['en-US', 'fr', 'nl-NL'],
<add> locales: ['en-US', 'fr', 'nl-NL', 'nl-BE'],
<ide> defaultLoca... | 1 |
Go | Go | use constant for task runtime value | 2b7d34977e72054d197a481a10addd773aa23ca4 | <ide><path>integration/service/plugin_test.go
<ide> func TestServicePlugin(t *testing.T) {
<ide>
<ide> func makePlugin(repo, name string, constraints []string) func(*swarmtypes.Service) {
<ide> return func(s *swarmtypes.Service) {
<del> s.Spec.TaskTemplate.Runtime = "plugin"
<add> s.Spec.TaskTemplate.Runtime = swar... | 1 |
Text | Text | update the manual for docker wait | 303ff807f2690c1f572439bb5bc53a9ba89bf48f | <ide><path>man/docker-wait.1.md
<ide> % Docker Community
<ide> % JUNE 2014
<ide> # NAME
<del>docker-wait - Block until a container stops, then print its exit code.
<add>docker-wait - Block until one or more containers stop, then print their exit codes
<ide>
<ide> # SYNOPSIS
<ide> **docker wait**
<ide> CONTAINER [CONTA... | 1 |
Text | Text | add note about passing webpack to config | 553fbf75e0647f5088120788513b46ecf4af1360 | <ide><path>packages/next/README.md
<ide> In order to extend our usage of `webpack`, you can define a function that extend
<ide> // next.config.js is not transformed by Babel. So you can only use javascript features supported by your version of Node.js.
<ide>
<ide> module.exports = {
<del> webpack: (config, { buildId,... | 1 |
Javascript | Javascript | increase bufsize in child process write test | b71d67795a1366b2c9e77e4156e661df456d3660 | <ide><path>test/parallel/test-child-process-stdio-big-write-end.js
<ide> 'use strict';
<ide> require('../common');
<ide> const assert = require('assert');
<del>const BUFSIZE = 1024;
<add>let bufsize = 0;
<ide>
<ide> switch (process.argv[2]) {
<ide> case undefined:
<ide> function parent() {
<ide> // Write until the... | 1 |
Mixed | Javascript | add public api for ipc channel | 2dcb7f3826a360f7cac79a58833dc4c037f67e27 | <ide><path>doc/api/child_process.md
<ide> added: v0.5.9
<ide> The `'message'` event is triggered when a child process uses [`process.send()`][]
<ide> to send messages.
<ide>
<add>### child.channel
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>* {Object} A pipe representing the IPC channel to the child proce... | 8 |
Javascript | Javascript | use ember.set when cloning keywords - fixes | 526e0c51f581699e179201a0e7a890cc8a9a7230 | <ide><path>packages/ember-views/lib/views/view.js
<ide> Ember.View = Ember.Object.extend(Ember.Evented,
<ide> controller = get(this, 'controller');
<ide>
<ide> var keywords = templateData ? Ember.copy(templateData.keywords) : {};
<del> keywords.view = get(this, 'concreteView');
<add> set(keywords, 'v... | 1 |
Text | Text | add example usage for replaceme tag | e7f1c0043cf5340778ddf75f7dc80ade65e2d974 | <ide><path>tools/doc/README.md
<ide> Each type of heading has a description block.
<ide>
<ide> A description of the function.
<ide>
<add> ### module.someNewFunction(x)
<add> <!-- YAML
<add> added: REPLACEME
<add> -->
<add>
<add> * `x` {String} the description of the string
<add>
<add> This featu... | 1 |
Text | Text | update pr guidelines | 0a35529d5360eda2d8d10c7e633c4bc6c4b2bb27 | <ide><path>docs/PullRequestGuidelines.md
<ide> ## Tips on reviewing pull requests
<ide>
<del>Does the PR miss info required in the [Pull request template](https://github.com/facebook/react-native/blob/master/PULL_REQUEST_TEMPLATE.md)? Ask for it and link to the template. Add labels 'Needs revision' and 'Needs response... | 1 |
Javascript | Javascript | add docs for prefer-util-format-errors rule | 85e34b0c73794d3a241aa9e0c6139292f445c30a | <ide><path>tools/eslint-rules/prefer-util-format-errors.js
<ide> module.exports = {
<ide> if (!isArrowFunctionWithTemplateLiteral(msg))
<ide> return;
<ide>
<add> // Checks to see if order of arguments to function is the same as the
<add> // order of them being concatenated in the templa... | 1 |
Javascript | Javascript | remove unused config | d68f946fe4ebaba02d68f5b118d53ec397ac705e | <ide><path>benchmark/process/next-tick-depth-args.js
<ide> const bench = common.createBenchmark(main, {
<ide> n: [12e6]
<ide> });
<ide>
<del>process.maxTickDepth = Infinity;
<del>
<ide> function main({ n }) {
<ide> let counter = n;
<ide> function cb4(arg1, arg2, arg3, arg4) {
<ide><path>benchmark/process/next-ti... | 5 |
Ruby | Ruby | convert attributes to hash in authenticate_by | c5bbc8101495aeaa3f7ca055d4fb8199d591f5db | <ide><path>activerecord/lib/active_record/secure_password.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "active_support/core_ext/hash/except"
<del>
<ide> module ActiveRecord
<ide> module SecurePassword
<ide> extend ActiveSupport::Concern
<ide> module ClassMethods
<ide> # User.authenticate_by(... | 2 |
Ruby | Ruby | remove usage of thread.new | 7fbfb02625cb979ec3a82ff3bf04f8efcf6e1ace | <ide><path>Library/Homebrew/cleanup.rb
<ide> CLEANUP_MAX_AGE_DAYS = 120
<ide>
<ide> module CleanupRefinement
<del> refine Enumerator do
<del> def parallel
<del> queue = Queue.new
<del>
<del> each do |element|
<del> queue.enq(element)
<del> end
<del>
<del> workers = (0...Hardware::CPU.cor... | 2 |
Javascript | Javascript | add missing line | 208d643b11b38906c4cc22c6841bc5c291a82a46 | <ide><path>src/renderers/webvr/WebVRManager.js
<ide> function WebVRManager( renderer ) {
<ide> standingMatrix.makeTranslation(0, scope.userHeight, 0);
<ide> }
<ide>
<add> standingMatrixInverse.getInverse( standingMatrix );
<ide> poseObject.position.applyMatrix4( standingMatrix );
<ide> poseObject.updateMatr... | 1 |
Ruby | Ruby | restore correct scaffold generation | e17ddc255d5d3d2d1032e0f42c627023769ad5ee | <ide><path>railties/lib/rails/generators/active_model.rb
<ide> def initialize(name)
<ide>
<ide> # GET index
<ide> def self.all(klass)
<del> "#{klass}.scoped.to_a"
<add> "#{klass}.all"
<ide> end
<ide>
<ide> # GET show | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.