content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix merge issue | 114abeeb4d1023b3da8f5ac22686c83ff78356a7 | <ide><path>lib/optimize/EnsureChunkConditionsPlugin.js
<ide> class EnsureChunkConditionsPlugin {
<ide> let changed = false;
<ide> chunks.forEach((chunk) => {
<ide> for(const module of chunk.modulesIterable) {
<del> if(!module.chunkCondition) return;
<add> if(!module.chunkCondition) continue;
<ide... | 1 |
Ruby | Ruby | handle url with specs hash | 283ff9e3adef34fb8d53063fbd5a3f2e3ac64c92 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide>
<ide> if new_mirrors.present?
<ide> replacement_pairs << [
<del> /^( +)(url "#{Regexp.escape(new_url)}"\n)/m,
<add> /^( +)(url "#{Regexp.escape(new_url)}"[^\n]*?\n)/m,
<ide> "\\1\\2\\1mirror \"#{new_m... | 1 |
Javascript | Javascript | add tests to callbacks of the life cycles | fd077d7492ae9398d596ba34352f79114e73fa87 | <ide><path>src/core/__tests__/ReactCompositeComponentState-test.js
<ide> describe('ReactCompositeComponent-state', function() {
<ide> }
<ide> },
<ide>
<add> peekAtCallback: function(from) {
<add> return () => this.peekAtState(from);
<add> },
<add>
<ide> setFavoriteColor: function(n... | 1 |
Javascript | Javascript | add flowtests for hostcomponent | 79e08f3c15e155ac077be1811c785d201df76a7f | <ide><path>Libraries/Renderer/__flowtests__/ReactNativeTypes-flowtest.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its 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
<add> * @format... | 2 |
Ruby | Ruby | enhance errors while retrieving database config | 7d6592ebd0b04aab2415fce8098e21212bc8c5c3 | <ide><path>railties/lib/rails/application/configuration.rb
<ide> def database_configuration
<ide> raise "YAML syntax error occurred while parsing #{paths["config/database"].first}. " \
<ide> "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \
<ide> ... | 1 |
Javascript | Javascript | fix parser double-free in _http_client.js | 5ce4eed54dceb15c34d3508e733124edd282601b | <ide><path>lib/_http_client.js
<ide> function createHangUpError() {
<ide>
<ide> function socketCloseListener() {
<ide> var socket = this;
<del> var parser = socket.parser;
<ide> var req = socket._httpMessage;
<ide> debug('HTTP socket close');
<ide>
<ide> function socketCloseListener() {
<ide> // is a no-op i... | 2 |
Javascript | Javascript | simplify import paths | 07ce117b56ee4aa0f22f5d64a733c716836b1b48 | <ide><path>src/utils/bindActionCreators.js
<del>import mapValues from '../utils/mapValues'
<add>import mapValues from './mapValues'
<ide>
<ide> function bindActionCreator(actionCreator, dispatch) {
<ide> return (...args) => dispatch(actionCreator(...args))
<ide><path>src/utils/combineReducers.js
<ide> import { Actio... | 2 |
Javascript | Javascript | move fs-readfile.js to fs/readfile.js | 6d116be7cf26abf3a4940e9e75ec329248de96d8 | <ide><path>benchmark/fs-readfile.js
<del>// Call fs.readFile over and over again really fast.
<del>// Then see how many times it got called.
<del>// Yes, this is a silly benchmark. Most benchmarks are silly.
<del>
<del>var path = require('path');
<del>var filename = path.resolve(__dirname, 'http.sh');
<del>var fs = re... | 2 |
Ruby | Ruby | update reverse order with new arel nodes | 2e0840dd0450b883800d6115a18d8867159c9812 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def reverse_sql_order(order_query)
<ide>
<ide> order_query.map do |o|
<ide> case o
<del> when Arel::Nodes::Ordering
<add> when Arel::Nodes::Ascending
<add> when Arel::Nodes::Descending
<ide> o.reverse... | 1 |
Text | Text | fix references to transformerlistener | 28e4ba72702485d5379309967bc751b5d6f48a9f | <ide><path>website/docs/usage/embeddings-transformers.md
<ide> def configure_custom_sent_spans(max_length: int):
<ide> start += max_length
<ide> end += max_length
<ide> if start < len(sent):
<del> spans[-1].append(sent[start : len(sent)])
<add> ... | 1 |
Ruby | Ruby | remove extra `homebrew_no_dev_cmd_message` line | 81d89803db83510f58360993176c3719449364c6 | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide> ENV.delete(env)
<ide> end
<ide>
<del> ENV["HOMEBREW_NO_DEV_CMD_MESSAGE"] = "1"
<ide> ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
<ide> ENV["HOMEBREW_NO_COMPAT"] = "1" if args.no_compat?
<ide> ENV["HOMEBREW_TEST_GENE... | 1 |
Go | Go | move the makeprivate to pkg/mount | 930a756ad55ad5f4e5e6391b41673743d7254c2b | <ide><path>daemon/graphdriver/aufs/aufs.go
<ide> func Init(root string, options []string) (graphdriver.Driver, error) {
<ide> return nil, err
<ide> }
<ide>
<del> if err := graphdriver.MakePrivate(root); err != nil {
<add> if err := mountpk.MakePrivate(root); err != nil {
<ide> return nil, err
<ide> }
<ide>
<ide... | 5 |
Go | Go | fix a typos in layer_windows.go | 7c5cf583280aad6f38311e88d58d7aaec0bfa90e | <ide><path>layer/layer_windows.go
<ide> import (
<ide> // Getter is an interface to get the path to a layer on the host.
<ide> type Getter interface {
<ide> // GetLayerPath gets the path for the layer. This is different from Get()
<del> // since that returns an interface to account for umountable layers.
<add> // sinc... | 1 |
Javascript | Javascript | add default utf-8 charset. (#270) | e0455823a0388ce2e9c96472c7ed393d821389f4 | <ide><path>lib/head.js
<ide> class Head extends React.Component {
<ide> }
<ide> }
<ide>
<add>export function defaultHead () {
<add> return [<meta charSet='utf-8' className='next-head' />]
<add>}
<add>
<ide> function reduceComponents (components) {
<ide> return components
<ide> .map((c) => c.props.children)
<ide... | 4 |
Ruby | Ruby | fix test_env on 10.7/xcode 4 | 0e2258f0fa6f94d43f9e0991f2da250c0f655e4f | <ide><path>Library/Homebrew/test/test_ENV.rb
<ide> class EnvironmentTests < Test::Unit::TestCase
<ide> def test_ENV_options
<ide> ENV.gcc_4_0
<del> ENV.gcc_4_2
<add> begin
<add> ENV.gcc_4_2
<add> rescue RuntimeError => e
<add> if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i < 7
<add> ... | 1 |
Text | Text | eliminate use of "note that" from child_process.md | 921f448d0de5dcbca21dba100e7df2ac08c7fcb0 | <ide><path>doc/api/child_process.md
<ide> the event loop until the spawned process either exits or is terminated.
<ide>
<ide> For convenience, the `child_process` module provides a handful of synchronous
<ide> and asynchronous alternatives to [`child_process.spawn()`][] and
<del>[`child_process.spawnSync()`][]. Note t... | 1 |
Go | Go | fix golint nit in term_windows.go | 35e498beca13de4ef8cecf45c0d132cc38daf0d5 | <ide><path>pkg/term/term_windows.go
<ide> func SetWinsize(fd uintptr, ws *Winsize) error {
<ide> }
<ide>
<ide> // Narrow the sizes to that used by Windows
<del> var width winterm.SHORT = winterm.SHORT(ws.Width)
<del> var height winterm.SHORT = winterm.SHORT(ws.Height)
<add> width := winterm.SHORT(ws.Width)
<add> hei... | 1 |
Javascript | Javascript | fix a typo in the warning header | 90f947b18699d0fd93a2fdb8c7167e128587afec | <ide><path>src/ng/compile.js
<ide> * *
<ide> * Does the change somehow allow for arbitrary javascript to be executed? *
<ide> * Or allows for someone to change the prototype of built-in objects? *
<del> * Or gives undesired access to v... | 1 |
Ruby | Ruby | fix output representation [ci skip] | ea2850b96a97d1c454d1f6ca0c8c7958cc63ea70 | <ide><path>activemodel/lib/active_model/attribute_assignment.rb
<ide> module AttributeAssignment
<ide> # cat = Cat.new
<ide> # cat.assign_attributes(name: "Gorby", status: "yawning")
<ide> # cat.name # => 'Gorby'
<del> # cat.status => 'yawning'
<add> # cat.status # => 'yawning'
<ide> # ... | 1 |
Javascript | Javascript | remove items that don't have any changes | f4138018364161a0821c3526d35ee0b8d0c0d3f1 | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> const cachedStatus = this.pathStatusCache[relativePath] || 0
<ide> const status = statuses[0] ? statuses[0].statusBit() : Git.Status.STATUS.CURRENT
<ide> if (status !== cachedStatus) {
<del> thi... | 1 |
Javascript | Javascript | fix version control with anchors | 5469369480d01b357947ac938e6069e117d154d8 | <ide><path>docs/source/_static/js/custom.js
<ide> function addVersionControl() {
<ide> const parts = location.toString().split('/');
<ide> let versionIndex = parts.length - 2;
<ide> // Index page may not have a last part with filename.html so we need to go up
<del> if (parts[parts.length - 1] != "" && ! ... | 1 |
Ruby | Ruby | remove duplicate test | eb8cd81859bd9f7df8cc08602200847e41e85f0d | <ide><path>activesupport/test/caching_test.rb
<ide> def test_clear_without_cache_dir
<ide> @cache.clear
<ide> end
<ide>
<del> def test_long_keys
<del> @cache.write("a"*10000, 1)
<del> assert_equal 1, @cache.read("a"*10000)
<del> end
<del>
<ide> def test_long_uri_encoded_keys
<ide> @cache.write("%"*... | 1 |
Python | Python | add serialization tests for stringstore and vocab | acd65c00f62bd3e77a87efc199ec29255118dfc9 | <ide><path>spacy/tests/serialize/test_serialize_stringstore.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>from ..util import make_tempdir
<add>from ...strings import StringStore
<add>
<add>import pytest
<add>
<add>
<add>test_strings = [([], []), (['rats', 'are', 'cute'], ['i', 'like', ... | 2 |
PHP | PHP | remove double space | 2b3bf29177fdf15d58e43e267d73b1fa039d92d2 | <ide><path>tests/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testDefaultSortRemovedFromUrl() {
<ide> $result = $this->Paginator->next('Next');
<ide> $expected = array(
<ide> 'li' => array('class' => 'next'),
<del> 'a' => array('rel' => 'next', 'href' => '/articles/index?page=2'),
<add> ... | 1 |
Javascript | Javascript | improve test stability | ad4b8063acf36555c204c834f0b54754b9ec29b0 | <ide><path>test/watchCases/cache/add-defines/webpack.config.js
<ide> const { DefinePlugin } = require("../../../../");
<add>const currentWatchStep = require("../../../helpers/currentWatchStep");
<ide>
<ide> /** @type {import("../../../../").Configuration} */
<ide> module.exports = {
<ide> module.exports = {
<ide> co... | 1 |
Go | Go | add test for applydiff | a69d86e0b19d804819d37a2a9edc03803267f579 | <ide><path>aufs/aufs_test.go
<ide> func TestDiffSize(t *testing.T) {
<ide> t.Fatalf("Expected size to be %d got %d", size, diffSize)
<ide> }
<ide> }
<add>
<add>func TestApplyDiff(t *testing.T) {
<add> d := newDriver(t)
<add> defer os.RemoveAll(tmp)
<add> defer d.Cleanup()
<add>
<add> if err := d.Create("1", ""); err... | 1 |
Python | Python | implement rich comparison operators | 68fe9b8d11f87b95d9904a7abb2972d5ddc2d6ef | <ide><path>airflow/models.py
<ide> def __init__(self, event, task_instance):
<ide> self.owner = task_instance.task.owner
<ide>
<ide>
<add>@functools.total_ordering
<ide> class BaseOperator(object):
<ide> """
<ide> Abstract base class for all operators. Since operators create objects that
<ide> def __i... | 1 |
Ruby | Ruby | add cross-references and documentation for scope | 38d728fb944b08b7faabf19c8ba5ef2e69e29c16 | <ide><path>actionpack/lib/action_dispatch/routing.rb
<ide> module ActionDispatch
<ide> # resources :posts, :comments
<ide> # end
<ide> #
<add> # Alternately, you can add prefixes to your path without using a separate
<add> # directory by using +scope+. +scope+ takes additional options which
<add> # apply... | 1 |
Java | Java | android scrollview fix for pagingenabled | e0170a944501bb487e899b92363bf5aa64b29299 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java
<ide> public boolean onTouchEvent(MotionEvent ev) {
<ide> @Override
<ide> public void fling(int velocityX) {
<ide> if (mPagingEnabled) {
<del> smoothScrollAndSnap(velocityX);
<add> flingAndSnap(velocit... | 2 |
Python | Python | add `multi_gpu_model` utility | 3dd3e8331677e68e7dec6ed4a1cbf16b7ef19f7f | <ide><path>keras/utils/__init__.py
<ide> from .vis_utils import plot_model
<ide> from .np_utils import to_categorical
<ide> from .np_utils import normalize
<add>from .training_utils import multi_gpu_model
<ide><path>keras/utils/training_utils.py
<add>from ..layers.merge import concatenate
<add>from .. import backend as... | 3 |
Text | Text | improve translation for russian locale | 6e8f8a5bd90104e80cdaf3e33cc56ce92a83bc1b | <ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/functional-programming/use-the-reduce-method-to-analyze-data.russian.md
<ide> id: 587d7da9367417b2b2512b68
<ide> title: Use the reduce Method to Analyze Data
<ide> challengeType: 1
<ide> videoUrl: ''
<del>localeTitle: Используйте мето... | 1 |
Javascript | Javascript | fix typo in comments (ot -> to) | 93eb6a5637f67df55f47ccf8181ee31aefc38334 | <ide><path>src/addons/transitions/ReactTransitionKeySet.js
<ide> var ReactTransitionKeySet = {
<ide>
<ide> /**
<ide> * When you're adding or removing children some may be added or removed in the
<del> * same render pass. We want ot show *both* since we want to simultaneously
<add> * same render pass. We want ... | 1 |
Python | Python | improve error message in recurrent.py | 2143046261e91e8b893bc9cbeedf08b732555e36 | <ide><path>keras/layers/recurrent.py
<ide> def get_output(self, train=False):
<ide> if not self.input_shape[1]:
<ide> raise Exception('When using TensorFlow, you should define ' +
<ide> 'explicitly the number of timesteps of ' +
<del> ... | 1 |
PHP | PHP | add missing methods and tests | 71f3e62aa8bd580c19087ef51517b933dcf6472b | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function current()
<ide> return $this->current;
<ide> }
<ide>
<add> /**
<add> * Determine if the current route matches a given name.
<add> *
<add> * @param string $name
<add> * @return bool
<add> */
<add> public function currentRouteNamed($name)
<add>... | 2 |
Javascript | Javascript | es6ify the contextreplacementplugin | 376d31fb6c94423414f23b93c5601d5b76dade3b | <ide><path>lib/ContextReplacementPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var path = require("path");
<del>var ContextElementDependency = require("./dependencies/ContextElementDependency");
<add>"use strict";
<ide>
<del>function C... | 1 |
Ruby | Ruby | add extmodel helper | 655c6f79b435364cfaf23808f0e5650e3a6d0f72 | <ide><path>Library/Homebrew/os/mac/hardware.rb
<ide> def family
<ide> end
<ide> end
<ide>
<add> def extmodel
<add> @extmodel ||= `/usr/sbin/sysctl -n machdep.cpu.extmodel`.to_i
<add> end
<add>
<ide> def cores
<ide> @cores ||= `/usr/sbin/sysctl -n hw.ncpu`.to_i
<ide> end | 1 |
Text | Text | fix copyright notice and travis badge | 05c72a5d303490270c9d56b81964ee59fc1ab253 | <ide><path>README.md
<ide> This change will not affect user code, so long as it's following the recommended
<ide>
<ide> # License
<ide>
<del>Copyright (c) 2011, Tom Christie
<add>Copyright (c) 2011-2013, Tom Christie
<ide> All rights reserved.
<ide>
<ide> Redistribution and use in source and binary forms, with or wi... | 2 |
PHP | PHP | update config check to not skip tests | 74c6effd22ba9687cb6295c339bc8df15378a139 | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> class MysqlSchemaTest extends TestCase {
<ide> */
<ide> protected function _needsConnection() {
<ide> $config = ConnectionManager::config('test');
<del> $this->skipIf(strpos($config['className'], 'Mysql') === false, 'Not using Mysql for test confi... | 2 |
Ruby | Ruby | fix typo in amo docs [ci skip] | a6da73f975892635e6a0bcbfe8eb8410fcbb07a4 | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> def attribute_alias(name)
<ide> # private
<ide> #
<ide> # def clear_attribute(attr)
<del> # send("#{attr}", nil)
<add> # send("#{attr}=", nil)
<ide> # end
<ide> # end
<ide> def defi... | 1 |
PHP | PHP | apply fixes from styleci | 327031084cb24584ef7683137d72a260ff62a314 | <ide><path>src/Illuminate/Broadcasting/BroadcastEvent.php
<ide> use ReflectionProperty;
<ide> use Illuminate\Bus\Queueable;
<ide> use Illuminate\Contracts\Queue\Job;
<del>use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\Contracts\Queue\ShouldQueue;
<add>use Illuminate\Contracts\Support\Arrayable;
<ide> ... | 1 |
Javascript | Javascript | prevent extensions to fiber in dev | ddf59c403a99efa0eae873e38b7293b52d1e00b7 | <ide><path>src/renderers/shared/fiber/ReactFiber.js
<ide> var createFiber = function(tag : TypeOfWork, key : null | string) : Fiber {
<ide> fiber._debugID = debugCounter++;
<ide> fiber._debugSource = null;
<ide> fiber._debugOwner = null;
<add> if (typeof Object.preventExtensions === 'function') {
<add> ... | 1 |
Python | Python | start work on testing ufuncs | 24726567344dbd821d2a1a1b4f36bf1e89b0585a | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def logical_and(self, obj) :
<ide> # check PyUFunc_On_Om
<ide> # fixme -- I don't know how to do this yet
<ide>
<add> def check_all_ufunc(self) :
<add> """Try to check presence and results of all ufuncs.
<add>
<add> The list of ufuncs com... | 1 |
PHP | PHP | fix docblock formatting | edb7e2def3beb83098db0a7b10463e65b544ed73 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function contextFactory(?ContextFactory $instance = null, array $contexts
<ide> *
<ide> * @param mixed $context The context for which the form is being defined.
<ide> * Can be a ContextInterface instance, ORM entity, ORM resultset, or an
<del> ... | 1 |
Text | Text | add analytics link | d37f2e7ae7b6915063960998df16b3cf4f76115c | <ide><path>docs/New-Maintainer-Checklist.md
<ide> If they accept, follow a few steps to get them set up:
<ide> - Invite them to the [`homebrew-dev` private maintainers mailing list](https://groups.google.com/forum/#!managemembers/homebrew-dev/invite)
<ide> - Invite them to the [`machomebrew` private maintainers Slack](... | 1 |
Ruby | Ruby | fix docs in collection_radio_buttons | 9ab63547e5ca52dc4d50d885c3b2da751b9381fc | <ide><path>actionview/lib/action_view/helpers/form_options_helper.rb
<ide> def time_zone_options_for_select(selected = nil, priority_zones = nil, model = :
<ide> # The HTML specification says when nothing is select on a collection of radio buttons
<ide> # web browsers do not send any value to server.
<ide> ... | 1 |
Text | Text | fix the wrong title with docker swarm | f469021f88ef4765f9871c36b61e4f0138528a7b | <ide><path>docs/reference/glossary.md
<ide> environment.
<ide>
<ide> ## service discovery
<ide>
<del>Swarm mode [service discovery](https://docs.docker.com/engine/swarm/networking/) is a DNS component
<add>Swarm mode [service discovery](https://docs.docker.com/engine/swarm/networking/#use-swarm-mode-service-discovery... | 1 |
Javascript | Javascript | fix syntax error | ab240196bf5cdbe85a18bfd7e7a6a287bf5c22f7 | <ide><path>src/auto/injector.js
<ide> function annotate(fn, strictDi, name) {
<ide> * expect($injector.get('$injector')).toBe($injector);
<ide> * expect($injector.invoke(function($injector) {
<ide> * return $injector;
<del> * }).toBe($injector);
<add> * })).toBe($injector);
<ide> * ```
<ide> *
<ide> *... | 1 |
Ruby | Ruby | remove deprecated `selectmanager#joins` | 36d3452f0471b9e2c151abf43e0392cb54f1f422 | <ide><path>lib/arel/select_manager.rb
<ide> def source
<ide> @ctx.source
<ide> end
<ide>
<del> def joins manager
<del> if $VERBOSE
<del> warn "joins is deprecated and will be removed in 4.0.0"
<del> warn "please remove your call to joins from #{caller.first}"
<del> end
<del> m... | 1 |
PHP | PHP | apply fixes from styleci | a25f58690b4ae49869ef7022103381018b14b580 | <ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php
<ide> public function set($key, $value, $expireResolution = null, $expireTTL = null, $
<ide> return $this->command('set', [
<ide> $key,
<ide> $value,
<del> $expireResolution ? [$expireResolution, $flag => $expi... | 1 |
PHP | PHP | switch tasks from using execute() to using main() | 2b40223a921ae8ea705c604b92f6de5bc6579800 | <ide><path>src/Console/Command/Task/BakeTask.php
<ide> public function getPath() {
<ide> *
<ide> * @return void
<ide> */
<del> public function execute() {
<add> public function main() {
<ide> foreach ($this->args as $i => $arg) {
<ide> if (strpos($arg, '.')) {
<ide> list($this->params['plugin'], $this->args... | 12 |
Go | Go | remove trimleft as it's go1.1 | 854039b6ba9c707af07f9966b39150ce23150920 | <ide><path>changes.go
<ide> func Changes(layers []string, rw string) ([]Change, error) {
<ide> file := filepath.Base(path)
<ide> // If there is a whiteout, then the file was removed
<ide> if strings.HasPrefix(file, ".wh.") {
<del> originalFile := strings.TrimPrefix(file, ".wh.")
<add> originalFile := file[len... | 1 |
Javascript | Javascript | send referrer for internal links [ci skip] | 232a029de68e7e238dfb066a74185ae78c75da49 | <ide><path>website/src/components/link.js
<ide> import Icon from './icon'
<ide> import classes from '../styles/link.module.sass'
<ide> import { isString } from './util'
<ide>
<add>const internalRegex = /(http(s?)):\/\/(prodi.gy|spacy.io|irl.spacy.io)/gi
<add>
<ide> const Whitespace = ({ children }) => (
<ide> // E... | 1 |
Mixed | Javascript | expose stats times as numbers | 47b9772f52aba7693eed4df535b35de65ac22c49 | <ide><path>doc/api/fs.md
<ide> argument to `fs.createReadStream()`. If `path` is passed as a string, then
<ide> ## Class: fs.Stats
<ide> <!-- YAML
<ide> added: v0.1.21
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/13173
<add> description: Added times as numbers.
<ide>... | 3 |
Javascript | Javascript | limit math.asin inputs to the range [-1, 1] | df4944786709fb2b3a9038e6676f5491d9243a14 | <ide><path>src/core/core.scale.js
<ide> export default class Scale extends Element {
<ide> - tickOpts.padding - getTitleHeight(options.title, me.chart.options.font);
<ide> maxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);
<ide> labelRotation = toDegrees(Math.... | 1 |
Text | Text | update devops steps | df8bbdb2c8470e93f6797ef066bebd3a40c33891 | <ide><path>docs/flight-manuals/working-on-virtual-machines.md
<ide> Provisioning VMs with the Code
<ide> ```console
<ide> git clone https://github.com/freeCodeCamp/freeCodeCamp.git
<ide> cd freeCodeCamp
<add> git checkout production-current # or any other branch to be deployed
<ide> ```
<ide>
<ide> 4. Cr... | 1 |
PHP | PHP | apply fixes from styleci | e83703e49862f62246b49a74b42ca03422b8d995 | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\UploadedFile;
<del>use Symfony\Component\HttpFoundation\ParameterBag;
<ide>
<ide> trait InteractsWithInput
<ide> {
<ide><path>src/Illuminate/Http/Request.php
<ide... | 2 |
PHP | PHP | fix flakey tests | 56c6314eefea7e5b298a0d84d742371d5d54ff6f | <ide><path>tests/Integration/Queue/ThrottlesExceptionsWithRedisTest.php
<ide> public function testCircuitResetsAfterSuccess()
<ide> $this->assertJobRanSuccessfully(CircuitBreakerWithRedisSuccessfulJob::class, $key);
<ide> $this->assertJobWasReleasedImmediately(CircuitBreakerWithRedisTestJob::class, $key... | 1 |
Python | Python | use config fixture, get plugin via unregister | 604cc758fb6601782745572452715fc295dda011 | <ide><path>tests/test_logging.py
<ide>
<ide>
<ide> @pytest.fixture(autouse=True)
<del>def reset_logging(monkeypatch):
<add>def reset_logging(pytestconfig):
<ide> root_handlers = logging.root.handlers[:]
<add> logging.root.handlers = []
<ide> root_level = logging.root.level
<ide>
<ide> logger = logging... | 1 |
Python | Python | fix ticket #408 --- chararray problem with argsort | 77295888c6913b2bccaf69571fc97f87d211aa62 | <ide><path>numpy/core/defchararray.py
<ide> def __mod__(self, other):
<ide> def __rmod__(self, other):
<ide> return NotImplemented
<ide>
<add> def argsort(self, axis=-1, kind='quicksort', order=None):
<add> return self.__array__().argsort(axis, kind, order)
<add>
<ide> def _generalmethod(self... | 1 |
Javascript | Javascript | remove repeated code | ed811a5aa8f5437755b7d1001fb62ffdb15c31a4 | <ide><path>lib/ContextModule.js
<ide> class ContextModule extends Module {
<ide> return fakeMap;
<ide> }
<ide>
<add> getFakeMapInitStatement(fakeMap) {
<add> return typeof fakeMap === "object" ? `var fakeMap = ${JSON.stringify(fakeMap, null, "\t")};` : "";
<add> }
<add>
<ide> getReturnModuleObjectSource(fakeMap, ... | 1 |
Javascript | Javascript | propagate --debug-port= to debuggee | 18fb4f9a912e775dde49e31bf749a9060b2c59e6 | <ide><path>lib/_debugger.js
<ide> exports.start = function(argv, stdin, stdout) {
<ide> stdin = stdin || process.stdin;
<ide> stdout = stdout || process.stdout;
<ide>
<del> const args = ['--debug-brk'].concat(argv);
<add> const args = [`--debug-brk=${exports.port}`].concat(argv);
<ide> const interface_ = new I... | 2 |
Javascript | Javascript | remove usused dependency | c0b01d91230ebebc4c7b549f4f46e9ab02cd40a8 | <ide><path>src/ngAnimate/ngAnimateSwap.js
<ide> * </file>
<ide> * </example>
<ide> */
<del>var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $rootScope) {
<add>var ngAnimateSwapDirective = ['$animate', function($animate) {
<ide> return {
<ide> restrict: 'A',
<ide> transclude: 'ele... | 1 |
Python | Python | fix version checks in configure.py | d769ebc2b7be23d66033d8df71f70e0564436e72 | <ide><path>configure.py
<ide> import bz2
<ide>
<ide> from distutils.spawn import find_executable as which
<add>from distutils.version import StrictVersion
<ide>
<ide> # If not run from node/, cd to node/.
<ide> os.chdir(os.path.dirname(__file__) or '.')
<ide> def without_ssl_error(option):
<ide> # supported asm c... | 1 |
Text | Text | add changelog entry for | f274fbd240a1c4c52fe22eec181db2f429baf8da | <ide><path>activerecord/CHANGELOG.md
<add>* Return a non zero status when running `rake db:migrate:status` and migration table does
<add> not exist.
<add>
<add> *Paul B.*
<add>
<ide> * Keep track of dirty attributes after transaction is rollback.
<ide>
<ide> Related #13166. | 1 |
Java | Java | introduce alias for 'value' attribute in @header | 60a5ec87d03e4dea9a1a3550bec06797c889e66f | <ide><path>spring-jms/src/test/java/org/springframework/jms/config/MethodJmsListenerEndpointTests.java
<ide> public void resolveCustomHeaderNameAndPayload() throws JMSException {
<ide> assertDefaultListenerMethodInvocation();
<ide> }
<ide>
<add> @Test
<add> public void resolveCustomHeaderNameAndPayloadWithHeaderNam... | 5 |
Javascript | Javascript | add "aspath" information to url objects | 2cfcc6bd5eeb5f2a0b3597100ff715d65abc8a73 | <ide><path>lib/app.js
<ide> function createUrl (router) {
<ide> return {
<ide> query: router.query,
<ide> pathname: router.pathname,
<add> asPath: router.asPath,
<ide> back: () => {
<ide> warn(`Warning: 'url.back()' is deprecated. Use "window.history.back()"`)
<ide> router.back() | 1 |
Javascript | Javascript | add safari 12 & ios 12 results | 3ac907864c4d36b4fcb58826d9cb0e4ed62334b2 | <ide><path>test/unit/support.js
<ide> testIframe(
<ide> "reliableMarginLeft": true,
<ide> "scrollboxSize": true
<ide> },
<del> safari_11: {
<add> safari: {
<ide> "ajax": true,
<ide> "boxSizingReliable": true,
<ide> "checkClone": true,
<ide> testIframe(
<ide> "reliableMarginLeft": false,
<... | 1 |
Javascript | Javascript | remove remaining angular directives | bfb19668eb1f895933bde0d5db0dca121ee9c203 | <ide><path>public/js/main_0.0.3.js
<ide> $(document).ready(function() {
<ide> });
<ide> };
<ide>
<del>
<del>
<ide> $(window).resize(function(){
<ide> reBindModals();
<ide> });
<ide> $(document).ready(function() {
<ide> function defCheck(a){
<ide> if(a !== 'undefined'){return(true);}else{ret... | 1 |
Javascript | Javascript | log abnormal closes to metro websocket | 3982a2c6bd116a6dcc6ee6889e4a246b710b70a7 | <ide><path>Libraries/Utilities/HMRClient.js
<ide> Error: ${e.message}`;
<ide> }
<ide> });
<ide>
<del> client.on('close', data => {
<add> client.on('close', closeEvent => {
<ide> LoadingView.hide();
<del> setHMRUnavailableReason('Disconnected from Metro.');
<add>
<add> // https://www.rfc... | 2 |
Python | Python | use reverse() in auth views. patch from davenaff | bb308054529ad01c079bdaedfb41a85eb5ae97a9 | <ide><path>django/contrib/auth/views.py
<ide> from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm, PasswordChangeForm, AdminPasswordChangeForm
<ide> from django.contrib.auth.tokens import default_token_generator
<ide> from django.core.exceptions import PermissionDenied
<add>from django.core.urlreso... | 1 |
Mixed | Javascript | fix key object wrapping in sync keygen | 7afdfaec083310baa66c05daf33409a7b55528dd | <ide><path>doc/api/crypto.md
<ide> changes:
<ide> - `publicExponent`: {number} Public exponent (RSA). **Default:** `0x10001`.
<ide> - `divisorLength`: {number} Size of `q` in bits (DSA).
<ide> - `namedCurve`: {string} Name of the curve to use (EC).
<del> - `publicKeyEncoding`: {Object}
<del> - `type`: {string... | 3 |
Javascript | Javascript | fix param type to domelement | 074648ef579582198cb8b48732c6b43c1bbfe064 | <ide><path>src/Angular.js
<ide> function angularInit(element, bootstrap) {
<ide> * </file>
<ide> * </example>
<ide> *
<del> * @param {Element} element DOM element which is the root of angular application.
<add> * @param {DOMElement} element DOM element which is the root of angular application.
<ide> * @param {Array... | 1 |
Ruby | Ruby | remove outdated comment | 7f43485508a277c43c046c5a701f6bdb6aed1ede | <ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
<ide> def disconnect!
<ide> # DATABASE STATEMENTS ======================================
<ide> #++
<ide>
<del> # FIXME: re-enable the following once a "better" query_cache solution is in core
<del> #
<del> # The ... | 1 |
Javascript | Javascript | add accessibilityvalue prop on touchables | 3042407f43b69994abc00350681f1f0a79683bfd | <ide><path>Libraries/Components/Touchable/TouchableBounce.js
<ide> const TouchableBounce = ((createReactClass({
<ide> accessibilityState={this.props.accessibilityState}
<ide> accessibilityActions={this.props.accessibilityActions}
<ide> onAccessibilityAction={this.props.onAccessibilityAction}
<ad... | 6 |
Ruby | Ruby | fix typo in test name | 683e1c7d18168912c691a65164fae578fc4b4183 | <ide><path>activerecord/test/cases/calculations_test.rb
<ide> def test_group_by_with_limit_and_offset
<ide> assert_equal expected, actual
<ide> end
<ide>
<del> def test_group_by_with_qouted_count_and_order_by_alias
<add> def test_group_by_with_quoted_count_and_order_by_alias
<ide> quoted_posts_id = Post.co... | 1 |
Python | Python | remove obsolete test | c76293a5bd59f979e477951ad5acc1037cb7753d | <ide><path>t/unit/app/test_defaults.py
<ide> def test_any(self):
<ide> val = object()
<ide> assert self.defaults.Option.typemap['any'](val) is val
<ide>
<del> @mock.sys_platform('darwin')
<del> @mock.pypy_version((1, 4, 0))
<del> def test_default_pool_pypy_14(self):
<del> assert self.de... | 1 |
Javascript | Javascript | fix incorrect message in equals test | dff8edefdf0c25aa206719cbca85934596936432 | <ide><path>packages/ember-runtime/tests/suites/enumerable/contains.js
<ide> suite.test('contains returns true if items is in enumerable', function() {
<ide> suite.test('contains returns false if item is not in enumerable', function() {
<ide> var data = this.newFixture(1);
<ide> var obj = this.newObject(this.newFix... | 1 |
Text | Text | update broken jsfiddle in why react blog post | 13692d59add7cfffe06e69f8d4fe2488d0a55514 | <ide><path>docs/_posts/2013-06-05-why-react.md
<ide> to the DOM.
<ide> > lightweight description of what the DOM should look like.
<ide>
<ide> We call this process **reconciliation**. Check out
<del>[this jsFiddle](http://jsfiddle.net/fv6RD/3/) to see an example of
<add>[this jsFiddle](http://jsfiddle.net/2h6th4ju/) t... | 1 |
Python | Python | remove unused import | 4a6b094e094242f1f18542eb8682da3cd9531829 | <ide><path>spacy/language.py
<ide> from thinc.neural import Model
<ide> from thinc.neural.optimizers import Adam
<ide>
<del>from .strings import StringStore
<ide> from .tokenizer import Tokenizer
<ide> from .vocab import Vocab
<ide> from .lemmatizer import Lemmatizer | 1 |
Javascript | Javascript | add tests for relativedates | 76bcfa865937aa94c6818964c1fdbde112bb0e52 | <ide><path>lang/test/en.js
<ide> test("fromNow", 2, function() {
<ide> equal(moment().add({d:5}).fromNow(), "in 5 days", "in 5 days");
<ide> });
<ide>
<add>test("xxx", 14, function() {
<add> var getTodayAtTwo, prefixDay;
<add>
<add> getTodayAtTwo = function () {
<add> return moment().hours(2).minu... | 1 |
Java | Java | improve documentation of @bean 'lite' mode | e8f8559a2e1c5fa5c559f887756cdc085c90f26b | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/Bean.java
<ide> * <p>{@code @Bean} methods may also be declared within classes that are <em>not</em>
<ide> * annotated with {@code @Configuration}. For example, bean methods may be declared
<ide> * in a {@code @Component} class or even in... | 1 |
Javascript | Javascript | add regex to assert.throws | 22819446123efb68313f2ae385e57d1e780f6b50 | <ide><path>test/parallel/test-vm-run-in-new-context.js
<ide> assert.strictEqual('passed', result);
<ide> console.error('thrown error');
<ide> assert.throws(function() {
<ide> vm.runInNewContext('throw new Error(\'test\');');
<del>});
<add>}, /^Error: test$/);
<ide>
<ide> global.hello = 5;
<ide> vm.runInNewContext('h... | 1 |
Javascript | Javascript | add glsl comment tag | 99a213e2b6ec8f997f634a5e6454a4c7d74ccd66 | <ide><path>src/materials/ShaderMaterial.js
<ide> function ShaderMaterial( parameters ) {
<ide> this.defines = {};
<ide> this.uniforms = {};
<ide>
<del> this.vertexShader = 'void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}';
<del> this.fragmentShader = 'void main() {\n\tgl... | 1 |
Java | Java | fix timezone offset in cronexpressiontests | f982fd99d7d3bed6e879b00f7599cb8c587228cc | <ide><path>spring-context/src/test/java/org/springframework/scheduling/support/CronExpressionTests.java
<ide> public void daylightSaving() {
<ide> CronExpression cronExpression = CronExpression.parse("0 0 9 * * *");
<ide>
<ide> ZonedDateTime last = ZonedDateTime.parse("2021-03-27T09:00:00+01:00[Europe/Amsterdam]")... | 1 |
PHP | PHP | add default value to order_by direction | 904588a51a97e679d8b6e135937248b0d513f87c | <ide><path>system/db/query.php
<ide> private function dynamic_where($method, $parameters)
<ide> * @param string $direction
<ide> * @return Query
<ide> */
<del> public function order_by($column, $direction)
<add> public function order_by($column, $direction = 'asc')
<ide> {
<ide> $this->orderings[] = $this->w... | 1 |
Text | Text | add changelog entry for [ci-skip] | 09152576d61e741b769e47bc09b46c71340064c7 | <ide><path>actioncable/CHANGELOG.md
<add>* The `connected()` callback can now take a `{reconnected}` parameter to differentiate
<add> connections from reconnections.
<add>
<add> ```js
<add> import consumer from "./consumer"
<add>
<add> consumer.subscriptions.create("ExampleChannel", {
<add> connected... | 1 |
Ruby | Ruby | use cgi.escapehtml for html escape | 51152fc0f8517b24af4a619faa9df9879920f5d1 | <ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb
<ide> class ERB
<ide> module Util
<ide> HTML_ESCAPE = { '&' => '&', '>' => '>', '<' => '<', '"' => '"', "'" => ''' }
<ide> JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003e', '<' => '\u003c', "\u2028" => '\u2028',... | 1 |
Python | Python | fix polygon division. closes ticket #553 | eb12ad4a3656aafe1260e0a981bd5c0dc136de0c | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_numeric_random(self, level=rlevel):
<ide> from numpy.oldnumeric.random_array import randint
<ide> randint(0,50,[2,3])
<ide>
<add> def check_poly_div(self, level=rlevel):
<add> """Ticket #553"""
<add> u = N.poly1d([1,2,3])
<... | 2 |
Javascript | Javascript | improve error boundaries tests | 0c031c55b897307ded97c2a681bee3c19e902ec6 | <ide><path>src/renderers/shared/stack/reconciler/__tests__/ReactErrorBoundaries-test.js
<ide>
<ide> var React;
<ide> var ReactDOM;
<del>var ReactDOMServer;
<ide>
<ide> describe('ReactErrorBoundaries', function() {
<ide>
<ide> beforeEach(function() {
<ide> ReactDOM = require('ReactDOM');
<del> ReactDOMServer... | 2 |
Text | Text | remove extrernal link to github pug | 05bde54e9febd3293bfa36f6a19f280ac593cdbd | <ide><path>curriculum/challenges/english/06-quality-assurance/advanced-node-and-express/use-a-template-engines-powers.md
<ide> One of the greatest features of using a template engine is being able to pass va
<ide>
<ide> In your Pug file, you're able to use a variable by referencing the variable name as `#{variable_nam... | 1 |
Python | Python | evaluate loaded class, to ensure save/load works | 5e4312feede7c2511b4d61a5723077c1b16c142d | <ide><path>spacy/cli/train.py
<ide> def train(_, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide> pbar.update(len(docs))
<ide>
<ide> with nlp.use_params(optimizer.averages):
<del> scorer = nlp.evaluate(corpus.dev_docs(nlp, gold_preproc=False))
<ide> ... | 1 |
PHP | PHP | move comment to match logout method | 55d28abb7568f5625ea63063d55847e8b5f95ebe | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> public function logoutCurrentDevice()
<ide> {
<ide> $user = $this->user();
<ide>
<add> $this->clearUserDataFromStorage();
<add>
<ide> // If we have an event dispatcher instance, we can fire off the logout event
<ide> // so any fur... | 1 |
PHP | PHP | add path option to reminderscontrollercommand | cff5fb356458f8ef9fefb1734358cc1c1026acb7 | <ide><path>src/Illuminate/Auth/Console/RemindersControllerCommand.php
<ide>
<ide> use Illuminate\Console\Command;
<ide> use Illuminate\Filesystem\Filesystem;
<add>use Symfony\Component\Console\Input\InputOption;
<ide>
<ide> class RemindersControllerCommand extends Command {
<ide>
<ide> class RemindersControllerComma... | 1 |
Ruby | Ruby | add progress message when searching git history | a8563afc9e60abc749bff43177c768c0af69dab9 | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide> def extract
<ide> file = repo/"Formula/#{name}.rb"
<ide>
<ide> if args.version
<add> ohai "Searching repository history"
<ide> version = args.version
<ide> rev = "HEAD"
<ide> test_formula = nil
<ide> def extract
<ide> version = F... | 1 |
Python | Python | add blender logging handlers only once | 688cde2f6cbed70b2ce0ca74e13d585a22cca15f | <ide><path>utils/exporters/blender/addons/io_three/logger.py
<ide> def init(filename, level=constants.DEBUG):
<ide> LOGGER = logging.getLogger('Three.Export')
<ide> LOGGER.setLevel(LEVELS[level])
<ide>
<del> stream = logging.StreamHandler()
<del> stream.setLevel(LEVELS[level])
<add> if not LOGGER.hand... | 1 |
Go | Go | change ownership to root for add file/directory | 026aebdebbaa05eab25134949ed5d5bda655ba67 | <ide><path>server/buildfile.go
<ide> func (b *buildFile) addContext(container *runtime.Container, orig, dest string,
<ide> return err
<ide> }
<ide>
<add> chownR := func(destPath string, uid, gid int) error {
<add> return filepath.Walk(destPath, func(path string, info os.FileInfo, err error) error {
<add> if err ... | 1 |
Javascript | Javascript | remove unused variables | dec8a0eb72594577b05108bb92cf2e2f34c1ce24 | <ide><path>src/ng/parse.js
<ide> Parser.prototype = {
<ide> }
<ide> };
<ide>
<del>var getterFnCacheDefault = createMap();
<del>var getterFnCacheExpensive = createMap();
<del>
<ide> function isPossiblyDangerousMemberName(name) {
<ide> return name == 'constructor';
<ide> }
<ide><path>test/ng/parseSpec.js
<ide>
<ide... | 2 |
Text | Text | react dev tools | 91900d117283fd29b616fdb3f5ce79b110ba70c4 | <ide><path>errors/url-deprecated.md
<ide> In versions prior to 6.x the `url` property got magically injected into every `P
<ide>
<ide> The reason this is going away is that we want to make things very predictable and explicit. Having a magical url property coming out of nowhere doesn't aid that goal.
<ide>
<add>*Note... | 1 |
PHP | PHP | add default unauthenticated stub method | 11b0de0485632d5712f7fb59071a4acbc4af2bdc | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function prepareException(Exception $e)
<ide> return $e;
<ide> }
<ide>
<add> /**
<add> * Convert an authentication exception into a response.
<add> *
<add> * @param \Illuminate\Http\Request $request
<add> * @pa... | 1 |
Javascript | Javascript | add multiline repl input regression test | 92c86fd84d5f9be1a22388dd5ebb91ee8039e839 | <ide><path>test/parallel/test-repl-multiline.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const repl = require('repl');
<add>const inputStream = new common.ArrayStream();
<add>const outputStream = new common.ArrayStream();
<add>const input = ['var foo = {',... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.