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 config deprecations in cache/ | 9ff3399128ec747cafd056f320e0cb0515098b05 | <ide><path>tests/TestCase/Cache/CacheTest.php
<ide> public function testConfigErrorOnReconfigure()
<ide> Cache::setConfig('tests', ['engine' => 'Apc']);
<ide> }
<ide>
<add> /**
<add> * Test reading configuration.
<add> *
<add> * @group deprecated
<add> * @return void
<add> */
<add> ... | 6 |
Ruby | Ruby | add godep and sphinx-doc to build time deps | 14af3e35155c5a8c9035b24773dc5858cca6b01b | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> class FormulaAuditor
<ide> boost-build
<ide> bsdmake
<ide> cmake
<add> godep
<ide> imake
<ide> intltool
<ide> libtool
<ide> pkg-config
<ide> scons
<ide> smake
<add> sphinx-doc
<ide> swig
<ide> ]
<ide> | 1 |
Javascript | Javascript | expose pressretentionoffset for text | 550469bb823592797c4c16090dd46b4d6bc3850f | <ide><path>Libraries/Text/Text.js
<ide> */
<ide> 'use strict';
<ide>
<add>const EdgeInsetsPropType = require('EdgeInsetsPropType');
<ide> const NativeMethodsMixin = require('NativeMethodsMixin');
<ide> const Platform = require('Platform');
<ide> const React = require('React');
<ide> const Text = React.createClass({
<... | 1 |
Text | Text | add a changelog entry for | 7f41321cbda1a946c8d8e15b31587af63ae97428 | <ide><path>activerecord/CHANGELOG.md
<add>* Support passing an array to `order` for SQL parameter sanitization.
<add>
<add> *Aaron Suggs*
<add>
<ide> * Avoid disabling errors on the PostgreSQL connection when enabling the
<ide> standard_conforming_strings setting. Errors were previously disabled because
<ide... | 1 |
Python | Python | fix lint error | f66ad0bea2e25a707f3a0cdfcb8a4fbeaaf5bf27 | <ide><path>libcloud/compute/drivers/dimensiondata.py
<ide> def ex_create_node_uncustomized(self,
<ide> "to True")
<ide>
<ide> server_uncustomized_elm = ET.Element('deployUncustomizedServer',
<del> {'xmlns': TYPES_URN})
<add> ... | 1 |
Text | Text | update readme to point to new documentation | 2b836cae0cd7b39a83ea3e8f8b3aa8105d1023b8 | <ide><path>README.md
<ide> Visit [atom.io](https://atom.io) to learn more or visit the [Atom forum](https:/
<ide> Visit [issue #3684](https://github.com/atom/atom/issues/3684) to learn more
<ide> about the Atom 1.0 roadmap.
<ide>
<add>## Documentation
<add>
<add>If you want to read about using Atom or developing packa... | 1 |
Mixed | Javascript | support proxy auth (#483) | df6d3ce6cf10432b7920d8c3ac0efb7254989bc4 | <ide><path>README.md
<ide> These are the available config options for making requests. Only the `url` is re
<ide> httpsAgent: new https.Agent({ keepAlive: true }),
<ide>
<ide> // 'proxy' defines the hostname and port of the proxy server
<add> // `auth` indicates that HTTP Basic auth should be used to connect to t... | 3 |
Javascript | Javascript | leak strict mode with umd builds | 49cd77d24a5244d159be14671654da63932ea9be | <ide><path>scripts/rollup/wrappers.js
<ide> ${source}`;
<ide> *
<ide> ${license}
<ide> */
<del>
<del>'use strict';
<del>
<ide> ${source}`;
<ide> },
<ide>
<ide> ${source}`;
<ide> *
<ide> ${license}
<ide> */
<del>${source}`;
<add>(function(){${source}})();`;
<ide> },
<ide>
<ide> /***************** UMD_PROFILI... | 1 |
Javascript | Javascript | fix --debug-brk on symlinked scripts | 27c85727edda169cbe9c04178c6fdee642cb8845 | <ide><path>lib/module.js
<ide> Module.prototype.require = function(path) {
<ide> };
<ide>
<ide>
<add>// Resolved path to process.argv[1] will be lazily placed here
<add>// (needed for setting breakpoint when called with --debug-brk)
<add>var resolvedArgv;
<add>
<add>
<ide> // Returns exception if any
<ide> Module.pro... | 1 |
Ruby | Ruby | improve parsing of url-only, non-filename versions | f87fadd4ee7a5f157df6813c233b9e8684a66a4b | <ide><path>Library/Homebrew/version.rb
<ide> def self._parse(spec)
<ide>
<ide> # e.g. http://mirrors.jenkins-ci.org/war/1.486/jenkins.war
<ide> # e.g. https://github.com/foo/bar/releases/download/0.10.11/bar.phar
<del> m = %r{/(\d\.\d+(\.\d+)?)}.match(spec_s)
<del> return m.captures.first unless m.nil?
<... | 1 |
Java | Java | add experimental to onbackpressuredrop(action1) | 8758fdd98cca2ed065654bb5a93a0351327aeda0 | <ide><path>src/main/java/rx/Observable.java
<ide> public final Observable<T> onBackpressureBuffer(long capacity, Action0 onOverflo
<ide> * @param onDrop the action to invoke for each item dropped. onDrop action should be fast and should never block.
<ide> * @return the source Observable modified to drop {@cod... | 1 |
Javascript | Javascript | update arabic language | 50beb2eb2d71f36708140d2aa0e2ba1013c438fb | <ide><path>lang/ar.js
<ide> factory(window.moment); // Browser global
<ide> }
<ide> }(function (moment) {
<add> var symbolMap = {
<add> '1': '١',
<add> '2': '٢',
<add> '3': '٣',
<add> '4': '٤',
<add> '5': '٥',
<add> '6': '٦',
<add> '7': '٧',
<add> '... | 2 |
Mixed | Ruby | fix counter_cache for polymorphic associations | 0ed096ddf5416fefa3afacb72c64632c02826f95 | <ide><path>activerecord/CHANGELOG.md
<add>* Fix a bug where counter_cache doesn't always work with polymorphic
<add> relations.
<add>
<add> Fixes #16407.
<add>
<add> *Stefan Kanev & Sean Griffin*
<add>
<ide> * Ensure that cyclic associations with autosave don't cause duplicate errors
<ide> to be added... | 6 |
Ruby | Ruby | add newlines before and after hr | 04367c4dafdf85a47a7f9f5e8444b1ad1a5cd5af | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide> EOS
<ide> user_message = ARGV.value("message")
<ide> if user_message
<del> pr_message += <<~EOS
<add> pr_message += "\n" + <<~EOS
<ide> ---
<add>
<ide> #{user_message}... | 1 |
PHP | PHP | fix failing tests | 2d168c51a703e84aad8ac043aeb7454c07b2f90b | <ide><path>tests/TestCase/Filesystem/FileTest.php
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<del> * For full copyright and license information, please see the LICENSE.txt
<add> * For full copyright and license information, please ... | 1 |
Javascript | Javascript | add objects es6 unit tests | cf98f0a3c461c7109ba0ae722563f7ff71af9ba4 | <ide><path>test/unit/src/objects/Bone.tests.js
<add>/**
<add> * @author TristanVALCKE / https://github.com/Itee
<add> */
<add>/* global QUnit */
<add>
<add>import { Bone } from '../../../../src/objects/Bone';
<add>
<add>export default QUnit.module( 'Objects', () => {
<add>
<add> QUnit.module.todo( 'Bone', () => {
<add>... | 12 |
Ruby | Ruby | add tests for formula spec selection | 25c0ecfd63270939aef8102e11afea161915f8c2 | <ide><path>Library/Homebrew/test/test_bottles.rb
<del>require 'testing_env'
<del>require 'test/testball'
<del>
<del>class BottleTests < Test::Unit::TestCase
<del> def test_bottle_spec_selection
<del> f = SnowLeopardBottleSpecTestBall.new
<del>
<del> assert_equal case MacOS.cat
<del> when :snow_leopard then ... | 2 |
Javascript | Javascript | follow the amd specification for define | 892625b3c36eda6bb6ac226d15e0a158ba35cf21 | <ide><path>src/selector.js
<del>define([ "./selector-sizzle" ]);
<add>define([ "./selector-sizzle" ], function() {}); | 1 |
Text | Text | add section on thinc implementation details | a16afb79e3fa0a86dfbd85e8eb281b52ef7a1d19 | <ide><path>website/docs/usage/layers-architectures.md
<ide> menu:
<ide> - ['Type Signatures', 'type-sigs']
<ide> - ['Swapping Architectures', 'swap-architectures']
<ide> - ['PyTorch & TensorFlow', 'frameworks']
<del> - ['Thinc Models', 'thinc']
<add> - ['Custom Models', 'custom-models']
<add> - ['Thinc impleme... | 1 |
Python | Python | create tests to validate libcloud-875 | b3b5086d19baa585af4987b0e32e7fdbe595ea5a | <ide><path>libcloud/test/dns/test_route53.py
<ide> def test_create_record_zone_name(self):
<ide> self.assertEqual(record.type, RecordType.A)
<ide> self.assertEqual(record.data, '127.0.0.1')
<ide>
<add> def test_create_TXT_record(self):
<add> """
<add> Check that TXT records are created... | 1 |
Python | Python | use paramspec to replace ... in callable | ad4717b24b5a85447f2bb9769c4e8d4ded89ad70 | <ide><path>airflow/utils/session.py
<ide> from typing import Callable, Generator, TypeVar, cast
<ide>
<ide> from airflow import settings
<add>from airflow.typing_compat import ParamSpec
<ide>
<ide>
<ide> @contextlib.contextmanager
<ide> def create_session() -> Generator[settings.SASession, None, None]:
<ide> ... | 1 |
Ruby | Ruby | fix bug in reporting curl errors | c6e069bfe5df0e2563b50ca1b89a8d9166ce05b9 | <ide><path>Library/Homebrew/utils.rb
<ide> def self.system cmd, *args
<ide> # Kernel.system but with exceptions
<ide> def safe_system cmd, *args
<ide> unless Homebrew.system cmd, *args
<del> args = args.map{ |arg| arg.gsub " ", "\\ " } * " "
<add> args = args.map{ |arg| arg.to_s.gsub " ", "\\ " } * " "
<ide> ... | 1 |
PHP | PHP | fix entitycontext operations on collections | f031b3c9f91dcb667a6cc0155c0026b77f8b4537 | <ide><path>src/View/Form/EntityContext.php
<ide> class EntityContext implements ContextInterface {
<ide> */
<ide> protected $_rootName;
<ide>
<add>/**
<add> * Boolean to track whether or not the entity is a
<add> * collection.
<add> *
<add> * @var boolean
<add> */
<add> protected $_isCollection = false;
<add>
<ide> ... | 2 |
Text | Text | remove changelog entry for backported change | 3b36d75c8fef2e8d3bc9db87486729d4e8229840 | <ide><path>activesupport/CHANGELOG.md
<del>* Do not delegate missing `marshal_dump` and `_dump` methods via the
<del> `delegate_missing_to` extension. This avoids unintentionally adding instance
<del> variables when calling `Marshal.dump(object)`, should the delegation target of
<del> `object` be a method wh... | 1 |
Text | Text | add release notes for 1.6.0-rc.2 | dcfcf8189361fc1359583525ee48fce1fa2e9de1 | <ide><path>CHANGELOG.md
<add>
<add><a name="1.6.0-rc.2"></a>
<add># 1.6.0-rc.2 safety-insurance (2016-11-24)
<add>
<add>
<add>## Security Fixes
<add>- **bootstrap:** explicitly whitelist URL schemes for bootstrap. (#15427)
<add> ([7f1b8b](https://github.com/angular/angular.js/commit/7f1b8bdfe1043871c5ead2ec602efc41e0d... | 1 |
Text | Text | publish release notes for latest cs docker engine | 740b1b5a2d89ef8d2c4c606636e5b42234298734 | <ide><path>docs/sources/docker-hub-enterprise/release-notes.md
<ide> page_keywords: docker, documentation, about, technology, understanding, enterpri
<ide>
<ide> - First release
<ide>
<del>## Commercialy Supported Docker Engine
<add>## Commercially Supported Docker Engine
<ide>
<ide> ### CS Docker Engine 1.6.2-cs5
<... | 1 |
PHP | PHP | fix excerpt on new php 5.4 | 66f532a9b8046901d595c202ba1b562e985e1f85 | <ide><path>src/Error/Debugger.php
<ide> protected static function _highlight($str) {
<ide> $highlight = highlight_string($str, true);
<ide> if ($added) {
<ide> $highlight = str_replace(
<del> '<?php <br/>',
<add> ['<?php <br/>', '<?php <br />'],
<ide> '',
<ide> $highlight
<i... | 1 |
Javascript | Javascript | add test for option node false | 2fe7cd2f55ee360b6f28ee0ab8fb48e922d8a130 | <ide><path>test/configCases/parsing/node-source-plugin-off/index.js
<add>require("should");
<add>
<add>it("should not load node-libs-browser when node option is false", function() {
<add> (typeof process).should.be.eql("undefined");
<add>});
<ide><path>test/configCases/parsing/node-source-plugin-off/webpack.config.js
<... | 4 |
PHP | PHP | add @auth blade component | 6ce2f5a6bc7046be8cf3813f2f1894ecaf4f4761 | <ide><path>src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
<ide> protected function compileEndIsset()
<ide> {
<ide> return '<?php endif; ?>';
<ide> }
<add>
<add> /**
<add> * Compile the if-auth statements into valid PHP.
<add> *
<add> * @param string|null $guard
<add> ... | 2 |
Ruby | Ruby | use the sql literal factory method | 23b03baba611b0ef664eec9e9384c14099eb73e9 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def update_all(updates, conditions = nil, options = {})
<ide> order = arel.orders
<ide> end
<ide>
<del> stmt = arel.compile_update(Arel::SqlLiteral.new(@klass.send(:sanitize_sql_for_assignment, updates)))
<add> stmt = arel.comp... | 1 |
Text | Text | fix a link | 5558aa45f52379d16941aab363fd246ffb4ae567 | <ide><path>README.md
<ide> But in some cases, the size of React itself would far exceed the content of the
<ide>
<ide> For this reason we want to promote a situation where users can share the cache for the basic runtime across internet properties. The application code continues to load from your server as usual.
<ide>... | 1 |
Python | Python | add a future warning for --empty-gen | e96bf13c71ec0dc6d75245352ee414ca3e8253db | <ide><path>numpy/f2py/f2py2e.py
<ide> def scaninputline(inputline):
<ide> options['buildpath'] = buildpath
<ide> options['include_paths'] = include_paths
<ide> options.setdefault('f2cmap_file', None)
<add> if not emptygen:
<add> import warnings
<add> warnings.warn("\n --empty-gen is false"
... | 1 |
Javascript | Javascript | remove atom from dispatcher state | bf81cf3aa468f7331e7a4cf0d53ec2eaf9f71c46 | <ide><path>src/Dispatcher.js
<del>import { Component, PropTypes } from 'react';
<add>import { PropTypes } from 'react';
<ide>
<ide> function dispatch(store, atom, action) {
<ide> return store(atom, action);
<ide> }
<ide>
<del>export default class Dispatcher extends Component {
<add>export default class Dispatcher {... | 1 |
Javascript | Javascript | fix unused scope | 2ec3df1ff60793728c314b709dcd22469ed40f80 | <ide><path>examples/js/loaders/XLoader.js
<ide> THREE.XLoader.prototype = {
<ide>
<ide> getPlaneStr: function ( _str ) {
<ide>
<del> var scope = this;
<ide> var firstDbl = _str.indexOf( '"' ) + 1;
<ide> var dbl2 = _str.indexOf( '"', firstDbl );
<ide> return _str.substr( firstDbl, dbl2 - firstDbl ); | 1 |
Mixed | Javascript | add glossary, some renames | ee8e721c33418368183aea7a397c6d3e0a73c613 | <ide><path>packager/Glossary.md
<add>Glossary
<add>===
<add>
<add>Terminology commonly used in React Native Packager / Metro Bundler is explained
<add>here. This document is work in progress, please help completing it.
<add>
<add>## Build Root
<add>
<add>Configuration files (`rn-cli.config.js`) support configuring one ... | 3 |
Go | Go | reduce the number of calls to b.image | 52626bb9199ca3562fa70f14d8fc7b8c12c8b0f5 | <ide><path>builder/dockerfile/builder.go
<ide> func (b *Builder) build(stdout io.Writer, stderr io.Writer, out io.Writer) (stri
<ide> return "", err
<ide> }
<ide>
<del> shortImageID, err := b.dispatchDockerfileWithCancellation(dockerfile)
<add> imageID, err := b.dispatchDockerfileWithCancellation(dockerfile)
<ide> ... | 4 |
Ruby | Ruby | remove rexml security fix for rubies 1.8 | 2ba1f460008536c4d7a9fa1fba623a53e1b8aed1 | <ide><path>activesupport/lib/active_support/core_ext/rexml.rb
<del>require 'active_support/core_ext/kernel/reporting'
<del>
<del># Fixes the rexml vulnerability disclosed at:
<del># http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
<del># This fix is identical to rexml-expansion-fix version 1.0.1.... | 2 |
PHP | PHP | add option description to the constructor docblock | d9a18ee0eb31fd13b30e81f748fe12e15d1c75fc | <ide><path>src/Http/ServerRequest.php
<ide> public static function createFromGlobals()
<ide> * - `input` The data that would come from php://input this is useful for simulating
<ide> * requests with put, patch or delete data.
<ide> * - `session` An instance of a Session object
<add> * - `mergeFiles... | 1 |
Javascript | Javascript | add option in integration test | f668785bedeea5a05b4d148cd3aa3728c61c2e12 | <ide><path>test/statsCases/simple-more-info/webpack.config.js
<ide> module.exports = {
<ide> cachedAssets: true,
<ide> source: true,
<ide> errorDetails: true,
<del> publicPath: true
<add> publicPath: true,
<add> outputPath: true,
<ide> }
<ide> }; | 1 |
Java | Java | make abstractwebrequestmatchertests abstract | 280a1b8880d400af5f4fc958296e53e2e308f4a5 | <ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/AbstractWebRequestMatcherTests.java
<ide> * @author Sam Brannen
<ide> * @since 4.2
<ide> */
<del>public class AbstractWebRequestMatcherTests {
<add>abstract class AbstractWebRequestMatcherTests {
<ide>
<ide> protected void assertMat... | 1 |
Ruby | Ruby | stream blobs from disk in 5 mb chunks | 5f2ee4c0bb790480a7032d1779052be2e1e46808 | <ide><path>activestorage/lib/active_storage/service/disk_service.rb
<ide> def download(key)
<ide> if block_given?
<ide> instrument :streaming_download, key: key do
<ide> File.open(path_for(key), "rb") do |file|
<del> while data = file.read(64.kilobytes)
<add> while data = f... | 2 |
Javascript | Javascript | remove global variable | ccf94aa65aaa95426de31e05bc9eb1f88b3943cf | <ide><path>local-cli/bundle/buildBundle.js
<ide> function buildBundle(
<ide> blacklistRE: config.getBlacklistRE(),
<ide> extraNodeModules: config.extraNodeModules,
<ide> getTransformOptions: config.getTransformOptions,
<add> globalTransformCache: null,
<ide> projectRoots: config.getProjectR... | 9 |
PHP | PHP | fix bug in update database grammar | c3c0fbce96b8a2a58d121ab4f7a48fb10d2ffb32 | <ide><path>laravel/database/grammars/grammar.php
<ide> public function update(Query $query, $values)
<ide> {
<ide> foreach ($values as $column => $value)
<ide> {
<del> $columns = $this->wrap($column).' = '.$this->parameter($value);
<add> $columns[] = $this->wrap($column).' = '.$this->parameter($value);
<ide> ... | 1 |
Text | Text | fix readme titles | 414a22d38eeee5ffee941a85b4257537d668aab4 | <ide><path>examples/nested-components/README.md
<ide>
<del># Redux example
<add># Example app using nested components
<ide>
<ide> ## How to use
<ide>
<ide><path>examples/with-styled-components/README.md
<ide>
<del># Redux example
<add># Example app with styled-components
<ide>
<ide> ## How to use
<ide> | 2 |
Ruby | Ruby | enforce gnome urls | 26d1683039508647de1adbe675cafb507216bcf1 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> problem "Please use https:// for #{p}"
<ide> when %r[^http://search\.mcpan\.org/CPAN/(.*)]i
<ide> problem "#{p} should be `https://cpan.metacpan.org/#{$1}`"
<add> when %r[^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)]i
<add> ... | 1 |
Javascript | Javascript | reset bind state before emitting error | 99e874e545b7c69bbd22c93b7546037290a727d3 | <ide><path>lib/dgram.js
<ide> Socket.prototype.bind = function(port_, address_ /* , callback */) {
<ide> }, (err) => {
<ide> // Callback to handle error.
<ide> const ex = errnoException(err, 'open');
<del> this.emit('error', ex);
<ide> state.bindState = BIND_STATE_UNBOUND;
<add> ... | 1 |
Text | Text | post about 0.10.4 | 56e90dacb39f36a02c2b7b4e473ada6bc913c8bf | <ide><path>doc/blog/release/v0.10.4.md
<add>date: Thu Apr 11 10:52:56 PDT 2013
<add>version: 0.10.4
<add>category: release
<add>title: Node v0.10.4 (Stable)
<add>slug: node-v0-10-4-stable
<add>
<add>2013.04.11, Version 0.10.4 (Stable)
<add>
<add>* uv: Upgrade to 0.10.4
<add>
<add>* npm: Upgrade to 1.2.18
<add>
<add>* v... | 1 |
Mixed | Ruby | remove non-default serializers | 3785a5729959a838bb13f2d298a59e12e1844f74 | <ide><path>activejob/README.md
<ide> That's it!
<ide> ActiveJob supports the following types of arguments by default:
<ide>
<ide> - Standard types (`NilClass`, `String`, `Integer`, `Fixnum`, `Bignum`, `Float`, `BigDecimal`, `TrueClass`, `FalseClass`)
<del> - `Symbol` (`:foo`, `:bar`, ...)
<del> - `ActiveSupport::D... | 10 |
Javascript | Javascript | add type for resource and context | a96ac96780a34a8b2b2a42b919ba66c7efc9f673 | <ide><path>lib/IgnorePlugin.js
<ide> class IgnorePlugin {
<ide> }
<ide>
<ide> /**
<del> * @param {TODO} resource resource
<add> * @param {string} resource resource
<ide> * @returns {boolean} returns true if a "resourceRegExp" exists
<ide> * and the resource given matches the regexp.
<ide> */
<ide> class Igno... | 1 |
Text | Text | remove wrong escapes | ab05d43083fd5f4dafbe9d10442d265a52833b3f | <ide><path>doc/changelogs/CHANGELOG_V10.md
<ide> This release patches a [regression](https://github.com/nodejs/node/issues/28932)
<ide> ### Notable changes
<ide>
<ide> * **deps**: upgrade openssl sources to 1.1.1c (Sam Roberts) [#28212](https://github.com/nodejs/node/pull/28212)
<del>* **stream**: do not unconditional... | 7 |
Javascript | Javascript | ensure plugins array in addplugin method | 183e649e8d404ef82abf2f21664d115a906599a7 | <ide><path>bin/convert-argv.js
<ide> module.exports = function(yargs, argv, convertOptions) {
<ide> }
<ide>
<ide> function addPlugin(options, plugin) {
<add> ensureArray(options, "plugins");
<ide> options.plugins.unshift(plugin);
<ide> }
<ide>
<ide> module.exports = function(yargs, argv, convertOptions) {
... | 1 |
Python | Python | add tests for conversions to builtin scalar types | 939985d0859bbce349c8cccf866679eb113aeab3 | <ide><path>numpy/typing/tests/data/fail/scalars.py
<ide> def __float__(self):
<ide>
<ide> np.bytes_(b"hello", encoding='utf-8') # E: No overload variant
<ide> np.str_("hello", encoding='utf-8') # E: No overload variant
<add>
<add>complex(np.bytes_("1")) # E: No overload variant
<ide><path>numpy/typing/tests/data/pa... | 2 |
PHP | PHP | fix pluralization of objective | 7b5122adb19615e8e740b688164d0d259aff668f | <ide><path>lib/Cake/Test/Case/Utility/InflectorTest.php
<ide> public function testInflectingSingulars() {
<ide> $this->assertEquals(Inflector::singularize('teeth'), 'tooth');
<ide> $this->assertEquals(Inflector::singularize('geese'), 'goose');
<ide> $this->assertEquals(Inflector::singularize('feet'), 'foot');
<ad... | 2 |
Javascript | Javascript | improve observable icu behaviour coverage | edcc542996bdecf6d5dd78e268403824e503c7e0 | <ide><path>test/parallel/test-icu-env.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const { execFileSync } = require('child_process');
<add>
<add>// system-icu should not be tested
<add>const hasBuiltinICU = process.config.variables.icu_gyp_path === 'tools/i... | 2 |
Java | Java | clarify use of @bean with @enableasync executors | 63ca14c33ee746734fe27b37712a53d78afcce74 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java
<ide> * the examples are equivalent save the setting of the <em>thread name prefix</em> of the
<ide> * Executor; this is because the the {@code task:} namespace {@code executor} element does
<ide> * not expose such an ... | 1 |
PHP | PHP | fix deprecation with empty rules | 6741fa8ffb5ec4339eff98132518d6f6c501eca6 | <ide><path>src/Illuminate/Validation/ValidationRuleParser.php
<ide> protected function explodeExplicitRule($rule, $attribute)
<ide> return array_map(
<ide> [$this, 'prepareRule'],
<ide> $rule,
<del> array_fill(array_key_first($rule), count($rule), $attribute)
<add> ... | 2 |
Text | Text | add solution using regexp | cf721281ca62d0610e54178e2b170af5a5327210 | <ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending/index.md
<ide> confirmEnding("He has to give me a new name", "name");
<ide>
<ide> ### Relevant Links
<ide> - [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript... | 1 |
Javascript | Javascript | add test for fs.promises.lchmod | 6558dcbf75c0b4b749d42ec8678af0a8a728201f | <ide><path>test/parallel/test-fs-promises.js
<ide> const {
<ide> chmod,
<ide> copyFile,
<ide> link,
<add> lchmod,
<ide> lstat,
<ide> mkdir,
<ide> mkdtemp,
<ide> function verifyStatObject(stat) {
<ide> if (common.canCreateSymLink()) {
<ide> const newLink = path.resolve(tmpDir, 'baz3.js');
<ide> ... | 1 |
Javascript | Javascript | name anonymous functions | 115bb04c0113907e625ee21b8b5b1a5625c6074c | <ide><path>lib/dns.js
<ide> function onlookupservice(err, host, service) {
<ide>
<ide>
<ide> // lookupService(address, port, callback)
<del>exports.lookupService = function(host, port, callback) {
<add>exports.lookupService = function lookupService(host, port, callback) {
<ide> if (arguments.length !== 3)
<ide> ... | 1 |
Java | Java | add missing `@test` annotation | ca222c2909bd8e1958c1241df4412bea1fbc543d | <ide><path>src/test/java/io/reactivex/rxjava3/subjects/ReplaySubjectTest.java
<ide> public void getValuesUnbounded() {
<ide>
<ide> }
<ide>
<add> @Test
<ide> public void createInvalidCapacity() {
<ide> try {
<ide> ReplaySubject.create(-99); | 1 |
Javascript | Javascript | implement the `uniquesort` chainable method | 5266f23cf49c9329bddce4d4af6cb5fbbd1e0383 | <ide><path>src/selector/uniqueSort.js
<ide> import jQuery from "../core.js";
<ide> import document from "../var/document.js";
<ide> import sort from "../var/sort.js";
<ide> import splice from "../var/splice.js";
<add>import slice from "../var/slice.js";
<ide>
<ide> var hasDuplicate;
<ide>
<ide> jQuery.uniqueSort = fu... | 2 |
Text | Text | modify the link for config.json | 4e970c1e5a2b16f9408f530037e65595810cc5d7 | <ide><path>docs/reference/commandline/plugin_create.md
<ide> Options:
<ide> ```
<ide>
<ide> Creates a plugin. Before creating the plugin, prepare the plugin's root filesystem as well as
<del>the config.json (https://github.com/docker/docker/blob/master/docs/extend/config.md)
<add>[the config.json](../../extend/config.... | 1 |
Ruby | Ruby | add version number to cask json option | 22b3102fbe126be7f58e4d4a70214bf62d07bc09 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/info.rb
<ide> module Hbc
<ide> class CLI
<ide> class Info < AbstractCommand
<del> option "--json", :json, false
<add> option "--json-v1", :json, false
<ide>
<ide> def initialize(*)
<ide> super | 1 |
Python | Python | add support for rabbitmq priority queues | 1d4cbbcc921aa34975bde4b503b8df9c2f1816e0 | <ide><path>celery/app/amqp.py
<ide> class Queues(dict):
<ide> the occurrence of unknown queues
<ide> in `wanted` will raise :exc:`KeyError`.
<ide> :keyword ha_policy: Default HA policy for queues with none set.
<add> :keyword max_priority: Default x-max-p... | 3 |
Javascript | Javascript | add focusable attribute to svg whitelist | 6882c7ca40fd8f96ede132e1e0313d33edc33c01 | <ide><path>src/renderers/dom/shared/SVGDOMPropertyConfig.js
<ide> var ATTRS = {
<ide> filterUnits: 'filterUnits',
<ide> floodColor: 'flood-color',
<ide> floodOpacity: 'flood-opacity',
<add> focusable: 0,
<ide> fontFamily: 'font-family',
<ide> fontSize: 'font-size',
<ide> fontSizeAdjust: 'font-size-adjust', | 1 |
Javascript | Javascript | extract symbolicatestacktrace into its own module | 2ef533352fcccf82c6bd82ce7facb2c92403ba22 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/ExceptionsManager.js
<ide> let exceptionID = 0;
<ide> */
<ide> function reportException(e: Error, isFatal: bool) {
<ide> const parseErrorStack = require('parseErrorStack');
<add> const symbolicateStackTrace = require('symbolicateStackTrace');
<ide> const RCT... | 3 |
Python | Python | remove unnecessary comment | 278c6355623f664ccf9ae9c9bd9b64a1df716753 | <ide><path>libcloud/compute/drivers/dimensiondata.py
<ide> def create_node(self, name,
<ide> >>> # Get dimension data driver
<ide> >>> libcloud.security.VERIFY_SSL_CERT = True
<ide> >>> cls = get_driver(Provider.DIMENSIONDATA)
<del> >>> driver = cls('schong_platcaas', 'T3stst@r!', region=... | 1 |
Python | Python | fix deep learning example | 213027a1a16507f29d57faf594b2be9924224c9b | <ide><path>examples/deep_learning_keras.py
<ide> import numpy
<ide> from keras.models import Sequential, model_from_json
<ide> from keras.layers import LSTM, Dense, Embedding, Dropout, Bidirectional
<add>from keras.optimizers import Adam
<ide> import cPickle as pickle
<ide>
<ide> import spacy
<ide> def train(train_tex... | 1 |
Text | Text | fix typo in flux todomvc tutorial | 330fa30141014a0ddafbaae81a6236dd223e7324 | <ide><path>docs/docs/flux-todo-list.md
<ide> module.exports = TodoStore;
<ide>
<ide> There are a few important things to note in the above code. To start, we are maintaining a private data structure called _todos. This object contains all the individual to-do items. Because this variable lives outside the class, but w... | 1 |
Ruby | Ruby | allow resolution with --resolve | 2d67c5ee8f7bfe1ac68bde638af852c67816cb7f | <ide><path>Library/Homebrew/cmd/pull.rb
<ide> def pull_url url
<ide> begin
<ide> safe_system 'git', 'am', *patch_args
<ide> rescue ErrorDuringExecution
<del> system 'git', 'am', '--abort'
<del> odie 'Patch failed to apply: aborted.'
<add> if ARGV.include? "--resolve"
<add> odie "Patc... | 1 |
Python | Python | preserve the task priority in case of a retry | 927d112a9a7601ff9c53e990db6b7f35a6b7a6e0 | <ide><path>celery/app/task.py
<ide> def signature_from_request(self, request=None, args=None, kwargs=None,
<ide> args = request.args if args is None else args
<ide> kwargs = request.kwargs if kwargs is None else kwargs
<ide> options = request.as_execution_options()
<add> delivery_info = r... | 4 |
Javascript | Javascript | create activate and deactivate hooks for router | e7ea6a3d0d2c1f74c0dbe8f75430ec04cecb8a49 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> var get = Ember.get, set = Ember.set,
<ide>
<ide> Ember.Route = Ember.Object.extend({
<ide> exit: function() {
<add> this.deactivate();
<ide> teardownView(this);
<ide> },
<ide>
<add> enter: function() {
<add> this.activate();
<add> },
<add>
<... | 1 |
Go | Go | read the stdin line properly | ce53e21ea6790cf7c2e96f8c5f0725bdf41a80f0 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<ide>
<ide> readInput := func(in io.Reader, out io.Writer) string {
<ide> reader := bufio.NewReader(in)
<del> line, err := reader.ReadString('\n')
<add> line, _, err := reader.ReadLine()
<ide> if err != nil {
<ide> fmt.Fprint... | 1 |
Ruby | Ruby | enable named route tests | e296ea056e87027933c7d37e1e8c1f6ef73bc447 | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def self.new(*args)
<ide> }
<ide> end
<ide> end
<add>
<ide> old_dispatcher = ActionDispatch::Routing::RouteSet::Dispatcher
<ide> ActionDispatch::Routing::RouteSet.module_eval { remove_const :Dispatcher }
<ide> ActionDispatch::Routing::RouteSet.... | 1 |
Javascript | Javascript | add automatic loading of built-in libs | b72277183f9cb79274d6f8915e02b895c56b2288 | <ide><path>lib/repl.js
<ide> module.paths = require('module')._nodeModulePaths(module.filename);
<ide> // Can overridden with custom print functions, such as `probe` or `eyes.js`
<ide> exports.writer = util.inspect;
<ide>
<add>var builtinLibs = ['assert', 'buffer', 'child_process', 'cluster',
<add> 'crypto', 'dgram',... | 2 |
Text | Text | add speed comparison to docs | a071279bc763811347ae02a798ac76788d0335db | <ide><path>website/docs/usage/facts-figures.md
<ide> results. Project template:
<ide>
<ide> </figure>
<ide>
<add>### Speed comparison {#benchmarks-speed}
<add>
<add>We compare the speed of different NLP libraries, measured in words per second.
<add>The evaluation was run on 10,000 Reddit comments.
<add>
<add><figure>... | 1 |
Javascript | Javascript | fix lint errors | ec774e143adee8d7bafe4dcb4124a76a1f31bf0a | <ide><path>src/text-editor-component.js
<ide> class LineNumberGutterComponent {
<ide>
<ide> render () {
<ide> const {
<del> rootComponent, nodePool, showLineNumbers, height, width, lineHeight, startRow, endRow, rowsPerTile,
<add> rootComponent, showLineNumbers, height, width, lineHeight, startRow, endR... | 1 |
Javascript | Javascript | add d3.timer.immediate() for immediate transitions | 8e0bc6342ff11025f6a74fdc918420c625b6f1bc | <ide><path>d3.chart.js
<ide> d3.chart.box = function() {
<ide> .style("opacity", 1e-6)
<ide> .remove();
<ide> });
<add> d3.timer.immediate();
<ide> }
<ide>
<ide> box.width = function(x) {
<ide> d3.chart.bullet = function() {
<ide> .attr("opacity", 1e-6)
<ide> .remove(... | 7 |
Ruby | Ruby | avoid nil in possible_javas | ea28c79031b157e7604ac905e7a09fbe2e603778 | <ide><path>Library/Homebrew/extend/os/mac/requirements/java_requirement.rb
<ide> def possible_javas
<ide> javas << java_home_cmd
<ide> javas << which("java")
<ide> javas.delete(Pathname.new("/usr/bin/java")) # /usr/bin/java is a stub on macOS
<del> javas
<add> javas.compact
<ide> end
<ide>
<ide> ... | 1 |
Javascript | Javascript | add test for trailing slash on api route | 66a03bf1ffe53bce24553ee40bdbdf4f674a2965 | <ide><path>test/integration/api-support/test/index.test.js
<ide> function runTests (serverless = false) {
<ide> expect(data).toEqual([{ title: 'Nextjs' }])
<ide> })
<ide>
<del> it('shuld return error with invalid JSON', async () => {
<add> it('should return error with invalid JSON', async () => {
<ide> con... | 2 |
Go | Go | fix typo in err msg from ambigious to ambiguous | c6cbdad7296a09afd6f2c5e5a7572d64fda5bf6e | <ide><path>daemon/cluster/cluster.go
<ide> func getNetwork(ctx context.Context, c swarmapi.ControlClient, input string) (*s
<ide> }
<ide>
<ide> if l := len(rl.Networks); l > 1 {
<del> return nil, fmt.Errorf("network %s is ambigious (%d matches found)", input, l)
<add> return nil, fmt.Errorf("network %s is ambi... | 2 |
Python | Python | fix error messages related to model saving | ff89e2de51e5ccdb7a68510d5539365002881b61 | <ide><path>keras/engine/saving.py
<ide> def get_json_type(obj):
<ide> if type(obj).__name__ == type.__name__:
<ide> return obj.__name__
<ide>
<del> raise TypeError('Not JSON Serializable:', obj)
<add> raise TypeError('Not JSON Serializable: %s' % (obj,))
<ide>
<ide> from .. impor... | 2 |
Python | Python | fix state tests a little | 38a8cf1cdccb937297c7735aa73f6c02d468e7df | <ide><path>django/db/migrations/state.py
<ide> def __init__(self, models=None):
<ide> self.models = models or {}
<ide> self.app_cache = None
<ide>
<add> def add_model_state(self, model_state):
<add> self.models[(model_state.app_label, model_state.name.lower())] = model_state
<add>
<ide> d... | 2 |
Python | Python | reuse _validate_axis in ma | 539d4f7ef561ac86ea4f3b81bf1eb9b3ac03b67f | <ide><path>numpy/ma/core.py
<ide> )
<ide> from numpy import expand_dims as n_expand_dims
<ide> from numpy.core.multiarray import normalize_axis_index
<add>from numpy.core.numeric import _validate_axis
<ide>
<ide>
<ide> if sys.version_info[0] >= 3:
<ide> def count(self, axis=None, keepdims=np._NoValue):
<ide> ... | 2 |
Go | Go | fix downlevel regression | f9b2a20819e7b29ce4dee46d87e8c32ae7ca9899 | <ide><path>api/types/types.go
<ide> import (
<ide> "github.com/docker/docker/api/types/registry"
<ide> "github.com/docker/docker/api/types/swarm"
<ide> "github.com/docker/go-connections/nat"
<del> specs "github.com/opencontainers/image-spec/specs-go/v1"
<ide> )
<ide>
<ide> // RootFS returns Image's RootFS descripti... | 2 |
Text | Text | add place holder for scene graph article | 7a9f54c29a9be43c63fa196d715f498bced2a16c | <ide><path>threejs/lessons/threejs-scenegraph.md
<add>Title: Three.js Scenegraph
<add>Description: What's a scene graph?
<add>
<add>TBD
<add> | 1 |
Javascript | Javascript | fix trailing spaces | 9f9de12aa18590b67bb46252169a5be2daeff2eb | <ide><path>src/text-editor.js
<ide> module.exports = class TextEditor {
<ide> this.getCursorBufferPosition()
<ide> );
<ide> }
<del>
<add>
<ide> // Extended: Get the range in buffer coordinates of all tokens surrounding the
<ide> // given position in buffer coordinates that match the given scope select... | 1 |
Text | Text | add tests to the shortener microservice project | 1d2ff7aef651c83bbeb50bd593f122506bbad669 | <ide><path>curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/url-shortener-microservice.md
<ide> Start this project on Repl.it using <a href='https://repl.it/github/freeCodeCamp
<ide>
<ide> ```yml
<ide> tests:
<del> - text: I can provide my own project, not the example URL.
<add>... | 1 |
Text | Text | add info about installing cakehp/cache package | 87c13db7290e321aa6cb60b3fb4c09104116729e | <ide><path>src/ORM/README.md
<ide> ConnectionManager::config('default', [
<ide> 'driver' => 'Cake\Database\Driver\Mysql',
<ide> 'database' => 'test',
<ide> 'username' => 'root',
<del> 'password' => 'secret'
<add> 'password' => 'secret',
<add> 'cacheMetaData' => false // If set to `true` you need to install the optio... | 1 |
Mixed | Javascript | add reusedsocket property on client request | 8915b15f8c367ef3ebb1299a57f482146825545b | <ide><path>doc/api/http.md
<ide> Removes a header that's already defined into headers object.
<ide> request.removeHeader('Content-Type');
<ide> ```
<ide>
<add>### request.reusedSocket
<add>
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>* {boolean} Whether the request is send through a reused socket.
<add>
<... | 4 |
Text | Text | fix typo in template.md | f3eaa05e0b4bfac58b26e43a3891ff494831ba73 | <ide><path>examples/multi-part-library/template.md
<ide> This example demonstrates how to build a complex library with webpack. The libra
<ide>
<ide> When using this library with script tags it exports itself to the namespace `MyLibrary` and each part to a property in this namespace (`MyLibrary.alpha` and `MyLibrary.b... | 1 |
Ruby | Ruby | skip complete urls | 2cc9b21c074c99dad95cebfb0ae2ed787b482123 | <ide><path>actionpack/lib/action_view/helpers/asset_tag_helper.rb
<ide> def image_tag(source, options = {})
<ide> def compute_public_path(source, dir, ext)
<ide> source = "/#{dir}/#{source}" unless source.first == "/" || source.include?(":")
<ide> source << ".#{ext}" unless source.split("/"... | 2 |
Ruby | Ruby | fix error message on comparison validator | f83dbe358ef2226daa10e9335c0d08e5a8f27984 | <ide><path>activemodel/lib/active_model/validations/comparability.rb
<ide> def error_options(value, option_value)
<ide> value: value
<ide> )
<ide> end
<del>
<del> def error_value(record, option_value)
<del> case option_value
<del> when Proc
<del> option_value(record, ... | 4 |
Javascript | Javascript | update fixt logo in showcase | 5f7b2e4085ec4052af67128a5bba1fa7be409e41 | <ide><path>website/src/react-native/showcase.js
<ide> var featured = [
<ide> },
<ide> {
<ide> name: 'Fixt',
<del> icon: 'http://a5.mzstatic.com/us/r30/Purple69/v4/46/bc/66/46bc66a2-7775-4d24-235d-e1fe28d55d7f/icon175x175.png',
<add> icon: 'http://a5.mzstatic.com/us/r30/Purple62/v4/7f/b3/66/7fb366c4-79fd-3... | 1 |
Text | Text | update copyright 2016 | 04b2f021a6ba98c750c0013f9c8ff062661c6918 | <ide><path>docs/index.md
<ide> Send a description of the issue via email to [rest-framework-security@googlegrou
<ide>
<ide> ## License
<ide>
<del>Copyright (c) 2011-2015, Tom Christie
<add>Copyright (c) 2011-2016, Tom Christie
<ide> All rights reserved.
<ide>
<ide> Redistribution and use in source and binary forms, ... | 1 |
Text | Text | add history entry for exports patterns | 78f2b11ecd24ecd72930f668e5617116fbe57337 | <ide><path>doc/api/packages.md
<ide> changes:
<ide> - v13.7.0
<ide> pr-url: https://github.com/nodejs/node/pull/31008
<ide> description: Implement logical conditional exports ordering.
<add> - version:
<add> - v14.13.0
<add> pr-url: https://github.com/nodejs/node/pull/34718
<add> description: Add ... | 1 |
Text | Text | point people to the right repo | eb20f594a2729254fddd53b56b5d769d7e105801 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> If Homebrew was updated on Aug 10-11th 2016 and `brew update` always says `Alrea
<ide> - [ ] Ran `brew update` and retried your prior step?
<ide> - [ ] Ran `brew doctor`, fixed as many issues as possible and retried your prior step?
<ide> - [ ] If you're seeing permission erro... | 1 |
Python | Python | solve an issue when screen size < 80 columns | 74323a392aa0593e79049bb81ce4ddc2643c3efc | <ide><path>glances/glances.py
<ide> def getNow(self):
<ide>
<ide>
<ide> class GlancesStatsServer(GlancesStats):
<add>
<ide> def __init__(self):
<ide> GlancesStats.__init__(self)
<ide>
<ide> def __update__(self, input_stats):
<ide>
<ide>
<ide> class GlancesStatsClient(GlancesStats):
<add>
<ide> def ... | 1 |
Text | Text | update line 7 to change 'an' with 'a' | b9cb03252fc9e4e6b64bde076aefed2f6e816e04 | <ide><path>docs/how-to-catch-outgoing-emails-locally.md
<ide>
<ide> ## Introduction
<ide>
<del>Some of the email workflows, like updating an user's email, requires the back-end api-server to send out emails. While developing you can use a tool to catch these emails locally, instead of having to use an email provider ... | 1 |
Ruby | Ruby | update layout docs. closes [cheah chu yeow] | a3bfb661e3e8f8f03948cfc23f7dcc743cd06ab4 | <ide><path>actionpack/lib/action_controller/layout.rb
<ide> class << self
<ide> #
<ide> # // The header part of this layout
<ide> # <%= yield %>
<del> # // The footer part of this layout -->
<add> # // The footer part of this layout
<ide> #
<ide> # And then you have content pages that ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.