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 |
|---|---|---|---|---|---|
Python | Python | fix integer division in (i)fftshift | 550df270b2daf3eb231e2232269b987d4b6120f4 | <ide><path>numpy/fft/helper.py
<ide> def fftshift(x,axes=None):
<ide> y = tmp
<ide> for k in axes:
<ide> n = tmp.shape[k]
<del> p2 = (n+1)/2
<add> p2 = (n+1)//2
<ide> mylist = concatenate((arange(p2,n),arange(p2)))
<ide> y = take(y,mylist,k)
<ide> return y
<ide> def iff... | 1 |
Javascript | Javascript | fix edgecase with script this context | 979e6e40a88ae2e973c59449a50752ef239bea9d | <ide><path>lib/dependencies/HarmonyImportDependencyParserPlugin.js
<ide> module.exports = class HarmonyImportDependencyParserPlugin {
<ide> parser.state.module.addDependency(dep);
<ide> return true;
<ide> });
<del> if (this.strictThisContextOnImports) {
<del> // only in case when we strictly follow the sp... | 4 |
Text | Text | remove duplicate changelog entry | 7b2d76400591a1f2ed066dfe16b97631ff97d6b0 | <ide><path>CHANGELOG.md
<ide> * [FEATURE] Components and helpers registered on the container can be rendered in templates via their dasherized names. E.g. {{helper-name}} or {{component-name}}
<ide> * [FEATURE] Add a `didTransition` hook to the router.
<ide> * [FEATURE] Add a non-block form link-to helper. E.g {{link-t... | 1 |
Text | Text | add 2.12.0-beta.1 to changelog.md | 885d038a8fb53f899a87ab6c63ef58566cc806f3 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.12.0-beta.1 (January 23, 2017)
<add>
<add>- [#14360](https://github.com/emberjs/ember.js/pull/14360) [FEATURE factory-for] Implement `factoryFor`.
<add>- [#14751](https://github.com/emberjs/ember.js/pull/14751) [DEPRECATION} Deprecate `Ember.K`.
<add>- [... | 1 |
Go | Go | improve error message for copy missing destination | 5d05a8291314b8f727b04b504b8d7fc7ed7f42da | <ide><path>builder/dockerfile/instructions/parse.go
<ide> func parseLabel(req parseRequest) (*LabelCommand, error) {
<ide>
<ide> func parseAdd(req parseRequest) (*AddCommand, error) {
<ide> if len(req.args) < 2 {
<del> return nil, errAtLeastTwoArguments("ADD")
<add> return nil, errNoDestinationArgument("ADD")
<ide>... | 2 |
Ruby | Ruby | prefer strings over regex expressions | 6922ba6cb61e4c833cca0b302bc1cf0f93f7ce93 | <ide><path>actionpack/test/dispatch/debug_exceptions_test.rb
<ide> def raise_nested_exceptions
<ide> def call(env)
<ide> env["action_dispatch.show_detailed_exceptions"] = @detailed
<ide> req = ActionDispatch::Request.new(env)
<add> template = ActionView::Template.new(File.read(__FILE__), __FILE__, ... | 1 |
Javascript | Javascript | fix model accuracy table [ci skip] | bb54f54369be830651658191807c4e8625abb48c | <ide><path>website/src/templates/models.js
<del>import React, { useEffect, useState, useMemo } from 'react'
<add>import React, { useEffect, useState, useMemo, Fragment } from 'react'
<ide> import { StaticQuery, graphql } from 'gatsby'
<ide> import { window } from 'browser-monads'
<ide>
<ide> function formatVectors(dat... | 1 |
Python | Python | pass documents to tensorizer, not 'features' | e37a50a436643c201a7ecb088325c9b94593fabd | <ide><path>spacy/language.py
<ide> def update(self, docs, golds, drop=0., sgd=None, losses=None,
<ide> self._optimizer = Adam(Model.ops, 0.001)
<ide> sgd = self._optimizer
<ide> tok2vec = self.pipeline[0]
<del> feats = tok2vec.doc2feats(docs)
<ide> grads = {}
<ide> ... | 1 |
Ruby | Ruby | remove patch for old jruby versions | 56dbfa8537d8d5b3a316022fb7a9d13794288c51 | <ide><path>activesupport/lib/active_support/core_ext/class/subclasses.rb
<ide> # frozen_string_literal: true
<ide>
<ide> class Class
<del> begin
<del> # Test if this Ruby supports each_object against singleton_class
<del> ObjectSpace.each_object(Numeric.singleton_class) { }
<del>
<del> # Returns an array wit... | 1 |
Go | Go | add wait4 after kill | 30ba7546cb5a1ff7e4915c5a25dd8d72b3bf735b | <ide><path>daemon/execdriver/native/driver.go
<ide> func (d *driver) Terminate(p *execdriver.Command) error {
<ide> }
<ide> if started == currentStartTime {
<ide> err = syscall.Kill(p.Process.Pid, 9)
<add> syscall.Wait4(p.Process.Pid, nil, 0, nil)
<ide> }
<ide> d.removeContainerRoot(p.ID)
<ide> return err | 1 |
PHP | PHP | put str_object back in | 4bee6d1bca5b94155455a26d1db47b6d8654edd7 | <ide><path>laravel/helpers.php
<ide> function str_finish($value, $cap)
<ide> return rtrim($value, $cap).$cap;
<ide> }
<ide>
<add>/**
<add> * Determine if the given object has a toString method.
<add> *
<add> * @param object $value
<add> * @return bool
<add> */
<add>function str_object($value)
<add>{
<add> return is... | 1 |
Javascript | Javascript | release script tweaks | ac0e670545bb85770c71154e93ef17dc6c08e8a4 | <ide><path>scripts/release/build-commands/add-git-tag.js
<ide> const chalk = require('chalk');
<ide> const {execUnlessDry, logPromise} = require('../utils');
<ide>
<ide> const run = async ({cwd, dry, version}) => {
<del> await execUnlessDry(`git tag -a ${version} -m "Tagging ${version} release"`, {
<del> cwd,
<del... | 11 |
Mixed | Javascript | throw error on content-length mismatch | 91020db9333c720ca201dd7a6a3b8d4d505b119c | <ide><path>doc/api/errors.md
<ide> When using [`fs.cp()`][], `src` or `dest` pointed to an invalid path.
<ide>
<ide> <a id="ERR_FS_CP_FIFO_PIPE"></a>
<ide>
<add>### `ERR_HTTP_CONTENT_LENGTH_MISMATCH`
<add>
<add>Response body size doesn't match with the specified content-length header value.
<add>
<add><a id="ERR_HTTP... | 7 |
Python | Python | enable dynamic padding with truncation | 27d0e01d755dc14309617c06eb4d55c246183c98 | <ide><path>examples/text-classification/run_glue.py
<ide> def main():
<ide> # Padding strategy
<ide> if data_args.pad_to_max_length:
<ide> padding = "max_length"
<del> max_length = data_args.max_seq_length
<ide> else:
<ide> # We will pad later, dynamically at batch creation, to the ma... | 1 |
Javascript | Javascript | remove unnecessary copy of modules | 4eecad3a8308720e9d5f608266861e40eb23a56f | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> class ConcatenatedModule extends Module {
<ide> this._numberOfConcatenatedModules = modules.size;
<ide>
<ide> // Graph
<del> const modulesSet = new Set(modules);
<del>
<ide> this.dependencies = [];
<ide>
<ide> this.warnings = [];
<ide> this.errors = [];
<... | 1 |
Ruby | Ruby | remove noise from am tests | 7b58423251344824b58825d5b5e6597cb3e5c21c | <ide><path>actionmailer/test/test_helper_test.rb
<ide> require 'abstract_unit'
<add>require 'active_support/testing/stream'
<ide>
<ide> class TestHelperMailer < ActionMailer::Base
<ide> def test
<ide> def test
<ide> end
<ide>
<ide> class TestHelperMailerTest < ActionMailer::TestCase
<add> include ActiveSupport::Te... | 1 |
Go | Go | fix autorun issue within docker build | ae0d555022411025607acce43ea1929bafd7174a | <ide><path>buildfile.go
<ide> func (b *buildFile) CmdRun(args string) error {
<ide> return err
<ide> }
<ide>
<del> cmd, env := b.config.Cmd, b.config.Env
<add> cmd := b.config.Cmd
<ide> b.config.Cmd = nil
<ide> MergeConfig(b.config, config)
<ide>
<add> utils.Debugf("Commang to be executed: %v", b.config.Cmd)
<ad... | 1 |
Python | Python | improve worker benchmark | f75e9de9a012837369f7ee7f0f5f6b95935a0c5c | <ide><path>funtests/bench/worker.py
<del>import time
<del>
<del>from celery import Celery
<del>
<del>celery = Celery()
<del>celery.conf.update(BROKER_TRANSPORT="memory",
<del> BROKER_POOL_LIMIT=1,
<del> CELERY_PREFETCH_MULTIPLIER=0,
<del> CELERY_DISABLE_RATE_LIMITS=... | 2 |
PHP | PHP | fix cs errors | 59e392c21d6cb218b7d6496431ddcb01d7c7156a | <ide><path>src/Datasource/SimplePaginator.php
<ide> <?php
<add>declare(strict_types=1);
<add>
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide><path>tests/TestCase/Database/QueryTest.php
<ide> public ... | 6 |
Javascript | Javascript | reuse timer in `settimeout().unref()` | 3eecdf9f1422640c7439507cb39ffb3dff57b3e4 | <ide><path>lib/timers.js
<ide> function listOnTimeoutNT(list) {
<ide> }
<ide>
<ide>
<del>const unenroll = exports.unenroll = function(item) {
<add>function reuse(item) {
<ide> L.remove(item);
<ide>
<ide> var list = lists[item._idleTimeout];
<del> // if empty then stop the watcher
<del> debug('unenroll');
<add>... | 2 |
Java | Java | check stomp headers against ending backslash | 18033486aec5de46833a2437026a0494c6485460 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompDecoder.java
<ide> private String unescape(String inString) {
<ide>
<ide> while (index >= 0) {
<ide> sb.append(inString.substring(pos, index));
<add> if((index + 1) >= inString.length()) {
<add> throw new StompConversionE... | 2 |
Text | Text | add punctuation in lines 23, 35, and 83. | 1cbbee03809dbb7251564c4b5f625f4b80946721 | <ide><path>guide/english/css/box-shadow/index.md
<ide> A box shadow can be described with several properties including:
<ide> ```
<ide> * #### inset (default: none)
<ide> If not specified, the shadow is assumed to be a drop shadow (as if the box were raised above the content).
<del>The presence of the `inset` keyword... | 1 |
PHP | PHP | fix comment about bundle caching | a0379ea48d361a02deb9bb1a259a1341f2e192e0 | <ide><path>application/config/application.php
<ide> |
<ide> | All bundles have a "bundle.info" file which contains information such
<ide> | as the name of a bundle and the URIs it responds to. This value is
<del> | the number of that bundle info is cached.
<add> | the number of minutes that bundle info is cached.
<i... | 1 |
Text | Text | add readme for flax clm | d36fce8237eab3af6d717da8530d6edafd045e1e | <ide><path>examples/flax/language-modeling/README.md
<ide> Training statistics can be accessed on [tfhub.de](https://tensorboard.dev/experi
<ide> For a step-by-step walkthrough of how to do masked language modeling in Flax, please have a
<ide> look at [this](https://colab.research.google.com/github/huggingface/noteboo... | 1 |
Javascript | Javascript | add missing license header | d8b6d260c965c154d3a1997e613597a50c140656 | <ide><path>src/utils/__tests__/onlyChild-test.js
<ide> /**
<add> * Copyright 2013 Facebook, Inc.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the License at
<add> *
<add> * http:/... | 1 |
Ruby | Ruby | create etc if it doesn't exist | cf2a8913c57621b8b3e109d55016e26e4f92066c | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def git_etc_preinstall
<ide> def git_etc_postinstall
<ide> return unless quiet_system 'git', '--version'
<ide>
<del> etc = HOMEBREW_PREFIX+'etc'
<ide> preinstall_branch = "#{f.name}-preinstall"
<ide> default_branch = "#{f.name}-default"
<ide> ... | 1 |
Go | Go | add metadata function to layer store | a7e096832123280d26df3c121ecad8dd012060b9 | <ide><path>daemon/container_operations_windows.go
<ide> func (daemon *Daemon) populateCommand(c *container.Container, env []string) erro
<ide> }
<ide> }
<ide>
<del> m, err := layer.RWLayerMetadata(daemon.layerStore, c.ID)
<add> m, err := daemon.layerStore.Metadata(c.ID)
<ide> if err != nil {
<ide> return derr.Er... | 7 |
Text | Text | update version number | 5b082ca65cd460c4ace9267be61e9f33143ff1c5 | <ide><path>README.md
<ide> recommend using the [app skeleton](https://github.com/cakephp/app) as
<ide> a starting point. For existing applications you can run the following:
<ide>
<ide> ``` bash
<del>$ composer require cakephp/cakephp:"~3.4"
<add>$ composer require cakephp/cakephp:"~3.5"
<ide> ```
<ide>
<ide> ## Runn... | 1 |
Javascript | Javascript | improve output for tobemarkedasselected | 4b06637f703d2a94baedfda64a8e3ac8eea26403 | <ide><path>test/helpers/matchers.js
<ide> beforeEach(function() {
<ide> return {
<ide> compare: function(actual) {
<ide> var errors = [];
<add> var optionVal = toJson(actual.value);
<add>
<ide> if (actual.selected === null || typeof actual.selected === 'undefined' || actual.se... | 1 |
Ruby | Ruby | move optimize_helper? to the helper instance | d783ba2029bf523faae7d5a53ccfabeffaf3ff6c | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def self.create(route, options)
<ide> end
<ide>
<ide> def initialize(route, options)
<del> @options = options
<add> @options = options
<ide> @segment_keys = route.segment_keys
<add>... | 1 |
Python | Python | update error messages for legacy_rnn code | a99929176052e0c98cf3c7916d12b88633cab535 | <ide><path>keras/layers/legacy_rnn/rnn_cell_impl.py
<ide> def _concat(prefix, suffix, static=False):
<ide> if p.shape.ndims == 0:
<ide> p = tf.compat.v1.expand_dims(p, 0)
<ide> elif p.shape.ndims != 1:
<del> raise ValueError("prefix tensor must be either a scalar or vector, "
<del> ... | 2 |
PHP | PHP | add required uses to template | d5012f0e331578b72262cc05519e90df76c64436 | <ide><path>lib/Cake/Console/Templates/skel/Model/AppModel.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide>
<add>App::uses('Model', 'Model');
<add>
<ide> /**
<ide> * Application model for Cake.
<ide> * | 1 |
Javascript | Javascript | update code style | 5ab4aa1c53b498f4f99d1dccfa293c8e24cb1bcb | <ide><path>editor/js/Sidebar.Object.js
<ide> Sidebar.Object = function ( editor ) {
<ide> var cameraViewRow = new UI.Row().setDisplay( editor.selected !== null && editor.selected.isCamera ? 'block' : 'none' );
<ide> container.add( cameraViewRow );
<ide>
<del> cameraViewRow.add( new UI.Text(strings.getKey( 'sidebar/o... | 4 |
PHP | PHP | apply fixes from styleci | 7c23b7479e734eb22fa2befeaf9738876891c48a | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide> public function link($target, $link)
<ide>
<ide> $mode = $this->isDirectory($target) ? 'J' : 'H';
<ide>
<del> exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($target));
<add> exec("mklink /{$mode} ".escapeshellarg($link).... | 1 |
Mixed | Ruby | add expression support on the schema default | 5fd30ac52d9f8fcdba98b92cdb82868f6686596c | <ide><path>activerecord/CHANGELOG.md
<add>* Add expression support on the schema default.
<add>
<add> Example:
<add>
<add> create_table :posts do |t|
<add> t.datetime :published_at, default: -> { 'NOW()' }
<add> end
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Fix regression when loading ... | 8 |
Javascript | Javascript | improve assert message in internet test | 9960e53c5490c5ec678ea8e5095cb8ca76b641fc | <ide><path>test/internet/test-dgram-broadcast-multi-process.js
<ide> if (process.argv[2] !== 'child') {
<ide> worker.pid,
<ide> count);
<ide>
<del> assert.strictEqual(
<del> count,
<del> messages.length,
<del> ... | 1 |
Ruby | Ruby | create separate middleware stack for initializer | b0506b086fa1b59b072aaf7de99f01846fce10a4 | <ide><path>railties/lib/rails/configuration.rb
<ide> def framework_root_path
<ide> defined?(::RAILS_FRAMEWORK_ROOT) ? ::RAILS_FRAMEWORK_ROOT : "#{root_path}/vendor/rails"
<ide> end
<ide>
<del> # TODO: Fix this when there is an application object
<ide> def middleware
<del> require 'action_controll... | 3 |
PHP | PHP | fix code style | 81e3c2378fecf7a7861d31f41ec665fecc65ebf7 | <ide><path>src/Illuminate/Notifications/Messages/SlackAttachment.php
<ide> public function footer($footer)
<ide> public function footerIcon($icon)
<ide> {
<ide> $this->footerIcon = $icon;
<add>
<ide> return $this;
<ide> }
<ide> | 1 |
Python | Python | remove unused imports | 5d9212c44cd659003c9de2c642f049c6da7f4ca8 | <ide><path>spacy/lang/id/tag_map.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from ...symbols import POS, PUNCT, SYM, ADJ, CCONJ, NUM, DET, ADV, ADP, X, VERB
<del>from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON, AUX, SCONJ
<add>from ...symbols import POS, PUNCT, ADJ, CCO... | 1 |
Javascript | Javascript | fix colour settings of beforelabel and beforebody | 0bd0654efb4a19f192a485d88daadbe8ee2f44c0 | <ide><path>src/core/core.tooltip.js
<ide> module.exports = function(Chart) {
<ide> };
<ide>
<ide> // Before body lines
<add> ctx.fillStyle = mergeOpacity(vm.bodyFontColor, opacity);
<ide> helpers.each(vm.beforeBody, fillLineOfText);
<ide>
<ide> var drawColorBoxes = vm.displayColors;
<ide> xLinePaddin... | 1 |
Javascript | Javascript | fix next challenge unknown bug | ca01115674172a6a12ef6086256fc16dbd7e9db5 | <ide><path>server/boot/challenge.js
<ide> import _ from 'lodash';
<ide> import moment from 'moment';
<del>import R from 'ramda';
<ide> import { Observable } from 'rx';
<ide> import assign from 'object.assign';
<ide> import debugFactory from 'debug';
<ide> import {
<ide> } from '../utils/middleware';
<ide>
<ide> const ... | 1 |
Javascript | Javascript | fix lint errors | a6999e4a823a674010f97fc86771a565b9292758 | <ide><path>src/lines-tile-component.js
<ide> module.exports = class LinesTileComponent {
<ide> for (const lineId of Object.keys(this.newTileState.lines)) {
<ide> const oldLineState = this.oldTileState.lines[lineId]
<ide> const newLineState = this.newTileState.lines[lineId]
<del> const lineNode = th... | 2 |
Ruby | Ruby | treat utc times nicer | 637642c8b85707779af45f80a104dd84be6a904d | <ide><path>activesupport/lib/active_support/core_ext/time/calculations.rb
<ide> def seconds_since_midnight
<ide> # Returns a new Time where one or more of the elements have been changed according to the +options+ parameter. The time options
<ide> # (hour, minute, sec, usec) reset cascadingly, so if only... | 2 |
PHP | PHP | fix condition to work better on sqlserver | 4278aac5d18fffe29c98ba767d7e854e23097cbd | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testCastResults()
<ide> ->select(['a' => 'id'])
<ide> ->from('profiles')
<ide> ->setSelectTypeMap($typeMap)
<del> ->where(['id' => 1])
<add> ->where(['user_id' => 1])
<ide> ->exec... | 1 |
Go | Go | remove unnescessary conversions | 2c31edbbb64aa86e76aed60d48fec4eb530cf9f6 | <ide><path>daemon/graphdriver/devmapper/devmapper_test.go
<ide> func initLoopbacks() error {
<ide> // only create new loopback files if they don't exist
<ide> if _, err := os.Stat(loopPath); err != nil {
<ide> if mkerr := syscall.Mknod(loopPath,
<del> uint32(statT.Mode|syscall.S_IFBLK), int((7<<8)|(i&0xff)|((... | 9 |
Python | Python | add compat shim for sqlalchemy to avoid warnings | aa8bffdb4e2daa0d086f79382cf001e2ef6dcb62 | <ide><path>airflow/compat/sqlalchemy.py
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licenses this file
<add># to you under... | 15 |
Text | Text | add reference to ndppd | b1a1cff368e7b7e4c6ad198cf53561d4edf50d38 | <ide><path>docs/sources/articles/networking.md
<ide> device to the container network:
<ide>
<ide> You have to execute the `ip -6 neigh add proxy ...` command for every IPv6
<ide> address in your Docker subnet. Unfortunately there is no functionality for
<del>adding a whole subnet by executing one command.
<add>adding ... | 1 |
Go | Go | keep info.securityoptions a string slice | 514ca09426e5d023753101ffa6ac3a21b0e0efb5 | <ide><path>api/server/router/system/system_routes.go
<ide> import (
<ide> "github.com/docker/docker/api/types/registry"
<ide> timetypes "github.com/docker/docker/api/types/time"
<ide> "github.com/docker/docker/api/types/versions"
<del> "github.com/docker/docker/api/types/versions/v1p24"
<ide> "github.com/docker/doc... | 8 |
Go | Go | fix race condition on container stop | 29bdcaf3cfe0f4bfeed9f7f59ca8f6ad2f41dfd9 | <ide><path>daemon/container.go
<ide> func (container *Container) Kill() error {
<ide>
<ide> // 1. Send SIGKILL
<ide> if err := container.killPossiblyDeadProcess(9); err != nil {
<del> return err
<add> // While normally we might "return err" here we're not going to
<add> // because if we can't stop the container b... | 1 |
Ruby | Ruby | use magic number for adobe air | 04e97e82db43d085bfc73e8e46e52634aabe0d53 | <ide><path>Library/Homebrew/unpack_strategy/air.rb
<ide> class Air
<ide> using Magic
<ide>
<ide> def self.can_extract?(path)
<del> path.extname == ".air"
<add> mime_type = "application/vnd.adobe.air-application-installer-package+zip"
<add> path.magic_number.match?(/.{59}#{Regexp.escape(mime_type... | 1 |
Ruby | Ruby | fix java_home on macos | d6bba1c4938ea9c9a9d58ba2f209775dd71a8537 | <ide><path>Library/Homebrew/extend/os/language/java.rb
<add># typed: strict
<add># frozen_string_literal: true
<add>
<add>require "extend/os/mac/language/java" if OS.mac?
<ide><path>Library/Homebrew/extend/os/mac/language/java.rb
<add># typed: true
<add># frozen_string_literal: true
<add>
<add>module Language
<add> mo... | 3 |
Ruby | Ruby | use curl to download hermes tarball | 5ff7f809dc9eb9adb707c11c8c9ffb98b2658aa5 | <ide><path>scripts/react_native_pods.rb
<ide> def downloadAndConfigureHermesSource(react_native_path)
<ide> end
<ide>
<ide> hermes_tarball_url = hermes_tarball_base_url + hermes_tag
<del> # GitHub does not provide a last-modified header, so we cannot rely on wget's --timestamping
<ide> hermes_tag_sha = %x[git l... | 1 |
Javascript | Javascript | remove optimistic update | d172edecf77610f6e426d128d11b659260dd62e5 | <ide><path>common/app/routes/Hikes/flux/Actions.js
<ide> export default Actions({
<ide> }
<ide>
<ide> // challenge completed
<del> const optimisticSave = isSignedIn ?
<del> this.post$('/completed-challenge', { id, name, challengeType }) :
<del> Observable.just(true);
<add> let update$;
<add> ... | 1 |
Text | Text | fix spelling and proper nouns | e50719332e691c97aaae8d3103407d6db2a789ee | <ide><path>guides/source/asset_pipeline.md
<ide> the comment operator on that line to later enable the asset pipeline:
<ide>
<ide> To set asset compression methods, set the appropriate configuration options
<ide> in `production.rb` - `config.assets.css_compressor` for your CSS and
<del>`config.assets.js_compressor` fo... | 2 |
Python | Python | expose classes used in documentation | e817747941c75c8e14f0e93755ec648269f8a14d | <ide><path>src/transformers/__init__.py
<ide> from .tokenization_roberta import RobertaTokenizer, RobertaTokenizerFast
<ide> from .tokenization_t5 import T5Tokenizer
<ide> from .tokenization_transfo_xl import TransfoXLCorpus, TransfoXLTokenizer, TransfoXLTokenizerFast
<del>from .tokenization_utils import PreTrainedToke... | 1 |
Python | Python | clarify rcond normalization in linalg.pinv | 3f22c3e0565561874298be33e129397c32c7e8a1 | <ide><path>numpy/linalg/linalg.py
<ide> def pinv(a, rcond=1e-15, hermitian=False):
<ide> Matrix or stack of matrices to be pseudo-inverted.
<ide> rcond : (...) array_like of float
<ide> Cutoff for small singular values.
<del> Singular values smaller (in modulus) than
<del> `rcond` * la... | 1 |
Python | Python | fix small typo | b23e873e0fcca3aab6eec829caa43d4bff5a9379 | <ide><path>keras/callbacks.py
<ide> class CSVLogger(Callback):
<ide> model.fit(X_train, Y_train, callbacks=[csv_logger])
<ide> ```
<ide>
<del> Arguments
<add> # Arguments
<ide> filename: filename of the csv file, e.g. 'run/log.csv'.
<ide> separator: string used to separate ele... | 1 |
Javascript | Javascript | add known_issues test for gh-2148 | 33c27f8fcffd7b0c6d609fdd4503b4f7a3c45bcd | <ide><path>test/known_issues/test-stdout-buffer-flush-on-exit.js
<add>'use strict';
<add>// Refs: https://github.com/nodejs/node/issues/2148
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const execSync = require('child_process').execSync;
<add>
<add>const longLine = 'foo bar baz quux quuz... | 1 |
Javascript | Javascript | fix hijackstdout behavior in console | 1ffd01cf7fbf66b1bd9bdf5ae6630cdf228f0a3b | <ide><path>test/common/index.js
<ide> function hijackStdWritable(name, listener) {
<ide>
<ide> stream.writeTimes = 0;
<ide> stream.write = function(data, callback) {
<del> listener(data);
<add> try {
<add> listener(data);
<add> } catch (e) {
<add> process.nextTick(() => { throw e; });
<add> }... | 2 |
Java | Java | add retrywhen example to javadoc | a78f0f5e81b03ab948bf57b9db43c18b0a15fc7d | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public final Observable<T> retry(Func2<Integer, Throwable, Boolean> predicate) {
<ide> * <img width="640" height="430" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/retryWhen.f.png" alt="">
<ide> * <p>
<ide> * {@code retr... | 1 |
Javascript | Javascript | support new flare hook, unstable_uselistener | 270f34f7f0e1d121c340937fe3302908ec117e3d | <ide><path>src/backend/ReactDebugHooks.js
<ide>
<ide> import ErrorStackParser from 'error-stack-parser';
<ide>
<add>import type { ReactContext, ReactEventResponder } from './types';
<add>
<ide> type Fiber = any;
<ide> type Hook = any;
<ide>
<ide> type HookLogEntry = {
<ide> value: mixed,
<ide> };
<ide>
<add>const... | 2 |
Java | Java | introduce eventbeatmanager and enable events | 9e7d918365baa5bc7da769b555381d6f7f7f05a4 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java
<ide> /**
<ide> * Copyright (c) Facebook, Inc. and its affiliates.
<ide> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<add> * <p>This source c... | 4 |
Ruby | Ruby | remove unnecessary initializers | 94d81c3c39e3ddc441c3af3f874e53b197cf3f54 | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> end
<ide> end
<ide> end
<del>
<del> initializer "active_record.use_yaml_unsafe_load" do |app|
<del> config.after_initialize do
<del> unless app.config.active_record.use_yaml_unsafe_... | 1 |
Ruby | Ruby | send cookies with request | ae29142142324545a328948e059e8b8118fd7a33 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def determine_default_controller_class(name)
<ide> # Note that the request method is not verified. The different methods are
<ide> # available to make the tests more expressive.
<ide> def get(action, *args)
<del> process_with_kwargs... | 3 |
Ruby | Ruby | show line number for whitespace | af4aff8c13ffd952ce6217616fae02d9f27c0c89 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_text
<ide> end
<ide> end
<ide>
<del> def audit_line(line)
<add> def audit_line(line, lineno)
<ide> if line =~ /<(Formula|AmazonWebServicesFormula|ScriptFileFormula|GithubGistFormula)/
<ide> problem "Use a space in class inheritance: class Foo <... | 1 |
Ruby | Ruby | reduce extra object creations in taggedlogging | ac93e7b5c192c39cfc224a1259a68c3b1e7bf0aa | <ide><path>activesupport/lib/active_support/tagged_logging.rb
<ide> def current_tags
<ide>
<ide> def tags_text
<ide> tags = current_tags
<del> if tags.any?
<add> if tags.one?
<add> "[#{tags[0]}] "
<add> elsif tags.any?
<ide> tags.collect { |tag| "[#{tag}] " }.join
... | 1 |
Ruby | Ruby | resolve conflict in diagnostic.rb | 9a29a306cfd6b116a0cb696ce56bd7bc7679a8e3 | <ide><path>Library/Homebrew/cmd/--env.rb
<ide>
<ide> require "extend/ENV"
<ide> require "build_environment"
<add>require "utils/shell"
<ide>
<ide> module Homebrew
<ide> def __env
<ide> def __env
<ide> ENV.setup_build_environment
<ide> ENV.universal_binary if ARGV.build_universal?
<ide>
<del> if $stdout.... | 7 |
Python | Python | replace assert with assert_(...) in some tests | bb959e1857c3ba2ad98ab87f13fdcc6b43740ffb | <ide><path>numpy/core/tests/test_datetime.py
<ide> def test_setstate(self):
<ide> "Verify that datetime dtype __setstate__ can handle bad arguments"
<ide> dt = np.dtype('>M8[us]')
<ide> assert_raises(ValueError, dt.__setstate__, (4, '>', None, None, None, -1, -1, 0, 1))
<del> assert (dt._... | 13 |
Python | Python | fix a couple of `pytest` id labels | 705c54c688bf1bdf5562624b8971c228faaed675 | <ide><path>numpy/lib/tests/test_nanfunctions.py
<ide> def test_result_values(self):
<ide> @pytest.mark.parametrize("axis", [None, 0, 1])
<ide> @pytest.mark.parametrize("dtype", np.typecodes["AllFloat"])
<ide> @pytest.mark.parametrize("array", [
<del> np.full((3, 3), np.nan),
<ide> np.array(np... | 1 |
PHP | PHP | remove extra whitespace | 8e5b9e347675d9f7d5d0d9d495e6e631202d7575 | <ide><path>src/I18n/RelativeTimeFormatter.php
<ide> public function timeAgoInWords(array $options = [])
<ide>
<ide> $relativeDate = [];
<ide> if ($fNum >= 1 && $years > 0) {
<del> $relativeDate[] = __dn('cake', '{0} year', '{0} years', $years, $years);
<add> $relativeDate[] = __d... | 1 |
Ruby | Ruby | fix inspect with non-primary key id attribute | 65cd0fda2572ac9c78d8582496a9009d0c48df08 | <ide><path>activerecord/lib/active_record/attribute_methods.rb
<ide> def attributes
<ide> # person.attribute_for_inspect(:tag_ids)
<ide> # # => "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]"
<ide> def attribute_for_inspect(attr_name)
<del> value = read_attribute(attr_name)
<add> value = _read_attribute... | 5 |
Javascript | Javascript | handle division by zero in partition | 9579eedc3e57748a160e86373acd8dc90a50fde3 | <ide><path>src/layout/partition.js
<ide> d3.layout.partition = function() {
<ide> n = children.length,
<ide> c,
<ide> d;
<del> dx /= node.value;
<add> dx = node.value === 0
<add> ? 0 : dx / node.value;
<ide> while (++i < n) {
<ide> position(c = children[i], x... | 1 |
Ruby | Ruby | avoid two method calls | 68a949bae7408dafdfdd28b6c1de25d5348e64c7 | <ide><path>activerecord/lib/active_record/relation/spawn_methods.rb
<ide> def merge(r)
<ide>
<ide> ((Relation::ASSOCIATION_METHODS + Relation::MULTI_VALUE_METHODS) - [:joins, :where]).each do |method|
<ide> value = r.send(:"#{method}_values")
<del> if value.present?
<add> unless value.empty... | 1 |
Python | Python | remove eagerloading when querying for ti | 9eae83c1386523e5fc9e8f0e93840330d4d988d0 | <ide><path>airflow/api_connexion/endpoints/log_endpoint.py
<ide> from flask import Response, current_app, request
<ide> from itsdangerous.exc import BadSignature
<ide> from itsdangerous.url_safe import URLSafeSerializer
<del>from sqlalchemy.orm import eagerload
<ide>
<ide> from airflow.api_connexion import security
<i... | 5 |
PHP | PHP | update main descrition | d492c86ddc7f9c072d286491d8eef729f645a37d | <ide><path>lib/Cake/Console/Command/TestShell.php
<ide> public function getOptionParser() {
<ide> $parser = new ConsoleOptionParser($this->name);
<ide> $parser->description(array(
<ide> __d('cake_console', 'The CakePHP Testsuite allows you to run test cases from the command line'),
<del> ))->addArgument('catego... | 1 |
PHP | PHP | fix bug in migration table builder | e943b3da84ab556f0176eea73387cd14fa07933e | <ide><path>src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php
<ide> public function repositoryExists()
<ide> {
<ide> $schema = $this->getConnection()->getSchemaBuilder();
<ide>
<del> $prefix = $this->getConnection()->getTablePrefix();
<del>
<del> return $schema->hasTable($prefix.$this->table);
<ad... | 1 |
Javascript | Javascript | add news link to nav (#261) | 5024e69b69f53574457f884d2e95a3789bb3ca74 | <ide><path>packages/learn/src/components/Header/index.js
<ide> function Header() {
<ide> return (
<ide> <header>
<ide> <nav id='top-nav'>
<del> <a className='home-link' href='https://freecodecamp.org'>
<add> <a className='home-link' href='https://www.freecodecamp.org'>
<ide> <NavLogo... | 1 |
Javascript | Javascript | add the type1 subrs into the cff local subrs index | 7bc26ba12765742817c3ea810d90bd796230cce2 | <ide><path>fonts.js
<ide> CFF.prototype = {
<ide> "hlineto": 6,
<ide> "vlineto": 7,
<ide> "rrcurveto": 8,
<add> "callsubr": 10,
<add> "return": 11,
<ide> "endchar": 14,
<ide> "rmoveto": 21,
<ide> "hmoveto": 22,
<ide> "vhcurveto": 30,
<ide> "hvcurveto": 31,
<ide> },
<ide>
<del> ... | 1 |
Javascript | Javascript | use a polyfill when math.log10 does not exist | 29743e1d63353008d53276cce6db962c636d6c39 | <ide><path>src/Chart.Core.js
<ide> return x > 0 ? 1 : -1;
<ide> }
<ide> },
<add> log10 = helpers.log10 = function(x) {
<add> if (Math.log10) {
<add> return Math.log10(x)
<add> } else {
<add> return Math.log(x) / Math.LN10;
<a... | 1 |
Text | Text | add oculus go/quest to supported platforms | 19f2317e46ec56d971adae5793ae9518830f10b5 | <ide><path>guide/english/game-development/unity/index.md
<ide> For 3D games, Unity allows specification of texture compression and resolution s
<ide>
<ide> Unity also offers services to developers, these are: Unity Ads, Unity Analytics, Unity Certification, Unity Cloud Build, Unity Everyplay, Unity IAP, Unity Multipla... | 1 |
Ruby | Ruby | add stable checksum to the json api | cc78b155c6f1ced33b864f21613f29b235ca1c7a | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "url" => stable.url,
<ide> "tag" => stable.specs[:tag],
<ide> "revision" => stable.specs[:revision],
<add> "checksum" => stable.checksum&.to_s,
<ide> }
<ide>
<ide> hsh["bottle"]["stable"] = bottle_hash i... | 2 |
Python | Python | add regression test for fromstring | 5af6ff3a240fa44e28a1630414ec69a0780aaa20 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_mem_scalar_indexing(self, level=rlevel):
<ide> def check_binary_repr_0_width(self, level=rlevel):
<ide> assert_equal(np.binary_repr(0,width=3),'000')
<ide>
<add> def check_fromstring(self, level=rlevel):
<add> assert_equal(np.fromstri... | 1 |
Javascript | Javascript | remove unused method | 3cf2f45290dfb6529554c57a854cbf5bfd957eb0 | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> ${defineGetters}`
<ide> }
<ide> }
<ide>
<del> /**
<del> * @param {ChunkGraph} chunkGraph the chunk graph
<del> * @param {DependencyTemplates} dependencyTemplates dependency templates
<del> * @param {RuntimeSpec} runtime the runtime
<del> * @returns {string} ha... | 1 |
Ruby | Ruby | add go@1.13 to binary urls whitelist | 79811537fbef39b2efad2036544e0bfdc33da278 | <ide><path>Library/Homebrew/rubocops/urls.rb
<ide> class Urls < FormulaCop
<ide> go@1.10
<ide> go@1.11
<ide> go@1.12
<add> go@1.13
<ide> haskell-stack
<ide> ldc
<ide> mlton | 1 |
Ruby | Ruby | remove unused use_sprockets config | cb85d70d61705381a57cb99d8dcd4d7083f0a143 | <ide><path>actionpack/lib/abstract_controller/asset_paths.rb
<ide> module AssetPaths
<ide> extend ActiveSupport::Concern
<ide>
<ide> included do
<del> config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir, :use_sprockets
<add> config_accessor :asset_host, :asset_pa... | 2 |
Javascript | Javascript | prevent workers outliving parent | 4d896c44f3a0b5f824a4d2971d96b29f3df69e23 | <ide><path>test/sequential/test-child-process-pass-fd.js
<ide> if (process.argv[2] !== 'child') {
<ide> process.send('handle', socket);
<ide> }
<ide>
<add> // As a side-effect, listening for the message event will ref the IPC channel,
<add> // so the child process will stay alive as long as it has a parent p... | 1 |
Python | Python | clarify table contents in cond docstring | adea1d4fd4e1638f74bf1c8bc48b06992d569c7b | <ide><path>numpy/linalg/linalg.py
<ide> def cond(x, p=None):
<ide> x : (..., M, N) array_like
<ide> The matrix whose condition number is sought.
<ide> p : {None, 1, -1, 2, -2, inf, -inf, 'fro'}, optional
<del> Order of the norm:
<add> Order of the norm used in the condition number computat... | 1 |
Python | Python | copy loss and metric to prevent side effect | 5cc435810de326ee549c53e10ac014d676e37447 | <ide><path>keras/engine/compile_utils.py
<ide> def __init__(self, losses, loss_weights=None, output_names=None):
<ide> self._user_losses = losses
<ide> self._user_loss_weights = loss_weights
<ide>
<del> self._losses = losses
<add> self._losses = copy.copy(losses)
<ide> self._loss_weights = loss_weigh... | 2 |
Java | Java | fix user destination parsing in simp messaging | 75c70fac3d77b4a9b81fb95b46309636ffdd3d76 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/user/DefaultUserDestinationResolver.java
<ide> else if (SimpMessageType.MESSAGE.equals(messageType)) {
<ide> subscribeDestination = this.destinationPrefix.substring(0, startIndex-1) + destinationWithoutPrefix;
<ide> user = destination.su... | 2 |
Python | Python | add 1.8 support | 8f25c0c53c24c88afc86d99bbb3ca4edc3a4e0a2 | <ide><path>rest_framework/serializers.py
<ide> """
<ide> from __future__ import unicode_literals
<ide> from django.db import models
<del>from django.db.models.fields import FieldDoesNotExist
<add>from django.db.models.fields import FieldDoesNotExist, Field as DjangoModelField
<ide> from django.utils.translation import ... | 1 |
Python | Python | remove leftover statement | 087505280da48ced19435ec65630015bb31d2648 | <ide><path>celery/concurrency/processes/pool.py
<ide> def on_state_change(task):
<ide> on_state_change(task)
<ide> join_exited_workers()
<ide>
<del> job, i, obj = task
<del> try:
<del> cache[job]._set(i, obj)
<del> except KeyError:
<del> ... | 1 |
PHP | PHP | fake() assertions | 5783f4a741a537aaee9845fb725e9eb9941ce376 | <ide><path>src/Illuminate/Support/Testing/Fakes/QueueFake.php
<ide> namespace Illuminate\Support\Testing\Fakes;
<ide>
<ide> use BadMethodCallException;
<add>use Closure;
<ide> use Illuminate\Contracts\Queue\Queue;
<ide> use Illuminate\Queue\QueueManager;
<add>use Illuminate\Support\Traits\ReflectsClosures;
<ide> use P... | 2 |
Text | Text | add michaël zasso to release team | 55e597d30658d34388eaeb2248b87ad76b338dff | <ide><path>README.md
<ide> Node.js releases are signed with one of the following GPG keys:
<ide> `71DCFD284A79C3B38668286BC97EC7A07EDE3FC1`
<ide> * **Jeremiah Senkpiel** <fishrock@keybase.io>
<ide> `FD3A5288F042B6850C66B31F09FE44734EB7990E`
<add>* **Michaël Zasso** <targos@protonmail.com>
<add>`8FCCA13FEF1D... | 1 |
Javascript | Javascript | add color support for mosh | 70abb4ffe40c8526c5415c02c20b7b3a3cdbacd2 | <ide><path>lib/internal/tty.js
<ide> const TERM_ENVS = {
<ide> 'konsole': COLORS_16,
<ide> 'kterm': COLORS_16,
<ide> 'mlterm': COLORS_16,
<add> 'mosh': COLORS_16m,
<ide> 'putty': COLORS_16,
<ide> 'st': COLORS_16,
<ide> // https://github.com/da-x/rxvt-unicode/tree/v9.22-with-24bit-color | 1 |
Javascript | Javascript | log error in test-fs-realpath-pipe | 8aea8861e926519e1571fbbe1f269e9cc7342286 | <ide><path>test/parallel/test-fs-realpath-pipe.js
<ide> const { spawnSync } = require('child_process');
<ide> for (const code of [
<ide> `require('fs').realpath('/dev/stdin', (err, resolvedPath) => {
<ide> if (err) {
<add> console.error(err);
<ide> process.exit(1);
<ide> }
<ide> if (resolvedPat... | 1 |
Python | Python | fix force_download of files on windows | 9384e5f6de150e7c7c9c8de27698a7de59a37a85 | <ide><path>src/transformers/file_utils.py
<ide> def _resumable_file_manager():
<ide> http_get(url, temp_file, proxies=proxies, resume_size=resume_size, user_agent=user_agent)
<ide>
<ide> logger.info("storing %s in cache at %s", url, cache_path)
<del> os.rename(temp_file.name, cache_path)... | 1 |
Mixed | Javascript | create shared runbenchmark function | 640b20616d2cdc46bc3df8703cdc1395578ff1b3 | <ide><path>test/common/README.md
<ide> This directory contains modules used to test the Node.js implementation.
<ide>
<ide> ## Table of Contents
<ide>
<add>* [Benchmark module](#benchmark-module)
<ide> * [Common module API](#common-module-api)
<ide> * [WPT module](#wpt-module)
<ide>
<add>## Benchmark Module
<add>
<a... | 16 |
PHP | PHP | reduce duplication in tests | ee010dd5eed8f7fec3b6be6958fc4a93e1f24f30 | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testTruthy()
<ide> $this->assertFalse(Validation::truthy('0'));
<ide> $this->assertFalse(Validation::truthy('false'));
<ide>
<del> $this->assertTrue(Validation::truthy(1));
<del> $this->assertTrue(Validation::tr... | 1 |
Javascript | Javascript | show deprecation warning when using didinitattrs | 3f7bc1523cf6723d0e2c88acd1f8952c945a3588 | <ide><path>packages/ember-htmlbars/tests/integration/component_lifecycle_test.js
<ide> styles.forEach(style => {
<ide> twitter: '@tomdale'
<ide> }).create();
<ide>
<del> runAppend(view);
<add> expectDeprecation(() => {
<add> runAppend(view);
<add> }, /\[DEPRECATED\] didInitAttrs called in <\(su... | 4 |
Ruby | Ruby | add system tests to generate scaffold | d502cd1a5024743b3891592c73538d4e446bbd98 | <ide><path>railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb
<ide> class ScaffoldGenerator < ResourceGenerator # :nodoc:
<ide> def handle_skip
<ide> @options = @options.merge(stylesheets: false) unless options[:assets]
<ide> @options = @options.merge(stylesheet_engine: false) unle... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.