content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | fix missing newline | 942a0f994f1c6da840086cbcd2933e23521a2953 | <ide><path>docs/installation/ubuntulinux.md
<ide> your kernel version:
<ide> >run Docker, see the prerequisites on this page that apply to your Ubuntu
<ide> >version.
<ide>
<add>
<ide> ### For Trusty 14.04
<ide>
<ide> There are no prerequisites for this version. | 1 |
Mixed | Go | fix docker exec command help messages | d8b17d785a03246cb3a081223a0242469af7d410 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdLoad(args ...string) error {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdExec(args ...string) error {
<del> cmd := cli.Subcmd("exec", "CONTAINER COMMAND [ARG...]", "Run a command in an existing container")
<add> cmd := cli.Subcmd("exec", "CONTAINER COMM... | 4 |
Text | Text | fix user doc | e89cb9a5e0105afbb0c1ba1176bda07d110295bc | <ide><path>docs/sources/reference/builder.md
<ide> instructions via the Docker client, refer to [*Share Directories via Volumes*](
<ide>
<ide> USER daemon
<ide>
<del>The `USER` instruction sets the username or UID to use when running the image.
<add>The `USER` instruction sets the username or UID to use when runn... | 1 |
Javascript | Javascript | avoid conditions where control flow is sufficient | dbe9e732af1f12757a55adb12a8279d7db898b60 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> function commitPlacement(finishedWork: Fiber): void {
<ide> const parentFiber = getHostParentFiber(finishedWork);
<ide>
<ide> // Note: these two variables *must* always be updated together.
<del> let parent;
<del> let isContainer;
<del> ... | 2 |
Ruby | Ruby | reduce duplication for mime type regexps | c5fce2c2247aef465beae0069b4cfdacb6e7fb02 | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> def unregister(symbol)
<ide> attr_reader :hash
<ide>
<ide> MIME_NAME = "[a-zA-Z0-9][a-zA-Z0-9#{Regexp.escape('!#$&-^_.+')}]{0,126}"
<del> MIME_PARAMETER_KEY = "[a-zA-Z0-9][a-zA-Z0-9#{Regexp.escape('!#$&-^_.+')}]{0,126}"
<del> MIME_PARAMETE... | 1 |
Python | Python | add a data_format flag to the models + other fixes | 487d18e233ad7ddf225f05298ba5c150bb4c886b | <ide><path>official/mnist/mnist.py
<ide> parser.add_argument('--model_dir', type=str, default='/tmp/mnist_model',
<ide> help='The directory where the model will be stored.')
<ide>
<del>parser.add_argument('--steps', type=int, default=20000,
<del> help='Number of steps to train.')... | 6 |
PHP | PHP | add `shared` method to the view facade | 93ff6458081256c807913ca63278e6e9abd8dd02 | <ide><path>src/Illuminate/Support/Facades/View.php
<ide> * @method static array creator(array|string $views, \Closure|string $callback)
<ide> * @method static bool exists(string $view)
<ide> * @method static mixed share(array|string $key, $value = null)
<add> * @method static mixed shared(string $key, $default = nul... | 1 |
Javascript | Javascript | pass bufferrow and screenrow as numbers | 2a1719f337616d192ffa1b2ad06119b0256e6bc4 | <ide><path>src/text-editor-component.js
<ide> class LineNumberGutterComponent {
<ide> if (this.props.onMouseDown == null) {
<ide> this.props.rootComponent.didMouseDownOnLineNumberGutter(event)
<ide> } else {
<del> const {bufferRow, screenRow} = event.target.dataset
<del> this.props.onMouseDown({... | 1 |
Javascript | Javascript | fix calculations in test-worker-resource-limits | 51fd5db4c18da2685b3825fb5617f7f968859299 | <ide><path>test/parallel/test-worker-resource-limits.js
<ide> if (!process.env.HAS_STARTED_WORKER) {
<ide> assert.deepStrictEqual(resourceLimits, testResourceLimits);
<ide> const array = [];
<ide> while (true) {
<del> // Leave 10% wiggle room here, and 20% on debug builds.
<del> const wiggleRoom = common.buildType ==... | 1 |
Javascript | Javascript | add first api change, not working yet | 353a43cb46e34ee82b3458df1138952282973aec | <ide><path>src/api.js
<ide> * e.g. No cross domain requests without CORS.
<ide> *
<ide> * @param {string|TypedAray} source Either a url to a PDF is located or a
<del> * typed array already populated with data.
<add> * typed array (Uint8Array) already populated with data.
<ide> * @return {Promise} A promise that is ... | 1 |
PHP | PHP | use correct string | 803f00ef4596ba21ff9f5ad284761f75df6659d8 | <ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php
<ide> public function handleException($exception, $request, $response)
<ide> protected function getRenderer($exception)
<ide> {
<ide> if (!$this->exceptionRenderer) {
<del> $this->exceptionRenderer = $this->config('exceptionRender') ?... | 1 |
Javascript | Javascript | remove hardcoded address from ws example. | c66cafd3625fe469cc2743ff33711f28ac92617e | <ide><path>examples/with-socket.io/pages/index.js
<ide> class HomePage extends Component {
<ide>
<ide> // connect to WS server and listen event
<ide> componentDidMount () {
<del> this.socket = io('http://localhost:3000/')
<add> this.socket = io()
<ide> this.socket.on('message', this.handleMessage)
<ide> ... | 1 |
PHP | PHP | remove parsedown import | 76350b6666b31716e240b08b8cb5fb0158f32d65 | <ide><path>src/Illuminate/Notifications/DatabaseNotification.php
<ide>
<ide> namespace Illuminate\Notifications;
<ide>
<del>use Parsedown;
<ide> use Illuminate\Database\Eloquent\Model;
<ide>
<ide> class DatabaseNotification extends Model | 1 |
Javascript | Javascript | fix timezone display for logs on ui | e57c7aeda8c5cd9d0f10e2ce46a155ea01181140 | <ide><path>airflow/www/static/js/datetime_utils.js
<ide> export function updateAllDateTimes() {
<ide> const dt = moment($el.attr('datetime'));
<ide> // eslint-disable-next-line no-underscore-dangle
<ide> if (dt._isValid) {
<del> $el.text(dt.format(defaultFormat));
<add> $el.text(dt.format($el.data... | 2 |
Javascript | Javascript | add dom fixture for autofilled form state | 2078aa9a401aa91e97b42cdd36a6310888128ab2 | <ide><path>fixtures/dom/src/components/Header.js
<ide> class Header extends React.Component {
<ide> <option value="/mouse-events">Mouse Events</option>
<ide> <option value="/selection-events">Selection Events</option>
<ide> <option value="/suspense">Suspense</option>
<add... | 3 |
PHP | PHP | fix types in console classes | 735781170381b8a3d07e89961ab83b8394dc444f | <ide><path>src/Illuminate/Console/Application.php
<ide> class Application extends SymfonyApplication implements ApplicationContract {
<ide> /**
<ide> * The Laravel application instance.
<ide> *
<del> * @var \Illuminate\Foundation\Application
<add> * @var \Illuminate\Contracts\Foundation\Application
<ide> */
<i... | 2 |
Javascript | Javascript | fix dangling links warning in $http api | dde613f18ef1e3f10e6678b957423afd3512ca04 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
<ide> * transform function or an array of such functions. The transform function takes the http
<ide> * request body and headers and returns its tran... | 1 |
Javascript | Javascript | add video link for symmetric difference | e640c71b3183133055488db73a78ed2acb9427d3 | <ide><path>bonfireMDNlinks.js
<ide> var links =
<ide> "Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html",
<ide> "Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html",
<ide> "HTML Entities": "http://dev.w3.org/html5/html-author/charref",
<add> "... | 1 |
PHP | PHP | clarify array types in doc blocks | 1d12f3b4ad407ca4ab8b80754889aa9ddb3a2402 | <ide><path>src/Database/Type.php
<ide> class Type implements TypeInterface
<ide> * identifier is used as key and a complete namespaced class name as value
<ide> * representing the class that will do actual type conversions.
<ide> *
<del> * @var array
<add> * @var string[]|\Cake\Database\Type[]
<i... | 1 |
Text | Text | remove semi-colon from reducers.md example | 473ff39b0b35e8dfe0cbe29017abb6d5d1ab7685 | <ide><path>docs/basics/Reducers.md
<ide> function todoApp(state = initialState, action) {
<ide> return {
<ide> ...state,
<ide> todos: todos(state.todos, action)
<del> };
<add> }
<ide> default:
<ide> return state
<ide> } | 1 |
Ruby | Ruby | remove unnecessary code from urlhelper#link_to | 9a6e3ae76322e0a8108f9bcf0a8440769328b9d7 | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def link_to(*args, &block)
<ide> html_options = convert_options_to_data_attributes(options, html_options)
<ide> url = url_for(options)
<ide>
<del> if html_options
<del> html_options = html_options.stringify_keys
<... | 1 |
Javascript | Javascript | fix question motion on correct answer | a39746d381bfe629b3e44a7de9fd90011018c36d | <ide><path>common/app/routes/Hikes/flux/Actions.js
<ide> export default Actions({
<ide> // index 0
<ide> if (tests[currentQuestion]) {
<ide>
<del> return {
<add> return Observable.just({
<ide> transform(state) {
<del>
<ide> const hikesApp = {
<ide> ...state.hikesApp,
<de... | 1 |
Javascript | Javascript | add modal example | 8dddaa85f04316c7b0419e6abcd11f8e11678956 | <ide><path>packages/rn-tester/js/examples/Modal/ModalExample.js
<ide> const {
<ide> Text,
<ide> TouchableHighlight,
<ide> View,
<add> ScrollView,
<ide> } = require('react-native');
<ide>
<ide> const Item = Picker.Item;
<ide> class ModalExample extends React.Component<{...}, $FlowFixMeState> {
<ide> animatio... | 1 |
PHP | PHP | fix the test case | 36882454843fb7fc91157832257f66ca6d2c4d9e | <ide><path>tests/TestCase/Collection/Iterator/SortIteratorTest.php
<ide> public function testSortDateTime()
<ide> ];
<ide> $this->assertEquals($expected, $sorted->toList());
<ide>
<add> $items = new ArrayObject([
<add> new Time('2014-07-21'),
<add> new Time('2015-06-30'),
<... | 1 |
Javascript | Javascript | add accessibilityhint to touchablenativefeedback | 72285d808dfce748287a19e2620d58517a5f76e7 | <ide><path>Libraries/Components/Touchable/TouchableNativeFeedback.js
<ide> class TouchableNativeFeedback extends React.Component<Props, State> {
<ide> this.props.useForeground === true,
<ide> ),
<ide> accessible: this.props.accessible !== false,
<add> accessibilityHint: this.props.acces... | 1 |
Go | Go | extract healthcheck-validation to a function | 6a7da0b31b505d499aa7785195dc43df7b257b5c | <ide><path>daemon/container.go
<ide> func (daemon *Daemon) verifyContainerSettings(platform string, hostConfig *conta
<ide> }
<ide> }
<ide>
<del> // Validate the healthcheck params of Config
<del> if config.Healthcheck != nil {
<del> if config.Healthcheck.Interval != 0 && config.Healthcheck.Interval < contain... | 1 |
PHP | PHP | change equal operators to identity operators | e38892ff06c0066c572f8251953a091041246814 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function dateTime($fieldName, $dateFormat = 'DMY', $timeFormat = '12', $a
<ide> $current->setDate($year, $month, $day);
<ide> }
<ide> if ($hour !== null) {
<del> if ($timeFormat == '12') {
<add> if ($timeFormat === '12') {
<ide> $hour = da... | 1 |
Javascript | Javascript | build single scales in core | ef1acfa0e85f5b2d5aca473eb5027b91f89d6fb1 | <ide><path>src/core/core.controller.js
<ide> this.scales[scale.id] = scale;
<ide> }, this);
<ide> }
<add>
<add> if (this.options.scale) {
<add> // Build radial axes
<add> var ScaleClass = Chart.scaleService.getScaleConstructor(axisOptions.type);
<add> var scale = new ScaleClass({
<add> ... | 1 |
Text | Text | add missing word to improve clarity | 9fc6606c83d9de53ce8adc894c78f2d90303ef86 | <ide><path>docs/faq/CodeStructure.md
<ide> However, there may be times when other parts of the codebase need to interact wi
<ide> Some possible solutions are:
<ide>
<ide> - Write your store-dependent logic as a thunk, and then dispatch that thunk from a component
<del>- Pass along references to `dispatch` from compone... | 1 |
PHP | PHP | simplify methods and harden their signature | f90a28cc5a68708b55587e9ed926e0e2b7068337 | <ide><path>src/Console/Command/Task/ControllerTask.php
<ide> public function bake($controllerName) {
<ide> * @param array $data The data to turn into code.
<ide> * @return string The generated controller file.
<ide> */
<del> public function bakeController($controllerName, $data) {
<add> public function bakeControlle... | 35 |
Ruby | Ruby | add missing at_end_of_* aliases | 681697813be40395ef79e1aa0d295d01d99ae596 | <ide><path>activesupport/lib/active_support/core_ext/date/calculations.rb
<ide> def beginning_of_day
<ide> def end_of_day
<ide> to_time_in_current_zone.end_of_day
<ide> end
<add> alias :at_end_of_day :end_of_day
<ide>
<ide> def plus_with_duration(other) #:nodoc:
<ide> if ActiveSupport::Duration === othe... | 3 |
Python | Python | rewrite strings to be easier to read | 7b3e6fa5c8eb92eeab20bfbb6f4298d97396e103 | <ide><path>numpy/f2py/tests/test_callback.py
<ide> from numpy import array
<ide> import math
<ide> import util
<add>import textwrap
<ide>
<ide> class TestF77Callback(util.F2PyTest):
<ide> code = """
<ide> def test_all(self):
<ide>
<ide> @dec.slow
<ide> def test_docstring(self):
<del> assert_equal(s... | 2 |
Ruby | Ruby | fix typo in generate_message documentation | f320c994dbf0c1b0c03cd2ddc64aa52a4f5859b8 | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def full_messages(options = {})
<ide> full_messages
<ide> end
<ide>
<del> # Translates an error message in it's default scope (<tt>activemodel.errrors.messages</tt>).
<add> # Translates an error message in it's default scope (<tt>activemodel.error... | 1 |
Go | Go | simplify thin pool device id allocation | f26203cf544db07ae64dffaa495e4217976c0786 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> type DeviceSet struct {
<ide> devicePrefix string
<ide> TransactionId uint64
<ide> NewTransactionId uint64
<del> nextFreeDevice int
<add> nextDeviceId int
<ide> }
<ide>
<ide> type DiskUsage struct {
<ide> func (devices *DeviceSet) ensureImage(n... | 3 |
PHP | PHP | fix failing test | 3184535ac7944fb5eea96f5888f94986f802aca1 | <ide><path>lib/Cake/Test/TestCase/TestSuite/TestFixtureTest.php
<ide> public function testInitImport() {
<ide> 'title',
<ide> 'body',
<ide> 'published',
<del> 'created',
<del> 'updated',
<ide> ];
<ide> $this->assertEquals($expected, $fixture->schema()->columns());
<ide> } | 1 |
Ruby | Ruby | reset template assertions without warnings | e275479ce5ea6126aa1dc2f964b6d06d07098e00 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def process(*args)
<ide>
<ide> def reset_template_assertion
<ide> RENDER_TEMPLATE_INSTANCE_VARIABLES.each do |instance_variable|
<del> ivar = instance_variable_get("@_#{instance_variable}")
<del> ivar.clear if ivar
<add> ivar... | 1 |
Javascript | Javascript | fix issue 89, parsing responses to head requests | 15ec99ec5945c07616cd9299e126e9919bc9c8cc | <ide><path>lib/http.js
<ide> var parsers = new FreeList('parsers', 1000, function () {
<ide>
<ide> parser.incoming.upgrade = info.upgrade;
<ide>
<add> var isHeadResponse = false;
<add>
<ide> if (!info.upgrade) {
<ide> // For upgraded connections, we'll emit this after parser.execute
<ide> // so... | 2 |
Ruby | Ruby | remove redundant calls to stringify_keys | 759815547bf85167e97b3cdbff2f1e8d33e218e4 | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def submit_tag(value = "Save changes", options = {})
<ide> options["data-confirm"] = confirm
<ide> end
<ide>
<del> tag :input, { "type" => "submit", "name" => "commit", "value" => value }.update(options.stringify_keys)
<add... | 1 |
Mixed | Ruby | remove redundant suffixes on generated helpers | 886ac1c3087f8ac06bee371af54758fb02760e63 | <ide><path>railties/CHANGELOG.md
<add>* Remove redundant suffixes on generated helpers.
<add>
<add> *Gannon McGibbon*
<add>
<ide> * Fix boolean interaction in scaffold system tests.
<ide>
<ide> *Gannon McGibbon*
<ide><path>railties/lib/rails/generators/rails/helper/helper_generator.rb
<ide> def create_helpe... | 3 |
Ruby | Ruby | remove unnecessary tap_args | 2c25303949a9fa091868cbdd42fd4ff4877869fc | <ide><path>Library/Homebrew/cmd/readall.rb
<ide> def readall
<ide> if ARGV.named.empty?
<ide> formulae = Formula.files
<ide> else
<del> tap = Tap.fetch(*tap_args)
<add> tap = Tap.fetch(ARGV.named.first)
<ide> raise TapUnavailableError, tap.name unless tap.installed?
<ide> formulae = ... | 8 |
PHP | PHP | fix incorrect namespace | 0a24ca3c4e12c7cfe2d2bb46f84075bf63c5fdf9 | <ide><path>src/TestSuite/ControllerTestCase.php
<ide> abstract class ControllerTestCase extends TestCase {
<ide> * @param string $name The name of the function
<ide> * @param array $arguments Array of arguments
<ide> * @return the return of _testAction
<del> * @throws \Cake\Error\BadMethodCallException when you call... | 1 |
Ruby | Ruby | simplify link_to using content_tag | e2f5f01675f3c575e820532ab7cce6fe068ecb28 | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def url_for(options = nil)
<ide> # link_to("Destroy", "http://www.example.com", :method => :delete, :confirm => "Are you sure?")
<ide> # # => <a href='http://www.example.com' rel="nofollow" data-method="delete" data-confirm="Are you sure?... | 2 |
Python | Python | fix train cli | 50c0e49741437c3475bc6527d4f1fed739bd3474 | <ide><path>spacy/cli/train.py
<ide> def train(
<ide> max_steps=T_cfg["max_steps"],
<ide> eval_frequency=T_cfg["eval_frequency"],
<ide> raw_text=None,
<add> exclude=frozen_components
<ide> )
<ide> msg.info(f"Training. Initial learn rate: {optimizer.learn_rate}")
<ide> print_row... | 1 |
Javascript | Javascript | define mix as const | deef01d5a204447625bb899fa640defd53b1f9d7 | <ide><path>webpack.mix.js
<del>let mix = require('laravel-mix');
<add>const mix = require('laravel-mix');
<ide>
<ide> /*
<ide> |-------------------------------------------------------------------------- | 1 |
Javascript | Javascript | remove errant console.log | 1ec3ef743358171b8f64e589d96c23ba8bcd3369 | <ide><path>controllers/resources.js
<ide> module.exports = {
<ide>
<ide> unsubscribe: function unsubscribe(req, res) {
<ide> User.findOne({email: req.params.email}, function(err, user) {
<del> console.log('---------');
<del> console.log(req.params);
<del> console.log('---------');
<del> conso... | 1 |
PHP | PHP | add container support to commandfactory | 2ed167222eb070109d81ece4fb68415c290c4b32 | <ide><path>src/Console/CommandFactory.php
<ide> */
<ide> namespace Cake\Console;
<ide>
<add>use Cake\Core\ContainerInterface;
<ide> use InvalidArgumentException;
<ide>
<ide> /**
<ide> */
<ide> class CommandFactory implements CommandFactoryInterface
<ide> {
<add> /**
<add> * @var \Cake\Core\ContainerInterface... | 5 |
Javascript | Javascript | use `packagename` instead of hardcoding it | 723495850ba64236f9259d8b3cd3d5e61afbe0cd | <ide><path>bin/transpile-packages.js
<ide> ES6Package.prototype = {
<ide>
<ide>
<ide> ['container'].forEach(function(packageName) {
<del> pkg = new ES6Package('container');
<add> pkg = new ES6Package(packageName);
<ide> pkg.process();
<ide> }); | 1 |
Javascript | Javascript | simplify some regular expressions | c42887221a268a6e84f41ab8c046d0f7ae93effe | <ide><path>src/core/core_utils.js
<ide> function isWhiteSpace(ch) {
<ide> * each part of the path.
<ide> */
<ide> function parseXFAPath(path) {
<del> const positionPattern = /(.+)\[([0-9]+)\]$/;
<add> const positionPattern = /(.+)\[(\d+)\]$/;
<ide> return path.split(".").map(component => {
<ide> const m = com... | 8 |
Java | Java | update javadoc for cookievalue | 821ecb4cfd0b3a782092fdda4dc05e1b161a7aa7 | <ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/CookieValue.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may... | 1 |
Go | Go | use persistent connection for links database | 7c08aeeba4ab94f77e221bfc01741cce0866d224 | <ide><path>docker/docker.go
<ide> func daemon(config *docker.DaemonConfig) error {
<ide> }
<ide> defer removePidFile(config.Pidfile)
<ide>
<add> server, err := docker.NewServer(config)
<add> if err != nil {
<add> return err
<add> }
<add> defer server.Close()
<add>
<ide> c := make(chan os.Signal, 1)
<ide> signal.N... | 6 |
Go | Go | put each arg in a separate string | 30ea0bebce340dfc257b5b45835234cb921f3a48 | <ide><path>integration/server_test.go
<ide> func TestCreateRmVolumes(t *testing.T) {
<ide> srv := mkServerFromEngine(eng, t)
<ide> defer mkRuntimeFromEngine(eng, t).Nuke()
<ide>
<del> config, hostConfig, _, err := docker.ParseRun([]string{"-v", "/srv", unitTestImageID, "echo test"}, nil)
<add> config, hostConfig, _,... | 1 |
Python | Python | fix misleading attributeerrors | d13c807616030b285589cec2fddf4e34a8e22b4a | <ide><path>rest_framework/request.py
<ide> from rest_framework import HTTP_HEADER_ENCODING
<ide> from rest_framework import exceptions
<ide> from rest_framework.settings import api_settings
<add>import sys
<ide> import warnings
<ide>
<ide>
<ide> def _not_authenticated(self):
<ide> else:
<ide> self... | 1 |
Text | Text | add whitespace after if according code style | 22d86fe70f91bc996904671029c2549d696ca89a | <ide><path>docs/Troubleshooting.md
<ide> function todos(state = [], action) {
<ide> case 'COMPLETE_TODO':
<ide> // Return a new array
<ide> return state.map((todo, index) => {
<del> if(index === action.index) {
<add> if (index === action.index) {
<ide> // Copy the object before m... | 3 |
Text | Text | update snippet to rails 5 syntax | 4c15ed775304abd9e3e41afef4e7fec4077f699b | <ide><path>guides/source/action_controller_overview.md
<ide> NOTE: Support for parsing XML parameters has been extracted into a gem named `ac
<ide> The `params` hash will always contain the `:controller` and `:action` keys, but you should use the methods `controller_name` and `action_name` instead to access these value... | 1 |
Ruby | Ruby | fix plain option in the rails_guides generator | d34a2747cb43cc7f23d134e2853879ef4888e372 | <ide><path>guides/rails_guides/markdown.rb
<ide> def render_page
<ide> @view.content_for(:header_section) { @header }
<ide> @view.content_for(:page_title) { @title }
<ide> @view.content_for(:index_section) { @index }
<del> @view.render(layout: @layout, text: @body)
<add> @view.rend... | 1 |
Python | Python | remove dummy variable from function calls | 10dab8eef817d3e149ca0002ccdc32e91ab4ac82 | <ide><path>spacy/__init__.py
<ide> def blank(name, **kwargs):
<ide>
<ide>
<ide> def info(model=None, markdown=False):
<del> return cli_info(None, model, markdown)
<add> return cli_info(model, markdown)
<ide><path>spacy/cli/download.py
<ide> def download(model, direct=False):
<ide> # package, whi... | 3 |
Javascript | Javascript | fix $asyncvalidators example | f211419be6ff2181f01a66a12fbb1e55664ea898 | <ide><path>src/ng/directive/input.js
<ide> var VALID_CLASS = 'ng-valid',
<ide> * perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided
<ide> * is expected to return a promise when it is run during the model validation process. Once the promise
<ide> * is de... | 1 |
Javascript | Javascript | move props equality check into each branch | 21dccad47f26eed4709f59aaf9a897c358f957aa | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, TI, C, CX>(
<ide>
<ide> function updateFragment(current, workInProgress) {
<ide> var nextChildren = workInProgress.pendingProps;
<add> if (hasContextChanged()) {
<add> // Normally we can bail out on prop... | 1 |
Text | Text | remove rails versions from traco link | 62b43839098bbbbfc4be789128d33dc0612f1ab3 | <ide><path>guides/source/i18n.md
<ide> Several gems can help with this:
<ide>
<ide> * [Globalize](https://github.com/globalize/globalize): Store translations on separate translation tables, one for each translated model
<ide> * [Mobility](https://github.com/shioyama/mobility): Provides support for storing translations... | 1 |
Python | Python | remove debug prints | 7609e0b42e0014a6ad0adf9dafc7018cb268070e | <ide><path>django/db/migrations/executor.py
<ide> def apply_migration(self, migration):
<ide> """
<ide> Runs a migration forwards.
<ide> """
<del> print "Applying %s" % migration
<ide> with self.connection.schema_editor() as schema_editor:
<ide> project_state = self.lo... | 1 |
PHP | PHP | update gate facade(inspect) | 139726e392ecb4fc7114fb63f968815c1426d3f9 | <ide><path>src/Illuminate/Support/Facades/Gate.php
<ide> * @method static mixed getPolicyFor(object|string $class)
<ide> * @method static \Illuminate\Contracts\Auth\Access\Gate forUser(\Illuminate\Contracts\Auth\Authenticatable|mixed $user)
<ide> * @method static array abilities()
<add> * @method static \Illuminate\... | 1 |
PHP | PHP | add missing test for password reset | 9236336c554fb88f6a5372814e4e993e64c2ecca | <ide><path>tests/Integration/Auth/ForgotPasswordTest.php
<ide>
<ide> class ForgotPasswordTest extends TestCase
<ide> {
<add> protected function tearDown(): void
<add> {
<add> ResetPassword::$createUrlCallback = null;
<add> ResetPassword::$toMailCallback = null;
<add>
<add> parent::tearDown()... | 2 |
PHP | PHP | remove cursorpaginationexception | 7bfc3154dce4576aca44054e8c7359ee2346d6f6 | <ide><path>src/Illuminate/Pagination/CursorPaginationException.php
<del><?php
<del>
<del>namespace Illuminate\Pagination;
<del>
<del>use RuntimeException;
<del>
<del>/**
<del> * @deprecated Will be removed in a future Laravel version.
<del> */
<del>class CursorPaginationException extends RuntimeException
<del>{
<del> ... | 1 |
PHP | PHP | apply fixes from styleci | 39c154c6ebcd1c28321d18b431ca703e3c8460a7 | <ide><path>tests/Console/ConsoleApplicationTest.php
<ide>
<ide> use Mockery as m;
<ide> use PHPUnit\Framework\TestCase;
<del>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Symfony\Component\Console\Command\Command;
<ide> use Illuminate\Contracts\Foundation\Application;
<ide> | 1 |
Go | Go | add wait, stop, start, restart, rm, rmi | e2ac0e6b806c094fd8a3b706653623c0c2aee861 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdWait(args ...string) error {
<ide> cmd.Usage()
<ide> return nil
<ide> }
<add> var encounteredError error
<ide> for _, name := range cmd.Args() {
<ide> status, err := waitForExit(cli, name)
<ide> if err != nil {
<del> fmt.Fprintf(cli.err, "%s", err)
<add>... | 1 |
Python | Python | remove info log about closing parent pipe | 3310618d4a8f1119fb734ea040311db731a54c26 | <ide><path>airflow/dag_processing/processor.py
<ide> def _run_file_processor(
<ide>
<ide> # Since we share all open FDs from the parent, we need to close the parent side of the pipe here in
<ide> # the child, else it won't get closed properly until we exit.
<del> log.info("Closing parent pipe")
... | 1 |
Text | Text | add sections for server.close() | c60c93cba27626680061109766cbc2e102dd38a8 | <ide><path>doc/api/http2.md
<ide> added: v8.4.0
<ide> The `'timeout'` event is emitted when there is no activity on the Server for
<ide> a given number of milliseconds set using `http2server.setTimeout()`.
<ide>
<add>#### server.close([callback])
<add><!-- YAML
<add>added: v8.4.0
<add>-->
<add>- `callback` {Function}
... | 1 |
Javascript | Javascript | improve code coverage for readline promises | 92b85e7cf49fe799e7004448a5470b379f81a600 | <ide><path>test/parallel/test-readline-promises-interface.js
<ide> for (let i = 0; i < 12; i++) {
<ide> fi.emit('data', 'asdf\n');
<ide> }
<ide>
<add> // Ensure that options.signal.removeEventListener was called
<add> {
<add> const ac = new AbortController();
<add> const signal = ac.signal;
<add> cons... | 1 |
Text | Text | improve asynclocalstorage introduction | 63d978c5c14a54bb8546c5aa7a8fd8c94a8744c2 | <ide><path>doc/api/async_hooks.md
<ide> chains. It allows storing data throughout the lifetime of a web request
<ide> or any other asynchronous duration. It is similar to thread-local storage
<ide> in other languages.
<ide>
<add>While you can create your own implementation on top of the `async_hooks` module,
<add>`Asy... | 1 |
Java | Java | restore compatibility with wildfly | 5ac57e8ea6044d07435542e932335764bbce97bb | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/standard/UndertowRequestUpgradeStrategy.java
<ide> import javax.websocket.Extension;
<ide> import javax.websocket.server.ServerEndpointConfig;
<ide>
<add>import io.undertow.server.HttpServerExchange;
<ide> import io.undertow.server.HttpUpg... | 1 |
Python | Python | generate random token directly | f8cda8adbd7db4cd60b1dbdcd4bb5debc64ba572 | <ide><path>rest_framework/authtoken/models.py
<del>import uuid
<del>import hmac
<add>import binascii
<add>import os
<ide> from hashlib import sha1
<ide> from django.conf import settings
<ide> from django.db import models
<ide> def save(self, *args, **kwargs):
<ide> return super(Token, self).save(*args, **kwargs... | 1 |
Text | Text | fix a windows doc issue | 3c61ede074000933f2290f8765bc4cface18c0ea | <ide><path>docs/installation/windows.md
<ide> uses. You can do this with
<ide> [puttygen](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html):
<ide>
<ide> 1. Open `puttygen.exe` and load ("File"->"Load" menu) the private key from
<del> `%USERPROFILE%\.ssh\id_boot2docker`
<add>
<add> %USERPROFILE... | 1 |
Javascript | Javascript | avoid regexp bug in ff 3.6 | df2e3c2a816caf0d9762628eae47e664935cea25 | <ide><path>d3.csv.js
<ide> d3.csv.parseRows = function(text, f) {
<ide> t, // the current token
<ide> eol; // is the current token followed by EOL?
<ide>
<add> re.lastIndex = 0; // work-around bug in FF 3.6
<add>
<ide> /** @private Returns the next token. */
<ide> function token() {
<ide> if (re.l... | 6 |
Ruby | Ruby | fix rubocop warnings | e89de3351f69a99bdc5d528c7abe3f771ae47b56 | <ide><path>Library/Homebrew/test/test_integration_cmds.rb
<ide> def cmd_output(*args)
<ide> def cmd(*args)
<ide> output = cmd_output(*args)
<ide> status = $?.exitstatus
<del> puts "\n#{output}" if status != 0
<add> puts "\n#{output}" if status.nonzero?
<ide> assert_equal 0, status
<ide> output
<... | 1 |
PHP | PHP | change some wording | fc063229a87ae38ea858067a5054895ac865874c | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> class Event
<ide> * @var string
<ide> */
<ide> public $output = '/dev/null';
<del>
<add>
<ide> /**
<ide> * The array of callbacks to be run before the event is started.
<ide> *
<ide> protected function runCommandInBackground()
... | 1 |
Ruby | Ruby | remove special case for xquartz | 91d6009891e84ec1a19bc3b9edabf4db4f96b184 | <ide><path>Library/Homebrew/test/bundle_version_spec.rb
<ide> describe Homebrew::BundleVersion do
<ide> describe "#nice_version" do
<ide> expected_mappings = {
<del> ["1.2", nil] => "1.2",
<del> [nil, "1.2.3"] => "1.2.3",
<del> ["1.2", "1.2.3"] => "1.2.3... | 1 |
Javascript | Javascript | remember previous item locations | 5c7bd668967291958b65bf9186d7b5f5c009081c | <ide><path>src/workspace.js
<ide> const {Directory} = require('pathwatcher')
<ide> const DefaultDirectorySearcher = require('./default-directory-searcher')
<ide> const Dock = require('./dock')
<ide> const Model = require('./model')
<add>const StateStore = require('./state-store')
<ide> const TextEditor = require('./tex... | 1 |
Text | Text | serverless bullet point | bfbc23d71076c17fe083f8820cdc150afe2f241b | <ide><path>packages/next/README.md
<ide> - [Starting the server on alternative hostname](#starting-the-server-on-alternative-hostname)
<ide> - [CDN support with Asset Prefix](#cdn-support-with-asset-prefix)
<ide> - [Production deployment](#production-deployment)
<add> - [Serverless deployment](#serverless-deployme... | 1 |
PHP | PHP | fix mailmessage markdown | 3f7429c2f687013871e0fbf53bcfe4309007779d | <ide><path>src/Illuminate/Notifications/Messages/MailMessage.php
<ide> class MailMessage extends SimpleMessage
<ide> /**
<ide> * The Markdown template to render (if applicable).
<ide> *
<del> * @var string
<add> * @var string|null
<ide> */
<ide> public $markdown = 'notifications::email';
... | 1 |
PHP | PHP | fix few errors reported on phpstan level 3 | 1b378f1b726107adc7b4fb5c794b405f96d13928 | <ide><path>src/Auth/Storage/SessionStorage.php
<ide> public function __construct(ServerRequest $request, Response $response, array $c
<ide> /**
<ide> * Read user record from session.
<ide> *
<del> * @return array|null User record if available else null.
<add> * @return \ArrayAccess|array|null User... | 11 |
Ruby | Ruby | remove the side-effects of validates_presence_of | 18cc7123abffcbcbd255d02473da84c94a4c8c64 | <ide><path>activerecord/test/cases/validations/presence_validation_test.rb
<ide> def test_validates_presence_of_has_many_marked_for_destruction
<ide> end
<ide>
<ide> def test_validates_presence_doesnt_convert_to_array
<del> Speedometer.validates_presence_of :dashboard
<add> speedometer = Class.new(Speedomete... | 1 |
Javascript | Javascript | use ember.logger.info instead of console.log | c40e9be34943c48f4bf796509472324ece5cdf84 | <ide><path>packages/ember-handlebars/lib/helpers/debug.js
<ide> function debuggerHelper(options) {
<ide> // These are helpful values you can inspect while debugging.
<ide> var templateContext = this;
<ide> var typeOfTemplateContext = inspect(templateContext);
<del> console.log('Use `this` to access the context o... | 1 |
Java | Java | fix calls to reactinstancemanager.onresume() | f8b8fa40fd9fc80fb5054cde28650237fb849e14 | <ide><path>Examples/Movies/android/app/src/main/java/com/facebook/react/movies/MoviesActivity.java
<ide> protected void onResume() {
<ide> super.onResume();
<ide>
<ide> if (mReactInstanceManager != null) {
<del> mReactInstanceManager.onResume(this);
<add> mReactInstanceManager.onResume(this, this);
<... | 2 |
PHP | PHP | use constant instead of integer | 7e90881c454d4ae48f67f01f911e58850569c20d | <ide><path>src/Http/Client/Adapter/Curl.php
<ide> public function send(Request $request, array $options)
<ide> curl_close($ch);
<ide>
<ide> $status = 500;
<del> if ($errorCode === 28) {
<add> if ($errorCode === CURLE_OPERATION_TIMEOUTED) {
<ide> $status = 5... | 1 |
PHP | PHP | apply changes done in to paginator | abeab1fa9128306997e9bfe21156c6aa253f4e6d | <ide><path>src/Datasource/Paginator.php
<ide> public function paginate($object, array $params = [], array $settings = [])
<ide> $query->applyOptions($options);
<ide> }
<ide>
<add> $cleanQuery = clone $query;
<ide> $results = $query->all();
<ide> $numResults = count($results);... | 2 |
Ruby | Ruby | use helper method here | e8041042006eb7cb3253f1bdb38d6e2fe9a785d7 | <ide><path>actionpack/test/template/template_test.rb
<ide> def test_no_magic_comment_word_with_utf_8
<ide> # is set to something other than UTF-8, we don't
<ide> # get any errors and get back a UTF-8 String.
<ide> def test_default_external_works
<del> Encoding.default_external = "ISO-8859-1"
<del> ... | 1 |
Ruby | Ruby | remove the nil check from set_inverse_instance | c76549d6de3716782d227c370a2169450274ed97 | <ide><path>activerecord/lib/active_record/associations/association.rb
<ide> def reset_scope
<ide>
<ide> # Set the inverse association, if possible
<ide> def set_inverse_instance(record)
<del> if record && invertible_for?(record)
<add> if invertible_for?(record)
<ide> inverse = recor... | 4 |
Ruby | Ruby | fix version detection with unknown clang | 7f2cebd4dfd444adc8e19ffbdc16485d8725042e | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def detect_version
<ide> end
<ide>
<ide> def detect_version_from_clang_version
<add> return "dunno" if DevelopmentTools.clang_version.null?
<ide> # This logic provides a fake Xcode version based on the
<ide> # installed CLT version. T... | 1 |
Python | Python | fix broken test and invalid variable declarations | 3eaa60bc232b05b01ce34c9a541374dbceb34942 | <ide><path>libcloud/test/test_connection.py
<ide> from libcloud.common.base import LoggingConnection
<ide> from libcloud.httplib_ssl import LibcloudBaseConnection
<ide> from libcloud.httplib_ssl import LibcloudHTTPConnection
<add>from libcloud.utils.py3 import PY26
<ide>
<ide>
<ide> class BaseConnectionClassTestCase(... | 2 |
Python | Python | fix typo in docstring demonstrating usage | 8d3e218ea62d90bbb376502d6e2598819163dd01 | <ide><path>src/transformers/modeling_encoder_decoder.py
<ide> def from_pretrained(
<ide> Examples::
<ide>
<ide> # For example purposes. Not runnable.
<del> model = PreTrainedEncoderDecoder.from_pretained('bert-base-uncased', 'bert-base-uncased') # initialize Bert2Bert
<add> mo... | 1 |
Python | Python | remove a log message | cd600f6f486f1812778f53668da86c203c12646b | <ide><path>glances/plugins/glances_diskio.py
<ide> def update(self):
<ide> continue
<ide>
<ide> # Shall we display the stats ?
<del> logger.info("diskio: %s => %s", disk, self.is_display(disk))
<ide> if not self.is_display(disk):
<ide> ... | 1 |
PHP | PHP | remove unneeded phpcs ignores | 74640f4fa806d12a173ead347bc748c06114b4e2 | <ide><path>src/Database/Type/DateTimeType.php
<ide> protected function _setClassName(string $class, string $fallback): void
<ide> $class = $fallback;
<ide> }
<ide> $this->_className = $class;
<del> // @codingStandardsIgnoreLine
<ide> $this->_datetimeInstance = new $this->_clas... | 3 |
PHP | PHP | remove return type | 544891bba4bb97a68f752fcde675bdb2c21c4cfc | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php
<ide> public function getDictionary()
<ide> *
<ide> * @return \Illuminate\Database\Eloquent\Relations\MorphTo
<ide> */
<del> public function withMorph(string $modelClass, array $with): self
<add> public function withMorph(string $mod... | 1 |
PHP | PHP | use new method | 9be879a841cb65a3e192d2cf73b48bee69890ec7 | <ide><path>src/Core/App.php
<ide> public static function path(string $type, ?string $plugin = null): array
<ide> }
<ide> if (!empty($plugin)) {
<ide> if ($type === 'Template') {
<del> return [Plugin::path($plugin) . 'templates' . DIRECTORY_SEPARATOR];
<add> retu... | 2 |
Python | Python | fix failing test on mssql | 7bff44fba83933de1b420fbb4fc3655f28769bd0 | <ide><path>tests/jobs/test_local_task_job.py
<ide> def test_mark_success_no_kill(self):
<ide> ti = TaskInstance(task=task, execution_date=DEFAULT_DATE)
<ide> ti.refresh_from_db()
<ide> job1 = LocalTaskJob(task_instance=ti, ignore_ti_state=True)
<add> settings.engine.dispose()
<ide> ... | 1 |
Text | Text | add a note about verbose output for rn packager | ee0b19a528e50c6e3ff42626b91bea1cd9546129 | <ide><path>packager/README.md
<ide> Given an entry point module. Recursively collect all the dependent
<ide> modules and return it as an array. `options` is the same options that
<ide> is passed to `ReactPackager.middleware`
<ide>
<add>## Debugging
<add>
<add>To get verbose output when running the packager, define an ... | 1 |
PHP | PHP | remove unnecessary alias | ca3c8c3e564f6e99162eab8a9bac054ffc416267 | <ide><path>app/Http/Controllers/HomeController.php
<ide> <?php namespace App\Http\Controllers;
<ide>
<add>use Illuminate\Routing\Controller;
<add>
<ide> class HomeController extends Controller {
<ide>
<ide> /*
<ide><path>config/app.php
<ide> 'Blade' => 'Illuminate\Support\Facades\Blade',
<ide> 'Cache' ... | 2 |
Javascript | Javascript | remove debugging cruft | aba456d48fb58d1ece980a542abb5e38476930ac | <ide><path>packages/sproutcore-touch/tests/gesture_recognizers/pan_test.js
<ide> test("If the touches move, the translation should reflect the change", function(
<ide> }]
<ide> };
<ide>
<del> window.foo=true;
<ide> view.$().trigger(touchEvent);
<del> window.foo=false;
<ide>
<ide> equals(get(get(get(view, ... | 1 |
Go | Go | fix default tmpfs size to prevent breakage | 982c5f199fe548ecafd53ab72e7984a6ce07ba8f | <ide><path>daemon/oci_linux.go
<ide> func setMounts(daemon *Daemon, s *specs.Spec, c *container.Container, mounts []c
<ide> }
<ide>
<ide> if m.Source == "tmpfs" {
<del> options := []string{"noexec", "nosuid", "nodev", volume.DefaultPropagationMode, "size=65536k"}
<add> options := []string{"noexec", "nosuid", "... | 2 |
Python | Python | add test for ticket #339 | 1c36f49e3964e894f03a7b97b75096f4634ae3b3 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_dtype_posttuple(self, level=rlevel):
<ide> """Ticket #335"""
<ide> N.dtype([('col1', '()i4')])
<ide>
<add> def check_mgrid_single_element(self, level=rlevel):
<add> """Ticket #339"""
<add> assert_array_equal(N.mgrid... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.