content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | attempt #2 to fix format | 12f31f3d871db074038b819df3f75bbf83d2ea43 | <ide><path>test/lang/ms-my.js
<ide> exports["lang:ms-my"] = {
<ide> test.expect(22);
<ide>
<ide> var a = [
<del> ['dddd, MMMM Do YYYY, h:mm:ss a', 'Ahad, Februari 14 2010, 3:25:50 petang'],
<del> ['ddd, hA', 'Ahd, 3 petang'],
<add> ... | 1 |
Javascript | Javascript | remove unneeded escaping of / | 0f4c7b8c371caae4cd4a2cb1fa03d2079f75663d | <ide><path>lib/url.js
<ide> const protocolPattern = /^([a-z0-9.+-]+:)/i;
<ide> const portPattern = /:[0-9]*$/;
<ide>
<ide> // Special case for a simple path URL
<del>const simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;
<add>const simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/;
<ide>
<ide> const ho... | 4 |
Go | Go | add setsubenv and getsubenv | 7b7f7e443637d8303f03316ee437012b71936c12 | <ide><path>api.go
<ide> func postCommit(srv *Server, version float64, w http.ResponseWriter, r *http.Req
<ide> return err
<ide> }
<ide> var (
<del> config = &Config{}
<add> config engine.Env
<ide> env engine.Env
<ide> job = srv.Eng.Job("commit", r.Form.Get("container"))
<ide> )
<del> if err := json.New... | 4 |
Python | Python | replace doctest traceback with `...` | 393b9605259fe19e03bdaac2b0866151e1a2afc2 | <ide><path>conversions/pressure_conversions.py
<ide> def pressure_conversion(value: float, from_type: str, to_type: str) -> float:
<ide> 0.019336718261000002
<ide> >>> pressure_conversion(4, "wrongUnit", "atm")
<ide> Traceback (most recent call last):
<del> File "/usr/lib/python3.8/doctest.py", line 13... | 4 |
Ruby | Ruby | add signatures for `cmd/--cache` | 1baf98ea69c0a33dea17174ddc0ea0e321771a6b | <ide><path>Library/Homebrew/cmd/--cache.rb
<ide> def __cache_args
<ide> end
<ide> end
<ide>
<add> sig { void }
<ide> def __cache
<ide> args = __cache_args.parse
<ide>
<ide> def __cache
<ide> end
<ide> end
<ide>
<add> sig { params(formula: Formula, args: CLI::Args).void }
<ide> def print_formula... | 1 |
Javascript | Javascript | fix flakey next/link react streaming test | 55d8a14e8a0adfd2ae4e09113076ef33615564ba | <ide><path>test/integration/react-streaming-and-server-components/test/index.test.js
<ide> async function runBasicTests(context, env) {
<ide> await browser.elementByCss('#next_id').click()
<ide> await browser.elementByCss('#next_id').click()
<ide> await check(() => browser.waitForElementByCss('#query').text... | 1 |
Ruby | Ruby | extract insert test case from | d2542882b20f6205e1c40ab34ff075eefc2d589c | <ide><path>activerecord/test/cases/insert_all_test.rb
<ide> class InsertAllTest < ActiveRecord::TestCase
<ide> fixtures :books
<ide>
<ide> def test_insert
<add> skip unless supports_insert_on_duplicate_skip?
<add>
<add> id = 1_000_000
<add>
<add> assert_difference "Book.count", +1 do
<add> Book.inser... | 1 |
Text | Text | add benchmarks to issue templates | 8efc0ec91a398f051dfdbff9c64a042d4836ae2b | <ide><path>.github/ISSUE_TEMPLATE/---new-benchmark.md
<add>---
<add>name: "\U0001F5A5 New Benchmark"
<add>about: You benchmark a part of this library and would like to share your results
<add>title: "[Benchmark]"
<add>labels: ''
<add>assignees: ''
<add>
<add>---
<add>
<add># Benchmarking Transformers
<add>
<add>## Benc... | 1 |
Ruby | Ruby | add tab, runtime_dependencies methods | a7727b66b30bdb3c0280a006b763787e9077cc6f | <ide><path>Library/Homebrew/keg.rb
<ide> def remove_oldname_opt_record
<ide> @oldname_opt_record = nil
<ide> end
<ide>
<add> def tab
<add> Tab.for_keg(self)
<add> end
<add>
<add> def runtime_dependencies
<add> tab.runtime_dependencies
<add> end
<add>
<ide> def aliases
<del> Tab.for_keg(self).alias... | 1 |
Ruby | Ruby | simplify some taggedlogging methods | ffb0c5185c649f3ef132c9f308384e60a01de9b0 | <ide><path>activesupport/lib/active_support/tagged_logging.rb
<ide> def tagged(*new_tags)
<ide> tags.concat new_tags
<ide> yield
<ide> ensure
<del> new_tags.size.times { tags.pop }
<add> tags.pop(new_tags.size)
<ide> end
<ide>
<ide> def add(severity, message = nil, progname = nil, &bl... | 1 |
PHP | PHP | remove unused imports | 87f0fab78b63d17def5f79cd28220119b5995709 | <ide><path>src/Illuminate/Routing/RoutingServiceProvider.php
<ide>
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Zend\Diactoros\Response as PsrResponse;
<del>use Symfony\Component\HttpFoundation\Request;
<del>use Symfony\Component\HttpFoundation\Response;
<ide> use Symfony\Bridge\PsrHttpMessage\Factory\Diact... | 1 |
Ruby | Ruby | add audit for env.x11 | 26f887d4ab02c9e1e061cb3537238fc5d6e81508 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_text
<ide> problem "xcodebuild should be passed an explicit \"SYMROOT\""
<ide> end
<ide>
<add> if text =~ /ENV\.x11/
<add> problem "Use \"depends_on :x11\" instead of \"ENV.x11\""
<add> end
<add>
<ide> # Avoid hard-coding compilers
<ide>... | 1 |
Go | Go | move the attach prevention from server to client | c106ed32ea7613573a2081d47ad2498429ac86f2 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdAttach(args ...string) error {
<ide> return err
<ide> }
<ide>
<add> if !container.State.Running {
<add> return fmt.Errorf("Impossible to attach to a stopped container, start it first")
<add> }
<add>
<ide> splitStderr := container.Config.Tty
<ide>
<ide> conne... | 2 |
Javascript | Javascript | fix quotes in comment | e377621eaf85915b8459632cf2565e40e54d6c19 | <ide><path>src/effects.js
<ide> jQuery.fn.extend({
<ide> }
<ide>
<ide> return this[ optall.queue === false ? "each" : "queue" ](function() {
<del> // XXX ‘this’ does not always have a nodeName when running the
<add> // XXX 'this' does not always have a nodeName when running the
<ide> // test suite
<ide>
<i... | 1 |
Text | Text | add image of current travis ci build status | ffef82e6d94faa3e10133c7cca32e0f5698ca811 | <ide><path>README.md
<del># Ember.js
<add># Ember.js [](http://travis-ci.org/emberjs/ember.js)
<ide>
<ide> Ember.js (formerly SproutCore 2.0) is a JavaScript framework that does all of the heavy lifting that you'd normally have to do by ha... | 1 |
Text | Text | remove gemnasium batch from readme. [ci skip] | 1df4dcf7dd9ec5cf8fed3c04d9427ad925f2b83b | <ide><path>README.md
<ide> We encourage you to contribute to Ruby on Rails! Please check out the
<ide> ## Code Status
<ide>
<ide> * [](https://travis-ci.org/rails/rails)
<del>* [](https://gemnasium.co... | 1 |
PHP | PHP | add test case for | 33186dcb5bc17df4413a60915d3fc57edd405fcf | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> public function testAddAssociations()
<ide> 'hasOne' => ['profiles'],
<ide> 'hasMany' => ['authors'],
<ide> 'belongsToMany' => [
<del> 'tags' => ['joinTable' => 'things_tags']
<add> 'tags' => [
<add> ... | 1 |
Java | Java | fix numberformatexception with x-forwarded-host | ea5ff87f8ec8d34871aaf3bcc49a165e2db076e5 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
<ide> * @author Rossen Stoyanchev
<ide> * @author Phillip Webb
<ide> * @author Oliver Gierke
<add> * @author Brian Clozel
<ide> * @since 3.1
<ide> * @see #newInstance()
<ide> * @see #fromPath(String)
<ide> UriComponentsBuil... | 2 |
PHP | PHP | simplify code per josephsilber's suggestion | e3a8001a13fb3ff0edd4a1c851d30e4fc9f654f3 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function syncOriginalAttribute($attribute)
<ide> /**
<ide> * Determine if the model or given attribute(s) have been modified.
<ide> *
<del> * @param string|array|null $attribute
<add> * @param string|array|null $attributes
<ide> * @return b... | 1 |
PHP | PHP | throw deprecation warning | b099e40d432b505a89f4f1aa6a9af0b0ea5bd9bd | <ide><path>src/TestSuite/TestCase.php
<ide> public function assertTextNotContains($needle, $haystack, $message = '', $ignore
<ide> $this->assertNotContains($needle, $haystack, $message, $ignoreCase);
<ide> }
<ide>
<add> /**
<add> * Asserts HTML tags.
<add> *
<add> * @param string $string An ... | 1 |
Python | Python | fix flake8 error | 2d1864ab76a4e4683a945faa47923a14b65a824f | <ide><path>libcloud/compute/drivers/packet.py
<ide> def ex_delete_bgp_session(self, session_uuid):
<ide> res = self.connection.request(path, method='DELETE')
<ide> return res.status == httplib.OK # or res.status == httplib.NO_CONTENT
<ide>
<del> def ex_list_events_for_node(self, node, include=None,... | 1 |
Javascript | Javascript | capture stderr from child processes | 448b0c0afcd87f93aab8b863dcaf463827814ad5 | <ide><path>test/parallel/test-child-process-pipe-dataflow.js
<ide> const MB = KB * KB;
<ide> grep = spawn('grep', ['x'], { stdio: [cat.stdout, 'pipe', 'pipe'] });
<ide> wc = spawn('wc', ['-c'], { stdio: [grep.stdout, 'pipe', 'pipe'] });
<ide>
<add> [cat, grep, wc].forEach((child, index) => {
<add> child.stderr... | 1 |
Javascript | Javascript | fix typo in ember-api documentation | b4c0fa766fbb07dfb936a2d53892747deb8c4f06 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> var Route = EmberObject.extend(ActionHandler, Evented, {
<ide> //
<ide> this.render('post', { // the template name associated with 'post' Route
<ide> into: 'application', // the parent route to 'post' Route
<del> outlet: 'main', // {{o... | 1 |
PHP | PHP | fix failing tests | 06cf62aefe43e4aef2247a06af8b5e9f47d91276 | <ide><path>lib/Cake/Test/Case/BasicsTest.php
<ide> public function testDebug() {
<ide> ########## DEBUG ##########
<ide> 'this-is-a-test'
<ide> ###########################
<add>
<ide> EXPECTED;
<del> $expected = sprintf($expectedText, str_replace(CAKE_CORE_INCLUDE_PATH, '', __FILE__), __LINE__ - 8);
<add> $expected =... | 1 |
Javascript | Javascript | simplify vendor prefixes handling in tests | ac2d06b19d8118cf482075f39088f41dfa318acf | <ide><path>test/ngAnimate/animateSpec.js
<ide> describe("ngAnimate", function() {
<ide> ss = createMockStyleSheet($document, $window);
<ide> try {
<ide> $timeout.flush();
<del> } catch(e) {};
<add> } catch(e) {}
<ide> $animate.enabled(true);
<ide> };
<ide> }));
<ide> describe("... | 1 |
Text | Text | fix typo error | d9e5321c4ebecb725e25340e4e010b049cdf458f | <ide><path>guide/english/cplusplus/index.md
<ide> title: C++
<ide> ## What is C++?
<ide>
<ide> * C++ is a general purpose programming language which has been used since the 1990's
<del>* It was designed by Bjarne Stroustrup under with the name "C with classes".
<add>* It was designed by Bjarne Stroustrup under the nam... | 1 |
PHP | PHP | turn redis clustering off by default | 0103a698d7e1de6a9c49f9c55c769fcd90fe0d4c | <ide><path>app/config/database.php
<ide>
<ide> 'redis' => array(
<ide>
<del> 'cluster' => true,
<add> 'cluster' => false,
<ide>
<ide> 'default' => array(
<ide> 'host' => '127.0.0.1', | 1 |
Text | Text | enable python curriculum | decf1ece992556d19da5f9d0c2a948a182c0db55 | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/american-british-translator.english.md
<ide> id: 5e601c0d5ac9d0ecd8b94afe
<ide> title: American British Translator
<ide> challengeType: 4
<del>isHidden: true
<add>isHidden: false
<ide> isRequired: true
<ide> ---
<ide>
<ide><path>c... | 161 |
Javascript | Javascript | add replacement utils for lodash modules + tests | 3aef46935f63175f9e79d84fce343fa8fe1963f9 | <ide><path>src/utils/identity.js
<add>export default function identity(value) {
<add> return value;
<add>}
<ide><path>src/utils/isPlainObject.js
<add>export default function isPlainObject(obj) {
<add> return typeof obj == 'object' && Object.getPrototypeOf(obj) === Object.prototype;
<add>}
<ide><path>src/utils/pick.js... | 6 |
Ruby | Ruby | fix spelling in `controller/filters_test.rb` | 2bb445d25fa2befef9f37b994c36cc65a47c36ae | <ide><path>actionpack/test/controller/filters_test.rb
<ide> class ExceptConditionClassController < ConditionalFilterController
<ide> before_action ConditionalClassFilter, except: :show_without_action
<ide> end
<ide>
<del> class AnomolousYetValidConditionController < ConditionalFilterController
<add> class Anom... | 1 |
Text | Text | correct raw github urls | 6f3fbc696955f249b6a46a50353ec10b242494fd | <ide><path>guides/source/performance_testing.md
<ide> $ cd <ruby-version>
<ide> ##### Apply the Patch
<ide>
<ide> ```bash
<del>$ curl http://github.com/wayneeseguin/rvm/raw/master/patches/ruby/1.9.2/p180/gcdata.patch | patch -p0 # if you're on 1.9.2!
<del>$ curl http://github.com/wayneeseguin/rvm/raw/master/patches/ru... | 1 |
PHP | PHP | add missing assertion | 5926ae57eb512fbe35de638debeeb570b12f31c0 | <ide><path>tests/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testRoutePlaceholder()
<ide> 'Title',
<ide> '/a',
<ide> ];
<add> $this->assertHtml($expected, $result);
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | include test env in default env vars | 56d62a52fd706613de4800eeb7f6d4fff1b3af94 | <ide><path>docs/basic-features/environment-variables.md
<ide> If you've configured [Development Environment Variables](https://vercel.com/docs
<ide> ```bash
<ide> vercel env pull .env.local
<ide> ```
<add>
<add>## Test Environment Variables
<add>
<add>Apart from `development` and `production` environments, there is a 3... | 1 |
Text | Text | fix markdown indentation in lists | 931abc085e772d3ad35de2d45b22aa4e677b702d | <ide><path>doc/api/esm.md
<ide> CommonJS modules loaded.
<ide> * `defaultResolve` {Function} The Node.js default resolver.
<ide> * Returns: {Object}
<ide> * `format` {string|null|undefined}
<del> `'builtin' | 'commonjs' | 'json' | 'module' | 'wasm'`
<add> `'builtin' | 'commonjs' | 'json' | 'module' | 'wasm'`
<ide... | 5 |
Javascript | Javascript | remove flowfixme in virtualizedsectionlist | 224757e830f65cf8b00de461f390848bb25c1c71 | <ide><path>Libraries/Lists/VirtualizedSectionList.js
<ide> class ItemWithSeparator extends React.Component<
<ide> section,
<ide> separators: this._separators,
<ide> });
<del> const leadingSeparator = LeadingSeparatorComponent && (
<add> const leadingSeparator = LeadingSeparatorComponent != null &&... | 1 |
Text | Text | add release note for [ci skip] | 1faf222b934d61844d8b8bd4f40e1ef1d2b49433 | <ide><path>guides/source/4_2_release_notes.md
<ide> Please refer to the [Changelog][action-pack] for detailed changes.
<ide>
<ide> ([Commit](https://github.com/rails/rails/commit/cc26b6b7bccf0eea2e2c1a9ebdcc9d30ca7390d9))
<ide>
<add>* Deprecated support for String keys in URL helpers:
<add>
<add> ```ruby
<ad... | 1 |
Ruby | Ruby | adjust ast tests to respect bind values | 034762a760eeb3c6fca4bdc31fb927d36b6cd6db | <ide><path>activerecord/test/cases/relation/where_chain_test.rb
<ide> def setup
<ide> end
<ide>
<ide> def test_not_eq
<del> expected = Arel::Nodes::NotEqual.new(Post.arel_table[@name], 'hello')
<ide> relation = Post.where.not(title: 'hello')
<del> assert_equal([expected], relation.where_values)... | 1 |
Javascript | Javascript | fix typo in `test/parallel/test-fs-rm.js` | 84044df70b247c8fa6a321ac62836160a77c3ef2 | <ide><path>test/parallel/test-fs-rm.js
<ide> if (isGitPresent) {
<ide> });
<ide> } catch (err) {
<ide> // Only fail the test if the folder was not deleted.
<del> // as in some cases rmSync succesfully deletes read-only folders.
<add> // as in some cases rmSync successfully ... | 1 |
Ruby | Ruby | replace kwarg for displaying all configurations | 9da8fef16211ff0b696068da146e9372d7d87c98 | <ide><path>activerecord/lib/active_record/database_configurations.rb
<ide> def initialize(configurations = {})
<ide> end
<ide>
<ide> # Collects the configs for the environment and optionally the specification
<del> # name passed in. To include replica configurations pass <tt>include_replicas: true</tt>.
<ad... | 3 |
PHP | PHP | move http\client into http package | 5d866f0dce93978748d2efeb76de9a34ab930c3b | <ide><path>config/bootstrap.php
<ide> class_alias('Cake\Mailer\Email', 'Cake\Network\Email\Email');
<ide> class_alias('Cake\Mailer\Transport\MailTransport', 'Cake\Network\Email\MailTransport');
<ide> class_alias('Cake\Mailer\Transport\SmtpTransport', 'Cake\Network\Email\SmtpTransport');
<ide>
<add>// @deprecated Backw... | 12 |
Ruby | Ruby | use native ruby | 82c57566904147393065d06ff30ecdb899470c6e | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f, args:)
<ide> # Set the times for reproducible bottles.
<ide> if file.symlink?
<ide> # Need to make symlink permissions consistent on macOS and Linux
<del> system "chmod", "-h", "0777", file if OS.mac?
<a... | 1 |
Javascript | Javascript | add test for layout service weight ordering | b50eac366dbde8c376f9fddc104726936a720628 | <ide><path>test/core.layoutService.tests.js
<ide> describe('Test the layout service', function() {
<ide> expect(chart.chartArea.top).toBeCloseToPixel(0);
<ide> });
<ide> });
<add>
<add> describe('ordering by weight', function() {
<add> it('should keep higher weights outside', function() {
<add> var chart = win... | 1 |
Javascript | Javascript | remove bind helper | e34dd12f1921cba438c2f5d16cc249f1f832b612 | <ide><path>packages/ember-htmlbars/lib/helpers/binding.js
<del>/**
<del>@module ember
<del>@submodule ember-htmlbars
<del>*/
<del>
<del>import isNone from 'ember-metal/is_none';
<del>import run from "ember-metal/run_loop";
<del>import { get } from "ember-metal/property_get";
<del>import SimpleStream from "ember-metal/s... | 5 |
Javascript | Javascript | remove a typo | 7b63b225a50f7e38300b898ec63ac8af434c009b | <ide><path>Libraries/Animated/src/AnimatedImplementation.js
<ide> class AnimatedValue extends AnimatedWithChildren {
<ide>
<ide> /**
<ide> * Adds an asynchronous listener to the value so you can observe updates from
<del> * animations or whathaveyou. This is useful because there is no way to
<add> * animatio... | 1 |
Javascript | Javascript | update dat.gui | 272607c803e635558fc02e42ca298473a415540f | <ide><path>examples/js/libs/dat.gui.min.js
<ide> *
<ide> * http://www.apache.org/licenses/LICENSE-2.0
<ide> */
<del>var dat=dat||{};dat.gui=dat.gui||{};dat.utils=dat.utils||{};dat.controllers=dat.controllers||{};dat.dom=dat.dom||{};dat.color=dat.color||{};dat.utils.css=function(){return{load:function(e,a){var a=a||d... | 1 |
PHP | PHP | increase context depth in error messages | 7d74f3e5981d51150af1c34c98203a28ad7d7730 | <ide><path>lib/Cake/Utility/Debugger.php
<ide> public function outputError($data) {
<ide> $info = '';
<ide>
<ide> foreach ((array)$data['context'] as $var => $value) {
<del> $context[] = "\${$var} = " . $this->exportVar($value, 1);
<add> $context[] = "\${$var} = " . $this->exportVar($value, 3);
<ide> }
<ide>... | 1 |
PHP | PHP | add tests for | 1bf67c191a36f1f320357bf8c907d3232f70a662 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testError()
<ide> $this->assertHtml($expected, $result);
<ide> }
<ide>
<add> /**
<add> * test error translation can use rule names for translating.
<add> *
<add> * @return void
<add> */
<add> public functio... | 1 |
PHP | PHP | use arguments instead of using properties | fed7d9dd4130b9036f6b82e53183eb42357511ed | <ide><path>src/Command/ServerCommand.php
<ide> class ServerCommand extends Command
<ide> */
<ide> protected $_iniPath = '';
<ide>
<del> /**
<del> * Arguments
<del> *
<del> * @var \Cake\Console\Arguments
<del> */
<del> protected $args;
<del>
<del> /**
<del> * Console IO
<del> *... | 1 |
Ruby | Ruby | fix installation of local bottles | f1e4add444fa7ce4848a9b51c71f7a99d42ec796 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def pour_bottle?(output_warning: false)
<ide> return false
<ide> end
<ide>
<add> return true if formula.local_bottle_path.present?
<add>
<ide> bottle = formula.bottle_for_tag(Utils::Bottles.tag.to_sym)
<ide> return false if bottle.nil?
<ide> | 1 |
Text | Text | fix a typo in readme | 689dcc0851d437cf4cfe703bff2600609ee98d9e | <ide><path>README.md
<ide> Seq is never used:
<ide> .filter(x => x % 2).map(x => x * x);
<ide>
<ide> Once the Seq is used, it performs only the work necessary. In this
<del>example, no intermediate arrays are ever created, filter is called three times
<del>twice, and map is only called two times:
<add>example, n... | 1 |
Go | Go | remove the ghosts and kill everything | 772ef99d2816b629d084e11fe7fba5953687b620 | <ide><path>container.go
<ide> type Container struct {
<ide> HostsPath string
<ide> Name string
<ide> Driver string
<add> ExecDriver string
<ide>
<ide> command *execdriver.Command
<ide> stdout *utils.WriteBroadcaster
<ide> func (container *Container) monitor(callback execdriver.Star... | 7 |
Javascript | Javascript | improve test cases for more edge cases | 61d508e9f21b0ec5b112a1fe0dc442b271e57d4b | <ide><path>test/configCases/loaders/issue-9053/a.js
<del>module.exports = require("c.js!=!loader1!./b.js");
<ide><path>test/configCases/loaders/issue-9053/b.js
<del>module.exports = "b";
<add>module.exports = ["b"];
<ide><path>test/configCases/loaders/issue-9053/c.js
<add>module.exports = ["c"];
<ide><path>test/configC... | 8 |
Javascript | Javascript | improve readability on conditional assignment | 8c5cbcba20dfccbd01c246984d985378dcc197b5 | <ide><path>src/ng/filter/filters.js
<ide> function dateFilter($locale) {
<ide> format = format || 'mediumDate';
<ide> format = $locale.DATETIME_FORMATS[format] || format;
<ide> if (isString(date)) {
<del> if (NUMBER_STRING.test(date)) {
<del> date = int(date);
<del> } else {
<del> da... | 1 |
Go | Go | remove leading spaces of username when login | 2687502ba4e3d3eb41b6da6b52de151ef5dca9a2 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<ide> if username == "" {
<ide> promptDefault("Username", authconfig.Username)
<ide> username = readInput(cli.in, cli.out)
<add> username = strings.Trim(username, " ")
<ide> if username == "" {
<ide> username = aut... | 1 |
Python | Python | fix infinite recursion with deepcopy on request | d507cd851c4b1185e3dc720de9ba6a642459d738 | <ide><path>rest_framework/request.py
<ide> def __getattr__(self, attr):
<ide> to proxy it to the underlying HttpRequest object.
<ide> """
<ide> try:
<del> return getattr(self._request, attr)
<add> _request = self.__getattribute__("_request")
<add> return getattr(... | 2 |
Python | Python | fix tests of ma.count return type | 9592bfa7d29c238bc891be255a4a666b407a9e2f | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_basic_ufuncs(self):
<ide>
<ide> def test_count_func(self):
<ide> # Tests count
<del> ott = array([0., 1., 2., 3.], mask=[1, 0, 0, 0])
<del> ott1= array([0., 1., 2., 3.])
<del> if sys.version_info[0] >= 3:
<del> self.asser... | 2 |
Python | Python | fix tokenizer_exceptions in thai | 2ea27d07f474332486db0a047999870f40ba37a4 | <ide><path>spacy/lang/th/tokenizer_exceptions.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from ..symbols import *
<del>from ..language_data import PRON_LEMMA
<del>
<add>from ...symbols import *
<ide>
<ide> TOKENIZER_EXCEPTIONS = {
<ide> "ม.ค.": [
<ide> {ORTH: "ธ.ค.",... | 1 |
Text | Text | fix wrong link in “splitting up reducer logic” doc | bf490bd1ff0278103c570276b330af8add6b301f | <ide><path>docs/recipes/reducers/02-SplittingReducerLogic.md
<ide> For clarity, these terms will be used to distinguish between different types of
<ide> The term "*sub-reducer*" has also been used in various discussions to mean any function that is not the root reducer, although the term is not very precise. Some peop... | 1 |
PHP | PHP | extract key generation | 6623996212b3d59aa31a374b70311f03fd158075 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> public static function supported($key, $cipher)
<ide> ($cipher === 'AES-256-CBC' && $length === 32);
<ide> }
<ide>
<add> /**
<add> * Create a new encryption key for the given cipher.
<add> *
<add> * @param string $cipher
<add>... | 2 |
Javascript | Javascript | use language substrings | 0933502521ac377b10270e4ac94a285ab533ac1b | <ide><path>moment.js
<ide> }
<ide>
<ide> // compare two arrays, return the number of differences
<del> function compareArrays(array1, array2) {
<add> function compareArrays(array1, array2, dontConvert) {
<ide> var len = Math.min(array1.length, array2.length),
<ide> lengthDiff = Math.a... | 2 |
Javascript | Javascript | use farthest verts on frustum | 933f7f0c6b64975795a770f63134f6f049841ae6 | <ide><path>examples/jsm/csm/CSM.js
<ide> export default class CSM {
<ide> _cameraToLightMatrix.multiplyMatrices( light.shadow.camera.matrixWorldInverse, cameraMatrix );
<ide> frustums[ i ].toSpace( _cameraToLightMatrix, _lightSpaceFrustum );
<ide>
<del> const farTopRight = _lightSpaceFrustum.vertices.far[ 0 ];... | 1 |
Javascript | Javascript | use more es6 syntax in `src/core/annotation.js` | 2866c8a39e01d2ce42dfa42ac324453b60cd8c54 | <ide><path>src/core/annotation.js
<ide> class AnnotationFactory {
<ide> * @private
<ide> */
<ide> static _create(xref, ref, pdfManager, idFactory) {
<del> let dict = xref.fetchIfRef(ref);
<add> const dict = xref.fetchIfRef(ref);
<ide> if (!isDict(dict)) {
<ide> return undefined;
<ide> }
<del... | 1 |
Text | Text | add immer link | 4600cd2dd46b1b585b2fd6e44478baf4682b5f05 | <ide><path>docs/introduction/Ecosystem.md
<ide> const obj3 = icepicke.merge(obj1, obj2);
<ide>
<ide> #### Immutable Update Utilities
<ide>
<add>
<add>**[mweststrate/immer](https://github.com/mweststrate/immer)**
<add>Immutable updates with normal mutative code, using Proxies
<add>```js
<add>const nextState = produc... | 1 |
Go | Go | move getlongpathname to integration-cli | ad371893f22ae7b13e34fb6630387347dd834eb3 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> import (
<ide> "github.com/docker/docker/integration-cli/cli"
<ide> "github.com/docker/docker/integration-cli/cli/build"
<ide> "github.com/docker/docker/pkg/archive"
<del> "github.com/docker/docker/pkg/system"
<ide> "github.com/docker/docker/testutil"
<ide> ... | 5 |
Text | Text | add example for ## a word on 'scope' | dbc6c05166c7cda310484175779cb1040205f0d9 | <ide><path>guide/english/c/functions/index.md
<ide> With that, the conditions for a being greater than b, and b being greater than a
<ide> ## A word on 'scope'
<ide> Scope is a thing to be aware of. It refers to the areas in your code where a variable is accessible. When you pass a variable to a function, the function ... | 1 |
Java | Java | add websocketclient and websocketconnectionmanager | 2046629945d288944b13401958f5d27e04bbe835 | <ide><path>spring-websocket/src/main/java/org/springframework/websocket/HandlerProvider.java
<ide> package org.springframework.websocket;
<ide>
<ide> import org.apache.commons.logging.Log;
<add>import org.apache.commons.logging.LogFactory;
<ide> import org.springframework.beans.BeansException;
<ide> import org.springf... | 18 |
Ruby | Ruby | use array#first instead of array#[0] | 2bf65caf565c5923684953557594fc287c80c6ca | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def find_some(ids)
<ide>
<ide> def find_take
<ide> if loaded?
<del> @records.take(1)[0]
<add> @records.take(1).first
<ide> else
<del> @take ||= limit(1).to_a[0]
<add> @take ||= limit(1).to_a.first
<id... | 1 |
Text | Text | add link to rails-ujs/dropping jquery pr | 5e8dfcd12d1c496cf811a32f9f22de6a40d5abd3 | <ide><path>guides/source/5_1_release_notes.md
<ide> managed by the asset pipeline, and other code processed via Webpack. It’s all
<ide>
<ide> ### jQuery no longer a default dependency
<ide>
<add>[Pull Request](https://github.com/rails/rails/pull/27113)
<add>
<ide> jQuery was required by default in earlier versions of... | 1 |
Javascript | Javascript | update jsm files | 2a5b77170ad453da5ba1addb8665fdc1e1fc7274 | <ide><path>examples/jsm/postprocessing/EffectComposer.js
<ide> Pass.FullScreenQuad = ( function () {
<ide>
<ide> Object.assign( FullScreenQuad.prototype, {
<ide>
<add> dispose: function () {
<add>
<add> this._mesh.geometry.dispose();
<add>
<add> },
<add>
<ide> render: function ( renderer ) {
<ide>
<ide> re... | 2 |
Go | Go | improve store locking | 44e67adae5695e3e2c3b450453ab0fe6119eb80d | <ide><path>image/store.go
<ide> type imageMeta struct {
<ide> }
<ide>
<ide> type store struct {
<del> sync.Mutex
<add> sync.RWMutex
<ide> ls LayerGetReleaser
<ide> images map[ID]*imageMeta
<ide> fs StoreBackend
<ide> func (is *store) Create(config []byte) (ID, error) {
<ide> }
<ide>
<ide> func (is... | 1 |
Javascript | Javascript | display symbol keys in inspect by default | 5bfd13b81e38b60a7b9f346fbfcb216192cf0974 | <ide><path>lib/util.js
<ide> function formatValue(ctx, value, recurseTimes) {
<ide> // Look up the keys of the object.
<ide> var keys = Object.keys(value);
<ide> var visibleKeys = arrayToHash(keys);
<add> const symbolKeys = Object.getOwnPropertySymbols(value);
<add> const enumSymbolKeys = symbolKeys
<add> ... | 2 |
PHP | PHP | remove bogus data | c714fc935462e6542ab08621e430dd7248e2a89c | <ide><path>Cake/Test/TestCase/ORM/Association/BelongsToManyTest.php
<ide> public function testReplaceLinkSuccess() {
<ide> $tags = [
<ide> new Entity(['id' => 2], $opts),
<ide> new Entity(['id' => 3], $opts),
<del> new Entity(['id' => 6, 'articlesTag' => new Entity(['bar' => 'baz'])])
<add> new Entity(['id'... | 1 |
Java | Java | add zip of a collection of observables | 5a35bb298df5c609cdf1a011dcd4de8a1d035d20 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide>
<ide> import java.util.ArrayList;
<ide> import java.util.Arrays;
<add>import java.util.Collection;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import java.util.concurrent.CountDownLatch;
<ide> public R call(T0 t0, T1 t1, T2 t2, T3 t3) {
<... | 2 |
Javascript | Javascript | fix document indent | 3fec7df524c79dc13b36485f23acf62ef1ff07b1 | <ide><path>packages/ember-handlebars/lib/controls/text_field.js
<ide> Ember.TextField = Ember.View.extend(Ember.TextSupport,
<ide> the user presses the return key when editing a text field, and sends
<ide> the value of the field as the context.
<ide>
<del> @property action
<del> @type String
<del> @defau... | 1 |
Java | Java | change the textalign setter to support rtl | 54a4450309bfbbcd07e5e2ffe2a2cd1aaf772cc3 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java
<ide> import android.text.style.ForegroundColorSpan;
<ide> import android.text.style.StrikethroughSpan;
<ide> import android.text.style.UnderlineSpan;
<add>import android.view.Gravity;
<ide> import android.widget.TextView;
<ide... | 5 |
PHP | PHP | pass entire configuration | 6381aa994756429156b7376e98606458b052b1d7 | <ide><path>src/Illuminate/Broadcasting/BroadcastManager.php
<ide> protected function createPusherDriver(array $config)
<ide> */
<ide> protected function createAblyDriver(array $config)
<ide> {
<del> return new AblyBroadcaster(new AblyRest($config['key']));
<add> return new AblyBroadcaster(new... | 1 |
PHP | PHP | fix cs error | 72e7b59aa43d6ac4bed74ed235016f2c98985073 | <ide><path>src/Database/Schema/SqliteSchema.php
<ide> protected function _convertColumn(string $column): array
<ide> return ['type' => TableSchema::TYPE_INTEGER, 'length' => $length, 'unsigned' => $unsigned];
<ide> }
<ide> if (strpos($col, 'decimal') !== false) {
<del> return ['ty... | 1 |
Text | Text | correct the spelling of achieve | cc0e2163fb148b4bd9596a5478d692776b8b983e | <ide><path>guide/english/agile/sprint-planning/index.md
<ide> There are two defined artifacts that result from a sprint planning meeting:
<ide> Sprint Planning is time-boxed to a maximum of eight hours for a one-month Sprint. For shorter Sprints, the event is usually shorter. The Scrum Master ensures that the event tak... | 1 |
Python | Python | remove duplicate test | a9e8c7f05d63f9aa1fa47d7eff92c4303f41de59 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_dot_scalar_and_matrix_of_objects(self):
<ide> assert_equal(np.dot(arr, 3), desired)
<ide> assert_equal(np.dot(3, arr), desired)
<ide>
<del> def test_dot_override(self):
<del> class A(object):
<del> def __numpy_ufunc__(se... | 1 |
Java | Java | fix recent regression in webtestclient | 30c79404834ff7862c24c4a464c58f681f994f81 | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java
<ide> public RequestBodySpec uri(Function<UriBuilder, URI> uriFunction) {
<ide>
<ide> @Override
<ide> public RequestBodySpec uri(URI uri) {
<del> this.uriTemplate = null;
<ide> this.uri = uri;
<ide> ... | 2 |
Javascript | Javascript | fix iterable types with special prototype | 2c0a75118cd6a2eaf6b45fe8c67336f44c86ab0f | <ide><path>lib/internal/util/inspect.js
<ide> function clazzWithNullPrototype(clazz, name) {
<ide> function noPrototypeIterator(ctx, value, recurseTimes) {
<ide> let newVal;
<ide> if (isSet(value)) {
<del> const clazz = Object.getPrototypeOf(value) ||
<del> clazzWithNullPrototype(Set, 'Set');
<add> const... | 2 |
PHP | PHP | remove deprecated helpers | 4005e133b3aca9a118a3c971a3de65818a30c3a3 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function append_config(array $array)
<ide> }
<ide> }
<ide>
<del>if (! function_exists('array_add')) {
<del> /**
<del> * Add an element to an array using "dot" notation if it doesn't exist.
<del> *
<del> * @param array $array
<del> * @param ... | 1 |
Javascript | Javascript | allow tabs in input | 4b3d493c4b5996d00dc6eac3a7600b124ed4c5b7 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer, terminal) {
<ide> }
<ide> historySize = historySize || kHistorySize;
<ide>
<del> completer = completer || function() { return []; };
<del>
<del> if (typeof completer !== 'function') {
<add> if (completer && typeof completer !== 'funct... | 2 |
Ruby | Ruby | add fake optparse.rb | 6ca096125de97955cb4a37166e97c2cb7332cc1e | <ide><path>Library/Homebrew/optparse.rb
<add># This file is put here to prevent loading of real optparse.rb,
<add># which killed Homebrew. Details of issue can be found here:
<add># http://github.com/mxcl/homebrew/issues#issue/97 | 1 |
Ruby | Ruby | remove message that is never displayed | d362f5a2fbc82810f819a7d024b92fee4813cf3e | <ide><path>Library/Homebrew/requirements/apr_dependency.rb
<ide> class AprDependency < Requirement
<ide> ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr-util"].opt_libexec}/lib/pkgconfig"
<ide> end
<ide> end
<del>
<del> def message
<del> message = <<-EOS.undent
<del> Due to packaging problems o... | 1 |
Javascript | Javascript | use modulemap instead of hastemap | 067496e5f6cbc3ec9b169f1a4ccb603e471b2d63 | <ide><path>packager/src/ModuleGraph/node-haste/node-haste.js
<ide> * @flow
<ide> */
<ide>
<del> 'use strict';
<add>'use strict';
<ide>
<del> import type { // eslint-disable-line sort-requires
<add>import type { // eslint-disable-line sort-requires
<ide> Extensions,
<ide> Path,
<ide> } from './node-haste.flow';
... | 5 |
Ruby | Ruby | take advantage of string#unpack1 | 4b42c7e52aa23081ce02ffad53c76ab786214e87 | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def setup
<ide> end
<ide>
<ide> safe, unsafe = %w(: @ & = + $ , ;), %w(^ ? # [ ])
<del> hex = unsafe.map { |char| "%" + char.unpack("H2").first.upcase }
<add> hex = unsafe.map { |char| "%" + char.unpack1("H2").upcase }
<ide>
<ide> @segment ... | 7 |
Python | Python | add a function to get msvc version | a2c67987055400e49c056f6301317a36dca5a244 | <ide><path>numpy/distutils/misc_util.py
<ide> def show():
<ide> f.close()
<ide> return target
<ide>
<add>def msvc_version(compiler):
<add> """Return version major and minor of compiler instance if it is
<add> MSVC, raise an exception otherwise."""
<add> if not compiler.compiler_type == "msvc":
<add> r... | 1 |
Python | Python | add state details to emr container failure reason | 480c333c45d31cdfdc63cdfceecd4ad8529eefd4 | <ide><path>airflow/providers/amazon/aws/hooks/emr_containers.py
<ide> def get_job_failure_reason(self, job_id: str) -> Optional[str]:
<ide> virtualClusterId=self.virtual_cluster_id,
<ide> id=job_id,
<ide> )
<del> reason = response['jobRun']['failureReason']
<add> ... | 2 |
Javascript | Javascript | fix lint error | cff2a137f201604cbb3c4e54578b4ebfd20bcaf2 | <ide><path>benchmark/misc/console.js
<ide> function main(conf) {
<ide> case 'restAndConcat':
<ide> if (conf.concat)
<ide> runUsingRestAndConcat(n);
<del> break;
<add> break;
<ide> default:
<ide> throw new Error('Unexpected method');
<ide> } | 1 |
Python | Python | use 4 spaces per indentation level as per pep8 | d7215411dab5aade2a70d2938adb4308c923b054 | <ide><path>numpy/distutils/fcompiler/pathf95.py
<ide>
<ide> class PathScaleFCompiler(FCompiler):
<ide>
<del> compiler_type = 'pathf95'
<del> description = 'PathScale Fortran Compiler'
<del> version_pattern = r'PathScale\(TM\) Compiler Suite: Version (?P<version>[\d.]+)'
<add> compiler_type = 'pathf95'
<add> de... | 1 |
Javascript | Javascript | remove cruft that dealt with env parameter | e514f575f3461fb7d0d3c16918e36fbf83166f15 | <ide><path>lib/child_process.js
<ide> var spawn = exports.spawn = function (path, args /*, options OR env, customFds *
<ide> exports.exec = function (command /*, options, callback */) {
<ide> if (arguments.length < 3) {
<ide> return exports.execFile("/bin/sh", ["-c", command], arguments[1]);
<del> } else if (arg... | 1 |
Mixed | Text | use to_a to pre-buffer the collection | 87899cfcf0ada140764acf4393eb862698449f54 | <ide><path>actionview/CHANGELOG.md
<ide> * Changed partial rendering with a collection to allow collections which
<del> don't implement `to_ary`.
<add> implement `to_a`.
<ide>
<del> Extracting the collection option has an optimization to avoid unnecessary
<del> queries of ActiveRecord Relations by callin... | 2 |
Ruby | Ruby | fix indentation in `display_items` | 2918f92b89b83f1c730dbbd032fe32837add43dd | <ide><path>Library/Homebrew/linkage_checker.rb
<ide> def display_items(label, things, puts_output: true)
<ide> else
<ide> things.sort.each do |item|
<ide> output += if item.is_a? Regexp
<del> "\n #{item.inspect}"
<add> "\n #{item.inspect}"
<ide> else
<ide> "\n #{i... | 1 |
PHP | PHP | fix securitycomponent using deprecated properties | 823870ce53e7c83fd89fead815c1a2d67eaf6ad6 | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> public function startup(Event $event)
<ide> {
<ide> /* @var \Cake\Controller\Controller $controller */
<ide> $controller = $event->getSubject();
<del> $this->session = $controller->request->getSession();
<del> $this->_acti... | 2 |
Javascript | Javascript | add an early invariant to debug a mystery crash | 4ee592e95a5f78daed575a047d47f74f046940f3 | <ide><path>packages/react-reconciler/src/ReactFiber.js
<ide> import {
<ide> enableUserTimingAPI,
<ide> enableScopeAPI,
<ide> enableBlocksAPI,
<add> throwEarlyForMysteriousError,
<ide> } from 'shared/ReactFeatureFlags';
<ide> import {NoEffect, Placement} from 'shared/ReactSideEffectTags';
<ide> import {Concurrent... | 10 |
Mixed | Ruby | apply suggestions from review | 81f6a1f87f18bc097c7897dfaf363b5bae468ef6 | <ide><path>activerecord/lib/active_record/internal_metadata.rb
<ide> module ActiveRecord
<ide> # This class is used to create a table that keeps track of values and keys such
<ide> # as which environment migrations were run in.
<ide> #
<del> # It is possible to enable or disable this functionality by setting the... | 4 |
Ruby | Ruby | add path for 'libexec' | 4c2d4c8560aff4011dde08a0585c72e2b9f8a2c1 | <ide><path>Library/Homebrew/formula.rb
<ide> def bin; prefix+'bin' end
<ide> def sbin; prefix+'sbin' end
<ide> def doc; prefix+'share'+'doc'+name end
<ide> def lib; prefix+'lib' end
<add> def libexec; prefix+'libexec' end
<ide> def man; prefix+'share'+'man' end
<ide> def man1; man+'man1' end
<ide> def info... | 1 |
Python | Python | prevent duplicates in limitedset | 933d57d413263efa10cd00fb0e7c25e7a6604470 | <ide><path>celery/tests/utils/test_datastructures.py
<ide> def test_as_dict(self):
<ide> s.add('foo')
<ide> self.assertIsInstance(s.as_dict(), Mapping)
<ide>
<add> def test_no_duplicates(self):
<add> s = LimitedSet(maxlen=2)
<add> s.add('foo')
<add> s.add('foo')
<add> sel... | 1 |
Python | Python | describe output from astype method | 5bfd65a55517e7a0af60d31e8dba6dc2f6b87df1 | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> requirements are satisfied, the input array is returned instead
<ide> of a copy.
<ide>
<add> Returns
<add> -------
<add> arr_t : ndarray
<add> Unless `copy` is False and the other conditions for returning t... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.