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 | offset the no of donations on prod | 9fb9ce3085585287516def3c519e82f3575619be | <ide><path>client/src/redux/index.js
<ide> export const userSelector = state => {
<ide> };
<ide>
<ide> export const sessionMetaSelector = state => state[ns].sessionMeta;
<del>export const activeDonationsSelector = state =>
<del> Number(sessionMetaSelector(state).activeDonations) +
<del> Number(PAYPAL_SUPPORTERS || 0... | 1 |
Python | Python | fix tiny errors | efe7c3ea6fd4ab3b9b78ff492e652161a748d0b6 | <ide><path>research/object_detection/utils/spatial_transform_ops.py
<ide> def multilevel_native_crop_and_resize(images, boxes, box_levels,
<ide> crop_size, scope=None):
<ide> #FIXME: fix docstring
<ide> """doc string."""
<del> if not box_levels:
<add> if box_levels is None:
<... | 1 |
Javascript | Javascript | replace recursion with loop | 67077b7183d9aa9f88af8124de22f817f5515681 | <ide><path>lib/ExportsInfo.js
<ide> class ExportInfo {
<ide> const resolveTarget = (target, alreadyVisited) => {
<ide> if (!target) return null;
<ide> if (!target.export) return target;
<del> const exportsInfo = moduleGraph.getExportsInfo(target.module);
<del> const exportInfo = exportsInfo.getExportInfo(ta... | 1 |
Ruby | Ruby | require the count_down_latch | 175515ad8bdbe1f87a52c3023d35d434b48e35fc | <ide><path>activerecord/test/cases/migration_test.rb
<del>require "cases/helper"
<del>require "cases/migration/helper"
<add>require 'cases/helper'
<add>require 'cases/migration/helper'
<ide> require 'bigdecimal/util'
<add>require 'concurrent/atomic/count_down_latch'
<ide>
<ide> require 'models/person'
<ide> require 'm... | 1 |
Text | Text | add link back to home page from docs | 053729ac44b6a16ce957142fdcacaa5bfd9d8d79 | <ide><path>docs/SUMMARY.md
<ide> # Summary
<ide>
<del>* [Chart.js](README.md)
<add>* [Chart.js](https://www.chartjs.org)
<add>* [Introduction](README.md)
<ide> * [Getting Started](getting-started/README.md)
<ide> * [Installation](getting-started/installation.md)
<ide> * [Integration](getting-started/integration.md... | 1 |
PHP | PHP | add tests for support\optional | 4a49ba5f2e86d29f8f07dc65640460822ee98bd0 | <ide><path>tests/Support/SupportOptionalTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Support;
<add>
<add>use PHPUnit\Framework\TestCase;
<add>use Illuminate\Support\Optional;
<add>
<add>class SupportOptionalTest extends TestCase
<add>{
<add> public function testGetExistItemOnObject()
<add> {
<add> ... | 1 |
Ruby | Ruby | handle ranges with excluded end | 233ee77f4511255ff2ff7c0b0ebf1cee13e7fc10 | <ide><path>lib/arel/algebra/attributes/attribute.rb
<ide> def matches(regexp)
<ide> end
<ide>
<ide> def in(array)
<del> Predicates::In.new(self, array)
<add> if array.is_a?(Range) && array.exclude_end?
<add> [Predicates::GreaterThanOrEqualTo.new(self, array.begin), Predicates::LessTh... | 1 |
Python | Python | fix spelling of develop | 9a978c61193a9a4c7ef5a96cdaa8b9aef4b38dda | <ide><path>runtests.py
<ide> def main(argv):
<ide> "Note that you need to commit your changes first!"))
<ide> parser.add_argument("--raise-warnings", default=None, type=str,
<ide> choices=('develop', 'release'),
<del> help="if 'develop', w... | 1 |
Mixed | Go | remove pkg/discovery as it's now unused | e202ac3f3857d422bb65a86f93898a9b404cc1e3 | <ide><path>pkg/discovery/README.md
<del>---
<del>page_title: Docker discovery
<del>page_description: discovery
<del>page_keywords: docker, clustering, discovery
<del>---
<del>
<del># Discovery
<del>
<del>Docker comes with multiple Discovery backends.
<del>
<del>## Backends
<del>
<del>### Using etcd
<del>
<del>Point you... | 15 |
Python | Python | fix identity init | e361a26463bfda37c42acd3df1e4efb6d97215fe | <ide><path>keras/backend/tensorflow_backend.py
<ide> def eye(size, dtype=None, name=None):
<ide> else:
<ide> n, m = size, size
<ide> with tf_ops.init_scope():
<del> return variable(tf.eye(n, m, dtype=dtype), dtype, name)
<add> v = tf.eye(n, m, dtype=dtype, name=name)
<add> if py_all... | 2 |
Java | Java | fix issues in rsocketmessagehandler initialization | 88016d47d01c74157f638dc1217ee6aa2428c65f | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/MessageMappingMessageHandler.java
<ide> import org.springframework.context.EmbeddedValueResolverAware;
<ide> import org.springframework.core.KotlinDetector;
<ide> import org.springframework.core.annotation.AnnotatedEleme... | 6 |
Javascript | Javascript | add event.isdefaultprevented() as jquery | f37f0ea16edd4b487ef8812ff69a78d9a287fa60 | <ide><path>src/jqLite.js
<ide> forEach({
<ide> if (!event.target) {
<ide> event.target = event.srcElement || document;
<ide> }
<add>
<add> if (isUndefined(event.defaultPrevented)) {
<add> var prevent = event.preventDefault;
<add> event.preventDefault = func... | 2 |
Javascript | Javascript | switch assertion for simulated ember.create | fa627f4421e8b665fc32dca8350a2649103a94eb | <ide><path>packages/ember-routing/tests/helpers/control_test.js
<ide> if (Ember.ENV.EXPERIMENTAL_CONTROL_HELPER) {
<ide> var childController = view.get('childViews').objectAt(0).get('controller');
<ide>
<ide> ok(view.$().text().match(/^.*Tom Dale.*$/), "The view rendered");
<del> deepEqual(childController.g... | 2 |
PHP | PHP | guess policy method from class name | e0e3220ac9436ba94795d850ca07ca7fd766f86b | <ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php
<ide> public function authorizeForUser($user, $ability, $arguments = [])
<ide> */
<ide> protected function parseAbilityAndArguments($ability, $arguments)
<ide> {
<del> if (is_string($ability)) {
<add> if (is_string($abili... | 2 |
Javascript | Javascript | throw errors not strings | ee6014a3aa90232ed263fe9c9e0860c777b37a30 | <ide><path>src/ng/location.js
<ide> function convertToHashbangUrl(url, basePath, hashPrefix) {
<ide> path = match.path.substr(pathPrefix.length);
<ide>
<ide> if (match.path.indexOf(pathPrefix) !== 0) {
<del> throw 'Invalid url "' + url + '", missing path prefix "' + pathPrefix + '" !';
<add> thro... | 1 |
Mixed | Ruby | fix exception when logging sql w/ nil binary value | 12ff63b227e7ef01c7e57302c9999151dca157f1 | <ide><path>activerecord/CHANGELOG.md
<add>* Log nil binary column values correctly.
<add>
<add> When an object with a binary column is updated with a nil value
<add> in that column, the SQL logger would throw an exception when trying
<add> to log that nil value. This only occurs when updating a record
<add> ... | 3 |
Javascript | Javascript | add api doc for ember.alias | a1fa3dbabe633dc8ee46a832c89ee781089c6c28 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> Alias = function(methodName) {
<ide> };
<ide> Alias.prototype = new Ember.Descriptor();
<ide>
<add>/**
<add> Makes a property or method available via an additional name.
<add>
<add> App.PaintSample = Ember.Object.extend({
<add> color: 'red',
<add> ... | 1 |
Ruby | Ruby | eliminate a place where argv is mutated | c2dcd91bd1ff2b88836089043bbfffacbbc5c6f3 | <ide><path>Library/Homebrew/build.rb
<ide> def post_superenv_hacks
<ide> end
<ide> end
<ide>
<del> def pre_superenv_hacks
<del> # Allow a formula to opt-in to the std environment.
<del> if (formula.env.std? || deps.any? { |d| d.name == "scons" }) && ARGV.env != "super"
<del> ARGV.unshift "--env=std"
... | 2 |
Javascript | Javascript | remove extraneous space | 88650aaa70768755524e7ad1a7aa8074ac9b1983 | <ide><path>test/parallel/test-zlib-truncated.js
<ide>
<ide> require('../common');
<ide> const assert = require('assert');
<del>const zlib = require ('zlib');
<add>const zlib = require('zlib');
<ide>
<ide> const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +
<ide> 't. Mo... | 1 |
Text | Text | add beginning visual basic | 64385d2c6e9d777afd44fa451f40faac18ab5795 | <ide><path>guide/english/book-recommendations/index.md
<ide> title: Books to Read for Programmers
<ide> - [Amazon Smile](https://smile.amazon.com/Soft-Skills-software-developers-manual/dp/1617292397?pldnSite=1)
<ide> - ISBN-13: 9781617292392
<ide>
<add>*The Innovator's Delimma*
<add>- [Amazon] (https://www.amazon.com... | 1 |
Javascript | Javascript | fix spaces -> tabs | 77185993df7c7e1171c8b3bac9b551ea616d54a8 | <ide><path>src/Chart.Doughnut.js
<ide> addData : function(segment, atIndex, silent){
<ide> var index = atIndex !== undefined ? atIndex : this.segments.length;
<ide> if ( typeof(segment.color) === "undefined" ) {
<del> segment.color = Chart.defaults.global.segmentColorDefault[index];
<del> ... | 1 |
Text | Text | reflect c03bba4 in changelogs | 5f35c60f848dda275e34bc055f58031c08d7b416 | <ide><path>activesupport/CHANGELOG.md
<add>* Add support for tracing constant autoloads. Just throw
<add>
<add> ActiveSupport::Dependencies.logger = Rails.logger
<add> ActiveSupport::Dependencies.verbose = true
<add>
<add> in an initializer.
<add>
<add> *Xavier Noria*
<add>
<ide> * Maintain `htm... | 2 |
Ruby | Ruby | take failed screenshot before reset driver | 3da239a2cd43d04c5f972fa8f8e57e64a139194c | <ide><path>actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
<ide> def before_setup
<ide> end
<ide>
<ide> def after_teardown
<del> super
<ide> take_failed_screenshot
<add> super
<ide> Capybara.reset_sessions!
<ide> end
<ide> ... | 1 |
Javascript | Javascript | fix exit code when linting from ci | 1264cecde771a391c3ae192b41c321371cf95fa5 | <ide><path>tools/jslint.js
<ide> if (cluster.isMaster) {
<ide> sendWork(worker);
<ide> });
<ide>
<del> process.on('exit', function() {
<add> process.on('exit', function(code) {
<ide> if (showProgress) {
<ide> curPath = 'Done';
<ide> printProgress();
<ide> outFn('\r\n');
<ide> }
<del> ... | 1 |
Go | Go | fix symlink handling in builder add/copy commands | 47da59f7ec4ee0f49d47a9b32abb137bb30b2c48 | <ide><path>builder/builder.go
<ide> type Context interface {
<ide> Close() error
<ide> // Stat returns an entry corresponding to path if any.
<ide> // It is recommended to return an error if path was not found.
<del> Stat(path string) (FileInfo, error)
<add> // If path is a symlink it also returns the path to the ta... | 6 |
Python | Python | set version to v2.1.0.dev0 | 66496ac8e1933143decaee299a2e91551db928c0 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.8'
<add>__version__ = '2.1.0.dev0'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https://s... | 1 |
Javascript | Javascript | fix publishing of canary builds | ca94affbe1c3bc45583c04167a20e9328580c215 | <ide><path>config/s3ProjectConfig.js
<ide> fileMap = function(revision,tag,date) {
<ide> "ember-runtime.js": fileObject("ember-runtime", ".js", "text/javascript", revision, tag, date),
<ide> "ember.min.js": fileObject("ember.min", ".js", "text/javascript", r... | 1 |
Javascript | Javascript | remove noerrorsplugin from examples | be55659360722862b4efd153e992423f631a3de5 | <ide><path>examples/async/webpack.config.js
<ide> module.exports = {
<ide> },
<ide> plugins: [
<ide> new webpack.optimize.OccurenceOrderPlugin(),
<del> new webpack.HotModuleReplacementPlugin(),
<del> new webpack.NoErrorsPlugin()
<add> new webpack.HotModuleReplacementPlugin()
<ide> ],
<ide> module: ... | 9 |
Javascript | Javascript | sanitize doctype declarations correctly | e66c23fe55f8571a014b0686c8dbca128e7a8240 | <ide><path>src/ngSanitize/sanitize.js
<ide> var START_TAG_REGEXP = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:
<ide> BEGIN_TAG_REGEXP = /^</,
<ide> BEGING_END_TAGE_REGEXP = /^<\s*\//,
<ide> COMMENT_REGEXP = /<!--(.*?)-->/g,
<add> DOCTYPE_REGEXP = /<!DOCTYPE([^>]*?)>/i,
<ide> CDATA_REGEXP = /<!\[C... | 2 |
Ruby | Ruby | fix call sites | c401c43850e79a4d994e22dd8d82a69612bb947f | <ide><path>actionpack/lib/action_controller/railties/helpers.rb
<ide> def inherited(klass)
<ide> super
<ide> return unless klass.respond_to?(:helpers_path=)
<ide>
<del> if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_helpers_paths) }
<add> if namespace = klass.module_pare... | 7 |
Javascript | Javascript | ensure empty socket on error | 1a3ca8223e08d82051655d7d7e2ea31b439f1bf1 | <ide><path>lib/_http_client.js
<ide> function socketCloseListener() {
<ide>
<ide> function socketErrorListener(err) {
<ide> var socket = this;
<del> var parser = socket.parser;
<ide> var req = socket._httpMessage;
<ide> debug('SOCKET ERROR:', err.message, err.stack);
<ide>
<ide> function socketErrorListener(er... | 2 |
Javascript | Javascript | pull reusable logic out of `bundler` | 66d51bb5d1f7df07694698094b2dbe6a6642a05c | <ide><path>packager/src/Bundler/index.js
<ide> const defaults = require('../../defaults');
<ide> const os = require('os');
<ide> const invariant = require('fbjs/lib/invariant');
<ide>
<add>const {generateAssetTransformResult, isAssetTypeAnImage} = require('./util');
<add>
<ide> const {
<ide> sep: pathSeparator,
<ide... | 2 |
PHP | PHP | fix lint error | 7ff987b05919bbac4c0acd59a8e638e395455022 | <ide><path>Cake/Controller/Controller.php
<ide> class Controller extends Object implements EventListener {
<ide>
<ide> use MergeVariablesTrait;
<del> use RequestActionTrait;
<ide> use RepositoryAwareTrait;
<add> use RequestActionTrait;
<ide> use ViewVarsTrait;
<ide>
<ide> /** | 1 |
Java | Java | use class canonical name for partial_wake_lock tag | 88dbb4558cd10f129f2c31e3b0b872924aba5416 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java
<ide> public static void acquireWakeLockNow(Context context) {
<ide> Assertions.assertNotNull((PowerManager) context.getSystemService(POWER_SERVICE));
<ide> sWakeLock = powerManager.newWakeLock(
<ide> PowerManager.... | 1 |
Javascript | Javascript | update an obsolete path | 65d6249979fc0dc0376a170ecf252db095ea656a | <ide><path>benchmark/http/_chunky_http_client.js
<ide> // test HTTP throughput in fragmented header case
<ide> var common = require('../common.js');
<ide> var net = require('net');
<del>var test = require('../../test/common.js');
<add>var test = require('../../test/common');
<ide>
<ide> var bench = common.createBenchm... | 1 |
Python | Python | add tf bert files | d68a8fe462ad836dc2127b21b456f1d8d65bec3b | <ide><path>pytorch_transformers/file_utils.py
<ide> def url_to_filename(url, etag=None):
<ide> Convert `url` into a hashed filename in a repeatable way.
<ide> If `etag` is specified, append its hash to the url's, delimited
<ide> by a period.
<add> If the url ends with .h5 (Keras HDF5 weights) ands '.h5' ... | 5 |
Text | Text | fix some typos in the readme | 0ebb7781c03d57e2e0c011975e85e57252d80d09 | <ide><path>README.md
<ide> instead of the `===` operator which determines object reference identity.
<ide> <!-- runkit:activate -->
<ide> ```js
<ide> const { Map } = require('immutable')
<del>const map1 = Map( {a: 1, b: 2, c: 3 })
<add>const map1 = Map({ a: 1, b: 2, c: 3 })
<ide> const map2 = map1.set('b', 2)
<ide> ass... | 1 |
Mixed | Go | add options for specifying block devices | a226168a8b877d632cb87c95dd0288f6092b9d8f | <ide><path>daemon/graphdriver/devmapper/README.md
<ide> Here is the list of supported options:
<ide> Example use:
<ide>
<ide> ``docker -d --storage-opt dm.mountopt=nodiscard``
<add>
<add> * `dm.datadev`
<add>
<add> Specifies a custom blockdevice to use for data for the thin pool.
<add>
<add> If using a ... | 2 |
Mixed | Javascript | add resizedelay option | ee74dd646a60e605308b90a5147fc7121ac9c0ee | <ide><path>docs/docs/configuration/responsive.md
<ide> Namespace: `options`
<ide> | `maintainAspectRatio` | `boolean` | `true` | Maintain the original canvas aspect ratio `(width / height)` when resizing.
<ide> | `aspectRatio` | `number` | `2` | Canvas aspect ratio (i.e. `width / height`, a value of 1 representing a sq... | 3 |
Python | Python | allow invalid ssl certs on onapp | b7b1fb999e62372640b46a76fa2790a0f74e39d5 | <ide><path>libcloud/compute/drivers/onapp.py
<ide> class OnAppNodeDriver(NodeDriver):
<ide>
<ide> def __init__(self, key=None, secret=None,
<ide> host='onapp.com', port=443,
<add> verify=True
<ide> ):
<ide> """
<ide> :param key: username
<ide> def _... | 1 |
Python | Python | improve windows autoconfiguration | bc9dc649157dd426202c86d41ce50091243a88b6 | <ide><path>numpy/distutils/system_info.py
<ide> def libpaths(paths, bits):
<ide> default_src_dirs = ['.']
<ide> default_x11_lib_dirs = []
<ide> default_x11_include_dirs = []
<del> vcpkg_include_dirs = [
<add> _include_dirs = [
<ide> 'include',
<ide> 'include/suitesparse',
<ide> ]
<... | 1 |
Text | Text | clarify http2 docs around class exports | d3d59821dd136a36dc2e1b4a7d02c936762240f4 | <ide><path>doc/api/http2.md
<ide> have occasion to work with the `Http2Session` object directly, with most
<ide> actions typically taken through interactions with either the `Http2Server` or
<ide> `Http2Stream` objects.
<ide>
<add>User code will not create `Http2Session` instances directly. Server-side
<add>`Http2Sess... | 1 |
Text | Text | remove refs to old openssl list-* commands | 9412441da01d14167a42557e8fe7e42cfc4309a2 | <ide><path>doc/api/crypto.md
<ide> option is not required but can be used to set the length of the authentication
<ide> tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
<ide>
<ide> The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
<del>recent OpenSSL releases, `openssl list... | 1 |
Javascript | Javascript | extend size() to take ownpropsonly param | 96a1df192a167e6e34988af687693506f4efd1d1 | <ide><path>src/Angular.js
<ide> function map(obj, iterator, context) {
<ide> * @function
<ide> *
<ide> * @description
<del> * Determines the number of elements in an array or number of properties of an object.
<add> * Determines the number of elements in an array, number of properties of an object or string
<add> * ... | 3 |
Javascript | Javascript | fix the test to work on windows | 26b11915b1c16440468a4b5f4b07d2409b98c68c | <ide><path>test/simple/test-domain.js
<ide> var e = new events.EventEmitter();
<ide>
<ide> d.on('error', function(er) {
<ide> console.error('caught', er);
<del> switch (er.message) {
<add>
<add> var er_message = er.message;
<add> var er_path = er.path
<add>
<add> // On windows, error messages can contain full pa... | 1 |
Text | Text | update the rails security guide [ci skip] | a3aa53684eb8c39db4aa03bc69b8ee15deadeb80 | <ide><path>guides/source/security.md
<ide> User.find(session[:user_id])
<ide>
<ide> ### Session id
<ide>
<del>NOTE: _The session id is a 32 byte long MD5 hash value._
<add>NOTE: _The session id is a 32-character random hex string._
<ide>
<del>A session id consists of the hash value of a random string. The random str... | 1 |
Javascript | Javascript | share socket._haderror with http_client | dc50f27d5260fcb4568be3d43b7dcc898355e748 | <ide><path>lib/_http_client.js
<ide> function socketCloseListener() {
<ide> res.emit('close');
<ide> });
<ide> res.push(null);
<del> } else if (!req.res && !req._hadError) {
<add> } else if (!req.res && !req.socket._hadError) {
<ide> // This socket error fired before we started to
<ide> // recei... | 3 |
Python | Python | fix evaluation with label smoothing in trainer | 461e8cacf94d1f76367cc9ba2cfd5b9bd3641c81 | <ide><path>src/transformers/trainer.py
<ide> def prediction_step(
<ide> else:
<ide> ignore_keys = []
<ide>
<add> # labels may be popped when computing the loss (label smoothing for instance) so we grab them first.
<add> if has_labels:
<add> labels = nested_detach(tu... | 1 |
Text | Text | fix broken list formatting [ci skip] | ce47479be03b1c56f5e24b67f9a5802ff30adcc2 | <ide><path>railties/CHANGELOG.md
<ide> * Deprecate `rails notes` subcommands in favor of passing an `annotations` argument to `rails notes`.
<ide>
<ide> The following subcommands are replaced by passing `--annotations` or `-a` to `rails notes`:
<del> - `rails notes:custom ANNOTATION=custom` is deprecated ... | 1 |
PHP | PHP | fix most coding standards in case/network | d0733ceb00e56aa68c555c28fb569dac36ec9941 | <ide><path>lib/Cake/Test/Case/Network/CakeRequestTest.php
<ide> App::uses('CakeRequest', 'Network');
<ide>
<ide> class CakeRequestTest extends CakeTestCase {
<add>
<ide> /**
<ide> * setup callback
<ide> *
<ide> public function testQueryStringParsingFromInputUrl() {
<ide> $expected = array('one' => 'something', 'tw... | 7 |
Javascript | Javascript | update mmdmaterial shader | d75cd5f3d273cc9beca0130d9d394f3f49d2f80c | <ide><path>examples/js/loaders/MMDLoader.js
<ide> THREE.ShaderLib[ 'mmd' ] = {
<ide> THREE.UniformsLib[ "fog" ],
<ide> THREE.UniformsLib[ "ambient" ],
<ide> THREE.UniformsLib[ "lights" ],
<add> THREE.UniformsLib[ "shadowmap" ],
<ide>
<ide> {
<ide> "emissive" : { type: "c", value: new THREE.Color( 0x000000 ... | 1 |
PHP | PHP | change some method names | 50b6b32ec5b850ad39fc1e2302d0272520f5c599 | <ide><path>app/Http/Controllers/Auth/PasswordController.php
<ide> public function showResetRequestForm()
<ide> * @param Request $request
<ide> * @return Response
<ide> */
<del> public function sendPasswordResetLink(Request $request)
<add> public function sendResetLink(Request $request)
<ide> {
<ide> switch (... | 1 |
Javascript | Javascript | ignore transforms when retrieving width/height | c920ff6e322baddbb2bd04125c5577244dcb0320 | <ide><path>src/css.js
<ide> function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
<ide>
<ide> function getWidthOrHeight( elem, name, extra ) {
<ide>
<del> // Start with offset property, which is equivalent to the border-box value
<del> var val,
<del> valueIsBorderBox = true,
<add> // Start with c... | 2 |
Text | Text | clarify description of `readable.push()` method | 63c0f15a8286ffb1fa99d4eb5faebfd844d8451a | <ide><path>doc/api/stream.md
<ide> class SourceWrapper extends Readable {
<ide> }
<ide> ```
<ide>
<del>The `readable.push()` method is intended be called only by `Readable`
<del>implementers, and only from within the `readable._read()` method.
<add>The `readable.push()` method is used to push the content
<add>into the... | 1 |
Javascript | Javascript | fix `one` method on evented interface | b534482da2bf66e2fd61226ad7026c6e46a16f3b | <ide><path>packages/ember-runtime/lib/mixins/evented.js
<ide> Ember.Evented = Ember.Mixin.create(
<ide> target = null;
<ide> }
<ide>
<add> var self = this;
<ide> var wrapped = function() {
<del> Ember.removeListener(this, name, target, wrapped);
<add> Ember.removeListener(self, name, target,... | 2 |
Python | Python | apply suggestions from code review | dd2ddde2a22b80ad8fee815276065f417bdd2177 | <ide><path>numpy/core/function_base.py
<ide> def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None,
<ide>
<ide> .. versionchanged:: 1.20.0
<ide> Values are rounded towards ``-inf`` instead of ``0`` when an
<del> integer ``dtype`` is specified.
<add> integer ``dtype`` is s... | 2 |
Javascript | Javascript | recognize array-likes in link-render-node | b9e1c56456273351d01d9e79b67fb8ccf629d31b | <ide><path>packages/ember-htmlbars/lib/hooks/link-render-node.js
<ide> */
<ide>
<ide> import subscribe from "ember-htmlbars/utils/subscribe";
<del>import { isArray } from "ember-metal/utils";
<add>import { isArray } from "ember-runtime/utils";
<ide> import { chain, read, readArray, isStream, addDependency } from "embe... | 2 |
Ruby | Ruby | drop variable assignment in validations | c082e3f615a078364172f0a6d8a335d6bf353d94 | <ide><path>activerecord/lib/active_record/validations.rb
<ide> def valid?(context = nil)
<ide> protected
<ide>
<ide> def perform_validations(options={}) # :nodoc:
<del> perform_validation = options[:validate] != false
<del> perform_validation ? valid?(options[:context]) : true
<add> options[:valid... | 1 |
Python | Python | simplify names; bugfix for single-gpu training | 1c47fab2a8ca1aebb67fc9972b14a76034147c6d | <ide><path>research/deeplab/common.py
<ide> # Test set name.
<ide> TEST_SET = 'test'
<ide>
<del>
<ide> class ModelOptions(
<ide> collections.namedtuple('ModelOptions', [
<ide> 'outputs_to_num_classes',
<ide><path>research/deeplab/train.py
<ide> def _build_deeplab(inputs_queue, outputs_to_num_classes, ignor... | 2 |
Python | Python | update changlog.py docstring | 2dfa9e88864f17f7d097e413fa74561feb8f6515 | <ide><path>tools/changelog.py
<ide> #!/usr/bin/env python
<ide> # -*- encoding:utf-8 -*-
<ide> """
<del>Script to generate contribor and pull request lists
<add>Script to generate contributor and pull request lists
<ide>
<ide> This script generates contributor and pull request lists for release
<del>announcements usin... | 1 |
Python | Python | return the coefficients array directly | 389bd44e32b0eace0d024b126931a0a00d14cffe | <ide><path>numpy/lib/polynomial.py
<ide> class poly1d(object):
<ide>
<ide> @property
<ide> def coeffs(self):
<del> """ A copy of the polynomial coefficients """
<del> return self._coeffs.copy()
<add> """ The polynomial coefficients """
<add> return self._coeffs
<add>
<add> @coeff... | 2 |
Python | Python | remove sys.version_info[0] == 2 or 3 | 798b3b3899e786273ff280b3bffc332749cff348 | <ide><path>examples/contrib/run_swag.py
<ide> import logging
<ide> import os
<ide> import random
<del>import sys
<ide>
<ide> import numpy as np
<ide> import torch
<ide> def __init__(self, example_id, choices_features, label):
<ide>
<ide> def read_swag_examples(input_file, is_training=True):
<ide> with open(input_... | 18 |
Python | Python | fix parsing of prices for a size | 09217fef5b465331bcf8c4648c62474d64e1bf21 | <ide><path>libcloud/drivers/rimuhosting.py
<ide> def _to_size(self,plan):
<ide> ram=plan['minimum_memory_mb'],
<ide> disk=plan['minimum_disk_gb'],
<ide> bandwidth=plan['minimum_data_transfer_allowance_gb'],
<del> price=plan['monthly_recurring_fee_usd'],
<add> pr... | 1 |
Python | Python | fix python 2.5 test failure | 0db427e15c5d952d22163ba41fc7d94c46c4e55c | <ide><path>libcloud/test/compute/test_deployment.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>from __future__ import with_statement
<add>
<ide> import os
<ide> import sys
<ide> import time | 1 |
Javascript | Javascript | hoist harmony exports | 0bd5d281e297a615ed688cabe55e82a592fc20db | <ide><path>lib/dependencies/HarmonyExportDependencyParserPlugin.js
<ide> module.exports = AbstractPlugin.create({
<ide> } else {
<ide> var immutable = statement.declaration && isImmutableStatement(statement.declaration);
<ide> var hoisted = statement.declaration && isHoistedStatement(statement.declaration);
<de... | 1 |
Ruby | Ruby | fix more offences | 49f9dff9b6ba1451d8c85927d5f75327bd2322d9 | <ide><path>actionview/test/abstract_unit.rb
<ide> def config
<ide> class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
<ide> def self.build_app(routes = nil)
<ide> routes ||= ActionDispatch::Routing::RouteSet.new.tap { |rs|
<del> rs.draw {}
<add> rs.draw { }
<ide> }
<ide> RoutedRackA... | 3 |
Python | Python | create prim.py (#397) | 89f15bef0a32e8e2c1c26f773daebfbe4dd3564f | <ide><path>Graphs/prim.py
<add>"""
<add>Prim's Algorithm.
<add>
<add>Determines the minimum spanning tree(MST) of a graph using the Prim's Algorithm
<add>
<add>Create a list to store x the vertices.
<add>G = [vertex(n) for n in range(x)]
<add>
<add>For each vertex in G, add the neighbors:
<add>G[x].addNeighbor(G[y])
<a... | 1 |
Text | Text | remove indent from .dockerignore example | 0f5a98122f92d3fef520773ea619523129794fd7 | <ide><path>docs/reference/builder.md
<ide> Here is an example `.dockerignore` file:
<ide>
<ide> ```
<ide> # comment
<del> */temp*
<del> */*/temp*
<del> temp?
<add>*/temp*
<add>*/*/temp*
<add>temp?
<ide> ```
<ide>
<ide> This file causes the following build behavior: | 1 |
Python | Python | fix mypy errors in google.cloud.sensors | 1f662571b2133df09da22aea35936bb10b8ebffa | <ide><path>airflow/providers/google/cloud/hooks/datafusion.py
<ide> def get_pipeline_workflow(
<ide> instance_url: str,
<ide> pipeline_id: str,
<ide> namespace: str = "default",
<del> ) -> str:
<add> ) -> Any:
<ide> url = os.path.join(
<ide> self._base_url(instance_url,... | 5 |
Ruby | Ruby | convert formulatext test to spec | 8676960d09fda58ea36a34ce202ce30431474ac6 | <ide><path>Library/Homebrew/test/audit_test.rb
<ide> require "formulary"
<ide> require "dev-cmd/audit"
<ide>
<del>class FormulaTextTests < Homebrew::TestCase
<del> def setup
<del> super
<del> @dir = mktmpdir
<del> end
<del>
<del> def formula_text(name, body = nil, options = {})
<del> path = Pathname.new "#... | 2 |
Java | Java | improve tests for detection of @mvc annotations | 7c6a1a1bf0db6b428344ec6797a9152c5f4f6d30 | <ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.java
<ide> import static org.junit.Assert.assertEquals;
<ide> import static org.junit.Assert.assertNotNull;
<ide>
<add>import java.lang.reflect.Method;
<ide> import java.text.SimpleDateFor... | 1 |
Ruby | Ruby | convert `brew test` test to spec | 0248b5e357de99654b6a2f4ee5fd20829c8481e6 | <ide><path>Library/Homebrew/test/dev-cmd/test_spec.rb
<add>describe "brew test", :integration_test do
<add> it "fails when no argument is given" do
<add> expect { brew "test" }
<add> .to output(/This command requires a formula argument/).to_stderr
<add> .and not_to_output.to_stdout
<add> .and be_a_fa... | 2 |
Text | Text | fix types in api docs for moves in parser and ner | 60520d86693699c1221a4414a133f76ffb9601b0 | <ide><path>website/docs/api/dependencyparser.md
<ide> shortcut for this and instantiate the component using its string name and
<ide> | `vocab` | The shared vocabulary. ~~Vocab~~ ... | 2 |
Text | Text | fix russian translation of rust looping docs | 1b3635f6fb90b3c470b6afc1919a5a9ebea2c5dc | <ide><path>guide/russian/rust/loops/index.md
<ide> localeTitle: Loops
<ide> ---
<ide> # Loops
<ide>
<del>Внутри Rust существует три типа встроенных механизмов циклизации: `loop` , `while` и `for` .
<add>Rust поддерживает три типа циклов: `loop` , `while` и `for` .
<ide>
<ide> ## Бесконечное повторение с `loop`
<ide> ... | 1 |
Javascript | Javascript | simulate synthetic events using reacttestutils | 36e97bac21642f73c15d45176dbd304fff327c5a | <ide><path>src/browser/ReactEventEmitter.js
<ide> var ReactEventEmitter = merge(ReactEventEmitterMixin, {
<ide> }
<ide> },
<ide>
<add> eventNameDispatchConfigs: EventPluginHub.eventNameDispatchConfigs,
<add>
<ide> registrationNameModules: EventPluginHub.registrationNameModules,
<ide>
<ide> putListener: Eve... | 9 |
Javascript | Javascript | add support for cause in aborterror | 36c0ac05e6d82786c58bbbff46715bb24efe90b4 | <ide><path>lib/internal/errors.js
<ide> function hideInternalStackFrames(error) {
<ide> // to make usage of the error in userland and readable-stream easier.
<ide> // It is a regular error with `.code` and `.name`.
<ide> class AbortError extends Error {
<del> constructor() {
<del> super('The operation was aborted')... | 2 |
Text | Text | change several wordings of the text. | c7f24919b2db89568a041072296e599b52d50f78 | <ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/basic-javascript/comment-your-javascript-code.russian.md
<ide> localeTitle: Комментарий
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Комментарии - это строки кода, которые JavaScript намеренно игнорирует. Комм... | 1 |
PHP | PHP | add tests for new urlhelper methods | 35dc0c6dc6966bcc0f1b8df81df26415283ed42b | <ide><path>tests/TestCase/View/Helper/UrlHelperTest.php
<ide> public function testAssetTimestampPluginsAndThemes()
<ide> $this->assertRegExp('#/test_theme/js/non_existant.js\?$#', $result, 'No error on missing file');
<ide> }
<ide>
<add> /**
<add> * test script()
<add> *
<add> * @return void... | 1 |
Ruby | Ruby | pass benchmark.ms block through to realtime | a8ab5ff499080a4a4c125df949dfcee6e84e4c99 | <ide><path>activesupport/lib/active_support/core_ext/benchmark.rb
<ide> class << Benchmark
<ide> #
<ide> # Benchmark.ms { User.all }
<ide> # # => 0.074
<del> def ms
<del> 1000 * realtime { yield }
<add> def ms(&block)
<add> 1000 * realtime(&block)
<ide> end
<ide> end | 1 |
Ruby | Ruby | improve brew pull to close issues | dc3623f5a61216af9d0a811cb6c5618b666e2f98 | <ide><path>Library/Contributions/examples/brew-pull.rb
<ide> HOMEBREW_REPOSITORY.cd do
<ide> ARGV.each do|arg|
<ide> # This regex should work, if it's too precise, feel free to fix it.
<del> if !arg.match 'https:\/\/github.com\/\w+\/homebrew\/(pull\/\d+|commit\/\w{4,40})'
<add> urlmatch = arg.match 'https:\... | 1 |
Javascript | Javascript | call pushstate when state null and at initial url | 6a863c6cbef95f232d2933486c69830e381bcc1c | <ide><path>packages/ember-application/lib/system/history_location.js
<ide> Ember.HistoryLocation = Ember.Object.extend({
<ide>
<ide> path = this.formatPath(path);
<ide>
<del> if ((initialURL && initialURL !== path) || (state && state.path !== path)) {
<del> set(this, '_initialURL', null);
<add> if ((in... | 1 |
Text | Text | add policy for landing new npm releases | 7570ad58e91f0cbcf81daf3cdb7e4928b224249e | <ide><path>doc/guides/maintaining-npm.md
<ide> # Maintaining npm in Node.js
<ide>
<add>New pull requests should be opened when a "next" version of npm has
<add>been released. Once the "next" version has been promoted to "latest"
<add>the PR should be updated as necessary.
<add>
<add>Two weeks after the "latest" releas... | 1 |
Text | Text | remove another duplicate changelog entry | 4d5d0f62c64abb8d47a975035ccfd62cf1b1c86a | <ide><path>CHANGELOG.md
<ide> * [BUGFIX] Bubble `loading` action above pivot route
<ide> * [BUGFIX] reduceComputed ignore changes during reset.
<ide> * [BUGFIX] reduceComputed handle out-of-range index.
<del>* [BUGFIX] Allow Ember.Object.create to accept an Ember.Object.
<ide> * [FEATURE] Add support for nested loading... | 1 |
Java | Java | fix error message typo in shallowetagheaderfilter | 85a80e2a946898d7258228092c8aab96b6b25f3f | <ide><path>spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java
<ide> protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
<ide> private void updateResponse(HttpServletRequest request, HttpServletResponse response) throws IOException {
<ide> ContentCachingRe... | 1 |
PHP | PHP | fix usage of 'escape' => false | 74792f634b44e0a995c0f20187b7b65fe3d3ac87 | <ide><path>src/View/Helper/HtmlHelper.php
<ide> public function div($class = null, $text = null, array $options = [])
<ide> */
<ide> public function para($class, $text, array $options = [])
<ide> {
<del> if (isset($options['escape'])) {
<add> if (!empty($options['escape'])) {
<ide> ... | 2 |
Mixed | Python | fix debug data [ci skip] | 9bb958fd0a117342dfc73b5b784489cc14803168 | <ide><path>spacy/cli/debug_data.py
<ide>
<ide> from ._util import app, Arg, Opt, show_validation_error, parse_config_overrides
<ide> from ._util import import_code, debug_cli
<del>from ..training import Corpus, Example
<add>from ..training import Example
<ide> from ..training.initialize import get_sourced_components
<... | 2 |
Javascript | Javascript | write specs for filerecoveryservice | 57195d7ba632df65cdbb2362006a2ffb1b01b455 | <ide><path>spec/browser/file-recovery-service-spec.js
<add>'use babel'
<add>
<add>import FileRecoveryService from '../../src/browser/file-recovery-service'
<add>import temp from 'temp'
<add>import fs from 'fs-plus'
<add>import path from 'path'
<add>import os from 'os'
<add>import crypto from 'crypto'
<add>import {Emitt... | 2 |
Javascript | Javascript | throw error when output.filename is missing | b31a8110b31ce2611a17061ed0ab03fc40d4fa90 | <ide><path>bin/convert-argv.js
<ide> module.exports = function(optimist, argv, convertOptions) {
<ide> argv["optimize-minimize"] = true;
<ide> }
<ide>
<add> var configFileLoaded = false;
<ide> if(argv.config) {
<ide> options = require(path.resolve(argv.config));
<add> configFileLoaded = true;
<ide> } else {
<i... | 1 |
PHP | PHP | add missing casts and improper mocks | 66e94d5f9e883f9d3109cefe598252070900cf62 | <ide><path>src/Console/Shell.php
<ide> public function runCommand(array $argv, bool $autoMethod = false, array $extra =
<ide> }
<ide>
<ide> $subcommands = $this->OptionParser->subcommands();
<del> $method = Inflector::camelize($command);
<add> $method = Inflector::camelize((string)$comman... | 4 |
Mixed | Text | fix tidy_bytes for jruby | ae28e4beb3d9b395ee269999111b6598802da63f | <ide><path>activesupport/CHANGELOG.md
<add>* Fix the implementation of Multibyte::Unicode.tidy_bytes for JRuby
<add>
<add> The existing implementation caused JRuby to raise the error:
<add> `Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF8-MAC)`
<add>
<add> *Justin Coyne*
<add>
<ide>... | 2 |
Javascript | Javascript | remove extra require | 182e97a62ca0677ae4940ac5f88199ec73ce6295 | <ide><path>local-cli/cli.js
<ide> var childProcess = require('child_process');
<ide> var Config = require('./util/Config');
<ide> var defaultConfig = require('./default.config');
<ide> var dependencies = require('./dependencies/dependencies');
<del>var fs = require('fs');
<ide> var generate = require('./generate/genera... | 1 |
Text | Text | fix some broken sourceforge.net links | 0e7a1079be5e87aae2abcda7c27a2b0e67270a50 | <ide><path>docs/admin/b2d_volume_resize.md
<ide> The `boot2docker` command reads its configuration from the `$BOOT2DOCKER_PROFILE
<ide>
<ide> This solution increases the volume size by first cloning it, then resizing it
<ide> using a disk partitioning tool. We recommend
<del>[GParted](http://gparted.sourceforge.net/do... | 3 |
Javascript | Javascript | fix preventdefault for all browsers | 83b0e17f3fc1b0ed9993827d2308c344392926d4 | <ide><path>src/jquery/jquery.js
<ide> jQuery.extend({
<ide> if(jQuery.browser.msie) {
<ide> // get real event from window.event
<ide> event = window.event;
<del> event.preventDefault = function() {
<del> this.returnValue = false;
<del> };
<del> event.stopPropagation = function() {
<del> this... | 1 |
Javascript | Javascript | send hmr updates only for files on the bundle | b5081abae37f8599ed8902eb8a9770d31bf168ee | <ide><path>local-cli/server/util/attachHMRServer.js
<ide> function attachHMRServer({httpServer, path, packagerServer}) {
<ide> client = null;
<ide> }
<ide>
<add> // Returns a promise with the full list of dependencies and the shallow
<add> // dependencies each file on the dependency list has for the give platf... | 5 |
PHP | PHP | add tests for new constructor behavior | 495702fd7074aabfe0c3a73d40e78787890aa5b7 | <ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide> public function testCheckNotModifiedNoInfo()
<ide> $RequestHandler->response->expects($this->never())->method('notModified');
<ide> $this->assertNull($RequestHandler->beforeRender($event, '', $RequestHandler->response))... | 1 |
Java | Java | add marble diagram to the single.never method | e29b57b666954d37129da17430e592631ff17a79 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public static <T> Flowable<T> mergeDelayError(
<ide>
<ide> /**
<ide> * Returns a singleton instance of a never-signalling Single (only calls onSubscribe).
<add> * <p>
<add> * <img width="640" height="244" src="https://raw.github.com/wiki/Reactive... | 1 |
PHP | PHP | return queue calls | 26a13b52396860c695f05d826b044dea3b8d109c | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> public function send($view, array $data, $callback)
<ide> * @param array $data
<ide> * @param \Closure|string $callback
<ide> * @param string $queue
<del> * @return void
<add> * @return mixed
<ide> */
<ide> public function queue($view, array $data, $call... | 1 |
Javascript | Javascript | remove experimental from module type name | 955d5689a93d34375368ca1b821f554dc6e905cc | <ide><path>examples/wasm-complex/webpack.config.js
<ide> module.exports = {
<ide> {
<ide> test: /\.wat$/,
<ide> use: "wast-loader",
<del> type: "webassembly/async-experimental"
<add> type: "webassembly/async"
<ide> }
<ide> ]
<ide> },
<ide><path>examples/wasm-simple/webpack.config.js
<ide> module.... | 13 |
PHP | PHP | set default value for argument | e1213d5449c27c3b0a16c073b7ab96f37e54508a | <ide><path>src/Datasource/EntityInterface.php
<ide> public function getVirtual(): array;
<ide> *
<ide> * @param string $field the field to set or check status for
<ide> * @param bool $isDirty true means the field was changed, false means
<del> * it was not changed
<add> * it was not changed. Defa... | 1 |
Ruby | Ruby | add resolved_formulae method | 60383be03292c6996f16b24b46699741382e8db4 | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def formulae
<ide> @formulae ||= (downcased_unique_named - casks).map { |name| Formulary.factory(name, spec) }
<ide> end
<ide>
<add> def resolved_formulae
<add> require "formula"
<add> @resolved_formulae ||= (downcased_unique_named - casks).map do |name|
<a... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.