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 | implement checkifinvalidmodule in parsers | e97fb466a0c74a7a187032581015dfcbb3c5222c | <ide><path>packages/react-native-codegen/src/parsers/__tests__/error-utils-test.js
<ide> const {
<ide> MoreThanOneModuleInterfaceParserError,
<ide> UnsupportedFunctionParamTypeAnnotationParserError,
<ide> } = require('../errors');
<add>const {FlowParser} = require('../flow/parser');
<add>const {TypeScriptParser} = ... | 8 |
Java | Java | add generatedfiles interface and support classes | 99173fbd4f082172d8d9cbe92d0cd1f2b313e19c | <ide><path>spring-core/src/main/java/org/springframework/aot/generate/AppendableConsumerInputStreamSource.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with t... | 8 |
Ruby | Ruby | use descriptive exception names | 08a92d47b08b25356b8bfea31c91ceb68cfae3ee | <ide><path>activejob/test/cases/exceptions_test.rb
<ide> class ExceptionsTest < ActiveSupport::TestCase
<ide> end
<ide>
<ide> test "successfully retry job throwing exception against defaults" do
<del> RetryJob.perform_later 'SeriousError', 5
<add> RetryJob.perform_later 'DefaultsError', 5
<ide>
<ide> as... | 2 |
Javascript | Javascript | fix some cases where undefined modules are used | 9e4c259cce6301697c7e82c99c23bf0b502f7ecb | <ide><path>lib/dependencies/CommonJsExportRequireDependency.js
<ide> CommonJsExportRequireDependency.Template = class CommonJsExportRequireDependency
<ide> weak: dep.weak,
<ide> runtimeRequirements
<ide> });
<del> const ids = dep.getIds(moduleGraph);
<del> const usedImported = moduleGraph
<del> .getExportsI... | 3 |
Go | Go | take care of some review comments | 15c74bebc1ea2d51612b5809b4477551547a8b3d | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> var (
<ide> DefaultThinpBlockSize uint32 = 128 // 64K = 128 512b sectors
<ide> )
<ide>
<add>const deviceSetMetaFile string = "deviceset-metadata"
<add>
<ide> type DevInfo struct {
<ide> Hash string `json:"-"`
<ide> DeviceId int ... | 1 |
PHP | PHP | fix failing test | 4574dbc2735bc7967da6c7d731b1a3ab39f3e26e | <ide><path>lib/Cake/Test/Case/I18n/I18nTest.php
<ide> public function testPoNoTranslationNeeded () {
<ide> * @return void
<ide> */
<ide> public function testPoQuotedString () {
<add> Configure::write('Config.language', 'po');
<ide> $expected = 'this is a "quoted string" (translated)';
<ide> $this->assertEquals(... | 1 |
Javascript | Javascript | update selected index after mutation | f1a8bd29235a2e267c88138a618d107cf5d4a9ea | <ide><path>src/devtools/views/Components/TreeContext.js
<ide> function reduceOwnersState(store: Store, state: State, action: Action): State {
<ide> ownerStackIndex = ownerStack.length - 1;
<ide> }
<ide> }
<add> if (selectedElementID !== null) {
<add> // Mutation might have ... | 1 |
Python | Python | remove redudandant checks in test_views.py | 4a77211ab8dd33191ed8725e92bccc24812658a0 | <ide><path>tests/www/test_views.py
<ide> def check_content_not_in_response(self, text, resp, resp_code=200):
<ide> else:
<ide> self.assertNotIn(text, resp_html)
<ide>
<del> def percent_encode(self, obj):
<add> @staticmethod
<add> def percent_encode(obj):
<ide> return urllib.parse.q... | 1 |
Javascript | Javascript | eliminate redundant object creation | 43cd006f03b87fe479110e1f0bbc1edb24623538 | <ide><path>src/math/Box3.js
<ide> function Box3( min, max ) {
<ide>
<ide> }
<ide>
<add>var _box = new Box3();
<add>
<ide> Object.assign( Box3.prototype, {
<ide>
<ide> isBox3: true,
<ide> Object.assign( Box3.prototype, {
<ide>
<ide> }
<ide>
<del> var box = new Box3();
<del>
<del> box.copy( geometry.bounding... | 1 |
Javascript | Javascript | report better errors for uglify-js | a395c07c5de840713b82af5bcd081c57c4f202e5 | <ide><path>lib/optimize/UglifyJsPlugin.js
<ide> UglifyJsPlugin.prototype.apply = function(compiler) {
<ide> compilation.warnings.push(new Error(file + " from UglifyJs\n" + warnings.join("\n")));
<ide> }
<ide> } catch(err) {
<del> err.file = file;
<del> compilation.errors.push(err);
<add> if(e... | 1 |
Go | Go | add tests for bufreader | 028f7987fe455d958d08db98ae267d9fd4cf3813 | <ide><path>pkg/ioutils/readers_test.go
<ide> func TestBufReader(t *testing.T) {
<ide> t.Error(string(output))
<ide> }
<ide> }
<add>
<add>type repeatedReader struct {
<add> readCount int
<add> maxReads int
<add> data []byte
<add>}
<add>
<add>func newRepeatedReader(max int, data []byte) *repeatedReader {
<add> r... | 1 |
Text | Text | add note about asyncresource for worker pooling | 55de20999b8b60a7ef889ea0d9573e9f271e1d17 | <ide><path>doc/api/worker_threads.md
<ide> The above example spawns a Worker thread for each `parse()` call. In actual
<ide> practice, use a pool of Workers instead for these kinds of tasks. Otherwise, the
<ide> overhead of creating Workers would likely exceed their benefit.
<ide>
<add>When implementing a worker pool,... | 1 |
Ruby | Ruby | add indifferent access to the attributes | 8377646d68b32de362fefad0d752a923f6b36da6 | <ide><path>activeresource/lib/active_resource/base.rb
<ide> require 'active_support'
<ide> require 'active_support/core_ext/class/attribute_accessors'
<ide> require 'active_support/core_ext/class/inheritable_attributes'
<add>require 'active_support/core_ext/hash/indifferent_access'
<ide> require 'active_support/core_ex... | 3 |
Go | Go | modify log in order to be same below | fe8bcb1a8e5ab0426822d512df97eebed268dfc4 | <ide><path>volume/store/store.go
<ide> func (s *VolumeStore) Purge(name string) {
<ide> s.globalLock.Lock()
<ide> v, exists := s.names[name]
<ide> if exists {
<del> if _, err := volumedrivers.ReleaseDriver(v.DriverName()); err != nil {
<del> logrus.Errorf("Error dereferencing volume driver: %v", err)
<add> drive... | 1 |
Javascript | Javascript | provide default methods for assert | 3c4c0db26abba8211c0e6d42c14f14b3514b481b | <ide><path>benchmark/assert/deepequal-buffer.js
<ide> function main(conf) {
<ide> data.copy(expectedWrong);
<ide>
<ide> switch (conf.method) {
<add> case '':
<add> // Empty string falls through to next line as default, mostly for tests.
<ide> case 'deepEqual':
<ide> bench.start();
<ide> for... | 8 |
Mixed | Javascript | improve function signature of util._extend | b3e7ac2605c18c041293cd3ab892c963e1145176 | <ide><path>doc/api/util.md
<ide> deprecated: v0.11.3
<ide>
<ide> Deprecated predecessor of `console.log`.
<ide>
<del>### util.\_extend(obj)
<add>### util.\_extend(target, source)
<ide> <!-- YAML
<ide> added: v0.7.5
<ide> deprecated: v6.0.0
<ide><path>lib/util.js
<ide> exports.inherits = function(ctor, superCtor) {
<i... | 2 |
Text | Text | update the redux flow.md | 7b34e44ad104c651d134bea4a4f9c94e243cea16 | <ide><path>docs/Basics/The Redux Flow.md
<ide> The Redux Flow
<ide> --------------------------
<ide>
<del>TODO
<add>Redux implements an architecture with unidirectional data flow. What does this mean? It means that **every change to the data follows the same lifecycle and goes into a single direction in a centralized ... | 1 |
PHP | PHP | reduce code repetition | d534013570373e01e76be9668420e451c71be570 | <ide><path>lib/Cake/Utility/Set.php
<ide> public static function nest($data, $options = array()) {
<ide> foreach ($data as $result) {
<ide> $result[$options['children']] = array();
<ide>
<del> $id = $result;
<del> foreach($idKeys as $key) {
<del> $id = $id[$key];
<del> }
<del>
<del> $parentId = $result... | 1 |
Javascript | Javascript | make transferpropsto() message easier to debug | ef60eee57ab8a86e47847761532cf72a1205b668 | <ide><path>src/core/ReactPropTransferer.js
<ide> var ReactPropTransferer = {
<ide> transferPropsTo: function(component) {
<ide> invariant(
<ide> component.props.__owner__ === this,
<del> 'You can\'t call transferPropsTo() on a component that you don\'t ' +
<del> 'own. This usually means ... | 2 |
Javascript | Javascript | use jsx in the new tests | 98a7100930d4a877cc1d88b9b1ea410271ee9ea9 | <ide><path>src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
<ide> describe('ReactDOMComponent', function() {
<ide> it('should update known hyphenated attributes for SVG tags', function() {
<ide> var container = document.createElement('div');
<ide>
<del> var beforeUpdate = React.createElement... | 1 |
Python | Python | add a test for masked array creations | 7c24bd4c36c2793238305f3043c7a71cd89c455f | <ide><path>benchmarks/benchmarks/bench_ma.py
<ide> def time_masked_array_l100(self):
<ide> def time_masked_array_l100_t100(self):
<ide> np.ma.masked_array(self.l100, self.t100)
<ide>
<add>class MACreation(Benchmark):
<add> param_names = ['data', 'mask']
<add> params = [[10, 100, 1000],
<add> ... | 1 |
PHP | PHP | ensure queues are only suffixed once | ec7d5b8ce77009757c04cbdc0f0c8bc81b277dbc | <ide><path>src/Illuminate/Queue/SqsQueue.php
<ide> use Aws\Sqs\SqsClient;
<ide> use Illuminate\Contracts\Queue\Queue as QueueContract;
<ide> use Illuminate\Queue\Jobs\SqsJob;
<add>use Illuminate\Support\Str;
<ide>
<ide> class SqsQueue extends Queue implements QueueContract
<ide> {
<ide> public function getQueue($queue... | 2 |
Text | Text | fix typo in index.md | 7f63288b8656da64468162a48fcf36389894f2e1 | <ide><path>guide/english/mathematics/area-of-a-trapezium/index.md
<ide> title: Area of a Trapezium
<ide> ---
<ide> ## Area of a Trapezium
<ide>
<del>Area of a Trapezium is defined by the 2D space enclosed by the Trapezium. A trapezium is a Quadrilateral by 2 oposite parallel sides of equal or unequal length and 2 oppo... | 1 |
Python | Python | fix _update_memory fn call in transformer-xl | ee60840ee6e6c099b913da71464eebe169704637 | <ide><path>src/transformers/modeling_transfo_xl.py
<ide> def init_mems(self, bsz):
<ide> else:
<ide> return None
<ide>
<del> def _update_mems(self, hids, mems, qlen, mlen):
<add> def _update_mems(self, hids, mems, mlen, qlen):
<ide> # does not deal with None
<ide> if mems is N... | 1 |
Javascript | Javascript | protect safari 5.1 from csp | dc9b009c1325e05344fa2216fac71fac3a0a0590 | <ide><path>test/unit/support.js
<ide> testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
<ide> strictEqual( shrinkWrapBlocks, jQuery.support.shrinkWrapBlocks, "jQuery.support.shrinkWrapBlocks properties are the same" );
<ide> });
<ide>
<del>testIframeWithCallback( "Check CSP (https://dev... | 1 |
Text | Text | add src/crypto to cc list for nodejs/crypto | 0ef81d120d02a17ab443370f34e7ca2d19323770 | <ide><path>doc/contributing/collaborator-guide.md
<ide> might impact an LTS release.
<ide> | `lib/zlib` | @nodejs/zlib |
<ide> | `src/async_wrap.*` ... | 1 |
PHP | PHP | fix exception message in reducespread | 91824b0833912ddee194f8fb722b74ab0dc57803 | <ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php
<ide> public function reduceSpread(callable $callback, ...$initial)
<ide>
<ide> if (! is_array($result)) {
<ide> throw new UnexpectedValueException(sprintf(
<del> "%s::reduceMany expects reducer to return a... | 1 |
Javascript | Javascript | create uid instead of displayname | 2d8959d99cf3b55145006f42d9bced2780fb6aa2 | <ide><path>client/next.js
<ide> const Component = evalScript(component).default
<ide>
<ide> const router = new Router({ Component, props })
<ide> const container = document.getElementById('__next')
<del>const appProps = { Component, props, router: {} }
<add>const appProps = { Component, props, router }
<ide>
<ide> re... | 2 |
Javascript | Javascript | resolve an edge case where ref.node can be falsy | 0aa4cc544c2ef93f53eea9373a35228a99f71784 | <ide><path>packages/react-refresh/src/ReactFreshBabelPlugin.js
<ide> export default function(babel, opts = {}) {
<ide> for (let i = 0; i < referencePaths.length; i++) {
<ide> const ref = referencePaths[i];
<ide> if (
<add> ref.node &&
<ide> ref.node.type !== 'JSXIdenti... | 1 |
Python | Python | add benchmark for integer input to np.isin | 60c71bbfd5dc1024bc8ed59e7e7114f5f5359733 | <ide><path>benchmarks/benchmarks/bench_lib.py
<ide> def setup(self, array_size, percent_nans):
<ide>
<ide> def time_unique(self, array_size, percent_nans):
<ide> np.unique(self.arr)
<add>
<add>
<add>class Isin(Benchmark):
<add> """Benchmarks for `numpy.isin`."""
<add>
<add> param_names = ["size", "hi... | 1 |
Javascript | Javascript | fix submit prevention | 86c7d1221c706993044583d51a0c61423fee5bcf | <ide><path>src/ng/directive/form.js
<ide> var formDirectiveFactory = function(isNgForm) {
<ide>
<ide> return {
<ide> pre: function ngFormPreLink(scope, formElement, attr, controller) {
<del> if (!attr.action) {
<add> // if `action` attr is not present on the form, prevent the de... | 2 |
PHP | PHP | update mass assignment to be guarded by default | a8925db5daa892f87bab5af310ed14ef9d408642 | <ide><path>Cake/ORM/Entity.php
<ide> public function __unset($property) {
<ide> *
<ide> * ## Example:
<ide> *
<del> * {{
<del> * $entity->set(['name' => 'andrew', 'id' => 1]);
<del> * echo $entity->name // prints andrew
<del> * echo $entity->id // prints 1
<del> * }}
<add> * {{{
<add> * $entity->set(['name' => 'andr... | 1 |
PHP | PHP | add stub file that i missed before | 1d2af786eb1a14cdfb8e1934ddb8668e7c93e871 | <ide><path>tests/test_app/Plugin/TestPlugin/src/Command/WidgetCommand.php
<add><?php
<add>namespace TestPlugin\Command;
<add>
<add>use Cake\Console\Arguments;
<add>use Cake\Console\Command;
<add>use Cake\Console\ConsoleIo;
<add>
<add>class WidgetCommand extends Command
<add>{
<add> public function execute(Arguments ... | 1 |
Java | Java | fix failing tests | 5e1e29a2dd6e94d7221aa90d21e052ffdc824a06 | <ide><path>spring-core/src/testFixtures/java/org/springframework/core/testfixture/io/buffer/AbstractDataBufferAllocatingTests.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 |
Ruby | Ruby | build the association graph functionally | db994076946f44d9b0fea23ca8715a74cb1f2b87 | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def self.walk_tree(associations, hash)
<ide> # joins #=> []
<ide> #
<ide> def initialize(base, associations, joins)
<del> @join_root = JoinBase.new(base)
<ide> @alias_tracker = AliasTracker.new(base.c... | 3 |
Text | Text | clarify test text in line with test functionality | e0e8ab8409c60482e8f054727b7757934e34971d | <ide><path>curriculum/challenges/english/03-front-end-libraries/react/pass-an-array-as-props.english.md
<ide> tests:
<ide> testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(ToDo)); return mockedComponent.find("List").get(0).props.tasks.length >= 2; })(), "The first <code>Lis... | 1 |
Go | Go | fix input volume path check on windows | 5a38680bd2283c87848d2e7f62a14f0261291c7c | <ide><path>opts/opts.go
<ide> import (
<ide> "net"
<ide> "net/url"
<ide> "os"
<del> "path/filepath"
<add> "path"
<ide> "regexp"
<ide> "strings"
<ide>
<ide> func ValidatePath(val string) (string, error) {
<ide> splited := strings.SplitN(val, ":", 2)
<ide> if len(splited) == 1 {
<ide> containerPath = splited[0]... | 1 |
PHP | PHP | add remove() and insert() | 3d8a955043936e3604e381b728c0aa1deec84b02 | <ide><path>lib/Cake/Test/Case/Utility/Set2Test.php
<ide> public function testSortWithOutOfOrderKeys() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<add>/**
<add> * Test insert()
<add> *
<add> * @return void
<add> */
<add> public function testInsertSimple() {
<add> $a = array(
<add> 'pages' => a... | 2 |
PHP | PHP | apply fixes from styleci | 6f4076a5d2789538a835f63c47c41dfa4845c7b5 | <ide><path>src/Illuminate/Queue/Jobs/Job.php
<ide>
<ide> namespace Illuminate\Queue\Jobs;
<ide>
<del>use DateTime;
<del>use Carbon\Carbon;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Queue\CalculatesDelays;
<ide>
<ide><path>src/Illuminate/Queue/Queue.php
<ide>
<ide> namespace Illuminate\Queue;
<ide>
<de... | 2 |
Python | Python | add filled_like to doc string of test class | 5be86a8af14e30127bdd102c8c0647de9a934ea3 | <ide><path>numpy/core/tests/test_numeric.py
<ide> def test_basic(self):
<ide>
<ide>
<ide> class TestLikeFuncs(TestCase):
<del> '''Test ones_like, zeros_like, and empty_like'''
<add> '''Test ones_like, zeros_like, empty_like and filled_like'''
<ide>
<ide> def setUp(self):
<ide> self.data = [ | 1 |
Mixed | Python | fix the build -- 88 chars per line max. | f34434a214e4c937f3a5a5b0d1f1bd64a3bee7c5 | <ide><path>DIRECTORY.md
<ide>
<ide> ## Computer Vision
<ide> * [Harriscorner](https://github.com/TheAlgorithms/Python/blob/master/computer_vision/harriscorner.py)
<add> * [Meanthreshold](https://github.com/TheAlgorithms/Python/blob/master/computer_vision/meanthreshold.py)
<ide>
<ide> ## Conversions
<ide> * [Bina... | 2 |
Javascript | Javascript | handle sub/super-scripts in rich text | cfdaa5735330cda74df01a0a95a64f5428270771 | <ide><path>src/core/xfa/xhtml.js
<ide> const StyleMapping = new Map([
<ide> ["margin-top", value => measureToString(getMeasurement(value))],
<ide> ["text-indent", value => measureToString(getMeasurement(value))],
<ide> ["font-family", value => value],
<add> ["vertical-align", value => measureToString(getMeasurem... | 1 |
Ruby | Ruby | set proper assertion to be sure the test failed | f0b93d135e63d4795efe1fbd60e5a713ec53c1a2 | <ide><path>railties/test/application/test_test.rb
<ide> def test_truth
<ide> end
<ide> RUBY
<ide>
<del> assert_unsuccessful_run "unit/foo_test.rb", "Expected false to be truthy"
<add> assert_unsuccessful_run "unit/foo_test.rb", "Failure:\nFooTest#test_truth"
<ide> end
<ide>
<ide> test ... | 1 |
Python | Python | document the exceptioninfo class | 6febb44e06b3258867bf0fd270a6d9c6563c55b6 | <ide><path>celery/datastructures.py
<ide> def filled(self):
<ide>
<ide>
<ide> class ExceptionInfo(object):
<add> """Exception wrapping an exception and its traceback.
<add>
<add> :param exc_info: The exception tuple info as returned by
<add> :func:`traceback.format_exception`.
<add>
<add>
<add> .... | 1 |
Text | Text | add v15 rc2 blog post | 7dd71ca48834300e334aab1df1dba7fd89141b66 | <ide><path>docs/_posts/2016-03-16-react-v15-rc2.md
<add>---
<add>title: "React v15.0 Release Candidate 2"
<add>author: zpao
<add>---
<add>
<add>Today we're releasing a second release candidate for version 15. Primarily this is to address 2 issues, but we also picked up a few small changes from new contributors, includi... | 1 |
Python | Python | return actual bools instead of 0 or 1 | a4847b1de5fc8398c2589e04aee1b63ba0592ff4 | <ide><path>numpy/core/numeric.py
<ide> def asarray(a, dtype=None, order=None):
<ide> def asanyarray(a, dtype=None, order=None):
<ide> """Returns a as an array, but will pass subclasses through.
<ide> """
<del> return array(a, dtype, copy=False, order=order, subok=1)
<add> return array(a, dtype, copy=False... | 2 |
Ruby | Ruby | handle delete with limit in arel | 859fba7c4bf7d33b4f9655914ed4bdc85380552e | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def delete_all
<ide> stmt = Arel::DeleteManager.new
<ide> stmt.from(table)
<ide>
<del> if has_join_values? || has_limit_or_offset?
<add> if has_join_values? || offset_value
<ide> @klass.connection.join_to_delete(stmt, arel, arel_... | 9 |
PHP | PHP | use full class instead of self for callable | 375afa5afe724870a965531777c9c3a12b360845 | <ide><path>src/Utility/Hash.php
<ide> public static function check(array $data, string $path): bool
<ide> * @return array Filtered array
<ide> * @link https://book.cakephp.org/4/en/core-libraries/hash.html#Cake\Utility\Hash::filter
<ide> */
<del> public static function filter(array $data, $callback = ... | 1 |
Ruby | Ruby | fix ap test suite after moving stuff to av | 8c2c95e5d22d5e1ebade26f6eeaeda5089e4f658 | <ide><path>actionpack/lib/abstract_controller.rb
<ide> module AbstractController
<ide> autoload :Base
<ide> autoload :Callbacks
<ide> autoload :Collector
<add> autoload :DoubleRenderError, "abstract_controller/rendering.rb"
<ide> autoload :Helpers
<ide> autoload :Logger
<ide> autoload :Translation
<ide><pa... | 7 |
PHP | PHP | fix missing base path in httpsenforcermiddleware | a8d2db674b68991ffe5f4c8289139e557e75e988 | <ide><path>src/Http/Middleware/HttpsEnforcerMiddleware.php
<ide> public function process(ServerRequestInterface $request, RequestHandlerInterface
<ide>
<ide> if ($this->config['redirect'] && $request->getMethod() === 'GET') {
<ide> $uri = $request->getUri()->withScheme('https');
<add> $b... | 2 |
Ruby | Ruby | remove postgresql and mysql audit noise | 816531e28dd476f5f266e3327f0b73b11c23e9ce | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> problem <<-EOS.undent unless dep.tags.any? || f.name =~ /automake/ && dep.name == 'autoconf'
<ide> #{dep} dependency should be "depends_on '#{dep}' => :build"
<ide> EOS
<del> when "git", "ruby", "emacs", "mysql", "mercurial... | 1 |
Ruby | Ruby | move caching module to abstract controller | 40fa818580a9277d8d1a02241f1422dbf83a8aa1 | <ide><path>actionmailer/lib/action_mailer.rb
<ide> module ActionMailer
<ide> autoload :MailHelper
<ide> autoload :Preview
<ide> autoload :Previews, 'action_mailer/preview'
<del> autoload :Caching
<ide> autoload :TestCase
<ide> autoload :TestHelper
<ide> autoload :MessageDelivery
<ide><path>actionmailer/lib... | 7 |
Text | Text | add guide for html value attribute challenge | 7573252fa05438dfb5dbd46301a8cb77a6e44b6d | <ide><path>guide/english/certifications/responsive-web-design/basic-html-and-html5/use-the-value-attribute-with-radio-buttons-and-checkboxes/index.md
<add>---
<add>title: Use the value attribute with Radio Buttons and Checkboxes
<add>---
<add>## Use the value attribute with Radio Buttons and Checkboxes
<add>To pass the... | 1 |
Javascript | Javascript | use class fields in observe.js | c37fdacb348fa8f735f0c01fdfb0eefe6152dd34 | <ide><path>lib/internal/perf/observe.js
<ide> const {
<ide>
<ide> const { inspect } = require('util');
<ide>
<del>const kBuffer = Symbol('kBuffer');
<del>const kCallback = Symbol('kCallback');
<ide> const kDispatch = Symbol('kDispatch');
<del>const kEntryTypes = Symbol('kEntryTypes');
<ide> const kMaybeBuffer = Symbo... | 1 |
Text | Text | add rvagg to the tc | ac1fb39ce81373c161b4c7f873f96ae1830b0875 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B
<ide> * **Colin Ihrig** ([@cjihrig](https://github.com/cjihrig)) <cjihrig@gmail.com>
<ide> * **Mikeal Rogers** ([@mikeal](https://github.com/mikeal)) <mikeal... | 1 |
Ruby | Ruby | add options to field_set_tag | 8c105ee0c888a63cdbf593f0bfe688065b3e09e2 | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def image_submit_tag(source, options = {})
<ide> # Creates a field set for grouping HTML form elements.
<ide> #
<ide> # <tt>legend</tt> will become the fieldset's title (optional as per W3C).
<add> # <tt>options</tt> accept th... | 2 |
Javascript | Javascript | write otf header using a string, not an array | f337d6105c304b7af66585626c268fb335b33517 | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> convert: function font_convert(aFont, aProperties) {
<ide> var otf = new Uint8Array(kMaxFontFileSize);
<ide>
<del> function createOpenTypeHeader(aFile, aOffsets, aNumTables) {
<add> function s2a(s) {
<add> var a = [];
<add> for... | 1 |
Ruby | Ruby | require arg for --root-url | 7116b74705589f846428b1af4e0db7ca9feb0302 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_args
<ide> depends_on: "--write",
<ide> description: "When passed with `--write`, a new commit will not generated after writing changes "\
<ide> "to the formula file."
<del> flag "--root-url",
<add> flag "-... | 2 |
Ruby | Ruby | specify order by enumsortorder for postgres enums | 9b73129c3e1158fb922927399095327b1807489d | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def enum_types
<ide> query = <<~SQL
<ide> SELECT
<ide> type.typname AS name,
<del> string_agg(enum.enumlabel, ',') AS value
<add> string_agg(enum.enumlabel, ',' ORDER BY enum.enu... | 1 |
Python | Python | fix failing pylint checks | 5117aaa797e2f6c76912ddcee1fe91bde5b51d83 | <ide><path>airflow/utils/serve_logs.py
<ide> import os
<ide>
<ide> import flask
<del>from setproctitle import setproctitle
<add>from setproctitle import setproctitle # pylint: disable=no-name-in-module
<ide>
<ide> from airflow.configuration import conf
<ide> | 1 |
Text | Text | fix typo in document | 4e557b6c6d64b495dd754c706b19a619714e1f0d | <ide><path>guides/source/active_record_querying.md
<ide> SELECT * FROM customers WHERE (customers.orders_count NOT IN (1,3,5))
<ide> If a query has a hash condition with non-nil values on a nullable column, the records that have `nil` values on the nullable column won't be returned. For example:
<ide>
<ide> ```ruby
<d... | 1 |
Ruby | Ruby | use templatepath in digestor | 54f8d0b2696a9a557249a8f1f1b071b427a88568 | <ide><path>actionview/lib/action_view/digestor.rb
<ide> def digest(name:, format: nil, finder:, dependencies: nil)
<ide> # (Concurrent::Map's lookups have volatile semantics)
<ide> finder.digest_cache[cache_key] || @@digest_mutex.synchronize do
<ide> finder.digest_cache.fetch(cache_key) do # r... | 1 |
Python | Python | add better error message for model.summary() | 32fee92df5fa21e3d1ff6375f7a5a923636c311b | <ide><path>keras/engine/network.py
<ide> def summary(self, line_length=None, positions=None, print_fn=None):
<ide> """
<ide> if not self.built:
<ide> raise ValueError(
<del> 'This model has never been called, thus its weights '
<del> 'have not yet been created, ... | 1 |
Javascript | Javascript | add a small amount to docs | 16cf465575325bf21a94d2a345d8bf4d9d097f11 | <ide><path>Chart.js
<ide> // Boolean - whether or not the chart should be responsive and resize when the browser does.
<ide> responsive: false,
<ide>
<del> // Boolean - whether to maintain the starting aspect ratio or not when responsive
<add> // Boolean - whether to... | 2 |
Ruby | Ruby | return an empty array if no tracker is found | 445284906476f03acf37cab2b7dc265a985531c3 | <ide><path>actionpack/lib/action_view/dependency_tracker.rb
<ide> class DependencyTracker
<ide> @trackers = ThreadSafe::Cache.new
<ide>
<ide> def self.find_dependencies(name, template)
<del> handler = template.handler
<del> @trackers.fetch(handler).call(name, template)
<add> tracker = @trackers[... | 2 |
Text | Text | improve changelog entry [ci skip] | 974335d4d0635bab660413b4533d8f6c5eb1aac0 | <ide><path>actionview/CHANGELOG.md
<del>* Only cache template digests if config.cache_template_loading, since
<del> ActionView::Resolver.caching is set to the same value as
<del> config.cache_template_loading
<add>* Only cache template digests if `config.cache_template_loading` id true.
<ide>
<del> *Josh ... | 1 |
Go | Go | modify usage of docker exec command in exec.md | 26bd3e8b11dd9ef9a8226341ed04cbc8a58776cc | <ide><path>api/client/container/exec.go
<ide> func NewExecCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> var opts execOptions
<ide>
<ide> cmd := &cobra.Command{
<del> Use: "exec CONTAINER COMMAND [ARG...]",
<add> Use: "exec [OPTIONS] CONTAINER COMMAND [ARG...]",
<ide> Short: "Run a command in a ... | 1 |
Javascript | Javascript | append bundle script to body (#353) | 249a0c40078d88308e84401cc195856068df4d6b | <ide><path>lib/document.js
<ide> function createClientScript ({ dev, cdn }) {
<ide> script.onload = function () { fn(null) }
<ide> script.onerror = fn
<ide> script.crossorigin = 'anonymous'
<del> document.head.appendChild(script)
<add> document.body.appendChild(script)
<ide> ... | 1 |
Javascript | Javascript | fix error message | 922985bbe75a01387e9f1bea6a132174fbc783d1 | <ide><path>lib/JavascriptModulesPlugin.js
<ide> class JavascriptModulesPlugin {
<ide> static getCompilationHooks(compilation) {
<ide> if (!(compilation instanceof Compilation)) {
<ide> throw new TypeError(
<del> "The 'compilation' argument must be an instance of JavascriptParser"
<add> "The 'compilation' ar... | 2 |
Python | Python | add gpu to the unitest | 12412caf56dee8b296d500e201ad6b770eaf2f91 | <ide><path>glances/plugins/glances_help.py
<ide> def __init__(self, args=None, config=None):
<ide> self.view_data = {}
<ide> self.generate_view_data()
<ide>
<add> def reset(self):
<add> """No stats. It is just a plugin to display the help."""
<add> pass
<add>
<ide> def update(self)... | 4 |
Text | Text | add oliver to the platform dev team 🎉 | 4f2a5d05dd0d9a2bb3953ab082f99bd4ed83eac8 | <ide><path>docs/index.md
<ide> Read our [How to Contribute to Open Source Guide](https://github.com/freeCodeCam
<ide>
<ide> ### Where are the Guide articles (guide.freecodecamp.org)?
<ide>
<del>We have sunset the general guide articles.
<add>We have sunset the general guide articles.
<ide>
<del>The guide articles r... | 1 |
Text | Text | add info about dev vs. prod builds | c877451887d1fc531e7c2637681f47cf50d6a5de | <ide><path>docs/downloads.md
<ide> title: Downloads
<ide> layout: single
<ide> ---
<ide> Download the starter kit to get everything you need to
<del>[get started with React](/react/docs/getting-started.html).
<add>[get started with React](/react/docs/getting-started.html). The starter kit includes React, the in-browser... | 1 |
PHP | PHP | add docs for meridian | 1d664086a31622075d6cdc20e1af1349bc8acc2a | <ide><path>src/View/Input/DateTime.php
<ide> public function __construct($templates, $selectBox) {
<ide> * - `hour` - Array of options for the hour select box.
<ide> * - `minute` - Array of options for the minute select box.
<ide> * - `second` - Set to true to enable the seconds input. Defaults to false.
<add> * - `... | 1 |
Javascript | Javascript | add deprecation warning for status-bar | 7fd53202473e019c2fc54eaf93b749aa15151fc5 | <ide><path>Libraries/react-native/react-native-implementation.js
<ide> module.exports = {
<ide> return require('RefreshControl');
<ide> },
<ide> get StatusBar() {
<add> warnOnce(
<add> 'statusbar-moved',
<add> 'StatusBar has been extracted from react-native core and will be removed in a future rele... | 1 |
Ruby | Ruby | add all components | 6c3b8e100f0f3dc23fe6c77cfd049ba126e58e8c | <ide><path>Library/Homebrew/rubocops/components_order_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> [{ name: :bottle, type: :method_call }],
<ide> [{ name: :keg_only, type: :method_call }],
<ide> [{ name: :option, type: :method_call }],
<... | 1 |
Java | Java | add simple integration test | e29eaaddc86965fd3cc3124fb7d37b1ef54a90c3 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java
<add>/**
<add> * Copyright (c) 2014-present, Facebook, Inc.
<add> * All rights reserved.
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source... | 2 |
Javascript | Javascript | fix bug with view extension | 919aa2b91b253dda2202f7e816fc499b712b1a78 | <ide><path>packages/sproutcore-touch/lib/system/view.js
<ide> SC.View.reopen(
<ide> }
<ide> }
<ide>
<del> console.log('setting gestures property to ',gestures);
<ide> set(this, 'gestures', gestures);
<ide> }
<ide>
<del> return;
<add> return this._super();
<ide> }
<ide>
<ide> ... | 1 |
Javascript | Javascript | use jquery.parsejson instead of json.parse | ced9d155f010bc456745a55a63ca959db9d405d3 | <ide><path>src/data.js
<ide> function dataAttr( elem, key, data ) {
<ide> data === "null" ? null :
<ide> // Only convert to a number if it doesn't change the string
<ide> +data + "" === data ? +data :
<del> rbrace.test( data ) ? JSON.parse( data ) :
<add> rbrace.test( data ) ? jQuery.parseJSON( d... | 2 |
PHP | PHP | fix merge conflict issues and failing tests | 2af416676f8a0d64b7c4b8d34e2a1c721aba4fbc | <ide><path>Cake/ORM/Query.php
<ide> public function first() {
<ide> $this->limit(1);
<ide> }
<ide> $this->bufferResults();
<del><<<<<<< HEAD
<del> $this->_results = $this->execute();
<del> return $this->_results->first();
<del>=======
<ide> $this->_results = $this->all();
<del> return $this->_results->one()... | 2 |
Javascript | Javascript | fix indentation in angular.filter.html examples | 8bb9f12961a931edc15801383c05c917c6ba09fb | <ide><path>src/filters.js
<ide> angularFilter.uppercase = uppercase;
<ide> * @example
<ide> <doc:example>
<ide> <doc:source>
<del> Snippet: <textarea name="snippet" cols="60" rows="3">
<del> <p style="color:blue">an html
<del> <em onmouseover="this.textContent='PWN3D!'">click he... | 1 |
Mixed | Javascript | fix first render of with-react-helmet example | b05df7087212ba4384d8aec93c769089491a1b27 | <ide><path>examples/with-react-helmet/README.md
<ide> now
<ide>
<ide> This an minimalistic example of how to combine next.js and [react-helmet](https://github.com/nfl/react-helmet).
<ide> The title of the page shall be changed to "Hello next.js!"
<add>If you go to the page `/about`, the title will be overridden to "Ab... | 4 |
Javascript | Javascript | add test coverage for fs.truncate | 74f854e769fbb595b007b25d7bd79e7fbdf043b8 | <ide><path>test/parallel/test-fs-truncate.js
<ide> function testFtruncate(cb) {
<ide> }));
<ide> }
<ide>
<add>{
<add> const file7 = path.resolve(tmp, 'truncate-file-7.txt');
<add> fs.writeFileSync(file7, 'Hi');
<add> fs.truncate(file7, undefined, common.mustCall(function(err) {
<add> assert.ifError(err);
<add>... | 1 |
Javascript | Javascript | remove themes from donate pages | f737b24b6fc4d94320f8862f689b70e631ff520d | <ide><path>client/src/components/Donation/components/DonateFormChildViewForHOC.js
<ide> const propTypes = {
<ide> isSignedIn: PropTypes.bool,
<ide> stripe: PropTypes.shape({
<ide> createToken: PropTypes.func.isRequired
<del> }),
<del> theme: PropTypes.string
<add> })
<ide> };
<ide> const initialState = {
<id... | 3 |
Java | Java | add relay as a category | 652dfd0b48f5b2df65e07ac1c8dd1025e5704caf | <ide><path>ReactAndroid/src/main/java/com/facebook/debug/tags/ReactDebugOverlayTags.java
<ide> public class ReactDebugOverlayTags {
<ide> "UI Manager",
<ide> "UI Manager View Operations (requires restart\nwarning: this is spammy)",
<ide> Color.CYAN);
<add> public static final DebugOverlay... | 1 |
Javascript | Javascript | expose module on entry dep | 07e29e2348fcabc1dbbc99807fdce0f3c4a5c133 | <ide><path>lib/Compilation.js
<ide> Compilation.prototype._addModuleChain = function process(context, dependency, on
<ide> Compilation.prototype.addEntry = function process(context, entry, name, callback) {
<ide> this._addModuleChain(context, entry, function(module) {
<ide>
<add> entry.module = module;
<ide> this.... | 1 |
Javascript | Javascript | flip the switch on checkon | cb707d8bd0ccd40935a41f0814ff0b85a1e25c40 | <ide><path>src/attributes/val.js
<ide> jQuery.each([ "radio", "checkbox" ], function() {
<ide> }
<ide> }
<ide> };
<del> if ( support.checkOn ) {
<add> if ( !support.checkOn ) {
<ide> jQuery.valHooks[ this ].get = function( elem ) {
<ide> // Support: Webkit
<ide> // "" is returned instead of "on" if a valu... | 1 |
Java | Java | add some test cases in stringutilstests | c5b8406def18c1b0f5791e5892643fd0b1937a04 | <ide><path>spring-core/src/test/java/org/springframework/util/StringUtilsTests.java
<ide> void containsWhitespace() {
<ide> assertThat(StringUtils.containsWhitespace("a")).isFalse();
<ide> assertThat(StringUtils.containsWhitespace("abc")).isFalse();
<ide> assertThat(StringUtils.containsWhitespace(" ")).isTrue();
... | 1 |
Text | Text | change emphasis style in blender | 3a9c4cf1d6f5c8a6eef191f9735787ef379cffbe | <ide><path>guide/english/3d/blender/index.md
<ide> ---
<ide> title: Blender
<ide> ---
<del>
<ide> ## Blender
<ide>
<ide> Blender is a free and open source 3D creation suite. It's used for modeling, creating photorealistic renders, simulation, model sculpting, architecture models, compositing, character design, animati... | 1 |
Ruby | Ruby | fix initializable tests | 5eb3b4d9a78268753d009404810619cf93cf6581 | <ide><path>railties/lib/rails/initializable.rb
<ide> def initializer(name, opts = {}, &blk)
<ide>
<ide> def run_initializers(*args)
<ide> return if @ran
<del> initializers_chain.each do |initializer|
<add> initializers_chain.tsort.each do |initializer|
<ide> instance_exec(*args, &... | 1 |
Ruby | Ruby | fix tap variable naming | a0980f05a1399a434b057e551995847fa9db4e64 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def test_bot
<ide> safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}"
<ide>
<ide> # Bintray upload (will take over soon)
<del> bintray_repo = Bintray.repository(tap_name)
<add> bintray_repo = Bintray.repository(tap)... | 1 |
Go | Go | use sequential file access | 7c29f5beed19b55ac8f14880752d4825ba23eccf | <ide><path>cli/command/image/load.go
<ide> package image
<ide> import (
<ide> "fmt"
<ide> "io"
<del> "os"
<ide>
<ide> "golang.org/x/net/context"
<ide>
<ide> "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/cli/command"
<ide> "github.com/docker/docker/pkg/jsonmessage"
<add> "github.com/docker/docke... | 6 |
Ruby | Ruby | use assert_predicate and assert_not_predicate | 94333a4c31bd10c1f358c538a167e6a4589bae2d | <ide><path>actioncable/test/channel/base_test.rb
<ide> def rm_rf
<ide> @channel.subscribe_to_channel
<ide>
<ide> assert @channel.room
<del> assert @channel.subscribed?
<add> assert_predicate @channel, :subscribed?
<ide>
<ide> @channel.unsubscribe_from_channel
<ide>
<del> assert ! @channel.room
<... | 209 |
Text | Text | replace u+2018 and u+2019 with u+0027 in manpages | 19c43a69156ba70c5fa11a7cc55ecbd82f8d9421 | <ide><path>man/docker-events.1.md
<ide> Docker networks report the following events:
<ide>
<ide> The `--since` and `--until` parameters can be Unix timestamps, date formatted
<ide> timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
<del>relative to the client machine’s time. If you do not provide the `-... | 3 |
Javascript | Javascript | change the execution order | 41173de77b04ec9b659dc59d6b448556147a410e | <ide><path>benchmark/compare.js
<ide> if (benchmarks.length === 0) {
<ide> // Create queue from the benchmarks list such both node versions are tested
<ide> // `runs` amount of times each.
<ide> const queue = [];
<del>for (let iter = 0; iter < runs; iter++) {
<del> for (const filename of benchmarks) {
<add>for (const ... | 1 |
PHP | PHP | rename a few things | 75393db929a43a6b56a85bdc65a4f607f77efcd8 | <ide><path>app/Http/Controllers/Auth/AuthController.php
<ide> <?php namespace App\Http\Controllers\Auth;
<ide>
<del>use Illuminate\Contracts\Auth\Authenticator;
<add>use Illuminate\Contracts\Auth\Guard;
<ide>
<ide> use App\Http\Requests\Auth\LoginRequest;
<ide> use App\Http\Requests\Auth\RegisterRequest;
<ide> class ... | 4 |
Javascript | Javascript | improve sentence flow | bdbe4fd34aecdfdbace0541be58d05ea4cffba6b | <ide><path>src/Angular.js
<ide> function getNgAttribute(element, ngAttr) {
<ide> * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other.
<ide> *
<ide> * You can specify an **AngularJS module** to be used as the root module for the application. This
<del> * module will be load... | 1 |
Python | Python | add attribute caching for flattened_layers | fffa6a80ca04738dfd66ea5f54cd6e1471e7b73f | <ide><path>keras/models.py
<ide> def __init__(self, layers=[], name=None):
<ide> self.inbound_nodes = []
<ide> self.outbound_nodes = []
<ide> self.built = False
<add> self._flattened_layers = None
<ide>
<ide> if not name:
<ide> prefix = 'sequential_'
<ide> def add(sel... | 1 |
Go | Go | set a timeout on the netlink handle sockets | 763f0fa1daed048384f02dba79907f16da486c7f | <ide><path>libnetwork/drivers/overlay/ov_network.go
<ide> func populateVNITbl() {
<ide> }
<ide> defer nlh.Delete()
<ide>
<add> err = nlh.SetSocketTimeout(soTimeout)
<add> if err != nil {
<add> logrus.Warnf("Failed to set the timeout on the netlink handle sockets for vni table population: %v", err)
<add> ... | 4 |
Javascript | Javascript | remove non-htmlbars template path | ed06f9ecc7af2e2191c319162630303540593c52 | <ide><path>packages/ember-views/lib/views/view.js
<ide> var View = CoreView.extend(
<ide> var template = get(this, 'template');
<ide>
<ide> if (template) {
<del> if (template.isHTMLBars) {
<del> return template.render(context, options, { contextualElement: morph.contextualElement }).fragment;
<del>... | 1 |
Python | Python | fix undefined function and add integer divisions | e2726316605ab15e94500a78cf2f58e42fa83dd4 | <ide><path>numpy/numarray/functions.py
<ide> def fromfile(infile, type=None, shape=None, sizing=STRICT,
<ide> ##file whose size may be determined before allocation, should be
<ide> ##quick -- only one allocation will be needed.
<ide>
<del> recsize = dtype.itemsize * np.product([i for i in shape if i != -1])... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.