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
use fixture files
6fb0e24adddb2c00e6d5a7efd2fb97fac2c34e2f
<ide><path>node-tests/blueprints/route-test-test.js <ide> const chai = require('ember-cli-blueprint-test-helpers/chai'); <ide> const expect = chai.expect; <ide> <ide> const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest'); <add>const fixture = require('../helpers/fixture'); <ide> <id...
4
Go
Go
replace unreachable returns with panics
22f1cc955dbf25132e69d126f8db0e5498bffbd2
<ide><path>container.go <ide> func (container *Container) WaitTimeout(timeout time.Duration) error { <ide> case <-done: <ide> return nil <ide> } <del> return nil <add> panic("unreachable") <ide> } <ide> <ide> func (container *Container) EnsureMounted() error { <ide><path>network.go <ide> func (alloc *PortAllocator...
3
PHP
PHP
move number to i18n
85c294ab0ae41e247a2fa3ed25d64d4f07c768e4
<ide><path>src/I18n/LocalizedNumber.php <ide> */ <ide> namespace Cake\I18n; <ide> <del>use Cake\Utility\Number; <add>use Cake\I18n\Number; <ide> <ide> /** <ide> * Number helper library. <add><path>src/I18n/Number.php <del><path>src/Utility/Number.php <ide> * @since 0.10.0 <ide> * @license http://www...
3
Python
Python
use m for matrix instead of a for array
b6ba4addafc0782fc3219b73fa67ec8f3f37adaa
<ide><path>numpy/matrixlib/defmatrix.py <ide> def flatten(self, order='C'): <ide> ---------- <ide> order : {'C', 'F', 'A'}, optional <ide> Whether to flatten in C (row-major), Fortran (column-major) order, <del> or preserve the C/Fortran ordering from `a`. <add> or pres...
1
Ruby
Ruby
enforce uses_from_macos only if core tap
4bd6c343d0906c3ae7c93926ea41fc64f1b05e46
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_deps <ide> "use the canonical name '#{dep.to_formula.full_name}'." <ide> end <ide> <del> if @new_formula && <add> if @core_tap && <add> @new_formula && <ide> dep_f.keg_only? && <ide> ...
2
Text
Text
fix broken link
2dffdf5ddf91d9a2d55b18a887c6bdcb56cec4ed
<ide><path>docs/Brew-Test-Bot.md <ide> by [our Kickstarter in 2013](https://www.kickstarter.com/projects/homebrew/brew- <ide> <ide> It comprises four Mac Minis and three Xserves running in two data centres which host <ide> [a Jenkins instance at https://jenkins.brew.sh](https://jenkins.brew.sh) and run the <del>[`brew...
1
Javascript
Javascript
add dollar sign back to setsubmitted()
7ef2921caee2be24102e153f22ea79d679f582cb
<ide><path>src/ng/directive/form.js <ide> function FormController(element, attrs, $scope, $animate) { <ide> <ide> /** <ide> * @ngdoc method <del> * @name form.FormController#setSubmitted <add> * @name form.FormController#$setSubmitted <ide> * <ide> * @description <ide> * Sets the form to its submitte...
1
Javascript
Javascript
add csp support
2b1b2570344cfb55ba93b6f184bd3ee6db324419
<ide><path>lib/nodeserver/server.js <ide> StaticServlet.prototype.sendFile_ = function(req, res, path) { <ide> var self = this; <ide> var file = fs.createReadStream(path); <ide> res.writeHead(200, { <add> // CSP headers, uncomment to enable CSP <add> //"X-WebKit-CSP": "default-src 'self';", <add> //"X-Co...
1
Python
Python
revoke tests passing
cbba57c2269f35e1eb16c56444cabc30e70eace1
<ide><path>celery/tests/worker/test_control.py <ide> def test_revoke(self): <ide> def test_revoke_terminate(self): <ide> request = Mock() <ide> request.id = tid = uuid() <del> state.active_requests.add(request) <add> state.reserved_requests.add(request) <ide> try: <ide> ...
1
Python
Python
add missing minus sign
9e7f462b0dc386a856ec07c21876b07016c9258b
<ide><path>numpy/doc/basics.py <ide> int8 Byte (-128 to 127) <ide> int16 Integer (-32768 to 32767) <ide> int32 Integer (-2147483648 to 2147483647) <del>int64 Integer (9223372036854775808 to 9223372036854775807) <add>int64 Integer (-9223372036854775808 to 9223372036854775807) <ide> uint8 ...
1
Text
Text
replace the code sample in all the languages
ccfd1ffb30bd806dcc098c5bf60f9e5988e8b951
<ide><path>docs/docs/tutorial.it-IT.md <ide> Ma c'è un problema! I nostri commenti visualizzati appaiono come segue nel brow <ide> <ide> Questo è il risultato della protezione di React da parte di un [attacco XSS](https://en.wikipedia.org/wiki/Cross-site_scripting). C'è una maniera di aggirare questo comportamento, ma...
4
Javascript
Javascript
fix linter error
645252e0c2aabaefcd381f2ed50ddc40170c44ca
<ide><path>src/text-editor.js <ide> class TextEditor { <ide> // coordinates. Useful with {Config::get}. <ide> // <ide> // For example, if called with a position inside the parameter list of an <del> // anonymous CoffeeScript function, this method returns a {ScopeDescriptor} with <add> // anonymous CoffeeScript...
1
Text
Text
fix versions html table
34e002d6242181e5e8923bd77597b3fc4b3b6f50
<ide><path>guide/portuguese/html/index.md <ide> p: O elemento define um parágrafo <ide> <ide> Desde os primeiros dias da web, tem havido muitas versões do HTML <ide> <del>Versão | Ano | | --- | --- | | HTML | 1991 | | HTML 2.0 | 1995 | | HTML 3.2 | 1997 | | HTML 4.01 | 1999 | | XHTML | 2000 | | HTML5 | 2014 | <add>|V...
1
Text
Text
add `generator_class` parameter to docs
53b3b83b0460e99d22c96cc75625358cdedb96a7
<ide><path>docs/api-guide/schemas.md <ide> to be exposed in the schema: <ide> patterns=schema_url_patterns, <ide> ) <ide> <add>#### `generator_class` <add> <add>May be used to specify a `SchemaGenerator` subclass to be passed to the <add>`SchemaView`. <add> <add> <ide> <ide> ## Using an explicit schema vi...
1
Javascript
Javascript
use yargs.parse instead of exitprocess(false)
7a7c8372c3d085b0bc06f17c7e87fd28b2a18a83
<ide><path>bin/config-yargs.js <ide> var OPTIMIZE_GROUP = "Optimizing options:"; <ide> module.exports = function(yargs) { <ide> yargs <ide> .help("help") <del> .exitProcess(false) <ide> .alias("help", "h") <ide> .version() <ide> .alias("version", "v") <ide><path>bin/convert-argv.js <ide> var interpret = requi...
3
Go
Go
convert testgetimagesjson into several unit tests
627805f5f8895c3a3887c312f7b8f49a89e51732
<ide><path>api/server/server_unit_test.go <ide> import ( <ide> "io" <ide> "net/http" <ide> "net/http/httptest" <add> "reflect" <ide> "strings" <ide> "testing" <ide> <ide> "github.com/dotcloud/docker/api" <ide> "github.com/dotcloud/docker/engine" <add> "github.com/dotcloud/docker/pkg/version" <ide> ) <ide> <ide...
2
Text
Text
add yaml metadata for process.memoryusage.rss
d2dc3a9bf05bec081f64ff5d8a69c5a964540470
<ide><path>doc/api/process.md <ide> informations about memory usage which can be slow depending on the <ide> program memory allocations. <ide> <ide> ## `process.memoryUsage.rss()` <add><!-- YAML <add>added: REPLACEME <add>--> <ide> <ide> * Returns: {integer} <ide>
1
Text
Text
improve prepositions in buffer.md
617946779c677e0669395cac8fbc2c0dace9da43
<ide><path>doc/api/buffer.md <ide> added: v0.1.90 <ide> <ide> * `target` {Buffer|Uint8Array} A `Buffer` or [`Uint8Array`] to copy into. <ide> * `targetStart` {integer} The offset within `target` at which to begin <del> copying to. **Default:** `0`. <del>* `sourceStart` {integer} The offset within `buf` at which to be...
1
Go
Go
add support to set memoryswap
1a9b640e0d3e6916bff9cd7dd8ab435a70c6a0e8
<ide><path>daemon/create.go <ide> func (daemon *Daemon) ContainerCreate(job *engine.Job) engine.Status { <ide> job.Errorf("Your kernel does not support swap limit capabilities. Limitation discarded.\n") <ide> config.MemorySwap = -1 <ide> } <add> if config.Memory > 0 && config.MemorySwap > 0 && config.MemorySwap < ...
2
Java
Java
expose primary flag on beandefinitionbuilder
248ad0fa796e2d3e611a166f68357a3d5d608ecf
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java <ide> public BeanDefinitionBuilder addDependsOn(String beanName) { <ide> return this; <ide> } <ide> <add> /** <add> * Set whether this bean is a primary autowire candidate. <add> * @since 5.1.11 <add> */ <a...
1
Text
Text
add parent option to active job guides [ci-skip]
6f26282780e14f2eefd699df984b87f5a77fdf10
<ide><path>guides/source/active_job_basics.md <ide> end <ide> <ide> Note that you can define `perform` with as many arguments as you want. <ide> <add>If you already have an abstract class and its name differs from `ApplicationJob`, you can pass <add>the `--parent` option to indicate you want a different abstract clas...
1
PHP
PHP
remove duplicate code
010f727c7cab64890273f9acbf5423c1cf9af3bd
<ide><path>src/ORM/Rule/IsUnique.php <ide> public function __invoke(EntityInterface $entity, array $options) <ide> if (isset($options['allowMultipleNulls'])) { <ide> $allowMultipleNulls = $options['allowMultipleNulls'] === true ? true : false; <ide> } <del> <add> <ide> $alias...
1
Go
Go
use strconv.parsebool in getboolparam
da199846d2813467ab8bae629336f3989f285ce9
<ide><path>api.go <ide> func writeJSON(w http.ResponseWriter, b []byte) { <ide> w.Write(b) <ide> } <ide> <del>// FIXME: Use stvconv.ParseBool() instead? <ide> func getBoolParam(value string) (bool, error) { <del> if value == "1" || strings.ToLower(value) == "true" { <del> return true, nil <del> } <del> if value == "...
2
PHP
PHP
fix the parameter namespace
c30bb5d302d9b50dcc241c285913ee8aefd63ea0
<ide><path>src/ORM/Rule/ExistsIn.php <ide> public function __invoke(EntityInterface $entity, array $options) <ide> /** <ide> * Check whether or not the entity fields are nullable and null. <ide> * <del> * @param \Cake\ORM\EntityInterface $entity The entity to check. <add> * @param \Cake\Datasource...
1
Javascript
Javascript
make controlled components and bubbling work in ie
556065937b91a08635799934bee12259cdb439bd
<ide><path>src/eventPlugins/ChangeEventPlugin.js <ide> var EventConstants = require('EventConstants'); <ide> var EventPluginHub = require('EventPluginHub'); <ide> var EventPropagators = require('EventPropagators'); <ide> var ExecutionEnvironment = require('ExecutionEnvironment'); <add>var ReactUpdates = require('ReactU...
1
Javascript
Javascript
learn layout on mobile
672184d0c30c2b941a8cce69128373f9878839a9
<ide><path>client/src/templates/Challenges/classic/Show.js <ide> class ShowClassic extends Component { <ide> title={`Learn ${this.getBlockNameTitle()} | freeCodeCamp.org`} <ide> /> <ide> <Media maxWidth={MAX_MOBILE_WIDTH}> <del> {matches => <del> matches ? ( <del> ...
1
Ruby
Ruby
fix doc code formatting [ci skip]
5e2774f609315aaaa6208b571721bb6f5d9aa466
<ide><path>activesupport/lib/active_support/deprecation/behaviors.rb <ide> class Deprecation <ide> # constant. Available behaviors are: <ide> # <ide> # [+raise+] Raise <tt>ActiveSupport::DeprecationException</tt>. <del> # [+stderr+] Log all deprecation warnings to +$stderr+. <add> # [+stderr+] Log...
2
Javascript
Javascript
solve the spaces vs tabs indentation issues
1b4c469ea3f66030f05fa81092fa3ad2e26f7fdb
<ide><path>examples/js/renderers/SoftwareRenderer.js <ide> THREE.SoftwareRenderer = function ( parameters ) { <ide> var blockShift = 3; // Normally, it should be 3. At line mode, it has to be 0 <ide> var blockSize = 1 << blockShift; <ide> var maxZVal = (1 << 24); // Note: You want to size this so you don't get overf...
1
PHP
PHP
fix typo in link to cakephp book documentation
3c46b8a491c29bd0a61eb60b1ebf42bb00872d53
<ide><path>lib/Cake/View/Helper/SessionHelper.php <ide> public function check($name) { <ide> * In your view: `$this->Session->error();` <ide> * <ide> * @return string last error <del> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/session.html#displaying-notifcations-or-flash-messages <add> * @link ht...
1
Text
Text
explain esm options for package authors
80cc6f52f5a0618477117f87bff5e209711236de
<ide><path>doc/api/esm.md <ide> or when referenced by `import` statements within ES module code: <ide> * Strings passed in as an argument to `--eval` or `--print`, or piped to <ide> `node` via `STDIN`, with the flag `--input-type=commonjs`. <ide> <del>## <code>package.json</code> <code>"type"</code> field <add>### <...
1
Javascript
Javascript
remove type cast
8bdc8ad6468c7911f8cbed5aa2c15fd3c1c4bf60
<ide><path>lib/wasm/WebAssemblyParser.js <ide> class WebAssemblyParser extends Tapable { <ide> const exports = (state.module.buildMeta.providedExports = []); <ide> t.traverse(ast, { <ide> ModuleExport({ node }) { <del> const moduleExport = /** @type {t.ModuleExport} */ (node); <del> exports.push(moduleExpo...
1
Javascript
Javascript
stop unnecessary purging of node cache
10dab495f296fcef5a8b6afb380e91c57c134d59
<ide><path>src/core/ReactDOMIDOperations.js <ide> var ReactDOMIDOperations = { <ide> dangerouslyReplaceNodeWithMarkupByID: function(id, markup) { <ide> var node = ReactID.getNode(id); <ide> DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup); <del> ReactID.purgeEntireCache(); <ide> }, <i...
2
Javascript
Javascript
make reducers hot-reloadable
68cdeea6aea5bf2e3a2d86cc298790d63071cf7d
<ide><path>client/src/redux/createStore.js <ide> const sagaMiddleware = createSagaMiddleware(); <ide> export const createStore = () => { <ide> const store = reduxCreateStore(rootReducer, applyMiddleware(sagaMiddleware)); <ide> sagaMiddleware.run(rootSaga); <add> if (module.hot) { <add> // Enable Webpack hot mod...
1
Text
Text
add links to subscribe to mailing list
230fc48ccd75b2144cb4561dadc315ef67c44871
<ide><path>README.md <ide> Follow us on twitter: @pdfjs <ide> <ide> http://twitter.com/#!/pdfjs <ide> <del>Join our mailing list: <add>Join our mailing list: <ide> <ide> dev-pdf-js@lists.mozilla.org <add> <add>Subscribe either using lists.mozilla.org or Google Groups: <add> <add> https://lists.mozilla.org...
1
Ruby
Ruby
display total disk space to be cleared
090b133a01d3918ea6a0d73768b836185a8dce35
<ide><path>Library/Homebrew/cmd/cleanup.rb <ide> require "keg" <ide> require "bottles" <ide> require "thread" <add>require "utils" <ide> <ide> module Homebrew <add> @@disk_cleanup_size = 0 <add> <add> def update_disk_cleanup_size(path_size) <add> @@disk_cleanup_size += path_size <add> end <add> <ide> def clean...
1
Javascript
Javascript
add todo comment
e89acf50a25430c40491529ddb8728800647367b
<ide><path>lib/DependenciesBlock.js <ide> class DependenciesBlock { <ide> this.dependencies = []; <ide> this.blocks = []; <ide> this.variables = []; <add> // TODO remove this line, it's wrong <ide> /** @type {ChunkGroup=} */ <ide> this.chunkGroup = undefined; <ide> }
1
Text
Text
use `buffer.bytelength` for content-length
d06820c624554df89e77cea4afd68a2ca58549a5
<ide><path>doc/api/http.md <ide> Example: <ide> ```js <ide> var body = 'hello world'; <ide> response.writeHead(200, { <del> 'Content-Length': body.length, <add> 'Content-Length': Buffer.byteLength(body), <ide> 'Content-Type': 'text/plain' }); <ide> ``` <ide> <ide> var options = { <ide> method: 'POST', <ide> he...
1
PHP
PHP
skip non-arrays when collapsing
934bb07cdafe0b086740bdb163691f0d7cc9364b
<ide><path>src/Illuminate/Support/Arr.php <ide> public static function collapse($array) <ide> $values = $values->all(); <ide> } <ide> <add> if (! is_array($values)) { <add> continue; <add> } <add> <ide> $results = array_merge($results, $value...
1
Text
Text
fix script to match example
989d08a3583a062f0fe6606a88a417153ea6000e
<ide><path>inception/README.md <ide> bazel-bin/inception/build_image_data \ <ide> --validation_directory="${VALIDATION_DIR}" \ <ide> --output_directory="${OUTPUT_DIRECTORY}" \ <ide> --labels_file="${LABELS_FILE}" \ <del> --train_shards=128 \ <del> --validation_shards=24 \ <add> --train_shards=24 \ <add> --val...
1
Ruby
Ruby
make remaining migration options to kwargs
817389d1dd4fd531a8df58e4f10d9da71147d193
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> def initialize( <ide> end <ide> <ide> def add_to(table) <del> columns.each do |column_options| <del> kwargs = column_options.extract_options! <del> table.column(*column_options, **kwa...
8
Ruby
Ruby
add missing space and newline for clarity
238c77dedf3a9de27f8e902ad3dcfdc3480d95bc
<ide><path>activerecord/lib/active_record/migration.rb <ide> def initialize(env = "production") <ide> class EnvironmentMismatchError < ActiveRecordError <ide> def initialize(current: nil, stored: nil) <ide> msg = "You are attempting to modify a database that was last run in `#{ stored }` environment.\n" <d...
1
Ruby
Ruby
support alias for tap
5f68fff92b8b3389ca023f913f1e6d83282a3eab
<ide><path>Library/Homebrew/formulary.rb <ide> def initialize(tapped_name) <ide> @tap = Tap.new user, repo.sub(/^homebrew-/, "") <ide> name = @tap.formula_renames.fetch(name, name) <ide> path = @tap.formula_files.detect { |file| file.basename(".rb").to_s == name } <del> path ||= @tap.path/"#{name...
1
Javascript
Javascript
compress http responses from the packager
b838b4617c05fa19a44ec21f1e27961b64efb210
<ide><path>local-cli/server/runServer.js <ide> function runServer(args, config, readyCallback) { <ide> var wsProxy = null; <ide> const app = connect() <ide> .use(loadRawBodyMiddleware) <add> .use(connect.compress()) <ide> .use(getDevToolsMiddleware(args, () => wsProxy && wsProxy.isChromeConnected())) <id...
1
Ruby
Ruby
use respond_to test helpers
0d50cae996c51630361e8514e1f168b0c48957e1
<ide><path>actionmailer/test/base_test.rb <ide> def welcome <ide> test "should respond to action methods" do <ide> assert_respond_to BaseMailer, :welcome <ide> assert_respond_to BaseMailer, :implicit_multipart <del> assert !BaseMailer.respond_to?(:mail) <del> assert !BaseMailer.respond_to?(:headers) <ad...
43
Javascript
Javascript
add error message when nyt api key is missing
f36fa1e0f722526537cba4ad000e2202b32206e8
<ide><path>controllers/api.js <ide> exports.getAviary = function(req, res) { <ide> * New York Times API example. <ide> */ <ide> <del>exports.getNewYorkTimes = function(req, res) { <add>exports.getNewYorkTimes = function(req, res, next) { <ide> var query = querystring.stringify({ 'api-key': secrets.nyt.key, 'list-n...
1
Text
Text
use test username instead of real
92610f330d6e149f782d9d1cdf106cd629374de4
<ide><path>doc/api/process.md <ide> Use care when dropping privileges: <ide> <ide> ```js <ide> console.log(process.getgroups()); // [ 0 ] <del>process.initgroups('bnoordhuis', 1000); // switch user <add>process.initgroups('nodeuser', 1000); // switch user <ide> console.log(process.getgroups()); /...
1
Text
Text
add lines 45-57 (infinite loop) to the article
d03e742a85c612d14371b0b6ef11269122e26437
<ide><path>guide/english/c/for/index.md <ide> main () <ide> return 0; <ide> } <ide> ``` <del>## Output: <add> <add>Output: <ide> ```shell <ide> * <ide> *** <ide> ***** <ide> ******* <ide> ********* <add>``` <ide> <del>`` <del> <del> <del> <add>## Syntax of For Infinite loop <ide> <add>An infinite l...
1
Javascript
Javascript
reject windowbits=8 when mode=gzip
d8a380e13665ef06ffbfa220cb3a7aaaaa17c9fd
<ide><path>lib/zlib.js <ide> function Zlib(opts, mode) { <ide> mode === UNZIP)) { <ide> windowBits = 0; <ide> } else { <add> // `{ windowBits: 8 }` is valid for deflate but not gzip. <add> const min = Z_MIN_WINDOWBITS + (mode === GZIP ? 1 : 0); <ide> windowBits = checkRangesOrGetDefau...
4
Python
Python
use utcfromtimestamp in test
adc0fbd0d321f28443f98de029d53e1357d80e56
<ide><path>t/unit/app/test_beat.py <ide> def test_ticks_microseconds(self): <ide> scheduler = mScheduler(app=self.app) <ide> <ide> now_ts = 1514797200.2 <del> now = datetime.fromtimestamp(now_ts) <add> now = datetime.utcfromtimestamp(now_ts) <ide> schedule_half = schedule(timedelt...
1
PHP
PHP
fix failing test
9a67a7070383abe3d746c9f71e386a10e9548863
<ide><path>lib/Cake/Test/Case/Model/ModelIntegrationTest.php <ide> public function testPkInHabtmLinkModel() { <ide> public function testDynamicBehaviorAttachment() { <ide> $this->loadFixtures('Apple', 'Sample', 'Author'); <ide> $TestModel = new Apple(); <del> $this->assertEquals($TestModel->Behaviors->attached(),...
1
Python
Python
remove dumbass unneeded test
09e4ee7ae332326e77b23bac1539d31e582419e9
<ide><path>rest_framework/tests/status.py <del>"""Tests for the status module""" <del>from __future__ import unicode_literals <del>from django.test import TestCase <del>from rest_framework import status <del> <del> <del>class TestStatus(TestCase): <del> """Simple sanity test to check the status module""" <del> <del>...
1
PHP
PHP
remove double check of hidden relations
e6dbdfbe35d299447c1a1d01359e568a282c1503
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function relationsToArray() <ide> { <ide> $attributes = []; <ide> <del> $hidden = $this->getHidden(); <del> <ide> foreach ($this->getArrayableRelations() as $key => $value) { <del> if (in_array($key, $hidden)) { <d...
1
Ruby
Ruby
remove safe navigation operator
8b14738a88da598558346ec7de557401622f4ef5
<ide><path>Library/Homebrew/utils/ast.rb <ide> def include_runtime_cpu_detection? <ide> return false if install_node.blank? <ide> <ide> install_node.each_node.any? do |node| <del> node&.receiver&.const_name == "ENV" && node&.method_name == :runtime_cpu_detection <add> node.send_type? ...
1
Ruby
Ruby
adjust `audit` spec
ffba81f6770769adf139df65bb1985bfdf2e3352
<ide><path>Library/Homebrew/test/cask/audit_spec.rb <ide> def tmp_cask(name, text) <ide> end <ide> end <ide> <del> context "when doing the audit" do <add> context "when doing an offline audit" do <add> let(:online) { false } <add> <add> it "does not evaluate the block"...
1
Javascript
Javascript
fix typo in comment
976d6a9ebdf4d3bb6b3f368b65698222911c2586
<ide><path>test/parallel/test-fs-options-immutable.js <ide> if (common.canCreateSymLink()) { <ide> fs.appendFile(fileName, 'ABCD', options, common.mustCall(errHandler)); <ide> } <ide> <del>if (!common.isIBMi) { // IBMi does not suppport fs.watch() <add>if (!common.isIBMi) { // IBMi does not support fs.watch() <ide> ...
1
Python
Python
resolve merge conflicts
4b2537521ef067d919d8faf56dea75855c47e37c
<ide><path>keras/utils/text_dataset_test.py <ide> def _prepare_directory( <ide> for path in class_paths: <ide> os.mkdir(os.path.join(temp_dir, path)) <ide> paths += class_paths <del> <add> <ide> for i in range(count): <ide> path = paths[i % len(pat...
1
Javascript
Javascript
fix #85 (#97)
e763dc731b054af99e35d2751e71a6569f5ac812
<ide><path>server/build/webpack.js <ide> export default async function createCompiler (dir, { hotReload = false } = {}) { <ide> const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules') <ide> <ide> const plugins = [ <add> new webpack.DefinePlugin({ <add> 'process.env.NODE_ENV': JSON.stringif...
1
Java
Java
kill bridge initialization in ondestroy
77ad9459f5ab6eae88f6e0e0e9bf69de7a9be48a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerImpl.java <ide> /* should only be accessed from main thread (UI thread) */ <ide> private final List<ReactRootView> mAttachedRootViews = new ArrayList<>(); <ide> private LifecycleState mLifecycleState; <del> private boolean mIsContextIni...
1
Java
Java
use final keyword in messageheaders
c6c55550342e47454468c5c26ae9777cd687fee4
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java <ide> public final class MessageHeaders implements Map<String, Object>, Serializable { <ide> <ide> private static volatile IdGenerator idGenerator = null; <ide> <del> private static volatile IdGenerator defaultIdGenerator = n...
1
Go
Go
improve error message for invalid ndots number
b3067060623c6774a9936a2a87a3086798bdb250
<ide><path>libnetwork/sandbox_dns_unix.go <ide> dnsOpt: <ide> return fmt.Errorf("invalid ndots option %v", option) <ide> } <ide> if num, err := strconv.Atoi(parts[1]); err != nil { <del> return fmt.Errorf("invalid number for ndots option %v", option) <add> return fmt.Errorf("invalid number for...
2
Text
Text
fix gradle spec in readme
cf5a20c59ef1533004d205d82cb679fc2f0b63cf
<ide><path>language-adaptors/rxjava-clojure/README.md <ide> Example for Leiningen: <ide> and for Gradle: <ide> <ide> ```groovy <del>compile 'com.netflix.rx:rxjava-clojure:x.y.z' <add>compile 'com.netflix.rxjava:rxjava-clojure:x.y.z' <ide> ``` <ide> <ide> and for Maven:
1
Ruby
Ruby
remove leading whitespace from the xml under test
76bfda8f7291dc73b97fb6d3a0d6f8027169fb75
<ide><path>activesupport/test/xml_mini/xml_mini_engine_test.rb <ide> def test_file_from_xml <ide> <ide> def test_exception_thrown_on_expansion_attack <ide> assert_raise expansion_attack_error do <del> Hash.from_xml(<<-eoxml) <add> Hash.from_xml(<<~eoxml) <ide> <?xml version="1.0" enco...
1
Python
Python
fix c/p typo from my experiment code
5938f31fa7aa28cdff662f79c7c038cab21bb370
<ide><path>pytorch_pretrained_bert/modeling_gpt2.py <ide> def forward(self, input_ids, position_ids=None, token_type_ids=None, lm_labels=N <ide> if lm_labels is not None: <ide> # Shift so that tokens < n predict n <ide> shift_logits = lm_logits[:, :-1] <del> shift_labels = tor...
1
Ruby
Ruby
handle references to too old macos in formulae
b43f17b2d0503dbec503e5a4d53441ed2eac6add
<ide><path>Library/Homebrew/formula_versions.rb <ide> def bottle_version_map(branch) <ide> versions_seen = (map.keys + [f.pkg_version]).uniq.length <ide> end <ide> return map if versions_seen > MAX_VERSIONS_DEPTH <add> rescue MacOSVersionError => e <add> odebug "#{e} in #{name} at revision #...
1
Javascript
Javascript
correct broken test
f8091004064c22aac811eb890393c919192d07cb
<ide><path>tools/lint/lint.test.js <ide> describe('markdown linter', () => { <ide> function callback() { <ide> const expected = <ide> // eslint-disable-next-line max-len <del> 'fixtures/badYML.md: 19: yaml-linter YAML code blocks must be valid [bad indentation of a mapping entry at line 3, colu...
1
Ruby
Ruby
fix compiler selection tests on xcode 4.2+
1fc97a81ec279d7827dcec7eabf6c1c28fe1c6be
<ide><path>Library/Homebrew/test/test_compilers.rb <ide> def test_no_compiler_failures <ide> assert !(f.fails_with? :clang) <ide> assert !(f.fails_with? :llvm) <ide> assert case MacOS.gcc_42_build_version <del> when 0 then f.fails_with? :gcc <add> when nil then f.fails_with? :gcc <ide> else ...
1
PHP
PHP
fix string[] types in docblocks
59d4f91809751c413f1301ef0a07a5bded32b239
<ide><path>src/Utility/Hash.php <ide> class Hash <ide> * <ide> * @param array|\ArrayAccess $data Array of data or object implementing <ide> * \ArrayAccess interface to operate on. <del> * @param string|int|array|null $path The path being searched for. Either a dot <add> * @param string|int|stri...
2
Python
Python
improve rewrite state_dict missing _metadata
fd8136fa755a3c59e459e1168014f2bf2fca721a
<ide><path>src/transformers/modeling_utils.py <ide> def save_pretrained( <ide> <ide> # Handle the case where some state_dict keys shouldn't be saved <ide> if self._keys_to_ignore_on_save is not None: <del> state_dict = {k: v for k, v in state_dict.items() if k not in self._keys_to_ignore_on_...
1
Ruby
Ruby
remove old asset_path from rails config
7dba1599d9092a8362956a3fab23b2c60eedea63
<ide><path>actionmailer/lib/action_mailer/railtie.rb <ide> class Railtie < Rails::Railtie # :nodoc: <ide> options.queue ||= app.queue <ide> <ide> # make sure readers methods get compiled <del> options.asset_path ||= app.config.asset_path <ide> options.asset_host ||= app.config....
3
Javascript
Javascript
resolve resource in contextreplacementplugin
af0be8de0795e8929234922ef70d86698103822c
<ide><path>lib/ContextReplacementPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <add>var path = require("path"); <add> <ide> function ContextReplacementPlugin(resourceRegExp, newContentResource, newContentRecursive, newContentRegExp) { <ide> ...
2
Javascript
Javascript
fix animated type
851644cfc23728f72fe638b57f03c596803fef7c
<ide><path>Libraries/Animated/src/Animated.js <ide> 'use strict'; <ide> <ide> import Platform from '../../Utilities/Platform'; <del>const View = require('../../Components/View/View'); <del>const React = require('react'); <del>import type {AnimatedComponentType} from './createAnimatedComponent'; <add>import typeof Anim...
3
Javascript
Javascript
add length validation to fs.truncate()
751a42a30f35c2d04cfb80ce2b1ebec5d040a7e1
<ide><path>lib/fs.js <ide> const { <ide> const { <ide> isUint32, <ide> validateAndMaskMode, <add> validateInteger, <ide> validateInt32, <ide> validateUint32 <ide> } = require('internal/validators'); <ide> function truncate(path, len, callback) { <ide> len = 0; <ide> } <ide> <add> validateInteger(len, '...
2
Python
Python
resolve path to be extra sure
6831161bfa776273e0247f6241fea5f05f40623e
<ide><path>spacy/cli/project/assets.py <ide> def project_assets(project_dir: Path) -> None: <ide> msg.warn(f"No assets specified in {PROJECT_FILE}", exits=0) <ide> msg.info(f"Fetching {len(assets)} asset(s)") <ide> for asset in assets: <del> dest = project_dir / asset["dest"] <add> dest = ...
1
Ruby
Ruby
add stored procedure test in mysql2
d39b6f77fc75790b1b2b3c5201bb037645d01483
<ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb <ide> def disconnect! <ide> # Returns an array of arrays containing the field values. <ide> # Order is the same as that returned by +columns+. <ide> def select_rows(sql, name = nil, binds = []) <del> execute(sql, na...
6
Javascript
Javascript
fix webpack typo
ff35edda1876ab3be5e746d275a28e3ae622a748
<ide><path>scripts/mangleErrors.js <ide> const evalToString = ast => { <ide> * If minify is enabled, we'll replace the error message with just an index that maps to an arrow object lookup. <ide> * <ide> * If minify is disabled, we'll add in a conditional statement to check the process.env.NODE_ENV which will output ...
1
Java
Java
introduce aop testing utilities
efe3a35da871a7ef34148dfb65d6a96cac1fccb9
<ide><path>spring-test/src/main/java/org/springframework/test/util/AopTestUtils.java <add>/* <add> * Copyright 2002-2015 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 the License. <add> * You ma...
2
PHP
PHP
fix morphtomany test
b900c41ecc2baafefaad3b545b51807334c52c15
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphToMany.php <ide> class MorphToMany extends BelongsToMany <ide> * @param bool $inverse <ide> * @return void <ide> */ <del> public function __construct(Builder $query, Model $parent, $name, $table, $foreignKey, $relatedKey, $relationName = nul...
2
Ruby
Ruby
fix unexpected behavior of with $,
8040f527c3f75638829809662a52af04d50369f9
<ide><path>actionview/lib/action_view/helpers/output_safety_helper.rb <ide> def to_sentence(array, options = {}) <ide> when 2 <ide> safe_join([array[0], array[1]], options[:two_words_connector]) <ide> else <del> safe_join([safe_join(array[0...-1], options[:words_connector]), options[:...
2
Python
Python
allow loading template from iterable
0b3369355dadb39ac1ce9580d95004233031a287
<ide><path>flask/templating.py <ide> def _render(template, context, app): <ide> return rv <ide> <ide> <del>def render_template(template_name, **context): <add>def render_template(template_name_or_list, **context): <ide> """Renders a template from the template folder with the given <ide> context. <ide> <d...
2
Ruby
Ruby
use safe_system to call brew
21c903c133bffca1204766d108d808f34358bb78
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> def pr_pull <ide> upload_args << "--dry-run" if args.dry_run? <ide> upload_args << "--root_url=#{args.root_url}" if args.root_url <ide> upload_args << "--bintray-org=#{bintray_org}" <del> system HOMEBREW_BREW_FILE, *upload_args ...
2
Javascript
Javascript
add missing test for
07084e1c8bd4efa28b3f02aea353640af0cf37d6
<ide><path>test/auto/injectorSpec.js <ide> describe('injector', function() { <ide> }); <ide> <ide> <add> it('should not corrupt the cache when an object fails to get instantiated', function() { <add> expect(function() { <add> injector.get('idontexist'); <add> }).toThrowMinErr("$injector", "unpr", "Unkno...
1
Python
Python
wait option for dagrun operator
af2f2e8c299c40e81dc815bcee84c97f7eb0801d
<ide><path>airflow/operators/dagrun_operator.py <ide> # under the License. <ide> <ide> import datetime <del>from typing import Dict, Optional, Union <add>import time <add>from typing import Dict, List, Optional, Union <ide> <ide> from airflow.api.common.experimental.trigger_dag import trigger_dag <del>from airflow.ex...
2
Javascript
Javascript
ignore invalid dates
1334b8c8326b93e0ca016c85516627900c7a9fd3
<ide><path>src/ng/filter/filters.js <ide> function dateFilter($locale) { <ide> date = new Date(date); <ide> } <ide> <del> if (!isDate(date)) { <add> if (!isDate(date) || !isFinite(date.getTime())) { <ide> return date; <ide> } <ide> <ide><path>test/ng/filter/filtersSpec.js <ide> describe('fil...
2
Text
Text
add kloudless as a new premium sponsor
1c3f796219e7794306bb2db81d4910c0cb7c932a
<ide><path>README.md <ide> The initial aim is to provide a single full-time position on REST framework. <ide> [![][rollbar-img]][rollbar-url] <ide> [![][cadre-img]][cadre-url] <ide> [![][load-impact-img]][load-impact-url] <add>[![][kloudless-img]][kloudless-url] <ide> <del>Many thanks to all our [wonderful sponsors][s...
2
Ruby
Ruby
use regex in appcast adjusted_version_stanza
a7b51ebecd35e319a6fe7f8928303dd555449742
<ide><path>Library/Homebrew/cask/audit.rb <ide> def check_appcast_contains_version <ide> "--globoff", "--max-time", "5", appcast_stanza) <ide> version_stanza = cask.version.to_s <ide> adjusted_version_stanza = if cask.appcast.configuration.blank? <del> version_st...
1
PHP
PHP
allow direct closure middleware
fcef04958f22fdf8009486ae6b883572f21cf37a
<ide><path>src/Illuminate/Routing/Router.php <ide> public function resolveMiddlewareClassName($name) <ide> { <ide> $map = $this->middleware; <ide> <del> // If the middleware is the name of a middleware group, we will return the array <del> // of middlewares that belong to the group. This allo...
2
Text
Text
add quick contribution note
640c2b559f16a6070805ce26efeb4afe992f2152
<ide><path>readme.md <del>## Laravel Framework (Core) <add>## Laravel Framework (Kernel) <ide> <ide> [![Latest Stable Version](https://poser.pugx.org/laravel/framework/version.png)](https://packagist.org/packages/laravel/framework) [![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.png)](https://pack...
1
Java
Java
add propertynamingstrategy field to objectmapperfb
268657b6cb5ba3153f2d35e37a7e21e8197db6cd
<ide><path>spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License...
2
Text
Text
update rails 5 upgrade guides
3d252a02ae7f17f94401fe206f4ffc1922610d6f
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> Don't forget to review the difference, to see if there were any unexpected chang <ide> Upgrading from Rails 4.2 to Rails 5.0 <ide> ------------------------------------- <ide> <del>### Ruby 2.2.2+ <add>### Ruby 2.2.2+ required <ide> <del>From Ruby on Rails 5.0 ...
1
Python
Python
use actual range in 'seen' instead of subtree
b509a3e7fcadf84c257c1e5168b6dc926b8b2f3d
<ide><path>spacy/lang/en/syntax_iterators.py <ide> def noun_chunks(obj): <ide> if word.i in seen: <ide> continue <ide> if word.dep in np_deps: <del> if any(w.i in seen for w in word.subtree): <add> if any(j in seen for j in range(word.left_edge.i, word.i + 1)): <ide> ...
2
Javascript
Javascript
fix edge cases with adding/removing observers
d884654354a179533fc80132eb85d2fb19dc30f0
<ide><path>packages/ember-metal/lib/events.js <ide> function targetSetFor(obj, eventName) { <ide> // meta system. <ide> var SKIP_PROPERTIES = { __ember_source__: true }; <ide> <del>function iterateSet(obj, eventName, callback, params) { <del> var targetSet = targetSetFor(obj, eventName); <add>function iterateSet(targ...
2
PHP
PHP
replace calls to config() with get/setconfig()
888ff743260da06c7431f5d70bd09ffcb115be4a
<ide><path>src/Auth/AbstractPasswordHasher.php <ide> abstract class AbstractPasswordHasher <ide> */ <ide> public function __construct(array $config = []) <ide> { <del> $this->config($config); <add> $this->setConfig($config); <ide> } <ide> <ide> /** <ide><path>src/Auth/BaseAuthenticat...
38
Ruby
Ruby
remove duplicated tests
50ec25b506116063d1b7f0da0777d1dbc5380f93
<ide><path>activemodel/test/cases/errors_test.rb <ide> def test_each_when_arity_is_negative <ide> def test_any? <ide> errors = ActiveModel::Errors.new(Person.new) <ide> errors.add(:name) <del> assert_not_deprecated { <del> assert errors.any?, "any? should return true" <del> } <del> assert_not_de...
1
Text
Text
add some thoughts from #134
d925a045fdd8dcd39ee3ec6a2387769b49cc3e52
<ide><path>README.md <ide> Atomic Flux with hot reloading. <ide> - [But there are switch statements!](#but-there-are-switch-statements) <ide> - [What about `waitFor`?](#what-about-waitfor) <ide> - [My views aren't updating!](#my-views-arent-updating) <add> - [How do Stores, Actions and Components interact?](#how...
1
PHP
PHP
remove input data parsing code from requesthandler
28f843e91fffd35f564ae5206fc7bf5aed0b51b1
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> use Cake\Http\Response; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Routing\Router; <del>use Cake\Utility\Exception\XmlException; <ide> use Cake\Utility\Inflector; <del>use Cake\Utility\Xml; <del>use RuntimeException; <ide> <ide> /** <ide> * ...
2
Javascript
Javascript
restrict website to 3.0 models until 3.1 release
a13f29bb540ef832f56c364a71ddbd87c7a1c796
<ide><path>website/src/templates/models.js <ide> function isStableVersion(v) { <ide> <ide> function getLatestVersion(modelId, compatibility, prereleases) { <ide> for (let [version, models] of Object.entries(compatibility)) { <del> if (isStableVersion(version) && models[modelId]) { <add> if (version.s...
1
Text
Text
add local option to message form [ci skip]
194a93385b08be857172b8eb6287d335c5adf1ea
<ide><path>activestorage/README.md <ide> end <ide> ``` <ide> <ide> ```erb <del><%= form_with model: @message do |form| %> <add><%= form_with model: @message, local: true do |form| %> <ide> <%= form.text_field :title, placeholder: "Title" %><br> <ide> <%= form.text_area :content %><br><br> <ide>
1
Text
Text
add clarification about object data structure
0770e8096649b89e17ea02b58ac87d477239234f
<ide><path>docs/docs/general/data-structures.md <ide> data: [{x:'Sales', y:20}, {x:'Revenue', y:10}] <ide> <ide> This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying `parsing: false` at chart options or dataset. If parsing is disabled, data must be sorted and in th...
1
Java
Java
apply flatshadownode padding to view
312f04d2b782aeb3f9f6bd6c75a4c64e0a0f0b8e
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/AndroidView.java <ide> final ViewManager mViewManager; <ide> private final ReactShadowNode mReactShadowNode; <ide> private final boolean mNeedsCustomLayoutForChildren; <add> private boolean mPaddingChanged = false; <ide> <ide> /* package */ Android...
4
Ruby
Ruby
permit hash on direct upload in active storage
bb148d822cd48688c836fb37ef47c51a150f5e42
<ide><path>activestorage/app/controllers/active_storage/direct_uploads_controller.rb <ide> def create <ide> <ide> private <ide> def blob_args <del> params.require(:blob).permit(:filename, :byte_size, :checksum, :content_type, :metadata).to_h.symbolize_keys <add> params.require(:blob).permit(:filename, ...
2