content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | add var colorbrewer = | 4cc7599b5f19ae8630e0085a226f00e6bba39049 | <ide><path>lib/colorbrewer/colorbrewer.js
<ide> // This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
<del>{YlGn: {
<add>var colorbrewer = {YlGn: {
<ide> 3: ["#f7fcb9","#addd8e","#31a354"],
<ide> 4: ["#ffffcc","#c2e699","#78c679","#238443"],
<ide> 5: ["#ffffcc"... | 1 |
PHP | PHP | fix missed type declaration from base class | 4aeb89235e594f3b942fc6c136b76de4de7d65cc | <ide><path>src/Illuminate/Http/Request.php
<ide> public function secure()
<ide> /**
<ide> * Get the client IP address.
<ide> *
<del> * @return string
<add> * @return string|null
<ide> */
<ide> public function ip()
<ide> { | 1 |
PHP | PHP | fix cookies on subdomains | bc9940a87bbc2d338107972d213c6d81dad644aa | <ide><path>lib/Cake/Network/Http/Client.php
<ide> protected function _storeCookies(Response $response, $host) {
<ide> * Adds cookies stored in the client to the request.
<ide> *
<ide> * Uses the request's host to find matching cookies.
<add> * Walks backwards through subdomains to find cookies
<add> * defined on par... | 2 |
Python | Python | remove fpe `fill` special case after rebase | a546ee19523f9b97db985afa8d161af0dee1fafa | <ide><path>numpy/core/tests/test_casting_floatingpoint_errors.py
<ide> def assignment():
<ide>
<ide> yield assignment
<ide>
<del> # TODO: This constraint is a bug in arr.fill() and should be removed
<del> # e.g. by gh-20924. The type check works around the fact that
<del> # P... | 1 |
Javascript | Javascript | check logic simplification | d69a26b9650df7dc1f210c3c59df74ec4245dff3 | <ide><path>lib/buffer.js
<ide> SlowBuffer.prototype.__proto__ = Buffer.prototype;
<ide>
<ide>
<ide> function clamp(index, len, defaultValue) {
<del> if (typeof index === 'undefined') return defaultValue;
<add> if (typeof index !== 'number') return defaultValue;
<ide> index = ~~index; // Coerce to integer.
<ide> ... | 1 |
Text | Text | fix typo in 3.1 announcement | b18d773b517a93528fbdba043b9da8d7bc2cf5b4 | <ide><path>docs/topics/3.1-announcement.md
<ide> Some highlights include:
<ide> * An improved pagination API, supporting header or in-body pagination styles.
<ide> * Pagination controls rendering in the browsable API.
<ide> * Better support for API versioning.
<del>* Built-in internalization support.
<add>* Built-in in... | 1 |
Text | Text | reset regex.lastindex when tests use test method | 78e28e2bd36c92fb1515776a0f6a14a6fd1cf3ba | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-one-or-more-criminals-in-a-hunt.md
<ide> assert(
<ide> Your regex should not match any criminals in the empty string `""`
<ide>
<ide> ```js
<add>reCriminals.lastIndex = 0;
<ide> assert(!reCriminals.test(''));... | 11 |
PHP | PHP | serialize values in array cache store | 7b7861d0df900520182764db7943049327ee554d | <ide><path>src/Illuminate/Cache/ArrayStore.php
<ide> public function get($key)
<ide> return;
<ide> }
<ide>
<del> return $item['value'];
<add> return unserialize($item['value']);
<ide> }
<ide>
<ide> /**
<ide> public function get($key)
<ide> public function put($key, $value... | 2 |
Python | Python | use `usegmt` flag in formatdate | 8a160d5de1763614ab1a86107e779b0afd151ade | <ide><path>django/utils/http.py
<ide> def http_date(epoch_seconds=None):
<ide>
<ide> Outputs a string in the format 'Wdy, DD Mon YYYY HH:MM:SS GMT'.
<ide> """
<del> rfcdate = formatdate(epoch_seconds)
<del> return '%s GMT' % rfcdate[:25]
<add> return formatdate(epoch_seconds, usegmt=True)
<ide>
<ide>... | 1 |
Javascript | Javascript | move plugins before environment | b46da215894747641abde7d0668ea663508dc527 | <ide><path>lib/WebpackOptionsApply.js
<ide> WebpackOptionsApply.prototype.constructor = WebpackOptionsApply;
<ide>
<ide> WebpackOptionsApply.prototype.process = function(options, compiler) {
<ide> var ExternalsPlugin;
<del> compiler.context = options.context;
<del> if(options.plugins && Array.isArray(options.plugins)... | 2 |
Ruby | Ruby | require object/blank not used | 27238ad1b8f25c424ba9d45f4de6d40473c602d0 | <ide><path>railties/lib/rails/generators/rails/resource/resource_generator.rb
<ide> require 'rails/generators/resource_helpers'
<ide> require 'rails/generators/rails/model/model_generator'
<del>require 'active_support/core_ext/object/blank'
<ide>
<ide> module Rails
<ide> module Generators | 1 |
Mixed | Ruby | add type caster to `runtimereflection#alias_name` | 8d64cd86db1bc5e1ad119d13eb14f94726a0765f | <ide><path>activerecord/CHANGELOG.md
<add>* Add type caster to `RuntimeReflection#alias_name`
<add>
<add> Fixes #28959.
<add>
<add> *Jon Moss*
<add>
<ide> * Deprecate `supports_statement_cache?`.
<ide>
<ide> *Ryuta Kamizono*
<ide><path>activerecord/lib/active_record/reflection.rb
<ide> def alias_candidat... | 5 |
Ruby | Ruby | use the enumerable implementation of include? | 4c4193e905ed87faf58d9f41f1724f5353943e93 | <ide><path>Library/Homebrew/dependencies.rb
<ide> def each(*args, &block)
<ide> end
<ide>
<ide> def <<(o)
<del> @deps << o unless @deps.include? o
<add> @deps << o unless include?(o)
<ide> self
<ide> end
<ide> | 1 |
PHP | PHP | fix sqlserverschema tests | a9f0bd729f39fa7a09fd569a7265cc08d98017bf | <ide><path>tests/TestCase/Database/Schema/SqlserverSchemaTest.php
<ide> public function testAddConstraintSql()
<ide> ]);
<ide>
<ide> $expected = <<<SQL
<del>ALTER TABLE [posts] ADD CONSTRAINT [category_fk] FOREIGN KEY (]category_id], [category_name]) REFERENCES [categories] ([id], [name]) ON UPDATE... | 1 |
Mixed | Ruby | reset instance variables after each request | 054fa96bacad418a776983916f857ffd708100ae | <ide><path>actionpack/CHANGELOG.md
<add>* Instance variables set in requests in a `ActionController::TestCase` are now cleared before the next request
<ide>
<add> This means if you make multiple requests in the same test, instance variables set in the first request will
<add> not persist into the second one. (... | 4 |
Ruby | Ruby | modify test to correctly pass attributes hash | c91a44d5407a406ddd310f06a54327b1e3799e59 | <ide><path>activerecord/test/cases/persistence_test.rb
<ide> def test_create_many
<ide>
<ide> def test_create_columns_not_equal_attributes
<ide> topic = Topic.instantiate(
<del> "attributes" => {
<del> "title" => "Another New Topic",
<del> "does_not_exist" => "test"
<del> }
<add>... | 1 |
Mixed | Ruby | add rename_index to change_table | 1a782b2b634cadbea2ae194848e97ca0ecdbce30 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* `rename_index` can be used inside a `change_table` block.
<add>
<add> change_table :accounts do |t|
<add> t.rename_index :user_id, :account_id
<add> end
<add>
<add> *Jarek Radosz*
<add>
<ide> * `#pluck`... | 3 |
Text | Text | fix typo in globals.md | 3b3632054001639bcaf12a9bd579e45fc485bbf9 | <ide><path>doc/api/globals.md
<ide> added: v15.0.0
<ide>
<ide> The `'abort'` event is emitted when the `abortController.abort()` method
<ide> is called. The callback is invoked with a single object argument with a
<del>single `type` propety set to `'abort'`:
<add>single `type` property set to `'abort'`:
<ide>
<ide> `... | 1 |
Go | Go | fix default shm size in test | 4354b348ad6f9a585c57d37147c2a893a2d873da | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func (s *DockerSuite) TestPostContainersCreateShmSizeZero(c *check.C) {
<ide> }
<ide>
<ide> func (s *DockerSuite) TestPostContainersCreateShmSizeHostConfigOmitted(c *check.C) {
<add> var defaultSHMSize int64 = 67108864
<ide> config := map[string]interface... | 1 |
Text | Text | update changelog for 2.10.3 | 5c0348ef1b45834399890b99e67eb7b522c2c558 | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.10.3 [See full changelog](https://gist.github.com/ichernev/f264b9bed5b00f8b1b7f)
<add>
<add>* add `moment.fn.to` and `moment.fn.toNow` (similar to `from` and `fromNow`)
<add>* new locales (Sinhalese (si), Montenegrin (me), Javanese (ja))
<add>* p... | 1 |
Go | Go | add typo in remove all. ensure tmpdir is removed | 9de45904980dba224e8ab133f12cfc53835e2dd4 | <ide><path>server.go
<ide> func (srv *Server) ImageExport(name string, out io.Writer) error {
<ide> if err != nil {
<ide> return err
<ide> }
<add> defer os.RemoveAll(tempdir)
<add>
<ide> utils.Debugf("Serializing %s", name)
<ide>
<ide> rootRepo := srv.runtime.repositories.Repositories[name]
<ide> func (srv *Serv... | 1 |
Javascript | Javascript | fix naming opaqueobjects | 736f30b3f50b783df06c6d96ee8fd9b4354d98df | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide> _clearColor = new THREE.Color( 0x000000 ),
<ide> _clearAlpha = 0;
<ide>
<del> var OpaqueObjects = [];
<add> var opaqueObjects = [];
<ide> var transparentObjects = [];
<ide> var _sortObjects = true;
<ide>
<ide> T... | 1 |
PHP | PHP | fix docblock and typo | b5e991d15f857ee86a4532a4249813f7c3dd779b | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function getKey()
<ide> /**
<ide> * Get the queueable identity for the entity.
<ide> *
<del> * @var mixed
<add> * @return mixed
<ide> */
<ide> public function getQueueableId()
<ide> {
<ide><path>src/Illuminate/Pipeline/Hub.php
<ide> public fu... | 3 |
Text | Text | add readme arabic | 4bd3b3c41239b7070a65581dda25019d658384d1 | <ide><path>docs/i18n-languages/arabic/README.md
<add>
<add>[](https://travis-ci.org/freeCodeCamp/freeCodeCamp)
<add>[;
<add> * you may not use this file except in compliance with the License.
<add> * You may obt... | 6 |
PHP | PHP | fix existing tests | d15cfe3c57e53467445f6ca599091ac13ccd2356 | <ide><path>src/Illuminate/Database/Eloquent/FactoryBuilder.php
<ide> public function make(array $attributes = [])
<ide> {
<ide> if ($this->amount === null) {
<ide> $instance = $this->makeInstance($attributes);
<add> $this->applyAfter(collect([$instance]), 'make');
<ide>
<del> ... | 1 |
Javascript | Javascript | update fromjson return values | 8794a173f9c175df2343245e71ee9a137f5bc66a | <ide><path>src/Angular.js
<ide> function toJson(obj, pretty) {
<ide> * Deserializes a JSON string.
<ide> *
<ide> * @param {string} json JSON string to deserialize.
<del> * @returns {Object|Array|Date|string|number} Deserialized thingy.
<add> * @returns {Object|Array|string|number} Deserialized thingy.
<ide> */
<ide... | 1 |
PHP | PHP | update urlhelper tests | d31bc5b7b9908f4d9661e314319de1d4445c42ac | <ide><path>tests/TestCase/View/Helper/UrlHelperTest.php
<ide> public function testBuildUrlConversion()
<ide> $result = $this->Helper->build('/controller/action/1?one=1&two=2');
<ide> $this->assertEquals('/controller/action/1?one=1&two=2', $result);
<ide>
<del> $result = $this->Helper->build(... | 1 |
Javascript | Javascript | fix typeerror with eventemitter#on() abuse | ee9cd004d8a211871439fc77c0696b79c5d0e52d | <ide><path>lib/events.js
<ide> EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
<ide> return this;
<ide> };
<ide>
<del>EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
<del> if (!util.isUndefined(this._maxListeners))
<del> return this._maxListeners;
<del> else
<add>fun... | 2 |
Python | Python | add tunnel test | 9ac990c8c83c63f47251e4afd4dc74d65a5c1481 | <ide><path>tests/core.py
<del>import copy
<add>from __future__ import print_function
<add>
<ide> from datetime import datetime, time, timedelta
<ide> import doctest
<ide> import json
<ide> def test_parse_s3_url(self):
<ide> ("test", "this/is/not/a-real-key.txt"),
<ide> ... | 1 |
PHP | PHP | fix indentation and double slashes | 4cb904f44d24f856ec9c1040d2198ed8f009723b | <ide><path>application/config/application.php
<ide> 'Blade' => 'Laravel\\Blade',
<ide> 'Bundle' => 'Laravel\\Bundle',
<ide> 'Cache' => 'Laravel\\Cache',
<del> 'Command' => 'Laravel\\CLI\\Command',
<add> 'Command' => 'Laravel\\CLI\\Command',
<ide> 'Config' => 'Laravel\\Config',
<i... | 1 |
Javascript | Javascript | fix isfibermounted exports | 545a193ef9c2c419fb362c78fc6233ecd27866b6 | <ide><path>src/renderers/shared/fiber/ReactFiberTreeReflection.js
<ide> var MOUNTING = 1;
<ide> var MOUNTED = 2;
<ide> var UNMOUNTED = 3;
<ide>
<del>function isFiberMounted(fiber : Fiber) : number {
<add>function isFiberMountedImpl(fiber : Fiber) : number {
<ide> let node = fiber;
<ide> if (!fiber.alternate) {
<id... | 1 |
Javascript | Javascript | remove outdated todo | af2e5f95227506d08485cc2464ee1df9784eb726 | <ide><path>lib/util.js
<ide> Object.defineProperty(inspect, 'defaultOptions', {
<ide> if (options === null || typeof options !== 'object') {
<ide> throw new ERR_INVALID_ARG_TYPE('options', 'Object', options);
<ide> }
<del> // TODO(BridgeAR): Add input validation and make sure `defaultOptions` are
<del>... | 1 |
Text | Text | fix typo error | ff3175845f27864c38961f518040bb7e143822b2 | <ide><path>guide/english/java/index.md
<ide> Ok now since we are done with the installations, let's begin to understand first
<ide>
<ide> Java is a pretty secure language as it doesn't let your program run directly on the machine. Instead, your program runs on a Virtual Machine called JVM. This Virtual Machine exposes... | 1 |
Javascript | Javascript | change var to const | 74d33630ce34969d6abf57e1e597fcdafef56ab2 | <ide><path>lib/internal/tls.js
<ide> // Example:
<ide> // C=US\nST=CA\nL=SF\nO=Joyent\nOU=Node.js\nCN=ca1\nemailAddress=ry@clouds.org
<ide> function parseCertString(s) {
<del> var out = Object.create(null);
<del> var parts = s.split('\n');
<add> const out = Object.create(null);
<add> const parts = s.split('\n');
<i... | 1 |
Python | Python | warn user about duplicate operationids. | 797518af6d996308781e283601057ff82ed8684c | <ide><path>rest_framework/schemas/openapi.py
<ide> def get_info(self):
<ide>
<ide> return info
<ide>
<add> def check_duplicate_operation_id(self, paths):
<add> ids = {}
<add> for route in paths:
<add> for method in paths[route]:
<add> if 'operationId' not in paths[ro... | 3 |
Python | Python | update error messages for several keras/layers | 8a4074b3e9e1c4d7a7133ba1e5600008c7309a39 | <ide><path>keras/layers/advanced_activations.py
<ide> class LeakyReLU(Layer):
<ide> def __init__(self, alpha=0.3, **kwargs):
<ide> super(LeakyReLU, self).__init__(**kwargs)
<ide> if alpha is None:
<del> raise ValueError('The alpha value of a Leaky ReLU layer '
<del> 'cannot be None,... | 5 |
PHP | PHP | fix incorrect type | fd8c0a48201d35c19adaf15013255087a0459b25 | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testSelectWhereTypes()
<ide> 'id' => '1something-crazy',
<ide> 'created <' => new \DateTime('2013-01-01 12:00')
<ide> ],
<del> ['created' => 'datetime', 'id' => 'float']
<add> ... | 1 |
Mixed | Python | simplify negotiation. drop msie hacks. etc | a96211d3d1ba246512af5e32c31726a666c467ac | <ide><path>djangorestframework/exceptions.py
<ide> def __init__(self, detail=None):
<ide> self.detail = detail or self.default_detail
<ide>
<ide>
<add>class InvalidFormat(APIException):
<add> status_code = status.HTTP_404_NOT_FOUND
<add> default_detail = "Format suffix '.%s' not found."
<add>
<add> d... | 8 |
Go | Go | fix remaining compile issues | 318b1612e1a74f1313d5bd087050cd535f267bd5 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> import (
<ide> "time"
<ide>
<ide> "github.com/docker/docker/client"
<del> "github.com/docker/docker/integration-cli/checker"
<ide> "github.com/docker/docker/integration-cli/cli"
<ide> "github.com/docker/docker/integration-cli/cli/build"
<ide> "github.com/doc... | 2 |
Python | Python | add examples to doc | 9a0a8c1c6f4f2f0c80ff07d36713a3ada785eec5 | <ide><path>src/transformers/configuration_encoder_decoder.py
<ide> class EncoderDecoderConfig(PretrainedConfig):
<ide> r"""
<ide> :class:`~transformers.EncoderDecoderConfig` is the configuration class to store the configuration of a `EncoderDecoderModel`.
<ide>
<del> It is used to instantiate an... | 2 |
Javascript | Javascript | add compatibility for older node.js versions | e632b1b7eeb0900472c710ae7269111d985de018 | <ide><path>lib/internal/assert/assertion_error.js
<ide> class AssertionError extends Error {
<ide> const {
<ide> message,
<ide> operator,
<del> stackStartFn
<add> stackStartFn,
<add> // Compatibility with older versions.
<add> stackStartFunction
<ide> } = options;
<ide> let {... | 2 |
Python | Python | remove the added json parameter | dcd0fe5f1f0f8cfc8e065498c431bd08ec54996c | <ide><path>libcloud/http.py
<ide> def verification(self):
<ide> return self.ca_cert if self.ca_cert is not None else self.verify
<ide>
<ide> def request(self, method, url, body=None, headers=None, raw=False,
<del> stream=False, json=None):
<add> stream=False):
<ide> ur... | 2 |
Text | Text | add id for es6 module breakout | 4aecaeb33e8d70297d73e7bb12eea948dce99e8c | <ide><path>threejs/lessons/threejs-fundamentals.md
<ide> a different color.
<ide> I hope this short intro helps to get things started. [Next up we'll cover
<ide> making our code responsive so it is adaptable to multiple situations](threejs-responsive.html).
<ide>
<del><div class="threejs_bottombar">
<add><div id="es6"... | 1 |
Text | Text | update checklist boxes in pull request template | f9a8e11de6ae33e8a2d3e280ad79ce1635876ec5 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> Checklist:
<ide>
<ide> <!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->
<ide>
<del>- [ ] I have read [freeCodeCamp's contribution guidelines](https://contribute.fre... | 1 |
Ruby | Ruby | use system path for more tools, for linux compat | 51d1a8e3c5e1a0119837304c7678a3287eb66a67 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_multiple_volumes
<ide> real_cellar = HOMEBREW_CELLAR.realpath
<ide>
<ide> tmp_prefix = ENV['HOMEBREW_TEMP'] || '/tmp'
<del> tmp = Pathname.new `/usr/bin/mktemp -d #{tmp_prefix}/homebrew-brew-doctor-XXXX`.strip
<add> tmp = Pathname.new with_system_path... | 3 |
Ruby | Ruby | remove debug message | 243ff024e3944dedceb0d64712869385fc965d89 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def print_json(args:)
<ide> if args.bottle?
<ide> { "formulae" => formulae.map(&:to_recursive_bottle_hash) }
<ide> elsif args.variations?
<del> opoo "a"
<ide> {
<ide> "formulae" => formulae.map(&:to_hash_with_variations),
<ide> ... | 1 |
Javascript | Javascript | add loaders es6 unit tests | f74b17963d5e16c0195771b1aaa2e9b0727fbf48 | <ide><path>test/unit/src/loaders/AnimationLoader.tests.js
<add>/**
<add> * @author TristanVALCKE / https://github.com/Itee
<add> */
<add>/* global QUnit */
<add>
<add>import { AnimationLoader } from '../../../../src/loaders/AnimationLoader';
<add>
<add>export default QUnit.module( 'Loaders', () => {
<add>
<add> QUnit.m... | 16 |
Python | Python | add a note about record array dtypes | 7e6021ebcd3529e8c952b675090ec40f2f17db84 | <ide><path>numpy/typing/__init__.py
<ide> 0D-array -> scalar cast, then one can consider manually remedying the
<ide> situation with either `typing.cast` or a ``# type: ignore`` comment.
<ide>
<add>Record array dtypes
<add>~~~~~~~~~~~~~~~~~~~
<add>
<add>The dtype of `numpy.recarray`, and the `numpy.rec` functions in g... | 1 |
Ruby | Ruby | rename the last occurrence of unexpectedparameters | 0102c817bfb8ca6810732e02a6eee888935a1b92 | <ide><path>actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb
<ide> def teardown
<ide> fishing: "Turnips"
<ide> })
<ide>
<del> assert_raises(ActionController::UnexpectedParameters) do
<add> assert_raises(ActionController::UnpermittedParameters) do
<ide> params.permit(bo... | 1 |
Javascript | Javascript | use object.create(null) directly | cfc8422a68c92808a4a2aee374623bebc768522a | <ide><path>lib/_http_outgoing.js
<ide> const common = require('_http_common');
<ide> const checkIsHttpToken = common._checkIsHttpToken;
<ide> const checkInvalidHeaderChar = common._checkInvalidHeaderChar;
<ide> const outHeadersKey = require('internal/http').outHeadersKey;
<del>const StorageObject = require('internal/qu... | 6 |
Javascript | Javascript | fix github link | 0262d1b6761be1ba1718b9e541cf3001d3f7e673 | <ide><path>server/passport-providers.js
<ide> module.exports = {
<ide> authScheme: 'oauth2',
<ide> module: 'passport-github',
<ide> authPath: '/link/github',
<del> callbackURL: '/link/github/callback',
<del> callbackPath: '/link/github/callback',
<add> callbackURL: '/auth/github/callback/link',
<ad... | 1 |
Javascript | Javascript | use jquery ready instead of vanilla js | 523fb5c3f421129aea10045081dc5e519859c1ae | <ide><path>airflow/www/static/js/task_instance.js
<ide> * under the License.
<ide> */
<ide>
<del>document.addEventListener('DOMContentLoaded', () => {
<add>$(document).ready(() => {
<ide> function dateChange() {
<ide> // We don't want to navigate away if the datetimepicker is still visible
<ide> if ($('.da... | 1 |
PHP | PHP | add missing subcommand definition | 9de6a5f3cd53a81dd95b09f1f1ed97b875739d56 | <ide><path>src/Console/Command/Task/FixtureTask.php
<ide> public function getOptionParser() {
<ide> ])->addOption('conditions', [
<ide> 'help' => __d('cake_console', 'The SQL snippet to use when importing records.'),
<ide> 'default' => '1=1',
<add> ])->addSubcommand('all', [
<add> 'help' => __d('cake_console... | 1 |
Text | Text | update console.error example | 440edaa6881bc6e4966558a10152b41838f9f28a | <ide><path>doc/api/console.md
<ide> console.log('hello world');
<ide> console.log('hello %s', 'world');
<ide> // Prints: hello world, to stdout
<ide> console.error(new Error('Whoops, something bad happened'));
<del>// Prints: [Error: Whoops, something bad happened], to stderr
<add>// Prints error message and stack trac... | 1 |
Javascript | Javascript | add method popn() to navigator | bbe95c2acf4df06a732ff319cd9c686440ddf29a | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> });
<ide> },
<ide>
<del> _popN: function(n) {
<del> if (n === 0) {
<add> /**
<add> * Go back N scenes at once. When N=1, behavior matches `pop()`.
<add> * When N is invalid(negative or bigger tha... | 1 |
Java | Java | avoid unnecessary autoboxing | e6020ed3777fe5d99e0c9333185f7f5ad143b9c9 | <ide><path>spring-aop/src/main/java/org/springframework/aop/config/AopNamespaceUtils.java
<ide> public static void registerAspectJAnnotationAutoProxyCreatorIfNecessary(
<ide>
<ide> private static void useClassProxyingIfNecessary(BeanDefinitionRegistry registry, @Nullable Element sourceElement) {
<ide> if (sourceEle... | 4 |
Go | Go | fix typos whithin unit tests | 483c9425208fbc649cd12d157892be5a7ea92924 | <ide><path>api_test.go
<ide> func TestGetImagesJson(t *testing.T) {
<ide>
<ide> func TestGetImagesViz(t *testing.T) {
<ide> //FIXME: Implement this test (or remove this endpoint)
<del> t.Log("Test on implemented")
<add> t.Log("Test not implemented")
<ide> }
<ide>
<ide> func TestGetImagesSearch(t *testing.T) {
<ide> ... | 2 |
Python | Python | remove remaining head() method | 650c04662dc4b47f285601fefad3b71afc7f6461 | <ide><path>djangorestframework/compat.py
<ide> def http_method_not_allowed(self, request, *args, **kwargs):
<ide> #)
<ide> return http.HttpResponseNotAllowed(allowed_methods)
<ide>
<del> def head(self, request, *args, **kwargs):
<del> return self.get(request, *args, **kwargs)
... | 1 |
Text | Text | fix version number for dep006 | 6385340774fad3338dd00ba20468421b560be6b9 | <ide><path>doc/api/deprecations.md
<ide> changes:
<ide> description: A deprecation code has been assigned.
<ide> - version: v0.11.14
<ide> description: Runtime deprecation.
<del> - version: v0.5.11
<add> - version: v0.5.10
<ide> description: Documentation-only deprecation.
<ide> -->
<ide> | 1 |
Javascript | Javascript | improve use of primordials | b8922e8924a3da170878c9982342258f5deb0a7f | <ide><path>lib/wasi.js
<ide> /* global WebAssembly */
<ide> const {
<ide> ArrayIsArray,
<del> ArrayPrototypeForEach,
<ide> ArrayPrototypeMap,
<add> ArrayPrototypePush,
<ide> FunctionPrototypeBind,
<del> ObjectKeys,
<add> ObjectEntries,
<ide> Symbol,
<ide> } = primordials;
<ide>
<ide> class WASI {
<ide> ... | 1 |
Go | Go | fix netlink dependency with new pkg | d0fdc3b5dfa951870f4a7c0a08dea8c1bc68a31b | <ide><path>daemon/daemon.go
<ide> import (
<ide> "fmt"
<ide> "io"
<ide> "io/ioutil"
<add> "net"
<ide> "os"
<ide> "path/filepath"
<ide> "regexp"
<ide> import (
<ide> "github.com/docker/docker/volume/local"
<ide> "github.com/docker/docker/volume/store"
<ide> "github.com/docker/libnetwork"
<del> "github.com/openc... | 1 |
Ruby | Ruby | use a hash to look up column definitions | 76c29a64b940ca82c7a15de5598f5340046b9cca | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> class TableDefinition
<ide>
<ide> def initialize(base)
<ide> @columns = []
<add> @columns_hash = {}
<ide> @base = base
<ide> end
<ide>
<ide> def primary_key(name)
<ide>
<ide> # ... | 1 |
Ruby | Ruby | simplify cache output | 46e051b1c2ed44ce4db151da9a09a1870c485334 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/doctor.rb
<ide> def self.render_load_path(paths)
<ide>
<ide> def self.render_cached_downloads
<ide> cleanup = CLI::Cleanup.default
<del> files = cleanup.cache_files
<del> count = files.count
<add> count = cleanup.cache_files.count
<ide> ... | 1 |
Javascript | Javascript | serialize name in buffergeometry.tojson() | d06ece07677cf9bded2fce17c363e142624ae7fc | <ide><path>src/core/BufferGeometry.js
<ide> BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
<ide>
<ide> var array = Array.prototype.slice.call( attribute.array );
<ide>
<del> data.data.attributes[ key ] = {
<add> var attributeData = {
<ide> itemSize: attribute.itemSize,
<id... | 2 |
Python | Python | fix bug in dilated conv for cntk | cd22c5a53bf738ea678cb5ce0e799093d527f2a6 | <ide><path>keras/backend/cntk_backend.py
<ide> def conv1d(x, kernel, strides=1, padding='valid',
<ide>
<ide> if data_format == 'channels_last':
<ide> x = C.swapaxes(x, 0, 1)
<del> kernel = C.swapaxes(kernel, 0, 2)
<add>
<add> # As of Keras 2.0.0, all kernels are normalized
<add> # on the forma... | 3 |
Python | Python | fix error message | 8e14d1af5bf1139c55e202b42a9ba78954c339c2 | <ide><path>numpy/lib/arraysetops.py
<ide> def in1d(ar1, ar2, assume_unique=False, invert=False, method='auto'):
<ide> return outgoing_array
<ide> elif method == 'dictionary':
<ide> raise ValueError(
<del> "'dictionary' method is only supported for non-integer arrays. "
<add> ... | 1 |
Text | Text | add note about linking stylesheet | 50ec618748f848e73340696ced8a115b4d0e5a33 | <ide><path>curriculum/challenges/english/01-responsive-web-design/responsive-web-design-projects/build-a-personal-portfolio-webpage.md
<ide> dashedName: build-a-personal-portfolio-webpage
<ide>
<ide> Fulfill the user stories and pass all the tests below to complete this project. Give it your own personal style. Happy ... | 10 |
Ruby | Ruby | remove invalid test | 47871b025e2205c9686ab1a20464cb4fac98cd74 | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_empty
<ide>
<ide> def test_empty_complex_chained_relations
<ide> posts = Post.select("comments_count").where("id is not null").group("author_id").where("comments_count > 0")
<add>
<ide> assert_queries(1) { assert_equal false, posts.empty? }
... | 1 |
Javascript | Javascript | use shelltestenvironment in wpt | 092755932b28bd4e53bb5db3faf31262cd47fc2d | <ide><path>test/common/wpt.js
<ide> class WPTRunner {
<ide> fetch(file) {
<ide> return resource.fetch(file);
<ide> },
<del> location: {},
<ide> GLOBAL: {
<ide> isWindow() { return false; }
<ide> },
<ide> class WPTRunner {
<ide> // TODO(joyeecheung): we are not a window -... | 1 |
PHP | PHP | add test for retaining and flash messages | f17ebfc7372d556f5e96970f2c1d138964df8a57 | <ide><path>tests/TestCase/TestSuite/IntegrationTestTraitTest.php
<ide> public function testFlashSessionAndCookieAssertsHttpServer()
<ide> $this->assertCookie(1, 'remember_me');
<ide> }
<ide>
<add> /**
<add> * Test flash assertions stored with enableRememberFlashMessages() after a
<add> * redirec... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.