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 |
|---|---|---|---|---|---|
Ruby | Ruby | remove unreachable code | f1df7f208fdb5afc1bf4f25320db1bef4efc0a99 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def info_formula f
<ide>
<ide> c = Caveats.new(f)
<ide> ohai 'Caveats', c.caveats unless c.empty?
<del>
<del> rescue FormulaUnavailableError
<del> # check for DIY installation
<del> d = HOMEBREW_PREFIX+name
<del> if d.directory?
<del> ohai "DIY Insta... | 1 |
Javascript | Javascript | replace lookbehind in transformeditorlink | 96e8dbc58f674629ece17675cfa1f04e6fce81d0 | <ide><path>client/src/templates/Challenges/utils/index.js
<ide> export function isGoodXHRStatus(status) {
<ide> export function transformEditorLink(url) {
<ide> return url
<ide> .replace(
<del> /(?<=\/\/)(?<projectname>[^.]+)\.(?<username>[^.]+)\.repl\.co\/?/,
<del> 'replit.com/@$<username>/$<projectnam... | 1 |
Javascript | Javascript | change var to const in ./doc/html | 0808989d938b53035fb858b0e21e2984e991e7a0 | <ide><path>tools/doc/html.js
<ide> module.exports = toHTML;
<ide> const STABILITY_TEXT_REG_EXP = /(.*:)\s*(\d)([\s\S]*)/;
<ide>
<ide> // customized heading without id attribute
<del>var renderer = new marked.Renderer();
<add>const renderer = new marked.Renderer();
<ide> renderer.heading = function(text, level) {
<ide>... | 1 |
Go | Go | remove some unused global variables | 58ad9177d7454893b4b5fca59e4b6b5b9e622308 | <ide><path>integration-cli/docker_cli_restart_test.go
<ide> func (s *DockerSuite) TestRestartAutoRemoveContainer(c *check.C) {
<ide>
<ide> out, _ = dockerCmd(c, "ps")
<ide> c.Assert(out, checker.Contains, id[:12], check.Commentf("container should be restarted instead of removed: %v", out))
<add>
<add> // Kill the co... | 4 |
Go | Go | fix typo creats into creates in comments | 0d459f5ed3138f6273c4f10d4796197faaf1ad2d | <ide><path>api/client/container/attach.go
<ide> type attachOptions struct {
<ide> container string
<ide> }
<ide>
<del>// NewAttachCommand creats a new cobra.Command for `docker attach`
<add>// NewAttachCommand creates a new cobra.Command for `docker attach`
<ide> func NewAttachCommand(dockerCli *client.DockerCli) *co... | 15 |
Mixed | Go | add documentation and update restart rules | 860c13b788944410a98a6ad5b5cfb74de0a8405b | <ide><path>daemon/monitor.go
<ide> import (
<ide> "github.com/docker/docker/utils"
<ide> )
<ide>
<add>const defaultTimeIncrement = 100
<add>
<ide> // containerMonitor monitors the execution of a container's main process.
<ide> // If a restart policy is specified for the cotnainer the monitor will ensure that the
<ide... | 3 |
PHP | PHP | remove unused local vars | 16be9d499094b1effad9ab61a80c28fa06438587 | <ide><path>lib/Cake/Console/Command/Task/TestTask.php
<ide> protected function _processModel($subject) {
<ide> }
<ide> if ($type == 'hasAndBelongsToMany') {
<ide> if (!empty($subject->hasAndBelongsToMany[$alias]['with'])) {
<del> list($plugin, $joinModel) = pluginSplit($subject->hasAndBelongsToMany[$alias... | 70 |
Python | Python | extend config with task specific configs. | ffa17fe322ecf57a10be80d4c328828ebd7c81f0 | <ide><path>src/transformers/configuration_utils.py
<ide> def __init__(self, **kwargs):
<ide> self.top_k = kwargs.pop("top_k", 50)
<ide> self.top_p = kwargs.pop("top_p", 1.0)
<ide> self.repetition_penalty = kwargs.pop("repetition_penalty", 1.0)
<del> self.bos_token_id = kwargs.pop("bos_tok... | 3 |
Javascript | Javascript | show webpack errors in all pages. | c97aca50e509fac66ef380f6435c556d25290d27 | <ide><path>lib/error.js
<ide> import React from 'react'
<ide> import PropTypes from 'prop-types'
<del>import exact from 'prop-types-exact'
<ide> import HTTPStatus from 'http-status'
<ide> import Head from './head'
<ide>
<ide> export default class Error extends React.Component {
<ide> return { statusCode }
<ide> ... | 3 |
Python | Python | fix a minor typo in the docstring | fdf220c4212f0743afabd7ff0bafcd3f0edc5ef9 | <ide><path>keras/preprocessing/timeseries.py
<ide> def timeseries_dataset_from_array(
<ide> sampling_rate: Period between successive individual timesteps
<ide> within sequences. For rate `r`, timesteps
<ide> `data[i], data[i + r], ... data[i + sequence_length]`
<del> are used for create a sample se... | 1 |
Python | Python | fix syntax error under python 3.2 | 6010b5360f9cb228c19e1d1f85e1b63a11ec6d35 | <ide><path>django/utils/functional.py
<ide> def memoize(func, cache, num_args):
<ide>
<ide> Only the first num_args are considered when creating the key.
<ide> """
<del> warnings.warn(u"memoize wrapper is deprecated and will be removed in "
<del> u"Django 1.9. Use django.utils.lru_cache ins... | 1 |
Javascript | Javascript | ignore null, undefined, and nan is dimension() | 68ad48d8e82b874f0cbe8975cd88cac042ae3b88 | <ide><path>src/js/component.js
<ide> vjs.Component.prototype.dimensions = function(width, height){
<ide> * @private
<ide> */
<ide> vjs.Component.prototype.dimension = function(widthOrHeight, num, skipListeners){
<del> if (num !== undefined) {
<add> if (num !== undefined && num !== null && !vjs.isNaN(num)) {
<ide>
... | 3 |
Text | Text | update information about language | be2893e32336cfe3253ed1cbd760563386d9ab9e | <ide><path>docs/how-to-work-on-coding-challenges.md
<ide> function myFunc() {
<ide>
<ide> Before you [create a pull request](how-to-open-a-pull-request.md) for your changes, you need to validate that the changes you have made do not inadvertently cause problems with the challenge.
<ide>
<del>> [!WARNING]
<del>> In t... | 1 |
Javascript | Javascript | add regression tests for vm bugs | 1ef38e9fed540efd19102589ed02ac6d6c306cd6 | <ide><path>test/known_issues/test-vm-global-non-writable-properties.js
<add>'use strict';
<add>// https://github.com/nodejs/node/issues/10223
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const vm = require('vm');
<add>
<add>const ctx = vm.createContext();
<add>vm.runInContext('Object.def... | 2 |
Python | Python | remove filter dilation from separableconv2d | 16e8b93d3852958aa7d28bb127de34681136c5b0 | <ide><path>keras/layers/convolutional.py
<ide> class SeparableConv2D(Conv2D):
<ide> It defaults to the `image_data_format` value found in your
<ide> Keras config file at `~/.keras/keras.json`.
<ide> If you never set it, then it will be "channels_last".
<del> dilation_rate: an ... | 2 |
Ruby | Ruby | convert cleaner test to spec | 8bea5de173a279cd094b1551760b67f4ba21aa7b | <ide><path>Library/Homebrew/test/cleaner_spec.rb
<add>require "cleaner"
<add>require "formula"
<add>
<add>describe Cleaner do
<add> include FileUtils
<add>
<add> subject { described_class.new(f) }
<add> let(:f) { formula("cleaner_test") { url "foo-1.0" } }
<add>
<add> before(:each) do
<add> f.prefix.mkpath
<add>... | 2 |
Python | Python | provide option to run generators on main thread | ce80cd1c85eee49de8e647124b5a87b6ea55ffe6 | <ide><path>keras/engine/training.py
<ide> def fit_generator(self,
<ide> If unspecified, `max_queue_size` will default to 10.
<ide> workers: Integer. Maximum number of processes to spin up
<ide> when using process based threading.
<del> If unspecified, `workers`... | 2 |
Text | Text | add reason for using nodejs | fc8f1b5a39bd48c0dd6c9a138981200db8421b21 | <ide><path>guide/english/nodejs/index.md
<ide> When the timer completes it's execution taking 5 seconds, it calls the function
<ide> 1. Great for beginners. JavaScript is a beginner friendly language.
<ide> 2. Great supportive community and massive amount of modules (Express, Grunt, etc).
<ide> 3. Wide range of hosting... | 1 |
Javascript | Javascript | remove deprecated functionality | 6a1cc57e9380fedb9b3b9eadd37ac06cfb5267c2 | <ide><path>packages/ember-metal/lib/accessors.js
<ide> var meta = Ember.meta;
<ide> var get, set;
<ide>
<ide> /** @private */
<del>get = function get(obj, keyName) {
<add>var basicGet = function get(obj, keyName) {
<ide> var ret = obj[keyName];
<ide> if (ret !== undefined) { return ret; }
<ide>
<ide> get = functi... | 7 |
Text | Text | add note about higher/lower-level transition apis | 76496b3cca508105816c0497c305dc41b5633be4 | <ide><path>docs/docs/09.1-animation.md
<ide> You'll notice that when you try to remove an item `ReactCSSTransitionGroup` keep
<ide>
<ide> You can disable animating `enter` or `leave` animations if you want. For example, sometimes you may want an `enter` animation and no `leave` animation, but `ReactCSSTransitionGroup`... | 1 |
Text | Text | clarify key binding a bit | a650635c9708767772648572ea7ec1be361313a7 | <ide><path>docs/getting-started.md
<ide> operate on the whole buffer.
<ide>
<ide> ### Split Panes
<ide>
<del>You can split any editor pane horizontally or vertically by using `ctrl-w v,
<del>ctrl-|`. Once you have a split pane, you can move focus between them with
<del>`ctrl-tab`. To close a pane, close all tabs insi... | 1 |
Javascript | Javascript | evaluate delegate selectors at add time | 7fd36ea145a11d5896de6d064b546b1c57a83f34 | <ide><path>src/event.js
<ide> jQuery.event = {
<ide> selector = handleObjIn.selector;
<ide> }
<ide>
<add> // If the selector is invalid, throw any exceptions at attach time
<add> if ( selector ) {
<add> jQuery.find( selector, elem );
<add> }
<add>
<ide> // Make sure that the handler has a unique ID, used t... | 2 |
Javascript | Javascript | create prepare-hermes-for-build.js script | 6c2e34be0b734cd59a6f114746b229291439ffb8 | <ide><path>scripts/hermes/prepare-hermes-for-build.js
<add>/**
<add> * Copyright (c) Meta Platforms, Inc. and affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> */
<add>
<add>'use stric... | 1 |
Javascript | Javascript | remove unnecessary check for globals | 5f33521be529cc7046d517e54fa93a5a220c40c7 | <ide><path>lib/repl.js
<ide> REPLServer.prototype.complete = function(line, callback) {
<ide> completionGroupsLoaded();
<ide> } else {
<ide> this.eval('.scope', this.context, 'repl', function(err, globals) {
<del> if (err || !globals || !Array.isArray(globals)) {
<add> ... | 1 |
Javascript | Javascript | add info about `defaults.cache` | 637d3b47d191eb9353531abfdc9f5460e0eff5ba | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> *
<ide> * Object containing default values for all {@link ng.$http $http} requests.
<ide> *
<add> * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`}
<add> * that will provide the cache for all ... | 1 |
Text | Text | fix 80 char. error | ca0885729df52698264dd10ba403eb8ab88d9642 | <ide><path>README.md
<ide> Want to hack on Docker? Awesome! There are instructions to get you
<ide> started [here](CONTRIBUTING.md). If you'd like to contribute to the
<ide> documentation, please take a look at this [README.md](https://github.com/docker/docker/blob/master/docs/README.md).
<ide>
<del>These instructions... | 1 |
PHP | PHP | fix failing test | d3f9cc10b5156ebb98cc30bc42bb3de7a2ed2e28 | <ide><path>lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
<ide> class ControllerPaginateModel extends CakeTestModel {
<ide> /**
<ide> * paginate method
<ide> *
<del> * @return void
<add> * @return boolean
<ide> */
<ide> public function paginate($conditions, $fields, $order, $limit, $page, $recur... | 1 |
Text | Text | add changelog for in empty array | 54f3e67172247b57379ec84b489e892620b743a5 | <ide><path>activerecord/CHANGELOG.md
<add>* `where(attr => [])` now loads an empty result without making a query.
<add>
<add> *John Hawthorn*
<add>
<ide> * Fixed the performance regression for `primary_keys` introduced MySQL 8.0.
<ide>
<ide> *Hiroyuki Ishii* | 1 |
PHP | PHP | add multiple responses and response clearing | 3f2ff0136a2d977f21a375ccdeedce02d55468a5 | <ide><path>src/Http/Client.php
<ide> class Client implements ClientInterface
<ide> /**
<ide> * Mock adapter for stubbing requests in tests.
<ide> *
<del> * @var \Cake\Http\Client\Adapter\Mock
<add> * @var \Cake\Http\Client\Adapter\Mock|null
<ide> */
<ide> protected static $_mockAdapter;
<... | 3 |
Ruby | Ruby | treat timingsafe_bcmp as weak on 10.11 | e26750e11290f6b299fcbf8419ac051a985e0e1a | <ide><path>Library/Homebrew/extend/os/mac/extend/ENV/super.rb
<ide> def setup_build_environment(formula = nil)
<ide> # can't reliably figure this out with Xcode 8 on its own yet.
<ide> if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
<ide> %w[basename_r clock_getres ... | 1 |
Ruby | Ruby | remove unnecessary tap | af02b9b78f7b735345a891222532d32caf871520 | <ide><path>activestorage/test/models/attached/many_test.rb
<ide> class ActiveStorage::ManyAttachedTest < ActiveSupport::TestCase
<ide> end
<ide>
<ide> test "replacing existing, independent attachments on an existing record via assign and attach" do
<del> [ create_blob(filename: "funky.mp4"), create_blob(filenam... | 1 |
Python | Python | add rokenizer test for zero length string | 363473aeed5a4ced383f6c6b14d280b15c9c5db9 | <ide><path>tests/test_tokenizer.py
<ide> def EN():
<ide> return English().tokenizer
<ide>
<add>def test_no_word(EN):
<add> tokens = EN(u'')
<add> assert len(tokens) == 0
<add>
<ide> def test_single_word(EN):
<ide> tokens = EN(u'hello')
<ide> assert tokens[0].orth_ == 'hello' | 1 |
Ruby | Ruby | remove code for ruby 1.8.x support | a1cffa6d5849b45f439be62742ccca1633dfc9bd | <ide><path>actionpack/lib/action_dispatch/journey/router/utils.rb
<ide> module UriEscape
<ide> safe_pchar = "#{URI::REGEXP::PATTERN::UNRESERVED}#{reserved_pchar}"
<ide> safe_segment = "#{safe_pchar}#{reserved_segment}"
<ide> safe_fragment = "#{safe_pchar}#{reserved_fragment}"
<del> ... | 1 |
Text | Text | fix shadow props | 3c9092acf39ecdb7c137a3cb0d4282694e95cbf5 | <ide><path>docs/shadow-props.md
<ide> title: Shadow Props
<ide> layout: docs
<ide> category: APIs
<ide> permalink: docs/shadow-props.html
<del>next: view-props
<add>next: view
<ide> previous: layout-props
<ide> ---
<ide> ### Props | 1 |
Text | Text | add contributor agreement | dba6adea6513b3b840e8eef2aa9632e2ffa6edbc | <ide><path>.github/contributors/fucking-signup.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or pro... | 1 |
Python | Python | improve autoencoder check | 8a2ae93ba745fc69f130a42a6a2a79464cdc468f | <ide><path>tests/manual/check_autoencoder.py
<ide> from keras.layers.core import Layer
<ide> from keras.layers import containers
<ide> from keras.utils import np_utils
<del>
<ide> import numpy as np
<ide>
<del># Try different things here: 'lstm' or 'classical' or 'denoising'
<del># or 'deep_denoising'
<del>autoencoder... | 1 |
Text | Text | fix syntaxerror in guides sample code | f573df32d43c413a5098721ba6151ff190c23c6c | <ide><path>guides/source/active_record_querying.md
<ide> Post.order('id DESC').limit(20).unscope(:order, :limit) = Post.all
<ide> You can additionally unscope specific where clauses. For example:
<ide>
<ide> ```ruby
<del>Post.where(id: 10).limit(1).unscope(where: :id, :limit).order('id DESC') = Post.order('id DESC')
<... | 1 |
Python | Python | call delete_dag on subdag without attributeerror | 3b91ec9b4a1168a16afa0b281bd673860485b3ac | <ide><path>airflow/api/common/experimental/delete_dag.py
<ide> def delete_dag(dag_id: str, keep_records_in_log: bool = True, session=None) -> i
<ide> count += session.query(model).filter(cond).delete(synchronize_session='fetch')
<ide> if dag.is_subdag:
<ide> parent_dag_id, task_id = dag_id.rspli... | 2 |
Go | Go | fix regression in /etc/hosts | f3685333c0fdea58c8e6adbc93c95ebbc4a9fa47 | <ide><path>container.go
<ide> func ParseRun(args []string, capabilities *Capabilities) (*Config, *HostConfig,
<ide> }
<ide>
<ide> config := &Config{
<del> Hostname: *flHostname,
<add> Hostname: hostname,
<ide> Domainname: domainname,
<ide> PortSpecs: nil, // Deprecated
<ide> ExposedP... | 1 |
Javascript | Javascript | throw an error when trying to use [chunkhash] | 02522f11c3a5883bf55f27a412727b98404720c9 | <ide><path>lib/ChunkRenderError.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add> Author Tobias Koppers @sokra
<add>*/
<add>function ChunkRenderError(chunk, file, error) {
<add> Error.call(this);
<add> Error.captureStackTrace(this, ChunkRenderError);
<add> this.name = "ChunkRenderErr... | 8 |
Javascript | Javascript | add support for gltf emission textures | b2fba537f0e0103efebbef9813313fa7ee5e6a11 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> materialParams.emissive = new THREE.Color().fromArray( materialValues.emission );
<ide>
<add> } else if ( typeof( materialValues.emission ) === 'string' ) {
<add>
<add> materialParams.map = dependencies.textu... | 1 |
Javascript | Javascript | assign missing deprecation code | f5f8a18831daa22ca6dcb1ec0b516ee5e1311bf8 | <ide><path>lib/internal/worker.js
<ide> class Worker extends EventEmitter {
<ide> process.emitWarning(
<ide> 'Passing a callback to worker.terminate() is deprecated. ' +
<ide> 'It returns a Promise instead.',
<del> 'DeprecationWarning', 'DEP0XXX');
<add> 'DeprecationWarning', 'DEP013... | 2 |
Ruby | Ruby | remove `@etag` ivar | 53265e88067084855753522256b86568fdad5b0c | <ide><path>actionpack/lib/action_dispatch/http/cache.rb
<ide> def fresh?(response)
<ide> end
<ide>
<ide> module Response
<del> attr_reader :cache_control, :etag
<del> alias :etag? :etag
<add> attr_reader :cache_control
<ide>
<ide> def last_modified
<ide> if last = ge... | 1 |
Text | Text | update citation in readme.md | 7512243a8dc5d57a3115bf69c9ab70ef7eb59324 | <ide><path>im2txt/README.md
<ide> # Show and Tell: A Neural Image Caption Generator
<ide>
<del>A TensorFlow implementation of the image-to-text model described in
<add>A TensorFlow implementation of the image-to-text model described in the paper:
<ide>
<del>*Show and Tell: A Neural Image Caption Generator*
<add>"Show... | 1 |
PHP | PHP | remove unnecessary check | 3bf75151b8983b76bef1c7ae0c544dd432d56040 | <ide><path>src/Controller/Component/AuthComponent.php
<ide> public function startup(Event $event) {
<ide> return;
<ide> }
<ide>
<del> $result = $this->_unauthorized($controller);
<del> if ($result instanceof Response) {
<del> $event->stopPropagation();
<del> }
<del> return $result;
<add> $event->stopPropag... | 1 |
Javascript | Javascript | make unwatchfile() insensitive to path | 1317032c9738790362b8e1bdd3638f1368b00188 | <ide><path>lib/fs.js
<ide> function inStatWatchers(filename) {
<ide>
<ide> fs.watchFile = function(filename) {
<ide> nullCheck(filename);
<add> filename = pathModule.resolve(filename);
<ide> var stat;
<ide> var listener;
<ide>
<ide> fs.watchFile = function(filename) {
<ide>
<ide> fs.unwatchFile = function(fil... | 2 |
PHP | PHP | fix white space | cc148714b51b56e5eb4701deea8d3be8dcb8e1b6 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphPivot.php
<ide> public function setMorphType($morphType)
<ide> */
<ide> public function setMorphClass($morphClass)
<ide> {
<del> $this->morphClass = $morphClass;
<add> $this->morphClass = $morphClass;
<ide>
<del> return $this;
<add> return $this;
<id... | 1 |
Javascript | Javascript | fix comment about safari shortfalls | 451d0c37d9297598743b1372bf623d4b7d38e951 | <ide><path>src/core.js
<ide> jQuery.extend({
<ide> if ( obj == null ) {
<ide> return String( obj );
<ide> }
<del> // Support: Safari <5.1 (functionish RegExp)
<add> // Support: Safari <=5.1 (functionish RegExp)
<ide> return typeof obj === "object" || typeof obj === "function" ?
<ide> class2type[ core_toSt... | 1 |
Text | Text | add readme for daemon directory | b175b4dd434f6b16c0966d9c62be3d63cc8238bd | <ide><path>daemon/README.md
<add>This directory contains code pertaining to running containers and storing images
<add>
<add>Code pertaining to running containers:
<add>
<add> - execdriver
<add> - networkdriver
<add>
<add>Code pertaining to storing images:
<add>
<add> - graphdriver | 1 |
Javascript | Javascript | move lazy compile specs into a describe block | 00778aa239266c46d3f539a0c19b8a26cb2d7869 | <ide><path>test/ng/compileSpec.js
<ide> describe('$compile', function() {
<ide> }));
<ide>
<ide>
<del> // See https://github.com/angular/angular.js/issues/7183
<del> it("should pass transclusion through to template of a 'replace' directive", function() {
<del> module(function() {
<del> directive... | 1 |
Javascript | Javascript | add start property that is used by the <ol> tag | 5c9d616735c4c5c31fb68b789c8c6f3afeae9592 | <ide><path>src/browser/ui/dom/DOMProperty.js
<ide> var DOMPropertyInjection = {
<ide> MUST_USE_PROPERTY: 0x2,
<ide> HAS_SIDE_EFFECTS: 0x4,
<ide> HAS_BOOLEAN_VALUE: 0x8,
<del> HAS_POSITIVE_NUMERIC_VALUE: 0x10,
<add> HAS_NUMERIC_VALUE: 0x10,
<add> HAS_POSITIVE_NUMERIC_VALUE: 0x20 | 0x10,
<ide>
<ide> /**
<ide>... | 3 |
Javascript | Javascript | remove redundant github auth | 503d6ada8a8ad3560d96bedd9d1fa516dd5a394e | <ide><path>config/passport.js
<ide> var _ = require('lodash'),
<ide> OAuthStrategy = require('passport-oauth').OAuthStrategy,
<ide> OAuth2Strategy = require('passport-oauth').OAuth2Strategy,
<ide> User = require('../models/User'),
<add> nodemailer = require('nodemailer'),
<ide> secrets = require('./s... | 1 |
Go | Go | add freezer stats | bce49dff0d46dec620e755ed859efa791054a843 | <ide><path>pkg/cgroups/fs/freezer.go
<ide> package fs
<ide>
<ide> import (
<add> "fmt"
<ide> "github.com/dotcloud/docker/pkg/cgroups"
<add> "io/ioutil"
<add> "os"
<add> "path/filepath"
<add> "strconv"
<add> "strings"
<ide> )
<ide>
<ide> type freezerGroup struct {
<ide> func (s *freezerGroup) Remove(d *data) error {
... | 1 |
Java | Java | fix tests in rxjava-math | 88679528fa96c0b0dbeb0da14f35566279fde8ff | <ide><path>rxjava-contrib/rxjava-math/src/test/java/rx/math/operators/OperationMinMaxTest.java
<ide> import java.util.Arrays;
<ide> import java.util.Comparator;
<ide> import java.util.List;
<add>import java.util.NoSuchElementException;
<ide>
<ide> import org.junit.Test;
<ide> import org.mockito.InOrder;
<ide> public v... | 1 |
Text | Text | fix mapping of content | b69a6c3214800dafb4d467e8181dfaeb4f98ab4f | <ide><path>guides/source/active_record_basics.md
<ide> of two or more words, the model class name should follow the Ruby conventions,
<ide> using the CamelCase form, while the table name must contain the words separated
<ide> by underscores. Examples:
<ide>
<del>* Database Table - Plural with underscores separating wo... | 1 |
Text | Text | remove non-style information from style guide | f51067a85d64b77f2eae2e099092209156d6e602 | <ide><path>doc/STYLE_GUIDE.md
<ide> * The formatting described in `.editorconfig` is preferred.
<ide> * A [plugin][] is available for some editors to automatically apply these
<ide> rules.
<del>* Mechanical issues, like spelling and grammar, should be identified by tools,
<del> insofar as is possible. If not cau... | 2 |
Ruby | Ruby | convert encoding before escaping | 8aaed3d456bad8a0bdf4789b69b41f7d817f981c | <ide><path>activesupport/lib/active_support/json.rb
<ide> module Encoding #:nodoc:
<ide> }
<ide>
<ide> def self.escape(string)
<del> json = '"' + string.gsub(escape_regex) { |s| ESCAPED_CHARS[s] }
<del> json.force_encoding('ascii-8bit') if respond_to?(:force_encoding)
<del> json.gsub(/... | 1 |
Ruby | Ruby | fix ci failure on ruby master | df9b61f38f1eeb750da2c95a503563783b4bc04f | <ide><path>activerecord/test/cases/migration/command_recorder_test.rb
<ide> def test_invert_change_table
<ide> t.rename :kind, :cultivar
<ide> end
<ide> end
<del> assert_equal [
<del> [:rename_column, [:fruits, :cultivar, :kind]],
<del> [:remove_column, [:fruits, :... | 1 |
PHP | PHP | update detectslostconnections.php | 13546a703c210298517b25307647778d4fe3ab9f | <ide><path>src/Illuminate/Database/DetectsLostConnections.php
<ide> protected function causedByLostConnection(Throwable $e)
<ide> 'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
<ide> 'SQLSTATE[HY000] [2002] Connection timed out',
<ide> 'SSL: Connection timed out... | 1 |
Ruby | Ruby | improve receipt check | e04e23492cd011cb0073f9bd5614bdce8e03b39e | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def build
<ide> raise "Suspicious installation failure" unless $?.success?
<ide>
<ide> # Write an installation receipt (a Tab) to the prefix
<del> Tab.for_install(f, args).write if f.prefix.exist?
<add> Tab.for_install(f, args).write if f.ins... | 1 |
Text | Text | add more tools to 更多信息 | 525a20ab6617e0cc126a88ae8b6f694c2adb2851 | <ide><path>guide/chinese/css/colors/index.md
<ide> body {
<ide>
<ide> #### 更多信息:
<ide>
<del>[Adobe Color CC](https://color.adobe.com/) [Chrome网上应用店中的ColorPick Eyedropper](https://chrome.google.com/webstore/detail/colorpick-eyedropper/ohcpnigalekghcmgcdcenkpelffpdolg?hl=en) [适用于Firefox的ColorZilla插件](https://addons.moz... | 1 |
Ruby | Ruby | remove the country_select helper | 2d27b82d4cf446543539ad20afcbad256d8aeff7 | <ide><path>actionpack/lib/action_view/helpers.rb
<ide> module ClassMethods
<ide> include CaptureHelper
<ide> include DateHelper
<ide> include DebugHelper
<del> include FormCountryHelper
<ide> include FormHelper
<ide> include FormOptionsHelper
<ide> include FormTagHelper
<ide><path>actionpack/... | 4 |
Go | Go | reuse subsystems mountpoints between checks | 781a33b6e77a122f2a171a941da3a1798fc73c27 | <ide><path>pkg/sysinfo/sysinfo_linux.go
<ide> package sysinfo
<ide>
<ide> import (
<add> "fmt"
<ide> "io/ioutil"
<ide> "os"
<ide> "path"
<ide> const (
<ide> SeccompModeFilter = uintptr(2)
<ide> )
<ide>
<add>func findCgroupMountpoints() (map[string]string, error) {
<add> cgMounts, err := cgroups.GetCgroupMounts()
... | 1 |
Javascript | Javascript | update vrmlloader to support normals. | 39f09176735e00ceba688722c6fc2843a919d5c4 | <ide><path>examples/js/loaders/VRMLLoader.js
<ide> THREE.VRMLLoader.prototype = {
<ide> break;
<ide>
<ide> case 'point':
<add> case 'vector':
<ide> scope.recordingFieldname = fieldName;
<ide> scope.isRecordingPoints = true;
<ide> scope.points = [];
<ide> THREE.VRMLLoader.prototype = {
... | 1 |
Python | Python | add iteration setter to lossscaleoptimizer | e5922a2cd37d14c1e427fb7ab5ab087439d5f3fa | <ide><path>keras/mixed_precision/loss_scale_optimizer.py
<ide> def from_config(cls, config, custom_objects=None):
<ide> def iterations(self):
<ide> return self._optimizer.iterations
<ide>
<add> @iterations.setter
<add> def iterations(self, variable):
<add> self._optimizer.iterations = variable
<add>
<ide> ... | 1 |
Javascript | Javascript | improve process.env benchmarks | 82ebcb37d6e01417bc729b8a9a949c7926d0c351 | <ide><path>benchmark/process/bench-env.js
<ide> const common = require('../common');
<ide>
<ide> const bench = common.createBenchmark(main, {
<del> n: [1e5],
<add> n: [1e6],
<add> operation: ['get', 'set', 'enumerate', 'query', 'delete']
<ide> });
<ide>
<ide>
<del>function main({ n }) {
<del> bench.start();
<del... | 2 |
Javascript | Javascript | fix orf/olf being undefined | 88fc6ecc5c5b7ed3c36e9baca74e9fbfa48a17c5 | <ide><path>src/core/core.tooltip.js
<ide> if (this._model.yAlign === 'center') {
<ide> lf = function(x) { return x <= midX; };
<ide> rf = function(x) { return x > midX; };
<del> olf = function(x) { return x + size.width > _this._chart.width; };
<del> orf = function(x) { return x - size.width < 0; };
<d... | 1 |
Ruby | Ruby | ignore `formulaunreadableerror` in `formula.each` | 8fb769e60c1ec4aa04582f640e426fd9a4d09c66 | <ide><path>Library/Homebrew/formula.rb
<ide> def self.full_names
<ide> # @private
<ide> def self.each
<ide> files.each do |file|
<del> yield begin
<del> Formulary.factory(file)
<del> rescue FormulaUnavailableError => e
<del> # Don't let one broken formula break commands. But do complain.... | 2 |
Javascript | Javascript | add logic for dynamically resolving script paths | ed501824e229260ef648f67f9e9a28860b2731f2 | <ide><path>lib/runtime/PublicPathRuntimeModule.js
<ide> class PublicPathRuntimeModule extends RuntimeModule {
<ide> * @returns {string} runtime code
<ide> */
<ide> generate() {
<del> return `${RuntimeGlobals.publicPath} = ${JSON.stringify(
<del> this.compilation.getPath(
<del> this.compilation.outputOptions.... | 1 |
PHP | PHP | use constructor chaining to reduce code | cc8b94715fcc153fcc6a295e38d2383ae445afbc | <ide><path>App/Config/app.php
<ide> * support is being used.
<ide> */
<ide> if (!class_exists('App\Controller\AppController')) {
<del> $loader = new \Cake\Core\ClassLoader($namespace, dirname(APP));
<del> $loader->register();
<del> unset($loader);
<add> (new \Cake\Core\ClassLoader($namespace, dirname(APP)))->register... | 1 |
Python | Python | add support for xlm-roberta (__init__) | d3549b66af6f225cace48f8462ba715508f51b0d | <ide><path>transformers/__init__.py
<ide> from .tokenization_albert import AlbertTokenizer
<ide> from .tokenization_camembert import CamembertTokenizer
<ide> from .tokenization_t5 import T5Tokenizer
<add>from .tokenization_xlm_roberta import XLMRobertaTokenizer
<ide>
<ide> # Configurations
<ide> from .configuration_ut... | 1 |
Ruby | Ruby | show permission changes in debug mode | 12d2900231a53f1f886736eb038e63e72822ef5d | <ide><path>Library/Homebrew/cleaner.rb
<ide> def clean_file_permissions path
<ide> else
<ide> 0444
<ide> end
<del> # Uncomment this block to show permission changes using brew install -v
<del> # if ARGV.verbose?
<del> # old_perms = path.stat.mode
<del> # if perms != old_perms
<del> # ... | 1 |
Python | Python | improve readability for cntk tests | 94dbc3042f5a85b399f5ce2859d4e8fbafd235b9 | <ide><path>tests/keras/backend/backend_test.py
<ide> from keras.backend import cntk_backend as KC
<ide>
<ide> BACKENDS = [KTH, KTF, KC]
<add># for special test cases of CNTK which treat dynamic axis
<add>KCSD = 'CNTK_single_tensor_dynamicity'
<add>KCTD = 'CNTK_two_tensor_dynamicity'
<ide>
<ide>
<ide> def check_dtype... | 1 |
PHP | PHP | fix styleci errors | 9c61a908a1813c9508f4f88134e03f301f8b6293 | <ide><path>src/Illuminate/Database/Console/Migrations/MigrateCommand.php
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Database\Events\SchemaLoaded;
<ide> use Illuminate\Database\Migrations\Migrator;
<del>use Illuminate\Database\SQLiteConnection;
<ide> use Illuminate\Database\SqlServerConnectio... | 3 |
Python | Python | add space between words across lines | b8c885d097bf83bce05a11164c9f939905a3c219 | <ide><path>numpy/lib/format.py
<ide> def _wrap_header_guess_version(header):
<ide> return ret
<ide>
<ide> header = _wrap_header(header, (3, 0))
<del> warnings.warn("Stored array in format 3.0. It can only be"
<add> warnings.warn("Stored array in format 3.0. It can only be "
<ide> "r... | 1 |
Mixed | Text | add inputmode to html dom property whitelist | 3b2df5fd9c824849edaad8368ae18820f2f50e47 | <ide><path>docs/docs/ref-04-tags-and-attributes.ko-KR.md
<ide> async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet challenge
<ide> checked classID className colSpan cols content contentEditable contextMenu controls
<ide> coords crossOrigin data dateTime defer dir disabled download draggable encType
<i... | 3 |
Text | Text | release notes for 1.0.0rc11 promise-resolution | 2d48733723d87439775412247ce1558ed444eb33 | <ide><path>CHANGELOG.md
<add><a name="1.0.0rc11"></a>
<add># 1.0.0rc11 promise-resolution (2012-06-10)
<add>
<add>## Features
<add>
<add>- **$route:**
<add> - allow defining route async dependencies as promises and defer route change until all promises
<add> are resolved
<add> ([885fb0dd](https://github.com/angu... | 1 |
Text | Text | remove changelog entry | 86100a1ebf3dc440dd193e0b24118c09cca6f01a | <ide><path>activerecord/CHANGELOG.md
<del>* Move database and shard selection config options to a generator.
<del>
<del> Rather than generating the config options in the production.rb when applications are created, applications can now run a generator to create an initializer and uncomment / update options as needed. ... | 1 |
Javascript | Javascript | implement mipmap support in basistextureloader | 274b5ddbc46367803e54e706950bb8ad9ea7097b | <ide><path>examples/js/loaders/BasisTextureLoader.js
<ide> THREE.BasisTextureLoader = class BasisTextureLoader {
<ide>
<ide> var config = this.workerConfig;
<ide>
<del> var { data, width, height } = message;
<del>
<del> var mipmaps = [ { data, width, height } ];
<add> var { width, height, mipmaps } = mes... | 1 |
PHP | PHP | remove unused imports | fc3a5a9aefc9747c7921364a63a5e838ea174723 | <ide><path>tests/Integration/Database/MigrateWithRealpathTest.php
<ide>
<ide> namespace Illuminate\Tests\Integration\Database;
<ide>
<del>use Illuminate\Database\Events\MigrationEnded;
<del>use Illuminate\Database\Events\MigrationsEnded;
<del>use Illuminate\Database\Events\MigrationsStarted;
<del>use Illuminate\Datab... | 1 |
PHP | PHP | remove ties to dispatcherfactory | 1037777dcbfef64abb3dd520a7d9410fcd3bb47b | <ide><path>src/Error/ExceptionRenderer.php
<ide> use Cake\Http\Exception\HttpException;
<ide> use Cake\Http\Response;
<ide> use Cake\Http\ServerRequestFactory;
<del>use Cake\Routing\DispatcherFactory;
<ide> use Cake\Routing\Router;
<ide> use Cake\Utility\Inflector;
<ide> use Cake\View\Exception\MissingTemplateException... | 3 |
PHP | PHP | add support for specific tls versions | 5b6b990c1506849d6b20e82c22bcac012e1436f2 | <ide><path>src/Network/Socket.php
<ide> class Socket
<ide> 'sslv3_client' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
<ide> 'sslv23_client' => STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
<ide> 'tls_client' => STREAM_CRYPTO_METHOD_TLS_CLIENT,
<add> 'tlsv10_client' => STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT,... | 2 |
Ruby | Ruby | add actioncable require statement to plugin | e270bb586eda3ff65ce47039c043570e5ab3e8a4 | <ide><path>railties/lib/rails/generators/rails/plugin/templates/rails/application.rb
<ide> # Pick the frameworks you want:
<ide> <%= comment_if :skip_active_record %>require "active_record/railtie"
<ide> require "action_controller/railtie"
<del><%= comment_if :skip_action_mailer %>require "action_mailer/railtie"
<ide> ... | 1 |
Javascript | Javascript | fix style bugs | fe4b89a167b69037305d55c7b5b310e10daf993a | <ide><path>src/math/Matrix4.js
<ide> Object.assign( Matrix4.prototype, {
<ide> return this.compose( zero, q, one );
<ide>
<ide> };
<add>
<ide> }(),
<ide>
<ide> lookAt: function () {
<ide> Object.assign( Matrix4.prototype, {
<ide> var te = this.elements;
<ide>
<ide> var x = quaternion._x, y = quaternion._y... | 1 |
Text | Text | fix typo in "isomorphic" and switches to universal | fd89143f539bb50b5354620cafe5f566441a0a22 | <ide><path>README.md
<ide> Read **[The Evolution of Flux Frameworks](https://medium.com/@dan_abramov/the-ev
<ide> * Everything (Stores, Action Creators, configuration) is hot reloadable.
<ide> * Preserves the benefits of Flux, but adds other nice properties thanks to its functional nature.
<ide> * Prevents some of the ... | 1 |
Javascript | Javascript | fix bug with presslegacy blur | dbc7b9f50c9f4ff005c8ba6431adea9bec3d318a | <ide><path>packages/react-interactions/events/src/dom/PressLegacy.js
<ide> const pressResponderImpl = {
<ide> break;
<ide> }
<ide> case 'blur': {
<del> // If we encounter a blur event that moves focus to
<del> // the window, then the relatedTarget will be null.
<del> // In this ... | 4 |
Text | Text | fix incorrect alias and url | 9c0b3e1650ffe6f85376e1399a304204539d2495 | <ide><path>man/src/login.md
<ide> do not specify a `SERVER`, the command uses Docker's public registry located at
<ide> `docker login` requires user to use `sudo` or be `root`, except when:
<ide>
<ide> 1. connecting to a remote daemon, such as a `docker-machine` provisioned `docker engine`.
<del>2. user is added to... | 2 |
Go | Go | remove redundant doupdatehostsfile() function | 350e303c7f0af8b3fd2d377faf56485862a7e8c3 | <ide><path>libnetwork/endpoint.go
<ide> func (ep *endpoint) sbJoin(sb *sandbox, options ...EndpointOption) (err error) {
<ide> n.getController().watchSvcRecord(ep)
<ide> }
<ide>
<del> if doUpdateHostsFile(n, sb) {
<add> // Do not update hosts file with internal networks endpoint IP
<add> if !n.ingress && n.Name() !... | 1 |
Python | Python | add oauthauthentication class | 1aed9c1604be3db8f3f2d2de748eb6f7c574637a | <ide><path>rest_framework/authentication.py
<ide> from rest_framework.authtoken.models import Token
<ide> import base64
<ide>
<add>from django.core.exceptions import ImproperlyConfigured
<add>try:
<add> import oauth2
<add>except ImportError:
<add> oauth2 = None
<add>
<add>try:
<add> import oauth_provider
<add... | 1 |
PHP | PHP | apply fixes from styleci | 972538f7071e73dcff429c1cb0ec143d66d82dc1 | <ide><path>tests/Integration/Support/Fixtures/MultipleInstanceManager.php
<ide> class MultipleInstanceManager extends BaseMultipleInstanceManager
<ide>
<ide> protected function createFooDriver(array $config)
<ide> {
<del> return new class($config) {
<add> return new class($config)
<add> {
... | 1 |
Javascript | Javascript | remove links to web archive from source | e24f2dcf3f6bda1a672502e0233c732065cbbe89 | <ide><path>src/attributes/prop.js
<ide> jQuery.extend( {
<ide> // Support: IE <=9 - 11+
<ide> // elem.tabIndex doesn't always return the
<ide> // correct value when it hasn't been explicitly set
<del> // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-an... | 2 |
Python | Python | allow hyphens in pod id used by k8s executor | 0438628ffd231adc73b633d6cfb28344c984d194 | <ide><path>airflow/kubernetes/kubernetes_helper_functions.py
<ide> log = logging.getLogger(__name__)
<ide>
<ide>
<del>def _strip_unsafe_kubernetes_special_chars(string: str) -> str:
<del> """
<del> Kubernetes only supports lowercase alphanumeric characters, "-" and "." in
<del> the pod name.
<del> However... | 2 |
Ruby | Ruby | use hash like syntax for internalmetadata | de2cb20117af68cef4126d8998cc63e178c58187 | <ide><path>activerecord/lib/active_record/internal_metadata.rb
<ide> module ActiveRecord
<ide> # This class is used to create a table that keeps track of values and keys such
<ide> # as which environment migrations were run in.
<del> class InternalMetadata < ActiveRecord::Base
<add> class InternalMetadata < Activ... | 6 |
Ruby | Ruby | use xml instead already parsed xml | e04d9538ea19e4032f25a3e5818a884b7dd602ea | <ide><path>activesupport/test/xml_mini/nokogiri_engine_test.rb
<ide> def test_children_with_blank_text_and_attribute
<ide> private
<ide> def assert_equal_rexml(xml)
<ide> parsed_xml = XmlMini.parse(xml)
<del> hash = XmlMini.with_backend('REXML') { XmlMini.parse(parsed_xml) }
<add> hash = XmlMini.w... | 1 |
Javascript | Javascript | remove extraneous call to `$parse` in `$evalasync` | 71f437c15a606b542536e70c392808e84d982078 | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider() {
<ide> current = target;
<ide>
<ide> // It's safe for asyncQueuePosition to be a local variable here because this loop can't
<del> // be reentered recursively. Calling $digest from a function passed to $applyAsync would
<a... | 2 |
Javascript | Javascript | add day marker character for japanese.update test | 0bb5c4ea5e7953294a436fb25b1feefe3bf4a69f | <ide><path>src/test/locale/ja.js
<ide> test('format', function (assert) {
<ide> ['ddd, Ah', '日, 午後3'],
<ide> ['M Mo MM MMMM MMM', '2 2 02 2月 2月'],
<ide> ['YYYY YY', '2010 10'],
<del> ['D Do DD', ... | 1 |
Javascript | Javascript | fix remaining issues in the browsing history | a4343436c7993b93ad626d184b06c5b3de3b2e06 | <ide><path>web/viewer.js
<ide> var PDFFindBar = {
<ide>
<ide> var PDFHistory = {
<ide> initialized: false,
<del> allowHashChange: true,
<ide> initialDestination: null,
<ide>
<del> initialize: function pdfHistoryInitialize(params, fingerprint) {
<add> initialize: function pdfHistoryInitialize(fingerprint) {
<id... | 1 |
Text | Text | add guide for seo with gatsby.js | 6f65ba62d8d5c3868c88a5b382aa717506f5c9af | <ide><path>guide/english/gatsbyjs/gatsbyjs-seo/index.md
<add>---
<add>title: Gatsby.js SEO
<add>---
<add>
<add>## SEO with Gatsby
<add>
<add>Gatsby helps your site place better in search engines. Some advantages come out of the box and some require configuration.
<add>
<add>### Server rendering
<add>
<add>Because Gatsb... | 1 |
Javascript | Javascript | remove unnecessary linter comment | 0fdd23fa3fc794a64718e1b761b2ef5efa864ecd | <ide><path>test/parallel/test-fs-utimes.js
<ide> fs.writeFileSync(path, '');
<ide>
<ide> // Test Y2K38 for all platforms [except 'arm', 'OpenBSD' and 'SunOS']
<ide> if (!process.arch.includes('arm') && !common.isOpenBSD && !common.isSunOS) {
<del> // because 2 ** 31 doesn't look right
<del> // eslint-disable-next-li... | 1 |
PHP | PHP | apply fixes from styleci | 9165096f4458f8ab3cfbd4d6bd32479594a2161c | <ide><path>src/Illuminate/Container/Container.php
<ide> use ArrayAccess;
<ide> use LogicException;
<ide> use ReflectionClass;
<del>use ReflectionMethod;
<ide> use ReflectionFunction;
<ide> use ReflectionParameter;
<del>use InvalidArgumentException;
<ide> use Illuminate\Contracts\Container\BindingResolutionException;
<i... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.