content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix a bug when charge forces are zero | 612d23780c6eae7095d0c338edabacf909ab0932 | <ide><path>d3.layout.js
<ide> d3.layout.force = function() {
<ide> node.py -= dy * k;
<ide> }
<ide> }
<add> return !quad.charge;
<ide> };
<ide> }
<ide>
<ide><path>d3.layout.min.js
<del>(function(){function bc(a,b){var c=a.x+b[3],d=a.y+b[0],e=a.dx-b[1]-b[3],f=a.dy-b[0]-b[2];e<0&&(c+=e... | 3 |
Java | Java | add classpath checks to jacksonmodulesruntimehints | 0973348bde86f705f4a5d0218e23fcd54d3091be | <ide><path>spring-web/src/main/java/org/springframework/http/converter/json/JacksonModulesRuntimeHints.java
<ide> import org.springframework.aot.hint.RuntimeHints;
<ide> import org.springframework.aot.hint.RuntimeHintsRegistrar;
<ide> import org.springframework.aot.hint.TypeReference;
<add>import org.springframework.ut... | 1 |
PHP | PHP | add skeleton methods for schema\collection | 52c7064096a0274f86cac798372b04cabddbf68d | <ide><path>lib/Cake/Database/Schema/Collection.php
<add><?php
<add>/**
<add> * PHP Version 5.4
<add> *
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full c... | 2 |
Javascript | Javascript | use isurlinstance instead of instanceof | d24eecd7d73959872058ea5cee5cd83a9825fa13 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> const {
<ide> maybeCacheSourceMap,
<ide> rekeySourceMap
<ide> } = require('internal/source_map/source_map_cache');
<del>const { pathToFileURL, fileURLToPath, URL } = require('internal/url');
<add>const { pathToFileURL, fileURLToPath, isURLInstance } = require('int... | 1 |
Python | Python | add get_blobs_list method to wasbhook | 0bf330ba8681c417fd5a10b3ba01c75600dc5f2e | <ide><path>airflow/providers/microsoft/azure/hooks/wasb.py
<ide> def check_for_prefix(self, container_name, prefix, **kwargs):
<ide> num_results=1, **kwargs)
<ide> return len(list(matches)) > 0
<ide>
<add> def get_blobs_list(self, container_name: str, prefix: str... | 2 |
Ruby | Ruby | improve scope docs | c6372d604952a8eef16ce73a06814aa143b94779 | <ide><path>activerecord/lib/active_record/named_scope.rb
<ide> module NamedScope
<ide> extend ActiveSupport::Concern
<ide>
<ide> module ClassMethods
<del> # Returns a relation if invoked without any arguments.
<add> # Returns an anonymous scope.
<ide> #
<ide> # posts = Post.scoped
<ide>... | 1 |
Mixed | Ruby | fix querycache nil dup | e220fda3e5a497f4b971cf1bb59b2020059634bf | <ide><path>activerecord/CHANGELOG.md
<add>* Notifications see frozen SQL string.
<add>
<add> Fixes #23774
<add>
<add> *Richard Monette*
<add>
<add>* RuntimeErrors are no longer translated to ActiveRecord::StatementInvalid.
<add>
<add> *Richard Monette*
<add>
<ide> * Change the schema cache format to use ... | 5 |
Javascript | Javascript | add google and github merge strategies | dfeb12d6ce086bd2cffd8333caf6a8b4b20f9825 | <ide><path>config/passport.js
<ide> passport.use(new FacebookStrategy(secrets.facebook, function (req, accessToken,
<ide> existingUser.tokens = _.union(existingUser.tokens, req.user.tokens);
<ide> existingUser.save(function(err) {
<ide> User.remove({ _id: req.user.id }, function(err) {
<del> ... | 1 |
Go | Go | fix start/restart of detached container | 4ca7d4f0c1490845cbf04220a408f67c006af248 | <ide><path>daemon/container_operations.go
<ide> func (daemon *Daemon) allocateNetwork(container *container.Container) error {
<ide> }
<ide> }
<ide>
<add> // If the container is not to be connected to any network,
<add> // create its network sandbox now if not present
<add> if len(networks) == 0 {
<add> if nil == d... | 2 |
Javascript | Javascript | fix ssr of styled-components | 64aa4454ace64c2982f53374334834c9f47bb491 | <ide><path>examples/with-styled-components/pages/_document.js
<ide> import styleSheet from 'styled-components/lib/models/StyleSheet'
<ide>
<ide> export default class MyDocument extends Document {
<ide> static async getInitialProps ({ renderPage }) {
<del> styleSheet.flush()
<ide> const page = renderPage()
<id... | 1 |
Java | Java | fix failing test | acd6b9df06ac24045576cb9ae5736f5fe24a29d2 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/TomcatWebSocketClient.java
<ide> package org.springframework.web.reactive.socket.client;
<ide>
<ide> import javax.websocket.Session;
<add>import javax.websocket.WebSocketContainer;
<ide>
<ide> import org.springframework.web.reactiv... | 2 |
Go | Go | add "src" alias for `--secret` | 950658bbb63480de254a166bdeaef1fc8b8fe644 | <ide><path>opts/secret.go
<ide> func (o *SecretOpt) Set(value string) error {
<ide>
<ide> value := parts[1]
<ide> switch key {
<del> case "source":
<add> case "source", "src":
<ide> options.Source = value
<ide> case "target":
<ide> tDir, _ := filepath.Split(value)
<ide><path>opts/secret_test.go
<ide> fun... | 2 |
PHP | PHP | use table helper from symfony 2.3 | 9db66a6b4b7a08b635b0b2638b5e14859e6dafea | <ide><path>src/Illuminate/Foundation/Console/RoutesCommand.php
<ide>
<ide> class RoutesCommand extends Command {
<ide>
<del> /**
<add> /**
<ide> * The console command name.
<ide> *
<ide> * @var string
<ide> protected function getRouteInformation($name, Route $route)
<ide> */
<ide> protected function disp... | 1 |
Javascript | Javascript | fix error in widgetannotation | c889e4e679519f108fd61c7848406a5517241236 | <ide><path>src/core/annotation.js
<ide> var WidgetAnnotation = (function WidgetAnnotationClosure() {
<ide> var name = namedItem.get('T');
<ide> if (name) {
<ide> fieldName.unshift(stringToPDFString(name));
<del> } else {
<add> } else if (parent && ref) {
<ide> // The field name is ... | 1 |
Javascript | Javascript | support decimal stepsize | 637c2176ecad70b674ffe8802bde070136785a45 | <ide><path>src/core/core.helpers.js
<ide> module.exports = function() {
<ide> helpers.toDegrees = function(radians) {
<ide> return radians * (180 / Math.PI);
<ide> };
<add>
<add> /**
<add> * Returns the number of decimal places
<add> * i.e. the number of digits after the decimal point, of the value of this Number... | 4 |
Java | Java | add more perf counters | caaf7fd417e974d32bfaf8a8bd35e7a6e5b99f3d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/PerformanceCounter.java
<ide> import java.util.Map;
<ide>
<ide> public interface PerformanceCounter {
<del> public Map<String,Double> getPerformanceCounters();
<add> public Map<String, Long> getPerformanceCounters();
<ide> }
<ide><path>ReactAndroid/src/... | 5 |
Javascript | Javascript | remove prefixed concurrent apis from www build | 7cec15155ac2bb9d8c61dc8ab1951c6226c5cd3b | <ide><path>packages/react-dom/src/client/ReactDOMFB.js
<ide> Object.assign(
<ide> },
<ide> );
<ide>
<del>// TODO: These are temporary until we update the callers downstream.
<del>ReactDOM.unstable_createRoot = ReactDOM.createRoot;
<del>ReactDOM.unstable_createSyncRoot = ReactDOM.createSyncRoot;
<del>ReactDOM.unstabl... | 1 |
Ruby | Ruby | add empty line | d0e83d39a028babe1a1509ea4d198c9b9d5be6ba | <ide><path>Library/Homebrew/cask/installer.rb
<ide> def install
<ide> print caveats
<ide> fetch
<ide> uninstall_existing_cask if reinstall?
<add>
<ide> backup if force? && @cask.staged_path.exist? && @cask.metadata_versioned_path.exist?
<ide>
<ide> oh1 "Installing Cask #{Formatter.identif... | 1 |
Text | Text | introspect vs inspect | a56339d0db94e5d5b85a2bfe02ec49ac51af0073 | <ide><path>docs/introduction/ThreePrinciples.md
<ide> Redux can be described in three fundamental principles:
<ide>
<ide> **The [state](../Glossary.md#state) of your whole application is stored in an object tree within a single [store](../Glossary.md#store).**
<ide>
<del>This makes it easy to create universal apps, a... | 1 |
PHP | PHP | fix more failing tests | a703f6158cfd77501ee2fe2b9e782b11f3aa9231 | <ide><path>lib/Cake/Console/Command/AclShell.php
<ide> public function startup() {
<ide>
<ide> $class = Configure::read('Acl.classname');
<ide> $className = App::classname($class, 'Controller/Component/Acl');
<del> if (!in_array($class, array('DbAcl', 'DB_ACL')) && !is_subclass_of($className, 'Cake\Controller\Com... | 2 |
Javascript | Javascript | replace passive effect context with boolean | c0ed0a2468d8f4fdecc42e5fe36ef5a4d1dcb68b | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.js
<ide> const {
<ide>
<ide> type ExecutionContext = number;
<ide>
<del>const NoContext = /* */ 0b0000000;
<del>const BatchedContext = /* */ 0b0000001;
<del>const EventContext = /* */ 0b0000010;
<del>const Dis... | 1 |
Ruby | Ruby | avoid postgresql and mysql tests warnings | 4b4a548a60236ccfb68c91f53386459bcb1751ab | <ide><path>activerecord/test/cases/active_schema_test_mysql.rb
<ide> class ActiveSchemaTest < ActiveRecord::TestCase
<ide> def setup
<ide> ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do
<ide> alias_method :execute_without_stub, :execute
<add> remove_method :execute
<ide> def execute... | 2 |
PHP | PHP | add stringable class | acbbf272214e65f176a2b6a407201ff51729f787 | <ide><path>src/Illuminate/Support/Str.php
<ide> class Str
<ide> */
<ide> protected static $uuidFactory;
<ide>
<add> /**
<add> * Get a new stringable object from the given string.
<add> *
<add> * @param string $string
<add> * @return \Illuminate\Support\Stringable
<add> */
<add> pub... | 2 |
Python | Python | make a base init in featureextractionmixin | 2199608ca686fa9773b782ac251e085bfe3163f4 | <ide><path>src/transformers/feature_extraction_sequence_utils.py
<ide> def __init__(self, feature_size: int, sampling_rate: int, padding_value: float,
<ide> self.padding_side = kwargs.pop("padding_side", "right")
<ide> self.return_attention_mask = kwargs.pop("return_attention_mask", True)
<ide>
<del> ... | 2 |
Java | Java | remove unused method | 45a9b9f99221341e134dfa141876614459976b23 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java
<ide> public void removeAllViews(T parent) {
<ide> public boolean needsCustomLayoutForChildren() {
<ide> return false;
<ide> }
<del>
<del> /**
<del> * Returns whether or not this View type should promote its grandchildre... | 1 |
Javascript | Javascript | add initial atom.exe wrapper | 42ab14c2cb59c46bcac0ed8dcd1a185dde17764b | <ide><path>resources/win/atom.js
<add>var spawn = require('child_process').spawn;
<add>
<add>var options = {
<add> detached: true,
<add> stdio: 'ignore'
<add>}
<add>spawn("C:\\Users\\kevin\\AppData\\Local\\atom\\app-0.156.0\\atom.exe", [], options); | 1 |
PHP | PHP | fix inflection for words ending in media | bd87400131a90c92731a043e309f9033448b2b22 | <ide><path>lib/Cake/Test/Case/Utility/InflectorTest.php
<ide> public function testInflectingSingulars() {
<ide> $this->assertEqual(Inflector::singularize('Aliases'), 'Alias');
<ide> $this->assertEqual(Inflector::singularize('Alias'), 'Alias');
<ide> $this->assertEqual(Inflector::singularize('Media'), 'Media');
<a... | 2 |
Python | Python | add tests for english norm exceptions | d77c2cc8bb9d9e3c73cb30e3bd766d73f7308865 | <ide><path>spacy/tests/lang/en/test_exceptions.py
<ide> def test_en_tokenizer_handles_times(en_tokenizer, text):
<ide> tokens = en_tokenizer(text)
<ide> assert len(tokens) == 2
<ide> assert tokens[1].lemma_ in ["a.m.", "p.m."]
<add>
<add>
<add>@pytest.mark.parametrize('text,norms', [("I'm", ["i", "am"]), ("... | 1 |
Go | Go | add string method | 0d9f1e344a629e5abcd6a385952d22d19555f125 | <ide><path>pkg/version/version.go
<ide> func (v Version) compareTo(other Version) int {
<ide> return 0
<ide> }
<ide>
<add>// String returns the version string
<add>func (v Version) String() string {
<add> return string(v)
<add>}
<add>
<ide> // LessThan checks if a version is less than another
<ide> func (v Version) L... | 1 |
Ruby | Ruby | clarify description of --api option | f0b087efb06da36b557948b0f9fe99596f440164 | <ide><path>railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb
<ide> class ScaffoldGenerator < ResourceGenerator # :nodoc:
<ide> remove_hook_for :resource_controller
<ide> remove_class_option :actions
<ide>
<del> class_option :api, type: :boolean
<add> class_option :api, type: :boo... | 1 |
Python | Python | fix code friendly | 35357167cf7dce05446b6bc1ea484370dd725ba6 | <ide><path>celery/backends/elasticsearch.py
<ide> def __init__(self, url=None, *args, **kwargs):
<ide>
<ide> self.es_retry_on_timeout = (
<ide> _get('elasticsearch_retry_on_timeout') or self.es_retry_on_timeout
<del> )
<add> )
<ide>
<ide> es_timeout = _get('elasticsearch_... | 1 |
Python | Python | set version to v2.2.0 | b5c775dd42276530b48a1670095fdb476d123e47 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev15"
<add>__version__ = "2.2.0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion"
<ide> __email__ = "contact@explosion.ai... | 1 |
Python | Python | improve error messaging for asr pipeline. | 463226e2ee372ae48f473cd9f93917839f0901ff | <ide><path>src/transformers/pipelines/automatic_speech_recognition.py
<ide> def preprocess(self, inputs, chunk_length_s=0, stride_length_s=None):
<ide> raise ValueError("We expect a single channel audio input for AutomaticSpeechRecognitionPipeline")
<ide>
<ide> if chunk_length_s:
<add> i... | 2 |
Python | Python | convert tests/jobs/test_base_job.py to pytest | c3af681edf5988d9f9b2aa58c3eb7c97b2f91ca3 | <ide><path>tests/jobs/test_base_job.py
<ide> #
<ide>
<ide> import datetime
<del>import unittest
<ide>
<ide> from mock import Mock, patch
<add>from pytest import raises
<ide> from sqlalchemy.exc import OperationalError
<ide>
<ide> from airflow.executors.sequential_executor import SequentialExecutor
<ide> from tests.t... | 1 |
Python | Python | throw valueerror for mirror downloads | 361b6df36a93521008c95f32505d8be304adcccf | <ide><path>src/transformers/file_utils.py
<ide> def hf_bucket_url(
<ide> filename = f"{subfolder}/{filename}"
<ide>
<ide> if mirror:
<del> logger.warning(
<del> "Deprecated: The mirroring is deprecated."
<del> "Tuna and BFSU mirrors are no longer available."
<del> "W... | 1 |
Ruby | Ruby | convert `brew help` test to spec | c37dbb79b669fc0c4088415d7269a6618f1ccb3c | <ide><path>Library/Homebrew/test/cmd/help_spec.rb
<add>describe "brew", :integration_test do
<add> it "prints help when no argument is given" do
<add> expect { brew }
<add> .to output(/Example usage:\n/).to_stderr
<add> .and be_a_failure
<add> end
<add>
<add> describe "help" do
<add> it "prints help"... | 2 |
Ruby | Ruby | add test case to channelgeneratortest | 4ee80f25ce9790c6eaedb2da27d0f25b397aa93d | <ide><path>railties/test/generators/channel_generator_test.rb
<ide> def test_channel_on_revoke
<ide> assert_file "app/channels/application_cable/connection.rb"
<ide> assert_file "app/assets/javascripts/cable.js"
<ide> end
<add>
<add> def test_channel_suffix_is_not_duplicated
<add> run_generator ["chat_cha... | 1 |
Python | Python | fix tf-slim urls | decf35bcec7d6b147d338c5a49cd40047b634d97 | <ide><path>keras/applications/inception_resnet_v2.py
<ide>
<ide> Model naming and structure follows TF-slim implementation (which has some additional
<ide> layers and different number of filters from the original arXiv paper):
<del>https://github.com/tensorflow/models/blob/master/slim/nets/inception_resnet_v2.py
<add>... | 1 |
Python | Python | fix segfault in ctypeslib with obj being collected | cec59cc17025352a4159172dbe5077e30eee01a1 | <ide><path>numpy/ctypeslib.py
<ide> def as_ctypes(obj):
<ide> raise TypeError("readonly arrays unsupported")
<ide> tp = _ctype_ndarray(_typecodes[ai["typestr"]], ai["shape"])
<ide> result = tp.from_address(addr)
<del> result.__keep = ai
<add> result.__keep = obj
<ide> r... | 2 |
Ruby | Ruby | add comments, tweak argument handling | 74a2c3a5092c3d0556a5e3a8b07c8e2e92b93c1c | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def brew_update
<ide>
<ide> travis_pr = ENV["TRAVIS_PULL_REQUEST"] && ENV["TRAVIS_PULL_REQUEST"] != "false"
<ide>
<del> # Use Jenkins environment variables if present.
<del> if no_args? && ENV["GIT_PREVIOUS_COMMIT"] && ENV["GIT_COMMIT"] \
<del> ... | 1 |
Javascript | Javascript | remove reference to non-existent parameter | 1924cf221695f4abcf2e73e26b93c113571118ac | <ide><path>src/Angular.js
<ide> function baseExtend(dst, objs, deep) {
<ide> *
<ide> * @param {Object} dst Destination object.
<ide> * @param {...Object} src Source object(s).
<del> * @param {boolean=} deep if the last parameter is set to `true`, objects are recursively merged
<del> * (deep copy). Defaults to `fa... | 1 |
Python | Python | unskip tests with 1.x | 296d0d3fc8efd5f165c10a71a9e1235b5889bb90 | <ide><path>official/transformer/v2/transformer_main_test.py
<ide> def tearDown(self):
<ide> def _assert_exists(self, filepath):
<ide> self.assertTrue(os.path.exists(filepath))
<ide>
<del> def test_train(self):
<add> def test_train_no_dist_strat(self):
<ide> t = tm.TransformerTask(FLAGS)
<ide> t.train()... | 1 |
Ruby | Ruby | add missing require for `strip_heredoc` | 6fe9cc80fccaa553e1bd611a7247ba1320895071 | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<ide> require "rack/session/abstract/id"
<ide> require "action_controller/metal/exceptions"
<ide> require "active_support/security_utils"
<add>require "active_support/core_ext/string/strip"
<ide>
<ide> module ActionController #:nodoc:
<ide... | 1 |
Go | Go | fix cache with onbuild | f1ade82d82e6436971c6b7d08eb1da57ed9ba756 | <ide><path>builder/dockerfile/evaluator.go
<ide> func (b *Builder) dispatch(options dispatchOptions) (*dispatchState, error) {
<ide> buildsFailed.WithValues(metricsUnknownInstructionError).Inc()
<ide> return nil, fmt.Errorf("unknown instruction: %s", upperCasedCmd)
<ide> }
<del> if err := f(newDispatchRequestFromO... | 4 |
Go | Go | return prune data when context canceled | 87b4dc2002d50e245f432bbd97e9dee2db25cf96 | <ide><path>api/server/backend/build/backend.go
<ide> func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
<ide>
<ide> // PruneCache removes all cached build sources
<ide> func (b *Backend) PruneCache(ctx context.Context) (*types.BuildCachePruneReport, error) {
<del> size, err := b.fsCache.P... | 4 |
Python | Python | fix a regression in paramikosshclient.run method | 0c4869c0561384fbc0623d162360c27b781847de | <ide><path>libcloud/test/compute/test_deployment.py
<ide> def test_script_deployment(self):
<ide> self.assertEqual(self.node, sd2.run(node=self.node,
<ide> client=MockClient(hostname='localhost')))
<ide>
<add> def test_script_deployment_relative_path(self):
<add> client = Mock... | 2 |
Go | Go | add synchronization to count and list | 2d21996eec8d3e6100f19fa0d0fa7adad25285ca | <ide><path>daemon/volumes.go
<ide> func (s *volumeStore) Decrement(v volume.Volume) {
<ide>
<ide> // Count returns the usage count of the passed in volume
<ide> func (s *volumeStore) Count(v volume.Volume) int {
<add> s.mu.Lock()
<add> defer s.mu.Unlock()
<ide> vc, exists := s.vols[v.Name()]
<ide> if !exists {
<ide>... | 1 |
PHP | PHP | fix path for loading config files from plugin | 4eae13f01a97f3c9a8d75b486a6f019da271823f | <ide><path>src/Configure/Engine/IniConfig.php
<ide> public function dump($key, $data) {
<ide> /**
<ide> * Converts a value into the ini equivalent
<ide> *
<del> * @param mixed $val Value to export.
<add> * @param mixed $value Value to export.
<ide> * @return string String value for ini file.
<ide> */
<ide> protect... | 2 |
Python | Python | fix google dlp example and improve ops idempotency | 5ae82a56dab599de44f1be7027cecc4ef86f7bb6 | <ide><path>airflow/providers/google/cloud/example_dags/example_dlp.py
<ide> )
<ide> INSPECT_CONFIG = InspectConfig(info_types=[{"name": "PHONE_NUMBER"}, {"name": "US_TOLLFREE_PHONE_NUMBER"}])
<ide> INSPECT_TEMPLATE = InspectTemplate(inspect_config=INSPECT_CONFIG)
<add>OUTPUT_BUCKET = os.environ.get("DLP_OUTPUT_BUCKET",... | 3 |
Javascript | Javascript | add snapshot tests for sticky headers | f37fc6705a42263c120f915298faa7c0b4fb35b8 | <ide><path>Libraries/Lists/SectionList.js
<ide> const MetroListView = require('MetroListView');
<ide> const Platform = require('Platform');
<ide> const React = require('React');
<add>const ScrollView = require('ScrollView');
<ide> const VirtualizedSectionList = require('VirtualizedSectionList');
<ide>
<ide> import typ... | 1 |
Python | Python | add initial version of theano/tensorflow backends | cda6a998ef55121223489364fb340e7ea74ffc4c | <ide><path>keras/backend/__init__.py
<add>from __future__ import absolute_import
<add>
<add>_BACKEND = 'theano'
<add>
<add>if _BACKEND == 'theano':
<add> from .theano_backend import *
<add>elif _BACKEND == 'tensorflow':
<add> from .tensorflow_backend import *
<add>else:
<add> raise Exception('Unknown backend: ... | 5 |
Go | Go | make getpidsforcontainer() a driver call | 335bc39c9a5abfdbd07914ae1b8667a9d8590a6e | <ide><path>execdriver/chroot/driver.go
<ide> func (d *driver) Info(id string) execdriver.Info {
<ide> func (d *driver) Name() string {
<ide> return fmt.Sprintf("%s-%s", DriverName, Version)
<ide> }
<add>
<add>func (d *driver) GetPidsForContainer(id string) ([]int, error) {
<add> return nil, fmt.Errorf("Not supported")... | 5 |
Javascript | Javascript | add getshaderprecisionformat polyfill | 2ba3e37476013604b660b5da0f7af05aead04f76 | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> }
<ide>
<add> if ( _gl.getShaderPrecisionFormat === undefined ) {
<add>
<add> _gl.getShaderPrecisionFormat = function () {
<add>
<add> return {
<add> 'rangeMin': 1,
<add> 'rangeMax': 1,
<add> 'prec... | 1 |
Java | Java | add responder strategies to rsocketstrategies | 91b040d0bf05c857c022a263b3c076a3020c3875 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/MessageMappingMessageHandler.java
<ide> public class MessageMappingMessageHandler extends AbstractMethodMessageHandler<C
<ide> @Nullable
<ide> private Validator validator;
<ide>
<add> @Nullable
<ide> private RouteMat... | 5 |
PHP | PHP | remove extra space | bd5bbb64802afa975b124917f5918f6421bae3e0 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function isLocale($locale)
<ide> public function registerCoreContainerAliases()
<ide> {
<ide> foreach ([
<del> 'app' => [self::class, \Illuminate\Contracts\Container\Container::class, \Illuminate\Contracts\Foun... | 1 |
Go | Go | fix tests with old cmd function | e201d5bcd46a3dcb70dd6b6e23ee375e4b5b5f40 | <ide><path>integration-cli/docker_cli_create_test.go
<ide> func TestCreateEchoStdout(t *testing.T) {
<ide>
<ide> func TestCreateVolumesCreated(t *testing.T) {
<ide> name := "test_create_volume"
<del> cmd(t, "create", "--name", name, "-v", "/foo", "busybox")
<add> if out, _, err := runCommandWithOutput(exec.Command(do... | 1 |
Ruby | Ruby | fix spelling [ci skip] | d4f2c3adb3cd9a0fbf68f2f132eed5a75a7d3ea0 | <ide><path>actionview/lib/action_view/helpers/number_helper.rb
<ide> def number_to_currency(number, options = {})
<ide> # (defaults to current locale).
<ide> # * <tt>:precision</tt> - Sets the precision of the number
<ide> # (defaults to 3).
<del> # * <tt>:significant</tt> - If +true+, precis... | 2 |
Text | Text | update ssh demo to ubuntu 14.04 | 98f57d1c392eab7df30fa3179c8e0f99a418e772 | <ide><path>docs/sources/examples/running_ssh_service.md
<ide> quick access to a test container.
<ide> #
<ide> # VERSION 0.0.1
<ide>
<del> FROM ubuntu:12.04
<add> FROM ubuntu:14.04
<ide> MAINTAINER Thatcher R. Peskens "thatcher@dotcloud.com"
<ide>
<ide> RUN apt-get update &&... | 1 |
Javascript | Javascript | add jsdoc to os module functions | d97787fccc18ec8023c7571a38c0e13f3837df4f | <ide><path>lib/os.js
<ide> const {
<ide> const getHomeDirectory = getCheckedFunction(_getHomeDirectory);
<ide> const getHostname = getCheckedFunction(_getHostname);
<ide> const getInterfaceAddresses = getCheckedFunction(_getInterfaceAddresses);
<add>/**
<add> * @returns {string}
<add> */
<ide> const getOSRelease = () =... | 1 |
Python | Python | fix str into int to match definition | df4594a9dadca89482b69ec9a388456114a81491 | <ide><path>src/transformers/tokenization_xlm.py
<ide> "xlm-mlm-en-2048": {"do_lowercase_and_remove_accent": True},
<ide> "xlm-mlm-ende-1024": {
<ide> "do_lowercase_and_remove_accent": True,
<del> "id2lang": {"0": "de", "1": "en"},
<add> "id2lang": {0: "de", 1: "en"},
<ide> "lang2id... | 1 |
Javascript | Javascript | remove superfluous 'new' | 60e26668b3c73b9163d9fb1ae6a7951c6acbc889 | <ide><path>lib/child_process.js
<ide> var Pipe;
<ide> function createPipe(ipc) {
<ide> // Lazy load
<ide> if (!Pipe) {
<del> Pipe = new process.binding('pipe_wrap').Pipe;
<add> Pipe = process.binding('pipe_wrap').Pipe;
<ide> }
<ide>
<ide> return new Pipe(ipc); | 1 |
Text | Text | add silverwind as collaborator | 92c1ad97c066fe6f0bd04943962c3fb568016a7e | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Robert Kowalski** ([@robertkowalski](https://github.com/robertkowalski)) <rok@kowalski.gd>
<ide> * **Julian Duque** ([@julianduque](https://github.com/julianduque)) <julianduquej@gmail.com>
<ide> * **Johan Bergst... | 1 |
Javascript | Javascript | show falsy names as anonymous for dep0097 | 9dca43e7093525d07db32ef6995f4e498da96006 | <ide><path>lib/domain.js
<ide> function emitMakeCallbackDeprecation({ target, method }) {
<ide> 'Using a domain property in MakeCallback is deprecated. Use the ' +
<ide> 'async_context variant of MakeCallback or the AsyncResource class ' +
<ide> 'instead. ' +
<del> `(Triggered by calling ${method... | 2 |
Go | Go | fix warning in build | ee814055673ca1d5981a4e9e4788a4199fd2f456 | <ide><path>runtime.go
<ide> func (runtime *Runtime) Create(config *Config, name string) (*Container, []strin
<ide> return nil, nil, err
<ide> }
<ide>
<del> if img.Config != nil {
<del> if err := MergeConfig(config, img.Config); err != nil {
<del> return nil, nil, err
<add> checkDeprecatedExpose := func(config *C... | 1 |
Java | Java | fix jaxb2typescanner to scan for @xmlregistry | 4f871d444864d001a049e7817a84f1c59c70016f | <ide><path>spring-oxm/src/main/java/org/springframework/oxm/jaxb/ClassPathJaxb2TypeScanner.java
<ide> import java.io.IOException;
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<add>
<ide> import javax.xml.bind.annotation.XmlEnum;
<add>import javax.xml.bind.annotation.XmlRegistry;
<ide> import javax.xml... | 5 |
Text | Text | add two taps, update ci info | 2020f382cb6cc51d58f7cf6c2895361129f11b5a | <ide><path>docs/Brew-Test-Bot.md
<ide> `brew test-bot` is the name for the automated review and testing system funded
<ide> by [our Kickstarter in 2013](https://www.kickstarter.com/projects/homebrew/brew-test-bot).
<ide>
<del>It comprises four Mac Minis running in a data centre in England which host
<add>It comprises ... | 2 |
PHP | PHP | improve doc blocks for ide understanding | 35f70ad2c9843b1c42afba072615ce9141d3bf45 | <ide><path>src/Auth/BaseAuthenticate.php
<ide>
<ide> /**
<ide> * Base Authentication class with common methods and properties.
<add> *
<add> * @mixin \Cake\Core\InstanceConfigTrait
<ide> */
<ide> abstract class BaseAuthenticate implements EventListenerInterface
<ide> {
<ide><path>src/Auth/BaseAuthorize.php
<ide> * ... | 16 |
Javascript | Javascript | use createelement and innerhtml | 16b3af3762bcf3b430c677de3eebff25236f3cac | <ide><path>packages/ember-views/lib/system/render_buffer.js
<ide> Ember._RenderBuffer.prototype =
<ide> of this buffer
<ide> */
<ide> element: function() {
<del> return Ember.$(this.string())[0];
<add> var element = document.createElement(this.elementTag),
<add> id = this.elementId,
<add> ... | 1 |
Text | Text | remove outdated timeout.unref content | a7164fdd1a27c30f425d96f6a9392da5418751ee | <ide><path>doc/api/timers.md
<ide> to remain active. If there is no other activity keeping the event loop running,
<ide> the process may exit before the `Timeout` object's callback is invoked. Calling
<ide> `timeout.unref()` multiple times will have no effect.
<ide>
<del>Calling `timeout.unref()` creates an internal t... | 1 |
Go | Go | fix inspectexecid test | c5c98c31a184837c7f5b1f43d8ef18a676a8bf30 | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func (s *DockerSuite) TestInspectExecID(c *check.C) {
<ide> if out != "[]" && out != "<no value>" {
<ide> break
<ide> }
<del> if i == tries {
<add> if i+1 == tries {
<ide> c.Fatalf("ExecIDs should not be empty, got: %s", out)
<ide> }
<ide> time.Sl... | 1 |
PHP | PHP | add table truncation for sqlite + mysql | 416d340331aa70a33873070adcf81128a8127b2a | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function extraSchemaColumns() {
<ide> ];
<ide> }
<ide>
<add>/**
<add> * Generate the SQL to truncate a table.
<add> *
<add> * @param Cake\Database\Schema\Table $table Table instance
<add> * @return array TRUNCATE TABLE sql
<add> */
<add> public functi... | 5 |
Java | Java | provide xml assertions in webtestclient | 2734f01067fb231ee3fd3d6dd100e0ae6ed6ed0b | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java
<ide> import java.util.concurrent.atomic.AtomicLong;
<ide> import java.util.function.Consumer;
<ide> import java.util.function.Function;
<add>import javax.xml.xpath.XPathExpressionException;
<ide>
<ide> import o... | 4 |
Javascript | Javascript | rename some allegories | 682f9b4709f0d7e634568209ce3adfe18e345774 | <ide><path>test/internet/test-dgram-broadcast-multi-process.js
<ide> if (process.argv[2] !== 'child') {
<ide> TIMEOUT);
<ide> console.error('[PARENT] Fail');
<ide>
<del> killChildren(workers);
<add> killSubprocesses(workers);
<ide>
<ide> process.exit(1);
<ide> }, TIMEOUT);
<ide> if (... | 8 |
Go | Go | add interface for untar | 14692d0d417378efc3456ddb810eae5646652bda | <ide><path>pkg/archive/archive.go
<ide> type (
<ide> NoLchown bool
<ide> Name string
<ide> }
<add>
<add> // Archiver allows the reuse of most utility functions of this package
<add> // with a pluggable Untar function.
<add> Archiver struct {
<add> Untar func(io.Reader, string, *TarOptions) error
<add> }... | 1 |
Ruby | Ruby | add gcab 1.3 to whitelist | 9fc495125dd730319014983903cbcdb3db5c746e | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide> pygtkglext 1.1.0
<ide> gtk-mac-integration 2.1.3
<ide> gtk-doc 1.31
<add> gcab 1.3
<ide> ].each_slice(2).to_a.map do |formula, version|
<ide> [formula, version.split(".")[0..1].join(".")]
<ide> en... | 1 |
Text | Text | modify invalid url in plugins_network.md | fc7c235f84f76d5d64f25bc802486ecbe87f8b95 | <ide><path>docs/extend/plugins_network.md
<ide> referring to that network will be sent to the plugin,
<ide> ## Write a network plugin
<ide>
<ide> Network plugins implement the [Docker plugin
<del>API](https://docs.docker.com/extend/plugin_api/) and the network plugin protocol
<add>API](plugin_api.md) and the network p... | 1 |
Java | Java | fix memory leak in newthreadscheduler recursion | b1d9c1cb62517f7cf3cbb64ac2c9bc2fd55d4f50 | <ide><path>rxjava-core/src/main/java/rx/schedulers/NewThreadScheduler.java
<ide> import rx.Scheduler;
<ide> import rx.Subscription;
<ide> import rx.subscriptions.CompositeSubscription;
<add>import rx.subscriptions.MultipleAssignmentSubscription;
<ide> import rx.subscriptions.Subscriptions;
<add>import rx.util.functions... | 1 |
Text | Text | drop the www | e52fd3925cde274041fab49bc86d52f6e9ded5a7 | <ide><path>docs/converting-a-text-mate-theme.md
<ide> __Syntax Theme__ dropdown menu to enable your new theme.
<ide>
<ide> :bulb: Consider using `apm publish` to publish this theme to [atom.io][atomio].
<ide>
<del>[atomio]: https://www.atom.io
<add>[atomio]: https://atom.io
<ide> [CSS]: http://en.wikipedia.org/wiki/C... | 1 |
Python | Python | add large model config | 0b2f46fa9e7ceab69ea5f1bbe7e850bbbb26f6cc | <ide><path>tests/test_modeling_t5.py
<ide> def __init__(
<ide> self.scope = None
<ide> self.is_training = is_training
<ide>
<add> def get_large_model_config(self):
<add> return T5Config.from_pretrained("t5-base")
<add>
<ide> def prepare_config_and_inputs(self):
<ide> input_ids = i... | 1 |
Javascript | Javascript | support #each foo in this and #with this as bar | 96768564fcd17e36d367a79e9f2eca076a4d37eb | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> EmberHandlebars.registerHelper('with', function(context, options) {
<ide> // together. When we implement that functionality, we should use it here.
<ide> var contextKey = Ember.$.expando + Ember.guidFor(this);
<ide> options.data.keyword... | 4 |
Python | Python | fix runtests.py overriding | bd03c464c3d4b70b6a5d3061f8f015787a0095a4 | <ide><path>runtests.py
<ide> def main(argv):
<ide> site_dir, site_dir_noarch = build_project(args)
<ide> sys.path.insert(0, site_dir)
<ide> sys.path.insert(0, site_dir_noarch)
<del> os.environ['PYTHONPATH'] = site_dir + os.pathsep + site_dir_noarch
<add> os.environ['PYTHONPATH'] = ... | 1 |
Javascript | Javascript | remove message from asserts | 721f6df7053ae783bd6b1f58d47474df523f2d0c | <ide><path>test/parallel/test-cluster-worker-init.js
<ide> if (cluster.isMaster) {
<ide> const worker = cluster.fork();
<ide>
<ide> worker.on('message', common.mustCall((message) => {
<del> assert.strictEqual(message, true, 'did not receive expected message');
<add> assert.strictEqual(message, true);
<ide> ... | 1 |
Javascript | Javascript | fix race write() before and after connect() | 63431796f4cdeb726cf8a4fe91806702cf09619c | <ide><path>lib/net.js
<ide> function afterConnect(status, handle, req, readable, writable) {
<ide> handle.readStart();
<ide> }
<ide>
<del> self.emit('connect');
<del>
<ide> if (self._connectQueue) {
<ide> debug('Drain the connect queue');
<ide> for (var i = 0; i < self._connectQueue.length... | 2 |
Text | Text | clarify description for finders keepers | 0b700b5f78c0ab170e696027947561e33018d221 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers.english.md
<ide> forumTopicId: 16016
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>Create a function that looks through an array (first argument) and returns the first elem... | 1 |
Java | Java | update todo for spr-13280 | aae0bd2fb43092bd3e1bc5c3296265e760b4fc43 | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java
<ide> private void loadBeanDefinitionsForBeanMethod(BeanMethod beanMethod) {
<ide>
<ide> // Consider scoping
<ide> ScopedProxyMode proxyMode = ScopedProxyMode.NO;
<del> // TODO Determine why ... | 1 |
Javascript | Javascript | remove unnecessary '#' | 4f340e6c73032af032d068ebd5bf7cce95d96732 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> CoreObject.PrototypeMixin = Mixin.create({
<ide> }
<ide> });
<ide> teacher = App.Teacher.create()
<del> teacher.toString(); // #=> "<App.Teacher:ember1026:Tom Dale>"
<add> teacher.toString(); //=> "<App.Teacher:emb... | 1 |
Mixed | Javascript | fix devtools typos and grammar | 21a851e03507e77bf51b410c36e4d32d6e5bf728 | <ide><path>packages/react-client/src/__tests__/ReactFlight-test.js
<ide> describe('ReactFlight', () => {
<ide> });
<ide>
<ide> // @gate enableServerContext
<del> it('propagates ServerContext and cleansup providers in flight', async () => {
<add> it('propagates ServerContext and cleans up the providers in... | 3 |
PHP | PHP | fix redirecttoaction method | bdff3a702892ff84008599a3e4502ed0abbdf62f | <ide><path>src/Illuminate/Routing/ResponseFactory.php
<ide> public function redirectToRoute($route, $parameters = array(), $status = 302, $h
<ide> */
<ide> public function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
<ide> {
<del> return $this->redirector->action($route, $par... | 1 |
Javascript | Javascript | add head/tail to file | 2573dc0b22e4b5841b3bf0c4d317873856eb0ab0 | <ide><path>common/app/routes/challenges/redux/reducer.js
<ide> import { createPoly } from '../../../../utils/polyvinyl';
<ide>
<ide> import types from './types';
<ide> import { BONFIRE, HTML, JS } from '../../../utils/challengeTypes';
<del>import { buildSeed, createTests, getPath } from '../utils';
<add>import { array... | 3 |
Ruby | Ruby | add `installer` spec | 05cb6cda088d740e2cfa204da2ba36a68f503afc | <ide><path>Library/Homebrew/test/cask/artifact/installer_spec.rb
<add>describe Hbc::Artifact::Installer, :cask do
<add> let(:staged_path) { mktmpdir }
<add> let(:cask) { instance_double("Cask", staged_path: staged_path, config: nil) }
<add> subject(:installer) { described_class.new(cask, **args) }
<add> let(:comman... | 1 |
Javascript | Javascript | fix incorrect substraction | cf8ae64f8a7438ff1f71dce5fc1ff067bc212a22 | <ide><path>lib/Template.js
<ide> class Template {
<ide> return String.fromCharCode(START_LOWERCASE_ALPHABET_CODE + n);
<ide>
<ide> // upper case
<del> n -= DELTA_A_TO_Z;
<del> if (n < DELTA_A_TO_Z)
<del> return String.fromCharCode(START_UPPERCASE_ALPHABET_CODE + n);
<add> if (n < DELTA_A_TO_Z * 2) {
<add> ... | 1 |
PHP | PHP | fix failing test | 3ff051f54f7750db43cf76edd158194f20715b71 | <ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide> public function testRequestContentTypes()
<ide> $this->assertEquals('json', $this->RequestHandler->requestedWith());
<ide>
<ide> $this->request->env('REQUEST_METHOD', 'POST');
<del> $this->request->env('CONTENT_... | 1 |
PHP | PHP | remove unneded annotations | 159c4b0d620cccb4f0b2fc7fdbf7147d13045b36 | <ide><path>src/Database/Query.php
<ide> public function set($key, $value = null, $types = [])
<ide> if (!is_string($types)) {
<ide> $types = null;
<ide> }
<del> /** @psalm-suppress PossiblyInvalidArgument */
<ide> $this->_parts['set']->eq($key, $value, $types);
<ide>
<ide> ... | 1 |
Javascript | Javascript | delay unlink in test-regress-gh-4027.js | f1c890afb05274880df0f1ce4084607c03b194bf | <ide><path>test/sequential/test-regress-GH-4027.js
<ide> common.refreshTmpDir();
<ide>
<ide> const filename = path.join(common.tmpDir, 'watched');
<ide> fs.writeFileSync(filename, 'quis custodiet ipsos custodes');
<del>setTimeout(fs.unlinkSync, 100, filename);
<ide>
<ide> fs.watchFile(filename, { interval: 50 }, comm... | 1 |
Ruby | Ruby | add create_fixtures method for tests | 5fe543b6294df44d0e7670b78347564874a2f5e2 | <ide><path>activerecord/test/cases/helper.rb
<ide> class ActiveSupport::TestCase
<ide> self.fixture_path = FIXTURES_ROOT
<ide> self.use_instantiated_fixtures = false
<ide> self.use_transactional_fixtures = true
<add>
<add> def create_fixtures(*table_names, &block)
<add> Fixtures.create_fixtures(ActiveSupport... | 1 |
Text | Text | create git rm | 0ebc2eed5b4de6078d4bc4f6857066ad91df7f1c | <ide><path>guide/english/git/git-rm/index.md
<add>---
<add>title: git rm
<add>---
<add>## git rm
<add> The git rm command removes, or deletes files from a working git tree and git index. See <a href='https://git-scm.com/docs/git-rm' target='_blank' rel='nofollow'>Git documentation</a> for comprehensive details of the g... | 1 |
PHP | PHP | shorten long exception message | 8c8ff5fac7d5830f075c00c27a3812dd2a4b4817 | <ide><path>laravel/ioc.php
<ide> public static function resolve($name, $parameters = array())
<ide>
<ide> if ( ! static::registered($name))
<ide> {
<del> throw new \OutOfBoundsException("Error resolving [$name]. No resolver has been registered in the container.");
<add> throw new \OutOfBoundsException("Error r... | 1 |
Text | Text | add possessive case to react | 6b7383072a61dfc3b4bb58a295bf72b8800a59cd | <ide><path>docs/Network.md
<ide> permalink: docs/network.html
<ide> next: timers
<ide> ---
<ide>
<del>One of React Native goals is to be a playground where we can experiment with different architectures and crazy ideas. Since browsers are not flexible enough, we had no choice but to reimplement the entire stack. In th... | 1 |
Javascript | Javascript | upgrade systemplugin to es6 | e3d5c681156e76166e265f0e7c5b5d48c3f9c413 | <ide><path>lib/dependencies/SystemPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var ConstDependency = require("./ConstDependency");
<del>var ParserHelpers = require("../ParserHelpers");
<add>"use strict";
<ide>
<del>function SystemPlug... | 1 |
Ruby | Ruby | remove unnecessary require statements | 06806f860d12aa5a4cfd077b67cae62071755864 | <ide><path>Library/Homebrew/bottles.rb
<ide> require "tab"
<del>require "os/mac"
<ide> require "extend/ARGV"
<ide>
<ide> def built_as_bottle?(f)
<ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> require "hardware"
<del>require "os/mac"
<ide> require "extend/ENV/shared"
<ide>
<ide> # @deprecated
<ide><path>Library/H... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.