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 more coding style errors | e33dc98124591d158bd7f6965d08b13b278785ff | <ide><path>lib/Cake/Test/Case/I18n/I18nTest.php
<ide> private function __domainCategorySingular($domain = 'test_plugin', $category = 3
<ide> private function __domainCategoryPlural($domain = 'test_plugin', $category = 3) {
<ide> $plurals = array();
<ide> for ($number = 0; $number <= 25; $number++) {
<del> $plura... | 3 |
Python | Python | use asanyarray instead of asarray | 072e8a5572f0104c4b28828cb1404bed8682e951 | <ide><path>numpy/core/function_base.py
<ide> __all__ = ['logspace', 'linspace', 'may_share_memory']
<ide>
<ide> from . import numeric as _nx
<del>from .numeric import result_type, NaN, shares_memory, MAY_SHARE_BOUNDS, TooHardError
<add>from .numeric import result_type, NaN, shares_memory, MAY_SHARE_BOUNDS, TooHardErro... | 1 |
Javascript | Javascript | remove unused combinereducers | 00c5ca9de5d3f1a9bc0843d820369855b5ac0b16 | <ide><path>examples/counter/store/configureStore.js
<del>import { createStore, applyMiddleware, combineReducers } from 'redux';
<add>import { createStore, applyMiddleware } from 'redux';
<ide> import thunk from 'redux-thunk';
<ide> import rootReducer from '../reducers';
<ide> | 1 |
Javascript | Javascript | fix old comment | 7c7890cac0f90dd5cfee664b97b5fbf052a6101d | <ide><path>src/compile-cache.js
<ide> 'use strict';
<ide>
<del>// For now, we're not using babel or ES6 features like `let` and `const` in
<del>// this file, because `apm` requires this file directly in order to pre-warm
<del>// Atom's compile-cache when installing or updating packages, using an older
<del>// version ... | 1 |
Mixed | Ruby | set inverse during has one autosave if necessary | ba99e6d4002e606679567d8e7cf3d56c29f90925 | <ide><path>activerecord/CHANGELOG.md
<add>* Allow the inverse of a `has_one` association that was previously autosaved to be loaded.
<add>
<add> Fixes #34255.
<add>
<add> *Steven Weber*
<add>
<ide> * Optimise the length of index names for polymorphic references by using the reference name rather than the type... | 5 |
Javascript | Javascript | support 3 levels of navigation | c06d8d01ca774ad55b4bb9982093a6ce3fac524f | <ide><path>packages/rn-tester/js/RNTesterAppShared.js
<ide> const RNTesterApp = (): React.Node => {
<ide> );
<ide> const colorScheme = useColorScheme();
<ide>
<del> const {activeModuleKey, screen, bookmarks, recentlyUsed} = state;
<add> const {
<add> activeModuleKey,
<add> activeModuleExampleKey,
<add> ... | 10 |
Text | Text | add missing accent mark around docker command | 809d99ad913fd73ae5da637c26f94879a6eb189c | <ide><path>docs/man/docker-commit.1.md
<ide> Using an existing container's name or ID you can create a new image.
<ide> ## Creating a new image from an existing container
<ide> An existing Fedora based container has had Apache installed while running
<ide> in interactive mode with the bash shell. Apache is also running... | 1 |
Javascript | Javascript | handle compose with no functions | 306094df6ba9136bcba4b8dd6b577b5b3e8ddff5 | <ide><path>src/utils/compose.js
<ide> * left. For example, compose(f, g, h) is identical to arg => f(g(h(arg))).
<ide> */
<ide> export default function compose(...funcs) {
<del> return (...args) => funcs.slice(0, -1).reduceRight((composed, f) =>
<del> f(composed), funcs[funcs.length - 1](...args)
<del> )
<add> ... | 2 |
Go | Go | fix bug in nvidia device registration | 739adb46e4565efae3981c2cb3f886a87a5e4bd2 | <ide><path>daemon/nvidia_linux.go
<ide> func init() {
<ide> capset: capset,
<ide> updateSpec: setNvidiaGPUs,
<ide> }
<del> for c := range capset {
<del> nvidiaDriver.capset[c] = struct{}{}
<add> for c := range allNvidiaCaps {
<add> nvidiaDriver.capset[string(c)] = struct{}{}
<ide> }
<ide> registerDeviceDri... | 2 |
Python | Python | fix marianmt convertion to onnx | c523a86929d26dfa97fad1f50a00f3e5e7f22e1b | <ide><path>src/transformers/models/marian/configuration_marian.py
<ide> def _flatten_past_key_values_(self, flattened_output, name, idx, t):
<ide> flattened_output = super(OnnxSeq2SeqConfigWithPast, self)._flatten_past_key_values_(
<ide> flattened_output, name, idx, t
<ide> )
<ad... | 2 |
Javascript | Javascript | move hmr to internal transform | 51d8ed92d5c491b1be945f4d86c6e583a77abe38 | <ide><path>local-cli/server/runServer.js
<ide> function getAppMiddleware(args, config) {
<ide> cacheVersion: '3',
<ide> getTransformOptionsModulePath: config.getTransformOptionsModulePath,
<ide> transformModulePath: transformerPath,
<del> enableInternalTransforms: args['enable-internal-transforms'],
<ide... | 8 |
Javascript | Javascript | use actionmanager to register in-template actions | 92d564f3a8b1dd0bae32d1c64d63762520776e04 | <ide><path>packages/ember-routing-handlebars/lib/helpers/action.js
<ide> import { uuid } from "ember-metal/utils";
<ide> import run from "ember-metal/run_loop";
<ide>
<ide> import { isSimpleClick } from "ember-views/system/utils";
<add>import ActionManager from "ember-views/system/action_manager";
<ide> import EmberRo... | 6 |
Javascript | Javascript | add gridarea to unitless css properties | 25d48a7281bcb2c51927c562a43295b8ce0bd983 | <ide><path>packages/react-dom/src/shared/CSSProperty.js
<ide> export const isUnitlessNumber = {
<ide> flexShrink: true,
<ide> flexNegative: true,
<ide> flexOrder: true,
<add> gridArea: true,
<ide> gridRow: true,
<ide> gridRowEnd: true,
<ide> gridRowSpan: true, | 1 |
Ruby | Ruby | add tests against resolver | 80e2aaa80afc205d223288b85828729cb181f6f2 | <ide><path>actionview/test/template/file_system_resolver_test.rb
<add># frozen_string_literal: true
<add>
<add>require "abstract_unit"
<add>require "template/resolver_shared_tests"
<add>
<add>class FileSystemResolverTest < ActiveSupport::TestCase
<add> include ResolverSharedTests
<add>
<add> def resolver
<add> Act... | 3 |
Javascript | Javascript | name inner function of iife | 386dd4efbfd773a9d335df4cf1a391bd8fd63083 | <ide><path>src/animation/PropertyBinding.js
<ide> Object.assign( PropertyBinding, {
<ide>
<ide> var supportedObjectNames = [ 'material', 'materials', 'bones' ];
<ide>
<del> return function ( trackName ) {
<add> return function parseTrackName( trackName ) {
<ide>
<ide> var matches = trackRe.exec( trackName );
... | 3 |
Text | Text | use code markup/markdown in headers | 85aed3e01e5c9892219c513cc6862ec2b503b2dc | <ide><path>doc/api/repl.md
<ide> function myWriter(output) {
<ide> }
<ide> ```
<ide>
<del>## Class: REPLServer
<add>## Class: `REPLServer`
<ide> <!-- YAML
<ide> added: v0.1.91
<ide> -->
<ide> added: v0.1.91
<ide> Instances of `repl.REPLServer` are created using the `repl.start()` method and
<ide> *should not* be creat... | 1 |
Ruby | Ruby | restore `delivery_method` after test | a28f8b5baf10425f53766cad71701e4c18a22d88 | <ide><path>actionmailer/test/parameterized_test.rb
<ide> class ParameterizedTest < ActiveSupport::TestCase
<ide> @previous_logger = ActiveJob::Base.logger
<ide> ActiveJob::Base.logger = Logger.new(nil)
<ide>
<del> @original_delivery_method = ActionMailer::Base.delivery_method
<add> @previous_delivery_met... | 1 |
Python | Python | add tests for `display_value` | e9d9cb701163ebef5b43535c39909f953977eb08 | <ide><path>tests/test_model_serializer.py
<ide>
<ide> from rest_framework import serializers
<ide> from rest_framework.compat import DurationField as ModelDurationField
<del>from rest_framework.compat import unicode_repr
<add>from rest_framework.compat import OrderedDict, unicode_repr
<ide>
<ide>
<ide> def dedent(bl... | 1 |
PHP | PHP | fix doc block | 41c99e8e47006b5d2dee6e1d728f824b2b23a392 | <ide><path>src/Illuminate/View/FileViewFinder.php
<ide> public function addExtension($extension)
<ide> }
<ide>
<ide> /**
<del> * Returns whether or not the view specify a hint information.
<add> * Returns whether or not the view name has any hint information.
<ide> *
<ide> * @param string $... | 1 |
Java | Java | improve javadoc in autoproxyregistrar | c8c1e61c0ab1d164b182dc9b6abe1f6f91070d8b | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/AutoProxyRegistrar.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");
<ide> ... | 1 |
Javascript | Javascript | make storagefolder.clear async | 7c8f73b2d816d928e6fc3094a76c0a35c1a36347 | <ide><path>spec/atom-environment-spec.js
<ide> const fs = require('fs')
<ide> const path = require('path')
<ide> const temp = require('temp').track()
<ide> const AtomEnvironment = require('../src/atom-environment')
<del>const StorageFolder = require('../src/storage-folder')
<ide>
<ide> describe('AtomEnvironment', () =... | 3 |
Python | Python | convert assertion to raised exception in debertav2 | fba0b6a8208e13350e8b26f0400a9fd3f5c9382c | <ide><path>src/transformers/models/deberta/modeling_tf_deberta.py
<ide> def call(
<ide> Returns:
<ide> final_embeddings (`tf.Tensor`): output embedding tensor.
<ide> """
<del> assert not (input_ids is None and inputs_embeds is None)
<add> if input_ids is None and inputs_embeds ... | 2 |
PHP | PHP | fix bad merge | 545f4d281141951565834c02745a4994c087e749 | <ide><path>lib/Cake/Console/Command/TestsuiteShell.php
<ide> *
<ide> * @package Cake.Console.Command
<ide> */
<del><<<<<<< HEAD
<ide> class TestsuiteShell extends TestShell {
<del>=======
<del>class TestsuiteShell extends AppShell {
<del>
<del>/**
<del> * Dispatcher object for the run.
<del> *
<del> * @var Cak... | 1 |
Text | Text | add link to docker hub | 0c3a4a1fcdbb4b7e14292a871dec4bf6828ae57c | <ide><path>docs/reference/commandline/pull.md
<ide> MAINTAINER some maintainer <maintainer@example.com>
<ide>
<ide> ## Pulling from a different registry
<ide>
<del>By default, `docker pull` pulls images from Docker Hub. It is also possible to
<add>By default, `docker pull` pulls images from [Docker Hub](https://hub.d... | 1 |
Javascript | Javascript | remove unused variables and functions | 6d842897c5966cee1924b5073e273568923c8693 | <ide><path>lib/_debugger.js
<ide> function SourceInfo(body) {
<ide> // This class is the repl-enabled debugger interface which is invoked on
<ide> // "node debug"
<ide> function Interface(stdin, stdout, args) {
<del> var self = this,
<del> child;
<add> var self = this;
<ide>
<ide> this.stdin = stdin;
<ide> ... | 19 |
Text | Text | fix typo in documentation | 68e48a0809f5065d03d545fed03787690badb743 | <ide><path>docs/advanced-features/custom-document.md
<ide> Or add a `className` to the `body` tag:
<ide> ## Caveats
<ide>
<ide> - The `<Head />` component used in `_document` is not the same as [`next/head`](/docs/api-reference/next/head.md). The `<Head />` component used here should only be used for any `<head>` code... | 1 |
Text | Text | add mobile context for fitt's law | 76f1d8e2050b8fb07431186ecccb09df582addc1 | <ide><path>guide/english/user-experience-design/fitts-law/index.md
<ide> title: Fitts Law
<ide> ---
<ide>
<ide> ## Fitts Law
<del>Fitts's Law provides a model of human movement which can accurately predict the amount of time taken to move to and select a target. In human-computer interaction Fitts's Law is typically a... | 1 |
Javascript | Javascript | fix paths when built on windows | c867b0ce9ce4a42896b6362c6ec43630e398de0a | <ide><path>build/webpack/plugins/pages-manifest-plugin.js
<ide> export default class PagesManifestPlugin {
<ide> }
<ide>
<ide> const {name} = entry
<del> pages[`/${pagePath.replace(/\\/g, '/')}`] = name
<add> // Write filename, replace any backslashes in path (on windows) with forwardslas... | 2 |
Text | Text | add config section to creating a package | 74ba3c6a4958c3e161b4acc92cfbf1e9bea55078 | <ide><path>docs/creating-a-package.md
<ide> extensions your grammar supports:
<ide> ]
<ide> ```
<ide>
<add>## Adding Configuration Settings
<add>
<add>You can support config options in your package that the user can edit in the
<add>settings view. So do this you specify a `config` key in your package main
<add>specify... | 1 |
Ruby | Ruby | parse argv properly | f640cbac9ed83abab64e4dcb4b630f6765fd2962 | <ide><path>Library/Homebrew/cmd/uses.rb
<ide> def uses
<ide> formulae = (ARGV.include? "--installed") ? Formula.installed : Formula
<ide> recursive = ARGV.flag? "--recursive"
<ide> ignores = []
<del> ignores << "build?" if ARGV.flag? "--skip-build"
<del> ignores << "optional?" if ARGV.flag? "--skip-op... | 1 |
Python | Python | create lxmertmodelintegrationtest pytorch | 0e1718afb61c1acb786d120af4c32341b454eed5 | <ide><path>tests/test_modeling_lxmert.py
<ide> import copy
<ide> import unittest
<ide>
<add>import numpy as np
<add>
<ide> from transformers import is_torch_available
<ide> from transformers.models.auto import get_values
<ide> from transformers.testing_utils import require_torch, slow, torch_device
<ide> def test_reta... | 1 |
Ruby | Ruby | make mocklogger work with blocks | a8f568e1ec4ce7c2346e98174466a616dc0cc3f3 | <ide><path>activesupport/lib/active_support/log_subscriber/test_helper.rb
<ide> def initialize(level = DEBUG)
<ide> @logged = Hash.new { |h,k| h[k] = [] }
<ide> end
<ide>
<del> def method_missing(level, message)
<add> def method_missing(level, message = nil)
<ide> if block_gi... | 1 |
Javascript | Javascript | fix meta+character keys on mac | 8da7202d0bb6a092bbdc3349840a81603ce64ccd | <ide><path>lib/tty_posix.js
<ide> ReadStream.prototype.isTTY = true;
<ide> Some patterns seen in terminal key escape codes, derived from combos seen
<ide> at http://www.midnight-commander.org/browser/lib/tty/key.c
<ide>
<add> ESC letter
<ide> ESC [ letter
<ide> ESC [ modifier letter
<ide> ESC [ 1 ; modifier... | 1 |
Ruby | Ruby | add more tests for current behavior | 5e1cbb50c1a9e566404f8401aea35d6d29028720 | <ide><path>Library/Homebrew/test/test_cleaner.rb
<ide> def test_skip_clean_symlink_when_target_pruned
<ide> assert symlink.symlink?
<ide> assert !symlink.exist?
<ide> end
<add>
<add> def test_removes_la_files
<add> file = @f.lib/'foo.la'
<add>
<add> @f.lib.mkpath
<add> touch file
<add>
<add> Clea... | 1 |
Python | Python | add special tokens to unique_added_tokens_encoder | b262577d17efe0beea88d2bb4f78f1c4a25f2636 | <ide><path>src/transformers/tokenization_utils.py
<ide> def _from_pretrained(cls, pretrained_model_name_or_path, *init_inputs, **kwargs)
<ide> tokenizer.init_inputs = init_inputs
<ide> tokenizer.init_kwargs = init_kwargs
<ide>
<add> # update unique_added_tokens_encoder with special tokens for co... | 1 |
Text | Text | update example for conditional applymiddleware | 46028a584ef6e1a792b6f8a56b4bfa5dd0afdbc0 | <ide><path>docs/api/applyMiddleware.md
<ide> export default connect(
<ide> const store = createStore(
<ide> reducer,
<ide> initialState,
<del> applyMiddleware(middleware)
<add> applyMiddleware(...middleware)
<ide> )
<ide> ```
<ide> | 1 |
PHP | PHP | remove mutating methods from lazy collection | 4365561e5e5ad3b088d1752c6c6bb5bab652a5db | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function prepend($value, $key = null)
<ide> return $this;
<ide> }
<ide>
<add> /**
<add> * Push an item onto the end of the collection.
<add> *
<add> * @param mixed $value
<add> * @return $this
<add> */
<add> public fu... | 6 |
Javascript | Javascript | revert incorrect change | b146c7ac413b00f3bee887e48f4bb9e797273537 | <ide><path>lib/wasm/WebAssemblyGenerator.js
<ide> class WebAssemblyGenerator extends Generator {
<ide> // TODO remove this casts when webpack-sources is fixed
<ide> // source() should have return type (string | Buffer)
<ide> const sourceAsAny = /** @type {TODO} */ (source);
<del> const buf = /** @type {Buffer} *... | 1 |
PHP | PHP | use backslash in plugin name when loading | 555d941a404fff4d6ee804eef6d0912e2e446d3a | <ide><path>src/Core/Plugin.php
<ide> class Plugin {
<ide> *
<ide> * - `bootstrap` - array - Whether or not you want the $plugin/config/bootstrap.php file loaded.
<ide> * - `routes` - boolean - Whether or not you want to load the $plugin/config/routes.php file.
<del> * - `namespace` - string - A custom namespace for ... | 2 |
Javascript | Javascript | add rows prop to textinput component | 49c9ccd3f8150c5478b502cd5ee158f44750a549 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> type AndroidProps = $ReadOnly<{|
<ide> */
<ide> returnKeyLabel?: ?string,
<ide>
<add> /**
<add> * Sets the number of rows for a `TextInput`. Use it with multiline set to
<add> * `true` to be able to fill the lines.
<add> * @platform android
<add>... | 2 |
Text | Text | ensure collaborators validate commits | eb3fee1b87baa85c7792bf1e01cac4396db6dd14 | <ide><path>COLLABORATOR_GUIDE.md
<ide> Run tests (`make -j4 test` or `vcbuild test`). Even though there was a
<ide> successful continuous integration run, other changes may have landed on master
<ide> since then, so running the tests one last time locally is a good practice.
<ide>
<add>Validate that the commit message... | 1 |
Go | Go | use dummy driver for volumes | 10f23a94f6daaf03c684937daea67d10205b4b89 | <ide><path>graphdriver/driver.go
<ide> func Register(name string, initFunc InitFunc) error {
<ide> return nil
<ide> }
<ide>
<del>func getDriver(name, home string) (Driver, error) {
<add>func GetDriver(name, home string) (Driver, error) {
<ide> if initFunc, exists := drivers[name]; exists {
<ide> return initFunc(pa... | 2 |
Text | Text | remove experimental status for whatwg url as path | fa1a842a08aa0be1cbc7b6a0e5517340c6768986 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> - version: v7.6.0
<ide> pr-url: https://github.com/nodejs/node/pull/10739
<ide> description: The `path` parameter can be a WHATWG `URL` object using `file:`
<del> protocol. Support is currently still *experimental*.
<add> protocol.
... | 1 |
Ruby | Ruby | add failing tests according to #479 | 7c353d576a5c302f50d5a72768e36f7a04e71add | <ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> def test_create_from_association_with_nil_values_should_work
<ide> assert_equal 'defaulty', bulb.name
<ide> end
<ide>
<add> def test_create_from_association_set_owner_attributes_by_passing_protection
<add> Bulb.attr_protected... | 1 |
Javascript | Javascript | use separators api in uiexplorer list | eeddef18b8d3d624ae8027104790c963bdc586be | <ide><path>Examples/UIExplorer/js/UIExplorerExampleList.js
<ide> class RowComponent extends React.PureComponent {
<ide> item: Object,
<ide> onNavigate: Function,
<ide> onPress?: Function,
<add> onShowUnderlay?: Function,
<add> onHideUnderlay?: Function,
<ide> };
<ide> _onPress = () => {
<ide> ... | 1 |
Java | Java | remove unused param comments | 089794cb42ca338037948d4e0cfc2cf511a9343e | <ide><path>language-adaptors/rxjava-jruby/src/main/java/rx/lang/jruby/JRubyActionWrapper.java
<ide>
<ide> /**
<ide> * Concrete wrapper that accepts a {@link RubyProc} and produces any needed Rx {@link Action}.
<del> *
<del> * @param <T1>
<del> * @param <T2>
<del> * @param <T3>
<del> * @param <T4>
<ide> */
<ide> publ... | 2 |
Go | Go | add build command | 96069de4e0818f9d513f6ea495e03d8e67eb1e98 | <ide><path>builder.go
<ide> import (
<ide> "bufio"
<ide> "fmt"
<ide> "io"
<del> "os"
<del> "path"
<ide> "strings"
<del> "time"
<ide> )
<ide>
<ide> type Builder struct {
<del> runtime *Runtime
<del> repositories *TagStore
<del> graph *Graph
<add> runtime *Runtime
<ide> }
<ide>
<ide> func NewBuilder(run... | 2 |
Javascript | Javascript | move eslint no-console; now in one place | 81d27091ebfbdc0b3538a09704b252d534e035ef | <ide><path>src/utils/combineReducers.js
<ide> import isPlainObject from '../utils/isPlainObject';
<ide> import mapValues from '../utils/mapValues';
<ide> import pick from '../utils/pick';
<ide>
<add>/* eslint-disable no-console */
<add>
<ide> function getErrorMessage(key, action) {
<ide> var actionType = action && a... | 1 |
Text | Text | fix the example for using a cdn with activestorage | 35e21fcff9d756090d5ab16b1c5ebaa204196022 | <ide><path>guides/source/active_storage_overview.md
<ide> You should also make sure that the generated URLs use the CDN host instead of yo
<ide> ```ruby
<ide> # config/routes.rb
<ide> direct :cdn_image do |model, options|
<add> expires_in = options.delete(:expires_in) { ActiveStorage.urls_expire_in }
<add>
<ide> if ... | 1 |
Text | Text | add periods to the bullet points in guides | 6dcae8ae9c21abd95cc119dd5625b4fb44fd4350 | <ide><path>guides/source/action_controller_overview.md
<ide> Action Controller Overview
<ide>
<ide> In this guide you will learn how controllers work and how they fit into the request cycle in your application. After reading this guide, you will be able to:
<ide>
<del>* Follow the flow of a request through a controll... | 28 |
Ruby | Ruby | ensure numericality validations work with mutation | 704c658531ae202715cba29d6b2ba64651f220fd | <ide><path>activemodel/lib/active_model/validations/numericality.rb
<ide> def validate_each(record, attr_name, value)
<ide> raw_value = record.send(before_type_cast) if record.respond_to?(before_type_cast)
<ide> raw_value ||= value
<ide>
<add> if record_attribute_changed_in_place?(record, attr_n... | 3 |
Javascript | Javascript | add test for spawnsync() env option | 8e272dffa24df43b4139768d9c389eb7d239d8d7 | <ide><path>test/simple/test-child-process-spawnsync-env.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Softwar... | 1 |
Javascript | Javascript | use 0 instead of null in property config | 37fc21f1e899622633d6f5e3cb069f1541631874 | <ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> /**
<ide> * Standard Properties
<ide> */
<del> accept: null,
<del> acceptCharset: null,
<del> accessKey: null,
<del> action: null,
<add> accept: 0,
<add> acceptCharset: 0,
<add> acce... | 2 |
Text | Text | convert table in test doc to markdown table | 85939bd251bc12e7e376fdafde1ce644f8a8013c | <ide><path>test/README.md
<ide> On how to run tests in this directory, see
<ide>
<ide> ## Test Directories
<ide>
<del><table>
<del> <thead>
<del> <tr>
<del> <th>Directory</th>
<del> <th>Runs on CI</th>
<del> <th>Purpose</th>
<del> </tr>
<del> </thead>
<del> <tbody>
<del> <tr>
<del> <td... | 1 |
PHP | PHP | resolve exception namespace | e40d9bc9638d0951c1b82c98ceab800bd5fbabf0 | <ide><path>src/Core/Configure.php
<ide> use Cake\Cache\Cache;
<ide> use Cake\Configure\ConfigEngineInterface;
<ide> use Cake\Configure\Engine\PhpConfig;
<del>use Cake\Error;
<add>use Cake\Error\Exception;
<ide> use Cake\Utility\Hash;
<ide>
<ide> /**
<ide> public static function load($key, $config = 'default', $merge =... | 7 |
Python | Python | do more documentation formating | f6f798504bcedd091562d0d468ca37290aff9ce5 | <ide><path>numpy/core/fromnumeric.py
<ide> def _wrapit(obj, method, *args, **kwds):
<ide>
<ide>
<ide> def take(a, indices, axis=None, out=None, mode='raise'):
<del> """Return an array with values pulled from the given array at the given
<del> indices.
<add> """Return an array formed from the elements of a at... | 1 |
PHP | PHP | make texthelper truncate more reasonable | d0683c5a72696e38336bf7145922c60a6f1d5e45 | <ide><path>src/Utility/Text.php
<ide> public static function truncate($text, $length = 100, array $options = [])
<ide> }
<ide> }
<ide> $truncate = mb_substr($truncate, 0, $spacepos);
<del>
<add>
<ide> // If truncate still empty, then we don't need to count... | 2 |
Javascript | Javascript | add support for modeltype in the router | 0ecc1d799950eb29b6d672f3c1702bdd8f2e5e53 | <ide><path>packages/ember-states/lib/routable.js
<ide> var get = Ember.get, getPath = Ember.getPath;
<ide> // * .onURLChange(callback) - this happens when the user presses
<ide> // the back or forward button
<ide>
<add>var paramForClass = function(classObject) {
<add> var className = classObject.toString(),
<add> ... | 2 |
PHP | PHP | fix incorrect formation of query string | 26495b36d13ba751e2de320cdc4f41d8464448ea | <ide><path>cake/libs/model/datasources/dbo/dbo_postgres.php
<ide> function alterSchema($compare, $table = null) {
<ide> $default = isset($col['default']) ? $col['default'] : null;
<ide> $nullable = isset($col['null']) ? $col['null'] : null;
<ide> unset($col['default'], $col['null']);
<del> ... | 1 |
Go | Go | remove use of deprecated system.getosversion() | 81f9edc7b0efce763ad89a7b62f0546e5a12aff6 | <ide><path>pkg/parsers/operatingsystem/operatingsystem_windows.go
<ide> package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatin
<ide> import (
<ide> "fmt"
<ide>
<del> "github.com/docker/docker/pkg/system"
<add> "github.com/Microsoft/hcsshim/osversion"
<ide> "golang.org/x/sys/windows/registry... | 1 |
PHP | PHP | use $fillable and $guarded accessor methods | bbfc14b60b50d2b9f327479cbbb0918dd4c6fc94 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function forceFill(array $attributes)
<ide> */
<ide> protected function fillableFromArray(array $attributes)
<ide> {
<del> if (count($this->fillable) > 0 && ! static::$unguarded) {
<del> return array_intersect_key($attribu... | 1 |
Javascript | Javascript | update api.js normalizr url | 2ec2b1a2393404178826b0d4a42cdc016d1b4acf | <ide><path>examples/real-world/middleware/api.js
<ide> function callApi(endpoint, schema) {
<ide> // consumption by reducers, because we can easily build a normalized tree
<ide> // and keep it updated as we fetch more data.
<ide>
<del>// Read more about Normalizr: https://github.com/gaearon/normalizr
<add>// Read more... | 1 |
Go | Go | update code for new test cases | 9d11db0f8c2be614f18eec856f11edbff5da17fe | <ide><path>networkdriver/ipallocator/allocator.go
<ide> var (
<ide> ErrNetworkAlreadyAllocated = errors.New("requested network overlaps with existing network")
<ide> ErrNetworkAlreadyRegisterd = errors.New("requested network is already registered")
<ide> ErrNetworkOverlapsWithNameservers = errors.New("... | 2 |
Javascript | Javascript | prevent rangeerror in safari | 54a14c7c68ec5b23fbd8cbdb7ac3bc39d2903475 | <ide><path>d3.layout.js
<ide> function d3_layout_forceAccumulate(quad) {
<ide> cy = 0;
<ide> quad.count = 0;
<ide> if (!quad.leaf) {
<del> quad.nodes.forEach(function(c) {
<add> var nodes = quad.nodes,
<add> n = nodes.length,
<add> i = -1,
<add> c;
<add> while (++i < n) {
<add> ... | 3 |
Python | Python | fix names + typos and load_file args | 327fa2e76ebd82cc7306c536d01b6b804314012b | <ide><path>airflow/hooks/webhdfs_hook.py
<ide> from airflow.configuration import conf
<ide> import logging
<ide>
<del>from hdfs import InsecureClient, Hdfserror
<add>from hdfs import InsecureClient, HdfsError
<ide> from airflow.utils import AirflowException
<ide>
<ide>
<ide> class WebHDFSHook(BaseHook):
<ide> ""... | 2 |
Java | Java | fix compilation of spel elvis/ternary expressions | d41d28f8cef5355e0cc36e51049577fb113f3b6f | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/Elvis.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ma... | 3 |
Javascript | Javascript | support an element mounting before its owner | 965fb8be6b9e59d6552231039f3d8c1ff20d2793 | <ide><path>packages/react-devtools-shared/src/__tests__/store-test.js
<ide> describe('Store', () => {
<ide> expect(store).toMatchSnapshot('2: add host nodes');
<ide> });
<ide>
<add> // This test is not the same cause as what's reported on GitHub,
<add> // but the resulting behavior (owner mounting after descen... | 2 |
PHP | PHP | remove useless variable | 80093b2ddff081165d3d97a59a88746f0b30f931 | <ide><path>src/Illuminate/Routing/Router.php
<ide> protected function createRoute($methods, $uri, $action)
<ide> }
<ide>
<ide> $route = $this->newRoute(
<del> $methods, $uri = $this->prefix($uri), $action
<add> $methods, $this->prefix($uri), $action
<ide> );
<ide>
<ide> // If we have groups that need to b... | 1 |
Text | Text | add prs welcome badge | 6b307a55fb1508640913d9e03ea8ee6da374b38f | <ide><path>README.md
<del># [React](https://facebook.github.io/react/) [](https://travis-ci.org/facebook/react) [](https://coveralls.io/github/faceb... | 1 |
Javascript | Javascript | add test case | 2656628db5bd4891b490297b549533a7545e161d | <ide><path>test/configCases/asset-modules/assetModuleFilename/index.js
<ide> import png from "../_images/file.png";
<ide> import svg from "../_images/file.svg";
<add>import svg2 from "../_images/file.svg?custom2";
<add>import svg3 from "../_images/file.svg?custom3";
<ide>
<ide> it("should change filenames", () => {
<i... | 2 |
PHP | PHP | add a test for src and href attributes | 3b1a11e2d2d0a3d432db0171205e7d0d2b1553c1 | <ide><path>lib/Cake/Test/Case/View/Helper/TextHelperTest.php
<ide> public function testAutoLinkUrls() {
<ide> $expected = 'Text with a url <a href="http://www.not--work.com">http://www.not--work.com</a> and more';
<ide> $result = $this->Text->autoLinkUrls($text);
<ide> $this->assertEqual($expected, $result);
<add... | 1 |
Ruby | Ruby | simplify the code in schema cache | 2004e4efa9c2ac90421e12de74b16a592a25e1be | <ide><path>activerecord/lib/active_record/connection_adapters/schema_cache.rb
<ide> def initialize(conn)
<ide> @columns_hash = {}
<ide> @primary_keys = {}
<ide> @tables = {}
<del> prepare_default_proc
<ide> end
<ide>
<ide> def primary_keys(table_name)
<del> @prim... | 1 |
Ruby | Ruby | add extra documentation for password_field | 137e5d91db0820e023dcb6b660e13279d650a856 | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> def text_field(object_name, method, options = {})
<ide> # Returns an input tag of the "password" type tailored for accessing a specified attribute (identified by +method+) on an object
<ide> # assigned to the template (identified by +object+... | 1 |
Python | Python | make requested changes | 58b4027ef73866f3e16c91f9ab707b33c9a3fba9 | <ide><path>numpy/core/arrayprint.py
<ide> def _extendLine_pretty(s, line, word, line_width, next_line_prefix, legacy):
<ide> if len(words) == 1 or legacy == '1.13':
<ide> return _extendLine(s, line, word, line_width, next_line_prefix, legacy)
<ide>
<del> line_length = len(line)
<ide> max_word_length... | 1 |
Python | Python | add back celery intersphinx mapping | 1f7836e07e643b3e9e0eca57ae077072358c63c1 | <ide><path>docs/conf.py
<ide> def _get_params(root_schema: dict, prefix: str = "", default_section: str = "")
<ide> pkg_name: (f"{THIRD_PARTY_INDEXES[pkg_name]}/", (f'{INVENTORY_CACHE_DIR}/{pkg_name}/objects.inv',))
<ide> for pkg_name in [
<ide> 'boto3',
<del> # 'celery', # Temporarily remove cel... | 2 |
PHP | PHP | $job phpdoc | 68a9ff343125412dadddb7bf35f88ab42b90f1a9 | <ide><path>src/Illuminate/Queue/InteractsWithQueue.php
<ide> trait InteractsWithQueue
<ide> /**
<ide> * The underlying queue job instance.
<ide> *
<del> * @var \Illuminate\Contracts\Queue\Job
<add> * @var \Illuminate\Contracts\Queue\Job|null
<ide> */
<ide> public $job;
<ide> | 1 |
PHP | PHP | remove support for asset filters | b8814ff39b3b9af796faef38e1f2a18c84df250c | <ide><path>lib/Cake/Routing/Filter/AssetDispatcher.php
<ide> public function beforeDispatch($event) {
<ide> return;
<ide> }
<ide>
<del> if ($result = $this->_filterAsset($event)) {
<del> $event->stopPropagation();
<del> return $result;
<del> }
<del>
<ide> $assetFile = $this->_getAssetFile($url);
<ide> i... | 5 |
Ruby | Ruby | improve readability of guard clause | 682914bf40733303105680b165c8a324b1ba90bd | <ide><path>Library/Homebrew/cask/cask.rb
<ide> def outdated_versions(greedy = false)
<ide> end
<ide>
<ide> def outdated_info(greedy, verbose, json)
<del> return token unless verbose || json
<add> return token if !verbose && !json
<ide>
<ide> installed_versions = outdated_versions(greedy).join(... | 1 |
Text | Text | remove duplicate insert of ssh alias | f15e496be27399170e64fa94c8d1e2feb177c085 | <ide><path>upgrade.md
<ide> - Add new `expire_on_close` option to `session` configuration file.
<ide> - Remove call to `redirectIfTrailingSlash` in `bootstrap/start.php` file.
<ide> - Edit `app/config/app.php`; in `aliases` change `'Controller' => 'Illuminate\Routing\Controllers\Controller',`
<del> to use `Illuminate\... | 1 |
Java | Java | remove yoganode.create() from the abstract class | 97607ff175db4af29276337832acd7a15bc237d9 | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java
<ide> import javax.annotation.Nullable;
<ide>
<ide> public abstract class YogaNode {
<del> public static YogaNode create() {
<del> return new YogaNodeJNIFinalizer();
<del> }
<del>
<del> public static YogaNode create(YogaConfig config) {
<del> ... | 1 |
Javascript | Javascript | track free vars over iifes | fe2681cb3158a7d92d56171bd41d39d0acaa74fa | <ide><path>lib/Parser.js
<ide> Parser.prototype.walkExpression = function walkExpression(expression) {
<ide> this.walkExpressions(expression.arguments);
<ide> break;
<ide> case "CallExpression":
<del> var callee = this.evaluateExpression(expression.callee);
<del> if(callee.isIdentifier()) {
<del> var result =... | 2 |
Javascript | Javascript | emit unhandled warning immediately | 3ce9305a705a0ea521a82afb0e4a2bef079d9548 | <ide><path>lib/internal/process/promises.js
<ide> function emitPromiseRejectionWarnings() {
<ide> }
<ide> }
<ide>
<del> let hadListeners = false;
<add> let maybeScheduledTicks = false;
<ide> let len = pendingUnhandledRejections.length;
<ide> while (len--) {
<ide> const promise = pendingUnhandledRejecti... | 2 |
Javascript | Javascript | remove redundancy in the ie special submit handler | 8a6bbc70d07e78d0ff84f174d0d17c11a743e2c9 | <ide><path>src/event.js
<ide> var rnamespaces = /\.(.*)$/,
<ide> (!m[4] || elem.getAttribute( m[4] ) == m[5]) &&
<ide> (!m[6] || !elem[ m[6] ])
<ide> );
<del> }
<add> };
<ide>
<ide> function useNativeMethod( event ) {
<ide> if ( !event.isDefaultPrevented() && this[ event.type ] ) {
<ide> if ( !jQuery.support... | 1 |
Javascript | Javascript | optimize outgoing requests | 08133f45c73cbae241881979dd41d0d63b4f84a0 | <ide><path>lib/_http_outgoing.js
<ide> exports.OutgoingMessage = OutgoingMessage;
<ide> OutgoingMessage.prototype.setTimeout = function(msecs, callback) {
<ide> if (callback)
<ide> this.on('timeout', callback);
<add>
<ide> if (!this.socket) {
<ide> this.once('socket', function(socket) {
<ide> socket.s... | 1 |
Ruby | Ruby | precompile the image we're referencing, too | 4f31b7767e4a3cf7125235455a652f263c431278 | <ide><path>railties/test/application/assets_test.rb
<ide> class ::PostsController < ActionController::Base; end
<ide> test "asset urls should be protocol-relative if no request is in scope" do
<ide> app_file "app/assets/images/rails.png", "notreallyapng"
<ide> app_file "app/assets/javascripts/image_load... | 1 |
Javascript | Javascript | use smaller n value in some http tests | 8a968e4ee7b298496c0e781deccbd95e3717d386 | <ide><path>benchmark/http/check_invalid_header_char.js
<ide> const bench = common.createBenchmark(main, {
<ide> 'foo\nbar',
<ide> '\x7F'
<ide> ],
<del> n: [5e8],
<add> n: [1e6],
<ide> });
<ide>
<ide> function main(conf) {
<ide><path>benchmark/http/check_is_http_token.js
<ide> const bench = common.createBen... | 2 |
Python | Python | fix seq2seqtrainingarguments docs | 6f1727d83adf8c6fdff659cb40565b306de44ade | <ide><path>src/transformers/training_args_seq2seq.py
<ide> @add_start_docstrings(TrainingArguments.__doc__)
<ide> class Seq2SeqTrainingArguments(TrainingArguments):
<ide> """
<del> sortish_sampler (`bool`, *optional*, defaults to `False`):
<del> Whether to use a *sortish sampler* or not. Only possible if ... | 1 |
Javascript | Javascript | use new lesson-builder | 58bee4c3b27a60c6e91836be76854c6fcc92e14a | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> thumbnailBackground: 'threejsfundamentals-background.jpg',
<ide> text: [
<ide> {
<del> font: 'bold 100px sans-serif',
<add> font: 'bold 100px lesson-font',
<ide> verticalSpacing: 100,
<ide> o... | 1 |
Javascript | Javascript | fix element.toggle logic | e3655ef733f7f69a4b1175cd6843f8bfe4c32f5d | <ide><path>actionpack/lib/action_view/helpers/javascripts/prototype.js
<ide> Object.extend(Element, {
<ide> toggle: function() {
<ide> for (var i = 0; i < arguments.length; i++) {
<ide> var element = $(arguments[i]);
<del> Element[Element.visible(element) ? 'show' : 'hide'](element);
<add> Element... | 2 |
PHP | PHP | allow running initial auth checks earlier | dce5db021450376465eeddf64666e5473e1c6ce6 | <ide><path>src/Controller/Component/AuthComponent.php
<ide> class AuthComponent extends Component
<ide> * - `storage` - Storage class to use for persisting user record. When using
<ide> * stateless authenticator you should set this to 'Memory'. Defaults to 'Session'.
<ide> *
<add> * - 'earlyAuth' -... | 3 |
Text | Text | add table of contents info | 9194fea915a30eabf1e7cd1531903d19baa56734 | <ide><path>docs/docs/refactor/00-table-of-contents.md
<add># Goals of the documentation
<add>- Flow of docs should mimic progression of questions a new user would ask
<add>- High information density -- assume the reader is adept at JS
<add>
<add># Outline
<add>
<ide> Motivation / Why React?
<ide> - Declarative (simple)... | 1 |
Javascript | Javascript | replace many if's with if-else statement | 6e86a70da2f54bd68cc5a8038a5d6940d6a4fce9 | <ide><path>lib/assert.js
<ide> function innerFail(actual, expected, message, operator, stackStartFunction) {
<ide> }
<ide>
<ide> function fail(actual, expected, message, operator, stackStartFunction) {
<del> if (arguments.length === 0) {
<add> const argsLen = arguments.length;
<add>
<add> if (argsLen === 0) {
<ide>... | 1 |
Javascript | Javascript | add a way to disable external links | 98e989116c839f2c3b9d2b16752c8ad6431214c3 | <ide><path>src/display/annotation_layer.js
<ide> class LinkAnnotationElement extends AnnotationElement {
<ide> target: (data.newWindow ?
<ide> LinkTarget.BLANK : linkService.externalLinkTarget),
<ide> rel: linkService.externalLinkRel,
<add> enabled: linkService.externalLinkEnabled,
<ide>... | 6 |
Python | Python | handle pytz.ambiguoustimeerror. closes | 7e3c7928eb599d34ab2ba7b320dc1db81fcbe106 | <ide><path>celery/utils/timeutils.py
<ide>
<ide> try:
<ide> import pytz
<del>except ImportError: # pragma: no cover
<del> pytz = None # noqa
<add> from pytz import AmbiguousTimeError
<add>except ImportError: # pragma: no cover
<add> pytz = None ... | 1 |
Javascript | Javascript | use the right repo | 6ecac3b152b9ff6e6fd69af1efd4c5c5dafaf5be | <ide><path>build/release.js
<ide> var releaseVersion,
<ide>
<ide> scpURL = "jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/",
<ide> cdnURL = "http://code.origin.jquery.com/",
<del> repoURL = "git://github.com/dmethvin/jquery.git",
<del> //repoURL = "git://github.com/jquery/jquery.git",
<add> repoURL = ... | 1 |
Python | Python | fix mathlib test | 3b1e1e3e6f3589d562d70b3cefff51f1666f6427 | <ide><path>numpy/core/setup.py
<ide> def get_dotblas_sources(ext, build_dir):
<ide>
<ide> def testcode_mathlib():
<ide> return """\
<del>/* check whether libm is broken */
<del>#include <math.h>
<del>int main(int argc, char *argv[])
<add>/*
<add> * check whether libm is explicitly needed for access to basic math f... | 1 |
PHP | PHP | return empty string if no items in html list | 9a90d303c7ab1ede66c8c84fbfb90f31e9840547 | <ide><path>laravel/html.php
<ide> private static function listing($type, $list, $attributes = array())
<ide> {
<ide> $html = '';
<ide>
<add> if (count($list) == 0) return $html;
<add>
<ide> foreach ($list as $key => $value)
<ide> {
<ide> // If the value is an array, we will recurse the function so that we c... | 1 |
Python | Python | add a docstring to nan_to_num. closes #406 | 2e832de49f69d26eb7c8d133e45f9b9d99f7a3a6 | <ide><path>numpy/lib/type_check.py
<ide> def _getmaxmin(t):
<ide> return f.max, f.min
<ide>
<ide> def nan_to_num(x):
<del> # mapping:
<del> # NaN -> 0
<del> # Inf -> limits.double_max
<del> # -Inf -> limits.double_min
<add> """
<add> Replaces NaN's with 0 and infinities with large numbers... | 1 |
Python | Python | improve the docstring of the new norm function | 6eb57a767713a7a2b74e1cd3365c34638ec55eac | <ide><path>numpy/linalg/linalg.py
<ide> def norm(x, ord=None, axis=None):
<ide>
<ide> Parameters
<ide> ----------
<del> x : {(M,), (M, N)} array_like
<del> Input array.
<add> x : array_like
<add> Input array. If `axis` is None, `x` must be 1-D or 2-D.
<ide> ord : {non-zero int, inf, -i... | 1 |
Text | Text | fix typo in buildsrc/readme.md | fac1b94623f13a79182a57cf772760cd69cc2414 | <ide><path>buildSrc/README.md
<ide> They are declared in the `build.gradle` file in this folder.
<ide>
<ide> ### Compiler conventions
<ide>
<del>The `org.springframework.build.compile` plubin applies the Java compiler conventions to the build.
<add>The `org.springframework.build.compile` plugin applies the Java compi... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.