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 |
|---|---|---|---|---|---|
Mixed | Ruby | remove deprecated i18n scopes in active record | 00e3973a31181decc1b1574bf78bfa0226f0f04b | <ide><path>activerecord/CHANGELOG.md
<add>* Remove deprecated `activerecord.errors.messages.restrict_dependent_destroy.one` and
<add> `activerecord.errors.messages.restrict_dependent_destroy.many` i18n scopes.
<add>
<add> *Rafael Mendonça França*
<add>
<ide> * Allow passing extra flags to `db:structure:load` ... | 5 |
Javascript | Javascript | remove unnecessary double test in navigator | 9584480261b310843d1c2445078e8f4ae661d982 | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> key={'scene_' + getRouteID(route)}
<ide> ref={'scene_' + i}
<ide> onStartShouldSetResponderCapture={() => {
<del> return (this.state.transitionFromIndex != null) || (this.state.t... | 1 |
Ruby | Ruby | use cp because install warns on empty arrays | d18c016a274ca6239fe0e3b736af3d6dc291ff3e | <ide><path>Library/Homebrew/formula.rb
<ide> def brew
<ide> # so load any deps before this point! And exit asap afterwards
<ide> yield self
<ide> ensure
<del> (HOMEBREW_LOGS+name).install Dir["config.log", "CMakeCache.txt"]
<add> cp Dir["config.log", "CMakeCache.txt"], HOMEBREW_LOGS+... | 1 |
PHP | PHP | use dropifexists instead of drop | 3ecc0e39ed3b6c3c1053a7a5454ebd751f69a0d4 | <ide><path>database/migrations/2014_10_12_000000_create_users_table.php
<ide> public function up()
<ide> */
<ide> public function down()
<ide> {
<del> Schema::drop('users');
<add> Schema::dropIfExists('users');
<ide> }
<ide> }
<ide><path>database/migrations/2014_10_12_100000_create_passwo... | 2 |
Javascript | Javascript | fix loading showing before `pastdelay` | e2944c0aca59c84ead1dd13ef12cdf9462dcdcd9 | <ide><path>packages/next-server/lib/dynamic.js
<ide> export default function dynamic (dynamicOptions, options) {
<ide> let loadableFn = Loadable
<ide> let loadableOptions = {
<ide> // A loading component is not required, so we default it
<del> loading: ({ error, isLoading }) => {
<add> loading: ({ error, ... | 3 |
Go | Go | move "changes" to daemon/changes.go | 49e61f62ced4e111071cf9439e3264f06b008c6c | <ide><path>api/server/server.go
<ide> func getContainersChanges(eng *engine.Engine, version version.Version, w http.Re
<ide> if vars == nil {
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<del> var job = eng.Job("changes", vars["name"])
<add> var job = eng.Job("container_changes", vars["name"])
<ide> stream... | 5 |
Ruby | Ruby | fix documentation of url_for module [ci skip] | e049319c778e638e090309e93daee3d2fe087b15 | <ide><path>actionpack/lib/action_controller/metal/url_for.rb
<ide> module ActionController
<ide> #
<ide> # In addition to <tt>AbstractController::UrlFor</tt>, this module accesses the HTTP layer to define
<ide> # url options like the +host+. In order to do so, this module requires the host class
<del> # to imple... | 1 |
Text | Text | fix indentation 💇♀️ | 3d636bf5f649951cd26123962bc3b4ec8c30dd56 | <ide><path>activerecord/CHANGELOG.md
<ide> * Add database_exists? method to connection adapters to check if a database exists.
<ide>
<del> *Guilherme Mansur*
<add> *Guilherme Mansur*
<ide>
<ide> * Loading the schema for a model that has no `table_name` raises a `TableNotSpecified` error.
<ide> | 1 |
Javascript | Javascript | use validatestring in modules/esm | d695a019ae44da50e5d54e9fa8a42a3ae0abe3cd | <ide><path>lib/internal/modules/esm/loader.js
<ide> 'use strict';
<ide>
<ide> const {
<del> ERR_INVALID_ARG_TYPE,
<ide> ERR_INVALID_RETURN_PROPERTY,
<ide> ERR_INVALID_RETURN_PROPERTY_VALUE,
<ide> ERR_INVALID_RETURN_VALUE,
<ide> ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK,
<ide> ERR_UNKNOWN_MODULE_FORMAT
<ide> } = ... | 2 |
Text | Text | update readme with what files are needed | 494008eca0309a4e15e48065b98ad3b097d49c38 | <ide><path>README.md
<ide> You can also view all the test pdf files on the right side serving
<ide>
<ide> ## Building PDF.js
<ide>
<del>In order to bundle all `src/` files into a final `pdf.js` and build the generic
<add>In order to bundle all `src/` files into two productions scripts and build the generic
<ide> view... | 1 |
Text | Text | fix changelog for v10.8.0 | 9aebcc2b85720cccda1b6e50c337d8cde214bf52 | <ide><path>doc/changelogs/CHANGELOG_V10.md
<ide> </tr>
<ide> <tr>
<ide> <td>
<add><a href="#10.8.0">10.8.0</a><br/>
<ide> <a href="#10.7.0">10.7.0</a><br/>
<ide> <a href="#10.6.0">10.6.0</a><br/>
<ide> <a href="#10.5.0">10.5.0</a><br/> | 1 |
Javascript | Javascript | move git info into its own processor | 0b35521d8ffe9ff851c49801900381ec043962f0 | <ide><path>docs/config/index.js
<ide> module.exports = function(config) {
<ide> config = angularjsPackage(config);
<ide>
<ide> config.append('processing.processors', [
<add> require('./processors/git-data'),
<ide> require('./processors/keywords'),
<ide> require('./processors/versions-data'),
<ide> ... | 4 |
Ruby | Ruby | reject invalid characters | 9b725a58515f101caa9f1519bc9d5f48c28c18d7 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def check_version
<ide> return unless cask.version
<ide>
<ide> check_no_string_version_latest
<del> check_no_file_separator_in_version
<ide> end
<ide>
<ide> def check_no_string_version_latest
<ide> def check_no_string_version_latest
<ide> ... | 4 |
Javascript | Javascript | use object.assign in merge/mergeinto | 3818656f70d42232ab4b4c199107af0674a16e37 | <ide><path>src/utils/__tests__/LegacyImmutableObject-test.js
<ide> describe('LegacyImmutableObject', function() {
<ide> expect(window.__DEV__).toBe(true);
<ide> });
<ide>
<del> testDev('should require initial map to be an object', function() {
<add> testDev('should not require initial map to be an object', fun... | 3 |
Ruby | Ruby | handle system libraries on big sur | 9c4aaa9719c74b78ff5dca4667788b3426a48678 | <ide><path>Library/Homebrew/linkage_checker.rb
<ide> require "keg"
<ide> require "formula"
<ide> require "linkage_cache_store"
<add>require "fiddle"
<ide>
<ide> class LinkageChecker
<ide> attr_reader :undeclared_deps
<ide> def check_dylibs(rebuild_cache:)
<ide>
<ide> if (dep = dylib_to_dep(dylib))
<ide> ... | 1 |
Javascript | Javascript | use keydown/change events on ie9 instead of input | 49dfdf8f0238ef8c473fcb44694f6b5696ecde70 | <ide><path>src/ng/directive/input.js
<ide> function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
<ide> }
<ide> };
<ide>
<del> // if the browser does support "input" event, we are fine
<add> // if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the
<add>... | 4 |
Text | Text | remove trailing whitespace from engines guide | fdf04fe7f6250d7cca8a62850396b8807cff0633 | <ide><path>guides/source/engines.md
<ide> The `--full` option tells the generator that you want to create an engine, inclu
<ide> end
<ide> ```
<ide> * A file at `lib/blorgh/engine.rb` which is identical in function to a standard Rails application's `config/application.rb` file:
<del>
<add>
<ide> ```ruby... | 1 |
Python | Python | add tests and fix various bugs in modeloutput | ae736163d0d7a3a167ff0df3bf6c824437bbba2a | <ide><path>src/transformers/file_utils.py
<ide> def __post_init__(self):
<ide> setattr(self, element[0], element[1])
<ide> if element[1] is not None:
<ide> self[element[0]] = element[1]
<add> elif first_field is not None:
<add> se... | 2 |
Javascript | Javascript | follow rfc6125 more stricly | 31583be04218c49d91440a58969dbfc4f5f7b472 | <ide><path>lib/tls.js
<ide> function checkServerIdentity(host, cert) {
<ide> // The same applies to hostname with more than one wildcard,
<ide> // if hostname has wildcard when wildcards are not allowed,
<ide> // or if there are less than two dots after wildcard (i.e. *.com or *d.com)
<del> if (/\*.*\*/.... | 2 |
Python | Python | fix language.update for pipeline | 0acce0521b3768dce2029db28168b5ec79aac741 | <ide><path>spacy/language.py
<ide> def evaluate(self, docs_golds):
<ide> docs = list(docs)
<ide> golds = list(golds)
<ide> for pipe in self.pipeline:
<del> docs = pipe.pipe(docs)
<add> if not hasattr(pipe, 'pipe'):
<add> for doc in docs:
<add> ... | 1 |
Javascript | Javascript | create plnkr examples with the correct version | b28f1fc3fb38da5d2fd26143b4a8133ebcdd9071 | <ide><path>docs/config/services/deployments/production.js
<ide> 'use strict';
<ide>
<ide> var versionInfo = require('../../../../lib/versions/version-info');
<del>var cdnUrl = '//ajax.googleapis.com/ajax/libs/angularjs/' + versionInfo.cdnVersion;
<add>
<add>var googleCdnUrl = '//ajax.googleapis.com/ajax/libs/angularjs... | 1 |
Go | Go | fix devices in plugins | 6f00601c9fb7886547334f80a250bac5e226aad7 | <ide><path>plugin/v2/plugin.go
<ide> func (p *Plugin) InitPlugin() error {
<ide>
<ide> p.PluginObj.Settings.Mounts = make([]types.PluginMount, len(p.PluginObj.Config.Mounts))
<ide> copy(p.PluginObj.Settings.Mounts, p.PluginObj.Config.Mounts)
<del> p.PluginObj.Settings.Env = make([]string, 0, len(p.PluginObj.Config.E... | 1 |
Python | Python | fix image2test args forwarding | d3f4cef74d94d52e967e76a2918e8368ee2e3fe0 | <ide><path>src/transformers/pipelines/image_to_text.py
<ide> def __init__(self, *args, **kwargs):
<ide> TF_MODEL_FOR_VISION_2_SEQ_MAPPING if self.framework == "tf" else MODEL_FOR_VISION_2_SEQ_MAPPING
<ide> )
<ide>
<del> def _sanitize_parameters(self, **kwargs):
<del> return {}, {}, {}
<ad... | 2 |
Ruby | Ruby | avoid chdir error in railties tests on ruby master | ae5ecfe26c8fdc194d5b3cd16fd13b64574bcfd3 | <ide><path>railties/test/application/rake/dbs_test.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "isolation/abstract_unit"
<add>require "chdir_helpers"
<ide> require "env_helpers"
<ide>
<ide> module ApplicationTests
<ide> module RakeTests
<ide> class RakeDbsTest < ActiveSupport::TestCase
<del> ... | 7 |
Javascript | Javascript | add note on algolia docsearch | 364113fa5ed03ba8287c665344014a4c01ce25e4 | <ide><path>website/src/react-native/versions.js
<ide> var versions = React.createClass({
<ide> return version.type === 'release';
<ide> });
<ide>
<add> // Note: Our Algolia DocSearch box supports version-specific queries. If you will be drastically changing the way versions are listed in this page, make s... | 1 |
Text | Text | remove gitter badge from readme | 19fdb54ffa656056a2694779e098db86b3927101 | <ide><path>README.md
<ide> </a>
<ide> </p>
<ide> <p align="center">
<del> <a title="Gitter" href="https://gitter.im/nodejs/node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg"></a>
<ide> <a title="CII Best Practices" href="https://bestp... | 1 |
Python | Python | combine similar branches | ad1e3c118f378fd62883655a9a983dd0c682f968 | <ide><path>numpy/lib/function_base.py
<ide> def _ureduce(a, func, **kwargs):
<ide> # merge reduced axis
<ide> a = a.reshape(a.shape[:nkeep] + (-1,))
<ide> kwargs['axis'] = -1
<add> keepdim = tuple(keepdim)
<ide> else:
<del> keepdim = [1] * a.ndim
<add> keepdi... | 2 |
Javascript | Javascript | set default for serverruntimeconfig | 0107051eaa6668e0a538af0237c88a0531a8be7c | <ide><path>server/index.js
<ide> export default class Server {
<ide> availableChunks: dev ? {} : getAvailableChunks(this.dir, this.dist)
<ide> }
<ide>
<del> const {serverRuntimeConfig, publicRuntimeConfig, assetPrefix} = this.nextConfig
<add> // Only serverRuntimeConfig needs the default
<add> // pu... | 1 |
Go | Go | remove unused rwmutex | 6b7e19ff42b8760a8992ed1b997903eccdecbbbd | <ide><path>libcontainerd/supervisor/remote_daemon.go
<ide> import (
<ide> "path/filepath"
<ide> "strconv"
<ide> "strings"
<del> "sync"
<ide> "time"
<ide>
<ide> "github.com/containerd/containerd"
<ide> const (
<ide> )
<ide>
<ide> type remote struct {
<del> sync.RWMutex
<ide> config.Config
<ide>
<ide> daemonPid... | 1 |
Python | Python | fix failing test_list_sizes test | 029a5d06f171ea1be8d0d89c4738830a84e9efa8 | <ide><path>libcloud/test/compute/test_ec2.py
<ide> def test_list_sizes(self):
<ide> names = [
<ide> ('ec2_us_east', 'us-east-1'),
<ide> ('ec2_us_west', 'us-west-1'),
<add> ('ec2_us_west', 'us-west-2'),
<ide> ('ec2_eu_west', 'eu-west-1'),
<ide> ('ec2_ap_... | 1 |
PHP | PHP | fix buildsession call for database handler | eec8a73e8ea13c7ca9a98942ec2a07aa84ffaf6d | <ide><path>src/Illuminate/Session/SessionManager.php
<ide> protected function createDatabaseDriver()
<ide>
<ide> $table = $connection->getTablePrefix().$this->app['config']['session.table'];
<ide>
<del> return $this->buildSession($connection, $table);
<add> return $this->buildSession(new DatabaseSessionHandler($c... | 1 |
Python | Python | convert image to rgb for clip model | 6bc6797e04811176f4244a42c86f8a65a1e1c455 | <ide><path>src/transformers/models/clip/feature_extraction_clip.py
<ide> class CLIPFeatureExtractor(FeatureExtractionMixin, ImageFeatureExtractionMixin):
<ide> The sequence of means for each channel, to be used when normalizing images.
<ide> image_std (`List[int]`, defaults to `[0.229, 0.224, 0.225]... | 2 |
Text | Text | fix typos | dabef8ae8bf74e0720301beabb46236d4c2d1b86 | <ide><path>CHANGELOG.md
<ide> ## [v9.2.0 (2022-02-22)](https://github.com/laravel/framework/compare/v9.1.0...v9.2.0)
<ide>
<ide> ### Added
<del>- Added `Illuminate/Database/Eloquent/Casts/Attribute::make()` ([#41014](https://github.com/laravel/framework/pull/41014))
<del>- Added `Illuminate/Collections/Arr::keyBy()` (... | 1 |
Javascript | Javascript | create swipeable card demo | 7463f6d0fd105a2074db78b620b3895753b13cbf | <ide><path>packages/rn-tester/js/examples/SwipeableCardExample/SwipeableCardExample.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its 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> * @flow s... | 3 |
Python | Python | use vine.utils.wraps to ensure __wrapped__ is set | fdf1a0f6a31fdb9d0b6c2a762f4d219ac718de0a | <ide><path>celery/app/base.py
<ide>
<ide> from collections import defaultdict, deque
<ide> from operator import attrgetter
<del>from functools import wraps
<ide>
<ide> from kombu import pools
<ide> from kombu.clocks import LamportClock
<ide> from kombu.common import oid_from
<ide> from kombu.utils import cached_prope... | 6 |
Javascript | Javascript | hoist final regexp | 987a9f3954b94dc50d672b584ca8205ebbbc05fd | <ide><path>lib/RequestShortener.js
<ide> const NORMALIZE_SLASH_DIRECTION_REGEXP = /\\/g;
<ide> const PATH_CHARS_REGEXP = /[-[\]{}()*+?.,\\^$|#\s]/g;
<ide> const SEPERATOR_REGEXP = /[\/\\]$/;
<ide> const FRONT_OR_BACK_BANG_REGEXP = /^!|!$/g;
<add>const INDEX_JS_REGEXP = /\/index.js(!|\?|\(query\))/g;
<ide>
<ide> const ... | 1 |
Python | Python | add help to show/hide top menu | b3df5d7e1dd3baee45030b82887862d48100d28c | <ide><path>glances/plugins/glances_help.py
<ide> def generate_view_data(self):
<ide> self.view_data['enable_disable_quick_look'] = msg_col.format('3', 'Enable/disable quick look plugin')
<ide> self.view_data['show_hide_ip'] = msg_col2.format('I', 'Show/hide IP module')
<ide> self.view_data['disk... | 1 |
Javascript | Javascript | create time service | 7dcfe5e03ee0943f92791a0e066ce42636ab1b58 | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide> 'src/ng/sniffer.js',
<ide> 'src/ng/templateRequest.js',
<ide> 'src/ng/testability.js',
<del> 'src/ng/date.js',
<ide> 'src/ng/timeout.js',
<ide> 'src/ng/urlUtils.js',
<ide> 'src/ng/window.js',
<ide><path>src/AngularPublic.js
<ide> $... | 4 |
Java | Java | remove getvalues() from some subjects/processors | 40087e95cfd4e24bbbe395b3b0cc099fe999e006 | <ide><path>src/main/java/io/reactivex/processors/AsyncProcessor.java
<ide> */
<ide> package io.reactivex.processors;
<ide>
<del>import java.util.Arrays;
<ide> import java.util.concurrent.atomic.AtomicReference;
<ide>
<ide> import org.reactivestreams.*;
<ide> * This {@code AsyncProcessor} supports the standard state... | 6 |
Javascript | Javascript | do less manual conversion | cbd89e26fd05ed2f22b028c700ce1bc9a775d4ac | <ide><path>fonts.js
<ide> CFF.prototype = {
<ide> }
<ide> break;
<ide>
<del> case "div":
<del> var num2 = charstring[i - 1];
<del> var num1 = charstring[i - 2];
<del> charstring.splice(i - 2, 3, num1 / num2);
<del> i -= 2;
<del> br... | 1 |
Go | Go | add missing package import | eca861a99d1a5abe91704b55d044eb8280adb8d1 | <ide><path>runtime.go
<ide> import (
<ide> "path"
<ide> "sort"
<ide> "strings"
<add> "time"
<ide> )
<ide>
<ide> var defaultDns = []string{"8.8.8.8", "8.8.4.4"} | 1 |
Java | Java | move error consumer helper to internal api. | f8c33a9b7d3edd01df38c9b2ed52fa10e1194a2a | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> public final void blockingSubscribe() {
<ide> * @since 2.0
<ide> */
<ide> public final void blockingSubscribe(Consumer<? super T> onNext) {
<del> FlowableBlockingSubscribe.subscribe(this, onNext, RxJavaPlugins.errorConsumer(), Functions.EMPT... | 5 |
Ruby | Ruby | update command comparison to `*commands` vararg | ea4fb0fe09d033ca79bcaa908b2c0ad4baf25022 | <ide><path>Library/Homebrew/rubocops/lines.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> return if offenses.blank?
<ide>
<ide> T.must(offenses[0...-1]).each_with_index do |node, i|
<del> # executable and subcmd have to be the same to be combined
<del... | 1 |
Ruby | Ruby | fix svn test on older macos | a2f95125f0828e5c8801000ef459a6dc9e180ef1 | <ide><path>Library/Homebrew/test/os/mac/dependency_collector_spec.rb
<ide> specify "Resource dependency from a Subversion URL" do
<ide> resource = Resource.new
<ide> resource.url("svn://brew.sh/foo/bar")
<del> if MacOS.version < :catalina
<del> expect(collector.add(resource)).to be_nil
<del> else
<... | 1 |
Python | Python | fix typo in test_dag_run_schema.py | a1a312ee1bc8693afded31a90ad216e72697d2ee | <ide><path>tests/api_connexion/schemas/test_dag_run_schema.py
<ide> def tearDown(self) -> None:
<ide>
<ide> class TestDAGRunSchema(TestDAGRunBase):
<ide> @provide_session
<del> def test_serialze(self, session):
<add> def test_serialize(self, session):
<ide> dagrun_model = DagRun(
<ide> ru... | 1 |
PHP | PHP | use assertcount(). | 520fb03d1fe8f019c79a4f49744ae36ab44bed51 | <ide><path>tests/Database/DatabaseEloquentHasManyTest.php
<ide> public function testModelsAreProperlyMatchedToParents()
<ide> $models = $relation->match([$model1, $model2, $model3], new Collection([$result1, $result2, $result3]), 'foo');
<ide>
<ide> $this->assertEquals(1, $models[0]->foo[0]->foreign_ke... | 8 |
Python | Python | fix leakyrelu return dtype | dd766c68d929c394cb17dd92b9cca20cbd7d32c4 | <ide><path>keras/layers/advanced_activations.py
<ide> class LeakyReLU(Layer):
<ide> '''
<ide> def __init__(self, alpha=0.3, **kwargs):
<ide> self.supports_masking = True
<del> self.alpha = K.cast_to_floatx(alpha)
<add> self.alpha = alpha
<ide> super(LeakyReLU, self).__init__(**kwar... | 3 |
Python | Python | add flag to toggle gpu to dynet code | 8f053fd943e86011306403dff6b4bfbf93fd2f56 | <ide><path>examples/spacy_dynet_lstm.py
<ide> import random
<ide> from collections import Counter
<ide> import numpy as np
<add>import os
<ide>
<ide> from collections import defaultdict
<ide> from itertools import count
<ide>
<del>#import _gdynet as dynet
<del>#from _gdynet import cg
<del>import dynet
<del>from dynet... | 1 |
Text | Text | add empty lines in catphotoapp project | 369db647f58b2646abe0e3394c1604091d3ee18a | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md
<ide> assert(collection.indexOf('H1') < collection.indexOf('H2'));
<ide> <body>
<ide> --fcc-editable-region--
<ide> <h1>CatPhotoApp</h1>
<add>
<ide> --fcc-editable-region--
<... | 40 |
Text | Text | fix mistakes in the codebase overview | 16ac141f44583bd59f95f5b420a66bfcef01865e | <ide><path>docs/contributing/codebase-overview.md
<ide> warning(
<ide>
<ide> **The warning is shown when the `warning` condition is `false`.**
<ide>
<del>One way to think about it is that the condition should reflect the normal situtation rather than the exceptional one.
<add>One way to think about it is that the con... | 1 |
Text | Text | improve download section of readme | cd40d7afac2554ec2d2c213cdab31f0ac6398736 | <ide><path>README.md
<ide> Binaries, installers, and source tarballs are available at
<ide> <https://nodejs.org/en/download/>.
<ide>
<ide> #### Current and LTS Releases
<del>**Current** and **LTS** releases are available at
<del><https://nodejs.org/download/release/>, listed under their version strings.
<add><https://... | 1 |
Go | Go | add etw logging hook | 92bf0a50460b7be1b7e0617ba7bf142f8d9fb680 | <ide><path>cmd/dockerd/docker.go
<ide> package main
<ide> import (
<ide> "fmt"
<ide> "os"
<del> "runtime"
<ide>
<ide> "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/daemon/config"
<ide> func main() {
<ide> // Set terminal emulation based on platform as required.
<ide> _, stdout, stderr := term.St... | 3 |
Ruby | Ruby | ignore gemfile.lock in the release task | 1576f47c23f6be58b9ceb527b265800be21f6593 | <ide><path>tasks/release.rb
<ide> task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
<ide>
<ide> task :ensure_clean_state do
<del> unless `git status -s | grep -v 'RAILS_VERSION\\|CHANGELOG'`.strip.empty?
<add> unless `git status -s | grep -v 'RAILS_VERSION\\|CHANGELOG\\|... | 1 |
PHP | PHP | fix api docblocks for behaviors | 0b4ba0b049b3b03c7eb8ae935854de963c570bf8 | <ide><path>lib/Cake/Model/Behavior/AclBehavior.php
<ide> class AclBehavior extends ModelBehavior {
<ide> /**
<ide> * Sets up the configuration for the model, and loads ACL models if they haven't been already
<ide> *
<del> * @param Model $model
<del> * @param array $config
<add> * @param Model $model Model using this ... | 3 |
Javascript | Javascript | remove unnecessary `inject()` from tests | fd28edfc5097febbf2b01119ab013832eaa96fe5 | <ide><path>test/ngAnimate/ngAnimateSwapSpec.js
<ide> describe('ngAnimateSwap', function() {
<ide> }));
<ide>
<ide>
<del> it('should render a new container when the expression changes', inject(function() {
<add> it('should render a new container when the expression changes', function() {
<ide> element = $compi... | 1 |
Javascript | Javascript | remove pipes from object literal flow types | 00cfb0f919207fcdc8fe8b6c3b7d76591447b91d | <ide><path>packages/react-native-codegen/src/CodegenSchema.js
<ide>
<ide> export type PlatformType = 'iOS' | 'android';
<ide>
<del>export type SchemaType = $ReadOnly<{|
<del> modules: $ReadOnly<{|
<add>export type SchemaType = $ReadOnly<{
<add> modules: $ReadOnly<{
<ide> [hasteModuleName: string]: ComponentSche... | 21 |
Python | Python | fix failing test for router with no trailing slash | 1c935cd3d271efd06f1621c9dddb9e1cd0333e20 | <ide><path>rest_framework/tests/test_routers.py
<ide> class NoteViewSet(viewsets.ModelViewSet):
<ide> self.urls = self.router.urls
<ide>
<ide> def test_urls_can_have_trailing_slash_removed(self):
<del> expected = ['^notes$', '^notes/(?P<pk>[^/]+)$']
<add> expected = ['^notes$', '^notes/(?P<pk... | 1 |
Python | Python | clarify error on repr failure in assert_equal | 91a86f6715604183741f84d429a3a5c2fc7d7e9e | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_complex(self):
<ide> self._assert_func(x, x)
<ide> self._test_not_equal(x, y)
<ide>
<add> def test_error_message(self):
<add> try:
<add> self._assert_func(np.array([1, 2]), np.matrix([1, 2]))
<add> except AssertionE... | 2 |
Javascript | Javascript | add missing test description | a8fd8e5ec6fba42b6493c48a6bb127c4119cce79 | <ide><path>test/cases/parsing/issue-3238/index.js
<del>it("should pass", function() {
<add>it("supports empty element in destructuring", function() {
<ide> const second = ([, x]) => x;
<ide> second([1, 2]).should.eql(2);
<ide> }); | 1 |
Go | Go | remove mount spec backport | 4e025b54d57894331a0e8a0ff89f424cbfb43bc1 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide>
<ide> log := logrus.WithField("container", c.ID)
<ide>
<del> daemon.backportMountSpec(c)
<ide> if err := daemon.checkpointAndSave(c); err != nil {
<ide> log.WithError(err).Error("error saving backported mountspec to disk")
<id... | 3 |
Python | Python | fix lint issues | 06e1d4f76ffa9890196c464f29ff625f1186ff7f | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def _to_routers(self, obj):
<ide> return [self._to_router(router) for router in routers]
<ide>
<ide> def _to_router(self, obj):
<del> extra={}
<add> extra = {}
<ide> extra['external_gateway_info'] = obj['external_gateway_info']
<i... | 1 |
Ruby | Ruby | normalize use of macos_version | 8e0c96c45de35f25c79957763de04235e7e5d48d | <ide><path>Library/Homebrew/utils.rb
<ide> def macports_or_fink_installed?
<ide> false
<ide> end
<ide>
<add> def leopard?
<add> 10.5 == MACOS_VERSION
<add> end
<add>
<add> def snow_leopard?
<add> 10.6 <= MACOS_VERSION # Actually Snow Leopard or newer
<add> end
<add>
<ide> def prefer_64_bit?
<del> ... | 1 |
Python | Python | fix typo in examples/run_squad.py | 6d5049a24d5906ece3fd9b68fb3abe1a0b6bb049 | <ide><path>examples/run_squad.py
<ide> def main():
<ide> parser.add_argument("--do_train", action="store_true", help="Whether to run training.")
<ide> parser.add_argument("--do_eval", action="store_true", help="Whether to run eval on the dev set.")
<ide> parser.add_argument(
<del> "--evaluate_during_... | 1 |
Javascript | Javascript | fix inconsistency in dynamic tests | 33067a58621e1c937bbf2fd11d1b9f7fc3bab212 | <ide><path>test/integration/basic/test/dynamic.js
<ide> export default (context, render) => {
<ide> browser.close()
<ide> })
<ide> })
<del>
<del> // describe('with browser', () => {
<del>
<del> // describe('with bundle', () => {
<del>
<del> // })
<ide> })
<ide> }
<ide><path>test/integration... | 4 |
Javascript | Javascript | use sync fs.mkdir | d2817f48a1146b469d544ee78015251551d358c3 | <ide><path>local-cli/library/library.js
<ide> function library(argv, config, args) {
<ide> const source = path.resolve('node_modules', 'react-native', 'Libraries', 'Sample');
<ide>
<ide> if (!fs.existsSync(libraries)) {
<del> fs.mkdir(libraries);
<add> fs.mkdirSync(libraries);
<ide> }
<ide>
<ide> if (fs... | 1 |
Ruby | Ruby | remove errant debug code | d6b9f8410c990b3d68d1970f1461a1d385d098d7 | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> def ===(list)
<ide> def ==(mime_type)
<ide> return false if mime_type.blank?
<ide> (@synonyms + [ self ]).any? do |synonym|
<del> require "ruby-debug"
<del> debugger if mime_type.is_a?(Array)
<ide> synonym.to_s == m... | 1 |
Text | Text | fix small typo in v0.10.0 release article | 598b5e4593bf39c71416183c36372d97e97852f5 | <ide><path>doc/blog/release/v0.10.0.md
<ide> infrastructure specializing in real-time web and mobile applications.
<ide> Joyent uses Node extensively throughout their stack, and provides
<ide> impressive [post-mortem debugging and real-time performance analysis
<ide> tools](http://dtrace.org/blogs/dap/2012/05/31/debugg... | 1 |
Javascript | Javascript | remove node shallow builds | 739f20beda56a28a9212e3478571c866babee118 | <ide><path>packages/react-test-renderer/npm/shallow.js
<ide> 'use strict';
<ide>
<del>if (process.env.NODE_ENV === 'production') {
<del> module.exports = require('./cjs/react-test-renderer-shallow.production.min.js');
<del>} else {
<del> module.exports = require('./cjs/react-test-renderer-shallow.development.js');
<... | 2 |
Ruby | Ruby | fix an error message | fb797ad1f1c3b0d96968c5feef783a2b8fe07eed | <ide><path>lib/action_cable/connection/base.rb
<ide> def process_message(message)
<ide> if @subscriptions[message['identifier']]
<ide> @subscriptions[message['identifier']].receive_data(ActiveSupport::JSON.decode message['data'])
<ide> else
<del> logger.error "[ActionCable] Un... | 1 |
PHP | PHP | remove useless condition. | 0d7ca93b5647792c2882b3fc96ad8f3d5cf35f1f | <ide><path>src/Illuminate/Broadcasting/BroadcastManager.php
<ide> public function socket($request = null)
<ide>
<ide> $request = $request ?: $this->app['request'];
<ide>
<del> if ($request->hasHeader('X-Socket-ID')) {
<del> return $request->header('X-Socket-ID');
<del> }
<add> ... | 1 |
Python | Python | fix unused ignoreexception in nose_tools/utils.py | 2f4cc792492ed4acbe956e737daa7c1318e05ee7 | <ide><path>numpy/testing/nose_tools/utils.py
<ide> def _gen_alignment_data(dtype=float32, type='binary', max_size=24):
<ide>
<ide> class IgnoreException(Exception):
<ide> "Ignoring this exception due to disabled feature"
<add> pass
<ide>
<ide>
<ide> @contextlib.contextmanager | 1 |
Javascript | Javascript | remove save to user on return individual user | b2d04ec7c501d71901622dba5a24a0babff6fb8c | <ide><path>server/boot/challenge.js
<ide> module.exports = function(app) {
<ide> return Observable.just('/challenges/' + dasherize(challenge.name));
<ide> }
<ide>
<del> if (challenge) {
<del> if (req.user) {
<del> req.user.currentChallenge = {
<del> challengeId... | 1 |
Javascript | Javascript | propagate controller keyword for outlets | 5a33e9c00b025152e3ed30981f245738c02fd52c | <ide><path>packages/ember-htmlbars/lib/hooks/bind-self.js
<ide> export default function bindSelf(env, scope, _self) {
<ide> }
<ide>
<ide> newStream(scope, 'self', self, null, true);
<add>
<add> if (!scope.locals.controller) {
<add> scope.locals.controller = scope.self;
<add> }
<ide> }
<ide>
<ide> function ne... | 5 |
Ruby | Ruby | use proper default | 2d6c79413d01f48df11ef76e65ba45673dcf580c | <ide><path>lib/action_mailroom/test_helper.rb
<ide> def create_inbound_email_from_mail(status: :processing, **mail_options)
<ide> create_inbound_email(StringIO.new(Mail.new(mail_options).to_s), status: status)
<ide> end
<ide>
<del> def create_inbound_email(io, filename: 'mail.eml', status: status)
<add> ... | 1 |
Python | Python | update create_balancer method in the gogrid driver | b54687f1f294b15eb2dd0ce08725b9fae780b181 | <ide><path>libcloud/loadbalancer/drivers/gogrid.py
<ide> from libcloud.utils import reverse_dict
<ide> from libcloud.common.gogrid import GoGridConnection, BaseGoGridDriver
<ide> from libcloud.loadbalancer.base import LoadBalancer, Member, Driver, Algorithm
<del>from libcloud.loadbalancer.base import DEFAULT_ALGORITHM ... | 4 |
PHP | PHP | use model@hydrate in builder@getmodels | 5165d44c7741dd901d71ca3e9a40b14e4170d7c1 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function onDelete(Closure $callback)
<ide> */
<ide> public function getModels($columns = array('*'))
<ide> {
<del> // First, we will simply get the raw results from the query builders which we
<del> // can use to populate an array with Eloquent ... | 5 |
Ruby | Ruby | add explicit require for `symbol#start_with?` | 64c254017eba5357606d1dbb84cdbda1138d5b10 | <ide><path>actiontext/lib/action_text/attribute.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "active_support/core_ext/symbol/starts_ends_with"
<add>
<ide> module ActionText
<ide> module Attribute
<ide> extend ActiveSupport::Concern | 1 |
Javascript | Javascript | add spec for keyboardobserver | 905e3fc5bd3e68a88167a9faa28bf604e6c3697c | <ide><path>Libraries/Components/Keyboard/Keyboard.js
<ide> const LayoutAnimation = require('../../LayoutAnimation/LayoutAnimation');
<ide> const invariant = require('invariant');
<ide> const NativeEventEmitter = require('../../EventEmitter/NativeEventEmitter');
<del>const KeyboardObserver = require('../../BatchedBridge... | 2 |
Text | Text | alter some lines to get better results on students | 90d615351c77d5126b56b27df700d7279a718ff8 | <ide><path>curriculum/challenges/spanish/01-responsive-web-design/basic-html-and-html5/check-radio-buttons-and-checkboxes-by-default.spanish.md
<ide> localeTitle: Comprobar botones de radio y casillas de verificación por defecto
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Puede configurar una ... | 1 |
Python | Python | allow nested tensors in predicted logits | 0270256b275d75432d61633dfa39da1f20f987ca | <ide><path>src/transformers/trainer.py
<ide> distributed_broadcast_scalars,
<ide> distributed_concat,
<ide> nested_concat,
<add> nested_detach,
<ide> nested_numpify,
<ide> nested_xla_mesh_reduce,
<ide> set_seed,
<ide> def prediction_step(
<ide> logits = outputs[:]
<ide> ... | 2 |
Javascript | Javascript | remove focus event on editor | 457bd4de171e8e47e0f344cd7e8722b1c433758b | <ide><path>client/src/templates/Challenges/classic/Editor.js
<ide> class Editor extends Component {
<ide> this._editor = null;
<ide> }
<ide>
<del> componentWillUnmount() {
<del> document.removeEventListener('keyup', this.focusEditor);
<del> }
<del>
<ide> editorWillMount = monaco => {
<ide> defineMonac... | 1 |
Java | Java | remove minnumshakes from reactinstanemanager | cfa2bbf2f692d0bc5600d7e369a9a91272930ca6 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public interface ReactInstanceEventListener {
<ide> private final @Nullable NativeModuleCallExceptionHandler mNativeModuleCallExceptionHandler;
<ide> private final boolean mLazyNativeModulesEnabled;
<ide> private final boolea... | 1 |
Python | Python | improve docstrings, ux of common user mistakes | 30118bbab0a90f77acd7d366d04c49375fa85aae | <ide><path>keras/constraints.py
<ide> def __call__(self, p):
<ide> return p
<ide>
<ide> def get_config(self):
<del> return {"name": self.__class__.__name__}
<add> return {'name': self.__class__.__name__}
<ide>
<ide>
<ide> class MaxNorm(Constraint):
<ide> def __call__(self, p):
<ide> ... | 12 |
Text | Text | remove repl.it links arabic challenge articles | 5747442193daf86cf6ec64db5231a971bb18a679 | <ide><path>guide/arabic/certifications/coding-interview-prep/algorithms/find-the-symmetric-difference/index.md
<ide> Deem كتابة دالة مساعد تقوم بإرجاع الفرق المتم
<ide> }
<ide> `](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
<ide>
<del> [
<add>[](http://hashrocket.com/)
<ide>
<ide> These spectacular peo... | 1 |
Javascript | Javascript | remove cachekeys in favor of simply a cachekey | 179d09e8e08be323eac115d6b86659793d1a479a | <ide><path>packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js
<ide> import { join } from 'path';
<ide> import minify from './minify';
<del>import murmur from 'imurmurhash';
<ide> import { promisify } from 'util';
<ide> import workerFarm from 'worker-farm';
<ide> import { writeFile, readFile } f... | 2 |
Python | Python | fix docs of url_for(..., _external=true) | d23b160e6df5d13e7db7a5e53afab6db306efe3c | <ide><path>flask/helpers.py
<ide> def external_url_handler(error, endpoint, values):
<ide> :param values: the variable arguments of the URL rule
<ide> :param _external: if set to ``True``, an absolute URL is generated. Server
<ide> address can be changed via ``SERVER_NAME`` configuration variable which
<d... | 1 |
Python | Python | fix tests for history features | 6c79841c0dce58cff859dfd37c44824cd267d8ea | <ide><path>spacy/tests/parser/test_neural_parser.py
<ide> def parser(vocab, arc_eager):
<ide>
<ide> @pytest.fixture
<ide> def model(arc_eager, tok2vec):
<del> return Parser.Model(arc_eager.n_moves, token_vector_width=tok2vec.nO)[0]
<add> return Parser.Model(arc_eager.n_moves, token_vector_width=tok2vec.nO,
<add>... | 1 |
Ruby | Ruby | add new command | ca2abb2be6686a8f2e7c64f5d334ab70be97a1b7 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<add># Creates a pull request with the new version of a formula.
<add>#
<add># Usage: brew bump [options...] <formula-name>
<add>#
<add># Requires either `--url` and `--sha256` or `--tag` and `--revision`.
<add>#
<add># Options:
<add># --dry-run: Print what woul... | 1 |
PHP | PHP | add basic single table updates | 4a6e65adc92c47cfd313be67205d76e840bf9a48 | <ide><path>lib/Cake/Model/Datasource/Database/Query.php
<ide> class Query implements Expression, IteratorAggregate {
<ide> protected $_parts = [
<ide> 'delete' => true,
<ide> 'select' => [],
<add> 'update' => [],
<ide> 'distinct' => false,
<ide> 'from' => [],
<ide> 'join' => [],
<ide> class Query implements... | 3 |
Text | Text | fix some redirect loops and problems | a1f55dca21c4ee9f38ed2aeba535cdba3bb2f790 | <ide><path>docs/extend/config.md
<ide> ---
<del>aliases: [
<del>"/engine/extend/"
<del>]
<ide> title: "Plugin config"
<ide> description: "How develop and use a plugin with the managed plugin system"
<ide> keywords: "API, Usage, plugins, documentation, developer"
<ide><path>docs/extend/index.md
<ide> ---
<del>aliases:
<... | 5 |
Javascript | Javascript | add fd into listen2 debug info | cd60ff03281a7e5a2cf0f7a2349303f1d44bb778 | <ide><path>lib/net.js
<ide> var createServerHandle = exports._createServerHandle =
<ide>
<ide>
<ide> Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
<del> debug('listen2', address, port, addressType, backlog);
<add> debug('listen2', address, port, addressType, backlog, fd);
<ide> v... | 1 |
Javascript | Javascript | set devicegray as initial value for color space | 0c321466dce4377f58a038515260c66a0f74603b | <ide><path>pdf.js
<ide> var CanvasExtraState = (function canvasExtraState() {
<ide> this.strokeColor = '#000000';
<ide>
<ide> this.old = old;
<add>
<add> this.fillColorSpace = new DeviceGrayCS;
<add> this.strokeColorSpace = new DeviceGrayCS;
<ide> }
<ide>
<ide> constructor.prototype = { | 1 |
Javascript | Javascript | fix subgroup sorting in chord layout | 59c32fc669875fe77b1767113009dfa477450e98 | <ide><path>d3.js
<del>(function(){d3 = {version: "1.0.2"}; // semver
<add>(function(){d3 = {version: "1.0.3"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide><path>d3.layout.js
<ide> d3.layout.chord = function() {
<ide> x = 0, i = -1; while (++i < n) {
<ide> x... | 6 |
PHP | PHP | implement diff and intersect on support\collection | d64e3a7faaa38c52223133b6340a0f4a621afc70 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function merge($items)
<ide> return new static($results);
<ide> }
<ide>
<add> /**
<add> * Diff items with the collection items.
<add> *
<add> * @param \Illuminate\Support\Collection|\Illuminate\Support\Contracts\ArrayableInterface|array $items
<add... | 2 |
Python | Python | add vocab for new german distilbert model | f21dfe36baaf316675a4d2f8c918e9e8afc11db2 | <ide><path>transformers/tokenization_distilbert.py
<ide> {
<ide> 'distilbert-base-uncased': "https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-vocab.txt",
<ide> 'distilbert-base-uncased-distilled-squad': "https://s3.amazonaws.com/models.huggingface.co/bert/bert-large-uncased-voca... | 1 |
PHP | PHP | remove noise hint | dba46f7ece3ed0bdd0a9d589347f72df143a6049 | <ide><path>src/TestSuite/ConsoleIntegrationTestTrait.php
<ide> public function exec(string $command, array $input = []): void
<ide> *
<ide> * @return void
<ide> */
<del> public function tearDown(): void
<add> public function tearDown()
<ide> {
<ide> parent::tearDown();
<ide> | 1 |
Python | Python | add tests for eager retry without throw | 92c8bc2a58f8fedf9fe98083febb8c338cbda09f | <ide><path>t/unit/tasks/test_tasks.py
<ide> def retry_task_noargs(self, **kwargs):
<ide>
<ide> self.retry_task_noargs = retry_task_noargs
<ide>
<add> @self.app.task(bind=True, max_retries=3, iterations=0, shared=False)
<add> def retry_task_without_throw(self, **kwargs):
<add> self.ite... | 1 |
Text | Text | add holimetrix in user list | 1b869db30304fb1847bb310114d5a96e5c0f6b95 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> * [Cotap](https://github.com/cotap/) [[@maraca](https://github.com/maraca) & [@richardchew](https://github.com/richardchew)]
<ide> * Easy Taxi [[@caique-lima](https://github.com/caique-lima)]
<ide> * [FreshBooks](https://github.com/freshbooks) [[@... | 1 |
Ruby | Ruby | add tests for duration multiplication and division | 376b687cb70d7cd8d84bd5f7c2acc45153359985 | <ide><path>activesupport/test/core_ext/duration_test.rb
<ide> def test_date_added_with_multiplied_duration
<ide> assert_equal Date.civil(2017, 1, 3), Date.civil(2017, 1, 1) + 1.day * 2
<ide> end
<ide>
<add> def test_date_added_with_multiplied_duration_larger_than_one_month
<add> assert_equal Date.civil(2017,... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.