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 |
|---|---|---|---|---|---|
Java | Java | collect more diagnostics when `addviewat` crashes | 7bf61964084648bbde603c95f7c4734d30387a10 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java
<ide> public void addViewAt(int parentTag, int tag, int index) {
<ide> logViewHierarchy(parentView);
<ide> }
<ide>
<del> getViewGroupManager(parentViewState).addView(parentView, view, index);
<add> try {
<add>... | 1 |
Python | Python | fix example for recurrent layer | b235f91cc74b8e4f76d81378ab546a762449f13c | <ide><path>keras/layers/recurrent.py
<ide> class Recurrent(Layer):
<ide> # as the first layer in a Sequential model
<ide> model = Sequential()
<ide> model.add(LSTM(32, input_shape=(10, 64)))
<del> # now model.output_shape == (None, 10, 32)
<add> # now model.output_shape == (None, 3... | 1 |
Javascript | Javascript | remove unnecessary yuidoc markup | 3173a49a82a7d80d189c03a257196c834959d0e5 | <ide><path>packages/ember-routing/lib/system/transition_event.js
<ide> */
<ide>
<ide>
<del>/**
<add>/*
<ide> A TransitionEvent is passed as the argument for `transitionTo`
<ide> events and contains information about an attempted transition
<ide> that can be modified or decorated by leafier `transitionTo` event... | 2 |
Ruby | Ruby | move some constants from env to compiler constants | 09f8c54f8388412250a6e847989992a78953b63f | <ide><path>Library/Homebrew/compilers.rb
<ide> module CompilerConstants
<ide> GNU_GCC_VERSIONS = %w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5]
<ide> GNU_GCC_REGEXP = /^gcc-(4\.[3-9]|5)$/
<add> COMPILER_SYMBOL_MAP = {
<add> "gcc-4.0" => :gcc_4_0,
<add> "gcc-4.2" => :gcc,
<add> "llvm-gcc" => :llvm,
<add> "clang" ... | 2 |
Python | Python | fix conllu script | 97164b17637cb0e91bfefe4fbe4051ead2994feb | <ide><path>examples/training/conllu.py
<ide> def parse_dev_data(nlp, text_loc, conllu_loc):
<ide> return docs, scorer
<ide>
<ide>
<del>def print_progress(itn, losses, scores):
<add>def print_progress(itn, losses, scorer):
<ide> scores = {}
<ide> for col in ['dep_loss', 'tag_loss', 'uas', 'tags_acc', 'toke... | 1 |
Javascript | Javascript | simplify asset resolution | 76f74a55c2d359bdf8a24eb98317a7dc9a47333e | <ide><path>packager/src/node-haste/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest<TModule: Moduleish, TPackage: Packageish> {
<ide>
<ide> _loadAsFile(potentialModulePath: string, fromModule: TModule, toModule: string): TModule {
<ide> if (this._options.helpers.isAssetFile(potentialModulePath)... | 1 |
Python | Python | add conf parameter to cli for airflow dags test | bcc2fe26f6e0b7204bdf73f57d25b4e6c7a69548 | <ide><path>airflow/cli/cli_parser.py
<ide> class GroupCommand(NamedTuple):
<ide> args=(
<ide> ARG_DAG_ID,
<ide> ARG_EXECUTION_DATE,
<add> ARG_CONF,
<ide> ARG_SUBDIR,
<ide> ARG_SHOW_DAGRUN,
<ide> ARG_IMGCAT_DAGRUN,
<ide><path>airflow/cli/comm... | 3 |
Ruby | Ruby | add xcode 4.5.2 to standard compilers map | fa6cf55f588dafa731f170a1c818972ab766120f | <ide><path>Library/Homebrew/macos.rb
<ide> def prefer_64_bit?
<ide> "4.4" => { :llvm_build => 2336, :clang => "4.0", :clang_build => 421 },
<ide> "4.4.1" => { :llvm_build => 2336, :clang => "4.0", :clang_build => 421 },
<ide> "4.5" => { :llvm_build => 2336, :clang => "4.1", :clang_build => 421 },
<del> ... | 1 |
PHP | PHP | apply fixes from styleci | 4ce641d5713738d58032fa3fb407b4c37115ebde | <ide><path>database/migrations/2014_10_12_000000_create_users_table.php
<ide> use Illuminate\Database\Schema\Blueprint;
<ide> use Illuminate\Support\Facades\Schema;
<ide>
<del>return new class extends Migration {
<add>return new class extends Migration
<add>{
<ide> /**
<ide> * Run the migrations.
<ide> *... | 3 |
Ruby | Ruby | add needs_python method | 70a1ef5bdf113c18792197f361bf18c587ae7a9f | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> def needs_compat
<ide> skip "Requires compat/ code" if ENV["HOMEBREW_NO_COMPAT"]
<ide> end
<ide>
<add> def needs_python
<add> skip "Requires Python" unless which("python")
<add> end
<add>
<ide> def assert_nothing_raised
<ide> yield
<i... | 1 |
Ruby | Ruby | add binary column default value support to sqlite | e1bf63fca94470b5cca4143b6f86e250fe5f66a4 | <ide><path>activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
<ide> def extract_value_from_default(default)
<ide> # Numeric types
<ide> when /\A-?\d+(\.\d*)?\z/
<ide> $&
<add> # Binary columns
<add> when /x'(.*)'/
<add> [ $1 ].pack("H*")
<i... | 2 |
Javascript | Javascript | use full height for fullwidth box when left/right | 2ac0436bd497e7b660f5d2ff7104d1f6a4331358 | <ide><path>src/core/core.layouts.js
<ide> function setLayoutDims(layouts, params) {
<ide> let i, ilen, layout;
<ide> for (i = 0, ilen = layouts.length; i < ilen; ++i) {
<ide> layout = layouts[i];
<del> // store width used instead of chartArea.w in fitBoxes
<del> layout.width = layout.horizontal
<del> ? layout.b... | 1 |
PHP | PHP | remove unused code and restore changes | fcd2c9890c50535712a4541867b0c81341c20da2 | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> class_alias('PHPUnit_Exception', 'PHPUnit\Exception');
<ide> use Exception;
<ide> use LogicException;
<ide> use PHPUnit\Exception as PhpunitException;
<del>use Zend\Diactoros\Stream;
<ide>
<ide> /**
<ide> * A test case class intended to make integration tests of
... | 5 |
Java | Java | add principal in glassfishrequestupgradestrategy | 14468e80f36f25761a85c678789fefedf4c60f6f | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/standard/GlassFishRequestUpgradeStrategy.java
<ide> private boolean performUpgrade(HttpServletRequest request, HttpServletResponse r
<ide>
<ide> RequestContext wsRequest = RequestContext.Builder.create().
<ide> requestURI(URI.create(... | 1 |
Javascript | Javascript | move credential update to an else statement | 8c01f4a08f41dfeb80c12b5b52d2d4966a696bc5 | <ide><path>common/models/User-Credential.js
<ide> module.exports = function(UserCredential) {
<ide> created: modified,
<ide> modified
<ide> });
<del> }
<del> _credentials.credentials = credentials;
<del> updateCredentials = observeQuery(
<add> } else {
<add>... | 1 |
Ruby | Ruby | improve poor security recommendation in docs | 9ec0cf8581ef83bb1512293750aa0a7b32e2f4dd | <ide><path>activesupport/lib/active_support/message_encryptor.rb
<ide> module ActiveSupport
<ide> # This can be used in situations similar to the <tt>MessageVerifier</tt>, but
<ide> # where you don't want users to be able to determine the value of the payload.
<ide> #
<del> # key = OpenSSL::Digest::SHA256.new(... | 1 |
Javascript | Javascript | use tabs instead of spaces for whitespace | f491e4b956716d6275c12ac7083eea4dd963b2f7 | <ide><path>src/loaders/JSONLoader.js
<ide> THREE.JSONLoader.prototype.parse = function ( json, texturePath ) {
<ide>
<ide> geometry.bones = json.bones;
<ide>
<del> if ( (geometry.bones.length > 0) && (
<del> (geometry.skinWeights.length != geometry.skinIndices.length) ||
<del> (geometry.skinWeights.len... | 1 |
PHP | PHP | resolve route model binding through ioc | 3f951978a53c965698cfced90ee201156b1697bf | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function model($key, $class, Closure $callback = null)
<ide> // For model binders, we will attempt to retrieve the models using the first
<ide> // method on the model instance. If we cannot retrieve the models we'll
<ide> // t... | 2 |
Python | Python | add comment for the docker network stats issue | 3717c2fcf97308a9b84d55a620f8fc8fed6225b4 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> # Create a dict with all the containers' stats instance
<ide> self.docker_stats = {}
<ide>
<add> # TODO: Find a way to correct this
<add> # The following optimization is not ... | 1 |
Java | Java | introduce importaware interface | cdb01cbd3795f273b751d0f0a45caa22d07c62da | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
<ide> import java.io.IOException;
<ide> import java.util.Collections;
<ide> import java.util.Comparator;
<add>import java.util.HashMap;
<ide> import java.util.Iterator;
<ide> import java.util.Linked... | 5 |
Python | Python | add tests for the extended-precision plugin | 3164ad145d51210f669fdddceb72a5f8317b5bd6 | <ide><path>numpy/typing/tests/data/misc/extended_precision.py
<add>import numpy as np
<add>
<add>reveal_type(np.uint128())
<add>reveal_type(np.uint256())
<add>
<add>reveal_type(np.int128())
<add>reveal_type(np.int256())
<add>
<add>reveal_type(np.float80())
<add>reveal_type(np.float96())
<add>reveal_type(np.float128())
... | 2 |
Javascript | Javascript | fix error reporting for module errors | af0e6cdae5762346a013a60e9b3f095204292550 | <ide><path>Libraries/Core/InitializeCore.js
<ide> if (__DEV__) {
<ide> require('../LogBox/LogBox').install();
<ide> }
<ide>
<add>require('../ReactNative/AppRegistry');
<add>
<ide> const GlobalPerformanceLogger = require('../Utilities/GlobalPerformanceLogger');
<ide> // We could just call GlobalPerformanceLogger.mark... | 1 |
Python | Python | expose sql to gcs metadata | 94257f48f4a3f123918b0d55c34753c7c413eb74 | <ide><path>airflow/providers/google/cloud/transfers/sql_to_gcs.py
<ide> class BaseSQLToGCSOperator(BaseOperator):
<ide> If set as a sequence, the identities from the list must grant
<ide> Service Account Token Creator IAM role to the directly preceding identity, with first
<ide> account from the... | 8 |
Javascript | Javascript | use new .applymatrix4() method | d8d0bdd512bb642b2118784375b38b2c1c9ee8d8 | <ide><path>src/core/BufferGeometry.js
<ide> BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
<ide>
<ide> if ( position !== undefined ) {
<ide>
<del> matrix.applyToBufferAttribute( position );
<add> position.applyMatrix4( matrix );
<add>
<ide> position.needsUpdate = true;
<ide>... | 1 |
Text | Text | update the link for understand data volumes | b1c2d425e167e6f939a192c87a7a40f449f07e32 | <ide><path>docs/reference/commandline/system_prune.md
<ide> Total reclaimed space: 13.5 MB
<ide> * [volume inspect](volume_inspect.md)
<ide> * [volume rm](volume_rm.md)
<ide> * [volume prune](volume_prune.md)
<del>* [Understand Data Volumes](../../tutorials/dockervolumes.md)
<add>* [Understand Data Volumes](https://doc... | 6 |
Python | Python | restore app.start() and app.worker_main() | 28ebcce5d277839011f7782755ac8452b37d6afe | <ide><path>celery/app/base.py
<ide> """Actual App instance implementation."""
<ide> import inspect
<ide> import os
<add>import sys
<ide> import threading
<ide> import warnings
<ide> from collections import UserDict, defaultdict, deque
<ide> from datetime import datetime
<ide> from operator import attrgetter
<ide>
<add... | 1 |
PHP | PHP | fix coding style | 9b464ea677b583752b32ba52dada2a31db8522f6 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php
<ide> protected function getSelectedValue($selector)
<ide>
<ide> if ($element == 'input') {
<ide> $value = $this->getCheckedValueFromRadioGroup($field);
<add>
<ide> return $value ? [$value] : [];
<i... | 1 |
Python | Python | remove support for markdown<2.1 | 29dfbabaf54d75801b404e253a2d7574fa415564 | <ide><path>djangorestframework/compat.py
<ide> def process_view(self, request, callback, callback_args, callback_kwargs):
<ide> try:
<ide> import markdown
<ide>
<del> class CustomSetextHeaderProcessor(markdown.blockprocessors.BlockProcessor):
<del> """
<del> Class for markdown < 2.1
<del>
<del> ... | 1 |
Ruby | Ruby | refactor some code in multiparameter assignment | 2a700a03cee5366ad4a9af5b5f3a9c31a7e991fd | <ide><path>activerecord/lib/active_record/attribute_assignment.rb
<ide> def assign_multiparameter_attributes(pairs)
<ide> )
<ide> end
<ide>
<del> def instantiate_time_object(name, values)
<del> if self.class.send(:create_time_zone_conversion_attribute?, name, column_for_attribute(name))
<del> ... | 1 |
Javascript | Javascript | add jest entry file for external-server-runtime | 4e27881cfe8cb00a645134f1b4710b648a59bcd9 | <ide><path>packages/react-dom/unstable_server-external-runtime.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its 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> */
<add>
<add>ex... | 1 |
Javascript | Javascript | move pipe/tcpconnectwrap to obj destructuring | e88cd882f5646539a9eef1f8a717a0f0a39c1781 | <ide><path>lib/net.js
<ide> const {
<ide>
<ide> const { Buffer } = require('buffer');
<ide> const TTYWrap = process.binding('tty_wrap');
<del>const { TCP, constants: TCPConstants } = process.binding('tcp_wrap');
<del>const { Pipe, constants: PipeConstants } = process.binding('pipe_wrap');
<del>const { TCPConnectWrap }... | 1 |
Text | Text | add a simple documentation index | c38eccf39d2cccd57b8c9ae6c40874270578603e | <ide><path>docs/index.md
<add>## Atom Reference
<add>
<add>* [API](api/index.html)
<add>
<add>## Atom Guides
<add>
<add>* [Getting Started](getting-started.html)
<add>* [Configuring Atom](configuring-atom.html)
<add>* Builtin Packages
<add> * [Introduction](built-in-packages/intro.html)
<add> * [Command Panel](built-... | 1 |
Javascript | Javascript | use extend to avoid overwriting prototype | 3abb3fefe653df2a4cb730cface0049939c18efd | <ide><path>lib/promises-aplus/promises-aplus-test-adapter.js
<ide> var minErr = function minErr (module, constructor) {
<ide> };
<ide> };
<ide>
<add>var extend = function extend(dst) {
<add> for (var i = 1, ii = arguments.length; i < ii; i++) {
<add> var obj = arguments[i];
<add> if (obj) {
<add> var key... | 2 |
PHP | PHP | remove duplicate method | c1df61673157c3f4dec400d0d2e5bee43d3f4e2c | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function __construct(View $View, $settings = []) {
<ide> $this->initStringTemplates($this->_defaultTemplates);
<ide> }
<ide>
<del>/**
<del> * Get/set templates to use.
<del> *
<del> * @param string|null|array $templates null or string allow reading templat... | 1 |
Ruby | Ruby | update ar integration tests for testcase changes | 4af46c4ba1c87333b24d820150f3ecc59165d92a | <ide><path>actionpack/test/active_record_unit.rb
<ide> def require_fixture_models
<ide> end
<ide>
<ide> class ActiveRecordTestCase < ActionController::TestCase
<add> include ActiveRecord::TestFixtures
<add>
<ide> # Set our fixture path
<ide> if ActiveRecordTestConnector.able_to_connect
<ide> self.fixture_path... | 2 |
Text | Text | fix typoes in docker-run.1.md | a44451d40eb3e1b3d19a0525f70736406c66d2d1 | <ide><path>docs/man/docker-run.1.md
<ide> the number of containers running on the system.
<ide> For example, consider three containers, one has a cpu-share of 1024 and
<ide> two others have a cpu-share setting of 512. When processes in all three
<ide> containers attempt to use 100% of CPU, the first container would rec... | 1 |
Go | Go | remove custom matcher code | 951faaed664dd51d2aacfdb782534f4c46bd9e23 | <ide><path>distribution/pull_v2_unix.go
<ide> func (ld *v2LayerDescriptor) open(ctx context.Context) (distribution.ReadSeekClo
<ide> }
<ide>
<ide> func filterManifests(manifests []manifestlist.ManifestDescriptor, p specs.Platform) []manifestlist.ManifestDescriptor {
<del> p = withDefault(p)
<add> p = platforms.Normali... | 1 |
Java | Java | update stomp decoder to handle incomplete frames | e84885c65508a6182dd8ed204afebe45503898cf | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompCodec.java
<ide> public Message<byte[]> apply(Buffer buffer) {
<ide> Message<byte[]> message = DECODER.decode(buffer.byteBuffer());
<ide> if (message != null) {
<ide> next.accept(message);
<add> } else {
<add> ... | 3 |
Ruby | Ruby | remove `sort` from `each_artifact` | e1670a9210d461184708217285975a0023afc20b | <ide><path>Library/Homebrew/cask/lib/hbc/artifact/relocated.rb
<ide> def add_altname_metadata(file, altname)
<ide> end
<ide>
<ide> def each_artifact
<del> # the sort is for predictability between Ruby versions
<del> @cask.artifacts[self.class.artifact_dsl_key].sort.each do |artifact|
<add> ... | 1 |
Javascript | Javascript | use common.fixtures in checkserveridentity | 41b65b9fa36aef1fb40b408ee7586da5dd1c5d90 | <ide><path>test/parallel/test-https-client-checkServerIdentity.js
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<ide> const assert = require('assert');
<add>const fixtures = require('../common/fixtures');
<ide> const https = require('https');
<del>const fs = require('fs');
<del>const path =... | 1 |
Text | Text | fix typo in readme file | 865777da92a986df28d6fb40674f66198aa30cc8 | <ide><path>README.md
<ide> and may also be used independently outside Rails.
<ide> We encourage you to contribute to Ruby on Rails! Please check out the
<ide> [Contributing to Ruby on Rails guide](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html) for guidelines about how to proceed. [Join us!](http:... | 1 |
Ruby | Ruby | document the sprockets compressors | 725617a6475703270a9afd59f1cf91ac3297720a | <ide><path>actionpack/lib/sprockets/compressors.rb
<ide> module Sprockets
<del> class NullCompressor
<add> # An asset compressor which does nothing.
<add> #
<add> # This compressor simply returns the asset as-is, without any compression
<add> # whatsoever. It is useful in development mode, when compression isn't
<... | 1 |
Javascript | Javascript | redirect /challenges to /map | caa992ecff69cbf00f64baade758aea5a371eb9a | <ide><path>common/app/routes/challenges/index.js
<ide> import Challenges from './components/Challenges.jsx';
<ide>
<ide> export default {
<del> path: 'challenges',
<del> component: Challenges
<add> path: 'challenges(/:dashedName)',
<add> component: Challenges,
<add> onEnter(nextState, replace) {
<add> // redir... | 2 |
Python | Python | remove hashlib fallback for python < 2.5 | 38e152a4272f79772b48f7232fc7f3a8ebbf61a6 | <ide><path>numpy/core/code_generators/genapi.py
<ide> from __future__ import division, absolute_import, print_function
<ide>
<ide> import sys, os, re
<del>try:
<del> import hashlib
<del> md5new = hashlib.md5
<del>except ImportError:
<del> import md5
<del> md5new = md5.new
<add>import hashlib
<ide>
<ide> i... | 1 |
Javascript | Javascript | remove mongoose reference | f3bcafb42f58f589d85eca690b79e29236630bf1 | <ide><path>controllers/user.js
<del>var mongoose = require('mongoose');
<ide> var passport = require('passport');
<ide> var _ = require('underscore');
<ide> var User = require('../models/User'); | 1 |
Python | Python | remove "arr" from keepdims docstrings | b076bfb4804db8a6c38260cee56d03f99d860739 | <ide><path>numpy/core/fromnumeric.py
<ide> def sum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue):
<ide> keepdims : bool, optional
<ide> If this is set to True, the axes which are reduced are left
<ide> in the result as dimensions with size one. With this option,
<del> the result w... | 1 |
Javascript | Javascript | fix drawerlayoutandroid not able to set opacity | 7851572b405d22dd885c291de21d5b1a30d7c92c | <ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
<ide> var DrawerLayoutAndroid = React.createClass({
<ide> 'none', // default
<ide> 'on-drag',
<ide> ]),
<add> /**
<add> * Specifies the background color of the drawer. The default value is white.
<add> * If you want ... | 1 |
Javascript | Javascript | pass additional arguments to the callback | 4f1f9cfdb721cf308ca1162b2227836dc1d28388 | <ide><path>src/ng/interval.js
<ide> function $IntervalProvider() {
<ide> * indefinitely.
<ide> * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
<ide> * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
<add> * @param {..... | 3 |
Ruby | Ruby | use parsed_body to auto parse the response as json | 4efbeaeaab72be070e203f39726b37703c1db1fa | <ide><path>test/controllers/direct_uploads_controller_test.rb
<ide> class ActiveStorage::S3DirectUploadsControllerTest < ActionController::TestCase
<ide> post :create, params: { blob: {
<ide> filename: "hello.txt", byte_size: 6, checksum: Digest::MD5.base64digest("Hello"), content_type: "text/plain" } }... | 1 |
Python | Python | remove duplicate methods | 41cbb25a9ae59d17990e49ca6e4e33f6ef4041c7 | <ide><path>test/test_ec2.py
<ide> def test_list_location(self):
<ide> self.assertTrue(len(locations) > 0)
<ide> self.assertTrue(locations[0].availability_zone != None)
<ide>
<del> def test_list_location(self):
<del> locations = self.driver.list_locations()
<del> self.assertTrue(len(loc... | 1 |
Python | Python | fix schema typo | 48c327c681da481b7c36c674307bd58adfa4286c | <ide><path>rest_framework/schemas/openapi.py
<ide> def check_duplicate_operation_id(self, paths):
<ide> 'You have a duplicated operationId in your OpenAPI schema: {operation_id}\n'
<ide> '\tRoute: {route1}, Method: {method1}\n'
<ide> '\tRoute: {rou... | 1 |
Java | Java | add functionalinterface annotations. | 0fba7c5530b092d13d29681298545ad98d22249a | <ide><path>src/main/java/io/reactivex/rxjava3/core/CompletableConverter.java
<ide> * @param <R> the output type
<ide> * @since 2.2
<ide> */
<add>@FunctionalInterface
<ide> public interface CompletableConverter<R> {
<ide> /**
<ide> * Applies a function to the upstream Completable and returns a converted valu... | 46 |
Ruby | Ruby | raise an exception when double loading a formula | 4760f4e8032694d37f934257f6a58f0164438151 | <ide><path>Library/Homebrew/formulary.rb
<ide> def self.load_formula(name, path, contents, namespace)
<ide> raise "Formula loading disabled by HOMEBREW_DISABLE_LOAD_FORMULA!"
<ide> end
<ide>
<add> raise "Formula #{name} has already been loaded" if const_defined?(namespace)
<add>
<ide> mod = Module.new... | 2 |
Go | Go | use trimspace to instead of trim | e9602f3561b78313c4d474a8d950f7cc562637e8 | <ide><path>api/client/login.go
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<ide> if username == "" {
<ide> promptDefault("Username", authconfig.Username)
<ide> username = readInput(cli.in, cli.out)
<del> username = strings.Trim(username, " ")
<add> username = strings.TrimSpace(username)
<ide> ... | 1 |
Python | Python | pass the real version and not a default one | 03f5d80393b3a005514d06be7fc50a2683923a4e | <ide><path>libcloud/container/drivers/docker.py
<ide> def __init__(self, key='', secret='', secure=False, host='localhost',
<ide> self.connection.secure = secure
<ide> self.connection.host = host
<ide> self.connection.port = port
<add> # set API version
<add> self.version = self._g... | 1 |
Python | Python | fix exception handling | 245fbe3cad7c60246be30a8d9ec2e7257da7bbac | <ide><path>libcloud/container/drivers/lxd.py
<ide> def destroy_container(self, container, ex_timeout=default_time_out):
<ide>
<ide> # Return: background operation or standard error
<ide> req = '/%s/containers/%s' % (self.version, container.name)
<del> response = self.connection.request(req, meth... | 1 |
Text | Text | add springboot overview under java frameworks | e7593617169e0346e24ba80935cf5fb80b35f697 | <ide><path>guide/english/java/frameworks/springboot/index.md
<add>---
<add>title: springboot
<add>---
<add>
<add>## SpringBoot
<add>- Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.
<add>- Provide a radically faster and widely accessible getting start... | 1 |
Javascript | Javascript | move ember.engine to @ember/engine | e5d33f60b33d48eecc19e04c2d84b39701604add | <ide><path>packages/@ember/application/lib/application.js
<ide> import {
<ide> BucketCache,
<ide> } from 'ember-routing';
<ide> import ApplicationInstance from '@ember/application/instance';
<del>import { Engine } from 'ember-application';
<add>import Engine from '@ember/engine';
<ide> import { privatize as P } from ... | 14 |
Python | Python | refactor the main() function | 65121f7796c1577863cf59b96e46c75fef544e83 | <ide><path>glances/__init__.py
<ide> def end():
<ide> sys.exit(0)
<ide>
<ide>
<del>def main():
<del> """Main entry point for Glances.
<add>def start_standalone(config, args):
<add> """Start the standalone mode"""
<add> logger.info("Start standalone mode")
<ide>
<del> Select the mode (standalone, clie... | 1 |
Ruby | Ruby | remove to_sql from tabledefinition | 1c9f7fa6e17d3b026ad6e0bc1f07a9dd47d8a360 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> def references(*args)
<ide> end
<ide> alias :belongs_to :references
<ide>
<del> # Returns a String whose contents are the column definitions
<del> # concatenated together. This string can then be pr... | 3 |
Javascript | Javascript | fix url for thumbnail. (still not working 100) | 337806deed4f75ba7d93bd14963264588c11b72e | <ide><path>web/viewer.js
<ide> var PageView = function pageView(container, content, id, pageWidth, pageHeight,
<ide>
<ide> var ThumbnailView = function thumbnailView(container, page, id, pageRatio) {
<ide> var anchor = document.createElement('a');
<del> anchor.href = '#' + id;
<add> anchor.href = PDFView.getAnchor... | 1 |
Javascript | Javascript | fix syntax error in fixture | 64d63b9d4ab3c6f6d1f48c4e9f06010913f7970c | <ide><path>packages/go-to-line/spec/fixtures/sample.js
<ide> var quicksort = function () {
<ide>
<ide> // adapted from:
<ide> // https://github.com/nzakas/computer-science-in-javascript/tree/master/algorithms/sorting/merge-sort-recursive
<del>var mergeSort function (items){
<add>var mergeSort = function (items){
<ide>... | 1 |
Java | Java | give more time to certain concurrency tests | 285ed87f177a9006330c59461ae962f811aae613 | <ide><path>src/test/java/rx/internal/operators/OperatorRetryTest.java
<ide> public void testTimeoutWithRetry() {
<ide> assertEquals("Start 6 threads, retry 5 then fail on 6", 6, so.efforts.get());
<ide> }
<ide>
<del> @Test(timeout = 10000)
<add> @Test(timeout = 15000)
<ide> public void testRe... | 3 |
Javascript | Javascript | allow multiple classes per stream | b8aef4dce60e65c8044f4dae5f13e4b62b72efa1 | <ide><path>packages/ember-htmlbars/lib/attr_nodes/quoted_class.js
<ide> QuotedClassAttrNode.prototype.scheduledRenderIfNeeded = function scheduledRender
<ide> }
<ide> };
<ide>
<add>function pushString(list, string) {
<add> var parts = string.split(' ');
<add> var length = parts.length;
<add> if (length === 1 && p... | 2 |
Python | Python | use s3 location for xlm-roberta model | fe9aab1055604e772be05a1cbbb36a207c177055 | <ide><path>transformers/tokenization_xlm_roberta.py
<ide> PRETRAINED_VOCAB_FILES_MAP = {
<ide> 'vocab_file':
<ide> {
<del> 'xlm-roberta-base': "https://schweter.eu/cloud/transformers/xlm-roberta-base-sentencepiece.bpe.model",
<del> 'xlm-roberta-large': "https://schweter.eu/cloud/transformers/xlm-roberta-l... | 1 |
Ruby | Ruby | use the appropriate rdoc code markup | bae07dcce2f6821e202e1e0b544421d6851e8ecf | <ide><path>railties/lib/rails/console/helpers.rb
<ide> module Rails
<ide> module ConsoleMethods
<ide> # Gets the helper methods available to the controller.
<ide> #
<del> # This method assumes an `ApplicationController` exists, and it extends `ActionController::Base`
<add> # This method assumes an +Appl... | 1 |
Javascript | Javascript | reduce the handletoplevel() event code indirection | 808f31af5cc571880058281c3ba1e1c69ce8aa5c | <ide><path>packages/events/EventPluginHub.js
<ide> export function getListener(inst: Fiber, registrationName: string) {
<ide> * @return {*} An accumulation of synthetic events.
<ide> * @internal
<ide> */
<del>export function extractEvents(
<add>function extractEvents(
<ide> topLevelType: string,
<ide> targetInst... | 9 |
Python | Python | implement option to reset user token | d2459710cae9e17b785e1d67b11d7bc9aa39678a | <ide><path>rest_framework/authtoken/management/commands/drf_create_token.py
<ide> class Command(BaseCommand):
<ide> help = 'Create DRF Token for a given user'
<ide>
<del> def create_user_token(self, username):
<add> def create_user_token(self, username, reset_token):
<ide> user = UserModel._default_m... | 2 |
PHP | PHP | update error message | c0f6375d7de86db7cdf1aeae6f026421cf9df741 | <ide><path>src/View/Exception/MissingCellException.php
<ide> */
<ide> class MissingCellException extends Exception {
<ide>
<del> protected $_messageTemplate = 'Cell class "%s" is missing.';
<add> protected $_messageTemplate = 'Cell class %s is missing.';
<ide>
<ide> } | 1 |
Ruby | Ruby | fix crash when using --github with a formula | 24260e7d82f446976ff63de03cf262eb0df6258b | <ide><path>Library/Homebrew/cask/cmd/info.rb
<ide> def github_remote_path(remote, path)
<ide>
<ide> def run
<ide> if args.json == "v1"
<del> puts JSON.generate(casks.map(&:to_h))
<add> puts JSON.generate(args.named.to_casks.map(&:to_h))
<ide> elsif args.github?
<ide> r... | 1 |
Text | Text | fix minor typo on pagination documentation | ffc10edd7e79ce7aa77defd642c03974580feeb5 | <ide><path>docs/api-guide/pagination.md
<ide> Proper usage of cursor pagination should have an ordering field that satisfies t
<ide> * Should be a non-nullable value that can be coerced to a string.
<ide> * The field should have a database index.
<ide>
<del>Using an ordering field that does not satisfy these constrain... | 1 |
PHP | PHP | add rescue helper | 931bc761ea9d6dba79bdedd444820f3e79c07b95 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function preg_replace_array($pattern, array $replacements, $subject)
<ide> }
<ide> }
<ide>
<add>if (! function_exists('rescue')) {
<add> function rescue(callable $rescuee, $rescuer)
<add> {
<add> try {
<add> return $rescuee();
<add> ... | 2 |
Text | Text | add microsoft azure | 98f60aef130a40be260c490273d10504a7d2623c | <ide><path>docs/misc/faq.md
<ide> Cloud:
<ide>
<ide> - Amazon EC2
<ide> - Google Compute Engine
<add> - Microsoft Azure
<ide> - Rackspace
<ide>
<ide> ### How do I report a security issue with Docker? | 1 |
PHP | PHP | fix docblock typo of objectcollection class | 70d9ae9a031145cf5540004c96839a0abba7a88b | <ide><path>lib/Cake/Utility/ObjectCollection.php
<ide> * to implement its own load() functionality.
<ide> *
<ide> * All core subclasses of ObjectCollection by convention loaded objects are stored
<del> * in `$this->_loaded`. Enabled objects are stored in `$this->_enabled`. In addition
<del> * the all support an `ena... | 1 |
Text | Text | remove cifar-10 from readme | 23aaaad47b8a04d3c9aed78db592b04dd8611d00 | <ide><path>privacy/README.md
<ide> respective documentations.
<ide>
<ide> ## How to run
<ide>
<del>This repository supports the MNIST, CIFAR10, and SVHN datasets. The following
<add>This repository supports the MNIST and SVHN datasets. The following
<ide> instructions are given for MNIST but can easily be adapted by ... | 1 |
Javascript | Javascript | return the query with the findcontrols | 72f48ee089c57a8c19a17834f24cc73f23ea2ff4 | <ide><path>web/app.js
<ide> function webViewerUpdateFindMatchesCount({ matchesCount }) {
<ide> }
<ide> }
<ide>
<del>function webViewerUpdateFindControlState({ state, previous, matchesCount }) {
<add>function webViewerUpdateFindControlState({
<add> state,
<add> previous,
<add> matchesCount,
<add> rawQuery,
<add>}... | 2 |
Ruby | Ruby | add check for broken taps | c7bbb904e8f83b08fe8d10913e37298fa7a03386 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def examine_git_origin(repository_path, desired_origin)
<ide> end
<ide> end
<ide>
<add> def broken_tap_msg(tap)
<add> <<~EOS
<add> #{tap.full_name} was not tapped properly.
<add> To fix:
<add> rm -rf "#{tap.path}"
<a... | 1 |
Javascript | Javascript | hide stack trace in export warnings | 76efbcf801c5cb7de3b73025081e4a4ea4e63f9b | <ide><path>lib/dependencies/HarmonyImportSpecifierDependency.js
<ide> HarmonyImportSpecifierDependency.prototype.getWarnings = function() {
<ide> var importedModule = this.importDependency.module;
<ide> if(importedModule && importedModule.meta && importedModule.meta.harmonyModule) {
<ide> if(this.id && importedModu... | 1 |
Ruby | Ruby | remove redundant use of nostdout | 3f0a409ec5dff27e516faf0a282f76be99187b99 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def checkout_args
<ide> end
<ide>
<ide> def checkout
<del> nostdout { quiet_safe_system 'git', *checkout_args }
<add> quiet_safe_system 'git', *checkout_args
<ide> end
<ide>
<ide> def reset_args | 1 |
PHP | PHP | remove $name where unnecessary - unifies code base | 8d80522c5ea80c88945c842a911e359870d69df7 | <ide><path>Cake/Test/TestApp/Controller/AjaxAuthController.php
<ide> */
<ide> class AjaxAuthController extends Controller {
<ide>
<del>/**
<del> * name property
<del> *
<del> * @var string 'AjaxAuth'
<del> */
<del> public $name = 'AjaxAuth';
<del>
<ide> /**
<ide> * components property
<ide> *
<ide><path>Cake/Test/T... | 21 |
Text | Text | change "virtualization" to "containerization" | 0d1c5193b389052f11d77ca576f7dbb49b601135 | <ide><path>docs/examples/mongodb.md
<ide> +++
<ide> title = "Dockerizing MongoDB"
<ide> description = "Creating a Docker image with MongoDB pre-installed using a Dockerfile and sharing the image on Docker Hub"
<del>keywords = ["docker, dockerize, dockerizing, article, example, docker.io, platform, package, installation... | 15 |
Java | Java | reset bytesmessage after payload extraction | 8346eeda276907aaac0dc9393f1e5558b2ace021 | <ide><path>spring-jms/src/main/java/org/springframework/jms/listener/adapter/AbstractAdaptableMessageListener.java
<ide>
<ide> package org.springframework.jms.listener.adapter;
<ide>
<add>import javax.jms.BytesMessage;
<ide> import javax.jms.Destination;
<ide> import javax.jms.InvalidDestinationException;
<ide> impor... | 1 |
Javascript | Javascript | return 410 for api/github | ce23dcb32c9a6053aba215a0f47c5e1bc307817a | <ide><path>api-server/src/server/boot/randomAPIs.js
<del>import request from 'request';
<del>
<del>import { gitHubUserAgent } from '../../../../config/misc';
<ide> import { getRedirectParams } from '../utils/redirection';
<ide>
<del>const githubClient = process.env.GITHUB_ID;
<del>const githubSecret = process.env.GITH... | 2 |
Python | Python | fix introspection of list field in schema | 32a0b62508fc6a83bc7fd80d362d67ca35b603f9 | <ide><path>rest_framework/schemas.py
<ide> def field_to_schema(field):
<ide> title = force_text(field.label) if field.label else ''
<ide> description = force_text(field.help_text) if field.help_text else ''
<ide>
<del> if isinstance(field, serializers.ListSerializer):
<add> if isinstance(field, (serializ... | 1 |
Javascript | Javascript | add attribute bindings to sc.view | b058cafaac2b2bff3451073ceee232887f862b5e | <ide><path>packages/sproutcore-views/lib/views/view.js
<ide> /*globals sc_assert */
<ide>
<ide> require("sproutcore-views/system/render_buffer");
<del>var get = SC.get, set = SC.set;
<add>var get = SC.get, set = SC.set, addObserver = SC.addObserver;
<ide>
<ide> /**
<ide> @static
<ide> SC.View = SC.Object.extend(
<i... | 3 |
Python | Python | remove redundant sorting of eigenvalues | 26c0fcbd8ab32d3d5f4657890c5da114168cfb6d | <ide><path>numpy/polynomial/hermite.py
<ide> def hermgauss(deg):
<ide> c = np.array([0]*deg + [1], dtype=np.float64)
<ide> m = hermcompanion(c)
<ide> x = la.eigvalsh(m)
<del> x.sort()
<ide>
<ide> # improve roots by one application of Newton
<ide> dy = _normed_hermite_n(x, ideg)
<ide><path>numpy/... | 2 |
Text | Text | fix typo in textencoding section | 98f744cbc9a6cb844595e028a23a925b7f7edfe1 | <ide><path>doc/api/util.md
<ide> const uint8array = encoder.encode('this is some data');
<ide> UTF-8 encodes the `input` string and returns a `Uint8Array` containing the
<ide> encoded bytes.
<ide>
<del>### textDecoder.encoding
<add>### textEncoder.encoding
<ide>
<ide> * {string}
<ide> | 1 |
Python | Python | test all dtypes for sort | 7f586789e4b4e84f8f947e6d61c8718b453632af | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_sort(self):
<ide> # of sorted items must be greater than ~50 to check the actual
<ide> # algorithm because quick and merge sort fall over to insertion
<ide> # sort for small arrays.
<del> for dtype in [np.int32, np.uint32, np.f... | 1 |
Ruby | Ruby | remove redundant `travel_back` | 12fadea8aee3981654149d6e8ff5099bca31c679 | <ide><path>activerecord/test/cases/dirty_test.rb
<ide> def test_previous_changes
<ide> assert_not_nil pirate.previous_changes["updated_on"][1]
<ide> assert_not pirate.previous_changes.key?("parrot_id")
<ide> assert_not pirate.previous_changes.key?("created_on")
<del> ensure
<del> travel_back
<ide> end... | 2 |
Javascript | Javascript | return null error on readfile() success | 1594198600f5349d4500e4d5c3b5aa0c1192ed4e | <ide><path>lib/fs.js
<ide> function readFileAfterClose(err) {
<ide> }
<ide>
<ide> function tryToString(buf, encoding, callback) {
<del> var e;
<add> var e = null;
<ide> try {
<ide> buf = buf.toString(encoding);
<ide> } catch (err) { | 1 |
PHP | PHP | remove comment bloat from dynamic query builder | a5af988d53764d39bf1f59a6fb93baee1c4d6e85 | <ide><path>system/db/query/dynamic.php
<ide> class Dynamic {
<ide> */
<ide> public static function build($method, $parameters, $query)
<ide> {
<del> // ---------------------------------------------------------
<ide> // Strip the "where_" off of the method.
<del> // ----------------------------------------------... | 1 |
Python | Python | remove unused is_base_form for mk lemmatizer | 185fc62f4d717aed488d34d323f4eedbf7f729ae | <ide><path>spacy/lang/mk/lemmatizer.py
<ide> def rule_lemmatize(self, token: Token) -> List[str]:
<ide> string = string[:-3]
<ide> univ_pos = "verb"
<ide>
<del> if callable(self.is_base_form) and self.is_base_form(univ_pos, morphology):
<del> return [string.lower()]
<ide> ... | 1 |
Python | Python | fix provider constant in the example | 12525b5e58752df67fc5bc063aaf4a5996c2bf21 | <ide><path>example_storage.py
<ide> from libcloud.storage.types import Provider
<ide> from libcloud.storage.providers import get_driver
<ide>
<del>CloudFiles = get_driver(Provider.CloudFiles)
<add>CloudFiles = get_driver(Provider.CLOUDFILES)
<ide>
<ide> driver = CloudFiles('access key id', 'secret key')
<ide> | 1 |
Text | Text | remove missing setdatavisibility for documentation | 7752566a482f71f9905e794f9ef962bb8634127a | <ide><path>docs/docs/developers/api.md
<ide> chart.setDatasetVisibility(1, false); // hides dataset at index 1
<ide> chart.update(); // chart now renders with dataset hidden
<ide> ```
<ide>
<del>## setDataVisibility(datasetIndex, index, visibility)
<del>
<del>Like [setDatasetVisibility](#setdatasetvisibility) except t... | 1 |
Text | Text | fix broken urls in docs | c688c2f5430de350f27fda0081c6f1d83c0055b8 | <ide><path>docs/docs/axes/radial/linear.md
<ide> The following options are used to configure the point labels that are shown on t
<ide> | ---- | ---- | ------- | ------- | -----------
<ide> | `display` | `boolean` | | `true` | if true, point labels are shown.
<ide> | `callback` | `function` | | | Callback function to t... | 4 |
Text | Text | add react rally to conferences list | 7253e6544b4409841c1527c744f2f08c9ab867ba | <ide><path>docs/community/conferences.md
<ide> July 10-11 in Portland, Oregon USA
<ide>
<ide> [Website](https://infinite.red/ChainReactConf) - [Twitter](https://twitter.com/chainreactconf)
<ide>
<add>### React Rally
<add>August 24-25 in Salt Lake City, Utah USA
<add>[Website](http://www.reactrally.com) - [Twitter](ht... | 1 |
Text | Text | fix some version information | aa26364ce1de66b23e51864682cbdadb4a272fa4 | <ide><path>docs/deprecated.md
<ide> To learn more about Docker Engine's deprecation policy,
<ide> see [Feature Deprecation Policy](https://docs.docker.com/engine/#feature-deprecation-policy).
<ide>
<ide> ## `filter` param for `/images/json` endpoint
<del>**Deprecated In Release: [v1.13](https://github.com/docker/docke... | 1 |
Text | Text | add more examples of code-smells | 76388feedbe80e8def695732975e15db8da77c24 | <ide><path>guide/english/agile/code-smells/index.md
<ide> It is important to understand that smelly code works, but is not of good quality
<ide> #### Examples
<ide> 1. Duplicated code - Blocks of code that have been replicated across the code base. This may indicate that you need to generalize the code into a function ... | 1 |
PHP | PHP | make $callback optional for helper functions too | cd0af1093647b6447475f3b0c858cf10d3b9f48c | <ide><path>src/Illuminate/Support/helpers.php
<ide> function array_except($array, $keys)
<ide> * @param mixed $default
<ide> * @return mixed
<ide> */
<del> function array_first($array, callable $callback, $default = null)
<add> function array_first($array, callable $callback = null, $default = nu... | 1 |
Python | Python | fix lint error | dc6d836bd51cd04a7be8dc3d4d0bf4ac0314e7f5 | <ide><path>contrib/generate_provider_feature_matrix_table.py
<ide> def is_function_or_method(*args, **kwargs):
<ide> for method_name in base_api_methods:
<ide> base_method = base_methods[method_name]
<ide>
<del>
<ide> if method_name == 'deploy_node':
<ide> features = get... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.