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 | remove unused import | afbc5ac7c32f3ad5d862a6d6c4063bdde964b966 | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> use League\Flysystem\Adapter\Local as LocalAdapter;
<ide> use League\Flysystem\AwsS3v3\AwsS3Adapter as S3Adapter;
<ide> use League\Flysystem\Cached\Storage\Memory as MemoryStore;
<del>use League\Flysystem\Cached\Storage\Predis as PredisStore;
<ide> use Il... | 1 |
Javascript | Javascript | clarify reason for settextcontent helper | 4e044f553f0704c0603f857165ea2acbb0940b2b | <ide><path>packages/react-dom/src/client/ReactDOM.js
<ide> import warning from 'fbjs/lib/warning';
<ide> import * as ReactDOMComponentTree from './ReactDOMComponentTree';
<ide> import * as ReactDOMFiberComponent from './ReactDOMFiberComponent';
<ide> import * as ReactInputSelection from './ReactInputSelection';
<add>im... | 2 |
Ruby | Ruby | fix rubocop errors | c3844a9dc0a4432c5dc50aa2fbfd705bc09fd725 | <ide><path>activestorage/lib/active_storage/transformers/image_processing_transformer.rb
<ide> def operations
<ide> end
<ide>
<ide> def validate_transformation(name, argument)
<del> method_name = name.to_s.gsub("-","_")
<add> method_name = name.to_s.tr("-", "_")
<ide>
<ide> ... | 3 |
Java | Java | remove flaky check in mbeanclientinterceptortests | 9bd74c270f880b8c2d98f13eefda0fe98f372029 | <ide><path>spring-context/src/test/java/org/springframework/jmx/access/MBeanClientInterceptorTests.java
<ide> import java.net.BindException;
<ide> import java.util.HashMap;
<ide> import java.util.Map;
<del>import java.util.concurrent.TimeUnit;
<ide>
<ide> import javax.management.Descriptor;
<ide> import javax.manageme... | 1 |
Ruby | Ruby | remove unneded tests | 46a2917deda5207ff208ac03b85c7ae8396c8501 | <ide><path>activerecord/test/cases/dirty_test.rb
<ide> def test_time_attributes_changes_with_time_zone
<ide> assert_equal old_created_on, pirate.created_on_was
<ide> end
<ide> end
<del>
<add>
<ide> def test_setting_time_attributes_with_time_zone_field_to_itself_should_not_be_marked_as_a_change
<ide> ... | 1 |
PHP | PHP | fix phpstan error | 3cc9bc7294aba0aefb7c50a124e6abc2f75d6e8d | <ide><path>src/Shell/HelpShell.php
<ide> public function main()
<ide> }
<ide>
<ide> if ($this->param('xml')) {
<del> return $this->asXml($this->commands);
<add> $this->asXml($this->commands);
<add>
<add> return;
<ide> }
<ide> $this->asText($this->command... | 1 |
Javascript | Javascript | fix lint warnings in jstransformer | 8e803643ec92e59fcbf40d262cc8384492e9b028 | <ide><path>packager/react-packager/src/JSTransformer/__tests__/Transformer-test.js
<ide> describe('Transformer', function() {
<ide> workerFarm.mockClear();
<ide> workerFarm.mockImpl((opts, path, methods) => {
<ide> const api = workers = {};
<del> methods.forEach(method => api[method] = jest.fn());
<a... | 3 |
PHP | PHP | regeneratetoken | f5d9bc0a6662b40cdbecea7a7f8ff6a9819954c7 | <ide><path>tests/Session/SessionStoreTest.php
<ide> public function testToken()
<ide> }
<ide>
<ide>
<add> public function testRegenerateToken()
<add> {
<add> $session = $this->getSession();
<add> $token = $session->getToken();
<add> $session->regenerateToken();
<add> $this->assertNotEquals($token, $session->getT... | 1 |
Text | Text | improve alt text | 525b6dd0be23716e9d46886b1d222c8826c9d000 | <ide><path>COLLABORATOR_GUIDE.md
<ide> or a pull request.
<ide>
<ide> Courtesy should always be shown to individuals submitting issues and pull
<ide> requests to the Node.js project. Be welcoming to first-time contributors,
<del>identified by the GitHub  badge.
<add>identified by t... | 1 |
Mixed | Ruby | add compatibility for ruby 2.4 `to_time` changes | c9c5788a527b70d7f983e2b4b47e3afd863d9f48 | <ide><path>activesupport/CHANGELOG.md
<add>* Add `ActiveSupport.to_time_preserves_timezone` config option to control
<add> how `to_time` handles timezones. In Ruby 2.4+ the behavior will change
<add> from converting to the local system timezone to preserving the timezone
<add> of the receiver. This config op... | 16 |
PHP | PHP | remove assignment in conditional | 776fcad341fb01c4fd8df13e38dc37c172321513 | <ide><path>Cake/Database/Statement/StatementDecorator.php
<ide> public function bind($params, $types) {
<ide> * @return string
<ide> */
<ide> public function lastInsertId($table = null, $column = null) {
<del> if ($column && $row = $this->fetch('assoc')) {
<add> $row = null;
<add> if ($column) {
<add> $row = $t... | 1 |
Python | Python | prevent head method mapping to coerce action name | df584350b4f77143d84615f05000f71408aec9c0 | <ide><path>rest_framework/schemas/coreapi.py
<ide> def get_keys(self, subpath, method, view):
<ide>
<ide> if is_custom_action(action):
<ide> # Custom action, eg "/users/{pk}/activate/", "/users/active/"
<del> if len(view.action_map) > 1:
<add> mapped_methods = {
<add> ... | 2 |
Go | Go | fix a typo in graph/graph.go | 883fcfe4256d5d5bf1b3bfbced61fa585fe07a73 | <ide><path>graph/graph.go
<ide> func (graph *Graph) walkAll(handler func(*image.Image)) {
<ide> }
<ide>
<ide> // ByParent returns a lookup table of images by their parent.
<del>// If an image of id ID has 3 children images, then the value for key ID
<add>// If an image of key ID has 3 children images, then the value f... | 1 |
Python | Python | add vectors.pyx in setup | b4cdd054669baced2f55337ac33556817f7dc272 | <ide><path>setup.py
<ide> 'spacy.syntax.ner',
<ide> 'spacy.symbols',
<ide> 'spacy.vectors',
<del> 'spacy.syntax.iterators']
<add>]
<ide>
<ide>
<ide> COMPILE_OPTIONS = {
<ide><path>spacy/tests/regression/test_issue704.py
<ide> def test_issue704(EN):
<ide>
<ide> text = '“Atticus said to Jem one day... | 2 |
Javascript | Javascript | fix the regression at 6073a03 | 49a3bae05b5432adf9c504bb836119a0eb5a49cf | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> }
<ide>
<ide> Fonts[name] = {
<del> data: file,
<add> data: data,
<ide> properties: properties,
<ide> loading: true,
<ide> cache: Object.create(null) | 1 |
Ruby | Ruby | fix variable names and speed up relation ordering | b4aae5a8e6a3d65b11490261b445faf9e38bbcd2 | <ide><path>activerecord/lib/active_record/associations/preloader/association.rb
<ide> def options
<ide> reflection.options
<ide> end
<ide>
<del> def preloaded_records1
<del> associated_records_by_owner.values.flatten
<del> end
<del>
<ide> def preloaded_records
<del> ... | 2 |
Javascript | Javascript | remove dup camelkey path | 8f7218198dad5dd1a93dc44087159b2c34b86292 | <ide><path>src/data.js
<ide> jQuery.fn.extend({
<ide> return data;
<ide> }
<ide>
<del> // As a last resort, attempt to find
<del> // the data by checking AGAIN, but with
<del> // a camelCased key.
<del> data = data_user.get( elem, camelKey );
<del> if ( data !== undefined ) {
<del> return d... | 1 |
Text | Text | add 0.67.1 changelog & fix 0.67.0 | 293fb51e3aef0155fd2cd107e9a58fa86fb19ab9 | <ide><path>CHANGELOG.md
<ide> # Changelog
<ide>
<add>## v0.67.1
<add>
<add>### Fixed
<add>
<add>#### Android specific
<add>
<add>- Do not remove libjscexecutor.so from release builds ([574a773f8f](https://github.com/facebook/react-native/commit/574a773f8f55fe7808fbb672066be8174c64d76d) by [@cortinico](https://github.c... | 1 |
Javascript | Javascript | remove test that belonged in ajaxtest.js | 19b21ff10ae5f4800f367306cb589c5fe201eed3 | <ide><path>src/jquery/coreTest.js
<ide> test("removeAttr(String", function() {
<ide> ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );
<ide> });
<ide>
<del>test("evalScripts() with no script elements", function() {
<del> expect(2);
<del> stop();
<del> $.ajax({
<del> url: 'data/t... | 1 |
Go | Go | fix runtime issue for testeventsfiltercontainer | 07795c3f5db3aa8ff592b0606ab76d32db4c6d25 | <ide><path>integration-cli/docker_cli_events_test.go
<ide> func (s *DockerSuite) TestEventsFilterContainer(c *check.C) {
<ide> nameID := make(map[string]string)
<ide>
<ide> for _, name := range []string{"container_1", "container_2"} {
<del> out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "run", "-d",... | 1 |
Python | Python | add regression test for | 1a735e0f1f079f79f3d5a673e3d641f3916f7ad1 | <ide><path>spacy/tests/regression/test_issue3328.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>from spacy.matcher import Matcher
<add>from spacy.tokens import Doc
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue3328(en_vocab):
<add> doc = Doc(en_vocab, word... | 1 |
Javascript | Javascript | remove extra debugs | fa47ed9afbeb977b37b1f2e1d25df06876c9d2c5 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> }
<ide> })
<ide> .flatMap(({ progressTimestamps = [] }) => {
<del> debug('progressTimestamps', progressTimestamps);
<ide> return Observable.from(progressTimestamps);
<ide> })
<ide> ... | 1 |
Ruby | Ruby | allow formula names with '+' in them | 53d6f617d7246a40c8991653a6b166ec320880c2 | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_parameters
<ide>
<ide> def self.class_s name
<ide> #remove invalid characters and camelcase
<del> name.capitalize.gsub(/[-_\s]([a-zA-Z0-9])/) { $1.upcase }
<add> name.capitalize.gsub(/[-_\s]([a-zA-Z0-9])/) { $1.upcase }.gsub('+', 'x')
<ide> end
<... | 1 |
Text | Text | add russian translation for introduction of tips | 4dd44e77f8fc368218f3c1f22f32263cc6cbd7b7 | <ide><path>docs/tips/01-introduction.ru-RU.md
<add>---
<add>id: introduction-ru-RU
<add>title: Введение
<add>layout: tips
<add>permalink: tips/introduction-ru-RU.html
<add>next: inline-styles.html
<add>---
<add>
<add>Данный раздел советов по React содержит краткую информацию, которая поможет ответить на многие ваши воп... | 1 |
PHP | PHP | consolidate doc block lines around chaining | 48a61305d6e1c2150c8c40fc6a22b548f04697a8 | <ide><path>src/Database/Expression/FunctionExpression.php
<ide> public function __construct($name, $params = [], $types = []) {
<ide> * if no value is passed it will return current name
<ide> *
<ide> * @param string $name The name of the function
<del> * @return string
<add> * @return string|$this
<ide> */
<ide> p... | 11 |
Text | Text | remove whitespace in docs | 7342f56c8d427832ccd29fe25c7be8529631c6df | <ide><path>docs/basics/UsageWithReact.md
<ide> export default class App extends Component {
<ide> {
<ide> text: 'Use Redux',
<ide> completed: true
<del> },
<add> },
<ide> {
<ide> text: 'Learn to connect it to React',
... | 1 |
Ruby | Ruby | fix the named_scope deprecation notice | 8ba2902dd4c3e9a3715130c499d78c4fc79fbf16 | <ide><path>activerecord/lib/active_record/named_scope.rb
<ide> def scope(name, options = {}, &block)
<ide> end
<ide>
<ide> def named_scope(*args, &block)
<del> ActiveSupport::Deprecation.warn("Base#named_scope has been deprecated, please use Base.scope instead.", caller)
<add> ActiveSupport::... | 1 |
Javascript | Javascript | remove proptypes from maskedviewios.ios.js | 8487e8fc45a6179d0f2345d20f7aad0ac7f5cf71 | <ide><path>Libraries/Components/MaskedView/MaskedViewIOS.ios.js
<ide> * @flow
<ide> */
<ide>
<del>const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes');
<del>const PropTypes = require('prop-types');
<ide> const React = require('React');
<ide> const StyleSheet = require('StyleSheet');
<ide> const View = ... | 1 |
Ruby | Ruby | checkout last branch when done | 59f926cfd3da207d53e5ebc168fbff54a36edb6a | <ide><path>Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
<ide> def boneyard_formula_pr
<ide> ohai "git push $HUB_REMOTE #{branch}:#{branch}"
<ide> ohai "hub pull-request -m $'#{formula.name}: migrate to boneyard\\n\\nCreated with `brew boneyard-formula-pr`#{reason}.'"
<ide> end
<add>
<add> ... | 1 |
Ruby | Ruby | use regex captures instead of string#split | b2870c2480744aa7d202c4975e3169b05035f7ed | <ide><path>Library/Homebrew/cask/lib/hbc/qualified_token.rb
<ide> module Hbc
<ide> module QualifiedToken
<ide> def self.parse(arg)
<ide> return nil unless arg.is_a?(String)
<del> return nil unless arg.downcase =~ HOMEBREW_TAP_CASK_REGEX
<del> # eg caskroom/cask/google-chrome
<del> # per https... | 1 |
Javascript | Javascript | unbreak doc generation for sectionlist | e50464d1d79b936a84e0e59a02b408c69536fb93 | <ide><path>Libraries/Lists/SectionList.js
<ide> type OptionalProps<SectionT: SectionBase<any>> = {
<ide> legacyImplementation?: ?boolean,
<ide> };
<ide>
<del>export type Props<SectionT> = {
<del> ...$Exact<RequiredProps<SectionT>>,
<del> ...$Exact<OptionalProps<SectionT>>,
<del> ...$Exact<VirtualizedSectionListPr... | 1 |
Ruby | Ruby | use regexp instead exact match for atom test | 82e478836f593d481a949381c50e351d4327b5ae | <ide><path>actionview/test/template/atom_feed_helper_test.rb
<ide> def test_feed_xml_processing_instructions_duplicate_targets
<ide> end
<ide>
<ide> def test_feed_xhtml
<del> skip "Pending. There are two xml namespaces in the response body, as such Nokogiri doesn't know which one to pick and can't find the elem... | 1 |
PHP | PHP | extract removable symlink check to method | e4b509e6571bbdc99db0725ce3ca897d47afccf1 | <ide><path>src/Illuminate/Foundation/Console/StorageLinkCommand.php
<ide> public function handle()
<ide> $force = $this->option('force');
<ide>
<ide> foreach ($this->links() as $link => $target) {
<del> if (file_exists($link) && ! (is_link($link) && $force)) {
<add> if (file_exist... | 1 |
Ruby | Ruby | fix rails root in sqlite adapter | 4cebd41d9e9764b29a5673a298a71b0c530b2bf6 | <ide><path>activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
<ide> def parse_sqlite_config!(config)
<ide> raise ArgumentError, "No database file specified. Missing argument: database"
<ide> end
<ide>
<del> # Allow database path relative to RAILS_ROOT, but only if
<add>... | 1 |
Ruby | Ruby | add aliases for reverse_merge to with_defaults | 0117810cdab34d168b0579a6736c5d58c5ab84c7 | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def reverse_merge(other_hash)
<ide> other_hash.to_h.merge(@parameters)
<ide> )
<ide> end
<add> alias_method :with_defaults, :reverse_merge
<ide>
<ide> # Returns current <tt>ActionController::Parameters</tt> instance w... | 5 |
Javascript | Javascript | move priority context change to findnextunitofwork | e1b733fa8382f74dd790964993856ce5a85bf363 | <ide><path>src/renderers/shared/fiber/ReactFiberScheduler.js
<ide> module.exports = function<T, P, I, TI, C, CX>(config : HostConfig<T, P, I, TI, C
<ide> }
<ide> }
<ide>
<add> // findNextUnitOfWork mutates the current priority context. It is reset after
<add> // after the workLoop exits, so never call findNext... | 1 |
Text | Text | add additional information to airflow release doc | 7a9c03caaf5b954057f7a566b7406982e67f9749 | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> - [Selecting what to cherry-pick](#selecting-what-to-cherry-pick)
<ide> - [Reviewing cherry-picked PRs and assigning labels](#reviewing-cherry-picked-prs-and-assigning-labels)
<ide> - [Prepare the Apache Airflow Package RC](#prepare-the-apache-airflow-package-rc)
<add>... | 1 |
Python | Python | update animation.py | b4bc76723f85ef523fc5c7418184c461003ef5ab | <ide><path>utils/exporters/blender/addons/io_three/exporter/api/animation.py
<ide> """
<ide> Module for handling the parsing of skeletal animation data.
<add>updated on 2/07/2016: bones scaling support (@uthor verteAzur verteAzur@multivers3d.fr)
<ide> """
<ide>
<ide> import math
<ide> def _parse_rest_action(action, ar... | 1 |
Javascript | Javascript | add comments to flagincludedchunksplugin | ff814e91b5ca90b2a7d69f4c370ebfbda658698c | <ide><path>lib/optimize/FlagIncludedChunksPlugin.js
<ide> class FlagIncludedChunksPlugin {
<ide> compilation.plugin("optimize-chunk-ids", (chunks) => {
<ide> chunks.forEach((chunkA) => {
<ide> chunks.forEach((chunkB) => {
<add> // as we iterate the same iterables twice
<add> // skip if we find our... | 1 |
Python | Python | test simple indexing for span | 5cc2f2b01ab26e313a7035f998fc1b4373cb6cc5 | <ide><path>tests/tokens/test_tokens_api.py
<ide> def to_str(span):
<ide> span = tokens[40:50]
<ide> assert span.start == span.end == 7 and not to_str(span)
<ide>
<add> span = tokens[1:4]
<add> assert span[0].orth_ == 'it'
<add>
<ide>
<ide> @pytest.mark.models
<ide> def test_serialize(EN): | 1 |
Python | Python | move `importlib` fallback into compat | c5eb5b22018e55bffe080bb3f14e34ab6b493073 | <ide><path>rest_framework/compat.py
<ide> from django.utils import six
<ide> import django
<ide> import inspect
<del>
<add>try:
<add> import importlib
<add>except ImportError:
<add> from django.utils import importlib
<ide>
<ide> def unicode_repr(instance):
<ide> # Get the repr of an instance, but ensure it i... | 2 |
Python | Python | use s3 location for xlm-roberta model | 5c5f67a256b558b470f03cf36edc5ea35dec2fba | <ide><path>transformers/modeling_xlm_roberta.py
<ide> logger = logging.getLogger(__name__)
<ide>
<ide> XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP = {
<del> 'xlm-roberta-base': "https://schweter.eu/cloud/transformers/xlm-roberta-base-pytorch_model.bin",
<del> 'xlm-roberta-large': "https://schweter.eu/cloud/transfor... | 1 |
Javascript | Javascript | provide full cert details to checkserveridentity | 853f0bdf1908f754a0e7a7486339e79578c2c68b | <ide><path>lib/_tls_wrap.js
<ide> function onConnectSecure() {
<ide> options.host ||
<ide> (options.socket && options.socket._host) ||
<ide> 'localhost';
<del> const cert = this.getPeerCertificate();
<add> const cert = this.getPeerCertificate(true);
<ide> ... | 1 |
Python | Python | fix the rest of the flake8 errors | 5867895d6eb162066dc8b4a188e36345016745ff | <ide><path>celery/app/trace.py
<ide> def get_log_policy(task, einfo, exc):
<ide>
<ide> def get_task_name(request, default):
<ide> """Use 'shadow' in request for the task name if applicable."""
<del> # request.shadow could be None or an empty string. If so, we should use default.
<add> # request.shadow could ... | 1 |
Text | Text | fix references to cli | 95870ef3349920efc981a703d52f5832b79ee18e | <ide><path>docs/sources/reference/run.md
<ide> its own networking, and its own isolated process tree. The
<ide> defaults related to the binary to run, the networking to expose, and
<ide> more, but `docker run` gives final control to the operator who starts
<ide> the container from the image. That's the main reason
<de... | 1 |
Ruby | Ruby | add azure to the available services list | b334ac80cf07d4ce6ba20b3ee45c3e58711f9a91 | <ide><path>activestorage/lib/active_storage/service.rb
<ide> # * +Disk+, to manage attachments saved directly on the hard drive.
<ide> # * +GCS+, to manage attachments through Google Cloud Storage.
<ide> # * +S3+, to manage attachments through Amazon S3.
<add># * +Azure+, to manage attachments through Microsoft Azure S... | 1 |
PHP | PHP | fix a phpdoc typo | 36baff397d6ef4cb0f3980cdfeacc90fe3661b67 | <ide><path>src/Illuminate/Support/Facades/Blade.php
<ide> * @method static bool check(string $name, array ...$parameters)
<ide> * @method static void component(string $class, string|null $alias = null, string $prefix = '')
<ide> * @method static void components(array $components, string $prefix = '')
<del> * @method... | 1 |
Javascript | Javascript | add custom annotations to the controller | 7e112c1fc3ab5651e9a36aa024200dc82b18a05d | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> * See {@link ng.$compile#-bindtocontroller- `bindToController`}.
<ide> * - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
<ide> * Disabled by ... | 2 |
Text | Text | fix a typo in the pr template | 4d33285d90ec0587c3517f2a8339cd830f68372b | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> - [ ] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
<ide> - [ ] My pull request has a descriptive title (not a vague title like `Update index.md`)
<ide> - [ ] My pull request targets the `... | 1 |
Javascript | Javascript | fix euler accessors | e0f8526922ae92a9e3eb289c58e9a19ba92de6f6 | <ide><path>src/math/Euler.js
<ide> Euler.RotationOrders = [ 'XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX' ];
<ide>
<ide> Euler.DefaultOrder = 'XYZ';
<ide>
<del>Object.assign( Euler.prototype, {
<add>Object.defineProperties( Euler.prototype, {
<ide>
<del> constructor: Euler,
<add> "x" : {
<ide>
<del> isEuler: true,
<add>... | 1 |
PHP | PHP | fix issues with sqlserver + boolean columns | 4e67698506ea489532dd6bd662f2c38c09f4f90a | <ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php
<ide> public function insertMulti($table, $fields, $values) {
<ide> /**
<ide> * Generate a database-native column schema string
<ide> *
<del> * @param array $column An array structured like the following: array('name'=>'value', 'type'=>'value'[, options]),
<... | 2 |
Javascript | Javascript | pass initial props to wrappercomponent | 4f5a092bf68a0cd825328ce4a1e6bb41a8fad2e3 | <ide><path>Libraries/ReactNative/AppContainer.js
<ide> type Props = $ReadOnly<{|
<ide> children?: React.Node,
<ide> fabric?: boolean,
<ide> rootTag: number,
<add> initialProps?: {...},
<ide> showArchitectureIndicator?: boolean,
<ide> WrapperComponent?: ?React.ComponentType<any>,
<ide> internal_excludeLogBo... | 2 |
PHP | PHP | remove extra space in htmlhelper radio tag | c34bf673d5eec7e133748deab89635973cffa28f | <ide><path>lib/Cake/View/Helper/CacheHelper.php
<ide> protected function _writeFile($content, $timestamp, $useCallbacks = false) {
<ide> $controller = new ' . $this->_View->name . 'Controller($request, $response);
<ide> $controller->plugin = $this->plugin = \'' . $this->_View->plugin . '\';
<ide> $controlle... | 2 |
Go | Go | fix comments and handle err | cc054f3195308da471c252d755dacfe446cb1066 | <ide><path>api/client/inspect.go
<ide> func (cli *DockerCli) inspectAll(ctx context.Context, getSize bool) inspect.GetR
<ide> }
<ide> return nil, nil, err
<ide> }
<del> return i, rawImage, err
<add> return i, rawImage, nil
<ide> }
<ide> return nil, nil, err
<ide> }
<del> return c, rawContai... | 5 |
Text | Text | add v3.13.0-beta.5 to changelog | 7ae73e69fcf9c0a5ae18bc25f98460f0c5270bca | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.13.0-beta.5 (September 3, 2019)
<add>
<add>- [#18314](https://github.com/emberjs/ember.js/pull/18314) [BUGFIX] Use class inheritance for getters and setters
<add>- [#18329](https://github.com/emberjs/ember.js/pull/18329) [BUGFIX] Eagerly consume aliases... | 1 |
Javascript | Javascript | allow directory browsing | 241d57aa9eb2d74bb400bd9e5339fe0a6b58ccff | <ide><path>grunt/config/server.js
<ide> module.exports = function(grunt){
<ide> connect.bodyParser(),
<ide> testResultLoggerMiddleware,
<ide>
<del> connect.static(options.base)
<add> connect.static(options.base),
<add> connect.directory(options.base)... | 1 |
Javascript | Javascript | keep test iframes around for assertions | 0fb84fa8ccefcd07febf282fd7b80262ad70add7 | <ide><path>test/data/testinit.js
<ide> this.testIframeWithCallback = function( title, fileName, func ) {
<ide> setTimeout( function() {
<ide> this.iframeCallback = undefined;
<ide>
<del> iframe.remove();
<ide> func.apply( this, args );
<ide> func = function() {};
<add> iframe.remove();
<ide>
<ide... | 1 |
PHP | PHP | remove unused property | 50138f77231ee294c1b3289d41743ca01b614ca8 | <ide><path>src/Controller/Controller.php
<ide> class Controller implements EventListenerInterface, EventDispatcherInterface
<ide> */
<ide> protected $response;
<ide>
<del> /**
<del> * The class name to use for creating the response object.
<del> *
<del> * @var string
<del> */
<del> prote... | 1 |
Text | Text | fix typo in config-json man page | c75581c8552745f989d0ff6ed7dff86e26e55767 | <ide><path>man/config-json.5.md
<ide> % Docker Community
<ide> % JANUARY 2016
<ide> # NAME
<del>HOME/.docker/confg.json - Default Docker configuration file
<add>HOME/.docker/config.json - Default Docker configuration file
<ide>
<ide> # INTRODUCTION
<ide> | 1 |
Javascript | Javascript | add test for categorical scales | 72c9cd4ddeb5cf4bbadc57cb996bafc0401a52fb | <ide><path>test/scale/category-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("d3.scale.category");
<add>
<add>suite.addBatch({
<add> "category10": category(d3.scale.category10, 10),
<add> "cate... | 1 |
Go | Go | fix regressions in attach | 0fec3e19dbff15b3cd8fa3693f694e34d8dcc5a9 | <ide><path>api/server/server.go
<ide> func postContainersAttach(eng *engine.Engine, version version.Version, w http.Re
<ide> } else {
<ide> errStream = outStream
<ide> }
<del> logs := r.Form.Get("logs") != ""
<del> stream := r.Form.Get("stream") != ""
<add> logs := toBool(r.Form.Get("logs"))
<add> stream := toBool(... | 2 |
PHP | PHP | add use at top and use assertnull | ffe113148597c248f5090facef298b9855fcc089 | <ide><path>src/Routing/Router.php
<ide> use Cake\Core\Configure;
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\Utility\Inflector;
<add>use Cake\Routing\Exception\MissingRouteException;
<ide> use Psr\Http\Message\ServerRequestInterface;
<ide>
<ide> /**
<ide> public static function urlOrNull($url = null, $full = fal... | 2 |
Python | Python | add reference to resource variables | 93cef86d705e6718ff0d914e303e29cec23195ae | <ide><path>keras/engine/base_layer.py
<ide> def add_weight(self,
<ide> Note that `trainable` cannot be `True` if `synchronization`
<ide> is set to `ON_READ`.
<ide> constraint: Constraint instance (callable).
<del> use_resource: Whether to use `ResourceVariable`.
<add> use_resource: Wheth... | 1 |
Python | Python | use mock.patch in migrations tests | 88d7fcebdebb726c6dc561bcce7916ed1d5256d7 | <ide><path>tests/auth_tests/test_tokens.py
<del>import sys
<ide> import unittest
<ide> from datetime import date, timedelta
<ide>
<ide> from django.conf import settings
<ide> from django.contrib.auth.models import User
<ide> from django.contrib.auth.tokens import PasswordResetTokenGenerator
<ide> from django.test impo... | 2 |
Ruby | Ruby | refactor the optimized build_query a bit | 37b77c6ae7effdba51ecd8b3b91e2cdb0020b6aa | <ide><path>actionpack/lib/action_view/template/resolver.rb
<ide> def eql?(resolver)
<ide> class OptimizedFileSystemResolver < FileSystemResolver #:nodoc:
<ide> def build_query(path, details)
<ide> exts = EXTENSIONS.map { |ext| details[ext] }
<del> query = File.join(@path, path)
<ide>
<del> exts.e... | 1 |
PHP | PHP | remove windows carriage return chars from package | f47f8481ff8b485aede9db27fe09aa4e4a93a718 | <ide><path>src/Illuminate/Workbench/Package.php
<del><?php namespace Illuminate\Workbench;
<del>
<del>class Package {
<del>
<del> /**
<del> * The vendor name of the package.
<del> *
<del> * @var string
<del> */
<del> public $vendor;
<del>
<del> /**
<del> * The snake-cased version of the vendor.
<del> *
<del> * @... | 1 |
Text | Text | fix changelog entry about fast_string_to_time fix | d23c761f5a514e10676aa3e0e1632946aaebcbf7 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> *kennyj*
<ide>
<del>* Use inversed parent for first and last child of has_many association.
<add>* Use inversed parent for first and last child of `has_many` association.
<ide>
<ide> *Ravil Bayramgalin*
<ide>
<del>* Fix Column.microseconds and Column.fa... | 1 |
Java | Java | use registry to convert to completablefuture | 3303a68436c23fa4928c402bbec52d2da88818b0 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/AsyncServerResponse.java
<ide> import javax.servlet.http.HttpServletResponse;
<ide>
<ide> import org.reactivestreams.Publisher;
<del>import org.reactivestreams.Subscriber;
<del>import org.reactivestreams.Subscription;
<ide>
<ide> import o... | 1 |
Javascript | Javascript | improve example, correct browser compat note | 122d89b2401fadf4f6a07a906d3d25324b7d859e | <ide><path>src/ng/directive/attrs.js
<ide> *
<ide> * ## A note about browser compatibility
<ide> *
<del> * Edge, Firefox, and Internet Explorer do not support the `details` element, it is
<add> * Internet Explorer and Edge do not support the `details` element, it is
<ide> * recommended to use {@link ng.ngShow} and ... | 1 |
Python | Python | fix tensorboard callback with unit test | bcf0031b54d555179be81c088cc3df0a723d7907 | <ide><path>keras/callbacks.py
<ide> def is_indexed_slices(grad):
<ide> tf.summary.image(mapped_weight_name, w_img)
<ide>
<ide> if hasattr(layer, 'output'):
<del> tf.summary.histogram('{}_out'.format(layer.name),
<del> la... | 2 |
Go | Go | remove unused error return | f9a1846ca23f462b0e5d7e8f111c7ab322c53b44 | <ide><path>distribution/config.go
<ide> type PushLayer interface {
<ide> DiffID() layer.DiffID
<ide> Parent() PushLayer
<ide> Open() (io.ReadCloser, error)
<del> Size() (int64, error)
<add> Size() int64
<ide> MediaType() string
<ide> Release()
<ide> }
<ide> func (l *storeLayer) Open() (io.ReadCloser, error) {
<ide... | 2 |
Javascript | Javascript | throttle more timers and use native bind | 6a93c8afacc66eec77447498ae10866398cd5815 | <ide><path>src/js/control-bar/progress-control/mouse-time-display.js
<ide> class MouseTimeDisplay extends Component {
<ide> */
<ide> constructor(player, options) {
<ide> super(player, options);
<del> this.update = Fn.throttle(Fn.bind(this, this.update), 25);
<add> this.update = Fn.throttle(Fn.bind(this, ... | 8 |
PHP | PHP | return previous app namespace | 92f50b4536e9df85d773924e4f9807d113fe543f | <ide><path>src/TestSuite/TestCase.php
<ide> protected function _getTableClassName(string $alias, array $options): string
<ide> * Set the app namespace
<ide> *
<ide> * @param string $appNamespace The app namespace, defaults to "TestApp".
<del> * @return void
<add> * @return string|null The previou... | 1 |
PHP | PHP | implement dump() and dd() methods | 6699a47565146cd318a22435f99104d54a90c2c1 | <ide><path>src/Illuminate/Http/Client/PendingRequest.php
<ide> use Illuminate\Support\Collection;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Support\Traits\Macroable;
<add>use Symfony\Component\VarDumper\VarDumper;
<ide>
<ide> class PendingRequest
<ide> {
<ide> public function beforeSending($callback)
<ide... | 1 |
Ruby | Ruby | add method to retrieve formula and casks | 72ebd2127f65d3edf0951b5b3e39b277808ce9cb | <ide><path>Library/Homebrew/cli/args.rb
<ide> def freeze_named_args!(named_args)
<ide> @resolved_formulae = nil
<ide> @formulae_paths = nil
<ide> @casks = nil
<add> @formulae_and_casks = nil
<ide> @kegs = nil
<ide>
<ide> self[:named_args] = named_args
<ide> def casks
<ide... | 1 |
Mixed | Text | add part 3 skeleton | e8e6eefcfa6b237175e87f6979f61d357984e6b8 | <ide><path>docs/tutorials/fundamentals/part-1-overview.md
<ide> Welcome to the Redux Fundamentals tutorial! **This tutorial will introduce you t
<ide>
<ide> In Part 1 of this tutorial, we'll briefly look at a minimal example of a working Redux app to see what the pieces are, and in [Part 2](./part-2-concepts-data-flow... | 3 |
Ruby | Ruby | close the websocket on exception | f29a14207aa3084cb2f0a73cb5672729aa0c6d62 | <ide><path>lib/action_cable/server.rb
<ide> def worker_pool
<ide> self.class.worker_pool
<ide> end
<ide>
<add> def handle_exception
<add> logger.error "[ActionCable] Closing connection"
<add>
<add> @websocket.close
<add> end
<add>
<ide> private
<ide> def initialize_client
<ide> ... | 2 |
Text | Text | fix broken link for academic honesty policy | be6325a3f0ed9cd4475b0e46a256216d288177b5 | <ide><path>README.md
<ide> You can pull in these test suites through [freeCodeCamp's CDN](https://cdn.freec
<ide>
<ide> Once you’ve earned a certification, you will always have it. You will always be able to link to it from your LinkedIn or résumé. And when your prospective employers or freelance clients click that li... | 1 |
PHP | PHP | add islocale method | 17d6293ba52093ff71f464da7785206dde148158 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function setLocale($locale)
<ide> $this['events']->fire('locale.changed', [$locale]);
<ide> }
<ide>
<add> /**
<add> * Determine if application locale equals the given locale.
<add> *
<add> * @param string $locale
<add> *... | 1 |
Ruby | Ruby | compare cellar and prefix against constants | 7b1ca1d152b732fad3fa74651da8c4baff273b15 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> <% if root_url != BottleSpecification::DEFAULT_ROOT_URL %>
<ide> root_url "<%= root_url %>"
<ide> <% end %>
<del> <% if prefix.to_s != "/usr/local" %>
<add> <% if prefix != BottleSpecification::DEFAULT_PREFIX %>
<ide> prefix "<%= prefix %>"
<ide> ... | 1 |
Text | Text | fix broken link in testing documentation | 15adead428afd290baa196daa132fd44a116cfd7 | <ide><path>docs/Testing.md
<ide> You can run integration tests locally with cmd+U in the IntegrationTest and UIEx
<ide>
<ide> A common type of integration test is the snapshot test. These tests render a component, and verify snapshots of the screen against reference images using `TestModule.verifySnapshot()`, using t... | 1 |
PHP | PHP | implement basics of scoped middleware | 7b752864a0ef1d156e4a0bceb24fe8f49d4ed848 | <ide><path>src/Routing/RouteCollection.php
<ide> use Cake\Routing\Exception\MissingRouteException;
<ide> use Cake\Routing\Route\Route;
<ide> use Psr\Http\Message\ServerRequestInterface;
<add>use RuntimeException;
<ide>
<ide> /**
<ide> * Contains a collection of routes.
<ide> class RouteCollection
<ide> */
<ide> ... | 2 |
Mixed | Javascript | truncate inspect array and typed array | a2e57192ebf79084f34766a89e8082067f48af14 | <ide><path>doc/api/util.md
<ide> formatted string:
<ide> will be introspected to show their `target` and `hander` objects. Defaults to
<ide> `false`.
<ide>
<add> - `maxArrayLength` - specifies the maximum number of Array and TypedArray
<add> elements to include when formatting. Defaults to `100`. Set to `null`... | 3 |
Ruby | Ruby | remove extra loop in view_assigns | f6bf17058e30675e92689f4bf9605983b4cafc92 | <ide><path>actionpack/lib/abstract_controller/rendering.rb
<ide> def rendered_format
<ide> # You can overwrite this configuration per controller.
<ide> def view_assigns
<ide> protected_vars = _protected_ivars
<del> variables = instance_variables
<ide>
<del> variables.reject! { |s| protecte... | 1 |
Java | Java | add nonnull annotation to fabricuimanager api | a1a56fe4e5ca6214fe10a5925fcfb3222573206b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> @SuppressLint("MissingNativeLoadLibrary")
<ide> public class FabricUIManager implements UIManager, LifecycleEventListener {
<ide>
<del> public static final String TAG = FabricUIManager.class.getSimpleName();
<add> public stati... | 1 |
Python | Python | update vector meta in meta.json | 37e62ab0e21757751b9606cefbc9f1deec8f2300 | <ide><path>spacy/cli/package.py
<ide> def generate_meta(model_path, existing_meta):
<ide> nlp = util.load_model_from_path(Path(model_path))
<ide> meta['pipeline'] = nlp.pipe_names
<ide> meta['vectors'] = {'width': nlp.vocab.vectors_length,
<del> 'entries': len(nlp.vocab.vectors)}
<add>... | 3 |
Java | Java | clarify @enablescheduling javadoc | 9a856c09f322b8ae821ff5e6a86dc0b0aeaf618d | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java
<ide> /*
<del> * Copyright 2002-2011 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide>... | 1 |
Python | Python | add note to rint docstrings | eeba278c401dea4f38d92897ced61ec49775def4 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> --------
<ide> fix, ceil, floor, trunc
<ide>
<add> Notes
<add> -----
<add> For values exactly halfway between rounded decimal values, NumPy
<add> rounds to the nearest even value. Thus 1.5 and 2.... | 1 |
PHP | PHP | fix duplicate model name | 358827f3b0e44eeb166e6ef70d720213b5b5d3a7 | <ide><path>tests/Integration/Database/EloquentModelScopeTest.php
<ide> class EloquentModelScopeTest extends DatabaseTestCase
<ide> {
<ide> public function testModelHasScope()
<ide> {
<del> $model = new TestModel1;
<add> $model = new TestScopeModel1;
<ide>
<ide> $this->assertTrue($model->h... | 1 |
Java | Java | introduce nonnull to package-info | 0e5f27c94e5fa33a294d342dbc9ed61e6c032468 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/jetty/JettyRequestUpgradeStrategy.java
<ide> import org.springframework.http.server.ServerHttpResponse;
<ide> import org.springframework.http.server.ServletServerHttpRequest;
<ide> import org.springframework.http.server.ServletServerHttpRes... | 2 |
Javascript | Javascript | add xhr statustext to completerequest callback | 1d2414ca93a0340840ea1e80c48edb51ec55cd48 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * - **status** – `{number}` – HTTP status code of the response.
<ide> * - **headers** – `{function([headerName])}` – Header getter function.
<ide> * - **config** – `{Object}` – The configuration object that was used to generate the re... | 6 |
Python | Python | ignore a deprecationwarning | b6ed5b24e6edf7627d212216df963e120d20347f | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_multiarray_writable_attributes_deletion(self):
<ide> """ticket #2046, should not seqfault, raise AttributeError"""
<ide> a = np.ones(2)
<ide> attr = ['shape', 'strides', 'data', 'dtype', 'real', 'imag', 'flat']
<del> for s in a... | 1 |
Javascript | Javascript | fix dd command tests for windows | 3b0f2cecffb9b4a8be63185394064adb989d5ac8 | <ide><path>test/common.js
<ide> exports.indirectInstanceOf = function(obj, cls) {
<ide> };
<ide>
<ide>
<add>exports.ddCommand = function(filename, kilobytes) {
<add> if (process.platform == 'win32') {
<add> return 'fsutil.exe file createnew "' + filename + '" ' + (kilobytes * 1024);
<add> } else {
<add> var b... | 3 |
Mixed | Javascript | add completion preview | 21ecaa47eed39a4ede527e0b340d102ba8e1972b | <ide><path>doc/api/repl.md
<ide> changes:
<ide> * `breakEvalOnSigint` {boolean} Stop evaluating the current piece of code when
<ide> `SIGINT` is received, such as when `Ctrl+C` is pressed. This cannot be used
<ide> together with a custom `eval` function. **Default:** `false`.
<del> * `preview` {boolean} Defi... | 8 |
PHP | PHP | try catch failjob | c1de4911bba6ad3b273106f3af26b14bafc8a204 | <ide><path>src/Illuminate/Queue/Worker.php
<ide> namespace Illuminate\Queue;
<ide>
<ide> use Exception;
<add>use RuntimeException;
<ide> use Throwable;
<ide> use Illuminate\Contracts\Queue\Job;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> protected function handleJobException($connectionName, $job, WorkerOp... | 1 |
Java | Java | adjust error response in resourceurlencodingfilter | 4e4ec266b2899422b4afe8290a1afd3732d2cad1 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java
<ide> private void initLookupPath(ResourceUrlProvider urlProvider) {
<ide> String lookupPath = pathHelper.getLookupPathForRequest(this);
<ide> this.indexLookupPath = requestUri.lastIndexOf(lookupPath);... | 3 |
Python | Python | improve the efficiency of indices | 82ce0a1e8ccf1b83badb9fac3c2160e5896051b5 | <ide><path>numpy/core/numeric.py
<ide> def indices(dimensions, dtype=int):
<ide> """
<ide> dimensions = tuple(dimensions)
<ide> N = len(dimensions)
<del> if N == 0:
<del> return array([], dtype=dtype)
<add> shape = (1,)*N
<ide> res = empty((N,)+dimensions, dtype=dtype)
<ide> for i, dim ... | 1 |
Java | Java | treat mariadb as an independent database type | 21577c47776f8bb12aae87351d73624cadb87aef | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use... | 2 |
Python | Python | fix part of google system tests | 9279c44c91274b7ee31c244d41090c93e5753394 | <ide><path>airflow/providers/google/cloud/example_dags/example_cloud_build.py
<ide>
<ide> # [START howto_operator_create_build_from_repo_body]
<ide> create_build_from_repo_body = {
<del> "source": {"repo_source": {"repo_name": GCP_SOURCE_REPOSITORY_NAME, "branch_name": "master"}},
<add> "source": {"repo_source":... | 12 |
Text | Text | fix function syntax for api routes documentation | 61ca7369c61b3a084e31fdb84ee6cede4c87f9b2 | <ide><path>docs/api-routes/response-helpers.md
<ide> type ResponseData {
<ide> message: string
<ide> }
<ide>
<del>export default function handler(req: NextApiRequest, res: NextApiResponse<ResponseData>) => {
<add>export default function handler(req: NextApiRequest, res: NextApiResponse<ResponseData>) {
<ide> res.s... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.