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 |
|---|---|---|---|---|---|
Go | Go | add a network test | 249f5a65a55ac9f68c65d57a7e7b5ac486060b97 | <ide><path>container_test.go
<ide> func TestOutput(t *testing.T) {
<ide> }
<ide> }
<ide>
<add>func TestContainerNetwork(t *testing.T) {
<add> runtime := mkRuntime(t)
<add> defer nuke(runtime)
<add> container, err := runtime.Create(
<add> &Config{
<add> Image: GetTestImage(runtime).ID,
<add> Cmd: []string{"ping... | 1 |
Ruby | Ruby | check github tags for prerelease status | 1c10f51f9855076b541001b4b033800977d31a7b | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide> return if stable_url_minor_version.even?
<ide>
<ide> problem "#{stable.version} is a development release"
<del> when %r{^https://github.com/([\w-]+)/([\w-]+)/}
<add> when %r{^https://github.com/([\w-]+)/([\w-]+)}
<ide> ... | 1 |
Python | Python | add kernel capabilities in dockeroperator | b4b84a1933d055a2803b80b990482a7257a203ff | <ide><path>airflow/providers/docker/operators/docker.py
<ide> class DockerOperator(BaseOperator):
<ide> :param tty: Allocate pseudo-TTY to the container
<ide> This needs to be set see logs of the Docker container.
<ide> :type tty: bool
<add> :param cap_add: Include container capabilities
<add> :ty... | 2 |
Ruby | Ruby | remove single element array preprocess | 21c0e0e89176b832a286bc6381b6ca2a9a56f1de | <ide><path>activerecord/lib/active_record/associations/preloader/association.rb
<ide> def load_records(&block)
<ide> end
<ide>
<ide> def records_for(ids, &block)
<del> scope.where(association_key_name => ids.size == 1 ? ids.first : ids).load(&block)
<add> scope.where(associati... | 2 |
Text | Text | update suffixes example | 9002bea29f30438ed85cc61a11e5547de8318acb | <ide><path>.github/contributors/jgutix.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<ad... | 2 |
Mixed | Go | add networks placeholder to ps --format | a43d9bb9c399958e64deb5e827e6716ad1ef0e41 | <ide><path>cli/command/container/list.go
<ide> func (p *preProcessor) Size() bool {
<ide> return true
<ide> }
<ide>
<add>// Networks does nothing but return true.
<add>// It is needed to avoid the template check to fail as this field
<add>// doesn't exist in `types.Container`
<add>func (p *preProcessor) Networks() bo... | 4 |
Java | Java | improve api for rfc 7807 in functional endpoints | 0348a7bf2e712ad8488f24a289fb2a1c487db17d | <ide><path>spring-web/src/main/java/org/springframework/http/ResponseEntity.java
<ide> public static <T> ResponseEntity<T> of(Optional<T> body) {
<ide> }
<ide>
<ide> /**
<del> * Create a builder for a {@code ResponseEntity} with the given
<del> * {@link ProblemDetail} as the body, and its
<del> * {@link ProblemDe... | 7 |
Javascript | Javascript | tweak the logic for fixing event.which. fixes | e3c4e5789743eecb3cbe2b626f3a5f09c616ee4b | <ide><path>src/event.js
<ide> jQuery.event = {
<ide> }
<ide>
<ide> // Add which for key events
<del> if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) {
<del> event.which = event.charCode || event.keyCode;
<add> if ( event.which == null && (event.charCode != nul... | 1 |
Text | Text | add missing info to routing.md about anchors | 7a7e0a9afcb2bd4e305438765634ca3c6f6a3319 | <ide><path>guides/source/routing.md
<ide> get 'photos/:id', to: 'photos#show', id: /[A-Z]\d{5}/
<ide> get '/:id', to: 'articles#show', constraints: { id: /^\d/ }
<ide> ```
<ide>
<del>However, note that you don't need to use anchors because all routes are anchored at the start.
<add>However, note that you don't need to... | 1 |
Javascript | Javascript | add more error checking for font translation | 49c4196ec0c6f1ca5459412a0f10ab1cd72b5fe8 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> constructor.prototype = {
<ide> translateFont: function(fontDict, xref, resources) {
<ide> var descriptor = xref.fetch(fontDict.get("FontDescriptor"));
<del> var fontName = descriptor.get("FontName").name;
<del> ... | 1 |
Text | Text | add annotation to writefile `data` as `object` | 6a4b4ce4880f6f4e37adce9dd4bcdf87af8cd0e0 | <ide><path>doc/api/fs.md
<ide> changes:
<ide>
<ide> Write `buffer` to the file.
<ide>
<add>If `buffer` is a plain object, it must have an own (not inherited) `toString`
<add>function property.
<add>
<ide> The promise is resolved with an object containing two properties:
<ide>
<ide> * `bytesWritten` {integer} the num... | 1 |
Javascript | Javascript | fix incorrect use of int_max in validation | 761bbfbd76a54f9e1bfcab7f903f0522a015d153 | <ide><path>lib/internal/crypto/pbkdf2.js
<ide> const { internalBinding } = require('internal/bootstrap/loaders');
<ide> const { AsyncWrap, Providers } = internalBinding('async_wrap');
<ide> const { Buffer } = require('buffer');
<del>const { INT_MAX, pbkdf2: _pbkdf2 } = internalBinding('crypto');
<del>const { validateIn... | 3 |
Python | Python | drop unneeded comment | f51bb5ac8bf17fb03ab8c765c14b6e01ae3d0121 | <ide><path>rest_framework/schemas.py
<ide> def get_path_fields(self, path, method, view):
<ide> try:
<ide> model_field = model._meta.get_field(variable)
<ide> except:
<del> model_field = None # Set model_field to None so it doesn't fail test
<add> ... | 1 |
Javascript | Javascript | add capture to supported attributes | 3092454940dd4ffae6e47d6540f8dc124c576371 | <ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> // autoFocus is polyfilled/normalized by AutoFocusMixin
<ide> // autoFocus: HAS_BOOLEAN_VALUE,
<ide> autoPlay: HAS_BOOLEAN_VALUE,
<add> capture: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
<ide> cellPad... | 1 |
Javascript | Javascript | add a test for index() | 8e54b167cf60a6efa0e572d31f3886c3cfe74c0b | <ide><path>test/unit/core.js
<ide> test("each(Function)", function() {
<ide> ok( pass, "Execute a function, Relative" );
<ide> });
<ide>
<add>test("index()", function() {
<add> expect(1);
<add>
<add> equals( jQuery("#text2").index(), 2, "Returns the index of a child amongst its siblings" )
<add>});
<add>
<ide> test("... | 1 |
PHP | PHP | use mb_string function | a7d16c006099a706a0403fafcb87bdeff9dea325 | <ide><path>src/Utility/Text.php
<ide> public static function wrapBlock($text, $options = [])
<ide> $wrapped = self::wrap($text, $options);
<ide>
<ide> if (!empty($options['indent'])) {
<del> $indentationLength = strlen($options['indent']);
<add> $indentationLength = mb_strlen($opt... | 2 |
Text | Text | fix typo in changelog for 1.8.3 | b5aa42586e5750b780324bb50e6a0bffda8cb6be | <ide><path>CHANGELOG.md
<ide> and [read the end of life announcement](https://goo.gle/angularjs-end-of-life).*
<ide> **Visit [angular.io](https://angular.io) for the actively supported Angular.**
<ide>
<ide> <a name="1.8.3"></a>
<del># 1.8.2 ultimate-farewell (2020-10-21)
<add># 1.8.3 ultimate-farewell (2020-10-21)
<i... | 1 |
Javascript | Javascript | follow jquery logic for nested params | 2420a0a77e27b530dbb8c41319b2995eccf76791 | <ide><path>src/ng/http.js
<ide> var JSON_ENDS = {
<ide> };
<ide> var JSON_PROTECTION_PREFIX = /^\)\]\}',?\n/;
<ide>
<del>function paramSerializerFactory(jQueryMode) {
<del>
<del> function serializeValue(v) {
<del> if (isObject(v)) {
<del> return isDate(v) ? v.toISOString() : toJson(v);
<del> }
<del> ret... | 2 |
Python | Python | add levenshtein distance metric | ae7660161c38a0630fcff124a8efc0a2102a14b0 | <ide><path>strings/levenshtein-distance.py
<add>"""
<add>This is a Python implementation of the levenshtein distance.
<add>Levenshtein distance is a string metric for measuring the
<add>difference between two sequences.
<add>
<add>For doctests run following command:
<add>python -m doctest -v levenshtein-distance.py
<ad... | 1 |
Mixed | Javascript | invoke callback before emitting error always" | 95792a79892471e2c691c071e85d7fea29aa40cd | <ide><path>doc/api/stream.md
<ide> The `writable.write()` method writes some data to the stream, and calls the
<ide> supplied `callback` once the data has been fully handled. If an error
<ide> occurs, the `callback` *may or may not* be called with the error as its
<ide> first argument. To reliably detect write errors, ... | 8 |
Text | Text | add moduledirectories for ts jest config | 2be207a288e3ddda882901c218c2e3e6f78fa131 | <ide><path>docs/testing.md
<ide> const createJestConfig = nextJest({
<ide> // Add any custom config to be passed to Jest
<ide> const customJestConfig = {
<ide> setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
<add> // if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to ... | 1 |
Ruby | Ruby | handle nil manifests_annotations | 195e4d0f89ad53d72ac0ebd4823a41fdfb8d9e2a | <ide><path>Library/Homebrew/software_spec.rb
<ide> def github_packages_manifest_resource_tab(github_packages_manifest_resource)
<ide> manifests = json["manifests"]
<ide> raise ArgumentError, "Missing 'manifests' section." if manifests.blank?
<ide>
<del> manifests_annotations = manifests.map { |m| m["annotat... | 1 |
PHP | PHP | fix typo in comments | c659a926034da8e724e2766b90aef48c8fbb3018 | <ide><path>laravel/auth/drivers/eloquent.php
<ide> public function retrieve($id)
<ide> /**
<ide> * Attempt to log a user into the application.
<ide> *
<del> * @param array $arguments
<add> * @param array $arguments
<ide> * @return void
<ide> */
<ide> public function attempt($arguments = array())
<ide><pa... | 2 |
Javascript | Javascript | add failing test for stdout flush on exit | a695065305b710044569e0ee24b15b932fd2bd67 | <ide><path>test/mjsunit/fixtures/print-chars.js
<add>process.mixin(require("../common"));
<add>
<add>var n = parseInt(process.argv[2]);
<add>
<add>var s = "";
<add>for (var i = 0; i < n-1; i++) {
<add> s += 'c';
<add>}
<add>
<add>puts(s); // \n is the nth char.
<add>
<add>process.exit(0);
<ide><path>test/mjsunit/test-... | 3 |
PHP | PHP | register core class aliases | 7e3a99ebbab959324eebd88bdc38667f3fd35461 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public static function onRequest($method, $parameters = array())
<ide> return forward_static_call_array(array(static::requestClass(), $method), $parameters);
<ide> }
<ide>
<add> /**
<add> * Register the core class aliases in the container.
<add> *
<add> ... | 2 |
Javascript | Javascript | improve ie support | 986647be59259125750fd44dbb429658d67dc156 | <ide><path>lib/adapters/xhr.js
<ide> 'use strict';
<ide>
<del>/*global ActiveXObject:true*/
<del>
<ide> var utils = require('./../utils');
<ide> var buildURL = require('./../helpers/buildURL');
<ide> var parseHeaders = require('./../helpers/parseHeaders');
<ide> var transformData = require('./../helpers/transformData'... | 2 |
Javascript | Javascript | add some todo code | 1cd530cdf06e4865a91f159fffc0e687ff78610c | <ide><path>src/auto-update-manager.js
<ide> export default class AutoUpdateManager {
<ide> return this.emitter.on('did-complete-downloading-update', callback)
<ide> }
<ide>
<add> // TODO: When https://github.com/atom/electron/issues/4587 is closed, we can
<add> // add an update-available event.
<add> // onUpd... | 1 |
Ruby | Ruby | install plist before linking | 5437a480ebd34246db43a875c799f591d3cbf40d | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def caveats
<ide> def finish
<ide> ohai 'Finishing up' if ARGV.verbose?
<ide>
<add> install_plist
<add>
<ide> if f.keg_only?
<ide> begin
<ide> Keg.new(f.prefix).optlink
<ide> def finish
<ide> check_PATH unless f.keg_only?
<ide> ... | 1 |
Go | Go | implement regression test for stdin attach | 5190f7f33a9e36f1f5991a385f4db198e9f1b3a6 | <ide><path>api.go
<ide> func postContainersAttach(srv *Server, version float64, w http.ResponseWriter, r
<ide> if err != nil {
<ide> return err
<ide> }
<del> defer in.Close()
<add> defer func() {
<add> if tcpc, ok := in.(*net.TCPConn); ok {
<add> tcpc.CloseWrite()
<add> } else {
<add> in.Close()
<add> }
<add... | 5 |
Java | Java | avoid potential npe (spr-5930) | 68363f17a796e174012d2de99070e39a205b3ca7 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/propertyeditors/FileEditor.java
<ide> /*
<del> * Copyright 2002-2006 the original author or authors.
<add> * Copyright 2002-2009 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
... | 1 |
Python | Python | fix bug with test_suite being called incorrectly | 85eeb4732ea7e49c01db4f7981ee07c8fc1c90c3 | <ide><path>numpy/testing/numpytest.py
<ide> def _get_suite_list(self, test_module, level, module_name='__main__',
<ide> mstr = self._module_str
<ide> suite_list = []
<ide> if hasattr(test_module,'test_suite'):
<del> suite_list.extend(test_module.test_suite(level)._tests)
<add> ... | 1 |
Javascript | Javascript | use map to track handles in cluster child | 5a50989f5bde1e7cd495922444a3ce5a4c680897 | <ide><path>lib/internal/cluster/child.js
<ide> const { owner_symbol } = require('internal/async_hooks').symbols;
<ide> const Worker = require('internal/cluster/worker');
<ide> const { internal, sendHelper } = require('internal/cluster/utils');
<ide> const cluster = new EventEmitter();
<del>const handles = {};
<add>cons... | 1 |
Ruby | Ruby | fix stupid typo in bottle fix | fe4e73db323c7245f26b973ce78fa28f7e4433d4 | <ide><path>Library/Homebrew/macos.rb
<ide> def pkgutil_info id
<ide>
<ide> def bottles_supported? raise_if_failed=false
<ide> # We support bottles on all versions of OS X except 32-bit Snow Leopard.
<del> if Hardware.is_32_bit? and MacOS.version = :snow_leopard
<add> if Hardware.is_32_bit? and MacOS.versio... | 1 |
Ruby | Ruby | fix broken number_to_currency tests | 1b46a1158c221c3910f80f183f6591f14e68c236 | <ide><path>activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
<add>require 'active_support/core_ext/numeric/inquiry'
<add>
<ide> module ActiveSupport
<ide> module NumberHelper
<ide> class NumberToCurrencyConverter < NumberConverter # :nodoc: | 1 |
Ruby | Ruby | convert fixtures to a list of hashes to insert | bc3c3453d485a098c91d96b6f0a8e2c9a1e9b17b | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def insert_fixtures
<ide> Fixtures.find_table_name(habtm.options[:join_table]), nil)
<ide> end
<ide>
<del> fixtures.each do |label, fixture|
<add> rows = fixtures.map do |label, fixture|
<ide> row = fixture.to_hash
<ide>
<ide> i... | 1 |
Javascript | Javascript | fix compiler tests | e225d1005cb17994f024a6cfcfc2c8b5ac6218c4 | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> compiler.outputFileSystem = new MemoryFs();
<ide> const watching = compiler.watch({}, (err, stats) => {
<ide> if (err) return done(err);
<del> done();
<ide> });
<ide> watching.close(() => {
<ide> compiler.run((err, stats) => {
<id... | 1 |
Javascript | Javascript | remove toolbarandroid, move to fb internal | 31ab94770311f56182734b57c48ffcd765096dc5 | <ide><path>Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @format
<del> * @flow... | 4 |
Text | Text | fix typos in code-splitting readme | 73c1951c7004e7915c69a41d24d525a0955520c7 | <ide><path>examples/code-splitting/README.md
<del>This example illustrate a very simple case of Code Splitting with `require.ensure`.
<add>This example illustrates a very simple case of Code Splitting with `require.ensure`.
<ide>
<del>* `a` and `b` are required normally via CommonsJs
<add>* `a` and `b` are required no... | 1 |
Javascript | Javascript | expose reactfibertreereflection in fb build | f1abc3cd12f42c3498530c483e4bf77f4f0b6121 | <ide><path>src/fb/ReactDOMFiberFBEntry.js
<ide> Object.assign(
<ide> ReactBrowserEventEmitter: require('ReactBrowserEventEmitter'),
<ide> ReactErrorUtils: require('ReactErrorUtils'),
<ide> ReactFiberErrorLogger: require('ReactFiberErrorLogger'),
<add> ReactFiberTreeReflection: require('ReactFiberTreeRefl... | 1 |
Text | Text | clarify http.agent constructor options | 8a291a8e83313c42cc8c755a4d3125c6c07a1322 | <ide><path>doc/api/http.md
<ide> added: v0.3.4
<ide> Can have the following fields:
<ide> * `keepAlive` {boolean} Keep sockets around even when there are no
<ide> outstanding requests, so they can be used for future requests without
<del> having to reestablish a TCP connection. **Default:** `false`.
<add> ... | 1 |
Go | Go | use bufio for compression detection | 77c2b76e44f77eee2ca89ff551ac64f8c6b8bd23 | <ide><path>archive/archive.go
<ide> package archive
<ide>
<ide> import (
<del> "bytes"
<add> "bufio"
<ide> "compress/bzip2"
<ide> "compress/gzip"
<ide> "errors"
<ide> "fmt"
<del> "github.com/dotcloud/docker/pkg/system"
<del> "github.com/dotcloud/docker/utils"
<del> "github.com/dotcloud/docker/vendor/src/code.googl... | 1 |
PHP | PHP | fix trailing whitespace | 61dd1c3f9d178b1f52c1e2623663d80a76f10490 | <ide><path>lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
<ide> public function testLocaleSingleWithConditions() {
<ide> );
<ide> $this->assertEquals($expected, $result);
<ide> }
<del>
<add>
<ide> /**
<ide> * testLocaleSingleCountWithConditions method
<ide> * | 1 |
Text | Text | fix some errant links | 9ed6cec8ff91ff100c268fa21817fdc111e77e43 | <ide><path>docs/installation/SUSE.md
<ide> You must delete the user created configuration files manually.
<ide>
<ide> ## Where to go from here
<ide>
<del>You can find more details about Docker on openSUSE or SUSE Linux Enterprise in
<del>the [Docker quick start guide](https://www.suse.com/documentation/sles-12/docker... | 5 |
Javascript | Javascript | add test for selectors with commas | d7af36676b89a15ad0571cbf0d2a7d8b93470e58 | <ide><path>test/unit/selector.js
<ide> test("name", function() {
<ide> form.remove();
<ide> });
<ide>
<add>test( "comma selectors", function() {
<add> expect( 4 );
<add>
<add> var fixture = jQuery( "<div><h2><span/></h2><div><p><span/></p><p/></div></div>" );
<add>
<add> equal( fixture.find( "h2, div p" ).filter( "p"... | 1 |
Javascript | Javascript | use full url to github issues in comments | 8a8416f84169c553380704ab3a754db0a1735877 | <ide><path>lib/internal/event_target.js
<ide> function initEventTarget(self) {
<ide>
<ide> class EventTarget {
<ide> // Used in checking whether an object is an EventTarget. This is a well-known
<del> // symbol as EventTarget may be used cross-realm. See discussion in #33661.
<add> // symbol as EventTarget may be ... | 2 |
Javascript | Javascript | sanitize values bound to img[src] | 1adf29af13890d61286840177607edd552a9df97 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide) {
<ide> *
<ide> * @description
<ide> * Retrieves or overrides the default regular expression that is used for whitelisting of safe
<del> * urls during a[href] sanitization.
<add> * urls during a[href] and img[src] sanitization.
<ide> ... | 2 |
Javascript | Javascript | move suspenselist to experimental channel | 83564712b6e2907dcffdbf5f99b4713cf6c950de | <ide><path>packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
<ide> describe('ReactDOMFizzServer', () => {
<ide> }
<ide> Stream = require('stream');
<ide> Suspense = React.Suspense;
<del> SuspenseList = React.SuspenseList;
<add> if (gate(flags => flags.enableSuspenseList)) {
<add> Suspen... | 11 |
Javascript | Javascript | replace loader with use for the etp | 8f9b4721eb252250635a049f4c8969f2726b4a22 | <ide><path>examples/code-splitted-css-bundle/webpack.config.js
<ide> module.exports = {
<ide> loaders: [
<ide> {
<ide> test: /\.css$/,
<del> loader: ExtractTextPlugin.extract({
<add> use: ExtractTextPlugin.extract({
<ide> fallback: "style-loader",
<ide> use: "css-loader"
<ide> })
<ide><path... | 5 |
Text | Text | add new css documentation | 4e71121f3c329cd2f3340acb058fd83dcbb050bb | <ide><path>docs/basic-features/built-in-css-support.md
<ide> ---
<del>description: Next.js includes styled-jsx by default for isolated and scoped CSS support, but you can also use any other CSS-in-JS solution!. Learn more here.
<add>description: Next.js supports including CSS files as Global CSS or CSS Modules, using `... | 1 |
Text | Text | clarify optional catch all vs catch all routes | 3bfc25db9fc6fb21875510d5d9ada9896b87a80c | <ide><path>docs/api-routes/dynamic-api-routes.md
<ide> Catch all routes can be made optional by including the parameter in double brack
<ide>
<ide> For example, `pages/api/post/[[...slug]].js` will match `/api/post`, `/api/post/a`, `/api/post/a/b`, and so on.
<ide>
<add>The main difference between catch all and optio... | 2 |
PHP | PHP | fix a typo | 8b1026fb4577e2615bce39afc158d2a31da3c144 | <ide><path>src/ORM/LazyEagerLoader.php
<ide> class LazyEagerLoader
<ide> *
<ide> * @param \Cake\Datasource\EntityInterface|array $entities a single entity or list of entities
<ide> * @param array $contain A `contain()` compatible array.
<del> * @see \Cake\ORM\Query\contain()
<add> * @see \Cake\OR... | 1 |
Python | Python | remove another useless check | 2c96373a411b1a9754ccad16ab5d23b80ed35d25 | <ide><path>tests/keras/layers/test_recurrent_convolutional.py
<ide> def test_recurrent_convolutional():
<ide> assert output.shape == tuple(output_shape)
<ide>
<ide> # No need to check statefulness for both
<del> if dim_ordering == 'th':
<add> if dim_ordering == 'th' or ret... | 1 |
Mixed | Javascript | add support for option groups | f768954f38a7077abfd291eaafc0500d2d1e8007 | <ide><path>CHANGELOG.md
<ide> - Issue #464: [ng:options] incorrectly re-grew options on datasource change
<ide> - Issue #448: [ng:options] should support iterating over objects
<ide> - Issue #463: [ng:options] should support firing ng:change event
<add>- Issue #450: [ng:options] should support group by (select option g... | 3 |
Python | Python | add __all__ to ec2 module | 9548848cba3a3a9b9ffe6cd5ec4ca1736fa87c06 | <ide><path>libcloud/compute/drivers/ec2.py
<ide> from libcloud.compute.base import KeyPair
<ide> from libcloud.compute.types import NodeState, KeyPairDoesNotExistError
<ide>
<add>__all__ = [
<add> 'API_VERSION',
<add> 'NAMESPACE',
<add> 'INSTANCE_TYPES',
<add>
<add> 'EC2NodeDriver',
<add> 'BaseEC2NodeDr... | 1 |
PHP | PHP | remove spaces around declare statement | 3eeaa21ccd9a8f182829641ee1562817ca600bd4 | <ide><path>src/Controller/Component.php
<ide> <?php
<del>declare(strict_types = 1);
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Controller/Component/Auth... | 24 |
Python | Python | add theano floatx dtype | 4e78c9e7588fb10ed26349cd036eb3ea2f6bc5f0 | <ide><path>keras/layers/recurrent.py
<ide> def __init__(self, input_dim, output_dim=128,
<ide>
<ide> # P_h used to project X onto different dimension, using sparse random projections
<ide> if self.input_dim == self.output_dim:
<del> self.Pmat = theano.shared(np.identity(self.output_dim), nam... | 1 |
Javascript | Javascript | pass additional arguments to the callback | 3a4b6b83efdb8051e5c4803c0892c19ceb2cba50 | <ide><path>src/ng/timeout.js
<ide> function $TimeoutProvider() {
<ide> * @param {number=} [delay=0] Delay in milliseconds.
<ide> * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
<ide> * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply... | 2 |
Go | Go | use activation.listeners instead of files | def09526066001eefe16dbc6475b93bc1a9af0a2 | <ide><path>pkg/systemd/listendfd.go
<ide> package systemd
<ide>
<ide> import (
<ide> "errors"
<del> "fmt"
<ide> "net"
<ide> "strconv"
<ide>
<ide> import (
<ide> // ListenFD returns the specified socket activated files as a slice of
<ide> // net.Listeners or all of the activated files if "*" is given.
<ide> func Li... | 1 |
Go | Go | add test testrestartpolicywithliverestore | 89f034093a771fc1d3d161d23e018c25ae4e2ee3 | <ide><path>integration-cli/docker_cli_daemon_test.go
<ide> import (
<ide> "github.com/docker/docker/pkg/stringid"
<ide> "github.com/docker/docker/pkg/testutil"
<ide> icmd "github.com/docker/docker/pkg/testutil/cmd"
<del> "github.com/docker/go-units"
<add> units "github.com/docker/go-units"
<ide> "github.com/docker/... | 1 |
Javascript | Javascript | allow 0 as a lowwatermark value | 02f017d24f8cd93939bb4bd178b878d15cc5a08c | <ide><path>lib/_stream_readable.js
<ide> function ReadableState(options, stream) {
<ide> // cast to an int
<ide> this.bufferSize = ~~this.bufferSize;
<ide>
<del> this.lowWaterMark = options.lowWaterMark || 1024;
<add> this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ?
<add> options.lowWaterMark : ... | 2 |
PHP | PHP | fix return type | cbbe9ee2268d5d37fd9a936c79a97fe8380d7276 | <ide><path>src/Shell/Task/UnloadTask.php
<ide> class UnloadTask extends Shell
<ide> * Execution method always used for tasks.
<ide> *
<ide> * @param string $plugin The plugin name.
<del> * @return boolean if action passed.
<add> * @return bool if action passed.
<ide> */
<ide> public func... | 1 |
Javascript | Javascript | remove outdated todo | cc1ff874e5aa63e6bedf77e75a88373a09a555ae | <ide><path>packages/react-reconciler/src/__tests__/ReactFiberHostContext-test.js
<ide> describe('ReactFiberHostContext', () => {
<ide> beforeEach(() => {
<ide> jest.resetModules();
<ide> React = require('react');
<del> // TODO: can we express this test with only public API?
<ide> ReactFiberReconciler =... | 1 |
Ruby | Ruby | remove unused method | 929fd12650b5f01f7f5aee1338cc25d993f59389 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def default_compiler
<ide> end
<ide> end
<ide>
<del> def default_cxx_stdlib
<del> version >= :mavericks ? :libcxx : :libstdcxx
<del> end
<del>
<ide> def gcc_40_build_version
<ide> @gcc_40_build_version ||=
<ide> if (path = locate("gcc-4... | 1 |
Java | Java | improve coverage & related cleanup 03/05 | cb05a2614c11ebb7b86e723556f98e50546a50ed | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/BlockingFlowableIterable.java
<ide> public T next() {
<ide>
<ide> @Override
<ide> public void onSubscribe(Subscription s) {
<del> if (SubscriptionHelper.setOnce(this, s)) {
<del> s.request(batchSize);
<del> ... | 93 |
Ruby | Ruby | defer loading xmlmini until it's needed | a45a4203acdd8149a82fe0485c2173cc8beaa78a | <ide><path>activesupport/lib/active_support/core_ext/array/conversions.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "active_support/xml_mini"
<ide> require "active_support/core_ext/hash/keys"
<ide> require "active_support/core_ext/string/inflections"
<ide> require "active_support/core_ext/object/to_param"... | 2 |
PHP | PHP | change method visibility | 3673354d70b860078d0c88e1d89439e65db9af70 | <ide><path>src/Illuminate/Http/Resources/Json/ResourceCollection.php
<ide> public function toResponse($request)
<ide> * @param \Illuminate\Http\Request $request
<ide> * @return \Illuminate\Http\JsonResponse
<ide> */
<del> private function preparePaginatedResponse($request)
<add> protected function... | 1 |
Go | Go | remove unused commandline | b7106a92f26271e0d2c6623446ce4a8bc987c445 | <ide><path>libcontainerd/client_windows.go
<ide> func (clnt *client) Create(containerID string, checkpoint string, checkpointDir
<ide> client: clnt,
<ide> friendlyName: InitFriendlyName,
<ide> },
<del> commandLine: strings.Join(spec.Process.Args, " "),
<ide> },
<ide> processes: make(map[str... | 2 |
PHP | PHP | apply fixes from styleci | 03b673db7f3505d81ce737b2019133a250317bc8 | <ide><path>src/Illuminate/Console/Concerns/InteractsWithIO.php
<ide> public function alert($string)
<ide> public function newLine($count = 1)
<ide> {
<ide> $this->output->newLine($count);
<del>
<add>
<ide> return $this;
<ide> }
<ide> | 1 |
Javascript | Javascript | remove trailing whitespace | 842b6ccc0e009b3c06b998ea8d69c4d2a0b31e2a | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", function() {
<ide> var files = {};
<ide> c.outputFileSystem = {
<ide> join: function() {
<del> return [].join.call(arguments, "/").replace(/\/+/g, "/");
<add> return [].join.call(arguments, "/").replace(/\/+/g, "/");
<ide> },
<ide> mkdirp: ... | 1 |
Python | Python | fix integration of zero polynomials | 6b9762c0a918acb583bee7e387863123e339e46c | <ide><path>numpy/polynomial/chebyshev.py
<ide> def chebder(cs, m=1, scl=1) :
<ide> raise ValueError, "The order of derivation must be integer"
<ide> if cnt < 0 :
<ide> raise ValueError, "The order of derivation must be non-negative"
<del> if not np.isscalar(scl) :
<del> raise ValueError, "... | 4 |
Python | Python | display all containers logs | ab80880fedb7843baa5b6e0f11d3fd99ded4b5cc | <ide><path>airflow/operators/docker_operator.py
<ide> def _run_image(self):
<ide> working_dir=self.working_dir,
<ide> tty=self.tty,
<ide> )
<add>
<add> lines = self.cli.attach(container=self.container['Id'],
<add> stdout=True,
<ad... | 1 |
Go | Go | use local rand.random in test | c2c45d77691d1ca501a68d20885d040415477c92 | <ide><path>daemon/execdriver/lxc/lxc_template_unit_test.go
<ide> func TestLXCConfig(t *testing.T) {
<ide> os.MkdirAll(path.Join(root, "containers", "1"), 0777)
<ide>
<ide> // Memory is allocated randomly for testing
<del> rand.Seed(time.Now().UTC().UnixNano())
<add> r := rand.New(rand.NewSource(time.Now().UTC().Unix... | 1 |
Text | Text | use secure sfc links | a0855fde264786e5f13169a5e22321793ec1effd | <ide><path>README.md
<ide> Our bottles (binary packages) are hosted by Bintray.
<ide>
<ide> [](https://bintray.com/homebrew)
<ide>
<del>Homebrew is a member of the [Software Freedom Conservancy](http://sfconservancy.org)
<add>Homebrew... | 1 |
Ruby | Ruby | improve strongparameters documentation [ci skip] | 2aa08e313d3cc3562a3651977c428f7ca9182810 | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def initialize(param) # :nodoc:
<ide> # params.permit(:c)
<ide> # # => ActionController::UnpermittedParameters: found unpermitted keys: a, b
<ide> class UnpermittedParameters < IndexError
<del> attr_reader :params
<add> attr_re... | 1 |
Python | Python | add configure flag to build v8 with dchecks | d1587dcd0af155deb36ee51290b2f9842c2a570b | <ide><path>configure.py
<ide> default=False,
<ide> help='compile V8 with minimal optimizations and with runtime checks')
<ide>
<add>parser.add_option('--v8-with-dchecks',
<add> action='store_true',
<add> dest='v8_with_dchecks',
<add> default=False,
<add> help='compile V8 with debug checks and runti... | 1 |
Javascript | Javascript | standardize the path before copying it | 8df13c584981a2c3475acdd406c59afb5e3c37e0 | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide>
<ide> workingDirectory = workingDirectory.replace(/\/$/, '')
<ide>
<add> // Depending on where the paths come from, they may have a '/private/'
<add> // prefix. Standardize by stripping that out.
<add> _path = _p... | 1 |
Javascript | Javascript | prevent animation on initial page load | 570463a465fae02efc33e5a1fa963437cdc275dd | <ide><path>src/ng/animator.js
<ide> *
<ide> * The `event1` and `event2` attributes refer to the animation events specific to the directive that has been assigned.
<ide> *
<del> * Keep in mind that, by default, **all** initial animations will be skipped until the first digest cycle has fully
<del> * passed. This help... | 8 |
PHP | PHP | simplify booltype php conversion | c46c3da122dc307c354aac0eb87ed0a849e70b87 | <ide><path>src/Database/Type/BoolType.php
<ide> public function toDatabase($value, DriverInterface $driver): ?bool
<ide> */
<ide> public function toPHP($value, DriverInterface $driver): ?bool
<ide> {
<del> if ($value === null || $value === true || $value === false) {
<add> if ($value === null... | 1 |
Text | Text | add detailed example of env dict usage | bf83f6872a55e307da289fb901db3c16dd35e8d1 | <ide><path>website/docs/usage/projects.md
<ide> pipelines.
<ide> > python -m spacy project run test . --vars.foo bar
<ide> > ```
<ide>
<add>> #### Tip: Environment Variables
<add>>
<add>> Commands in a project file are not executed in a shell, so they don't have
<add>> direct access to environment variables. But you c... | 1 |
Python | Python | add __len__() function and tests | 321b1425e34d850cca84ca94ce64dae3f52c3d9a | <ide><path>data_structures/linked_list/__init__.py
<ide> def __init__(self, item, next):
<ide> class LinkedList:
<ide> def __init__(self):
<ide> self.head = None
<add> self.size = 0
<ide>
<ide> def add(self, item):
<ide> self.head = Node(item, self.head)
<add> self.size += 1
<ide>... | 1 |
Python | Python | add depthwiseconv1d layer | e96176aa0323583f3c1a08ca8e546e92e7ad628e | <ide><path>keras/layers/__init__.py
<ide> from keras.layers.convolutional import Convolution3DTranspose
<ide> from keras.layers.convolutional import SeparableConvolution1D
<ide> from keras.layers.convolutional import SeparableConvolution2D
<add>from keras.layers.convolutional import DepthwiseConv1D
<ide> from keras.lay... | 3 |
Python | Python | extend comments _block_check_depths_match | ff7f72690f810d00c13d071fc5c4205c6a21cccf | <ide><path>numpy/core/shape_base.py
<ide> def stack(arrays, axis=0, out=None):
<ide> return _nx.concatenate(expanded_arrays, axis=axis, out=out)
<ide>
<ide>
<del>def _block_check_depths_match(arrays, index=[]):
<del> # Recursive function checking that the depths of nested lists in `arrays`
<del> # all match... | 1 |
Python | Python | remove unnecessary parens after 'del' keyword | 02613f322322c89ce0bf71cba7226831d3c227c3 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> logger.debug("{0} plugin - Stop thread for old container {1}".format(self.plugin_name, container_id[:12]))
<ide> self.thread_list[container_id].stop()
<ide> # Delete the item from the dict
<del> ... | 1 |
Python | Python | fix a test | e790601f9969e4a51247ca5184546eba6e93e196 | <ide><path>libcloud/test/storage/test_local.py
<ide> except ImportError:
<ide> print('lockfile library is not available, skipping local_storage tests...')
<ide> LocalStorageDriver = None
<add> LockTimeout = None
<ide>
<ide> from libcloud.storage.drivers.dummy import DummyIterator
<ide> | 1 |
Ruby | Ruby | remove unused mget_capable? flag | c617b8f8fdb1a0e905a3ea91f900d17ad55ea78d | <ide><path>activesupport/lib/active_support/cache/redis_cache_store.rb
<ide> def inspect
<ide> # Read multiple values at once. Returns a hash of requested keys ->
<ide> # fetched values.
<ide> def read_multi(*names)
<del> if mget_capable?
<del> instrument(:read_multi, names, options) d... | 1 |
Text | Text | use the same case as the section heading | 359c93d3ab37443c27143c86ad84d5e130fe066c | <ide><path>README.md
<ide> gpg --keyserver pool.sks-keyservers.net --recv-keys 108F52B48DB57BB0CC439B2997B0
<ide> gpg --keyserver pool.sks-keyservers.net --recv-keys B9E2F5981AA6E0CD28160D9FF13993A75599653C
<ide> ```
<ide>
<del>See the section above on [Verifying Binaries](#verifying-binaries) for how to
<add>See the ... | 1 |
Javascript | Javascript | set evt.src to empty string or src attr from load | 46d8b3738567c43a4818dd0abe086fc4bd041dbd | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> }
<ide>
<ide> /**
<del> * Fired when the source is set or changed on the {@link Tech}
<add> * *EXPERIMENTAL* Fired when the source is set or changed on the {@link Tech}
<ide> * causing the media element to reload.
<ide> *
<ide> *... | 4 |
PHP | PHP | replace 4 spaces with tabs | bd2533d93595edefc2b6e9afed23cef83f062b14 | <ide><path>src/Illuminate/Foundation/Testing/ApplicationTrait.php
<ide>
<ide> trait ApplicationTrait {
<ide>
<del> /**
<del> * The Illuminate application instance.
<del> *
<del> * @var \Illuminate\Foundation\Application
<del> */
<del> protected $app;
<del>
<del> /**
<del> * The HttpKernel... | 3 |
PHP | PHP | fix undefined variable | 55f415bcff70c991a6accee9a17deee46a9e29c1 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function avg($column)
<ide> */
<ide> public function average($column)
<ide> {
<del> return $this->avg($key);
<add> return $this->avg($column);
<ide> }
<ide>
<ide> /** | 1 |
Javascript | Javascript | add test for gh-2867 | a8c0194d3d58fd064e2c4f8b3cad17f7eb77ebfc | <ide><path>test/unit/css.js
<ide> QUnit.test( "can't get css for disconnected in IE<9, see #10254 and #8388", func
<ide> assert.equal( div.css( "top" ), "10px", "can't get top in IE<9, see #8388" );
<ide> } );
<ide>
<add>QUnit.test( "Ensure styles are retrieving from parsed html on document fragments", function( asse... | 1 |
Ruby | Ruby | use extract_options! in cycle helper | fd3f550c949fda5d3f9d008bf90091dc151d006f | <ide><path>actionpack/lib/action_view/helpers/text_helper.rb
<ide> require 'active_support/core_ext/object/blank'
<ide> require 'active_support/core_ext/string/filters'
<add>require 'active_support/core_ext/array/extract_options'
<ide>
<ide> module ActionView
<ide> # = Action View Text Helpers
<ide> def simple_forma... | 1 |
Python | Python | break long line | e7df4a4e2f0e21f110b177241f32c84548a95bd4 | <ide><path>numpy/random/tests/test_random.py
<ide> def test_shuffle_no_object_unpacking(self, random, use_array_like):
<ide> class MyArr(np.ndarray):
<ide> pass
<ide>
<del> items = [None, np.array([3]), np.float64(3), np.array(10), np.float64(7)]
<add> items = [None, np.array([3]), np... | 1 |
Javascript | Javascript | remove unnecessary error overriding in | cc77be957e502ca6b855f1600d7fd11748dceb18 | <ide><path>packages/shared/__tests__/ReactErrorProd-test.internal.js
<ide> let formatProdErrorMessage;
<ide>
<ide> describe('ReactErrorProd', () => {
<del> let globalErrorMock;
<del>
<ide> beforeEach(() => {
<del> if (!__DEV__) {
<del> // In production, our Jest environment overrides the global Error
<del> ... | 1 |
PHP | PHP | apply fixes from styleci | 0deda1a8780b57d7a26b9317de90556432029df2 | <ide><path>tests/View/Blade/BladeComponentTagCompilerTest.php
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Foundation\Application;
<ide> use Illuminate\Contracts\View\Factory;
<del>use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\View\Compilers\BladeCompiler;
<ide> use Illuminate\V... | 1 |
Text | Text | add note about standalone + runtimeconfig caveat | 1c1fbeb4decf31ff8fd6ea274758eb36c25d5af1 | <ide><path>docs/advanced-features/output-file-tracing.md
<ide> This will create a folder at `.next/standalone` which can then be deployed on it
<ide>
<ide> Additionally, a minimal `server.js` file is also output which can be used instead of `next start`. This minimal server does not copy the `public` or `.next/static`... | 1 |
Go | Go | return error when iptables is not found | c66d2b6a532c657b554ffa3c80b2cf15e218ee8e | <ide><path>network.go
<ide> func networkSize(mask net.IPMask) (int32, error) {
<ide> func iptables(args ...string) error {
<ide> path, err := exec.LookPath("iptables")
<ide> if err != nil {
<del> log.Fatal("command not found: iptables")
<add> return fmt.Errorf("command not found: iptables")
<ide> }
<ide> if err :... | 1 |
Text | Text | fix typo cppu | 260bbef84a057ac232a3d16c297a40731a072b3a | <ide><path>guide/portuguese/computer-hardware/cpu/index.md
<ide> As velocidades da CPU são medidas em gigahertz (GHz). Para cada gigahertz de ve
<ide>
<ide> Gigahertz não é o único fator determinante na velocidade real de um processador, já que diferentes processadores com a mesma velocidade gigahertz (também conhecid... | 1 |
Javascript | Javascript | ignore hidden files | 0f59e5d49d295c521f0a26b83f7a59668d26c6f1 | <ide><path>lib/ContextModuleFactory.js
<ide> ContextModuleFactory.prototype.resolveDependencies = function resolveDependencie
<ide> (function addDirectory(directory, callback) {
<ide> fs.readdir(directory, function(err, files) {
<ide> if(!files || files.length === 0) return callback(null, []);
<del> async.map(f... | 3 |
Text | Text | fix typos in esm.md | f458f1b93b9302d76382b390c82e0e0d3ec6678a | <ide><path>doc/api/esm.md
<ide> _internal_, _conditions_)
<ide> > 1. Set _scopeURL_ to the parent URL of _scopeURL_.
<ide> > 2. If _scopeURL_ ends in a _"node\_modules"_ path segment, return **null**.
<ide> > 3. Let _pjsonURL_ be the resolution of _"package.json"_ within
<del>> _packageURL_.
<add>> ... | 1 |
Ruby | Ruby | improve shorthand matching for routes | 572bbab2e63916b4bb5e835d403856767b7f4be5 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def match(path, *rest)
<ide> end
<ide>
<ide> def using_match_shorthand?(path, options)
<del> path && (options[:to] || options[:action]).nil? && path =~ %r{/[\w/]+$}
<add> path && (options[:to] || options[:action]).nil? ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.