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 |
|---|---|---|---|---|---|
Ruby | Ruby | fix hashwithindifferentaccess#to_hash behaviour | df24b8790f22384a068fece7042f04ffd2fcb33e | <ide><path>activesupport/lib/active_support/hash_with_indifferent_access.rb
<ide> def to_options!; self end
<ide>
<ide> # Convert to a regular hash with string keys.
<ide> def to_hash
<del> Hash.new(default).merge!(self)
<add> _new_hash= {}
<add> each do |key, value|
<add> _new_hash[conve... | 2 |
Text | Text | add ibm qiskit references | fd7da5ff8f7dabb73a3786a0951518de18388d71 | <ide><path>quantum/README.md
<ide> Started at https://github.com/TheAlgorithms/Python/issues/1831
<ide> * Google: https://research.google/teams/applied-science/quantum
<ide> * IBM: https://qiskit.org and https://github.com/Qiskit
<ide> * Rigetti: https://rigetti.com and https://github.com/rigetti
<add>
<add>## IBM Qisk... | 1 |
PHP | PHP | fix non-model children support | a69db4280d39d09cf3494462d7e1d26206a86d49 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function resolveSoftDeletableRouteBinding($value, $field = null)
<ide> /**
<ide> * Retrieve the model for a bound value.
<ide> *
<del> * @param Model|Relation $query
<add> * @param Model|Relation $query
<ide> * @param mixed ... | 1 |
Javascript | Javascript | fix subsequent enroll calls not working | 734eb17e5d19145c4c5a696aa94e81c9655272f5 | <ide><path>lib/timers.js
<ide> exports.unenroll = util.deprecate(unenroll,
<ide> // This function does not start the timer, see `active()`.
<ide> // Using existing objects as timers slightly reduces object overhead.
<ide> function enroll(item, msecs) {
<del> item._idleTimeout = validateTimerDuration(msecs);
<add> mse... | 2 |
Javascript | Javascript | fix anchor links | 23bf35d5ef34039fd181b3f25b973a4d30f1720d | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> },
<ide>
<ide> getDestinationHash: function pdfViewGetDestinationHash(dest) {
<add> // We add the full url for the extension so the anchor links don't come up
<add> // as resource:// urls and so open in new tab/window works.
<add> var url = PDFJS.isFire... | 1 |
Go | Go | fix unmountdevice for non-existing device | 304e33a2fe2d006cc1063c8060c6e22c9ade3d59 | <ide><path>graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) UnmountDevice(hash string, mode UnmountMode) error {
<ide> defer devices.Unlock()
<ide>
<ide> info := devices.Devices[hash]
<add> if info == nil {
<add> return fmt.Errorf("UnmountDevice: no such device %s\n", hash)
<add> }
<ide>
<ide> i... | 1 |
Text | Text | fix repetitive word in the tutorial | 3fd6db144594983cbfac4502874ba853d51439be | <ide><path>docs/tutorial/1-serialization.md
<ide> Quit out of the shell...
<ide>
<ide> In another terminal window, we can test the server.
<ide>
<del>We can test our API using using [curl][curl] or [httpie][httpie]. Httpie is a user friendly http client that's written in Python. Let's install that.
<add>We can test o... | 1 |
PHP | PHP | trim comment bloat from route class | cf8e5e2f801f01e2f29947cae85e29e553302f2e | <ide><path>system/route.php
<ide> public function call()
<ide> {
<ide> $response = null;
<ide>
<del> // ------------------------------------------------------------
<del> // If the route value is just a function, all we have to do
<del> // is execute the function! There are no filters to call.
<del> // --------... | 1 |
Go | Go | enable 5 build api tests | 8bc1c9c08a09b7f47d8429645a061cb29fb8118e | <ide><path>integration-cli/docker_api_build_test.go
<ide> import (
<ide>
<ide> func (s *DockerSuite) TestBuildApiDockerFileRemote(c *check.C) {
<ide> testRequires(c, NotUserNamespace)
<del> testRequires(c, DaemonIsLinux)
<ide> server, err := fakeStorage(map[string]string{
<ide> "testD": `FROM busybox
<ide> COPY * ... | 1 |
Ruby | Ruby | pull another unwieldy condition into a method | 4adf8f047ab30c55605e2276ab9c102aec0e71e5 | <ide><path>Library/Homebrew/macos.rb
<ide> def locate tool
<ide> end
<ide>
<ide> def dev_tools_path
<del> @dev_tools_path ||= \
<del> if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and
<del> File.exist? "#{MacOS::CLT::STANDALONE_PKG_PATH}/usr/bin/cc" and
<del> File.exist? "#{MacOS::CLT::STANDALON... | 1 |
Text | Text | fix typo in configuring rails guide. [ci-skip] | 3a8f514ff3dcba2df48a33cf33c0d69c2651240e | <ide><path>guides/source/configuring.md
<ide> The default value depends on the `config.load_defaults` target version:
<ide>
<ide> #### `config.active_record.yaml_column_permitted_classes`
<ide>
<del>Defaults to `[Symbol]`. Allows applications to include additional permitted classes to `safe_load()` on the `ActiveStor... | 1 |
Ruby | Ruby | remove the direct url writer from resource | 0f01e9ff43c1576bc91741732ca961ee3d7e0545 | <ide><path>Library/Homebrew/patch.rb
<ide> def inspect
<ide> class LegacyPatch < ExternalPatch
<ide> def initialize(strip, url)
<ide> super(strip)
<del> resource.url = url
<add> resource.url(url)
<ide> resource.download_strategy = CurlDownloadStrategy
<ide> end
<ide>
<ide><path>Library/Homebrew/resou... | 3 |
Python | Python | remove useless statement in dense | ac2a7254c2c29b4c13fb97740f2aaaf46a0282dc | <ide><path>keras/layers/core.py
<ide> def __init__(self, units,
<ide>
<ide> def build(self, input_shape):
<ide> assert len(input_shape) >= 2
<del>
<ide> input_dim = input_shape[-1]
<del> # TODO: check last dim in input_dim
<del> self.input_spec = [InputSpec(dtype=K.floatx(),
<del> ... | 1 |
Javascript | Javascript | remove scope reference when form is destroyed | 01f50e1a7b2bff7070616494774ec493f8133204 | <ide><path>src/ng/directive/form.js
<ide> var formDirectiveFactory = function(isNgForm) {
<ide> parentFormCtrl.$$renameControl(controller, alias);
<ide> });
<ide> }
<del> if (parentFormCtrl !== nullFormCtrl) {
<del> formElement.on('$destroy', function() ... | 2 |
Python | Python | adapt has_labels test when no labels were found | c08a1e26ab1858c7c51d123577b0de6501779f9b | <ide><path>src/transformers/trainer.py
<ide> def prediction_step(
<ide> Tuple[Optional[torch.Tensor], Optional[torch.Tensor], Optional[torch.Tensor]]: A tuple with the loss,
<ide> logits and labels (each being optional).
<ide> """
<del> has_labels = all(inputs.get(k) is not None f... | 1 |
Go | Go | handle concurrent creation of default gw network | 7086da757a37b4ed730b4af8f868eadff9080fb8 | <ide><path>libnetwork/default_gateway.go
<ide> const (
<ide> gwEPlen = 12
<ide> )
<ide>
<add>var procGwNetwork = make(chan (bool), 1)
<add>
<ide> /*
<ide> libnetwork creates a bridge network "docker_gw_bridge" for provding
<ide> default gateway for the containers if none of the container's endpoints
<ide>... | 1 |
Python | Python | set version to v3.0.0.dev8 | 664a3603b0313b650b3b43e2897f381f1e3598df | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "3.0.0.dev7"
<add>__version__ = "3.0.0.dev8"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spac... | 1 |
Ruby | Ruby | remove unused require | 6497096b85c037f75c4f09e0af03b7abecf84bee | <ide><path>activemodel/lib/active_model/serialization.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "active_support/core_ext/hash/except"
<del>require "active_support/core_ext/hash/slice"
<del>
<ide> module ActiveModel
<ide> # == Active \Model \Serialization
<ide> # | 1 |
Ruby | Ruby | add gotcha to rdoc of collection_check_boxes | 58a75ffbfe7ee622a4a8551b2bfbbe01b396135e | <ide><path>actionview/lib/action_view/helpers/form_options_helper.rb
<ide> def collection_radio_buttons(object, method, collection, value_method, text_meth
<ide> # collection_check_boxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b|
<ide> # b.label(:"data-value" => b.value) { b.chec... | 1 |
Python | Python | follow the same convention as the rest of the file | 93f92635b69c16a79ae546e060522eb437dc1c25 | <ide><path>django/db/backends/postgresql_psycopg2/base.py
<ide> try:
<ide> import psycopg2 as Database
<ide> import psycopg2.extensions
<del> import psycopg2.Error
<ide> except ImportError, e:
<ide> from django.core.exceptions import ImproperlyConfigured
<ide> raise ImproperlyConfigured("Error loadin... | 1 |
Javascript | Javascript | remove unused method | 51bd62d0b8e98ff982f083726a67adcd843bfdf4 | <ide><path>lib/serialization/BinaryMiddleware.js
<ide> const identifyNumber = n => {
<ide> * @extends {SerializerMiddleware<DeserializedType, SerializedType>}
<ide> */
<ide> class BinaryMiddleware extends SerializerMiddleware {
<del> static optimizeSerializedData(data) {
<del> const result = [];
<del> const temp = ... | 1 |
Java | Java | fix scroll events getting skipped on android | e964a7f4ef93fcadf5cfd1c269b77b13cb3be374 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java
<ide> public class OnScrollDispatchHelper {
<ide>
<ide> private long mLastScrollEventTimeMs = -(MIN_EVENT_SEPARATION_MS + 1);
<ide>
<del> private static final float THRESHOLD = 0.1f; // Threshold for end fling
<del>
<... | 1 |
Ruby | Ruby | remove check on sha-only change | dff0320f8cbf3593e73c5f1e2d5f49f96a05926c | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def check_token_conflicts?
<ide>
<ide> def run!
<ide> check_required_stanzas
<del> check_version_and_checksum
<ide> check_version
<ide> check_sha256
<ide> check_url
<ide> def check_required_stanzas
<ide> add_error "at least one acti... | 1 |
Javascript | Javascript | apply unused translations | a888b476a904c5690a5b96b984aa698c66f47ad6 | <ide><path>client/src/components/settings/DeleteModal.js
<ide> function DeleteModal(props) {
<ide> >
<ide> <Modal.Header closeButton={true}>
<ide> <Modal.Title id='modal-title'>
<del> {t('settings.danger.delete')}
<add> {t('settings.danger.delete-title')}
<ide> </Modal.Title>... | 3 |
Ruby | Ruby | use array.wrap uniformly | a98db7c6ef7384d60a1c7f02d43ee601e2647eea | <ide><path>activemodel/lib/active_model/callbacks.rb
<add>require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/callbacks'
<ide>
<ide> module ActiveModel
<ide> def define_model_callbacks(*callbacks)
<ide> options = callbacks.extract_options!
<ide> options = { :terminator => "result == ... | 5 |
Ruby | Ruby | fix curl_output for curl download strategy | f54de5a8481bc9dc4ab2880a69c98efc6f4a9552 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def _curl_download(resolved_url, to, timeout)
<ide>
<ide> curl_download resolved_url, to: to, try_partial: @try_partial, timeout: timeout, use_homebrew_curl: true
<ide> end
<add>
<add> def curl_output(*args, **options)
<add> raise HomebrewCurlDownloadStr... | 1 |
Javascript | Javascript | create benchmark test for misc and module | be3ac440dc2280fe8fed8c0da5b06b9803c70a44 | <ide><path>test/parallel/test-benchmark-misc.js
<add>'use strict';
<add>
<add>require('../common');
<add>
<add>const runBenchmark = require('../common/benchmark');
<add>
<add>runBenchmark('misc', [
<add> 'n=1',
<add> 'val=magyarország.icom.museum',
<add> 'millions=.000001',
<add> 'type=extend',
<add> 'concat=0'
<a... | 2 |
Python | Python | fix ticket #104 | 67eeb36aee72eae9a2ac42765fb11b63613f05cb | <ide><path>numpy/core/records.py
<ide> def field(self,attr, val=None):
<ide> else:
<ide> return self.setfield(val, *res)
<ide>
<add> def view(self, obj):
<add> try:
<add> if issubclass(obj, sb.ndarray):
<add> return sb.ndarray.view(self, obj)
<add> except ... | 1 |
Java | Java | fix failing test | cf2e1ffc65a2684493cae60580fa76703fa006b7 | <ide><path>spring-websocket/src/test/java/org/springframework/web/socket/server/endpoint/SpringConfiguratorTests.java
<ide> public void getEndpointInstanceSingletonByType() throws Exception {
<ide>
<ide> @Test
<ide> public void getEndpointInstanceSingletonByComponentName() throws Exception {
<del> AlternativeEchoEn... | 1 |
Python | Python | prepare new pypi release | b2c66816d7c5dc39e4fc434b3102f57723ff0329 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '1.0.6'
<add>__version__ = '1.0.7'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='1.0.6',
<add> version='1.0.7',
<ide> description='Deep Learning for Python'... | 2 |
Python | Python | increase pipeline support for onnx export. | 7b685f5229c858f3e0be27a927dc71a9fec00ede | <ide><path>src/transformers/convert_graph_to_onnx.py
<ide> from transformers.tokenization_utils import BatchEncoding
<ide>
<ide>
<add>SUPPORTED_PIPELINES = [
<add> "feature-extraction",
<add> "ner",
<add> "sentiment-analysis",
<add> "fill-mask",
<add> "question-answering",
<add> "text-generation",
<... | 1 |
Javascript | Javascript | remove obsolete elements and comments | 21cb28d077c166f25aa4d462b673e25073ea02bb | <ide><path>src/renderers/shaders/UniformsLib.js
<ide> var UniformsLib = {
<ide> } },
<ide>
<ide> // TODO (abelnation): RectAreaLight BRDF data needs to be moved from example to main src
<del> rectAreaLights: { type: "sa", value: [], properties: {
<del> color: { type: "c" },
<del> ... | 1 |
PHP | PHP | add tests for staticconfigtrait | 44ed93e03818babed9c786bd11aad1aefaff470d | <ide><path>tests/TestCase/Core/StaticConfigTraitTest.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * Redistributions of files must retain... | 1 |
Ruby | Ruby | refer users to correct tracker for tapped brews | b5de42bfefe1ed7b06a948a2f5df06ceafccbb47 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def dump
<ide> formula_name = $1
<ide> error_line = $2
<ide>
<add> path = HOMEBREW_REPOSITORY/"Library/Formula/#{formula_name}.rb"
<add> if path.symlink? and path.realpath.to_s =~ %r{^#{HOMEBREW_REPOSITORY}/Library/Taps/(\w+)-(\w+)/}
<add> repo = "#$1/... | 1 |
PHP | PHP | implement index reflection for sqlite | 24b88c062f961fa8649abbc964e7bde32efc7ea6 | <ide><path>lib/Cake/Database/Schema/SqliteSchema.php
<ide> public function convertFieldDescription(Table $table, $row, $fieldParams = []) {
<ide> * @return array An array of (sql, params) to execute.
<ide> */
<ide> public function describeIndexSql($table) {
<del> $sql = '';
<add> $sql = sprintf(
<add> 'PRAGMA in... | 2 |
Javascript | Javascript | add pdfstring conversion | 92a7468e9a50c11ee44ae691c2fb4f84f274c07b | <ide><path>pdf.js
<ide> function stringToBytes(str) {
<ide> return bytes;
<ide> }
<ide>
<add>var PDFStringTranslateTable = [
<add> ,,,,,,,,,,,,,,,,,,,,,,,, 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA,
<add> 0x2DC,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
<add> ,,,,,,,,,,,,,,,,,,,,,,,... | 1 |
Java | Java | improve efficiency of built routerfunction | 7c4f0318bb32938105335099956eccd2807ce4fb | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctionBuilder.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lice... | 4 |
Python | Python | use the new openblas lib | 7ef28b2f1c383828bebcbb87b8e487e27c6e3ff9 | <ide><path>tools/openblas_support.py
<ide> def download_openblas(target, plat, ilp64):
<ide> suffix = 'macosx_10_9_x86_64-gf_1becaaa.tar.gz'
<ide> typ = 'tar.gz'
<ide> elif plat == 'macosx-arm64':
<del> suffix = 'macosx_11_0_arm64-gf_f10e307.tar.gz'
<add> suffix = 'macosx_11_0_arm64-gf... | 1 |
Javascript | Javascript | use native `promise` instead of `rsvp` | 3589ebbe863dd3571fac44cc1c7b9a223d470858 | <ide><path>tests/node/visit-test.js
<del>var RSVP = require('rsvp');
<ide> var SimpleDOM = require('simple-dom');
<ide> var appModule = require('./helpers/app-module');
<ide>
<ide> QUnit.test('FastBoot: basic', function(assert) {
<ide>
<ide> var App = this.createApplication();
<ide>
<del> return RSVP.all([
<add> ... | 1 |
Javascript | Javascript | add cors methods and headers for lazycompilation | 8e914b75209eeca0935b39bcf5a06cbc1cdb82d5 | <ide><path>lib/hmr/lazyCompilationBackend.js
<ide> module.exports = options => (compiler, callback) => {
<ide> req.socket.setNoDelay(true);
<ide> res.writeHead(200, {
<ide> "content-type": "text/event-stream",
<del> "Access-Control-Allow-Origin": "*"
<add> "Access-Control-Allow-Origin": "*",
<add> "Access-... | 1 |
Java | Java | fix spelling in reactinstancemanager | 13d8375323c8fac2cfa94648cdde75448faaa01e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public interface ReactInstanceEventListener {
<ide> Collections.synchronizedSet(new HashSet<ReactInstanceEventListener>());
<ide> // Identifies whether the instance manager is or soon will be initialized (on background thre... | 1 |
Ruby | Ruby | remove duplication from cleanup methods | 3587dc441e0c7f649dbda67a12e4b4c87e434885 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_logs
<ide> return unless HOMEBREW_LOGS.directory?
<ide> time = Time.now - 2 * 7 * 24 * 60 * 60 # two weeks
<ide> HOMEBREW_LOGS.subdirs.each do |dir|
<del> if dir.mtime < time
<del> if ARGV.dry_run?
<del> puts "Would remove: #{... | 1 |
Text | Text | fix duplicate words & spellings in docs | b21e3f0711ca989fe21bd4484b58d03e5693f859 | <ide><path>doc/api/async_hooks.md
<ide> const server = net.createServer((conn) => {
<ide>
<ide> ## JavaScript Embedder API
<ide>
<del>Library developers that handle their own asychronous resources performing tasks
<add>Library developers that handle their own asynchronous resources performing tasks
<ide> like I/O, co... | 5 |
Javascript | Javascript | add spec for incrementing headings | d54f09ef29356d4c8ba71d3b37bbebd379627648 | <ide><path>docs/spec/collectSpec.js
<ide> describe('collect', function(){
<ide> '<p>dad<a href="#!angular.foo"><code>angular.foo</code></a></p>\n\n' +
<ide> '<p><a href="#!angular.directive.ng:foo"><code>ng:foo</code></a></p>');
<ide> });
<add>
<add> it('should increment all hea... | 1 |
Text | Text | update button labels | 589c0a25dfa18c2090549cc6f5b626d69ea53c2a | <ide><path>docs/tutorial/tutorial.md
<ide> Let's show the previous moves made in the game so far. We learned earlier that R
<ide>
<ide> const moves = history.map((step, move) => {
<ide> const desc = move ?
<del> 'Move #' + move :
<del> 'Game start';
<add> 'Go to move #' + move :
<add> ... | 1 |
Go | Go | ignore stat errors on volume rm | 8d27417bfeff316346d00c07a456b0e1b056e788 | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) VolumeRm(name string) error {
<ide> if err == ErrVolumeInUse {
<ide> return fmt.Errorf("Conflict: %v", err)
<ide> }
<del> return err
<add> return fmt.Errorf("Error while removing volume %s: %v", name, err)
<ide> }
<ide> return nil
<ide> }
<ide><path>vol... | 3 |
Text | Text | remove text repetition | a43bf9f12f4facaae98cba8dec8435c60b633e09 | <ide><path>guides/source/getting_started.md
<ide> You're getting this error now because Rails expects plain actions like this one
<ide> to have views associated with them to display their information. With no view
<ide> available, Rails will raise an exception.
<ide>
<del>Let's look at the full error message looks aga... | 1 |
PHP | PHP | add some common files to the compile config | 9a3704826187a2983911144c584f7acf83ffa06f | <ide><path>src/Illuminate/Foundation/Console/Optimize/config.php
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/View/View.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/Http/Kernel.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/Auth/... | 1 |
Java | Java | fix nullability of statewrapper | f2fa2860d124f7691ea4879ac157c62e2d83cc03 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java
<ide> public Map<String, String> getNativeProps() {
<ide> * this component type.
<ide> */
<ide> public @Nullable Object updateState(
<del> @NonNull T view, ReactStylesDiffMap props, @Nullable StateWrapper stateWrapper) {
<a... | 6 |
Javascript | Javascript | provide access to raw headers/trailers | e6c81bd67986e672b9b253c62ce6d4a519d3a2e1 | <ide><path>lib/_http_common.js
<ide> function parserOnHeadersComplete(info) {
<ide> n = Math.min(n, parser.maxHeaderPairs);
<ide> }
<ide>
<del> for (var i = 0; i < n; i += 2) {
<del> var k = headers[i];
<del> var v = headers[i + 1];
<del> parser.incoming._addHeaderLine(k, v);
<del> }
<del>
<add> pars... | 3 |
Javascript | Javascript | move global getter out of parse.js | cefdaf131dd373cf06907e241a88339452c51313 | <ide><path>src/Angular.js
<ide> function assertArgFn(arg, name, acceptArrayAnnotation) {
<ide> (arg && typeof arg == 'object' ? arg.constructor.name || 'Object' : typeof arg));
<ide> return arg;
<ide> }
<add>
<add>/**
<add> * Return the value accessible from the object by path. Any undefined traversals are igno... | 2 |
Javascript | Javascript | set donor cookie | e3bc038457af7f05f0db84eb8f53106d90808dfa | <ide><path>client/src/redux/donation-saga.js
<ide> import {
<ide> shouldRequestDonationSelector,
<ide> preventProgressDonationRequests,
<ide> recentlyClaimedBlockSelector,
<add> isDonatingSelector,
<ide> addDonationComplete,
<ide> addDonationError,
<ide> postChargeStripeComplete,
<ide> function* addDonatio... | 1 |
Javascript | Javascript | implement locale inheritance and locale updating | bd6399e015021a1de6e7e14d640da5564b77d7d3 | <ide><path>src/lib/locale/constructor.js
<del>export function Locale() {
<add>export function Locale(config) {
<add> if (config != null) {
<add> this.set(config);
<add> }
<ide> }
<ide><path>src/lib/locale/locale.js
<ide> import './prototype';
<ide> import {
<ide> getSetGlobalLocale,
<ide> defineLoc... | 9 |
Text | Text | add v3.24.6 to changelog.md | 89b46e4f61298a8b40fd72aeb4969c89eab96858 | <ide><path>CHANGELOG.md
<ide>
<ide> - [glimmerjs/glimmer-vm#1351](https://github.com/glimmerjs/glimmer-vm/pull/1351) Support lexical scope in loose mode
<ide>
<add>### v3.24.6 (October 18, 2021)
<add>
<add>- [glimmerjs/glimmer-vm#1347](https://github.com/glimmerjs/glimmer-vm/pull/1347) Avoid using a nested WeakMap fo... | 1 |
PHP | PHP | reduce required precision in tests | 4bf2de2e6187d7e62c7eb2f2db1a1a9cb0eef3ab | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testSelectLargeNumbers()
<ide> $this->assertNotEmpty($out, 'Should get a record');
<ide> $this->assertSame($big, $out->cost);
<ide>
<del> $small = '0.1234567890123456789';
<add> $small = '0.123456789012345';
<ide> $... | 1 |
Go | Go | fix typo in builder/dispatchers.go | bbdf045ac1dfa8fc78b1c932736fe6400eecdf63 | <ide><path>builder/dispatchers.go
<ide> func from(b *Builder, args []string, attributes map[string]bool, original string
<ide> }
<ide>
<ide> // note that the top level err will still be !nil here if IsNotExist is
<del> // not the error. This approach just simplifies hte logic a bit.
<add> // not the error. This ... | 1 |
Javascript | Javascript | verify shell option internals | 71f541411d56b3dceb087c0c0c50b86fc451e069 | <ide><path>test/parallel/test-child-process-spawnsync-shell.js
<ide> const env = cp.spawnSync(`"${process.execPath}" -pe process.env.BAZ`, {
<ide> });
<ide>
<ide> assert.strictEqual(env.stdout.toString().trim(), 'buzz');
<add>
<add>// Verify that the shell internals work properly across platforms.
<add>{
<add> const ... | 1 |
Javascript | Javascript | fix linter error | 62d9d02f979dcc6dd5725c93edda0b40504fd657 | <ide><path>src/window-event-handler.js
<ide> class WindowEventHandler {
<ide> if (/^https?:\/\//.test(uri)) {
<ide> this.applicationDelegate.openExternal(uri)
<ide> } else if (uri.startsWith('atom://')) {
<del> this.atomEnvironment.uriHandlerRegistry.handleURI(uri);
<add> this.atomEnvi... | 1 |
PHP | PHP | allow sub-directories for fixture folder | 316fd50443f9713094c978caef52cbf5ea0ca619 | <ide><path>lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
<ide> protected function _loadFixtures($fixtures) {
<ide> $fixture = substr($fixture, strlen('core.'));
<ide> $fixturePaths[] = CAKE . 'Test' . DS . 'Fixture';
<ide> } elseif (strpos($fixture, 'app.') === 0) {
<del> $fixture = substr($fixture, s... | 1 |
Javascript | Javascript | use python3 instead of python | f9bfe785ee4aaf2cffc3059b56dfa28d0bb9a57e | <ide><path>test/parallel/test-child-process-set-blocking.js
<ide> const assert = require('assert');
<ide> const ch = require('child_process');
<ide>
<ide> const SIZE = 100000;
<del>const python = process.env.PYTHON || 'python';
<add>const python = process.env.PYTHON || (common.isWindows ? 'python' : 'python3');
<ide> ... | 1 |
PHP | PHP | return actual receive count from sqs queue driver | 6d1913b9f4d303f8464625dfef33f06cfc404328 | <ide><path>src/Illuminate/Queue/Jobs/SqsJob.php
<ide> public function release($delay = 0)
<ide> */
<ide> public function attempts()
<ide> {
<del> return 1;
<add> return (int) $this->job['Attributes']['ApproximateReceiveCount'];
<ide> }
<ide>
<ide> /**
<ide><path>src/Illuminate/Queue/SqsQueue.php
<ide> public f... | 2 |
Javascript | Javascript | add emcascript5 compatibility to three.extend | 82af7f0c9fc60e50d1c82c3eaf7bc6f5f9275076 | <ide><path>src/Three.js
<ide> String.prototype.trim = String.prototype.trim || function () {
<ide> // based on https://github.com/documentcloud/underscore/blob/bf657be243a075b5e72acc8a83e6f12a564d8f55/underscore.js#L767
<ide> THREE.extend = function ( obj, source ) {
<ide>
<del> for (var prop in source) {
<add> // ECM... | 1 |
Ruby | Ruby | fix wrong tap argument check | 6f9f3faef3d566641b3fa18e887819da7889018a | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def resolve_test_tap
<ide> bot_argv = ENV["UPSTREAM_BOT_PARAMS"].split " "
<ide> bot_argv.extend HomebrewArgvExtension
<ide> if tap = bot_argv.value("tap")
<del> return Tap.fetch(tap) if url_path =~ HOMEBREW_TAP_REGEX
<add> return Tap.fet... | 1 |
Javascript | Javascript | fix coverage reporting | 85e1819d8bc8fad398ac0674064a19a691ea0fd7 | <ide><path>lib/internal/util.js
<ide> function isInsideNodeModules() {
<ide> // Use `runInNewContext()` to get something tamper-proof and
<ide> // side-effect-free. Since this is currently only used for a deprecated API,
<ide> // the perf implications should be okay.
<del> getStructuredStack = runInNewCo... | 1 |
Text | Text | update index.md absolute value | 9201699caf9fd0ff726aa508da71eb697fe0abca | <ide><path>guide/english/mathematics/absolute-value/index.md
<ide> Pythagorean Theorem: If z=a+bi, where a=Re{z} and b=Im{z}, then |z|=sqrt(a^2+b^2
<ide> * **Simplify |(-5)^3|**
<ide> |-125| = 125
<ide>
<add>* **Simplify -|(4)^2|**
<add>-|16| = -16
<add>
<ide> #### More Information:
<ide> [Purplemath](https://www.purp... | 1 |
Text | Text | add section on iterator-based loops | 0b964091c9e6c2639206eda920f7ca9033404192 | <ide><path>guide/english/cplusplus/for-loop/index.md
<ide> For loop is an entry controlled loop unlike do-while loop.
<ide>
<ide> ## Syntax
<ide>
<del>```
<del>for (init; condition; increment )
<del>{
<add>```c++
<add>for (init; condition; increment ) {
<ide> update_statement(s);
<ide> }
<ide> ```
<ide>
<ide> Th... | 1 |
PHP | PHP | fix overzealous array cast in multicheckbox | 292d7e81cdb791b0edbcf730424c6ee5a512bc56 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function select($fieldName, $options = [], array $attributes = []) {
<ide> * Can be used in place of a select box with the multiple attribute.
<ide> *
<ide> * @param string $fieldName Name attribute of the SELECT
<del> * @param array $options Array of the OPTION... | 2 |
Ruby | Ruby | fix rubocop offense | 86ee45477c23b413779a263267417ba270b5946d | <ide><path>actioncable/lib/rails/generators/channel/channel_generator.rb
<ide> def import_channels_in_javascript_entrypoint
<ide>
<ide> def import_channel_in_javascript_entrypoint
<ide> append_to_file "app/javascript/channels/index.js",
<del> using_node? ? %(import "./#{file_name}_channel"... | 1 |
Ruby | Ruby | fix force_homebrew_on_linux behaviour."" | 7448a6be587a84ee6a6df9c5cf81c81e5f56ac82 | <ide><path>Library/Homebrew/extend/os/mac/software_spec.rb
<ide> # typed: false
<ide> # frozen_string_literal: true
<ide>
<add># The Library/Homebrew/extend/os/software_spec.rb conditional logic will need to be more nuanced
<add># if this file ever includes more than `uses_from_macos`.
<ide> class SoftwareSpec
<ide> ... | 2 |
Go | Go | apply build labels to images with only a from tag | 1a85c8ebbe1ab508bcd47b883b9732c032509503 | <ide><path>builder/dockerfile/builder.go
<ide> func (b *Builder) build(config *types.ImageBuildOptions, context builder.Context
<ide> }
<ide> return "", err
<ide> }
<add>
<add> // Commit the layer when there are only one children in
<add> // the dockerfile, this is only the `FROM` tag, and
<add> // build lab... | 4 |
Python | Python | fix export_tfhub module with bertv2 | aa870ff4df967857e21a5460fb8f9ca25f0cd4fd | <ide><path>official/nlp/tools/export_tfhub_lib.py
<ide> def _create_model(
<ide> """Creates the model to export and the model to restore the checkpoint.
<ide>
<ide> Args:
<del> bert_config: A legacy `BertConfig` to create a `BertEncoder` object.
<del> Exactly one of encoder_config and bert_config must be s... | 2 |
Java | Java | introduce failing test case in antpathmatchertests | c7cdbe126db6ab5e3422e764d4effa3a5ef2148b | <ide><path>spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java
<ide> import java.util.Map;
<ide>
<ide> import org.junit.Before;
<add>import org.junit.Ignore;
<ide> import org.junit.Test;
<ide>
<ide> import static org.junit.Assert.*;
<ide> * @author Juergen Hoeller
<ide> * @author Arjen Pouts... | 1 |
Javascript | Javascript | add delay before starting timerstest | 0698b2beca165dc77fb23194d7d61ac46987cc09 | <ide><path>IntegrationTests/TimersTest.js
<ide> var TimersTest = React.createClass({
<ide> },
<ide>
<ide> componentDidMount() {
<del> this.testSetTimeout0();
<add> this.setTimeout(this.testSetTimeout0, 1000);
<ide> },
<ide>
<ide> testSetTimeout0() { | 1 |
Ruby | Ruby | use hash#fetch instead of has_key? check | 81f92cbc2b4c1f99c08d04a8a360efe64a12faf8 | <ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb
<ide> def _set_wrapper_defaults(options, model=nil)
<ide>
<ide> unless options[:include] || options[:exclude]
<ide> model ||= _default_wrap_model
<del> role = options.has_key?(:as) ? options[:as] : :default
<add> ro... | 1 |
Ruby | Ruby | fix failing test caused by `repo_info` | cb8af6d751d1c31bc379f96f5aeee9cc84cacf49 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/info.rb
<ide> def self.info(cask)
<ide> puts "#{cask.token}: #{cask.version}"
<ide> puts Formatter.url(cask.homepage) if cask.homepage
<ide> installation_info(cask)
<del> puts "From: #{Formatter.url(repo_info(cask))}" if repo_info(cask)
<add> ... | 2 |
Python | Python | change scipy -> numpy in who() docstring | d7cee5d2ff7cd16fe4c7ab7f8dae7218b783d7c9 | <ide><path>numpy/lib/utils.py
<ide> def may_share_memory(a, b):
<ide>
<ide>
<ide> def who(vardict=None):
<del> """Print the scipy arrays in the given dictionary (or globals() if None).
<add> """Print the Numpy arrays in the given dictionary (or globals() if None).
<ide> """
<ide> if vardict is None:
<id... | 1 |
Text | Text | fix changelog entry for | 2717b08f76a20ad01301545148bc8714c7904632 | <ide><path>activerecord/CHANGELOG.md
<ide> # => #<Product ...> (if one Product with given price)
<ide> # => ActiveRecord::SoleRecordExceeded (if more than one Product with given price)
<ide>
<del> user.api_keys.find_by_sole(key: key)
<add> user.api_keys.find_sole_by(key: key)
<ide> ... | 1 |
PHP | PHP | add more tests | 9bd9ebe2e3653cd40eb19160d005d2ae7740f352 | <ide><path>src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php
<ide> public function __construct(Factory $factory, $pivot, $relationship)
<ide> */
<ide> public function createFor(Model $model)
<ide> {
<del> $model->{$this->relationship}()->attach(
<del> $this->factory... | 2 |
Python | Python | fix trainer with remove_unused_columns=false | 3ed5e97ba04ce9b24b4a7161ea74572598a4c480 | <ide><path>src/transformers/trainer.py
<ide> def remove_callback(self, callback):
<ide>
<ide> def _remove_unused_columns(self, dataset: "datasets.Dataset", description: Optional[str] = None):
<ide> if not self.args.remove_unused_columns:
<del> return
<add> return dataset
<ide> ... | 1 |
Javascript | Javascript | switch push style | cbafcbec083fcc06a46fdfd6619a9270efd37ccb | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> try {
<ide>
<add> console.time( 'parse: ' );
<ide> var scene = self.parse( buffer, resourceDirectory );
<del>
<add> console.timeEnd( 'parse: ' );
<ide> onLoad( scene );
<ide>
<ide> } catch ( error ) {
<ide>
<ide> for ( var i = 2; ... | 1 |
Javascript | Javascript | fix negative values in process.hrtime() | 1e5a02628c50f9a1fc6b214aa0926769c03b7dd1 | <ide><path>src/node.js
<ide>
<ide> if (typeof ar !== 'undefined') {
<ide> if (Array.isArray(ar)) {
<del> return [
<del> (hrValues[0] * 0x100000000 + hrValues[1]) - ar[0],
<del> hrValues[2] - ar[1]
<del> ];
<add> const sec = (hrValues[0] * 0x100000000 + hrV... | 2 |
Ruby | Ruby | fix path to dev-cmd/irb and add test | db615a419afb99f186fb6df7c859f7538a7524ba | <ide><path>Library/Homebrew/dev-cmd/ruby.rb
<ide> module Homebrew
<ide> module_function
<ide>
<ide> def ruby
<del> exec ENV["HOMEBREW_RUBY_PATH"], "-I#{HOMEBREW_LIBRARY_PATH}", "-rglobal", "-rcmd/irb", *ARGV
<add> exec ENV["HOMEBREW_RUBY_PATH"], "-I#{HOMEBREW_LIBRARY_PATH}", "-rglobal", "-rdev-cmd/irb", *ARG... | 2 |
Javascript | Javascript | add inline dependency annotation | 6d23591c31f2b41097ceaa380af09998e4a62f09 | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.module('ngMock', ['ng']).provider({
<ide> $interval: angular.mock.$IntervalProvider,
<ide> $httpBackend: angular.mock.$HttpBackendProvider,
<ide> $rootElement: angular.mock.$RootElementProvider
<del>}).config(function($provide) {
<add>}).config(['$provide', fun... | 1 |
Javascript | Javascript | fix ios9 typedarray.subarray(from, undefined) bug | 49eeb97c60a783377be842e2e2a1132a124f42e6 | <ide><path>src/animation/AnimationUtils.js
<ide> var AnimationUtils = {
<ide>
<ide> if ( AnimationUtils.isTypedArray( array ) ) {
<ide>
<del> return new array.constructor( array.subarray( from, to ) );
<add> // in ios9 array.subarray(from, undefined) will return empty array
<add> // but array.subarray(from) o... | 1 |
Text | Text | add advertise address, clarify join token | 1e7219d40fcd3b9e3ef6d224e2926d5562fb7b74 | <ide><path>docs/reference/commandline/swarm_join_token.md
<ide> Options:
<ide> --rotate Rotate join token
<ide> ```
<ide>
<del>Join tokens are secrets that determine whether or not a node will join the swarm as a manager node
<del>or a worker node. You pass the token using the `--token flag` when you run
<del>... | 3 |
Javascript | Javascript | use stable identities for snapshot iterables | 751e123e959df300750d817ae3a5009a422eb07f | <ide><path>lib/FileSystemInfo.js
<ide> class SnapshotIterable {
<ide> class Snapshot {
<ide> constructor() {
<ide> this._flags = 0;
<add> /** @type {Iterable<string> | undefined} */
<add> this._cachedFileIterable = undefined;
<add> /** @type {Iterable<string> | undefined} */
<add> this._cachedContextIterable = u... | 1 |
Javascript | Javascript | move reactnativetesttools-test to github | 168ec03b0f99c0f8044b696815e477eec7493763 | <ide><path>Libraries/Utilities/__tests__/ReactNativeTestTools-test.js
<add>/**
<add> * Copyright (c) Meta Platforms, Inc. and 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> * @format
... | 1 |
Ruby | Ruby | remove deprecated --use-{gcc,llvm,clang} | f6fda5651bb08a60cd943c14aa08fadaebdd9a3f | <ide><path>Library/Homebrew/cmd/install.rb
<ide> module Homebrew extend self
<ide> def install
<ide> raise FormulaUnspecifiedError if ARGV.named.empty?
<ide>
<del> {
<del> 'gcc' => 'gcc-4.2',
<del> 'llvm' => 'llvm-gcc',
<del> 'clang' => 'clang'
<del> }.each_pair do |old, new|
<del> opt ... | 2 |
Javascript | Javascript | simplify accessor code a bit | 495002207212709f47af6612a5ec3467ddba45ac | <ide><path>packages/ember-metal/lib/accessors.js
<ide> Ember.getPath = function(root, path) {
<ide> Ember.setPath = function(root, path, value, tolerant) {
<ide> var keyName;
<ide>
<del> if (arguments.length===2 && 'string' === typeof root) {
<add> if (IS_GLOBAL.test(root)) {
<ide> value = path;
<ide> path... | 2 |
PHP | PHP | show members causing failure in array validation | 732686785d16968964e0216379eca4b4d781b0a1 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> public function invalid()
<ide> $this->passes();
<ide> }
<ide>
<del> return array_intersect_key(
<add> $invalid = array_intersect_key(
<ide> $this->data, $this->attributesThatHaveMessages()
<ide> );
<add>
<ad... | 2 |
Ruby | Ruby | convert `argv` test to spec | 46a1e2f22d866275da68d11b871883f34669705f | <ide><path>Library/Homebrew/test/ARGV_spec.rb
<add>require "extend/ARGV"
<add>
<add>describe HomebrewArgvExtension do
<add> subject { argv.extend(HomebrewArgvExtension) }
<add> let(:argv) { ["mxcl"] }
<add>
<add> describe "#formulae" do
<add> it "raises an error when a Formula is unavailable" do
<add> expect... | 2 |
Javascript | Javascript | enable possibility to add flow annotations | bc9bbb5533f223a200f8bea65a8c1873a7084e14 | <ide><path>packager/react-packager/src/JSTransformer/worker/index.js
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> */
<del>'use strict';
<del>
<del>const constantFolding = require('./constant-... | 3 |
PHP | PHP | improve messages logged for exceptions | d8551c49e57b6a724fd5e4515555551392583dca | <ide><path>lib/Cake/Error/ErrorHandler.php
<ide> App::uses('Debugger', 'Utility');
<ide> App::uses('CakeLog', 'Log');
<ide> App::uses('ExceptionRenderer', 'Error');
<add>App::uses('Router', 'Routing');
<ide>
<ide> /**
<ide> *
<ide> class ErrorHandler {
<ide> public static function handleException(Exception $exceptio... | 2 |
PHP | PHP | add basic foreign key generation to postgresschema | 853fcb44b8c7f43fdbafe66b504c69f3604fc7f9 | <ide><path>lib/Cake/Database/Schema/PostgresSchema.php
<ide> public function constraintSql(Table $table, $name) {
<ide> $data = $table->constraint($name);
<ide> $out = 'CONSTRAINT ' . $this->_driver->quoteIdentifier($name);
<ide> if ($data['type'] === Table::CONSTRAINT_PRIMARY) {
<del> $out = 'PRIMARY KEY ';
<a... | 2 |
PHP | PHP | use base64 encoding for csrf tokens | f02d8b9b0d12bfd78d22cdb1dc0d5f7d28774948 | <ide><path>src/Http/Middleware/SessionCsrfProtectionMiddleware.php
<ide> public function skipCheckCallback(callable $callback)
<ide> */
<ide> public function saltToken(string $token): string
<ide> {
<del> $length = strlen($token);
<del> $salt = Security::randomString($length);
<add> $d... | 2 |
PHP | PHP | add more group annotations | 304848d9d7a190f6c02b97303892a1cb069f1597 | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> public function testDeprecatedControllerPropertySetterMessage($property, $getter
<ide> /**
<ide> * Tests deprecated controller properties message
<ide> *
<add> * @group deprecated
<ide> * @param $property Deprecated property name
<ide>... | 1 |
Ruby | Ruby | specify return value of `save!` | 5573b2148469abc730a041a0e06c1afc68a2c5ca | <ide><path>activerecord/lib/active_record/persistence.rb
<ide> def save(*args)
<ide> #
<ide> # Attributes marked as readonly are silently ignored if the record is
<ide> # being updated.
<add> #
<add> # Unless an error is raised, returns true.
<ide> def save!(*args)
<ide> create_or_update(*ar... | 1 |
Ruby | Ruby | fix warning in ac flash | 1c52bca2664457af5c004545f90c1eb3d47c487c | <ide><path>actionpack/lib/action_controller/metal/flash.rb
<ide> def flash #:doc:
<ide>
<ide> protected
<ide> def process_action(method_name)
<add> @_flash = nil
<ide> super
<ide> @_flash.store(session) if @_flash
<ide> @_flash = nil | 1 |
Java | Java | improve shutdown responsiveness of subprotocolwsh | ace6bd2418cba892f793e9e3666ac02a541074c7 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/handler/ConcurrentWebSocketSessionDecorator.java
<ide>
<ide> import org.apache.commons.logging.Log;
<ide> import org.apache.commons.logging.LogFactory;
<del>import org.springframework.util.Assert;
<ide> import org.springframework.web.socket.Close... | 2 |
Javascript | Javascript | remove unused function | 3fc9ab8ffab3345c995d7327fe75ef824349ec63 | <ide><path>static/index.js
<ide> }, false)
<ide> }
<ide>
<del> function isRunningCoreSpecs (loadSettings) {
<del> return !!(loadSettings &&
<del> loadSettings.isSpec &&
<del> loadSettings.specDirectory &&
<del> loadSettings.resourcePath &&
<del> path.dirname(loadSettings.specDirectory) ==... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.