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 |
|---|---|---|---|---|---|
Text | Text | add note about _document being only server side | e1a0f18a92a143db8e19ef663bccbae7d3b6a6cb | <ide><path>readme.md
<ide> export default () => <HelloBundle title="Dynamic Bundle" />
<ide> Pages in `Next.js` skip the definition of the surrounding document's markup. For example, you never include `<html>`, `<body>`, etc. To override that default behavior, you must create a file at `./pages/_document.js`, where you... | 1 |
Java | Java | add logs in mounting layer | 0c17992485da541d1ef5657479c4fb1e52882280 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> import androidx.annotation.UiThread;
<ide> import android.view.View;
<ide> import com.facebook.common.logging.FLog;
<add>import com.facebook.debug.holder.PrinterHolder;
<add>import com.facebook.debug.tags.ReactDebugOverlayTags;
<... | 3 |
Python | Python | fix benchmark suite importability on numpy<1.17 | 5af6880df87493d0b90cd3dbc9b3a1afe6052140 | <ide><path>benchmarks/benchmarks/bench_random.py
<ide>
<ide> import numpy as np
<ide>
<del>from numpy.random import RandomState, Generator
<add>from numpy.random import RandomState
<add>
<add>try:
<add> from numpy.random import Generator
<add>except ImportError:
<add> pass
<add>
<ide>
<ide> class Random(Benchm... | 1 |
Javascript | Javascript | give better error messages | 3ac494195319efb9c923c0ee89b6e0f2617d53ef | <ide><path>lib/net.js
<ide> function isPipeName(s) {
<ide> return util.isString(s) && toNumber(s) === false;
<ide> }
<ide>
<add>// format exceptions
<add>function detailedException(err, syscall, address, port, additional) {
<add> var details;
<add> if (port && port > 0) {
<add> details = address + ':' + port;
<... | 6 |
PHP | PHP | tweak a few variables | b8961bde2a4b3f760156e0d3e970fec795ebc4db | <ide><path>src/Illuminate/Foundation/Http/FormRequest.php
<ide> class FormRequest extends Request implements ValidatesWhenResolved {
<ide> protected $redirectAction;
<ide>
<ide> /**
<del> * The input keys that should not be flashed on redirect.
<add> * The key to be used for the view error bag.
<ide> *
<del> * ... | 1 |
Text | Text | add code-hints to builder page | b5503ef0a511f5be11d9dcfa1359976f159d8a67 | <ide><path>docs/reference/commandline/build.md
<ide> a subdirectory inside the repository that will be used as a build context.
<ide> For example, run this command to use a directory called `docker` in the branch
<ide> `container`:
<ide>
<del> $ docker build https://github.com/docker/rootfs.git#container:docker
<... | 1 |
Text | Text | make minor edits for consistency | 606df7c4e79324b9725bfcfe019a8b75bfa04c3f | <ide><path>doc/api/async_hooks.md
<ide> of asynchronous operations.
<ide> * Returns: {AsyncHook} A reference to `asyncHook`.
<ide>
<ide> Enable the callbacks for a given `AsyncHook` instance. If no callbacks are
<del>provided enabling is a noop.
<add>provided, enabling is a no-op.
<ide>
<ide> The `AsyncHook` instance... | 2 |
Javascript | Javascript | add platform basic implementation (fallback) | c7464ebf91af37482912b434a9e5dc25cf46666e | <ide><path>src/platforms/platform.basic.js
<add>/**
<add> * Platform fallback implementation (minimal).
<add> * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939
<add> */
<add>
<add>module.exports = {
<add> acquireContext: function(item) {
<add> if (item && item.canvas) {
<add> // Support for... | 3 |
Ruby | Ruby | improve the method | 4e2ca9b23fcaa98f4ef375a3a6d8eee579baec94 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
<ide> class AbstractMysqlAdapter < AbstractAdapter
<ide>
<ide> class SchemaCreation < AbstractAdapter::SchemaCreation
<ide> def visit_TableDefinition(o)
<del> create_sql = "CREATE#{' TEMPORARY' if o.temporary... | 1 |
Python | Python | add glances and psutil version | 49029112c22bf3c11406e1730eab258e0c7ebb59 | <ide><path>glances/outputs/glances_stdout_issue.py
<ide> from glances.logger import logger
<ide> from glances.compat import printandflush
<ide> from glances.timer import Counter
<add>from glances import __version__, psutil_version
<ide>
<ide> try:
<ide> TERMINAL_WIDTH = shutil.get_terminal_size(fallback=(79, 24)).... | 1 |
PHP | PHP | add sqs to list of supported drivers | 457e76a470bd0b1df51df116f3c5eaad2a8b7d53 | <ide><path>app/config/queue.php
<ide> | API, giving you convenient access to each back-end using the same
<ide> | syntax for each one. Here you may set the default queue driver.
<ide> |
<del> | Supported: "sync", "beanstalkd"
<add> | Supported: "sync", "beanstalkd", "sqs"
<ide> |
<ide> */
<ide> | 1 |
Java | Java | remove the flag about lazy native modules | 407e033b34b6afa0ea96ed72f16cd164d572e911 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java
<ide> public ReactInstanceEasyBuilder addNativeModule(NativeModule nativeModule) {
<ide> if (mNativeModuleRegistryBuilder == null) {
<ide> mNativeModuleRegistryBuilder = new NativeModuleRegistryBuilder(
<ide> ... | 4 |
PHP | PHP | move phpunit bootstrap condition to schema loader | 64001021646c629abd9417bb599b675a34dd7776 | <ide><path>src/TestSuite/Fixture/SchemaGenerator.php
<ide> public function __construct(string $file, string $connection)
<ide> */
<ide> public function reload(?array $tables = null): void
<ide> {
<add> // Don't reload schema when we are in a separate process
<add> // state.
<add> if (i... | 2 |
Python | Python | add imports to base_rnn example | b7f641961f58876a326d5f94762ad1ae2e83022c | <ide><path>keras/layers/rnn/base_rnn.py
<ide> class RNN(base_layer.Layer):
<ide> Examples:
<ide>
<ide> ```python
<del> # First, let's define a RNN Cell, as a layer subclass.
<add> from keras.layers import RNN
<add> from keras import backend
<ide>
<add> # First, let's define a RNN Cell, as a layer ... | 1 |
Mixed | Ruby | remove old test files | f5b2a8f072ab8941eb5ac5fccb1fc8e1dcfc6c8b | <ide><path>test/cat.js
<del>var filename = ARGV[2];
<del>File.cat(filename, function (status, content) {
<del> if (status == 0)
<del> puts(content);
<del> else
<del> puts("error");
<del>});
<del>puts("hello world");
<ide><path>test/common.rb
<del>require 'tempfile'
<del>
<del>$node = File.join(File.dirname(__F... | 8 |
Ruby | Ruby | fix `time.h` patch not being applied | 60cef850bd3fd12c32ee1196bd19a559592d1465 | <ide><path>scripts/react_native_pods.rb
<ide> def __apply_Xcode_12_5_M1_post_install_workaround(installer)
<ide> # "Time.h:52:17: error: typedef redefinition with different types"
<ide> # We need to make a patch to RCT-Folly - remove the `__IPHONE_OS_VERSION_MIN_REQUIRED` check.
<ide> # See https://github.com/f... | 1 |
Ruby | Ruby | fix conditional order broken in ea40ec56 | 173bf3506d99c0767a41d30fbe4d306201369194 | <ide><path>actionpack/lib/action_dispatch/testing/integration.rb
<ide> def initialize(mime_name, param_encoder, response_parser, url_encoded_form = fal
<ide>
<ide> def append_format_to(path)
<ide> if @url_encoded_form
<del> path + @path_format
<del> else
<ide> ... | 1 |
Ruby | Ruby | require both variant of resque-scheduler | 392c48278507ef5ac43dd450725ce0ffb6b4d4ce | <ide><path>lib/active_job/queue_adapters/resque_adapter.rb
<ide> require 'resque'
<ide> require 'active_support/core_ext/enumerable'
<ide> require 'active_support/core_ext/array/access'
<del>require 'resque-scheduler'
<add>begin
<add> require 'resque-scheduler'
<add>rescue LoadError
<add> require 'resque_scheduler'
<... | 1 |
Javascript | Javascript | remove unnecessary lines in gltf2loader | 5622169499f72768399f7430f6cd3ce0f0b50f72 | <ide><path>examples/js/loaders/GLTF2Loader.js
<ide> THREE.GLTF2Loader = ( function () {
<ide> // TODO: implement
<ide> if ( target.TANGENT !== undefined ) {
<ide>
<del> console.log( dependencies.accessors[ target.NORMAL ] );
<del>
<ide> }
<ide>
<ide> }
<ide> THREE.GLTF2Loader = ... | 1 |
Javascript | Javascript | use `readableobjectmode` option | 9e62ae4304a0bee3aec8c5fb743eb17d78b1cd35 | <ide><path>lib/_debug_agent.js
<ide> Agent.prototype.notifyWait = function notifyWait() {
<ide> };
<ide>
<ide> function Client(agent, socket) {
<del> Transform.call(this);
<del> this._readableState.objectMode = true;
<add> Transform.call(this, {
<add> readableObjectMode: true
<add> });
<ide>
<ide> this.agent... | 1 |
PHP | PHP | improve findorfail() exceptions | 442c5eea031f4bfdcbe1de790a9f383e1314dcec | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function findOrFail($id, $columns = ['*'])
<ide> return $result;
<ide> }
<ide>
<del> throw (new ModelNotFoundException)->setModel(get_class($this->related));
<add> throw (new ModelNotFoundException)->... | 3 |
PHP | PHP | use fqcn in sync methods docblocks | a3965d1007f7493c3e31dc34af9a109408addaa4 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php
<ide> public function toggle($ids, $touch = true)
<ide> /**
<ide> * Sync the intermediate tables with a list of IDs without detaching.
<ide> *
<del> * @param \Illuminate\Database\Eloquent\Collection|\Illuminate... | 1 |
Python | Python | fix code style | 782d3852e3e66e394b4c6b56029259413de1d54b | <ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
<ide> def _compute_second_stage_input_feature_maps(self, features_to_crop,
<ide> num_levels = len(features_to_crop)
<ide> box_levels = None
<ide> if num_levels != 1:
<del> # If there are mutiple levels to select, get the b... | 1 |
Ruby | Ruby | fix tiny typo in example | 061923371cc8f24b93aedb7842938a69fea6ac19 | <ide><path>activeresource/lib/active_resource/validations.rb
<ide> def from_xml(xml)
<ide> # person.valid? # => false
<ide> # person.errors.empty? # => false
<ide> # person.errors.count # => 1
<del> # person.errors.full_messages # => "Last name can't be empty"
<add> ... | 1 |
Text | Text | ask more questions in the bug report template | 0effc9845f74e7351487644cbd1691196000b93e | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> Please fill in as much of the template below as you're able.
<ide> Version: output of `node -v`
<ide> Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
<ide> Subsystem: if known, please specify affected core module name
<del>
<del>If possible, please... | 1 |
Text | Text | improve grammar and readability | d638b3cd53545d441cd1639bed8b16a7060c0b1e | <ide><path>readme.md
<ide>
<ide> ## About Laravel
<ide>
<del>Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the major... | 1 |
Python | Python | add conversion interfaces for more conv layers | 16feb385e5a84c8298b909fb7a8719ca9a99d105 | <ide><path>keras/layers/convolutional.py
<ide> class Conv1D(_Conv):
<ide> `steps` value might have changed due to padding or strides.
<ide> """
<ide>
<add> @interfaces.legacy_conv1d_support
<ide> def __init__(self, filters,
<ide> kernel_size,
<ide> strides=1,
<ide> ... | 4 |
Ruby | Ruby | use new hash syntax in generated gemfile | 5eb32af28b16cf8d26ce291232239892154227d4 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def comment_if(value)
<ide> def rails_gemfile_entry
<ide> if options.dev?
<ide> <<-GEMFILE.strip_heredoc
<del> gem 'rails', :path => '#{Rails::Generators::RAILS_DEV_PATH}'
<del> gem 'journey', :github => 'rail... | 1 |
Ruby | Ruby | handle "manifest unknown" | ae91ec277231a5f3df42af8c27c555a0cee3403e | <ide><path>Library/Homebrew/github_packages.rb
<ide> def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, keep_old:
<ide> inspect_result = system_command(skopeo, print_stderr: false, args: inspect_args)
<ide>
<ide> # Order here is important
<del> if !inspect_result.status.success? &&... | 1 |
Python | Python | change hdf5matrix so start and end are optional | c455a19f8e303b5ab1530fe98808808a30c77647 | <ide><path>keras/utils/io_utils.py
<ide> class HDF5Matrix():
<ide> '''
<ide> refs = defaultdict(int)
<ide>
<del> def __init__(self, datapath, dataset, start, end, normalizer=None):
<add> def __init__(self, datapath, dataset, start=0, end=None, normalizer=None):
<ide> import h5py
<ide>
<ide> ... | 1 |
Ruby | Ruby | remove this conditional | a64dba1dc59efec39080b8e142894060e2e8d0bb | <ide><path>railties/test/application/rake/dbs_test.rb
<ide> def db_create_and_drop(expected_database)
<ide> output = rails("db:create")
<ide> assert_match(/Created database/, output)
<ide> assert File.exist?(expected_database)
<del> assert_equal expected_database, ActiveRecord::Ba... | 1 |
PHP | PHP | send mail support in mail service provider | 5860d05be4e062a2d0525a7f4941c6b7310ce779 | <ide><path>src/Illuminate/Mail/MailServiceProvider.php
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Swift_SmtpTransport as SmtpTransport;
<ide> use Swift_MailTransport as MailTransport;
<add>use Swift_SendmailTransport as SendmailTransport;
<ide>
<ide> class MailServiceProvider extends ServiceProvider {
<id... | 1 |
Ruby | Ruby | allow zero parameters | 803ea4ed1a8d7c4710f7b0e91f393c2ec1970ba1 | <ide><path>Library/Homebrew/tab.rb
<ide> def source_modified_time
<ide> Time.at(super)
<ide> end
<ide>
<del> def to_json(_opts)
<add> def to_json(options = nil)
<ide> attributes = {
<ide> "homebrew_version" => homebrew_version,
<ide> "used_options" => used_options.as_flags,
<i... | 1 |
Javascript | Javascript | display the actual default `accept` header | b3a3ed34b9c9d965233c0adc4fd4605fbe7c05d3 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * object, which currently contains this default configuration:
<ide> *
<ide> * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):
<del> * - `Accept: application/json, text/plain, * / *`
<add> * ... | 1 |
Javascript | Javascript | add a controltext function to menubutton | 4388beae910013f98e0647891df695d0a0a48270 | <ide><path>src/js/menu/menu-button.js
<ide> class MenuButton extends Component {
<ide> return `vjs-menu-button ${menuButtonClass} ${super.buildCSSClass()}`;
<ide> }
<ide>
<add> /**
<add> * Get or set the localized control text that will be used for accessibility.
<add> *
<add> * > NOTE: This will come fro... | 1 |
Javascript | Javascript | add linear easing to animationutils | a36da5130bbf023ab3a8ece77a81c7a5298541e7 | <ide><path>Libraries/Animation/AnimationUtils.js
<ide> type EasingFunction = (t: number) => number;
<ide>
<ide> var defaults = {
<add> linear: function(t: number): number {
<add> return t;
<add> },
<ide> easeInQuad: function(t: number): number {
<ide> return t * t;
<ide> }, | 1 |
Python | Python | add benchmark tests for numpy.random.randint | 931e2d1e8ba3fd6b129a6d74e3a1ad9984c1938a | <ide><path>benchmarks/benchmarks/bench_random.py
<ide> from .common import Benchmark
<ide>
<ide> import numpy as np
<add>from numpy.lib import NumpyVersion
<ide>
<ide>
<ide> class Random(Benchmark):
<ide> def setup(self):
<ide>
<ide> def time_100000(self):
<ide> np.random.shuffle(self.a)
<add>
<add>
<ad... | 1 |
PHP | PHP | improve error message for missing associations | f680c0824c117c90357a287a9b38b306c4de1aa9 | <ide><path>src/ORM/Table.php
<ide> public function __get($property)
<ide> $association = $this->_associations->get($property);
<ide> if (!$association) {
<ide> throw new RuntimeException(sprintf(
<del> 'Table "%s" is not associated with "%s"',
<add> 'Undefined p... | 2 |
Java | Java | prepare undertow 1.3.0 compatibility | 42588cb03e484565c24298ac834e8d0921dee9ec | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/UndertowXhrTransport.java
<ide> import io.undertow.util.HttpString;
<ide> import io.undertow.util.Methods;
<ide> import io.undertow.util.StringReadChannelListener;
<del>import org.xnio.ByteBufferSlicePool;
<ide> import org.xnio.Chann... | 2 |
PHP | PHP | update docblocks to use type "iterator" | f45de4e27e55aec0de99eceb32d6246719bfb7d0 | <ide><path>src/Collection/Collection.php
<ide> class Collection extends IteratorIterator implements CollectionInterface, Serial
<ide> /**
<ide> * Constructor. You can provide an array or any traversable object
<ide> *
<del> * @param array|\Traversable $items Items.
<add> * @param iterable $items I... | 17 |
Java | Java | make sourcehttpmessageconverter optional | 1e98fb607a274fc3cc49c24902d7c269f2946514 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java
<ide> import org.springframework.http.converter.smile.MappingJackson2SmileHttpMessageConverter;
<ide> import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter;
<ide> impo... | 9 |
Javascript | Javascript | update route-recognizer - fixes | 849e6e5248a91f96c95b6242fd1ef1ea16d9e625 | <ide><path>packages/ember-routing/lib/vendor/route-recognizer.js
<ide> define("route-recognizer",
<ide> },
<ide>
<ide> recognize: function(path) {
<del> var states = [ this.rootState ], i, l;
<add> var states = [ this.rootState ],
<add> pathLen, i, l;
<ide>
<ide> // DEBUG ... | 1 |
Ruby | Ruby | remove unused assignments from activerecord tests | 140b825bdab42eaf535c9847a516773eed27ee6b | <ide><path>activerecord/test/cases/associations/eager_load_nested_include_test.rb
<ide> def generate_test_object_graphs
<ide> end
<ide>
<ide> def test_include_query
<del> res = 0
<ide> res = ShapeExpression.scoped(:includes => [ :shape, { :paint => :non_poly } ]).all
<ide> assert_equal NUM_SHAPE_EXPRESS... | 4 |
Javascript | Javascript | use watchcollection not deep watch of ngmodel | 47f9fc3e70bc361e8c11fe68dc3ec4489238efb3 | <ide><path>src/ng/directive/ngOptions.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
<ide> * option. See example below for demonstration.
<ide> *
<del> * <div class="alert alert-warning">
<del> * **Note:... | 2 |
Python | Python | remove old test dag that is out of place | 86b9d3b1e8b2513aa3f614b9a8eba679cdfd25e0 | <ide><path>dags/test_dag.py
<del>#
<del># Licensed to the Apache Software Foundation (ASF) under one
<del># or more contributor license agreements. See the NOTICE file
<del># distributed with this work for additional information
<del># regarding copyright ownership. The ASF licenses this file
<del># to you under the ... | 1 |
Javascript | Javascript | remove unused catch bindings | ab14ad1f9dff18a0d6343527cb35ae4470552636 | <ide><path>lib/querystring.js
<ide> function parse(qs, sep, eq, options) {
<ide> function decodeStr(s, decoder) {
<ide> try {
<ide> return decoder(s);
<del> } catch (e) {
<add> } catch {
<ide> return QueryString.unescape(s, true);
<ide> }
<ide> } | 1 |
Javascript | Javascript | fix example using-router import wrong pathname | e4da4e5aaaaa7fd488506594b9482a208eb4ce88 | <ide><path>examples/using-router/pages/about.js
<del>import Header from '../components/header'
<add>import Header from '../components/Header'
<ide>
<ide> export default function About() {
<ide> return ( | 1 |
Javascript | Javascript | remove scripts for server specific logic (#2) | 2cea1bdccc949aac2a11eeff5335dbff761af661 | <ide><path>createPathMigrationMap.js
<del>require('babel-register');
<del>
<del>const fs = require('fs');
<del>const path = require('path');
<del>const { Observable } = require('rx');
<del>const getChallenges = require('./getChallenges');
<del>const { dasherize } = require('../server/utils');
<del>
<del>let pathMap = {... | 2 |
Go | Go | remove useless flush method | 35641f0ec7ecae16f88ba9affe0aeea0ae864874 | <ide><path>api.go
<ide> func postImagesCreate(srv *Server, version float64, w http.ResponseWriter, r *ht
<ide> }
<ide>
<ide> job.SetenvBool("json", version > 1.0)
<del> job.Stdout.Add(w)
<add> job.Stdout.Add(utils.NewWriteFlusher(w))
<ide> if err := job.Run(); err != nil {
<ide> if !job.Stdout.Used() {
<ide> r... | 3 |
Ruby | Ruby | avoid corrupted elf files | 5c068ef82cfb3344f10d7ab3c42003069dd000bb | <ide><path>Library/Homebrew/os/linux/elf.rb
<ide> def needed_libraries_using_readelf(path)
<ide> soname = nil
<ide> needed = []
<ide> command = ["readelf", "-d", path.expand_path.to_s]
<del> lines = Utils.safe_popen_read(*command).split("\n")
<add> lines = Utils.popen_read(*command, err: :ou... | 1 |
Ruby | Ruby | convert home test to spec | 0daf01681268dd19ee5d154e484b3d97832f9ec9 | <add><path>Library/Homebrew/cask/spec/cask/cli/home_spec.rb
<del><path>Library/Homebrew/cask/test/cask/cli/home_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> # monkeypatch for testing
<ide> module Hbc
<ide> def self.system_commands
<ide> end
<ide>
<ide> it "opens the homepage for the s... | 1 |
PHP | PHP | make check for `..` more specific | 36d8473215007dce853a2c5b8ee1bbad03213844 | <ide><path>lib/Cake/Core/App.php
<ide> public static function load($className) {
<ide> if (!isset(self::$_classMap[$className])) {
<ide> return false;
<ide> }
<del> if (strpos($className, '..')) {
<add> if (strpos($className, '..') !== false) {
<ide> return false;
<ide> }
<ide> | 1 |
Javascript | Javascript | add stage to initfragment | e79d4e002be7544b1d2842e5ee8403384f450cd6 | <ide><path>lib/InitFragment.js
<ide> class InitFragment {
<ide> /**
<ide> * @param {string|Source} content [TODO]
<add> * @param {number} stage [TODO]
<ide> * @param {number} priority [TODO]
<ide> * @param {string=} key [TODO]
<ide> */
<del> constructor(content, priority, key) {
<add> constructor(content, sta... | 9 |
Go | Go | use mount filter | ce468f0ad0d075c5d0c44c78bd61c489e6d7d70c | <ide><path>volume/local/local_test.go
<ide> func TestCreateWithOpts(t *testing.T) {
<ide> if runtime.GOOS == "windows" {
<ide> t.Skip()
<ide> }
<add> if os.Getuid() != 0 {
<add> t.Skip("root required")
<add> }
<add>
<ide> rootDir, err := ioutil.TempDir("", "local-volume-test")
<ide> if err != nil {
<ide> t.Fat... | 1 |
Javascript | Javascript | fix tooltip body | 314f398887d0858802c37a29d4866873e7b7de82 | <ide><path>src/core/core.controller.js
<ide> module.exports = function(Chart) {
<ide> // The usual updates
<ide> this.tooltip.initialize();
<ide> this.tooltip._active = this.tooltipActive;
<del> this.tooltip.update();
<add> this.tooltip.update(true);
<ide> }
<ide>
<ide> // Hover animations | 1 |
Mixed | Javascript | submit form todo examples and docs | 563d7c208bb35c902b8c0bf64bba9fc29f8e9df3 | <ide><path>docs/basics/ExampleTodoList.md
<ide> let AddTodo = ({ dispatch }) => {
<ide>
<ide> return (
<ide> <div>
<del> <input ref={node => {
<del> input = node
<del> }} />
<del> <button onClick={() => {
<add> <form onSubmit={e => {
<add> e.preventDefault()
<add> if (!in... | 3 |
Python | Python | call pip via subprocess, to make it use virtualenv | 1754e0db9b9974ce76d935bc1422df8a370265ab | <ide><path>spacy/cli/download.py
<ide> import pip
<ide> import requests
<ide> import os
<add>import subprocess
<add>import sys
<add>
<ide> from .link import link_package
<ide> from .. import about
<ide> from .. import util
<ide> def get_version(model, comp):
<ide>
<ide> def download_model(filename):
<ide> util.pri... | 1 |
Go | Go | update docker with syncpipe changes | ed556fb38f4d1cba1460650f703cc8147a7b8f32 | <ide><path>daemon/execdriver/native/init.go
<ide> import (
<ide> "github.com/docker/docker/pkg/reexec"
<ide> "github.com/docker/libcontainer"
<ide> "github.com/docker/libcontainer/namespaces"
<del> "github.com/docker/libcontainer/syncpipe"
<ide> )
<ide>
<ide> func init() {
<ide> func initializer() {
<ide> writeEr... | 2 |
Java | Java | track the sources used to load aot services | a4f3d1d6e820d247a4781e83cd972f28363c980a | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/AotServices.java
<ide> package org.springframework.beans.factory.aot;
<ide>
<ide> import java.util.ArrayList;
<add>import java.util.Collection;
<ide> import java.util.Collections;
<add>import java.util.IdentityHashMap;
<ide> import java.util.I... | 2 |
PHP | PHP | fix unit tests | cbec444542fa9da5fec1a39bd8b602d16016eccd | <ide><path>tests/Cache/CacheFileStoreTest.php
<ide> public function testForeversAreStoredWithHighTimestamp()
<ide> $store->forever('foo', 'Hello World', 10);
<ide> }
<ide>
<add> public function testRemoveDeletesFileDoesntExist()
<add> {
<add> $files = $this->mockFilesystem();
<add> $md5 = md5('foobull');
<add> $... | 1 |
Python | Python | skip large file test on windows | e95cf5f492bf1b181b083ff42ad451319ab23347 | <ide><path>numpy/lib/tests/test_format.py
<ide> def test_bad_header():
<ide>
<ide> def test_large_file_support():
<ide> from nose import SkipTest
<add> if (sys.platform == 'win32' or sys.platform == 'cygwin'):
<add> raise SkipTest("Unknown if Windows has sparse filesystems")
<ide> # try creating a la... | 1 |
Ruby | Ruby | refactor the methods to use instance variables | 15206885eb58978465e5f79a4f20cc3c3766de10 | <ide><path>actionpack/lib/action_view/helpers/tags/base.rb
<ide> def add_default_name_and_id(options)
<ide> options["name"] ||= tag_name_with_index(@auto_index)
<ide> options["id"] = options.fetch("id"){ tag_id_with_index(@auto_index) }
<ide> else
<del> options["name"] ||= t... | 3 |
Ruby | Ruby | avoid intermediate zipped array | 1f75319a9af595d5de3dca55e26547c7f1b166fa | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def pluck(*column_names)
<ide> result = result.map do |attributes|
<ide> values = klass.initialize_attributes(attributes).values
<ide>
<del> columns.zip(values).map do |column, value|
<del> column.type_cast(v... | 1 |
Ruby | Ruby | remove 1.8 compatible code | f76340e42b56dc09b42c2e9c209bb5c5d6869fac | <ide><path>actionpack/lib/action_dispatch/journey/router/utils.rb
<ide> module UriEscape # :nodoc:
<ide> UNSAFE_FRAGMENT = Regexp.new("[^#{safe_fragment}]", false).freeze
<ide> end
<ide>
<del> Parser = URI.const_defined?(:Parser) ? URI::Parser.new : URI
<add> Parser = URI::Parser.new
<i... | 1 |
Ruby | Ruby | add a helper to determine if a keg is linked | 07b7dd7a7aa1bc2f1628a1081006845374426bc4 | <ide><path>Library/Homebrew/keg.rb
<ide> def linked_keg_record
<ide> @linked_keg_record ||= HOMEBREW_REPOSITORY/"Library/LinkedKegs"/fname
<ide> end
<ide>
<add> def linked?
<add> linked_keg_record.directory? and self == linked_keg_record.realpath
<add> end
<add>
<ide> def link
<ide> raise "Cannot link... | 1 |
Ruby | Ruby | fix typo in tab test setup | cd91709120d3666a0dc41076798749a07c1365db | <ide><path>Library/Homebrew/test/test_tab.rb
<ide> def setup
<ide> @tab = Tab.new({
<ide> :used_options => @used,
<ide> :unused_options => @unused,
<del> :build_as_bottle => false,
<add> :built_as_bottle => false,
<ide> :poured_from_bottle => true,
<ide> :tapped_fro... | 1 |
Text | Text | improve test runner timeout docs | 545ecc57360fad50c49c81b56ae25fcc99d38456 | <ide><path>doc/api/test.md
<ide> added: v18.0.0
<ide> changes:
<ide> - version: REPLACEME
<ide> pr-url: https://github.com/nodejs/node/pull/43505
<del> description: add a timeout to tests and allow setting it in options.
<add> description: Add a `timeout` option.
<ide> -->
<ide>
<ide> * `name` {string} The... | 1 |
Text | Text | remove smart quotes from code snippet | abddb558ec371e00ecbbe44a110dbcaaeb926289 | <ide><path>docs/_posts/2015-12-18-react-components-elements-and-instances.md
<ide> Finally, to create elements, use [`React.createElement()`](/react/docs/top-level
<ide> * [Streamlining React Elements](/react/blog/2015/02/24/streamlining-react-elements.html)
<ide> * [React (Virtual) DOM Terminology](/react/docs/glossar... | 1 |
PHP | PHP | remove some ajax handling | 74910637b1c0389ab57f136721dc09404fa470dc | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesUsers.php
<ide> protected function handleUserWasAuthenticated(Request $request, $throttles)
<ide> return $this->authenticated($request, Auth::user());
<ide> }
<ide>
<del> if ($request->ajax() || $request->wantsJson()) {
<del> ... | 2 |
Javascript | Javascript | add files via upload | 7e668e1cb853a528c2bb2559fba18d06c996de37 | <ide><path>editor/js/Menubar.View.js
<ide> Menubar.View = function ( editor ) {
<ide>
<ide> } else {
<ide>
<del> alert( 'WebVR nor available' );
<add> alert( 'WebVR not available' );
<ide>
<ide> }
<ide> | 1 |
Javascript | Javascript | add a new navigator sceneconfig swipefromleft | 1888a0af16ea42736faa3d3e99f63cbbb84e2278 | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> * - Navigator.SceneConfigs.FloatFromBottom
<ide> * - Navigator.SceneConfigs.FloatFromBottomAndroid
<ide> * - Navigator.SceneConfigs.FadeAndroid
<add> * - Navigator.SceneConfigs.SwipeFromLe... | 2 |
Python | Python | improve np.finfo docs | 84ddedadaee13fe22cc36a0c67c3cb73e818ee9f | <ide><path>numpy/core/getlimits.py
<ide> class finfo:
<ide> bits : int
<ide> The number of bits occupied by the type.
<ide> eps : float
<del> The smallest representable positive number such that
<del> ``1.0 + eps != 1.0``. Type of `eps` is an appropriate floating
<del> point type.
... | 1 |
Javascript | Javascript | move extra properties into error creation | 39f4158bc38ff2925b86563082c8d26ab3d20b17 | <ide><path>lib/_stream_readable.js
<ide> function addChunk(stream, state, chunk, addToFront) {
<ide> }
<ide>
<ide> function chunkInvalid(state, chunk) {
<del> var er;
<ide> if (!Stream._isUint8Array(chunk) &&
<ide> typeof chunk !== 'string' &&
<ide> chunk !== undefined &&
<ide> !state.objectMode) ... | 9 |
Javascript | Javascript | update example to use a module | e89916cf0ade8c999d73990f076c0a5ece8eba2a | <ide><path>src/ng/filter/limitTo.js
<ide> * had less than `limit` elements.
<ide> *
<ide> * @example
<del> <example>
<add> <example module="limitToExample">
<ide> <file name="index.html">
<ide> <script>
<del> function Ctrl($scope) {
<del> $scope.numbers = [1,2,3,4,5,6,7,8,9];
<d... | 1 |
Text | Text | add code of conduct to contributing guidelines | 8a4b631dfedd855bda445b2697cd8fb5cd60cfb0 | <ide><path>CONTRIBUTING.md
<ide> which are hosted in the [Atom Organization](https://github.com/atom) on GitHub.
<ide> These are just guidelines, not rules, use your best judgment and feel free to
<ide> propose changes to this document in a pull request.
<ide>
<add>This project adheres to the [Open Code of Conduct][co... | 1 |
Ruby | Ruby | improve grammar for multiple version message | 62addcfce8d942eaa96f48f80b8b82ad7d934853 | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> def uninstall
<ide>
<ide> rack = keg/".."
<ide> if rack.directory?
<del> versions = rack.subdirs.map(&:basename).join(", ")
<del> puts "#{keg.name} #{versions} are still installed."
<add> versions = rack.subdirs.map... | 1 |
Mixed | Javascript | increase server headers timeout | e17403ede37d5879c2fa8e9d2c71f1eacbea9366 | <ide><path>doc/api/http.md
<ide> Stops the server from accepting new connections. See [`net.Server.close()`][].
<ide> added: v11.3.0
<ide> -->
<ide>
<del>* {number} **Default:** `40000`
<add>* {number} **Default:** `60000`
<ide>
<ide> Limit the amount of time the parser will wait to receive the complete HTTP
<ide> he... | 6 |
PHP | PHP | update listfailedcommand.php | 524cf5b9c3700a5d50121f4e6448e08d81c62c1c | <ide><path>src/Illuminate/Queue/Console/ListFailedCommand.php
<ide> protected function parseFailedJob(array $failed)
<ide> {
<ide> $row = array_values(Arr::except($failed, ['payload', 'exception']));
<ide>
<del> array_splice($row, 3, 0, $this->extractJobName($failed['payload']));
<add> array_... | 1 |
Javascript | Javascript | add jsdoc property descriptions | 42c8f099ff2dc6af69cd9503f7ab03ea2da72b20 | <ide><path>lib/http.js
<ide> function createServer(opts, requestListener) {
<ide>
<ide> /**
<ide> * @typedef {object} HTTPRequestOptions
<del> * @property {httpAgent.Agent | boolean} [agent]
<del> * @property {string} [auth]
<del> * @property {Function} [createConnection]
<del> * @property {number} [defaultPort]
<del... | 1 |
Java | Java | add @since section to doonrequest() javadocs | 4c1417729f4810b4fe8ac974b68564aefad2dd60 | <ide><path>src/main/java/rx/Observable.java
<ide> public final void onNext(T args) {
<ide> }
<ide>
<ide> /**
<del> * Modifies the source {@code Observable} so that it invokes the given action when it receives a request for more items.
<add> * Modifies the source {@code Observable} so that it invok... | 1 |
Ruby | Ruby | reduce number of subscriptions created | b925074bdd403e678f8dada49bf68a6d9e4e00ee | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def setup_subscriptions
<ide> end
<ide>
<ide> @_subscribers << ActiveSupport::Notifications.subscribe("!render_template.action_view") do |_name, _start, _finish, _id, payload|
<del> path = payload[:virtual_path]
<del> next unless ... | 1 |
Javascript | Javascript | add stylesheet.absolutefill convenience constant | e79f5d7e7a129f30a8817c0676c98990fbe01686 | <ide><path>Libraries/ReactIOS/renderApplication.android.js
<ide>
<ide> 'use strict';
<ide>
<del>var Inspector = require('Inspector');
<del>var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
<del>var React = require('React');
<del>var ReactNative = require('ReactNative');
<del>var StyleSheet = require('Styl... | 2 |
Javascript | Javascript | remove unused dependency | d924629e391d1dbf42693fdbe08f232ba7c1ae01 | <ide><path>lib/dependencies/ImportDependenciesBlock.js
<ide> "use strict";
<ide> const AsyncDependenciesBlock = require("../AsyncDependenciesBlock");
<ide> const ImportDependency = require("./ImportDependency");
<del>const ImportWeakDependency = require("./ImportWeakDependency");
<ide>
<ide> module.exports = class Imp... | 1 |
Text | Text | clarify usage of `connect` in readme.md | b543795fc04264c326001dd523cc6edd7cb116bf | <ide><path>examples/with-apollo-and-redux/README.md
<ide> now
<ide> ```
<ide>
<ide> ## The idea behind the example
<del>By default, Apollo Client creates its own internal Redux store to manage queries and their results. If you are already using Redux for the rest of your app, [you can have the client integrate with yo... | 1 |
Javascript | Javascript | move all imports to closures in fiber | de4a7b972bad8c0fdc4256577c54eb3e1b8a7b27 | <ide><path>src/renderers/shared/fiber/ReactChildFiber.js
<ide> var {
<ide> var ReactFiber = require('ReactFiber');
<ide> var ReactReifiedYield = require('ReactReifiedYield');
<ide>
<add>const {
<add> cloneFiber,
<add> createFiberFromElement,
<add> createFiberFromCoroutine,
<add> createFiberFromYield,
<add>} = Reac... | 6 |
Javascript | Javascript | remove unused binding const | aaea70693e0b186672c0912a2bea6a68f691d9f8 | <ide><path>lib/_tls_common.js
<ide> const { SSL_OP_CIPHER_SERVER_PREFERENCE } = process.binding('constants').crypto;
<ide> // Lazily loaded
<ide> var crypto = null;
<ide>
<del>const binding = process.binding('crypto');
<del>const NativeSecureContext = binding.SecureContext;
<add>const { SecureContext: NativeSecureCont... | 1 |
Ruby | Ruby | add line break to string | fea5350d52de54eca9d6f30c67bd2fa008ca8328 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
<ide> def initialize(*)
<ide>
<ide> return if DSL::DSL_METHODS.include?(stanza)
<ide> raise ArgumentError,
<del> "Unknown/unsupported stanza: '#{stanza}' Check cask reference"\
<del> " for supported stanzas."
<add> ... | 2 |
Javascript | Javascript | fix single subpath bug | 8bebe3e184bef7af700ef76a77d1d2dd1e71f85f | <ide><path>src/extras/core/Path.js
<ide> THREE.Path.prototype.fromPoints = function ( vectors ) {
<ide>
<ide> this.moveTo( vectors[ 0 ].x, vectors[ 0 ].y );
<ide>
<del> for ( var v = 1, vlen = vectors.length; v < vlen; v ++ ) {
<add> var v, vlen = vectors.length;
<add>
<add> for ( v = 1; v < vlen; v++ ) {
<ide>
<id... | 1 |
PHP | PHP | support temporary tables in schema builder | 5505d26ba67746c3e229a789ba5f62ebbeea1c3d | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> class Blueprint
<ide> */
<ide> protected $commands = [];
<ide>
<add> /**
<add> * Whether to make the table temporary.
<add> *
<add> * @var bool
<add> */
<add> public $temporary = false;
<add>
<ide> /**
<ide> * The sto... | 4 |
Go | Go | compare v2metadata with associated auth config | 0928f3f2e3eda75a295b651d27f9dd992fd951a4 | <ide><path>distribution/metadata/v2_metadata_service.go
<ide> package metadata
<ide>
<ide> import (
<add> "crypto/hmac"
<add> "crypto/sha256"
<add> "encoding/hex"
<ide> "encoding/json"
<ide>
<ide> "github.com/docker/distribution/digest"
<add> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/lay... | 3 |
Go | Go | add mode check for device | 429423624c61b38efeaeda95792077a0da65c4ef | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunAddingOptionalDevices(c *check.C) {
<ide> }
<ide> }
<ide>
<add>func (s *DockerSuite) TestRunAddingOptionalDevicesNoSrc(c *check.C) {
<add> out, _ := dockerCmd(c, "run", "--device", "/dev/zero:rw", "busybox", "sh", "-c", "ls /dev/zero... | 5 |
Javascript | Javascript | remove event pooling in the modern system | 4a3f779d67d7d7f69cb2340c788826b86b34ce05 | <ide><path>packages/legacy-events/SyntheticEvent.js
<ide> Object.assign(SyntheticEvent.prototype, {
<ide> * won't be added back into the pool.
<ide> */
<ide> persist: function() {
<del> this.isPersistent = functionThatReturnsTrue;
<add> // Modern event system doesn't use pooling.
<add> if (!enableModer... | 7 |
Python | Python | drop cronky tests | d8ede0355c32455989ca5f955d555ffaf827b296 | <ide><path>djangorestframework/tests/accept.py
<del>from django.conf.urls.defaults import patterns, url, include
<del>from django.test import TestCase
<del>
<del>from djangorestframework.compat import RequestFactory
<del>from djangorestframework.views import APIView
<del>from djangorestframework.response import Respons... | 1 |
Javascript | Javascript | add title to default error page | 4df7e48f94b70a02ca89bf8889f8c7e432c5ac48 | <ide><path>lib/error.js
<ide> export default class Error extends React.Component {
<ide> return <div style={styles.error}>
<ide> <Head>
<ide> <meta name='viewport' content='width=device-width, initial-scale=1.0' />
<add> <title>{statusCode}: {title}</title>
<ide> </Head>
<ide> <div>... | 1 |
Text | Text | add v4.9.0-beta.3 to changelog | cca036eb575e10676e089f0d8efa01edd474cdb1 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.9.0-beta.3 (November 2, 2022)
<add>
<add>- [CVE pending](https://emberjs.com/blog/ember-4-8-1-released) Fix a prototype pollution vulnerability in `set` and `setProperties`
<add>- [#20233](https://github.com/emberjs/ember.js/pull/20233) [BUGFIX] Include... | 1 |
Ruby | Ruby | reduce loops in head route matching | d7ac60719a104df5f81e10459da0734369b34ab5 | <ide><path>actionpack/lib/action_dispatch/journey/router.rb
<ide> def find_routes(req)
<ide> r.path.match?(req.path_info)
<ide> }
<ide>
<del> routes =
<del> if req.head?
<del> match_head_routes(routes, req)
<del> else
<del> match_routes(rou... | 1 |
Python | Python | use log.debug instead of print in setup.py's | bfb1633766b1e6b1c72de094aa565c6e6ec0db80 | <ide><path>numpy/f2py/setup.py
<ide> import os
<ide> import sys
<ide> from distutils.dep_util import newer
<add>from numpy.distutils import log
<ide> from numpy.distutils.core import setup
<ide> from numpy.distutils.misc_util import Configuration
<ide>
<ide> def generate_f2py_py(build_dir):
<ide> f2py_exe ... | 1 |
Python | Python | add docs to bigquery check operators | d8a72893a314602a296308312aa658f3afce2d0b | <ide><path>airflow/contrib/operators/bigquery_check_operator.py
<ide>
<ide>
<ide> class BigQueryCheckOperator(CheckOperator):
<del> # TODO pydocs
<add> """
<add> Performs checks against Presto. The ``BigQueryCheckOperator`` expects
<add> a sql query that will return a single row. Each value on that
<add> ... | 1 |
Go | Go | check nil before set resource.oomkilldisable | 09a33b5f60557ee3846baa48f5628bc6b8a70a9b | <ide><path>daemon/container_operations_unix.go
<ide> func (daemon *Daemon) populateCommand(c *container.Container, env []string) erro
<ide> BlkioThrottleWriteBpsDevice: writeBpsDevice,
<ide> BlkioThrottleReadIOpsDevice: readIOpsDevice,
<ide> BlkioThrottleWriteIOpsDevice: writeIOpsDevice,
<del> OomKillDisable: ... | 1 |
Ruby | Ruby | fix broken driver test | fef8d97a2c75511df62915b617743b47f1a2f43a | <ide><path>actionpack/test/dispatch/system_testing/driver_test.rb
<ide> class DriverTest < ActiveSupport::TestCase
<ide> end
<ide> driver.use
<ide>
<del> expected = { args: ["start-maximized"], mobileEmulation: { deviceName: "iphone 6" }, prefs: { detach: true } }
<add> expected = { "goog:chromeOptions" ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.