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
PHP
PHP
avoid unexpected removal of items with null key
528e4381af27a16eb59082b53c0e21a30e42dc1a
<ide><path>src/Illuminate/Support/Arr.php <ide> public static function forget(&$array, $keys) <ide> foreach ($keys as $key) { <ide> $parts = explode('.', $key); <ide> <add> // clean up before each pass <add> $array = &$original; <add> <ide> while (count($parts) > 1...
2
Go
Go
unify host-options, and use consts
6a5393636e358173e17275d3bd64218f6157f01d
<ide><path>opts/hosts_unix.go <ide> <ide> package opts // import "github.com/docker/docker/opts" <ide> <del>import "fmt" <add>const ( <add> // DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. dockerd -H tcp://:8080 <add> DefaultHTTPHost = "localhost" <ide> <del>// DefaultHost constant ...
4
PHP
PHP
fix syntax error in error class
95528adab5e4f409d20f81c935e8ffdfee263f8d
<ide><path>application/routes.php <ide> <ide> 'GET /' => function() <ide> { <add> $this-> <ide> return View::make('home/index'); <ide> }, <ide> <ide><path>system/error.php <ide> public static function handle($e) <ide> ->bind('message', $message) <ide> ...
2
Python
Python
use textwrap.dedent in f2py tests
1f3a43d9450189088ba8224b18d60b0efa8cbd81
<ide><path>numpy/f2py/tests/test_callback.py <ide> def test_all(self, name): <ide> <ide> @pytest.mark.slow <ide> def test_docstring(self): <del> expected = """ <add> expected = textwrap.dedent("""\ <ide> a = t(fun,[fun_extra_args]) <ide> <ide> Wrapper for ``t``. <ide> def test_do...
3
Python
Python
break long lines in numpy/distutils/log.py
79106925b1377c6b781fabb61daf505a35564c21
<ide><path>numpy/distutils/log.py <ide> from distutils.log import _global_log <ide> <ide> if sys.version_info[0] < 3: <del> from .misc_util import red_text, default_text, cyan_text, green_text, is_sequence, is_string <add> from .misc_util import (red_text, default_text, cyan_text, green_text, <add> is...
1
PHP
PHP
apply fixes from styleci
f99752151ec05f3eb572f5bc00b2fdcbed45a51a
<ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php <ide> public function validateAccepted($attribute, $value) <ide> */ <ide> public function validateAcceptedIf($attribute, $value, $parameters) <ide> { <del> <ide> $acceptable = ['yes', 'on', '1', 1, true, 'true']; <ide> <ide> ...
2
Javascript
Javascript
use nonnumericonlyhash function for contenthash
f1d329cc0e5241327575d3b3d6f491ff95773c8b
<ide><path>lib/asset/AssetGenerator.js <ide> const Generator = require("../Generator"); <ide> const RuntimeGlobals = require("../RuntimeGlobals"); <ide> const createHash = require("../util/createHash"); <ide> const { makePathsRelative } = require("../util/identifier"); <add>const nonNumericOnlyHash = require("../util/n...
5
Ruby
Ruby
fix some accidental nils
03e9a6417d52e2783a8a82e733f6e9ef000ece52
<ide><path>actionpack/lib/action_view/lookup_context.rb <ide> def self.register_detail(name, options = {}, &block) <ide> Accessors.send :define_method, :"default_#{name}", &block <ide> Accessors.module_eval <<-METHOD, __FILE__, __LINE__ + 1 <ide> def #{name} <del> @details[:#{name}] <add> ...
2
Ruby
Ruby
add more test cases
eb933f0154f5e10a794552086cf18d1b29b90081
<ide><path>activerecord/test/cases/relation_scoping_test.rb <ide> def test_reverse_order_with_arel_node <ide> assert_equal Developer.order("id DESC").to_a.reverse, Developer.order(Developer.arel_table[:id].desc).reverse_order <ide> end <ide> <add> def test_reverse_order_with_multiple_arel_nodes <add> assert_...
1
Mixed
Python
rewrite parts of vector and matrix
fe5c711ce68cb1d410d13d8c8a02ee7bfd49b1d3
<ide><path>knapsack/README.md <ide> The knapsack problem has been studied for more than a century, with early works <ide> ## Documentation <ide> <ide> This module uses docstrings to enable the use of Python's in-built `help(...)` function. <del>For instance, try `help(Vector)`, `help(unitBasisVector)`, and `help(CLASS...
4
Go
Go
remove tests for canonicaltarnameforpath
8b36298d7fa8d906c3528df4cbdee3a8bfa0493a
<ide><path>pkg/archive/archive_unix_test.go <ide> import ( <ide> "gotest.tools/v3/skip" <ide> ) <ide> <del>func TestCanonicalTarNameForPath(t *testing.T) { <del> cases := []struct{ in, expected string }{ <del> {"foo", "foo"}, <del> {"foo/bar", "foo/bar"}, <del> {"foo/dir/", "foo/dir/"}, <del> } <del> for _, v := r...
2
Text
Text
update changelog for 0.19.0-beta.1 release
56ac637d7d2f2f08e7b80e892d68cee7ae7ae830
<ide><path>CHANGELOG.md <ide> # Changelog <ide> <add>### 0.19.0-beta.1 (Aug 9, 2018) <add> <add>**NOTE:** This is a beta version of this release. There may be functionality that is broken in <add>certain browsers, though we suspect that builds are hanging and not erroring. See <add>https://saucelabs.com/u/axios for th...
1
PHP
PHP
fix spacing issue in asset documentation
0344d74c6e530a872fb2db189696ac4299bbe6eb
<ide><path>system/asset.php <ide> private function get_group($group) <ide> * Get the link to a single registered CSS asset. <ide> * <ide> * <code> <del> * echo $container->get_style('common'); <add> * echo $container->get_style('common'); <ide> * </code> <ide> * <ide> * @param string $name
1
PHP
PHP
add tests for trace logging change
4a6c7e81fa5dd2eb27a87d80fb298ef90c068603
<ide><path>tests/TestCase/Error/ErrorHandlerTest.php <ide> public function testHandleExceptionLog() <ide> { <ide> $errorHandler = new TestErrorHandler([ <ide> 'log' => true, <add> 'trace' => true, <ide> ]); <ide> <ide> $error = new NotFoundException('Kaboom!'); <ide> ...
1
Text
Text
note $home override
90246be60a6ba46e07b5ab65ced53b1290b98ab9
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> Check the top of the e.g. `./configure` output. Some configure scripts do not re <ide> <ide> Please add a [`test do`](http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula#test-class_method) block to the formula. This will be run by `brew test foo` and ...
1
Python
Python
add test for optional size argument for ndindex
ffb8c414875a1430814c1e9938d1a58defcf516d
<ide><path>numpy/lib/tests/test_index_tricks.py <ide> def test_ndindex(): <ide> expected = [ix for ix, e in np.ndenumerate(np.zeros((1, 2, 3)))] <ide> assert_array_equal(x, expected) <ide> <add> # Make sure size argument is optional <add> x = list(np.ndindex()) <add> assert_equal(x, [(0,)]) <add> <ide...
1
PHP
PHP
assertcontent()
c703de37d6eee632a3eb661c2866566fda80388e
<ide><path>src/Illuminate/Testing/TestResponse.php <ide> public function getCookie($cookieName, $decrypt = true, $unserialize = false) <ide> } <ide> } <ide> <add> /** <add> * Assert that the given string matches the response content. <add> * <add> * @param string $value <add> * @return...
2
Python
Python
use mattrgetter in apply_async()
ba969f807d341ede4e894e7bdfe0c0c8ccf52f82
<ide><path>celery/conf.py <ide> def _get(name, default=None): <ide> "routing_key": AMQP_CONSUMER_ROUTING_KEY, <ide> "exchange_type": AMQP_EXCHANGE_TYPE, <ide> } <add>} <ide> AMQP_CONSUMER_QUEUES = _get("CELERY_AMQP_CONSUMER_QUEUES", <ide> DEFAULT_AMQP_CONSUMER...
3
Text
Text
provide example of initial state ssr scrub
b3e43c85e4c1d2883000fad92db38bd37d243ad6
<ide><path>docs/recipes/ServerRendering.md <ide> In our example, we take a rudimentary approach to security. When we obtain the p <ide> <ide> For our simplistic example, coercing our input into a number is sufficiently secure. If you're handling more complex input, such as freeform text, then you should run that input...
1
Go
Go
remove old testing stuff that slipped into master
b4988d8d75b4ee915ade6013de76bb1336917528
<ide><path>integration-cli/docker_api_info_test.go <ide> package main <ide> import ( <ide> "net/http" <ide> "strings" <del> "testing" <add> <add> "github.com/go-check/check" <ide> ) <ide> <del>func TestInfoApi(t *testing.T) { <add>func (s *DockerSuite) TestInfoApi(c *check.C) { <ide> endpoint := "/info" <ide> <ide...
1
Javascript
Javascript
add test for non-standard extension transpilation
227ef5e2deab0e711653a0a7dd949b6f9cea6e91
<ide><path>spec/package-transpilation-registry-spec.js <ide> describe("PackageTranspilationRegistry", () => { <ide> let hitPathMissSubdir = '/path/to/file4.js' <ide> let hitPathMissExt = '/path/to/file5.ts' <ide> let nodeModulesFolder = '/path/to/lib/node_modules/file6.js' <add> let hitNonStandardExt = '...
1
PHP
PHP
add a test fo cell options
87568f2845923c2606f63bca69d21f1dae730aa8
<ide><path>tests/TestCase/View/CellTest.php <ide> public function testCellMissingMethod() { <ide> $this->View->cell('Articles::nope'); <ide> } <ide> <add>/** <add> * Test that cell options are passed on. <add> * <add> * @return void <add> */ <add> public function testCellOptions() { <add> $cell = $this->View->cell...
2
Ruby
Ruby
add missing require to ap
da483d3f307a725d10fa3888df07d0bcbb14a0d2
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> require 'active_support/core_ext/hash/keys' <ide> require 'active_support/core_ext/module/attribute_accessors' <add>require 'active_support/key_generator' <ide> require 'active_support/message_verifier' <ide> <ide> module ActionDispatch
1
Python
Python
fix typo in password
a2cf5a0e3fc2c463bcb44b665367db34fb7830b9
<ide><path>airflow/models/connection.py <ide> class Connection(Base, LoggingMixin): <ide> :type host: str <ide> :param login: The login. <ide> :type login: str <del> :param password: The pasword. <add> :param password: The password. <ide> :type password: str <ide> :param schema: The schema. <i...
1
Go
Go
remove superfluous panic
14d3880daf9bdfe52248b5b0548a5522161baf2c
<ide><path>runtime_test.go <ide> func newTestRuntime() (*Runtime, error) { <ide> return nil, err <ide> } <ide> if err := CopyDirectory(unitTestStoreBase, root); err != nil { <del> panic(err) <ide> return nil, err <ide> } <ide>
1
PHP
PHP
update hasmany to use proxy methods
709189f7bfac23fb99d9a90a249b91a86dcb24f1
<ide><path>src/ORM/Association/DependentDeleteHelper.php <ide> public function cascadeDelete(Association $association, EntityInterface $entity, <ide> <ide> return true; <ide> } <del> $conditions = array_merge($conditions, $association->getConditions()); <ide> <del> return (bool)$tabl...
3
Python
Python
ignore unused converters in `loadtxt`
f1855ef6c44ff037b606cbc0673a536ece31a945
<ide><path>numpy/lib/io.py <ide> def split_line(line): <ide> # By preference, use the converters specified by the user <ide> for i, conv in (user_converters or {}).iteritems(): <ide> if usecols: <del> i = usecols.index(i) <add> try: <add> i = usecols.index(i) <add> ...
2
Text
Text
fix the ipaddress of an explanation
a94b48923e8ec7a5e9ebe6101f0ccac208fb4f25
<ide><path>docs/userguide/networking/default_network/custom-docker0.md <ide> Docker configures `docker0` with an IP address, netmask and IP allocation range. <ide> <ide> - `--bip=CIDR` -- supply a specific IP address and netmask for the `docker0` bridge, using standard CIDR notation like `192.168.1.5/24`. <ide> <del>...
1
Python
Python
make spacy.load kwargs keyword-only
fbf3a755d7af0afc32fb7f7d83d4b9933ed724e4
<ide><path>spacy/__init__.py <ide> <ide> def load( <ide> name: Union[str, Path], <add> *, <ide> disable: Iterable[str] = util.SimpleFrozenList(), <ide> exclude: Iterable[str] = util.SimpleFrozenList(), <ide> config: Union[Dict[str, Any], Config] = util.SimpleFrozenDict(),
1
Text
Text
update a link in v8.md
4bde70de5ab543333bc8c98091dc5ee2f2a2fe46
<ide><path>doc/api/v8.md <ide> A subclass of [`Deserializer`][] corresponding to the format written by <ide> [V8]: https://developers.google.com/v8/ <ide> [`vm.Script`]: vm.html#vm_new_vm_script_code_options <ide> [here]: https://github.com/thlorenz/v8-flags/blob/master/flags-0.11.md <del>[`GetHeapSpaceStatistics`]: ht...
1
Javascript
Javascript
add a support comment & fix a link @ tabindex hook
9cb89bf91d034ec7166d9215e2f80fa765292975
<ide><path>src/attributes/prop.js <ide> jQuery.extend( { <ide> tabIndex: { <ide> get: function( elem ) { <ide> <add> // Support: IE 9-11 only <ide> // elem.tabIndex doesn't always return the <ide> // correct value when it hasn't been explicitly set <del> // http://fluidproject.org/blog/2008/01/09/ge...
1
Go
Go
add test for exposing large number of ports
29be7b439ec4d0c8a54852ccbbe7b6bcf040e13f
<ide><path>integration-cli/docker_cli_build_test.go <ide> package main <ide> <ide> import ( <ide> "archive/tar" <add> "bytes" <ide> "encoding/json" <ide> "fmt" <ide> "io/ioutil" <ide> import ( <ide> "path" <ide> "path/filepath" <ide> "regexp" <add> "strconv" <ide> "strings" <ide> "syscall" <ide> "testing" <a...
1
Text
Text
fix minor typo in reducing boilerplate
c90684f53ad6abbf8875030b6249392a637feb52
<ide><path>docs/recipes/ReducingBoilerplate.md <ide> function callAPIMiddleware({ dispatch, getState }) { <ide> } <ide> <ide> if (typeof callAPI !== 'function') { <del> throw new Error('Expected fetch to be a function.') <add> throw new Error('Expected callAPI to be a function.') <ide> } <ide> <...
1
Javascript
Javascript
fix scroll to zoom jump between 25% and 1000%
ed540a8d00e348f740dcfe6614c07b71573a800a
<ide><path>web/viewer.js <ide> var PDFViewerApplication = { <ide> newScale = (newScale * DEFAULT_SCALE_DELTA).toFixed(2); <ide> newScale = Math.ceil(newScale * 10) / 10; <ide> newScale = Math.min(MAX_SCALE, newScale); <del> } while (--ticks && newScale < MAX_SCALE); <add> } while (--ticks > 0 &&...
1
Java
Java
fix white spaces
b5e1198bd22b4d4d78cdd99dcc1b02793b98d9ed
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/request/MockMvcRequestBuilders.java <ide> public static MockHttpServletRequestBuilder delete(URI uri) { <ide> } <ide> <ide> /** <del> * Create a {@link MockHttpServletRequestBuilder} for an OPTIONS request. <del> * @param urlTemplate a...
1
Javascript
Javascript
fix first guard clause
0d2646f9afea38bb4df01a658766ba6224e8f8cc
<ide><path>script/lib/verify-machine-requirements.js <ide> module.exports = function () { <ide> function verifyNode () { <ide> const fullVersion = process.versions.node <ide> const majorVersion = fullVersion.split('.')[0] <del> if (majorVersion >= 4) { <add> if (majorVersion >= 4 && majorVersion < 7) { <ide> ...
1
Javascript
Javascript
relax y2k38 check in test-fs-utimes-y2k38
428c3fd31b86706bb6987f7ae1b1ac398eb343cb
<ide><path>test/parallel/test-fs-utimes-y2K38.js <ide> 'use strict'; <ide> const common = require('../common'); <ide> <del>if (common.isIBMi) { <del> common.skip('fs.utimesSync() currently fails on IBM i with Y2K38 values'); <del>} <del> <ide> const tmpdir = require('../common/tmpdir'); <ide> tmpdir.refresh(); <ide> ...
1
Go
Go
ensure consistent status code
3484e02590117d175d9c1ab24c583390b4e94a55
<ide><path>api/server/httputils/errors.go <ide> func GetHTTPErrorStatusCode(err error) int { <ide> // If we need to differentiate between different possible error types, <ide> // we should create appropriate error types that implement the httpStatusError interface. <ide> errStr := strings.ToLower(errMsg) <del> f...
1
Javascript
Javascript
fix tests so they work in worker threads
82a256ac6740b7a6d29439af911b86a7a0b2e63f
<ide><path>test/parallel/test-cli-eval.js <ide> const path = require('path'); <ide> const fixtures = require('../common/fixtures'); <ide> const nodejs = `"${process.execPath}"`; <ide> <del>if (!common.isMainThread) <del> common.skip('process.chdir is not available in Workers'); <del> <ide> if (process.argv.length > 2...
8
Javascript
Javascript
remove unicode character from ellipsecurve.js
57a483cfb8dbeb3e7a33af69f07bf10e6ec92e7d
<ide><path>src/extras/curves/EllipseCurve.js <ide> function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockw <ide> this.xRadius = xRadius || 1; <ide> this.yRadius = yRadius || 1; <ide> <del> this.aStartAngle = aStartAngle || 0; <add> this.aStartAngle = aStartAngle || 0; <ide> this.aEndAngle =...
1
Ruby
Ruby
terminate processing on bounce
b9e220aa41674c974f5a1e8c4fe1684596cab740
<ide><path>lib/action_mailbox/callbacks.rb <ide> module Callbacks <ide> extend ActiveSupport::Concern <ide> include ActiveSupport::Callbacks <ide> <add> TERMINATOR = ->(target, chain) do <add> terminate = true <add> <add> catch(:abort) do <add> chain.call <add> terminate = target.in...
2
PHP
PHP
fix fulltext column generation
0d9ef854ff6633e97adaaba41efcef30a6395274
<ide><path>lib/Cake/Model/Datasource/Database/Mysql.php <ide> public function buildIndex($indexes, $table = null) { <ide> } <ide> $name = $this->startQuote . $name . $this->endQuote; <ide> } <del> // length attribute only used for MySQL datasource, for TEXT/BLOB index columns <add> if (isset($value['type...
3
Javascript
Javascript
handle prettier error
1d1f7038ec1c9e49408de7629bed53410c6b63a6
<ide><path>scripts/prettier/index.js <ide> var changedFiles = new Set( <ide> ); <ide> <ide> let didWarn = false; <add>let didError = false; <ide> Object.keys(config).forEach(key => { <ide> const patterns = config[key].patterns; <ide> const options = config[key].options; <ide> Object.keys(config).forEach(key => { <...
1
Text
Text
add note about field level validation, fixes
4704da9a1acf3cbf1b1b1396821fa6ee61e0ffce
<ide><path>docs/api-guide/serializers.md <ide> Your `validate_<field_name>` methods should return the validated value or raise <ide> raise serializers.ValidationError("Blog post is not about Django") <ide> return value <ide> <add>--- <add> <add>**Note:** If your `<field_name>` is declared o...
1
Java
Java
fix broken test in annotationutilstests
666d1cecc8e1e347e69bc9b58333893dbe63c0be
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java <ide> public void findMethodAnnotationOnBridgeMethod() throws Exception { <ide> assertNull(m.getAnnotation(Order.class)); <ide> assertNull(getAnnotation(m, Order.class)); <ide> assertNotNull(findAnnotation(m, Order....
1
Text
Text
add explanation about comments
ab50b03c38ef1d6fbc498dc7f220e2e095507a59
<ide><path>guide/english/c/hello-world/index.md <ide> To write on console you can use the function `printf()` contained in the library <ide> <ide> int main(void) <ide> { <del> //lines starting with this are called comments, so use them to write notes to the reader about your code! <del> <add> printf("he...
1
Go
Go
update comparison log in container config
e5bed175741461edaa1de5dede0486d9f6afd328
<ide><path>daemon/daemon_unix.go <ide> func verifyContainerResources(resources *containertypes.Resources, sysInfo *sysi <ide> return warnings, fmt.Errorf("You should always set the Memory limit when using Memoryswap limit, see usage") <ide> } <ide> if resources.MemorySwappiness != nil && *resources.MemorySwappiness...
4
Javascript
Javascript
tweak some comments
df913fe96b0bb0b190ddfab111136a7b868b8350
<ide><path>src/geo/circle.js <ide> function d3_geo_circleClip(degrees, rotate) { <ide> }); <ide> // Create a circular linked list using the intersected segment start and <ide> // end points, sorted by relative angles. <add> // TODO sort by angle first, then set in/out flags to avoid <add> // self-inte...
1
Java
Java
add sni support in netty4clienthttprequestfactory
0c99346829b19a65fb435fb2557db3b2427de54b
<ide><path>spring-web/src/main/java/org/springframework/http/client/Netty4ClientHttpRequestFactory.java <ide> * <p>Allows to use a pre-configured {@link EventLoopGroup} instance: useful for <ide> * sharing across multiple clients. <ide> * <add> * <p>Note that this implementation consistently closes the HTTP connecti...
1
Javascript
Javascript
apply review tasks
c06b0665d26f02fb3c9f37c48c228ca0cbafc99f
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> // check if module should not be parsed <ide> // returns "true" if the module should !not! be parsed <ide> // returns "false" if the module !must! be parsed <del> preventParsing(noParseRule, request) { <add> shouldPreventParsing(noParseRu...
2
PHP
PHP
introduce a @prepend for stack
7869f6b35f6c1dff7b59551682d27dbd30b2a536
<ide><path>src/Illuminate/View/Compilers/Concerns/CompilesStacks.php <ide> protected function compileEndpush() <ide> { <ide> return '<?php $__env->stopPush(); ?>'; <ide> } <add> <add> /** <add> * Compile the prepend statements into valid PHP. <add> * <add> * @param string $expression <a...
2
Javascript
Javascript
remove duplicate export
189d29f39e6de9ccf10682bfd1341819b4a2291f
<ide><path>lib/_http_outgoing.js <ide> OutgoingMessage.prototype._renderHeaders = function _renderHeaders() { <ide> }; <ide> <ide> <del>exports.OutgoingMessage = OutgoingMessage; <del> <del> <ide> OutgoingMessage.prototype.setTimeout = function setTimeout(msecs, callback) { <ide> <ide> if (callback) {
1
PHP
PHP
enable short option for --plugin and --connection
211146fb7a87ae9e9da2d440aeccea54c6a0b9c5
<ide><path>lib/Cake/Console/Command/SchemaShell.php <ide> protected function _run($contents, $event, &$Schema) { <ide> */ <ide> public function getOptionParser() { <ide> $plugin = array( <add> 'short' => 'p', <ide> 'help' => __d('cake_console', 'The plugin to use.'), <ide> ); <ide> $connection = array( <ad...
1
PHP
PHP
deprecate unused properties
18acea6bff82f69de459a8aaf9c657dff6caea4a
<ide><path>src/Database/Query.php <ide> class Query implements ExpressionInterface, IteratorAggregate <ide> * The list of query clauses to traverse for generating a SELECT statement <ide> * <ide> * @var array<string> <add> * @deprecated 4.4.3 This property is unused. <ide> */ <ide> protected...
1
Javascript
Javascript
fix argument order for handlemandatorysetter
b3f0f6ce68833ffc53a72ebc6249908b6fff199d
<ide><path>packages/ember-metal/lib/watch_key.js <ide> export function watchKey(obj, keyName, meta) { <ide> <ide> <ide> if (Ember.FEATURES.isEnabled('mandatory-setter')) { <del> var handleMandatorySetter = function handleMandatorySetter(m, keyName, obj) { <add> var handleMandatorySetter = function handleMandatorySe...
1
Go
Go
remove engine/job from graph
fa2c68a89e153cfc82c5af7cbb6d7f15b06e0a8c
<ide><path>api/server/server.go <ide> func (s *Server) getImagesGet(eng *engine.Engine, version version.Version, w htt <ide> } <ide> <ide> output := utils.NewWriteFlusher(w) <del> imageExportConfig := &graph.ImageExportConfig{ <del> Engine: eng, <del> Outstream: output, <del> } <add> imageExportConfig := &graph...
9
Javascript
Javascript
fix dashes in api docs
908f59a5dfd6e4378be1055918b04a8f40e9310d
<ide><path>src/filters.js <ide> var NUMBER_STRING = /^\d+$/; <ide> * * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010) <ide> * * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10) <ide> * * `'y'`: 1 digit representation of year, e.g. (AD 1 ...
1
Go
Go
simplify error handling
300c51c3a4ca47b022eb2efb75d1e8cf7736b0ff
<ide><path>daemon/container.go <ide> func (container *Container) buildHostnameAndHostsFiles(IP string) error { <ide> return container.buildHostsFiles(IP) <ide> } <ide> <del>func (container *Container) AllocateNetwork() (err error) { <add>func (container *Container) AllocateNetwork() error { <ide> mode := container.h...
1
Ruby
Ruby
use https for git remote test
a6d1ddf32611109b3284b045fdc5123c40e23b9e
<ide><path>Library/Homebrew/test/utils/git_spec.rb <ide> context "when git is available" do <ide> it "returns true when git remote exists", :needs_network do <ide> git = HOMEBREW_SHIMS_PATH/"scm/git" <del> url = "http://github.com/Homebrew/homebrew.github.io" <add> url = "https://github....
1
Go
Go
fix a race condition in testinterruptedregister
02cb7f45fa6f9a8899286431fa68bf1a9d0194d8
<ide><path>graph.go <ide> func (graph *Graph) Create(layerData archive.Archive, container *Container, comm <ide> <ide> // Register imports a pre-existing image into the graph. <ide> // FIXME: pass img as first argument <del>func (graph *Graph) Register(jsonData []byte, layerData archive.Archive, img *Image) error { <a...
1
Javascript
Javascript
fix flowtype errors for pushnotificationios
68bbccbaa25f6364254a19fa6ef88a4b04ac2cbb
<ide><path>Libraries/PushNotificationIOS/PushNotificationIOS.js <ide> class PushNotificationIOS { <ide> * - `userInfo` : An optional object containing additional notification data. <ide> * - `thread-id` : The thread identifier of this notification, if has one. <ide> */ <del> static getDeliveredNotifications...
1
Javascript
Javascript
fix links of docs on the comment
c5a733e1e3ffa74bc6bbc769f1b13ecff9915763
<ide><path>packages/react/src/ReactChildren.js <ide> function forEachSingleChild(bookKeeping, child, name) { <ide> /** <ide> * Iterates through children that are typically specified as `props.children`. <ide> * <del> * See https://reactjs.org/docs/react-api.html#react.children.foreach <add> * See https://reactjs.org/...
1
Java
Java
pass rsocketstrategies to metadataextractor
1e9ccdd8b8756162ed635b45c077e45b6ae33504
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultMetadataExtractor.java <ide> import org.springframework.core.io.buffer.DataBufferFactory; <ide> import org.springframework.core.io.buffer.NettyDataBufferFactory; <ide> import org.springframework.lang.Nullable; <del>import org.springf...
5
Ruby
Ruby
add parenthesis to avoid syntax warnings
9027721b11436144e65bceb9e29ad8669b02582a
<ide><path>actionpack/test/template/prototype_helper_test.rb <ide> def protect_against_forgery? <ide> end <ide> <ide> def create_generator <del> block = Proc.new { |*args| yield *args if block_given? } <add> block = Proc.new { |*args| yield(*args) if block_given? } <ide> JavaScriptGenerator.new...
2
Javascript
Javascript
revert this.async (avoid may breaking change)
4bf2ba46af5f3f60eba6d6a23cea46c913100632
<ide><path>lib/optimize/CommonsChunkPlugin.js <ide> function CommonsChunkPlugin(options) { <ide> this.minChunks = options.minChunks; <ide> this.selectedChunks = options.chunks; <ide> if(options.children) this.selectedChunks = false; <del> this.asyncOption = options.async; <add> this.async = options.async; <ide> thi...
1
Javascript
Javascript
define event handler as enumerable
8e87efb8495c59cc829bc6971e89a7eddc104644
<ide><path>lib/internal/event_target.js <ide> function defineEventHandler(emitter, name) { <ide> emitter.addEventListener(name, value); <ide> } <ide> eventHandlerValue = value; <del> } <add> }, <add> configurable: true, <add> enumerable: true <ide> }); <ide> } <ide> module.exports = { ...
2
PHP
PHP
add missing methods to request facade
a5c47f6872c2c7d1623a6fe5ffee1396de63aa4c
<ide><path>src/Illuminate/Support/Facades/Request.php <ide> * @method static mixed offsetGet(string $offset) <ide> * @method static void offsetSet(string $offset, mixed $value) <ide> * @method static void offsetUnset(string $offset) <add> * @method static array validate(array $rules, ...$params) <add> * @method stat...
1
Ruby
Ruby
fix ambiguous use of *
32836e7a538118d4ed831ded7fce0ae83fc3d860
<ide><path>railties/lib/rails/generators/rails/app/templates/config/application.rb <ide> <ide> if defined?(Bundler) <ide> # If you precompile assets before deploying to production, use this line <del> Bundler.require *Rails.groups(:assets => %w(development test)) <add> Bundler.require(*Rails.groups(:assets => %w(d...
1
Ruby
Ruby
inspect the filter when displaying error messages
4c628e48a56920877948bd9d69d3e3caa41b5da8
<ide><path>actionpack/lib/action_controller/log_subscriber.rb <ide> def process_action(event) <ide> end <ide> <ide> def halted_callback(event) <del> info("Filter chain halted as #{event.payload[:filter]} rendered or redirected") <add> info("Filter chain halted as #{event.payload[:filter].inspect} ren...
1
Javascript
Javascript
draw tooltip with object borderwidth
8ccff8cad70023f7e3d3dddc25e555cf098a6712
<ide><path>src/plugins/plugin.tooltip.js <ide> import Animations from '../core/core.animations'; <ide> import Element from '../core/core.element'; <ide> import {addRoundedRectPath} from '../helpers/helpers.canvas'; <del>import {each, noop, isNullOrUndef, isArray, _elementsEqual} from '../helpers/helpers.core'; <add>imp...
1
Python
Python
remove unnecessary test
42305bc519653c1f46bc0acb2ced8196ddc02025
<ide><path>spacy/tests/test_misc.py <ide> def test_util_ensure_path_succeeds(text): <ide> path = ensure_path(text) <ide> assert isinstance(path, Path) <del> <del> <del>@pytest.mark.parametrize('text', [b'hello/world', True, False, None]) <del>def test_util_ensure_path_fails(text): <del> path = ensure_path(te...
1
Javascript
Javascript
remove unused unmountidfromenvironment
30aa84181d98dc9498f7e1eb3ded817d8faf65f6
<ide><path>src/renderers/dom/shared/ReactComponentBrowserEnvironment.js <ide> var ReactComponentBrowserEnvironment = { <ide> replaceNodeWithMarkup: <ide> DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup, <ide> <del> /** <del> * If a particular environment requires that some resources be cleaned up, <del...
4
Text
Text
fix syntax error and missing import in docs
611a3b3fac3756b88ad05f1bc37d1b9fef252d90
<ide><path>README.md <ide> Any collection can be converted to a lazy Seq with `Seq()`. <ide> <ide> <!-- runkit:activate --> <ide> ```js <del>const { Map } = require('immutable') <del>const map = Map({ a: 1, b: 2, c: 3 } <add>const { Map, Seq } = require('immutable') <add>const map = Map({ a: 1, b: 2, c: 3 }) <ide> con...
1
PHP
PHP
add application interface and baseplugin methods
006ae853c221f6ff33d3269703a61b6b89d92e6b
<ide><path>src/Core/BasePlugin.php <ide> namespace Cake\Core; <ide> <ide> use Cake\Console\CommandCollection; <add>use Cake\Core\ContainerInterface; <ide> use Cake\Http\MiddlewareQueue; <ide> use Cake\Routing\RouteBuilder; <ide> use InvalidArgumentException; <ide> class BasePlugin implements PluginInterface <ide> ...
5
PHP
PHP
remove skip for fixtures
678684136fdb4a5f1768dd622813bd9208144ea2
<ide><path>lib/Cake/TestSuite/TestCase.php <ide> public function skipIf($shouldSkip, $message = '') { <ide> public function setUp() { <ide> parent::setUp(); <ide> <del> if (!empty($this->fixtures)) { <del> $this->markTestIncomplete('Tests skipped because of fixture issues.'); <del> } <del> <ide> if (empty($th...
1
Ruby
Ruby
add test to assert_recognizes with custom message
67117f7c5d2ece5494191e937de91d353609e963
<ide><path>actionpack/test/dispatch/routing_assertions_test.rb <ide> def test_assert_recognizes_with_query_constraint <ide> assert_recognizes({ :controller => 'query_articles', :action => 'index', :use_query => 'true' }, '/query/articles', { :use_query => 'true' }) <ide> end <ide> <add> def test_assert_recogniz...
1
Javascript
Javascript
keep consistency in the comment
20c5d97bb6c6a4af76d66a7e5134952989f9a9b2
<ide><path>packages/react-reconciler/src/ReactFiberCompleteWork.js <ide> export default function<T, P, I, TI, HI, PI, C, CC, CX, PL>( <ide> <ide> function markUpdate(workInProgress: Fiber) { <ide> // Tag the fiber with an update effect. This turns a Placement into <del> // an UpdateAndPlacement. <add> // a...
1
Javascript
Javascript
change decimalplaces to fractionsize
26c36bb4d17ae90a6ad8717ae10e1a41c03417f3
<ide><path>src/ng/filter/filters.js <ide> function currencyFilter($locale) { <ide> * @param {(number|string)=} fractionSize Number of decimal places to round the number to. <ide> * If this is not provided then the fraction size is computed from the current locale's number <ide> * formatting pattern. In the case of t...
1
Text
Text
change example text in create-a-form-element.md
fc976aba74446414d99ad8541e0389fbbbaf23b1
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md <ide> You can build web forms that actually submit data to a server using nothing more <ide> <ide> For example: <ide> <del>`<form action="/url-where-you-want-to-submit-form-data"></form>` <add>```html <add>...
1
Text
Text
update explanation to match example
ff47b0518b4d97f6115f9c71ded1f8402b8b57d5
<ide><path>guides/source/routing.md <ide> Sometimes, you have a resource that clients always look up without referencing a <ide> get 'profile', to: 'users#show' <ide> ``` <ide> <del>Passing a `String` to `match` will expect a `controller#action` format, while passing a `Symbol` will map directly to an action: <add>Pas...
1
Ruby
Ruby
try optimise `versioned_formulae_names`
f09be9a5f75b44bfd16033af8b9ec456c24081c4
<ide><path>Library/Homebrew/formula.rb <ide> def versioned_formula? <ide> # Returns any `@`-versioned formulae names for any formula (including versioned formulae). <ide> sig { returns(T::Array[String]) } <ide> def versioned_formulae_names <del> Pathname.glob(path.to_s.gsub(/(@[\d.]+)?\.rb$/, "@*.rb")).map do ...
1
PHP
PHP
add singular syntactic sugar
913c2a1a6ef70a1574c69c0dbb178f2e0b8c6ea8
<ide><path>src/Illuminate/Foundation/Testing/Wormhole.php <ide> public function __construct($value) <ide> $this->value = $value; <ide> } <ide> <add> /** <add> * Travel forward the given number of milliseconds. <add> * <add> * @param callable|null $callback <add> * @return mixed <add> ...
1
Text
Text
remove references to the makefile from the readme
2decd0510d8bd70fe7bbae9ebbacc49717376cfd
<ide><path>README.md <ide> As the source code is handled by the version control system Git, it's useful to <ide> <ide> ### Submodules ### <ide> <del>The repository uses submodules, which normally are handled directly by the Makefile, but sometimes you want to <add>The repository uses submodules, which normally are ha...
1
PHP
PHP
enable strict types and add missing docblocks
669edca058b30c351df5eba901e8c7864f4bdab3
<ide><path>src/View/Exception/MissingCellException.php <ide> <?php <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> */ <ide> class MissingCellException extends Except...
7
PHP
PHP
adjust comment spacing
e569dc47a72fd2b4d322c5a96b2ca334ac18c89f
<ide><path>src/Illuminate/Database/Schema/Grammars/Grammar.php <ide> protected function getTableWithColumnChanges(Blueprint $blueprint, Table $table) <ide> $column = $this->getDoctrineColumnForChange($table, $fluent); <ide> <ide> // Here we will spin through each fluent column definition and ma...
1
Javascript
Javascript
add modelview and normalview matrices
4093be22f8061f7bcd6c9fd564f83d0ee0eb0846
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> object.onBeforeRender( _this, scene, camera, geometry, material, group ); <ide> currentRenderState = renderStates.get( scene, _currentArrayCamera || camera ); <ide> <del> object.modelViewMatrix.multiplyMatrices( camera.ma...
3
Text
Text
fix minor typo in readme
8e7f9973b2b133f31f10aae0505ff14a2514734a
<ide><path>Readme.md <ide> So far, we get: <ide> - Server rendering and indexing of `./pages` <ide> - Static file serving. `./static/` is mapped to `/static/` <ide> <del>To see how simple this is, check out the [sample app - nextagram](https://github.com/zeit/nextgram) <add>To see how simple this is, check out the [sa...
1
Python
Python
fix broken method call when config is none
545a7ff20a4ff4f25cf97ee076eb60ca397b0e2f
<ide><path>glances/plugins/glances_processlist.py <ide> def __init__(self, args=None, config=None): <ide> self.pid_max = glances_processes.pid_max <ide> <ide> # Set the default sort key if it is defined in the configuration file <del> if 'processlist' in config.as_dict() and 'sort_key' in config...
1
Javascript
Javascript
use strict mode
4bb529d972afaa02d57a2ca29db33ac92f69b81d
<ide><path>benchmark/arrays/var-int.js <add>'use strict'; <ide> var common = require('../common.js'); <ide> var bench = common.createBenchmark(main, { <ide> type: 'Array Buffer Int8Array Uint8Array Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split(' '), <ide><path>benchmark/arrays/zero-fl...
93
Text
Text
fix a small typo in help files
667577664051e07fceea25a73fef9e1119366435
<ide><path>docs/templates/getting-started/faq.md <ide> Code and pre-trained weights are available for the following image classificatio <ide> They can be imported from the module `keras.applications`: <ide> <ide> ```python <del>from keras.applications.vgg16 impoprt VGG16 <del>from keras.applications.vgg19 impoprt VGG1...
1
Go
Go
fix resolv.conf and hosts handling in sandbox
ef659c904966d5a1419b795fe32d940940f71333
<ide><path>libnetwork/resolvconf/resolvconf.go <ide> var lastModified struct { <ide> contents []byte <ide> } <ide> <del>// Get returns the contents of /etc/resolv.conf <del>func Get() ([]byte, error) { <add>// File contains the resolv.conf content and its hash <add>type File struct { <add> Content []byte <add> Hash ...
3
Python
Python
add files for exporter
a3ae12584f55254e13e97344a51487a1e0a1cb94
<ide><path>research/object_detection/exporter_lib_tf2_test.py <ide> def __init__(self, conv_weight_scalar=1.0): <ide> filters=1, kernel_size=1, strides=(1, 1), padding='valid', <ide> kernel_initializer=tf.keras.initializers.Constant( <ide> value=conv_weight_scalar)) <add> #self._conv(tf.o...
3
Javascript
Javascript
use buildid instead of entry path for reporting
b74b2d5193d29ac364852a02df752eb8dd5ec177
<ide><path>packager/src/Server/index.js <ide> class Server { <ide> _reporter: Reporter; <ide> _symbolicateInWorker: Symbolicate; <ide> _platforms: Set<string>; <add> _nextBundleBuildID: number; <ide> <ide> constructor(options: Options) { <ide> this._opts = { <ide> class Server { <ide> }, 50); <ide> <...
3
Ruby
Ruby
add tmux warning for launchctl caveats
5fd9c568031d42b93b1f7a3bfc2a91d4e266aac2
<ide><path>Library/Homebrew/caveats.rb <ide> def plist_caveats <ide> s << " launchctl load #{plist_link}" <ide> end <ide> end <add> s << '' << "WARNING: launchctl will fail when run under tmux." <ide> end <ide> s.join("\n") unless s.empty? <ide> end
1
PHP
PHP
remove some comment bloat
16a21422fbc75316db4fcb674c92cea6ce5456e9
<ide><path>laravel/view.php <ide> protected function compile() <ide> { <ide> // For simplicity, compiled views are stored in a single directory by <ide> // the MD5 hash of their name. This allows us to avoid recreating the <del> // entire view directory structure within the compiled views directory. <add> // ent...
1
Go
Go
add test case for graph byparent()
02b8d14bdd1837aad5b8fb667d1f4e7eace59687
<ide><path>graph_test.go <ide> func TestDelete(t *testing.T) { <ide> assertNImages(graph, t, 1) <ide> } <ide> <add>func TestByParent(t *testing.T) { <add> archive1, _ := fakeTar() <add> archive2, _ := fakeTar() <add> archive3, _ := fakeTar() <add> <add> graph := tempGraph(t) <add> defer os.RemoveAll(graph.Root) <add>...
1
Text
Text
add v3.28.11 to changelog
38363419e2e673afa1ebec3e541fb9d8f399239f
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>## v3.28.11 (November 30, 2022) <add> <add>- [#20286](https://github.com/emberjs/ember.js/pull/20286) [BUGFIX LTS] Allow class-based helpers in strict-mode <add> <ide> ### v4.10.0-beta.1 (November 28, 2022) <ide> <ide> - [#20253](https://github.com/emberjs/em...
1
Ruby
Ruby
simplify singleton_class? method
cdc4274931c2d6bafdf2b97f7e4ecedf89a8202e
<ide><path>activesupport/lib/active_support/core_ext/class/attribute.rb <ide> def #{name}? <ide> <ide> private <ide> def singleton_class? <del> # in case somebody is crazy enough to overwrite allocate <del> allocate = Class.instance_method(:allocate) <del> # object.class always points to a real (non-singl...
1
Javascript
Javascript
add text node types
cafa7b284a7f1830a443525ec08ae26e14ba7cc6
<ide><path>src/renderers/dom/fiber/ReactDOMFiber.js <ide> type DOMContainerElement = Element & { _reactRootContainer: ?Object }; <ide> type Container = Element; <ide> type Props = { }; <ide> type Instance = Element; <add>type TextInstance = Text; <ide> <del>function recursivelyAppendChildren(parent : Element, child : ...
11
Ruby
Ruby
add sensitive_environment function
66697d429046550904adfa3ac8e689b37c964b6a
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def with_build_environment <ide> replace(old_env) <ide> end <ide> <del> def clear_sensitive_environment! <del> each_key do |key| <del> next unless /(cookie|key|token|password)/i =~ key <add> def sensitive?(key) <add> /(cookie|key|token|password)/i =~ k...
3