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 |
|---|---|---|---|---|---|
Ruby | Ruby | remove unused test class | 9b487b939c93e64204401a9c7f7fbb3797876dd7 | <ide><path>activesupport/test/test_case_test.rb
<ide> def test_assert_no_changes_with_message
<ide> end
<ide> end
<ide>
<del>class AlsoDoingNothingTest < ActiveSupport::TestCase
<del>end
<del>
<ide> # Setup and teardown callbacks.
<ide> class SetupAndTeardownTest < ActiveSupport::TestCase
<ide> setup :reset_callba... | 1 |
Ruby | Ruby | avoid unnecessary string interpolation | 8ab2fb6868497023e369df939690af2a101ecafc | <ide><path>Library/Homebrew/utils/analytics.rb
<ide> def report_analytics(type, metadata={})
<ide> # https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
<ide> system ENV["HOMEBREW_CURL"], "https://www.google-analytics.com/collect",
<ide> "-d", "v=1", "--silent", "--max-time", "3"... | 1 |
Text | Text | add missing step to npm release process | 21b739fb69850763f5d18ef864f592cc9a843de4 | <ide><path>doc/guides/maintaining-npm.md
<ide> or if you already have npm cloned make sure the repo is up to date
<ide>
<ide> ```console
<ide> $ git remote update -p
<del>$ git reset --hard origin latest
<add>$ git reset --hard origin/latest
<ide> ```
<ide>
<ide> ## Step 2: Build release
<ide>
<ide> ```console
<ide>... | 1 |
Javascript | Javascript | increase epsilon for min_max tests | effe9ce7e9ec2e95b971898e5f01e6d660522a2e | <ide><path>test/moment/min_max.js
<ide> exports.min_max = {
<ide>
<ide> var now = moment(),
<ide> future = now.clone().add(1, 'month'),
<del> past = now.clone().subtract(1, 'month');
<add> past = now.clone().subtract(1, 'month'),
<add> eps = 10;
<ide>
<del> ... | 1 |
Python | Python | specify column length | 234d76641f1b23887fd60fe90fc4a1126e2a5d67 | <ide><path>airflow/models.py
<ide> class XCom(Base):
<ide> __tablename__ = "xcom"
<ide>
<ide> id = Column(Integer, primary_key=True)
<del> key = Column(String)
<add> key = Column(String(512))
<ide> value = Column(PickleType(pickler=dill))
<ide> timestamp = Column(DateTime, server_default=func.cur... | 1 |
Javascript | Javascript | maintain rootid for lazily crawled trees | f352fe2625bc91e65f563def0b351dd5d915c11c | <ide><path>src/backend/legacy/renderer.js
<ide> export function attach(
<ide> idToInternalInstanceMap.delete(id);
<ide> }
<ide>
<del> function crawlAndRecordInitialMounts(id: number, parentID: number) {
<add> function crawlAndRecordInitialMounts(
<add> id: number,
<add> parentID: number,
<add> rootID:... | 1 |
Python | Python | add header attribute to iresponse | 278ae183e039f00f18f70350a531df0797e4ce81 | <ide><path>libcloud/interface.py
<ide> class IResponse(Interface):
<ide>
<ide> tree = Attribute("""The processed response tree, e.g. via lxml""")
<ide> body = Attribute("""Unparsed response body""")
<del> status_code = Attribute("""response status code""")
<add> status = Attribute("""Response status code... | 1 |
Ruby | Ruby | pass the requested spec into the formula instance | 5beaa512e61f7222d4f19569b8118f9e1f02a18f | <ide><path>Library/Homebrew/formula.rb
<ide> class Formula
<ide>
<ide> attr_accessor :local_bottle_path
<ide>
<del> def initialize(name, path)
<add> def initialize(name, path, spec)
<ide> @name = name
<ide> @path = path
<ide> @homepage = self.class.homepage
<ide><path>Library/Homebrew/formulary.rb
<id... | 6 |
PHP | PHP | add early return to save some tabs | 5e7f1ffc9708298d87fe8fe0c361b8bf12055f35 | <ide><path>src/Console/Command/Task/FixtureTask.php
<ide> protected function _generateSchema($table) {
<ide> * @return array Formatted values
<ide> */
<ide> protected function _values($values) {
<del> $vals = array();
<del> if (is_array($values)) {
<del> foreach ($values as $key => $val) {
<del> if (is_array(... | 1 |
Javascript | Javascript | add the update for real now | 47010c1918c3ec5b0530d94b2b632390589d1e1f | <ide><path>utils/build.js
<ide> function buildIncludes(files, filename){
<ide> output(text.join("\n"), filename + '.js');
<ide> }
<ide>
<add>function getFileNames(){
<add> "use strict";
<add> var fileName = "utils/files.json";
<add> var data = JSON.parse(fs.readFileSync(fileName,'utf8'));
<add> return data;
<add>}
<... | 1 |
PHP | PHP | fix exception name | 253f22ad2e9687e6a5e3ee36e82846dfca943b89 | <ide><path>src/Illuminate/Foundation/Console/OptimizeCommand.php
<ide> <?php namespace Illuminate\Foundation\Console;
<ide>
<del>use InvalidParamException;
<add>use InvalidArgumentException;
<ide> use Illuminate\Console\Command;
<ide> use Illuminate\Foundation\Composer;
<ide> use Illuminate\View\Engines\CompilerEngine... | 1 |
Java | Java | restore use of tcpconfiguration method | 96bbec7ab2de85f26850127619623ef689e39400 | <ide><path>spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java
<ide> public ReactorClientHttpConnector(ReactorResourceFactory factory, Function<HttpC
<ide> this.httpClient = defaultInitializer.andThen(mapper).apply(initHttpClient(factory));
<ide> }
<ide>
<add> @Suppress... | 1 |
Ruby | Ruby | support unbounded time ranges for postgresql | 4479d811349db4cb0c35aa99d947f603d4bb49be | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb
<ide> def cast_value(value)
<ide> if !infinity?(from) && extracted[:exclude_start]
<ide> raise ArgumentError, "The Ruby Range object does not support excluding the beginning of a Range. (unsupported value: '#... | 2 |
Text | Text | fix broken links to buffer.from(string) | 8895c314ac0270196072fa1217006b95379e265b | <ide><path>doc/api/buffer.md
<ide> console.log(buf);
<ide> [`Buffer.from(array)`]: #buffer_class_method_buffer_from_array
<ide> [`Buffer.from(arrayBuffer)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
<ide> [`Buffer.from(buffer)`]: #buffer_class_method_buffer_from_buffer
<del>[`Buffer.from(string)`]... | 1 |
Javascript | Javascript | add webgl2 option to webglrenderer | 325d8e9c371332f5695e56318f0098655f38e619 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide> _premultipliedAlpha = parameters.premultipliedAlpha !== undefined ? parameters.premultipliedAlpha : true,
<ide> _preserveDrawingBuffer = parameters.preserveDrawingBuffer !== undefined ? parameters.preserveDrawingBuffer : fa... | 1 |
Text | Text | add dashboard link | 79dc95cca6f79551d9d95617d2325aa43df3d6f2 | <ide><path>README.md
<ide> it makes development fun!
<ide> * API Docs: http://docs.angularjs.org/api
<ide> * Developer Guide: http://docs.angularjs.org/guide
<ide> * Contribution guidelines: http://docs.angularjs.org/misc/contribute
<add>* Dashboard: http://dashboard.angularjs.org
<ide>
<ide> Building AngularJS
<ide> ... | 1 |
Text | Text | fix typo in entity_linker docs | 6f565cf39dc5ca494344883643f98373ebe2654c | <ide><path>website/docs/api/entitylinker.md
<ide> applied to the `Doc` in order. Both [`__call__`](/api/entitylinker#call) and
<ide> | `batch_size` | The number of documents to buffer. Defaults to `128`. ~~int~~ |
<ide> | **YIELDS** | The processed documents in order. ~~Doc~~ |
<ide>
<del>## ... | 1 |
PHP | PHP | apply fixes from styleci | 0ccd8687e010c7d335cc34e48a618a7c7722ad38 | <ide><path>tests/Integration/Queue/CallQueuedHandlerTest.php
<ide> public function middleware()
<ide> public function handle($command, $next)
<ide> {
<ide> CallQueuedHandlerTestJobWithMiddleware::$middlewareCommand = $command;
<add>
<ide> return $n... | 1 |
Go | Go | provide a function unregisterdevice() | 442247927b8e6c102ce1f94de58c7f93aab3d271 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) lookupDevice(hash string) (*DevInfo, error) {
<ide> return info, nil
<ide> }
<ide>
<del>func (devices *DeviceSet) registerDevice(id int, hash string, size uint64) (*DevInfo, error) {
<add>func (devices *DeviceSet) unregisterDevice(id... | 1 |
PHP | PHP | apply suggestions from code review | d913422151f0347bd31fa8b27a1bb03500ec4866 | <ide><path>src/I18n/DateFormatTrait.php
<ide> public function nice($timezone = null, $locale = null)
<ide> * $time->i18nFormat(Time::UNIX_TIMESTAMP_FORMAT); // outputs '1398031800'
<ide> * ```
<ide> *
<del> * You can control the default format used by setting through `Time::setToStringFormat()`.
<add... | 1 |
Go | Go | attach optional user data to a container | 11b65a00c66422a11d114260057384c59f5be4e2 | <ide><path>container.go
<ide> func loadContainer(containerPath string) (*Container, error) {
<ide> return container, nil
<ide> }
<ide>
<add>func (container *Container) loadUserData() (map[string]string, error) {
<add> jsonData, err := ioutil.ReadFile(path.Join(container.Root, "userdata.json"))
<add> if err != nil {
<... | 1 |
Text | Text | add developer instructions in readme.md | 4b58b66381b2a4b6861b29e7fc7cb8dbc9acfacb | <ide><path>readme.md
<ide> Develop [
<ide>
<ide> Master [](https://travis-ci.org/moment/moment)
<ide>
<add>For developers
<add>==============
<add>
<add>You need [node](http://n... | 1 |
Text | Text | correct version number in release notes | 7f16ed772720509b476e3cc4208c01b3972fa99b | <ide><path>docs/community/release-notes.md
<ide> You can determine your currently installed version using `pip show`:
<ide>
<ide> ## 3.9.x series
<ide>
<del>### 3.9.2
<add>### 3.9.3
<ide>
<ide> **Date**: [29th April 2019]
<ide> | 1 |
Mixed | Javascript | add extends for derived classes | c746ba4982d3ec17cd7ce38468e6cea662462a84 | <ide><path>doc/api/crypto.md
<ide> console.log(cert.verifySpkac(Buffer.from(spkac)));
<ide> added: v0.1.94
<ide> -->
<ide>
<add>* Extends: {stream.Transform}
<add>
<ide> Instances of the `Cipher` class are used to encrypt data. The class can be
<ide> used in one of two ways:
<ide>
<ide> The `cipher.update()` method c... | 2 |
Javascript | Javascript | drop the root parameter of jquery.fn.init | d2436df36a4b2ef556907e734a90771f0dbdbcaf | <ide><path>src/core/init.js
<ide> var rootjQuery,
<ide> // Shortcut simple #id case for speed
<ide> rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
<ide>
<del> init = jQuery.fn.init = function( selector, context, root ) {
<add> init = jQuery.fn.init = function( selector, context ) {
<ide> var match, elem;
<ide... | 1 |
Javascript | Javascript | fix history sniffing in chrome packaged apps | 9f5526f861f2f60f0d0f9fddfc484a9cd9d9b594 | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide> var cachedState, lastHistoryState,
<ide> lastBrowserUrl = location.href,
<ide> baseElement = document.find('base'),
<del> pendingLocation = null;
<add> pendingLocation = null,
<add> getCurrentState... | 4 |
PHP | PHP | allow guests in authorize middleware | 55afaaa248d2e7092f99963762150f397fbbaba3 | <ide><path>src/Illuminate/Auth/Middleware/Authorize.php
<ide> use Closure;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Contracts\Auth\Access\Gate;
<del>use Illuminate\Contracts\Auth\Factory as Auth;
<ide>
<ide> class Authorize
<ide> {
<del> /**
<del> * The authentication factory instance.... | 2 |
Ruby | Ruby | use more and cleanup new args apis | e3ac94fc5dee89a4037e2b857be2dbce67adeb57 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> ENV.activate_extensions!
<ide> ENV.setup_build_environment
<ide>
<del> if Homebrew.args.named.blank?
<add> if args.no_named?
<ide> ff = Formula
<ide> files = Tap.map(&:formula_dir)
<ide> else
<del> ff = Homebrew.args.... | 14 |
Javascript | Javascript | update legend imports | 771fe520957199b32a26205c14f4816002842bcb | <ide><path>src/plugins/plugin.legend.js
<ide>
<ide> import defaults from '../core/core.defaults';
<ide> import Element from '../core/core.element';
<del>import helpers from '../helpers';
<ide> import layouts from '../core/core.layouts';
<del>
<del>const getRtlHelper = helpers.rtl.getRtlAdapter;
<del>const valueOrDefau... | 1 |
Javascript | Javascript | set an abbreviation for ordinal numbers >1 | 47da67e51f5777d7b4ae867badca5186aab0f6d7 | <ide><path>src/locale/fr-ca.js
<ide> export default moment.defineLocale('fr-ca', {
<ide> y : 'un an',
<ide> yy : '%d ans'
<ide> },
<del> ordinalParse: /\d{1,2}(er|)/,
<add> ordinalParse: /\d{1,2}(er|e)/,
<ide> ordinal : function (number) {
<del> return number + (number === 1 ? 'er' ... | 4 |
Ruby | Ruby | use strftime to convert datetime to numeric | 210cd756a628cc19c0d6e44bee8c33dfb2d9d598 | <ide><path>activesupport/lib/active_support/core_ext/date_time/conversions.rb
<ide> def to_i
<ide> private
<ide>
<ide> def seconds_since_unix_epoch
<del> seconds_per_day = 86_400
<del> (self - ::DateTime.civil(1970)) * seconds_per_day
<add> strftime('%s')
<ide> end
<ide> end | 1 |
Python | Python | add sentrec shortcut to language | e1b493ae8521af36fd1f0dfeafe7d9eb0408fe75 | <ide><path>spacy/language.py
<ide> def entity(self):
<ide> def linker(self):
<ide> return self.get_pipe("entity_linker")
<ide>
<add> @property
<add> def sentrec(self):
<add> return self.get_pipe("sentrec")
<add>
<ide> @property
<ide> def matcher(self):
<ide> return self.get_pip... | 1 |
Javascript | Javascript | use es6 default parameter wherever possible | 2be3c32b34f63af631aaa39bb3c41b5d16afd106 | <ide><path>packages/@ember/runloop/tests/later_test.js
<ide> import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
<ide> import { assign } from '@ember/polyfills';
<del>import { isNone } from 'ember-metal';
<ide> import { run, later, backburner, hasScheduledTimers, getCurrentRunLoop } from '..';
<ide>
<... | 3 |
Go | Go | improve the checksum process | c7a7983fcbe28d67648b32e37029ac84482cffcf | <ide><path>registry.go
<ide> func (graph *Graph) PushRepository(stdout io.Writer, remote string, localRepo Re
<ide> // Retrieve the checksum of an image
<ide> // Priority:
<ide> // - Check on the stored checksums
<del>// - Check if the archive is exists, if it does not, ask the registry
<add>// - Check if the archive e... | 1 |
Go | Go | add dockercmdwithstdoutstderr function | c6cde91b7d2cb3671dc55cafc5ab693f9cb17cc8 | <ide><path>integration-cli/docker_utils.go
<ide> func dockerCmdWithError(c *check.C, args ...string) (string, int, error) {
<ide> return runCommandWithOutput(exec.Command(dockerBinary, args...))
<ide> }
<ide>
<add>func dockerCmdWithStdoutStderr(c *check.C, args ...string) (string, string, int) {
<add> stdout, stderr,... | 1 |
Mixed | Javascript | add resourcetiming buffer limit | 798a6edddff79af461c80ceabba88559ca4c1ebc | <ide><path>doc/api/perf_hooks.md
<ide> added: v8.5.0
<ide> Returns the current high resolution millisecond timestamp, where 0 represents
<ide> the start of the current `node` process.
<ide>
<add>### `performance.setResourceTimingBufferSize(maxSize)`
<add>
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>Sets t... | 10 |
Ruby | Ruby | enable tmp_restart plugin for puma | 685203917378dbdf8c836d5bdaabccd31f4e5f98 | <ide><path>railties/lib/rails/generators/rails/app/templates/config/puma.rb
<ide> # on_worker_boot do
<ide> # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
<ide> # end
<add>
<add># Allow puma to be restarted by `rails restart` command.
<add>plugin :tmp_restart | 1 |
Javascript | Javascript | prevent accidental misuse of properties on $event | e057a9aa398ead209bd6bbf76e22d2d5562904fb | <ide><path>src/ng/directive/ngEventDirs.js
<ide> forEach(
<ide> return {
<ide> restrict: 'A',
<ide> compile: function($element, attr) {
<del> var fn = $parse(attr[directiveName]);
<add> // We expose the powerful $event object on the scope that provides access to the Window,
<add>... | 4 |
PHP | PHP | remove default value from cache driver interface | 3eeb69d1bf642eb35883e60362ff373d0783601a | <ide><path>system/cache/driver.php
<ide> public function has($key);
<ide> * Get an item from the cache.
<ide> *
<ide> * @param string $key
<del> * @param mixed $default
<ide> * @return mixed
<ide> */
<del> public function get($key, $default = null);
<add> public function get($key);
<ide>
<ide> /**
<i... | 1 |
Python | Python | fix bug in convlstm | 21bf90cbf561250b256d7b30c7545da3bf092552 | <ide><path>keras/layers/convolutional_recurrent.py
<ide> def build(self, input_shape):
<ide> self.reset_states()
<ide> else:
<ide> # initial states: 2 all-zero tensor of shape (filters)
<del> self.states = [None, None, None, None]
<add> self.states = [None, None]
<i... | 1 |
Ruby | Ruby | add a host method to hashconfig | b6f398bcfd4a427de18e83bea1cef5ac8eb8ce3c | <ide><path>activerecord/lib/active_record/database_configurations/database_config.rb
<ide> def adapter_method
<ide> "#{adapter}_connection"
<ide> end
<ide>
<add> def host
<add> raise NotImplementedError
<add> end
<add>
<ide> def database
<ide> raise NotImplementedError
<ide... | 4 |
Javascript | Javascript | convert require to import in libraries/components | 0afd71a18d19edef3d6603cabd2672ffde5ba30e | <ide><path>Libraries/Components/ActivityIndicator/ActivityIndicator.js
<ide> */
<ide>
<ide> 'use strict';
<del>
<del>const Platform = require('../../Utilities/Platform');
<del>const React = require('react');
<del>const StyleSheet = require('../../StyleSheet/StyleSheet');
<del>const View = require('../View/View');
<ad... | 33 |
Ruby | Ruby | add references schema statements | cfb24586b811177666cf0d085e3ab111195fb3ff | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def index_name_exists?(table_name, index_name, default)
<ide> indexes(table_name).detect { |i| i.name == index_name }
<ide> end
<ide>
<add> # Adds a reference. Optionally adds a +type+ column, if <tt>:p... | 3 |
Ruby | Ruby | improve performance of grouping_any/grouping_all | 3e3d4d197943d6fc30976021a0f125ba8eab1dd1 | <ide><path>lib/arel/predications.rb
<ide> def desc
<ide> private
<ide>
<ide> def grouping_any method_id, others
<del> others = others.dup
<del> first = send method_id, others.shift
<del>
<del> Nodes::Grouping.new others.inject(first) { |memo,expr|
<del> Nodes::Or.new(memo, send(method_id,... | 1 |
Python | Python | convert constraints, initialization, activations | 5ed913da1108b63c69d48d30b395ae35e576dc9f | <ide><path>keras/activations.py
<ide> from __future__ import absolute_import
<del>import theano.tensor as T
<add>from . import backend as K
<ide>
<ide>
<ide> def softmax(x):
<del> return T.nnet.softmax(x.reshape((-1, x.shape[-1]))).reshape(x.shape)
<del>
<del>
<del>def time_distributed_softmax(x):
<del> return ... | 4 |
Javascript | Javascript | make sure jshint checks all js files | 68f32226db03654edf4af5a2a572458c61dc6821 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> },
<ide> jshint: {
<ide> src: {
<del> src: ['src/js/*.js', 'Gruntfile.js', 'test/unit/*.js'],
<add> src: ['src/js/**/*.js', 'Gruntfile.js', 'test/unit/**/*.js'],
<ide> options: {
<ide> jshintrc: '.jshint... | 5 |
Go | Go | fix leak of handletableevents | 6d768ef73cac58c4d6dae59cbeb7ca9558722f64 | <ide><path>libnetwork/agent.go
<ide> func (n *network) cancelDriverWatches() {
<ide> }
<ide> }
<ide>
<del>func (c *controller) handleTableEvents(ch chan events.Event, fn func(events.Event)) {
<add>func (c *controller) handleTableEvents(ch *events.Channel, fn func(events.Event)) {
<ide> for {
<ide> select {
<del> ... | 3 |
Python | Python | fix a macos build failure when `npy_blas_order=""` | 5bec8df317ffbda8f97486195b758f2261495749 | <ide><path>numpy/distutils/system_info.py
<ide> def _parse_env_order(base_order, env):
<ide> allow_order = base_order.copy()
<ide>
<ide> for order in orders:
<add> if not order:
<add> continue
<add>
<ide> if order not in base_order:
<ide> unknown_or... | 1 |
Python | Python | replace double quotes with single quotes | 7c882a457b734cd0a38d41c7e930e375a6ce6e4c | <ide><path>tests/test_helpers.py
<ide> def test_safe_join_exceptions(self):
<ide>
<ide> class TestHelpers(object):
<ide>
<del> @pytest.mark.parametrize("debug, expected_flag, expected_default_flag", [
<add> @pytest.mark.parametrize('debug, expected_flag, expected_default_flag', [
<ide> ('', None, True),... | 1 |
Javascript | Javascript | fix incorrect parsing of define functions | 0c4e157196740d1c47f6b1affc4e55a9835b71f1 | <ide><path>lib/dependencies/AMDDefineDependency.js
<ide> const DEFINITIONS = {
<ide> lf: {
<ide> definition: "var XXX, XXXmodule;",
<ide> content:
<del> "!(XXXmodule = { id: YYY, exports: {}, loaded: false }, XXX = #.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule), XXXmodule.loaded = t... | 4 |
Java | Java | add originalmessage to errormessage | e677342628847104265420a2cb5d3e35b7891caa | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/support/ErrorMessage.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * yo... | 2 |
Javascript | Javascript | fix typo in timers insert function comment | 2fa86b818bb85d0aade89d4dcd4765e439ce7a01 | <ide><path>lib/internal/timers.js
<ide> function insertGuarded(item, refed, start) {
<ide> }
<ide>
<ide> function insert(item, msecs, start = getLibuvNow()) {
<del> // Truncate so that accuracy of sub-milisecond timers is not assumed.
<add> // Truncate so that accuracy of sub-millisecond timers is not assumed.
<ide>... | 1 |
Ruby | Ruby | add default exceptions affected by suppress | 28492204ee59a5aca2f3bc7b161d45724552686d | <ide><path>activesupport/lib/active_support/core_ext/kernel/reporting.rb
<ide> def with_warnings(flag)
<ide> #
<ide> # puts 'This code gets executed and nothing related to ZeroDivisionError was seen'
<ide> def suppress(*exception_classes)
<add> exception_classes = StandardError if exception_classes.empty?
<i... | 2 |
Ruby | Ruby | fix references to requesthelpers methods in docs | 1d5f9c3e1791f54cc96baafdbcb086e970f7d601 | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> module ActionDispatch # :nodoc:
<ide> # Nevertheless, integration tests may want to inspect controller responses in
<ide> # more detail, and that's when \Response can be useful for application
<ide> # developers. Integration test methods such as
<de... | 2 |
Python | Python | use defaults for adding not null on sqlite | e802c97581594e3a37e6497443b105ecb9920a55 | <ide><path>django/db/backends/sqlite3/base.py
<ide> def quote_parameter(self, value):
<ide> if isinstance(value, six.integer_types):
<ide> return str(value)
<ide> elif isinstance(value, six.string_types):
<del> return six.text_type(value)
<add> return '"%s"' % six.text_... | 3 |
Text | Text | add v4.3.0-beta.1 to changelog | 1e56cc828415bd0bfcccb35f431daa12467129aa | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.3.0-beta.1 (February 7, 2022)
<add>
<add>No public API changes or bugfixes.
<add>
<ide> ### v4.2.0 (February 7, 2022)
<ide>
<ide> - [#19878](https://github.com/emberjs/ember.js/pull/19878) [BUGFIX] Allow class-based helpers to work in strict-mode. | 1 |
Javascript | Javascript | improve code (review) | d2461dab06194f660b106e01dd5c8350d6366f82 | <ide><path>lib/optimize/UglifyJsPlugin.js
<ide> class UglifyJsPlugin {
<ide> case "boolean":
<ide> var b = condition[key];
<ide> condition[key] = () => b;
<del> case "function": // eslint-disable-line no-fallthrough
<add> break;
<add> case "function":
<ide> ... | 2 |
Text | Text | remove reference to react-router-native | c535c263c6173d5eda19071b8e4c3093f59b7a07 | <ide><path>docs/Navigation.md
<ide> Check out the [`NavigatorIOS` reference docs](docs/navigatorios.html) to learn m
<ide>
<ide> Since early 2016, React Native has shipped with an experimental re-implementation of the original `Navigator` component called `CardStack`. The major benefit it had over `Navigator` is the s... | 1 |
Text | Text | update changelog entry for session#fetch | 96a6703ed9c0e64a01ce729dc8c2c6c19bea7903 | <ide><path>actionpack/CHANGELOG.md
<ide>
<ide> * Add `session#fetch` method
<ide>
<del> fetch behaves similarly to [Hash#fetch](http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch),
<del> with the exception that the returned value is always saved into the session.
<del>
<add> fetch behaves like [Ha... | 1 |
Javascript | Javascript | use english slugs for all challenges | 412938890a198ef1e4d944514fa11a30a3e58d2a | <ide><path>api-server/server/utils/get-curriculum.js
<ide> import { getChallengesForLang } from '../../../curriculum/getChallenges';
<ide>
<ide> let curriculum;
<ide> export async function getCurriculum() {
<del> curriculum = curriculum
<del> ? curriculum
<del> : getChallengesForLang(process.env.CURRICULUM_LOCA... | 1 |
Javascript | Javascript | add an example of another locale | f152a9e67170274f58a0e65192eeedc1b8b36274 | <ide><path>src/locale/ru-RU.js
<add>import "locale";
<add>
<add>var d3_locale_ruRU = d3.locale({
<add> decimal: ",",
<add> thousands: " ",
<add> grouping: [3, 3],
<add> currency: "руб. ",
<add> dateTime: "%A, %e %B %Y г. %X",
<add> date: "%d.%m.%Y",
<add> time: "%H:%M:%S",
<add> periods: ["AM", "PM"],
<add> da... | 1 |
Text | Text | add link and fix typos. | a0aa7ddbe501ec15a77c53816f53183443a5a493 | <ide><path>guide/english/python/for-loop-statements/index.md
<ide> title: For Loop Statements
<ide>
<ide> Python utilizes a for loop to iterate over a list of elements. Unlike C or Java, which use the for loop to change a value in steps and access something such as an array using that value.
<ide>
<del>For loops iter... | 1 |
Text | Text | fix links in releasing guide | e5b6f36831ae003b13fcc042509915e7b071acc7 | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> previously released RC candidates in "${AIRFLOW_SOURCES}/dist":
<ide> (both airflow and latest provider packages).
<ide>
<ide> ```shell script
<add> git checkout ${VERSION}
<ide> git push origin ${VERSION}
<ide> ```
<ide>
<ide> Dear Airflow community,
... | 1 |
Ruby | Ruby | avoid directories with @ | b6447120aed42a58a70aad54e7c997ae7f22e685 | <ide><path>Library/Homebrew/mktemp.rb
<ide> def to_s
<ide> end
<ide>
<ide> def run
<del> @tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix}-", HOMEBREW_TEMP))
<add> @tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix.tr "@", "-"}-", HOMEBREW_TEMP))
<ide>
<ide> # Make sure files inside the temporary directory ha... | 1 |
PHP | PHP | remove a test class & use a mock | 1e461b7403a3d79841c169eb8e91534c2c8dd0b4 | <ide><path>lib/Cake/Test/TestCase/View/Helper/HtmlHelperTest.php
<ide> define('FULL_BASE_URL', 'http://cakephp.org');
<ide> }
<ide>
<del>/**
<del> * TheHtmlTestController class
<del> *
<del> * @package Cake.Test.Case.View.Helper
<del> */
<del>class TheHtmlTestController extends Controller {
<del>
<del>/**
<del>... | 1 |
Text | Text | fix markdown link in blog post | 948b381a1465653a72c466f4fdfad7014fbcb539 | <ide><path>blog/2016-07-06-toward-better-documentation.md
<ide> We have a new [guide to Navigation](/react-native/docs/navigator-comparison.html
<ide>
<ide> We also have a new [guide to handling touches](/react-native/docs/handling-touches.html) that explains some of the basics of making button-like interfaces, and a ... | 1 |
Mixed | Ruby | add a hidden field on the collection_radio_buttons | 491013e06d0ad4a296cc23be6c4a48bb0a98106f | <ide><path>actionview/CHANGELOG.md
<add>* Add a `hidden_field` on the `collection_radio_buttons` to avoid raising a error
<add> when the only input on the form is the `collection_radio_buttons`.
<add>
<add> *Mauro George*
<add>
<ide> * `url_for` does not modify its arguments when generating polymorphic URLs.
... | 7 |
Javascript | Javascript | update remote method definitions | 187dbdfc92aa59986452f9a5fa353decc56d01ae | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> User.remoteMethod(
<ide> 'updateTheme',
<ide> {
<del> isStatic: false,
<ide> description: 'updates the users chosen theme',
<ide> accepts: [
<ide> { | 1 |
Go | Go | fix race between two containerrm | 4d1007d75c24f4e9f1d8df18cb3faae53b183661 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) create(params *ContainerCreateConfig) (retC *Container, re
<ide> }
<ide> defer func() {
<ide> if retErr != nil {
<del> if err := daemon.rm(container, true); err != nil {
<add> if err := daemon.ContainerRm(container.ID, &ContainerRmConfig{ForceRemove: true}... | 3 |
Ruby | Ruby | add support for custom version schemes | 2ff6c40735be2aca0e37ed94095526abcd115310 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def url val=nil, specs=nil
<ide> end
<ide>
<ide> def version val=nil
<del> if val.nil?
<del> @version ||= Version.parse(@url)
<del> else
<del> @version = Version.new(val)
<del> end
<add> @version ||= case val
<add> when nil then Versio... | 4 |
Text | Text | decharter the http working group | 132e44b4028b2f6038843d839b631c2b4ef0eef7 | <ide><path>WORKING_GROUPS.md
<ide> Top Level Working Group](https://github.com/nodejs/TSC/blob/master/WORKING_GROUP
<ide> * [Benchmarking](#benchmarking)
<ide> * [Post-mortem](#post-mortem)
<ide> * [Intl](#intl)
<del>* [HTTP](#http)
<ide> * [Documentation](#documentation)
<ide> * [Testing](#testing)
<ide>
<ide> Respon... | 1 |
Javascript | Javascript | remove external prop on 'donate' link | 0a7278774eee83a8b8056f2a89a0d353104a574b | <ide><path>client/src/components/Header/components/NavLinks.js
<ide> export class NavLinks extends Component {
<ide> <FontAwesomeIcon icon={faHeart} />
<ide> </div>
<ide> ) : (
<del> <Link
<del> className='nav-link'
<del> external={true}
<del> key=... | 1 |
Javascript | Javascript | adjust donation confirmation text | 05a97d19fbafa2c3fd1dad72b03b528a2caa33b7 | <ide><path>client/src/components/Donation/DonateForm.js
<ide> class DonateForm extends Component {
<ide> {t('donate.confirm-1')} {donationAmount / 100}:
<ide> </b>
<ide> ) : (
<del> <b>
<del> {t('donate.confirm-2')} {donationAmount / 100} / {donationDuration}:
<del> ... | 2 |
PHP | PHP | improve arugement name and docblock | c731d7ba1888c4658f2aacff41aa728e1def852b | <ide><path>src/Utility/Inflector.php
<ide> public static function underscore($camelCasedWord) {
<ide> }
<ide>
<ide> /**
<del> * Returns the given underscored_word or CamelCasedWord as an hyphenated-word.
<add> * Returns the given CamelCasedWordGroup as an hyphenated-word-group.
<ide> *
<del> * @param string $word Th... | 1 |
Ruby | Ruby | add gzip rsync to the white list | ffb405019d1e76d36fd1bf3b20094044aa94b818 | <ide><path>Library/Homebrew/rubocops/uses_from_macos.rb
<ide> class UsesFromMacos < FormulaCop
<ide> bash
<ide> expect
<ide> groff
<add> gzip
<ide> openssl
<ide> openssl@1.1
<ide> perl
<ide> php
<ide> python
<ide> python@... | 1 |
Ruby | Ruby | restore test deliveries properly in actionmailer | c4f4123ef45463a09b36186047dbdc82f933fe46 | <ide><path>actionmailer/lib/action_mailer/test_case.rb
<ide> module Behavior
<ide> class_attribute :_mailer_class
<ide> setup :initialize_test_deliveries
<ide> setup :set_expected_mail
<add> teardown :restore_test_deliveries
<ide> end
<ide>
<ide> module ClassMethods
<ide> def... | 1 |
Ruby | Ruby | follow alias changes | 2a683f2569614850f79534a8547fd96cc52c7850 | <ide><path>Library/Homebrew/cmd/outdated.rb
<ide> def print_outdated(formulae)
<ide>
<ide> outdated_formulae.each do |f|
<ide> if verbose
<del> outdated_versions = f.outdated_versions(fetch_head: fetch_head)
<del> current_version = if f.head? && outdated_versions.any? { |v| v.to_s == f.pkg_vers... | 6 |
Ruby | Ruby | add methods to get git related information | 9f96e41b40f52313fbc7832df631827f5e3bcacb | <ide><path>Library/Homebrew/tap.rb
<ide> def clear_cache
<ide> # e.g. `https://github.com/user/homebrew-repo`
<ide> def remote
<ide> @remote ||= if installed?
<del> if git?
<add> if git? && Utils.git_available?
<ide> path.cd do
<ide> Utils.popen_read("git", "config", "--get", "remote... | 2 |
Javascript | Javascript | replace string magic + path.join by path.resolve | 1ac133ea6f34bb8ef493f8f908d0cdda9a3e626a | <ide><path>lib/repl.js
<ide> REPLServer.prototype.complete = function(line) {
<ide> var dir, files, f, name, base, ext, abs, subfiles, s;
<ide> group = [];
<ide> for (i = 0; i < require.paths.length; i++) {
<del> dir = require.paths[i];
<del> if (subdir && subdir[0] === '/') {
<del> dir = s... | 2 |
Ruby | Ruby | move tool path methods to abstractdownloadstrategy | 3e1cc70fb4301a94dbf4c12b4b5a7660efac5f41 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch; end
<ide> def stage; end
<ide> def cached_location; end
<ide> def clear_cache; end
<add>
<add> private
<add>
<add> def xzpath
<add> "#{HOMEBREW_PREFIX}/opt/xz/bin/xz"
<add> end
<add>
<add> def lzippath
<add> "#{HOMEBREW_PREFIX}/opt/lzip/b... | 1 |
PHP | PHP | fix more strict errors | 87f5b6cf26b1a6efaf6be228bb9f70032f9f0212 | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> protected function _addEmail($varName, $email, $name) {
<ide> }
<ide>
<ide> /**
<del> * Set Subject
<add> * Get/Set Subject.
<ide> *
<del> * @param string $subject
<add> * @param null|string $subject
<ide> * @return mixed
<ide> */
<ide> public function subject... | 7 |
Javascript | Javascript | define printerr() in script string | 22b68042590de93109dbc2a4ddaf78caa24c2306 | <ide><path>lib/internal/v8_prof_processor.js
<ide> scriptFiles.forEach(function(s) {
<ide> script += process.binding('natives')[s] + '\n';
<ide> });
<ide>
<del>// eslint-disable-next-line no-unused-vars
<del>function printErr(err) {
<del> console.error(err);
<del>}
<del>
<ide> const tickArguments = [];
<ide> if (pr... | 1 |
Javascript | Javascript | move guid key init before initmixins | 3f7a1181510c21c3afd87731970e3b79eb2e37b1 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> // Ember.Object. We only define this separately so that Ember.Set can depend on it
<ide>
<ide>
<del>
<del>var classToString = Ember.Mixin.prototype.toString;
<del>var set = Ember.set, get = Ember.get;
<del>var o_create = Ember.create,
<add>var set = E... | 1 |
Python | Python | remove redundant file | ac82ad67980f3fbfe93ace2ee967541410b9ff5a | <ide><path>research/object_detection/dataset_tools/create_ava_tf_record_for_context.py
<del># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<del>#
<del># Licensed under the Apache License, Version 2.0 (the "License");
<del># you may not use this file except in compliance with the License.
<del># You may o... | 1 |
Go | Go | add status message for v2 pull | 456f493659d92ef271bc3573c537d10ae5d0847b | <ide><path>graph/pull.go
<ide> type downloadInfo struct {
<ide> }
<ide>
<ide> func (s *TagStore) pullV2Repository(eng *engine.Engine, r *registry.Session, out io.Writer, localName, remoteName, tag string, sf *utils.StreamFormatter, parallel bool) error {
<add> var layersDownloaded bool
<ide> if tag == "" {
<ide> lo... | 1 |
PHP | PHP | fix bug in ironmq connector | 8f80dd1aaa91834c02a963d6b352fc50efd31089 | <ide><path>src/Illuminate/Queue/Connectors/IronConnector.php
<ide> class IronConnector implements ConnectorInterface {
<ide> */
<ide> public function connect(array $config)
<ide> {
<del> $config = array('token' => $config['token'], 'project_id' => $config['project']);
<add> $ironConfig = array('token' => $config[... | 1 |
Mixed | Python | remove outdated comment | 6e0f2666072fb09a67afa71510cce02b9f3c1aef | <ide><path>README.md
<ide> All the release binaries can be found on [Pypi](https://pypi.org/project/keras/#
<ide> | [2.4](https://github.com/keras-team/keras/releases/tag/2.4.0) | Last stable release of multi-backend Keras | < 2.5
<ide> | 2.5-pre| Pre-release (not formal) for standalone Keras repo | >= 2.5 < 2.6
<ide>... | 2 |
Ruby | Ruby | improve string#first and #last performance | 0e2de0e3fdc9a1fc763531b74e9fc49666022ff9 | <ide><path>activesupport/lib/active_support/core_ext/string/access.rb
<ide> def to(position)
<ide> # str.first(0) # => ""
<ide> # str.first(6) # => "hello"
<ide> def first(limit = 1)
<del> ActiveSupport::Deprecation.warn(
<del> "Calling String#first with a negative integer limit " \
<del> "will r... | 2 |
Javascript | Javascript | use native json.stringify | 35125d25137ac2da13ed1ca3e652ec8f2c945053 | <ide><path>src/JSON.js
<ide> 'use strict';
<ide>
<add>var jsonReplacer = function(key, value) {
<add> var val = value;
<add> if (/^\$+/.test(key)) {
<add> val = undefined;
<add> } else if (isWindow(value)) {
<add> val = '$WINDOW';
<add> } else if (value && document === value) {
<add> val = '$DOCUMENT';
<... | 5 |
Javascript | Javascript | update legacy safari test for github actions | a8b39889f33524ad1f1a0334d3092e3532a8c313 | <ide><path>test/integration/production-nav/test/index.test.js
<ide> /* eslint-env jest */
<ide> /* global jasmine */
<del>import {
<del> nextBuild,
<del> findPort,
<del> nextStart,
<del> killApp,
<del> waitFor,
<del>} from 'next-test-utils'
<add>import { nextBuild, nextStart, killApp, waitFor } from 'next-test-uti... | 3 |
Ruby | Ruby | remove unused require | 4b4f5f2a11e5c948cb5636d5b50d22d9d223f1a7 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb
<del>require 'ipaddr'
<del>
<ide> module ActiveRecord
<ide> module ConnectionAdapters # :nodoc:
<ide> # The goal of this module is to move Adapter specific column | 1 |
Javascript | Javascript | use $browser.addjs for jsonp | 8a8a2cf4623708b69dba3816e22b01407e338b73 | <ide><path>src/Browser.js
<ide> function Browser(window, document, body, XHR, $log) {
<ide> outstandingRequestCount ++;
<ide> if (lowercase(method) == 'json') {
<ide> var callbackId = ("angular_" + Math.random() + '_' + (idCounter++)).replace(/\d\./, '');
<del> var script = jqLite(rawDocument.createE... | 2 |
Python | Python | set version to 2.1.0a7 | e0c91a4c8d3b182683df8176356055edda4d883c | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a7.dev8"
<add>__version__ = "2.1.0a7"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide>... | 1 |
Python | Python | fix mypy errors for qubole provider. | 7d84196519fcdbf96204d754d95c4dbca1ba9121 | <ide><path>airflow/providers/qubole/hooks/qubole.py
<ide> import os
<ide> import pathlib
<ide> import time
<del>from typing import Dict, List, Tuple
<add>from typing import Dict, List, Optional, Tuple
<ide>
<ide> from qds_sdk.commands import (
<ide> Command,
<ide> def __init__(self, *args, **kwargs) -> None:
<ide>... | 3 |
PHP | PHP | add tiny/small int to sqlserver | a4cdd69c993731808bac5b1fc32d4c9072c9e187 | <ide><path>src/Database/Schema/SqlserverSchema.php
<ide> protected function _convertColumn($col, $length = null, $precision = null, $scal
<ide> return ['type' => 'timestamp', 'length' => null];
<ide> }
<ide>
<add> if ($col === 'tinyint') {
<add> return ['type' => 'smallint', 'leng... | 2 |
Python | Python | remove double space in the swap plugin | 9cc3f9a19631adc8d98c2e41a06d3cc2a04a2578 | <ide><path>glances/plugins/glances_memswap.py
<ide> def msg_curse(self, args=None):
<ide>
<ide> # Build the string message
<ide> # Header
<del> msg = '{} '.format('SWAP')
<add> msg = '{}'.format('SWAP')
<ide> ret.append(self.curse_add_line(msg, "TITLE"))
<del> msg = ' {:2}'... | 1 |
Go | Go | fix -link parsing | 009024ad6439fad28ab3a9d8db6b6844bfbba8c9 | <ide><path>commands.go
<ide> func (opts AttachOpts) Set(val string) error {
<ide> // LinkOpts stores arguments to `docker run -link`
<ide> type LinkOpts []string
<ide>
<del>func (link LinkOpts) String() string { return fmt.Sprintf("%v", []string(link)) }
<del>func (link LinkOpts) Set(val string) error {
<add>func (lin... | 1 |
Python | Python | fix variable sharing issue with nonneg constraint | 5d2f3101aeec10b0ef14a4d09a32479114e814c5 | <ide><path>keras/constraints.py
<ide> def get_config(self):
<ide>
<ide> class NonNeg(Constraint):
<ide> def __call__(self, p):
<del> p *= T.ge(p, 0)
<add> p = theano.shared(p)
<add> p *= T.ge(p, 0.)
<ide> return p
<ide>
<ide> | 1 |
Ruby | Ruby | remove other old compatibility constants | 1ae9e60b8a369f004d001e885ca71cb0ade2be80 | <ide><path>actionpack/lib/action_controller/metal/compatibility.rb
<ide> module Compatibility
<ide>
<ide> # Temporary hax
<ide> included do
<del> ::ActionController::UnknownAction = ::AbstractController::ActionNotFound
<del> ::ActionController::DoubleRenderError = ::AbstractController::DoubleRenderEr... | 6 |
Python | Python | fix message when soft timeout exceeded | 2d5996484c70d1385707b73ed5517b6b1b58a2bf | <ide><path>celery/worker/request.py
<ide> def on_timeout(self, soft, timeout):
<ide> task_ready(self)
<ide> if soft:
<ide> warn('Soft time limit (%ss) exceeded for %s[%s]',
<del> timeout, self.name, self.id)
<del> exc = SoftTimeLimitExceeded(timeout)
<add> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.