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 |
|---|---|---|---|---|---|
PHP | PHP | fix coding standards, double whitespace | 54607ba0fada8883e6f9a9f774c55523ada5e05a | <ide><path>lib/Cake/Model/CakeSchema.php
<ide> protected function _values($values) {
<ide> if (is_array($values)) {
<ide> foreach ($values as $key => $val) {
<ide> if (is_array($val)) {
<del> $vals[] = "'{$key}' => array(" . implode(", ", $this->_values($val)) . ")";
<add> $vals[] = "'{$key}' => array... | 1 |
Text | Text | add changelog entry [skip ci] | e505bc8acd4448030fd4d2f85796bdb61d45a5b1 | <ide><path>activesupport/CHANGELOG.md
<add>* Make the order of `Hash#reverse_merge!` consistent with `HashWithIndifferentAccess`.
<add>
<add> *Erol Fornoles*
<add>
<ide> * Add `rfc3339` aliases to `xmlschema` for `Time` and `ActiveSupport::TimeWithZone`
<ide>
<ide> For naming consistency when using the RFC ... | 1 |
Javascript | Javascript | remove react stack systrace logic | 973ef9728cd196f6853c24449af28569fa592462 | <ide><path>Libraries/Core/InitializeCore.js
<ide> if (!global.process.env.NODE_ENV) {
<ide> // Setup the Systrace profiling hooks if necessary
<ide> if (global.__RCTProfileIsProfiling) {
<ide> const Systrace = require('Systrace');
<del> Systrace.installReactHook(true);
<add> Systrace.installReactHook();
<ide> Sys... | 2 |
PHP | PHP | change default transport to 'default' | 297b8987b2152a6a32045e93ae98c8e6908e11d0 | <ide><path>src/Mailer/Email.php
<ide> protected function _logDelivery($contents)
<ide> * @return \Cake\Mailer\Email Instance of Cake\Mailer\Email
<ide> * @throws \InvalidArgumentException
<ide> */
<del> public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fa... | 1 |
Javascript | Javascript | update error message | b55743ebcde87751606933bdbd6d45b25eb3a8be | <ide><path>examples/js/exporters/PLYBinaryExporter.js
<ide> THREE.PLYBinaryExporter.prototype = {
<ide> // as triangles)
<ide> console.error(
<ide>
<del> 'PLYExporter: Failed to generate a valid PLY file because the ' +
<del> 'number of faces is not divisible by 3. This can be caused by ' +
<del> 'expor... | 2 |
Javascript | Javascript | relax permissionsandroid enforcement" | 3b65d2c2c8ce92693abc92bd0b3ff8342ab80f3c | <ide><path>Libraries/PermissionsAndroid/NativePermissionsAndroid.js
<ide> export interface Spec extends TurboModule {
<ide> ) => Promise<{[permission: PermissionType]: PermissionStatus}>;
<ide> }
<ide>
<del>export default TurboModuleRegistry.getEnforcing<Spec>('PermissionsAndroid');
<add>export default TurboModuleRe... | 2 |
Javascript | Javascript | add $setdirty method | e8941c0fe5217d2e705bad8253dc0162aff4c709 | <ide><path>src/ng/directive/input.js
<ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
<ide> $animate.addClass($element, PRISTINE_CLASS);
<ide> };
<ide>
<add> /**
<add> * @ngdoc method
<add> * @name ngModel.NgModelController#$setDirty
<add> *
<add> * @description
<ad... | 2 |
PHP | PHP | fix doc string | 42e8c7a0c2048f0f2d20ef57e2977bc34a0076f8 | <ide><path>tests/TestCase/Routing/RouteCollectionTest.php
<ide> public function testAddingDuplicateNamedRoutes()
<ide> }
<ide>
<ide> /**
<del> * Test get/set combined method.
<add> * Test combined get/set method.
<ide> *
<ide> * @return void
<ide> * @deprecated 3.5.0 | 1 |
Python | Python | improve method ordering | 0bbbec6ff6bbc560c1e8afa6cc09ee4f343b0d39 | <ide><path>libcloud/container/drivers/kubernetes.py
<ide> class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver):
<ide> connectionCls = KubernetesBasicAuthConnection
<ide> supports_clusters = True
<ide>
<del> def ex_get_version(self):
<del> """Get Kubernetes version"""
<del> r... | 1 |
Ruby | Ruby | update rubocop-cask to 0.12.0 | f6b1f88c3c7715a72a2dbd8ec9a7359450909747 | <ide><path>Library/Homebrew/constants.rb
<ide> # RuboCop version used for `brew style` and `brew cask style`
<ide> HOMEBREW_RUBOCOP_VERSION = "0.47.1".freeze
<del>HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.11.0".freeze # has to be updated when RuboCop version changes
<add>HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.12.0".freeze #... | 1 |
PHP | PHP | add persistent caching to stringtemplate | ebd24c408b90d8a208443ebf121cdd5856075192 | <ide><path>src/View/Helper/StringTemplateTrait.php
<ide> public function formatTemplate($name, $data) {
<ide> public function templater() {
<ide> if (empty($this->_templater)) {
<ide> $class = $this->config('templateClass') ?: 'Cake\View\StringTemplate';
<del> $this->_templater = new $class;
<add> $this->_tem... | 3 |
Javascript | Javascript | add okanagan news app to showcase | 279a6cd52f9fd3f709f6cf6d9c78fc9f34552b5c | <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: 'Okanagan News',
<add> icon: 'http://a5.mzstatic.com/us/r30/Purple69/v4/aa/93/17/aa93171e... | 1 |
Ruby | Ruby | update xcode links | 9877b1e7b8e62e8285b459cabe70556c37abfe75 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_xcode_up_to_date
<ide> Your Xcode (#{MacOS::Xcode.version}) is outdated
<ide> Please update to Xcode #{MacOS::Xcode.latest_version}.
<ide> Xcode can be updated from
<del> https://developer.apple.com/downloads
<add> https... | 1 |
Python | Python | revert some of the indirects in the initializers | 8c56113365d2aa1036980c9b9a408e2400c2b7fa | <ide><path>keras/initializers/initializers_v2.py
<ide> def __call__(self, shape, dtype=None, **kwargs):
<ide> raise ValueError(f'Expected numeric or boolean dtype, got {dtype}.')
<ide> if _PARTITION_SHAPE in kwargs:
<ide> shape = kwargs[_PARTITION_SHAPE]
<del> return self._call(shape, dtype, **kwargs... | 1 |
Text | Text | fix typos on n-api | d20f1f004ca45b408a774f4a58f35266a03bb001 | <ide><path>doc/api/n-api.md
<ide> are no longer required, the scope can be 'closed' and any handles associated
<ide> with the scope are invalidated. The methods available to open/close scopes are
<ide> [`napi_open_handle_scope`][] and [`napi_close_handle_scope`][].
<ide>
<del>N-API only supports a single nested hiearc... | 1 |
Ruby | Ruby | ignore stdout during gitdownloadstrategy.stage | 04f3ddeac01b75c66ec8e8f83a517cc13b6d3ab9 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch
<ide> safe_system 'git', 'clone', @url, @clone
<ide> else
<ide> # TODO git pull?
<del> puts "Repository already cloned"
<add> puts "Repository already cloned to #{@clone}"
<ide> end
<ide> end
<ide> def stage
<ide> def sta... | 3 |
Ruby | Ruby | fix basename for extracting cask downloads | 82c1e6fb0ebeb5bb34f03c1ef1b4cd482515f76c | <ide><path>Library/Homebrew/cask/download.rb
<ide> def cached_download
<ide> downloader.cached_location
<ide> end
<ide>
<add> def basename
<add> downloader.basename
<add> end
<add>
<ide> def verify_download_integrity(fn)
<ide> if @cask.sha256 == :no_check
<ide> opoo "No checksum ... | 2 |
PHP | PHP | fix exception message | 603a32ede92b4166dfa1f8fac1c57ceb6df06d97 | <ide><path>src/ORM/Association.php
<ide> public function getTarget()
<ide> if (!is_a($this->_targetTable, $className)) {
<ide> throw new RuntimeException(sprintf(
<ide> 'Invalid Table retrieved from a registry. Requested: %s, got: %s',
<del> get_class($... | 1 |
Text | Text | fix typo / grammar in the responsive docs | b50a1c21f2509f54a49347eeb73970a66b3c2013 | <ide><path>docs/general/responsive.md
<ide> # Responsive Charts
<ide>
<del>When it comes to change the chart size based on the window size, a major limitation is that the canvas *render* size (`canvas.width` and `.height`) can **not** be expressed with relative values, contrary to the *display* size (`canvas.style.wid... | 1 |
Java | Java | introduce datafieldmaxvalueincrementer for mariadb | 39f24f024458c21ed4ba97976cc2ed59a5ec4ba3 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/support/incrementer/MariaDBSequenceMaxValueIncrementer.java
<add>/*
<add> * Copyright 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 ... | 2 |
Ruby | Ruby | reduce string objects, reduce method calls | ddbd2039615ca4376a46a97a17612732f24568cd | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency.rb
<ide> class JoinDependency # :nodoc:
<ide>
<ide> def initialize(base, associations, joins)
<ide> @active_record = base
<del> @table_joins = joins || ''
<add> @table_joins ... | 1 |
Mixed | Go | simplify swappiness check | 6f8ddec1d0e67058c7a4a15c7d4d9a75bc1e5dea | <ide><path>docs/reference/run.md
<ide> and require killing system processes to free memory.
<ide> By default, a container's kernel can swap out a percentage of anonymous pages.
<ide> To set this percentage for a container, specify a `--memory-swappiness` value
<ide> between 0 and 100. A value of 0 turns off anonymous p... | 3 |
Javascript | Javascript | clockwise full ellipse | 1d7b7f74cfba5adb85770464b96b6d98daf9985f | <ide><path>src/extras/curves/EllipseCurve.js
<ide> THREE.EllipseCurve.prototype.getPoint = function( t ) {
<ide>
<ide> }
<ide>
<del> if ( this.aClockwise === true && deltaAngle != twoPi && ! samePoints ) {
<add> if ( this.aClockwise === true && ! samePoints ) {
<ide>
<del> deltaAngle = deltaAngle - twoPi;
<add> i... | 1 |
Text | Text | fix broken links in benchmark readme | 5688eb8f83646a8c4896d5b81086377eb5092b3e | <ide><path>benchmark/README.md
<ide> writing benchmarks.
<ide>
<ide> ### `createBenchmark(fn, configs[, options])`
<ide>
<del>See [the guide on writing benchmarks](../doc/guides/contributing/writing-and-running-benchmarks.md#basics-of-a-benchmark).
<add>See [the guide on writing benchmarks](../doc/guides/writing-and-... | 1 |
PHP | PHP | fix redis job php doc | bdfc993c0a5e547d01f76818e439d715a345a1e9 | <ide><path>src/Illuminate/Queue/Jobs/RedisJob.php
<ide> public function getJobId()
<ide> /**
<ide> * Get the underlying Redis factory implementation.
<ide> *
<del> * @return \Illuminate\Contracts\Redis\Factory
<add> * @return \Illuminate\Queue\RedisQueue
<ide> */
<ide> public function get... | 1 |
Ruby | Ruby | freeze static arguments for gsub | 58d75fd8112d27c0f4bdd004e10b4f4e8b350595 | <ide><path>actionpack/lib/action_controller/metal/http_authentication.rb
<ide> def encode_credentials(user_name, password)
<ide> end
<ide>
<ide> def authentication_request(controller, realm)
<del> controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub('"', "")}")
<add> controlle... | 11 |
PHP | PHP | apply fixes from styleci | a472d71fdfeb3e02a5e487e6fa395f7ea56d20ed | <ide><path>src/Illuminate/Console/Scheduling/Schedule.php
<ide> namespace Illuminate\Console\Scheduling;
<ide>
<ide> use DateTimeInterface;
<del>use Illuminate\Support\Carbon;
<ide> use Illuminate\Console\Application;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Queue\ShouldQueue; | 1 |
Text | Text | add install step to "compile from source" | c0b76f4c19ea8e5d50ac327874a34155b91d129f | <ide><path>website/docs/usage/index.md
<ide> $ source .env/bin/activate # activate virtual env
<ide> $ export PYTHONPATH=`pwd` # set Python path to spaCy dir
<ide> $ pip install -r requirements.txt # install all requirements
<ide> $ python setup.py build_ext --in... | 1 |
Ruby | Ruby | fix fixture tests that replace connection handler | 79744bc3350bf2eb158a4db5f333dc9a64401fd1 | <ide><path>activerecord/test/cases/fixtures_test.rb
<ide> def setup
<ide> @prev_configs, ActiveRecord::Base.configurations = ActiveRecord::Base.configurations, config
<ide> db_config = ActiveRecord::DatabaseConfigurations::HashConfig.new(ENV["RAILS_ENV"], "readonly", readonly_config)
<ide>
<add> teard... | 1 |
Javascript | Javascript | switch ios focus/blur calls to use new commands | da9364fa3e2e78ed3e06d469af8414933611501b | <ide><path>Libraries/Components/TextInput/TextInputState.js
<ide>
<ide> const React = require('react');
<ide> const Platform = require('../../Utilities/Platform');
<del>const UIManager = require('../../ReactNative/UIManager');
<ide> const {findNodeHandle} = require('../../Renderer/shims/ReactNative');
<ide> import {Co... | 1 |
Javascript | Javascript | fix lint problem | 544fee4658550fbe279942d9b7ce11a2782ccd97 | <ide><path>benchmark/createTestCases.js
<ide> createTree(fs, 5000, `${root}/modules-5000`);
<ide> function createTree(fs, count, folder) {
<ide> fs.mkdirSync(folder);
<ide> let remaining = count - 1;
<add>
<ide> function make(prefix, count, depth) {
<ide> if(count === 0) {
<ide> fs.writeFileSync(`${folder}/${pr... | 1 |
Text | Text | add v3.27.2 to changelog.md | d252b96f36d1faf2844df3776697467d0a6789f4 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
<ide>
<add>### v3.27.2 (May 27, 2021)
<add>
<add>- [#19511](https://github.com/emberjs/ember.js/pull/19511) / [#19548](https://github.com/emberjs/ember.js/pull/... | 1 |
Javascript | Javascript | ignore empty strings for text selection | 9ba08f2c3dc2a055cfdb5033b515d33ae278ab99 | <ide><path>web/viewer.js
<ide> var TextLayerBuilder = function textLayerBuilder(textLayerDiv, pageIdx) {
<ide>
<ide> for (var i = 0, ii = textDivs.length; i < ii; i++) {
<ide> var textDiv = textDivs[i];
<add> if ('isWhitespace' in textDiv.dataset) {
<add> continue;
<add> }
<ide> textLa... | 1 |
Ruby | Ruby | remove glide_home cache directories | 5efb158860d0a919587c52e65e651153cda9a887 | <ide><path>Library/Homebrew/cleanup.rb
<ide> def self.cleanup_cache(cache = HOMEBREW_CACHE)
<ide> cleanup_path(path) { path.unlink }
<ide> next
<ide> end
<del> if %w[java_cache npm_cache].include?(path.basename.to_s) && path.directory?
<add> if %w[glide_home java_cache npm_cach... | 1 |
Mixed | Ruby | update schema.rb documentation [ci skip] | 84718df86097442f85999d6f2e6f6b8b59724c3f | <ide><path>activerecord/lib/active_record/schema_dumper.rb
<ide> def header(stream)
<ide> # of editing this file, please use the migrations feature of Active Record to
<ide> # incrementally modify your database, and then regenerate this schema definition.
<ide> #
<del># Note that this schema.rb definition is the author... | 2 |
Javascript | Javascript | add deprecation warning for maskedviewios | 4ac65f5413ee59f7546b88a2eae2c4ce6fa8826b | <ide><path>Libraries/react-native/react-native-implementation.js
<ide> module.exports = {
<ide> return require('ListView');
<ide> },
<ide> get MaskedViewIOS() {
<add> warnOnce(
<add> 'maskedviewios-moved',
<add> 'MaskedViewIOS has been extracted from react-native core and will be removed in a futur... | 1 |
Python | Python | remove braindead test | 3bae2867e91443e8cb2d64072d77c6a22ba6ee82 | <ide><path>rest_framework/tests/package.py
<del>"""Tests for the rest_framework package setup."""
<del>from django.test import TestCase
<del>import rest_framework
<del>
<del>class TestVersion(TestCase):
<del> """Simple sanity test to check the VERSION exists"""
<del>
<del> def test_version(self):
<del> """... | 1 |
Javascript | Javascript | improve error message for missing itemview | 1af8166a2e53287426aeb06a1cc922a30a58f2f1 | <ide><path>packages/container/lib/main.js
<ide> define("container",
<ide> return this.resolver(fullName) || this.registry.get(fullName);
<ide> },
<ide>
<add> /**
<add> A hook that can be used to describe how the resolver will
<add> attempt to find the factory.
<add>
<add> For ex... | 6 |
Javascript | Javascript | remove syntheticevent subtypes | 76ce685d0fc7821a6c8be486d7cbb2c3d22f6fb7 | <ide><path>packages/react-dom/src/events/SyntheticEvent.js
<ide> import getEventCharCode from './getEventCharCode';
<ide> * @see http://www.w3.org/TR/DOM-Level-3-Events/
<ide> */
<ide> const EventInterface = {
<del> type: null,
<del> target: null,
<del> // currentTarget is set when dispatching; no use in copying i... | 4 |
Text | Text | improve paragraph in esm.md | 95eecd58b39b7dbedfce509b4a38d0c18e22f7cb | <ide><path>doc/api/esm.md
<ide> as ES modules and `.cjs` files are always treated as CommonJS.
<ide> ### Package scope and file extensions
<ide>
<ide> A folder containing a `package.json` file, and all subfolders below that folder
<del>down until the next folder containing another `package.json`, is considered a
<del>... | 1 |
Javascript | Javascript | add default value to binding element | 77b9ef571b9ef1dd66e8a736a11007c799c115b7 | <ide><path>lib/ModuleBuildError.js
<ide> const WebpackError = require("./WebpackError");
<ide> const cutOffLoaderExecution = require("./ErrorHelpers").cutOffLoaderExecution;
<ide>
<ide> class ModuleBuildError extends WebpackError {
<del> constructor(module, err, { from } = {}) {
<add> constructor(module, err, { from =... | 3 |
Ruby | Ruby | remove the transaction_open variable | 748052a99bb3046e4cdb7f8c00457da74fbdb75b | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> module ConnectionAdapters # :nodoc:
<ide> module DatabaseStatements
<ide> def initialize
<ide> super
<del> @transaction = ClosedTransaction.new(self)
<add> reset_transaction
<ide> en... | 2 |
Java | Java | remove cookie handler on destroy | 3a00545bc77c74d4fd49584e262326d3dffabb2f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java
<ide> public void loadLibrary(String libraryName) {
<ide> }
<ide>
<ide> Context context = this.getReactApplicationContext().getApplicationContext();
<del> OkHttpClient okHttpClient =
<del> OkHttpClientProvider.g... | 3 |
PHP | PHP | fix whitespace errors | b32273e713904c84fe18d98f189b49b83b69f1e8 | <ide><path>lib/Cake/Test/Case/BasicsTest.php
<ide> public function testH() {
<ide> 'n' => ' '
<ide> );
<ide> $this->assertEquals($expected, $result);
<del>
<add>
<ide> // Test that boolean values are not converted to strings
<ide> $result = h(false);
<ide> $this->assertFalse($result);
<ide><path>lib... | 2 |
Javascript | Javascript | simplify continuous hydration targets | ace9e8134c3080d86f20097d5ba3369e15a97a83 | <ide><path>packages/react-dom/src/__tests__/ReactDOMServerSelectiveHydration-test.internal.js
<ide> import {createEventTarget} from 'dom-event-testing-library';
<ide> let React;
<ide> let ReactDOM;
<ide> let ReactDOMServer;
<add>let ReactTestUtils;
<ide> let Scheduler;
<ide> let Suspense;
<ide> let usePress;
<ide> desc... | 3 |
Ruby | Ruby | normalize locals in unbound templates | 76561430e5e64f64ce46b9bf4af00ef58def4782 | <ide><path>actionview/lib/action_view/unbound_template.rb
<ide> def initialize(source, identifier, details:, virtual_path:)
<ide> @virtual_path = virtual_path
<ide>
<ide> @templates = Concurrent::Map.new(initial_capacity: 2)
<add> @write_lock = Mutex.new
<ide> end
<ide>
<ide> def bind_locals(... | 1 |
Ruby | Ruby | add audit for formulae with synced versions | ce2d946a7cd11a69ea1631579bf7df0e738adf0f | <ide><path>Library/Homebrew/formula_auditor.rb
<ide> def self.aliases
<ide> @aliases ||= Formula.aliases + Formula.tap_aliases
<ide> end
<ide>
<add> SYNCED_VERSIONS_FORMULAE_FILE = "synced_versions_formulae.json"
<add>
<add> def audit_synced_versions_formulae
<add> synced_versions_formulae_file = ... | 1 |
Python | Python | fix typehints in project_euler/problem01 | edf2cd2b0c81898aa2c2c735eff39924b2e4aa9e | <ide><path>project_euler/problem_01/sol1.py
<ide> """
<ide>
<ide>
<del>def solution(n):
<add>def solution(n: int = 1000) -> int:
<ide> """Returns the sum of all the multiples of 3 or 5 below n.
<ide>
<ide> >>> solution(3)
<ide><path>project_euler/problem_01/sol2.py
<ide> """
<ide>
<ide>
<del>def solution(n... | 7 |
Python | Python | remove reimported airflowexception class | e0d4c6b24d4564ad10d4c243100188ee0f90dc1f | <ide><path>airflow/www/views.py
<ide> def trigger(self, session=None):
<ide>
<ide> def _clear_dag_tis(self, dag, start_date, end_date, origin,
<ide> recursive=False, confirmed=False, only_failed=False):
<del> from airflow.exceptions import AirflowException
<del>
<ide> if confi... | 1 |
Go | Go | fix cleanup logic if restoring plugin fails | 5d25195f29539b3f12fa8dbc802201f93805c1c4 | <ide><path>plugin/manager_linux.go
<ide> func (pm *Manager) upgradePlugin(p *v2.Plugin, configDigest digest.Digest, blobs
<ide> logrus.WithError(rmErr).WithField("dir", backup).Error("error cleaning up after failed upgrade")
<ide> return
<ide> }
<del>
<del> if err := os.Rename(backup, orig); err != nil {
<... | 1 |
PHP | PHP | skip consoleinput tests on windows/appveyor | bc0a9898b8093610eedf37e853ea71e3a9dea819 | <ide><path>tests/TestCase/Console/ConsoleInputTest.php
<ide> public function setUp()
<ide> */
<ide> public function testDataAvailable()
<ide> {
<add> $this->skipIf(
<add> DS === '\\',
<add> 'Skip ConsoleInput tests on Windows as they fail on AppVeyor.'
<add> );
<add>
<id... | 1 |
Python | Python | fix exception causes in __init__.py | 6bb947c8dc3d5c154807d79861a7e5e995a6dc50 | <ide><path>numpy/__init__.py
<ide> else:
<ide> try:
<ide> from numpy.__config__ import show as show_config
<del> except ImportError:
<add> except ImportError as e:
<ide> msg = """Error importing numpy: you should not try to import numpy from
<ide> its source directory; please exit the ... | 1 |
Ruby | Ruby | convert hashes into parameters | 716f2e09c23e48716460027b78d2133bce0cdf3e | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def extract!(*keys)
<ide> # params = ActionController::Parameters.new(a: 1, b: 2, c: 3)
<ide> # params.transform_values { |x| x * 2 }
<ide> # # => <ActionController::Parameters {"a"=>2, "b"=>4, "c"=>6} permitted: false>
<del>... | 2 |
Text | Text | add api documentation | f97a555445e59c3739c4ff42ea5e68fc4306834d | <ide><path>website/docs/api/goldparse.md
<ide> Convert a list of Doc objects into the
<ide> | `id` | int | ID to assign to the JSON. Defaults to `0`. |
<ide> | **RETURNS** | list | The data in spaCy's JSON format. |
<ide>
<add>### gold.align {#align tag="function"}
<add>
<add>... | 1 |
Python | Python | fix typo in recurrent | 0933147dc89242fb4c89d3bfeedc051d82acc9c5 | <ide><path>keras/layers/recurrent.py
<ide> def build(self):
<ide> raise Exception('If a RNN is stateful, a complete ' +
<ide> 'input_shape must be provided ' +
<ide> '(including batch size).')
<del> self.states = [K.zeros(input_s... | 1 |
Go | Go | fix error handling for stale default gateways | 72eed906b8199c13022370fe5de4e015bf77e35e | <ide><path>libnetwork/drivers/bridge/bridge.go
<ide> func (d *driver) checkConflict(config *networkConfiguration) error {
<ide> nwConfig := nw.config
<ide> nw.Unlock()
<ide> if err := nwConfig.Conflicts(config); err != nil {
<del> if config.DefaultBridge {
<add> if nwConfig.DefaultBridge {
<ide> // We enc... | 1 |
PHP | PHP | remove app assignment | c0d7d3283abe6fb045920ae2ad06d288e9923772 | <ide><path>src/Illuminate/Support/Manager.php
<ide> abstract class Manager
<ide> */
<ide> public function __construct(Container $container)
<ide> {
<del> $this->app = $container;
<ide> $this->container = $container;
<ide> $this->config = $container->make('config');
<ide> } | 1 |
Javascript | Javascript | add node support for external @import | e2616fcd5d47928be5c66ce50ef6cf0feb5e5c27 | <ide><path>lib/WebpackOptionsApply.js
<ide> class WebpackOptionsApply extends OptionsApply {
<ide> }
<ide> : /^(\/\/|https?:\/\/|std:)/
<ide> ).apply(compiler);
<add> } else if (options.externalsPresets.node) {
<add> if (options.experiments.css) {
<add> //@ts-expect-error https://github.com/microso... | 3 |
PHP | PHP | add another intl variant | 5731856f412214647ac422ad28c51ac3e7a91198 | <ide><path>tests/TestCase/I18n/TimeTest.php
<ide> public function assertTimeFormat(string $expected, string $result, string $messa
<ide> $expected = str_replace([',', '(', ')', ' at', ' م.', ' ه.ش.', ' AP', ' AH', ' SAKA', 'à '], '', $expected);
<ide> $expected = str_replace([' '], ' ', $expected);
<i... | 1 |
Ruby | Ruby | use diff-tree and simplify diff parsing | 9a9328eef485e8321e1242b4a291215fde959198 | <ide><path>Library/Contributions/cmd/brew-pull.rb
<ide> def tap arg
<ide>
<ide> changed_formulae = []
<ide>
<del> `git diff #{revision}.. --name-status`.each_line do |line|
<add>
<add> if tap_dir
<add> formula_dir = %w[Formula HomebrewFormula].find { |d| tap_dir.join(d).directory? } || ""
<add> else
<add> ... | 1 |
PHP | PHP | remove unnecessary variable | 3ee0065bcd879b82ee42023165f8a8f71e893011 | <ide><path>app/Http/Middleware/VerifyCsrfToken.php
<ide>
<ide> class VerifyCsrfToken extends Middleware
<ide> {
<del> /**
<del> * Indicates whether the XSRF-TOKEN cookie should be set on the response.
<del> *
<del> * @var bool
<del> */
<del> protected $addHttpCookie = true;
<del>
<ide> /**
<i... | 1 |
Python | Python | update return introduction | d6d747cb28a3c8d946b6278706b13e50179b8421 | <ide><path>src/transformers/file_utils.py
<ide> def docstring_decorator(fn):
<ide>
<ide> PT_RETURN_INTRODUCTION = r"""
<ide> Returns:
<del> :class:`~{full_output_type}` or :obj:`tuple(torch.FloatTensor)`: A :class:`~{full_output_type}` (if
<del> ``return_dict=True`` is passed or when ``config.return_... | 1 |
Go | Go | reduce parameters for func joinoptionpriority | a24e5f5fd498115dec6247c2bea8a7153c7cb0ea | <ide><path>libnetwork/endpoint.go
<ide> func CreateOptionLoadBalancer() EndpointOption {
<ide>
<ide> // JoinOptionPriority function returns an option setter for priority option to
<ide> // be passed to the endpoint.Join() method.
<del>func JoinOptionPriority(ep Endpoint, prio int) EndpointOption {
<add>func JoinOption... | 3 |
Ruby | Ruby | raise typeerror instead of infinite looping | d0e95f45f3881e2b9cda44c2a2e74aad976297df | <ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb
<ide> def resolve_connection(config_or_env, pool_name = nil)
<ide> when Hash
<ide> resolve_hash_connection config_or_env
<ide> else
<del> resolve_connection config_or_env
<add> ... | 2 |
Javascript | Javascript | fix input tests without jquery | 665c62548359c6f16cfaf08274c1ce677feed8aa | <ide><path>packages/@ember/-internals/glimmer/tests/integration/components/input-angle-test.js
<ide> import { RenderingTestCase, moduleFor, runDestroy, runTask } from 'internal-test
<ide> import { EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS } from '@ember/canary-features';
<ide> import { assign } from '@ember/polyfills';
<id... | 2 |
Python | Python | add tests for custom storage suffix for | 91d14eaa0d54432e0b047e291279a4f6123314b1 | <ide><path>libcloud/test/compute/test_azure_arm.py
<ide> def setUp(self):
<ide> self.driver = Azure(self.TENANT_ID, self.SUBSCRIPTION_ID,
<ide> self.APPLICATION_ID, self.APPLICATION_PASS)
<ide>
<add> def test_get_image(self):
<add> # Default storage suffix
<add> ima... | 1 |
Text | Text | remove obsolete comment in iserror() example | d09c972fde7c608eaa3eba823ad5c9b114855783 | <ide><path>doc/api/util.md
<ide> possible to obtain an incorrect result when the `object` argument manipulates
<ide> `@@toStringTag`.
<ide>
<ide> ```js
<del>// This example requires the `--harmony-tostring` flag
<ide> const util = require('util');
<ide> const obj = { name: 'Error', message: 'an error occurred' };
<ide... | 1 |
PHP | PHP | remove used properties | ebd01d720c8be0ea4c7a4d2777086f6b238dd291 | <ide><path>src/Controller/Component/AuthComponent.php
<ide> class AuthComponent extends Component
<ide> */
<ide> public $allowedActions = [];
<ide>
<del> /**
<del> * Request object
<del> *
<del> * @var \Cake\Http\ServerRequest
<del> */
<del> public $request;
<del>
<del> /**
<del> ... | 1 |
Javascript | Javascript | fix enterleaveeventplugin-test in ie10 | e938116549fad743afa02308c5a43ff2c305e06f | <ide><path>src/browser/eventPlugins/__tests__/EnterLeaveEventPlugin-test.js
<ide> describe('EnterLeaveEventPlugin', function() {
<ide>
<ide> var iframeDocument = iframe.contentDocument;
<ide>
<del> if (!iframeDocument.innerHTML) {
<del> iframeDocument.innerHTML = '<html><head></head><body></body></html>';... | 1 |
Ruby | Ruby | convert `search_remote_tap` test to spec | 423f22df0033f83a04a9452d2e755a96e830b039 | <ide><path>Library/Homebrew/test/cmd/search_remote_tap_spec.rb
<add>require "cmd/search"
<add>
<add>describe Homebrew do
<add> specify "#search_tap" do
<add> json_response = {
<add> "tree" => [
<add> {
<add> "path" => "Formula/not-a-formula.rb",
<add> "type" => "blob",
<add> },
... | 2 |
Ruby | Ruby | fix compatibility with psych 4 | 22737122a2762bc97a5a364dfe1793c6ac3319e2 | <ide><path>activesupport/lib/active_support/configuration_file.rb
<ide> def self.parse(content_path, **options)
<ide> end
<ide>
<ide> def parse(context: nil, **options)
<del> YAML.load(render(context), **options) || {}
<add> source = render(context)
<add> begin
<add> YAML.load(source, ali... | 1 |
Python | Python | add some tests for random.multivariate_normal | 1c825f38d74bd9435c0b0c691dbea0a36a1ab0af | <ide><path>numpy/random/tests/test_random.py
<ide> from __future__ import division, absolute_import, print_function
<ide>
<del>from numpy.testing import TestCase, run_module_suite, assert_,\
<del> assert_raises, assert_equal
<add>import numpy as np
<add>from numpy.testing import (
<add> TestCase, run_mod... | 1 |
PHP | PHP | remove a number of unused methods from helper | 71c26e913f62627d7380ac08acad2356a5ebe451 | <ide><path>src/View/Helper.php
<ide> class Helper extends Object implements EventListener {
<ide> */
<ide> protected $_View;
<ide>
<del>/**
<del> * A list of strings that should be treated as suffixes, or
<del> * sub inputs for a parent input. This is used for date/time
<del> * inputs primarily.
<del> *
<del> * @var... | 2 |
Ruby | Ruby | move commit_message from utils/git | 8b206dfa335d55f3fa59f9bfd4c5701e246f851c | <ide><path>Library/Homebrew/dev-cmd/pr-pull.rb
<ide> def separate_commit_message(message)
<ide> end
<ide>
<ide> def signoff!(path, pr: nil, dry_run: false)
<del> subject, body, trailers = separate_commit_message(Utils::Git.commit_message(path))
<add> subject, body, trailers = separate_commit_message(path.git... | 5 |
Javascript | Javascript | fix incorrect default | 91546a11ab06406a0249172f8b83e33f6ff64e93 | <ide><path>lib/UmdMainTemplatePlugin.js
<ide> const accessorToObjectAccess = accessor => {
<ide> * @param {string=} joinWith the element separator
<ide> * @returns {string} the path
<ide> */
<del>const accessorAccess = (base, accessor, joinWith = "; ") => {
<add>const accessorAccess = (base, accessor, joinWith = ", ... | 1 |
Ruby | Ruby | fix the enums writer methods | 7aebcb67b040bca353cd2e97a468c8ffe4594665 | <ide><path>activerecord/lib/active_record/enum.rb
<ide> def enum(definitions)
<ide> _enum_methods_module.module_eval do
<ide> # def status=(value) self[:status] = STATUS[value] end
<ide> define_method("#{name}=") { |value|
<del> unless enum_values.has_key?(value) || value.blank?
<... | 3 |
PHP | PHP | remove an unused method | f441a1d537cdb9481e561c8dcb1d4b6cddf2b511 | <ide><path>src/Console/Command/Task/TestTask.php
<ide> protected function _addFixture($name) {
<ide> $this->_fixtures[$name] = $fixture;
<ide> }
<ide>
<del>/**
<del> * Interact with the user to get additional fixtures they want to use.
<del> *
<del> * @return array Array of fixtures the user wants to add.
<del> */
... | 2 |
Python | Python | set default path in en/de tests | 0cf4aff4702ad580f9709b33c96cd115f34b028d | <ide><path>spacy/tests/conftest.py
<ide>
<ide> @pytest.fixture(scope="session")
<ide> def EN():
<del> return English(path=False)
<add> return English()
<ide>
<ide> @pytest.fixture(scope="session")
<ide> def DE():
<del> return German(path=False)
<add> return German()
<ide>
<ide>
<ide> def pytest_addoptio... | 1 |
Java | Java | apply formatvalue to a few remaining places | 12240c7524ee81deab6049dbfa59b5963f4ff2e7 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/FormHttpMessageWriter.java
<ide> public Mono<Void> write(Publisher<? extends MultiValueMap<String, String>> input
<ide> if (logger.isDebugEnabled()) {
<ide> String s = Hints.getLogPrefix(hints) + "Writing " +
<ide> (isEnableLoggingRequestDe... | 4 |
Javascript | Javascript | change ciphers from rc4 to no-such-cipher | 07e0c4eaa3e91fa92f63486c0d0a12cc1f330597 | <ide><path>test/parallel/test-tls-handshake-error.js
<ide> const server = tls.createServer({
<ide> assert.throws(() => {
<ide> tls.connect({
<ide> port: this.address().port,
<del> ciphers: 'RC4'
<add> ciphers: 'no-such-cipher'
<ide> }, common.mustNotCall());
<ide> }, /no cipher match/i);
<id... | 1 |
PHP | PHP | add validator for integers | 2093755a9e9e5f557787c965edefc092fa38095c | <ide><path>src/Validation/Validation.php
<ide> public static function longitude($value, array $options = [])
<ide> return self::geoCoordinate($value, $options);
<ide> }
<ide>
<add> /**
<add> * Check that the input value is an integer
<add> *
<add> * This method will accept strings that conta... | 2 |
Python | Python | add some additional test cases for types | 9ff9a5585ad1535840fd802421c0664ae75c6460 | <ide><path>libcloud/test/compute/test_types.py
<ide>
<ide> class TestType(Type):
<ide> INUSE = "inuse"
<add> NOTINUSE = "NOTINUSE"
<ide>
<ide>
<ide> class TestTestType(TestCase):
<ide> model = TestType
<del> attribute = TestType.INUSE
<ide>
<ide> def test_provider_tostring(self):
<ide> sel... | 1 |
Ruby | Ruby | check syntax with readall | 68a8d1a5e7abe6a572e2973c244dfeeb49cfb289 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def formula formula_name
<ide> def homebrew
<ide> @category = __method__
<ide> test "brew", "tests"
<del> test "brew", "readall"
<add> test "brew", "readall", "--syntax"
<ide> end
<ide>
<ide> def cleanup_before | 1 |
PHP | PHP | fix glob error in bundle class | f53ebbf6727c98accaa677e91d35b502e76b39c8 | <ide><path>laravel/bundle.php
<ide> public static function parse($identifier)
<ide> /**
<ide> * Detect all of the existing bundles in the application.
<ide> *
<del> * The names of the bundles are cached so this operation will be only be
<del> * performed once and then the same array will be returned on each late... | 2 |
Text | Text | add 2.7.0-beta.1 to changelog | 49730043e687a1d789d90246e375b0712199a8fe | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.7.0-beta.1 (June 8, 2016)
<add>
<add>- [#13424](https://github.com/emberjs/ember.js/pull/13424) [DEPRECATE] Deprecate Ember.Binding. See [the deprecation guide](http://emberjs.com/deprecations/v2.x/#toc_ember-binding) for more details.
<add>- [#13599](ht... | 1 |
Text | Text | give the correct link of docker swarm init | e8279afb1a9439b482d9e3a66dcc46f155aa5251 | <ide><path>docs/swarm/swarm-mode.md
<ide> and try the [swarm mode tutorial](swarm-tutorial/index.md).
<ide>
<ide> When you run the command to create a swarm, the Docker Engine starts running in swarm mode.
<ide>
<del>Run [`docker swarm init`](/engine/reference/commandline/swarm_init.md)]
<add>Run [`docker swarm init`... | 1 |
Javascript | Javascript | flow strict staticcontainer | 6476151717f44d3a90679f0f5293bed62a4f420e | <ide><path>Libraries/Components/StaticContainer.react.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<ide> * @format
<del> * @flow
<add> * @flow strict-local
<ide> */
<ide>
<ide> 'use strict';
<ide> const React = require('React');
<ide> * Typically, you will not need to use this compon... | 1 |
Javascript | Javascript | remove ancient check | 6a3dbdacd6cf67f643dee219fd782a193ddd2534 | <ide><path>lib/dgram.js
<ide> function newHandle(type) {
<ide> return handle;
<ide> }
<ide>
<del> if (type == 'unix_dgram')
<del> throw new Error('"unix_dgram" type sockets are not supported any more');
<del>
<ide> throw new Error('Bad socket type specified. Valid types are: udp4, udp6');
<ide> }
<ide> | 1 |
PHP | PHP | remove deprecated calls in cake\database | 0061e8d37af6aa1beb402d6ce00c28bd9e447a03 | <ide><path>src/Database/Dialect/PostgresDialectTrait.php
<ide> protected function _expressionTranslators()
<ide> */
<ide> protected function _transformFunctionExpression(FunctionExpression $expression)
<ide> {
<del> switch ($expression->name()) {
<add> switch ($expression->getName()) {
<ide> ... | 5 |
Go | Go | use correct auth config when logging in | 967010ae8c7eb2f6482a9245b42731b7ead61e4b | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<ide> }
<ide>
<ide> cli.LoadConfigFile()
<del> authconfig, ok := cli.configFile.Configs[auth.IndexServerAddress()]
<add> authconfig, ok := cli.configFile.Configs[serverAddress]
<ide> if !ok {
<ide> authconfig = auth.AuthConfig{}
<... | 1 |
PHP | PHP | remove unnecessary line | f9e48b2d59880db3c415a26689c78cc278755973 | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> protected function runCommandInForeground(Container $container)
<ide> */
<ide> protected function callAfterCallbacks(Container $container)
<ide> {
<del> if (empty($this->afterCallbacks)) return;
<del>
<ide> foreach ($this->afterCallbacks as $callback)
... | 1 |
Text | Text | improve usage of `zero`/`0` | 42de4bb819da32994d35de54aec17195af6636a8 | <ide><path>doc/api/http.md
<ide> added: v0.1.90
<ide> Begin accepting connections on the specified `port` and `hostname`. If the
<ide> `hostname` is omitted, the server will accept connections on any IPv6 address
<ide> (`::`) when IPv6 is available, or any IPv4 address (`0.0.0.0`) otherwise. Use a
<del>port value of ze... | 2 |
Text | Text | clarify research folder and add samples folder | 9557674c73eb57540672a74366afcab359cb9fd1 | <ide><path>README.md
<ide> This repository contains a number of different models implemented in [TensorFlow
<ide>
<ide> The [official models](official) are a collection of example models that use TensorFlow's high-level APIs. They are intended to be well-maintained, tested, and kept up to date with the latest stable T... | 1 |
Javascript | Javascript | defeat race condition when replying to client | 41850a962f56767358405f42415d29d09d236cea | <ide><path>packager/react-packager/src/SocketInterface/SocketServer.js
<ide> class SocketServer {
<ide> _reply(sock, id, type, data) {
<ide> debug('request finished', type);
<ide>
<del> this._jobs--;
<ide> data = toJSON(data);
<ide>
<ide> sock.write(bser.dumpToBuffer({
<ide> id,
<ide> typ... | 1 |
Python | Python | clean unused code from fabfile | d5840c488bfc9d0d17f012f266860174b8a7b411 | <ide><path>fabfile.py
<ide> VENV_DIR = path.join(PWD, '.env')
<ide>
<ide>
<del>def counts():
<del> pass
<del> # Tokenize the corpus
<del> # tokenize()
<del> # get_freqs()
<del> # Collate the counts
<del> # cat freqs | sort -k2 | gather_freqs()
<del> # gather_freqs()
<del> # smooth()
<del>
<de... | 1 |
Java | Java | use a default for introspect_type_level_mapping | 914557b9753d2822f79b7be9d33a1258895a69e9 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter.java
<ide> import java.util.Map;
<ide> import java.util.Set;
<ide> import java.util.concurrent.ConcurrentHashMap;
<add>
<ide> import javax.servlet.ServletException;
<ide> import javax.servlet.ServletRequ... | 1 |
Mixed | Ruby | apply suggestions from code review | 22baff39bc1433bfdd26139d2d18bd34c902c7fc | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_bottle_disabled
<ide>
<ide> def audit_github_repository
<ide> user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @new_formula
<del> user ||=nil
<del> repo ||=nil
<add> user ||= nil
<add> repo ||= nil
<id... | 2 |
Javascript | Javascript | fix minor bug | deecc75ca313e6c281ede482493f01d1647bb0a1 | <ide><path>examples/js/cameras/CinematicCamera.js
<ide> THREE.CinematicCamera.prototype.renderCinematic = function ( scene, renderer ) {
<ide> scene.overrideMaterial = this.materialDepth;
<ide> renderer.setRenderTarget( this.postprocessing.rtTextureDepth );
<ide> renderer.clear();
<del> renderer.render( scene, c... | 1 |
Go | Go | remove unused platform field from configwrapper | b33f3c7802ac4308c10ca3fdbeec8a3fc46c3c97 | <ide><path>client/container_create.go
<ide> type configWrapper struct {
<ide> *container.Config
<ide> HostConfig *container.HostConfig
<ide> NetworkingConfig *network.NetworkingConfig
<del> Platform *specs.Platform
<ide> }
<ide>
<ide> // ContainerCreate creates a new container based on the given confi... | 1 |
Javascript | Javascript | add error class for restore errors | bbedceaa16569edd549a03710c95c27f21faafdc | <ide><path>lib/Compilation.js
<ide> const ModuleDependencyWarning = require("./ModuleDependencyWarning");
<ide> const ModuleGraph = require("./ModuleGraph");
<ide> const ModuleNotFoundError = require("./ModuleNotFoundError");
<ide> const ModuleProfile = require("./ModuleProfile");
<add>const ModuleRestoreError = requir... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.