conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Add route for missing mangas\n"
},
{
"from": "human",
"value": "var subscriptions = new SubsManager();\n\nRouter.configure({\n\tlayoutTemplate: 'layout',\n\tloadingTemplate: 'loading',\n\tnotFoundTemplate: 'notFound'\n});\n\nRouter.route('/', {\n\tname: 'home',\n\tw... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare for players and maps update of core.\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Make our own plugin main interface an event emitter.\n// This can be used to communicate and subscribe to others plugins events.\nimport { EventEmitter } from 'events... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undeclared variable in node runtime\n"
},
{
"from": "human",
"value": "$JSRTS.os = require('os');\n$JSRTS.fs = require('fs');\n$JSRTS.prim_systemInfo = function (index) {\n switch (index) {\n case 0:\n return \"node\";\n case 1:\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic tests for post/put/del\n"
},
{
"from": "human",
"value": "var proxyquire = require(\"proxyquire\");\n\n// Returns an ajax instance that has the underlying XMLHttpRequest stubbed.\nfunction getStubbedAjax(stub) {\n\tproxyquire(\"../index.js\", {\n\t\txmlhtt... | javascript | chosen |
[
{
"from": "system",
"value": "Change FILL_ME_IN to respective types\n"
},
{
"from": "human",
"value": "describe(\"About Expects\", function() {\n\n /We shall contemplate truth by testing reality, via spec expectations. \n it(\"should expect true\", function() {\n expect(true).toBeTruthy();... | javascript | chosen |
[
{
"from": "system",
"value": "Test firefox first, so Chrome coverage is used\n"
},
{
"from": "human",
"value": "var Reporter = require('ember-test-utils/reporter')\n\nmodule.exports = {\n disable_watching: true,\n framework: 'mocha',\n launch_in_ci: [\n 'Chrome',\n 'Firefox'\n ],\n la... | javascript | chosen |
[
{
"from": "human",
"value": "Modify JavaScript file, first working version with keyDown\n"
},
{
"from": "gpt",
"value": "function playAudioOnKeyDown(elt) {\n let soundToPlay = document.querySelector(`audio[data-key=\"${elt.keyCode}\"]`);\n let keyToAnimate = document.querySelector(`div[dat... | javascript | chosen |
[
{
"from": "system",
"value": "Update text to test CI/CD\n"
},
{
"from": "human",
"value": "\r\nvar http = require('http');\r\nvar mongoClient = require('mongodb').MongoClient;\r\n\r\nvar mongoUri = process.env.MONGO_URI || '';\r\nvar port = process.env.PORT || 80;\r\n\r\nmongoClient.connect(mong... | javascript | chosen |
[
{
"from": "system",
"value": "Print importjsd errors to stdout\n\nI'm playing around with using a vim channel to communicate with the\ndaemon. It's a lot simpler if we can assume all results (even errors)\nget printed to stdout.\n"
},
{
"from": "human",
"value": "import readline from 'readline';... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'input' instead of 'data'\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gonzales = require('gonzales-pe');\nvar linters = [\n require('./linters/space_before_brace')\n];\n\nexports.lint = function (data, path, config) {\n var ast = this.parseAST(... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case from make_it_modular to filtered_ls\n\nThis test case was present in the next, \"same as the previous\" challenge, thus preventing some solutions to filtered_ls to work for make_it_modular for an unclear reason."
},
{
"from": "human",
"value": "const f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix checkFileNames tests (extend timeout)\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { runCommand } from '../../../utils/helper-tests';\nimport { join } from 'path';\n\ndescribe('Check file names task', () => {\n pit('should pass with valid file & f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove not needed fields from schema"
},
{
"from": "human",
"value": "const mongoose = require(\"mongoose\");\nconst shortid = require(\"shortid\");\nconst ProcessorItem = require(\"./ProcessorItem\");\nconst originals = require(\"mongoose-originals\");\n\nconst Add... | javascript | chosen |
[
{
"from": "system",
"value": "Make the default for Meteor.settings be the empty object\n"
},
{
"from": "human",
"value": "Meteor = {\n isClient: false,\n isServer: true\n};\n\ntry {\n if (process.env.METEOR_SETTINGS)\n Meteor.settings = JSON.parse(process.env.METEOR_SETTINGS);\n} catch (e)... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeouts to CSRF and cookie\n"
},
{
"from": "human",
"value": "//var ERR = require('async-stacktrace');\nvar express = require('express');\nvar router = express.Router();\n\nvar csrf = require('../../lib/csrf');\nvar config = require('../../lib/config');\n\nrout... | javascript | chosen |
[
{
"from": "system",
"value": "Load the page according to the current url, using hashes."
},
{
"from": "human",
"value": "import React from 'react';\n\nimport Logo from './components/logo'\nimport SocialButtons from './components/social-buttons'\nimport Navigation from './components/navigation'\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update so PORT environment variable is used\n"
},
{
"from": "human",
"value": "var util = require('util'),\n connect = require('connect'),\n serveStatic = require('serve-static'),\n port = 80,\n app = connect();\n\napp.use(serveStatic(__dirname)).listen(... | javascript | chosen |
[
{
"from": "system",
"value": "Move `tag` helper in default export\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { elementNames } from './config'\nimport create from './helper'\n\nexport { apply } from './helper'\n\nexport function tag(head: string, ...tail: any[]): Function {\n return c... | javascript | chosen |
[
{
"from": "system",
"value": "Move signing method to post verb\n"
},
{
"from": "human",
"value": "var restify = require('restify');\n\nvar mainController = require('./controllers/mainController');\n\nvar server = restify.createServer({\n\tname: 'self-signed'\n});\n\nserver.use(restify.bodyParser... | javascript | chosen |
[
{
"from": "system",
"value": "Update APP_ID to correct app id\n"
},
{
"from": "human",
"value": "var Alexa = require('alexa-sdk');\n\nvar APP_ID = 'amzn1.ask.skill.933585d3-ba4a-49f9-baed-86e109c589ed';\n\nvar SKILL_NAME = 'Snack Overflow';\nvar POSSIBLE_RECIPIES = [ 'Chicken Parmesan', 'Spaghet... | javascript | chosen |
[
{
"from": "system",
"value": "Use single import of lodash"
},
{
"from": "human",
"value": "import isFunction from 'lodash/isFunction';\nimport isObject from 'lodash/isObject';\nimport assign from 'lodash/assign';\nimport pick from 'lodash/pick';\nimport flatten from 'lodash/flatten';\nimport pic... | javascript | chosen |
[
{
"from": "system",
"value": "Clear the search query on focus as well and some minor JS clean up."
},
{
"from": "human",
"value": "$(document).ready(function() {\n var divs = \"#flash_success, #flash_notice, #flash_error\";\n $(divs).each(function() {\n humanMsg.displayMsg($(this).text());\... | javascript | chosen |
[
{
"from": "system",
"value": "Add Bovada endpoint for super bowl lines\n"
},
{
"from": "human",
"value": "const axios = require('axios');\nconst BovadaParser = require('../services/BovadaParser');\n\naxios.defaults.baseURL = 'https://www.bovada.lv/services/sports/event/v2/events/A/description/fo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix inline tag splitting and comment formatting\n"
},
{
"from": "human",
"value": "/**\n * @file insert Non-Breaking SPace for CKEditor\n * Copyright (C) 2014 Alfonso Martnez de Lizarrondo\n * Create a command and enable the Ctrl+Space shortcut to insert a non-break... | javascript | chosen |
[
{
"from": "system",
"value": "Return 422 for invalid parameters\n"
},
{
"from": "human",
"value": "var app = require('express')();\nvar parser = require('./src/scrip').parse;\n\napp.get('/', function (req, res) {\n var scrip = req.query.scrip;\n var result = parser(scrip);\n\n res.send(result... | javascript | chosen |
[
{
"from": "system",
"value": "Add a MathML namespace so that the detection works in XML too.\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain ... | javascript | chosen |
[
{
"from": "system",
"value": "Update route on interval drop-down changes.\n"
},
{
"from": "human",
"value": "define([], function() {\n\n 'use strict';\n\n return Backbone.View.extend({\n jqplotId: null,\n\n initialize: function(options) {\n this.render();\n\n var view = this;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Print the return value of onClose if it's not null\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nlet [,, onLineSrc, onCloseSrc ] = process.argv;\nlet onLine = eval(onLineSrc) || (line => line);\nlet onClose = eval(onCloseSrc) || (() => und... | javascript | chosen |
[
{
"from": "system",
"value": "Change double quotes to single quotes\n"
},
{
"from": "human",
"value": "/* eslint-env jquery */\n\nstart();\nfunction start () {\n 'use strict';\n\n $(document).ready(() => {\n $('form').submit(event => {\n event.preventDefault();\n const username = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test task for Gulp\n"
},
{
"from": "human",
"value": "var gulp = require('gulp')\nvar connect = require('gulp-connect')\nvar inlinesource = require('gulp-inline-source')\n\ngulp.task('connect', () => {\n connect.server({\n root: 'dist',\n livereload: true... | javascript | chosen |
[
{
"from": "system",
"value": "Create a gulp task to run pipeline once\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst gulp = require('gulp'),\n fs = require('fs'),\n plumber = require('gulp-plumber');\n\nconst options = {\n source: 'templates',\n dist: 'dist',\n workingDir: 'tmp',... | javascript | chosen |
[
{
"from": "system",
"value": "Fix project setup to support production and debug\n"
},
{
"from": "human",
"value": "var gulp = require(\"gulp\");\nvar typescript = require(\"gulp-typescript\");\n\nconst tsconfig = typescript.createProject(\"tsconfig.json\");\n\ngulp.task(\"compile\", () => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some service to dashboard\n"
},
{
"from": "human",
"value": "const express = require('express')\n\nconst router = express.Router()\n\n\nmodule.exports = router\n"
},
{
"from": "gpt",
"value": "const express = require('express')\nconst queryHelper = r... | javascript | chosen |
[
{
"from": "system",
"value": "Include bower components as assets\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n // this is an arbitrary object that loads all gulp plugins in package.json.\n coffee = require('coffee-script/register'),\n $ = require(\"gul... | javascript | chosen |
[
{
"from": "system",
"value": "Add prepare-release task for consistency\n"
},
{
"from": "human",
"value": "var bower = require('bower'),\n eventStream = require('event-stream'),\n gulp = require('gulp'),\n chmod = require('gulp-chmod'),\n zip = require('gulp-zip'),\n tar = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix styling of Retry component on mobile\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react'\nimport {globalColors} from '../../../styles'\nimport {Box, Text} from '../../../common-adapters'\n\nconst Retry = ({onRetry}: {onRetry: () => void}) => (... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Look for mock.js in the current directory\"\n\nThis reverts commit c7f1aa03479a7fd2dedc5d172fbdc0dc692bcf85.\n\nConflicts:\n\n\thttpmock.js\n"
},
{
"from": "human",
"value": "var argv = require('optimist')\n .usage(\"Usage: $0 --config [config] --port [por... | javascript | chosen |
[
{
"from": "system",
"value": "Change default <title> to \"Super Flash Cards\"\n"
},
{
"from": "human",
"value": "/**\n * React Static Boilerplate\n * https://github.com/koistya/react-static-boilerplate\n * Copyright (c) Konstantin Tarkus (@koistya) | MIT license\n */\n\nexport default {\n title... | javascript | chosen |
[
{
"from": "system",
"value": "Use `--no-sandbox` on TravisCI 🔨\n\nRelated to use of Headless Chrome, see https://github.com/ember-cli/ember-cli/pull/7566.\n"
},
{
"from": "human",
"value": "/* eslint-env node */\nmodule.exports = {\n test_page: 'tests/index.html?hidepassed',\n disable_watchin... | javascript | chosen |
[
{
"from": "system",
"value": "Add --no-sandbox chrome argument to fix Travis CI build\n"
},
{
"from": "human",
"value": "/* eslint-env node */\nmodule.exports = {\n test_page: 'tests/index.html?hidepassed',\n disable_watching: true,\n launch_in_ci: [\n 'Chrome'\n ],\n launch_in_dev: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use null instead of undefined and remove whitespace\n"
},
{
"from": "human",
"value": "module.exports = {\n refreshMin: 10,\n github: {\n per_page: 100,\n timeout: 5000,\n version: '3.0.0'\n },\n local: {\n save: 'NEVER', // NEVER, ON_REFRESH, ALWAYS... | javascript | chosen |
[
{
"from": "system",
"value": "Switch json for url parser\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst app = express();\nconst path = require('path');\nconst twilio = require('twilio');\nconst bodyparser = require('body-parser');\n\nconst onConnec... | javascript | chosen |
[
{
"from": "system",
"value": "Set viz-filter to SHOW_ALL when adding a new item\n"
},
{
"from": "human",
"value": "const visibilityFilter = (state = 'SHOW_ALL', action) => {\n switch(action.type) {\n case 'SET_VISIBILITY_FILTER':\n return action.filter;\n default:\n return state... | javascript | chosen |
[
{
"from": "system",
"value": "Allow relative path for interactive compiler parameter. Update help\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst program = require('commander');\nconst path = require('path');\nconst FlaCompiler = require('./FlaCompiler');\n\n\nprogram\n .version(req... | javascript | chosen |
[
{
"from": "system",
"value": "Hide submenu on click sub menu item\n"
},
{
"from": "human",
"value": "import {\n HEADER_NAV_MOUSE_ENTER,\n HEADER_NAV_MOUSE_LEAVE,\n SET_HEADER_NAV\n} from '../constants/headerNav';\nimport { setCurrentAsset } from '../actions/assets';\nimport keyBy from 'lodash... | javascript | chosen |
[
{
"from": "system",
"value": "Update migrate help text so that its purpose was more clear\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\nvar program = require(\"commander\");\n\nprogram\n .version(\"0.0.1\")\n\n .command(\"devices [options]\", \"Lists devices, or adds/removes devic... | javascript | chosen |
[
{
"from": "system",
"value": "Fix script to work with latest website updates"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name bleep.com dance all night\n// @namespace rob@middlerob.com\n// @include https://bleep.com/*\n// @version 1\n// @description Disable the 60 se... | javascript | chosen |
[
{
"from": "system",
"value": "Add docblock to default configuration object\n"
},
{
"from": "human",
"value": "const defaults = {\n\t/**\n\t * Label\n\t */\n\tlabel: 'Dialog',\n\n\t/**\n\t * Description - ID of HTMLElement to use as aria-describedby\n\t */\n\tdescription: '',\n\n\t/**\n\t * Focus... | javascript | chosen |
[
{
"from": "system",
"value": "Hide facet if no filters are still inactive inside\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport Facet from './Facet'\nimport { isActive } from '../../helpers/manageFilters'\n\nconst styles = {\n type: {\n textTransform: 'ca... | javascript | chosen |
[
{
"from": "system",
"value": "Save cell id during conversion.\n"
},
{
"from": "human",
"value": "import convertSourceCode from './convertSourceCode'\n\nexport default class ConvertCodeCell {\n\n /*\n Collect <code specific-use=\"cell\"> and turn it into cell elements in\n TextureJATS\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Declare 'displace' arrays at the top of the function\n"
},
{
"from": "human",
"value": "function sortCss(settings, cssObject) {\n function sortDeep(array) {\n sortCss.scope(settings, array, {\n displace : [\n 'sass function',\n 'sass import',\... | javascript | chosen |
[
{
"from": "system",
"value": "Add error handler to Web Worker\n"
},
{
"from": "human",
"value": "import settings from 'settings';\nimport { bind } from 'util/dom';\n\nvar worker;\nvar messageCount;\nvar callbacks;\n\nfunction post (command, data, callback) {\n callbacks[messageCount] = callba... | javascript | chosen |
[
{
"from": "system",
"value": "Add getRequest() to golang app\n"
},
{
"from": "human",
"value": "document.addEventListener(\"DOMContentLoaded\", function (event) {\n // redirect to 7777 port\n // ping golang counter\n httpGetAsync(\"http://www.aracki.me:7777/count\", function (res) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change CORS to be set by environment\n"
},
{
"from": "human",
"value": "const express = require('express')\nconst path = require('path')\nconst fs = require('fs')\nconst formidable = require('formidable')\nconst app = express()\nconst PORT = process.env.PORT || 9000... | javascript | chosen |
[
{
"from": "system",
"value": "Use a more sensible connection timeout for knex\n"
},
{
"from": "human",
"value": "/**\n * This file is automatically loaded when knex runs migrations\n */\n\nrequire('babel-register')();\n\nconst config = require('./server/config').default;\n\nmodule.exports = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove cards == [] from Deck()\n"
},
{
"from": "human",
"value": "var Deck = function(cards = []) {\n this.cards = cards;\n};\n\nDeck.prototype.addCard = function(card) {\n this.cards.push(card);\n};\n\nDeck.prototype.nextCard = function(card) {\n return this.car... | javascript | chosen |
[
{
"from": "system",
"value": "Extend the visible time after-click for a dropdown\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n flashError: null,\n nextFlashError: null,\n showUserOptions: false,\n\n stepFlash: function() {... | javascript | chosen |
[
{
"from": "system",
"value": "Improve color string regex pattern for multiline matches\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load requirements\nconst clk = require('chalk'),\n chalk = new clk.constructor({level: 1, enabled: true});\n\n// Formats a string with ANSI styling\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add stil url in mock\n"
},
{
"from": "human",
"value": "import * as _ from 'lodash'\nimport UUID from 'node-uuid';\n\nconst KEY = 'GIFS';\n\nexport const loadData = () => {\n let data = JSON.parse(localStorage.getItem(KEY));\n\n if (_.isEmpty(data)) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check error with instance of\n\nCloses #22\n\nSigned-off-by: Dominic Bartl <a9662aa7a7b7ac6326ee7732d0f7f2070642dd85@gmail.com>\n"
},
{
"from": "human",
"value": "/**\n * Download tool for Unicode CLDR JSON data\n *\n * Copyright 2013 Rafael Xavier de Souza\n * Rele... | javascript | chosen |
[
{
"from": "system",
"value": "Include polyfills for vue app js\n"
},
{
"from": "human",
"value": "import Vue from 'vue/dist/vue.esm';\n\nimport store from '../store/index.js.erb';\nimport '../config/axios';\nimport '../directives/selectionchange';\n\nimport TheAnnotator from '../components/TheAn... | javascript | chosen |
[
{
"from": "system",
"value": "Change Bootstrap .exec to .then for consistency\n"
},
{
"from": "human",
"value": "/**\n * Bootstrap\n * (sails.config.bootstrap)\n *\n * An asynchronous bootstrap function that runs before your Sails app gets lifted.\n * This gives you an opportunity to set up your... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to select a token\n"
},
{
"from": "human",
"value": "annotationApp.controller('MainController', function($scope) {\n $scope.tokens = [\n { 'string' : 'Marcus', 'id' : '1' },\n { 'string' : 'rosam', 'id' : '2' },\n { 'string' : 'videt', 'id' : ... | javascript | chosen |
[
{
"from": "system",
"value": "Use more reliable JS source mapping technique\n"
},
{
"from": "human",
"value": "const path = require(\"path\");\nconst merge = require(\"webpack-merge\");\nconst webpack = require(\"webpack\");\nconst common = require(\"./webpack.common.js\");\n\nconst postCSSPlugi... | javascript | chosen |
[
{
"from": "system",
"value": "tests: Cover one more branch in unit tests\n"
},
{
"from": "human",
"value": "const Client = require('../lib/client');\n\nconst options = {\n baseUrl: 'some value',\n username: 'some value',\n password: 'some value'\n};\n\ndescribe('Client', () => {\n it('should... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper function for serving static files\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar fs = require('fs');\nvar path = require('path');\nvar mime = require('mime');\nvar cache = {};\n\nfunction send404(response) {\n response.writeHead(404,... | javascript | chosen |
[
{
"from": "system",
"value": "Improve port log message syntax\n"
},
{
"from": "human",
"value": "var koa = require('koa');\nvar http = require('http');\nvar route = require('koa-route');\nvar serve = require('koa-static');\nvar bodyParser = require('koa-bodyparser');\n\n// Koa middleware\nvar er... | javascript | chosen |
[
{
"from": "system",
"value": "Change order of translation provider and store provider to allow translation provider access the storage\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Provider} from 'react-redux';\nimport {Router, Route, IndexRoute} from 'react-router';\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Update negate gate symbol to be a single thick line\n"
},
{
"from": "human",
"value": "import {GateBuilder} from \"src/circuit/Gate.js\"\nimport {Matrix} from \"src/math/Matrix.js\"\nimport {GatePainting} from \"src/draw/GatePainting.js\"\n\nconst NeGate = new GateB... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for same length, same letters, different letter instance counts\n\nOne possible solution to detecting an anagram might be to check to see if the words are the same length and that each letter from the first word is contained in the second word. This additional test wou... | javascript | chosen |
[
{
"from": "system",
"value": "Move promisify require to top of file\n"
},
{
"from": "human",
"value": "const command = {\n command: \"console\",\n description:\n \"Run a console with contract abstractions and commands available\",\n builder: {},\n help: {\n usage: \"truffle console [--... | javascript | chosen |
[
{
"from": "system",
"value": "Increase protractor timeout limit to enable AppVeyor to build database on first instantiation.\n"
},
{
"from": "human",
"value": "var paths = require('../paths.config.js');\n\nexports.config = {\n // Path to the selenium server jar. Update version number accordi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for templates in es6\n"
},
{
"from": "human",
"value": "angular.module('ladda-lw', ['ngAnimate']).directive('ladda', function laddaDirective() {\n return {\n restrict: 'A',\n scope: {\n ladda: '=',\n },\n compile: (element, attrs) => {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Change controllerPath and webRoot for customer server installation\n"
},
{
"from": "human",
"value": "/* We have to setup the global variables which will be used for web application. \n As now everything comes from webframework globally so I put it here temprarily.... | javascript | chosen |
[
{
"from": "system",
"value": "Reconnect if connection is lost\n"
},
{
"from": "human",
"value": "/* -*- js2-basic-offset: 2; indent-tabs-mode: nil; -*- */\n/* vim: set ft=javascript ts=2 et sw=2 tw=80; */\n\"use strict\";\n\nrequire(\"sockjs\");\nlet Sock = window.SockJS,\n {addMethod} = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Extend visualisation period to March\n"
},
{
"from": "human",
"value": "\nvar moment = require('moment');\n\n// NOTE: month indices are zero-based\n\nmodule.exports.DATA_START_YEAR = 2012;\nmodule.exports.DATA_START_MONTH = 0;\nmodule.exports.DATA_START_MOMENT = mom... | javascript | chosen |
[
{
"from": "system",
"value": "Use Punctuation Blacklist for Typeahead Normalizer\n\nSummary:\nThis changes the Typeahead normalizer to use a punctuation blacklist instead of stripping all non-alphanumeric characters. As the normalizer stands now, any international characters (e.g. Japanese characters) are s... | javascript | chosen |
[
{
"from": "system",
"value": "Set page_size and state on collection requests\n"
},
{
"from": "human",
"value": "/*jshint -W106*/\n/*global define*/\n\ndefine(['underscore', 'backbone', 'models/user-request-model'], function(_, Backbone, UserRequestModel) {\n 'use strict';\n\n var UserReque... | javascript | chosen |
[
{
"from": "system",
"value": "Include exempt groups in search\n"
},
{
"from": "human",
"value": "import { inject as service } from '@ember/service';\nimport Controller from '@ember/controller';\nimport { task, timeout } from 'ember-concurrency';\n\nexport default Controller.extend({\n flashMess... | javascript | chosen |
[
{
"from": "system",
"value": "Return structure and sensors with ExperimentSchema\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies.\n */\nvar mongoose = require('mongoose'),\n\tSchema = mongoose.Schema,\n MediaSchema = require('./media.server.model').schema,\n _ =... | javascript | chosen |
[
{
"from": "system",
"value": "Use subheaders in member list\n"
},
{
"from": "human",
"value": "import { List } from 'material-ui/List';\nimport React from 'react';\nimport { Link } from 'react-router';\n\nimport MemberItem from './MemberItem';\n\nexport default class GroupItem extends React.Comp... | javascript | chosen |
[
{
"from": "system",
"value": "Change way of exports MainHeader Components\n\nFor: https://github.com/falmar/react-adm-lte/issues/2\n"
},
{
"from": "human",
"value": "import MainHeader from './MainHeader'\nimport Logo from './Logo'\nimport LogoText from './LogoText'\nimport Navbar from './Navbar'... | javascript | chosen |
[
{
"from": "system",
"value": "Allow de-select on single selects with a blank option.\n"
},
{
"from": "human",
"value": "jQuery(document).ready(function($) {\n $(\".flash.notice, .flash.alert\").flashNotice();\n\n // This is useful for toggling CSS helpers\n // whilst developing.. cmd+G\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Allow additional response states (queued, downloading, processing)\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n createFeedFromGtfsService: Ember.inject.service('create-feed-from-gtfs'),\n beforeModel: funct... | javascript | chosen |
[
{
"from": "system",
"value": "Add rl-dropdown and tooltipster addons to afterInstall hook\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function() {\n return this.addPackagesToProject([\n { name: 'liquid-f... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error if GPU object not passed\n"
},
{
"from": "human",
"value": "let gpu = null;\n\nmodule.exports = class Texture {\n\t\n\t/**\n \t * @desc WebGl Texture implementation in JS\n\t * @constructor Texture\n\t * @param {Object} texture \n\t * @param {Array} size... | javascript | chosen |
[
{
"from": "system",
"value": "Redux: Create our own createStore and fix typo\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\n// import {createStore} from 'redux';\n\n// ReactDOM.render(<App />, document.getElementById('a... | javascript | chosen |
[
{
"from": "system",
"value": "Use an existing check for canvas capabilities\n\nThis results in better compatability with jsdom, allows usage in newer\nJest.\n"
},
{
"from": "human",
"value": "var VML = require('./vml');\nvar Canvas = require('./canvas');\n//var Flash = require('./flash');\n\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Set defaults for karma server\n"
},
{
"from": "human",
"value": "module.exports = function(config){\n config.set({\n\n basePath : '../',\n\n files : [\n 'app/bower_components/angular/angular.js',\n 'app/bower_components/angular-route/angular-route.j... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.