conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make sure grunt is aware of css and font files\n\nThis is just for live-reload."
},
{
"from": "human",
"value": "module.exports = function (grunt) {\n grunt.initConfig({\n shell: {\n jekyllBuild: {\n command: 'jekyll build --draft... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES5 to fix uglifyJS crash.\n\n- Fixes #34\n"
},
{
"from": "human",
"value": "let ClientEntry = require('../src/Main.purs');\nlet app = ClientEntry.main(window.location.pathname)(window.__puxLastState || ClientEntry.initialState)()\n\napp.state.subscribe((state) ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve readability of code to extend options\n"
},
{
"from": "human",
"value": "const { fields, validators, widgets, create: createForm } = require('forms');\n\nfunction textField(label, maxlength, options = { }) {\n return fields.string(Object.assign({ }, options... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to prevent real connections in test mode\n"
},
{
"from": "human",
"value": "var Bluebird = require('bluebird');\nvar connection = require('./connection');\nvar errors = require('./errors');\n\nvar mockOptions = {};\n\nmodule.exports.errors = errors;\n\nmo... | javascript | chosen |
[
{
"from": "system",
"value": "Add bump:major task to Grunt\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = function (grunt) {\n grunt.initConfig({\n bump: {\n options: {\n files: [\"package.json\"],\n commit: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add config property to grunt config\n"
},
{
"from": "human",
"value": "/* jshint node:true */\n\n\"use strict\";\n\nmodule.exports = function (grunt) {\n // Show elapsed time at the end\n require(\"time-grunt\")(grunt);\n // Load all grunt tasks\n requir... | javascript | chosen |
[
{
"from": "system",
"value": "Configure HTTP and Sockets API\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('underscore'),\n path = require('path'),\n winston = module.parent.require('winston'),\n meta = module.parent.require('./meta'),\n rout... | javascript | chosen |
[
{
"from": "system",
"value": "Use of Winston to output messages in the console\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Requirements\nvar User = module.parent.require('./user'),\nvar winston = module.parent.require('winston'),\nvar watsonDev = require('watson-developer-cloud');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Use the anonymous function expression style to describe the default grunt tasks\n\nThis is to increase the readability of the code\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\t\"use strict\";\n\n\t// Display the execution time of g... | javascript | chosen |
[
{
"from": "system",
"value": "Add test gruntfile to jshint checks\n"
},
{
"from": "human",
"value": "module.exports = function( grunt ) {\n \"use strict\";\n\n grunt.initConfig({\n bump: {\n options: {\n files: [ \"package.json\" ],\n\n // Co... | javascript | chosen |
[
{
"from": "system",
"value": "Include tick in expiry types\n"
},
{
"from": "human",
"value": "import moment from 'moment';\nimport ContractType from './helpers/contract_type';\n\nexport const onChangeExpiry = (store) => {\n const { contract_type, duration_unit, expiry_date, expiry_type,... | javascript | chosen |
[
{
"from": "system",
"value": "Use data-active=true instead of data-start-active"
},
{
"from": "human",
"value": "(function(){ \n \"use strict\";\n xtag.register(\"sam-tabbar\", {\n lifecycle: {\n created: function() {\n if (!this.role) {\n this.role = \"tablist\";\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update middleware stack of skeleton app.\n"
},
{
"from": "human",
"value": "exports.httpConfig = {\n staticDir: 'static'\n};\n\nexports.urls = [\n [ '/', 'actions' ]\n];\n\nexports.middleware = [\n 'ringo/middleware/etag',\n 'ringo/middleware/responselog',... | javascript | chosen |
[
{
"from": "system",
"value": "Make the grunt jshint task use the .jshintrc\n"
},
{
"from": "human",
"value": "module.exports = function (grunt) {\n grunt.initConfig({\n jshint: {\n jshintrc: '.jshintrc',\n files: ['Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/**/*... | javascript | chosen |
[
{
"from": "system",
"value": "Add a `travis` task for grunt.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n 'use strict';\n\n // Configuration.\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n\n jscs: {\n options: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use the bin in node_modules\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n\n babel: {\n options: {\n sourceMap: false\n },\n dist: {\n files... | javascript | chosen |
[
{
"from": "system",
"value": "Remove commented out conditions for now\n\nWe can figure out how to guard against plugins receiving the wrong events later\n"
},
{
"from": "human",
"value": "const handlebars = require('handlebars');\nconst Plugin = require('../plugin');\n\nmodule.exports = class Is... | javascript | chosen |
[
{
"from": "system",
"value": "Add implementation to show closest departures.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport './App.css';\nimport TimeTable from './TimeTable.js'\n\nclass App extends Component {\n\trender() {\n\t\t//return <TimeTable />;\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Remove lodash and Array dependencies\n"
},
{
"from": "human",
"value": "(function() {\n var osdOpentok = angular.module('osdOpentok', [\n 'ngLodash'\n ]);\n})();\n"
},
{
"from": "gpt",
"value": "(function() {\n var osdOpentok = angular.mo... | javascript | chosen |
[
{
"from": "system",
"value": "[QA-95] Add note as to why agent test exists\n"
},
{
"from": "human",
"value": "#!/usr/bin/node\n\nvar test = require('tap').test;\nvar child = require('child_process');\n\ntest(\"Agents are installed\", function(t) {\n t.plan(3);\n\n child.exec(\"find /opt/sm... | javascript | chosen |
[
{
"from": "system",
"value": "Update aerial-accounts version -> 0.4.0\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'bquarks:aerialjs',\n version: '0.1.4',\n // Brief, one-line summary of the package.\n summary: 'Suite Aerialjs to connect Meteor applications with Corble Platf... | javascript | chosen |
[
{
"from": "system",
"value": "Set term category when fetching definition\n"
},
{
"from": "human",
"value": "function fetchDefinition() {\n var term = document.getElementById('id_term-text').value;\n var language = document.getElementById('id_term-language').value;\n var url = '/api/defi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary tests from i18n instance-initializer tests\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport I18nInstanceInitializer from 'ember-flexberry/instance-initializers/i18n';\nimport { module, test } from 'qunit';\nimport startApp f... | javascript | chosen |
[
{
"from": "system",
"value": "Add greeting when logged into the account\n"
},
{
"from": "human",
"value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtai... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default import of Pane\n"
},
{
"from": "human",
"value": "\"use babel\";\n\nimport { CompositeDisposable } from \"atom\";\n\nconst PANES = [\"inspector\", \"kernel-monitor\", \"output-area\", \"watches\"];\nconst utils = require(\"../dist/utils\");\n\ndescribe(\... | javascript | chosen |
[
{
"from": "system",
"value": "Add user0input to feature flags.\n"
},
{
"from": "human",
"value": "/**\n * Feature flags configuration.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\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": "Improve some tests for calendar conversions.\n"
},
{
"from": "human",
"value": "// Copyright (C) 2020 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-temporal.absolute.prototype.todatetime... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we allways get /main.js from root.\n"
},
{
"from": "human",
"value": "module.exports = function() {\n return `<html>\n <head>\n </head>\n <body>\n <script src='main.js' type='application/javascript'>\n </script>\n </body>\n </html>`... | javascript | chosen |
[
{
"from": "system",
"value": "Add help link to devrant menu\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = (Franz, options) => {\n\t// Add back button to individual rants\n\tif ($('.addcomment-btn').length) {\n\t\t$('.rantlist').append('<li class=\"feed-prev... | javascript | chosen |
[
{
"from": "system",
"value": "Extend nodejs test runner to check for stacktrace output, twice\n"
},
{
"from": "human",
"value": "// run with\n// node test/node-test.js\nvar QUnit = require(\"../qunit/qunit\");\nQUnit.log(function(details) {\n\tif (!details.result) {\n\t\tvar output = \"FAILED: \... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in travis ci environment\n"
},
{
"from": "human",
"value": "\nseajs.config({\n base: './specs/config-base/'\n})\n\n\ndefine(function(require) {\n\n var test = require('../../test')\n var a = require('a')\n\n test.assert(a.name === 'a', a.name)\n\n\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Set default light intensity to 1.0\n"
},
{
"from": "human",
"value": "/** Default scene sets is a scene that has automatically created camera node. */\nvar DefaultScene=Scene.extend({ \n\tinit: function() {\n\t\tthis._super();\n\t\t\n\t\t// Create default camera nod... | javascript | chosen |
[
{
"from": "system",
"value": "Add runCmd method to execute CMD handlers\n"
},
{
"from": "human",
"value": "// test/lib/TempDir.js\n//\n\n'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\nvar spawnSync = require('child_process').spawnSync;\n\nvar mkdirp = require('mkdirp');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Extend translations with default ones\n"
},
{
"from": "human",
"value": "import glob from 'glob';\nimport path from 'path';\n\nfunction loadLanguages() {\n const files = glob\n .sync('src/client/*/i18n/*.js')\n .map(file => {\n const translations = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Update default output path for bin/\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/*\n * Module dependencies.\n */\n\nvar fs = require('fs');\nvar path = require('path');\nvar program = require('commander');\nvar web2splash = require('./../lib/web2splash... | javascript | chosen |
[
{
"from": "system",
"value": "Update the example with different usage example.\n"
},
{
"from": "human",
"value": "\nvar connect = require( 'connect' ),\n shell = require( 'shelljs' ),\n flick = require( '..' ),\n handler = flick(),\n app = connect();\n\nhandler.use( 'romac/romac.gith... | javascript | chosen |
[
{
"from": "system",
"value": "Update objects in tests to have quotes (again)\n"
},
{
"from": "human",
"value": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar index_1 = require(\"../../index\");\n({});\nvar Foo = { 'foo': \"foo\" };\nconsole.log(Foo.foo);\... | javascript | chosen |
[
{
"from": "system",
"value": "tweak: Allow duplicate imports (useful when importing flow types)\n"
},
{
"from": "human",
"value": "/**\n *\n */\nmodule.exports = {\n extends: 'airbnb-base',\n\n env: {\n jest: true,\n },\n\n rules: {\n 'no-underscore-dangle': ['off'],\n 'global-requi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the implementation for the upcoming release of Meteor (v1.0.4)\n\nThe new release supports multiple `onRendered` callbacks per instance.\nThis new meteor feature broke our implementation, so considering that\nwe had to change it we now take advantage of the multiple callbac... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for webpack output location on CI server (part deux)\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst VueLoaderPlugin = require('vue-loader/lib/plugin');\n\nmodule.exports = {\n // webpack folder's entry js - excluded from jekll's build p... | javascript | chosen |
[
{
"from": "system",
"value": "Use simpler syntax for webpack CSS loaders"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'cheap-module-eval-source-map',\n entry: [\n 'webpack-hot-middleware/client',\n './ind... | javascript | chosen |
[
{
"from": "system",
"value": "Build the library as a UMD module\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n\nmodule.exports = {\n entry: './DayPicker.js',\n devtool: 'source-map',\n output: {\n path: __dirname + '/dist',\n filename: 'DayPicker.js',\n library: 'DayPicke... | javascript | chosen |
[
{
"from": "system",
"value": "Add eval command for JS scripting\n"
},
{
"from": "human",
"value": "var find_common_pkg = function(pkglist) {\n var common = [pkglist[0].split(/\\./)];\n pkglist.forEach(function(pkg) {\n var spl = pkg.split(/\\./);\n var fnd = false;\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Use title property instead of id, since id usually has string constraints (used for URLs). Title is something different that we can make whatever we want\n"
},
{
"from": "human",
"value": "// scripts for header\n\n// for capitalizing id\nString.prototype.capitalize ... | javascript | chosen |
[
{
"from": "system",
"value": "Connect current user data to Queue view\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux'\nimport { fetchQueue, queueSong } from '../modules/queue'\nimport QueueView from '../components/QueueView'\n\n// Object of action creators (can also be ... | javascript | chosen |
[
{
"from": "system",
"value": "Use DEV_ENV to webpack.DefinePlugin. Add PRODUCTION_ENV constant. Use webpack.optimize.UglifyJsPlugin if PRODUCTION_ENV\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst webpack = require(\"webpack\");\n\nconst DEV_ENV = \"development\";\nconst NODE_ENV = ... | javascript | chosen |
[
{
"from": "system",
"value": "Change var to const for webpack.\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n main: ['babel-polyfill', './lib/index.js'],\n test: ['babel-polyfill', 'mocha!./test/index.js']\n },\n output: {\n pa... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude react from the build"
},
{
"from": "human",
"value": "const path = require('path');\nconst webpack = require('webpack');\nconst manifest = require('./package.json');\n\nconst mainFile = manifest.main;\nconst packageName = manifest.name;\nconst destinationDir... | javascript | chosen |
[
{
"from": "system",
"value": "Use babel-loader for .js files\n"
},
{
"from": "human",
"value": "var path = require(\"path\");\n\nmodule.exports = {\n entry: \"./src/index.js\",\n output: {\n path: path.resolve(__dirname, \"dist\"),\n filename: \"bundle.js\",\n },\n};\n"
},
{
"fr... | javascript | chosen |
[
{
"from": "system",
"value": "Enforce beginning and ending of transformed RegExp patterns\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nfunction transformWildcardToPattern(wildcardString) {\n var length = wildcardString.length;\n var character;\n var pattern = '';\n if(wildcardString... | javascript | chosen |
[
{
"from": "system",
"value": "Add default methods for plugin\n"
},
{
"from": "human",
"value": "var exec = require('cordova/exec');\n\nexports.coolMethod = function(arg0, success, error) {\n exec(success, error, \"open\", \"coolMethod\", [arg0]);\n};\n"
},
{
"from": "gpt",
"value"... | javascript | chosen |
[
{
"from": "system",
"value": "Use process.hrtime() for Clock in node.js builds\n\nAs discussed in #2975.\n"
},
{
"from": "human",
"value": "\nvar window = window || {};\nvar self = self || {};\n"
},
{
"from": "gpt",
"value": "\nvar window = window || {};\nvar self = self || {};\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out unimplemented methods invocation\n"
},
{
"from": "human",
"value": "/**\n * @fileOverview Level 01 controller.\n */\n\nvar Vector = require('../vector/main.vector');\nvar Level = require('../level/level.base');\n\n/**\n * Level 01 controller.\n *\n * @co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix linting rule for switch-case indentation\n"
},
{
"from": "human",
"value": "module.exports = {\n \"env\": {\n \"browser\": true,\n \"commonjs\": true,\n \"es6\": true,\n \"node\": true,\n \"mocha\": true\n },\n \"exten... | javascript | chosen |
[
{
"from": "system",
"value": "Remove nonexistent js services directory\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/ja... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JSHint warnings, refactor accordion, remove footer margins\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require jquery_ujs\n//= require jquery.remotipart\n//= require select2\n//= require cocoon\n//= require dropzone\n//= require moj\n//= require m... | javascript | chosen |
[
{
"from": "system",
"value": "Remove loader js - moved to own file\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/javasc... | javascript | chosen |
[
{
"from": "system",
"value": "Add blacklisting of PatientReducer in redux store\n"
},
{
"from": "human",
"value": "import AsyncStorage from '@react-native-community/async-storage';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport { applyMiddleware, createStore } from 'redux... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 'NaN' txid for RPC when using IE\n"
},
{
"from": "human",
"value": "// This is stage 1, it can be changed but you must bump the version of the project.\n// Note: This must only be loaded from inside of a sandbox-iframe.\ndefine([\n '/common/requireconfig.js',... | javascript | chosen |
[
{
"from": "system",
"value": "Fix copy in new markup structure\n"
},
{
"from": "human",
"value": "$('[data-clipboard]').each(function() {\n var text = $(this).parent().find('code').text().replace('<', '<').replace('>', '>');\n var clipboard = new Clipboard(this, {text: function() {return... | javascript | chosen |
[
{
"from": "system",
"value": "Add config example for Bitcoin outbound bridge.\n"
},
{
"from": "human",
"value": "/**\n * Ripple Client Configuration\n *\n * Copy this file to config.js and edit to suit your preferences.\n */\nvar Options = {\n server: {\n \"trusted\" : true,\n \"websocket... | javascript | chosen |
[
{
"from": "system",
"value": "Support or for catalog question\n\nhttps://github.com/rancher/rancher/issues/17020\n"
},
{
"from": "human",
"value": "function getVariables(showIf, operator) {\n if ( showIf.indexOf(operator) > -1 ) {\n const array = showIf.split(operator);\n\n if ( array.len... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with block overflow\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default class BlockRoot extends React.Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n const {widthUnits, extraStyles} = this.props;\... | javascript | chosen |
[
{
"from": "system",
"value": "Add entryCssClasses functionality to referenced list field.\n"
},
{
"from": "human",
"value": "export default function maReferencedListColumn(NgAdminConfiguration) {\n return {\n scope: {\n 'field': '&',\n 'datastore': '&'\n },... | javascript | chosen |
[
{
"from": "system",
"value": "Add some additional validation for organization model\n"
},
{
"from": "human",
"value": "/**\n * Organization\n *\n * @module :: Model\n * @description :: A short summary of how this model works and what it represents.\n * @docs\t\t:: http://sailsjs.org/#!docum... | javascript | chosen |
[
{
"from": "system",
"value": "Fix distance for margin title on layout\n"
},
{
"from": "human",
"value": "/*\n*\tCode to display coderwall.com badges \n*/\n\n$(document).ready(function(){\n var member = $('#github_user').text();\n var coderwallJSONurl =\"http://www.coderwall.com/\" ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix make plugin global after API change\n"
},
{
"from": "human",
"value": "export {Utilities} from './validation/utilities';\nexport {ValidationConfig} from './validation/validation-config';\nexport {ValidationLocale} from './validation/validation-locale';\nexport *... | javascript | chosen |
[
{
"from": "system",
"value": "Use https in API calls"
},
{
"from": "human",
"value": "module.exports = {\n API_URL: process.env.USE_LOCAL ? 'http://localhost:5000' : 'http://api.rumors.hacktabl.org',\n\n // If is dev but connet to production api, don't use appId = RUMORS_SITE.\n // Use RUMORS... | javascript | chosen |
[
{
"from": "system",
"value": "Handle flow check error when React mount node is not found\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n// AppContainer is a necessary wrapper component for HMR\nimport { AppContainer } from 'react-hot... | javascript | chosen |
[
{
"from": "system",
"value": "Improve tests for multilingual json output\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar _ = require('lodash');\nvar assert = require('assert');\n\nvar fs = require(\"fs\");\nvar fsUtil = require(\"../lib/utils/fs\");\n\nvar testGeneration = fu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test case to not fail due to varying timings\n\nThe xunit output contains the time it took to run the tests.\r\nIt's sometimes 0 and sometimes 0.001."
},
{
"from": "human",
"value": "/*global describe, it*/\n/*\n * mochify.js\n *\n * Copyright (c) 2014 Maximilia... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lolex integration test on old nodes\n"
},
{
"from": "human",
"value": "require('../common');\nvar util = require('util');\nvar assert = require('assert');\nvar lolex = require('lolex');\nvar stream = require('../../');\nvar Transform = stream.Transform;\n\nfunct... | javascript | chosen |
[
{
"from": "system",
"value": "Watch source files to rerun tests on change\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nvar webpackLoadersConfig = require('./webpack/loaders.config');\nvar webpackPluginsConfig = require('./webpack/plugins.config');\nvar webpackReso... | javascript | chosen |
[
{
"from": "system",
"value": "Remove es2015 from karma presets\n"
},
{
"from": "human",
"value": "const path = require('path')\n\nmodule.exports = function(config) {\n config.set({\n\n files: [\n // all files ending in 'test'\n 'test/e2e/*.spec.js'\n // each file acts as entry... | javascript | chosen |
[
{
"from": "system",
"value": "Append loader suffix to webpack loader\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\n\nmodule.exports = (config) => {\n const { env } = process;\n\n config.set({\n frameworks: ['mocha'],\n\n files: ['test/index.js'],\n\n preproce... | javascript | chosen |
[
{
"from": "system",
"value": "Change path references for angular-mocks"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n module.exports = function(config){\n config.set({\n\n basePath : '../../',\n\n files : [\n 'cla_frontend/assets-src/vendor/raven-js/dis... | javascript | chosen |
[
{
"from": "system",
"value": "Split submission into a separate function\n"
},
{
"from": "human",
"value": "document.addEventListener('DOMContentLoaded', () => {\n // The <form> element\n const contactForm = document.forms['contact-form'];\n // The button in the <form> element\n const formSub... | javascript | chosen |
[
{
"from": "system",
"value": "Update middleware module names in skeleton app.\n\ngit-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9808 688a9155-6ab5-4160-a077-9df41f55a9e9\n"
},
{
"from": "human",
"value": "exports.httpConfig = {\n staticDir: 'static'\n};\n\nexports.urls = [\n [ '/', 'ac... | javascript | chosen |
[
{
"from": "system",
"value": "Print stack only when env DEBUG is set\n"
},
{
"from": "human",
"value": "var Q = require('q');\nvar _ = require('lodash');\n\nvar http = require('http');\nvar send = require('send');\n\nvar path = require('path');\nvar Gaze = require('gaze').Gaze;\n\nfunction watch... | javascript | chosen |
[
{
"from": "system",
"value": "Comment for signin?signedout version added\n"
},
{
"from": "human",
"value": "var keystone = require('../../../');\nvar session = require('../../../lib/session');\n\nmodule.exports = function (req, res) {\n\tsession.signout(req, res, function () {\n\t\tif (typeof ke... | javascript | chosen |
[
{
"from": "system",
"value": "Set default build if not provided\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/**\n * Bosco command line tool\n */\n\nvar program = require('commander');\nvar Bosco = require('../index');\nvar _ = require('lodash');\n\nprogram\n .version('0.0.1')\n .... | javascript | chosen |
[
{
"from": "system",
"value": "Check if there actually are extra filter definitions\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport searchFilters from 'components/SearchFilters'\n\nexport function deserializeQueryParams(objType, queryParams, callbackFunction) {\n\tvar text ... | javascript | chosen |
[
{
"from": "system",
"value": "Update default tooltip configs for scatter charts. Made scatter charts a first class chart type.\n"
},
{
"from": "human",
"value": "(function() {\n\t\"use strict\";\n\n\tvar root = this;\n\tvar Chart = root.Chart;\n\tvar helpers = Chart.helpers;\n\n\tvar defaultConf... | javascript | chosen |
[
{
"from": "system",
"value": "Test Onionoo cannot be invoked without 'new'\n"
},
{
"from": "human",
"value": "import test from 'ava'\nimport Onionoo from '../'\n\ntest('Onionoo is a function', t => {\n t.is(typeof Onionoo, 'function')\n})\n"
},
{
"from": "gpt",
"value": "import test... | javascript | chosen |
[
{
"from": "system",
"value": "Handle the non-existance of the IGNORED_CHANNELS env\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('dotenv').load();\nconst sanity = require('sanity');\n\nsanity.check([\n 'SLACK_TOKEN',\n 'JIRA_HOST',\n 'JIRA_PORT',\n 'JIRA_USERNAME',\n 'JIRA_PAS... | javascript | chosen |
[
{
"from": "system",
"value": "Set port to a number over 800\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n PUBLIC_PATH: path.join(__dirname, '/client/build'),\n APP_PATH: path.join(__dirname, '/client/app'),\n IMG_PATH: path.join(__dirname, '/client/a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ordering bug in NGO edit\n\nFix issue #126\n"
},
{
"from": "human",
"value": "class CmsNgosListController{\n constructor(NgoService, $filter, $state, DialogService){\n 'ngInject';\n var vm = this;\n this.$filter = $filter;\n this.$... | javascript | chosen |
[
{
"from": "system",
"value": "Add flow to PlayerSelect and clean up\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport {\n StyleSheet,\n Text,\n View,\n ScrollView,\n Image,\n Alert\n} from 'react-native';\nimport MyButton from '../../../MyButton';\nimport... | javascript | chosen |
[
{
"from": "system",
"value": ":recycle: Modify leg and arm scaling to use raw stats\n"
},
{
"from": "human",
"value": "import { STATS } from './constants'\n\n/**\n * Defines functions that calculate limb sizes and positions\n */\n\nexport const thighGap = () => 13\nexport const armGirth = friend... | javascript | chosen |
[
{
"from": "system",
"value": "Add glue code for flash.geom classes.\n"
},
{
"from": "human",
"value": "natives.PointClass = function PointClass(runtime, scope, instance, baseClass) {\n var c = new runtime.domain.system.Class(\"Point\", instance, Domain.passthroughCallable(instance));\n c.exten... | javascript | chosen |
[
{
"from": "human",
"value": "Add route for index page\n"
},
{
"from": "gpt",
"value": "angular.module('Gistter').config([$routeProvider, function($routeProvider) {\n $routeProvider\n\n .when('/', {\n controller: 'IndexController',\n templateUrl: 'templates/index/index.html'\n })... | javascript | chosen |
[
{
"from": "system",
"value": "Change to using https for the extras link\n"
},
{
"from": "human",
"value": "javascript:(function () {\n var dt = new Date();\n var secs = dt.getSeconds() + (60 * dt.getMinutes());\n var bookmarletSource = document.createElement('script'); \n bookmarletS... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue where assert is not defined\n"
},
{
"from": "human",
"value": "import assert from 'assert';\n\nexport default function assertion(result, assert = assert) {\n return {\n equal: assert.equal.bind(null, result),\n notEqual: assert.notEqual.bind(null... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing datalayer object, as this is not set if ignored is true\n"
},
{
"from": "human",
"value": "var dataLayer = require('kwf/data-layer');\n\ndataLayer.onPush(function (data) {\n window.dataLayer.push(data);\n});\n"
},
{
"from": "gpt",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Use numeric value for day of week in CRON expression.\n"
},
{
"from": "human",
"value": "export default (app) => {\n app.jobs.schedule('send audit email', '0 16 * * FRI', async () => {\n app.info('CRON: sending audit email - starting')\n\n const mailerConfig ... | javascript | chosen |
[
{
"from": "system",
"value": "chore: Use different port for server task\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\r\n\r\n // Project configuration\r\n grunt.initConfig({\r\n\r\n clean: {\r\n all: {\r\n src: ['.tmp', 'dist']\r\n }\r\n },\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Save user data to cloud upon login\n"
},
{
"from": "human",
"value": "import * as firebase from 'firebase';\n\nimport { testAction } from \"../actions/userActions\";\nimport store from \"../store/configureStore\";\n\nlet config = {\n apiKey: 'AIzaSyBhSdMEX0P-QGwfZL... | javascript | chosen |
[
{
"from": "system",
"value": "Add aiAttack details to swarmer\n"
},
{
"from": "human",
"value": "import {\n child, avenger, protector, persecutor,\n scorpion,\n} from 'emoji';\n\nexport default {\n\n /* The Good Guys */\n\n child: {\n name: `Child`,\n emoji: child,\n type: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneded (copied for reference) code\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass ImputationResults extends React.Component {\n static propTypes = {\n imputation_data: React.PropTypes.object,\n biobank: React.PropType... | javascript | chosen |
[
{
"from": "system",
"value": "Fix update of new selection\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react';\n\nclass BaseLayer extends Component {\n\n selectLayer(id) {\n const app = this.props.app,\n config = app.state,\n map = config.map... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.