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 |
|---|---|---|---|---|---|
Python | Python | leave status responsibility to parent class | ebcc78d96cf6f4cd6e464cd6b8eccd83305900c2 | <ide><path>rest_framework/response.py
<ide> class Response(SimpleTemplateResponse):
<ide> if django.VERSION >= (1, 4):
<ide> rendering_attrs = SimpleTemplateResponse.rendering_attrs + ['_closable_objects']
<ide>
<del> def __init__(self, data=None, status=200,
<add> def __init__(self, data=None, statu... | 1 |
Text | Text | fix misleading sentence in http.md | 1706a2d7d82cf4daabb1e8e44ed43ed61befb342 | <ide><path>doc/api/http.md
<ide> This method signals to the server that all of the response headers and body
<ide> have been sent; that server should consider this message complete.
<ide> The method, `response.end()`, MUST be called on each response.
<ide>
<del>If `data` is specified, it is equivalent to calling
<add>... | 1 |
Text | Text | add missing link href | 8ca0eca4c8a458efa0438368590e63ace7f11ce9 | <ide><path>docs/how-to-work-on-guide-articles.md
<ide> With your help, we can create a comprehensive reference tool that will help mill
<ide> You can:
<ide>
<ide> - [Help us by Creating and Editing Guide Articles](#steps-for-creating-and-editing-guide-articles).
<del>- [Help us by reviewing pull requests for Guide Art... | 1 |
Javascript | Javascript | fix broken aria menu | b7cb9d06d6875790b869fd751b675ab2d78f492f | <ide><path>src/js/menu/menu-button.js
<ide> class MenuButton extends Component {
<ide>
<ide> if (this.items && this.items.length <= this.hideThreshold_) {
<ide> this.hide();
<add> this.menu.contentEl_.removeAttribute('role');
<add>
<ide> } else {
<ide> this.show();
<add> this.menu.content... | 2 |
Java | Java | serialize full pattern objects | 9306d6dbaabe21f50000406a3db982756297bce5 | <ide><path>org.springframework.aop/src/main/java/org/springframework/aop/support/AbstractRegexpMethodPointcut.java
<ide> /*
<del> * Copyright 2002-2008 the original author or authors.
<add> * Copyright 2002-2009 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 2 |
Javascript | Javascript | use ember.run.join internally for app#reset | 9c83112d9698823e4b9f540891a1f083d17d9503 | <ide><path>packages/ember-application/lib/system/application.js
<ide> var Application = Ember.Application = Ember.Namespace.extend(Ember.DeferredMixin
<ide> @method reset
<ide> **/
<ide> reset: function() {
<add> this._readinessDeferrals = 1;
<add>
<ide> function handleReset() {
<ide> var router = ... | 1 |
Python | Python | fix concatenation. closes ticket #642 | db45fc7e09d1b440cb7c273f8370ca0465c4959f | <ide><path>numpy/ma/core.py
<ide> def concatenate(arrays, axis=0):
<ide> for x in arrays:
<ide> if getmask(x) is not nomask:
<ide> break
<add> else:
<ide> return data
<ide> # OK, so we have to concatenate the masks
<ide> dm = numpy.concatenate([getmaskarray(a) for a in arrays]... | 2 |
Ruby | Ruby | ask backtrace locations for their spot information | e85edcc45dfcd46e5206c09051e192da683fbfa7 | <ide><path>actionpack/lib/action_dispatch/middleware/exception_wrapper.rb
<ide>
<ide> require "active_support/core_ext/module/attribute_accessors"
<ide> require "active_support/syntax_error_proxy"
<add>require "active_support/core_ext/thread/backtrace/location"
<ide> require "rack/utils"
<ide>
<ide> module ActionDisp... | 3 |
PHP | PHP | indent the html tags | ea77dd8a19efecb2b24cde503c7f2578577c710b | <ide><path>src/Error/Debug/HtmlFormatter.php
<ide> protected function dumpHeader(): string
<ide> */
<ide> public function dump(NodeInterface $node): string
<ide> {
<del> $html = $this->export($node);
<add> $html = $this->export($node, 0);
<ide> $head = '';
<ide> if (!static::$... | 2 |
Javascript | Javascript | use ember.error instead of default | 39f4e2eebb0aadf4e01cf0e85fe30356ea5169a0 | <ide><path>packages/ember-handlebars/lib/views/handlebars_bound_view.js
<ide> SimpleHandlebarsView.prototype = {
<ide> case 'destroyed':
<ide> break;
<ide> case 'inBuffer':
<del> throw new Error("Something you did tried to replace an {{expression}} before it was inserted into the DOM.");
<add... | 2 |
Mixed | Ruby | omit marshal_dump & _dump from delegate_missing_to | 722c45f64110be876d83e7f9a22592aa954886c1 | <ide><path>activesupport/CHANGELOG.md
<del>* Allow the `on_rotation` proc used when decrypting/verifying a message to be
<del> passed at the constructor level.
<add>* Do not delegate missing `marshal_dump` and `_dump` methods via the
<add> `delegate_missing_to` extension. This avoids unintentionally adding in... | 3 |
Javascript | Javascript | add tests for socket.setnodelay | 12554e01f5ec3e19c96c0cd7f01296058edb58cf | <ide><path>test/parallel/test-net-socket-setnodelay.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const net = require('net');
<add>
<add>const truthyValues = [true, 1, 'true', {}, []];
<add>const falseyValues = [false, 0, ''];
<add>const genSetNoDelay ... | 1 |
Javascript | Javascript | fix http bench-parser.js | 62c7b2eca9d9a53ccedd6517c955285b0732d255 | <ide><path>benchmark/http/bench-parser.js
<ide> function main({ len, n }) {
<ide> bench.start();
<ide> for (var i = 0; i < n; i++) {
<ide> parser.execute(header, 0, header.length);
<del> parser.reinitialize(REQUEST, i > 0);
<add> parser.initialize(REQUEST, header);
<ide> }
<ide> bench.en... | 1 |
PHP | PHP | add notsameas() validation rule | b949ffc0c417838a3b2dbca0643af1e33cd962f3 | <ide><path>src/Validation/Validator.php
<ide> public function notEquals($field, $value, $message = null, $when = null)
<ide> * @param string|null $message The error message when the rule fails.
<ide> * @param string|callable|null $when Either 'create' or 'update' or a callable that returns
<ide> * true... | 2 |
Python | Python | fix docstrings for kubernetes code | 9f37af25ae7eb85fa8dbb70b7dbb23bbd5505323 | <ide><path>airflow/kubernetes/pod_generator.py
<ide> def construct_pod( # pylint: disable=too-many-arguments
<ide> return reduce(PodGenerator.reconcile_pods, pod_list)
<ide>
<ide> @staticmethod
<del> def serialize_pod(pod: k8s.V1Pod):
<add> def serialize_pod(pod: k8s.V1Pod) -> dict:
<ide> ""... | 3 |
Text | Text | upgrade release guide to match current practices | 42e99b2c6417cb1cbbbab8f3d32c62232aa3d043 | <ide><path>RELEASING_RAILS.md
<ide> Do not release with a Red CI. You can find the CI status here:
<ide> https://buildkite.com/rails/rails
<ide> ```
<ide>
<del>### Is Sam Ruby happy? If not, make him happy.
<del>
<del>Sam Ruby keeps a [test suite](https://github.com/rubys/awdwr) that makes
<del>sure the code samples i... | 1 |
Text | Text | add note about public folder with standalone mode | 411a9b84d8f7dec29ddb0d249c161400bda5f02d | <ide><path>docs/advanced-features/output-file-tracing.md
<ide> module.exports = {
<ide>
<ide> This will create a folder at `.next/standalone` which can then be deployed on it's own without installing `node_modules`.
<ide>
<del>Additionally, a minimal `server.js` file is also output which can be used instead of `next ... | 1 |
PHP | PHP | add merge parameter to helpers/options | 83c6f57b49feb00f655e2d1c7e3b5ceed6f7a0df | <ide><path>src/View/ViewBuilder.php
<ide> public function plugin($name = null)
<ide> * The helpers to use
<ide> *
<ide> * @param array|null $helpers Helpers to use.
<add> * @param bool $merge Whether or not to merge existing data with the new data.
<ide> * @return array|$this
<ide> */
<del>... | 2 |
Javascript | Javascript | fix inspect performance bug | f413f56c3606fa6f01f0a7341fb4136965890fb7 | <ide><path>lib/util.js
<ide> function formatValue(ctx, value, recurseTimes, ln) {
<ide> }
<ide> }
<ide>
<add> // Using an array here is actually better for the average case than using
<add> // a Set. `seen` will only check for the depth and will never grow too large.
<add> if (ctx.seen.indexOf(value) !== -1)
... | 1 |
Javascript | Javascript | fix direction of verticalswipejump gestures | 09801aac302c4fa741f92ee2c6ffe906c6118a5b | <ide><path>Libraries/CustomComponents/Navigator/NavigatorSceneConfigs.js
<ide> 'use strict';
<ide>
<ide> var Dimensions = require('Dimensions');
<del>var PixelRatio = require('PixelRatio');
<ide> var I18nManager = require('I18nManager');
<add>var PixelRatio = require('PixelRatio');
<ide>
<ide> var buildStyleInterpola... | 1 |
Ruby | Ruby | fix paramswrapper docs errors | c894fff60a9146754fc9f7c4ddf992634c2bedd3 | <ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb
<ide> module ActionController
<ide> # Wraps parameters hash into nested hash. This will allow client to submit
<ide> # POST request without having to specify a root element in it.
<ide> #
<del> # By default, this functionality won't be enabled b... | 1 |
PHP | PHP | add hint to mail fake | c19afaf30f67838b6b3d2da0afcbff98ff6029f3 | <ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php
<ide> public function assertSent($mailable, $callback = null)
<ide> return $this->assertSentTimes($mailable, $callback);
<ide> }
<ide>
<add> $message = "The expected [{$mailable}] mailable was not sent.";
<add>
<add> if (cou... | 1 |
PHP | PHP | fix indentation and add test group | d503d192c592470a6c57bf167ef28168912eaf4b | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> public function testBeforeRenderViewVariables()
<ide> /**
<ide> * Tests deprecated view properties work
<ide> *
<add> * @group deprecated
<ide> * @param $property Deprecated property name
<ide> * @param $getter Getter name
<ide> ... | 1 |
PHP | PHP | update param doc for wherenotnull() | 3ec56b8810bc40016252977c69ba27057dcecf7d | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function orWhereNull($column)
<ide> /**
<ide> * Add a "where not null" clause to the query.
<ide> *
<del> * @param string $column
<add> * @param string|array $columns
<ide> * @param string $boolean
<ide> * @return \I... | 1 |
Javascript | Javascript | remove util properties from common | 3202456baae108b56b82515ced02ceebf2f8d8a7 | <ide><path>test/common.js
<ide> var fs = require('fs');
<ide> var assert = require('assert');
<ide> var os = require('os');
<ide> var child_process = require('child_process');
<add>var util = require('util');
<add>
<ide>
<ide> exports.testDir = path.dirname(__filename);
<ide> exports.fixturesDir = path.join(exports.te... | 1 |
Ruby | Ruby | add two cross links to methods in docs [skip ci] | e8a881a753c5b8f029924e1b79229540f8908714 | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> def redirect_to(options = {}, response_options = {})
<ide> # * <tt>:fallback_location</tt> - The default fallback location that will be used on missing +Referer+ header.
<ide> # * <tt>:allow_other_host</tt> - Allow or disallow redirection to... | 2 |
Javascript | Javascript | take full advantage of caching between builds | f01457e8fc10f68eafe1a1e68c3117eccf25df9c | <ide><path>packages/next/build/webpack.js
<ide> function optimizationConfig ({dir, dev, isServer, totalPages}) {
<ide> }
<ide>
<ide> // Terser is a better uglifier
<del> config.minimizer = [new TerserPlugin({
<del> parallel: true,
<del> sourceMap: false,
<del> cache: true
<del> })]
<add> config.minimiz... | 3 |
Text | Text | suggest eager load in ci in the c2z howto guide | 14940def0d908aae9a59f9ecf25b2f013026b925 | <ide><path>guides/source/classic_to_zeitwerk_howto.md
<ide> Please make sure to depend on at least Bootsnap 1.4.4.
<ide> Check Zeitwerk Compliance in the Test Suite
<ide> -------------------------------------------
<ide>
<del>The Rake task `zeitwerk:check` just eager loads, because doing so triggers built-in validatio... | 1 |
Text | Text | update displacy api docs [ci skip] | cb41a33d14fc3974dbfd5a60d9a92ed970d25792 | <ide><path>website/docs/api/top-level.md
<ide> If a setting is not present in the options, the default value will be used.
<ide> | -------- | ---- | ------------------------------------------------------------------------------------- | ------- |
<ide> | `ents` | list | Entity types to highlight (`None` for all types... | 1 |
Python | Python | add timehistory callback to bert | 7d86c3171d1a89c728fb21d8f64f63bd107de0d2 | <ide><path>official/modeling/model_training_utils.py
<ide> def _run_callbacks_on_batch_end(batch, logs):
<ide> train_steps(train_iterator,
<ide> tf.convert_to_tensor(steps, dtype=tf.int32))
<ide> train_loss = _float_metric_value(train_loss_metric)
<add> _run_callbacks_on_batch_end... | 4 |
Javascript | Javascript | update gruntfile to pass jshint | 5f2b8fb8313fc9a83221e93e3c8210a5ae2783a8 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> // npm install https://github.com/gruntjs/grunt-contrib-jshint/archive/7fd70e86c5a8d489095fa81589d95dccb8eb3a46.tar.gz
<ide> jshint: {
<ide> src: {
<del> src: ["src/js/*.js", "Gruntfile.js", "test/unit/*.js"],
<add> src: ... | 1 |
Javascript | Javascript | fix comment typo | 1b8645ccae0659da5bf6d3f999a8b24d147df83e | <ide><path>examples/js/cameras/CombinedCamera.js
<ide> THREE.CombinedCamera.prototype.setFov = function( fov ) {
<ide>
<ide> };
<ide>
<del>// For mantaining similar API with PerspectiveCamera
<add>// For maintaining similar API with PerspectiveCamera
<ide>
<ide> THREE.CombinedCamera.prototype.updateProjectionMatrix ... | 1 |
Javascript | Javascript | require posts to have a date | 40f70673c65de19183bfd9e32151383d23e7edf1 | <ide><path>tools/blog/generate.js
<ide> function parseFile(file, contents) {
<ide> }, {});
<ide> if (post.status && post.status !== 'publish') return null;
<ide> post.body = c;
<add> post.src = file;
<ide> return post;
<ide> }
<ide>
<ide> function buildPermalink(key, post) {
<ide>
<ide> data.post = post;
<... | 1 |
Ruby | Ruby | pass the request object to the application | b18f22d15c28fc5fe634928d59148c932bba4696 | <ide><path>actionpack/lib/action_dispatch/journey/router.rb
<ide> def serve(req)
<ide>
<ide> req.path_parameters = set_params.merge parameters
<ide>
<del> status, headers, body = route.app.call(req.env)
<add> status, headers, body = route.app.serve(req)
<ide>
<ide> if 'pass' == ... | 3 |
Javascript | Javascript | use cached vectors | e289d72af7a917d2583c234e74832623feb12f79 | <ide><path>examples/jsm/csm/Frustum.js
<ide> export default class Frustum {
<ide> // 2 --- 1
<ide> // clip space spans from [-1, 1]
<ide>
<del> this.vertices.near[ 0 ] = new Vector3( 1, 1, - 1 );
<del> this.vertices.near[ 1 ] = new Vector3( 1, - 1, - 1 );
<del> this.vertices.near[ 2 ] = new Vector3( - 1, - 1, -... | 1 |
PHP | PHP | remove error method call in welcome view | 868a33fb9cc3d70b337264ba005f16ab306cd9ed | <ide><path>application/views/home/index.php
<ide>
<ide> <div id="content">
<ide> You have successfully installed Laravel.
<del> <?php Cache::driver('adslkadsl'); ?>
<add>
<ide> <br /><br />
<ide>
<ide> Perhaps you would like to <a href="http://laravel.com/docs">peruse the documentation</a> or <a href="... | 1 |
Python | Python | add --std=c99 in setup.py, not distutils | 18af8e00711f62a5aa2c9b0c4f1225be49877a38 | <ide><path>numpy/distutils/ccompiler.py
<ide> def CCompiler_customize(self, dist, need_cxx=0):
<ide> 'g++' in self.compiler[0] or
<ide> 'clang' in self.compiler[0]):
<ide> self._auto_depends = True
<del> if 'gcc' in self.compiler... | 3 |
Java | Java | add perftest dev support manager | 4d1a56813c7975c848631de331e424587054fd57 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java
<ide> import android.content.Context;
<ide> import androidx.annotation.Nullable;
<ide> import com.facebook.react.common.SurfaceDelegateFactory;
<add>import com.facebook.react.common.build.ReactBuildConfig;
<ide> imp... | 2 |
Ruby | Ruby | remove circle from html_void_elements set | 8d51706c20a21c8f675391892eaaa12031b85fe4 | <ide><path>actionview/lib/action_view/helpers/tag_helper.rb
<ide> class TagBuilder # :nodoc:
<ide> include CaptureHelper
<ide> include OutputSafetyHelper
<ide>
<del> HTML_VOID_ELEMENTS = %i(area base br col circle embed hr img input keygen link meta param source track wbr).to_set
<add> HT... | 2 |
Ruby | Ruby | move constantize from conversions to inflections | 51be8dbdedd1279d74cd7a7e277c5042f278b8a2 | <ide><path>activemodel/lib/active_model/observing.rb
<ide> require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/core_ext/module/aliasing'
<ide> require 'active_support/core_ext/string/inflections'
<del>require 'active_support/core_ext/string/conversions'
<ide>
<ide> module ActiveModel
<ide> mod... | 3 |
Ruby | Ruby | treat secrets as binary | be4ebc47807948ed8d40c04d0a134f7de1ec0fc2 | <ide><path>railties/lib/rails/secrets.rb
<ide> def preprocess(path)
<ide>
<ide> def writing(contents)
<ide> tmp_path = File.join(Dir.tmpdir, File.basename(path))
<del> File.write(tmp_path, contents)
<add> IO.binwrite(tmp_path, contents)
<ide>
<ide> yield tmp_path
<ide>
<... | 2 |
PHP | PHP | remove tests that are now dead | a7f9b51d44dfe3c04fcec4186df487357fa648e2 | <ide><path>lib/Cake/Test/TestCase/TestSuite/TestFixtureTest.php
<ide> public function testInitStaticFixture() {
<ide> $this->assertEmpty($schema->indexes());
<ide> }
<ide>
<del>/**
<del> * test that init() correctly sets the fixture table when the connection
<del> * or model have prefixes defined.
<del> *
<del> * @... | 1 |
Text | Text | improve a hint in the new js rpg project | d350b14c129fa4f25a9f5993d28b6714b8a66038 | <ide><path>curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f14fe6d1fc72454648c7.md
<ide> You should set `monsterStats.style.display` to `none`.
<ide> assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/)... | 1 |
Javascript | Javascript | remove unused catch bindings | a74b4a062fd6cf8ba5fb0a17078f855b072841cd | <ide><path>test/common/index.js
<ide> function canCreateSymLink() {
<ide> try {
<ide> const output = execSync(`${whoamiPath} /priv`, { timout: 1000 });
<ide> return output.includes('SeCreateSymbolicLinkPrivilege');
<del> } catch (e) {
<add> } catch {
<ide> return false;
<ide> }
<ide> }... | 30 |
Text | Text | add an example angular integration | fce3ad23b9f0a8b596385b81bd925120382c2256 | <ide><path>docs/guides/angular.md
<add># Video.js and Angular integration
<add>
<add>Here's a basic Angular player implementation.
<add>
<add>It just instantiates the Video.js player on `OnInit` and destroys it on `OnDestroy`.
<add>
<add>```ts
<add>// vjs-player.component.ts
<add>import { Component, ElementRef, Input, ... | 1 |
Python | Python | fix none tensor check | 36e0a33d85e0ab30ca2f7220a437e80e66e87f18 | <ide><path>keras/layers/convolutional.py
<ide> def compute_output_shape(self, input_shape):
<ide> return tf.TensorShape([input_shape[0], length, input_shape[2]])
<ide>
<ide> def call(self, inputs):
<del> if tf.not_equal(tf.size(inputs), 0) and sum(self.cropping) >= inputs.shape[1]:
<add> if inputs.shape[1]... | 1 |
Text | Text | update doc to remove workspaceview | ddb16dcc6f5cdbf4af9b1accce289faa551e48b7 | <ide><path>docs/your-first-package.md
<ide> Register the command in _lib/ascii-art.coffee_:
<ide> ```coffeescript
<ide> module.exports =
<ide> activate: ->
<del> atom.workspaceView.command "ascii-art:convert", => @convert()
<add> atom.commands.add 'atom-workspace', "ascii-art:convert", => @convert()
<ide>
<ide... | 1 |
Text | Text | fix typo in building.md | 55cb28026530c8ecf4b813ead91378f71bbd3dc8 | <ide><path>BUILDING.md
<ide> To test if Node.js was built correctly:
<ide> > Release\node -e "console.log('Hello from Node.js', process.version)"
<ide> ```
<ide>
<del>### Android / Android-based devices (e.g., Firefox OS)
<add>### Android / Android-based devices (e.g. Firefox OS)
<ide>
<ide> Although these instructio... | 1 |
PHP | PHP | correct doc block | f353f7cc7803ddc88b875b410db9a2a3ad6f04c3 | <ide><path>src/Console/ConsoleOptionParser.php
<ide> class ConsoleOptionParser {
<ide> /**
<ide> * Construct an OptionParser so you can define its behavior
<ide> *
<del> * @param string $command|null The command name this parser is for. The command name is used for generating help.
<add> * @param string|null $command... | 1 |
Java | Java | remove no-op code in uri encoding | b142f8e66000bbf4ff86866fa47a6941bf06b453 | <ide><path>spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 1 |
PHP | PHP | add methods to docblock for ide completion | 4907553c330784cc273789cb7db35de81a8d1a9c | <ide><path>src/Mailer/Mailer.php
<ide> use Cake\Datasource\ModelAwareTrait;
<ide> use Cake\Event\EventListenerInterface;
<ide> use Cake\Mailer\Exception\MissingActionException;
<del>use Cake\Utility\Inflector;
<ide>
<ide> /**
<ide> * Mailer base class.
<ide> * The onRegistration method converts the application event... | 1 |
Python | Python | fix indentation to match args in optimizer classes | 5986eda374a691fe5880ea54c55d935c08259a68 | <ide><path>keras/optimizers/optimizer_experimental/optimizer.py
<ide> def from_config(cls, config):
<ide>
<ide>
<ide> base_optimizer_keyword_args = """name: String. The name to use
<del> for momentum accumulator weights created by
<del> the optimizer.
<del> clipnorm: Float. If set, the gradient of each w... | 1 |
PHP | PHP | allow utf8mb4 characters in the url | ccdbbe1f344bd8072b9f645c1e1a55178d9c3ec3 | <ide><path>src/Validation/Validation.php
<ide> public static function range($check, $lower = null, $upper = null)
<ide> public static function url($check, $strict = false)
<ide> {
<ide> static::_populateIp();
<del> $alpha = '0-9\p{L}\p{N}';
<add>
<add> $emoji = '\x{1F300}-\x{1F6FF}';
<add>... | 2 |
Text | Text | add api challenges - arabic translation | 18022f78bbc6d13e03e4767f79deef9a15ca9364 | <ide><path>curriculum/challenges/arabic/05-apis-and-microservices/apis-and-microservices-projects/exercise-tracker.arabic.md
<add>---
<add>id: 5a8b073d06fa14fcfde687aa
<add>title: Exercise Tracker
<add>localeTitle: متتبع التمرين
<add>challengeType: 4
<add>isRequired: true
<add>---
<add>
<add>## Description
<add><sectio... | 39 |
Javascript | Javascript | add unit test for common parsers method | cb3a5cc6913d81b3e16bcb3a9d5f29e5cfa1de73 | <ide><path>packages/react-native-codegen/src/parsers/__tests__/parsers-commons-test.js
<add>/**
<add> * Copyright (c) Meta Platforms, Inc. and affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow... | 1 |
Go | Go | add more info for debugging | 5882a9ea171b4cade430da8428beec180d0af952 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildHandleEscapes(c *check.C) {
<ide> }
<ide>
<ide> if _, ok := result["bar"]; !ok {
<del> c.Fatal("Could not find volume bar set from env foo in volumes table")
<add> c.Fatalf("Could not find volume bar set from env foo in volume... | 1 |
PHP | PHP | fix $previous becoming null only | bf374572d7cafa3c8a3170601224c40bc13e3bec | <ide><path>src/Datasource/Exception/PageOutOfBoundsException.php
<ide> class PageOutOfBoundsException extends Exception
<ide> protected $_messageTemplate = 'Page number %s could not be found.';
<ide>
<ide> /**
<del> * Constructor
<del> *
<del> * @param array|null $message Paging info.
<del> * @... | 2 |
Ruby | Ruby | add additional test for sharing templates | 2455d16a5a975fa5bf75bdb023df61047b055e3d | <ide><path>actionview/test/template/resolver_shared_tests.rb
<ide> def test_different_templates_when_cache_disabled
<ide> end
<ide>
<ide> def test_same_template_from_different_details_is_same_object
<del> with_file "test/hello_world.html.erb", "Hello plain text!"
<add> with_file "test/hello_world.html.erb", ... | 1 |
Text | Text | add missing definite article | 6ee361332b09f148f86149a7d9a6220bd61966e8 | <ide><path>docs/api-guide/serializers.md
<ide> Model fields which have `editable=False` set, and `AutoField` fields will be set
<ide>
<ide> **Note**: There is a special-case where a read-only field is part of a `unique_together` constraint at the model level. Here you **must** specify the field explicitly and provide ... | 1 |
Javascript | Javascript | fix issues with test-fs-chmod | 236b217cd705d03713c467b49d4c063f69187ddb | <ide><path>test/simple/test-fs-chmod.js
<ide> function closeSync() {
<ide>
<ide> // On Windows chmod is only able to manipulate read-only bit
<ide> if (is_windows) {
<del> mode_async = 0600; // read-write
<del> mode_sync = 0400; // read-only
<add> mode_async = 0400; // read-only
<add> mode_sync = 0600; /... | 1 |
Text | Text | make challenge instruction clearer | 087640d020874bc942d571c9768ff8cb9dcda5c6 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/use-multiple-conditional-ternary-operators.english.md
<ide> function findGreaterOrEqual(a, b) {
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>Use multiple <code>conditional operators</code> in th... | 1 |
Javascript | Javascript | remove all linking apis | d09ab75b04d169a802e606195fed4ef19580e1c0 | <ide><path>server/passport-providers.js
<ide> const successRedirect = '/';
<ide> const failureRedirect = '/';
<del>const linkSuccessRedirect = '/settings';
<del>const linkFailureRedirect = '/settings';
<ide>
<ide> export default {
<ide> local: {
<ide> export default {
<ide> scope: ['email'],
<ide> failureFla... | 1 |
Java | Java | polish @sendto test | 7a70f7c5d8ab8542cf1666110c58b71b528030ac | <ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/annotation/support/SendToMethodReturnValueHandlerTests.java
<ide> public class SendToMethodReturnValueHandlerTests {
<ide>
<ide> @Captor private ArgumentCaptor<Message<?>> messageCaptor;
<ide>
<del> private MethodParameter noAnnotationsRetu... | 1 |
Text | Text | add sam-github as collaborator | b6201297154a08696b555420e90df676d2e7154b | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Nicu Micleușanu** ([@micnic](https://github.com/micnic)) <micnic90@gmail.com>
<ide> * **Aleksey Smolenchuk** ([@lxe](https://github.com/lxe)) <lxe@lxe.co>
<ide> * **Shigeki Ohtsu** ([@shigeki](https://github.com/... | 1 |
Javascript | Javascript | add cause to domexception | 00e5617533c29a6b0cfd9b5148604b441e8bd3b8 | <ide><path>lib/internal/per_context/domexception.js
<ide> const disusedNamesSet = new SafeSet()
<ide> .add('ValidationError');
<ide>
<ide> class DOMException {
<del> constructor(message = '', name = 'Error') {
<add> constructor(message = '', options = 'Error') {
<ide> ErrorCaptureStackTrace(this);
<del> int... | 2 |
Javascript | Javascript | use lowercase properly in function names | 9b14e80fd5ff39b1b8e9833d80c2a2e3569b42d9 | <ide><path>crypto.js
<ide>
<ide> 'use strict';
<ide>
<del>var ARCFourCipher = (function aRCFourCipher() {
<add>var ARCFourCipher = (function arcFourCipher() {
<ide> function constructor(key) {
<ide> this.a = 0;
<ide> this.b = 0;
<ide> var ARCFourCipher = (function aRCFourCipher() {
<ide> }
<ide>
<ide> ... | 3 |
Text | Text | add link to security email directly. | 10c4f5d13338151cc4e75cefb9dfabfd8cf636be | <ide><path>SECURITY.md
<del>Visit https://vercel.com/security to view the disclosure policy.
<add># Reporting Security Issues
<add>
<add>If you believe you have found a security vulnerability in Next.js, we encourage you to let us know right away.
<add>
<add>We will investigate all legitimate reports and do our best to... | 1 |
Java | Java | add default viewresolver to mvc java config | dfcc1d7e8c8051004b6a8cd8329eed0f6c71efd2 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
<ide> import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver;
<ide> import org.springframework.web.servlet.resource.ResourceUrlProvider;
<ide> import org.springframework.w... | 2 |
Javascript | Javascript | add ember.binding#notnull to mixin | 48c37b040feaed97351a7a771a807d29cd9efb9f | <ide><path>packages/ember-metal/lib/binding.js
<ide> mixinProperties(Binding,
<ide> return binding.notEmpty(placeholder);
<ide> },
<ide>
<add> /**
<add> @see Ember.Binding.prototype.notNull
<add> */
<add> notNull: function(from, placeholder) {
<add> var C = this, binding = new C(null, from);
<add> re... | 1 |
Javascript | Javascript | improve code in test-fs-readfile-error | 499efbd085975ee603f7a54edbfd7536de566d69 | <ide><path>test/parallel/test-fs-readfile-error.js
<ide> 'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<del>var exec = require('child_process').exec;
<del>var path = require('path');
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const ... | 1 |
Ruby | Ruby | use patch found in the path | e32299e6527e51a06dbe3966dcaae0bca775808f | <ide><path>Library/Homebrew/patch.rb
<ide> def contents; end
<ide>
<ide> def apply
<ide> data = contents.gsub("HOMEBREW_PREFIX", HOMEBREW_PREFIX)
<del> cmd = "/usr/bin/patch"
<ide> args = %W[-g 0 -f -#{strip}]
<del> IO.popen("#{cmd} #{args.join(" ")}", "w") { |p| p.write(data) }
<del> raise ErrorDur... | 1 |
Javascript | Javascript | remove dead code | d61977f03ed6952342aa2ed69a8fc515c2143d94 | <ide><path>test/parallel/test-http-many-ended-pipelines.js
<ide>
<ide> 'use strict';
<ide> const common = require('../common');
<del>
<del>// No warnings should happen!
<del>const trace = console.trace;
<del>console.trace = function() {
<del> trace.apply(console, arguments);
<del> throw new Error('no tracing should ... | 1 |
Ruby | Ruby | remove the as_variable method | f8f2f9ce32965c06a7af588582ed2f0d03b4c543 | <ide><path>actionview/lib/action_view/renderer/partial_renderer.rb
<ide> def render(partial, context, options, block)
<ide> @details = extract_details(options)
<ide> @path = partial
<ide>
<del> as = as_variable(options)
<del>
<del> template = find_template(@path, template_keys(@path, as))
<add... | 1 |
Java | Java | increase timeout in stompwebsocketintegrationtests | c572d0c46972dafd6b53b3a8f2fcacfc426b7cf7 | <ide><path>spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompWebSocketIntegrationTests.java
<ide>
<ide> package org.springframework.web.socket.messaging;
<ide>
<del>import java.lang.annotation.ElementType;
<ide> import java.lang.annotation.Retention;
<ide> import java.lang.annotation.Retent... | 1 |
Text | Text | resolve typos in catdog classifier | c17bd7cd89230c06aa84de1d6de4f0d250da2476 | <ide><path>curriculum/challenges/english/11-machine-learning-with-python/machine-learning-with-python-projects/cat-and-dog-image-classifier.md
<ide> We are still developing the interactive instructional content for the machine le
<ide>
<ide> # --instructions--
<ide>
<del>For this challenge, you will complete the code... | 1 |
Go | Go | fix init layer chown of existing dir ownership | 23b771782ab7236ce5024ac5773a6ded9a2af753 | <ide><path>daemon/daemon_unix.go
<ide> func setupInitLayer(initLayer string, rootUID, rootGID int) error {
<ide>
<ide> if _, err := os.Stat(filepath.Join(initLayer, pth)); err != nil {
<ide> if os.IsNotExist(err) {
<del> if err := idtools.MkdirAllAs(filepath.Join(initLayer, filepath.Dir(pth)), 0755, rootUID, r... | 2 |
Ruby | Ruby | destructure spec hash more efficiently | 3cda2158817c8d0f62dcc659388de12d834c067c | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def cached_location; end
<ide> class VCSDownloadStrategy < AbstractDownloadStrategy
<ide> def initialize name, resource
<ide> super
<del> specs = resource.specs
<del> @ref_type, @ref = specs.dup.shift unless specs.empty?
<add> @ref_type, @ref = destr... | 1 |
Ruby | Ruby | optimize memoized method if there are no arguments | be0d235a3b82e72de49592913753a1f291a98f86 | <ide><path>activesupport/lib/active_support/memoizable.rb
<ide> def memoize(*symbols)
<ide> raise "Already memoized #{symbol}" if method_defined?(:#{original_method})
<ide> alias #{original_method} #{symbol}
<ide>
<del> def #{symbol}(*args)
<del> #{memoized_ivar} ||= {}
<del> ... | 1 |
Javascript | Javascript | fix outdated test comments | 661562fc52b211cb39459e413c4c5cd5debaf90f | <ide><path>packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js
<ide> describe('ReactSuspenseWithNoopRenderer', () => {
<ide> // Regression test
<ide> function App({text}) {
<ide> return (
<del> <Suspense fallback="Outer fallback">
<add> <Suspense fallback="... | 1 |
Javascript | Javascript | fix stack leak on error | d6b78d0e3769e4af1b1a60e89f53faf20e4bb2b3 | <ide><path>lib/domain.js
<ide> exports.create = exports.createDomain = function(cb) {
<ide> // it's possible to enter one domain while already inside
<ide> // another one. the stack is each entered domain.
<ide> var stack = [];
<add>exports._stack = stack;
<ide> // the active domain is always the one that we're curren... | 2 |
Python | Python | add test cases for linalg | 26a4597fb4db0b09cdaf5d9db817a68019174f75 | <ide><path>numpy/linalg/tests/test_linalg.py
<add>""" Test functions for linalg module
<add>"""
<add>
<add>from numpy.testing import *
<add>set_package_path()
<add>from numpy import array, single, double, csingle, cdouble, dot, identity, \
<add> multiply
<add>from numpy import linalg
<add>restore_path()
<add>
<a... | 1 |
PHP | PHP | add interface checks | 51ec8846e92ae8adbfd2751d612736464b067cb5 | <ide><path>src/Datasource/RulesChecker.php
<ide> */
<ide> namespace Cake\Datasource;
<ide>
<add>use Cake\Datasource\InvalidPropertyInterface;
<ide> use InvalidArgumentException;
<ide>
<ide> /**
<ide> protected function _addError($rule, $name, $options)
<ide> }
<ide> $entity->errors($options['... | 2 |
Ruby | Ruby | verify dependencies map to formulae before locking | 369f9b3251e1206eab10c778e591e054f4a7942b | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def initialize ff
<ide> @poured_bottle = false
<ide> @pour_failed = false
<ide>
<add> verify_deps_exist
<ide> lock
<ide> check_install_sanity
<ide> end
<ide> def pour_bottle? install_bottle_options={:warn=>false}
<ide> install_bottle?(... | 1 |
Javascript | Javascript | remove ws, fix typo | 7dfedb732dad5ba1f1f21ff611a82ecf8327916c | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide> * @description
<ide> * Register callback function that will be called, when url changes.
<ide> *
<del> * It's only called when the url is changed by outside of angular:
<add> * It's only called when the url is cha... | 1 |
Ruby | Ruby | require active_support after autoload setup | b8e914709c06fceac51384f7484c002fcb715196 | <ide><path>actionpack/lib/action_dispatch.rb
<ide> # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide> #++
<ide>
<del>activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
<del>$:.unshift activesupport_path if File.directory?(activesupport_path)
<del>require 'active_support'
<del... | 2 |
Ruby | Ruby | add on_macos/on_linux to pourbottlecheck | 509ab86ece78723efdca37fec286faf9c8ee896c | <ide><path>Library/Homebrew/software_spec.rb
<ide> require "compilers"
<ide> require "global"
<ide> require "os/mac/version"
<add>require "extend/on_os"
<ide>
<ide> class SoftwareSpec
<ide> extend T::Sig
<ide> def checksums
<ide> end
<ide>
<ide> class PourBottleCheck
<add> include OnOS
<add>
<ide> def initialize... | 1 |
PHP | PHP | bind request before routing again | 9b8490e5c568436748ed142b594879c3e5a90db0 | <ide><path>src/Illuminate/Foundation/Http/Kernel.php
<ide> protected function dispatchToRouter()
<ide> {
<ide> return function($request)
<ide> {
<add> $this->app->instance('request', $request);
<add>
<ide> return $this->router->dispatch($request);
<ide> };
<ide> } | 1 |
Python | Python | add comb sort algorithm | 5fb6b31ea928162c5185d66381ae99c7454d33c0 | <ide><path>sorts/comb_sort.py
<add>"""
<add>Comb sort is a relatively simple sorting algorithm originally designed by Wlodzimierz Dobosiewicz in 1980.
<add>Later it was rediscovered by Stephen Lacey and Richard Box in 1991. Comb sort improves on bubble sort.
<add>
<add>This is pure python implementation of counting sor... | 1 |
Python | Python | use 1/0 instead of booleans in config.h | 499f9b0bd93f5568b8ee86da18e7561839a54519 | <ide><path>numpy/build_utils/__init__.py
<ide> def check_header(self, header_name, **kw):
<ide> validate_arguments(self, kw)
<ide> try_compile(self, kw)
<ide> ret = kw["success"]
<add> if ret == 0:
<add> kw["define_value"] = 1
<add> else:
<add> kw["define_value"] = 0
<ide>
<ide> sel... | 1 |
Text | Text | add security issues to contributing.md | 54c3dd10dd2622b2cfe0e3b54226689828f3b5bd | <ide><path>CONTRIBUTING.md
<ide> Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer)
<ide> repository to setup the CakePHP standard. The [README](https://github.com/cakephp/cakephp-codesniffer/blob/master/README.md) contains installation info
<ide> for the sniff and phpcs.
<ide>
<add>## Rep... | 1 |
Javascript | Javascript | fix first start for new devs | cf61a55b92231546abdad47ffad06f9aca736c29 | <ide><path>index.js
<ide> /* eslint-disable no-process-exit */
<ide> require('babel/register');
<ide> require('dotenv').load();
<add>
<ide> var fs = require('fs'),
<add> Rx = require('rx'),
<ide> _ = require('lodash'),
<ide> path = require('path'),
<del> app = require('../server/server'),
<del> nonprof... | 2 |
Javascript | Javascript | make a null desc work for defineproperty | 76c313fc998b70328204d720a05892df81e4a423 | <ide><path>packages/ember-metal/lib/properties.js
<ide> Ember.defineProperty = function(obj, keyName, desc, val) {
<ide> } else {
<ide> if (descs[keyName]) { metaFor(obj).descs[keyName] = null; }
<ide>
<del> if (desc === undefined) {
<add> if (desc == null) {
<ide> if (existingDesc) {
<ide> o... | 1 |
Javascript | Javascript | add test case for bug in webpack 4 | cb8f6ade65e1842471f7889e478d5cfaa3954516 | <ide><path>test/cases/side-effects/dynamic-reexports/dynamic-reexport-default/dynamic.js
<add>Object(exports).default = "dynamic";
<ide><path>test/cases/side-effects/dynamic-reexports/dynamic-reexport-default/index.js
<add>export * from "./dynamic";
<add>export default "static";
<ide><path>test/cases/side-effects/dynam... | 4 |
Ruby | Ruby | extract habtm handling to a method | 5753a8cb2a63284aeb30d5b46e28301478cb779e | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def table_rows
<ide> row[fk_name] = ActiveRecord::FixtureSet.identify(value)
<ide> end
<ide> when :has_and_belongs_to_many
<del> if (targets = row.delete(association.name.to_s))
<del> target... | 1 |
Python | Python | add doc link to docstring of export_tfhub | d4112a1b78dd9ae4d556d4d22d48ce1ed2188f8d | <ide><path>official/nlp/tools/export_tfhub.py
<ide> to https://tfhub.dev that implement the preprocessor and encoder APIs defined
<ide> at https://www.tensorflow.org/hub/common_saved_model_apis/text.
<ide>
<add>For a full usage guide, see
<add>https://github.com/tensorflow/models/blob/master/official/nlp/docs/tfhub.md... | 1 |
Ruby | Ruby | fix actionview and activemodel test cases typos | e21a18bed0b1246ca660c1ffe4d8be8c7fd1b213 | <ide><path>actionview/test/template/form_collections_helper_test.rb
<ide> def with_collection_check_boxes(*args, &block)
<ide> assert_select 'label[for=user_active_no]', 'No'
<ide> end
<ide>
<del> test 'colection check box should sanitize collection values for labels correctly' do
<add> test 'collection check ... | 2 |
PHP | PHP | add method to check for mariadb | 03c04911351903a4f22b161ebf54a1e72f7ee948 | <ide><path>src/Database/Driver/Mysql.php
<ide> class Mysql extends Driver
<ide> */
<ide> protected const MAX_ALIAS_LENGTH = 256;
<ide>
<add> /**
<add> * Server type MySQL
<add> *
<add> * @var string
<add> */
<add> protected const SERVER_TYPE_MYSQL = 'mysql';
<add>
<add> /**
<add> ... | 3 |
Ruby | Ruby | add attribute_names method on errors | 89eb5540258d217b780dee384c47445a2c1e8a46 | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def keys
<ide> keys.freeze
<ide> end
<ide>
<add> # Returns all error attribute names
<add> #
<add> # person.errors.messages # => {:name=>["cannot be nil", "must be specified"]}
<add> # person.errors.attribute_names # => [:name]
<a... | 2 |
Python | Python | prepare 2.1.4 release | 5d54eeb3967f3364955478c9520ed9ba05c4f9f2 | <ide><path>keras/__init__.py
<ide> from .models import Model
<ide> from .models import Sequential
<ide>
<del>__version__ = '2.1.3'
<add>__version__ = '2.1.4'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='2.1.3',
<add> version='2.1.4',
<ide> description='Deep Learning for hu... | 2 |
Text | Text | fix some sentences | 70cfa581ab950e9dc661e75de3e89f1cda9b0797 | <ide><path>curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/pass-arguments-to-avoid-external-dependence-in-a-function.portuguese.md
<ide> localeTitle: Passar Argumentos para Evitar Dependência Externa em uma Função
<ide> ---
<ide>
<ide> ## Description
<del><section i... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.