conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use nodeType from params instead of static prop.\n"
},
{
"from": "human",
"value": "import Command from '../../ui/Command'\nimport insertInlineNode from '../../model/transform/insertInlineNode'\n\nclass InsertInlineNodeCommand extends Command {\n constructor(...arg... | javascript | chosen |
[
{
"from": "system",
"value": "Update test (trying to fix Travis error)\n"
},
{
"from": "human",
"value": "var fs = require('fs')\nvar assert = require('assert')\nvar rmrf = require('rimraf')\nvar Writer = require('../src/writer')\n\ndescribe('Writer', function() {\n\n this.timeout(5000)\n\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test to pass lint.\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\n'use strict';\n\nimport plugin from '../src';\n\nimport assert from 'assert';\nimport fs from 'fs';\nimport path from 'path';\n\nconst rules = fs.readdirSync(path.resolve(__dirname, '.... | javascript | chosen |
[
{
"from": "system",
"value": "Add dots reporting to karma\n"
},
{
"from": "human",
"value": "// karma.conf.js\nmodule.exports = function(config) {\n config.set({\n basePath : '../',\n frameworks: ['jasmine'],\n files : [\n 'public/bower_components/jquery/dist/jquery.js',\n 'p... | javascript | chosen |
[
{
"from": "system",
"value": "Add semicolon in test file\n"
},
{
"from": "human",
"value": "const { expect } = require('chai');\nconst cheerio = require('cheerio');\nconst request = require('supertest');\nconst app = require('../app');\n\n\ndescribe('Pages', function() {\n let req;\n\n describ... | javascript | chosen |
[
{
"from": "system",
"value": "Add route path for About page\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Route, IndexRoute } from 'react-router';\n\n/* containers */\nimport { App } from 'components/App';\nimport { Home } from 'components/Home';\nimport { DataDisplay }... | javascript | chosen |
[
{
"from": "system",
"value": "Add sequelize to context of GraphQL queries\n\n"
},
{
"from": "human",
"value": "import bodyParser from \"body-parser\"\nimport cors from \"cors\"\nimport express from \"express\"\nimport graphqlHTTP from \"express-graphql\"\nimport { graphqlExpress, graphiqlExpress... | javascript | chosen |
[
{
"from": "system",
"value": "Convert test js to happiness\n\nIt’d be a PITA to lint these differently so we should either convert this back to ES5 or convert postcss-rem-phi-units.js to ES2015.\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport plugin from '../postcss-rem-phi-un... | javascript | chosen |
[
{
"from": "system",
"value": "Update path to the repository\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: 'Web tracing framework wrapper for Meteor',\n version: \"0.0.2\",\n git: 'git@github.com:eluck/meteor-web-tracing-framework.git'\n});\n\nNpm.depends({\n \"tracing-fram... | javascript | chosen |
[
{
"from": "system",
"value": "Update comment about piping hook.\n"
},
{
"from": "human",
"value": "var nconf = require('nconf');\n\n// Specifying an env delimiter allows you to override below config when shipping to production server\n// by e.g. defining piping__ignore or version variables.\nnco... | javascript | chosen |
[
{
"from": "system",
"value": "Add `Raw JSON` pane to response\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Segment, Message } from 'semantic-ui-react'\nimport JSONTree from 'react-json-tree'\n\ntype Props = {\n loading: boolean,\n expanded: boolean,\n response: any,\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow jsx extension as some people prefer it\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'eval',\n entry: [\n 'webpack-dev-server/client?http://localhost:3000',\n 'webpack/hot/only-dev-server',\n '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing id of project in discussion of activities\n"
},
{
"from": "human",
"value": "/*****************************************************************************/\n/* ActivityDiscuss: Event Handlers */\n/********************************************************... | javascript | chosen |
[
{
"from": "system",
"value": "Define input and output block information\n"
},
{
"from": "human",
"value": "const Block = require('./block');\nconst typeToConfig = require('./type-to-config');\n\nclass Board {\n\tconstructor() {\n\t\tthis.height = 3;\n\t\tthis.width = 3;\n\t\tthis.blocks = [\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Add Bootstrap JavaScript to build\n"
},
{
"from": "human",
"value": "/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nvar app = new EmberApp({\n 'ember-cli-jquery-ui': {\n 'theme': 'redmond'\n },\n vendorFiles: {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to target events (not all card effects)\n"
},
{
"from": "human",
"value": "const DrawCard = require('../../drawcard.js');\nconst EventRegistrar = require('../../eventregistrar.js');\nconst { CardTypes, Players } = require('../../Constants');\n\nclass Magnificent... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pagination links on the RPC page navigation.\n"
},
{
"from": "human",
"value": "// RPC reply serializer, that should heppen in the end,\n// because we pass errors in serialized form too\n//\n\n\n'use strict';\n\n\n////////////////////////////////////////////////... | javascript | chosen |
[
{
"from": "system",
"value": "Use sync storage instead of local storage\n"
},
{
"from": "human",
"value": "// if you checked \"fancy-settings\" in extensionizr.com, uncomment this lines\n\n// var settings = new Store(\"settings\", {\n// \"sample_setting\": \"This is how you use Store.js to r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix embark test using node option\n"
},
{
"from": "human",
"value": "/*global contract, it, embark, assert, before*/\nconst SimpleStorage = embark.require('Embark/contracts/SimpleStorage');\n\ncontract(\"SimpleStorage Deploy\", function () {\n let SimpleStorageInst... | javascript | chosen |
[
{
"from": "system",
"value": "Define component path in the test RequireJS config.\n"
},
{
"from": "human",
"value": "var allTestFiles = [];\nvar TEST_REGEXP = /(spec|test)\\.js$/i;\n\nvar pathToModule = function(path) {\n return path.replace(/^\\/base\\//, '').replace(/\\.js$/, '');\n};\n\nObje... | javascript | chosen |
[
{
"from": "system",
"value": "Join _modsquad channel (my personal config)\n"
},
{
"from": "human",
"value": "ChatConfig = {\n join: [\"uidev\"],\n leave: [],\n hideDeathSpam: false,\n autoexec: [\n \"/closeui perfhud\",\n \"jumpdelay 0\",\n \"/sleep 1000\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Tidy up ogranisation of Brick objects in a level\n"
},
{
"from": "human",
"value": "var LevelOne = function(){\n this.bricks = [new Brick(), new Brick(140), new Brick(230), new Brick(320), new Brick(410), new Brick(500), new Brick(590), new Brick(680), new Brick(50... | javascript | chosen |
[
{
"from": "system",
"value": "Set autoprefixer's cascade option to false.\n\nBS4 commits: c70eaa156f5fc0b7f7019593390ebac1650967e2\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = (ctx) => ({\n map: ctx.file.dirname.includes('examples') ? false : {\n inline: false,\n an... | javascript | chosen |
[
{
"from": "system",
"value": "Update test file variable names\n"
},
{
"from": "human",
"value": "const test = require('tape');\nconst User = require('../../../models/User');\nconst { connect, add, remove } = require('../../database');\n\ntest('connection to database', async (assert) => {\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "feat(quote-props): Add the `keywords: true` option\n\nWithout it `{ 'boolean': 'xxx' }` fails. However, this is not valid JS.\n"
},
{
"from": "human",
"value": "module.exports = {\n rules: {\n 'quote-props': [2, 'as-needed'],\n 'array-bracket-spacing': [2, 'n... | javascript | chosen |
[
{
"from": "system",
"value": "Throw more descriptive permissions parse errors"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nfunction can(permissionsData, permission) {\n const permissions = JSON.parse(permissionsData);\n return permissions[permission]... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to use a route instead of pretty handlers.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst HTTP_OK = 200;\nconst HTTP_METHOD_NOT_ALLOWED = 405;\n\n/**\n * Conqueso compatible API\n *\n * @param {Express.App} app\n */\nfunction Conqueso(app) {\n a... | javascript | chosen |
[
{
"from": "system",
"value": "Implement `Plugin` test for `event-handled` event\n"
},
{
"from": "human",
"value": "const expect = require('expect');\nconst proxyquire = require('proxyquire');\n\nconst ContextMock = require('./mocks/context');\nconst GitHubMock = require('./mocks/github');\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Fix _defaultFormatter undefined issue in tests\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { mount } from 'enzyme';\nimport { createStore } from 'redux';\n\nimport Phone from '../dev-server/Phone';\nimport App from '../dev-server/containers... | javascript | chosen |
[
{
"from": "system",
"value": "Include region model on City search\n"
},
{
"from": "human",
"value": "module.exports = function(City) {\n City.search = function(query, callback) {\n // TODO: sanitize query\n City.find(\n {\n where: {\n name: {\n like: '%' + ... | javascript | chosen |
[
{
"from": "system",
"value": "Add node to competency method\n"
},
{
"from": "human",
"value": "\nMeteor.methods({\n 'competencies.insert': function(params) {\n Nodes.insert({\n name: params.name,\n type: 'C'\n });\n }\n});\n"
},
{
"from": "gpt",
"value": "\nMeteor.m... | javascript | chosen |
[
{
"from": "system",
"value": "Add clip number resolving function\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n var canvas = document.getElementById('canvas');\n canvas.width = $('#tileset').width();\n canvas.height = $('#tileset').height();\n});\n"
},
{
"from": "... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up the example JavaScript.\n"
},
{
"from": "human",
"value": "var\nsocket = window.socket = new WebSocket(\"ws://localhost:8080/\");\nsocket.onmessage = function(event) {\n var message = $.parseJSON(event.data);\n\n $(\"#events table\")\n .append(\"<tr><t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Babel config env being shared.\n"
},
{
"from": "human",
"value": "const env = process.env.BABEL_ENV || process.env.NODE_ENV || 'development';\nconst browsers = process.env.BROWSERSLIST;\n\nconst targets = {};\nif (browsers) {\n targets.browsers = browsers;\n}\n... | javascript | chosen |
[
{
"from": "system",
"value": "[initializer] Remove function because it is now included in the layour\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport FocusCore from 'focus-core';\nimport FocusComponents from 'focus-components';\nimport render from 'focus-core/application/ren... | javascript | chosen |
[
{
"from": "system",
"value": "Add fallback for empty dependencies and devDependencies\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar github = require('./github');\nvar npm = require('./npm');\nvar db = require('./db');\nvar email = require('./email');\n\nvar _ = require('underscore');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use base name as default package name\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar path = require('path');\nvar fs = require('fs');\nvar assignDeep = require('assign-deep');\nvar values = require('object-values');\nvar configureCommon = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where white space only paragraphs showed\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = wrap\n\nwrap.needed = needed\n\nvar phrasing = require('mdast-util-phrasing')\n\n/* Wrap all inline runs of MDAST content in `paragraph` nodes. */\nf... | javascript | chosen |
[
{
"from": "system",
"value": "Store persistent pages in separate cache\n"
},
{
"from": "human",
"value": "importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js');\n\nworkbox.core.skipWaiting();\nworkbox.precaching.precacheAndRoute([]);\n\n// NOTE: All HTML pages ... | javascript | chosen |
[
{
"from": "system",
"value": "Add whatTheFunc to scratch pad.\n"
},
{
"from": "human",
"value": "(function (context) {\n var Sample = {};\n\n Sample.switchCase = function (x) {\n var returnValue;\n switch(val) {\n case 2:\n returnValue = 'A'\n break;\n case 6:\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix export of the components\n"
},
{
"from": "human",
"value": "export { Diory as default, Diory } from './Diory'\nexport { default as DioryText } from './DioryText'\nexport { default as DioryImage } from './DioryImage'\n"
},
{
"from": "gpt",
"value": "e... | javascript | chosen |
[
{
"from": "system",
"value": "Make bodyParser play well with PATCH too."
},
{
"from": "human",
"value": "// Copyright 2012 Mark Cavage, Inc. All rights reserved.\n\nvar jsonParser = require('./json_body_parser');\nvar formParser = require('./form_body_parser');\nvar multipartParser = require('.... | javascript | chosen |
[
{
"from": "system",
"value": "Implement Boid display method, uses arbitrary radius\n"
},
{
"from": "human",
"value": "function setup() {\n createCanvas(640, 480);\n}\n\nfunction draw() {\n ellipse(50, 50, 80, 80);\n}\n\n/**\n * Boid class\n */\nfunction Boid(x_pos, y_pos, mass) {\n this.posit... | javascript | chosen |
[
{
"from": "system",
"value": "Remove nginx as a directly supported option.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\n\nvar prompts = [\n {\n type: 'input',\n name: 'projectName',\n message: 'Machine-name of your project?',\n // Name of the paren... | javascript | chosen |
[
{
"from": "system",
"value": "Fix nginx forwarding issue with remote address.\n"
},
{
"from": "human",
"value": "var config = require('./config');\nvar rdb = config.rdb;\nvar rdbLogger = config.rdbLogger;\n\nmodule.exports = function statistics() {\n return function (req, res, next) {\n rdb.... | javascript | chosen |
[
{
"from": "system",
"value": "Add TitleLoader namespace for onload functionality.\n"
},
{
"from": "human",
"value": "window.onload = function(){\n var headerText = \"WriteNow\".split(\"\")\n animateHeader(headerText);\n};\n\nanimateHeader = function(text){\n current = 0;\n header = $(\".main... | javascript | chosen |
[
{
"from": "system",
"value": "Fix affiliated institutions multiplying at every render\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport loadAll from 'ember-osf/utils/load-relationship';\n\nexport default Ember.Component.extend({\n users: Ember.A(),\n bibliographicUsers:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Webpack Tapable deprecation warning\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\nconst webpack = require('webpack');\nconst webpackDevMiddleware = require('webpack-dev-middleware');\nconst compress = require('compression');\nconst browserSyn... | javascript | chosen |
[
{
"from": "system",
"value": "Delete cached model definition Everytime the Ticket model is defined\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\n\nvar Ticket = new mongoose.Schema({\n name:String,\n phoneNumber: String,\n description: String,\n createdAt : Date\n});... | javascript | chosen |
[
{
"from": "system",
"value": "Change the listempty component to be a noticeview\n"
},
{
"from": "human",
"value": "// @flow\nimport * as React from 'react'\nimport {View, Text} from 'react-native'\n\ntype Props = {\n\tmode: 'bug' | 'normal',\n}\n\nexport class ListEmpty extends React.PureCompone... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tab counting when moving tab between windows\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar tabRemoved = false;\n\nbrowser.browserAction.setBadgeBackgroundColor({color: \"gray\"});\nbrowser.tabs.onActivated.addListener(refreshCounter);\nbrowser.tabs.onC... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude pad from mobile device\n"
},
{
"from": "human",
"value": "\n;(function() {\n\n var MODULES_PATH = 'https://a.alipayobjects.com/static/arale/'\n\n if (location.href.indexOf('/~lifesinger/') > 0) {\n MODULES_PATH = 'http://' + location.host + '/~lifesinge... | javascript | chosen |
[
{
"from": "system",
"value": "tests/test-helper: Use alternative blueprint test helpers\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar setupTestHooks = require('ember-cli-blueprint-test-helpers/lib/helpers/setup');\nvar BlueprintHelpers = require('ember-cli-blueprint-test-helpers/... | javascript | chosen |
[
{
"from": "system",
"value": "Remove “back to list” link because it is not accurately “back to list”"
},
{
"from": "human",
"value": "import React from 'react'\nimport { connect } from 'react-redux';\nimport { compose } from 'redux';\nimport Link from 'next/link';\n\nimport app from '../componen... | javascript | chosen |
[
{
"from": "system",
"value": "Increase the length of passwords to be consistent with the vaalidation rules\n"
},
{
"from": "human",
"value": "const bcrypt = require('bcryptjs')\n\nconst users = [\n {\n username: 'kudakwashe',\n password: hashedPassword('kp')\n },\n {\n username: 'gar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with wrong data in response\n"
},
{
"from": "human",
"value": "/*!\n * apiai\n * Copyright(c) 2015 http://api.ai/\n * Apache 2.0 Licensed\n */\n\n'use strict';\n\nvar Request = require('./request').Request;\nvar util = require('util');\n\nvar ServerError =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bootstrapped `test:unit:watch` npm script 🐛"
},
{
"from": "human",
"value": "import path from 'path'\nimport json from '../../util/json'\n\nconst saguiScripts = {\n 'build': 'sagui build',\n 'develop': 'sagui develop --port 3000',\n 'dist': 'NODE_ENV=product... | javascript | chosen |
[
{
"from": "system",
"value": "Add book route and creator\n"
},
{
"from": "human",
"value": "import omit from 'lodash/omit';\nimport db from '../models';\n\nconst { User } = db;\nexport default {\n create(req, res) {\n return User\n .create(req.userInput)\n .then((user) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add :global to basic tests\n"
},
{
"from": "human",
"value": "/**\n * Test for a few basic patterns that usually should\n * case no warnings.\n *\n * This should not be used by rules that intentionally\n * warn for these cases.\n */\nexport default function (tr) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Twitter share test not deterministic\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar shared = require(\"./shared.js\");\n\nvar EmbeddedSharePage = function() {\n this.url = \"/embed/social-share\";\n this.dummyTweetButton = element(by.css(\".twee... | javascript | chosen |
[
{
"from": "system",
"value": "Attach click handler to submit for review button to call API.\n"
},
{
"from": "human",
"value": "function makeEditSections(collectionName, response) {\n if (response.type === 'bulletin') {\n bulletinEditor(collectionName, response);\n } else {\n $('.fl-edito... | javascript | chosen |
[
{
"from": "system",
"value": "Update lat and lng on marker dragged\n"
},
{
"from": "human",
"value": "\n $(document).ready(function() {\n $(\"#id_place\")\n .geocomplete({\n map: \"#map_location\",\n mapOptions: {\n zoom: 10\n },\n markerOptions: {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add model, not only the schema\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\nvar safeOpts = {\n j: 1,\n w: \"majority\",\n wtimeout: 10000\n};\n\nvar postSchema = new Schema({\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CSP violation on profile.\n"
},
{
"from": "human",
"value": "import DS from \"ember-data\";\r\nimport Ember from \"ember\";\r\nimport config from '../config/environment';\r\n\r\nexport default DS.Model.extend( {\r\n prerequisities: DS.attr(\"prerequisite\"),\... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Sunrise/Sunset in Config option\n"
},
{
"from": "human",
"value": "/* Magic Mirror Test config default weather\n *\n * By fewieden https://github.com/fewieden\n *\n * MIT Licensed.\n */\n\nlet config = {\n\tport: 8080,\n\tipWhitelist: [\"127.0.0.1\", \"::fff... | javascript | chosen |
[
{
"from": "system",
"value": "Disable html hint class value check\n\nVuetify helper classes contain double dashes,\ne.g. grey--text.\n"
},
{
"from": "human",
"value": "const htmlHintConfig = require('kolibri-tools/.htmlhintrc');\nhtmlHintConfig['--vue-component-conventions'] = false;\nmodule.exp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lint errors in test server\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/**\n * Minimal server for local, manual web page testing.\n */\n\n'use strict'; // eslint-disable-line\n\nconst portfinder = require('portfinder');\nconst http = require('http'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the path to the linked loader css\n"
},
{
"from": "human",
"value": "var configUtils = _altboilerScope.configUtils\n\n/* Wait until the client-side configuration has been done */\naddEventListener('load', function () {\n var showLoader = altboiler.getConfig('sh... | javascript | chosen |
[
{
"from": "system",
"value": "Remove client side ordering of teams list (fixed in zebedee now)\n"
},
{
"from": "human",
"value": "function viewTeams() {\n\n getTeams(\n success = function (data) {\n populateTeamsTable(data.teams);\n },\n error = function (jqxhr... | javascript | chosen |
[
{
"from": "system",
"value": "Remove solution code for data-attributes demo\n"
},
{
"from": "human",
"value": "var pianoKeys = document.querySelectorAll('.piano-key');\n\nfor (var i = 0; i < pianoKeys.length; i++) {\n\n pianoKeys[i].addEventListener('click', function (event) {\n var note = t... | javascript | chosen |
[
{
"from": "system",
"value": "Add variance to beta prime namespace\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdli... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the clause around the font loader since it wasn't working anyway.\n"
},
{
"from": "human",
"value": "// PhantomJS does not support web fonts\nif (Meteor.isTest == false) {\n WebFontConfig = {\n google: { families: [ 'Oswald:300,400' ] }\n };\n (function... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an error on login\n"
},
{
"from": "human",
"value": "angular\n\t.module('app')\n\t.controller('AuthLoginController', ['$scope', 'AuthService', '$state',\n\t\tfunction ($scope, AuthService, $state) {\n\t\t\t$scope.login = function () {\n\t\t\t\tAuthService.login(... | javascript | chosen |
[
{
"from": "system",
"value": "Add stupid polling for changes via API\n"
},
{
"from": "human",
"value": "/* vim: set expandtab ts=4 sw=4: */\n"
},
{
"from": "gpt",
"value": "var last_update = Date.now()/1000;\n\nfunction refresh_drop_points() {\n return $.ajax({\n type: \"PO... | javascript | chosen |
[
{
"from": "system",
"value": "Revert change to global name.\n"
},
{
"from": "human",
"value": "/**\n * External dependencies\n */\nimport { storiesOf } from '@storybook/react';\n\n/**\n * Internal dependencies\n */\nimport Setup from '../assets/js/components/setup';\n\nstoriesOf( 'Setup', modul... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console.error on pg-native module not found\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar Client = require('./client')\nvar defaults = require('./defaults')\nvar Connection = require('./connection')\nvar Pool = require('pg-pool')\n\nconst poolFactory... | javascript | chosen |
[
{
"from": "system",
"value": "Return a freshly defined error class.\n"
},
{
"from": "human",
"value": "(function(root) {\n\nif (typeof exports !== 'undefined') {\n var _ = require('underscore');\n var util = require('./util')\n} else {\n var util = Substance.util;\n}\n\nvar errors = {};\n\nS... | javascript | chosen |
[
{
"from": "system",
"value": "ADD sleep before running test\n"
},
{
"from": "human",
"value": "const mocha = require('mocha');\nconst assert = require('assert');\nconst path = require('path');\nconst fs = require('fs');\nconst describe = mocha.describe;\nconst it = mocha.it;\nconst allResumes = ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor and add circular shape helper\n"
},
{
"from": "human",
"value": "import $ from \"cheerio\";\n\nconst SvgTestHelper = {\n RECTANGULAR_SEQUENCE: [\"M\", \"L\", \"L\", \"L\", \"L\"],\n\n expectIsRectangular(wrapper) {\n expect(exhibitsRectangularDirection... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to set karma file through env\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n basePath: '',\n frameworks: ['mocha'],\n webpack: {\n mode: 'development',\n module: {\n rules: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Create Recipe class to wrap desired JSON data from 2nd API call\n\nAll attributes for Recipe object, created on invocation of BigOvenGetRecipeJson function, are functional except for ingredients, which requires creation of new JS constructors.\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Send correct number to highlight and select functions\n"
},
{
"from": "human",
"value": "var atlas = {};\n\nfunction initMap() {\n atlas = L.map('atlas').setView([40, -100], 4);\n\n L.tileLayer('//stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png').addT... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary argument to 'readable' callback\n"
},
{
"from": "human",
"value": "var buffers = [];\n\nprocess.stdin.on('readable', function(chunk) {\n var chunk = process.stdin.read();\n if (chunk !== null) {\n buffers.push(chunk);\n }\n});\n\nprocess.std... | javascript | chosen |
[
{
"from": "system",
"value": "Fix amber version smoke test - cannot test actual version\n\nVersion presented by amber cli is the version of amber\nit was compiled with, not version of amber-cli itself.\n"
},
{
"from": "human",
"value": "// Tests if the `amber version` command returns the expecte... | javascript | chosen |
[
{
"from": "system",
"value": "Use ws rather than http"
},
{
"from": "human",
"value": "// If you're running on a device or in the Android simulator be sure to change\nlet METEOR_URL = 'http://localhost:3000/websocket';\nif (process.env.NODE_ENV === 'production') {\n METEOR_URL = ''; // your pro... | javascript | chosen |
[
{
"from": "system",
"value": "Make root reducer expectation dynamic\n"
},
{
"from": "human",
"value": "import { expect } from 'chai'\n\nimport types from '../../src/constants/ActionTypes'\nimport reducer from '../../src/reducers'\n\ndescribe('reducers/index.js', () => {\n it('should handle POST... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for error handling if directory didn't exists\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\n\nconst should = require('should');\n\nconst Nconfdir = require('./../index.js');\n\ndescribe('Nconfdir#getDirectory', () => {\... | javascript | chosen |
[
{
"from": "system",
"value": "Rename to dpbb for npm\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// add timestamps in front of log messages\nrequire('console-stamp')(console, 'HH:MM:ss');\n\nvar bb = require('../bb.js');\nvar fs = require('fs')\n\nvar progArgs = process.argv.slice(2);\... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify implementation and achieve full test coverage\n"
},
{
"from": "human",
"value": "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2021 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file exc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove logging of 'build' after each broccoli build\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar RSVP = require('rsvp');\nvar tinylr = require('tiny-lr');\nvar ui = require('../ui');\n\nexports.start = function(options) {\n var liveReloadServer = new tin... | javascript | chosen |
[
{
"from": "system",
"value": "Use window dimensions rather than document dimensions so the sizing is more stable\n"
},
{
"from": "human",
"value": "angular.module('WatchTimer')\n .directive('resizeTextToFill', function($document, $timeout) {\n return {\n link: function(scope, element, a... | javascript | chosen |
[
{
"from": "system",
"value": "Create action rather than toolbar button\n"
},
{
"from": "human",
"value": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\n// npm compatibility\nif (typeof define !== 'function') { var define = require('./r... | javascript | chosen |
[
{
"from": "system",
"value": "Send push notifications via cloud code.\n"
},
{
"from": "human",
"value": "Parse.Cloud.beforeSave(\"Bill\", function (request, response) {\n request.object.get(\"Family\").fetch().then(function (family) {\n family.get(\"Writers\").fetch().then(function (wr... | javascript | chosen |
[
{
"from": "system",
"value": "Remove effect classes after animations complete so they can be added again if needed\n"
},
{
"from": "human",
"value": "(function ($) {\n\n $.fn.animateCSS = function (effect, delay, callback) {\n\n // Return this to maintain chainability\n return t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the date-picker edit flow in Android.\n\nMonths/days were randomly getting incremented/decremented. Manually\ncreate the date instead of using `toISOString`\n"
},
{
"from": "human",
"value": "//DateQuestionView Component Constructor\nfunction DateQuestionView(qu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix failing test when two locales used same flag icon\n\n[#LEI-290]\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\nimport Ember from 'ember';\n\n\nconst localeStub = Ember.Se... | javascript | chosen |
[
{
"from": "system",
"value": "Increase round duration to 90 seconds\n"
},
{
"from": "human",
"value": "define({\n RoundCount: 2,\n MinPlayers: 4,\n RoundDuration: 20000\n});\n"
},
{
"from": "gpt",
"value": "define({\n RoundCount: 2,\n MinPlayers: 4,\n RoundDuration: 90000\n});\... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Add missing Cost Center filter in cash flow statement\n"
},
{
"from": "human",
"value": "// Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors\n// For license information, please see license.txt\n\nfrappe.require(\"assets/erpnext/js/financial_st... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ember-test-utils/reporter to see if addresses build issue\n"
},
{
"from": "human",
"value": "/* eslint-env node */\nconst Reporter = require('ember-test-utils/reporter')\n\nmodule.exports = {\n disable_watching: true,\n framework: 'mocha',\n launch_in_ci: ... | javascript | chosen |
[
{
"from": "system",
"value": "Update testing s3 bucket name\n"
},
{
"from": "human",
"value": "var rc = require('rc');\n\n/*eslint-disable camelcase */\n\nmodule.exports = rc('number_switcher_3000', {\n aws_region: 'us-east-1',\n aws_s3_bucket: 'let-me-in-dev',\n brennens_number: '222-222-222... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.