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 strict equalities in src/core/murmurhash3.js | a154ca2dd343a548a567de4d3f1f609836faf70b | <ide><path>src/core/murmurhash3.js
<ide> var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
<ide> update: function MurmurHash3_64_update(input) {
<ide> var useUint32ArrayView = alwaysUseUint32ArrayView;
<ide> var i;
<del> if (typeof input == 'string') {
<add> if (typeof input === 's... | 1 |
Javascript | Javascript | remove xxx and output debuglog | ad63d350d4a4fe51547bf36a529631a746f3b1f8 | <ide><path>lib/readline.js
<ide> const kHistorySize = 30;
<ide>
<ide> const util = require('util');
<add>const debug = util.debuglog('readline');
<ide> const internalUtil = require('internal/util');
<ide> const inherits = util.inherits;
<ide> const Buffer = require('buffer').Buffer;
<ide> Interface.prototype._tabCompl... | 1 |
Javascript | Javascript | fix an instance of array#indexof in ie8 | e4a867039190a4b59bee434f8776731ae7dbc484 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> var set = Ember.set, get = Ember.get,
<ide> finishPartial = Mixin.finishPartial,
<ide> reopen = Mixin.prototype.reopen,
<ide> classToString = Mixin.prototype.toString,
<del> MANDATORY_SETTER = Ember.ENV.MANDATORY_SETTER;
<add> MANDATORY... | 1 |
PHP | PHP | add tests for custom integer return values | 5e7433288590abf5cfaad9bdc5a5ae23279facbf | <ide><path>tests/TestCase/Console/ShellDispatcherTest.php
<ide> public function testDispatchShellWithMain()
<ide> $this->assertEquals([], $dispatcher->args);
<ide> }
<ide>
<add> /**
<add> * Verifies correct dispatch of Shell subclasses with integer exit codes.
<add> *
<add> * @return void
<a... | 1 |
Text | Text | add digital first media to companies using | f025efc26aae32128195ab0aea4b39e3e2ba0d7f | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Clover Health](https://www.cloverhealth.com) [[@gwax](https://github.com/gwax) & [@vansivallab](https://github.com/vansivallab)]
<ide> 1. Chartboost [[@cgelman](https://github.com/cgelman) & [@dclubb](https://github.com/dclubb)]
<ide> 1. [Cota... | 1 |
Javascript | Javascript | remove usage of array#fill | 6f62abb58ae46d9c88525635f1790487285666e6 | <ide><path>packages/react-reconciler/src/ReactFiberLane.js
<ide> export function higherLanePriority(
<ide> }
<ide>
<ide> export function createLaneMap<T>(initial: T): LaneMap<T> {
<del> return new Array(TotalLanes).fill(initial);
<add> // Intentionally pushing one by one.
<add> // https://v8.dev/blog/elements-kinds... | 1 |
Javascript | Javascript | remove unused inject() calls | 349742b3f0ffb4ff771bcd8a8b0ae2abfe00c1e9 | <ide><path>test/ng/httpSpec.js
<ide> describe('$http', function() {
<ide> describe('the instance', function() {
<ide> var $httpBackend, $http, $rootScope;
<ide>
<del> beforeEach(inject(['$rootScope', function($rs) {
<del> $rootScope = $rs;
<del>
<del> spyOn($rootScope, '$apply').andCallThrough();
<d... | 1 |
PHP | PHP | convert spaces to tabs | 25ad84b1f3a1dc22c91b8060e73127e2d376e6cd | <ide><path>app/config/database.php
<ide> 'password' => '',
<ide> 'charset' => 'utf8',
<ide> 'prefix' => '',
<del> 'schema' => 'public',
<add> 'schema' => 'public',
<ide> ),
<ide>
<ide> 'sqlsrv' => array(
<ide>
<ide> ),
<ide>
<del>);
<ide>\ No newline at end of file
<add>); | 1 |
PHP | PHP | move defaultsettings to behavior | 3663cc9d688714ba643b10cc341860f47d6edc67 | <ide><path>Cake/Model/Behavior/TimestampBehavior.php
<ide> class TimestampBehavior extends Behavior {
<ide> */
<ide> protected $_ts;
<ide>
<del>/**
<del> * Constructor
<del> *
<del> * Merge settings with the default and store in the settings property
<del> *
<del> * @param Table $table The table this behavior is att... | 2 |
Javascript | Javascript | change var to let/const in internal/querystring.js | c1f0e80989cc653e5177827cf1f40785d32dc204 | <ide><path>lib/internal/querystring.js
<ide> const { ERR_INVALID_URI } = require('internal/errors').codes;
<ide>
<ide> const hexTable = new Array(256);
<del>for (var i = 0; i < 256; ++i)
<add>for (let i = 0; i < 256; ++i)
<ide> hexTable[i] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
<ide>
<ide> co... | 1 |
PHP | PHP | make validatearray parameter optional | ceaf3918c9076b9cee48798da15cc8f38261c2eb | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> public function validateAlphaNum($attribute, $value)
<ide> * @param array $parameters
<ide> * @return bool
<ide> */
<del> public function validateArray($attribute, $value, $parameters)
<add> public function validateArray(... | 1 |
Javascript | Javascript | fix links in docs | e21a868524758f1fd53ea4e6f6344910874dc0eb | <ide><path>src/Scope.js
<ide> function errorHandlerFor(element, error) {
<ide> * - Scopes can be attached (bound) to the HTML DOM tree (the view).
<ide> * - A scope {@link angular.scope.$become becomes} `this` for a controller.
<ide> * - A scope's {@link angular.scope.$eval $eval} is used to update its view.
<del> *... | 4 |
Ruby | Ruby | show either changelog or release noted link | a0e663d833f9a320cd50ab63d6b904b4fdd5f51b | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}."
<ide> updated = true
<ide>
<del> tag = Utils.safe_popen_read("git", "tag", "--points-at", "HEAD")
<del> new_r... | 1 |
Javascript | Javascript | show current line, fix for | 028e652a73319e9c31fd47ef02e10f592b899333 | <ide><path>lib/_debugger.js
<ide> Interface.prototype.list = function(delta) {
<ide> line = lines[i];
<ide> }
<ide>
<del> self.print(leftPad(lineno, breakpoint && '*') + ' ' + line);
<add> var prefixChar = ' ';
<add> if (current) {
<add> prefixChar = '>';
<add> } else if (break... | 1 |
PHP | PHP | remove extra whitespace from | b712fee13730790f266bb46fb06612311c53ed63 | <ide><path>tests/TestCase/Utility/SecurityTest.php
<ide> public function testDecryptInvalidData()
<ide> public function testEngineEquivalence()
<ide> {
<ide> $this->skipIf(!function_exists('mcrypt_encrypt') || version_compare(PHP_VERSION, '7.1', '>='), 'This needs mcrypt extension to be loaded.');
<del>... | 1 |
Ruby | Ruby | remove stray checks for rspec in the testing setup | 4954379283099231965fbc3fe00c39e0ef91c4b0 | <ide><path>activesupport/lib/active_support/testing/declarative.rb
<ide> def self.name
<ide> end
<ide> end
<ide>
<del> if defined?(Spec)
<del> class << self
<del> alias_method :test, :it
<del> end
<del> end
<del>
<... | 2 |
Java | Java | collapse catch blocks in template | a379879adf99800d22da8bc10c3a22f06cb02e20 | <ide><path>template/android/app/src/main/java/com/helloworld/MainApplication.java
<ide> private static void initializeFlipper(
<ide> aClass
<ide> .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
<ide> .invoke(null, context, reactInstanceManager);
<del> } ca... | 1 |
Javascript | Javascript | fix lgtm errors | 68080d3af0bd208273ad8a6d3c75e0097e195c3c | <ide><path>examples/js/loaders/AWDLoader.js
<ide> THREE.AWDLoader = ( function () {
<ide>
<ide> this.id = 0;
<ide> this.data = null;
<add> this.namespace = 0;
<add> this.flags = 0;
<ide>
<ide> }
<ide>
<ide> THREE.AWDLoader = ( function () {
<ide> parseNextBlock: function () {
<ide>
<ide> var assetData,
... | 1 |
Javascript | Javascript | show module name during multidir error | 351fe4b79c50a45a11af2fcd2aa7b6fd3b70058d | <ide><path>src/loader.js
<ide> function setupModuleLoader(window) {
<ide> * @description
<ide> * See {@link auto.$provide#provider $provide.provider()}.
<ide> */
<del> provider: invokeLater('$provide', 'provider'),
<add> provider: invokeLaterAndSetModuleName('$provide'... | 3 |
PHP | PHP | add test for find('list') option as array | 9543b35e21bb5a0ac1af1ca0acc0e3fc3a2bbabd | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> public function testFindListSelectedFields()
<ide> $query = $articles->find('list', ['groupField' => 'author_id']);
<ide> $expected = ['id', 'title', 'author_id'];
<ide> $this->assertSame($expected, $query->clause('select'));
<add>
<add> $... | 1 |
Javascript | Javascript | add test for parentviewdidchange event | 854a460682b1c15ba28f7e3e7519952c70249754 | <ide><path>packages/ember-views/tests/views/container_view_test.js
<ide> test("should set the parentView property on views that are added to the child vi
<ide> });
<ide> });
<ide>
<add>test("should trigger parentViewDidChange when parentView is changed", function() {
<add> container = Ember.ContainerView.create();
... | 1 |
Javascript | Javascript | remove unused forceaddtowindow | 96e6403573e1a1cdaeeb9984d3efd7707f39b27c | <ide><path>spec/atom-environment-spec.js
<ide> describe('AtomEnvironment', () => {
<ide>
<ide> it('does not attempt to restore the project state, instead adding the project paths', async () => {
<ide> const pathToOpen = path.join(__dirname, 'fixtures')
<del> await atom.openLocations([{ pathT... | 3 |
PHP | PHP | implement remaining basic form interface | f8323cb477454a4ecaaa59b8fc4788630dde0f20 | <ide><path>src/Form/Form.php
<ide> public function errors() {
<ide> }
<ide>
<ide> public function execute($data) {
<add> if (!$this->isValid($data)) {
<add> return false;
<add> }
<add> return $this->_execute($data);
<add> }
<add>
<add> protected function _execute($data) {
<ide> }
<ide>
<ide> }
<ide><path>test... | 2 |
Javascript | Javascript | add test for webpack | 77eaad8a171eb4e8511afd2a8f2b932b19c8d701 | <ide><path>test/configCases/async-library/0-create-library/a.js
<add>export const a = await Promise.resolve(42);
<ide><path>test/configCases/async-library/0-create-library/test.config.js
<add>exports.noTests = true;
<ide><path>test/configCases/async-library/0-create-library/webpack.config.js
<add>/** @type {import("../... | 5 |
Python | Python | add dataflow_default_options to templated_fields | 88402038cac10597a67d3dba6af66eb1bc14377d | <ide><path>airflow/providers/google/cloud/operators/dataflow.py
<ide> class DataflowTemplatedJobStartOperator(BaseOperator):
<ide> "gcp_conn_id",
<ide> "impersonation_chain",
<ide> "environment",
<add> "dataflow_default_options",
<ide> )
<ide> ui_color = "#0273d4"
<ide> operat... | 1 |
Java | Java | add tck test for limit() | aff44822dd2d7b74091d2f351b1cb08ff87b30fd | <ide><path>src/test/java/io/reactivex/tck/LimitTckTest.java
<add>/**
<add> * Copyright (c) 2016-present, RxJava Contributors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
<add> * compliance with the License. You may obtain a copy of the License at
<... | 1 |
Javascript | Javascript | use consistent indentation for ternaries | 85dacd63f0938cf135d49d393ceb9e85b4b1fac5 | <ide><path>lib/_stream_readable.js
<ide> function fromListPartial(n, list, hasStrings) {
<ide> ret = list.shift();
<ide> } else {
<ide> // result spans more than one buffer
<del> ret = (hasStrings ?
<del> copyFromBufferString(n, list) :
<del> copyFromBuffer(n, list));
<add> ret = has... | 6 |
Text | Text | write readme for dilbert | 93e82ab4240a6f5b13a02303c1af385e24165938 | <ide><path>examples/distillation/README.md
<ide> # DilBERT
<ide>
<del>You'll have the details soon enough!
<ide>\ No newline at end of file
<add>This section contains examples showcasing how to use DilBERT and the original code to train DilBERT.
<add>
<add>## What is DilBERT?
<add>
<add>DilBERT stands for DistiLlation... | 1 |
Python | Python | fix reuters example | eb7cf7376b6c81f5d1792441f772de2771563c61 | <ide><path>examples/reuters_mlp.py
<ide>
<ide> model.fit(X_train, Y_train, nb_epoch=4, batch_size=batch_size, verbose=1, show_accuracy=True, validation_split=0.1)
<ide> score = model.evaluate(X_test, Y_test, batch_size=batch_size, verbose=1, show_accuracy=True)
<del>print('Test score:', score)
<del>
<del>classes = mod... | 1 |
Python | Python | generalize dense to nd tensors | 18e5b75f67ed640ff207ae52b425e9e3c0c293be | <ide><path>keras/layers/core.py
<ide> def _fix_unknown_dimension(self, input_shape, output_shape):
<ide> '''Find and replace a single missing dimension in an output shape
<ide> given an input shape.
<ide>
<del> A near direct port of the internal Numpy function _fix_unknown_dimension
<del> ... | 2 |
Javascript | Javascript | fix dock dragging | 2498b991c60472e654909b8b572577832a5f0a15 | <ide><path>src/pane-container.js
<ide> module.exports =
<ide> class PaneContainer {
<ide> constructor (params) {
<ide> let applicationDelegate, deserializerManager, notificationManager;
<del> ({config: this.config, applicationDelegate, notificationManager, deserializerManager, viewRegistry: this.viewRegistry} ... | 2 |
Javascript | Javascript | add linkedin passport strategy | c95ee75eeebd98f2950cab001920a6254abe601d | <ide><path>config/passport.js
<ide> var FacebookStrategy = require('passport-facebook').Strategy;
<ide> var TwitterStrategy = require('passport-twitter').Strategy;
<ide> var GitHubStrategy = require('passport-github').Strategy;
<ide> var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
<add>var LinkedI... | 1 |
Text | Text | fix repetitive word in the tutorial | a609e4e1ca98228bef7537d7770d7919ac25a047 | <ide><path>docs/tutorial/1-serialization.md
<ide> Quit out of the shell...
<ide>
<ide> In another terminal window, we can test the server.
<ide>
<del>We can test our API using using [curl][curl] or [httpie][httpie]. Httpie is a user friendly http client that's written in Python. Let's install that.
<add>We can test o... | 1 |
Javascript | Javascript | add a helpful warning | c2a83893f5df634c0037b8a194c78734ba21ef5f | <ide><path>packages/ember-runtime/lib/mixins/action_handler.js
<ide> Ember.ActionHandler = Ember.Mixin.create({
<ide> var hashName;
<ide>
<ide> if (!props._actions) {
<add> Ember.assert(this + " 'actions' should not be a function", typeof(props.actions) !== 'function');
<add>
<ide> if (typeOf(props.... | 2 |
Python | Python | add flag to enable xprof | 154d3ffa6650a308fc110d993501ae95534e8a6a | <ide><path>official/resnet/keras/keras_common.py
<ide> def define_keras_flags():
<ide> help='The number of steps to run for training. If it is larger than '
<ide> '# batches per epoch, then use # batches per epoch. When this flag is '
<ide> 'set, only one epoch is going to run for training.')
<add> f... | 2 |
Javascript | Javascript | address pr feedback | 9bea0556fe15ecc68651e51bad34dd916b20022b | <ide><path>examples/js/controls/OrbitControls.js
<ide> THREE.OrbitControls = function ( object, domElement ) {
<ide> this.keys = { LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40 };
<ide>
<ide> // Mouse buttons
<del> this.mouseButtons = { ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };
<add> thi... | 1 |
Ruby | Ruby | convert nestedcontainer test to spec | 3db8cdf8613694a26051e0ee291f931a7ca00ae3 | <add><path>Library/Homebrew/cask/spec/cask/artifact/nested_container_spec.rb
<del><path>Library/Homebrew/cask/test/cask/artifact/nested_container_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> describe Hbc::Artifact::NestedContainer do
<ide> describe "install" do
<ide> it "extracts the... | 1 |
PHP | PHP | remove @throws docblock tags | 6d06919511fa34ffca24e03cd494db4d63ee2575 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function fromRaw($expression, $bindings = [])
<ide> *
<ide> * @param \Closure|\Illuminate\Database\Query\Builder|string $query
<ide> * @return array
<del> *
<del> * @throws \InvalidArgumentException
<ide> */
<ide> protect... | 1 |
Go | Go | fix empty-lines (revive) | 31441778fa52b8fa8828356679328cc1c9f98c68 | <ide><path>api/types/strslice/strslice_test.go
<ide> func TestStrSliceUnmarshalJSON(t *testing.T) {
<ide> "[]": {},
<ide> `["/bin/sh","-c","echo"]`: {"/bin/sh", "-c", "echo"},
<ide> }
<del> for json, expectedParts := range parts {
<add> for input, expected := range parts {
<ide> strs := StrS... | 1 |
PHP | PHP | set default to null to make static analyers happy | b1d98ecc37df5670a3f8542372feabecf546dbcb | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> class MemcachedEngine extends CacheEngine
<ide> 'host' => null,
<ide> 'username' => null,
<ide> 'password' => null,
<del> 'persistent' => false,
<add> 'persistent' => null,
<ide> 'port' => null,
<ide> 'prefix' =>... | 1 |
Python | Python | fix python for blender 2.58 | 83628d5e151c3424f9dd2268ef910f82dca7fb28 | <ide><path>utils/exporters/blender/2.58/scripts/addons/io_mesh_threejs/__init__.py
<ide>
<ide> import bpy
<ide> from bpy.props import *
<del>from io_utils import ExportHelper, ImportHelper
<add>from bpy_extras.io_utils import ExportHelper, ImportHelper
<ide>
<ide> # ###################################################... | 1 |
PHP | PHP | add withsession helper | 181810cfdacdc50d47a80eb88ae441b38ae16dc8 | <ide><path>src/Illuminate/Foundation/Testing/ApplicationTrait.php
<ide> protected function withoutEvents()
<ide> return $this;
<ide> }
<ide>
<add> /**
<add> * Set the session to the given array.
<add> *
<add> * @param array $data
<add> * @return void
<add> */
<add> public functi... | 1 |
Java | Java | add new constructor to jettyclienthttpconnector | 1cfedb20b89310a4b7cc9d0e4e5e24e79d7921f9 | <ide><path>spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<i... | 1 |
Java | Java | add @donotstrip annotation to getjavamodule | 44678bbf766c2ede54dd8ccd9d4105b72f93f612 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java
<ide> public List<String> getEagerInitModuleNames() {
<ide> return mTurbomoduleManagerDelegate.getEagerInitModuleNames();
<ide> }
<ide>
<add> @DoNotStrip
<ide> @Nullable
<ide> private TurboModule getJavaModule(... | 1 |
Ruby | Ruby | report new_tag even when old_tag blank | a25f827b8fb88a0f61872b95d408f7d58e3fdaf4 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def output_update_report
<ide>
<ide> Settings.write "latesttag", new_tag if new_tag != old_tag
<ide>
<del> if old_tag.blank? || (new_tag == old_tag)
<add> if new_tag == old_tag
<ide> puts "Updated Homebrew from #{shorten_revision(initial_r... | 1 |
Javascript | Javascript | add closure externs for angular.$q.promise.finally | a7aa4cc0a97abaa1c4e8796f2b5ed5e216eff0e4 | <ide><path>closure/angular.js
<ide> angular.$q.Promise;
<ide> */
<ide> angular.$q.Promise.then = function(successCallback, opt_errorCallback) {};
<ide>
<del>/**
<del> * @param {?function(?)} callback
<del> * @return {angular.$q.Promise}
<del> */
<del>angular.$q.Promise.finally = function(callback) {};
<del>
<ide> /**... | 1 |
Javascript | Javascript | replace fixturesdir with fixtures module | 8597a18cdbb339abd20a2342d263c8eee3bc51e8 | <ide><path>test/parallel/test-global.js
<ide>
<ide> /* eslint-disable strict */
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide>
<ide> const assert = require('assert');
<del>const path = require('path');
<ide>
<ide> common.globalCheck = false;
<ide>
<ide> assert.... | 1 |
Text | Text | fix formatting of activerecord postgresql guide | 0d34b550a491dab2ab58168c328907accdee6781 | <ide><path>guides/source/active_record_postgresql.md
<ide> Book.where("array_length(ratings, 1) >= 3")
<ide>
<ide> * [type definition](http://www.postgresql.org/docs/current/static/hstore.html)
<ide>
<del>NOTE: you need to enable the `hstore` extension to use hstore.
<add>NOTE: You need to enable the `hstore` extensi... | 1 |
Python | Python | replace timer by sleep | 5bccb814392d9ecf12b410843b1e7330d0fb72d2 | <ide><path>glances/plugins/glances_docker.py
<ide> def run(self):
<ide> """Function called to grab stats.
<ide> Infinite loop, should be stopped by calling the stop() method"""
<ide>
<del> is_stopped = False
<ide> for i in self._stats_stream:
<ide> self._stats = i
<del> ... | 1 |
Ruby | Ruby | replace nokogiri with rexml | 282c71d275a5bc11f4bb1f284f82a83742629d26 | <ide><path>Library/Homebrew/bundle_version.rb
<ide> def self.from_info_plist_content(plist)
<ide>
<ide> sig { params(package_info_path: Pathname).returns(T.nilable(T.attached_class)) }
<ide> def self.from_package_info(package_info_path)
<del> Homebrew.install_bundler_gems!
<del> require "nokogiri"
<a... | 1 |
PHP | PHP | add failed jobs table | b7d2b48b75afbaa34c82688cb30be2f00a7d8c57 | <ide><path>database/migrations/2019_08_19_175727_create_failed_jobs_table.php
<add><?php
<add>
<add>use Illuminate\Support\Facades\Schema;
<add>use Illuminate\Database\Schema\Blueprint;
<add>use Illuminate\Database\Migrations\Migration;
<add>
<add>class CreateFailedJobsTable extends Migration
<add>{
<add> /**
<add> ... | 1 |
Ruby | Ruby | add start and stop as generic executables | bba2b7616735fe5503923c908cc36c9222b40393 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_non_executables bin
<ide>
<ide> def check_generic_executables bin
<ide> return unless bin.directory?
<del> generic_names = %w[run service]
<add> generic_names = %w[run service start stop]
<ide> generics = bin.children.select { |g| gen... | 1 |
Python | Python | remove unused import | 12c45f06a5e0c2303977ce91abc3614b4b00556f | <ide><path>flask/cli.py
<ide> import click
<ide>
<ide> from . import __version__
<del>from ._compat import iteritems, reraise, PY2
<add>from ._compat import iteritems, reraise
<ide> from .globals import current_app
<ide> from .helpers import get_debug_flag
<ide> from ._compat import getargspec | 1 |
Python | Python | add timer to docker thread | ffb26c849e58a893e9e3a2eea364b58ad9a8ea59 | <ide><path>glances/core/glances_logging.py
<ide> },
<ide> 'short': {
<ide> 'format': '%(levelname)s: %(message)s'
<add> },
<add> 'free': {
<add> 'format': '%(message)s'
<ide> }
<ide> },
<ide> 'handlers': {
<ide> 'console': {
<ide> ... | 4 |
Text | Text | clarify ci requirement in pr template [ci skip] | 2d239ad994ca0d2ee06547590218f6435d68c8d7 | <ide><path>.github/pull_request_template.md
<ide> Before submitting the PR make sure the following are checked:
<ide> * [ ] Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: `[Fix #issue-number]`
<ide> * [ ] Tests are added or updat... | 1 |
Javascript | Javascript | apply sideeffect at didmount on the client side | a0aaa933dec41da0cbb5c0f33e3f6e66df629d5d | <ide><path>lib/side-effect.js
<ide> export default function withSideEffect (reduceComponentsToState, handleStateChan
<ide>
<ide> constructor (props) {
<ide> super(props)
<add> if (!SideEffect.canUseDOM) {
<add> mountedInstances.add(this)
<add> emitChange(this)
<add> }
<add... | 3 |
Javascript | Javascript | apply correct hover styles | fa1b0db453c679320d97513692cf1aac4819da02 | <ide><path>src/core/core.controller.js
<ide> break;
<ide> case 'label':
<ide> for (var i = 0; i < this.lastActive.length; i++) {
<del> this.data.datasets[this.lastActive[0]._datasetIndex].controller.removeHoverStyle(this.lastActive[i], this.lastActive[i]._datasetIndex, this.lastActive[i]._index);... | 1 |
Java | Java | fix chrome debugging | 251a4086a76a62d74a20168955e7540816e906b5 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java
<ide> public String getWebsocketProxyURL() {
<ide> * @return the host to use when connecting to the bundle server from the host itself.
<ide> */
<ide> private static String getHostForJSProxy() {
<del> return "localhost";... | 1 |
PHP | PHP | apply fixes from styleci | 5db5288100817b036d315aa3941039280989a5c8 | <ide><path>tests/Foundation/Http/Middleware/TrimStringsTest.php
<ide>
<ide> namespace Illuminate\Tests\Foundation\Http\Middleware;
<ide>
<del>use Illuminate\Foundation\Http\Middleware\TrimStrings;
<ide> use Illuminate\Http\Request;
<ide> use PHPUnit\Framework\TestCase;
<add>use Illuminate\Foundation\Http\Middleware\T... | 1 |
Javascript | Javascript | add helpful assertion when template is missing | 39875a4869d73ad34c165bbeecce0b4d4d15ab39 | <ide><path>packages/ember-glimmer/lib/renderer.js
<ide> class Renderer {
<ide> };
<ide> let { _env: env } = this;
<ide> let render = () => {
<add> assert(`You cannot render \`${self.value()}\` without a template.`, template);
<add>
<ide> let result = template.asEntryPoint().render(self, env, {
<i... | 1 |
Python | Python | add center_crop to imagefeatureextractomixin | 090e3e68963e64b1da55a8b704a3f1679f5968a8 | <ide><path>src/transformers/image_utils.py
<ide> def resize(self, image, size, resample=PIL.Image.BILINEAR):
<ide> image = self.to_pil_image(image)
<ide>
<ide> return image.resize(size, resample=resample)
<add>
<add> def center_crop(self, image, size):
<add> """
<add> Crops :obj:`i... | 2 |
PHP | PHP | fix deprecation warnings in client/auth | dbd0c07ec69d29bc7c97bb2acf31fcbb0c48e208 | <ide><path>src/Http/Client/Auth/Digest.php
<ide> protected function _generateHeader(Request $request, $credentials)
<ide> {
<ide> $path = $request->getUri()->getPath();
<ide> $a1 = md5($credentials['username'] . ':' . $credentials['realm'] . ':' . $credentials['password']);
<del> $a2 = md5($r... | 2 |
Java | Java | fix exception handling result handler resolution | 95abd18fea067b271bf50252b0a741c5850cab93 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java
<ide> private Mono<HandlerResult> invokeHandler(ServerWebExchange exchange, Object han
<ide> private Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result) {
<ide> return getResultHandler(result).h... | 2 |
Text | Text | update ruby version to 2.3.0p0 | a48f97e0e611496f96882a5383756a11758c7596 | <ide><path>guides/source/getting_started.md
<ide> current version of Ruby installed:
<ide>
<ide> ```bash
<ide> $ ruby -v
<del>ruby 2.2.2p95
<add>ruby 2.3.0p0
<ide> ```
<ide>
<ide> TIP: A number of tools exist to help you quickly install Ruby and Ruby | 1 |
Text | Text | remove reference to annotated todos - fixes #583 | 7ad0873be294d9d365dea74de9d51e91083b9be5 | <ide><path>README.md
<ide> Hopefully you can see how all three of these powerful tools work together: start
<ide>
<ide> For new users, we recommend downloading the [Ember.js Starter Kit](https://github.com/emberjs/starter-kit/downloads), which includes everything you need to get started.
<ide>
<del>We also recommend ... | 1 |
Text | Text | improve portuguese translation of compilers guide | d5046d6e82de535c8e8a6fdec52d1ca5f70b7198 | <ide><path>guide/portuguese/computer-science/compilers/index.md
<ide> title: Compilers
<ide> localeTitle: Compiladores
<ide> ---
<add>
<ide> ## Compiladores
<ide>
<ide> ### Programação
<ide>
<del>Na sua essência, um computador barebones (também conhecido como computador de programa armazenado) nada mais é do que uma ... | 1 |
Python | Python | fix typo in comments | 6b24281229e4ec0754f79735e398730d9d58e8af | <ide><path>src/transformers/modeling_bert.py
<ide> def forward(
<ide> # ourselves in which case we just need to make it broadcastable to all heads.
<ide> extended_attention_mask: torch.Tensor = self.get_extended_attention_mask(attention_mask, input_shape, device)
<ide>
<del> # If a 2D ou 3D atte... | 1 |
Javascript | Javascript | fix undefined curvenode | e0fb997c502adf4d1853d87fdc66ecf5d7e08af4 | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> }
<ide>
<del> console.log( FBXTree );
<add> // console.log( FBXTree );
<ide>
<ide> var textureLoader = new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ).setCrossOrigin( this.crossOrigin );
<ide>
<ide> var curveNodesMap = parseAni... | 1 |
PHP | PHP | adjust coding style | eb9d915f3d3b0e01d784b5f844ceaf0625fa6c47 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function getFresh($columns = array('*'))
<ide> */
<ide> protected function runSelect()
<ide> {
<del> if ($this->useWritePdo) {
<add> if ($this->useWritePdo)
<add> {
<ide> return $this->connection->select($this->toSql(), $this->getBindings(), fa... | 2 |
Javascript | Javascript | remove footer and nav from certs | 293e58cc235db6d313a16e03e18739362f89a250 | <ide><path>client/gatsby-browser.js
<ide> import { Provider } from 'react-redux';
<ide> import { createStore } from './src/redux/createStore';
<ide> import AppMountNotifier from './src/components/AppMountNotifier';
<ide> import GuideNavContextProvider from './src/contexts/GuideNavigationContext';
<del>import DefaultLay... | 4 |
Python | Python | fix warning for gradient_checkpointing | 83d3dc0f6f8ae03e01aa5acacf88e79b2c1ecd06 | <ide><path>src/transformers/configuration_utils.py
<ide> def __init__(self, **kwargs):
<ide> self.transformers_version = kwargs.pop("transformers_version", None)
<ide>
<ide> # Deal with gradient checkpointing
<del> if kwargs.get("gradient_checkpointing", True):
<add> if kwargs.get("gradie... | 1 |
Javascript | Javascript | remove redundant code | e73f4549ecc3978099d8a29c62f8c168887248f2 | <ide><path>src/renderers/webgl/WebGLGeometries.js
<ide> function WebGLGeometries( gl, attributes, info ) {
<ide>
<ide> delete geometries[ geometry.id ];
<ide>
<del> // TODO Remove duplicate code
<del>
<del> var attribute = wireframeAttributes[ geometry.id ];
<del>
<del> if ( attribute ) {
<del>
<del> attribute... | 1 |
Ruby | Ruby | use correct gemfile in `bin/setup` test | 99620d1534ffb47d1496ccc1efae60a90967671c | <ide><path>railties/test/application/bin_setup_test.rb
<ide> class BinSetupTest < ActiveSupport::TestCase
<ide>
<ide> def setup
<ide> build_app
<add>
<add> create_gemfile
<add> update_boot_file_to_use_bundler
<add> @old_gemfile_env = ENV["BUNDLE_GEMFILE"]
<add> ENV["BUNDLE_GEMFILE"] = app... | 1 |
Javascript | Javascript | use common.port in simple/test-http-timeout | 586e160a258336663bdf7f063aae9602fe9e1dc9 | <ide><path>test/simple/test-http-timeout.js
<ide> var assert = require('assert');
<ide>
<ide> var http = require('http');
<ide>
<del>var port = 12345;
<add>var port = common.PORT;
<add>
<ide> var server = http.createServer(function(req, res) {
<ide> res.writeHead(200, {'Content-Type': 'text/plain'});
<ide> ... | 1 |
PHP | PHP | add dispatch_sync helper | 97fe4a1a7cb8dd8982a2c8af98154dd030fe6c95 | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> public function dispatch($command)
<ide> /**
<ide> * Dispatch a command to its appropriate handler in the current process.
<ide> *
<del> * Queuable jobs will be dispatched to the "sync" queue.
<add> * Queueable jobs will be dispatched to the "sync... | 5 |
Mixed | Ruby | make csrf failure logging optional/configurable | 67584c6ae37c88f8abba6f4fbdeedc7c1a6dfa1b | <ide><path>actionpack/CHANGELOG.md
<ide> `default_url_options` methods.
<ide>
<ide> *Tony Wooster*
<add>* Make logging of CSRF failures optional (but on by default) with the
<add> `log_warning_on_csrf_failure` configuration setting in
<add> ActionController::RequestForgeryProtection
<add>
<add> *Joh... | 3 |
Javascript | Javascript | add docs for the $location.search setter | baa7af0df099fd4bfabe1e90d275822d2558d69c | <ide><path>src/service/location.js
<ide> LocationUrl.prototype = {
<ide> *
<ide> * Change search part when called with parameter and return `$location`.
<ide> *
<del> * @param {string|object<string,string>=} search New search part - string or hash object
<add> * @param {string|object<string,string>=} searc... | 1 |
Javascript | Javascript | remove work around for babel bug | c3dd592c27ab4769be6b7a1f06d75b81b72296eb | <ide><path>packages/ember-metal/lib/watch_key.js
<ide> if (isEnabled('mandatory-setter')) {
<ide> };
<ide> }
<ide>
<del>// This is super annoying, but required until
<del>// https://github.com/babel/babel/issues/906 is resolved
<del>; // jshint ignore:line
<del>
<ide> export function unwatchKey(obj, keyName, meta) {... | 1 |
Go | Go | add netlable. keyvalue() and tomap() | b7c2b8111f1cdc4fbf31c89dde8164871962b7a8 | <ide><path>libnetwork/netlabel/labels.go
<ide> package netlabel
<ide>
<del>import "strings"
<add>import (
<add> "fmt"
<add> "strings"
<add>)
<ide>
<ide> const (
<ide> // Prefix constant marks the reserved label space for libnetwork
<ide> const (
<ide> // MacAddress constant represents Mac Address config of a Contai... | 2 |
PHP | PHP | apply fixes from styleci | 86e9e051e8b6ec8ae72b33535a485938c170b756 | <ide><path>src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
<ide> public function compileIndex(Blueprint $blueprint, Fluent $command)
<ide> */
<ide> protected function compileKey(Blueprint $blueprint, Fluent $command, $type)
<ide> {
<del> return sprintf("alter table %s add %s %s%s(%s)",
<add... | 1 |
Javascript | Javascript | add cross browser stacktrace (#776) | 8318f5b8dead742dea7b4db1968a1379a5332497 | <ide><path>lib/error-debug.js
<ide> import React from 'react'
<ide> import ansiHTML from 'ansi-html'
<ide> import Head from './head'
<ide>
<del>export default ({ err: { name, message, stack, module } }) => (
<add>export default ({ err, err: { name, message, module } }) => (
<ide> <div style={styles.errorDebug}>
<ide... | 1 |
Ruby | Ruby | require https for download.savannah.gnu.org (#438) | df4982ed0810fac1b58aedeb6653ca908dccbd51 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> case p
<ide> when %r{^http://ftp\.gnu\.org/},
<ide> %r{^http://ftpmirror\.gnu\.org/},
<add> %r{^http://download\.savannah\.gnu\.org/},
<add> %r{^http://download-mirror\.savannah\.gnu\.org/},
<ide> %... | 1 |
Ruby | Ruby | show python caveats if modules installed | 744a8944b0e79a79b0801616d2a6f339be0c8cca | <ide><path>Library/Homebrew/caveats.rb
<ide> def initialize(f)
<ide>
<ide> def caveats
<ide> caveats = []
<del> caveats << f.caveats
<add> caveats << f.caveats if f.caveats.to_s.length > 0
<ide> caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text)
<ide> caveats << bash_complet... | 2 |
Javascript | Javascript | fix spelling error in lib/url.js comment | 46eee3018b560cf5e613de3ee5066a125106d1fd | <ide><path>lib/url.js
<ide> Url.prototype.resolveObject = function(relative) {
<ide> // Put this after the other two cases because it simplifies the booleans
<ide> if (psychotic) {
<ide> result.hostname = result.host = srcPath.shift();
<del> //occationaly the auth can get stuck only in host
<add> ... | 1 |
Ruby | Ruby | remove dead code | 9dda9339ad600e652d80aa41cc9809509454eda7 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def version val=nil
<ide> end
<ide>
<ide> def mirror val
<del> @mirrors ||= []
<ide> @mirrors << val
<ide> end
<ide> end | 1 |
Java | Java | use an import instead of fqcn | 5322fa0fb71a55fdda1bf22396863d329026ce39 | <ide><path>spring-core/src/main/java/org/springframework/util/xml/StaxStreamXMLReader.java
<ide> private void handleComment() throws SAXException {
<ide>
<ide> private void handleDtd() throws SAXException {
<ide> if (getLexicalHandler() != null) {
<del> javax.xml.stream.Location location = this.reader.getLocation... | 1 |
Java | Java | replace webclient.filter with builder.filter | 4a0597d612d68d6e948c748da8d36621639d1b7f | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java
<ide> import org.springframework.web.reactive.function.BodyExtractor;
<ide> import org.springframework.web.reactive.function.BodyInserter;
<ide> import org.springframework.web.reactive.function.client.ClientRespo... | 9 |
Text | Text | update dataset websites in detection_model_zoo.md | 155c65cb583f39605340ed9aa38a4ad4f414ed8b | <ide><path>research/object_detection/g3doc/detection_model_zoo.md
<ide> # Tensorflow detection model zoo
<ide>
<ide> We provide a collection of detection models pre-trained on the [COCO
<del>dataset](http://mscoco.org), the [Kitti dataset](http://www.cvlibs.net/datasets/kitti/),
<del>the [Open Images dataset](https://... | 1 |
Mixed | Python | fix two typos | ee017e0dbf2d2401d14657b4271256de5266cc28 | <ide><path>inception/README.md
<ide> We find that the evaluation arrives at roughly 93.4% precision@1 after the model
<ide> has been running for 2000 steps.
<ide>
<ide> ```shell
<del>Succesfully loaded model from /tmp/flowers/model.ckpt-1999 at step=1999.
<add>Successfully loaded model from /tmp/flowers/model.ckpt-199... | 2 |
Ruby | Ruby | add caller to request_uri deprecation notice | 52efbdcdefa678ae2ee9530bcfefd0e2529b188f | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def subdomain(tld_length = 1)
<ide> # Returns the request URI, accounting for server idiosyncrasies.
<ide> # WEBrick includes the full URL. IIS leaves REQUEST_URI blank.
<ide> def request_uri
<del> ActiveSupport::Deprecation.warn "Usin... | 2 |
Python | Python | remove word “shuffled” from comments in examples | 4f2e65c385d60fa87bb143c6c506cbe428895f44 | <ide><path>examples/antirectifier.py
<ide> def call(self, inputs):
<ide> num_classes = 10
<ide> epochs = 40
<ide>
<del># the data, shuffled and split between train and test sets
<add># the data, split between train and test sets
<ide> (x_train, y_train), (x_test, y_test) = mnist.load_data()
<ide>
<ide> x_train = x_tr... | 10 |
Javascript | Javascript | add .css(function) incoming value tests | ebaf374f2ac02e224ff0d0775b9709579404dd58 | <ide><path>test/unit/css.js
<ide> test("css(String, Function)", function() {
<ide> jQuery("#cssFunctionTest").remove();
<ide> });
<ide>
<add>test("css(String, Function) with incoming value", function() {
<add> expect(3);
<add>
<add> var sizes = ["10px", "20px", "30px"];
<add>
<add> jQuery("<div id='cssFunctionTest... | 1 |
Java | Java | remove deprecated uiimplementationprovider | e7d75631959f1ce3f50a44f13056eacaf82378ff | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> import com.facebook.react.modules.deviceinfo.DeviceInfoModule;
<ide> import com.facebook.react.modules.systeminfo.AndroidInfoModule;
<ide> import com.facebook.react.turbomodule.core.interfaces.TurboModule;
<del>import com.facebook.re... | 7 |
Python | Python | add keycertificateconnection class | 0c61644b6a281a342f1055a4cf11470e4a5c75ff | <ide><path>libcloud/common/base.py
<ide> def __init__(self, cert_file, secure=True, host=None, port=None, url=None,
<ide> self.cert_file = cert_file
<ide>
<ide>
<add>class KeyCertificateConnection(CertificateConnection):
<add> """
<add> Base connection class which accepts both ``key_file and cert_file``... | 1 |
PHP | PHP | update some docblocks | 6c150a23209a06329dc82b5e70060170f0874ac0 | <ide><path>src/Illuminate/Cookie/Guard.php
<ide> protected function encrypt(Response $response)
<ide> /**
<ide> * Duplicate a cookie with a new value.
<ide> *
<del> * @param \Symfony\Component\HttpFoundation\Cookie $cookie
<add> * @param \Symfony\Component\HttpFoundation\Cookie $c
<ide> * @param mixed $v... | 5 |
Ruby | Ruby | add missing test | 98de70e2e12cff98acbc38727e709ff99db331b6 | <ide><path>activerecord/test/cases/associations/belongs_to_associations_test.rb
<ide> def test_polymorphic_with_custom_primary_key
<ide>
<ide> assert_equal toy, sponsor.reload.sponsorable
<ide> end
<add>
<add> test "stale tracking doesn't care about the type" do
<add> apple = Firm.create("name" => "Apple")
<... | 1 |
Python | Python | remove unused files | 399e0e859ca7874bd068bc3667e86c8410ca7b53 | <ide><path>doc/source/user/plot_approx.py
<del>from scipy import misc
<del>import matplotlib.pyplot as plt
<del>import numpy as np
<del>from numpy import linalg
<del>
<del>img = misc.face()
<del>img_array = img / 255
<del>img_gray = img_array @ [0.2126, 0.7152, 0.0722]
<del>
<del>U, s, Vt = linalg.svd(img_gray)
<del>
<... | 6 |
Text | Text | write a release guide | fbfecd13ce03d0386ea93b73cc645ccc09bbbed3 | <ide><path>scripts/release-manager/Readme.md
<ide>
<ide> This is a tool that is being used to manage React releases.
<ide>
<del>General prereqs:
<del>- A separate clone of React. This clone can be anywhere, so long as it is a separate working copy. Ideally this is where you are most comfortable working on React.
<del... | 1 |
Text | Text | add the text "my change" to the article | c7abdcecf9a16b707418e2fda0c5cb2efee03329 | <ide><path>guide/english/game-development/unreal-engine/index.md
<ide> Unreal has gone through 4 major revisions. Although some code is common between
<ide> Released in 2015 and targets PC, PlayStation 4, Xbox One, Mac OS X, iOS, Android, many VR systems, Linux, SteamOS, and HTML5, and the editor can run on Windows, ... | 1 |
Ruby | Ruby | perform both tests within a single line | fe9713bf4ff7366be3a0909864c4aa1836eb9e09 | <ide><path>activesupport/lib/active_support/core_ext/class/subclasses.rb
<ide> class Class
<ide> def descendants
<ide> descendants = []
<ide> ObjectSpace.each_object(singleton_class) do |k|
<del> next if k.singleton_class?
<del> descendants.unshift k unless k == self
<add> descendants.unshift k... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.