content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | fix broken tests | 0c25708a288dd1dc00ac2321851d0dcafaa2c6c2 | <ide><path>src/Illuminate/Console/Command.php
<ide> public function setLaravel($laravel)
<ide> * @param \Symfony\Component\Console\Output\OutputInterface $output
<ide> * @return int
<ide> */
<del> private function runCommand($command, array $arguments, OutputInterface $output): int
<add> private fu... | 1 |
Text | Text | add norm to matcher feature in docs | d5666fd12d70a0a9f50bb75e2941ca59f2582a98 | <ide><path>website/docs/api/matcher.md
<ide> rule-based matching are:
<ide> | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
<ide> | `ORTH` | The exact ... | 2 |
Javascript | Javascript | fix handling of metaproperty | ae15a701a4bbf6c74028afdd1bb73f9284a585d5 | <ide><path>lib/dependencies/ImportMetaPlugin.js
<ide> class ImportMetaPlugin {
<ide> const expr = /** @type {MemberExpression} */ (expression);
<ide> if (
<ide> expr.object.type === "MetaProperty" &&
<add> expr.object.meta.name === "import" &&
<add> expr.object.property.name === "met... | 4 |
Python | Python | fix typo in transaction.atomic docstring | bd9b324a99ec77026c3dd0f749e28c919fe5ee59 | <ide><path>django/db/transaction.py
<ide> class Atomic(object):
<ide> connection. None denotes the absence of a savepoint.
<ide>
<ide> This allows reentrancy even if the same AtomicWrapper is reused. For
<del> example, it's possible to define `oa = @atomic('other')` and use `@ao` or
<add> example, it's p... | 1 |
Ruby | Ruby | fix checkin method, add a couple more tests | 3ce64d4f1608330072e1959a10f9b84205baebfa | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def checkout
<ide>
<ide> def checkin(conn)
<ide> @connection_mutex.synchronize do
<del> @checked_out -= conn
<add> @checked_out.delete conn
<ide> @queue.signal
<ide> end
<id... | 2 |
Python | Python | add try/except around bz2 import | b9616419e1395745ce59288d01e591d72f80f0c8 | <ide><path>spacy/cli/model.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>import bz2
<del>import gzip
<add>try:
<add> import bz2
<add> import gzip
<add>except ImportError:
<add> pass
<ide> import math
<ide> from ast import literal_eval
<ide> from pathlib import Path | 1 |
Ruby | Ruby | fix failing am test due to missing template | 9f5d2b12025958d024cbe5666dfef80b225dde2c | <ide><path>actionmailer/test/base_test.rb
<ide> class DefaultFromMailer < ActionMailer::Base
<ide> self.default_options = {from: "robert.pankowecki@gmail.com"}
<ide>
<ide> def welcome
<del> mail(subject: "subject")
<add> mail(subject: "subject", body: "hello world")
<ide> end
<ide> ... | 1 |
Mixed | Ruby | add id option to redis adapter config | bcd11e07b5369b661e869631dc485fd5e3ce88a5 | <ide><path>actioncable/CHANGELOG.md
<add>* Add `id` option to redis adapter so now you can distinguish
<add> ActionCable's redis connections among others. Also, you can set
<add> custom id in options.
<add>
<add> Before:
<add> ```
<add> $ redis-cli client list
<add> id=669 addr=127.0.0.1:46442 fd=8 ... | 3 |
Python | Python | add unit test for start_from_epoch to earlystop | c492e45a017ecff5196a45d962d1618cac89467a | <ide><path>keras/callbacks_test.py
<ide> def set_weight_to_epoch(self, epoch):
<ide> self.assertEqual(epochs_trained, 5)
<ide> self.assertEqual(early_stop.model.get_weights(), 2)
<ide>
<add> def test_EarlyStopping_with_start_from_epoch(self):
<add> with self.cached_session():
<add> ... | 1 |
PHP | PHP | remove layouts constant | c33fc1e0033426b7db6320fed43fe228bcdbba77 | <ide><path>lib/Cake/bootstrap.php
<ide> */
<ide> define('APPLIBS', APP.'Lib'.DS);
<ide>
<del>/**
<del> * Path to the application's view's layouts directory.
<del> */
<del> define('LAYOUTS', VIEWS.'Layouts'.DS);
<del>
<ide> /**
<ide> * Path to the application's view's elements directory.
<ide> * It's supposed to ho... | 1 |
PHP | PHP | fix error from previous commit | 9d1e88ba13f9a8d0c2acb808c83d7763e1e7f5f3 | <ide><path>lib/Cake/Controller/Scaffold.php
<ide> public function __construct(Controller $controller, CakeRequest $request) {
<ide> 'title_for_layout', 'modelClass', 'primaryKey', 'displayField', 'singularVar', 'pluralVar',
<ide> 'singularHumanName', 'pluralHumanName', 'scaffoldFields', 'associations'
<ide> ));... | 1 |
Ruby | Ruby | update request_forgery_protection docs [ci skip] | fd0f27ce793caf8c2f06cf09710aa0a505df553e | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<ide> class InvalidCrossOriginRequest < ActionControllerError #:nodoc:
<ide> # by including a token in the rendered HTML for your application. This token is
<ide> # stored as a random string in the session, to which an attacker does not... | 1 |
Javascript | Javascript | change var to const in ./common | 017122a6ec260ade02bba4c26d188709b336c911 | <ide><path>test/common/index.js
<ide> exports.allowGlobals = allowGlobals;
<ide> function leakedGlobals() {
<ide> const leaked = [];
<ide>
<del> // eslint-disable-next-line no-var
<del> for (var val in global) {
<add> for (const val in global) {
<ide> if (!knownGlobals.includes(global[val])) {
<ide> lea... | 1 |
PHP | PHP | fix throws tag | 77a121a80f88d595e90f82e58a76a65702784f7e | <ide><path>src/View/SerializedView.php
<ide> abstract protected function _serialize($serialize): string;
<ide> * @param string|null $template The template being rendered.
<ide> * @param string|null|false $layout The layout being rendered.
<ide> * @return string The rendered view.
<del> * @throws \Cak... | 1 |
Text | Text | fix typo in blog post | b8229cc7610701f9736ae0cf8addea354cd9d33e | <ide><path>docs/_posts/2014-10-14-introducting-react-elements.md
<ide> var reactDivElement = div(props, children);
<ide>
<ide> ## Deprecated: Auto-generated Factories
<ide>
<del>Imagine if `React.createClass` was just a plain JavaScript class. If you call a class as a plain function you would call the component's con... | 1 |
Text | Text | update linux.md to accomadate build issues | 748d189079d18533f206afc61007f3f8629978eb | <ide><path>docs/build-instructions/linux.md
<ide> and restart Atom. If Atom now works fine, you can make this setting permanent:
<ide>
<ide> See also https://github.com/atom/atom/issues/2082.
<ide>
<add>### /usr/bin/env: node: No such file or directory
<add>
<add>If you get this notice when attemtping to ```script/b... | 1 |
Javascript | Javascript | remove the `url` polyfill | fa86a192f9b97434df2439285b7efe2862d8d07d | <ide><path>src/shared/compatibility.js
<ide> if (
<ide> globalThis.Promise = require("core-js/es/promise/index.js");
<ide> })();
<ide>
<del> // Support: Safari
<del> (function checkURL() {
<del> if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("PRODUCTION")) {
<del> // Prevent "require is not a fu... | 1 |
Javascript | Javascript | add support for toisostring method | da9f4dfcf4f3d0c21821d8474ac0bb19a3c51415 | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.$LogProvider = function() {
<ide> return parseInt(str, 10);
<ide> }
<ide>
<add> function padNumber(num, digits, trim) {
<add> var neg = '';
<add> if (num < 0) {
<add> neg = '-';
<add> num = -num;
<add> }
<add> num = '' + num;
<add>... | 2 |
Python | Python | update trove classifiers | d905cd7f744d706002d92760545f0e0d2d61b98f | <ide><path>setup.py
<ide> def run(self, *args, **kwargs):
<ide> test_suite="nose.collector",
<ide> classifiers=[
<ide> "Development Status :: 5 - Production/Stable",
<del> "Operating System :: OS Independent",
<del> "Environment :: No Input/Output (Daemon)",
<del> "Intended Audience... | 1 |
Javascript | Javascript | remove string.prototype.contains polyfill | 577206fe51cf94d53cd69123ac64bf70cd2cc0ba | <ide><path>packager/react-packager/src/Resolver/polyfills/String.prototype.es6.js
<ide> if (!String.prototype.endsWith) {
<ide> };
<ide> }
<ide>
<del>if (!String.prototype.contains) {
<del> String.prototype.contains = function(search) {
<del> 'use strict';
<del> if (this == null) {
<del> throw TypeError(... | 1 |
Javascript | Javascript | support possible deletion of globalthis.error | 46526d6cadc611b57032b0f4423cc9220f7cc915 | <ide><path>lib/internal/errors.js
<ide> const maybeOverridePrepareStackTrace = (globalThis, error, trace) => {
<ide> // https://crbug.com/v8/7848
<ide> // `globalThis` is the global that contains the constructor which
<ide> // created `error`.
<del> if (typeof globalThis.Error.prepareStackTrace === 'function') {... | 1 |
Javascript | Javascript | extract common helper functions | 5857c89da2b7322c24dc4448408a2c0d7489ac82 | <ide><path>packages/react-events/src/utils.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<add> */
<add>
<add>import type {
<add> R... | 1 |
PHP | PHP | uncomment a bunch of skipped cors cases | 116b8feb8098220a8405b1a1ea721a1ac004da36 | <ide><path>tests/TestCase/Network/ResponseTest.php
<ide> public function corsData()
<ide> };
<ide>
<ide> return [
<del> // [$fooRequest, null, '*', '', '', false, false],
<del> // [$fooRequest, 'http://www.foo.com', '*', '', '', '*', false],
<del> // [$fooRequest, 'http... | 1 |
Javascript | Javascript | add useoriginalname to internal/errors | e692a098023a9966e8aa1fc6fda31fb3dee8373c | <ide><path>lib/internal/errors.js
<ide> function makeSystemErrorWithCode(key) {
<ide> };
<ide> }
<ide>
<add>let useOriginalName = false;
<add>
<ide> function makeNodeErrorWithCode(Base, key) {
<ide> return class NodeError extends Base {
<ide> constructor(...args) {
<ide> super(getMessage(key, args));
<id... | 2 |
PHP | PHP | simplify sone fqcn. | 57c5672e12a9bcb6143134dc5644a2b45fe9d207 | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide>
<ide> use Closure;
<ide> use Exception;
<add>use Illuminate\Auth\Access\Events\GateEvaluated;
<ide> use Illuminate\Contracts\Auth\Access\Gate as GateContract;
<ide> use Illuminate\Contracts\Container\Container;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide>... | 10 |
Python | Python | fix xrange import | f893da6d95c1feff49576548d6cc75415e42118c | <ide><path>research/attention_ocr/python/model_test.py
<ide> """Tests for the model."""
<ide>
<ide> import numpy as np
<del>from six import xrange
<add>from six.moves import xrange
<ide> import string
<ide> import tensorflow as tf
<ide> from tensorflow.contrib import slim | 1 |
PHP | PHP | replace settimeout() with expire() | e5605aaab57772159a97089d0aeeaaec34b9f3ae | <ide><path>src/Cache/Engine/RedisEngine.php
<ide> public function increment($key, $offset = 1)
<ide>
<ide> $value = (int)$this->_Redis->incrBy($key, $offset);
<ide> if ($duration > 0) {
<del> $this->_Redis->setTimeout($key, $duration);
<add> $this->_Redis->expire($key, $duration);... | 1 |
Java | Java | fix typo in java doc | 3165b3c024ed5a782790d4b531e4b87831bd0b29 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UriUtils.java
<ide> public static String encodeFragment(String fragment, Charset charset) {
<ide>
<ide>
<ide> /**
<del> * Variant of {@link #decode(String, Charset)} with a String charset.
<add> * Variant of {@link #encode(String, Charset)} with a St... | 1 |
Javascript | Javascript | adjust cursor scope when at end of line | 47c0a1451719980a0a6dc3ee31824c42878a8e74 | <ide><path>spec/tree-sitter-language-mode-spec.js
<ide> describe('TreeSitterLanguageMode', () => {
<ide> parser: 'tree-sitter-javascript',
<ide> scopes: {
<ide> program: 'source.js',
<del> property_identifier: 'property.name'
<add> property_identifier: 'property.name',
<add> ... | 2 |
Mixed | Javascript | add feature yank and yank pop | 2f1700463b328e9c19866912f6bf3efef435f0f6 | <ide><path>doc/api/readline.md
<ide> const { createInterface } = require('readline');
<ide> <td>Delete from the current position to the end of line</td>
<ide> <td></td>
<ide> </tr>
<add> <tr>
<add> <td><kbd>Ctrl</kbd>+<kbd>Y</kbd></td>
<add> <td>Yank (Recall) the previously deleted text</td>
<add> <... | 3 |
Ruby | Ruby | remove docs on multiple applications | a86c54add187e60faca7b2e52492f5a0f8d512d0 | <ide><path>railties/lib/rails/application.rb
<ide> module Rails
<ide> # 9) Build the middleware stack and run to_prepare callbacks
<ide> # 10) Run config.before_eager_load and eager_load! if eager_load is true
<ide> # 11) Run config.after_initialize callbacks
<del> #
<del> # == Multiple Applications
<del... | 1 |
Javascript | Javascript | add summery blurb to landing page | 16271ce365a502e21652df0d6ac8374186fcdcd7 | <add><path>website/src/react-native/index.js
<del><path>website/src/react-native/_index.js
<ide> var index = React.createClass({
<ide> </div>
<ide>
<ide> <section className="content wrap">
<add> <div style={{margin: '40px auto', width: 800}}>
<add>
<add> <p>
<add> React Nat... | 1 |
Mixed | Ruby | add `strict_loading` mode to prevent lazy loading | dbb92f8a779bd25ab9e5118118ceff24fc9e7439 | <ide><path>activerecord/CHANGELOG.md
<add>* Add support for `strict_loading` mode to prevent lazy loading of records.
<add>
<add> Raise an error if a parent record is marked as `strict_loading` and attempts to lazily load its associations. This is useful for finding places you may want to preload an association an... | 14 |
PHP | PHP | add file to optimize | 2da3d433e57975198c9c3f4d000e8bf6359ceddb | <ide><path>src/Illuminate/Foundation/Console/Optimize/config.php
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/Cookie/QueueingFactory.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/Encryption/Encrypter.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illu... | 1 |
Text | Text | add german contributing.md | 757ab079ffaace6f269f0eee6d679c4d6da41855 | <ide><path>docs/german/CONTRIBUTING.md
<add><table>
<add> <tr>
<add> <!-- Do not translate this table -->
<add> <td> Read these guidelines in </td>
<add> <td><a href="/CONTRIBUTING.md"> English </a></td>
<add> <td><a href="/docs/arabic/CONTRIBUTING.md"> عربى </a></td>
<add> <td><a ... | 1 |
Ruby | Ruby | fix indentation and newlines in generated engine | 34d1e5d04d2e2583bf28fc2365f43d5917e2c648 | <ide><path>railties/lib/rails/generators/named_base.rb
<ide> def indent(content, multiplier = 2)
<ide> end
<ide>
<ide> def wrap_with_namespace(content)
<del> content = indent(content)
<add> content = indent(content).chomp
<ide> "module #{namespace.name}\n#{content}\nend\n"
<... | 2 |
PHP | PHP | remove unused imports | 00e2c2b503e603ca78035abbce9dfe05c2a2965b | <ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php
<ide>
<ide> namespace Illuminate\Foundation\Testing;
<ide>
<del>use Exception;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<ide>
<ide><path>src/Illuminate/Foundation/Testing/InteractsWithPages.php
<ide>
<ide> use Exception;
<ide>... | 2 |
Javascript | Javascript | use feminine suffix for weeks' ordinals | c67bb0e67548030dbd8009fe39cd9453b1fcce0f | <ide><path>locale/ca.js
<ide> y : 'un any',
<ide> yy : '%d anys'
<ide> },
<del> ordinalParse: /\d{1,2}(r|n|t|è)/,
<del> ordinal : function (number) {
<add> ordinalParse: /\d{1,2}(r|n|t|è|a)/,
<add> ordinal : function (number, period) {
<ide> var ou... | 2 |
Javascript | Javascript | prevent stack recalculation | 0401754b92e9029e7dddf54c165321f04001ba79 | <ide><path>lib/internal/errors.js
<ide> function makeNodeError(Base) {
<ide> constructor(key, ...args) {
<ide> super(message(key, args));
<ide> this[kCode] = key;
<del> Error.captureStackTrace(this, NodeError);
<ide> }
<ide>
<ide> get name() { | 1 |
Javascript | Javascript | reuse parsed results rather than redoing work | 9f3b51a80ce96578718267711e8b65c1ec8c25c1 | <ide><path>src/scales/scale.time.js
<ide> module.exports = function(Chart) {
<ide>
<ide> Chart.Scale.prototype.initialize.call(this);
<ide> },
<del> getLabelMoment: function(datasetIndex, index) {
<del> if (datasetIndex === null || index === null) {
<del> return null;
<del> }
<del>
<del> if (typeof this... | 2 |
Python | Python | predict target arch for osx | 85a86b5fd64ee4f5502552096dcc5f616158d7d6 | <ide><path>tools/wafadmin/Tools/node_addon.py
<ide> import os
<del>import TaskGen, Utils, Utils, Runner, Options, Build
<add>import TaskGen, Utils, Runner, Options, Build
<ide> from TaskGen import extension, taskgen, before, after, feature
<ide> from Configure import conf, conftest
<ide>
<ide> def detect(conf):
<ide> ... | 1 |
Ruby | Ruby | fix parens after inline block | b6fd579a7e97f1a3aee27d22e12784f7a6155799 | <ide><path>config/routes.rb
<ide> route_for(:rails_blob_variation, encoded_blob_key, variation_key, filename)
<ide> end
<ide>
<del> resolve 'ActiveStorage::Variant' { |variant| route_for(:rails_variant, variant) }
<add> resolve('ActiveStorage::Variant') { |variant| route_for(:rails_variant, variant) }
<ide> en... | 1 |
Javascript | Javascript | use whatwg url api instead of url.parse() | 738fa63661a7a5d7e8bf604436bb3b91648e327b | <ide><path>lib/adapters/http.js
<ide> import {getProxyForUrl} from 'proxy-from-env';
<ide> import http from 'http';
<ide> import https from 'https';
<ide> import followRedirects from 'follow-redirects';
<del>import url from 'url';
<ide> import zlib from 'zlib';
<ide> import {VERSION} from '../env/data.js';
<ide> import... | 2 |
Javascript | Javascript | do some dirty for windows compatible | dee984d1ddc8e2cdb0eef51bd0470744c92058eb | <ide><path>react-native-cli/index.js
<ide> var spawn = require('child_process').spawn;
<ide> var chalk = require('chalk');
<ide> var prompt = require('prompt');
<ide> var semver = require('semver');
<add>var os = require('os');
<ide>
<ide> var CLI_MODULE_PATH = function() {
<ide> return path.resolve(
<ide> function ... | 1 |
Ruby | Ruby | determine number of cores using rubycocoa #win | 14424feab2d9eb9ee7407e8a6b09abae13c83c59 | <ide><path>Cellar/homebrew/brewkit.rb
<ide> # Copyright 2009 Max Howell <max@methylblue.com>
<ide> # Licensed as per the GPL version 3
<ide> require 'pathname'
<add>require 'osx/cocoa' # to get number of cores
<ide>
<ide> HOMEBREW_VERSION='0.1'
<ide>
<ide> # if I'm wrong
<ide> ENV['CC']='gcc-4.2'
<ide> ENV['CXX']='g+... | 1 |
Javascript | Javascript | add type comments for util/identifier | 0dbbcdd82b1a41b28e7eebf2ac9be3dbbddbd28b | <ide><path>lib/util/identifier.js
<ide> "use strict";
<ide> const path = require("path");
<ide>
<add>/** @typedef {{relativePaths: Map<string, string|Map<string,string>>}} MakeRelativePathsCache */
<add>
<add>/**
<add> *
<add> * @param {string} maybeAbsolutePath path to check
<add> * @return {boolean} returns true if ... | 1 |
Javascript | Javascript | remove useless additionnal blur call | 27cfba28823dc401a4d73152c984e5732d4ea02b | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> const TextInput = createReactClass({
<ide> },
<ide>
<ide> _onBlur: function(event: Event) {
<del> this.blur();
<ide> if (this.props.onBlur) {
<ide> this.props.onBlur(event);
<ide> } | 1 |
Javascript | Javascript | remove untested branch | 6807bb6f6d02d9b9b8266afd34f71fdc8c920441 | <ide><path>lib/runtime/PublicPathRuntimeModule.js
<ide> class PublicPathRuntimeModule extends RuntimeModule {
<ide> return `${RuntimeGlobals.publicPath} = (() => {
<ide> if ("currentScript" in document) {
<ide> return document.currentScript.src.replace(/[^\\/]+$/, "");
<del> } else if ("_getCurrentScript... | 1 |
Javascript | Javascript | drop legacy factories around classes | 199a7d6903ed2e7c28fb32c6a28ed7f26148e13d | <ide><path>src/browser/ReactDOM.js
<ide>
<ide> var ReactElement = require('ReactElement');
<ide> var ReactElementValidator = require('ReactElementValidator');
<del>var ReactLegacyElement = require('ReactLegacyElement');
<ide>
<ide> var mapObject = require('mapObject');
<ide>
<ide> var mapObject = require('mapObject'... | 14 |
Go | Go | remove redundant nil checks | de1094bc95322941182a99cb165dbaad3fe1512f | <ide><path>daemon/info_unix.go
<ide> func (daemon *Daemon) fillPlatformInfo(v *types.Info, sysInfo *sysinfo.SysInfo)
<ide> }
<ide>
<ide> func fillDriverWarnings(v *types.Info) {
<del> if v.DriverStatus == nil {
<del> return
<del> }
<ide> for _, pair := range v.DriverStatus {
<ide> if pair[0] == "Data loop file" {
... | 1 |
Javascript | Javascript | fix excessive indentation | 8226ff8b8ec262a614ddb7635c33abf8e5624c67 | <ide><path>test/ngMock/angular-mocksSpec.js
<ide> describe('ngMock', function() {
<ide> });
<ide>
<ide> it('should provide "route" shortcuts for expect and when', function() {
<del> expect(typeof hb.whenRoute).toBe("function");
<del> expect(typeof hb.expectRoute).toBe("function");
<add> expe... | 1 |
Ruby | Ruby | remove unneeded `curl_openssl_or_deps` invocation | c2bbd9df7e6d0860dc144cc12d44ed5d75efcb21 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_urls
<ide> # pull request.
<ide> next if url =~ %r{^https://dl.bintray.com/homebrew/mirror/}
<ide>
<del> if http_content_problem = curl_check_http_content(url, require_http: curl_openssl_or_deps)
<add> if http_content_pr... | 2 |
Text | Text | add link & simplify data event (net.socket) | df0a37ac363569d9c6348c603e444f089e64a89e | <ide><path>doc/api/net.md
<ide> added: v0.1.90
<ide> * {Buffer}
<ide>
<ide> Emitted when data is received. The argument `data` will be a `Buffer` or
<del>`String`. Encoding of data is set by `socket.setEncoding()`.
<del>(See the [Readable Stream][] section for more information.)
<add>`String`. Encoding of data is s... | 1 |
Text | Text | add prose guidelines (wip) | be336159fb967b1b0855614aeaff885d45e7a96a | <ide><path>share/doc/homebrew/Prose-Style-Guidelines.md
<add># Prose Style Guidelines
<add>
<add>This is a set of style and usage guidelines for Homebrew's prose documentation aimed at users, contributors, and maintainers (as opposed to executable computer code). It applies to documents like those in `share/doc/homebre... | 1 |
Text | Text | fix typo in feature request issue template. | df7795f5875c11ff6a8e30c2d285e6a8946b4f18 | <ide><path>.github/ISSUE_TEMPLATE/Feature-Request.md
<ide> To check an item on the list replace [ ] with [x].
<ide> - [ ] I have checked the [pull requests list](https://github.com/celery/celery/pulls?utf8=%E2%9C%93&q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+)
<ide> for existing proposed implementations of this featu... | 1 |
Javascript | Javascript | test non-flag and re-runs of telemetry cmds | 79090718da0c361bb954eaa5547a2d175191fe51 | <ide><path>test/integration/telemetry/test/index.test.js
<ide> describe('Telemetry CLI', () => {
<ide> expect(stdout).toMatch(/Status: .*/)
<ide> })
<ide>
<del> it('can enable telemetry', async () => {
<add> it('can enable telemetry with flag', async () => {
<ide> const { stdout } = await runNextCommand(['... | 1 |
Javascript | Javascript | remove unused vars | 71de1162c7e20f04eb61339a1aee1fa7b3b02dc0 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> import {
<ide> removeListener
<ide> } from './events';
<ide>
<del>const a_slice = Array.prototype.slice;
<ide> const a_concat = Array.prototype.concat;
<ide> const { isArray } = Array;
<ide>
<ide> function isMethod(obj) {
<ide> return 'function' === typeof obj &&... | 2 |
Text | Text | change inconsistencies of informal address | 979e7f2a5dc36a6c81cc8302d25a30adaa1156f0 | <ide><path>guide/spanish/agile/acceptance-testing/index.md
<ide> Puede escribir Pruebas de aceptación para cada una de estas subcaracterísticas
<ide>
<ide> Aparte del código que maneja la infraestructura de cómo se ejecutará la prueba, su prueba para el primer escenario podría verse como (en pseudocódigo):
<ide>
<del... | 1 |
Javascript | Javascript | add more tests for angle bracket invocation | fad23096407e44fd74a8183ca227eed7a22d18f3 | <ide><path>packages/ember-glimmer/tests/integration/components/angle-bracket-invocation-test.js
<ide> import { moduleFor, RenderingTest } from '../../utils/test-case';
<add>import { set } from 'ember-metal';
<ide> import { Component } from '../../utils/helpers';
<add>import { strip } from '../../utils/abstract-test-cas... | 1 |
Python | Python | clarify some docs | 0d19fa0a061d91f0a6fec5cc60af4a4c1b46aa9b | <ide><path>flask/helpers.py
<ide> def _set_static_url_path(self, value):
<ide> @property
<ide> def has_static_folder(self):
<ide> """This is ``True`` if the package bound object's container has a
<del> folder named ``'static'``.
<add> folder for static files.
<ide>
<ide> .. versio... | 2 |
Ruby | Ruby | add activemodel requirement to application.rb | ab727743bf8a7e27ab1e1cc6097a07e5792aa7da | <ide><path>railties/lib/rails/generators/rails/app/templates/config/application.rb
<ide> require 'rails/all'
<ide> <% else -%>
<ide> # Pick the frameworks you want:
<add>require "active_model/railtie"
<ide> <%= comment_if :skip_active_record %>require "active_record/railtie"
<ide> require "action_controller/railtie"
<i... | 1 |
Ruby | Ruby | fix https grammar | db98b05113f7252073e48520b880e5961dfa2c31 | <ide><path>actionpack/lib/action_controller/metal/force_ssl.rb
<ide> require "active_support/core_ext/hash/slice"
<ide>
<ide> module ActionController
<del> # This module provides a method which will redirect the browser to use HTTPS
<del> # protocol. This will ensure that user's sensitive information will be
<add> ... | 1 |
PHP | PHP | fix trailing slash and add test | 3d58cd91d6ec483a43a4c23af9b75ecdd4a358de | <ide><path>src/Illuminate/Routing/CompiledRouteCollection.php
<ide> public function refreshActionLookups()
<ide> */
<ide> public function match(Request $request)
<ide> {
<add> $trimmedRequest = clone $request;
<add>
<add> $trimmedRequest->server->set(
<add> 'REQUEST_URI', rtrim($re... | 2 |
Mixed | Python | implement openapi components | 8aa8be7653cf441e81cabd9be945f809cb617192 | <ide><path>docs/api-guide/schemas.md
<ide> class CustomSchema(AutoSchema):
<ide> def get_operation_id(self, path, method):
<ide> pass
<ide>
<add>class MyView(APIView):
<add> schema = AutoSchema(component_name="Ulysses")
<add>```
<add>
<add>### Components
<add>
<add>Since DRF 3.12, Schema uses the [OpenAP... | 4 |
Go | Go | implement containers in set | 43bcbf06a663c5d8cac63f2af8fefef7edc5513a | <ide><path>networkdriver/portallocator/ipset.go
<ide> func (s *iPSet) Pop() string {
<ide> return ""
<ide> }
<ide>
<add>// Exists checks if the given element present in the list.
<add>func (s *iPSet) Exists(elem string) bool {
<add> for _, e := range s.set {
<add> if e == elem {
<add> return true
<add> }
<add> }
... | 1 |
Go | Go | fix typo when --expose and --net are specified | a25988cf760b96c855b3e1442547ea9d763c7cd1 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunContainerNetModeWithExposePort(c *check.C) {
<ide> }
<ide>
<ide> out, _, err = dockerCmdWithError("run", "--expose", "5000", "--net=container:parent", "busybox")
<del> if err == nil || !strings.Contains(out, "Conflicting options: --... | 2 |
Text | Text | add 2.7.3 to the changelog.md | cb9f9c00f2614f97f5a1dc8222aff68e093f8675 | <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.3 (September 6, 2016)
<add... | 1 |
Text | Text | add v3.25.0-beta.3 to changelog | f2be19507f0742a9471fa4fe0ce22ccf3104967d | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.25.0-beta.2 (January 19, 2020)
<add>### v3.25.0-beta.3 (January 25, 2021)
<add>
<add>- [#19351](https://github.com/emberjs/ember.js/pull/19351) [BUGFIX] Ensure locals do not clobber components of the same name
<add>
<add>### v3.25.0-beta.2 (January 19, ... | 1 |
Python | Python | add unk_token to gpt2 | 57e54ec070258189695ba8cacdf7d2bcaf1c72bc | <ide><path>pytorch_transformers/tokenization_gpt2.py
<ide> class GPT2Tokenizer(PreTrainedTokenizer):
<ide> pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP
<ide> max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
<ide>
<del> def __init__(self, vocab_file, merges_file, errors='replace',
<a... | 1 |
Javascript | Javascript | add csstransitiongroup to addons | 6780b47526fa5b5f849b8362230d7416407baa12 | <ide><path>src/browser/ReactWithAddons.js
<ide>
<ide> var LinkedStateMixin = require('LinkedStateMixin');
<ide> var React = require('React');
<add>var ReactCSSTransitionGroup = require('ReactCSSTransitionGroup');
<ide> var ReactTransitionGroup = require('ReactTransitionGroup');
<ide>
<ide> var cx = require('cx');
<id... | 1 |
Ruby | Ruby | remove flaky test." | a9877088ea4712caec35a03b7da704c9f702c726 | <ide><path>Library/Homebrew/test/cask/cmd/upgrade_spec.rb
<ide> end
<ide>
<ide> describe "with --greedy it checks additional Casks" do
<add> it 'includes the Casks with "auto_updates true" or "version latest"' do
<add> local_caffeine = Cask::CaskLoader.load("local-caffeine")
<add> local_caff... | 1 |
Mixed | Ruby | apply config to rails.application.deprecators | a23c9e38d345ef8eda0a1dc1aa07048e713f4045 | <ide><path>activesupport/lib/active_support/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide>
<ide> initializer "active_support.deprecation_behavior" do |app|
<ide> if app.config.active_support.report_deprecations == false
<del> ActiveSupport::Deprecation.silenced = true
<del> Act... | 3 |
Python | Python | add some more comments and missing docstrings | 028b9922bfde24b51ac7116c4cbf39925127402c | <ide><path>libcloud/common/base.py
<ide> class Response(object):
<ide> A base Response class to derive from.
<ide> """
<ide>
<del> object = None
<del> body = None
<del> status = httplib.OK
<del> headers = {}
<del> error = None
<del> connection = None
<add> status = httplib.OK # Response s... | 1 |
Python | Python | add test case for local loopback | 14142e01eee1d541779adfad4c4a46b138b9a17a | <ide><path>libcloud/common/google.py
<ide> def __init__(
<ide> self.scopes = " ".join(scopes)
<ide> self.redirect_uri = redirect_uri
<ide> self.login_hint = login_hint
<del> self._state = "Libcloud Request"
<ide>
<ide> super().__init__(user_id, key, **kwargs)
<ide>
<ide> def ref... | 2 |
Text | Text | use correct option in radar chart | 3985d50201cafe53cbb9abad5910fae2553e83e5 | <ide><path>docs/05-Radar-Chart.md
<ide> pointBackgroundColor | `Color or Array<Color>` | The fill color for points
<ide> pointBorderWidth | `Number or Array<Number>` | The width of the point border in pixels
<ide> pointRadius | `Number or Array<Number>` | The radius of the point shape. If set to 0, nothing is rendered.... | 1 |
Python | Python | improve error catching while init plugins | 285dcd5b432f76505739144ec215df5a922358a1 | <ide><path>glances/stats.py
<ide> import os
<ide> import sys
<ide> import threading
<add>import traceback
<ide>
<ide> from glances.globals import exports_path, plugins_path, sys_path
<ide> from glances.logger import logger
<ide> class GlancesStats(object):
<ide>
<ide> """This class stores, updates and gives stats... | 1 |
Javascript | Javascript | add $even and $odd props to iterator | 52b8211fd0154b9d6b771a83573a161f5580d92c | <ide><path>src/ng/directive/ngRepeat.js
<ide> * | `$first` | {@type boolean} | true if the repeated element is first in the iterator. |
<ide> * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |
<ide> * | `$last` | {@type boolean} | t... | 2 |
Mixed | Javascript | render styled-jsx in _document example | e1babdfe9d599584a9e8b79681b4ff48e077bb0d | <ide><path>examples/with-cxs/pages/_document.js
<ide> import cxs from 'cxs'
<ide> export default class MyDocument extends Document {
<ide> static async getInitialProps ({ renderPage }) {
<ide> const page = renderPage()
<del> let style = cxs.getCss()
<add> const style = cxs.getCss()
<ide> return { ...pag... | 3 |
Text | Text | update timeline for flax event evaluation | c523b241c2e50c3ed035bb76b938b6a944fed7e5 | <ide><path>examples/research_projects/jax-projects/README.md
<ide> More to come!
<ide>
<ide> ### Process
<ide>
<del>* **July 16-19** A group of event organizers (Suraj, Patrick, Suzana, and Omar) will do an initial filter to find the top 15 projects.
<del>* **July 19-22** The jury will go over the 15 projects and pic... | 1 |
Python | Python | allow c in dtype for charray (#917) | 47caf646269a9feb966d5aab547f74dff501324d | <ide><path>numpy/core/defchararray.py
<ide> def __new__(subtype, shape, itemsize=1, unicode=False, buffer=None,
<ide>
<ide> def __array_finalize__(self, obj):
<ide> # The b is a special case because it is used for reconstructing.
<del> if not _globalvar and self.dtype.char not in 'SUb':
<add> ... | 2 |
Text | Text | add contributors from #688 | 3dded56ae18951213b107da8abfb8cf36af4193c | <ide><path>CONTRIBUTORS.md
<ide> This is a list of everyone who has made significant contributions to spaCy, in a
<ide> * Andreas Grivas, [@andreasgrv](https://github.com/andreasgrv)
<ide> * Chris DuBois, [@chrisdubois](https://github.com/chrisdubois)
<ide> * Christoph Schwienheer, [@chssch](https://github.com/chssch)
... | 1 |
PHP | PHP | fix incorrect locale set for records | 88cc7abb016551409fe7efbec2699e2bff420ee5 | <ide><path>src/ORM/Behavior/Translate/ShadowTableStrategy.php
<ide> protected function rowMapper($results, $locale)
<ide> {
<ide> $allowEmpty = $this->_config['allowEmptyTranslations'];
<ide>
<del> return $results->map(function ($row) use ($allowEmpty) {
<add> return $results->map(function ($... | 2 |
Java | Java | fix auto-startup for @jmslistener | 996c1cc0a6112e542ca184c8fe6ffb680b630a40 | <ide><path>spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpointRegistry.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * ... | 4 |
Java | Java | provide default parameternamediscoverer for aacbf | 4fc386a4f5118605a8f82154374fb451437fff57 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
<ide> import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;
<ide> import org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor;
... | 6 |
Python | Python | fix progress bar display | f143fac5244b8302f729bf35f73947bff3e376c2 | <ide><path>keras/utils/generic_utils.py
<ide> def update(self, current, values=[]):
<ide> now = time.time()
<ide> if self.verbose == 1:
<ide> prev_total_width = self.total_width
<add> sys.stdout.write("\b" * (self.total_width+1))
<ide> sys.stdout.write("\r")
<ide>
<id... | 1 |
Javascript | Javascript | fix race conditions in test-dgram-multicast.js | 60b93cca6da77222ca9082e54ba8acad547d9d94 | <ide><path>test/simple/test-dgram-multicast.js
<ide> var dgram = require("dgram"),
<ide> sys = require('sys'),
<ide> assert = require('assert'),
<ide> Buffer = require("buffer").Buffer;
<del>var timeoutTimer;
<ide> var LOCAL_BROADCAST_HOST = '224.0.0.1';
<ide> var sendMessages = [
<ide> new Buffer("First ... | 1 |
PHP | PHP | allow incrementing offsets in a collection | fc1b82670a2d6878a1e1ae8667e25d3dc0c86c15 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function offsetGet($key)
<ide> */
<ide> public function offsetSet($key, $value)
<ide> {
<del> $this->items[$key] = $value;
<add> if(is_null($key))
<add> {
<add> $this->items[] = $value;
<add> }
<add> else
<add> {
<add> $this->items[$key] = $val... | 2 |
Go | Go | pass taroptions via cli arg | 3ac6394b8082d4700483d52fbfe54914be537d9e | <ide><path>builder/internals.go
<ide> func (b *Builder) readContext(context io.Reader) error {
<ide> return err
<ide> }
<ide>
<del> os.MkdirAll(tmpdirPath, 0700)
<ide> if err := chrootarchive.Untar(b.context, tmpdirPath, nil); err != nil {
<ide> return err
<ide> }
<ide><path>graph/load.go
<ide> import (
<ide> ... | 5 |
Javascript | Javascript | allow port 80 in http2.connect | c30f107103e1f7e86657ddfc074eb502ece70b5f | <ide><path>lib/internal/http2/core.js
<ide> function connect(authority, options, listener) {
<ide> debug(`connecting to ${authority}`);
<ide>
<ide> const protocol = authority.protocol || options.protocol || 'https:';
<del> const port = '' + (authority.port !== '' ? authority.port : 443);
<add> const port = '' + ... | 2 |
PHP | PHP | add additional tests for various iterators | dcff02cc64fca734e7df2779999ec1a800e55f85 | <ide><path>src/View/Form/EntityContext.php
<ide> use Cake\ORM\TableRegistry;
<ide> use Cake\Utility\Inflector;
<ide> use Cake\Validation\Validator;
<add>use IteratorAggregate;
<add>use IteratorIterator;
<ide> use Traversable;
<ide>
<ide> /**
<ide> public function __construct(Request $request, array $context) {
<ide> /... | 2 |
Text | Text | add a note for the plan to delete r1 folder | f358ee2b196274164b8829d7d5ea6429b1a6b678 | <ide><path>official/r1/README.md
<ide> The R1 folder contains legacy model implmentation and models that will not
<ide> update to TensorFlow 2.x. They do not have solid performance tracking.
<ide>
<add>**Note: models will be removed from the master branch by 2020/06.**
<add>
<add>After removal, you can still access to... | 1 |
Ruby | Ruby | fix typo in loading error message | e50d4c9dedc75835c17211f337c0c08d2a5f58a0 | <ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb
<ide> def spec(config)
<ide> # Bubbled up from the adapter require. Prefix the exception message
<ide> # with some guidance about how to address it and reraise.
<ide> else
<del> rai... | 1 |
Ruby | Ruby | prefer each instead of for in activeresource | 647c55ac43bdddc180d92b967089882da9d227cd | <ide><path>activeresource/lib/active_resource/http_mock.rb
<ide> def initialize(responses)
<ide> @responses = responses
<ide> end
<ide>
<del> for method in [ :post, :put, :get, :delete, :head ]
<add> [ :post, :put, :get, :delete, :head ].each do |method|
<ide> # def post(path, request_h... | 1 |
Python | Python | add basic support for tf optimizers, part deux | 7f42253f46032dba423a2f63ed7cfc16304585c0 | <ide><path>keras/models.py
<ide> import numpy as np
<ide>
<ide> from . import backend as K
<add>from . import optimizers
<ide> from .utils.io_utils import ask_to_proceed_with_overwrite
<ide> from .engine.training import Model
<ide> from .engine.topology import get_source_inputs, Node, Layer
<ide> def get_json_type(obj... | 2 |
Javascript | Javascript | fix references to `tpload` minerr in tests | b87c6a6d4d3d73fbc4d8aeecca58503d5d958d2c | <ide><path>test/ng/compileSpec.js
<ide> describe('$compile', function() {
<ide>
<ide> expect(function() {
<ide> $httpBackend.flush();
<del> }).toThrowMinErr('$compile', 'tpload', 'Failed to load template: hello.html');
<add> }).toThrowMinErr('$templateRequest', 'tpload',... | 3 |
Javascript | Javascript | fix json to match native browser behavior | 26e651996a9cd7fa1acf6380fad8b335b769554d | <ide><path>src/JSON.js
<ide> function toJsonArray(buf, obj, pretty, stack) {
<ide> var childPretty = pretty ? pretty + " " : false;
<ide> var keys = [];
<ide> for(var k in obj) {
<del> if (obj[k] === undefined)
<del> continue;
<del> keys.push(k);
<add> if (obj.hasOwnProp... | 2 |
Python | Python | add regression test for | ee97fd3cb4b3fe5d62a28e8cd936073d11678bbf | <ide><path>spacy/tests/regression/test_issue1547.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>from ...vocab import Vocab
<add>from ...tokens import Doc, Span
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue1547():
<add> """Test that entity labels stil... | 1 |
Javascript | Javascript | use es6 default parameters | 008f1dcd1605cfe925f9b754316e0d4d5036a1a2 | <ide><path>packages/ember-application/lib/system/application-instance.js
<ide> if (isEnabled('ember-application-visit')) {
<ide> @namespace @Ember.ApplicationInstance
<ide> @public
<ide> */
<del> BootOptions = function BootOptions(options) {
<del> options = options || {};
<del>
<add> BootOptions = functi... | 2 |
Javascript | Javascript | add error if camera is null | 29405750b95ea9d318ea3e90051966a1ea04ae1e | <ide><path>src/objects/Sprite.js
<ide> Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), {
<ide>
<ide> raycast: function ( raycaster, intersects ) {
<ide>
<add> if ( raycaster.camera === null ) {
<add>
<add> console.error( 'THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast ... | 1 |
Javascript | Javascript | fix tooltip with array returns | f106e1bf2db1aa604edb62b8e3b309329c41dd94 | <ide><path>src/core/core.tooltip.js
<ide> module.exports = function(Chart) {
<ide> function pushOrConcat(base, toPush) {
<ide> if (toPush) {
<ide> if (helpers.isArray(toPush)) {
<del> base = base.concat(toPush);
<add> //base = base.concat(toPush);
<add> Array.prototype.push.apply(base, toPush);
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.