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 | improve versionresourceresolve javadoc | 52f664139f65bc8573e70f8c770c4784f9163f23 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/resource/VersionResourceResolver.java
<ide> public Map<String, VersionStrategy> getStrategyMap() {
<ide> * default strategy to use except when it cannot be, for example when using
<ide> * JavaScript module loaders, use {@link #addFixedVer... | 2 |
Javascript | Javascript | add docs for $injector.has | c575a56fc5c6abcb8442398b53ddd7ea2433b785 | <ide><path>src/auto/injector.js
<ide> function annotate(fn) {
<ide> * @returns {*} the value returned by the invoked `fn` function.
<ide> */
<ide>
<add>/**
<add> * @ngdoc method
<add> * @name AUTO.$injector#has
<add> * @methodOf AUTO.$injector
<add> *
<add> * @description
<add> * Allows the user to query if the part... | 1 |
Javascript | Javascript | update stats action for running locally | 10fda8a9b9cb40ecec52ea9180fd1c78e52eeaad | <ide><path>.github/actions/next-stats-action/src/constants.js
<ide> const mainRepoDir = path.join(workDir, mainRepoName)
<ide> const diffRepoDir = path.join(workDir, diffRepoName)
<ide> const statsAppDir = path.join(workDir, 'stats-app')
<ide> const diffingDir = path.join(workDir, 'diff')
<add>const yarnEnvValues = {
<... | 4 |
Python | Python | fix indentation for keras pull request 15286 | 4edd952aef5092f1541b67397feac9df2bfc9278 | <ide><path>keras/utils/vis_utils.py
<ide> def format_shape(shape):
<ide> inputlabels = format_shape(layer.input_shape)
<ide> elif hasattr(layer, 'input_shapes'):
<ide> inputlabels = ', '.join(
<del> [format_shape(ishape) for ishape in layer.input_shapes])
<add> [format_shape(is... | 1 |
Text | Text | fix docs on data generation for object detection | f47880a3ce97e57db756e8c87cf76537864bb6f9 | <ide><path>object_detection/g3doc/preparing_inputs.md
<ide> Extract the tar file and run the `create_pascal_tf_record` script:
<ide> ```
<ide> # From tensorflow/models/object_detection
<ide> tar -xvf VOCtrainval_11-May-2012.tar
<del>./create_pascal_tf_record --data_dir=VOCdevkit \
<add>python create_pascal_tf_record.py... | 1 |
PHP | PHP | fix wrong class name in return docblock | 401167c3a4957f108820b13ae877118a22f14c3d | <ide><path>src/Illuminate/Database/Eloquent/Factory.php
<ide> public function raw($class, array $attributes = [], $name = 'default')
<ide> *
<ide> * @param string $class
<ide> * @param string $name
<del> * @return \Illuminate\Database\Factory\Builder
<add> * @return \Illuminate\Database\Eloqu... | 1 |
Ruby | Ruby | add option to skip action cable | 65f65d67ba301cd73377736f5517299b8c83ae9b | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def self.add_shared_options_for(name)
<ide> class_option :skip_spring, type: :boolean, default: false,
<ide> desc: "Don't install Spring application preloader"
<ide>
<add> class_option :skip_actio... | 3 |
Javascript | Javascript | enable mathjax for project euler challenges | 849e78d72e427fe483d13db7e666ebaf9660a32c | <ide><path>client/gatsby-ssr.js
<ide> export const onRenderBody = ({
<ide> />
<ide> ];
<ide>
<del> if (pathname.includes('/learn/coding-interview-prep/rosetta-code')) {
<add> if (
<add> pathname.includes('/learn/coding-interview-prep/rosetta-code') ||
<add> pathname.includes('/learn/coding-interview-prep... | 3 |
Java | Java | restore canvas once group has been drawn | b860897cd5e5d48d804829d205c926ce9b9f553d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java
<ide> public void draw(Canvas canvas, Paint paint, float opacity) {
<ide> child.draw(canvas, paint, opacity);
<ide> child.markUpdateSeen();
<ide> }
<add>
<add> restoreCanvas(canvas);
<ide> }
<ide> ... | 1 |
Text | Text | translate the comments | c9d073b4ff111d10704c757376f65142c96c6a4c | <ide><path>guide/portuguese/java/collections/index.md
<ide> public interface Collection<E> extends Iterable<E>
<ide> Alguns dos métodos mais comuns fornecidos por essa interface são:
<ide>
<ide> ```java
<del>boolean add(E e) // Adds the specified element to the collection if not present and returns true if this collec... | 1 |
Javascript | Javascript | remove lodash (attempt 2) | 398746fa091bfe74674e8604a0aca93673a981cd | <ide><path>Libraries/vendor/core/mergeHelpers.js
<ide> /**
<del> * @generated SignedSource<<b68d78236d45828b3f7f7fcc740782a9>>
<add> * Copyright (c) 2013-present, Facebook, Inc.
<add> * All rights reserved.
<ide> *
<del> * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<del> * !! This file is a check... | 1 |
Go | Go | fix wrong comment | 76b3b5431475709b27f0c113f9319321388a49d1 | <ide><path>api/server/container.go
<ide> func (s *Server) getContainersLogs(ctx context.Context, w http.ResponseWriter, r
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<ide>
<del> // Validate args here, because we can't return not StatusOK after job.Run() call
<add> // Args are validated before the stream st... | 1 |
Java | Java | remove abstractwebsocketclient from sockjsclient | 41cdc92fc383934623f14fd144390d16b1ed4a8f | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/SockJsClient.java
<ide> import org.springframework.util.ClassUtils;
<ide> import org.springframework.util.concurrent.ListenableFuture;
<ide> import org.springframework.util.concurrent.SettableListenableFuture;
<del>import org.springf... | 1 |
Java | Java | use dedicated catch block for scriptexception | 1acf5a742436d2e8460a880c11dd4946d2ca3555 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulatorUtils.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<id... | 1 |
Text | Text | update model_zoo to add mobilenet v3 checkpoints | 2b21ab966b1d9eacaac7a75a15dc420da168ca74 | <ide><path>research/deeplab/g3doc/model_zoo.md
<ide> models.
<ide> Un-tar'ed directory includes:
<ide>
<ide> * a frozen inference graph (`frozen_inference_graph.pb`). All frozen inference
<del> graphs use output stride of 8 and a single eval scale of 1.0. No left-right
<del> flips are used, and MobileNet-v2 ba... | 1 |
Ruby | Ruby | use bottle_filename only if f.bottle | c8832868407cad5156f20f09237e4db989314622 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def versions
<ide> def bottle_filenames branch='HEAD'
<ide> filenames = []
<ide> rev_list(branch).each do |sha|
<del> filename = formula_for_sha(sha) {|f| bottle_filename f }
<add> filename = formula_for_sha(sha) {|f| bottle_filename f if f.bottle }
... | 1 |
Ruby | Ruby | add support for the root attribute | a230f040ff61f069d46a9b86417a8e251016d5db | <ide><path>activemodel/lib/active_model/serializer.rb
<ide> def serialize_ids(object, scope)
<ide> class_attribute :_associations
<ide> self._associations = []
<ide>
<add> class_attribute :_root
<add>
<ide> class << self
<ide> def attributes(*attrs)
<ide> self._attributes += attrs
<ide> de... | 2 |
Text | Text | add faq question about rtmp url | 9c741165789772d5dfd17eb8e989c38cda765a8a | <ide><path>docs/faq.md
<ide> * [If you don't think you can fix the issue or add the feature](#if-you-dont-think-you-can-fix-the-issue-or-add-the-feature)
<ide> * [Q: What is a reduced test case?](#q-what-is-a-reduced-test-case)
<ide> * [Q: What media formats does video.js support?](#q-what-media-formats-does-videojs-... | 1 |
PHP | PHP | fix community contirbution that broke evrything | 0889eb49a395d92785c52027a854654f2350ffa5 | <ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
<ide> private function getConfigurationNesting(SplFileInfo $file)
<ide> {
<ide> $directory = dirname($file->getRealPath());
<ide>
<del> if ($tree = trim(str_replace(str_replace('/', '\\', config_path()), '', $directory), DIRECTORY_SEPARATOR))
<ad... | 1 |
Ruby | Ruby | improve various test coverage. closes [kamal] | 3aadfcef88e57b3f0a0bde9a2bc05d372e2fd93b | <ide><path>activesupport/test/clean_logger_test.rb
<ide> def test_datetime_format
<ide> @logger.formatter = Logger::Formatter.new
<ide> @logger.datetime_format = "%Y-%m-%d"
<ide> @logger.debug 'debug'
<add> assert_equal "%Y-%m-%d", @logger.datetime_format
<ide> assert_match(/D, \[\d\d\d\d-\d\d-\d\d#\... | 7 |
Ruby | Ruby | use typewriter styling on url_for in documentation | ebe91553136e809cd44f0b3ca98d92cda75bf6cd | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def link_to(*args, &block)
<ide> # to change the HTTP verb used to submit the form.
<ide> #
<ide> # ==== Options
<del> # The +options+ hash accepts the same options as url_for.
<add> # The +options+ hash accepts the same optio... | 1 |
Ruby | Ruby | change inject({}) with hash + map | 10249d7b7728525fb7660409e3bbc9e0286dbf0f | <ide><path>actionmailer/lib/action_mailer/old_api.rb
<ide> def parse_content_type(defaults=nil)
<ide> [ nil, {} ]
<ide> else
<ide> ctype, *attrs = @content_type.split(/;\s*/)
<del> attrs = attrs.inject({}) { |h,s| k,v = s.split(/\=/, 2); h[k] = v; h }
<add> attrs = Hash[attrs.map { |... | 1 |
Ruby | Ruby | use stringscanner to parse hstore payloads | 98bf64bcb9648f88bff4cb59a7ae4db2b6410241 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/hstore.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "strscan"
<add>
<ide> module ActiveRecord
<ide> module ConnectionAdapters
<ide> module PostgreSQL
<ide> module OID # :nodoc:
<ide> class Hstore < Type::Value... | 2 |
Python | Python | fix embeddings resizing in tf models | 51d9c569fadcfc1b3949a05fa6a2d3de78dd0a0f | <ide><path>src/transformers/modeling_tf_utils.py
<ide> def set_input_embeddings(self, value):
<ide>
<ide> def get_output_embeddings(self) -> tf.keras.layers.Layer:
<ide> """
<del> Returns the model's output embeddings.
<add> Returns the model's output embeddings
<ide>
<ide> Returns:
... | 31 |
Java | Java | update javadoc for webclient onstatus handlers | 2ca93cbe1c761dac8c61290513571f6c403a233c | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
... | 2 |
Python | Python | add a new bar class to display bar in curse ui | 268af804a3f64cc60672777b76085899cca812a0 | <ide><path>glances/outputs/glances_bars.py
<add># -*- coding: utf-8 -*-
<add>#
<add># This file is part of Glances.
<add>#
<add># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com>
<add>#
<add># Glances is free software; you can redistribute it and/or modify
<add># it under the terms of the GNU Lesser General Public ... | 1 |
PHP | PHP | add deprecation warning to comparison | 86ac4ef353cd01c83c1a2468eda492cf38b6be24 | <ide><path>src/Database/Expression/Comparison.php
<ide> declare(strict_types=1);
<ide>
<ide> class_exists('Cake\Database\Expression\ComparisonExpression');
<add>
<add>deprecationWarning('`Comparison` deprecated in 4.1.0, use `ComparisonExpression` instead.'); | 1 |
Ruby | Ruby | use ||= here | be4551f63bc3dec7e182371d25e7b9ee0e9148c4 | <ide><path>actionpack/lib/action_view/helpers/translation_helper.rb
<ide> module TranslationHelper
<ide> # naming convention helps to identify translations that include HTML tags so that
<ide> # you know what kind of output to expect when you call translate in a template.
<ide> def translate(key, opti... | 1 |
Java | Java | fix the unbounded check for merge | 334de61dd3f4bdab684cf253772a9da225bcc147 | <ide><path>rxjava-core/src/main/java/rx/internal/operators/OperatorMerge.java
<ide> private void handleScalarSynchronousObservable(ScalarSynchronousObservable<? ext
<ide> * } </pre>
<ide> *
<ide> */
<del> if (mergeProducer.requested < 0) {
<add> if (mergePro... | 1 |
Ruby | Ruby | add license to formula dsl | b07685291b65e51e0afc2b6cee91251419e0b3c1 | <ide><path>Library/Homebrew/formula.rb
<ide> def bottle
<ide> # @see .desc=
<ide> delegate desc: :"self.class"
<ide>
<add> # The SPDX ID of the software license.
<add> delegate license: :"self.class"
<add>
<ide> # The homepage for the software.
<ide> # @method homepage
<ide> # @see .homepage=
<ide> def to_... | 1 |
Java | Java | move http.converter.reactive to http.codec | 10c90a677cb400ecee5fe06426aebeda4d0e707c | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
<ide> import org.springframework.http.codec.json.JacksonJsonEncoder;
<ide> import org.springframework.http.codec.xml.Jaxb2Decoder;
<ide> import org.springframework.http.codec.xml.Jaxb2Encoder;
<del>import ... | 39 |
PHP | PHP | write integration tests for migrator | 540b1ae0a17ffc5720b678f33795422e8a152ab8 | <ide><path>src/Illuminate/Database/Console/Migrations/MigrateCommand.php
<ide> public function fire()
<ide> if (! is_null($path = $this->input->getOption('path'))) {
<ide> $paths[] = $this->laravel->basePath().'/'.$path;
<ide> } else {
<del> $paths[] = $this->getMigrationPath();
<... | 10 |
Text | Text | consolidate bug labels | a7326d338c560d602ae90dd7b4c5bae13ca4d0ce | <ide><path>.github/ISSUE_TEMPLATE/bug_report.md
<ide> name: "🐛 Bug Report"
<ide> about: You want to report a reproducible bug or regression in React Native.
<ide> title: ''
<del>labels: 'Type: Bug Report'
<add>labels: 'Bug'
<ide>
<ide> ---
<ide> | 1 |
Javascript | Javascript | add test for sha.write(''); sha.end() | d904c231b6f5c4a0fd9c086c5e0d9a67e3e62866 | <ide><path>test/simple/test-crypto.js
<ide> a6.write('123');
<ide> a6.end();
<ide> a6 = a6.read();
<ide>
<add>var a7 = crypto.createHash('sha512');
<add>a7.end();
<add>a7 = a7.read();
<add>
<add>var a8 = crypto.createHash('sha512');
<add>a8.write('');
<add>a8.end();
<add>a8 = a8.read();
<add>
<ide> assert.equal(a0, '8... | 1 |
Ruby | Ruby | use public api to fetch the parameter filter | 992bf079e88fb7b6f12153be526298a81a04053a | <ide><path>actionpack/lib/action_dispatch/http/filter_parameters.rb
<ide> def filtered_path
<ide> protected
<ide>
<ide> def parameter_filter
<del> parameter_filter_for @env.fetch("action_dispatch.parameter_filter") {
<add> parameter_filter_for get_header("action_dispatch.parameter_filter") {
<i... | 1 |
Text | Text | add info to mount a host file as a data volume | cfbe062eb2ba6f1d24ab3b6f9b965a65931d5b07 | <ide><path>docs/sources/userguide/dockervolumes.md
<ide> read-only.
<ide> Here we've mounted the same `/src/webapp` directory but we've added the `ro`
<ide> option to specify that the mount should be read-only.
<ide>
<add>### Mount a Host File as a Data Volume
<add>
<add>As well as directories, the `-v` flag can be us... | 1 |
Text | Text | fix spelling in tsconfig.js of readme.md | c4704fbd9e69c6c5ac14b3ebf6d0f07abc5221f0 | <ide><path>packages/next/README.md
<ide> TypeScript is supported out of the box in Next.js. To get started using it creat
<ide> "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
<ide> "noUnusedLocals": true, /* Report errors on unused locals. */
<ide> "noUnus... | 1 |
Ruby | Ruby | remove redundant type check | 457312f54fc1641ad42bcc6362b13836fc30feec | <ide><path>actionview/lib/action_view/helpers/date_helper.rb
<ide> def time_tag(date_or_time, *args, &block)
<ide> options = args.extract_options!
<ide> format = options.delete(:format) || :long
<ide> content = args.first || I18n.l(date_or_time, format: format)
<del> datetime = date_o... | 1 |
PHP | PHP | decompose complex nested conditionals | e38c149880ea7887e6b862a73827a1d8d43c425e | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> protected function _selectOptions($elements = array(), $parents = array(), $show
<ide>
<ide> if ($attributes['style'] === 'checkbox') {
<ide> $htmlOptions['value'] = $name;
<del>
<del> if (!empty($attributes['disabled'])) {
<del> if (is_a... | 1 |
Javascript | Javascript | remove invalid unittests | 975f33df68f46a81dfbea0840144aab549713ead | <ide><path>test/CaseSensitiveModulesWarning.unittest.js
<del>"use strict";
<del>
<del>const CaseSensitiveModulesWarning = require("../lib/CaseSensitiveModulesWarning");
<del>
<del>const createModule = function(identifier, numberOfReasons) {
<del> const reasons = new Array(numberOfReasons || 0)
<del> .fill(null)
<del> ... | 1 |
Python | Python | manage snmp if there is no standard stats | 88a48444ebc3ff2a54ecb199ceaf14dbaec1c80f | <ide><path>glances/core/glances_stats.py
<ide> def update(self):
<ide> # For each plugins, call the update method
<ide> for p in self._plugins:
<ide> # print "DEBUG: Update %s stats using SNMP request" % p
<del> self._plugins[p].update(input='snmp')
<add> try:
<add> ... | 5 |
Ruby | Ruby | add missing method name to exception description | 1883f37742b976d3d20e0ba4a3564911f4868172 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> def <<(*records)
<ide> alias_method :append, :<<
<ide>
<ide> def prepend(*args)
<del> raise NoMethodError, "prepend on association is not defined. Please use << or append"
<add> raise NoMethodError, "prepend on a... | 1 |
Text | Text | correct a couple of small grammar errors. | 2cb05b539eae985454501888d81d049caa348ecd | <ide><path>docs/advanced-features/preview-mode.md
<ide> In the [Pages documentation](/docs/basic-features/pages.md) and the [Data Fetchi
<ide>
<ide> Static Generation is useful when your pages fetch data from a headless CMS. However, it’s not ideal when you’re writing a draft on your headless CMS and want to **preview... | 1 |
Ruby | Ruby | fix indentation in macho#mach_data | 075a59e3f11d71afc43b223436a593e31640770e | <ide><path>Library/Homebrew/mach.rb
<ide> def mach_data
<ide> end
<ide>
<ide> type = case read(4, offset + 12).unpack("N")[0]
<del> when 0x00000002, 0x02000000 then :executable
<del> when 0x00000006, 0x06000000 then :dylib
<del> else :dunno
<del> end
<add> whe... | 1 |
Javascript | Javascript | replace tic & toc by console.time/timeend | e24796173e4a62e47dc114bd2388d25d813c7b30 | <ide><path>pdf_worker.js
<ide>
<ide> "use strict";
<ide>
<del>var timer = null;
<del>function tic() {
<del> timer = Date.now();
<del>}
<del>
<del>function toc(msg) {
<del> log(msg + ": " + (Date.now() - timer) + "ms");
<del> timer = null;
<del>}
<del>
<del>function log() {
<del> var args = Array.prototype.slice.c... | 2 |
Ruby | Ruby | add doc to #attribute_names | 2470392e89e3320e0e5d4de4dd73db0fd4a30181 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def attribute_method?(attribute)
<ide> super || (table_exists? && column_names.include?(attribute.to_s.sub(/=$/, '')))
<ide> end
<ide>
<add> # Returns an array of column names as strings if it's not
<add> # an abstract class and table exis... | 1 |
Ruby | Ruby | add cpu tests | 28fa8a7c97da99ec8e8726c2d7fb35347765db00 | <ide><path>Library/Homebrew/extend/os/mac/hardware.rb
<ide> module Hardware
<del> def self.oldest_cpu
<del> if MacOS.version >= :mojave
<add> def self.oldest_cpu(version = MacOS.version)
<add> if version >= :mojave
<ide> :nehalem
<ide> else
<ide> generic_oldest_cpu
<ide><path>Library/Homebrew/ha... | 5 |
Ruby | Ruby | remove conversion code for old rails cache entry | 41d72ce3724488dd406366e12e0b14cb366e98a3 | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def initialize(value, options = {})
<ide> end
<ide>
<ide> def value
<del> convert_version_4beta1_entry! if defined?(@v)
<ide> compressed? ? uncompress(@value) : @value
<ide> end
<ide>
<ide> # Check if the entry is expire... | 2 |
Text | Text | add translation kr/threejs-debugging-glsl | 7d378eeaa05faf9242027a6037af43ad8b89c920 | <ide><path>threejs/lessons/kr/threejs-debugging-glsl.md
<add>Title: Three.js GLSL 디버깅
<add>Description: GLSL 쉐이더 디버깅에 대해 알아봅니다
<add>TOC: GLSL 디버깅
<add>
<add>이 사이트에서 자바스크립트 자체에 대해 다루지 않듯, 아직까지 이 사이트에는 GLSL에 대한 글이 없습니다. GLSL은 간단히 다루기 어려운 주제이기에 GLSL을 배우고 싶다면 [이 시리즈](https://webglfundamentals.org/webgl/lessons/ko/)를 참고하기 바... | 1 |
PHP | PHP | fix phpstan errors | 9b33bebbc5f0879f6d7bcc5ee9364e624ec31f1b | <ide><path>src/Filesystem/Folder.php
<ide> public function pwd(): ?string
<ide> * Change directory to $path.
<ide> *
<ide> * @param string $path Path to the directory to change to
<del> * @return string|bool The new path. Returns null on failure
<add> * @return string|null The new path. Returns n... | 1 |
PHP | PHP | pass the delete options into cascadedelete calls | 1c38fc7f33c4939f381588a779e0338e04e4f67c | <ide><path>Cake/ORM/Association.php
<ide> protected abstract function _joinCondition(array $options);
<ide> * required.
<ide> *
<ide> * @param Cake\ORM\Entity $entity The entity that started the cascaded delete.
<add> * @param array $options The options for the original delete.
<ide> * @return boolean Success
<ide>... | 5 |
Javascript | Javascript | fix corrupted images | 11f565547c760ffcd91788480376b5f617805e6f | <ide><path>src/core/image.js
<ide> var PDFImage = (function PDFImageClosure() {
<ide> case 3:
<ide> colorSpace = Name.get('DeviceRGB');
<ide> break;
<add> case 4:
<add> colorSpace = Name.get('DeviceCMYK');
<add> break;
<ide> default:
<del> ... | 2 |
Go | Go | add missing testrequires(t, network) | 716e21be2b9780306cc1ffe02b2a784e2dece94e | <ide><path>integration-cli/docker_api_images_test.go
<ide> func TestApiImagesFilter(t *testing.T) {
<ide> }
<ide>
<ide> func TestApiImagesSaveAndLoad(t *testing.T) {
<add> testRequires(t, Network)
<ide> out, err := buildImage("saveandload", "FROM hello-world\nENV FOO bar", false)
<ide> if err != nil {
<ide> t.Fata... | 1 |
Ruby | Ruby | fix truncation of printed paths in cellar audits | 72e9cbdac70f504de1a258cb3c9219709c98a0e9 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_jars
<ide> install to "libexec" and then symlink or wrap binaries into "bin".
<ide> See "activemq", "jruby", etc. for examples.
<ide> The offending files are:
<del> #{jars * "\n"}
<add> #{jars * "\n "}
... | 1 |
Javascript | Javascript | remove the `isref` helper function | 2cb2f633ac2968239e8240fa14657e287a7194c3 | <ide><path>src/core/annotation.js
<ide> import {
<ide> createDefaultAppearance,
<ide> parseDefaultAppearance,
<ide> } from "./default_appearance.js";
<del>import { Dict, isDict, isName, isRef, Name, RefSet } from "./primitives.js";
<add>import { Dict, isDict, isName, Name, Ref, RefSet } from "./primitives.js";
<ide... | 10 |
Text | Text | fix broken link | 79aa2b9f6da802ee1380c22c3afc8c0be7c493ce | <ide><path>docs/extend/menu.md
<ide> weight = 0
<ide> Currently, you can extend Docker Engine by adding a plugin. This section contains the following topics:
<ide>
<ide> * [Understand Docker plugins](plugins.md)
<add>* [Write a volume plugin](plugins_volume.md)
<ide><path>docs/extend/plugins.md
<ide> started without e... | 4 |
Text | Text | change css to uppecase | 4715dec5100a30342aad9096c1aa7e7656be5b1e | <ide><path>docs/docs/10.1-animation.md
<ide> Every DOM component that React can render is available for use. However, `compon
<ide> >
<ide> > Prior to v0.12, when using DOM components, the `component` prop needed to be a reference to `React.DOM.*`. Since the component is simply passed to `React.createElement`, it must ... | 1 |
Text | Text | fix typo in child_process.md | e46728684ba9e5786e2c815f8582bbd9e782969f | <ide><path>doc/api/child_process.md
<ide> added: v0.1.90
<ide>
<ide> * `signal` {string}
<ide>
<del>The `subprocess.kill()` methods sends a signal to the child process. If no
<add>The `subprocess.kill()` method sends a signal to the child process. If no
<ide> argument is given, the process will be sent the `'SIGTERM'... | 1 |
Python | Python | use uuid() instead of gen_unique_id() | 3087421869df244d9f376bba519cab861286cd98 | <ide><path>celery/app/amqp.py
<ide>
<ide> from .. import routes as _routes
<ide> from .. import signals
<del>from ..utils import gen_unique_id, textindent
<add>from ..utils import textindent, uuid
<ide>
<ide> #: List of known options to a Kombu producers send method.
<ide> #: Used to extract the message related optio... | 24 |
Ruby | Ruby | reduce allocations in set_callbacks | 3c759a5be84032df085a70802aa4bbb3fb8bed11 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def get_callbacks(name) # :nodoc:
<ide> __callbacks[name.to_sym]
<ide> end
<ide>
<del> def set_callbacks(name, callbacks) # :nodoc:
<del> self.__callbacks = __callbacks.merge(name.to_sym => callbacks)
<add> ... | 1 |
Ruby | Ruby | use copy to preserve file permissions | ad41a27b8c29219350d0d5d39593e14cc8a04b71 | <ide><path>activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
<ide> def remove_sql_header_comments(filename)
<ide> ensure
<ide> tempfile.close
<ide> end
<del> FileUtils.mv(tempfile.path, filename)
<add> FileUtils.cp(tempfile.path, filename)
<ide> ... | 1 |
Javascript | Javascript | treat undefined parse responses as parse errors | db044c408a7f8082758b96ab739348810c36e15a | <ide><path>src/ng/directive/form.js
<ide> var nullFormCtrl = {
<ide> $setValidity: noop,
<ide> $setDirty: noop,
<ide> $setPristine: noop,
<del> $setSubmitted: noop
<add> $setSubmitted: noop,
<add> $$clearControlValidity: noop
<ide> },
<ide> SUBMITTED_CLASS = 'ng-submitted';
<ide>
<ide> function FormController... | 3 |
Javascript | Javascript | add real tests | c7df4e9fef4107bc580848744ecf7391e545ee6c | <ide><path>test/unit/src/animation/AnimationAction.tests.js
<del>/**
<del> * @author TristanVALCKE / https://github.com/Itee
<del> */
<del>/* global QUnit */
<del>
<del>import { AnimationAction } from '../../../../src/animation/AnimationAction';
<del>import { AnimationMixer } from '../../../../src/animation/AnimationMi... | 1 |
Ruby | Ruby | simplify version checks | 603d6fd1f56a6edb37cbbc70cf1cbfe892455082 | <ide><path>Library/Homebrew/extend/os/mac/extend/ENV/super.rb
<ide> def setup_build_environment(formula = nil)
<ide> generic_setup_build_environment(formula)
<ide> self["HOMEBREW_SDKROOT"] = effective_sysroot
<ide>
<del> if MacOS::Xcode.without_clt? || (MacOS::Xcode.installed? && MacOS::Xcode.version.to_i >... | 1 |
Ruby | Ruby | remove unnecessary require | 7dd80d68e509134cb0f821142b6b3ec46262a5a4 | <ide><path>activesupport/lib/active_support/core_ext/string/access.rb
<del>require 'active_support/multibyte'
<del>
<ide> class String
<ide> # If you pass a single Fixnum, returns a substring of one character at that
<ide> # position. The first character of the string is at position 0, the next at
<ide><path>active... | 2 |
Text | Text | update command for spinning an instance | c59f5748d7b6fb9308330e3543893049041f3b50 | <ide><path>docs/devops.md
<ide> Provisioning VMs with the Code
<ide>
<ide> ```console
<ide> cd api-server
<del> pm2 start ./lib/production-start.js -i max --max-memory-restart 600M --name org
<add> pm2 start "DEBUG=fcc* node lib/production-start.js" -i max --max-memory-restart 600M --name org
<ide> ```
<... | 1 |
Javascript | Javascript | use error code mapping in place of raw errno | 21cf618c22d666a31f2182b7171571aafe58fa7a | <ide><path>test/parallel/test-fs-read-type.js
<ide> fs.read(fd,
<ide> common.mustCall((err) => {
<ide> if (err) {
<ide> if (common.isIBMi)
<del> assert.strictEqual(err.errno, -127);
<add> assert.strictEqual(err.code, 'EOVERFLOW');
<ide> else
<ide> ... | 1 |
Text | Text | fix broken gem instructions | 7f2a2b22fc1e81fc366531af1f598af563b96e09 | <ide><path>docs/tutorials/dockerimages.md
<ide> you'd like to update.
<ide> > Take note of the container ID that has been created, `0b2616b0e5a8`, as you'll
<ide> > need it in a moment.
<ide>
<del>Inside our running container let's add the `json` gem.
<add>Inside our running container first let's update Ruby:
<ide>
<... | 1 |
Text | Text | add xray things | 562125babcab20a23e29f3722fb735edc2f013b2 | <ide><path>docs/focus/2018-03-26.md
<ide> - Published initial draft of proposal for streamlining collaboration set-up, and issued request for comments ([atom/teletype#344](https://github.com/atom/teletype/pull/344))
<ide> - Tree-sitter
<ide> - Xray
<add> - Merged a PR that switches Xray to a client/server architectu... | 1 |
Go | Go | update more tests to use new errors | ae875d40693325c6a3085644d1abb121c804d887 | <ide><path>integration/container/create_test.go
<ide> import (
<ide> "context"
<ide> "encoding/json"
<ide> "fmt"
<del> "net/http"
<ide> "strconv"
<ide> "testing"
<ide> "time"
<ide> import (
<ide> "github.com/docker/docker/api/types/network"
<ide> "github.com/docker/docker/api/types/versions"
<ide> "github.com/... | 2 |
Mixed | Ruby | add dynamic find_or_create_by_{attribute}! method | eee32af45e7909c02370324833d7117fe9b6eb37 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> ## Rails 3.2.3 (unreleased) ##
<ide>
<add>* Added find_or_create_by_{attribute}! dynamic method. *Andrew White*
<add>
<ide> * Whitelist all attribute assignment by default. Change the default for newly generated applications to whitelist all attribute assignment. ... | 7 |
Text | Text | add docs on building from source | 3c3495739d72e93b5ef22635cc2b8dccd2d545f1 | <ide><path>docs/AndroidBuildingFromSource.md
<add>---
<add>id: android-building-from-source
<add>title: Building React Native from source
<add>layout: docs
<add>category: Guides (Android)
<add>permalink: docs/android-building-from-source
<add>next: activityindicatorios
<add>---
<add>
<add>You will need to build React N... | 2 |
PHP | PHP | prevent policies from being too greedy | 0eb361727446990d437d538c6a908574a4019fe7 | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide> protected function resolveAuthCallback($user, $ability, array $arguments)
<ide> {
<ide> if (isset($arguments[0])) {
<ide> if (! is_null($policy = $this->getPolicyFor($arguments[0]))) {
<del> return $this->resolvePolicyCallback($... | 2 |
Text | Text | update translation to 0183f70 | 8d0937e60d55ab516fb139148e0ad4c2b8d3de3c | <ide><path>docs/docs/02-displaying-data.ko-KR.md
<ide> UI를 가지고 할 수 있는 가장 기초적인 것은 데이터를 표시하
<ide> </html>
<ide> ```
<ide>
<del>문서의 나머지에서, 코드가 위와 같은 HTML 템플릿에 들어갔다고 가정하고 JavaScript 코드에만 집중할 것입니다. 위의 주석 부분을 다음과 같은 JavaScript 코드로 바꿔 보세요:
<add>문서의 나머지에서, 코드가 위와 같은 HTML 템플릿에 들어갔다고 가정하고 JavaScript 코드에만 집중할 것입니다. 위의 주석 부분을 다음과... | 7 |
PHP | PHP | implement nested field validators | a86b0c7dbaca7d3abd8764185690f5dc823a2d78 | <ide><path>src/Validation/Validator.php
<ide> use ArrayAccess;
<ide> use Cake\Validation\RulesProvider;
<ide> use Cake\Validation\ValidationSet;
<add>use Cake\Utility\Hash;
<ide> use Countable;
<ide> use IteratorAggregate;
<ide>
<ide> public function errors(array $data, $newRecord = true)
<ide> $requiredMe... | 2 |
Ruby | Ruby | add docs for numeric#*_bytes methods | 78789b7acd566562b58e73a7d4f1a11163370f32 | <ide><path>activesupport/lib/active_support/core_ext/numeric/bytes.rb
<ide> class Numeric
<ide> EXABYTE = PETABYTE * 1024
<ide>
<ide> # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes
<add> #
<add> # 2.bytes #=> 2
<ide> def bytes
<ide> self
<ide> end
<ide> alias ... | 1 |
Python | Python | set version to v2.1.0a9 | 3cdd3eb5183d14b352d078ccf2db6ec58ff6cb41 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a9.dev2"
<add>__version__ = "2.1.0a9"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide>... | 1 |
PHP | PHP | fix getoriginal with custom casts | 9e22c7cfa629773eab981ccad13080c0f4cb81b2 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide> protected function mutateAttribute($key, $value)
<ide> protected function mutateAttributeForArray($key, $value)
<ide> {
<ide> $value = $this->isClassCastable($key)
<del> ? $this->getClassCastableAttributeValu... | 2 |
Text | Text | correct grammatical error in building.md | 05b31760225d213417c0e34be0c6841429eeda22 | <ide><path>BUILDING.md
<ide> Depending on what platform or features you require, the build process may
<ide> differ slightly. After you've successfully built a binary, running the
<ide> test suite to validate that the binary works as intended is a good next step.
<ide>
<del>If you consistently can reproduce a test fai... | 1 |
Ruby | Ruby | remove helperytesthelper not used in any test | 6aa641f63ef5cd20a589c9e4397292a8daecdbc0 | <ide><path>actionpack/test/fixtures/helpers/helpery_test_helper.rb
<del>module HelperyTestHelper
<del> def helpery_test
<del> "Default"
<del> end
<del>end | 1 |
Javascript | Javascript | remove stray comma | 176b5466bbfe3b92a35dbf1f2b8255556ccc7da9 | <ide><path>examples/with-react-jss/pages/_document.js
<ide> export default class JssDocument extends Document {
<ide> return {
<ide> ...initialProps,
<ide> styles: <>
<del> {initialProps.styles},
<add> {initialProps.styles}
<ide> <style id='server-side-styles'>
<ide> {reg... | 1 |
Javascript | Javascript | pass decoder options | e2289b529c490d18e3d053d90d63f0bdfa89edc1 | <ide><path>lib/WebAssemblyParser.js
<ide> const decode = require("@webassemblyjs/wasm-parser").decode;
<ide> const Tapable = require("tapable").Tapable;
<ide> const WebAssemblyImportDependency = require("./dependencies/WebAssemblyImportDependency");
<ide>
<add>const decoderOpts = {
<add> ignoreCodeSection: true,
<add>... | 1 |
PHP | PHP | fix some docs | 36e89bd842173b1e7aaa49a351626d6df4fe62ae | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> class BelongsToMany extends Relation
<ide> * @param string $table
<ide> * @param string $foreignKey
<ide> * @param string $relatedKey
<del> * @param string $localKey
<ide> * @param string $parentKey
<add> ... | 2 |
Python | Python | update debug data for textcat | 8a2602051c0b878045ed10ecd84ce61f20130a87 | <ide><path>spacy/cli/debug_data.py
<ide> def debug_data(
<ide> n_missing_vectors = sum(gold_train_data["words_missing_vectors"].values())
<ide> msg.warn(
<ide> "{} words in training data without vectors ({:.0f}%)".format(
<del> n_missing_vectors, 100 * (n_missing_vectors / gol... | 1 |
Ruby | Ruby | require mini_magick at the level it is being used | 95322be0ed92ea77c4ec58cb5a7eaa474a1f5f84 | <ide><path>activestorage/lib/active_storage/analyzer/image_analyzer/image_magick.rb
<ide> def self.accept?(blob)
<ide>
<ide> private
<ide> def read_image
<del> download_blob_to_tempfile do |file|
<add> begin
<ide> require "mini_magick"
<add> rescue LoadError
<add> logg... | 1 |
Text | Text | add django-rest-witchcraft to third party packages | 680ed8aa8b579f344cf4806476c43173f939fcd6 | <ide><path>docs/community/third-party-packages.md
<ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque
<ide> * [djangorest-alchemy][djangorest-alchemy] - SQLAlchemy support for REST framework.
<ide> * [djangorestframework-datatables][djangorestframework-datatables] - Seamless integrati... | 1 |
PHP | PHP | update typehints for view/ | d2945f204313defc4e6b18301f216cb2c1e5a2bd | <ide><path>src/View/Cell.php
<ide> protected function _cacheConfig(string $action, ?string $template = null): array
<ide> * @return string Rendered cell
<ide> * @throws \Error Include error details for PHP 7 fatal errors.
<ide> */
<del> public function __toString()
<add> public function __toString(... | 11 |
Ruby | Ruby | remove unused methods | f9a5fd52540c6228103af38218e909557b01b17a | <ide><path>actionpack/test/controller/rescue_test.rb
<ide> class ResourceUnavailableToRescueAsString < StandardError
<ide> render plain: exception.message
<ide> end
<ide>
<del> rescue_from ActionView::TemplateError do
<del> render plain: "action_view templater error"
<del> end
<del>
<del> rescue_from IOErr... | 1 |
Text | Text | add info on language-specific issue labels | 57fab43a3a6a0e00fb50b8aa3209d0ad430c4b95 | <ide><path>CONTRIBUTING.md
<ide> We use the following system to tag our issues:
<ide> | [`install`](https://github.com/explosion/spaCy/labels/install) | Installation problems |
<ide> | [`performance`](https://github.com/explosion/spaCy/labels/performance) | Accuracy, speed and memory use problems |
<ide> | [`tests`](ht... | 1 |
Text | Text | recommend high sierra and newer | bb2c835025ebf44616df814f06b3f185f30c035f | <ide><path>docs/Installation.md
<ide> it does it too. You have to confirm everything it will do before it starts.
<ide> ## macOS Requirements
<ide>
<ide> * A 64-bit Intel CPU <sup>[1](#1)</sup>
<del>* macOS 10.12 (or higher) <sup>[2](#2)</sup>
<add>* macOS High Sierra (10.13) (or higher) <sup>[2](#2)</sup>
<ide> * Com... | 1 |
Mixed | Ruby | add explicit base class for activejob jobs | 929a794a317666e4d29954e4f071c1dd57482aa7 | <ide><path>activejob/CHANGELOG.md
<ide>
<ide> *Isaac Seymour*
<ide>
<add>* A generated job now inherents from `app/job/application_job.rb` by default.
<add>
<add> *Jeroen van Baarsen*
<add>
<ide> Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/activejob/CHANGELOG.md) for previous cha... | 8 |
Python | Python | remove the condescending code comment in base.py | f40fcff55027700bcffd5c34cbd7eee43e39805e | <ide><path>celery/app/base.py
<ide> def refresh_feed(url):
<ide> return shared_task(*args, lazy=False, **opts)
<ide>
<ide> def inner_create_task_cls(shared=True, filter=None, lazy=True, **opts):
<del> _filt = filter # stupid 2to3
<add> _filt = filter
<ide>
<ide> ... | 1 |
Java | Java | remove unnecessary import | 14afdb2bbcdeb2f1d34ec83025f819a64499faa4 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/ReactorNettyWebSocketSession.java
<ide> import reactor.core.publisher.Mono;
<ide> import reactor.netty.NettyInbound;
<ide> import reactor.netty.NettyOutbound;
<del>import reactor.netty.NettyPipeline;
<ide> import reactor.netty.http.... | 1 |
PHP | PHP | set better default value according to doc block | 58b131d5725210bd6294ffa9a37af7d7633a8ad7 | <ide><path>src/Core/InstanceConfigTrait.php
<ide> protected function _configRead($key) {
<ide> * @return void
<ide> * @throws Cake\Error\Exception if attempting to clobber existing config
<ide> */
<del> protected function _configWrite($key, $value, $merge = null) {
<add> protected function _configWrite($key, $value,... | 1 |
Text | Text | fix typo "infortmation" in docs for `docker run` | cbf2879349bd6cc3b43f89733a9b81f55bd0c495 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> specified image, and then `starts` it using the specified command. That is,
<ide> previous changes intact using `docker start`. See `docker ps -a` to view a list
<ide> of all containers.
<ide>
<del>There is detailed infortmation about `docker run` in the [Dock... | 1 |
Text | Text | fix slack url in template | 4e79a04579d8b3748ddd4c42707fd5a8bf68cce8 | <ide><path>.github/first-timers-issue-template.md
<ide> $DIFF
<ide>
<ide> ### 🤔❓ Questions
<ide>
<del>Leave a comment below! Alternatively, drop by our [slack's #discussion channel](http://slack.videojs.com].
<add>Leave a comment below! Alternatively, drop by our [slack's #discussion channel](http://slack.videojs.co... | 1 |
PHP | PHP | remove unneeded annotations | 32faa982fcaa1e715223af6cba1a6457411aaa88 | <ide><path>src/Datasource/ConnectionInterface.php
<ide> * @method \Cake\Database\Query newQuery()
<ide> * @method \Cake\Database\StatementInterface prepare($sql)
<ide> * @method \Cake\Database\StatementInterface execute($query, $params = [], array $types = [])
<del> * @method string quote($value, $type = null)
<del>... | 1 |
Java | Java | remove class loads for coremodulespackage | c31f79fe478b882540d7fd31ee37b53ddbd60a17 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> public List<ModuleSpec> getNativeModules(final ReactApplicationContext reactContext) {
<ide> return Arrays.asList(
<ide> ModuleSpec.nativeModuleSpec(
<del> AndroidInfoModule.class,
<add> AndroidInf... | 8 |
Ruby | Ruby | remove useless test case | 111ae374015c43a69a2d3d2bf74466c4af8d975f | <ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> def test_sending_new_to_association_proxy_should_have_same_effect_as_calling_new
<ide> assert_equal client_association.new.attributes, client_association.send(:new).attributes
<ide> end
<ide>
<del> def test_respond_to_private_cl... | 2 |
Text | Text | fix broken link | 35d4db8d9f056b9071f2e76eef19a4e96a71fda8 | <ide><path>CONTRIBUTING.md
<ide> To run the sniffs for CakePHP coding standards:
<ide> phpcs -p --extensions=php --standard=CakePHP ./src
<ide>
<ide> Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer)
<del>repository to setup the CakePHP standard. The [README](https://github.com/cakeph... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.