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 |
|---|---|---|---|---|---|
Text | Text | move word 'example' to correct position | 492ddcf6bd13a50e7a43055a2db527c10361cf28 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/kaprekar-numbers.md
<ide> A positive integer is a [Kaprekar number](<https://en.wikipedia.org/wiki/Kapreka
<ide> <li>The decimal representation of its square may be split once into two parts consisting of positive integers which sum to the... | 1 |
Text | Text | update minimum glibc requirements for linux | 3671cc043233d9e75994ce17abb050ee0581dce0 | <ide><path>BUILDING.md
<ide> Node.js does not support a platform version if a vendor has expired support
<ide> for it. In other words, Node.js does not support running on End-of-Life (EoL)
<ide> platforms. This is true regardless of entries in the table below.
<ide>
<del>| Operating System | Architectures | Version... | 1 |
Javascript | Javascript | shorten the sha | 78be517727674d1e0a208e3e144eac8840d653e7 | <ide><path>src/traversing.js
<ide> jQuery.each({
<ide> jQuery.fn[ name ] = function( until, selector ) {
<ide> var ret = jQuery.map( this, fn, until ),
<ide> // The variable 'args' was introduced in
<del> // https://github.com/jquery/jquery/commit/52a02383fa521c51d9996a46f03a7080dd825f... | 1 |
Python | Python | fix exception thrown using mishactivation | baa00f65aeb7467075c87c9f769784ac3b86e94c | <ide><path>src/transformers/activations.py
<ide> class MishActivation(nn.Module):
<ide>
<ide> def __init__(self):
<ide> super().__init__()
<del> if version.parse(version.parse(torch.__version__).base_version) < version.parse("1.9"):
<add> if version.parse(torch.__version__) < version.parse("1... | 1 |
Python | Python | fix resnet xla with multi-gpus | 6dea4846eba601af35a2f741a839659f4ddfe61c | <ide><path>official/resnet/keras/keras_imagenet_main.py
<ide> def run(flags_obj):
<ide> optimizer, loss_scale=flags_core.get_loss_scale(flags_obj))
<ide>
<ide> if flags_obj.enable_xla:
<del> if strategy:
<del> per_replica_batch_size = (
<del> flags_obj.batch_size // strategy.nu... | 1 |
Python | Python | fix bigquerytomssqloperator documentation | 5c3e4538208cc317e6e45ae7b247e7fb83840f49 | <ide><path>airflow/providers/google/cloud/transfers/bigquery_to_mssql.py
<ide> class BigQueryToMsSqlOperator(BaseOperator):
<ide>
<ide> transfer_data = BigQueryToMsSqlOperator(
<ide> task_id='task_id',
<del> dataset_table='origin_bq_table',
<add> source_project_dataset_table='m... | 1 |
Java | Java | add support for generating class names | ca2b5e068bbecaac9f4170bc7c17d83008900f4d | <ide><path>spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<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>... | 2 |
Text | Text | add floret to static vectors docs | 7ce3460b23ea7fb7cf9fc905a4e68d71057443e6 | <ide><path>website/docs/usage/embeddings-transformers.md
<ide> models, which can **improve the accuracy** of your components.
<ide> Word vectors in spaCy are "static" in the sense that they are not learned
<ide> parameters of the statistical models, and spaCy itself does not feature any
<ide> algorithms for learning wo... | 1 |
Text | Text | clarify tier 2 implications in building.md | 76cbb6628c302119fbace82142d6be0a08b569de | <ide><path>BUILDING.md
<ide> There are three support tiers:
<ide> Test failures on tier 1 platforms will block releases.
<ide> * **Tier 2**: These platforms represent smaller segments of the Node.js user
<ide> base. The Node.js Build Working Group maintains infrastructure for full test
<del> coverage. Test failure... | 1 |
Python | Python | halve the memory requirement of np.cov | 881849c5385524ceafc462d230960463a01e47a6 | <ide><path>numpy/lib/function_base.py
<ide> def cov(m, y=None, rowvar=1, bias=0, ddof=None, fweights=None, aweights=None):
<ide> X_T = X.T
<ide> else:
<ide> X_T = (X*w).T
<del> return (dot(X, X_T.conj())/fact).squeeze()
<add> c = dot(X, X_T.conj())
<add> c /= fact
<add> return c.squeeze(... | 1 |
Python | Python | add dependency patterns example | 1b64a44d85e542c62ddeaf1f89622dcf3fa72229 | <ide><path>examples/dependency_patterns.py
<add>'''
<add>Match a dependency pattern. See https://github.com/explosion/spaCy/pull/1120
<add>
<add>We start by creating a DependencyTree for the Doc. This class models the document
<add>dependency tree. Then we compile the query into a Pattern using the PatternParser.
<add>... | 1 |
Text | Text | add missing curly brace in nativemodulesios.md | 484e6403b3b60743bc780727a7d7a32c4b726afc | <ide><path>docs/NativeModulesIOS.md
<ide> You must create a class extension of RCTConvert like so:
<ide> @implementation RCTConvert (StatusBarAnimation)
<ide> RCT_ENUM_CONVERTER(UIStatusBarAnimation, (@{ @"statusBarAnimationNone" : @(UIStatusBarAnimationNone),
<ide> @"st... | 1 |
Java | Java | support custom devsupportmanager | 369b28ce014f76b4b47c4cf7632ac66f39a53fa2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public static ReactInstanceManagerBuilder builder() {
<ide> @Nullable String jsMainModulePath,
<ide> List<ReactPackage> packages,
<ide> boolean useDeveloperSupport,
<add> DevSupportManagerFactory devSupportMa... | 5 |
Javascript | Javascript | fix url matching on api e2e tests | 55244390c805ce95c967fa75759a971c2cd0ce09 | <ide><path>docs/app/e2e/api-docs/provider-pages.scenario.js
<ide> describe("provider pages", function() {
<ide> browser.get('index-debug.html#!/api/ng/provider/$compileProvider');
<ide> var serviceLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
<ide> expect(serviceLink.getText())... | 2 |
Ruby | Ruby | use assert_equal and assert_operator | 6548fc66178dd3d46e3a575e6937659c07293764 | <ide><path>actionpack/lib/action_dispatch/testing/assertions/selector.rb
<ide> def assert_select(*args, &block)
<ide> end
<ide> text.strip! unless NO_STRIP.include?(match.name)
<ide> unless match_with.is_a?(Regexp) ? (text =~ match_with) : (text == match_with.to_s)
<del> ... | 1 |
Go | Go | remove pkg/testutil tempfile and golden | 468154a841b599dd3a7acaf6162e2a73cf44d1f6 | <ide><path>pkg/testutil/golden/golden.go
<del>// Package golden provides function and helpers to use golden file for
<del>// testing purpose.
<del>package golden
<del>
<del>import (
<del> "flag"
<del> "io/ioutil"
<del> "path/filepath"
<del> "testing"
<del>)
<del>
<del>var update = flag.Bool("test.update", false, "updat... | 2 |
Ruby | Ruby | pass array of addresses | 5457770a36deef3047e37b5e5737b3fbc4705b00 | <ide><path>activesupport/lib/active_support/cache/mem_cache_store.rb
<ide> def initialize(*addresses)
<ide> addresses = addresses.flatten
<ide> addresses = ["localhost"] if addresses.empty?
<ide> @addresses = addresses
<del> @data = MemCache.new(*addresses)
<add> @data = MemCache.n... | 1 |
Python | Python | adapt earlystopping auto mode to auc | aa706f99a44f4c7436410e68ccc82ceb8c7a9955 | <ide><path>keras/callbacks.py
<ide> def __init__(self,
<ide> elif mode == 'max':
<ide> self.monitor_op = np.greater
<ide> else:
<del> if 'acc' in self.monitor:
<add> if (self.monitor.endswith('acc') or self.monitor.endswith('accuracy') or
<add> self.monitor.endswith('auc')):
<ide> ... | 1 |
Javascript | Javascript | break the meta prototype chain! | 93743c1de5324d2dc5c7ad9e82a75c9adc7ef908 | <ide><path>packages/ember-metal/lib/meta.js
<ide> export function meta(obj, writable) {
<ide> ret.getOrCreateValues();
<ide> }
<ide> } else if (ret.source !== obj) {
<del> // temporary dance until I can eliminate remaining uses of
<del> // prototype chain
<del> let newRet = Object.create(ret);
<del... | 1 |
PHP | PHP | add missing spaces | 7b1086e632ee647496544dd87f0faf8c24c52060 | <ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php
<ide> public function describe($model) {
<ide> COLUMNPROPERTY(OBJECT_ID('" . $table . "'), COLUMN_NAME, 'IsIdentity') as [Key],
<ide> NUMERIC_SCALE as Size
<ide> FROM INFORMATION_SCHEMA.COLUMNS
<del> WHERE TABLE_NAME = '" . $table . "'".($schema?"... | 1 |
Ruby | Ruby | add tests for plugin sanity check | dd05b6c543f48050f494214da7803da6f5655292 | <ide><path>railties/lib/rails/engine/configurable.rb
<ide> class Engine
<ide> module Configurable
<ide> def self.included(base)
<ide> base.extend ClassMethods
<del> base.delegate :middleware, :root, :paths, :to => :config
<ide> end
<ide>
<ide> module ClassMethods
<add> deleg... | 3 |
Java | Java | support bridged methods in mvcuricomponentsbuilder | 205e5dfd6fdf89e0049da29817a6474abddbc2e9 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
<ide> import java.util.HashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<add>import java.util.Set;
<ide>
<ide> import javax.servlet.http.HttpServletRequest;
<ide>
<ide> import org... | 2 |
Javascript | Javascript | remove some invariants and deadcode | 13ed0317fa4aeb2281dbd295b302d99ad2cd6aed | <ide><path>src/browser/ui/ReactDOMComponent.js
<ide> ReactDOMComponent.Mixin = {
<ide> * @return {string} The computed markup.
<ide> */
<ide> mountComponent: function(rootID, transaction, mountDepth, context) {
<del> invariant(context !== undefined, "Context is required parameter");
<ide> ReactComponent.... | 4 |
Text | Text | improve translate, added text in tests | 6985e4942b55b73e2b482e3cfae6f242211cf511 | <ide><path>curriculum/challenges/russian/01-responsive-web-design/applied-accessibility/improve-form-field-accessibility-with-the-label-element.russian.md
<ide> localeTitle: Улучшить доступность поля формы с по
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Улучшение доступности с семантической р... | 1 |
Python | Python | correct a bug with special key (issue #163) | d767f717bb0d2a11bf6a67f661d9574cc070a7be | <ide><path>glances/glances.py
<ide> def __getProcessMemColor(self, current=0, max=100):
<ide> def __getProcessMemColor2(self, current=0, max=100):
<ide> return self.__colors_list2[self.__getProcessAlert(current, max, 'MEM')]
<ide>
<add> def __getkey(self, window):
<add> '''
<add> A getKey ... | 1 |
PHP | PHP | fix build failures | e59a9618b634bf66b6ee85891f19e656765a8c1f | <ide><path>tests/TestCase/Console/TaskRegistryTest.php
<ide> public function tearDown() {
<ide> * @return void
<ide> */
<ide> public function testLoad() {
<del> $result = $this->Tasks->load('DbConfig');
<del> $this->assertInstanceOf('Cake\Console\Command\Task\DbConfigTask', $result);
<del> $this->assertInstanceOf... | 1 |
Text | Text | convert lib and frameworks to bulleted list-readme | 4b4f76df5afd3fa1cfc76acf9077140ab7624e48 | <ide><path>README.md
<ide> are bundled together in [Action Pack](actionpack/README.rdoc).
<ide> ## Frameworks and libraries
<ide>
<ide> [Active Record](activerecord/README.rdoc), [Active Model](activemodel/README.rdoc), [Action Pack](actionpack/README.rdoc), and [Action View](actionview/README.rdoc) can each be used i... | 1 |
PHP | PHP | add test case for patching | 47baf43aa137ec104331aab20375550fb40f8a4f | <ide><path>tests/TestCase/ORM/TableTest.php
<ide>
<ide> use ArrayObject;
<ide> use Cake\Collection\Collection;
<del>use Cake\Core\Plugin;
<ide> use Cake\Database\Exception;
<ide> use Cake\Database\Expression\QueryExpression;
<ide> use Cake\Database\Schema\TableSchema;
<ide> class UsersTable extends Table
<ide> class P... | 1 |
Go | Go | unify tempdir implementation | 3314f4ef09fbe6fa4c32f1b114959388d75210a4 | <ide><path>pkg/ioutils/temp_unix.go
<del>//go:build !windows
<del>// +build !windows
<del>
<del>package ioutils // import "github.com/docker/docker/pkg/ioutils"
<del>
<del>import "os"
<del>
<del>// TempDir on Unix systems is equivalent to os.MkdirTemp.
<del>func TempDir(dir, prefix string) (string, error) {
<del> retur... | 2 |
Javascript | Javascript | remove deprecated extensions from ajax promise | 9d1b989f20b550af3590691723b0620f6914626e | <ide><path>src/ajax.js
<ide> jQuery.extend({
<ide> };
<ide>
<ide> // Attach deferreds
<del> deferred.promise( jqXHR ).complete = completeDeferred.add;
<del> jqXHR.success = jqXHR.done;
<del> jqXHR.error = jqXHR.fail;
<add> deferred.promise( jqXHR );
<ide>
<ide> // Remove hash character (#7531: and string p... | 2 |
Go | Go | add test to enforce volume build content | eac27ad46d7df4f11a28b84130ff484224f8b63d | <ide><path>integration-cli/docker_cli_build_test.go
<ide> RUN [ ! -e /injected ]`,
<ide>
<ide> logDone("build - xz host is being used")
<ide> }
<add>
<add>func TestBuildVolumesRetainContents(t *testing.T) {
<add> var (
<add> name = "testbuildvolumescontent"
<add> expected = "some text"
<add> )
<add> defer delet... | 1 |
PHP | PHP | fix misspellings in mailer implementation | cd9f1c77661112b835e9e8de7fed0eb365e498de | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> public function bcc($users)
<ide> }
<ide>
<ide> /**
<del> * Send a new message with only an HTML part.
<add> * Send a new message with only a HTML part.
<ide> *
<ide> * @param string $html
<ide> * @param mixed $callback
<ide> public fun... | 1 |
Java | Java | fix measure of reactslider for android api < 21 | 75e6f7961fb3f6de6afbe79d49c42ad55fba1673 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlider.java
<ide> public ReactSlider(Context context, @Nullable AttributeSet attrs, int style) {
<ide> disableStateListAnimatorIfNeeded();
<ide> }
<ide>
<del> private void disableStateListAnimatorIfNeeded() {
<add> /* package */ void di... | 2 |
Text | Text | update the manuals of docker and dockerd | b3e14c25f2926bde61ead09cbe40fd549f76ab75 | <ide><path>man/docker.1.md
<ide> docker \- Docker image and container command line interface
<ide> # SYNOPSIS
<ide> **docker** [OPTIONS] COMMAND [ARG...]
<ide>
<del>**docker** daemon [--help|...]
<del>
<ide> **docker** [--help|-v|--version]
<ide>
<ide> # DESCRIPTION
<del>is a client for interacting with the daemon (s... | 2 |
Text | Text | translate threejs lights to zh-cn | d3187f287817d1eeb05904ef762be9e3848e7a6d | <ide><path>threejs/lessons/zh_cn/threejs-lights.md
<add>Title: Three.js 光照
<add>Description: 设置光照
<add>TOC: 光照
<add>
<add>本文是关于 three.js 系列文章的一部分。第一篇文章是 [three.js 基础](threejs-fundamentals.html)。如果你还没看过而且对three.js 还不熟悉,那应该从那里开始,并且了解如何[设置开发环境](threejs-setup.html)。上一篇文章介绍了 three.js 中的 [纹理](threejs-textures.html)。
<add>
<a... | 1 |
PHP | PHP | fix mysql build | 62cb352e9635694917ca7cfccccf18fd57428094 | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> public function unload($test)
<ide> }
<ide> $truncate = function ($db, $fixtures) {
<ide> $configName = $db->configName();
<add>
<add> foreach ($fixtures as $name => $fixture) {
<add> if ($this->isFixtureSetu... | 2 |
Javascript | Javascript | avoid repeated calls to `normalizespawnarguments` | c030f88fcf9265bfc3ff98375bcbbbd7aa6e27d2 | <ide><path>lib/child_process.js
<ide> const {
<ide> ArrayPrototypeSort,
<ide> ArrayPrototypeSplice,
<ide> ArrayPrototypeUnshift,
<add> ArrayPrototypePushApply,
<ide> NumberIsInteger,
<ide> ObjectAssign,
<ide> ObjectDefineProperty,
<ide> ObjectDefineProperty(exec, promisify.custom, {
<ide> value: customPr... | 2 |
Ruby | Ruby | add root dirname as a escape value too | 601af55b43bc96627359eca06eeec4bf9881c890 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def ext
<ide> url_pathname = Pathname.new(@url)
<ide> until ext = url_pathname.extname[/[^?]+/]
<ide> url_pathname = url_pathname.dirname
<del> return if url_pathname.to_s == "."
<add> return if url_pathname.to_s == "." || url_pathname.to_s ... | 1 |
Text | Text | remove stale badge from readme | bcd9c2bc3ddaa04f89f550681ca9c1ec5efc4328 | <ide><path>README.md
<ide> [jQuery](https://jquery.com/) — New Wave JavaScript
<ide> ==================================================
<ide>
<del>[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjquery%2Fjquery?ref... | 1 |
Text | Text | update chinese translation of debugging | 2db889099dc6e0356381f6c422fe121935d98be5 | <ide><path>curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/debugging/catch-arguments-passed-in-the-wrong-order-when-calling-a-function.chinese.md
<ide> id: 587d7b85367417b2b2512b3a
<ide> title: Catch Arguments Passed in the Wrong Order When Calling a Function
<ide> challengeType: 1
<del>video... | 12 |
Javascript | Javascript | add more warnings for responder based events | 3669b901011d4631e3efa9d9307683eac7801fcb | <ide><path>packages/react-dom/src/events/DOMEventResponderSystem.js
<ide> const eventResponderContext: ReactResponderContext = {
<ide> );
<ide> }
<ide> if (__DEV__) {
<del> possibleEventObject.preventDefault = () => {
<del> // Update this warning when we have a story around dealing with preven... | 2 |
Ruby | Ruby | add ability to configure cache notifications info | e0874b6f88509270d7603184ecd158d55df7204f | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb
<ide> def cache_sql(sql, name, binds)
<ide> if @query_cache[sql].key?(binds)
<ide> ActiveSupport::Notifications.instrument(
<ide> "sql.active_record",
<del> sql: sql,
<d... | 2 |
Text | Text | add info osversion to api changelog | 53430f5fc14feb6d47d4bab740cf9d376e1c74aa | <ide><path>docs/api/version-history.md
<ide> keywords: "API, Docker, rcli, REST, documentation"
<ide> `private` to create the container in its own private cgroup namespace. The per-daemon
<ide> default is `host`, and can be changed by using the`CgroupNamespaceMode` daemon configuration
<ide> parameter.
<add>* `G... | 1 |
Javascript | Javascript | squash getdomnode warning from isdomcomponent | 70985ba68dac9b3d01b1d59a86466a1c23e8180b | <ide><path>src/test/ReactTestUtils.js
<ide> var ReactTestUtils = {
<ide> isDOMComponent: function(inst) {
<ide> // TODO: Fix this heuristic. It's just here because composites can currently
<ide> // pretend to be DOM components.
<del> return !!(inst && inst.getDOMNode && inst.tagName);
<add> return !!(in... | 2 |
PHP | PHP | add additional tests for hidden input | 6177246ffaa4fa87faf91f09f5fe4873dbdacba2 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testHiddenField() {
<ide> $this->assertTags($result, array(
<ide> 'input' => array('type' => 'hidden', 'class' => 'form-error', 'name' => 'field', 'id' => 'theID', 'value' => 'test'))
<ide> );
<add>
<add> $result = $this->Form->hidde... | 1 |
Javascript | Javascript | give useful error when using two copies of react | 70bf3e1306395a2bd1e65bce60b5511875b00800 | <ide><path>src/browser/ui/ReactMount.js
<ide> "use strict";
<ide>
<ide> var DOMProperty = require('DOMProperty');
<del>var ReactCurrentOwner = require('ReactCurrentOwner');
<ide> var ReactBrowserEventEmitter = require('ReactBrowserEventEmitter');
<add>var ReactCurrentOwner = require('ReactCurrentOwner');
<add>var Reac... | 3 |
Python | Python | remove some comments out-dated | 3c4a64cd1924984e66f9a4515a4f88a8c672ba05 | <ide><path>official/nlp/bert/model_saving_utils.py
<ide> def export_bert_model(model_export_path: typing.Text,
<ide> raise ValueError('model must be a tf.keras.Model object.')
<ide>
<ide> if checkpoint_dir:
<del> # Keras compile/fit() was used to save checkpoint using
<del> # model.save_weights().
<ide> ... | 1 |
Javascript | Javascript | make sure linting passes | c8059b9f12939ae2290af7017cc93c03e50abe8f | <ide><path>examples/active-class-name/components/Link.js
<del>import { withRouter } from 'next/router';
<del>import Link from 'next/link';
<del>import React, { Children } from 'react';
<add>import { withRouter } from 'next/router'
<add>import Link from 'next/link'
<add>import React, { Children } from 'react'
<ide>
<id... | 4 |
Java | Java | fix code completion typo | e9ed45ee3b3deb1fd0cb5973829e132b48a7b290 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/async/WebAsyncManager.java
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.web.context.request.RequestAttributes;
<ide> import org.springframework.web.context.request.async.DeferredResult.DeferredResultHandler;
<d... | 1 |
PHP | PHP | update doc blocks | c272a8b3ca5c4e04c2739344e812b88079426e34 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> protected function _extractOption($name, $options, $default = null) {
<ide> * @param string $label
<ide> * @param array $options Options for the label element.
<ide> * @return string Generated label element
<add> * @deprecated 'NONE' option is deprecated and will ... | 1 |
Go | Go | append new line to multiline events | 4374f16667708118c126cd71f733493b0070e807 | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> func (l *logStream) collectBatch() {
<ide> events = l.processEvent(events, eventBuffer, eventBufferTimestamp)
<ide> eventBuffer = eventBuffer[:0]
<ide> }
<del> eventBuffer = append(eventBuffer, unprocessedLine...)
<add> // Append new line
<add... | 2 |
Ruby | Ruby | remove unused methods | f9ea47736e270152c264bb5f8fdbfaa1d04fe82f | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def size
<ide> fixtures.size
<ide> end
<ide>
<del> def delete_existing_fixtures
<del> tables.each do |table|
<del> @connection.delete "DELETE FROM #{@connection.quote_table_name(table)}", 'Fixture Delete'
<del> end
<del> end
<del>
<del> # ... | 2 |
Ruby | Ruby | fix build failures | 6cd9e2bd29b26e1ea781fafce18614217b7adf7b | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def [](key)
<ide>
<ide> def find
<ide> if model_class
<del> model_class.unscoped.find(fixture[model_class.primary_key])
<add> model_class.unscoped do
<add> model_class.find(fixture[model_class.primary_key])
<add> end
<i... | 1 |
Python | Python | improve parallel test stability for warnings | 2f44aff7414fbca294d3309814dc60caf3cfae02 | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_regex(self):
<ide>
<ide>
<ide> def assert_warn_len_equal(mod, n_in_context, py34=None, py37=None):
<del> mod_warns = mod.__warningregistry__
<add> try:
<add> mod_warns = mod.__warningregistry__
<add> except AttributeError:
<add> # the ... | 1 |
Go | Go | fix vet error about passing mutex by value | bb96e53b0f947a31a4b66e76607eed0097917ed5 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) poolStatus() (totalSizeInSectors, transactionId, dataU
<ide>
<ide> // MetadataDevicePath returns the path to the metadata storage for this deviceset,
<ide> // regardless of loopback or block device
<del>func (devices DeviceSet) DataDe... | 1 |
Javascript | Javascript | add call validation in net-write-callbacks | f63af64eb8da6424243ead150e0b2dd718bd95e9 | <ide><path>lib/_stream_writable.js
<ide> function WritableState(options, stream) {
<ide> // or on a later tick.
<ide> this.sync = false;
<ide>
<add> // a flag to know if we're processing previously buffered items, which
<add> // may call the _write() callback in the same tick, so that we don't
<add> // end up i... | 2 |
Text | Text | add new frameworks and improve structure | 6cfc0030ce8a042da93d765fb23dc7427221524e | <ide><path>guide/english/python/using-python-for-web-development/index.md
<ide> Python is known for its beautiful syntax and ease of readability. This scripting
<ide>
<ide> #### Most Popular Python Web Frameworks:
<ide>
<del>* [Django](https://www.djangoproject.com/)
<del>* [Flask](http://flask.pocoo.org/)
<del>* [Bo... | 1 |
Go | Go | reuse cpuacct stats for cpu subsystem | 3bfe13de2c38fda5b57e2499f474da701495c5ba | <ide><path>pkg/cgroups/fs/cpu.go
<ide> func (s *cpuGroup) Remove(d *data) error {
<ide> }
<ide>
<ide> func (s *cpuGroup) Stats(d *data) (map[string]float64, error) {
<del> return nil, ErrNotSupportStat
<add> // we can reuse the cpuacct subsystem to get the cpu stats
<add> sys := subsystems["cpuacct"]
<add> return sys.... | 1 |
Javascript | Javascript | use /system/bin/sh on android | f4f6c6e8151071d6d866603d0837d851fdf49157 | <ide><path>lib/child_process.js
<ide> function normalizeSpawnArguments(file /*, args, options*/) {
<ide> args = ['/s', '/c', '"' + command + '"'];
<ide> options.windowsVerbatimArguments = true;
<ide> } else {
<del> file = typeof options.shell === 'string' ? options.shell : '/bin/sh';
<add> if ... | 1 |
PHP | PHP | remove trait by default | 8f6a4897a2af3549ed12a000e5336dfa9faded6d | <ide><path>tests/Feature/ExampleTest.php
<ide>
<ide> class ExampleTest extends TestCase
<ide> {
<del> use FreshDatabase;
<del>
<ide> /**
<ide> * A basic test example.
<ide> * | 1 |
Javascript | Javascript | run `yarn prettier-all` | a40ddf31246628423236ad1d8c6549409822e253 | <ide><path>packages/react-devtools-shared/src/utils.js
<ide> export function saveComponentFilters(
<ide>
<ide> export function getAppendComponentStack(): boolean {
<ide> try {
<del> const raw = localStorageGetItem(LOCAL_STORAGE_SHOULD_APPEND_COMPONENT_STACK_KEY);
<add> const raw = localStorageGetItem(
<add> ... | 1 |
Javascript | Javascript | add attributes used in input[type=range] | 415192c0017cdef4887678f4f94109c95147f344 | <ide><path>src/domUtils/DOMProperty.js
<ide> var Properties = {
<ide> height: null,
<ide> href: null,
<ide> htmlFor: null,
<add> max: null,
<ide> method: null,
<add> min: null,
<ide> multiple: MustUseProperty | HasBooleanValue,
<ide> name: null,
<ide> poster: null,
<ide> var Properties = {
<ide> selec... | 1 |
Javascript | Javascript | remove unnecessary global variable named global | a101fc768cedc7ac9754006e5b7292bb7084ab54 | <ide><path>Libraries/Core/setUpGlobals.js
<ide> * Sets up global variables for React Native.
<ide> * You can use this module directly, or just require InitializeCore.
<ide> */
<del>if (global.GLOBAL === undefined) {
<del> global.GLOBAL = global;
<del>}
<del>
<ide> if (global.window === undefined) {
<ide> // $Flow... | 1 |
PHP | PHP | remove unused use statement | 601b39cc844b1446d64871d9bd6af210827a707c | <ide><path>src/Console/Shell.php
<ide> use Cake\Console\Exception\ConsoleException;
<ide> use Cake\Console\Exception\StopException;
<ide> use Cake\Core\App;
<del>use Cake\Core\Plugin;
<ide> use Cake\Datasource\ModelAwareTrait;
<ide> use Cake\Filesystem\File;
<ide> use Cake\Log\LogTrait; | 1 |
Ruby | Ruby | add test for calling a url helper in mapper#direct | d67e2520289745913e7bab9a852c86b99245f738 | <ide><path>actionpack/test/dispatch/routing/custom_url_helpers_test.rb
<ide> class Product < Linkable; end
<ide>
<ide> direct(:website) { "http://www.rubyonrails.org" }
<ide> direct("string") { "http://www.rubyonrails.org" }
<add> direct(:helper) { basket_url }
<ide> direct(:linkable) { |linkable| [... | 1 |
Mixed | Python | fix some minor api issues | 61b18977f0960984c7a053101ae656ebc860a5c3 | <ide><path>research/maskgan/README.md
<ide> tested. Pretraining may not work correctly.
<ide>
<ide> For training on PTB:
<ide>
<del>1. (Optional) Pretrain a LM on PTB and store the checkpoint in /tmp/pretrain-lm/.
<add>1. (Optional) Pretrain a LM on PTB and store the checkpoint in `/tmp/pretrain-lm/`.
<ide> Instructi... | 2 |
Ruby | Ruby | generate migration thats adds removed index | b2a59388b2ad281ccce1f72dd5fda09ca746dc32 | <ide><path>activerecord/lib/rails/generators/active_record/migration/templates/migration.rb
<ide> def down
<ide> <% attributes.reverse.each do |attribute| -%>
<ide> <%- if migration_action -%>
<ide> <%= migration_action == 'add' ? 'remove' : 'add' %>_column :<%= table_name %>, :<%= attribute.name %><% if migratio... | 2 |
Mixed | Javascript | add drop event for net server | e3bf5e620bd465df4085df074d40127af3f4b4d8 | <ide><path>doc/api/net.md
<ide> added: v0.1.90
<ide>
<ide> Emitted when the server has been bound after calling [`server.listen()`][].
<ide>
<add>### Event: `'drop'`
<add>
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>When the number of connections reaches the threshold of `server.maxConnections`,
<add>the... | 3 |
Python | Python | avoid redundant set conversion | 35c43987e5b0751a601a241ca321665301c197e3 | <ide><path>airflow/www/security.py
<ide> # under the License.
<ide> #
<ide>
<add>from typing import Set
<add>
<ide> from flask import current_app, g
<ide> from flask_appbuilder.security.sqla import models as sqla_models
<ide> from flask_appbuilder.security.sqla.manager import SecurityManager
<ide> def get_accessible_d... | 2 |
PHP | PHP | remove un-needed method overwrites | d059f904aaacf9cf7486c7f8d8443aa07f084709 | <ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
<ide> protected function whereDate(Builder $query, $where)
<ide> return $this->wrap($where['column']).'::date '.$where['operator'].' '.$value;
<ide> }
<ide>
<del> /**
<del> * Compile a "where day" clause.
<del> *
<del> * @... | 1 |
Mixed | Text | add types and their corresponding return values | 5689d553920e6276065517966fcaf8e02f498fc1 | <ide><path>doc/api/async_hooks.md
<ide> alternative.
<ide>
<ide> #### asyncResource.emitDestroy()
<ide>
<add>* Returns: {AsyncResource} A reference to `asyncResource`.
<add>
<ide> Call all `destroy` hooks. This should only ever be called once. An error will
<ide> be thrown if it is called more than once. This **must*... | 6 |
Javascript | Javascript | add extra newline for better formatting | cf9331ac662d5f4d4a4b8470277b42f3e51595b0 | <ide><path>test/ng/directive/ngOptionsSpec.js
<ide> describe('ngOptions', function() {
<ide> expect(element).toEqualSelectValue(scope.selected);
<ide> });
<ide>
<add>
<ide> it('should update options in the DOM', function() {
<ide> compile(
<ide> '<select ng-model="selected" ng-options="item... | 1 |
Javascript | Javascript | drop third parameter to replacestate/pushstate | e904b8a67c1bb94a8286dd69292dbace33027d5c | <ide><path>web/pdf_history.js
<ide> class PDFHistory {
<ide> this._updateInternalState(destination, newState.uid);
<ide>
<ide> if (shouldReplace) {
<del> if (typeof PDFJSDev !== 'undefined' &&
<del> PDFJSDev.test('FIREFOX || MOZCENTRAL')) {
<del> // Providing the third argument causes a Se... | 1 |
Javascript | Javascript | remove debug statement in appactions | 8109c65f8d43052a91e426b01a8f7d2bcf1e15eb | <ide><path>common/app/flux/Actions.js
<ide> import { Actions } from 'thundercats';
<del>import debugFactory from 'debug';
<ide>
<del>const debug = debugFactory('freecc:app:actions');
<ide>
<ide> export default Actions({
<ide> shouldBindMethods: true,
<ide> export default Actions({
<ide> return null;
<ide> ... | 1 |
Text | Text | use plularized urls for better consistency | 27aa2d6aad59c479de66e270b897c4fa4fdbac30 | <ide><path>docs/api-guide/format-suffixes.md
<ide> Example:
<ide>
<ide> urlpatterns = patterns('blog.views',
<ide> url(r'^/$', 'api_root'),
<del> url(r'^comment/$', 'comment_list'),
<del> url(r'^comment/(?P<pk>[0-9]+)/$', 'comment_detail')
<add> url(r'^comments/$', 'comment_list'),... | 1 |
Ruby | Ruby | specify verification purposes | 15efa6720f9dc6efe27c717d9e32b31b2d45b7b8 | <ide><path>app/controllers/active_storage/disk_controller.rb
<ide> def disk_service
<ide> end
<ide>
<ide> def decode_verified_key
<del> ActiveStorage.verifier.verified(params[:encoded_key])
<add> ActiveStorage.verifier.verified(params[:encoded_key], purpose: :blob_key)
<ide> end
<ide>
<ide> ... | 6 |
Python | Python | add missing whitespace | e54a06ca81dd93cfda4570ae03740711092e08d3 | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_period(self):
<ide> assert_array_equal(sm_discont, [0, 75, 150, 225, 300, 430])
<ide> assert sm_discont.dtype == wrap_uneven.dtype
<ide>
<add>
<ide> class TestFilterwindows:
<ide>
<ide> def test_hanning(self): | 1 |
Javascript | Javascript | add test for selection.each | f4a7a610f69bde9909e447f7e5e00f5ef9a4d151 | <ide><path>test/core/selection-each-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("selection.each");
<add>
<add>suite.addBatch({
<add> "select(body)": {
<add> topic: function() {
<add> r... | 1 |
Ruby | Ruby | add an missing assertion to inheritance_test.rb | 8b80311e5ff412f2956be38535e05999fa57e12c | <ide><path>activerecord/test/cases/inheritance_test.rb
<ide> def test_different_namespace_subclass_should_load_correctly_with_store_full_sti_
<ide> end
<ide>
<ide> def test_company_descends_from_active_record
<add> assert !ActiveRecord::Base.descends_from_active_record?
<ide> assert AbstractCompany.descends... | 1 |
Javascript | Javascript | add test for selection.remove | ca8476097d7fc7068a7691b1a63ba7b8f42046b3 | <ide><path>test/core/selection-remove-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("selection.remove");
<add>
<add>suite.addBatch({
<add> "select(body)": {
<add> topic: function() {
<add> ... | 1 |
PHP | PHP | apply fixes from styleci | 5390126e81d67368c543cbf2660b788e2faad731 | <ide><path>src/Illuminate/Support/Str.php
<ide>
<ide> namespace Illuminate\Support;
<ide>
<del>use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Traits\Macroable;
<ide> use League\CommonMark\GithubFlavoredMarkdownConverter;
<ide> use Ramsey\Uuid\Codec\TimestampFirstCombCodec;
<ide><path>tests/Support/SupportSt... | 3 |
Ruby | Ruby | rename these collections for clarity | a21be66fc868c9c343372e1fb798f68087acc95b | <ide><path>Library/Homebrew/build.rb
<ide> def install f
<ide> end
<ide>
<ide> if superenv?
<del> ENV.deps = keg_only_deps.map(&:to_s)
<del> ENV.all_deps = deps.map(&:to_s)
<add> ENV.keg_only_deps = keg_only_deps.map(&:to_s)
<add> ENV.deps = deps.map(&:to_s)
<ide> ENV.x11 = f.recursive_requirements... | 2 |
Javascript | Javascript | save a byte | 1052f9cb2bad094144fa1186b0be8f477a9d4fa1 | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> ret = elem.getAttribute( name );
<ide>
<ide> // Non-existent attributes return null, we normalize to undefined
<del> return ret === null ?
<add> return ret == null ?
<ide> undefined :
<ide> ret;
<ide> }
<ide> if ( !jQuery.support.hrefNormaliz... | 1 |
Text | Text | update docker guide with more info | 6b9e81cfdf692f90436c53f339a4bc09c739eafb | <ide><path>guide/english/docker/index.md
<ide> sh get-docker.sh
<ide> * For download and documentation check the docker official site: [Docker official site](https://www.docker.com)
<ide> * For more on containerization, checkout [Search IT Operations](https://searchitoperations.techtarget.com/definition/application-con... | 1 |
Text | Text | add comma to to make the information clear | d2a7b9898b89b5e96b840b7b79ac97502d99aff5 | <ide><path>guides/source/form_helpers.md
<ide> NOTE: If the user has not selected a file the corresponding parameter will be an
<ide>
<ide> ### Dealing with Ajax
<ide>
<del>Unlike other forms making an asynchronous file upload form is not as simple as providing `form_for` with `remote: true`. With an Ajax form the se... | 1 |
Javascript | Javascript | add posyt to showcase.js | 4e1ff687dd8f1175af60c1c2bf5b6f77c0a287be | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/gb/app/night-light-feeding-light/id1016843582?mt=8',
<ide> author: 'Tian Yuan',
<ide> },
<add> {
<add> name: 'Posyt - Tinder for ideas',
<add> icon: 'http://a3.mzstatic.com/us/r30/Purple6/v4/a5/b3/8... | 1 |
Java | Java | treat empty accept header as "*/*" | 4221a344dc799314b2a4711838e6f1a152811ec1 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
<ide>
<ide> import java.net.URI;
<ide> import java.util.Arrays;
<add>import java.util.Collections;
<ide> import java.util.HashSet;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import org.sp... | 2 |
Javascript | Javascript | add @param and @returns tags | e3bf1ed21745dad75866623a7b7a8828237b0527 | <ide><path>src/Angular.js
<ide> noop.$inject = [];
<ide> return (transformationFn || angular.identity)(value);
<ide> };
<ide> ```
<add> * @param {*} value to be returned.
<add> * @returns {*} the value passed in.
<ide> */
<ide> function identity($) {return $;}
<ide> identity.$inject = []; | 1 |
Text | Text | add github package items | 5d8e95b87a541ce478e5ca7186bd2a783a4b2a10 | <ide><path>docs/focus/2018-04-02.md
<ide>
<ide> - Atom IDE
<ide> - GitHub Package
<add> - Implement actions for most recent commit - undo and amend [atom/github#1364](https://github.com/atom/github/pull/1364)
<add> - Improved push/pull UX [atom/github#1308](https://github.com/atom/github/pull/1308)
<ide> - Teletype
... | 1 |
PHP | PHP | throw broadcast exception | dc5f1317364ac426b326052c213742b48316cb99 | <ide><path>src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
<ide> namespace Illuminate\Broadcasting\Broadcasters;
<ide>
<ide> use Pusher;
<del>use RuntimeException;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<add>use Illuminate\Broadcasting\BroadcastException;
<ide> use Symfony\C... | 1 |
Javascript | Javascript | handle miscs better | 7af2d6b985192c17b68b7b1c4952df452d0e6f84 | <ide><path>tools/doc/json.js
<ide> function finishSection(section, parent) {
<ide>
<ide> if (!section.type) {
<ide> section.type = 'module';
<add> if (parent && (parent.type === 'misc')) {
<add> section.type = 'misc';
<add> }
<ide> section.displayName = section.name;
<ide> section.name = secti... | 1 |
PHP | PHP | correct doc blocks for authcomponent | a36456cc876ed52470beba92f28b0e245de6fe40 | <ide><path>lib/Cake/Controller/Component/AuthComponent.php
<ide> class AuthComponent extends Component {
<ide>
<ide> /**
<ide> * An URL (defined as a string or array) to the controller action that handles
<del> * logins. Defaults to `/users/login`
<add> * logins. Defaults to `/users/login`.
<ide> *
<ide> * @var mix... | 1 |
Ruby | Ruby | fix rubocop warnings | cc526601cfe14861260b76359f6f1a2ec5fa33d2 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def migrate_legacy_cache_if_necessary
<ide> world_writable = legacy_cache.stat.mode & 0777 == 0777
<ide> return if world_writable
<ide> return if legacy_cache.symlink?
<del> return if !legacy_cache.owned? && legacy_cache.lstat.uid != 0
<add> retur... | 1 |
Text | Text | add note on object permissions for fbvs | 43c2c91dde3be7128df01b53e114d65d8e23438d | <ide><path>docs/api-guide/permissions.md
<ide> If you need to test if a request is a read operation or a write operation, you s
<ide>
<ide> ---
<ide>
<del>**Note**: The instance-level `has_object_permission` method will only be called if the view-level `has_permission` checks have already passed. Also note that in or... | 1 |
PHP | PHP | fix double space | d16cb9010e02d1eb27e1d918fbc6c5faa58c7fa9 | <ide><path>tests/TestCase/View/Helper/HtmlHelperTest.php
<ide> public function testLink()
<ide> $expected = ['a' => ['href' => '/home'], 'preg:/\/home/', '/a'];
<ide> $this->assertHtml($expected, $result);
<ide>
<del> $result = $this->Html->link(['controller' => 'users', 'action' => 'login', '<... | 1 |
Python | Python | add basesensoroperator to __init__ | 4522dc2811913c804a35a5bd4ec65a2df0f9df74 | <ide><path>airflow/operators/__init__.py
<ide> 'mysql_to_hive': ['MySqlToHiveTransfer'],
<ide> 'postgres_operator': ['PostgresOperator'],
<ide> 'sensors': [
<add> 'BaseSensorOperator',
<ide> 'SqlSensor',
<ide> 'ExternalTaskSensor',
<ide> 'HivePartitionSensor', | 1 |
Python | Python | add keyword nrows to genfromtxt | 0091499ec28cd9ceb30cd94c0e40191570b6fec6 | <ide><path>numpy/lib/npyio.py
<ide> def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> usecols=None, names=None,
<ide> excludelist=None, deletechars=None, replace_space='_',
<ide> autostrip=False, case_sensitive=True, defaultfmt="f%i",
<del> ... | 2 |
Text | Text | fix documentation of http2stream.pushstream() | b886c424fb9ff7a5880d4a4c5a4d69ba5710c475 | <ide><path>doc/api/http2.md
<ide> added: v8.4.0
<ide> created stream is dependent on.
<ide> * `callback` {Function} Callback that is called once the push stream has been
<ide> initiated.
<add> * `err` {Error}
<add> * `pushStream` {[`ServerHttp2Stream`][]} The returned pushStream object.
<add> * `headers` {[Hea... | 1 |
Text | Text | fix doc in with-firebase-authentication | 202ceca1af1baeab5f61d2812ec48b019c80919d | <ide><path>examples/with-firebase-authentication/README.md
<ide> Download the example [or clone the repo](https://github.com/zeit/next.js):
<ide>
<ide> ```bash
<ide> curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-firebase-authentication
<del>cd with-firebas... | 1 |
Text | Text | fix documentation for provider's release | ad27e4d196e989c93193fed80667634b50bd6891 | <ide><path>dev/README_RELEASE_PROVIDER_PACKAGES.md
<ide> - [Commit the source packages to Apache SVN repo](#commit-the-source-packages-to-apache-svn-repo)
<ide> - [Publish the Regular convenience package to PyPI](#publish-the-regular-convenience-package-to-pypi)
<ide> - [Add tags in git](#add-tags-in-git)
<del> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.