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 |
|---|---|---|---|---|---|
Python | Python | remove redundant imports | b88a6785b44844b0b4054d9c77aa4a7d7b6bb1ff | <ide><path>numpy/distutils/mingw32ccompiler.py
<ide> def __init__ (self,
<ide> # we need to support 3.2 which doesn't match the standard
<ide> # get_versions methods regex
<ide> if self.gcc_version is None:
<del> import re
<ide> p = subprocess.Popen(['gcc', '-dumpversion']... | 3 |
Mixed | Javascript | fix assert.fail with zero arguments | fc463639fa38434a3360a1e3695d7ded029242c3 | <ide><path>doc/api/assert.md
<ide> If the values are not equal, an `AssertionError` is thrown with a `message`
<ide> property set equal to the value of the `message` parameter. If the `message`
<ide> parameter is undefined, a default error message is assigned.
<ide>
<del>## assert.fail(message)
<add>## assert.fail([me... | 3 |
Javascript | Javascript | remove lookup table from timescale | 1c2a03225ed761e75709a9184c184a697e2ce3cf | <ide><path>src/scales/scale.time.js
<ide> import adapters from '../core/core.adapters';
<ide> import {isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core';
<ide> import {toRadians} from '../helpers/helpers.math';
<ide> import Scale from '../core/core.scale';
<del>import {_arrayUnique, _filte... | 2 |
Javascript | Javascript | avoid innertext for better newline behavior | b98f1adf1acc18837af498c86a617858548abe28 | <ide><path>src/browser/ReactDOMIDOperations.js
<ide> var DOMPropertyOperations = require('DOMPropertyOperations');
<ide> var ReactMount = require('ReactMount');
<ide> var ReactPerf = require('ReactPerf');
<ide>
<del>var getTextContentAccessor = require('getTextContentAccessor');
<ide> var invariant = require('invarian... | 2 |
Javascript | Javascript | use const instead of var in vue instance | 4ee51720a355351f13b678663643cb35c958b576 | <ide><path>resources/assets/js/app.js
<ide> require('./bootstrap');
<ide>
<ide> Vue.component('example', require('./components/Example.vue'));
<ide>
<del>var app = new Vue({
<add>const app = new Vue({
<ide> el: 'body'
<ide> }); | 1 |
Javascript | Javascript | add no-op comment to make it more clear | 0f57f0b5f195548a1ce2d40215ffb95fe9025e55 | <ide><path>lib/dependencies/HarmonyCompatibilityDependency.js
<ide> HarmonyCompatibilityDependency.Template = class HarmonyExportDependencyTemplate
<ide> * @param {DependencyTemplates} dependencyTemplates the dependency templates
<ide> * @returns {void}
<ide> */
<del> apply(dependency, source, runtimeTemplate, de... | 1 |
PHP | PHP | fix remaining phpcs errors | a0fec85f6445a915db0859933da7ac652abe764b | <ide><path>src/Routing/RouteBuilder.php
<ide> public function plugin($name, $options = [], $callback = null) {
<ide> * @param callable $callback The callback to invoke that builds the plugin routes
<ide> * Only required when $params is defined.
<ide> * @return void
<add> * @throws \InvalidArgumentException when th... | 9 |
PHP | PHP | add @link to shell docblocks | bb51b0f4974bba43bf1df1c1ebab399d204e2645 | <ide><path>lib/Cake/Console/Shell.php
<ide> class Shell extends Object {
<ide> * Contains tasks to load and instantiate
<ide> *
<ide> * @var array
<add> * @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::$tasks
<ide> */
<ide> public $tasks = array();
<ide>
<ide> class Shell extends Object {
<id... | 1 |
Python | Python | fix merge conflict | dc92abc1101a6c445dd6dcc910ee3c7427f6fb50 | <ide><path>tests/keras/preprocessing/image_test.py
<ide> def test_image_data_generator(self, tmpdir):
<ide> vertical_flip=True)
<ide> generator.fit(images, augment=True)
<ide>
<add> for x, y in generator.flow(images, np.arange(images.shape[0]),
<add> ... | 1 |
Text | Text | fix minor issues in `updating.md` | 2ce6e8de53adc98dd3ae80fa7c74b38eb352bc3a | <ide><path>UPDATING.md
<ide> in `SubDagOperator`.
<ide>
<ide> #### `airflow.providers.http.operators.http.SimpleHttpOperator`
<ide>
<del>#### `airflow.providers.http.operators.http.SimpleHttpOperator`
<del>
<ide> The `do_xcom_push` flag (a switch to push the result of an operator to xcom or not) was appearing in diff... | 1 |
PHP | PHP | implement array sessions on certain callbacks | 7b1b90e5ee8420758c5c880d5d6ec92092315b13 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function shutdown($callback = null)
<ide> }
<ide> }
<ide>
<add> /**
<add> * Register a function for determining when to use array sessions.
<add> *
<add> * @param \Closure $callback
<add> * @return void
<add> */
<add> public function useArrayS... | 3 |
Python | Python | unify return_code interface for task runner | 603c555e1f0f607edb3f171ca5d206f60056c656 | <ide><path>airflow/task/task_runner/base_task_runner.py
<ide> def start(self):
<ide> """Start running the task instance in a subprocess."""
<ide> raise NotImplementedError()
<ide>
<del> def return_code(self) -> Optional[int]:
<add> def return_code(self, timeout: int = 0) -> Optional[int]:
<ide> ... | 2 |
Text | Text | fix doc syntax | 0997cf71ccd711afe956d0d40e1a7053d698fff2 | <ide><path>docs/02-Scales.md
<ide> var chartInstance = new Chart(ctx, {
<ide> type: 'line',
<ide> data: data,
<ide> options: {
<del> xAxes: [{
<del> type: 'logarithmic',
<del> position: 'bottom',
<del> ticks: {
<del> min: 1,
<del> max: 10... | 1 |
Go | Go | add testruncapaddsystime test case | a5e2fa2b2e30cf515d22dee532ae33d5ab695008 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestAppArmorTraceSelf(c *check.C) {
<ide> c.Fatal("ptrace of self failed.")
<ide> }
<ide> }
<add>
<add>func (s *DockerSuite) TestRunCapAddSYSTIME(c *check.C) {
<add> dockerCmd(c, "run", "--cap-drop=ALL", "--cap-add=SYS_TIME", "busybox", "s... | 1 |
Ruby | Ruby | convert update report to use composition | 7cd31377a4969b96ed8da9d87f5a70f5a16aed61 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def update
<ide> ensure
<ide> link_tap_formula(tapped_formulae)
<ide> end
<del> report.merge!(master_updater.report)
<add> report.update(master_updater.report)
<ide>
<ide> # rename Taps directories
<ide> # this procedure will be removed in the... | 2 |
Text | Text | add needs triage label to new issues | 73304ab47575df43b6cba9479179eaa67f667cb5 | <ide><path>.github/ISSUE_TEMPLATE/bug_report.md
<ide> name: "🐛 Bug Report"
<ide> about: Report a reproducible bug or regression in React Native.
<ide> title: ''
<del>labels: 'Bug'
<add>labels: 'Needs: Triage :mag:'
<ide>
<ide> ---
<ide>
<del><!--
<del> Please provide a clear and concise description of what the bug ... | 2 |
PHP | PHP | update doc block and fix phpcs error | 8d605f4d4aa563021f9fd95409c90144eca9f085 | <ide><path>src/ORM/Table.php
<ide> public function validateUnique($value, array $options, array $context = []) {
<ide> * the rules checker.
<ide> *
<ide> * @param \Cake\Datasource\EntityInterface $entity The entity to check for validity.
<add> * @param string $operation The operation being run. Either 'create', 'upd... | 1 |
Javascript | Javascript | add bigint test for isdeepstrictequal | 935b1af9907cd166a1a8b40fb83fdef411110e91 | <ide><path>test/parallel/test-util-isDeepStrictEqual.js
<ide> assert.strictEqual(
<ide> notUtilIsDeepStrict(boxedString, Object('test'));
<ide> boxedSymbol.slow = true;
<ide> notUtilIsDeepStrict(boxedSymbol, {});
<add> utilIsDeepStrict(Object(BigInt(1)), Object(BigInt(1)));
<add> notUtilIsDeepStrict(Object(BigI... | 1 |
Text | Text | fix small typo in validation docs | 5a4d622bb71482631d2b142163d6b9601162b289 | <ide><path>laravel/documentation/validation.md
<ide> <a name="the-basics"></a>
<ide> ## The Basics
<ide>
<del>Almost every interactive web application needs to validate data. For instance, a registration form probably requires the password to be confirmed. Maybe the e-mail address must be unique. Validating data can b... | 1 |
Javascript | Javascript | remove unused lines | 58bb7cea41a024f6c0fede4a32de579d7fb85727 | <ide><path>src/__tests__/storeStress-test.js
<ide> describe('StoreStress', () => {
<ide> const a = <A key="a" />;
<ide> const b = <B key="b" />;
<ide> const c = <C key="c" />;
<del> // const x = <X key="x" />;
<del> // const y = <Y key="y" />;
<ide> const z = <Z key="z" />;
<ide>
<ide> // pre... | 1 |
Javascript | Javascript | improve tests, implementation of weeksinweekyear | 264445c181983cbb5b14cfdc7a25c468080989ed | <ide><path>src/lib/units/week-year.js
<ide> export function getISOWeeksInYear() {
<ide> return weeksInYear(this.isoWeekday(THURSDAY).year(), 1, 4);
<ide> }
<ide>
<del>export function getWeeksInYear () {
<del> return getWeeksInGivenYear.call(this, this.year());
<del>}
<del>
<del>export function getWeeksInWeekYea... | 2 |
Text | Text | add missing comma | 8e7162ca91a704b637852e3a813519a7fcfdbf46 | <ide><path>docs/02-Line-Chart.md
<ide> var data = {
<ide> pointHoverBorderWidth: 2,
<ide>
<ide> // Tension - bezier curve tension of the line. Set to 0 to draw straight Wlines connecting points
<del> tension: 0.1
<add> tension: 0.1,
<ide>
<ide> // The actual data
<ide> data: [65, 59, 80, 81, 56, 55, 4... | 1 |
Javascript | Javascript | fix calendar bug related to dst and zones | bd280ada8465fe27858da70627d15d7130406e48 | <ide><path>moment.js
<ide> },
<ide>
<ide> calendar : function () {
<del> var diff = this.diff(moment().zone(this.zone()).startOf('day'), 'days', true),
<add> // We want to compare the start of today, vs this.
<add> // Getting start-of-today depends on whether we're zone... | 1 |
Ruby | Ruby | escape issue search string | 0d4260187237c1f8e24f9c223076e84ca4ee442d | <ide><path>Library/Homebrew/utils.rb
<ide> def open url, headers={}, &block
<ide> end
<ide>
<ide> def each_issue_matching(query, &block)
<del> uri = ISSUES_URI + query
<add> uri = ISSUES_URI + uri_escape(query)
<ide> open(uri) { |f| Utils::JSON.load(f.read)['issues'].each(&block) }
<ide> end
<ide>
<ad... | 1 |
Python | Python | update databricks api from 2.0 to 2.1 | 8ae878953b183b2689481f5e5806bc2ccca4c509 | <ide><path>airflow/providers/databricks/hooks/databricks.py
<ide> from airflow.exceptions import AirflowException
<ide> from airflow.hooks.base import BaseHook
<ide>
<add>RESTART_CLUSTER_ENDPOINT = ("POST", "api/2.1/clusters/restart")
<add>START_CLUSTER_ENDPOINT = ("POST", "api/2.1/clusters/start")
<add>TERMINATE_CLUS... | 2 |
Python | Python | require numscons 0.11 or above | d00fe700a1a0c9a0948a268a0a2145d54b673c0b | <ide><path>numpy/distutils/command/scons.py
<ide> def select_packages(sconspkg, pkglist):
<ide> raise ValueError(msg)
<ide> return common
<ide>
<del>def check_numscons(minver=(0, 10, 2)):
<add>def check_numscons(minver):
<ide> """Check that we can use numscons.
<ide>
<ide> minver is a 3 integers t... | 1 |
Python | Python | remove unwanted blank line | 362d1343124d0c45d934078d1a8ec118a2ae9ebe | <ide><path>numpy/core/_add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> The pickle protocol used to serialize the array.
<ide> The default is 2 (in order to maintain python 2 support).
<ide>
<del>
<ide> """))
<ide>
<ide> | 1 |
Python | Python | fix error message not formatted in einsum | 3bbd303e7e15577c5c4dd05b7e858d15bc04bc59 | <ide><path>numpy/core/einsumfunc.py
<ide> def einsum_path(*operands, **kwargs):
<ide> sh = operands[tnum].shape
<ide> if len(sh) != len(term):
<ide> raise ValueError("Einstein sum subscript %s does not contain the "
<del> "correct number of indices for operand %d.... | 1 |
Go | Go | manage image inspect data in backend | 8fb71ce20894c0c7fbd9ee6058bf2c0e82d6a77c | <ide><path>api/server/router/image/image_routes.go
<ide> import (
<ide> "github.com/docker/docker/api/types/versions"
<ide> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/image"
<del> "github.com/docker/docker/layer"
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> "github.com/docker/docker/p... | 4 |
Javascript | Javascript | drop reference to timer callback on cleartimeout | 5a4c40beea345d91a9b7520d7374336db928abe2 | <ide><path>src/node.js
<ide> global.setInterval = function (callback, repeat) {
<ide> global.clearTimeout = function (timer) {
<ide> if (!Timer) Timer = process.binding("timer").Timer;
<ide> if (timer instanceof Timer) {
<add> timer.callback = null;
<ide> timer.stop();
<ide> }
<ide> }; | 1 |
Ruby | Ruby | add check for indefinite article | f78a63984bbe9eb9fbf2c6929cb527f8211951a3 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_desc
<ide> if desc =~ /([Cc]ommand ?line)/
<ide> problem "Description should use \"command-line\" instead of \"#{$1}\""
<ide> end
<add>
<add> if desc =~ %r[^([Aa]n?)\s]
<add> problem "Please remove the indefinite article \"#{$1}\" from the b... | 1 |
Go | Go | add chownopts support to tarwithoptions | 8a34c67a7eca7b8193f1c02fb6641abd719dce01 | <ide><path>pkg/archive/archive.go
<ide> type tarAppender struct {
<ide> // for hardlink mapping
<ide> SeenFiles map[uint64]string
<ide> IDMappings *idtools.IDMappings
<add> ChownOpts *idtools.IDPair
<ide>
<ide> // For packing and unpacking whiteout files in the
<ide> // non standard format. The whiteout files d... | 3 |
Javascript | Javascript | fix lint and bug | 08c535d6786c59201aedcc6d723ec18618893dd8 | <ide><path>lib/webpack.js
<ide> webpack.WebpackOptionsValidationError = WebpackOptionsValidationError;
<ide>
<ide> function exportPlugins(obj, mappings) {
<ide> Object.keys(mappings).forEach(name => {
<del> Object.defineProperty(exports, name, {
<add> Object.defineProperty(obj, name, {
<ide> configurable: false,... | 1 |
Javascript | Javascript | replace function(...) with arrow funcs | 1a99a4848c4bc5b493b6401c1d8a4a6332040709 | <ide><path>src/config.js
<ide> export default class Config {
<ide> return fn(...Array.from(args || []))
<ide> }
<ide> const result = callback()
<del> return new Promise(function (resolve, reject) {
<add> return new Promise((resolve, reject) => {
<ide> return result.then(endTransact... | 1 |
Javascript | Javascript | run path.exists paths through _makelong | a661830569f424ac929a075bacaa94d70e732924 | <ide><path>lib/path.js
<ide> exports.extname = function(path) {
<ide>
<ide>
<ide> exports.exists = function(path, callback) {
<del> process.binding('fs').stat(path, function(err, stats) {
<add> process.binding('fs').stat(_makeLong(path), function(err, stats) {
<ide> if (callback) callback(err ? false : true);
<... | 1 |
Ruby | Ruby | remove useless conditionals/local var | a60334fdc5d4f612bd2dd70e38d1e57481cd5910 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def association_join
<ide> ]
<ide> when :has_many, :has_one
<ide> if reflection.options[:through]
<del> through_conditions = through_reflection.options[:conditions] ? "AND #{interpolate... | 1 |
Javascript | Javascript | remove unused code from core controller | 46fc96bf4d97989096aa1024be3d0ee2c9a6a789 | <ide><path>src/core/core.controller.js
<ide> module.exports = function(Chart) {
<ide> this.ensureScalesHaveIDs();
<ide> this.buildOrUpdateControllers();
<ide> this.buildScales();
<del> this.buildSurroundingItems();
<ide> this.updateLayout();
<ide> this.resetElements();
<ide> this.initToolTip();
<ide... | 1 |
Javascript | Javascript | fix typo in comments | ee7b7f693559afa05ea42279f856b4fc2186f527 | <ide><path>lib/internal/process.js
<ide> function setup_cpuUsage() {
<ide>
<ide> // The 3 entries filled in by the original process.hrtime contains
<ide> // the upper/lower 32 bits of the second part of the value,
<del>// and the renamining nanoseconds of the value.
<add>// and the remaining nanoseconds of the value.
... | 1 |
Javascript | Javascript | use mathematical correct confidence interval | 6192b39d2d3646926c12416f1cbd1d7a670cd6a8 | <ide><path>test/BenchmarkTestCases.benchmark.js
<ide> describe("BenchmarkTestCases", function() {
<ide> try {
<ide> fs.mkdirSync(baselinePath);
<ide> } catch(e) {}
<del> git(baselinePath).raw(["--git-dir", path.join(rootPath, ".git"), "reset", "--hard", baselineRevision], err => {
<add> const gi... | 1 |
Text | Text | add variants to release notes | eb0402d512a1fb4e65a4d8d3dab3684e9f136b34 | <ide><path>guides/source/4_1_release_notes.md
<ide> Ruby on Rails 4.1 Release Notes
<ide>
<ide> Highlights in Rails 4.1:
<ide>
<add>* Variants
<ide> * Action View extracted from Action Pack
<ide>
<ide> These release notes cover only the major changes. To know about various bug
<ide> guide.
<ide> Major Features
<ide>... | 1 |
Ruby | Ruby | remove unused methods | 18630c70322e34f0a629c5461768a4ff1693867e | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> module HomebrewArgvExtension
<del> def formula_install_option_names
<del> %w[
<del> --debug
<del> --env=
<del> --ignore-dependencies
<del> --cc=
<del> --build-from-source
<del> --devel
<del> --HEAD
<del> --keep-tmp
<del> -... | 2 |
Javascript | Javascript | convert var to let/const | 3c977dea6b96f6a9bb39f09886848da870748441 | <ide><path>packages/react/index.js
<ide>
<ide> 'use strict';
<ide>
<del>var React = require('./src/React');
<add>const React = require('./src/React');
<ide>
<ide> // TODO: decide on the top-level export form.
<ide> // This is hacky but makes it work with both Rollup and Jest.
<ide><path>packages/react/src/React.js
<... | 21 |
Ruby | Ruby | remove formula reference | a00995fa090f905a5fbba97a8c9270246e788a39 | <ide><path>Library/Homebrew/requirements/osxfuse_requirement.rb
<ide>
<ide> class OsxfuseRequirement < Requirement
<ide> fatal true
<del> default_formula "osxfuse"
<ide> cask "osxfuse"
<ide> download "https://osxfuse.github.io/"
<ide>
<del> satisfy(:build_env => false) { Formula["osxfuse"].installed? || self.... | 1 |
Python | Python | add documentation to several activation functions | 7ff9303041729bb69bd416e2ccb6e7a87ee7cc2a | <ide><path>keras/activations.py
<ide> def softmax(x, axis=-1):
<ide> """Softmax activation function.
<ide>
<ide> # Arguments
<del> x : Tensor.
<add> x: Input tensor.
<ide> axis: Integer, axis along which the softmax normalization is applied.
<ide>
<ide> # Returns
<ide> def softmax(x,... | 1 |
Python | Python | add freeze_backbone flag for image_classification | 20685639e9d6577fa592fc0b2102a1bded53e3bb | <ide><path>official/projects/vit/configs/image_classification.py
<ide> class ImageClassificationTask(cfg.TaskConfig):
<ide> evaluation: Evaluation = Evaluation()
<ide> init_checkpoint: Optional[str] = None
<ide> init_checkpoint_modules: str = 'all' # all or backbone
<add> freeze_backbone: bool = False
<ide>
<i... | 3 |
Go | Go | add integration test for --workdir=/ | baacc7006b35badb2e9ba807451ab158936d7832 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func TestModeHostname(t *testing.T) {
<ide> deleteAllContainers()
<ide>
<ide> logDone("run - hostname and several network modes")
<del>}
<ide>\ No newline at end of file
<add>}
<add>
<add>func TestRootWorkdir(t *testing.T) {
<add> s, _, err := cmd(t, "run", "--... | 2 |
Ruby | Ruby | fix missed establish_connection | 919eb6dca980ee7390d70f991d34d1e1c6b00f25 | <ide><path>activerecord/lib/active_record/connection_handling.rb
<ide> module ConnectionHandling
<ide> def establish_connection(config_or_env = nil)
<ide> config_or_env ||= DEFAULT_ENV.call.to_sym
<ide> db_config, owner_name = resolve_config_for_connection(config_or_env)
<del> connection_handler.es... | 2 |
Javascript | Javascript | improve argument handling, start passive | 4629e96c209bbc6e81a4ff178dcb8afa27feb042 | <ide><path>lib/internal/event_target.js
<ide> class EventTarget {
<ide> [kRemoveListener](size, type, listener, capture) {}
<ide>
<ide> addEventListener(type, listener, options = {}) {
<del> validateListener(listener);
<del> type = String(type);
<add> if (arguments.length < 2)
<add> throw new ERR_MIS... | 4 |
Python | Python | use n.ndarray instead of core.multiarray.ndarray | d71637bb914a9b1140c8173024533cf3504ecad8 | <ide><path>numpy/matrixlib/defmatrix.py
<ide> __all__ = ['matrix', 'bmat', 'mat', 'asmatrix']
<ide>
<ide> import sys
<del>from numpy import core
<ide> import numpy.core.numeric as N
<ide> from numpy.core.numeric import concatenate, isscalar, binary_repr, identity, asanyarray
<ide> from numpy.core.numerictypes import i... | 1 |
PHP | PHP | fix regenerate of original html string | 7994e40688a233d3c6f37f5518b06ca15d3df444 | <ide><path>tests/TestCase/Utility/XmlTest.php
<ide> public function testLoadHtml()
<ide> $this->assertEquals($paragraph, (string)$xml->body->p);
<ide> $this->assertTrue(isset($xml->body->blockquote), 'Blockquote present');
<ide> $this->assertEquals($blockquote, (string)$xml->body->blockquote);
<... | 1 |
Ruby | Ruby | add `to_kegs` test | 08bbb95cfba4ba755fc45e427b33802fab9e9cc1 | <ide><path>Library/Homebrew/test/cli/named_args_spec.rb
<ide> def setup_unredable_cask(name)
<ide> end
<ide> end
<ide>
<add> describe "#to_kegs" do
<add> before do
<add> (HOMEBREW_CELLAR/"foo/1.0").mkpath
<add> (HOMEBREW_CELLAR/"foo/2.0").mkpath
<add> (HOMEBREW_CELLAR/"bar/1.0").mkpath
<add> ... | 1 |
PHP | PHP | fix bug in query class | d65ddb53a842b83810f7e728107b8f1aa5d3f03a | <ide><path>laravel/database/query.php
<ide> public function take($value)
<ide> * @param int $per_page
<ide> * @return Query
<ide> */
<del> public function for_page($page, $per_page = 15)
<add> public function for_page($page, $per_page)
<ide> {
<ide> if ($page < 1 or filter_var($page, FILTER_VALIDATE_INT) =... | 1 |
Javascript | Javascript | fix a bug in ordinal.copy. more tests | d2b152ce7f1d09c5eb8c73ba795695b11496f539 | <ide><path>d3.js
<ide> d3.scale.sqrt = function() {
<ide> return d3.scale.pow().exponent(.5);
<ide> };
<ide> d3.scale.ordinal = function() {
<del> return d3_scale_ordinal({}, 0, d3_noop);
<add> return d3_scale_ordinal({}, 0, {t: "range", x: []});
<ide> };
<ide>
<del>function d3_scale_ordinal(domain, size, rerange)... | 10 |
Ruby | Ruby | improve xcode and clt config reporting | 5ce1caa1f3679244ed120e3f091001c5afabcf74 | <ide><path>Library/Homebrew/cmd/--config.rb
<ide> def clang_build
<ide> @clang_build ||= MacOS.clang_build_version
<ide> end
<ide>
<del> def describe_xcode
<del> @describe_xcode ||= begin
<del> default_prefix = case MacOS.version
<del> when 10.5, 10.6 then '/Developer'
<del> else '/Applica... | 2 |
Text | Text | synchronize argument names for appendfile() | a00f76c360a223464f330b8a19612c8a0991f6c8 | <ide><path>doc/api/fs.md
<ide> try {
<ide> }
<ide> ```
<ide>
<del>## fs.appendFile(file, data[, options], callback)
<add>## fs.appendFile(path, data[, options], callback)
<ide> <!-- YAML
<ide> added: v0.6.7
<ide> changes:
<ide> changes:
<ide> description: The `file` parameter can be a file descriptor now.
<ide> --... | 1 |
Text | Text | rewrite documentation for insecure registries | 5937663a08d9e7ddc9347c4fc33a506d3d596ccd | <ide><path>docs/sources/reference/commandline/cli.md
<ide> expect an integer, and they can only be specified once.
<ide> -g, --graph="/var/lib/docker" Path to use as the root of the Docker runtime
<ide> -H, --host=[] The socket(s) to bind to in daemon mode or connec... | 1 |
Go | Go | remove grpc logging to stderr | b0280c37a08a77871947b1045073601deb601eaa | <ide><path>libcontainerd/remote_linux.go
<ide> package libcontainerd
<ide> import (
<ide> "fmt"
<ide> "io"
<add> "io/ioutil"
<add> "log"
<ide> "net"
<ide> "os"
<ide> "os/exec"
<ide> import (
<ide> "github.com/docker/docker/utils"
<ide> "golang.org/x/net/context"
<ide> "google.golang.org/grpc"
<add> "google.gola... | 1 |
PHP | PHP | add missing parent calls | 6699ced02e46ec4adc418d8a570aabc70aa03c9e | <ide><path>tests/TestCase/Database/TypeTest.php
<ide> public function setUp() {
<ide> * @return void
<ide> */
<ide> public function tearDown() {
<add> parent::tearDown();
<add>
<ide> Type::map($this->_originalMap);
<ide> }
<ide>
<ide><path>tests/TestCase/Model/Behavior/CounterCacheBehaviorTest.php
<ide> public ... | 5 |
Javascript | Javascript | add if statement | 2caeea0f4d9bada8dc59fb6785361253a67b695c | <ide><path>lib/web/JsonpMainTemplate.runtime.js
<ide> module.exports = function() {
<ide> var script = document.createElement("script");
<ide> script.charset = "utf-8";
<ide> script.src = $require$.p + $hotChunkFilename$;
<del> script.crossOrigin = $crossOriginLoading$;
<add> if ($crossOriginLoading$) script.cr... | 1 |
Javascript | Javascript | fix deep imports from external packages | f96f8bb74d776c5fc0349a5745b7ee4ec9a3c615 | <ide><path>packages/ember-glimmer/tests/integration/components/contextual-components-test.js
<ide> import { Component } from '../../utils/helpers';
<ide> import { applyMixins, strip } from '../../utils/abstract-test-case';
<ide> import { moduleFor, RenderingTest } from '../../utils/test-case';
<ide> import { isEmpty } ... | 3 |
Text | Text | update props guide to include a working example | e6143c7cf5a7357d12e0ea8c1dc5a206bee08d43 | <ide><path>guide/english/react/props/index.md
<ide> title: Props
<ide> ---
<ide> ### What are the props?
<del>Props (short for properties) are the data or functions passed into a component. They are immutable (read-only).
<ide>\ No newline at end of file
<add>
<add>Props (short for properties) are the data or functions... | 1 |
Python | Python | fix the skipping | c014d1f0c64a318ef288ab8dca47aa3f29052540 | <ide><path>pytorch_transformers/tests/modeling_tf_auto_test.py
<ide>
<ide> from pytorch_transformers import is_tf_available
<ide>
<del>if is_tf_available():
<add># if is_tf_available():
<add>if False:
<ide> from pytorch_transformers import (AutoConfig, BertConfig,
<ide> TFAut... | 2 |
Java | Java | polish servletserverhttprequest change | 9e16cbda4c128e827ac30b2b9771ea4c3c362986 | <ide><path>spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java
<ide> /*
<del> * Copyright 2002-2015 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> * yo... | 4 |
Go | Go | optimize some wrong usage and spelling | 94cefa21459a0c620e5a9c2da04df6d3a43dae17 | <ide><path>api/types/client.go
<ide> type ImageBuildOptions struct {
<ide> SessionID string
<ide>
<ide> // TODO @jhowardmsft LCOW Support: This will require extending to include
<del> // `Platform string`, but is ommited for now as it's hard-coded temporarily
<add> // `Platform string`, but is omitted for now as i... | 13 |
Javascript | Javascript | add node_path support | b38c05bc95a4443c1947e5cfe42d7af004259ab6 | <ide><path>server/build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer
<ide> }
<ide> }
<ide>
<add> // Support for NODE_PATH
<add> const nodePathList = (process.env.NODE_PATH || '')
<add> .split(process.platform === 'win32' ? ';' : ':')
<add> .filter((p) =... | 1 |
Javascript | Javascript | remove map/set from rn open source | 022470ce62186ffb1a471a3a92c7bfdd579c824a | <ide><path>Libraries/Core/InitializeCore.js
<ide> const start = Date.now();
<ide>
<ide> require('./setUpGlobals');
<del>require('./polyfillES6Collections');
<ide> require('./setUpSystrace');
<ide> require('./setUpErrorHandling');
<ide> require('./polyfillPromise');
<ide><path>Libraries/Core/__tests__/MapAndSetPolyfill... | 8 |
Javascript | Javascript | add stroke and other text rendering modes | 2719e8eadc007cdd5d6eb2b90a9db52a85741e57 | <ide><path>src/canvas.js
<ide> // <canvas> contexts store most of the state we need natively.
<ide> // However, PDF needs a bit more state, which we store here.
<ide>
<add>var TextRenderingMode = {
<add> FILL: 0,
<add> STROKE: 1,
<add> FILL_STROKE: 2,
<add> INVISIBLE: 3,
<add> FILL_ADD_TO_PATH: 4,
<add> STROKE_A... | 1 |
Text | Text | add changes for 1.5.0-rc.2 | 5a3504abdce38b9ebb01b1f5a6e45e675ae4488c | <ide><path>CHANGELOG.md
<add><a name="1.5.0-rc.2"></a>
<add># 1.5.0-rc.2 controller-requisition (2016-01-28)
<add>
<add>## Deprecation Warning
<add>
<add>- The `ngTouch` module's `ngClick` directive has been deprecated and disabled by default. See the breaking
<add>changes section for more information
<add>
<add>## Bug... | 1 |
PHP | PHP | remove conditionals for composer installation | c153f8548ee7c218b0e5db11817cd97f669c3f34 | <ide><path>App/Config/bootstrap.php
<ide> */
<ide> namespace App\Config;
<ide>
<del>if (file_exists(dirname(__DIR__) . 'vendor/autoload.php')) {
<del> require dirname(__DIR__) . 'vendor/autoload.php';
<add>if (!file_exists(dirname(__DIR__) . 'vendor/autoload.php')) {
<add> die('Could not find vendor/autoload.php. You... | 2 |
PHP | PHP | add docs and simplify getshell() | c871aa3cc2fd8ef68630ce7bd3ec933d3ed17333 | <ide><path>src/Console/CommandRunner.php
<ide> public function run(array $argv, ConsoleIo $io = null)
<ide> "Unknown root command{$command}. Was expecting `{$this->root}`."
<ide> );
<ide> }
<del> $io = $io ?: new ConsoleIo();
<del>
<ide> // Remove the root executable s... | 1 |
Text | Text | update broken link | f81ab35f821bab706401e71972a985774faf4717 | <ide><path>docs/redux-toolkit/overview.md
<ide> This is good in some cases, because it gives you flexibility, but that flexibili
<ide> - "I have to add a lot of packages to get Redux to do anything useful"
<ide> - "Redux requires too much boilerplate code"
<ide>
<del>We can't solve every use case, but in the spirit of... | 1 |
Javascript | Javascript | fix typo in 'greetingbox' directive | b35e7447912dbf7791c9243033600a2830895975 | <ide><path>src/ngAnimate/module.js
<ide> * imagine we have a greeting box that shows and hides itself when the data changes
<ide> *
<ide> * ```html
<del> * <greeing-box active="onOrOff">Hi there</greeting-box>
<add> * <greeting-box active="onOrOff">Hi there</greeting-box>
<ide> * ```
<ide> *
<ide> * ```js | 1 |
Text | Text | add teletype highlights from the past week | 12dae6da82a4abdf6bbd4014193c9c321144f69a | <ide><path>docs/focus/2018-04-16.md
<ide> - Completed, merged, and shipped "Create pull request" [atom/github#1376](https://github.com/atom/github/pull/1376), which I used to open this pull request :wink:
<ide> - Updated to Enzyme 3 [atom/github#1386](https://github.com/atom/github/pull/1386) which paves the way fo... | 1 |
PHP | PHP | use mixed return type | 426c1a17a39aced4f8a763b10acbb1b10a5eac28 | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> public function plain($view, array $data, $callback)
<ide> * @param string|array $view
<ide> * @param array $data
<ide> * @param \Closure|string $callback
<del> * @return void
<add> * @return mixed
<ide> */
<ide> public function send($view, array $data, $... | 1 |
Text | Text | fix incorrect alias for systemd docs | 50dba638455954161215bd2b30c924cf61446eee | <ide><path>docs/admin/systemd.md
<ide> <!--[metadata]>
<ide> +++
<del>aliases = ["/engine/reference/logging/systemd/"]
<add>aliases = ["/engine/articles/systemd/"]
<ide> title = "Control and configure Docker with systemd"
<ide> description = "Controlling and configuring Docker using systemd"
<ide> keywords = ["docker, ... | 1 |
Javascript | Javascript | add infrastructurelog hook to mulitcompiler | 98148b61c6b3ec8a12dc7a6a5679ac5ff3805a3a | <ide><path>lib/MultiCompiler.js
<ide> module.exports = class MultiCompiler extends Tapable {
<ide> invalid: new MultiHook(compilers.map(c => c.hooks.invalid)),
<ide> run: new MultiHook(compilers.map(c => c.hooks.run)),
<ide> watchClose: new SyncHook([]),
<del> watchRun: new MultiHook(compilers.map(c => c.hoo... | 1 |
Javascript | Javascript | fix error handling bug in stream.pipe() | 2b91256c6185fbcaaa5fc49a3a541e5ed0ec0e75 | <ide><path>lib/stream.js
<ide> Stream.prototype.pipe = function(dest, options) {
<ide> // don't leave dangling pipes when there are errors.
<ide> function onerror(er) {
<ide> cleanup();
<del> if (this.listeners('error').length === 1) {
<add> if (this.listeners('error').length === 0) {
<ide> throw er... | 2 |
Text | Text | add rails 5.0 release notes | 3fd2e43b20709c6b67f8ff2b255b8a5e28395111 | <ide><path>guides/source/5_0_release_notes.md
<add>**DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON http://guides.rubyonrails.org.**
<add>
<add>Ruby on Rails 5.0 Release Notes
<add>===============================
<add>
<add>Highlights in Rails 5.0:
<add>
<add>* Ruby 2.2.2+ required
<add>* ActionCable
<add>* A... | 1 |
PHP | PHP | clarify deprecation for public access | ec32a90434d9316e5c32b385334ad49fbee22690 | <ide><path>src/Event/Event.php
<ide> class Event implements EventInterface
<ide> /**
<ide> * Property used to retain the result value of the event listeners
<ide> *
<add> * Note: Public access is deprecated, use setResult() and getResult() instead.
<add> *
<ide> * @var mixed
<ide> */
<id... | 1 |
Python | Python | add missing signature from nditer docstring | 7a8843a82661d1dab157f0300c7e89ca709c5fe6 | <ide><path>numpy/core/_add_newdocs.py
<ide>
<ide> add_newdoc('numpy.core', 'nditer',
<ide> """
<add> nditer(op, flags=None, op_flags=None, op_dtypes=None, order='K', casting='safe', op_axes=None, itershape=(), buffersize=0)
<add>
<ide> Efficient multi-dimensional iterator object to iterate over arrays.
<ide... | 1 |
Text | Text | change "pila completa" for "full stack" | 3e09317015853df8e183cd9511f4a0e360a42b96 | <ide><path>guide/spanish/certifications/index.md
<ide> Hay seis certificados freeCodeCamp:
<ide>
<ide> Cada currículo certificado debe tomar aproximadamente 300 horas para completarse e incluye 5 proyectos requeridos, mientras que otros desafíos son opcionales.
<ide>
<del>### El certificado de desarrollo de pila comp... | 1 |
Ruby | Ruby | move mpio and msgpack-rpc to boneyard | 108339ae0fedcf3428d1040f5562eeff38b1d9c5 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "lmutil" => "homebrew/binary",
<ide> "mlkit" => "homebrew/boneyard",
<ide> "mlton" => "homebrew/boneyard",
<add> "mpio" => "homebrew/boneyard",
<add> "msgpack-rpc" => "homebrew/boneyard",
<ide> "mydumper" => "homebrew/boneyard",
<ide> "nlopt" => "homebrew/... | 1 |
Go | Go | fix race when killing the daemon | b845ff355a3342ee3fee99196d22194706763182 | <ide><path>container.go
<ide> func (container *Container) monitor(callback execdriver.StartCallback) error {
<ide> utils.Errorf("Error running container: %s", err)
<ide> }
<ide>
<del> container.State.SetStopped(exitCode)
<del>
<del> // FIXME: there is a race condition here which causes this to fail during the unit ... | 2 |
PHP | PHP | fix bug in old input check | f0639fda45fc2874986fe409d944dde21d42c6f3 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertSessionHasInput($key, $value = null)
<ide>
<ide> if (is_null($value)) {
<ide> PHPUnit::assertTrue(
<del> $this->session()->getOldInput($key),
<add> $this->session()->hasOldInput($... | 1 |
PHP | PHP | add indexsql method to sqliteschema | b2b9f29a6e7a8b25a0f8f6c28d70efc0c974b551 | <ide><path>lib/Cake/Database/Schema/SqliteSchema.php
<ide> public function columnSql(Table $table, $name) {
<ide> */
<ide> public function indexSql(Table $table, $name) {
<ide> $data = $table->index($name);
<add> $out = 'CONSTRAINT ';
<add> $out .= $this->_driver->quoteIdentifier($name);
<add> if ($data['type'] ... | 2 |
Javascript | Javascript | change reactversion from cjs to es module | 4469700bb60ffd62caf112e47bcfa51afdd40e47 | <ide><path>packages/shared/ReactVersion.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> */
<ide>
<del>'use strict';
<del>
<ide> // TODO: this is special because it gets imported during build.
<del>module.exports = '16.13.0';
<add>export default '16.13.0';
<ide><path>scripts/release/publish-c... | 4 |
Javascript | Javascript | remove $ from property names | b69c6cba6e60475e38a186b4f2e735983946bbed | <ide><path>fonts.js
<ide> var FontShape = (function FontShape() {
<ide> var italic = this.italic ? 'italic' : 'normal';
<ide> this.fontFallback = this.serif ? 'serif' : 'sans-serif';
<ide>
<del> this.$name1 = italic + ' ' + bold + ' ';
<del> this.$name2 = 'px "' + name + '", "';
<add> this.namePart1 =... | 2 |
Javascript | Javascript | make diff nicer | d7364020770df94f7da56dfea8f536e6080075cc | <ide><path>src/xhr/xhr.js
<ide> import "../core/identity";
<ide> import "../core/rebind";
<ide> import "../event/dispatch";
<ide>
<del>
<ide> d3.xhr = function(url, mimeType, callback) {
<ide> return d3_xhr(url, mimeType, d3_identity, callback);
<ide> };
<ide> function d3_xhr(url, mimeType, response, callback) {
<id... | 1 |
PHP | PHP | fix coding standards | e8494a576ac2feaba17810b7fb8ed11e887e2a09 | <ide><path>tests/TestCase/Utility/HashTest.php
<ide> public function testMergeVariadic()
<ide> {
<ide> $result = Hash::merge(
<ide> ['hkuc' => ['lion']],
<del> ['hkuc' =>'lion']
<add> ['hkuc' => 'lion']
<ide> );
<ide> $expected = ['hkuc' => 'lion'];
<ide> ... | 1 |
Javascript | Javascript | expose agent in http and https client | 8d37f80f4b582a55d229521cce83670b60300ec0 | <ide><path>lib/http.js
<ide> function getAgent(host, port) {
<ide> exports.getAgent = getAgent;
<ide>
<ide>
<del>exports._requestFromAgent = function(agent, options, cb) {
<del> var req = agent.appendMessage(options);
<add>exports._requestFromAgent = function(options, cb) {
<add> var req = options.agent.appendMessa... | 2 |
Java | Java | add option to decode from a databuffer | a912d8de1ea26cd071342f919eb0c6bad4945062 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java
<ide> * @since 5.0
<ide> * @param <T> the element type
<ide> */
<add>@SuppressWarnings("deprecation")
<ide> public abstract class AbstractDataBufferDecoder<T> extends AbstractDecoder<T> {
<ide>
<ide>
<ide> public Mon... | 10 |
Ruby | Ruby | add a test for adding "via" using `scope` | 4c641c6e362238afbe76b9a1c9d06339f2a805c4 | <ide><path>actionpack/test/dispatch/mapper_test.rb
<ide> def test_mapping_requirements
<ide> assert_equal(/.+?/, requirements[:rest])
<ide> end
<ide>
<add> def test_via_scope
<add> fakeset = FakeSet.new
<add> mapper = Mapper.new fakeset
<add> mapper.scope(via: :put) do
<add> ... | 1 |
PHP | PHP | expand doc blocks | 086dc2c1f6b250c8ded5bce733005aa8bffd7861 | <ide><path>lib/Cake/Network/Http/Adapter/Stream.php
<ide> /**
<ide> * Implements sending Cake\Network\Http\Request
<ide> * via php's stream API.
<add> *
<add> * This approach and implementation is partly inspired by Aura.Http
<ide> */
<ide> class Stream {
<ide>
<add>/**
<add> * Context resource used by the stream A... | 1 |
Go | Go | add missing parenthesis in docs for -author switch | 3fcb0d880aad65690cac304c30f72d0688a801d2 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdPs(args ...string) error {
<ide> func (cli *DockerCli) CmdCommit(args ...string) error {
<ide> cmd := cli.Subcmd("commit", "[OPTIONS] CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes")
<ide> flComment := cmd.String([]string{... | 1 |
Python | Python | add k8s memory size str <-> n_bytes converters | 3c84489652dd2b12e0e1664eff8ce57b2a8a8a49 | <ide><path>libcloud/utils/misc.py
<ide> # limitations under the License.
<ide>
<ide> from typing import List
<add>from collections import OrderedDict
<ide>
<ide> import os
<ide> import binascii
<ide> from libcloud.utils.retry import TRANSIENT_SSL_ERROR # noqa: F401
<ide> from libcloud.utils.retry import TransientSSL... | 1 |
Text | Text | populate some labels | 211e130811145053440c56eec62ac6229d9d90b0 | <ide><path>.github/ISSUE_TEMPLATE/--new-model-addition.md
<ide> name: "\U0001F31F New model addition"
<ide> about: Submit a proposal/request to implement a new Transformer-based model
<ide> title: ''
<del>labels: ''
<add>labels: New model
<ide> assignees: ''
<ide>
<ide> ---
<ide><path>.github/ISSUE_TEMPLATE/migration.... | 3 |
PHP | PHP | add basetype class | 67e7561bea5d225f30e28129640c160d10733f10 | <ide><path>src/Database/Type/BaseType.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, pleas... | 10 |
Ruby | Ruby | match preferred shell by symbol | 36bc11b01a1f4bd8d8364842e7d477c6f285cddb | <ide><path>Library/Homebrew/utils/shell.rb
<ide> def export_value(key, value, shell = preferred)
<ide>
<ide> # return the shell profile file based on user's preferred shell
<ide> def profile
<del> return "#{ENV["ZDOTDIR"]}/.zshrc" if preferred == "zsh" && ENV["ZDOTDIR"].present?
<del>
<add> ret... | 1 |
Python | Python | add tests for isscalar | c0db59fe1afcf67e4c6c3b0c8034974ef008704f | <ide><path>numpy/core/tests/test_numeric.py
<ide> def test_var(self):
<ide> assert_(w[0].category is RuntimeWarning)
<ide>
<ide>
<add>class TestIsscalar(object):
<add> def test_isscalar(self):
<add> assert_(np.isscalar(3.1))
<add> assert_(np.isscalar(np.int16(12345)))
<add> assert_... | 1 |
Ruby | Ruby | handle kwargs only in ruby >= '2.7' | de3d9680ac5a0667d3ba885cd3d2a394639fe538 | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> def attribute_method_matchers_matching(method_name)
<ide> # using the given `extra` args. This falls back on `define_method`
<ide> # and `send` if the given names cannot be compiled.
<ide> def define_proxy_call(include_private, m... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.