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 | add table prefix | 4ffe40fb169c6bcce9193ff56958eca41e64294f | <ide><path>src/Illuminate/Database/Console/DumpCommand.php
<ide> public function handle(ConnectionResolverInterface $connections, Dispatcher $dis
<ide> protected function schemaState(Connection $connection)
<ide> {
<ide> return $connection->getSchemaState()
<del> ->withMigrationTable(Conf... | 1 |
Python | Python | fix numpy ticket 53 | dbb89ee8932e1f2b9f4a8940d90d6fd96c8c3f8e | <ide><path>numpy/distutils/misc_util.py
<ide> def add_data_dir(self,data_path):
<ide> return self.add_data_dir((data_path, data_path))
<ide> paths = self.paths(data_path, include_non_existing=False)
<ide> if is_glob_pattern(data_path):
<add> pp = self.path_in_package.split(os.sep)... | 1 |
PHP | PHP | use support\carbon. | 60860f3fdb277154606a1f3584104ed97d24d16a | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> <?php
<ide>
<del>use Carbon\Carbon;
<add>use Illuminate\Support\Carbon;
<ide> use Illuminate\Support\HtmlString;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Bus\Dispatcher;
<ide> function mix($path, $manifestDirectory = '')
<ide> /... | 1 |
Javascript | Javascript | detect detach/attach in same observation | bccb1276f023448e2539a49c879c7a97bd83f763 | <ide><path>src/platform/platform.dom.js
<ide> function fromNativeEvent(event, chart) {
<ide> };
<ide> }
<ide>
<add>function nodeListContains(nodeList, canvas) {
<add> for (const node of nodeList) {
<add> if (node === canvas || node.contains(canvas)) {
<add> return true;
<add> }
<add> }
<add>}
<add>
<ide... | 2 |
Ruby | Ruby | remove remaining (unused) ruby files | c09fa056a31552a34ae29a76e341e422d7c15837 | <ide><path>scripts/list_file_sizes.rb
<del>files = Dir["packages/ember-*/lib/**/*.js"] - Dir["packages/ember-runtime/**/*.js"]
<del>files = Dir["packages/ember-{metal,views,handlebars}/lib/**/*.js"]
<del>
<del>def uglify(string)
<del> IO.popen("uglifyjs", "r+") do |io|
<del> io.puts string
<del> io.close_write
<... | 1 |
Ruby | Ruby | produce better curl error messages. (#441) | 23306ab434afc185e22a0f357a27e8da687620af | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def homebrew
<ide> @category = __method__
<ide> return if @skip_homebrew
<ide>
<del> ruby_two = RUBY_VERSION.split(".").first.to_i >= 2
<del>
<ide> if @tap.nil?
<ide> tests_args = []
<del> if ruby_two
<add> if RUBY_TWO
<... | 4 |
Python | Python | remove unused import | ef03e9ea53238d9d9242fb54de8c145809d0cb0b | <ide><path>spacy/lang/da/tokenizer_exceptions.py
<ide>
<ide> from __future__ import unicode_literals
<ide>
<del>from ...symbols import ORTH, LEMMA, NORM, TAG, ADP, PUNCT
<add>from ...symbols import ORTH, LEMMA, NORM, TAG, PUNCT
<ide>
<ide>
<ide> _exc = {} | 1 |
Python | Python | change download_video parameter to resourcename | a6e60ce25d9f3d621a7b4089834ca5e50cd123db | <ide><path>airflow/providers/google/marketing_platform/hooks/display_video.py
<ide> def download_media(self, resource_name: str):
<ide> :param resource_name: of the media that is being downloaded.
<ide> :type resource_name: str
<ide> """
<del> request = self.get_conn_to_display_video().me... | 4 |
Java | Java | replace use of the <tt> html tag in javadoc | 0f479293b17765f7077a61a6b7b130754b6176de | <ide><path>spring-context/src/main/java/org/springframework/cache/Cache.java
<ide> * Interface that defines common cache operations.
<ide> *
<ide> * <b>Note:</b> Due to the generic use of caching, it is recommended that
<del> * implementations allow storage of <tt>null</tt> values (for example to
<add> * implementat... | 12 |
Text | Text | hide solution from tests in arabic challenge | 863c9ad1d08b341bc99c874a375ddd4769226500 | <ide><path>curriculum/challenges/arabic/01-responsive-web-design/css-grid/use-grid-area-without-creating-an-areas-template.arabic.md
<ide> undefined
<ide>
<ide> ```yml
<ide> tests:
<del> - text: ''
<del> testString: 'assert(code.match(/.item5\s*?{[\s\S]*grid-area\s*?:\s*?3\s*?\/\s*?1\s*?\/\s*?4\s*?\/\s*?4\s*?;[\s\... | 1 |
Ruby | Ruby | remove env variable that is no longer used | 6278ffdba0a15ca8d1f2c0dc1865f83743deb17b | <ide><path>Library/Homebrew/cmd/sh.rb
<ide> def sh
<ide> end
<ide> ENV['PS1'] = 'brew \[\033[1;32m\]\w\[\033[0m\]$ '
<ide> ENV['VERBOSE'] = '1'
<del> ENV['HOMEBREW_LOG'] = '1'
<ide> puts <<-EOS.undent_________________________________________________________72
<ide> Your shell has been config... | 1 |
Javascript | Javascript | show task_id in the graph view tooltip | f7229e53605fe7a21100c82cd4d456657d9d3187 | <ide><path>airflow/www/static/js/graph.js
<ide> function update_nodes_states(task_instances) {
<ide> const task = tasks[task_id];
<ide> let tt = "";
<ide> if(ti.task_id != undefined) {
<del> tt += "Task_id: " + escapeHtml(task.task_id) + "<br>";
<add> tt += "Task_id: " + esca... | 1 |
Text | Text | add changelog entry for | 450743cf56125d153b64c3509e75b0e4f86851d1 | <ide><path>actionview/CHANGELOG.md
<add>* Update `select_tag` to work correctly with `:include_blank` option passing a string.
<add>
<add> Fixes #16483.
<add>
<add> *Frank Groeneveld*
<add>
<ide> * Changed the meaning of `render "foo/bar"`.
<ide>
<ide> Previously, calling `render "foo/bar"` in a controll... | 1 |
Javascript | Javascript | remove dup logic case | c0068f2ea45fdd88b77c191ab40d9319ddbf3068 | <ide><path>lib/performance/EmittedAssetSizeLimitPlugin.js
<ide> EmittedAssetSizeLimitPlugin.prototype.apply = function(compiler) {
<ide> sizeLimit
<ide> )
<ide> );
<add> if(!hasAsyncChunks) {
<add> warnings.push(new NoAsyncChunksWarning());
<add> }
<add> }
<ide>
<add> if(entrypointsOverLimit.lengt... | 1 |
Text | Text | add mixins property to context example | f6d429300366a29d76d0eae08cb8cd833024adfd | <ide><path>docs/_posts/2016-07-13-mixins-considered-harmful.md
<ide> var RouterMixin = {
<ide> };
<ide>
<ide> var Link = React.createClass({
<add> mixins: [RouterMixin],
<add>
<ide> handleClick: function(e) {
<ide> e.stopPropagation();
<ide> | 1 |
Python | Python | make get_last_lr in trainer backward compatible | 9de4afa8974b5afbaf61c41c4186eef6546932d4 | <ide><path>src/transformers/trainer.py
<ide>
<ide> import numpy as np
<ide> import torch
<add>from packaging import version
<ide> from torch import nn
<ide> from torch.utils.data.dataloader import DataLoader
<ide> from torch.utils.data.dataset import Dataset
<ide> def train(self, model_path: Optional[str] = None):
<id... | 1 |
Mixed | Javascript | establish y in cursorto as optional | f25bbf12556eb5478ea876db825c230d1b1c650c | <ide><path>doc/api/readline.md
<ide> function completer(linePartial, callback) {
<ide> }
<ide> ```
<ide>
<del>## readline.cursorTo(stream, x, y[, callback])
<add>## readline.cursorTo(stream, x[, y][, callback])
<ide> <!-- YAML
<ide> added: v0.7.7
<ide> changes:
<ide><path>doc/api/tty.md
<ide> added: v0.7.7
<ide> A `nu... | 4 |
Python | Python | fix indexerror for illegal axis in np.mean | 36dd1b36474d9a6e46c86f708b9a62efa0a7309a | <ide><path>numpy/core/_methods.py
<ide> def _count_reduce_items(arr, axis):
<ide> axis = (axis,)
<ide> items = 1
<ide> for ax in axis:
<del> items *= arr.shape[ax]
<add> items *= arr.shape[mu.normalize_axis_index(ax, arr.ndim)]
<ide> return items
<ide>
<ide> # Numpy 1.17.0, 2019-02-24... | 2 |
Javascript | Javascript | add credits, and a "decode" function | 4a615ddd9c29b57dd5b526b46dcbcf4585acd95f | <ide><path>lib/uri.js
<ide> * A URI parser, compliant with assorted RFCs, providing parsing and resolution utilities.
<ide> **/
<ide>
<add>/*
<add>Blatantly stolen with permission from Narwhal, which did the same from Chiron,
<add>and bits taken from parseUri 1.2.1 (c) 2007 Steven Levithan <stevenlevithan.com> MIT L... | 1 |
Text | Text | add types for some `process` properties | d59e2492f5142d554a8716ec03f68a0df041ead1 | <ide><path>doc/api/process.md
<ide> $ bash -c 'exec -a customArgv0 ./node'
<ide> added: v7.1.0
<ide> -->
<ide>
<add>* {Object}
<add>
<ide> If the Node.js process was spawned with an IPC channel (see the
<ide> [Child Process][] documentation), the `process.channel`
<ide> property is a reference to the IPC channel. If n... | 1 |
PHP | PHP | fix cs error | 2d32a1e9c82b5426db379e11a34ab30b9992255b | <ide><path>tests/TestCase/Utility/XmlTest.php
<ide> public function testBuild()
<ide> public function testBuildHuge()
<ide> {
<ide> $xml = '<tag>value</tag>';
<del> $obj = Xml::build($xml, array('parseHuge' => true));
<add> $obj = Xml::build($xml, ['parseHuge' => true]);
<ide> $thi... | 1 |
PHP | PHP | apply fixes from styleci | 463144cf3ae51baa7d85d98099a4eabea0260e99 | <ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php
<ide> public function transaction(Closure $callback, $attempts = 1)
<ide> // back the transaction, resulting in an error if we attempt to manually roll back.
<ide> try {
<ide> $this->commit();
<del> }
... | 3 |
Go | Go | add imageinsert tests | bf8e0277bbd1c2df2310bc20ecc4003d1ed7a657 | <ide><path>server_test.go
<ide> package docker
<ide> import (
<ide> "github.com/dotcloud/docker/utils"
<ide> "strings"
<add> "io/ioutil"
<ide> "testing"
<ide> "time"
<ide> )
<ide> func TestImagesFilter(t *testing.T) {
<ide> t.Fatal("incorrect number of matches returned")
<ide> }
<ide> }
<add>
<add>func TestImage... | 1 |
Go | Go | remove secretrequestoption type | e7c39f4d5d761f68e6ac432934d8c3910e452855 | <ide><path>api/types/client.go
<ide> import (
<ide> "bufio"
<ide> "io"
<ide> "net"
<del> "os"
<ide>
<ide> "github.com/docker/docker/api/types/container"
<ide> "github.com/docker/docker/api/types/filters"
<ide> type PluginInstallOptions struct {
<ide> Args []string
<ide> }
<ide>
<del>// SecretRe... | 5 |
Ruby | Ruby | fix todo time.xmlschema used instead of time.parse | 4fe6d01a3b3bd9fc8b3c443f4e8f8b486203bb08 | <ide><path>activesupport/lib/active_support/xml_mini.rb
<ide> def content_type
<ide> "yaml" => Proc.new { |yaml| yaml.to_yaml }
<ide> } unless defined?(FORMATTING)
<ide>
<del> # TODO: use Time.xmlschema instead of Time.parse;
<del> # use regexp instead of Date.parse
<add> # TODO use regexp... | 1 |
Text | Text | clarify guide on testing internal errors | fc485a9cbe552902e2c1880210f83170d9d951aa | <ide><path>doc/contributing/writing-tests.md
<ide> assert.throws(
<ide> );
<ide> ```
<ide>
<add>In the case of internal errors, prefer checking only the `code` property:
<add>
<add>```js
<add>assert.throws(
<add> () => {
<add> throw new ERR_FS_FILE_TOO_LARGE(`${sizeKiB} Kb`);
<add> },
<add> { code: 'ERR_FS_FILE_... | 1 |
Javascript | Javascript | move hmr to external transformer | 181896e4d95982aaf22d4c67fe0ef3158d2ecf37 | <ide><path>packager/react-packager/src/JSTransformer/__tests__/worker-test.js
<ide> describe('Resolver', function() {
<ide> });
<ide>
<ide> describe('when no external transform is provided', () => {
<del> it('should invoke internal transform if available', () => {
<add> xit('should invoke internal transform ... | 3 |
Text | Text | update cloning details | a39c0dc49f632353cf19f688532ca58a5686c1cf | <ide><path>docs/Taps.md
<ide> dunn/emacs
<ide>
<ide> <!-- vale Homebrew.Terms = OFF -->
<ide> <!-- The `terms` lint suggests changing "repo" to "repository". But we need the abbreviation in the tap syntax and URL example. -->
<del>* `brew tap <user/repo>` makes a shallow clone of the repository at
<add>* `brew tap <us... | 1 |
Ruby | Ruby | remove incorrect todo | 633501ab089f3c18fea0406f5324a9ebbec55be2 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_download_strategy
<ide> url_strategy = DownloadStrategyDetector.detect(url)
<ide>
<ide> if using == :git || url_strategy == GitDownloadStrategy
<del> # TODO: check could be in RuboCop
<ide> problem "Git should specify :revision whe... | 1 |
Python | Python | remove old debug code leftover. | eac4aecc3df00f9fd3b0444a5d12d5fd0d6a04d8 | <ide><path>src/transformers/pipelines/automatic_speech_recognition.py
<ide> def postprocess(self, model_outputs):
<ide> logits = outputs["logits"].numpy()
<ide> stride = outputs.get("stride", None)
<ide> if stride is not None:
<del> try:
<del> ... | 1 |
Go | Go | update secret create url for consistency | 86d768284303665bf137ac4766a623167a605c76 | <ide><path>api/server/router/swarm/cluster.go
<ide> func (sr *swarmRouter) initRoutes() {
<ide> router.NewGetRoute("/tasks", sr.getTasks),
<ide> router.NewGetRoute("/tasks/{id}", sr.getTask),
<ide> router.NewGetRoute("/secrets", sr.getSecrets),
<del> router.NewPostRoute("/secrets", sr.createSecret),
<add> route... | 4 |
Python | Python | fix examples in docstring | 72622926e59056b72cec8e95d4e45ee0927f20aa | <ide><path>pytorch_transformers/modeling_transfo_xl.py
<ide> class TransfoXLModel(TransfoXLPreTrainedModel):
<ide>
<ide> Examples::
<ide>
<del> >>> tokenizer = TransfoXLTokenizer.from_pretrained('transfo-xl-wt103')
<del> >>> model = TransfoXLModel.from_pretrained('transfo-xl-wt103')
<del> >>>... | 1 |
Ruby | Ruby | add collectionproxy#find documentation | 952737af35be26ac4760efa3b06a0313ceae2c68 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> module Associations
<ide> class CollectionProxy < Relation
<ide> delegate :target, :load_target, :loaded?, :to => :@association
<ide>
<add> ##
<add> # :method: find
<add> # Finds an object in the collection respon... | 1 |
Go | Go | fix termcaps on the linux client | 50bee2f8114ce562d63b08665f7371aa5a568b2c | <ide><path>container.go
<ide> func (container *Container) Start() error {
<ide>
<ide> var err error
<ide> if container.Config.Tty {
<add> container.cmd.Env = append(container.Config.Env,
<add> "TERM="+os.Getenv("TERM"),
<add> )
<ide> err = container.startPty()
<ide> } else {
<ide> err = container.start()
<i... | 2 |
Javascript | Javascript | add article meta | 903e28ee6afcaa1b4fc1dc1ec0d9ac2f9c920b22 | <ide><path>news/routes/Featured/Featured.js
<ide> class Featured extends Component {
<ide> <div>
<ide> <Helmet>
<ide> <style>{styles}</style>
<add> <title>Featured | freeCodeCamp News</title>
<ide> </Helmet>
<ide> <ul className='featured-list'>{this.renderFeatured(featur... | 2 |
Text | Text | add a note about using an open schema model | c8f3151aa6a0b68674aa68061b723424278a54c5 | <ide><path>docs/sources/reference/api/docker_remote_api.md
<ide> page_keywords: API, Docker, rcli, REST, documentation
<ide> "serveraddress" : "string", "auth": ""}`. Notice that `auth` is to be left
<ide> empty, `serveraddress` is a domain/ip without protocol, and that double
<ide> quotes (instead of single o... | 1 |
Go | Go | fix compatibility with go1.16 | 303ea8e8206381fe34ef7716c7504e5d52b5df4e | <ide><path>pkg/plugins/discovery.go
<ide> package plugins // import "github.com/docker/docker/pkg/plugins"
<ide> import (
<ide> "encoding/json"
<ide> "fmt"
<del> "io/fs"
<ide> "net/url"
<ide> "os"
<ide> "path/filepath"
<ide> func Scan() ([]string, error) {
<ide> continue
<ide> }
<ide>
<del> entry = fs.Fi... | 3 |
Text | Text | add section about how the articles are built | 245b5e2642b94c37ab7b1d64b4181ab9a455ab65 | <ide><path>docs/language-lead-handbook.md
<ide> The "Editor" level allows the user to access all Drafts and publish them. Select
<ide>
<ide> The "Administrator" level is reserved for freeCodeCamp staff and Language Leads.
<ide>
<add>### How are the articles built
<add>
<add>We use a [JAMStack](https://www.google.com/... | 1 |
Python | Python | fix collation of best models | 2c703d99c264b8782441aef4bd1408acb1f6b6c9 | <ide><path>spacy/cli/train.py
<ide> def train(lang, output_dir, train_data, dev_data, n_iter=30, n_sents=0,
<ide> components.append('parser')
<ide> if not no_tagger:
<ide> components.append('tagger')
<del> if not no_entity:
<add> if not no_entities:
<ide> compon... | 1 |
PHP | PHP | fix another failing test on postgres | 7145bd65746dd1a6f20b703f11278380e00bcd4b | <ide><path>lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
<ide> public function _findTotalsOperation($state, $query, $results = array()) {
<ide> $query['fields'] = array('author_id', 'Author.user');
<ide> $this->virtualFields['total_posts'] = "COUNT({$this->alias}.id)";
<ide> $query['fields... | 1 |
Python | Python | add resnet56 short tests. | 2519f29bde45c395e5290063b5183b30323fc6d5 | <ide><path>official/resnet/keras/keras_benchmark.py
<add># Copyright 2018 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<add... | 2 |
Go | Go | update memory limit for container | 9b755412ab03816f0b7d6013618c65ae68781bcb | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) ContainerCreate(job *engine.Job) engine.Status {
<ide> return job.Errorf("Usage: %s", job.Name)
<ide> }
<ide> config := runconfig.ContainerConfigFromJob(job)
<del> if config.Memory != 0 && config.Memory < 524288 {
<del> return job.Errorf("Minimum memory limit... | 2 |
Python | Python | replace tabs with spaces | 25526d1a26f4b7ac245ecedd16c82cfd7d67f741 | <ide><path>numpy/core/memmap.py
<ide> def sync(self):
<ide> self._mmap.flush()
<ide>
<ide> def close(self):
<del> self._mmap.close()
<add> self._mmap.close()
<ide>
<ide> def __del__(self):
<ide> if self._mmap is not None:
<ide><path>numpy/lib/tests/test_function_base.py
<ide> def check_... | 2 |
PHP | PHP | remove unneeded import | 334f1580e21439808567f6ecb200adf3a3670fb0 | <ide><path>src/Illuminate/Foundation/Bus/DispatchesJobs.php
<ide>
<ide> namespace Illuminate\Foundation\Bus;
<ide>
<del>use ArrayAccess;
<ide> use Illuminate\Contracts\Bus\Dispatcher;
<ide>
<ide> trait DispatchesJobs | 1 |
Go | Go | add build prefix to copy tests | 184fe67bbc3759307adb6cb3e5338b5325bb88bb | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestAddEtcToRoot(t *testing.T) {
<ide> logDone("build - add etc directory to root")
<ide> }
<ide>
<del>func TestCopySingleFileToRoot(t *testing.T) {
<add>func TestBuildCopySingleFileToRoot(t *testing.T) {
<ide> testDirName := "SingleFileToRoot"
<ide> so... | 1 |
Python | Python | add example mnist_net2net.py | 8d9cb782fb73e5d08dd75f29a1158e68df0e17fc | <ide><path>examples/mnist_net2net.py
<add>'''This is an implementation of Net2Net experiment with MNIST in
<add>'Net2Net: Accelerating Learning via Knowledge Transfer'
<add>by Tianqi Chen, Ian Goodfellow, and Jonathon Shlens
<add>
<add>arXiv:1511.05641v4 [cs.LG] 23 Apr 2016
<add>http://arxiv.org/abs/1511.05641
<add>
<a... | 1 |
Python | Python | remove old example | c30258c3a2635e21f6e6f3c8ed7cb314a431794e | <ide><path>examples/training/train_ner_standalone.py
<del>#!/usr/bin/env python
<del>'''Example of training a named entity recognition system from scratch using spaCy
<del>
<del>This example is written to be self-contained and reasonably transparent.
<del>To achieve that, it duplicates some of spaCy's internal function... | 1 |
Ruby | Ruby | require info controller from info routes | 14b7452c578b8a1594daa8ae87fa26530601669c | <ide><path>railties/lib/rails/info_controller.rb
<add>require 'rails/info'
<add>
<ide> class Rails::InfoController < ActionController::Base
<ide> def properties
<ide> if consider_all_requests_local? || local_request?
<ide><path>railties/lib/rails/info_routes.rb
<add>require 'rails/info_controller'
<add>
<ide> Rai... | 2 |
Ruby | Ruby | fix connected_to_many argument and docs | 7811bc5e17528ade61b7dfcdf445bb3ecf6e11d6 | <ide><path>activerecord/lib/active_record/connection_handling.rb
<ide> def connected_to(database: nil, role: nil, shard: nil, prevent_writes: false, &b
<ide> #
<ide> # Usage:
<ide> #
<del> # ActiveRecord::Base.connected_to(AnimalsRecord, MealsRecord], role: :reading) do
<add> # ActiveRecord::Base.... | 2 |
Java | Java | remove unused import | 82d32f08758e14a39830a7e6bb0d0a6be1b9648c | <ide><path>spring-web/src/test/java/org/springframework/http/codec/multipart/MultipartHttpMessageWriterTests.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licens... | 1 |
Ruby | Ruby | use the native `class#descendants` if available | d8936b755debd45a0fc0db14655de716f249bdf8 | <ide><path>activesupport/lib/active_support/core_ext/class/subclasses.rb
<ide> def descendants
<ide> ObjectSpace.each_object(singleton_class).reject do |k|
<ide> k.singleton_class? || k == self
<ide> end
<del> end
<add> end unless method_defined?(:descendants) # RUBY_VERSION >= "3.1"
<ide>
<ide> # Re... | 1 |
Ruby | Ruby | adapt output to adjust for single-formula queries | 2822a7b0c3276fcab8335374bc305d048c10feba | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def bump
<ide> Repology.parse_api_response
<ide> end
<ide>
<add> if requested_formula && outdated_repology_packages.nil?
<add> ohai "The requested formula, #{requested_formula}, is up-to-date."
<add> puts "Current version: #{get_formula_details(r... | 2 |
PHP | PHP | move cachedispatcher tests into their own file | a33ee0c499b28a8d64f8c8900132f867439d1037 | <ide><path>tests/TestCase/Routing/DispatcherTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Routing;
<ide>
<del>use Cake\Cache\Cache;
<ide> use Cake\Controller\Controller;
<ide> use Cake\Controller\Error\MissingActionException;
<ide> use Cake\Controller\Error\MissingControllerException;
<ide> public function set... | 3 |
Text | Text | add process.debugport to doc/api/process.md | 65ca369c070cefcaf6300a234de6448f3015e8e8 | <ide><path>doc/api/process.md
<ide> process.
<ide> ```js
<ide> console.log(`Current directory: ${process.cwd()}`);
<ide> ```
<add>## process.debugPort
<add><!-- YAML
<add>added: v0.7.2
<add>-->
<add>* {number}
<ide>
<add>The port used by Node.js's debugger when enabled.
<add>
<add>```js
<add>process.debugPort = 5858;
... | 1 |
Mixed | Go | provide a new parameter dm.deferred_device_removal | 15c158b20725fd62e2ee0a72ffaf1617852cd0d9 | <ide><path>daemon/graphdriver/devmapper/README.md
<ide> Here is the list of supported options:
<ide> > Otherwise, set this flag for migrating existing Docker daemons to a
<ide> > daemon with a supported environment.
<ide>
<add> * `dm.use_deferred_removal`
<add>
<add> Enables use of deferred device removal ... | 2 |
Java | Java | add maybe.flatmapsingleelement returning maybe | a94a307ab11339b09cb2e69a00a874dea532635f | <ide><path>src/main/java/io/reactivex/Maybe.java
<ide> public final <R> Single<R> flatMapSingle(final Function<? super T, ? extends Sin
<ide> return RxJavaPlugins.onAssembly(new MaybeFlatMapSingle<T, R>(this, mapper));
<ide> }
<ide>
<add> /**
<add> * Returns a {@link Maybe} based on applying a speci... | 3 |
Python | Python | fix issue with conv3d conversion interface | 8b8ffe0ea4b9739e8b4ad397cc5e232beb24cad6 | <ide><path>keras/legacy/interfaces.py
<ide> def deconv2d_args_preprocessor(args, kwargs):
<ide>
<ide>
<ide> def conv3d_args_preprocessor(args, kwargs):
<add> converted = []
<ide> if len(args) > 5:
<ide> raise TypeError('Layer can receive at most 4 positional arguments.')
<ide> if len(args) == 5:
<i... | 1 |
Ruby | Ruby | make hermes from source the default | bb01b75637edc1159a3bdb3af86936e1c92f39c1 | <ide><path>scripts/react_native_pods.rb
<ide> def use_react_native! (options={})
<ide>
<ide> if hermes_enabled
<ide> pod 'React-hermes', :path => "#{prefix}/ReactCommon/hermes"
<del> if ENV['BUILD_HERMES_SOURCE'] == '1'
<del> Pod::UI.puts "[Hermes] Building Hermes from source"
<del> hermes_source_pa... | 1 |
Text | Text | correct factual error for page not found | 3fe7b5f4a1edcbb9239a1587d2a565bc45c41f2e | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> being used, you can update your form to use the `PUT` method instead:
<ide> <%= form_for [ :update_name, @user ], method: :put do |f| %>
<ide> ```
<ide>
<del>For more on PATCH and why this change was made, see [this post](http://weblog.rubyonrails.org/2012/2/26... | 1 |
Python | Python | add some documentation to linalg.py | 8290d01cba2320c7b1f9367f73356596d279c2da | <ide><path>numpy/linalg/linalg.py
<ide> def _assertSquareness(*arrays):
<ide> # Linear equations
<ide>
<ide> def solve(a, b):
<add> """Return the solution of a*x = b
<add> """
<ide> one_eq = len(b.shape) == 1
<ide> if one_eq:
<ide> b = b[:, newaxis]
<ide> def eig(a):
<ide>
<ide>
<ide> def eigh(... | 1 |
Javascript | Javascript | add siblings timeout components test case | c601f7a64640290af85c9f0e33c78480656b46bc | <ide><path>packages/react-reconciler/src/__tests__/ReactSuspense-test.internal.js
<ide> describe('ReactSuspense', () => {
<ide> expect(ReactNoop.getChildren()).toEqual([span('A'), span('B')]);
<ide> });
<ide>
<add> it('suspends siblings and later recovers each independently', async () => {
<add> // Render tw... | 1 |
Javascript | Javascript | handle array holes in setservers() | b176d30a691f5b04dd9fef99c1ca21e548384b36 | <ide><path>lib/dns.js
<ide> exports.setServers = function(servers) {
<ide> // cache the original servers because in the event of an error setting the
<ide> // servers cares won't have any servers available for resolution
<ide> const orig = cares.getServers();
<add> const newSet = [];
<ide>
<del> const newSet =... | 2 |
Python | Python | remove rogue comment | 193e2df8ba95efd6e3326cb0907576a0c74f1d74 | <ide><path>examples/run_classifier.py
<ide> def main():
<ide>
<ide> if args.do_eval and (args.local_rank == -1 or torch.distributed.get_rank() == 0):
<ide> eval_examples = processor.get_dev_examples(args.data_dir)
<del> # should tokenize this too.
<ide> eval_features = convert_examples_to_f... | 1 |
PHP | PHP | add singletonif method to the container | a70352e0a1b94da97510bf1370268b80074cee77 | <ide><path>src/Illuminate/Container/Container.php
<ide> public function singleton($abstract, $concrete = null)
<ide> $this->bind($abstract, $concrete, true);
<ide> }
<ide>
<add> /**
<add> * Register a shared binding if it hasn't already been registered.
<add> *
<add> * @param string $abstr... | 3 |
Python | Python | add type hints to aws provider | b9d677cdd660e0be8278a64658e73359276a9682 | <ide><path>airflow/providers/amazon/aws/hooks/elasticache_replication_group.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<add>from typing import Optional
<ide>
<ide> from time import sleep
<ide>
<ide> cl... | 40 |
Javascript | Javascript | cover triggerreport() failure case | d73d86166541dd121235f708f83d2ad9cf24b997 | <ide><path>test/report/test-report-triggerreport.js
<ide> function validate() {
<ide> const report = child.stderr.toString().split('Node.js report completed')[0];
<ide> helper.validateContent(report);
<ide> }
<add>
<add>{
<add> // Test the case where the report file cannot be opened.
<add> const reportDir = path.... | 1 |
Python | Python | reduce layers line-too-long | 8401e08334d4b1f102a6ee9479738bacfee0600c | <ide><path>keras/layers/__init__.py
<ide>
<ide> import tensorflow.compat.v2 as tf
<ide>
<del># pylint: disable=g-bad-import-order,g-direct-tensorflow-import,disable=g-import-not-at-top
<ide> from tensorflow.python import tf2
<ide>
<ide> # Generic layers.
<ide><path>keras/layers/activation/softmax.py
<ide> class Soft... | 133 |
Javascript | Javascript | add missing variable declaration | 30e919a3cfd663ec3f1d971dcdb9970ff8a4779e | <ide><path>lib/repl.js
<ide> function complete(line, callback) {
<ide> var completions;
<ide> // List of completion lists, one for each inheritance "level"
<ide> var completionGroups = [];
<del> var completeOn, i, group, c;
<add> var completeOn, group, c;
<ide>
<ide> // REPL commands (e.g. ".break").
<ide> ... | 1 |
Text | Text | edit paragraph 1 for clarity and material. | 00c7b70ab56a4c8f1177286ea6cafc0440fa464d | <ide><path>guide/english/computer-hardware/cooling/index.md
<ide> ---
<ide> title: Cooling Systems
<ide> ---
<del>Your computer contains many parts that generate heat. Excessive heat can cause your computer to behave erratically or its hardware to fail prematurely. The more you overclock the graphics or the CPU, the ho... | 1 |
PHP | PHP | add docs for hour | 9ddc70bfcdeff3b339aba4a821733cf8c24a8f4e | <ide><path>src/View/Input/DateTime.php
<ide> public function __construct($templates, $selectBox) {
<ide> * The `month` option accepts the `name` option which allows you to get month
<ide> * names instead of month numbers.
<ide> *
<del> * The `hour` option allows you to set the `format` option which accepts
<del> * 1... | 1 |
Javascript | Javascript | add example usage | 342d064345ea802c0fba82d1f389e3ae5800d7fe | <ide><path>src/objects/Mesh.js
<ide> THREE.Mesh.prototype.raycast = ( function () {
<ide> var vA = new THREE.Vector3();
<ide> var vB = new THREE.Vector3();
<ide> var vC = new THREE.Vector3();
<add>
<add> var tempA = new THREE.Vector3();
<add> var tempB = new THREE.Vector3();
<add> var tempC = new THREE.Vector3();
<... | 1 |
PHP | PHP | escape pre tag in markdown block | a8a2aad3dd9507db5c73c9f484f72fb8cac03fd9 | <ide><path>src/Core/functions.php
<ide> function namespaceSplit(string $class): array
<ide> * print_r() convenience function.
<ide> *
<ide> * In terminals this will act similar to using print_r() directly, when not run on CLI
<del> * print_r() will also wrap <pre> tags around the output of given vari... | 1 |
Javascript | Javascript | follow style conventions | fc23239b677939f6b43787044a7613589f4bcf56 | <ide><path>src/renderers/dom/client/wrappers/ReactDOMInput.js
<ide> var ReactDOMInput = {
<ide> onChange: inst._wrapperState.onChange,
<ide> });
<ide>
<del> return nativeProps
<add> return nativeProps;
<ide> },
<ide>
<ide> mountWrapper: function(inst, props) { | 1 |
Javascript | Javascript | remove unnessecary import | 416c109665f067237f6ce7dc1dfdbb0df088d104 | <ide><path>test/unit/src/math/Plane.tests.js
<ide> import {
<ide> zero3,
<ide> one3
<ide> } from './Constants.tests';
<del>import { Cache } from '../../../../build/three';
<ide>
<ide> function comparePlane( a, b, threshold ) {
<ide> | 1 |
Python | Python | improve the speed and stability of kpo tests | a032b8ab93a95fc660ffbe7aa3531cd4614c1d1c | <ide><path>kubernetes_tests/test_kubernetes_pod_operator.py
<ide> import textwrap
<ide> import unittest
<ide> from copy import copy
<add>from typing import Optional
<ide> from unittest import mock
<ide> from unittest.mock import ANY, MagicMock
<ide>
<ide> def get_kubeconfig_path():
<ide> return kubeconfig_path if ... | 1 |
Javascript | Javascript | add deprecated annotation to api docs | 44eb0488467cf4ea7cd84f8f4ba5b6dbf47edd8b | <ide><path>packages/ember/lib/index.js
<ide> Object.defineProperty(Ember, 'onerror', {
<ide> @method K
<ide> @return {Object}
<ide> @public
<add> @deprecated
<ide> */
<ide> function deprecatedEmberK() { return this; }
<ide> | 1 |
Javascript | Javascript | remove dollar symbol for private function | 3a4521a4a2af30bac7f67b5a02b4433a51e9d169 | <ide><path>lib/events.js
<ide> EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
<ide> return this;
<ide> };
<ide>
<del>function $getMaxListeners(that) {
<add>function _getMaxListeners(that) {
<ide> if (that._maxListeners === undefined)
<ide> return EventEmitter.defaultMaxListeners;
<ide> ... | 1 |
PHP | PHP | fix comments on session | 452956551b701bfe40631894cf4e6c0568c5fd2f | <ide><path>app/config/session.php
<ide> | requests. By default we will use the light-weight cookie driver but
<ide> | you may specify any of the other wonderful drivers provided here.
<ide> |
<del> | Supported: "native", "file", "database", "apc",
<add> | Supported: "native", "database", "apc",
<ide> | "... | 1 |
PHP | PHP | remove defunct method from "implementedmethods" | ca2b7b576466e20d16a4f9bad9a76de81495b8af | <ide><path>src/ORM/Behavior/TranslateBehavior.php
<ide> class TranslateBehavior extends Behavior implements PropertyMarshalInterface
<ide> 'implementedMethods' => [
<ide> 'setLocale' => 'setLocale',
<ide> 'getLocale' => 'getLocale',
<del> 'locale' => 'locale',
<ide> ... | 1 |
Go | Go | generalize consumeslow and add stop support | 417e48e4a00c891e8fe5614ac6a1ef12de951f72 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> import (
<ide> "bufio"
<ide> "bytes"
<ide> "fmt"
<del> "io"
<ide> "io/ioutil"
<ide> "net"
<ide> "os"
<ide> func TestRunSlowStdoutConsumer(t *testing.T) {
<ide> if err := c.Start(); err != nil {
<ide> t.Fatal(err)
<ide> }
<del> n, err := consumeSlow(stdou... | 2 |
Text | Text | fix grammatical errors | c09aa7a83c2632309203a130362bf5c737a12e19 | <ide><path>threejs/lessons/fr/threejs-primitives.md
<ide> Title: Primitives de Three.js
<del>Description: Tour d'horizon des primitives de Three.js
<add>Description: Un tour des primitives de Three.js
<ide> TOC: Primitives
<ide>
<ide> Cet article fait partie d'une série consacrée à Three.js. | 1 |
Text | Text | add explanation about loops | 6bbf1c0c531f9f89b5035a4cf9931ef5991ffe8d | <ide><path>guide/english/php/loops/index.md
<ide> A loop will continue running until the defined condition returns `false`.
<ide>
<ide> You can type `php for` , `php while` or `php do while` to get more info on any of these.
<ide>
<add>
<add>## PHP Loops
<add>Often when you write code, you want the same block of code... | 1 |
Mixed | Go | move tar copy-up for tmpfs mounts | ae8ec4860e68e945cf6b2c157fa4e243c35c54a5 | <ide><path>daemon/execdriver/native/create.go
<ide> func (d *Driver) setupMounts(container *configs.Config, c *execdriver.Command) e
<ide> flags = syscall.MS_NOEXEC | syscall.MS_NOSUID | syscall.MS_NODEV
<ide> err error
<ide> )
<del> fulldest := filepath.Join(c.Rootfs, m.Destination)
<ide> if m.Data !... | 4 |
Text | Text | fix return type of server.address() | 049c0464ce40cef17e8476b3e6b909bb10de469b | <ide><path>doc/api/net.md
<ide> Emitted when the server has been bound after calling [`server.listen()`][].
<ide> added: v0.1.90
<ide> -->
<ide>
<del>* Returns: {Object}
<add>* Returns: {Object|string}
<ide>
<ide> Returns the bound `address`, the address `family` name, and `port` of the server
<ide> as reported by th... | 1 |
Text | Text | fix a typo by removing extra article [ci skip] | 6fd43bd07170d54e90625081bf21c36d3666b8c6 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> changes to the master branch.
<ide>
<ide> When working with documentation, please take into account the [API Documentation Guidelines](api_documentation_guidelines.html) and the [Ruby on Rails Guides Guidelines](ruby_on_rails_guides_guidelines.html).
<ide... | 1 |
PHP | PHP | relax typehints in fixturemanager | c6cbc43229153fd3ea75e6c9ab0ea6337d253687 | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> protected function _loadFixtures($test)
<ide> * @param bool $drop whether drop the fixture if it is already created or not
<ide> * @return void
<ide> */
<del> protected function _setupTable(TestFixture $fixture, Connection $db, array $sources, ... | 1 |
PHP | PHP | update apcengine & tests for cache changes | 4f325a7fbe06b433202db5371e1283dd0ab77e28 | <ide><path>lib/Cake/Cache/Engine/ApcEngine.php
<ide> <?php
<ide> /**
<del> * APC storage engine for cache.
<del> *
<del> *
<del> * PHP 5
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide>... | 2 |
Text | Text | fix broken link to dive into python 3 website | 167d63af315df96e2463b89b963e006b20da900a | <ide><path>.github/contributors/amitness.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<... | 2 |
Python | Python | add bp neural network with 3 layers | e1befed97603c84e2daae43254610d695794f7b8 | <ide><path>Neural_Network/neuralnetwork_bp3.py
<add>#-*- coding:utf-8 -*-
<add>'''
<add>Author: Stephen Lee
<add>Date: 2017.9.21
<add>
<add>BP neural network with three layers
<add>'''
<add>
<add>import numpy as np
<add>import matplotlib.pyplot as plt
<add>
<add>class Bpnw():
<add>
<add> def __init__(self,n_layer1,n... | 1 |
Ruby | Ruby | fix actionview tests for missing helper | 4642ca964081179cdd3e3e739ed6e0271e5ff6d3 | <ide><path>actionview/test/abstract_unit.rb
<ide> # frozen_string_literal: true
<ide>
<ide> $:.unshift File.expand_path("lib", __dir__)
<del>$:.unshift File.expand_path("fixtures/helpers", __dir__)
<del>$:.unshift File.expand_path("fixtures/alternate_helpers", __dir__)
<ide>
<ide> ENV["TMPDIR"] = File.expand_path("tm... | 2 |
Ruby | Ruby | fix rubocop violation | 4cb0ce2e794f42c144629834d6f82cf5f21fcb75 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> module Generators
<ide> RAILS_DEV_PATH = File.expand_path("../../../../../..", __dir__)
<ide>
<ide> class AppGenerator < AppBase
<del>
<ide> # :stopdoc:
<ide>
<ide> WEBPACKS = %w( react vue angular elm stimulus )
<ide> def s... | 1 |
Python | Python | add cursor to the browser client | 5a950e6a931229bcbc16480617f218c71c0b77f2 | <ide><path>glances/core/glances_client_browser.py
<ide> def serve_forever(self):
<ide> logger.warning(
<ide> _("Can not grab stats form {0}: {1}").format(uri, e))
<ide> except RuntimeError:
<del> logger.debug(_("Server list dictionna... | 4 |
Javascript | Javascript | reduce number of calls to mapper when sorting | 1e5c16b78dcc25be56f0ba49fef055db32d39a19 | <ide><path>dist/immutable.js
<ide> function interposeFactory(iterable, separator) {
<ide> return interposedSequence;
<ide> }
<ide> function sortFactory(iterable, comparator, mapper) {
<del> var sortFn = mapper ? (function(a, b) {
<del> return comparator(mapper(a[1][1], a[1][0], iterable), mapper(b[1][1], b[1][0],... | 3 |
Javascript | Javascript | ignore .next from hot reload watcher | 4620cd8cd683b084480a793e54375c9be3d0b200 | <ide><path>server/hot-reloader.js
<ide> export default class HotReloader {
<ide>
<ide> const ignored = [
<ide> /(^|[/\\])\../, // .dotfiles
<del> /node_modules/
<add> /node_modules/,
<add> /\.next/
<ide> ]
<ide> const windowsSettings = isWindowsBash() ? {
<ide> lazy: false, | 1 |
Python | Python | restore libplatform headers in distribution | c476bb844c9db5539fd4104a3f4fec053d7e778c | <ide><path>tools/install.py
<ide> def headers(action):
<ide> def wanted_v8_headers(files_arg, dest):
<ide> v8_headers = [
<ide> 'deps/v8/include/cppgc/common.h',
<add> 'deps/v8/include/libplatform/libplatform.h',
<add> 'deps/v8/include/libplatform/libplatform-export.h',
<add> 'deps/v8/include... | 1 |
Mixed | Javascript | run all tests, fix indentation | e1457a14fdea8ae77148147dc8b4611142710cea | <ide><path>docs/docs/flux-todo-list.md
<ide> Dispatcher.prototype = merge(Dispatcher.prototype, {
<ide> var resolves = [];
<ide> var rejects = [];
<ide> _promises = _callbacks.map(function(_, i) {
<del> return new Promise(function(resolve, reject) {
<del> resolves[i] = resolve;
<del> ... | 3 |
PHP | PHP | remove interactive mode | 577870b19f91d1cb4f50d681824ed399deac55ca | <ide><path>src/Shell/PluginShell.php
<ide> class PluginShell extends Shell {
<ide> public $tasks = ['Assets'];
<ide>
<ide> /**
<del> * Override main() for help message hook
<add> * Symlink / copy plugin assets to app's webroot
<ide> *
<ide> * @return void
<ide> */
<del> public function main() {
<del> $this->out('... | 1 |
Text | Text | fix new ssh documentation | 3927723263def56efd3a9b6d77074825198821cf | <ide><path>UPDATING.md
<ide> assists people when migrating to a new version.
<ide>
<ide> ## Master
<ide>
<add>### SSH Hook updates, along with new SSH Operator & SFTP Operator
<add> SSH Hook now uses Paramiko library to create ssh client connection, instead of sub-process based ssh command execution previously (<1.9... | 1 |
Javascript | Javascript | see value of "haderror" in tls test | 90972d5cb6477adfa907f2a8e4326908ef93c7ef | <ide><path>test/parallel/test-tls-hello-parser-failure.js
<ide> const server = tls.createServer(options, function(c) {
<ide> }));
<ide>
<ide> client.on('close', common.mustCall(function(hadError) {
<del> assert.strictEqual(hadError, true, 'Client never errored');
<add> // Confirm that client errored
<add> ... | 1 |
Python | Python | remove default options | 5b91d3fb8911a9d826ff26285ffe1a1f06f23ed8 | <ide><path>libcloud/container/drivers/lxd.py
<ide> def _ex_create_exec_configuration(input, **config):
<ide>
<ide> if "width" in config.keys():
<ide> input["width"] = config["width"]
<del> else:
<del> input["width"] = 80
<ide>
<ide> if "height" in config.keys():
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.