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 typo in activestorage readme [ci skip] | b08d428ba07df42f5bc945d30fe8a5a6f3f76398 | <ide><path>activestorage/README.md
<ide> url_for(user.avatar)
<ide>
<ide> class AvatarsController < ApplicationController
<ide> def update
<del> # params[:avatar] contains a ActionDispatch::Http::UploadedFile object
<add> # params[:avatar] contains an ActionDispatch::Http::UploadedFile object
<ide> Current... | 1 |
Ruby | Ruby | handle mkpath of node_modules directory in keg | 36f5452ae362a7ce8b83a9530031f7b9f4dcb8be | <ide><path>Library/Homebrew/keg.rb
<ide> def link mode=OpenStruct.new
<ide> when /^gdk-pixbuf/ then :mkpath
<ide> when 'ghc' then :mkpath
<ide> when 'lua' then :mkpath
<del> when 'node' then :mkpath
<add> when /^node/ then :mkpath
<ide> when /^ocaml/ then :mkpath
<ide> when /^per... | 1 |
PHP | PHP | move plugin assets from shell to command | 385a8398f0724a63eb00ca7dbac9ddfcd7e1b575 | <ide><path>src/Command/PluginAssetsCopyCommand.php
<add><?php
<add>declare(strict_types=1);
<add>
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For ... | 4 |
Text | Text | fix wrong indent in stream documentation | 9651f4400066d60869584e46428317934dc1e882 | <ide><path>doc/api/stream.md
<ide> async function showBoth() {
<ide> showBoth();
<ide> ```
<ide>
<del>### `readable.map(fn[, options])`
<add>##### `readable.map(fn[, options])`
<ide>
<ide> <!-- YAML
<ide> added:
<ide> for await (const result of dnsResults) {
<ide> }
<ide> ```
<ide>
<del>### `readable.filter(fn[, opt... | 1 |
Text | Text | correct the use of "to" | b0ca248d88240c58ff04554bf5df07a6dd8d9e8f | <ide><path>docs/tutorial/5-relationships-and-hyperlinked-apis.md
<ide> We can change the default list style to use pagination, by modifying our `tutori
<ide>
<ide> Note that settings in REST framework are all namespaced into a single dictionary setting, named `REST_FRAMEWORK`, which helps keep them well separated from... | 1 |
PHP | PHP | add a note to the appserviceprovider | 5194a437d5f11e9770839cf79c4dfa25ff6a31ac | <ide><path>app/Providers/AppServiceProvider.php
<ide> public function boot()
<ide> */
<ide> public function register()
<ide> {
<add> // This service provider is a great spot to register your various container
<add> // bindings with the application. As you can see, we are registering our
<add> // "Registrar" impl... | 1 |
Javascript | Javascript | add the beginning of a working cff font encoder | da69361ae057158ab6d233c2ee0a2437011374a4 | <ide><path>PDFFont.js
<ide> var Type1Parser = function(aAsciiStream, aBinaryStream) {
<ide> "21": "rmoveto",
<ide> "22": "hmoveto",
<ide> "30": "vhcurveto",
<del> "31": "hcurveto"
<add> "31": "hvcurveto"
<ide> };
<ide>
<ide> function decodeCharString(aStream) {
<ide> Type1Font.prototype = {
<ide>... | 2 |
Ruby | Ruby | add cask and download attributes | 88208af8e488fe202fd5cb6b96a9f508ca635d5e | <ide><path>Library/Homebrew/requirement.rb
<ide> class Requirement
<ide> include Dependable
<ide>
<del> attr_reader :tags, :name
<add> attr_reader :tags, :name, :cask, :download
<ide> alias_method :option_name, :name
<ide>
<ide> def initialize(tags=[])
<add> @cask ||= self.class.cask
<add> @download ||=... | 1 |
Go | Go | remove promise package | 0cd4ab3f9a3f242468484fc62b46e632fdba5e13 | <ide><path>container/stream/attach.go
<ide> import (
<ide> "golang.org/x/net/context"
<ide>
<ide> "github.com/docker/docker/pkg/pools"
<del> "github.com/docker/docker/pkg/promise"
<ide> "github.com/docker/docker/pkg/term"
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide> func (c *Config) AttachStreams(cfg *AttachCo... | 5 |
Javascript | Javascript | improve code and test | c51f0e1ce1aaca286eee10d356ed4ef2d73a5edc | <ide><path>lib/Watching.js
<ide> class Watching {
<ide> this.handler = handler;
<ide> /** @type {Callback<void>[]} */
<ide> this.callbacks = [];
<del> /** @type {Callback<void>[]} */
<del> this._closeCallbacks = [];
<add> /** @type {Callback<void>[] | undefined} */
<add> this._closeCallbacks = undefined;
<ide... | 2 |
Java | Java | fix regression in client codecs | d1db249584c16e17ca94185e18e8da916d56190a | <ide><path>spring-web/src/main/java/org/springframework/http/codec/AbstractCodecConfigurer.java
<ide> protected void addDefaultObjectWriters(List<HttpMessageWriter<?>> result) {
<ide> /**
<ide> * A registry and a factory for built-in HTTP message readers and writers.
<ide> */
<del> public static class DefaultCodec... | 6 |
Javascript | Javascript | remove node.* deprecation messages | 8f79169aef6cd447ff193616e49335473eeb15ba | <ide><path>src/node.js
<ide> process.error = removed("process.error() has moved. Use require('sys') to bring
<ide> process.watchFile = removed("process.watchFile() has moved to fs.watchFile()");
<ide> process.unwatchFile = removed("process.unwatchFile() has moved to fs.unwatchFile()");
<ide> process.mixin = removed('pr... | 1 |
Python | Python | remove unused variable 'v' | 73bcd657ebbbcd59937e4c737ce04c02662d9046 | <ide><path>glances/exports/glances_influxdb.py
<ide> def export(self, name, columns, points):
<ide> if self.version == INFLUXDB_09:
<ide> # Convert all int to float (mandatory for InfluxDB>0.9.2)
<ide> # Correct issue#750 and issue#749
<del> for i, v in enumerate(points):
<add... | 1 |
Ruby | Ruby | skip bottles for ci-syntax-only prs | e14ce96f224b2d330280e913908ea63c19d988b0 | <ide><path>Library/Homebrew/dev-cmd/pr-pull.rb
<ide> def cherry_pick_pr!(user, repo, pr, args:, path: ".")
<ide> Utils::Git.cherry_pick!(path, "--ff", "--allow-empty", *commits, verbose: args.verbose?, resolve: args.resolve?)
<ide> end
<ide>
<del> def formulae_need_bottles?(tap, original_commit, args:)
<add> d... | 2 |
PHP | PHP | move observers below relations in command output | a299816674a5ef99092f6c2d9ed9973a77e4faa4 | <ide><path>src/Illuminate/Foundation/Console/ShowModelCommand.php
<ide> protected function displayCli($class, $database, $table, $attributes, $relations
<ide>
<ide> $this->newLine();
<ide>
<del> $this->components->twoColumnDetail('<fg=green;options=bold>Eloquent Observers</>');
<del>
<del> if ($... | 1 |
Javascript | Javascript | fix lint error | 03c3730b7873f5c8e303917082af790081e93c64 | <ide><path>benchmarks/benchmark-runner.js
<ide> module.exports = async ({test, benchmarkPaths}) => {
<ide> if (data.points.length > 1) {
<ide> const canvas = document.createElement('canvas')
<ide> benchmarkContainer.appendChild(canvas)
<del> const chart = new Chart(canvas, {
<add> //... | 1 |
PHP | PHP | update response to use cookiecollection internally | bf81b15169231e8033bca108641109bbc8bf06ee | <ide><path>src/Http/Response.php
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Filesystem\File;
<add>use Cake\Http\Cookie\Cookie;
<add>use Cake\Http\Cookie\CookieCollection;
<ide> use Cake\Log\Log;
<ide> use Cake\Network\CorsBuilder;
<ide> use Cake\Network\Exception\NotFoundException;
<ide> class Response implem... | 2 |
Mixed | Python | raise an error for textcat with <2 labels | 29906884c5de57c73f5512452a7eb871061fb96c | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> E202 = ("Unsupported alignment mode '{mode}'. Supported modes: {modes}.")
<ide>
<ide> # New errors added in v3.x
<add> E867 = ("The 'textcat' component requires at least two labels because it "
<add> "uses mutually exclusive classes where exact... | 4 |
Python | Python | use integer division to avoid casting to int | d0e9d98b2aa126bb2654c4c5966a4034c4bb99fc | <ide><path>numpy/ma/core.py
<ide> def __str__(self):
<ide> # object dtype, extract the corners before the conversion.
<ide> for axis in range(self.ndim):
<ide> if data.shape[axis] > self._print_width:
<del> ind = np.int(self._pri... | 1 |
Javascript | Javascript | add ordinalparse support in core | 0a794fa679bc1f83b5904db280007e72bbadd011 | <ide><path>moment.js
<ide> parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
<ide> parseTokenT = /T/i, // T (ISO separator)
<ide> parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
<del> parseTokenOrdinal = /\d{1,2}/,
<ide>
<ide> ... | 1 |
Python | Python | add german norm exceptions | 0d6fa8b241d1d29a99a0e12015a7fadaec217cf5 | <ide><path>spacy/lang/de/__init__.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
<add>from .norm_exceptions import NORM_EXCEPTIONS
<ide> from .tag_map import TAG_MAP
<ide> from .stop_words import STOP_WORDS
<ide> from .lemmatizer import LOOKUP
<ide> ... | 2 |
Javascript | Javascript | ingest a player div for videojs | 74530d8b3afe71a28ffc36a2623bd938a9d419ad | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> * The DOM element that gets created.
<ide> */
<ide> createEl() {
<del> const el = this.el_ = super.createEl('div');
<ide> const tag = this.tag;
<add> let el;
<add> const playerElIngest = this.playerElIngest_ = tag.pare... | 4 |
Mixed | Go | add daemon option --default-shm-size | db575ef626e8b2660750cbede6b19e951a3b4341 | <ide><path>cli/command/service/opts.go
<ide> import (
<ide> "github.com/docker/docker/opts"
<ide> runconfigopts "github.com/docker/docker/runconfig/opts"
<ide> "github.com/docker/go-connections/nat"
<del> units "github.com/docker/go-units"
<ide> "github.com/spf13/cobra"
<ide> )
<ide>
<ide> type int64Value interfac... | 12 |
PHP | PHP | apply fixes from styleci | 76faca7a1118ebdf475e94f11e2bc23f57225e8c | <ide><path>src/Illuminate/Database/Concerns/BuildsQueries.php
<ide> protected function paginateUsingCursor($perPage, $columns = ['*'], $cursorName =
<ide> $cursor->parameter($previousColumn)
<ide> );
<ide>
<del> $unionBuilders->each(function ($unionBuilder... | 2 |
Python | Python | improve documentation for tasks run command | 03fc51f0f982321b4d3da7341f2035953cbb9be0 | <ide><path>airflow/cli/commands/task_command.py
<ide> def _capture_task_logs(ti):
<ide>
<ide> @cli_utils.action_logging
<ide> def task_run(args, dag=None):
<del> """Runs a single task instance"""
<add> """Run a single task instance.
<add>
<add> Note that there must be at least one DagRun for this to start,
<a... | 1 |
Javascript | Javascript | add test for stats false | f6c8039c5a993f54a7864f4c918e0d70db104290 | <ide><path>test/Defaults.unittest.js
<ide> describe("Defaults", () => {
<ide> + "uniqueName": "@@@Hello World!",
<ide> `)
<ide> );
<add>
<ide> test("stats true", { stats: true }, e =>
<ide> e.toMatchInlineSnapshot(`
<ide> - Expected
<ide> describe("Defaults", () => {
<ide> + "stats": Object {
<ide> ... | 1 |
Python | Python | add option to choose t5 model size. | ff80b731573d07a6633af9dac1e51f684dd6bc07 | <ide><path>examples/summarization/t5/evaluate_cnn.py
<ide> def chunks(lst, n):
<ide> yield lst[i : i + n]
<ide>
<ide>
<del>def generate_summaries(lns, output_file_path, batch_size, device):
<add>def generate_summaries(lns, output_file_path, model_size, batch_size, device):
<ide> output_file = Path(output_... | 2 |
Ruby | Ruby | fix incorrect word | ea6a2b7c111cd3794b2ee41bc60a4071631d01aa | <ide><path>activesupport/lib/active_support/log_subscriber/test_helper.rb
<ide> class LogSubscriber
<ide> # up the queue, subscriptions and turning colors in logs off.
<ide> #
<ide> # The messages are available in the @logger instance, which is a logger with limited
<del> # powers (it actually do not sen... | 1 |
Python | Python | pass concurrency argument to workers | f25052cb9900393eb1cf7aacd2acbc03629636b5 | <ide><path>airflow/bin/cli.py
<ide> def worker(args):
<ide> 'optimization': 'fair',
<ide> 'O': 'fair',
<ide> 'queues': args.queues,
<add> 'concurrency': args.concurrency,
<ide> }
<ide> worker.run(**options)
<ide> sp.kill()
<ide> def get_parser():
<ide> "-q", "--queues"... | 1 |
Ruby | Ruby | use dir[] for globbing | 8976a960df0a4768be3a6df77874a151535e14f7 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> raise "Missing Jenkins variables!" unless jenkins and job and id
<ide>
<ide> ARGV << '--verbose'
<del> copied = system "cp #{jenkins}/jobs/\"#{job}\"/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.* ."
<del> exit unless copie... | 1 |
PHP | PHP | use stringtemplate constructor in test cases | ff9de4e6572d945816f97b41b00623ef7adddbc3 | <ide><path>tests/TestCase/View/Input/CheckboxTest.php
<ide> public function setUp() {
<ide> $templates = [
<ide> 'checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>',
<ide> ];
<del> $this->templates = new StringTemplate();
<del> $this->templates->add($templates);
<add> $this->tem... | 5 |
Ruby | Ruby | use regular ruby rather than clever ruby | a704fd4ea9b8ac86f57d357bd8e2a555b69edca9 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def normalize_path(path)
<ide> # controllers with default routes like :controller/:action/:id(.:format), e.g:
<ide> # GET /admin/products/show/1
<ide> # => { :controller => 'admin/products', :action => 'show', :i... | 1 |
PHP | PHP | fix failing test with controller task listall | cbf5328b33a58fc79ca987ff5be329a5ac35c7ba | <ide><path>lib/Cake/Test/Case/Console/Command/Task/ControllerTaskTest.php
<ide> public function testListAll() {
<ide>
<ide> $this->Task->connection = 'test';
<ide> $this->Task->interactive = true;
<del> $this->Task->expects($this->at(1))->method('out')->with('1. BakeArticles');
<del> $this->Task->expects($this->... | 1 |
Text | Text | add exception_handler docs to exception docs | bae0ef6b5dcb0abf2be865340e5476aeab5ce137 | <ide><path>docs/api-guide/exceptions.md
<ide> Might receive an error response indicating that the `DELETE` method is not allow
<ide> HTTP/1.1 405 Method Not Allowed
<ide> Content-Type: application/json; charset=utf-8
<ide> Content-Length: 42
<del>
<add>
<ide> {"detail": "Method 'DELETE' not allowed.... | 1 |
Text | Text | fix indentation [ci skip] | 566a056115d207fe2c83e7131bc196558331958d | <ide><path>guides/source/3_2_release_notes.md
<ide> Action Pack
<ide> ```ruby
<ide> @items.each do |item|
<ide> content_tag_for(:li, item) do
<del> Title: <%= item.title %>
<add> Title: <%= item.title %>
<ide> end
<ide> end
<ide> ```
<ide><path>guides/source/active_job_basics.... | 5 |
Text | Text | use svgs instead of pngs | 5a8306352c52c080a2c88c0cd853fae4fb4491fb | <ide><path>docs/build-instructions/build-status.md
<ide> | Incompatible Packages | [](https://travis-ci.org/atom/incompatible-packages) | [ {
<ide> <>
<ide> {/* Google Tag Manager - Global base code */}
<ide> <Script
<add> id="gtag-base"
<ide> strategy="afterInteractive"
<ide> dangerouslySetInnerHTML={{
<ide> ... | 1 |
Javascript | Javascript | remove protection from interview prep | c6eb40ceeffcbfa1ff92d09a1d78e08cfc92603d | <ide><path>client/src/templates/Challenges/rechallenge/transformers.js
<ide> Babel.registerPlugin(
<ide> protect(testProtectTimeout, testLoopProtectCB, loopsPerTimeoutCheck)
<ide> );
<ide>
<add>const babelOptionsJSBase = {
<add> presets: [presetEnv]
<add>};
<add>
<ide> const babelOptionsJSX = {
<ide> plugins: ['l... | 5 |
Text | Text | remove the detail=none from apiexception signature | ed9c3258a6f9df6fabb569a65f3eb3363affa523 | <ide><path>docs/api-guide/exceptions.md
<ide> Note that the exception handler will only be called for responses generated by r
<ide>
<ide> ## APIException
<ide>
<del>**Signature:** `APIException(detail=None)`
<add>**Signature:** `APIException()`
<ide>
<ide> The **base class** for all exceptions raised inside REST fr... | 1 |
Javascript | Javascript | add support for additional node.js builtin modules | 56f42f13a0e7fcd178540952ed4fd8ba88610a6c | <ide><path>lib/node/NodeTargetPlugin.js
<ide> const builtins = [
<ide> "crypto",
<ide> "dgram",
<ide> "dns",
<add> "dns/promises",
<ide> "domain",
<ide> "events",
<ide> "fs",
<ide> const builtins = [
<ide> "readline",
<ide> "repl",
<ide> "stream",
<add> "stream/promises",
<ide> "string_decoder",
<ide> "sys",... | 1 |
Javascript | Javascript | add support for sortkeys on d3.nest | 0585616df1ae6019b7f21fe163f386aba305a122 | <ide><path>d3.js
<del>(function(){d3 = {version: "1.3.0"}; // semver
<add>(function(){d3 = {version: "1.4.0"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide> d3.nest = function() {
<ide> sortValues,
<ide> rollup;
<ide>
<del> function recurse(j, array) {
<... | 4 |
Python | Python | fix typo in merge layer docstring | 6ffa6f39e6222c5417f70eea84ebd92e2d6113f5 | <ide><path>keras/engine/topology.py
<ide> class Merge(Layer):
<ide>
<ide> ```python
<ide> model1 = Sequential()
<del> model1.add(Dense(32))
<add> model1.add(Dense(32, input_dim=32))
<ide>
<ide> model2 = Sequential()
<ide> model2.add(Dense(32)) | 1 |
Python | Python | update train_tagger script | 01b42c531f7ab0ca81768b6e9833062f9e31ba95 | <ide><path>examples/training/train_tagger.py
<add>"""A quick example for training a part-of-speech tagger, without worrying
<add>about the tokenization, or other language-specific customizations."""
<add>
<add>from __future__ import unicode_literals
<add>from __future__ import print_function
<add>
<add>import plac
<add... | 1 |
Mixed | Ruby | return just the address if name is blank | 524c4cad07e6744da94e4e598a3bf690f20f6f81 | <ide><path>actionmailer/CHANGELOG.md
<add>* `email_address_with_name` returns just the address if name is blank.
<add>
<add> *Thomas Hutterer*
<add>
<add>
<ide> ## Rails 7.0.0.alpha2 (September 15, 2021) ##
<ide>
<ide> * No changes.
<ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def deliver_mail(mail) ... | 5 |
Java | Java | remove workaround for reactor netty #171 | 7746878b5044790a09d926522318d1c1cced397c | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/HttpHeadResponseDecorator.java
<ide> */
<ide> public class HttpHeadResponseDecorator extends ServerHttpResponseDecorator {
<ide>
<add>
<ide> public HttpHeadResponseDecorator(ServerHttpResponse delegate) {
<ide> super(delegate);
<ide> }
<... | 2 |
Javascript | Javascript | define abort on prototype | 1c99cdebbc014dddde89159c24ed37cfcf1aafe1 | <ide><path>lib/internal/abort_controller.js
<ide> ObjectDefineProperties(AbortSignal.prototype, {
<ide> aborted: { enumerable: true }
<ide> });
<ide>
<add>defineEventHandler(AbortSignal.prototype, 'abort');
<add>
<ide> function abortSignal(signal) {
<ide> if (signal[kAborted]) return;
<ide> signal[kAborted] = tr... | 3 |
Ruby | Ruby | add some assertions for bigdecimal#to_s | 330e011c6c7a56a09e7f26db8750a19ca7865261 | <ide><path>activesupport/test/core_ext/bigdecimal_test.rb
<ide> class BigDecimalTest < ActiveSupport::TestCase
<ide> def test_to_s
<ide> bd = BigDecimal.new '0.01'
<ide> assert_equal '0.01', bd.to_s
<add> assert_equal '+0.01', bd.to_s('+F')
<add> assert_equal '+0.0 1', bd.to_s('+1F')
<ide> end
<ide> e... | 1 |
PHP | PHP | add json alias for decoderesponsejson method | c2245992497b78c24ee912e5f6e09625258db5c4 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function decodeResponseJson()
<ide> return $decodedResponse;
<ide> }
<ide>
<add> /**
<add> * Alias for the "decodeResponseJson" method.
<add> *
<add> * @return array
<add> */
<add> public function json()
<add> ... | 1 |
Python | Python | add default value if hddtemp return non int | 42efd95483b326f918d1c09744bbd5113f77e3a6 | <ide><path>glances/glances.py
<ide> def __update__(self):
<ide> hddtemp_current['value'] = 0
<ide> else:
<ide> hddtemp_current['label'] = fields[offset + 1].split("/")[-1]
<del> hddtemp_current['value'] = ... | 1 |
Ruby | Ruby | reset column info after making topic tz-aware | 08e78ad4ae1507a9ed70f3784370febd84a49592 | <ide><path>activerecord/test/cases/attribute_methods_test.rb
<ide> def topic.title() "b" end
<ide> record.written_on = "Jan 01 00:00:00 2014"
<ide> assert_equal record, YAML.load(YAML.dump(record))
<ide> end
<add> ensure
<add> # NOTE: Reset column info because global topics
<add> # don't have tz-... | 1 |
Java | Java | improve javadoc of serverhttprequest#getpath | 0ff50d6d9e8857063d36d590cf67bb9ccf69d5ec | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java
<ide> /*
<del> * Copyright 2002-2020 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> * ... | 1 |
Javascript | Javascript | fix strict regression | 8578fe22a973848b4303f915371b98153ed50d44 | <ide><path>lib/assert.js
<ide> assert.ifError = function ifError(err) { if (err) throw err; };
<ide>
<ide> // Expose a strict only variant of assert
<ide> function strict(value, message) {
<del> if (!value) innerFail(value, true, message, '==', strict);
<add> if (!value) {
<add> innerFail({
<add> actual: val... | 2 |
Ruby | Ruby | join any extra args to the tmp path | 7b6efb9cda9571d4d764c55a6ce100b04f172a8e | <ide><path>railties/test/isolation/abstract_unit.rb
<ide> def app_template_path
<ide>
<ide> def tmp_path(*args)
<ide> @tmp_path ||= File.realpath(Dir.mktmpdir)
<add> File.join(@tmp_path, *args)
<ide> end
<ide>
<ide> def app_path(*args) | 1 |
Text | Text | fix logo path | 534a991cff405a469754f6afc4fd8aa4be79e444 | <ide><path>README.md
<ide> Platform-as-a-Service. It benefits directly from the experience
<ide> accumulated over several years of large-scale operation and support of
<ide> hundreds of thousands of applications and databases.
<ide>
<del>
<add>![Docker L... | 1 |
PHP | PHP | fix code standards | 5bb8c3a942cd35c89e335d4c12317d06375b1bfb | <ide><path>lib/Cake/Test/Case/View/ViewTest.php
<ide> public function testRenderUsingViewProperty() {
<ide> *
<ide> * @return void
<ide> */
<del> public function testGetViewFileNameSubdirWithPluginAndViewPath()
<del> {
<add> public function testGetViewFileNameSubdirWithPluginAndViewPath() {
<ide> $this->PostsContr... | 1 |
Ruby | Ruby | implement hash equality on column | e13ac306a09611c2d7f7e3ca813e8409d7dfc834 | <ide><path>activerecord/lib/active_record/connection_adapters/column.rb
<ide> def ==(other)
<ide> other.sql_type == sql_type &&
<ide> other.null == null
<ide> end
<add> alias :eql? :==
<add>
<add> def hash
<add> [self.class, name, default, cast_type, sql_type, null].hash
<add>... | 1 |
Ruby | Ruby | remove block definitions in finder methods | 2c203a94136d5b8681e2b2b55783ef6dde54405f | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> module FinderMethods
<ide> # person.visits += 1
<ide> # person.save!
<ide> # end
<del> def find(*args, &block)
<del> return to_a.find(&block) if block_given?
<add> def find(*args)
<add> return to_a.find { |*... | 1 |
Python | Python | handle mingw module compilation in py2.7 venvs | a2b416f60e6f3f2746bf3edaf8e6161204f528a5 | <ide><path>numpy/distutils/mingw32ccompiler.py
<ide> def find_python_dll():
<ide> # We can't do much here:
<ide> # - find it in the virtualenv (sys.prefix)
<ide> # - find it in python main dir (sys.base_prefix, if in a virtualenv)
<add> # - sys.real_prefix is main dir for virtualenvs in Python 2.7
<ide> ... | 1 |
Ruby | Ruby | add missing @tap check | d8a2a90daccfb23705ef9eada2f49b800ec2c9ee | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def homebrew
<ide> # test no-op update from current commit (to current commit, a no-op).
<ide> test "brew", "update-test", "--commit=HEAD"
<ide> end
<del> else
<add> elsif @tap
<ide> test "brew", "readall", "--aliases", ... | 1 |
Javascript | Javascript | expose pointereventsexample to android | 098a1163b1905b2cb3e0a36e4d75508d9a969c5e | <ide><path>Examples/UIExplorer/UIExplorerList.js
<ide> var COMMON_APIS = [
<ide> require('./GeolocationExample'),
<ide> require('./LayoutExample'),
<ide> require('./PanResponderExample'),
<add> require('./PointerEventsExample'),
<ide> ];
<ide>
<ide> if (Platform.OS === 'ios') {
<ide> if (Platform.OS === 'ios') ... | 1 |
Javascript | Javascript | fix missing dot | 2209226c7c69b7cb1ded9f84d2bfdcd6034a01f6 | <ide><path>lib/helpers/buildUrl.js
<ide> function encode(val) {
<ide> replace(/%3A/gi, ':').
<ide> replace(/%24/g, '$').
<ide> replace(/%2C/gi, ',').
<del> replace(/%20/g, '+')
<add> replace(/%20/g, '+').
<ide> replace(/%5B/gi, '[').
<ide> replace(/%5D/gi, ']');
<ide> } | 1 |
PHP | PHP | add guard method | e422cedb76bfb689ea3873b37fdb8e4af9d81f79 | <ide><path>src/Illuminate/Session/Middleware/AuthenticateSession.php
<ide> public function __construct(AuthFactory $auth)
<ide> */
<ide> public function handle($request, Closure $next)
<ide> {
<add> $guard = $this->guard();
<add>
<ide> if (! $request->hasSession() || ! $request->user()) {
<i... | 1 |
Text | Text | add russian translation | 98a55637cac6f97421d5335ca8c679c668f6662b | <ide><path>curriculum/challenges/russian/03-front-end-libraries/jquery/target-the-parent-of-an-element-using-jquery.russian.md
<ide> id: bad87fee1348bd9aed308826
<ide> title: Target the Parent of an Element Using jQuery
<ide> challengeType: 6
<ide> videoUrl: ''
<del>localeTitle: Задайте родительский элемент элемента с ... | 1 |
PHP | PHP | fix doc strings | 829b572d8d2d9f61826314022bf9f98cba1a438d | <ide><path>src/Cache/Engine/ApcuEngine.php
<ide> public function set($key, $value, $ttl = null)
<ide> *
<ide> * @param string $key Identifier for the data
<ide> * @param mixed $default Default value in case the cache misses.
<del> * @return mixed The cached data, or false if the data doesn't exist,
<... | 3 |
Ruby | Ruby | fix documentation based on feedback | 1cec4e1bbaba786aa4ea70a0e2b6ad6f15ec1e68 | <ide><path>activerecord/lib/active_record/persistence.rb
<ide> def instantiate(attributes, column_types = {}, &block)
<ide> instantiate_instance_of(klass, attributes, column_types, &block)
<ide> end
<ide>
<del> # Given a class, an attributes hash, +instantiate+ returns a new instance
<del> # of... | 2 |
PHP | PHP | add fullpath option | fd77f752a2dd73e277f3b3187a9a9facf85913b6 | <ide><path>src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php
<ide> class MigrateMakeCommand extends BaseCommand
<ide> {--create= : The table to be created}
<ide> {--table= : The table to migrate}
<ide> {--path= : The location where the migration file should be created}
<del> ... | 1 |
Python | Python | add exotic inputs to identity test | f184db8c53f547a3d48460e4992b12a5a87a2683 | <ide><path>tests/auto/keras/test_constraints.py
<ide> def test_maxnorm(self):
<ide> x_normed_actual = norm_instance(x).eval()
<ide> assert_allclose(x_normed_actual, x_normed_target)
<ide>
<del>
<ide> def test_nonneg(self):
<ide> from keras.constraints import nonneg
<ide>
<ide> def test_ide... | 1 |
Ruby | Ruby | reset column info when messing with columns | cf115d2f8ef48764e095aa453f729b60705088f1 | <ide><path>activerecord/test/cases/session_store/session_test.rb
<ide> def test_create_table!
<ide> end
<ide>
<ide> def test_find_by_sess_id_compat
<add> Session.reset_column_information
<ide> klass = Class.new(Session) do
<ide> def self.session_id_column
<ide> 'sessid'... | 1 |
Javascript | Javascript | remove some `getdomnode` from docs and examples | 5561d0e9256d6337f24789f14a50ec2beb747f79 | <ide><path>docs/_js/examples/markdown.js
<ide> var MarkdownEditor = React.createClass({
<ide> return {value: 'Type some *markdown* here!'};
<ide> },
<ide> handleChange: function() {
<del> this.setState({value: this.refs.textarea.getDOMNode().value});
<add> this.setState({value: React.findDOMNode(this.refs... | 3 |
Python | Python | convert other inputs to array | 7916d567f2057b2d1e4d8d10f031c9b260c4df7f | <ide><path>numpy/lib/shape_base.py
<ide> def kron(a, b):
<ide> bs = (1,)*max(0, nda-ndb) + bs
<ide>
<ide> # Compute the product
<del> result = a.reshape(a.size, 1) * b.reshape(1, b.size)
<add> a_arr = _nx.asarray(a).reshape(a.size, 1)
<add> b_arr = _nx.asarray(b).reshape(1, b.size)
<add> result = a... | 1 |
PHP | PHP | add fresh method to model | 34f63cbdd84f686aba9283ec0c95be986fb06678 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function findOrFail($id, $columns = array('*'))
<ide> throw (new ModelNotFoundException)->setModel(get_called_class());
<ide> }
<ide>
<add> /**
<add> * Reload a fresh model instance from the database.
<add> *
<add> * @param array $with
<... | 1 |
Text | Text | add changelog entry | 43eabac605fedae72bd885c1d3861a6d1bfad3e0 | <ide><path>activerecord/CHANGELOG.md
<add>* Add `reselect` method. This is short-hand for `unscope(:select).select(fields)`.
<add>
<add> *Willian Gustavo Veiga*
<add>
<ide> * Added `index` option for `change_table` migration helpers.
<ide> With this change you can create indexes while adding new
<ide> co... | 1 |
Javascript | Javascript | remove check for global.process | 59711abf54961ab795b1d4adb67af1f5d6e9d3fc | <ide><path>lib/internal/util.js
<ide> const codesWarned = {};
<ide> // Returns a modified function which warns once by default.
<ide> // If --no-deprecation is set, then it is a no-op.
<ide> function deprecate(fn, msg, code) {
<del> // Allow for deprecating things in the process of starting up.
<del> if (global.proce... | 1 |
Python | Python | define contants and test for error states | 6d01dda509b0df827252f3106f8bfb7e933c3ad7 | <ide><path>libcloud/storage/drivers/digitalocean_spaces.py
<ide> # limitations under the License.
<ide>
<ide> from libcloud.common.types import LibcloudError
<del>from libcloud.common.aws import SignedAWSConnection, DEFAULT_SIGNATURE_VERSION
<add>from libcloud.common.aws import SignedAWSConnection
<ide> from libcloud.... | 2 |
Javascript | Javascript | add support for disabling max length limit | 5c1fdff691b9367d73f72f6a0298cb6a6e259f35 | <ide><path>src/ng/directive/input.js
<ide> var maxlengthDirective = function() {
<ide> ctrl.$validate();
<ide> });
<ide> ctrl.$validators.maxlength = function(modelValue, viewValue) {
<del> return ctrl.$isEmpty(modelValue) || viewValue.length <= maxlength;
<add> return (maxlength < 0) ... | 2 |
Javascript | Javascript | fix typo in require | 208f4ea18fbd0a23f157d826a5d2255bcd314d19 | <ide><path>server/server.js
<ide> var R = require('ramda'),
<ide> secrets = require('./../config/secrets');
<ide>
<ide> var generateKey =
<del> require('loopback-component-passport/models/utils').generateKey;
<add> require('loopback-component-passport/lib/models/utils').generateKey;
<ide> /**
<ide> * Create Exp... | 1 |
Ruby | Ruby | check has_option? for universal and 32-bit | 26b1b88c974cc902b0e9c2c2b8d17a16335d8462 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def stable?
<ide>
<ide> # True if the user requested a universal build.
<ide> def universal?
<del> @args.include? '--universal'
<add> @args.include?('--universal') && has_option?('universal')
<ide> end
<ide>
<ide> # Request a 32-bit only build.
<ide> ... | 1 |
PHP | PHP | apply fixes from styleci | 0b8b18bfc1d8ecb1b2d7027629c1ea38f6508af6 | <ide><path>tests/Integration/Foundation/DiscoverEventsTest.php
<ide> use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Events\EventOne;
<ide> use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Events\EventTwo;
<ide> use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\L... | 1 |
Javascript | Javascript | make .write() throw on bad input | f0c1376e07e6d5a4deb3d088bd3153d7f6af1298 | <ide><path>lib/net.js
<ide> Socket.prototype.write = function(data, arg1, arg2) {
<ide> }
<ide>
<ide> // Change strings to buffers. SLOW
<del> if (typeof data == 'string') {
<add> if (typeof data === 'string') {
<ide> data = new Buffer(data, encoding);
<add> } else if (!Buffer.isBuffer(data)) {
<add> thr... | 2 |
Ruby | Ruby | revert extra deletion | cf892c432ef12bffd01518a4fa507ae277056c63 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install_formula(f)
<ide> fi = FormulaInstaller.new(f)
<ide> fi.options = build_options.used_options
<ide> fi.invalid_option_names = build_options.invalid_option_names
<add> fi.ignore_deps = ARGV.ignore_deps?
<ide> fi.only_deps... | 1 |
Javascript | Javascript | remove unneeded changes on webglprogram | 377747780d3a5d481d52d6178e9ea7abe3cc908c | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> function WebGLProgram( renderer, extensions, code, material, shader, parameters,
<ide> var vertexGlsl = prefixVertex + vertexShader;
<ide> var fragmentGlsl = prefixFragment + fragmentShader;
<ide>
<del> var glVertexShader = WebGLShader( gl, gl.VERTEX_SHADER, verte... | 1 |
Ruby | Ruby | fix the rules | 64c092708747eb6d989430ba947b9378b5aab59e | <ide><path>Library/Homebrew/sandbox.rb
<ide> class SandboxProfile
<ide> (debug deny) ; log all denied operations to /var/log/system.log
<ide> <%= rules.join("\n") %>
<ide> (allow file-write*
<add> (literal "/dev/ptmx")
<ide> (literal "/dev/dtracehelper")
<ide> (literal "/d... | 1 |
Text | Text | remove dead link to a user's twitter | 048e2a4e6e2358648eda9d42f3ba00dfdbc1881d | <ide><path>guide/english/react/state-vs-props/index.md
<ide> It gives output as "I am a good person", in fact I am.
<ide>
<ide> There is lot more to learn on State and Props. Many things can be learnt by actually diving into coding. So get your hands dirty by coding.
<ide>
<del>Reach me out on [twitter](https://twitt... | 1 |
Javascript | Javascript | reduce util.is*() usage | 6ac8bdc0aba5f60f4b4f2da5abd36d664062aa40 | <ide><path>lib/_debugger.js
<ide> exports.Client = Client;
<ide>
<ide>
<ide> Client.prototype._addHandle = function(desc) {
<del> if (!util.isObject(desc) || !util.isNumber(desc.handle)) {
<add> if (desc === null || typeof desc !== 'object' ||
<add> typeof desc.handle !== 'number') {
<ide> return;
<ide> ... | 37 |
Ruby | Ruby | fix error on reap/flush for closed connection pool | 3a8eeacf63b9f04da418eaa4bb9acc6fcce7986b | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def remove(conn)
<ide> # or a thread dies unexpectedly.
<ide> def reap
<ide> stale_connections = synchronize do
<add> return unless @connections
<ide> @connections.select do |conn|
<ide... | 2 |
PHP | PHP | add strict_types to configure engines | 8ceee4d7aa931d14ada48c7b715fde9a8bba8b1c | <ide><path>src/Core/Configure/Engine/IniConfig.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> protected function _parseNestedValues($values)
<ide> ... | 6 |
Ruby | Ruby | eliminate consideration of major_version | b6e9600b9fbcb1f86bc43d78fb461a1247e9aacd | <ide><path>Library/Homebrew/compilers.rb
<ide> module CompilerConstants
<ide> GNU_GCC_REGEXP = /^gcc-(4\.[3-9])$/
<ide> end
<ide>
<del>class Compiler < Struct.new(:name, :version, :priority)
<del> # The major version for non-Apple compilers. Used to indicate a compiler
<del> # series; for instance, if the version ... | 1 |
Go | Go | use spf13/cobra for docker wait | 82f84a67d6d40d4a076927c618db475191f97da0 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<ide> "top": cli.CmdTop,
<ide> "update": cli.CmdUpdate,
<ide> "version": cli.CmdVersion,
<del> "wait": cli.CmdWait,
<ide> }[name]
<ide> }
<ide><path>api/client/container/wait.go
<add>package contai... | 5 |
PHP | PHP | add retry support | 9495b284bb2177f6d84993442bb822ab2bb358de | <ide><path>src/Illuminate/Http/Client/PendingRequest.php
<ide> class PendingRequest
<ide> */
<ide> protected $options = [];
<ide>
<add> /**
<add> * The number of times to try the request.
<add> *
<add> * @var int
<add> */
<add> protected $tries = 1;
<add>
<add> /**
<add> * The num... | 1 |
PHP | PHP | fix docblock. | 3edb21860311d0c01bccf03ace2fec951d51c4d0 | <ide><path>src/Illuminate/Validation/ValidationRuleParser.php
<ide> public function __construct(array $data)
<ide> * Parse the human-friendly rules into a full rules array for the validator.
<ide> *
<ide> * @param array $rules
<del> * @return StdClass
<add> * @return \StdClass
<ide> */
<id... | 1 |
PHP | PHP | create observermakecommand file | 7a78dab48ad00161206d992d6defc43d7159779a | <ide><path>src/Illuminate/Foundation/Console/ObserverMakeCommand.php
<add><?php
<add>
<add>namespace Illuminate\Foundation\Console;
<add>
<add>use Illuminate\Console\GeneratorCommand;
<add>
<add>class ObserverMakeCommand extends GeneratorCommand
<add>{
<add> /**
<add> * The console command name.
<add> *
<add... | 1 |
Java | Java | fix failing test | 6a9455b7d0e9d8af2f3a3fd9ad832d5b25cb8f5e | <ide><path>spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java
<ide> public void match(ClientHttpRequest request) throws IOException, AssertionError
<ide> public RequestMatcher formData(final MultiValueMap<String, String> expectedContent) {
<ide> return new RequestMatcher(... | 1 |
Ruby | Ruby | remove unnecessary object/conversions file | ae9b3d7cecd77b9ace38671b183e1a360bf632b6 | <ide><path>activesupport/lib/active_support/core_ext/object.rb
<ide> require 'active_support/core_ext/object/acts_like'
<ide> require 'active_support/core_ext/object/blank'
<del>require 'active_support/core_ext/object/duplicable'
<ide> require 'active_support/core_ext/object/deep_dup'
<del>require 'active_support/core_... | 4 |
Text | Text | update old codepen links to ones for v3 | eb1e82c9813fbfccd86f4e4b424e768332654bd9 | <ide><path>.github/ISSUE_TEMPLATE/DOCS.md
<ide> Documentation Is:
<ide> ### Example
<ide> <!--
<ide> Provide a link to a live example demonstrating the issue or feature to be documented:
<del> https://codepen.io/pen?template=JXVYzq
<add> https://codepen.io/pen?template=wvezeOq
<ide> -->
<ide><path>.github/PULL_REQU... | 3 |
Javascript | Javascript | add test for dns.promises.resolve | 3898abc55cfebe3073296eb599209fbc63aa7abf | <ide><path>test/parallel/test-dns-promises-resolve.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>
<add>const dnsPromises = require('dns').promises;
<add>
<add>common.crashOnUnhandledRejection();
<add>
<add>// Error when rrtype is invalid.
<add>{
<add> const... | 1 |
Java | Java | skip modulefinder#ofsystem usage on native | 23a58e6bab2b5aecd77e30c2b2d0ee41b643876f | <ide><path>spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java
<ide> import org.apache.commons.logging.Log;
<ide> import org.apache.commons.logging.LogFactory;
<ide>
<add>import org.springframework.core.NativeDetector;
<ide> import org.springframework.core.io.DefaultR... | 1 |
Python | Python | handle error when no links are found | 06df61e38c6ed99732007b0e9f3cc26e8317389e | <ide><path>rest_framework/schemas.py
<ide> def get_links(self, request=None):
<ide> view_endpoints.append((path, method, view))
<ide>
<ide> # Only generate the path prefix for paths that will be included
<add> if not paths:
<add> return None
<ide> prefix = self.determine_p... | 1 |
Text | Text | remove unmentioned fields in line 39 query | d69472db128c7fcc7aa6821ed112e7bb71a73823 | <ide><path>client/src/pages/guide/english/sql/sql-count-function/index.md
<ide> Here we get a count of students in each field of study.
<ide>
<ide> Here we get a count of students with the same SAT scores.
<ide> ```sql
<del> select studentID, FullName, count(*) AS studentCount from the student table with a group by sa... | 1 |
Text | Text | create model card for codebertapy | e41212c7151d09db704682a762257aa6e024b64a | <ide><path>model_cards/mrm8488/CodeBERTaPy/README.md
<add>---
<add>language: code
<add>thumbnail:
<add>---
<add>
<add># CodeBERTaPy
<add>
<add>CodeBERTaPy is a RoBERTa-like model trained on the [CodeSearchNet](https://github.blog/2019-09-26-introducing-the-codesearchnet-challenge/) dataset from GitHub for `python` by [... | 1 |
Text | Text | add api challenges - chinese translation | 6b1992ee7c6f5e747244c7c7b59365496b9743ef | <ide><path>curriculum/challenges/chinese/05-apis-and-microservices/apis-and-microservices-projects/exercise-tracker.chinese.md
<add>---
<add>id: 5a8b073d06fa14fcfde687aa
<add>title: Exercise Tracker
<add>localeTitle: 运动追踪器
<add>challengeType: 4
<add>isRequired: true
<add>---
<add>
<add>## Description
<add><section id='... | 39 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.