content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | restore original value of pretending | a2930ed0ee792783950125467907ba496031bb95 | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function transactionLevel()
<ide> */
<ide> public function pretend(Closure $callback)
<ide> {
<add> $loggingQueries = $this->loggingQueries;
<add>
<ide> $this->enableQueryLog();
<del>
<add>
<ide> $this->pretending = true;
<ide>
<del> $this->que... | 1 |
Text | Text | add dilbert to master reame | 497f73c9644b50a70402d3b546eeca71acbbb23a | <ide><path>README.md
<ide> The library currently contains PyTorch implementations, pre-trained model weight
<ide> 5. **[XLNet](https://github.com/zihangdai/xlnet/)** (from Google/CMU) released with the paper [XLNet: Generalized Autoregressive Pretraining for Language Understanding](https://arxiv.org/abs/1906.08237) by... | 1 |
Text | Text | fix incorrect tensorflow url | fd6da687c34eb718fb914ec8ee2383256cc4cf06 | <ide><path>lfads/README.md
<ide> This code implements the model from the paper "[LFADS - Latent Factor Analysis v
<ide>
<ide> The code is written in Python 2.7.6. You will also need:
<ide>
<del>* **TensorFlow** version 1.2.1 ([install](http://tflearn.org/installation/)) -
<add>* **TensorFlow** version 1.2.1 ([install... | 1 |
Javascript | Javascript | avoid new's in editor controls with spherical | 9d42f10fc75b0bad07fd01556ea45067349181c8 | <ide><path>examples/js/controls/EditorControls.js
<ide> THREE.EditorControls = function ( object, domElement ) {
<ide> var normalMatrix = new THREE.Matrix3();
<ide> var pointer = new THREE.Vector2();
<ide> var pointerOld = new THREE.Vector2();
<add> var spherical = new THREE.Spherical();
<ide>
<ide> // events
<ide... | 1 |
Text | Text | update tracks.md with caption key info. closes | 6921b552ef625f3e5c37ecdc58cd57311f413e24 | <ide><path>docs/guides/tracks.md
<ide> Creating the Text File
<ide> ----------------------
<ide> Timed text requires a text file in [WebVTT](http://dev.w3.org/html5/webvtt/) format. This format defines a list of "cues" that have a start time, and end time, and text to display. [Microsoft has a builder](http://ie.micros... | 1 |
Mixed | Javascript | fix native rotation android | e405e84fc35923888442df748757787698040010 | <ide><path>Libraries/Animated/src/NativeAnimatedHelper.js
<ide> function shouldUseNativeDriver(config: AnimationConfig | EventConfig): boolean {
<ide> return config.useNativeDriver || false;
<ide> }
<ide>
<add>function transformDataType(value: any): number {
<add> // Change the string type to number type so we can ... | 6 |
Text | Text | add section for official source code | 417ab301cf15e22def0a12cca59f318925e2d636 | <ide><path>README.md
<ide> Use Airflow to author workflows as directed acyclic graphs (DAGs) of tasks. The
<ide> - [Requirements](#requirements)
<ide> - [Getting started](#getting-started)
<ide> - [Installing from PyPI](#installing-from-pypi)
<del>- [Official Docker images](#official-docker-images)
<add>- [Official sou... | 1 |
Text | Text | introduce navigators in the tutorial | 7d3fbbdb68e5015311bce60236e0ae06d62f17a2 | <ide><path>docs/JavaScriptEnvironment.md
<ide> title: JavaScript Environment
<ide> layout: docs
<ide> category: Guides
<ide> permalink: docs/javascript-environment.html
<del>next: navigator-comparison
<add>next: navigation
<ide> ---
<ide>
<ide> ## JavaScript Runtime
<add><path>docs/Navigation.md
<del><path>docs/Naviga... | 4 |
Go | Go | fix the incorrect description for newinstream | 90bddb4243d29e11b2add2f25849fcfce7ee17ec | <ide><path>cli/command/in.go
<ide> func (i *InStream) CheckTty(attachStdin, ttyMode bool) error {
<ide> return nil
<ide> }
<ide>
<del>// NewInStream returns a new OutStream object from a Writer
<add>// NewInStream returns a new InStream object from a ReadCloser
<ide> func NewInStream(in io.ReadCloser) *InStream {
<id... | 1 |
Ruby | Ruby | use the inflector rules made for the purpose | 3e00e1a297b70a6ae6e8ac3971ab2d49b6e01666 | <ide><path>activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
<ide> class HasAndBelongsToManyAssociation < AssociationCollection #:nodoc:
<ide> def initialize(owner, association_name, association_class_name, association_class_primary_key_name, options)
<ide> super
<ide>
<d... | 1 |
Text | Text | fix a tiny typo | 50c3ffd00969f8b1f2a00849973f2587984a26bf | <ide><path>docs/sources/userguide/dockervolumes.md
<ide> it.
<ide>
<ide> Let's create a new named container with a volume to share.
<ide> While this container doesn't run an application, it reuses the `training/postgres`
<del>image so that all containers are using layers in common, saveing disk space.
<add>image so th... | 1 |
PHP | PHP | remove redundant event parameter | cab1a39ae3388cd226880db05a312500dd1fe417 | <ide><path>lib/Cake/Controller/Controller.php
<ide> public function setEventManager($eventManager) {
<ide> * @return void
<ide> */
<ide> public function startupProcess() {
<del> $this->getEventManager()->dispatch(new Event('Controller.initialize', $this, [$this]));
<del> $this->getEventManager()->dispatch(new Even... | 1 |
Text | Text | update pr template | d33bb9c33ac84a1d1aa1aa8805b667efca2e51d6 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> should start with an issue. Mention the issue number here.
<ide>
<ide>
<ide> ### Checklist ###
<add><!--
<ide> Mark an `[x]` for completed items, if you're not sure leave them unchecked and we can assist.
<add>-->
<ide>
<del>* [ ] All authors have signed the CLA at h... | 1 |
Java | Java | improve javadoc of retrywhen() operators | 20a72ca2973ebe1ef160baa9d0ebda369c95d438 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public final Completable retry(Predicate<? super Throwable> predicate) {
<ide> * Returns a Completable which given a Publisher and when this Completable emits an error, delivers
<ide> * that error through a Flowable and the Publisher should signal a... | 5 |
Ruby | Ruby | fix failing cascade exception | 2ab2077235308aaa82dc430f1da8d6519fb7dac0 | <ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
<ide> def call(env)
<ide> begin
<ide> response = @app.call(env)
<ide>
<add> # TODO: Maybe this should be in the router itself
<ide> if response[1]['X-Cascade'] == 'pass'
<ide> raise ActionController::Routing... | 3 |
Ruby | Ruby | remove ruby 1.8 related code | f54b8468c739055164aa8f51e9680c43a51c4381 | <ide><path>activesupport/lib/active_support/core_ext/date_time/conversions.rb
<ide> def readable_inspect
<ide> alias_method :default_inspect, :inspect
<ide> alias_method :inspect, :readable_inspect
<ide>
<del> # Converts self to a Ruby Date object; time portion is discarded.
<del> def to_date
<del> ::Date.new... | 1 |
Python | Python | add multiberts conversion script | 9a9805fccf7f4802ce8438c86fe2c7e50465b80b | <ide><path>src/transformers/models/bert/convert_multiberts_checkpoint_to_pytorch.py
<add># Copyright 2021 The HuggingFace Team. All rights reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain... | 1 |
Python | Python | add whitespace and combined augmenters | 28ba31e793cf0a59e5ce14bd2e8f5c5d6e785ca2 | <ide><path>spacy/tests/training/test_augmenters.py
<ide> import pytest
<del>from spacy.training import Corpus
<add>from spacy.pipeline._parser_internals.nonproj import contains_cycle
<add>from spacy.training import Corpus, Example
<ide> from spacy.training.augment import create_orth_variants_augmenter
<ide> from spacy.... | 2 |
Javascript | Javascript | add lint task | 9d79b99874a5f52f0b83ca11dd45a7302adebdae | <ide><path>Gruntfile.js
<ide> module.exports = function( grunt ) {
<ide> // Integrate jQuery specific tasks
<ide> grunt.loadTasks( "build/tasks" );
<ide>
<del> // Alias bower to bowercopy
<ide> grunt.registerTask( "bower", "bowercopy" );
<add> grunt.registerTask( "lint", [ "jshint", "jscs" ] );
<ide>
<ide> // Sho... | 1 |
Javascript | Javascript | optimize one function case | 050d42517330f9bbed73d37c13de84ea83a87230 | <ide><path>src/compose.js
<ide> export default function compose(...funcs) {
<ide> if (funcs.length === 0) {
<ide> return arg => arg
<del> } else {
<del> const last = funcs[funcs.length - 1]
<del> const rest = funcs.slice(0, -1)
<del> return (...args) => rest.reduceRight((composed, f) => f(composed), las... | 2 |
PHP | PHP | move is_array check to internal method | 3509d0b31d6c17d97b7e2e0d719c63a9c3837aa3 | <ide><path>src/Illuminate/Support/Collection.php
<ide> class Collection implements ArrayAccess, Arrayable, Countable, IteratorAggregate
<ide> */
<ide> public function __construct($items = [])
<ide> {
<del> $this->items = is_array($items) ? $items : $this->getArrayableItems($items);
<add> $thi... | 1 |
Text | Text | change container name to id as actual results | d76fba0191fc64759febc1ee22c6bc28ff49b3d6 | <ide><path>docs/reference/commandline/stats.md
<ide> Running `docker stats` on all running containers
<ide>
<ide> $ docker stats
<ide> CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O
<del> redis1 0.07% 796 KB / 64 MB ... | 2 |
Ruby | Ruby | require "formula" only when necessary | c6719e58542df880648bec4de8e7114f33776eca | <ide><path>Library/Homebrew/dev-cmd/cat.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "cli/parser"
<del>require "formula"
<ide>
<ide> module Homebrew
<ide> extend T::Sig
<ide> def cat
<ide>
<ide> cd HOMEBREW_REPOSITORY
<ide> pager = if Homebrew::EnvConfig.bat?
<add> require "formula"
<add... | 1 |
Javascript | Javascript | remove callback page | dcb637897537327c914a4ed1029de4d3d146bfa7 | <ide><path>packages/learn/src/pages/callback.js
<del>import React from 'react';
<del>import Auth from '../auth';
<del>
<del>function AuthCallBack() {
<del> const auth = new Auth();
<del> auth.handleAuthentication();
<del> return <h2>One moment please...</h2>;
<del>}
<del>
<del>AuthCallBack.displayName = 'AuthCallBac... | 1 |
PHP | PHP | fix auth contract | e5535493564984c7b17b524ec6a368a66038cb16 | <ide><path>src/Illuminate/Auth/Guard.php
<ide> public function validate(array $credentials = array())
<ide> * Attempt to authenticate using HTTP Basic Auth.
<ide> *
<ide> * @param string $field
<del> * @param \Symfony\Component\HttpFoundation\Request $request
<ide> * @return \Symfony\Component\HttpFoundati... | 3 |
Text | Text | fix bad docs format | 6b1fcf3e6ae29675b1a825fdf0f48c9ba8e47489 | <ide><path>libnetwork/docs/remote.md
<ide> If the remote process cannot decode, or otherwise detects a syntactic problem wi
<ide> If the remote process can decode the request, but cannot complete the operation, it must send a response in the form
<ide>
<ide> {
<del> "Err": string
<add> "Err": string
<ide> }
<... | 1 |
PHP | PHP | build remaining methods on arraycontext | 669cd696c188c2aebf448c65f83408115659fa5e | <ide><path>src/View/Form/ArrayContext.php
<ide> public function val($field) {
<ide> * @return boolean
<ide> */
<ide> public function isRequired($field) {
<add> if (!is_array($this->_context['required'])) {
<add> return false;
<add> }
<add> $required = Hash::get($this->_context['required'], $field);
<add> retur... | 2 |
Text | Text | add note on force_authenticate + refresh_from_db | aecca9d8e83ed42cf6d4b04de84d82dd185e2aa7 | <ide><path>docs/api-guide/testing.md
<ide> For example, when forcibly authenticating using a token, you might do something
<ide>
<ide> ---
<ide>
<add>**Note**: `force_authenticate` directly sets `request.user` to the in-memory `user` instance. If you are re-using the same `user` instance across multiple tests that up... | 1 |
Python | Python | remove unneeded parentheses from python files | 3cd317e19ab3e533c12343d880d929c9925b4243 | <ide><path>tests/core/test_core.py
<ide> def test_illegal_args_forbidden(self):
<ide> illegal_argument_1234='hello?',
<ide> )
<ide> self.assertIn(
<del> ('Invalid arguments were passed to BashOperator (task_id: test_illegal_args).'),
<add> 'Invalid arguments wer... | 2 |
Text | Text | add v3.10.0-beta.3 to changelog | 9c485789e408dffbc6f1d94b0defdaffc4e168e0 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.10.0-beta.3 (April 15, 2019)
<add>
<add>- [#17859](https://github.com/emberjs/ember.js/pull/17859) [BUGFIX] Fixes a regression in the legacy build
<add>- [#17891](https://github.com/emberjs/ember.js/pull/17891) [BUGFIX] Loosen "engines" restriction for ... | 1 |
Python | Python | break long lines + pep8 | 02ae0e3ea9fb3567c12e8d0c93ae8dbd4977623e | <ide><path>benchmarks/benchmarks/bench_app.py
<ide> def setup(self, update):
<ide> dy2 = (dy * dy)
<ide>
<ide> def num_update(u, dx2, dy2):
<del> u[1:(-1), 1:(-1)] = ((((u[2:, 1:(-1)] + u[:(-2), 1:(-1)]) * dy2) + ((u[1:(-1), 2:] + u[1:(-1), :(-2)]) * dx2)) / (2 * (dx2 + dy2)))
<add> ... | 5 |
PHP | PHP | get blade compiler from engine resolver | b1af5287d00d9cf72df20e189b9140e0bc23aaaa | <ide><path>src/Illuminate/Foundation/Console/ViewCacheCommand.php
<ide> public function handle()
<ide> */
<ide> protected function compileViews(Collection $views)
<ide> {
<del> $compiler = $this->laravel['blade.compiler'];
<add> $compiler = $this->laravel['view']->getEngineResolver()->resolve... | 1 |
Python | Python | update flaubert with tf decorator | 277fc2cc782d8c5c28ec399b1ee2fc1c6aed7b6e | <ide><path>src/transformers/models/flaubert/modeling_tf_flaubert.py
<ide> TFPreTrainedModel,
<ide> TFSharedEmbeddings,
<ide> get_initializer,
<del> input_processing,
<ide> keras_serializable,
<add> unpack_inputs,
<ide> )
<ide> from ...tf_utils import shape_list
<ide> from ...utils import logging
<... | 1 |
Python | Python | run kubernetespodoperator tests on any executor | 68f13f0c54fc9d0575670498ce732b801a4d3b7a | <ide><path>kubernetes_tests/test_kubernetes_pod_operator.py
<ide> from airflow.providers.cncf.kubernetes.utils.xcom_sidecar import PodDefaults
<ide> from airflow.utils import timezone
<ide> from airflow.version import version as airflow_version
<del>from kubernetes_tests.test_base import EXECUTOR
<ide>
<ide>
<ide> de... | 2 |
Javascript | Javascript | add winreg to snapshot ignore list | 233e5190071ea5db37c2da6c9a7ce219b5857c42 | <ide><path>script/lib/generate-startup-snapshot.js
<ide> module.exports = function (packagedAppPath) {
<ide> relativePath === path.join('..', 'node_modules', 'tar', 'tar.js') ||
<ide> relativePath === path.join('..', 'node_modules', 'temp', 'lib', 'temp.js') ||
<ide> relativePath === path.join('... | 1 |
Text | Text | add security message to readme | 9e2cc4fcd9c28f80877d930cb5cc6076428e8ef8 | <ide><path>README.md
<ide> applications and databases.
<ide>
<ide> 
<ide>
<add>## Security Disclosure
<add>
<add>Security is very important to us. If you have any issue regarding security, please disclose the information responsibly by sending ... | 1 |
Javascript | Javascript | use font.prototype.binddom to insert fonts on page | 803139127ad799d5d0854d726cb538eb17ad3ce1 | <ide><path>worker/client.js
<ide> function FontWorker() {
<ide> throw "Unkown action from worker: " + data.action;
<ide> }
<ide> }.bind(this);
<add>
<add> this.$handleFontLoadedCallback = this.handleFontLoadedCallback.bind(this);
<ide> }
<ide>
<ide> FontWorker.prototype = {
<add> handleFontLoadedCallba... | 1 |
Text | Text | translate tip-16 to korean | 452f2f282f85ced053650cfac9997183a8a17ecf | <ide><path>docs/tips/16-references-to-components.ko-KR.md
<add>---
<add>id: references-to-components-ko-KR
<add>title: 컴포넌트 참조
<add>layout: tips
<add>permalink: references-to-components-ko-KR.html
<add>prev: expose-component-functions-ko-KR.html
<add>next: children-undefined-ko-KR.html
<add>---
<add>
<add>애플리케이션의 일부에서만... | 1 |
Python | Python | assert filename match | da4c9cee06e6a25470619fa20c1454cc78407d24 | <ide><path>spacy/en/download.py
<ide> def install_data(url, path, filename):
<ide> except FileExistsError:
<ide> pass
<ide>
<del> filename = download_file(url, os.path.join(path, filename))
<del> t = tarfile.open(filename)
<add> download_path = os.path.join(path, filename)
<add> tmp = download_... | 1 |
Python | Python | remove tree view | 631722992e76827ecee61797edd3ab218e28c94a | <ide><path>glances/main.py
<ide> def init_args(self):
<ide> if not WINDOWS:
<ide> parser.add_argument('--hide-kernel-threads', action='store_true', default=False,
<ide> dest='no_kernel_threads', help='hide kernel threads in process list (not available on Windows)')
<d... | 6 |
Javascript | Javascript | preserve dom node when updating empty component | db589a717510d1a2d235d934a0eec4b5609b4e0b | <ide><path>src/renderers/shared/reconciler/ReactChildReconciler.js
<ide> var ReactChildReconciler = {
<ide> var prevChild = prevChildren && prevChildren[name];
<ide> var prevElement = prevChild && prevChild._currentElement;
<ide> var nextElement = nextChildren[name];
<del> if (shouldUpdateReactCo... | 3 |
PHP | PHP | apply fixes from styleci | efdab6e774de2b73ec985ae3c965481864bb9c3e | <ide><path>src/Illuminate/View/ComponentAttributeBag.php
<ide> class ComponentAttributeBag implements ArrayAccess, Htmlable, IteratorAggregate
<ide> {
<ide> use Macroable;
<del>
<add>
<ide> /**
<ide> * The raw array of attributes.
<ide> * | 1 |
PHP | PHP | fix github provider | cf33cae228a199ae304aada1584c00da7ecad86a | <ide><path>laravel/cli/tasks/bundle/providers/github.php
<ide> public function install($bundle)
<ide> // If the installation target directory doesn't exist, we will create
<ide> // it recursively so that we can properly add the Git submodule for
<ide> // the bundle when we install.
<del> if ( ! is_dir(path('bund... | 1 |
Text | Text | fix broken link in errors.md | ddc60c785877c62dd0aae211c52ad9ac55253712 | <ide><path>doc/api/errors.md
<ide> The native call from `process.cpuUsage` could not be processed.
<ide> [`new URLSearchParams(iterable)`]: url.md#url_new_urlsearchparams_iterable
<ide> [`package.json`]: packages.md#packages_node_js_package_json_field_definitions
<ide> [`postMessage()`]: worker_threads.md#worker_thread... | 1 |
Python | Python | fix zerodivisionerror and epoch counting | 4c62c6021aa3341eff4c0bb87fea72fea22eb701 | <ide><path>src/transformers/trainer.py
<ide> def train(self, model_path: Optional[str] = None, trial: Union["optuna.Trial", D
<ide>
<ide> # Data loader and number of training steps
<ide> train_dataloader = self.get_train_dataloader()
<add> num_update_steps_per_epoch = len(train_dataloader) // se... | 2 |
PHP | PHP | add throwwith to the http client response | c131f471af6e3a45593adbe0ed3bbea074f85500 | <ide><path>src/Illuminate/Http/Client/Response.php
<ide> public function toPsrResponse()
<ide> * @throws \Illuminate\Http\Client\RequestException
<ide> */
<ide> public function throw()
<add> {
<add> return $this->throwWith(function () {
<add> //
<add> });
<add> }
<add>
<add>... | 2 |
Python | Python | fix xfail marker | 188ccd575072704ea870fac60b5cde4c29d822bd | <ide><path>spacy/tests/regression/test_issue3356.py
<ide> if compat.is_python2:
<ide> # If we have this test in Python 3, pytest chokes, as it can't print the
<ide> # string above in the xpass message.
<del> @pytest.xfail
<add> @pytest.mark.xfail
<ide> def test_issue3356():
<ide> pattern = re.... | 1 |
Java | Java | fix inappropriate eager init | 834ebc44f8ddef719603f6f1ed70ef83bb337f2a | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
<ide> public String[] getBeanNamesForType(ResolvableType type) {
<ide> public String[] getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) {
<ide> Class<?> resolv... | 1 |
Javascript | Javascript | add static injection for feature flags | dee604dbe287b34918073110c425078583f8fd9a | <ide><path>scripts/rollup/build.js
<ide> function getPlugins(
<ide> hasteName,
<ide> moduleType,
<ide> manglePropertiesOnProd,
<del> modulesToStub
<add> modulesToStub,
<add> featureFlags
<ide> ) {
<ide> const plugins = [
<ide> babel(updateBabelConfig(babelOpts, bundleType)),
<ide> function getPlugins(
<i... | 5 |
Mixed | Javascript | support custom dispatchers | 09f4190d0d7c5d2f6616abf3f1c98be43cdc0bec | <ide><path>README.md
<ide> export function decrement() {
<ide>
<ide> // Can also be async if you return a function
<ide> export function incrementAsync() {
<del> return perform => {
<add> return dispatch => {
<ide> setTimeout(() => {
<del> // Yay! Can invoke sync or async actions with `perform`
<del> p... | 15 |
Javascript | Javascript | remove enqueuecallback from updater api | f4c0c9997362730c2b5182d6a7db19e5e4f9fee5 | <ide><path>src/isomorphic/modern/class/ReactNoopUpdateQueue.js
<ide> var ReactNoopUpdateQueue = {
<ide> return false;
<ide> },
<ide>
<del> /**
<del> * Enqueue a callback that will be executed after all the pending updates
<del> * have processed.
<del> *
<del> * @param {ReactClass} publicInstance The ins... | 5 |
Javascript | Javascript | improve support properties computation | 44cb97e0cfc8d3e62bef7c621bfeba6fe4f65d7c | <ide><path>src/css/support.js
<ide> define( [
<ide> // Executing both pixelPosition & boxSizingReliable tests require only one layout
<ide> // so they're executed at the same time to save the second computation.
<ide> function computeStyleTests() {
<add>
<add> // This is a singleton, we need to execute it only once... | 1 |
Javascript | Javascript | fix amp test flake | c731d591497780ace9ab2e9eb0758bfa6416fbe3 | <ide><path>test/integration/amphtml/test/index.test.js
<ide> /* eslint-env jest */
<ide>
<del>import { join } from 'path'
<del>import cheerio from 'cheerio'
<del>import webdriver from 'next-webdriver'
<ide> import { validateAMP } from 'amp-test-utils'
<add>import cheerio from 'cheerio'
<ide> import {
<ide> accessSyn... | 1 |
PHP | PHP | add support for tinyblob, mediumblob and longblob | fe78749404cfe7db6377a215d03eacf8a4eea0e5 | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> protected function _convertColumn($column)
<ide> return ['type' => 'text', 'length' => $length];
<ide> }
<ide> if (strpos($col, 'blob') !== false || $col === 'binary') {
<add> $lengthName = substr($col, 0, -4);
<add> ... | 6 |
Java | Java | ensure environment.shutdown() in reactor2tcpclient | bd40a93604bbff9e41085639628114fc0c0898c2 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/Reactor2TcpClient.java
<ide>
<ide> private final EventLoopGroup eventLoopGroup;
<ide>
<add> private final Environment environment;
<add>
<ide> private final TcpClientFactory<Message<P>, Message<P>> tcpClientSpecFactory;
<ide>
<ide>... | 1 |
Javascript | Javascript | remove workaround for ie6/7 | e5190982c40d7ac8ab9bdb2e7e4334f0e123ef66 | <ide><path>src/ajax.js
<ide> define([
<ide> ], function( jQuery, rnotwhite, nonce, rquery ) {
<ide>
<ide> var
<del> // Document location
<del> ajaxLocParts,
<del> ajaxLocation,
<del>
<ide> rhash = /#.*$/,
<ide> rts = /([?&])_=[^&]*/,
<ide> rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
<ide> var
<ide> transports = {},
<... | 1 |
Java | Java | add accessor methods to httpputformcontentfilter | 8417831602fb1f3ea873d88cd09090f878db73d3 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/HttpPutFormContentFilter.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you... | 1 |
Text | Text | move installation instructions to the top | 41cc5f3f596747ec72da9d3e034a00dd7c250ee8 | <ide><path>examples/README.md
<ide> # Examples
<ide>
<del>Version 2.9 of 🤗 Transformers introduces a new [`Trainer`](https://github.com/huggingface/transformers/blob/master/src/transformers/trainer.py) class for PyTorch, and its equivalent [`TFTrainer`](https://github.com/huggingface/transformers/blob/master/src/tran... | 1 |
Ruby | Ruby | drop extra variable from test | 48b6860b796d4fa46efd00346d91aaec5fc84cbd | <ide><path>activesupport/test/load_paths_test.rb
<ide> def test_uniq_load_paths
<ide> }
<ide> load_paths_count[File.expand_path('../../lib', __FILE__)] -= 1
<ide>
<del> filtered = load_paths_count.select { |k, v| v > 1 }
<del> assert filtered.empty?, filtered.inspect
<add> load_paths_count.select! { |... | 1 |
Text | Text | fix broken markdown link in 'line' docs | 7c11c81d961751db1499a35e3f163b56d4d65ab1 | <ide><path>docs/charts/line.md
<ide> The style of each point can be controlled with the following properties:
<ide> | `pointHitRadius` | The pixel size of the non-displayed point that reacts to mouse events.
<ide> | `pointRadius` | The radius of the point shape. If set to 0, the point is not rendered.
<ide> | `pointRot... | 1 |
Javascript | Javascript | add webpack configs and gulp webpack build tasks | 07fc22f86a4020be10b7727df9214dcbf5e328ad | <ide><path>gulpfile.js
<del>require('babel/register');
<add>require('babel-core/register');
<ide> var gulp = require('gulp'),
<ide> path = require('path'),
<ide>
<ide> var paths = {
<ide>
<ide> node: {
<ide> src: './client',
<del> dest: 'server/server'
<add> dest: 'common/app'
<ide> },
<ide>
<ide> ... | 3 |
Python | Python | catch adress already in use message more propely | 2baf73ff0e4a8eb41c1456363dd88bd5be9d1aee | <ide><path>glances/outputs/glances_bottle.py
<ide> from io import open
<ide> import webbrowser
<ide> import zlib
<add>import socket
<ide>
<ide> from glances.compat import b
<ide> from glances.timer import Timer
<ide> def start(self, stats):
<ide> new=2,
<ide> aut... | 1 |
Python | Python | remove `level=` keyword from test arguments | 6a2bc5e3548ff8e3b1fcd1a6d7a4ee263c17aa0b | <ide><path>numpy/core/tests/test_getlimits.py
<ide> def test_singleton(self):
<ide> assert_equal(id(ftype), id(ftype2))
<ide>
<ide> class TestLongdouble(object):
<del> def test_singleton(self,level=2):
<add> def test_singleton(self):
<ide> ftype = finfo(longdouble)
<ide> ftype2 = finfo(lo... | 8 |
Go | Go | fix flaky testlogssincefuturefollow | 4928121992cbf3f40ec86909526534d90eb6482e | <ide><path>integration-cli/docker_cli_logs_test.go
<ide> import (
<ide> "io"
<ide> "os/exec"
<ide> "regexp"
<del> "strconv"
<ide> "strings"
<ide> "time"
<ide>
<ide> func (s *DockerSuite) TestLogsSince(c *check.C) {
<ide>
<ide> func (s *DockerSuite) TestLogsSinceFutureFollow(c *check.C) {
<ide> testRequires(c, D... | 1 |
PHP | PHP | add ably entry | 5182e9c6de805e025fb4cfad63c210c3197002ab | <ide><path>config/broadcasting.php
<ide> ],
<ide> ],
<ide>
<add> 'ably' => [
<add> 'driver' => 'ably',
<add> 'key' => env('ABLY_KEY'),
<add> ],
<add>
<ide> 'redis' => [
<ide> 'driver' => 'redis',
<ide> 'connection' => 'default', | 1 |
PHP | PHP | add tests to cover any added or modified code | 7128e69832141b86271c65c27bc4f1c0e99af443 | <ide><path>tests/Database/DatabasePostgresBuilderTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Database;
<add>
<add>use Illuminate\Database\Connection;
<add>use Illuminate\Database\Query\Processors\PostgresProcessor;
<add>use Illuminate\Database\Schema\Grammars\PostgresGrammar;
<add>use Illuminate\Database\... | 2 |
Ruby | Ruby | rescue only formulaunavailableerror | d6b5e4f2ed856badb572eea2bbc76d2335ec58ab | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> f.deps.each do |dep|
<ide> begin
<ide> dep_f = dep.to_formula
<del> rescue
<add> rescue FormulaUnavailableError
<ide> problem "Can't find dependency #{dep.name.inspect}."
<ide> end
<ide> | 1 |
Text | Text | change comma to semicolon | 817325d68e2aa3ee7bbfc2d7f453c7e656150e79 | <ide><path>curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/create-a-bar-for-each-data-point-in-the-set.english.md
<ide> There are a few differences working with <code>rect</code> elements instead of <
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>Use the <code>data()... | 1 |
Javascript | Javascript | add concurrentroot property to reactnativetypes | c96b78e0e7cd9e6ef7c0464748a50cf8510dde81 | <ide><path>packages/react-native-renderer/src/ReactNativeTypes.js
<ide> export type ReactFabricType = {
<ide> element: Element<ElementType>,
<ide> containerTag: number,
<ide> callback: ?() => void,
<add> concurrentRoot: ?boolean,
<ide> ): ?ElementRef<ElementType>,
<ide> unmountComponentAtNode(contain... | 2 |
Javascript | Javascript | fix invocations of angular.mock.dump | e8e07502776e48bf48b83a836f7422d164cbb1d7 | <ide><path>test/helpers/testabilityPatch.js
<ide> function isCssVisible(node) {
<ide>
<ide> function assertHidden(node) {
<ide> if (isCssVisible(node)) {
<del> throw new Error('Node should be hidden but was visible: ' + angular.module.ngMock.dump(node));
<add> throw new Error('Node should be hidden but was vis... | 1 |
Go | Go | improve name generation on concurrent requests | 6ec86cb6e517bfb5ded818244b9db9510a2ed0b9 | <ide><path>daemon/daemon.go
<ide> import (
<ide> "github.com/dotcloud/docker/pkg/graphdb"
<ide> "github.com/dotcloud/docker/pkg/label"
<ide> "github.com/dotcloud/docker/pkg/mount"
<add> "github.com/dotcloud/docker/pkg/namesgenerator"
<ide> "github.com/dotcloud/docker/pkg/networkfs/resolvconf"
<ide> "github.com/dot... | 4 |
Python | Python | add assert message for errorhandler exception type | 846ee2c62e369ed06190b8791088748bd3a83557 | <ide><path>src/flask/app.py
<ide> def _get_exc_class_and_code(exc_class_or_code):
<ide> else:
<ide> exc_class = exc_class_or_code
<ide>
<del> assert issubclass(exc_class, Exception)
<add> assert issubclass(
<add> exc_class, Exception
<add> ), "Custom exceptions must ... | 2 |
PHP | PHP | fix discrepencies, thanks @admad | 2bd04dbf93209f4222f6391d65dfc1143bcfbe53 | <ide><path>src/Mailer/MailerAwareTrait.php
<ide> trait MailerAwareTrait
<ide> * Returns a mailer instance.
<ide> *
<ide> * @param string $name Mailer's name.
<del> * @param Cake\Mailer\Email|null $email Email instance.
<del> * @return Cake\Mailer\Mailer
<del> * @throws Cake\Mailer\Exception\M... | 2 |
Python | Python | detect failed auth for vps.net | 7b28b2d0d26bb8dde77da3c8aa8b9f9557dda490 | <ide><path>libcloud/drivers/vpsnet.py
<ide> VPS.net driver
<ide> """
<ide> from libcloud.providers import Provider
<del>from libcloud.types import NodeState
<add>from libcloud.types import NodeState, InvalidCredsException
<ide> from libcloud.base import Node, Response, ConnectionUserAndKey, NodeDriver, NodeSize, NodeIm... | 1 |
Javascript | Javascript | handle enoent correctly on windows | 323120b5c943c0ec04c482c4414c23c01a27f4fc | <ide><path>lib/child_process.js
<ide> ChildProcess.prototype.spawn = function(options) {
<ide> if (stdio.handle) {
<ide> // when i === 0 - we're dealing with stdin
<ide> // (which is the only one writable pipe)
<del> stdio.socket = createSocket(stdio.handle, i > 0);
<add> stdio.socket = create... | 1 |
Javascript | Javascript | use promises for async tests | b0b4a1a96fe512c339d76082a181f2907012792f | <ide><path>packages/ember-application/tests/system/visit_test.js
<ide> import EmberObject from 'ember-runtime/system/object';
<ide> import isEnabled from 'ember-metal/features';
<ide> import inject from 'ember-runtime/inject';
<ide> import run from 'ember-metal/run_loop';
<add>import { onerrorDefault } from 'ember-runt... | 1 |
PHP | PHP | add some default context to logs if we know it | 23b7d6b45c675bcd93e9f1fb9cd33e71779142c6 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> use Psr\Log\LoggerInterface;
<ide> use Illuminate\Http\Response;
<ide> use Illuminate\Routing\Router;
<add>use Illuminate\Support\Facades\Auth;
<ide> use Illuminate\Http\RedirectResponse;
<ide> use Illuminate\Auth\AuthenticationException;
<ide> use Illum... | 1 |
Javascript | Javascript | remove error 'stack' property changes | 7e916455b36dc9ca4d4afc1e44cade90006d00e3 | <ide><path>src/ngMock/angular-mocks.js
<ide> if(window.jasmine || window.mocha) {
<ide> *
<ide> * @param {...Function} fns any number of functions which will be injected using the injector.
<ide> */
<add>
<add>
<add>
<add> var ErrorAddingDeclarationLocationStack = function(e, errorForStack) {
<add> this.me... | 2 |
PHP | PHP | remove uneeded instances of set | fb066272d76243f3b89b343bb1a2a2d7ba2a1536 | <ide><path>lib/Cake/Console/Command/AclShell.php
<ide> use Cake\Controller\Component\AclComponent;
<ide> use Cake\Core\Configure;
<ide> use Cake\Utility\Hash;
<del>use Cake\Utility\Set;
<ide>
<ide> /**
<ide> * Shell for ACL management. This console is known to have issues with zend.ze1_compatibility_mode
<ide><path>... | 23 |
Javascript | Javascript | remove assert message and add block scope | 1ebd966d2cef9d026b947c3c36d49c9989a60701 | <ide><path>test/parallel/test-crypto-binary-default.js
<ide> assert.throws(function() {
<ide> }, /^Error: not enough data$/);
<ide>
<ide> // Test HMAC
<del>const hmacHash = crypto.createHmac('sha1', 'Node')
<del> .update('some data')
<del> .update('to hmac')
<del> ... | 1 |
Python | Python | fix env command in fabfile | fd816bbd1b6ed16cdc9ecbc022cd20153962189d | <ide><path>fabfile.py
<ide> def wrapped_local(cmd, env_vars=[]):
<ide>
<ide>
<ide> def env(lang='python2.7'):
<del> if path.exists(VENV_DIR):
<add> if VENV_DIR.exists():
<ide> local('rm -rf {env}'.format(env=VENV_DIR))
<ide> local('pip install virtualenv')
<ide> local('python -m virtualenv -p {l... | 1 |
Javascript | Javascript | fix global table of content active element | 79ea22a531c8446710b43df5f6eeb0497719f302 | <ide><path>tools/doc/html.js
<ide> function toHTML({ input, content, filename, nodeVersion, versions }) {
<ide> .replace(/__VERSION__/g, nodeVersion)
<ide> .replace('__TOC__', content.toc)
<ide> .replace('__GTOC__', gtocHTML.replace(
<del> ... | 1 |
Javascript | Javascript | remove unused properties | 8ca5749ff98a9cad88467b0d57a117b5c987ceb7 | <ide><path>packages/next-server/server/render.js
<ide> export function renderToHTML (req, res, pathname, query, opts) {
<ide> return doRender(req, res, pathname, query, opts)
<ide> }
<ide>
<del>export function renderErrorToHTML (err, req, res, pathname, query, opts = {}) {
<del> return doRender(req, res, pathname, ... | 1 |
Ruby | Ruby | require active_support at the railties | 0bef6ff9af6be8d0def825a09188697526f7dae2 | <ide><path>activesupport/lib/active_support/i18n_railtie.rb
<add>require "active_support"
<ide> require "active_support/file_update_checker"
<ide> require "active_support/core_ext/array/wrap"
<ide>
<ide><path>activesupport/lib/active_support/railtie.rb
<add>require "active_support"
<ide> require "active_support/i18n_r... | 2 |
PHP | PHP | support multiple addresses in array | 64f6f170e9c8f61dd61ef6f75aae633f9547b8b9 | <ide><path>src/Illuminate/Notifications/Messages/MailMessage.php
<ide>
<ide> namespace Illuminate\Notifications\Messages;
<ide>
<add>use Traversable;
<add>use Illuminate\Contracts\Support\Arrayable;
<add>
<ide> class MailMessage extends SimpleMessage
<ide> {
<ide> /**
<ide> public function from($address, $name = ... | 2 |
Go | Go | update testswarmnetworkplugin test | 2cc2d059ded77c4c5afa6704194cae5bc0c64cf5 | <ide><path>integration-cli/docker_cli_swarm_test.go
<ide> func (s *DockerSwarmSuite) TestSwarmNetworkPlugin(c *check.C) {
<ide> d := s.AddDaemon(c, true, true)
<ide>
<ide> out, err := d.Cmd("network", "create", "-d", globalNetworkPlugin, "foo")
<del> c.Assert(err, checker.IsNil)
<del> c.Assert(strings.TrimSpace(out)... | 1 |
PHP | PHP | fix datetime typehints | 02623f89912017f4dcea3c040139544bb74c14fa | <ide><path>src/Illuminate/Contracts/Mail/Mailable.php
<ide> public function queue(Queue $queue);
<ide> /**
<ide> * Deliver the queued message after the given delay.
<ide> *
<del> * @param \DateTime|int $delay
<add> * @param \DateTimeInterface|\DateInterval|int $delay
<ide> * @param \Illu... | 3 |
Javascript | Javascript | add the tutorial collection to gdocs.js | 9701f0735b31661cc58f4a9ae8077bf6de17302e | <ide><path>gdocs.js
<ide> var fs = require('fs');
<ide> var collections = {
<ide> 'guide': 'http://docs.google.com/feeds/default/private/full/folder%3A0B9PsajIPqzmANGUwMGVhZmYtMTk1ZC00NTdmLWIxMDAtZGI5YWNlZjQ2YjZl/contents',
<ide> 'api': 'http://docs.google.com/feeds/default/private/full/folder%3A0B7Ovm8bUYiUDYjMwYT... | 1 |
PHP | PHP | fix a bunch of boo boo tests | eb762a14227924d16f8af5a6b4bb27cd5917135c | <ide><path>tests/Database/DatabaseEloquentIntegrationTest.php
<ide> <?php
<ide>
<ide> use Illuminate\Database\Connection;
<add>use Illuminate\Database\Capsule\Manager as DB;
<ide> use Illuminate\Database\Eloquent\Model as Eloquent;
<ide> use Illuminate\Database\Eloquent\Relations\Relation;
<ide> use Illuminate\Paginat... | 2 |
Javascript | Javascript | warn users when passing a weird object as options | b3bc5427969e15fd3663d9a1c57dbd1eb2c94805 | <ide><path>lib/webpack.js
<ide> function webpack(options, callback) {
<ide> return webpack(options);
<ide> }));
<ide> } else if(typeof options === "object") {
<add> if(!options.entry && !options.plugins) {
<add> throw new Error("Passed 'options' object don't look like a valid webpack configuration");
<add> }
... | 1 |
Javascript | Javascript | rerender link on routing state change | e189688d40c738ce3ccbdde39f336d50e6909432 | <ide><path>packages/ember-routing-views/lib/views/link.js
<ide> var LinkComponent = EmberComponent.extend({
<ide>
<ide> if (get(this, 'loading')) { return get(this, 'loadingHref'); }
<ide>
<add> targetRouteName = this._handleOnlyQueryParamsSupplied(targetRouteName);
<add>
<ide> var routing = get(this, '_ro... | 2 |
Python | Python | fix termination of asynloop | c06ae78bf6edd3ea7ed96aa2e3e541ef690ef6e7 | <ide><path>celery/worker/loops.py
<ide> import socket
<ide>
<ide> from celery import bootsteps
<del>from celery.exceptions import WorkerLostError, WorkerShutdown, WorkerTerminate
<add>from celery.exceptions import WorkerLostError
<ide> from celery.utils.log import get_logger
<ide>
<ide> from . import state
<ide> def ... | 4 |
PHP | PHP | fix malformed dataproviders | ad124a3260641e0c0f129544cc92df83d4a03105 | <ide><path>tests/TestCase/Controller/Component/CsrfComponentTest.php
<ide> public function testSettingCookie()
<ide> public static function safeHttpMethodProvider()
<ide> {
<ide> return [
<del> ['GET', 'HEAD']
<add> ['GET'],
<add> ['HEAD'],
<ide> ];
<ide> }
<... | 5 |
Ruby | Ruby | include missing modules | d92e8554921b7ab1906fd657325f395413cbdb30 | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> module Redirecting
<ide> extend ActiveSupport::Concern
<ide>
<ide> include AbstractController::Logger
<add> include ActionController::RackDelegation
<ide> include ActionController::UrlFor
<ide>
<ide> # Redirects the browser to t... | 3 |
PHP | PHP | add afterloadingenvironment() test | daa6894a628f596f79edf861ef4f11ba69ef2be4 | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testEnvironment()
<ide> $this->assertFalse($app->environment('qux', 'bar'));
<ide> $this->assertFalse($app->environment(['qux', 'bar']));
<ide> }
<add>
<add> public function testMethodAfterLoadingEnvironmentAddsClo... | 1 |
Ruby | Ruby | move softwarespec to a separate file | a31fcb554c1c1ca247bf10073a8c2425afe19a82 | <ide><path>Library/Homebrew/formula.rb
<ide> require 'build_environment'
<ide> require 'build_options'
<ide> require 'formulary'
<add>require 'software_spec'
<ide>
<ide>
<ide> class Formula
<ide><path>Library/Homebrew/formula_support.rb
<del>require 'download_strategy'
<del>require 'checksum'
<del>require 'version'
<... | 4 |
Javascript | Javascript | compute flat normals when detail is zero | cd71783f755a3c2f79e496a0a874a0c2cc522d0b | <ide><path>src/geometries/PolyhedronGeometry.js
<ide> function PolyhedronBufferGeometry( vertices, indices, radius, detail ) {
<ide> this.addAttribute( 'position', new Float32BufferAttribute( vertexBuffer, 3 ) );
<ide> this.addAttribute( 'normal', new Float32BufferAttribute( vertexBuffer.slice(), 3 ) );
<ide> this.a... | 1 |
Python | Python | prepare new pypi release | 9cf7f816f28a6ac7d7a4264ae015addd72e57321 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '2.0.0'
<add>__version__ = '2.0.1'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='2.0.0',
<add> version='2.0.1',
<ide> description='Deep Learning for Python'... | 2 |
Ruby | Ruby | use rails.root in railties tests | 01e04a446c801af88a1bb0315efffc775a00eedf | <ide><path>railties/test/generators/actions_test.rb
<ide> def test_gem_with_lib_option_set_to_false_should_put_gem_dependency_in_enviromen
<ide>
<ide> def test_environment_should_include_data_in_environment_initializer_block
<ide> run_generator
<del> load_paths = 'config.load_paths += %w["#{RAILS_ROOT}/app/ex... | 3 |
Text | Text | add mildsunrise to collaborators | c399e2664b9939a8b803f11062a2499293300793 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Matteo Collina** <matteo.collina@gmail.com> (he/him)
<ide> * [mhdawson](https://github.com/mhdawson) -
<ide> **Michael Dawson** <michael_dawson@ca.ibm.com> (he/him)
<add>* [mildsunrise](https://github.com/mil... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.