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 |
|---|---|---|---|---|---|
Go | Go | fix panic due to mismatched types | c09fe6a7c15ac25c031d0df43d041e4dbb4dbe34 | <ide><path>libnetwork/options/options.go
<ide> func (e CannotSetFieldError) Error() string {
<ide> return fmt.Sprintf("cannot set field %q of type %q", e.Field, e.Type)
<ide> }
<ide>
<add>// TypeMismatchError is the error returned when the type of the generic value
<add>// for a field mismatches the type of the desti... | 2 |
Python | Python | simplify fix for rate == 0 in financial.pmt | a9a80fc4a5ed8fb2faba1e1102121468a905c908 | <ide><path>numpy/lib/financial.py
<ide> def pmt(rate, nper, pv, fv=0, when='end'):
<ide> """
<ide> when = _convert_when(when)
<ide> (rate, nper, pv, fv, when) = map(np.asarray, [rate, nper, pv, fv, when])
<del> temp = (1+rate)**nper
<del> miter = np.broadcast(rate, nper, pv, fv, when)
<del> zer = n... | 1 |
Java | Java | introduce unit tests for gh-29275 | 66989434b41c06a610be1b32f4ebcabbc707bfa3 | <ide><path>spring-core/src/test/java/org/springframework/core/io/ResourceTests.java
<ide> void readableChannelProvidesContent() throws Exception {
<ide> }
<ide> }
<ide>
<add> @Test
<add> void urlAndUriAreNormalizedWhenCreatedFromFile() throws Exception {
<add> Path path = Path.of("src/test/resources/scanned-r... | 1 |
Java | Java | fix double spel evaluation of parameter | 519799e1cf414615ef0a7a26d5dde0478a47b96d | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java
<ide> protected ValueRef getValueRef(ExpressionState state) throws EvaluationException
<ide> throwIfNotNullSafe(getArgumentTypes(arguments));
<ide> return ValueRef.NullValueRef.instance;
<ide> }
<del> return... | 2 |
Javascript | Javascript | use new bufferattribute.applymatrix4() method | 94526d96484269b6c503719fda2c89725bbde77f | <ide><path>examples/js/loaders/FBXLoader.js
<ide> THREE.FBXLoader = ( function () {
<ide>
<ide> var positionAttribute = new THREE.Float32BufferAttribute( buffers.vertex, 3 );
<ide>
<del> preTransform.applyToBufferAttribute( positionAttribute );
<add> positionAttribute.applyMatrix4( preTransform );
<ide>
<ide>... | 2 |
Python | Python | remove unused default_params (issue ) | 28e3e1a745953e330bf2ee363fa38cb8550f0b52 | <ide><path>celery/backends/redis.py
<ide> You need to install the redis library in order to use \
<ide> the Redis result store backend."""
<ide>
<del>default_params = {
<del> 'host': 'localhost',
<del> 'port': 6379,
<del> 'db': 0,
<del> 'password': None,
<del>}
<del>
<ide>
<ide> class RedisBackend(KeyValu... | 1 |
Javascript | Javascript | add origin for used named chunks | 89fb178917b113287088f739a0ee4254d85c420b | <ide><path>lib/Chunk.js
<ide> Chunk.prototype.addBlock = function(block) {
<ide> return true;
<ide> };
<ide>
<add>Chunk.prototype.addOrigin = function(module, loc) {
<add> this.origins.push({module: module, loc: loc, name: this.name});
<add>};
<add>
<ide> Chunk.prototype.remove = function(reason) {
<ide> // console.... | 2 |
Ruby | Ruby | fix typo in image_tag documentation | 98c3586415150e90cea49003a0be6c5eef84a370 | <ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> def favicon_link_tag(source='favicon.ico', options={})
<ide> # ==== Options
<ide> #
<ide> # You can add HTML attributes using the +options+. The +options+ supports
<del> # three additional keys for convenience and conformance... | 1 |
Ruby | Ruby | add missing require to use set | 060ca6abce737b1c2ad53f2427ccaee7142d7cf9 | <ide><path>activemodel/lib/active_model/mass_assignment_security/permission_set.rb
<add>require 'set'
<ide> require 'active_model/mass_assignment_security/sanitizer'
<ide>
<ide> module ActiveModel
<ide> def deny?(key)
<ide> end
<ide> end
<ide> end
<del>end
<ide>\ No newline at end of file
<add>end | 1 |
Text | Text | update javascript capitalization | 26e857b6ab8c3f75f9ef17480ece7bb4318d2057 | <ide><path>client/src/pages/learn/javascript-algorithms-and-data-structures/basic-data-structures/index.md
<ide> superBlock: JavaScript Algorithms and Data Structures
<ide> ---
<ide> ## Introduction to the Basic Data Structure Challenges
<ide>
<del>Data can be stored and accessed in many different ways, both in Javasc... | 1 |
Text | Text | add geoffreybooth to collaborators | 3bcb2e17f81ad08b94eb541560fc01fded154e0b | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Wyatt Preul** <wpreul@gmail.com>
<ide> * [gengjiawen](https://github.com/gengjiawen) -
<ide> **Jiawen Geng** <technicalcute@gmail.com>
<add>* [GeoffreyBooth](https://github.com/geoffreybooth) -
<add>**Geoffre... | 1 |
Javascript | Javascript | fix lint issues | 22679069f87b1ff0ca50ddbcd43fe76d3a4ffee4 | <ide><path>lib/RuntimeTemplate.js
<ide>
<ide> const Template = require("./Template");
<ide>
<add>/**
<add> * @typedef CommentOptions
<add> * @property {string=} request
<add> * @property {string=} chunkName
<add> * @property {string=} chunkReason
<add> * @property {string=} message
<add> * @property {string=} exportN... | 2 |
Javascript | Javascript | increase coverage for stream writable | 8de858b96d94cfbfe420a2fe1c95023e3aa92590 | <ide><path>test/parallel/test-stream-writable-final-throw.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const {
<add> Duplex,
<add>} = require('stream');
<add>
<add>{
<add> class Foo extends Duplex {
<add> _final(callback) {
<add> throw new Error('fhqwhgads');
<add> }
<add>
<ad... | 1 |
Go | Go | use new image as base of next command | 74b9e851f6f407ede9d46ab4960e5e134ff666c7 | <ide><path>builder.go
<ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) error {
<ide> tmpImages[base.Id] = struct{}{}
<ide>
<ide> fmt.Fprintf(stdout, "===> %s\n", base.ShortId())
<add>
<add> // use the base as the new image
<add> image = base
<add>
<ide> break
<ide> case "copy"... | 1 |
Go | Go | fix some minor wording / issues | 263e28a830c7c0ba573f8bb6aa37bee1c3956d22 | <ide><path>integration/container/stop_linux_test.go
<ide> func TestStopContainerWithTimeout(t *testing.T) {
<ide>
<ide> func TestDeleteDevicemapper(t *testing.T) {
<ide> skip.If(t, testEnv.DaemonInfo.Driver != "devicemapper")
<del> skip.If(t, testEnv.IsRemoteDaemon, "cannot start daemon on remote test run")
<add> ski... | 2 |
Ruby | Ruby | fix wherechain docs to mention only not | 0c3998782b455c81a0cb857a7bd4c90c5ab2e821 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> module QueryMethods
<ide> extend ActiveSupport::Concern
<ide>
<ide> # WhereChain objects act as placeholder for queries in which #where does not have any parameter.
<del> # In this case, #where must be chained with either #not, #like,... | 1 |
Javascript | Javascript | improve comparison coverage to 100% | 2f11fe3663a0f23831b36ef92699d3f358e8a277 | <ide><path>test/parallel/test-assert-deep.js
<ide> assertNotDeepOrStrict(new Set([1, 2, 3, 4]), new Set([1, 2, 3]));
<ide> assertDeepAndStrictEqual(new Set(['1', '2', '3']), new Set(['1', '2', '3']));
<ide> assertDeepAndStrictEqual(new Set([[1, 2], [3, 4]]), new Set([[3, 4], [1, 2]]));
<ide> assertNotDeepOrStrict(new S... | 1 |
Javascript | Javascript | use callback to properly propagate error | cc7cec25c5fc2fdb8e055e25162c4b231f19e287 | <ide><path>lib/net.js
<ide> Socket.prototype._writeGeneric = function(writev, data, encoding, cb) {
<ide> this._pendingEncoding = '';
<ide>
<ide> if (!this._handle) {
<del> this.destroy(new ERR_SOCKET_CLOSED(), cb);
<add> cb(new ERR_SOCKET_CLOSED());
<ide> return false;
<ide> }
<ide> | 1 |
Go | Go | use pkg/mount to support more flags in dm.mountopt | 9a64f2bbb3d8fed35bb094c73dac54a13dcf7369 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> import (
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/daemon/graphdriver"
<ide> "github.com/docker/docker/pkg/devicemapper"
<add> "github.com/docker/docker/pkg/mount"
<ide> "github.com/docker/docker/pkg/parsers"
<ide> "github.com/dock... | 1 |
PHP | PHP | trim $sql before checking for select | 9aeea2fcc3362076a946adcb9d072ccd8fb28bca | <ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php
<ide> public function lastAffected($source = null) {
<ide> */
<ide> protected function _execute($sql, $params = array(), $prepareOptions = array()) {
<ide> $this->_lastAffected = false;
<add> $sql = trim($sql);
<ide> if (strncasecmp($sql, 'SELECT', 6) =... | 1 |
Python | Python | add more indexing tests | 8a836c53d85f63831e51e7aac9a2f77fdf25ef9f | <ide><path>numpy/core/tests/test_indexing.py
<ide> # but hopefully NumPy indexing can be changed to be more systematic
<ide> # at some point in the future.
<ide>
<del>def test_boolean_indexing():
<del> # Indexing a 2-dimensional array with a length-1 array of 'True'
<del> a = np.array([[ 0., 0., 0.]])
<del> ... | 1 |
Ruby | Ruby | fix syntax error | 91b139aca293bea1aa926c5301754e8603c9275e | <ide><path>Library/Homebrew/utils/github.rb
<ide> def query_string(*main_params, **qualifiers)
<ide> if value.is_a? Array
<ide> value.each { |v| params_list << format_parameter(key, v) }
<ide> else
<del> params_list << format_parameter(key, v)
<add> params_list << format_parameter(key,... | 1 |
Ruby | Ruby | handle missing environment from non empty config | 283a2edec2f8ccdf90fb58025608f02a63948fa0 | <ide><path>activerecord/lib/active_record/connection_handling.rb
<ide> def raw_merged_into_default
<ide> # the connection URL. This hash responds to any string key with
<ide> # resolved connection information.
<ide> def default_url_hash
<del> if @raw_config.blank?
<del> Hash.... | 2 |
Javascript | Javascript | use common.fixtures module in test-preload | 0d38e6d01f110bd0ac373da6c6e781d4826be83e | <ide><path>test/parallel/test-preload.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> // Refs: https://github.com/nodejs/node/pull/2253
<ide> if (common.isSunOS)
<ide> common.skip('unreliable on SunOS');
<ide>
<ide> const assert = re... | 1 |
Ruby | Ruby | simplify merge call on polymorphic helpers | e2ae787b36e32627974a0d448694c0067327fed7 | <ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb
<ide> module PolymorphicRoutes
<ide> #
<ide> def polymorphic_url(record_or_hash_or_array, options = {})
<ide> if Hash === record_or_hash_or_array
<del> options = record_or_hash_or_array.dup.merge!(options)
<add> ... | 1 |
Ruby | Ruby | improve performance of integration tests | 1fb9e6eff71eb84b6cb620282c15b7b89d8e70c1 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def url_helpers(supports_path = true)
<ide> # Rails.application.routes.url_helpers.url_for(args)
<ide> @_routes = routes
<ide> class << self
<del> delegate :url_for, :optimize_routes_generation?, to: '@_routes'... | 1 |
Python | Python | add disjoint set | 01601e6382e92b5a3806fb3a44357460dff97ee7 | <ide><path>data_structures/disjoint_set/disjoint_set.py
<add>"""
<add> disjoint set
<add> Reference: https://en.wikipedia.org/wiki/Disjoint-set_data_structure
<add>"""
<add>
<add>
<add>class Node:
<add> def __init__(self, data):
<add> self.data = data
<add>
<add>
<add>def make_set(x):
<add> """
<add>... | 1 |
Python | Python | add regression test for decimalfield mapping | 7d79cf35b7be01b175d8c25276a4414e8144a16b | <ide><path>tests/test_model_serializer.py
<ide>
<ide> from rest_framework import serializers
<ide> from rest_framework.compat import DurationField as ModelDurationField
<del>from rest_framework.compat import unicode_repr
<add>from rest_framework.compat import DecimalValidator, unicode_repr
<ide>
<ide>
<ide> def dede... | 1 |
Python | Python | update undici cpe in vuln checking script | 994081f9147e92d0b31cdc508e24273a4108b59d | <ide><path>tools/dep_checker/dependencies.py
<ide> def get_cpe(self) -> Optional[str]:
<ide> version=vp.get_libuv_version(), cpe=CPE(vendor="libuv_project", product="libuv")
<ide> ),
<ide> "undici": Dependency(
<del> version=vp.get_undici_version(), cpe=None, keyword="undici", npm_name="undici"
<... | 1 |
Text | Text | add issue contributing section | a647c39acfac136acdd841b5a2faaae46b67425d | <ide><path>CONTRIBUTING.md
<ide> # CONTRIBUTING
<ide>
<add>## ISSUE CONTRIBUTIONS
<add>
<add>When opening new issues or commenting on existing issues on this repository
<add>please make sure discussions are related to concrete technical issues with the
<add>`iojs` software.
<add>
<add>Discussion of non-technical topic... | 1 |
Javascript | Javascript | remove error allowance in debugger test | 938ab0e2675f0551b71af43ae3f9746436ff1a74 | <ide><path>test/sequential/test-debugger-exceptions.js
<ide> const path = require('path');
<ide> })
<ide> // Making sure it will die by default:
<ide> .then(() => cli.command('c'))
<del> // TODO: Remove FATAL ERROR once node doesn't show a FATAL ERROR anymore.
<del> .then(() => cli.waitFor(/disconnect... | 1 |
Text | Text | add dev report for may 1st | 67ac02d4a6c093f9c796dd4ddd1a185bde63b460 | <ide><path>reports/2017-05-01.md
<add># Development Report for May 01, 2017
<add>
<add>This is the 1st report, since the Moby project was announced at DockerCon. Thank you to everyone that stayed an extra day to attend the summit on Thursday.
<add>
<add>## Daily Meeting
<add>
<add>A daily meeting is hosted on [slack](d... | 2 |
Text | Text | fix typo in changelog | 81503e597bbddfe210a627eaddea827ad0e01e44 | <ide><path>CHANGELOG.md
<ide>
<ide> * [[`b3cbd13340`](https://github.com/nodejs/node/commit/b3cbd13340)] - **buffer**: fix assertion error in WeakCallback (Fedor Indutny) [#3329](https://github.com/nodejs/node/pull/3329)
<ide> * [[`102cb7288c`](https://github.com/nodejs/node/commit/102cb7288c)] - **doc**: label v4.2.0... | 1 |
Ruby | Ruby | remove some old cruft | bb91beabbde29a52bb2851884eaa90636aff0b95 | <ide><path>actionpack/lib/action_view/paths.rb
<ide> def unshift(*objs)
<ide> end
<ide>
<ide> def find(path, details = {}, prefix = nil, partial = false)
<del> # template_path = path.sub(/^\//, '')
<ide> template_path = path
<ide>
<ide> each do |load_path|
<ide> def find(path, details = {}, p... | 1 |
Mixed | Python | allow string argument for disable/enable/exclude | 8fc0efc502da2f02076575e0887cb585d0e0f391 | <ide><path>spacy/__init__.py
<ide> def load(
<ide> name: Union[str, Path],
<ide> *,
<ide> vocab: Union[Vocab, bool] = True,
<del> disable: Iterable[str] = util.SimpleFrozenList(),
<del> enable: Iterable[str] = util.SimpleFrozenList(),
<del> exclude: Iterable[str] = util.SimpleFrozenList(),
<add> ... | 6 |
Ruby | Ruby | use tap object | 70d31838c61b0aaeb76827b26cb461069c9dff8c | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> module Homebrew
<ide> EMAIL_SUBJECT_FILE = "brew-test-bot.#{MacOS.cat}.email.txt"
<ide> BYTES_IN_1_MEGABYTE = 1024*1024
<ide>
<add> def resolve_test_tap
<add> tap = ARGV.value("tap")
<add> return Tap.new(*tap_args(tap)) if tap
<add>
<add> if ENV["UPSTREAM... | 1 |
Python | Python | add type hinting for mongo provider | 46cdb0e08045f84029ac727cbaf6040acd592810 | <ide><path>airflow/providers/mongo/hooks/mongo.py
<ide> # under the License.
<ide> """Hook for Mongo DB"""
<ide> from ssl import CERT_NONE
<add>from types import TracebackType
<add>from typing import List, Optional, Type
<ide>
<add>import pymongo
<ide> from pymongo import MongoClient, ReplaceOne
<ide>
<ide> from airf... | 2 |
Javascript | Javascript | avoid race enabling debugger in worker | 4dd22b946ebfec81a7c4a61aa9c6ed528e317802 | <ide><path>lib/cluster.js
<ide> function masterInit() {
<ide> var key;
<ide> for (key in cluster.workers) {
<ide> var worker = cluster.workers[key];
<del> if (worker.state === 'online') {
<add> if (worker.state === 'online' || worker.state === 'listening') {
<ide> process._de... | 1 |
Ruby | Ruby | fix preventing_writes for granular swapping | b92dc5b01cfbbb44d6625e933e3a2167f61d077e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> class NullPool # :nodoc:
<ide> include ConnectionAdapters::AbstractPool
<ide>
<ide> attr_accessor :schema_cache
<add>
<add> def owner_name
<add> nil
<add> end
<ide> end
<ide>
<ide> # Co... | 4 |
Text | Text | update releases.md with new changelog structure | 118162ee67b8111231aeb523f1843ddda5d3828d | <ide><path>doc/releases.md
<ide> The general rule is to bump this version when there are _breaking ABI_ changes a
<ide>
<ide> **Note** that it is current TSC policy to bump major version when ABI changes. If you see a need to bump `NODE_MODULE_VERSION` then you should consult the TSC. Commits may need to be reverted o... | 1 |
Javascript | Javascript | add broken test passing a buffer through http | 0a0e90dcca1642849ffa8b8cee4ad9b8f15c0fc1 | <ide><path>test/simple/test-http-buffer-sanity.js
<add>var common = require('../common');
<add>var assert = require('assert');
<add>var http = require('http');
<add>var sys = require('sys');
<add>
<add>var bufferSize = 5 * 1024 * 1024;
<add>var measuredSize = 0;
<add>
<add>var buffer = Buffer(bufferSize);
<add>for (var... | 1 |
Text | Text | provide link to s3 documentation | 9fc62ea21aa1c6dd979d10677b92e8ad5d93c4dc | <ide><path>client/src/pages/guide/english/miscellaneous/guide-to-store-media-files-of-django-app-to-aws-s3/index.md
<ide> title: Django-file-storage
<ide> ---
<ide> ## Django Media Files and Static files Storage
<ide>
<del>#### Steps to create AWS S3 Bucket
<add>#### Steps to create AWS S3 Bucket (More information on ... | 1 |
Ruby | Ruby | reduce allocations in transition_table | 6e636e2336b497e2a1c864ddf6a5fa9aa4ffe0f4 | <ide><path>actionpack/lib/action_dispatch/journey/gtg/builder.rb
<ide> class Builder # :nodoc:
<ide> def initialize(root)
<ide> @root = root
<ide> @ast = Nodes::Cat.new root, DUMMY
<del> @followpos = nil
<add> @followpos = build_followpos
<ide> end
<ide> ... | 1 |
Text | Text | fix typo - not providing initial state to reducer | aa84f989c68474bdcf82a27f9fb3f5296c0eb978 | <ide><path>docs/basics/Reducers.md
<ide> export default todoApp;
<ide> Note that this is completely equivalent to:
<ide>
<ide> ```js
<del>export default function todoApp(state, action) {
<add>export default function todoApp(state = {}, action) {
<ide> return {
<ide> visibilityFilter: visibilityFilter(state.visib... | 1 |
Ruby | Ruby | remove unused code | bbbe1a58e60da079d5d353777561d1c998549571 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil
<ide> ast = conditions.delete :parsed_path_info
<ide> required_defaults = conditions.delete :required_defaults
<ide> path = build_path(path, ast... | 1 |
Javascript | Javascript | prevent collisions with object.prototype | 9d76c0b163675505d1a901e5fe5249a2c55609bc | <ide><path>src/data/Data.js
<ide> Data.prototype = {
<ide>
<ide> // If not, create one
<ide> if ( !value ) {
<del> value = {};
<add> value = Object.create( null );
<ide>
<ide> // We can accept data for non-element nodes in modern browsers,
<ide> // but we should not, see #8335.
<ide><path>src/event.js
<... | 6 |
Javascript | Javascript | fix lint warnings | de408dac70a56e9dd007557b5d89894ff5d1d6d0 | <ide><path>examples/helloworld/hello.js
<ide>
<ide> 'use strict';
<ide>
<del>getPdf('helloworld.pdf', function(data){
<add>getPdf('helloworld.pdf', function getPdfHelloWorld(data) {
<ide> //
<ide> // Instantiate PDFDoc with PDF data
<ide> //
<ide><path>pdf.js
<ide> function getPdf(arg, callback) {
<ide> xhr... | 4 |
Javascript | Javascript | fix bug with pie/doughnut chart legends | 051f5b015bc9d1fb07cd23ec3bfc78e6e3914360 | <ide><path>src/controllers/controller.doughnut.js
<ide> module.exports = function(Chart) {
<ide>
<ide> for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {
<ide> meta = chart.getDatasetMeta(i);
<del> meta.data[index].hidden = !meta.data[index].hidden;
<add> // toggle visibility of i... | 1 |
Text | Text | fix typos [ci-skip] | a713f7f22fd076bfa57ee5500e5a6fa206b2867b | <ide><path>guides/source/active_record_querying.md
<ide> you get the instance method `find_by_first_name` for free from Active Record.
<ide> If you also have a `locked` field on the `Customer` model, you also get `find_by_locked` method.
<ide>
<ide> You can specify an exclamation point (`!`) on the end of the dynamic ... | 11 |
Go | Go | remove the error message on mac delete failure. | d51ed8a97be8e984c502ab1c1018e9891d4b3fed | <ide><path>libnetwork/osl/neigh_linux.go
<ide> func (n *networkNamespace) DeleteNeighbor(dstIP net.IP, dstMac net.HardwareAddr,
<ide> if nh.linkDst != "" {
<ide> nlnh.LinkIndex = iface.Attrs().Index
<ide> }
<del> if err := nlh.NeighDel(nlnh); err != nil {
<del> logrus.Warnf("Deleting bridge mac mac %s fa... | 1 |
Java | Java | adjust logging following sockjs client disconnect | 49b872e387cf698de653dffa1b268c0950c0c23f | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java
<ide> public abstract class AbstractSockJsSession implements SockJsSession {
<ide> private static final Set<String> disconnectedClientExceptions;
<ide>
<ide> static {
<del>
<ide> Set<String>... | 1 |
Ruby | Ruby | fix where.not with in clause | 89ab303d8b78a73cb7d306a026f185986f44aa2a | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def initialize(scope)
<ide> # User.where.not(name: nil)
<ide> # # SELECT * FROM users WHERE name IS NOT NULL
<ide> #
<del> # User.where.not(name: %(Ko1 Nobu))
<add> # User.where.not(name: %w(Ko1 Nobu))
<ide... | 2 |
PHP | PHP | add argument support for detectors | e248f6f54e50480d5c6e84b0305ea28c9ce8e0b9 | <ide><path>src/Network/Request.php
<ide> public function __isset($name)
<ide> */
<ide> public function is($type)
<ide> {
<add> $args = func_get_args();
<add> array_shift($args);
<add>
<ide> if (is_array($type)) {
<ide> $result = array_map([$this, 'is'], $type);
<ide> ... | 2 |
Javascript | Javascript | add locale sinhalese (si) (redo ) | 0a41577648573112adf436fda1b4609fbbec7008 | <ide><path>src/locale/si.js
<add>//! moment.js locale configuration
<add>//! locale : Sinhalese (si)
<add>//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
<add>
<add>import moment from '../moment';
<add>
<add>/*jshint -W100*/
<add>export default moment.defineLocale('si', {
<add> months : 'ජනවාරි_ප... | 2 |
PHP | PHP | fix failing test from 2.5 | 2247d521a29103e7c778b8d1b388cb4005991b51 | <ide><path>Cake/Test/TestCase/View/ViewTest.php
<ide> public function testExtendWithElementBeforeExtend() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<del>/**
<del> * Test that setting arbitrary properties still works.
<del> *
<del> * @return void
<del> */
<del> public function testPropertySettin... | 1 |
Python | Python | replace assertions with runtimeerror exceptions | 4469010c1be3a94f74d6448497051468f617baf2 | <ide><path>src/transformers/integrations.py
<ide> class TensorBoardCallback(TrainerCallback):
<ide>
<ide> def __init__(self, tb_writer=None):
<ide> has_tensorboard = is_tensorboard_available()
<del> assert (
<del> has_tensorboard
<del> ), "TensorBoardCallback requires tensorboard t... | 1 |
Python | Python | remove the state argument from language | 66ea9aebe748ce99a104480bb41ade6725e37c9a | <ide><path>spacy/language.py
<ide> def __init__(self, vocab=True, make_doc=True, pipeline=None, meta={}):
<ide> else:
<ide> self.pipeline = []
<ide>
<del> def __call__(self, text, state=None, **disabled):
<add> def __call__(self, text, **disabled):
<ide> """
<ide> Apply the pi... | 1 |
Javascript | Javascript | remove some unwanted code | f6f175db73ad60d413a05613f7536a9fa7a16e10 | <ide><path>server/render.js
<ide> import { renderToString, renderToStaticMarkup } from 'react-dom/server'
<ide> import send from 'send'
<ide> import requireModule from './require'
<ide> import resolvePath from './resolve'
<del>import readPage from './read-page'
<ide> import { Router } from '../lib/router'
<ide> import ... | 1 |
Go | Go | remove sys.go mocking framework | 39d244a593aad63be58d8b2e452715e25135f255 | <ide><path>daemon/graphdriver/devmapper/attach_loopback.go
<ide> package devmapper
<ide>
<ide> import (
<ide> "fmt"
<add> "os"
<add> "syscall"
<add>
<ide> "github.com/dotcloud/docker/utils"
<ide> )
<ide>
<ide> func stringToLoopName(src string) [LoNameSize]uint8 {
<ide> }
<ide>
<ide> func getNextFreeLoopbackIndex()... | 7 |
Ruby | Ruby | add stubs for `sorbet-runtime` | ec5eb56a72864dbf4322b9996bcf6b90304d0d62 | <ide><path>Library/Homebrew/utils.rb
<ide> require "utils/livecheck_formula"
<ide> require "utils/popen"
<ide> require "utils/repology"
<add>require "utils/sorbet"
<ide> require "utils/svn"
<ide> require "utils/tty"
<ide> require "tap_constants"
<ide><path>Library/Homebrew/utils/sorbet.rb
<add># typed: strict
<add># fr... | 3 |
Text | Text | update documentation [ci skip] | bc32fa66ee0ebf1be57adb6adae183e61291eed5 | <ide><path>guides/source/action_mailer_basics.md
<ide> Introduction
<ide> ------------
<ide>
<ide> Action Mailer allows you to send emails from your application using mailer classes
<del>and views. Mailers work very similarly to controllers. They inherit from
<del>`ActionMailer::Base` and live in `app/mailers`, and th... | 1 |
Go | Go | remove unused lookupimage() | 2527e6dd096517b2979c699933e73d5a1bedf74c | <ide><path>daemon/containerd/service.go
<ide> func (cs *ImageService) LoadImage(inTar io.ReadCloser, outStream io.Writer, quie
<ide> panic("not implemented")
<ide> }
<ide>
<del>// LookupImage is not implemented.
<del>func (cs *ImageService) LookupImage(ctx context.Context, name string) (*types.ImageInspect, error) {
... | 1 |
Javascript | Javascript | fix orderedmap equality | 406b11935c4caed2c98446962e0a4d9180f6fa51 | <ide><path>dist/Immutable.dev.js
<ide> var $OrderedMap = OrderedMap;
<ide> return this._vector ? this._vector.fromEntries().__iterate(fn, reverse) : 0;
<ide> },
<ide> __deepEqual: function(other) {
<del> var iterator = this._vector.__iterator__();
<add> var iterator = this._vector.iterator();
<ide> re... | 3 |
PHP | PHP | fix reversed arguments in error message | cb45821c4333591d987e57dc5cb36688e065c533 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> protected function _setContentLength() {
<ide> protected function _sendHeader($name, $value = null) {
<ide> if (headers_sent($filename, $linenum)) {
<ide> throw new CakeException(
<del> __d('cake_dev', 'Headers already sent in %d on line %s', $linenum, $filena... | 1 |
Ruby | Ruby | make an internal command | 3a432bcc2a20ff2c61ae074ff70ca9faaee4b19b | <ide><path>Library/Contributions/cmd/brew-pull.rb
<del># Gets a patch from a GitHub commit or pull request and applies it to Homebrew.
<del># Optionally, installs it too.
<del>
<del>require 'utils'
<del>require 'formula'
<del>
<del>def tap arg
<del> match = arg.match(%r[homebrew-(\w+)/])
<del> match[1].downcase if ma... | 2 |
Ruby | Ruby | remove empty test file | 79953637711de5ba74a9228d6d415c76c1353588 | <ide><path>Library/Homebrew/test/test_python.rb
<del>#TODO!
<ide>\ No newline at end of file | 1 |
Javascript | Javascript | sync latest immutable changes | 0cec4af8d7bf1eb70f34f9f253a7897449bf1573 | <ide><path>src/utils/ImmutableObject.js
<ide> * limitations under the License.
<ide> *
<ide> * @providesModule ImmutableObject
<del> * @typechecks
<ide> */
<ide>
<ide> "use strict";
<ide>
<add>var Immutable = require('Immutable');
<add>
<ide> var invariant = require('invariant');
<del>var isNode = require('isNode... | 3 |
Python | Python | add missing assertin, assertnotin methods on 2.6 | 8f73c552a96cc54e6abefcfc0c4e9d4cdd7dc040 | <ide><path>flask/testsuite/__init__.py
<ide> def assert_in(self, x, y):
<ide> def assert_not_in(self, x, y):
<ide> self.assertNotIn(x, y)
<ide>
<add> if sys.version_info[:2] == (2, 6):
<add> def assertIn(self, x, y):
<add> assert x in y, "%r unexpectedly not in %r" % (x, y)
<add>
<add>... | 1 |
Text | Text | add discussion forums to troubleshooting | 412be8e024b9cb3a27fb7074d60ecbcd2e98dffc | <ide><path>docs/Troubleshooting.md
<ide> This document will help you check for common issues and make sure your issue has
<ide>
<ide> * Search the [Homebrew/homebrew-core issue tracker](https://github.com/Homebrew/homebrew-core/issues) or [Homebrew/linuxbrew-core issue tracker](https://github.com/Homebrew/linuxbrew-co... | 1 |
Text | Text | update changelog for 2.11.0 | f640515dba61512ff573a7fd45c768bd140af74a | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### 2.11.0-beta.4 (December 14, 2016)
<add>### 2.11.0 (January 23, 2017)
<ide>
<add>- [#14762](https://github.com/emberjs/ember.js/pull/14762) [BUGFIX] Ensure subexpressions can be used for `{{input}}`'s `type`.
<add>- [#14723](https://github.com/emberjs/embe... | 1 |
Python | Python | restore tensorboard update_freq behavior | 9a3d0c96fcb23d50c95ea78d118faaf4bb0064b4 | <ide><path>keras/callbacks.py
<ide> def on_train_batch_end(self, batch, logs=None):
<ide> 1.0 / batch_run_time,
<ide> step=self._train_step,
<ide> )
<add>
<add> # `logs` is a `RemoteValue` when using asynchronous strategies, for now
<add> # we just disable `upda... | 3 |
Python | Python | use url_scheme from path if provided | 241673fd153bad011c3fbbb41580450f39874cad | <ide><path>flask/testing.py
<ide> def make_test_environ_builder(
<ide> if subdomain:
<ide> http_host = '{0}.{1}'.format(subdomain, http_host)
<ide>
<add> url = url_parse(path)
<ide> if url_scheme is None:
<del> url_scheme = app.config['PREFERRED_URL_SCHEME']
<add> url_... | 1 |
PHP | PHP | add test for mix() return value | 6a69a09f256690c04c3e1b6eb0043ff5501169f7 | <ide><path>tests/Foundation/FoundationHelpersTest.php
<ide> public function testUnversionedElixir()
<ide>
<ide> unlink(public_path($file));
<ide> }
<add>
<add> public function testMixDoesNotIncludeHost()
<add> {
<add> $file = 'unversioned.css';
<add>
<add> app()->singleton('path.public'... | 1 |
Ruby | Ruby | fix test_arch_for_command on 10.7 | 31e2ec485b1776cb00dac5043d2cae1c8d0aa123 | <ide><path>Library/Homebrew/test/test_utils.rb
<ide> def test_put_columns_empty
<ide>
<ide> def test_arch_for_command
<ide> arches=archs_for_command '/usr/bin/svn'
<del> if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 6
<add> if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7
<add> ... | 1 |
Python | Python | update model_training_utils for bert | d0ef3913ccb119a2a4bf7acb9fd4477d0a86d245 | <ide><path>official/nlp/bert/model_training_utils.py
<ide> def run_customized_training_loop(
<ide> init_checkpoint: Optional checkpoint to load to `sub_model` returned by
<ide> `model_fn`.
<ide> custom_callbacks: A list of Keras Callbacks objects to run during
<del> training. More specificall... | 1 |
Javascript | Javascript | add action decorator | 53b84e24220861bb45987b0dfd2461b70c909fe8 | <ide><path>packages/@ember/object/index.js
<add>import { EMBER_NATIVE_DECORATOR_SUPPORT } from '@ember/canary-features';
<add>import { assert } from '@ember/debug';
<add>import { assign } from '@ember/polyfills';
<add>
<add>/**
<add> Decorator that turns the target function into an Action
<add> Adds an `actions` obje... | 4 |
Text | Text | add runonclick=1 param to csb embeds | 04073b4ec1672fca35d5efeeaf12935329b66239 | <ide><path>docs/introduction/Examples.md
<ide> open index.html
<ide>
<ide> Or check out the [sandbox](https://codesandbox.io/s/github/reduxjs/redux/tree/master/examples/counter-vanilla):
<ide>
<del><iframe class="codesandbox"src="https://codesandbox.io/embed/github/reduxjs/redux/tree/master/examples/counter-vanilla"s... | 13 |
Python | Python | add missing import | 8904814c0e9b9edff165db6fcc8b400432c14f17 | <ide><path>spacy/_ml.py
<ide> from thinc.neural._classes.static_vectors import StaticVectors
<ide> from thinc.neural._classes.batchnorm import BatchNorm
<ide> from thinc.neural._classes.resnet import Residual
<add>from thinc.neural import ReLu
<ide> from thinc import describe
<ide> from thinc.describe import Dimension,... | 1 |
PHP | PHP | use illuminate response | 3789a96ec84fdc94685c90eb12e378dedb97411d | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide>
<ide> use RuntimeException;
<ide> use Illuminate\Support\Str;
<add>use Illuminate\Http\Response;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contracts\Auth\UserProvider;
<ide> use Illuminate\Contracts\Auth\StatefulGuard;
<ide> use Symfony... | 1 |
Text | Text | remove duplicate link | 31d2184972097741cadcbee534b018fac1cf9de0 | <ide><path>docs/testing.md
<ide> You can learn more about Playwright and Continuous Integration from these resour
<ide> - [Getting started with Playwright](https://playwright.dev/docs/intro)
<ide> - [Use a development server](https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests)... | 1 |
Go | Go | fix race in runcommandwithoutputforduration | 2704fd9156bfb0fb8dc16c42902bb18ea5aa94a9 | <ide><path>pkg/integration/utils.go
<ide> func RunCommandWithOutputForDuration(cmd *exec.Cmd, duration time.Duration) (out
<ide> }
<ide> cmd.Stderr = &outputBuffer
<ide>
<del> done := make(chan error)
<del>
<ide> // Start the command in the main thread..
<ide> err = cmd.Start()
<ide> if err != nil {
<ide> err =... | 1 |
Javascript | Javascript | remove custom attrs properly when setting to null | c3cfcf073dab2e6fff1ebf32ef2bbacc37a57992 | <ide><path>src/browser/ui/dom/DOMPropertyOperations.js
<ide> var DOMPropertyOperations = {
<ide> }
<ide> } else if (DOMProperty.isCustomAttribute(name)) {
<ide> if (value == null) {
<del> node.removeAttribute(DOMProperty.getAttributeName[name]);
<add> node.removeAttribute(name);
<ide> ... | 2 |
Ruby | Ruby | remove stray unicode | 7242365ff39b2184a81a7aaad40735daca0e1fbd | <ide><path>Library/Contributions/example-formula.rb
<ide> def install
<ide> args << "--universal-binary" if build.universal?
<ide>
<ide> # The `build.with?` and `build.without?` are smart enough to do the
<del> # right thing™ with respect to defaults defined via `:optional` and
<add> # right thing with r... | 1 |
Python | Python | update maintainer on equinix metal | a35173c70675bbfd373fc72aa802265c6f9dc4cb | <ide><path>libcloud/test/compute/test_equinixmetal.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide> #
<del># Maintainer: Aaron Welch <welch@packet.net>
<del># Based on code written by Jed Smith <jed@packet.com> who based it on
<add># Maintainer:... | 1 |
Javascript | Javascript | add test for unique challenge titles | be693638de0953390f3389d0f8248491a4c1dc2a | <ide><path>seed/challengeTitles.js
<add>import _ from 'lodash';
<add>
<add>class ChallengeTitles {
<add> constructor() {
<add> this.knownTitles = [];
<add> }
<add> check(title) {
<add> if (typeof title !== 'string') {
<add> throw new Error(`Expected a valid string for ${title}, got ${typeof title}`);
<add... | 2 |
Text | Text | add v4.0.0-beta.9 to changelog | 41438a8a5e26261239565bbcd1459d1b6a71f1b8 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.0.0-beta.9 (November 20, 2021)
<add>
<add>- [#19749](https://github.com/emberjs/ember.js/pull/19749) [CLEANUP] Remove `deprecate-router-events` support code
<add>- [#19762](https://github.com/emberjs/ember.js/pull/19762) [CLEANUP] Update GlimmerVM to 0.... | 1 |
Ruby | Ruby | fix isolated tests | 8c679fe0ca77e8cc6de6ae408a556995f3801ee8 | <ide><path>activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb
<ide>
<ide> require 'bigdecimal'
<ide> require 'yaml'
<add>require 'active_support/core_ext/big_decimal/conversions'
<ide>
<ide> class BigDecimal
<ide> YAML_MAPPING = { 'Infinity' => '.Inf', '-Infinity' => '-.Inf', 'NaN' => '.NaN' ... | 1 |
Javascript | Javascript | fix bug report with-portals example | f177be9e0540822763ae9baa2a425cd4c9187a28 | <ide><path>examples/with-portals/components/Portal.js
<ide> import ReactDOM from 'react-dom'
<ide> export class Portal extends React.Component {
<ide> componentDidMount () {
<ide> this.element = document.querySelector(this.props.selector)
<add> this.forceUpdate()
<ide> }
<ide>
<ide> render () { | 1 |
Javascript | Javascript | fix bug in objectloader | a15ffe8dd987fba876da6c14e37ee0506f01b771 | <ide><path>src/loaders/ObjectLoader.js
<ide> THREE.ObjectLoader.prototype = {
<ide>
<ide> for ( var child in data.children ) {
<ide>
<del> object.add( this.parseObject( data.children[ child ], geometries, materials ) );
<add> object.add( this.parseObject( data.children[ child ], geometries, materials, tra... | 1 |
Javascript | Javascript | remove unused doc_widget.js file | 4235ee9ad6edb56e49a852204a721715fa429e94 | <ide><path>docs/src/templates/js/doc_widgets.js
<del>angular.module('ngdocs.directives', [], function($compileProvider) {
<del>
<del> var angularJsUrl;
<del> var scripts = document.getElementsByTagName("script");
<del> var angularJsRegex = /^(|.*\/)angular(-\d.*?)?(\.min)?.js(\?[^#]*)?(#(.*))?$/;
<del> for(var j = ... | 1 |
Javascript | Javascript | fix typo in example | dfbe69c45a391b52d7c539243d92fdbb128c17fd | <ide><path>src/ng/interval.js
<ide> function $IntervalProvider() {
<ide> * };
<ide> *
<ide> * $scope.$on('$destroy', function() {
<del> * // Make sure that the interval nis destroyed too
<add> * // Make sure that the interval is destroyed too
<ide> *... | 1 |
Text | Text | fix typo in doc/api/http2/md | 15b3641bb4236741555c9faa1265af8429664d33 | <ide><path>doc/api/http2.md
<ide> changes:
<ide> - v14.5.0
<ide> - v12.19.0
<ide> pr-url: https://github.com/nodejs/node/pull/33160
<del> description: Allow explicity setting date headers.
<add> description: Allow explicitly setting date headers.
<ide> -->
<ide>
<ide> * `headers` {HTTP/2 Headers Obje... | 1 |
PHP | PHP | use imported classes | d79f1385aa9a67a2fb48d678f5224530a4e8c650 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> class Handler implements ExceptionHandlerContract
<ide> * @var array
<ide> */
<ide> protected $internalDontReport = [
<del> \Illuminate\Auth\AuthenticationException::class,
<del> \Illuminate\Auth\Access\AuthorizationException:... | 1 |
Python | Python | fix assignment of unassigned triggers | b26d4d8a290ce0104992ba28850113490c1ca445 | <ide><path>airflow/models/trigger.py
<ide> import datetime
<ide> from typing import Any, Dict, Iterable, Optional
<ide>
<del>from sqlalchemy import Column, Integer, String, func
<add>from sqlalchemy import Column, Integer, String, func, or_
<ide>
<ide> from airflow.models.base import Base
<ide> from airflow.models.ta... | 2 |
Javascript | Javascript | fix inconsistent slice usage | 60a01c11c0b879dacee73c26402469e1d97e2e3e | <ide><path>packages/ember-metal/lib/computed.js
<ide> Ember.computed = function(func) {
<ide> var args;
<ide>
<ide> if (arguments.length > 1) {
<del> args = [].slice.call(arguments, 0, -1);
<del> func = [].slice.call(arguments, -1)[0];
<add> args = a_slice.call(arguments, 0, -1);
<add> func = a_slice.c... | 1 |
Javascript | Javascript | remove input source on xr session end | 95172e542c07d40ff89d2e716e01358eff59fad0 | <ide><path>src/renderers/webxr/WebXRManager.js
<ide> class WebXRManager extends EventDispatcher {
<ide>
<ide> if ( inputSource === null ) continue;
<ide>
<add> controllerInputSources[ i ] = null;
<add>
<ide> controllers[ i ].disconnect( inputSource );
<ide>
<ide> } | 1 |
Javascript | Javascript | apply review tasks | b9507cca99bee87e2c8ec9d34d3c4bfefc25c53d | <ide><path>lib/NormalModule.js
<ide>
<ide> const path = require("path");
<ide> const NativeModule = require("module");
<del>const Module = require("./Module");
<add>const crypto = require("crypto");
<add>
<ide> const SourceMapSource = require("webpack-sources").SourceMapSource;
<ide> const OriginalSource = require("we... | 1 |
Ruby | Ruby | remove dead constants | 293cdecee309744d4e75e1b9f5bdd8d523d27c2e | <ide><path>activesupport/lib/active_support/multibyte/unicode.rb
<ide> module Unicode
<ide> HANGUL_NCOUNT = HANGUL_VCOUNT * HANGUL_TCOUNT
<ide> HANGUL_SCOUNT = 11172
<ide> HANGUL_SLAST = HANGUL_SBASE + HANGUL_SCOUNT
<del> HANGUL_JAMO_FIRST = 0x1100
<del> HANGUL_JAMO_LAST = 0x11FF
<del>
<del>... | 1 |
Javascript | Javascript | fix setstate in componentwillmount | 9c21e2f3c447776bb38a71b12b60a1c3218edf97 | <ide><path>src/test/ReactTestUtils.js
<ide> ReactShallowRenderer.prototype.render = function(element, context) {
<ide> if (!context) {
<ide> context = emptyObject;
<ide> }
<del> var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true);
<del> this._render(element, transaction, context);
<del> ... | 2 |
PHP | PHP | break constructor line | 4e9c9fd98b4dff71f449764e87c52577e2634587 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> class Validator implements ValidatorContract
<ide> * @param array $customAttributes
<ide> * @return void
<ide> */
<del> public function __construct(TranslatorInterface $translator, array $data, array $rules, array $messages = [], array $custom... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.