conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add reducer for handling return request\n"
},
{
"from": "human",
"value": "import {\n FETCHING_RETURN_REQUESTS,\n RETURN_REQUESTS_SUCCESS,\n RETURN_REQUESTS_FAILURE,\n}\n from '../actions/types';\n\nconst initialState = {};\n\nconst returnRequests = (state = ini... | javascript | chosen |
[
{
"from": "system",
"value": "Move user profile actions out of core\n"
},
{
"from": "human",
"value": "import { createRequestTypes, actionCreators, action } from '../../actions';\n\nexport const FETCH_USERS = createRequestTypes('FETCH_USERS');\nexport const fetchUsers = actionCreators(FETCH_USER... | javascript | chosen |
[
{
"from": "system",
"value": "Fix StyleKeeper context after ES6 conversion\n\n`this.context` is inaccessible in the constructor unless you pass the\narguments to the component constructor (the second arg is context)\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport React, {Component} from... | javascript | chosen |
[
{
"from": "system",
"value": "Remove commented out code to prevent merge issues"
},
{
"from": "human",
"value": "'use strict';\n\nConnector.playerSelector = '#new_ajax-player';\n\nConnector.artistSelector = '#hotmixPlayerSongArtist .ajax';\n\nConnector.getArtist = () => getScrollableText('#hotmi... | javascript | chosen |
[
{
"from": "system",
"value": "Return documents to make it easier to test\n"
},
{
"from": "human",
"value": "function download(filename, text) {\n const element = document.createElement('a');\n element.setAttribute('href', `data:text/plain;charset=utf-8,${encodeURIComponent(text)}`);\n element... | javascript | chosen |
[
{
"from": "system",
"value": "Fix uri bug of root musics\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar join = require('path').join;\nvar getShiny = function (name) {\n name = name.charAt(0).toUpperCase() + name.substring(1).toLowerCase();\n name = name.replace('.mp3', '');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic GTM tracking for user collections\n"
},
{
"from": "human",
"value": "const defaultState = {\n items: [],\n}\n\nconst store = {\n state: JSON.parse(localStorage.getItem('userCollections')) || defaultState,\n\n getItems() {\n return this.state.items\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add event on selected element\n"
},
{
"from": "human",
"value": "( function( window, define, require, requirejs, undefined ) {\n 'use strict';\n\n define( [\n 'jquery',\n 'lodash',\n 'utils/event'\n ], function( $, _, Event ) {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add style to show selected item\n"
},
{
"from": "human",
"value": "var Menu;\n\nMenu = function(title, items, x, y, width, height) {\n 'use strict';\n this.title = title;\n this.items = items;\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = ... | javascript | chosen |
[
{
"from": "system",
"value": "Change describeTable from Companies to Users\n"
},
{
"from": "human",
"value": "\n'use strict';\n\nvar models = require('../lib/model/db');\n\nmodule.exports = {\n up: function (queryInterface, Sequelize) {\n\n queryInterface.describeTable('Companies').then(func... | javascript | chosen |
[
{
"from": "system",
"value": "Set upload paths for redactor\n"
},
{
"from": "human",
"value": "window.init_redactor = function(){\n var csrf_token = $('meta[name=csrf-token]').attr('content');\n var csrf_param = $('meta[name=csrf-param]').attr('content');\n var params;\n if (csrf_param !== u... | javascript | chosen |
[
{
"from": "system",
"value": "Remove angular js for now.\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, ven... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment as to where calendar has come from\n"
},
{
"from": "human",
"value": "\n// Usual Jquery stuff\n\n//= require jquery\n//= require jquery_ujs\n//= require jquery-ui/widgets/datepicker\n\n// Popper is a requirement for bootstrap and is included either in th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix row breakage in other ajax done\n"
},
{
"from": "human",
"value": "$(function(){\n $(\"#all-students-table\").on(\"change\", \".teacher-drop-down\", updateTableFromDropDown);\n\n $(\"#all-students-table\").on(\"submit\", \".add-form, .remove-form\", addStudent... | javascript | chosen |
[
{
"from": "system",
"value": "Add cleaner base path resolution to `pathMap`\n"
},
{
"from": "human",
"value": "var path = require('path');\n\nvar pathMap = module.exports = {};\n\nvar baseDir = path.join(__dirname, '../');\n\npathMap.assets = path.join(baseDir, './assets');\npathMap.favicon = p... | javascript | chosen |
[
{
"from": "system",
"value": "Move toast on bottom right of page\n"
},
{
"from": "human",
"value": "'use strict'\n\nangular.module('serinaApp').factory('Toast', function ($mdToast) {\n return {\n\n showCustomToast: function (icon, text, consequence, ctrl) {\n $mdToast.show({\n hi... | javascript | chosen |
[
{
"from": "system",
"value": "Increase HSTS max age to half year"
},
{
"from": "human",
"value": "import appConfig from './config'\n\nexport const frameOptions = () => (req, res, next) => {\n res.setHeader('X-Frame-Options', 'DENY')\n next()\n}\n\nexport const hsts = () => {\n const maxAge = ... | javascript | chosen |
[
{
"from": "system",
"value": "Extend component class with React.Component in one more file from examples\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { bindActionCreators } from 'redux';\nimport { Connector } from 'redux/react';\nimport Header from '../components/Header'... | javascript | chosen |
[
{
"from": "system",
"value": "Add pagination to bottom of page too\n"
},
{
"from": "human",
"value": "const m = require('mithril');\n\nconst Pagination = require('../components/pagination');\nconst Datatable = require('../components/datatable');\n\nconst Datadisplay = module.exports = {};\n\nDat... | javascript | chosen |
[
{
"from": "system",
"value": "FIx order of actual and expected\n"
},
{
"from": "human",
"value": "module.exports = {\n\tspec : function() {\n\t\treturn {\n\t\t\tname : 'assert',\n\t\t\tdesc : '',\n\t\t\tfields : [\n\t\t\t{type:'object',name:'expected',description:'',required:true},\n\t\t\t{type:... | javascript | chosen |
[
{
"from": "system",
"value": "Update AudioChannel to create new oscillator for each note in playSong\n"
},
{
"from": "human",
"value": "var AudioChannel = function(args) {\n this.context = AudioContext ? new AudioContext() : new webkitAudioContext();\n this.oscill = this.context.createOscillat... | javascript | chosen |
[
{
"from": "system",
"value": "Detach SoundsView's table before modifying it for better performance.\n"
},
{
"from": "human",
"value": "define([\n\t\"underscore\",\n\t\"backbone\",\n\t\"baseView\",\n\t\"./soundView\"\n], function(_, Backbone, BaseView, SoundView) {\n\tvar SoundsView = BaseView.ex... | javascript | chosen |
[
{
"from": "system",
"value": "Add a code for logs\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar ObjectId = mongoose.Schema.Types.ObjectId;\nvar Mixed = mongoose.Schema.Types.Mixed;\nvar User = require(\"./user_model.js\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow users to create logs\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar ObjectId = mongoose.Schema.Types.ObjectId;\nvar Mixed = mongoose.Schema.Types.Mixed;\nvar User = require(\"./user_model.... | javascript | chosen |
[
{
"from": "system",
"value": "Comment added; Scheduling still in question\n"
},
{
"from": "human",
"value": "var app = require('express');\nconst router = app.Router({ mergeParams: true });\n\nvar retrieval = require('../retrieval/retrieval');\nvar schedule = require('./algorithms-courseformat/... | javascript | chosen |
[
{
"from": "system",
"value": "Hide popovers when clicked outside\n"
},
{
"from": "human",
"value": "/*global $:true*/\n\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n queryParams: ['editMode'],\n isAdmin: Ember.computed('node', function(){\n return this.ge... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for null map from transform plugin methods.\n"
},
{
"from": "human",
"value": "module.exports = {\n\tdescription: 'preserves sourcemap chains when transforming',\n\toptions: {\n\t\tplugins: [\n\t\t\t{\n\t\t\t\tname: 'fake plugin',\n\t\t\t\ttransform: functi... | javascript | chosen |
[
{
"from": "system",
"value": "Disable logging sql when creating tables\n"
},
{
"from": "human",
"value": "var fixtures = require('node-require-directory')(__dirname);\n\nexports.load = function *(specificFixtures) {\n if (typeof specificFixtures === 'string') {\n specificFixtures = [specific... | javascript | chosen |
[
{
"from": "system",
"value": "Use $.ready and $.when instead of nesting callbacks\n\nFollows-up I0278575038.\n\nChange-Id: I12fc8d717d812cfa57784e2e1b0a52861f157452\n"
},
{
"from": "human",
"value": "( function ( $, mw ) {\n\tmw.loader.using( 'ext.wikiLove.local', function () {\n\t\t$( $.wikiLov... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to follow coding guidelines\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\n/**\n * @module mixins\n * @class sl-input-based\n */\nexport default Ember.Mixin.create({\n\n /**\n * Class name bindings for the component\n *\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect import for volume actions\n\nThe only bug here is in detach, which is not defined in the 'detach' import.\n"
},
{
"from": "human",
"value": "import InstanceVolume from './instanceVolume/attach';\n\nexport default {\n attach: InstanceVolume.attach,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove log call, add docs\n"
},
{
"from": "human",
"value": "/* globals onmessage: true, postMessage: true */\nonmessage = function(message) {\n 'use strict';\n var gCompilers;\n\n gCompilers = {};\n\n function parseBuildData(build) {\n var compil... | javascript | chosen |
[
{
"from": "system",
"value": "Move done() call to inside res so the test executes properly\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar chai = require('chai');\nvar chaihttp = require('chai-http');\nvar expect = require('chai').expect;\n\nchai.use(chaihttp);\n\nrequire('../../../serve... | javascript | chosen |
[
{
"from": "system",
"value": "Use cli parameters for client_secret and token.\n"
},
{
"from": "human",
"value": "var Client = require('node-rest-client').Client,\n clientOptions = {\n connection: {\n rejectUnauthorized: false,\n requestCert: true,\n }\n },\n clie... | javascript | chosen |
[
{
"from": "system",
"value": "Replace application port to 4500\n"
},
{
"from": "human",
"value": "'use strict';\n// define globals\nvar express = require('express'),\n io = require('socket.io'),\n http = require('http'),\n app = express(),\n server = http.createServer(app),\n io =... | javascript | chosen |
[
{
"from": "system",
"value": "Make coverage util applicable for tape tests.\n"
},
{
"from": "human",
"value": "require('source-map-support').install()\nconst isAbsolute = require('./_isAbsolute')\nconst istanbul = require('istanbul')\nconst path = require('path')\nconst {tape} = require('substan... | javascript | chosen |
[
{
"from": "system",
"value": "Add test cases for 1 pixel and 2 pixels in convex hull\n"
},
{
"from": "human",
"value": "import {Image} from 'test/common';\nimport 'should';\n\ndescribe('Monotone Chain Convex Hull', function () {\n it('should return the convex hull', function () {\n let... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging mechanism via debug\n\n"
},
{
"from": "human",
"value": "/* justcord-3\n * A JC3MP-Discord bridge.\n *\n * Author: MD678685\n * Licensed under the MIT license.\n *\n * Uses Eris, a Discord library licensed under the MIT license.\n * Requires the chat pac... | javascript | chosen |
[
{
"from": "system",
"value": "Sort parent objectives by testTitle to avoid them jumping around\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n session: null,\n course: null,\n proxiedObjectives: [],\n afterModel: function(sessionObjectiv... | javascript | chosen |
[
{
"from": "system",
"value": "Update columngroup width when columns are inserted\n"
},
{
"from": "human",
"value": "import Em from 'ember';\n\nvar LlamaColumngroup = Em.View.extend({\n\tclassNames: 'llama-columngroup',\n\n\tcolumns: null\n});\n\nexport default LlamaColumngroup;\n"
},
{
"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken edit/cancel subscription URL\n\nFixes #651\n\nTODO: add SubscriptionItemComponent tests\n"
},
{
"from": "human",
"value": "import { get, getWithDefault, computed } from \"@ember/object\";\nimport { alias } from \"@ember/object/computed\";\nimport { inject... | javascript | chosen |
[
{
"from": "system",
"value": "Berke+Michael: Fix JSON formation in test helper methods\n"
},
{
"from": "human",
"value": "function clearAllCollections() {\n Prompts.remove({});\n Submissions.remove({});\n}\n\nMeteor.methods({\n\n clearAllCollections: clearAllCollections,\n\n setupFixtures: f... | javascript | chosen |
[
{
"from": "system",
"value": "Comment dotenv for heroku deployment\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar routes = require('./app/routes/index.js');\nvar mongoose = require('mongoose');\nvar bodyParser = require('body-parser')\n\nvar app = expr... | javascript | chosen |
[
{
"from": "system",
"value": "Update class name to change reading area text only, not quizes\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Udacity Full Page Course Viewer\n// @version 0.1\n// @description Udacity course content viewer displays text content in a 435... | javascript | chosen |
[
{
"from": "system",
"value": "Fix changelog versioning to include date only after final release\n\n(cherry picked from commit d3a4e31fe254ba0c8f3d066a8de32502c0fcafcc)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Sets the release date of the current release in the changelog.\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Update release number in the docs\n"
},
{
"from": "human",
"value": "release = Meteor.release ? \"1.0.4.2\" : \"(checkout)\";\n\nTemplate.registerHelper(\"release\", release);\n\nTemplate.registerHelper(\"fullApi\", function () {\n return Session.get(\"fullApi\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for buzz audio in instruments.js\n"
},
{
"from": "human",
"value": "function playAudio(element) {\n if (element.sample === undefined) {\n var sample = new Audio(element.dataset.audio);\n element.sample = sample\n }\n element.sample.play();\n}\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to take multiple words as an argument\n"
},
{
"from": "human",
"value": "#! /usr/local/bin/node\n\nconst fs = require('fs')\nconst add = require('./commands/add')\nconst list = require('./commands/list')\nconst done = require('./commands/done')\n\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Change Button size prop to a string.\n"
},
{
"from": "human",
"value": "/**\n*\n* Button\n*\n*/\n\nimport React from 'react';\nimport styles from './styles.css';\nimport Icon from 'react-fa';\n\nconst sizes = {\n sm: styles.sm,\n};\n\nconst iconSizes = {\n sm: sty... | javascript | chosen |
[
{
"from": "system",
"value": "Add GraphQL schema description for page_size for deleteMany and updateMany\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nconst { GraphQLInt, GraphQLString } = require('graphql');\n\n\n// Pagination arguments\nconst paginationActionTypes = ['find'];\nconst ge... | javascript | chosen |
[
{
"from": "system",
"value": "Frontend: Refactor places module – use controller as mediator to decouple the components.\n"
},
{
"from": "human",
"value": "Teikei.module(\"Places\", function(Places, App, Backbone, Marionette, $, _) {\n\n Places.Controller = Backbone.Marionette.Controller.extend(... | javascript | chosen |
[
{
"from": "system",
"value": "Change input behaviour to use bom input module\n"
},
{
"from": "human",
"value": "qx.Class.define(\"unify.ui.widget.form.Input\", {\n});\n"
},
{
"from": "gpt",
"value": "/* *********************************************************************************... | javascript | chosen |
[
{
"from": "system",
"value": "Add prop types to Button\n"
},
{
"from": "human",
"value": "/**\n*\n* Button\n*\n*/\n\nimport React from 'react';\n// import styled from 'styled-components';\n\nimport { FormattedMessage } from 'react-intl';\nimport { button } from './style.scss';\n\nclass Button ex... | javascript | chosen |
[
{
"from": "system",
"value": "Trim the team name before adding new team.\n\n\nFormer-commit-id: 1231ec173ad3c1cca919e1ba1d197af1eb7a9c5b"
},
{
"from": "human",
"value": "function viewTeams() {\n\n getTeams(\n success = function (data) {\n populateTeamsTable(data.teams);\n },\n err... | javascript | chosen |
[
{
"from": "system",
"value": "Fix demo page to have a small delay before calling nanoScroller\n"
},
{
"from": "human",
"value": "$(function(){\n\n $('.nano').nanoScroller({\n preventPageScrolling: true\n });\n $(\"#main\").find('.description').load(\"readme.html\", function(){\n $(\".na... | javascript | chosen |
[
{
"from": "system",
"value": "Switch browserstack reporter from mocha to dots\n\n- For cleaner output\n"
},
{
"from": "human",
"value": "const base = require('./karma.base.conf');\n\nmodule.exports = Object.assign(base, {\n\tbrowserDisconnectTimeout: 10000,\n\tbrowserDisconnectTolerance: 1,\n\tb... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct link-to method for 2.9.0. \n\nSee http://emberjs.com/blog/2016/10/17/ember-2-9-released.html for details."
},
{
"from": "human",
"value": "import Ember from 'ember';\n\n// LAME, but ¯\\_(ツ)_/¯\nexport default function hasEmberVersion(major, minor) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Make signout button show/hide on signin or signout\n"
},
{
"from": "human",
"value": "// do not tamper with this code in here, study it, but do not touch\n// this Auth controller is responsible for our client side authentication\n// in our signup/signin forms using ... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak some config with no real rhyme or reason\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar coinFlip = function () {\n return Math.random() < 0.5;\n}\n\nvar plusOrMinus = function (value) {\n return coinFlip() ? value : -value;\n}\n\nvar plusOrMinus... | javascript | chosen |
[
{
"from": "system",
"value": "Support for any type of geometry in fit_source.\n"
},
{
"from": "human",
"value": "requirejs([\"mapboxgl\"], function(mapboxgl) {\n var map = window.__jm_maps[\"{{uuid}}\"];\n\n var run = function() {\n var source = map.getSource(\"{{source_uuid}}\");\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add logic for player to 'store' cards before they discard\n"
},
{
"from": "human",
"value": "export\ndefault class PlayerController {\n\tconstructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) {\n\t\t'ngInject';\n\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust the MainQuestion text to use \"Search for\"\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst MainQuestion = function( props ) {\n const getQuestionText = function( trip ) {\n if ( trip.length < 1 ) {\n return 'Enter a location';... | javascript | chosen |
[
{
"from": "system",
"value": "Test verifying async behavior on error\n\nVerify behavior of async function reading file when test supplies an\ninvalid file name.\n"
},
{
"from": "human",
"value": "var expect = require('chai').expect;\nvar linesCount = require('../src/files');\n\ndescribe('test se... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug console output from ParametersEditor.\n"
},
{
"from": "human",
"value": "App.module(\"Predictor\", function(Mod, App, Backbone, Marionette, $, _) {\n\n Mod.views.FlightParametersEditor = Marionette.ItemView.extend({\n template: 'flightParametersEdit... | javascript | chosen |
[
{
"from": "system",
"value": "Enable HTTP keepAlive to speed up synchronisation two-fold"
},
{
"from": "human",
"value": "import axios from 'axios'\n\nconst metadataCache = {}\nconst client = axios.create({timeout: 60 * 1000})\n\nexport async function fetchUrl(url, isBinary = false) {\n if (isB... | javascript | chosen |
[
{
"from": "system",
"value": "Use https to fetch worker stats\n"
},
{
"from": "human",
"value": "import Promise from 'bluebird';\nimport request from 'superagent';\nimport camelcase from 'camelcase';\nimport snakecase from 'snake-case';\nimport _ from 'lodash';\n\nPromise.promisifyAll(request);\... | javascript | chosen |
[
{
"from": "system",
"value": "Update dropbox api key env var name\n"
},
{
"from": "human",
"value": "// = Server config =============================================================\n\nexport const port = process.env.PORT || 3000\n\nexport const enableGraphiQL = process.env.RAZZLE_ENABLE_GRAPHIQ... | javascript | chosen |
[
{
"from": "system",
"value": "Add destory method to Utils\n"
},
{
"from": "human",
"value": "import Dragger from './Dragger';\nimport Sorter from './Sorter';\nimport Resizer from './Resizer';\n\nexport default () => {\n return {\n /**\n * Name of the module\n * @type {String}\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Fix rules in eslint file\n"
},
{
"from": "human",
"value": "module.exports = {\n \"extends\": \"airbnb\",\n \"rules\": {\n \"react/jsx-filename-extension\": [1, {\n \"extensions\": [\".js\", \".jsx\"]\n }]\n },\n \"parserOptions\": {\n \"ecmaVersio... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Mutation mock, which breaks in node 6.11.1\n"
},
{
"from": "human",
"value": "const Relay = jest.genMockFromModule('react-relay');\n\nclass Mutation extends Relay.Mutation {\n _resolveProps(props) {\n this.props = props;\n }\n}\n\nclass MockStore {\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix migration for running PostgreSQL.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Schema = use('Schema');\n\nclass BlogPostSchema extends Schema {\n up () {\n this.create('blog_posts', (table) => {\n table.increments();\n table.integer('c... | javascript | chosen |
[
{
"from": "system",
"value": "Add onClick event to space placeLabel\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport DestinationListingCard from '../DestinationListingCard/DestinationListingCard';\nimport Link from '../../Link/Link';\n\nimport css from './Sp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix editor mock when text is really long\n"
},
{
"from": "human",
"value": "pw.component.register('content-editor-plaintext', function (view, config) {\n var self = this;\n\n var mock = document.createElement('DIV');\n mock.classList.add('console-content-plaintex... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing quotes to template"
},
{
"from": "human",
"value": "/**\n * @author {{{author}}}\n * @since {{{date}}}\n */\n\n(function () {\n 'use strict';\n\n angular\n .module({{{moduleName}}})\n .value({{{elementName}}},\n // Add your val... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with admin menu not working after navigating back\n"
},
{
"from": "human",
"value": "var init = function() {\n countChars(500, $('#submission_description'));\n countChars(500, $('#submission_goals'));\n countChars(255, $('#submission_problems'));\n men... | javascript | chosen |
[
{
"from": "system",
"value": "Remove browser extension plugin options\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nfunction resolvePath(pathToResolve) {\n return path.resolve(__dirname, pathToResolve);\n}\n\nmodule.exports = {\n lintOnSave: false,\n\n pages: {\n 'ind... | javascript | chosen |
[
{
"from": "system",
"value": "Set up own glob for tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar extend = require('extend');\nvar path = require('path');\nvar rump = require('rump');\nvar karma = require('./karma');\n\nexports.rebuild = function() {\n rump.configs.main.globs = ex... | javascript | chosen |
[
{
"from": "system",
"value": "Add links to home page.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst HomePage = () => {\n return (\n <div>\n <h1>Soaring Analyst</h1>\n\n <p>Lorem ipsum dolor sit amet...</p>\n </div>\n );\n};\n\nexport default HomePage;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use ./src/streamFile for re-streaming .dest() streams\n"
},
{
"from": "human",
"value": "var fs = require('graceful-fs');\n\nmodule.exports = function(writePath, file, cb) {\n var outStream = fs.createWriteStream(writePath);\n\n file.contents.once('error', cb);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use historyId as filter instead of threadId\n"
},
{
"from": "human",
"value": "'use strict';\n/**\n * @file Retrieve threads from the account\n */\n\nvar googleapis = require('googleapis');\n\n// Retrieve all threads associated with this user account,\n// using refr... | javascript | chosen |
[
{
"from": "system",
"value": "Add some logging why not\n"
},
{
"from": "human",
"value": "/*\n * App\n */\nvar express = require('express'),\n app = express(),\n path = require('path');\n\napp.configure(function() {\n app.set('views', path.join(__dirname, 'views'));\n app.set('view engin... | javascript | chosen |
[
{
"from": "system",
"value": "Use the x-forwarded-for address, if available\n\nOtherwise the server would log the reverse proxy's ip, in case it is\nused with a reverse proxy.\n"
},
{
"from": "human",
"value": "const slaveService = require('../services/slave');\nconst versionService = require('.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix parsing of source with several distached statements.\n"
},
{
"from": "human",
"value": "var parse = require('./grammar/parser').parse,\n ast = require('./ast');\n\nexports.parse = function(sexp) {\n if (!ast.is_list(sexp) || sexp.length === 1) {\n r... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add skin to User model.\n"
},
{
"from": "human",
"value": "const bcrypt = require('bcryptjs');\nconst Sequelize = require('sequelize');\nconst db = require('../index');\n\nconst User = db.define('users', {\n name: Sequelize.STRING,\n displayName: Sequelize.S... | javascript | chosen |
[
{
"from": "system",
"value": "Add consent context provider to root providers\n\nThis way, we're able to determine which third-party embeds users have\nconsented to receive.\n\nREDMINE-17863\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport {BrowserFeaturesProvider} from './... | javascript | chosen |
[
{
"from": "system",
"value": "test: Add test for gulp build to check if build folder is created\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar spawn = require('child_process').spawn;\nvar fs = require('fs');\nvar path = require('path');\nvar chai = require('chai');\n\nchai.u... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor TodosController to use Space.messaging.Controller\n"
},
{
"from": "human",
"value": "Space.Object.extend('Todos.TodosController', {\n\n mixin: [\n Space.messaging.EventSubscribing,\n Space.messaging.CommandSending\n ],\n\n dependencies: {\n conf... | javascript | chosen |
[
{
"from": "system",
"value": "Fix keypair assignment in a migration script\n"
},
{
"from": "human",
"value": "const { default: User } = require('../../built/api/models/user');\nconst { generate } = require('../../built/crypto_key');\n\nconst updates = [];\n\nUser.find({}).each(function(user) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add redirect on / until we have a nice frontpage or do something fancy.\n\nCloses #11\n"
},
{
"from": "human",
"value": "var ReactRouter = require(\"react-router\");\n//import {Route, IndexRoute} from \"react-router\";\nvar Route = ReactRouter.Route;\nvar React = re... | javascript | chosen |
[
{
"from": "system",
"value": "Make intro flashes more interesting\n"
},
{
"from": "human",
"value": "var Drawing = function (pulse, config) {\n pulse.framesLeft = 255;\n\n this.pulse = pulse;\n};\n\nDrawing.prototype.draw = function (p) {\n var self = this;\n var pulse = self.pulse\n\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to create role if not existing\n"
},
{
"from": "human",
"value": "Meteor.methods({\n \"createAdminRoleIfNotDefined\": function () {\n // TODO: Refactor this process to allow user to specify admin role as parameter\n // E.g. a config page where the u... | javascript | chosen |
[
{
"from": "system",
"value": "Fix memory leak in lasers.\n"
},
{
"from": "human",
"value": "#pragma strict\n\nvar rb: Rigidbody2D;\nvar Speed : float;\n\nfunction Update () {\n\nrb.MovePosition(rb.position + Vector2(0,Speed) * Time.fixedDeltaTime);\n\n}"
},
{
"from": "gpt",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Add and delete a card\n"
},
{
"from": "human",
"value": "describe('retro', function() {\n it('visits the app', function() {\n cy.visit('http://localhost:8080/reset');\n\n cy.contains('Sign-in with Test').click();\n\n cy.contains('test@example.com');\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move license to the top of the file.\n\nBS3 commits: 91e57e2738fb46df241d23038fed729fc6471466\n"
},
{
"from": "human",
"value": "/* global btoa: true */\n/*!\n * Bootstrap Grunt task for generating raw-files.min.js for the Customizer\n * http://getbootstrap.com\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix invalid reference to process.env.HOST_NAME\n"
},
{
"from": "human",
"value": "import './loadenv';\nimport {App, log} from 'deepdialog';\nimport {MainDialog, MainNLP} from './maindialog';\nlog.level = process.env.LOGGER_LEVEL || 'info';\n\nlog.info('appId: %s app... | javascript | chosen |
[
{
"from": "system",
"value": "Fix(Svg): Revert SVG path to node style\n\n[#139510959]\n\nSigned-off-by: Tom Chen <9312ec496e168e4c213960a1ffbcd1eb1a0db9d1@pivotal.io>\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst types = React.PropTypes;\n\nexport class Svg extends React... | javascript | chosen |
[
{
"from": "system",
"value": "Include Assinaturas ebook in Edit Start Page"
},
{
"from": "human",
"value": "import m from 'mithril';\nimport h from '../h';\nimport userVM from '../vms/user-vm';\nimport projectVM from '../vms/project-vm';\nimport youtubeLightbox from '../c/youtube-lightbox';\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Add videos attributes (title, category)\n"
},
{
"from": "human",
"value": "// videos-model.js - A mongoose model\n// \n// See http://mongoosejs.com/docs/models.html\n// for more of what you can do here.\nmodule.exports = function (app) {\n const mongooseClient = ap... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct frame name in pixel perfect hit test\n\n`gameObject.frame.key` doesn't exist and was passing an undefined value to `getPixelAlpha`. This just changes it to the correct `gameObject.frame.name` value."
},
{
"from": "human",
"value": "/**\n * @author ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove waveshaper from volume effect\n\nthe waveshaper node is implemented incorrectly on Mac Safari (https://bugs.webkit.org/show_bug.cgi?id=129333) and causes extreme distortion of the sound\n"
},
{
"from": "human",
"value": "class VolumeEffect {\n constructor ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.