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 |
|---|---|---|---|---|---|
Text | Text | add summary on sshd drives | e90710ad4640668fa69aa41165ff9da926b3e0c8 | <ide><path>client/src/pages/guide/english/computer-hardware/hard-drives/index.md
<ide> SSDs are commonly used as boot drives or storage for the most used applications
<ide>
<ide> While most Hard Drives use either a SATA or SAS connector Solid State Drives often use other connections that can handle higher bandwidth an... | 1 |
Text | Text | add missing space | ceca4109fac5367f7c354b675cadf086dc1e09c3 | <ide><path>docs/docker-hub/builds.md
<ide> The following parameters are recognized in callback data:
<ide> ## Repository links
<ide>
<ide> Repository links are a way to associate one Automated Build with
<del>another. If one gets updated,the linking system triggers a rebuild
<add>another. If one gets updated, the link... | 1 |
Python | Python | fix attributeerror regression in | 1901ea8594185c015d1518d89f3b90180275c0b9 | <ide><path>celery/beat.py
<ide> def _evaluate_entry_args(entry_args):
<ide> return []
<ide> return [
<ide> v() if isinstance(v, BeatLazyFunc) else v
<del> for v in entry_args.args
<add> for v in entry_args
<ide> ]
<ide>
<ide>
<ide><path>t/unit/app/test_beat.py
<ide> def foo():
<i... | 2 |
Java | Java | add requestpath to http/server/reactive | 2d17411ec4b3f0b973264ab270689b8f578d3e52 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultRequestPath.java
<add>/*
<add> * Copyright 2002-2017 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License... | 5 |
Python | Python | add tokenizer exceptions for ing verbs | c0691b2ab4a95d88c760a389c64fa76605cb2a59 | <ide><path>spacy/lang/en/tokenizer_exceptions.py
<ide> {ORTH: "O'clock", LEMMA: "o'clock", NORM: "o'clock"},
<ide> {ORTH: "lovin'", LEMMA: "love", NORM: "loving"},
<ide> {ORTH: "Lovin'", LEMMA: "love", NORM: "loving"},
<add> {ORTH: "lovin", LEMMA: "love", NORM: "loving"},
<add> {ORTH: "Lovin", LEMMA: ... | 1 |
Ruby | Ruby | avoid expensive pathname concatenation | 49682e854d10e99e799e7aeefd1ec08e2ebcf56b | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def initialize name, package
<ide> super
<ide>
<ide> if name.to_s.empty? || name == '__UNKNOWN__'
<del> @tarball_path = HOMEBREW_CACHE + File.basename(@url)
<add> @tarball_path = Pathname.new("#{HOMEBREW_CACHE}/#{File.basename(@url)}")
<ide> ... | 4 |
PHP | PHP | remove defunct property | f001d18218e397a78e8a05130086f877084eec1c | <ide><path>src/Controller/ErrorController.php
<ide> */
<ide> class ErrorController extends Controller {
<ide>
<del>/**
<del> * Uses Property
<del> *
<del> * @var array
<del> */
<del> public $uses = array();
<del>
<ide> /**
<ide> * Constructor
<ide> * | 1 |
Text | Text | add readme with experimental warning for plugins | ec89e7387f4dce77406fec0c00ee2774dd02fa04 | <ide><path>packages/next-plugin-google-analytics/readme.md
<add># Unstable @next/plugin-google-analytics
<add>
<add>This package is still very experimental and should not be used at this point
<ide><path>packages/next-plugin-material-ui/readme.md
<add># Unstable @next/plugin-material-ui
<add>
<add>This package is still... | 3 |
Javascript | Javascript | use delegate for autolocation | 54d8d3959ec89e229ac3aef5dcd4a8ab424b2b96 | <ide><path>packages/ember-routing/lib/location/api.js
<ide> import Ember from "ember-metal/core"; // deprecate, assert
<ide> import environment from "ember-metal/environment";
<add>import { getHash } from "ember-routing/location/util";
<ide>
<ide> /**
<ide> @module ember
<ide> export default {
<ide> @since 1.4.0
<... | 4 |
Javascript | Javascript | add coverage for invalid rsa-pss digests | 27ea62a1712df2445db79f84d0cc498551fa0f1d | <ide><path>test/parallel/test-crypto-keygen.js
<ide> const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
<ide> }
<ide> );
<ide> }
<add>
<add> assert.throws(() => generateKeyPair('rsa-pss', {
<add> modulusLength: 512,
<add> hashAlgorithm: 'sha2',
<add> }, common.mustNotCall()), ... | 1 |
Javascript | Javascript | remove rsaprivate and rename rsapublic | 9f97f1044b7d111c3c8b8f5db0c8dd0e9bc11027 | <ide><path>lib/internal/crypto/cipher.js
<ide> const { StringDecoder } = require('string_decoder');
<ide> const { inherits } = require('util');
<ide> const { normalizeEncoding } = require('internal/util');
<ide>
<del>function rsaPublic(method, defaultPadding) {
<add>function rsaFunctionFor(method, defaultPadding) {
<i... | 1 |
Java | Java | add test case on nested routerfunction attributes | 5b1bda5c7cc1b28a559ead633121f67eea149acd | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/function/server/AttributesTestVisitor.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lice... | 6 |
Javascript | Javascript | fix incomplete animation test | f61ff695192df2123ea086ddd5fe65e27e9b4e18 | <ide><path>test/ngAnimate/animateSpec.js
<ide> describe("ngAnimate", function() {
<ide> expect(element.hasClass('hiding')).toBe(false);
<ide>
<ide> $animate.addClass(element, 'ng-hide');
<del> return
<ide>
<ide> if($sniffer.transitions) {
<ide> expect(element).toBeShown(); //still showi... | 1 |
Text | Text | update onboarding task | 061e09891cd5115641b5c3199a5f457b519ec77b | <ide><path>doc/onboarding.md
<ide> needs to be pointed out separately during the onboarding.
<ide> -1`
<ide> * Collaborators are in alphabetical order by GitHub username.
<ide> * Optionally, include your personal pronouns.
<del>* Label your pull request with the `doc` and `notable-change` labels.
<add>* Label your ... | 1 |
Python | Python | update doc for xlm and xlnet | 44c985facdf562d6cf3d7cd72f2900e3a0d85d6e | <ide><path>pytorch_transformers/modeling_bert.py
<ide> def init_weights(self, module):
<ide> (see `BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding`_ for more details).
<ide> **attention_mask**: (`optional`) ``torch.Tensor`` of shape ``(batch_size, sequence_length)``:... | 7 |
Text | Text | fix a minor typo in contributing | 14d85931021c99a9a3fd52cc63472d72b60fd62d | <ide><path>CONTRIBUTING.md
<ide> We will do our best to keep `master` in good shape, with tests passing at all ti
<ide>
<ide> Use `grunt test` to run the full test suite with PhantomJS.
<ide>
<del>This command is just a facade to [Jest](https://facebook.github.io/jest/). You may optionally `npm install -g jest-cli` r... | 1 |
Text | Text | fix minor typo in lifting-state-up.md | cec9b074024b8f1c897a22f9b12ec9a0301967b3 | <ide><path>docs/docs/lifting-state-up.md
<ide> Let's recap what happens when you edit an input:
<ide>
<ide> * React calls the function specified as `onChange` on the DOM `<input>`. In our case, this is the `handleChange` method in `TemperatureInput` component.
<ide> * The `handleChange` method in the `TemperatureInput... | 1 |
Javascript | Javascript | add soundcloud pulse to the app showcase | 7dbba3ba5f7d6cb161d67e4070f3827ffe1033a6 | <ide><path>website/src/react-native/showcase.js
<ide> var featured = [
<ide> 'https://blog.gyrosco.pe/the-making-of-gyroscope-running-a4ad10acc0d0',
<ide> ],
<ide> },
<add> {
<add> name: 'SoundCloud Pulse',
<add> icon: 'https://i1.sndcdn.com/artworks-000149203716-k5je96-original.jpg',
<add> link: ... | 1 |
PHP | PHP | add deprecation notices to a few methods | ea0e45490e14512a2e67eb38dcbe05b62e3478f9 | <ide><path>src/Network/Response.php
<ide> protected function _sendContent($content)
<ide> * - an array of string headers is also accepted
<ide> * @param string|array|null $value The header value(s)
<ide> * @return array List of headers to be sent
<add> * @deprecated 3.4.0 Use `withHeader()`, `getHea... | 1 |
Mixed | Ruby | add config.disable_sandbox option to rails console | b27105252bce6a69f6d57c05d4ea28d20e84f8ae | <ide><path>guides/source/configuring.md
<ide> application. Accepts a valid week day symbol (e.g. `:monday`).
<ide> end
<ide> ```
<ide>
<add>* `config.disable_sandbox` controls whether or not someone could start a console in sandbox mode, as a long session of sandbox console could lead database server to run ou... | 7 |
Javascript | Javascript | add key warning to nested collections | 086636747f26b577b4a4577a0888118310ee91b3 | <ide><path>src/addons/__tests__/ReactFragment-test.js
<ide> describe('ReactFragment', function() {
<ide> z: <span />
<ide> };
<ide> var element = <div>{[children]}</div>;
<del> expect(console.error.calls.length).toBe(0);
<del> var container = document.createElement('div');
<del> React.render(elem... | 4 |
Javascript | Javascript | remove an internal argument to the on method | 04a29696e5b176ac66401120e433d52425222f0f | <ide><path>src/event.js
<ide> function safeActiveElement() {
<ide> } catch ( err ) { }
<ide> }
<ide>
<add>function on( elem, types, selector, data, fn, one ) {
<add> var origFn, type;
<add>
<add> // Types can be a map of types/handlers
<add> if ( typeof types === "object" ) {
<add> // ( types-Object, selector, data ... | 1 |
Java | Java | fix terminal state handling | b5e493366f784faf1fc194d59473a993d0db0e45 | <ide><path>rxjava-core/src/main/java/rx/operators/OperatorTake.java
<ide> public Observer<T> call(final Observer<? super T> o, final OperatorSubscription
<ide> return new Observer<T>() {
<ide>
<ide> int count = 0;
<add> boolean completed = false;
<ide>
<ide> @Override
<ide> ... | 3 |
PHP | PHP | remove comments before compiling components | 2964d2dfd3cc50f7a709effee0af671c86587915 | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> class BladeCompiler extends Compiler implements CompilerInterface
<ide> * @var array
<ide> */
<ide> protected $compilers = [
<del> 'Comments',
<add> // 'Comments',
<ide> 'Extensions',
<ide> 'Statements',
<ide> ... | 1 |
Python | Python | stop timer threads after staring them | 154e0df85fdef7d857862430f35e531cd47d849d | <ide><path>celery/tests/test_worker.py
<ide> def qos(self, **kwargs):
<ide> l.qos = QoS(l.task_consumer, l.initial_prefetch_count, l.logger)
<ide> l.event_dispatcher = MockEventDispatcher()
<ide> l.receive_message(m.decode(), m)
<add> l.eta_schedule.stop()
<ide>
<ide> items = [en... | 1 |
Javascript | Javascript | fix seed paths | 79cbe13c62221df523726660c81413aaf580c9a2 | <ide><path>server/boot/challenge.js
<ide> var R = require('ramda'),
<ide> resources = require('../resources/resources'),
<ide> userMigration = require('../resources/middleware').userMigration,
<del> MDNlinks = require('../../seed_data/bonfireMDNlinks');
<add> MDNlinks = require('../../seed/bonfireMDNlinks... | 3 |
Ruby | Ruby | write options to file | 3396d479d2cc87fed0f9a74f711881ea1784e0d6 | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide> else
<ide> formula.prefix.mkpath
<ide>
<add> (formula.logs/"00.options.out").write \
<add> "#{formula.full_name} #{formula.build.used_options.sort.join(" ")}".strip
<ide> formula.install
<ide>
<ide> stdlibs = de... | 1 |
Go | Go | drop driver abstraction | be4f4644a8ebb940f0d68dc66f59327a74775ad6 | <ide><path>builder/remotecontext/archive.go
<ide> type archiveContext struct {
<ide> }
<ide>
<ide> func (c *archiveContext) Close() error {
<del> return c.root.RemoveAll(c.root.Path())
<add> return os.RemoveAll(c.root.Path())
<ide> }
<ide>
<ide> func convertPathError(err error, cleanpath string) error {
<ide> func (c... | 14 |
Ruby | Ruby | hoist update for clarity | 9794e85351243cac6d4e78adaba634b8e4ecad0a | <ide><path>activestorage/app/models/active_storage/blob/identifiable.rb
<ide>
<ide> module ActiveStorage::Blob::Identifiable
<ide> def identify
<del> ActiveStorage::Identification.new(self).apply
<add> update!(content_type: identification.content_type, identified: true) unless identified?
<ide> end
<ide>
<i... | 2 |
Python | Python | allow run_validators() to handle non-dict types. | 587058e3c25aac4d871828a3ef19637eb9e8ddbd | <ide><path>rest_framework/serializers.py
<ide> def run_validators(self, value):
<ide> """
<ide> Add read_only fields with defaults to value before running validators.
<ide> """
<del> to_validate = self._read_only_defaults()
<del> to_validate.update(value)
<add> if isinstance... | 2 |
PHP | PHP | fix psalm error | 02765f12cad459cc3f35bc776e4e54c967e33044 | <ide><path>src/TestSuite/Schema/SchemaGenerator.php
<ide> */
<ide> namespace Cake\TestSuite\Schema;
<ide>
<add>use Cake\Database\Connection;
<ide> use Cake\Database\Schema\TableSchema;
<ide> use Cake\Datasource\ConnectionManager;
<ide> use RuntimeException;
<ide> public function reload(?array $tables = null): void
<i... | 1 |
Java | Java | introduce aot variant of beanpostprocessor | 2141373c432dfc18bb665ec4f54b1e3c3b121c99 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
<ide> import java.lang.reflect.Constructor;
<ide> import java.lang.reflect.Field;
<ide> import java.lang.reflect.InvocationTargetException;
<add>import java.lang.reflect.Member;
<ide> import java... | 4 |
Javascript | Javascript | fix treatment of some values as non-empty | 66877216bd833face753d9a5d573ad477895d880 | <ide><path>lib/url.js
<ide> Object.defineProperty(Url.prototype, 'port', {
<ide> return null;
<ide> },
<ide> set: function(v) {
<del> if (v === null) {
<add> if (isConsideredEmpty(v)) {
<ide> this._port = -1;
<ide> if (this._host)
<ide> this._host = null;
<ide> Object.defineProperty(Ur... | 2 |
Ruby | Ruby | fix new gcc lib directory | 532460c098d7417a7477f7f54e790133880e8d26 | <ide><path>Library/Homebrew/extend/os/linux/keg_relocate.rb
<ide> def change_rpath(file, old_prefix, new_prefix)
<ide>
<ide> lib_path = "#{new_prefix}/lib"
<ide> rpath << lib_path unless rpath.include? lib_path
<del> rpath.prepend HOMEBREW_PREFIX/"opt/gcc/lib/current" if rpath.any? { |rp| rp.match?(%r... | 1 |
Text | Text | add python 3.5 | 7d7175935545885b4bdbb2dd2eb63907342dbe2c | <ide><path>README.md
<ide> Supports
<ide>
<ide> * CPython 2.7
<ide> * CPython 3.4
<add>* CPython 3.5
<ide> * OSX
<ide> * Linux
<ide> * Cygwin | 1 |
Text | Text | recognize background-image as correct | 28efec9e631d7ebd44f3e86a891dbb7832b84a55 | <ide><path>curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-texture-by-adding-a-subtle-pattern-as-a-background-image.md
<ide> Your `body` element should have a `background` property set to a `url()` with th
<ide> ```js
<ide> assert(
<ide> code.match(
<del> /background:\s*?url\(\s... | 1 |
Javascript | Javascript | copy files for canadian i18n | b58b1a7affa688feb64ec89534b004271021d347 | <ide><path>lang/en-ca.js
<add>// moment.js language configuration
<add>// language : great britain english (en-gb)
<add>// author : Chris Gedrim : https://github.com/chrisgedrim
<add>(function () {
<add> var lang = {
<add> months : "January_February_March_April_May_June_July_August_September_October_Novem... | 2 |
Javascript | Javascript | add a getter for moment.lang() | fd8da1c0f7d282a4a68738376cb25ed2683f50c5 | <ide><path>moment.js
<ide> var moment,
<ide> round = Math.round,
<ide> languages = {},
<add> currentLanguage = 'en',
<ide> hasModule = (typeof module !== 'undefined'),
<ide> paramsToParse = 'months|monthsShort|monthsParse|weekdays|weekdaysShort|longDateFormat|calendar|relative... | 2 |
Python | Python | fix numpy.isin for timedelta dtype | f9bed20bffd88bce06dbc8be200179edfe7580a4 | <ide><path>numpy/lib/arraysetops.py
<ide> def in1d(ar1, ar2, assume_unique=False, invert=False, *, kind=None):
<ide> # Ensure that iteration through object arrays yields size-1 arrays
<ide> if ar2.dtype == object:
<ide> ar2 = ar2.reshape(-1, 1)
<del> # Convert booleans to uint8 so we can use the fast... | 2 |
Text | Text | remove unnecessary comments | 87b0e5bb7a7265b60425b38560006540e5efbe46 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/add-new-properties-to-a-javascript-object.md
<ide> You should add the property `bark` to `myDog`.
<ide> assert(myDog.bark !== undefined);
<ide> ```
<ide>
<del>You should not add `bark` to the setup section.
<add>You ... | 1 |
Go | Go | use filepath.walkdir instead of filepath.walk | 1870d5f4aa54ec43a86ca3404bb5652c5acc0926 | <ide><path>builder/dockerfile/copy.go
<ide> func (o *copier) storeInPathCache(im *imageMount, path string, hash string) {
<ide> func (o *copier) copyWithWildcards(origPath string) ([]copyInfo, error) {
<ide> root := o.source.Root()
<ide> var copyInfos []copyInfo
<del> if err := filepath.Walk(root, func(path string, i... | 3 |
PHP | PHP | return sqlsrv in place of dblib driver | 7310ce44efc018a157ddbaf3aa2b8b768b617cab | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide> public function setDefaultConnection($name)
<ide> */
<ide> public function supportedDrivers()
<ide> {
<del> return ['mysql', 'pgsql', 'sqlite', 'dblib', 'sqlsrv'];
<add> return ['mysql', 'pgsql', 'sqlite', 'sqlsrv'];
<ide> }
<id... | 1 |
Go | Go | update bundle extension | 61e2d4240ba266518d0a9a862a88201e54502a88 | <ide><path>api/client/stack/deploy.go
<ide> func newDeployCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> cmd := &cobra.Command{
<ide> Use: "deploy [OPTIONS] STACK",
<ide> Aliases: []string{"up"},
<del> Short: "Create and update a stack",
<add> Short: "Create and update a stack from a Distrib... | 2 |
Go | Go | remove error from engine.new() | 7100ace42bda2660d1eaecb2ec096ba6753688ea | <ide><path>api/server/server_unit_test.go
<ide> func TesthttpError(t *testing.T) {
<ide> }
<ide>
<ide> func TestGetVersion(t *testing.T) {
<del> eng := tmpEngine(t)
<add> eng := engine.New()
<ide> var called bool
<ide> eng.Register("version", func(job *engine.Job) engine.Status {
<ide> called = true
<ide> func Tes... | 7 |
Text | Text | change links from http to https | a6ed1e51b7f2ad569032a6829c64c18782ab2b77 | <ide><path>curriculum/challenges/english/08-coding-interview-prep/rosetta-code/24-game.english.md
<ide> challengeType: 5
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>The <a href="http://en.wikipedia.org/wiki/24_Game" target="_blank">24 Game</a> tests a person's mental arithmetic.
<add>The <a href="... | 38 |
PHP | PHP | remove unneeded order lines | 85c1081b26b7cd2411f5ab9b2b5c734e22931933 | <ide><path>tests/Integration/Queue/ModelSerializationTest.php
<ide> public function it_reloads_relationships()
<ide>
<ide> Line::create(['order_id' => $order->id, 'product_id' => $product1->id]);
<ide> Line::create(['order_id' => $order->id, 'product_id' => $product2->id]);
<del> Line::create(['... | 1 |
Ruby | Ruby | add small dsl for defining comparators | 158b7047e516b6dda176cb1745e23c7109d049e9 | <ide><path>Library/Homebrew/version.rb
<ide> def self._parse spec
<ide> m = /_([^_]+)/.match(stem)
<ide> return m.captures.first unless m.nil?
<ide> end
<add>
<add> # DSL for defining comparators
<add> class << self
<add> def compare &blk
<add> send(:define_method, '<=>', &blk)
<add> end
<add> e... | 1 |
Text | Text | remove broken 404 links | 82e63e3d74b3f0d69b11f4c170e48ffd6f5db886 | <ide><path>packages/next/README.md
<ide> We have a list of [good first issues](https://github.com/vercel/next.js/labels/g
<ide>
<ide> ## Authors
<ide>
<del>- Tim Neutkens ([@timneutkens](https://twitter.com/timneutkens)) – [Vercel](https://vercel.com/about/timneutkens)
<del>- Naoyuki Kanezawa ([@nkzawa](https://twitt... | 1 |
Text | Text | use a descriptive text for the wikipedia link | 20dc65f6cedf835fb66990749ee2de7b0990d7bf | <ide><path>guide/english/algorithms/algorithm-design-patterns/behavioral-patterns/index.md
<ide> Examples of this type of design pattern include:
<ide> 17. **Visitor pattern**: A way to separate an algorithm from an object.
<ide>
<ide> ### Sources
<del>[https://en.wikipedia.org/wiki/Behavioral_pattern](https://en.wiki... | 1 |
PHP | PHP | add test for disabled modulus | 00735936dd29606fd088f3288dd51dd59dfd76d2 | <ide><path>tests/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testNumbersModulus()
<ide> 'pageCount' => 3,
<ide> ]
<ide> ];
<del> $options = ['modulus' => 10];
<del> $result = $this->Paginator->numbers($options);
<add>
<add> $result = $this-... | 1 |
Mixed | Javascript | add support for vibration patterns | e20e8a3cc87cbb624add4de00149b1f55bbdcfba | <ide><path>Examples/UIExplorer/VibrationExample.js
<ide> var {
<ide> exports.framework = 'React';
<ide> exports.title = 'Vibration';
<ide> exports.description = 'Vibration API';
<del>exports.examples = [{
<del> title: 'Vibration.vibrate()',
<del> render() {
<del> return (
<del> <TouchableHighlight
<del> ... | 3 |
Text | Text | update broken links on local setup guides. | 3e7dcee0baf07a709aa7b0678ed75cbddbc5e516 | <ide><path>docs/how-to-setup-freecodecamp-locally-using-docker.md
<ide> Make sure the command line tool (Cmd, PowerShell or Git Bash for Windows, etc.)
<ide>
<ide> We regularly develop on popular and latest operating systems like macOS 10.12 or later, Ubuntu 16.04 or later and Windows 10. Its recommended to lookup you... | 2 |
Python | Python | update bundled constants | 79c4b44bbb51549c558d05a61a0d6b822409b14d | <ide><path>libcloud/compute/constants.py
<ide> "enhancedNetworkingSupported": "Yes",
<ide> "instanceFamily": "General purpose",
<ide> "instanceType": "a1.2xlarge",
<add> "instancesku": "PXF95N47CM7CEGME",
<ide> "memory": "16 GiB",
<ide> "networkPerf... | 1 |
Text | Text | add es6 introduction to js certification section | f94d1ede927b43af81defe808010fd13f237c1e3 | <ide><path>client/src/pages/guide/english/certifications/javascript-algorithms-and-data-structures/es6/index.md
<ide> title: ES6
<ide> ---
<ide> ## ES6
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/quadratic-equations/index.md' target='_blank' rel='nofollo... | 1 |
Javascript | Javascript | move cssvar out of react-native-github | d815d1df9a5fef1db7666da6802fb231f1f0aa1f | <ide><path>Examples/UIExplorer/NavigationExperimental/LegacyNavigator/NavigationBarSample.js
<ide> var {
<ide> TouchableOpacity,
<ide> } = React;
<ide>
<del>var cssVar = require('cssVar');
<del>
<ide> var Navigator = NavigationExperimental.LegacyNavigator;
<ide>
<ide> class NavButton extends React.Component {
<ide>... | 4 |
Ruby | Ruby | use helper method to get env['content_length'] | c61b3ce0f5f4203821838c9b1ca00c851192f22b | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def server_software
<ide> def raw_post
<ide> unless @env.include? 'RAW_POST_DATA'
<ide> raw_post_body = body
<del> @env['RAW_POST_DATA'] = raw_post_body.read(@env['CONTENT_LENGTH'].to_i)
<add> @env['RAW_POST_DATA'] = raw_pos... | 1 |
Javascript | Javascript | convert global variables to local variables | 9e64158db30626c7ee1ae70c4b7caecd70a37d51 | <ide><path>examples/js/loaders/ColladaLoader.js
<ide> THREE.ColladaLoader = function () {
<ide> var bones = [];
<ide> setupSkeleton( skeleton, bones, -1 );
<ide> setupSkinningMatrices( bones, skinController.skin );
<del> v = new THREE.Vector3();
<add> var v = new THREE.Vector3();
<ide> var skinned = [];
<ide>... | 1 |
Text | Text | use a better imperative mood example | aebca38ae6984993b712f122703fba5c14632471 | <ide><path>docs/contributing.md
<ide> dependencies up to date by running `apm update` after pulling upstream changes.
<ide>
<ide> ### Commit Message Guidelines
<ide> * Use the present tense ("Add feature" not "Added feature")
<del> * Use the imperative mood ("Fix bug" not "Fixes bug")
<add> * Use the imperative mo... | 1 |
Javascript | Javascript | preserve implicit method names | bda199de0440a8dd8d329f1443decd67b9792abc | <ide><path>src/browser/ui/ReactDOMComponent.js
<ide> ReactDOMComponent.Mixin = {
<ide> * @param {number} mountDepth number of components in the owner hierarchy
<ide> * @return {string} The computed markup.
<ide> */
<del> mountComponent: ReactPerf.measure(
<del> 'ReactDOMComponent',
<del> 'mountComponent... | 6 |
Javascript | Javascript | fix createeventhandle bug with comment containers | 147179ae82039f38fa1a9a72402f578af8fb3ea3 | <ide><path>packages/react-dom/src/client/ReactDOMEventHandle.js
<ide> import {
<ide> getEventListenerMap,
<ide> getFiberFromScopeInstance,
<ide> } from './ReactDOMComponentTree';
<del>import {ELEMENT_NODE} from '../shared/HTMLNodeType';
<add>import {ELEMENT_NODE, COMMENT_NODE} from '../shared/HTMLNodeType';
<ide> i... | 2 |
Ruby | Ruby | add benchmark inject code | d770a874e466d1e9a8df7672b37102291056cae1 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit
<ide> ENV.activate_extensions!
<ide> ENV.setup_build_environment
<ide>
<add> if ARGV.switch? "D"
<add> FormulaAuditor.module_eval do
<add> instance_methods.grep(/audit_/).map do |name|
<add> method = instance_method(name)
<add> ... | 1 |
Text | Text | simplify ccache instructions | 31d7d6c994c5b38de1b18a30d31ac580f868eafc | <ide><path>BUILDING.md
<ide> installing `ccache` can help to greatly reduce build times. Set up with:
<ide>
<ide> On GNU/Linux:
<ide>
<del>```console
<del>$ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
<del>$ ccache -o cache_dir=<tmp_dir>
<del>$ ccache -o max_size=5.0G
<del>$ export C... | 1 |
Javascript | Javascript | avoid every execution and allocation | 56f8c7f39d428c58a7dbeb9683ea051e0b649eb5 | <ide><path>src/compose.js
<ide> * from right to left. For example, compose(f, g, h) is identical to doing
<ide> * (...args) => f(g(h(...args))).
<ide> */
<del>
<del>export default function compose(...funcs) {
<del> return (...args) => {
<del> if (funcs.length === 0) {
<del> return args[0]
<del> }
<ide> ... | 1 |
Text | Text | add ak239 to collaborators | c5ce7f4d9e36fc9f06547de1e41cdf4b2ac02720 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide>
<ide> ### Collaborators
<ide>
<add>* [ak239](https://github.com/ak239) -
<add>**Aleksei Koziatinskii** <ak239spb@gmail.com>
<ide> * [andrasq](https://github.com/andrasq) -
<ide> **Andras** <andras@kinvey.com>... | 1 |
Ruby | Ruby | allow http templates again, fix the broken test | 76053fe4d12bd2be38e16b3322f9de73e09b43bc | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def apply_rails_template
<ide>
<ide> def set_default_accessors!
<ide> self.rails_template = case options[:template]
<del> when /^https:\/\//
<add> when /^https?:\/\//
<ide> options[:template]
<ide> when Str... | 1 |
Text | Text | add missing import in tests | d9c652813d3ab0ddebbb5503ce8ed57c49e1d0d2 | <ide><path>docs/api-guide/testing.md
<ide> When testing views directly using a request factory, it's often convenient to be
<ide>
<ide> To forcibly authenticate a request, use the `force_authenticate()` method.
<ide>
<add> from rest_framework.tests import force_authenticate
<add>
<ide> factory = APIRequestFact... | 1 |
Python | Python | fix tree color and improve display code | 41586d60f9b7fedde2c88248bb776f66ccbe8f1c | <ide><path>glances/plugins/glances_processlist.py
<ide> def add_tree_decoration(self, child_data, is_last_child, first_level):
<ide> # TODO find a way to get rid of hardcoded 12 value
<ide> pos.append(i + 12)
<ide>
<add> # add new curses items for tree decoration
<add> new... | 1 |
Python | Python | add relations and get tests running | ec096a1caceff6a4f5c75a152dd1c7bea9ed281d | <ide><path>rest_framework/fields.py
<ide> class Field(object):
<ide>
<ide> def __init__(self, read_only=False, write_only=False,
<ide> required=None, default=empty, initial=None, source=None,
<del> label=None, style=None):
<add> label=None, style=None, error_message... | 7 |
Text | Text | add link to debugger in process.md | 8d23afc807303a9afc1851802e1d88f0d3a84c29 | <ide><path>doc/api/process.md
<ide> terminal programs.
<ide>
<ide> It is important to take note of the following:
<ide>
<del>* `SIGUSR1` is reserved by Node.js to start the debugger. It's possible to
<add>* `SIGUSR1` is reserved by Node.js to start the [debugger][]. It's possible to
<ide> install a listener but do... | 1 |
Ruby | Ruby | add check for 'head' and 'head do' both present | 4c80bf4324956e39073eb7d13c144cdcd0f64fba | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_file
<ide> [/^ test do/, "test block"]
<ide> ]
<ide>
<del> component_list.map do |regex, name|
<add> present = component_list.map do |regex, name|
<ide> lineno = text.line_number regex
<ide> next unless lineno
<... | 1 |
PHP | PHP | remove duplicate eol | 691ae2fafe66f8acb404eb8325efdfba2f353675 | <ide><path>src/Illuminate/Auth/AuthServiceProvider.php
<ide> public function register()
<ide> });
<ide> }
<ide>
<del>
<ide> /**
<ide> * Get the services provided by the provider.
<ide> *
<ide><path>src/Illuminate/Console/Command.php
<ide> public function askWithCompletion($question, array $choices, $default = ... | 6 |
Javascript | Javascript | remove slow commands check | 3ac89aacd2ad1d5265d9ba82f95fafc6daaac77d | <ide><path>src/display/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> var EO_CLIP = {};
<ide>
<ide> CanvasGraphics.prototype = {
<del> slowCommands: {
<del> 'stroke': true,
<del> 'closeStroke': true,
<del> 'fill': true,
<del> 'eoFill': true,
<del> 'fillSt... | 1 |
Ruby | Ruby | use example.com as domain in tests | 9a554f5f4b41d49ce0dd7e9f8c09ee519c1cb2e2 | <ide><path>Library/Homebrew/test/test_dependency_collector.rb
<ide> def test_does_not_mutate_dependency_spec
<ide>
<ide> def test_resource_dep_git_url
<ide> resource = Resource.new
<del> resource.url("git://github.com/foo/bar.git")
<add> resource.url("git://example.com/foo/bar.git")
<ide> assert_instan... | 4 |
Javascript | Javascript | fix usage of bound outlet name | 0b9af9c82181840d89dd42fc228fe2cb626b52a3 | <ide><path>packages/ember-glimmer/lib/syntax/outlet.js
<ide> import { generateGuid, guidFor } from 'ember-metal/utils';
<ide> import { _instrumentStart } from 'ember-metal/instrumentation';
<ide> import { RootReference } from '../utils/references';
<ide>
<add>import {
<add> UpdatableTag,
<add> ConstReference,
<add> ... | 2 |
Javascript | Javascript | remove unnecessary stack | b58dec979a19d75d8f62fa5e8570ce33fbe50310 | <ide><path>packages/react-reconciler/src/ReactFiberThrow.new.js
<ide> import {
<ide> ForceUpdate,
<ide> enqueueUpdate,
<ide> } from './ReactUpdateQueue.new';
<del>import {getStackByFiberInDevAndProd} from './ReactFiberComponentStack';
<ide> import {markFailedErrorBoundaryForHotReloading} from './ReactFiberHotReload... | 2 |
Python | Python | add synthetic data option to resnet | 74c43aaef62a6f4451e90f95be801882a935177e | <ide><path>official/resnet/cifar10_main.py
<ide> def input_fn(is_training, data_dir, batch_size, num_epochs=1,
<ide> examples_per_epoch=num_images, multi_gpu=multi_gpu)
<ide>
<ide>
<add>def get_synth_input_fn():
<add> return resnet.get_synth_input_fn(_HEIGHT, _WIDTH, _NUM_CHANNELS, _NUM_CLASSES)
<add>
<add>
<i... | 6 |
Javascript | Javascript | fix bug in comparison logic of object property | c3b3eb7f73b0fb4035d4b2478bf9827caf746372 | <ide><path>Libraries/vendor/core/mergeInto.js
<ide> function mergeInto(one, two) {
<ide> if (two != null) {
<ide> checkMergeObjectArg(two);
<ide> for (var key in two) {
<del> if (!two.hasOwnProperty(key)) {
<add> if (!Object.prototype.hasOwnProperty.call(two, key)) {
<ide> continue;
<ide> ... | 1 |
Java | Java | move observer factory methods to observers | b49943ae60a13df551ff26a6e712e444a316c54d | <ide><path>rxjava-core/src/main/java/rx/Observer.java
<ide> protected Observer(Observer<?> op) {
<ide> */
<ide> public abstract void onNext(T args);
<ide>
<del> /**
<del> * Create an empty Observer that ignores all events.
<del> */
<del> public static final <T> Observer<T> create() {
<del> ... | 2 |
Python | Python | support t5 distillation w/hidden state supervision | d5d2744aa799b94488960a261d1b7376d791a621 | <ide><path>examples/seq2seq/distillation.py
<ide> class BartSummarizationDistiller(SummarizationModule):
<ide> """Supports Bart, Pegasus and other models that inherit from Bart."""
<ide>
<del> loss_names = ["loss", "ce_loss", "mlm_loss", "enc_mse_loss", "hid_loss_enc", "hid_loss_dec"]
<add> loss_names = ["lo... | 2 |
Text | Text | prepare 14.x changelog for remark update | bea0ee803302b9bb72b6ecf7a799fc2264ee1389 | <ide><path>doc/changelogs/CHANGELOG_V14.md
<ide>
<ide> <!--lint disable prohibited-strings-->
<ide> <!--lint disable maximum-line-length-->
<add><!--lint disable no-literal-urls-->
<ide>
<ide> <table>
<ide> <tr> | 1 |
Javascript | Javascript | use fixtures.path for cmd string building | b13e660a47a88396c7316cbb6178a18a8f4a52d3 | <ide><path>test/parallel/test-error-reporting.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const exec = require('child_process').exec;
<del>const path = require('path');
<add>const fixtures = require('../common/fixtures');
<ide>
<ide> function errExec(script, callback) {
... | 1 |
PHP | PHP | apply fixes from styleci | 562b869f0fff57fa463ea0ec61b5d0c7de887f35 | <ide><path>src/Illuminate/Database/Schema/Grammars/RenameColumn.php
<ide> protected static function getRenamedDiff($grammar, Blueprint $blueprint, Fluent
<ide> protected static function setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column)
<ide> {
<ide> $tableDiff->renamedColumns = [
... | 1 |
PHP | PHP | extract some methods to break down a mega method | dd944162a7d2a813617cef82ae7b82fc0f4b11e0 | <ide><path>src/ORM/Association/BelongsToMany.php
<ide> public function targetForeignKey($key = null)
<ide> */
<ide> public function junction($table = null)
<ide> {
<del> $target = $this->target();
<del> $source = $this->source();
<del> $sAlias = $source->alias();
<del> $tAlias =... | 1 |
Ruby | Ruby | remove virtual_path from fallback templates | d0c745b8634be3bd830bc93998f199e18bebef49 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> def query(path, details, formats, outside_app_allowed, locals)
<ide> template_paths = reject_files_external_to_app(template_paths) unless outside_app_allowed
<ide>
<ide> template_paths.map do |template|
<del> handler, format, var... | 2 |
Javascript | Javascript | fix error from bad merge in | a6a28d24c183d4252bd269d89b3ddc5f4ae88863 | <ide><path>src/offset.js
<ide> jQuery.fn.extend( {
<ide>
<ide> // Incorporate borders into its offset, since they are outside its content origin
<ide> parentOffset = jQuery( offsetParent ).offset();
<del> parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
<del> parentOffset.left... | 1 |
Java | Java | update example with two observables | 031af80c334410a4566bf38eab8ce0c384f818e3 | <ide><path>rxjava-core/src/main/java/rx/observables/operations/OperationConcat.java
<ide> public void testConcat() {
<ide> public void testConcatUnsubscribe() {
<ide> CountDownLatch callOnce = new CountDownLatch(1);
<ide> CountDownLatch okToContinue = new CountDownLatch(1);
<del> Te... | 1 |
Javascript | Javascript | guarantee the window opening order | 9eb259ce2070f25906c8020d321a48503b3e9057 | <ide><path>src/main-process/atom-application.js
<ide> class AtomApplication extends EventEmitter {
<ide> optionsForWindowsToOpen.push(options)
<ide> }
<ide>
<del> return Promise.all(
<del> optionsForWindowsToOpen.map(options => this.openWithOptions(options))
<del> )
<add> // Preserve window ope... | 1 |
Javascript | Javascript | fix sparse array comparison | 4dd56a39f1f1c0e98b223b611c3a869775177c68 | <ide><path>lib/internal/util/comparisons.js
<ide> function objEquiv(a, b, strict, keys, memos, iterationType) {
<ide> } else {
<ide> // Array is sparse.
<ide> const keysA = objectKeys(a);
<del> i++;
<ide> for (; i < keysA.length; i++) {
<ide> const key = keysA[i];
<ide> ... | 2 |
Javascript | Javascript | correct the coding style according to gjslint | f656e841acbd9697dfeffad74accb69796fba679 | <ide><path>fonts.js
<ide> var kMaxWaitForFontFace = 1000;
<ide> * fonts and their acronyms.
<ide> */
<ide> var stdFontMap = {
<del> "Arial": "Helvetica",
<del> "Arial_Bold": "Helvetica-Bold",
<del> "Arial_BoldItalic": "Helvetica-BoldOblique",
<del> "Arial_Itali... | 3 |
PHP | PHP | add more tests around pluginapplication methods | c6a7aea9585e992b9c8a75daaee27d847e8d3e94 | <ide><path>src/Core/PluginApp.php
<ide> protected function checkHook($hook)
<ide> */
<ide> public function routes($routes)
<ide> {
<del> $routes = __DIR__ . 'config' . DS . 'routes.php';
<del> if (file_exists($routes)) {
<del> require_once $routes;
<add> $path = $this->getCo... | 3 |
Go | Go | print consistent help with options and commands | f3ed7b601fa6151868416254e79a18751c5ff024 | <ide><path>api/client/commands.go
<ide> import (
<ide> "github.com/docker/docker/nat"
<ide> "github.com/docker/docker/opts"
<ide> "github.com/docker/docker/pkg/log"
<add> flag "github.com/docker/docker/pkg/mflag"
<ide> "github.com/docker/docker/pkg/parsers"
<ide> "github.com/docker/docker/pkg/parsers/filters"
<ide... | 2 |
Text | Text | remove stability warning in v8 module doc | e54c8b788d64d6388157434f10888358b3f7ab12 | <ide><path>doc/api/v8.md
<ide> built into the Node.js binary. It can be accessed using:
<ide> const v8 = require('v8');
<ide> ```
<ide>
<del>The APIs and implementation are subject to change at any time.
<del>
<ide> ## `v8.cachedDataVersionTag()`
<ide> <!-- YAML
<ide> added: v8.0.0 | 1 |
Go | Go | support both endpoint modes in stack | 96790657288699146f579382f25d932c87125e86 | <ide><path>cli/compose/convert/service.go
<ide> import (
<ide> "fmt"
<ide> "os"
<ide> "sort"
<add> "strings"
<ide> "time"
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> func convertService(
<ide> ) (swarm.ServiceSpec, error) {
<ide> name := namespace.Scope(service.Name)
<ide>
<del> endpoint, err := conv... | 3 |
Java | Java | fix checkstyle violation | 47d60b34f817d7ab6c95ea0af5871b1fce3ffb92 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageMapping.java
<ide> * a specialization such as
<ide> * {@link org.springframework.messaging.simp.SimpMessageHeaderAccessor
<ide> * SimpMessageHeaderAccessor}.</li>
<del> * <li>{@link Message Message<T>} for access to bod... | 1 |
Mixed | Ruby | allow `host` option in javscript and css helpers | 6b77df0ade304e3856c8c07c93e2a8cde3c040f0 | <ide><path>actionview/CHANGELOG.md
<add>* Allow `host` option in `javascript_include_tag` and `stylesheet_tag` helpers
<add>
<add> *Grzegorz Witek*
<add>
<ide> * Restrict `url_for :back` to valid, non-JavaScript URLs. GH#14444
<ide>
<ide> *Damien Burke*
<ide><path>actionview/lib/action_view/helpers/asset_ta... | 3 |
Javascript | Javascript | add information to assertion | b303d8bb21a6636555df9c5d41824071fd6c109b | <ide><path>test/parallel/test-fs-stat-bigint.js
<ide> const promiseFs = require('fs').promises;
<ide> const path = require('path');
<ide> const tmpdir = require('../common/tmpdir');
<ide> const { isDate } = require('util').types;
<add>const { inspect } = require('util');
<ide>
<ide> tmpdir.refresh();
<ide>
<ide> func... | 1 |
Javascript | Javascript | fix lint errors including use of `global` | 94d2bbb2214f3d88ac6cc1b1c48a59b377222727 | <ide><path>src/core/ReactDOMSelection.js
<ide> function getIESelection(node) {
<ide> * @param {DOMElement} node
<ide> */
<ide> function getModernSelection(node) {
<del> var selection = global.getSelection();
<add> var selection = window.getSelection();
<ide> var anchorNode = selection.anchorNode;
<ide> var anch... | 2 |
Javascript | Javascript | add storedat date for serialized environment state | 85b32b861ed2f6463ef640a4c4bd1ffb9e55783c | <ide><path>src/state-store.js
<ide> class StateStore {
<ide>
<ide> save (key, value) {
<ide> return this.dbPromise.then(db => {
<add> value.storedAt = new Date().toString()
<ide> return new Promise((resolve, reject) => {
<ide> var request = db.transaction(['states'], 'readwrite')
<ide> ... | 1 |
PHP | PHP | use correct method for replacement of url property | eb7b2dc197d62a866085b13ee01c2026c09e9601 | <ide><path>src/Http/ServerRequest.php
<ide> class ServerRequest implements ArrayAccess, ServerRequestInterface
<ide> * The URL string used for the request.
<ide> *
<ide> * @var string
<del> * @deprecated 3.6.0 This public property will be removed in 4.0.0. Use getRequestTarget() instead.
<add> * ... | 1 |
Javascript | Javascript | remove need for state.id | c5024cdace6d9f11371ebab6462cc7020d4d9938 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide> var lights = currentRenderState.state.lights;
<ide> var shadowsArray = currentRenderState.state.shadowsArray;
<ide>
<del> var lightsHash = materialProperties.lightsHash;
<del> var lightsStateHash = lights.state.hash;
<ad... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.