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 |
|---|---|---|---|---|---|
Javascript | Javascript | add mailmap support for co-authored-by tags | 713046d9eb12344a6b36846fe8b1a986cbb5fe97 | <ide><path>tools/update-authors.js
<ide> // Passing --dry will redirect output to stdout rather than write to 'AUTHORS'.
<ide> 'use strict';
<ide> const { spawn } = require('child_process');
<add>const path = require('path');
<ide> const fs = require('fs');
<ide> const readline = require('readline');
<ide>
<ide> else
... | 1 |
Javascript | Javascript | convert presentation mode to es6 syntax | ccdc7ba3c8b5c4a89703f907e153b43c590888d7 | <ide><path>web/pdf_presentation_mode.js
<ide>
<ide> import { normalizeWheelEventDelta } from './ui_utils';
<ide>
<del>var DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS = 1500; // in ms
<del>var DELAY_BEFORE_HIDING_CONTROLS = 3000; // in ms
<del>var ACTIVE_SELECTOR = 'pdfPresentationMode';
<del>var CONTROLS_SELECTOR = 'pd... | 1 |
PHP | PHP | add default timeout to notpwnedverifier | 3a0af0a42cc22b030089ecc794e0211da6f64650 | <ide><path>src/Illuminate/Validation/NotPwnedVerifier.php
<ide> class NotPwnedVerifier implements UncompromisedVerifier
<ide> */
<ide> protected $factory;
<ide>
<add> /**
<add> * The number of seconds the request can run before timing out.
<add> *
<add> * @var int
<add> */
<add> public $... | 2 |
Java | Java | add test for combination of fixed date fields | 72895f081026df7e0b34807729d9cdea6c7ff4ec | <ide><path>spring-context/src/test/java/org/springframework/scheduling/support/CronExpressionTests.java
<ide> void monthSequence() {
<ide> assertThat(expression.next(last)).isEqualTo(expected);
<ide> }
<ide>
<add> @Test
<add> public void fixedDays() {
<add> CronExpression expression = CronExpression.parse("0 0 0 2... | 1 |
Text | Text | fix http2 sample code for http2.md | 0eb72684518b74c0b0d7d773cb71986b7418cb9a | <ide><path>doc/api/http2.md
<ide> const {
<ide> HTTP2_HEADER_CONTENT_TYPE
<ide> } = http2.constants;
<ide>
<del>const server = http.createServer();
<add>const server = http2.createServer();
<ide> server.on('stream', (stream, headers, flags) => {
<ide> const method = headers[HTTP2_HEADER_METHOD];
<ide> const path... | 1 |
Ruby | Ruby | remove meaningless use of relation#all | 3d1bc89ec8e6558bac81c4e9fce82b586f742629 | <ide><path>activerecord/lib/active_record/aggregations.rb
<ide> def clear_aggregation_cache #:nodoc:
<ide> # by specifying an instance of the value object in the conditions hash. The following example
<ide> # finds all customers with +balance_amount+ equal to 20 and +balance_currency+ equal to "USD":
<ide> ... | 3 |
Go | Go | remove unnecessary abstraction nlines | 02a021119fb2b3e051b98817831a8c1a8a9fd464 | <ide><path>integration-cli/docker_cli_rmi_test.go
<ide> func TestRmiTag(t *testing.T) {
<ide> dockerCmd(t, "tag", "busybox", "utest:5000/docker:tag3")
<ide> {
<ide> imagesAfter, _, _ := dockerCmd(t, "images", "-a")
<del> if nLines(imagesAfter) != nLines(imagesBefore)+3 {
<add> if strings.Count(imagesAfter, "\n") ... | 2 |
Javascript | Javascript | add timeout option to abort request | 5487bdb3d1c905fb9453644f7e290c75dcee14c1 | <ide><path>src/service/browser.js
<ide> function Browser(window, document, body, XHR, $log, $sniffer) {
<ide> * <li><tt>X-Requested-With</tt>: <tt>XMLHttpRequest</tt></li>
<ide> * </ul>
<ide> *
<add> * @param {number=} timeout Timeout in ms, when the request will be aborted
<ide> * @returns {XMLHttp... | 2 |
Python | Python | add separable conv2d for cntk | 06eaeebecfb73c23bfd531013ca172ee3bf5069c | <ide><path>keras/backend/cntk_backend.py
<ide> def separable_conv1d(x, depthwise_kernel, pointwise_kernel, strides=1,
<ide>
<ide> def separable_conv2d(x, depthwise_kernel, pointwise_kernel, strides=(1, 1),
<ide> padding='valid', data_format=None, dilation_rate=(1, 1)):
<del> raise NotImplemente... | 3 |
Javascript | Javascript | add comments to ff rgb format fix | ddff0f642acbf650b53d1ddffe544900569ab983 | <ide><path>examples/js/SimulationRenderer.js
<ide> function SimulationRenderer( WIDTH, renderer ) {
<ide>
<ide> }
<ide>
<del> var texture = new THREE.DataTexture( a, WIDTH, WIDTH, THREE.RGBAFormat, THREE.FloatType );
<add> var texture = new THREE.DataTexture( a, WIDTH, WIDTH, THREE.RGBAFormat, THREE.FloatType ); ... | 2 |
Javascript | Javascript | move dev-only flags to only exist on composites | e01bf78a79b3562f2f6563b150b9c6affee5f2b9 | <ide><path>src/renderers/shared/reconciler/ReactCompositeComponent.js
<ide> var ReactCompositeComponentMixin = {
<ide>
<ide> // ComponentWillUnmount shall only be called once
<ide> this._calledComponentWillUnmount = false;
<add>
<add> if (__DEV__) {
<add> this._warnedAboutRefsInRender = false;
<add> ... | 2 |
Javascript | Javascript | use correct tooltip events in each chart | a10e245e5ad743686f691d549b2ec3257c7650cb | <ide><path>src/Chart.Doughnut.js
<ide>
<ide> //Set up tooltip events on the chart
<ide> if (this.options.showTooltips) {
<del> helpers.bindEvents(this, this.options.tooltipEvents, this.onHover);
<add> helpers.bindEvents(this, this.options.events, this.onHover);
<id... | 4 |
PHP | PHP | remove components constant | af505df885affc9f4f4a14be4616ae848de1b829 | <ide><path>lib/Cake/bootstrap.php
<ide> */
<ide> define('BEHAVIORS', MODELS.'Behavior'.DS);
<ide>
<del>/**
<del> * Path to the application's components directory.
<del> */
<del> define('COMPONENTS', CONTROLLERS.'Component'.DS);
<del>
<ide> /**
<ide> * Path to the application's libs directory.
<ide> */ | 1 |
Ruby | Ruby | pluralize rerun snippet heading | 7e9775bdb03f2f6648fe58958645fd8e31b5c79b | <ide><path>railties/lib/rails/test_unit/reporter.rb
<ide> class TestUnitReporter < Minitest::StatisticsReporter
<ide> def report
<ide> return if passed?
<ide> io.puts
<del> io.puts "Failed test:"
<add> io.puts "Failed tests:"
<ide> io.puts
<ide> io.puts aggregated_results
<ide> ... | 1 |
Java | Java | introduce base class for responsebodyresulthandler | 1b308cffbf5a6d6b4e71b8b991ae698f822ab5f1 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/ContentNegotiatingResultHandlerSupport.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in... | 2 |
PHP | PHP | apply fixes from styleci | 019277c92d8f5c00fc307ea73ece23d242fa73c9 | <ide><path>src/Illuminate/Validation/Rules/Password.php
<ide> public function setValidator($validator)
<ide> $this->validator = $validator;
<ide>
<ide> return $this;
<del> }
<add> }
<ide>
<ide> /**
<ide> * Set the data under validation. | 1 |
Javascript | Javascript | mock the lookup function in parallel tests | 0fb1e0768945fa5f4d232a77e3303d1e25e89a5f | <ide><path>test/parallel/test-http-client-req-error-dont-double-fire.js
<ide> 'use strict';
<add>
<add>// This tests that the error emitted on the socket does
<add>// not get fired again when the 'error' event handler throws
<add>// an error.
<add>
<ide> const assert = require('assert');
<ide> const http = require('htt... | 3 |
Text | Text | fix description of `docker swarm join --help` | 77dd8474a7b4447d7c5b1d257afe1bb2f6443172 | <ide><path>docs/reference/commandline/swarm_join.md
<ide> Usage: docker swarm join [OPTIONS] HOST:PORT
<ide> Join a swarm as a node and/or manager
<ide>
<ide> Options:
<del> --advertise-addr value Advertised address (format: <ip|interface>[:port])
<del> --help Print usage
<del> --li... | 1 |
Python | Python | fix metrics issue in evaluate | 53a05b6e4c1e7ee2c6d13eda9826f5bc9a321391 | <ide><path>keras/models.py
<ide> def _test_loop(self, f, ins, batch_size=128, verbose=0):
<ide> for batch_out in enumerate(batch_outs):
<ide> outs.append(0.)
<ide> for i, batch_out in enumerate(batch_outs):
<del> outs[i] += batch_out
<add> ... | 1 |
Javascript | Javascript | use inlabelrange when tooltips are in label mode | d3538a1fbde0d0468f123531dd92eae215d75bd3 | <ide><path>src/core/core.controller.js
<ide>
<ide> helpers.each(this.data.datasets, function(dataset, datasetIndex) {
<ide> helpers.each(dataset.metaData, function(element, index) {
<del> if (element.inRange(eventPosition.x, eventPosition.y)) {
<add> if (element.inLabelRange(eventPosition.x, eventPositi... | 1 |
PHP | PHP | fix cs error | d54cc5e6778c24b85e89f1d9a6ef341ee4f79fe5 | <ide><path>src/TestSuite/TestEmailTransport.php
<ide> public function send(Email $email): array
<ide> static::$emails[] = $email;
<ide>
<ide> return [
<del> 'result' => 'Success'
<add> 'result' => 'Success',
<ide> ];
<ide> }
<ide>
<ide><path>tests/TestCase/Shell/Comp... | 2 |
Go | Go | move image_export to a job | 5264914e574c20c8fefcd6e5d858f51f341dd9da | <ide><path>api.go
<ide> func postImagesPush(srv *Server, version float64, w http.ResponseWriter, r *http
<ide> }
<ide>
<ide> func getImagesGet(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<del> name := vars["name"]
<add> if vars == nil {
<add> return fmt.Errorf... | 2 |
Javascript | Javascript | remove position defaults | fc0a056fee9d33b20883bdf449493baf4d7acec6 | <ide><path>src/controllers/controller.bubble.js
<ide> defaults.set('bubble', {
<ide> },
<ide> scales: {
<ide> x: {
<del> type: 'linear',
<del> position: 'bottom'
<add> type: 'linear'
<ide> },
<ide> y: {
<del> type: 'linear',
<del> position: 'left'
<add> type: 'linear'
<ide> }
<ide> },
<ide>
<ide... | 3 |
Javascript | Javascript | apply suggestions from code review | 54de31c005a6aac4220ac6cd1f8e0847e21ac4f9 | <ide><path>src/path-watcher.js
<ide> class NSFWNativeWatcher extends NativeWatcher {
<ide> if (event.file) {
<ide> payload.path = path.join(event.directory, event.file);
<ide> } else {
<del> payload.oldPath = path.join(event.directory, event.oldFile??'');
<del> payl... | 1 |
Python | Python | remove pylint comments | 3613c3defc39c236fb1592c4f7ba1a9cc887343a | <ide><path>keras/__init__.py
<ide> from keras.engine.training import Model
<ide>
<ide> # isort: off
<del># pylint: disable=unused-import
<add>
<ide> from tensorflow.python import tf2
<ide> from tensorflow.python.util.tf_export import keras_export
<ide>
<ide><path>keras/activations.py
<ide> def softmax(x, axis=-1):
<i... | 300 |
Mixed | Ruby | link official taps automatically | e7b369273a9b23f0674491fe33a8d3aaf197c292 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> require "cleanup"
<ide> require "description_cache_store"
<ide> require "cli/parser"
<del>require "completions"
<ide>
<ide> module Homebrew
<ide> extend T::Sig
<ide> def update_report
<ide> puts "Already up-to-date." unless args.quiet?
<ide> end
<ide> ... | 7 |
Javascript | Javascript | add modulegraph argument to comparators | 4dfe88edb02987d2c928983cc6d7f18ca3879985 | <ide><path>lib/Chunk.js
<ide> const { compareModulesById } = require("./util/comparators");
<ide> /** @typedef {import("webpack-sources").Source} Source */
<ide> /** @typedef {import("./ChunkGraph")} ChunkGraph */
<ide> /** @typedef {import("./ChunkGroup")} ChunkGroup */
<add>/** @typedef {import("./Compilation")} Comp... | 17 |
Python | Python | fix typo in signals.py | c33db1a61023a058b8aa8e517e75244d759bd5cb | <ide><path>celery/signals.py
<ide> },
<ide> )
<ide>
<del># - Prorgam: `celery worker`
<add># - Program: `celery worker`
<ide> celeryd_init = Signal(
<ide> name='celeryd_init',
<ide> providing_args={'instance', 'conf', 'options'}, | 1 |
Ruby | Ruby | limit some heuristics to strict mode | 56ccf10efaac5f97bae6b2e5aef9ef87d7529328 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def initialize(formula, options = {})
<ide> @specs = %w[stable devel head].map { |s| formula.send(s) }.compact
<ide> end
<ide>
<del> def self.check_http_content(url, name, user_agents: [:default], check_content: false)
<add> def self.check_http_content(url, na... | 1 |
Ruby | Ruby | ignore dependencies when fetching | a333014c55c1edc2555cd2dfbd8dc07463cc9b76 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def fetch_dependency(dep)
<ide> fi.verbose = verbose?
<ide> fi.quiet = quiet?
<ide> fi.debug = debug?
<add> # When fetching we don't need to recurse the dependency tree as it's already
<add> # be... | 1 |
Javascript | Javascript | update sendgrid email address | 2c351ea6ebd4d25fccea1a4d7ecbab1e9449535a | <ide><path>controllers/contact.js
<ide> exports.postContact = function(req, res) {
<ide> var from = req.body.email;
<ide> var name = req.body.name;
<ide> var body = req.body.message;
<del> var to = 'sahat@me.com';
<add> var to = 'you@email.com';
<ide> var subject = 'API Example | Contact Form';
<ide>
<ide> ... | 1 |
Javascript | Javascript | fix missed case in "observe" type check | f81ef8daacc86c3ecd15aed4a93e760d3fd532a4 | <ide><path>src/createStore.js
<ide> export default function createStore(reducer, preloadedState, enhancer) {
<ide> * emission of values from the observable.
<ide> */
<ide> subscribe(observer) {
<del> if (typeof observer !== 'object') {
<add> if (typeof observer !== 'object' || observer... | 2 |
Go | Go | remove extra conditional | 1d5698936a12ce8fb4578273d9fdf92c36c09128 | <ide><path>libnetwork/store.go
<ide> import (
<ide> )
<ide>
<ide> func (c *controller) validateDatastoreConfig() bool {
<del> if c.cfg == nil || c.cfg.Datastore.Client.Provider == "" || c.cfg.Datastore.Client.Address == "" {
<del> return false
<del> }
<del> return true
<add> return c.cfg != nil && c.cfg.Datastore.Cli... | 1 |
PHP | PHP | deprecate a few methods | 7f1cfa5c62d98a32638a5c389c39f9e8143bd954 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function dropColumn($columns)
<ide> */
<ide> public function renameColumn($from, $to)
<ide> {
<del> return $this->addCommand('renameColumn', compact('from', 'to'));
<add> throw new \BadMethodCallException("Column renaming has been deprecated.");... | 2 |
PHP | PHP | add test for url generation with multiple prefxies | 7a859105bb6ff106e0d440c804a4e5e502653676 | <ide><path>tests/TestCase/Routing/RouterTest.php
<ide> public function testUrlGenerationWithRegexQualifiedParams() {
<ide> * @return void
<ide> */
<ide> public function testUrlGenerationWithPrefix() {
<del> Configure::write('Routing.prefixes', array('admin'));
<ide> Router::reload();
<ide>
<ide> Router::connec... | 1 |
Ruby | Ruby | add empty line after guard clause | 8244a869f63f7d10e8533df7705a7fec5d596315 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def output_formula_analytics(f)
<ide> if full_analytics
<ide> next if args.days.present? && args.days&.to_i != days
<ide> next if args.category.present? && args.category != category
<add>
<ide> analytics_table(category, days, results)
<... | 1 |
Python | Python | fix parser creation in language class | 1b651db9c577fc09fb4ca2be7e5858985de5d207 | <ide><path>spacy/language.py
<ide> def __init__(self, path=True, **overrides):
<ide> self.tagger = self.Defaults.create_tagger(self) \
<ide> if 'tagger' not in overrides \
<ide> else overrides['tagger']
<del> self.parser = self.Defaults.create_tagge... | 1 |
Javascript | Javascript | fix tests on master | c79eda2425ace1667c9b541ec6a4bcd1e8ef2fd5 | <ide><path>packages/ember-application/tests/system/engine_initializers_test.js
<ide> QUnit.test('initializers are per-engine', function() {
<ide> initialize(engine) {}
<ide> });
<ide>
<del> throws(function() {
<add> expectAssertion(function() {
<ide> FirstEngine.initializer({
<ide> name: 'abc',
<ide>... | 4 |
PHP | PHP | allow configuration of token guard keys | ad027d845fe3eec20cecdbe6f00d971a065d30c3 | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> public function createTokenDriver($name, $config)
<ide> // user in the database or another persistence layer where users are.
<ide> $guard = new TokenGuard(
<ide> $this->createUserProvider($config['provider'] ?? null),
<del> $th... | 1 |
Ruby | Ruby | pass sdk_path in std_cmake_args" | a508f9f94b55089d2e37e4f0b0869bd0e425d40c | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_args
<ide> -DCMAKE_BUILD_TYPE=Release
<ide> -DCMAKE_FIND_FRAMEWORK=LAST
<ide> -DCMAKE_VERBOSE_MAKEFILE=ON
<del> -DCMAKE_OSX_SYSROOT=#{MacOS.sdk_path}
<ide> -Wno-dev
<ide> ]
<ide> end | 1 |
PHP | PHP | remove unneeded parameter | 1f62d23c65c92a7ece0ceec2a99965adceb42d66 | <ide><path>src/Illuminate/Routing/Middleware/ValidateSignature.php
<ide> class ValidateSignature
<ide> */
<ide> public function handle($request, Closure $next)
<ide> {
<del> if ($request->hasValidSignature($request)) {
<add> if ($request->hasValidSignature()) {
<ide> return $next(... | 1 |
Java | Java | make view hierarchy optimizer smarter | e7af72b29a8f675c14c6d4c131bb9f2fd9890f46 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java
<ide> import android.os.Build;
<ide> import android.view.View;
<ide> import android.view.ViewParent;
<del>
<ide> import com.facebook.react.R;
<ide> import com.facebook.react.bridge.ReadableArray;
<ide> import com.facebook.react.uima... | 4 |
Python | Python | replace nielsr by google namespace in tests | a28da4c4901c775be724ca1cec79ace32e6e80ee | <ide><path>tests/test_modeling_canine.py
<ide> def test_model_from_pretrained(self):
<ide> class CanineModelIntegrationTest(unittest.TestCase):
<ide> @slow
<ide> def test_inference_no_head(self):
<del> # TODO replace nielsr by google
<del> model = CanineModel.from_pretrained("nielsr/canine-s")
<ad... | 1 |
Ruby | Ruby | move comparepdf to boneyard | 8a2464bf25592fea926f7bf77611dd4d5c8759f9 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> 'jscoverage' => 'homebrew/boneyard',
<ide> 'jsl' => 'homebrew/binary',
<ide> 'nlopt' => 'homebrew/science',
<add> 'comparepdf' => 'homebrew/boneyard',
<ide> } | 1 |
PHP | PHP | support union types on event discovery | 8c65b3d8edf245ea0dbb13ed203eb23209b2b8fe | <ide><path>src/Illuminate/Foundation/Events/DiscoverEvents.php
<ide> class DiscoverEvents
<ide> */
<ide> public static function within($listenerPath, $basePath)
<ide> {
<del> return collect(static::getListenerEvents(
<add> $listeners = collect(static::getListenerEvents(
<ide> (new... | 4 |
Text | Text | fix broken link in react-18 streaming docs. | 281ef22ebabeb0a77155e68269926fe15207d27a | <ide><path>docs/advanced-features/react-18/streaming.md
<ide> # Streaming SSR (Alpha)
<ide>
<ide> React 18 will include architectural improvements to React server-side rendering (SSR) performance. This means you can use `Suspense` in your React components in streaming SSR mode and React will render them on the server ... | 1 |
PHP | PHP | fix docblock errors | 9b60b7d7e3a4a3d75a527b074274afdbd1837806 | <ide><path>src/Database/Expression/UnaryExpression.php
<ide> class UnaryExpression implements ExpressionInterface {
<ide> *
<ide> * @param string $operator The operator to used for the expression
<ide> * @param mixed $value the value to use as the operand for the expression
<del> * @param int $mode either UnaryExpre... | 2 |
Ruby | Ruby | remove skip on tests that have been fixed | 682d624a85e2c604ba29eb7ac91ab32e8b7864be | <ide><path>actionpack/test/controller/parameters/mutators_test.rb
<ide> class ParametersMutatorsTest < ActiveSupport::TestCase
<ide> end
<ide>
<ide> test "select! retains permitted status" do
<del> jruby_skip "https://github.com/jruby/jruby/issues/3137"
<del>
<ide> @params.permit!
<ide> assert @params.s... | 1 |
Javascript | Javascript | increase readline coverage | b2ab41e5ae6213b17de8031771585030aea046e2 | <ide><path>test/parallel/test-readline.js
<add>'use strict';
<add>const common = require('../common');
<add>const { PassThrough } = require('stream');
<add>const readline = require('readline');
<add>const assert = require('assert');
<add>
<add>{
<add> const input = new PassThrough();
<add> const rl = readline.createI... | 1 |
PHP | PHP | extract duplicate logic out of serverrequest | 7b9c2b5527cd0636431f97b3fda6413a3faaed14 | <ide><path>src/Http/ContentTypeNegotiation.php
<ide> public function prefersChoice(RequestInterface $request, array $types): ?string
<ide> foreach ($parsed as $acceptTypes) {
<ide> $common = array_intersect($acceptTypes, $types);
<ide> if ($common) {
<del> return $common[0... | 2 |
Javascript | Javascript | simplify duration arguments to benchmarks | 4b80f217cd91a5b29089d94398059b85b1ef8a93 | <ide><path>benchmark/fs/readfile.js
<ide> var filename = path.resolve(__dirname, '.removeme-benchmark-garbage');
<ide> var fs = require('fs');
<ide>
<ide> var bench = common.createBenchmark(main, {
<del> dur: [1, 3],
<add> dur: [5],
<ide> len: [1024, 16 * 1024 * 1024],
<ide> concurrent: [1, 10]
<ide> });
<ide><p... | 11 |
PHP | PHP | remove superfluous docblock notes | ca864c883c69459671ca85cdf8837ab3fcc84495 | <ide><path>src/Console/ConsoleInput.php
<ide> <?php
<ide> /**
<del> * ConsoleInput file.
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide><path>src/View/Helper/RssHelper.php
<ide> <?php
<ide> /... | 25 |
PHP | PHP | trim comment in config class | 9c6d4871b2718e7ad5e749ac50feaaa3a16dadd4 | <ide><path>laravel/config.php
<ide> class Config {
<ide> * // Determine if the "session" configuration file exists
<ide> * $exists = Config::has('session');
<ide> *
<del> * // Determine if the "timezone" option exists in the "application" configuration array
<add> * // Determine if the "timezone" option exi... | 1 |
Text | Text | fix typo s/prefered/preferred/ [ci skip] | b96990da114daea41f171c565eb0cc617594d043 | <ide><path>guides/source/api_app.md
<ide> when added (including the session key), so you can't just add a `session_store.r
<ide> may work, but your session options will be ignored - i.e the session key will default to `_session_id`)
<ide>
<ide> Instead of the initializer, you'll have to set the relevant options somewh... | 1 |
Python | Python | make output from users cli command more consistent | f38ebaf438e8176c4de814090fa5b773735bc9c0 | <ide><path>airflow/cli/commands/user_command.py
<ide> def users_create(args):
<ide> return
<ide> user = appbuilder.sm.add_user(args.username, args.firstname, args.lastname, args.email, role, password)
<ide> if user:
<del> print(f'{args.role} user {args.username} created')
<add> print(f'Use... | 2 |
Ruby | Ruby | add collectionproxy#include? documentation | 5111ec446bedbc8d0ff6ef11de1000047e0edff5 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> # pet.group == 'cats'
<ide> # end
<ide> # # => true
<add>
<add> ##
<add> # :method: include?
<add> # Returns true if the given object is present in the collect... | 1 |
Javascript | Javascript | fix the second half of the bug in suspendlisteners | d034d11591eb68be88021004e5f3de5c4cc0f4ba | <ide><path>packages/ember-metal/lib/events.js
<ide> function suspendListeners(obj, eventNames, target, method, callback) {
<ide> }
<ide>
<ide> var suspendedActions = [],
<add> actionsList = [],
<ide> eventName, actions, i, l;
<ide>
<ide> for (i=0, l=eventNames.length; i<l; i++) {
<ide> function suspe... | 1 |
Ruby | Ruby | avoid should in test names | 0435d65000712bbde2734ddf6e24dcc39c8dda59 | <ide><path>actionmailer/test/parameterized_test.rb
<ide> class ParameterizedTest < ActiveSupport::TestCase
<ide> assert_equal("So says david@basecamp.com", @mail.body.encoded)
<ide> end
<ide>
<del> test "should enqueue the email with params" do
<add> test "enqueue the email with params" do
<ide> assert_per... | 1 |
PHP | PHP | fix coding standards | b1aa75bec07094407eb2569ea80d71142ead220b | <ide><path>lib/Cake/Test/Case/View/MediaViewTest.php
<ide> public function testRenderUpperExtension() {
<ide> $this->MediaView->render();
<ide> }
<ide>
<del>
<ide> } | 1 |
Python | Python | allow overriding meta from spacy.blank | 7dfc4bc062e75dcf6dcc6c1f3d01a8ea1b5e014c | <ide><path>spacy/__init__.py
<ide> def load(
<ide>
<ide>
<ide> def blank(
<del> name: str, *, config: Union[Dict[str, Any], Config] = util.SimpleFrozenDict()
<add> name: str,
<add> *,
<add> config: Union[Dict[str, Any], Config] = util.SimpleFrozenDict(),
<add> meta: Dict[str, Any] = util.SimpleFrozenDi... | 3 |
Javascript | Javascript | move wkwebview into webview.ios.js | 95801f1eda2d723d9b87760d88fa9f1a1bb33ab1 | <ide><path>Libraries/Components/WKWebView/WKWebView.android.js
<del>/**
<del> * Copyright (c) 2015-present, Facebook, Inc.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @format
<del> * @flow
<del> * @provid... | 3 |
PHP | PHP | add methods for supported and available drivers | 52b3b29aff760e93ef85017fc51e0e6db0419a2b | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide>
<ide> namespace Illuminate\Database;
<ide>
<add>use PDO;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use InvalidArgumentException;
<ide> public function setDefaultConnection($name)
<ide> $this->app['config']['database.d... | 1 |
Ruby | Ruby | fix rubocop warnings | 5cba530eef15ece440be63adb4d625018c97badc | <ide><path>Library/Homebrew/requirements/x11_requirement.rb
<ide> class X11Requirement < Requirement
<ide>
<ide> def initialize(name = "x11", tags = [])
<ide> @name = name
<del> if /(\d\.)+\d/ === tags.first
<add> if /(\d\.)+\d/ =~ tags.first
<ide> @min_version = Version.create(tags.shift)
<ide> ... | 1 |
Javascript | Javascript | fix multiple_line problem in match | 613654e882d9b3eda43680de0811d5f52caed994 | <ide><path>test/simple/test-repl.js
<ide> function error_test() {
<ide> if (read_buffer.indexOf(prompt_unix) !== -1) {
<ide> // if it's an exact match, then don't do the regexp
<ide> if (read_buffer !== client_unix.expect) {
<del> assert.ok(read_buffer.match(client_unix.expect));
<add> var... | 1 |
Go | Go | remove unused containerconfig.endpoint() | 56e690f340e030027ed1b5503bbde06e5a879518 | <ide><path>daemon/cluster/executor/container/container.go
<ide> func (c *containerConfig) taskID() string {
<ide> return c.task.ID
<ide> }
<ide>
<del>func (c *containerConfig) endpoint() *api.Endpoint {
<del> return c.task.Endpoint
<del>}
<del>
<ide> func (c *containerConfig) spec() *api.ContainerSpec {
<ide> return... | 1 |
PHP | PHP | fix error output line highlighting off by one | eceac7dfbeafec507263dcbabac957e86436d73b | <ide><path>src/Error/Debugger.php
<ide> public function outputError($data)
<ide> $file = $files[1];
<ide> }
<ide> if ($file) {
<del> $code = static::excerpt($file['file'], $file['line'] - 1, 1);
<add> $code = static::excerpt($file['file'], $file['line'], 1);
<ide> ... | 2 |
Go | Go | remove package daemonbuilder | 9c332b164f1aefa2407706adf59d50495d6e02cb | <ide><path>api/server/router/build/backend.go
<ide> package build
<ide>
<add>import (
<add> "github.com/docker/docker/builder"
<add> "github.com/docker/engine-api/types"
<add> "io"
<add>)
<add>
<ide> // Backend abstracts an image builder whose only purpose is to build an image referenced by an imageID.
<ide> type Back... | 21 |
Python | Python | allow avoidance of the apache mod_rewrite undo | 99bbaa0090a605cfb80c9f1d7b1f86cb6b9e06f8 | <ide><path>django/core/handlers/base.py
<ide> def get_script_name(environ):
<ide> Note: this isn't used by the mod_python handler, since the equivalent of
<ide> SCRIPT_NAME isn't available there.
<ide> """
<del> # If mod_rewrite had a whack at the URL, Apache set SCRIPT_URL to
<del> # SCRIPT_NAME befo... | 1 |
Python | Python | handle bytestrings in json. closes . | 9bffd354327ffc99a0c50ad140a86ede94f9dfba | <ide><path>rest_framework/utils/encoders.py
<ide> def default(self, obj):
<ide> return six.text_type(obj)
<ide> elif isinstance(obj, QuerySet):
<ide> return tuple(obj)
<add> elif isinstance(obj, six.binary_type):
<add> # Best-effort for binary blobs. See #4187.
<add> ... | 1 |
Python | Python | add timeout when waiting for not_empty | dbc104e60e32f215a06015c2f78b633950986ec2 | <ide><path>celery/utils/timer2.py
<ide> def next(self):
<ide> try:
<ide> delay = self.scheduler.next()
<ide> if delay is None:
<del> print("WAITING FOR ENTRY")
<del> self.not_empty.wait()
<add> self.not_empty.wait(1.0)
<ide> return... | 1 |
Python | Python | add tests for utility kubernetes functions | abd30bf17a74c7b3876653813a67bd842ac9d37f | <ide><path>libcloud/container/drivers/kubernetes.py
<ide> def to_n_cpus(cpu_str: str) -> Union[int, float]:
<ide> return 0
<ide>
<ide>
<del>def sum_resources(self, *resource_dicts):
<add>def sum_resources(*resource_dicts):
<ide> total_cpu = 0
<ide> total_memory = 0
<ide> for rd in resource_dicts:
... | 2 |
Python | Python | fix dec_attn_mask in tftransfoxlmainlayer | d4692ad16162d1f45e57a074f887188ad9779c22 | <ide><path>src/transformers/models/transfo_xl/modeling_tf_transfo_xl.py
<ide> def call(
<ide> mlen = shape_list(inputs["mems"][0])[0] if inputs["mems"] is not None else 0
<ide> klen = mlen + qlen
<ide>
<del> attn_mask = tf.ones([qlen, qlen])
<del> mask_u = tf.linalg.band_part(attn_mask, 0... | 1 |
Ruby | Ruby | add apple silicon | 6a3f18b0ae65806710c8d7d7a3b95bef81b05b11 | <ide><path>Library/Homebrew/extend/os/mac/hardware/cpu.rb
<ide> def type
<ide> case sysctl_int("hw.cputype")
<ide> when 7
<ide> :intel
<add> when MachO::Headers::CPU_TYPE_ARM64
<add> :arm
<ide> else
<ide> :dunno
<ide> end
<ide> end
<ide>
<ide> ... | 1 |
Javascript | Javascript | replace anonymous closure with arrow functions | 0bf743a8a57ef59e5ca0105d1697486aa20d3c05 | <ide><path>test/pummel/test-net-pause.js
<ide> const N = 200;
<ide> let recv = '';
<ide> let chars_recved = 0;
<ide>
<del>const server = net.createServer(function(connection) {
<add>const server = net.createServer((connection) => {
<ide> function write(j) {
<ide> if (j >= N) {
<ide> connection.end();
<ide>... | 1 |
Python | Python | fix minor docstring typos | a6146e10e1cf92506a926fdccea1cab7b0c07096 | <ide><path>numpy/core/defchararray.py
<ide> def split(a, sep=None, maxsplit=None):
<ide> For each element in `a`, return a list of the words in the
<ide> string, using `sep` as the delimiter string.
<ide>
<del> Calls `str.rsplit` element-wise.
<add> Calls `str.split` element-wise.
<ide>
<ide> Parame... | 1 |
Javascript | Javascript | add support for required property in checkbox | 15d5a9e305c828baf3eac36d61acd6f03f8db02f | <ide><path>packages_es6/ember-handlebars/lib/controls/checkbox.js
<ide> var Checkbox = View.extend({
<ide> tagName: 'input',
<ide>
<ide> attributeBindings: ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name',
<del> 'autofocus', 'form'],
<add> 'autofocus', '... | 1 |
Ruby | Ruby | replace snowman with utf8=✓ | c6160898c83107ba63017ad2a8b3878733267136 | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def html_options_for_form(url_for_options, options, *parameters_for_url)
<ide>
<ide> def extra_tags_for_form(html_options)
<ide> snowman_tag = tag(:input, :type => "hidden",
<del> :name => "_e", :value =... | 3 |
Javascript | Javascript | fix variable shadowing in blog-starter example | aed8b3752999ad08935c6e38880091da3b69cc2b | <ide><path>examples/blog-starter/pages/posts/[slug].js
<ide> export async function getStaticPaths() {
<ide> const posts = getAllPosts(['slug'])
<ide>
<ide> return {
<del> paths: posts.map((posts) => {
<add> paths: posts.map((post) => {
<ide> return {
<ide> params: {
<del> slug: posts.s... | 1 |
Go | Go | add tests related to hcsshim recycle bin skipping | 72192f5052667118c2f83282f8f8c3df8cbf514b | <ide><path>integration-cli/docker_api_build_windows_test.go
<add>// +build windows
<add>
<add>package main
<add>
<add>import (
<add> "net/http"
<add>
<add> "github.com/docker/docker/integration-cli/checker"
<add> "github.com/docker/docker/internal/test/fakecontext"
<add> "github.com/docker/docker/internal/test/request"... | 1 |
Go | Go | use correct lstat, fix archive check | a5aed699cfaa4d84b1b134033fb468b3a7a874f0 | <ide><path>builder/remotecontext/lazycontext.go
<ide> func (c *lazySource) Hash(path string) (string, error) {
<ide> return "", errors.WithStack(convertPathError(err, cleanPath))
<ide> }
<ide>
<del> fi, err := os.Lstat(fullPath)
<add> fi, err := c.root.Lstat(fullPath)
<ide> if err != nil {
<ide> // Backwards com... | 6 |
Javascript | Javascript | add manifest to htmldompropertyconfig | 3de80ec4ba932a486c1294c539a5da974fc289db | <ide><path>src/browser/ui/dom/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> lang: null,
<ide> list: null,
<ide> loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
<add> manifest: MUST_USE_ATTRIBUTE,
<ide> max: null,
<ide> maxLength: MUST_USE_ATTRIBUTE,
<ide> media: MUST_USE_ATT... | 1 |
Javascript | Javascript | update documentation for emberarray.any | 2ee24e149401b3907ea96513a88d1b8516f8835e | <ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js
<ide> const ArrayMixin = Mixin.create(Enumerable, {
<ide> },
<ide>
<ide> /**
<del> Returns `true` if the passed function returns true for any item in the
<del> enumeration.
<del>
<del> The callback method you provide should have the followi... | 1 |
Python | Python | timedistributeddense speed up | 089fa1175260e06f18c249c9ab12a1df3a586795 | <ide><path>keras/layers/core.py
<ide> def output_shape(self):
<ide>
<ide> def get_output(self, train=False):
<ide> X = self.get_input(train)
<del>
<add> input_length = self.input_shape[1]
<add> if input_length and K._BACKEND == 'theano':
<add> import theano.tensor as T
<add> ... | 1 |
Ruby | Ruby | return failing exit code on circular dependencies | a5f7fc814e8e6452625fde42f958ee3804cb17e7 | <ide><path>Library/Homebrew/cmd/deps.rb
<ide> def recursive_deps_tree(f, dep_stack:, prefix:, recursive:, args:)
<ide> end
<ide>
<ide> display_s = "#{tree_lines} #{dep_display_name(dep, args: args)}"
<add>
<add> # Detect circular dependencies and consider them a failure if present.
<ide> is_circ... | 1 |
Ruby | Ruby | use mutex_m rather than use a delegate system | 6d71080530f8127b1a029f4314891c26e59446ce | <ide><path>actionpack/lib/action_view/template/resolver.rb
<ide> require "active_support/core_ext/class/attribute_accessors"
<ide> require "action_view/template"
<ide> require "thread"
<add>require "mutex_m"
<ide>
<ide> module ActionView
<ide> # = Action View Resolver
<ide> def to_str
<ide> # Threadsafe template... | 1 |
Javascript | Javascript | use buffer.alloc(0) for zero-size buffers | 0f944ab3cf4435c299471e90515742eb99bac15e | <ide><path>lib/dgram.js
<ide> Socket.prototype.send = function(buffer,
<ide> self.bind({port: 0, exclusive: true}, null);
<ide>
<ide> if (list.length === 0)
<del> list.push(Buffer.allocUnsafe(0));
<add> list.push(Buffer.alloc(0));
<ide>
<ide> // If the socket hasn't been bound yet, push the outbound pac... | 1 |
Ruby | Ruby | add example label to activesupport/configurable | 664afe37dd254199346b837286395325cf046188 | <ide><path>activesupport/lib/active_support/configurable.rb
<ide> def #{name}=(value); config.#{name} = value; end
<ide>
<ide> # Reads and writes attributes from a configuration <tt>OrderedHash</tt>.
<ide> #
<add> # Example:
<add> #
<ide> # require 'active_support/configurable'
<ide> # ... | 1 |
Text | Text | improve guide text for ci runs | 0a78f7d622534344888013f93de5d9fed6305e6b | <ide><path>COLLABORATOR_GUIDE.md
<ide> status indicator.
<ide>
<ide> Do not land any Pull Requests without passing (green or yellow) CI runs. If you
<ide> believe any failed (red or grey) CI sub-tasks are unrelated to the change in the
<del>Pull Request, you may re-run the sub-task to try to see if it passes (just ope... | 1 |
Javascript | Javascript | improve angular.scope.$eval docs | 8d91ec4173a652da9fe984d12a50d6b1b4ef935f | <ide><path>src/Scope.js
<ide> function createScope(parent, providers, instanceCache) {
<ide> * @function
<ide> *
<ide> * @description
<del> * Without the `exp` parameter triggers an eval cycle, for this scope and it's child scopes.
<add> * Without the `exp` parameter triggers an eval cycle for th... | 1 |
PHP | PHP | add test for booting callbacks | aa8f695cb18edb950938591593f0e0e5bfc3d7b1 | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testAfterBootstrappingAddsClosure()
<ide> $app->afterBootstrapping(RegisterFacades::class, $closure);
<ide> $this->assertArrayHasKey(0, $app['events']->getListeners('bootstrapped: Illuminate\Foundation\Bootstrap\RegisterFaca... | 1 |
Python | Python | add ex_list_nodes method | 17715cdd67cab500f00f0071dd974c081048e6bd | <ide><path>libcloud/container/drivers/kubernetes.py
<ide>
<ide> import datetime
<ide> import json
<add>import hashlib
<ide>
<ide> from libcloud.container.base import (
<ide> Container,
<ide> from libcloud.container.providers import Provider
<ide> from libcloud.container.types import ContainerState
<ide>
<del>__a... | 1 |
Text | Text | use hub_module_url in bert readme file | 6a76ce5b0c33e542f9ec8645dfd340b26f561f17 | <ide><path>official/nlp/bert/README.md
<ide> This repository contains TensorFlow 2.x implementation for BERT.
<ide>
<ide> ## Pre-trained Models
<ide>
<del>Our current released checkpoints are exactly the same as TF 1.x official BERT
<del>repository, thus inside `BertConfig`, there is `backward_compatible=True`. We
<d... | 1 |
Javascript | Javascript | add convenience methods for date comparisons | 7f006b836917ed5c021872ac4e1e684bd1a824ce | <ide><path>src/lib/moment/compare.js
<ide> export function isSame (input, units) {
<ide> return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
<ide> }
<ide> }
<add>
<add>export function isSameOrAfter (input, units) {
<add> return this.isSame(input, units) || this.is... | 4 |
Ruby | Ruby | move some actioncable logs to debug level | 963572b2a4bf252d6c860eb1c5586809f8f4936e | <ide><path>actioncable/lib/action_cable/channel/base.rb
<ide> def unsubscribed # :doc:
<ide> # Transmit a hash of data to the subscriber. The hash will automatically be wrapped in a JSON envelope with
<ide> # the proper channel identifier marked as the recipient.
<ide> def transmit(data, via: ni... | 2 |
Javascript | Javascript | upgrade entrypoint to es6 | 083b9a7975f7fef30a19374fef9a4f9a348aa391 | <ide><path>lib/Entrypoint.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function Entrypoint(name) {
<del> this.name = name;
<del> this.chunks = [];
<del>}
<del>module.exports = Entrypoint;
<add>"use strict";
<ide>
<del>Entrypoint.prototype.un... | 1 |
Text | Text | add a changelog for elements having the same key | 7b2101e3528782b2ddf445b21460af7ff1ff5398 | <ide><path>CHANGELOG.md
<ide> * Previously, changing the `ref` to a component would always detach the ref before that component's render is called. Now, we change the `ref` later, when applying the changes to the DOM.
<ide> * It is not safe to re-render into a container that was modified by something other than Rea... | 1 |
PHP | PHP | improve method naming | c175fbea2fcabb2eab05c9cc6aa1b85c19cbbd9a | <ide><path>src/View/View.php
<ide> public function layoutPath($path = null)
<ide> }
<ide>
<ide> /**
<del> * Get the current state of auto layout.
<add> * Returns if CakePHP's conventional mode of applying layout files is enabled.
<add> * Disabled means that layouts will not be automatically applied... | 2 |
Java | Java | fix typo in urlpathhelper | 81eb911c09378058d185c2def8273cbbdc2665b2 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
<ide> public String getPathWithinApplication(HttpServletRequest request) {
<ide> * Match the given "mapping" to the start of the "requestUri" and if there
<ide> * is a match return the extra part. This method is needed because the
<... | 1 |
Javascript | Javascript | use smaller keys for a faster keygen test | 561e30d9ef581e86b36318fe22ebd1e82ab88754 | <ide><path>test/parallel/test-crypto-keygen.js
<ide> function convertDERToPEM(label, der) {
<ide> // with a relatively small key.
<ide> const ret = generateKeyPairSync('rsa', {
<ide> publicExponent: 0x10001,
<del> modulusLength: 1024,
<add> modulusLength: 512,
<ide> publicKeyEncoding: {
<ide> ty... | 1 |
Ruby | Ruby | fix example of setting defaults in fixtures | 69d395cbb244d63feae78d7dad33fa8b9e6ed17c | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc:
<ide> #
<ide> # first:
<ide> # name: Smurf
<del> # *DEFAULTS
<add> # <<: *DEFAULTS
<ide> #
<ide> # second:
<ide> # name: Fraggle
<del> # *DEFAULTS
<add... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.