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
fix lint errors
17eaed7f99098ee236e5341d93bfacbcc66a989b
<ide><path>server/boot/a-extendUserIdent.js <ide> export default function({ models }) { <ide> return Observable.throw( <ide> new Error( <ide> dedent` <del> Your GitHub is already associated with another account. You may have accidentally created a duplicate account. <del> No worrie...
1
Mixed
Python
fix some typos in official/
c1f35955d64a89ed2e2ca919eb84873c581d9441
<ide><path>official/legacy/image_classification/efficientnet/tfhub_export.py <ide> def export_tfhub(model_path, hub_destination, model_name): <ide> image_input = tf.keras.layers.Input( <ide> shape=(None, None, 3), name="image_input", dtype=tf.float32) <ide> x = image_input * 255.0 <del> ouputs = efficientnet...
22
Javascript
Javascript
add documentation on .focus and .blur
bb98fddbec357e3966be3f599c79266de8ccbe9f
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> const DataDetectorTypes = [ <ide> * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput); <ide> * ``` <ide> * <add> * Two methods exposed via the native element are .focus() and .blur() that <add> * will focus or blur the TextInput progr...
1
Ruby
Ruby
simplify implementation of `mysqldatabasetasks`
a37d03c4b08451765acc721b51a4b5b7eab7e8cc
<ide><path>activerecord/lib/active_record/railties/jdbcmysql_error.rb <del># frozen_string_literal: true <del> <del>#FIXME Remove if ArJdbcMysql will give. <del>module ArJdbcMySQL #:nodoc: <del> class Error < StandardError #:nodoc: <del> attr_accessor :error_number, :sql_state <del> <del> def initialize(msg) <de...
3
Javascript
Javascript
remove unsupported property "optimize"
9879466df6e0c167e8ebfb4594bcf42aaf49265c
<ide><path>test/Examples.test.js <ide> describe("Examples", function() { <ide> <ide> function processOptions(options) { <ide> options.context = examplePath; <del> options.optimize = options.optimize || {}; <ide> options.output = options.output || {}; <ide> options.output.pathInfo = true; <ide> op...
1
Text
Text
fix a typo in the code of testing guide
54c1cdf4ce36fd4d0a5e7036d61ad35a9e8841e3
<ide><path>guides/source/testing.md <ide> instance variable: <ide> <ide> ```ruby <ide> # setting a HTTP Header <del>@request.headers["Accepts"] = "text/plain, text/html" <add>@request.headers["Accept"] = "text/plain, text/html" <ide> get :index # simulate the request with custom header <ide> <ide> # setting a CGI var...
1
Python
Python
remove unused import
31a303c38f42649972755fdacf6f27de62e79000
<ide><path>keras/layers/core.py <ide> import numpy as np <ide> <ide> from .. import activations, initializations <del>from ..utils.theano_utils import shared_zeros, floatX, shared_scalar <add>from ..utils.theano_utils import shared_zeros, floatX <ide> from ..utils.generic_utils import make_tuple <ide> from .. import r...
1
PHP
PHP
remove unused parameter
9f80004920a396d8a6e9e1c46c58155657d4158a
<ide><path>lib/Cake/Test/Case/Utility/SetTest.php <ide> public function testRemove() { <ide> 'files' => array('name' => 'files') <ide> ); <ide> <del> $result = Set::remove($a, 'files', array('name' => 'files')); <add> $result = Set::remove($a, 'files'); <ide> $expected = array( <ide> 'pages' => array(...
1
Text
Text
create model-card for lordtt13/emo-mobilebert
dc4755c6d59238ffea4843d06610a29c522257fb
<ide><path>model_cards/lordtt13/emo-mobilebert/README.md <add>--- <add>language: en <add>datasets: <add>- emo <add>--- <add> <add>## Emo-MobileBERT: a thin version of BERT LARGE, trained on the EmoContext Dataset from scratch <add> <add>### Details of MobileBERT <add> <add>The **MobileBERT** model was presented in [Mob...
1
Ruby
Ruby
load all records in relation#inspect
d8ca791f48ea096d0e19bdc0ef1d021764a79f20
<ide><path>activerecord/lib/active_record/relation.rb <ide> def values <ide> end <ide> <ide> def inspect <del> limit = [limit_value, 11].compact.min <del> entries = loaded? ? to_a.take(limit) : limit(limit) <del> <del> entries.map!(&:inspect) <add> entries = to_a.take([limit_value, 11].co...
1
PHP
PHP
use getrequest() instead of request
698ad5d27beed9dd9c8fa6a1ec5ad2278dd5bf15
<ide><path>src/Controller/Component/CsrfComponent.php <ide> class CsrfComponent extends Component <ide> */ <ide> public function initialize(array $config) <ide> { <del> if ($this->getController()->request->getParam('_csrfToken') !== false) { <add> if ($this->getController()->getRequest()->get...
1
PHP
PHP
remove extra indentation
3792fb19746b65b3455ca43ee1bba793fbc1f04e
<ide><path>src/TestSuite/TestCase.php <ide> public function deprecated($callable) <ide> { <ide> $errorLevel = error_reporting(); <ide> error_reporting(E_ALL ^ E_USER_DEPRECATED); <del> $callable(); <add> $callable(); <ide> error_reporting($errorLevel); <ide> } <ide>
1
PHP
PHP
remove requestaction from requesthandlercomponent
0930645a43092da6c4d06f4e4eecc5191d25c02a
<ide><path>lib/Cake/Controller/Component/RequestHandlerComponent.php <ide> use Cake\Core\App; <ide> use Cake\Core\Configure; <ide> use Cake\Error; <del>use Cake\Routing\RequestActionTrait; <ide> use Cake\Routing\Router; <ide> use Cake\Utility\Inflector; <ide> use Cake\Utility\Xml; <ide> */ <ide> class RequestHandlerCo...
1
Text
Text
update triaging guidelines
41e648a47f70c8e82cfbb11012c83255d051d528
<ide><path>TRIAGING.md <ide> # Triage new issues/PRs on github <ide> <ide> This document shows the steps the Angular team is using to triage issues. <del>The labels are used later on for planning releases. <add>The labels are used later on for [planning releases](#assigning-work). <ide> <del>## Tips ## <ide> <del>* ...
1
Javascript
Javascript
fix code style/grammar on synthetic event warning
42602a8922398901c4e29c1958993190f74e3249
<ide><path>src/renderers/dom/client/syntheticEvents/SyntheticEvent.js <ide> assign(SyntheticEvent.prototype, { <ide> this.defaultPrevented = true; <ide> var event = this.nativeEvent; <ide> if (__DEV__) { <del> warning(event, <del> 'This Synthetic event is reused for performance reasons. If you\'...
2
Text
Text
fix broken documentation links
f2682537e0fa91bb415be1a64e6bc85275129141
<ide><path>docs/api-guide/views.md <ide> Each of these decorators takes a single argument which must be a list or tuple o <ide> <ide> [cite]: http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html <ide> [cite2]: http://www.boredomandlaziness.org/2012/05/djangos-cbvs-are-not-mistake-but.html <del>[se...
1
Python
Python
break some long lines
70e34252dc224ace1192cb8534fd55442afe3dfe
<ide><path>numpy/ma/tests/test_extras.py <ide> def test_union1d(self): <ide> control = array([1, 2, 3, 4, 5, 7, -1], mask=[0, 0, 0, 0, 0, 0, 1]) <ide> assert_equal(test, control) <ide> <del> # Tests gh-10340, arguments to union1d should be flattened if they are not already 1D <add> # Test...
1
Javascript
Javascript
implement text decorations in rendering layer
ac8a9083856e52748a0e31a79843117d52b963a7
<ide><path>spec/text-editor-component-spec.js <ide> describe('TextEditorComponent', () => { <ide> }) <ide> }) <ide> <add> describe('text decorations', () => { <add> it('injects spans with custom class names and inline styles based on text decorations', async () => { <add> const {component, element, edit...
2
Ruby
Ruby
extend stdlib queue for the test queue
2187b5f2f1d383b7a46baf72334c9a3332a23e84
<ide><path>railties/lib/rails/queueing.rb <ide> module Queueing <ide> # <ide> # Jobs are run in a separate thread to catch mistakes where code <ide> # assumes that the job is run in the same thread. <del> class TestQueue <del> attr_reader :contents <del> <del> def initialize <del> @conte...
2
Text
Text
remove stale video from nest anchor element
3fbe1ebc0523bf442a9ae868b58ef55e530049fe
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md <ide> id: bad87fee1348bd9aede08817 <ide> title: Nest an Anchor Element within a Paragraph <ide> challengeType: 0 <del>videoUrl: 'https://scrimba.com/p/pVMPUv/cb6k8Cb' <ide> forumTopicId: 1...
1
Ruby
Ruby
fix typo in actionableerror [skip ci]
99fd13d967ff1d21675bf1cebf375878e4575cda
<ide><path>activesupport/lib/active_support/actionable_error.rb <ide> # frozen_string_literal: true <ide> <ide> module ActiveSupport <del> # Actionable errors let's you define actions to resolve an error. <add> # Actionable errors lets you define actions to resolve an error. <ide> # <ide> # To make an error acti...
1
Ruby
Ruby
add caution and restyle components
e90bbbdd837ffc83dccbd05528c4f1521e3956ee
<ide><path>actionpack/lib/action_controller/assertions.rb <ide> def assert_dom_not_equal(expected, actual, message="") <ide> end <ide> <ide> # ensures that the passed record is valid by active record standards. returns the error messages if not <del> def assert_valid(record) ...
3
Text
Text
reword devops guide
2d647b1638b3f9a0efe5b8e08568d8c13a73d7b2
<ide><path>docs/devops.md <ide> Let us know, if you have feedback or queries, and we will be happy to clarify. <ide> <ide> ## How do we build, test and deploy the codebase? <ide> <del>Our codebase is continuously built, tested and deployed to **separate sets of infrastructure (Servers, Databases, CDNs, etc.)**. <ad...
1
PHP
PHP
use full namespaces in docblocks
7c5acaa81ea76c0ceb64c0281c70ccffbad9410b
<ide><path>src/Event/EventDispatcherTrait.php <ide> namespace Cake\Event; <ide> <ide> /** <del> * Implements EventDispatcherInterface. <add> * Implements Cake\Event\EventDispatcherInterface. <ide> * <ide> */ <ide> trait EventDispatcherTrait <ide><path>src/Event/EventManagerTrait.php <ide> /** <ide> * Provides the e...
2
Go
Go
ensure container name on register
a9ed238bb76774c142107b3f06e8c9e9a1e59e65
<ide><path>runtime.go <ide> func (runtime *Runtime) Register(container *Container) error { <ide> if err := validateID(container.ID); err != nil { <ide> return err <ide> } <add> if err := runtime.ensureName(container); err != nil { <add> return err <add> } <ide> <ide> // init the wait lock <ide> container.waitLo...
3
Javascript
Javascript
increase test coverage for lib/zlib.js
3eea668c7a5b5b89ed052c8bdeda4f5b6277f311
<ide><path>lib/zlib.js <ide> function Zlib(opts, mode) { <ide> opts.finishFlush : constants.Z_FINISH; <ide> <ide> if (opts.chunkSize) { <del> if (opts.chunkSize < constants.Z_MIN_CHUNK || <del> opts.chunkSize > constants.Z_MAX_CHUNK) { <add> if (opts.chunkSize < constants.Z_MIN_CHUNK) { <ide> ...
2
Javascript
Javascript
adjust nomenclature (es)
7d147d6c95af8880eba20192483e6495eb08dd37
<ide><path>src/locale/es.js <ide> <ide> import moment from '../moment'; <ide> <del>var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), <del> monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); <add>var monthsShortDot = 'Ene._Feb._Mar._Abr._May._Jun...
1
Python
Python
update docstrings for crontab constructor
a83cc6e5ffe5addf90ae538b734b8b5555c10b16
<ide><path>celery/task/schedules.py <ide> class crontab(schedule): <ide> :class:`PeriodicTask` to add cron-like scheduling. <ide> <ide> Like a :manpage:`cron` job, you can specify units of time of when <del> you would like the task to execute. While not a full implementation <del> of cron's features, it ...
1
Text
Text
fix hook mistypes and links to types
45fa216ee533abc189d4b9bf0fc8f40430af7ef4
<ide><path>doc/api/esm.md <ide> CommonJS modules loaded. <ide> <ide> ### Hooks <ide> <del>#### <code>resolve</code> hook <add>#### `resolve(specifier, context, defaultResolve)` <ide> <ide> > Note: The loaders API is being redesigned. This hook may disappear or its <ide> > signature may change. Do not rely on the API...
1
Text
Text
linkify some links
b6cbe1afa250fe7f717033f5e25b9c5f7557dcc8
<ide><path>docs/Releases.md <ide> If this is a major or minor release (e.g. X.0.0 or X.Y.0) then there are a few m <ide> 1. Before creating the tag you should delete any `odisabled` code, make any <ide> `odeprecated` code `odisabled` and add any new `odeprecations` that are <ide> desired. <del>2. Write up a relea...
1
Python
Python
fix extra links in gannt view
1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
<ide><path>airflow/www/views.py <ide> def gantt(self, session=None): <ide> # https://issues.apache.org/jira/browse/AIRFLOW-2143 <ide> try_count = ti.prev_attempted_tries <ide> gantt_bar_items.append((ti.task_id, ti.start_date, end_date, ti.state, try_count)) <del> tasks.ap...
2
Text
Text
fix typo in one of the links
2e5c2e16457648a8a9d07948feb549f124d9e463
<ide><path>docs/how-to-work-on-coding-challenges.md <ide> Challenge solution code. <ide> <ide> Creating and Editing Challenges: <ide> <del>1. [Challenge Style Guide](style-guide-for-curriclum-challenges.md) - how to create and format challenges <add>1. [Challenge Style Guide](style-guide-for-curriculum-challenges.md)...
1
Python
Python
update setup.py metadata
e4e35296fb4a6af49c18dc814629a6acfdbe96a2
<ide><path>setup.py <ide> setup( <ide> name="transformers", <ide> version="2.0.0", <del> author="Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Google AI Language Team Authors, Open AI team Authors", <add> author="Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Google AI Language Te...
1
Python
Python
add numpyconfig.h to the install
d42ab1598a44cb00bffcc907605013eca012dbf9
<ide><path>numpy/core/setup.py <ide> def generate_numpyconfig_h(ext, build_dir): <ide> print target_f.read() <ide> target_f.close() <ide> print 'EOF' <add> config.add_data_files((header_dir, target)) <ide> return target <ide> <ide> def generate_api_func(module_nam...
1
Javascript
Javascript
fix typo in injector documentation
271d2bed3afacc780b40af8b692c40a031d79f9d
<ide><path>src/auto/injector.js <ide> * // create an injector <ide> * var $injector = angular.injector(['ng']); <ide> * <del> * // use the injector to kick of your application <add> * // use the injector to kick off your application <ide> * // use the type inference to auto inject arguments, or use implic...
1
Ruby
Ruby
remove osx-gcc from brew-doctor
b5268a877e1de7c31e7f0b7e3abdfde61c5131ad
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_missing_deps <ide> <ide> def check_git_status <ide> HOMEBREW_REPOSITORY.cd do <del> cmd = `git status -s Library/Homebrew/`.chomp <add> cmd = `git status -s Library/Homebrew/ 2> /dev/null`.chomp <ide> if system "/usr/bin/which -s git" and File.direc...
1
Javascript
Javascript
remove isnode call from map polyfill
f377926677987c018a48f1aefb7745413467eacc
<ide><path>Libraries/vendor/core/Map.js <ide> <ide> const _shouldPolyfillES6Collection = require('_shouldPolyfillES6Collection'); <ide> const guid = require('guid'); <del>const isNode = require('fbjs/lib/isNode'); <ide> const toIterator = require('toIterator'); <ide> <ide> module.exports = (function(global, undefined...
1
PHP
PHP
fix logic around marking services resolved or not
d17b2c1a462273606438f3a42b16747d75e8d7f1
<ide><path>src/Illuminate/Container/Container.php <ide> public function bound($abstract) <ide> return isset($this[$abstract]) || isset($this->instances[$abstract]); <ide> } <ide> <add> /** <add> * Determine if the given abstract type has been resolved. <add> * <add> * @param string $abstract <add> * @return bo...
2
Javascript
Javascript
remove extraneous semicolon
b2a701ead2c659ac5c6656191beb02ebf7bffe02
<ide><path>d3.js <ide> function d3_dispatch_event(dispatch) { <ide> }; <ide> <ide> return event; <del>}; <add>} <ide> // TODO align <ide> d3.format = function(specifier) { <ide> var match = d3_format_re.exec(specifier), <ide><path>src/core/dispatch.js <ide> function d3_dispatch_event(dispatch) { <ide> }; <ide>...
2
Go
Go
use diffsize instead of size in v1 push
741924384ee7a617af1a0275e2dc674e86b9d0d9
<ide><path>distribution/push_v1.go <ide> func (p *v1Pusher) pushImage(v1Image v1Image, ep string) (checksum string, err e <ide> defer arch.Close() <ide> <ide> // don't care if this fails; best effort <del> size, _ := l.Size() <add> size, _ := l.DiffSize() <ide> <ide> // Send the layer <ide> logrus.Debugf("rendere...
1
Ruby
Ruby
support optional collation in create_table output
e4ca7d7048d5434b02b8a9b6a3bc917264da3792
<ide><path>activerecord/test/cases/adapters/mysql2/table_options_test.rb <ide> def teardown <ide> test "table options with CHARSET" do <ide> @connection.create_table "mysql_table_options", force: true, options: "CHARSET=latin1" <ide> output = dump_table_schema("mysql_table_options") <del> expected = /creat...
1
PHP
PHP
move tests closer to the code being tested
3e187427dc4501824431cb835b3e7647925ef4fe
<ide><path>tests/TestCase/ORM/Association/HasManyTest.php <ide> public function testSaveStrategy() <ide> $this->assertSame(HasMany::SAVE_REPLACE, $association->saveStrategy()); <ide> }); <ide> } <add> <add> /** <add> * Test that save works with replace saveStrategy and are not deleted onc...
2
Text
Text
add links for the mp3 files
5aa83c96536e59ed7f36f83d82a90223baa557e6
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/front-end-development-libraries-projects/build-a-drum-machine.md <ide> You can use any mix of HTML, JavaScript, CSS, Bootstrap, SASS, React, Redux, and <ide> <ide> **User Story #7:** When a `.drum-pad` is triggered, a string describing the ass...
1
Ruby
Ruby
consolidate testing of update_all type casting
58d38d6df2d7f1c1730a3f691a78b3037defa9e7
<ide><path>activerecord/test/cases/adapters/postgresql/array_test.rb <ide> def test_attribute_for_inspect_for_array_field <ide> assert_equal("[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...]", record.attribute_for_inspect(:ratings)) <ide> end <ide> <del> def test_update_all <del> pg_array = PgArray.create! tags: ["one",...
4
Javascript
Javascript
fix my git mistake, adding d3.min.js back
24de130f4e1df2e04a6e751a4b586e1bf66af927
<ide><path>d3.min.js <add>(function(){function bU(){return"circle"}function bT(){return 64}function bR(a){return a.endAngle}function bQ(a){return a.startAngle}function bP(a){return a.radius}function bO(a){return a.target}function bN(a){return a.source}function bM(){return 0}function bL(a,b,c){a.push("C",bH(bI,b),",",bH...
1
Text
Text
fix markdown conversion with marked
47ce8ecacb8223a4350a2b59e6e0d31597e5796c
<ide><path>docs/docs/tutorial.ja-JP.md <ide> Markdown はインラインでテキストをフォーマットする簡単な <ide> <ide> ```javascript{2,10} <ide> // tutorial6.js <del>var converter = new Showdown.converter(); <ide> var Comment = React.createClass({ <ide> render: function() { <ide> return ( <ide> <div className="comment"> <ide> ...
1
Python
Python
use print() function on both python 2 and 3
b507783bc116d6703f374d1d096b057df51191be
<ide><path>tools/genv8constants.py <ide> # ustack helper. <ide> # <ide> <add>from __future__ import print_function <ide> import re <ide> import subprocess <ide> import sys <ide> import errno <ide> <ide> if len(sys.argv) != 3: <del> print "usage: objsym.py outfile libv8_base.a" <add> print("usage: objsym.py outfile ...
7
Go
Go
improve truncindex benchmarks
7eb425ccd167487b8424ff680e46216d99fa237a
<ide><path>pkg/truncindex/truncindex_test.go <ide> package truncindex <ide> <del>import "testing" <add>import ( <add> "math/rand" <add> "testing" <add> <add> "github.com/dotcloud/docker/utils" <add>) <ide> <ide> // Test the behavior of TruncIndex, an index for querying IDs from a non-conflicting prefix. <ide> func Te...
1
Ruby
Ruby
add missing require
07d9adc2959931d540c7cb07e12a3d541a9e68e8
<ide><path>Library/Homebrew/test/test_cleaner.rb <ide> require 'testing_env' <ide> require 'cleaner' <add>require 'formula' <ide> <ide> class CleanerTestBall < Formula <ide> url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
1
Python
Python
fix longdouble machar problem (iterations too low)
0c7be2c208f3f173b3d8913e55aeb3b731fcf3f7
<ide><path>numpy/lib/machar.py <ide> def __init__(self, float_conv=float,int_conv=int, <ide> float_to_str - convert array float to str <ide> title - description of used floating point numbers <ide> """ <del> max_iter = range(1000) <add> max_iterN = 10000 <add> msg...
1
Python
Python
add conf file for sphinx-quickstart (doc)
5ab3f91fb2d4693edfe494b50efb5d2b4d36c644
<ide><path>docs/conf.py <add># -*- coding: utf-8 -*- <add># <add># Glances documentation build configuration file, created by <add># sphinx-quickstart on Tue Mar 25 19:57:21 2014. <add># <add># This file is execfile()d with the current directory set to its containing dir. <add># <add># Note that not all possible config...
1
PHP
PHP
fix unique bug
4b785c616169f5f621d1f87e9cbe75445ece7523
<ide><path>src/Illuminate/Bus/UniqueLock.php <add><?php <add> <add>namespace Illuminate\Bus; <add> <add>use Illuminate\Contracts\Cache\Repository as Cache; <add> <add>class UniqueLock <add>{ <add> /** <add> * The cache repository implementation. <add> * <add> * @var \Illuminate\Contracts\Cache\Repository...
4
Ruby
Ruby
replace mocha#stubs with assert_called_with
d89937505867eac91830d34a97d55b08d48573fc
<ide><path>activerecord/test/cases/adapters/mysql2/active_schema_test.rb <ide> def test_remove_timestamps <ide> end <ide> <ide> def test_indexes_in_create <del> ActiveRecord::Base.connection.stubs(:data_source_exists?).with(:temp).returns(false) <add> assert_called_with( <add> ActiveRecord::Base.connect...
1
Javascript
Javascript
pass conf to export function
a50e440cf1d6381b41471fe6fbcf8f761cd38e21
<ide><path>server/export.js <ide> import { renderToHTML } from './render' <ide> import { getAvailableChunks } from './utils' <ide> import { printAndExit } from '../lib/utils' <ide> <del>export default async function (dir, options) { <add>export default async function (dir, options, configuration) { <ide> dir = resol...
1
Javascript
Javascript
extract a test updating logic and logging
0a7ac8935e1e936130b73f78d7f7971c42975db9
<ide><path>client/src/templates/Challenges/redux/execute-challenge-saga.js <ide> const testWorker = new WorkerExecutor('test-evaluator'); <ide> const testTimeout = 5000; <ide> <ide> function* ExecuteChallengeSaga() { <del> const { js, bonfire, backend } = challengeTypes; <del> const { challengeType } = yield select(...
1
Text
Text
fix misleading section on associations guide
91daacbbda9c923517ffc7d739e4f4e30e341d30
<ide><path>guides/source/association_basics.md <ide> Here are a few things you should know to make efficient use of Active Record ass <ide> All of the association methods are built around caching, which keeps the result of the most recent query available for further operations. The cache is even shared across methods. ...
1
Ruby
Ruby
add check for gettext to brew_doctor
5fe0b108ad795f1877a843c08c72ba07002d31b1
<ide><path>Library/Homebrew/brew_doctor.rb <ide> def check_pkg_config_paths <ide> end <ide> end <ide> <add>def check_for_gettext <add> if File.exist? "#{HOMEBREW_PREFIX}/lib/libgettextlib.dylib" or <add> File.exist? "#{HOMEBREW_PREFIX}/lib/libintl.dylib" <add> puts <<-EOS.undent <add> gettext was detect...
1
Ruby
Ruby
use the host environment variable for rails server
e17d7275f49a7286439d972f01b0fb42331dcdb7
<ide><path>railties/lib/rails/commands/server.rb <ide> def middleware <ide> def default_options <ide> super.merge({ <ide> Port: ENV.fetch('PORT', 3000).to_i, <add> Host: ENV.fetch('HOST', 'localhost').dup, <ide> DoNotReverseLookup: true, <ide> environ...
2
Python
Python
add more tests for elastichosts driver
9e626c8e476d27f7e7bf2e7891553e8a20943684
<ide><path>test/compute/test_elastichosts.py <ide> import unittest <ide> import httplib <ide> <del>from libcloud.compute.drivers.elastichosts import ElasticHostsBaseNodeDriver <add>from libcloud.compute.base import Node <add>from libcloud.compute.drivers.elastichosts import \ <add> (Elasti...
1
Ruby
Ruby
fix observer by acting on singleton class []
bad44e4f8f690039bd0db92ac25f10af536c6e71
<ide><path>activemodel/lib/active_model/observing.rb <ide> class << self <ide> def observe(*models) <ide> models.flatten! <ide> models.collect! { |model| model.respond_to?(:to_sym) ? model.to_s.camelize.constantize : model } <del> redefine_method(:observed_classes) { models } <add> s...
2
Python
Python
add tests for retrieving/updating reverse fks
24e14b7d53e43f1574971ff5b6eee6d0185df23a
<ide><path>rest_framework/tests/nested_relations.py <add>from copy import deepcopy <add>from django.db import models <add>from django.test import TestCase <add>from rest_framework import serializers <add> <add> <add># ForeignKey <add> <add>class ForeignKeyTarget(models.Model): <add> name = models.CharField(max_lengt...
1
PHP
PHP
enable asset timestamp for image submit buttons
30504ef32b0b3a101f860a02b2bed4ed8eef5b10
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> public function submit($caption = null, $options = array()) { <ide> } else { <ide> $url = $this->webroot(trim($caption, '/')); <ide> } <add> $url = $this->assetTimestamp($url); <ide> $tag = $this->Html->useTag('submitimage', $url, $options); <ide> } ...
1
Text
Text
update chinese translation of redux
b378f110ca1b0e98972d80b274d2c0a104df869f
<ide><path>curriculum/challenges/chinese/03-front-end-libraries/redux/combine-multiple-reducers.chinese.md <ide> id: 5a24c314108439a4d4036154 <ide> title: Combine Multiple Reducers <ide> challengeType: 6 <ide> isRequired: false <del>videoUrl: '' <del>localeTitle: 结合多个减速器 <add>forumTopicId: 301436 <add>localeTitle: 组合多个...
17
Ruby
Ruby
use appropriate pronoun in update message
81e3aa899d6146d4e0a36246513e3a72469334bc
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def update_report <ide> unless args.preinstall? <ide> outdated_formulae = Formula.installed.count(&:outdated?) <ide> outdated_casks = Cask::Caskroom.casks.count(&:outdated?) <add> update_pronoun = if (outdated_formulae + outdate...
1
PHP
PHP
fix more tests
34b4d3537c39c9bbd45e81f89a45337b82c68135
<ide><path>tests/TestCase/Console/ShellTest.php <ide> public function testRunCommandMainMissingArgument() <ide> <ide> $io->expects($this->once()) <ide> ->method('error') <del> ->with('Error: Missing required arguments. The `filename` argument is required.'); <add> ->with('Erro...
2
Python
Python
support tpu on resnet50 using keras compile/fit
fa5b66e54b5ad70317f2f6526048d7140ebcaea9
<ide><path>official/vision/image_classification/resnet_imagenet_main.py <ide> def run(flags_obj): <ide> num_gpus=flags_obj.num_gpus, <ide> num_workers=num_workers, <ide> all_reduce_alg=flags_obj.all_reduce_alg, <del> num_packs=flags_obj.num_packs) <add> num_packs=flags_obj.num_packs, <add> ...
1
PHP
PHP
remove expectedexceptionmessage comment
c0c2415bd109721de4fb9d7328f3f264241a1bd5
<ide><path>tests/Database/DatabaseEloquentModelTest.php <ide> public function testFindMethodCallsQueryBuilderCorrectly() <ide> <ide> /** <ide> * @expectedException Illuminate\Database\Eloquent\ModelNotFoundException <del> * @expectedExceptionMessage EloquentModelFindNotFoundStub model not found <ide> */ <ide> p...
1
Ruby
Ruby
provide channel information in item
c6907f911f12cff4374d78a6f080721675e1d232
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.match?(url) <ide> Item = Struct.new( <ide> # @api public <ide> :title, <add> # @api public <add> :channel, <ide> # @api private <ide> :pub_date, <ide> # @api public <ide> ...
2
Text
Text
fix text inconsistency
35f24c60856867b984ba5ecc16493cec5b347987
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/declare-javascript-variables.english.md <ide> forumTopicId: 17556 <ide> <section id='description'> <ide> In computer science, <dfn>data</dfn> is anything that is meaningful to the computer. JavaScript provides eight d...
1
Text
Text
add 2.11.1 to changelog.md
e891373c5bc5e56b9468f63bb6185ea9dccb3748
<ide><path>CHANGELOG.md <ide> - [#14852](https://github.com/emberjs/ember.js/pull/14852) [PERF] only `LOG_TRANSITIONS` and `LOG_TRANSITIONS_INTERNAL` in debug <ide> - [#14854](https://github.com/emberjs/ember.js/pull/14854) [PER] only `LOG_ACTIVE_GENERATION` and `LOG_RESOLVER` in debug <ide> <add>### 2.11.1 (February ...
1
Text
Text
remove garbage file
df45fdb43fdf0af775a8f9403c8e718434ca2cdd
<ide><path>hangover.md <del> <del> test("routeless transitionTo in mid-transition uses transition's destination route for query params, not the router's current route", function() { <del> expect(2); <del> Router.map(function() { <del> this.resource('woot', { path: '/woot' }, function() { <del> this.r...
1
PHP
PHP
remove closure version and update docs
c07d4b2f51ad17a8c9f65130bad710356b45e478
<ide><path>lib/Cake/Cache/CacheRegistry.php <ide> protected function _throwMissingClassError($class, $plugin) { <ide> * Create the cache engine instance. <ide> * <ide> * Part of the template method for Cake\Utility\ObjectRegistry::load() <del> * @param string|CacheEngine $class The classname or object to make, or a ...
2
Python
Python
add a test for ticket
cb5a27eacb0165752fc5ab82633911d90df28af4
<ide><path>numpy/core/tests/test_regression.py <ide> def test_refcount_error_in_clip(self): <ide> # Check the final string: <ide> assert_(y == "[0 0]") <ide> <add> def test_searchsorted_wrong_dtype(self): <add> # Ticket #2189, it used to segfault, so we check that it raises the <add> #...
1
Text
Text
add i18n issue template
7ecb039176a019924cbd0cfb2b7dfd4744859763
<ide><path>.github/ISSUE_TEMPLATE/i18n.md <add>--- <add>name: 🌐 Translating a new language? <add>about: Start a new translation effort in your language <add>title: '[i18n-<languageCode>] Translating docs to <languageName>' <add>labels: WIP <add>assignees: '' <add> <add>--- <add> <add><!-- <add>Note: Please search to s...
1
Text
Text
add .validate() example
5d4ea3d23fdb173b4109a64b2d4231d93d394387
<ide><path>docs/api-guide/serializers.md <ide> Your `validate_<fieldname>` methods should either just return the `attrs` dictio <ide> <ide> ### Object-level validation <ide> <del>To do any other validation that requires access to multiple fields, add a method called `.validate()` to your `Serializer` subclass. This m...
1
Javascript
Javascript
simplify syntax so we can extract more easily
20cab0721d99214c468abe9fbd187344663f8007
<ide><path>packages/ember-application/lib/system/application.js <ide> Ember.Application = Ember.Namespace.extend( <ide> var injections = get(this.constructor, 'injections'), <ide> namespace = this; <ide> <del> if (!router && Ember.Router.detect(namespace['Router'])) { <del> router = namespace['Rout...
1
Javascript
Javascript
update three references
4ce187587f62686b5bc29d323e3a133ffd0d2513
<ide><path>examples/jsm/loaders/LUT3dlLoader.js <ide> import { <ide> UnsignedByteType, <ide> ClampToEdgeWrapping, <ide> LinearFilter, <del>} from '//unpkg.com/three@0.120.1/build/three.module.js'; <add>} from '../../../build/three.module.js'; <ide> <ide> export class LUT3dlLoader extends Loader { <ide> <ide><path>...
2
PHP
PHP
image()
a451a2bacc2518fa0d54b780e4324bb3be560aad
<ide><path>src/Illuminate/Http/Testing/FileFactory.php <ide> <ide> namespace Illuminate\Http\Testing; <ide> <add>use Illuminate\Support\Str; <add> <ide> class FileFactory <ide> { <ide> /** <ide> public function create($name, $kilobytes = 0) <ide> */ <ide> public function image($name, $width = 10, $height...
2
Mixed
Ruby
add a separation option for the excerpt function
963c50eca87373bed403358c076b377ad62454ef
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Add `separation` option for `ActionView::Helpers::TextHelper.excerpt`. *Guirec Corbel* <add> <ide> * Added controller-level etag additions that will be part of the action etag computation *Jeremy Kemper/DHH* <ide> <ide> c...
3
PHP
PHP
rename another $value variable
1e166f8b00bd50104e95d2fa69ab8f0605a3631b
<ide><path>src/Collection/Iterator/SortIterator.php <ide> public function __construct($items, $callback, $dir = SORT_DESC, $type = SORT_NU <ide> <ide> $callback = $this->_propertyExtractor($callback); <ide> $results = []; <del> foreach ($items as $key => $value) { <del> $value = $call...
1
PHP
PHP
remove admin tests
0a6d09464563e50f8785858d01392614c7342dcb
<ide><path>tests/TestCase/Console/Command/Task/ControllerTaskTest.php <ide> public function testBakeActions() { <ide> $result = $this->Task->bakeActions('BakeArticles'); <ide> $expected = file_get_contents(CORE_TESTS . 'bake_compare/Controller/Actions.ctp'); <ide> $this->assertTextEquals($expected, $result); <del...
1
Text
Text
remove extraneous period
86fb98eb3720a7256764ff0bd8b34a23c0946ade
<ide><path>README.md <ide> You can find documentation at [www.chartjs.org/docs](http://www.chartjs.org/docs <ide> <ide> ## Contributing <ide> <del>Before submitting an issue or a pull request, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/develope...
1
PHP
PHP
update driver list
6284528b76647eb876f02fb12d0601d51867a8a8
<ide><path>config/logging.php <ide> | the box, Laravel uses the Monolog PHP logging library. This gives <ide> | you a variety of powerful log handlers / formatters to utilize. <ide> | <del> | Available Drivers: "single", "daily", "syslog", <del> | "errorlog", "custom" <add> | Ava...
1
Javascript
Javascript
update $animate and nganimate docs
b1d4d580e5021d5890d684847b205701be15d292
<ide><path>src/ngAnimate/animate.js <ide> * <ide> * # ngAnimate <ide> * <del> * The `ngAnimate` module provides support for JavaScript and CSS3 animation hooks within core and custom directives. <add> * The `ngAnimate` module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within e...
1
PHP
PHP
fix session driver in cached config
ee349de4872179b0b91414776f75928b1ba573c6
<ide><path>src/Illuminate/Foundation/Console/ConfigCacheCommand.php <ide> public function fire() <ide> <ide> $config = $this->getFreshConfiguration(); <ide> <add> $config = $this->setRealSessionDriver($config); <add> <ide> file_put_contents( <ide> $this->laravel->getCachedConfigPath(), '<?php return '.var_exp...
1
PHP
PHP
remove terminology for "web routes"
527306a14c53bf904d68abd7267628b52069f624
<ide><path>app/Http/routes.php <ide> }); <ide> <ide> /* <del>|-------------------------------------------------------------------------- <del>| Web Routes <del>|-------------------------------------------------------------------------- <del>| <ide> | This route group applies the "web" middleware group to every route <...
1
Python
Python
add placeholder for adafactor optimizer
59aad7fc07752041216e45711c9cf95a6dccff14
<ide><path>official/modeling/optimization/adafactor_optimizer.py <add># Copyright 2021 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the Li...
5
Text
Text
add ssd mobilenet v2 to model zoo
ad1042c9aeef26a2d5b4f3e00ce1472371d218ed
<ide><path>research/object_detection/README.md <ide> reporting an issue. <ide> Supercharge your mobile phones with the next generation mobile object detector! <ide> We are adding support for MobileNet V2 with SSDLite presented in <ide> [MobileNetV2: Inverted Residuals and Linear Bottlenecks](https://arxiv.org/abs/1801....
2
Text
Text
fix typo in docs
f16ee05f599de27e777ac2b736c3bf820a19bd7b
<ide><path>docs/api-reference/next.config.js/rewrites.md <ide> module.exports = { <ide> } <ide> ``` <ide> <del>If you're using `trailingSlash: true`, you also need to insert a trailing slash in the `source` paramater. If the destination server is also expecting a trailing slash it should be included in the `destinatio...
2
Text
Text
use code markup/markdown in headers
4459988d0e1e24549b63856387dd7c1b61e1d87a
<ide><path>doc/api/cluster.md <ide> responsibility to manage the worker pool based on its own needs. <ide> Although a primary use case for the `cluster` module is networking, it can <ide> also be used for other use cases requiring worker processes. <ide> <del>## Class: Worker <add>## Class: `Worker` <ide> <!-- YAML <i...
1
PHP
PHP
apply fixes from styleci
1db746d0a8273720632f5cd46a32ef451111e8d5
<ide><path>src/Illuminate/Auth/TokenGuard.php <ide> public function user() <ide> <ide> if (! empty($token)) { <ide> $user = $this->provider->retrieveByCredentials([ <del> $this->storageKey => $token <add> $this->storageKey => $token, <ide> ]); <ide> ...
1
PHP
PHP
remove forgotten method
99656b83641a7b8e83c852a1af4bf72a2d9dcd27
<ide><path>src/Illuminate/Session/SessionServiceProvider.php <ide> protected function registerSessionDriver() <ide> }); <ide> } <ide> <del> /** <del> * Get the session driver name. <del> * <del> * @return string <del> */ <del> protected function getDriver() <del> { <del> return $this->app['config']['session.dr...
1
Javascript
Javascript
add delay to initial execute
6f98f62dd9bebf2b604e75ac4d00321dbcce7d42
<ide><path>client/commonFramework/end.js <ide> $(document).ready(function() { <ide> challengeType !== '4' && <ide> challengeType !== '7' <ide> ) { <del> common.executeChallenge$() <add> Observable.just({}) <add> .delay(500) <add> .flatMap(() => common.executeChallenge$()) <ide> .subscrib...
1
PHP
PHP
fix bug in validator class required check
e9a43326a7d071f03e6e8f986bb1e9f9dcc8557c
<ide><path>system/validator.php <ide> protected function check($attribute, $rule) <ide> */ <ide> protected function validate_required($attribute) <ide> { <del> return array_key_exists($attribute, $this->attributes) and trim($this->attributes[$attribute]) !== ''; <add> if ( ! array_key_exists($attribute, $this->at...
1
Javascript
Javascript
use util.inspect for more reliable logging
d40be9cbf254f78d2d125e79f815ccd39df32158
<ide><path>client/src/client/workers/test-evaluator.js <ide> import chai from 'chai'; <ide> import '@babel/polyfill'; <ide> import __toString from 'lodash/toString'; <add>import { format as __format } from '../../utils/format'; <ide> <ide> const __utils = (() => { <ide> const MAX_LOGS_SIZE = 64 * 1024; <ide> const _...
4
PHP
PHP
get view data via array access
e1b8fef59f436902c34f235841303fce055dddab
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> public function assertViewMissing($key) <ide> */ <ide> protected function ensureResponseHasView() <ide> { <del> if (! isset($this->original) || ! $this->original instanceof View) { <add> if (! $this->responseHasView()) { <ide...
1
Text
Text
add missing word in modules.md
cb88f35a733c3d9efab5f7b18ca84047b93e7ab6
<ide><path>doc/api/modules.md <ide> added: v0.1.27 <ide> <ide> * {string} <ide> <del>The directory name of the current module. This the same as the <add>The directory name of the current module. This is the same as the <ide> [`path.dirname()`][] of the [`__filename`][]. <ide> <ide> Example: running `node example.js`...
1
Python
Python
move threshold up for flaky test with electra
e8af90c05210c61afdbf8323473d333a342b37c5
<ide><path>tests/test_modeling_tf_common.py <ide> def test_pt_tf_model_equivalence(self): <ide> <ide> max_diff = np.amax(np.abs(tf_hidden_states - pt_hidden_states)) <ide> # Debug info (remove when fixed) <del> if max_diff >= 2e-2: <add> if max_diff >= 4e-2: <ide> ...
1
Text
Text
add v3.26.0 to changelog
d622b7c4282dcdae57d389a01e889afbd0ff93fc
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v3.26.0-beta.5 (March 16, 2021) <del> <del>- [#19405](https://github.com/emberjs/ember.js/pull/19405) [BUGFIX] Avoid instantiation errors when `app/router.js` injects the router service. <del> <del>### v3.26.0-beta.4 (March 08, 2021) <del> <del>- [#19436](...
1
Ruby
Ruby
fix head_revision definition
9457d1af5e546bb07dacaff5cb516c0bdb9187fb
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> def pull <ide> old_versions = current_versions_from_info_external(patch_changes[:formulae].first) if is_bumpable <ide> patch_puller.apply_patch <ide> <del> end_revision = head_revision(url) <add> end_revision = `git rev-parse --short HEAD`.strip <...
1