conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Remove second Semaphore.wrap and pass in this.\n"
},
{
"from": "human",
"value": "(function (context) {\n var _SEMAPOHRES = {};\n\n var Semaphore = function (key) {\n this.key = key;\n if (_SEMAPOHRES[this.key] == undefined)\n _SEMAPOHRES[this.key] = fa... | javascript | chosen |
[
{
"from": "system",
"value": "Synchronize packages version in blueprint\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\n\nvar RSVP = require('rsvp');\n\nmodule.exports = {\n description: 'Install ember-cli-react dependencies into your app.',\n\n normalizeEntityName: function() {},\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Put .tabs__panels on correct element\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport Panel from './Panel';\nimport idSafeName from '../helpers/idSafeName';\n\nclass Panels extends Component {\n render () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Call the check function during configuration phase\n"
},
{
"from": "human",
"value": "import {Configure} from './configure';\n\nexport function configure(aurelia, configCallback) {\n var instance = aurelia.container.get(Configure);\n\n // Do we have a callback... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES6 export instead of CJS\n"
},
{
"from": "human",
"value": "import Component from './class/Component';\nimport render from './core/render';\nimport renderToString from './core/renderToString';\nimport unmountComponentAtNode from './core/unmountComponentAtNode';... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused call to 'bestOrder'"
},
{
"from": "human",
"value": "import { polygonCentroid, distance } from \"./math.js\";\n\n// With 8 or fewer shapes, find the best permutation\n// Skip if array is huge (9+ shapes)\nexport default function(start, end) {\n let di... | javascript | chosen |
[
{
"from": "system",
"value": "Add test when error is unknown\n"
},
{
"from": "human",
"value": "require('rootpath')();\nconst Hapi = require('hapi');\nconst { describe, it, expect, sinon, before, after, beforeEach, afterEach } = require('tests/helper');\nconst route = require('app/features/event... | javascript | chosen |
[
{
"from": "system",
"value": "Move the functionality out of trigger(), to make it do as little as possible. Also, use '===' instead of '=='.\n"
},
{
"from": "human",
"value": "var Timer = (function(Util) {\n 'use strict';\n\n // Internal constants for the various timer states.\n var Waiting =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix endless loop in server\n"
},
{
"from": "human",
"value": "import upload from './upload';\n\nimport express from 'express';\nimport logger from 'winston';\n\nconst app = express();\nexport default app;\n\napp.set('port', process.env.PORT || 3000);\n\nlogger.remov... | javascript | chosen |
[
{
"from": "system",
"value": "Add initializeDatabase function facade class\n"
},
{
"from": "human",
"value": "/*\n * CS3283/4 storage.js\n * This is a facade class for other components\n */\n\n"
},
{
"from": "gpt",
"value": "/**\n *\n * CS3283/4 storage.js\n * This class acts as a ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing parameter to pass tests\n"
},
{
"from": "human",
"value": "const express = require('express')\nconst ERRORS = require('../../errors')\nconst User = require('../../models/User')\nconst utils = require('../../utils')\nconst router = express.Router()\n\nrou... | javascript | chosen |
[
{
"from": "system",
"value": "Remove appending of fixture to dom\n\nThis is not needed as far as I can tell, the test below works without it, and loading other fixtures elsewhere doesn't seem to work with this here.\n"
},
{
"from": "human",
"value": "describe(\"Core Bliss\", function () {\n\t\"u... | javascript | chosen |
[
{
"from": "system",
"value": "Add style to anchor link\n"
},
{
"from": "human",
"value": "// This is the Link API\nimport Link from 'next/link'\n\nconst Index = () => (\n <div>\n <Link href=\"/about\">\n <a>About Page</a>\n </Link>\n <p>Hello Next.js</p>\n </div>\n)\n\nexport def... | javascript | chosen |
[
{
"from": "system",
"value": "Add sample watch task to example\n"
},
{
"from": "human",
"value": "import hopp from 'hopp'\n\nexport const css =\n hopp([ 'src/css/*.css' ])\n .dest('dist/css')\n\nexport const js =\n hopp([ 'src/js/*.js' ]) // create fs streams\n // .babel() /... | javascript | chosen |
[
{
"from": "system",
"value": "Use the new locale handler\n"
},
{
"from": "human",
"value": "var irc = require('irc'); // IRC Client\nrequire('js-yaml'); // JavaScript YAML parser (for settings)\n\n// Import settings file\nvar settings = require('./config/bot.yaml');\n\nvar client = new irc.Clien... | javascript | chosen |
[
{
"from": "system",
"value": "Make stats quieter in logs.\n"
},
{
"from": "human",
"value": "import bunyan from 'bunyan';\nimport Promise from 'bluebird';\nimport SDC from 'statsd-client';\n\nconst logger = bunyan.createLogger({name: 'Stats'});\n\nexport default class Stats {\n constructor(conf... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to customize error message styles\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport { Form, Label, Input } from 'semantic-ui-react';\n\nclass FormInput extends Component {\n component... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial posts new form elements\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass PostsNew extends React.Component {\n render() {\n return (\n <div className='posts-new'>\n Posts new\n </div>\n );\n }\n}\n\nexport de... | javascript | chosen |
[
{
"from": "system",
"value": "Tooltip: Fix default for position option, follow-up to 1d9eab1.\n"
},
{
"from": "human",
"value": "TestHelpers.commonWidgetTests( \"tooltip\", {\n\tdefaults: {\n\t\tcontent: function() {},\n\t\tdisabled: false,\n\t\thide: true,\n\t\titems: \"[title]:not([disabled])\... | javascript | chosen |
[
{
"from": "system",
"value": "Add checking flag to RelatedResource model\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\n\nvar Schema = mongoose.Schema;\nvar ObjectId = Schema.Types.ObjectId;\n\nvar ORIGIN_TYPES = [\n 'srv:coupledResource',\n 'gmd:onLine'\n];\n\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Add module loading from src to webpack configuration.\n"
},
{
"from": "human",
"value": "var path = require('path');\r\n\r\nmodule.exports = {\r\n /**\r\n * Path from which all relative webpack paths will be resolved.\r\n */\r\n context: path.resolve(_... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with unresponsive switch due to new framework\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as action from '../../action/';\nimport Switch from '@material-ui/core/Switch';\nimport Typography from... | javascript | chosen |
[
{
"from": "system",
"value": "Improve Rust function parser (Use correct identifier)\n"
},
{
"from": "human",
"value": "var DocsParser = require(\"../docsparser\");\nvar xregexp = require('../xregexp').XRegExp;\n\nfunction RustParser(settings) {\n DocsParser.call(this, settings);\n}\n\nRustPar... | javascript | chosen |
[
{
"from": "system",
"value": "Undo changes done by prettier\n\nold habbits die hard! Ran the prettier on Atom on the whole file, this commit undoes it.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst file = require(\"./file\");\n\nmodule.exports = function testExecutions(data, format... | javascript | chosen |
[
{
"from": "system",
"value": "Allow not to specify sender tab id. Detect it implicitly\n"
},
{
"from": "human",
"value": "export function onConnect(respond, connections = {}, tab, error) {\n chrome.runtime.onConnect.addListener(function(port) {\n function extensionListener(message) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check if directory exists before creating\n"
},
{
"from": "human",
"value": "const https = require(\"https\");\nconst fs = require(\"fs\");\n\nmodule.exports = class Artist {\n constructor(artistObject) {\n this.id = artistObject.id;\n this.name = a... | javascript | chosen |
[
{
"from": "system",
"value": "Add sass compilation back to gulp file, tweaked output\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar sass = require('gulp-sass');\n\ngulp.task('compile', function () {\n return gulp.src('./scss/*.scss')\n .pipe(gulp.dest('.... | javascript | chosen |
[
{
"from": "system",
"value": "Include all sass dirs to compile\n"
},
{
"from": "human",
"value": "'use strict';\nvar gulp = require('gulp');\nvar sass = require('gulp-sass');\nvar minifycss = require('gulp-minify-css');\nvar autoprefixer = require('gulp-autoprefixer');\nvar sourcemaps = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Add copy image in gulp\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n gulpCopy = require('gulp-file-copy');\n\ngulp.task('copy', function() {\n gulp.src('./bower_components/jquery/jquery.min.js')\n .pipe(gulp.dest('./js/lib/'));\n\n gulp.... | javascript | chosen |
[
{
"from": "system",
"value": "Move task starting and ending points to start of days\n"
},
{
"from": "human",
"value": "/**\n * Parse task and return task info if\n * the task is valid, otherwise throw\n * error.\n * @param {string} query Enetered task\n * @return {object} Task info cont... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing space before paren\n"
},
{
"from": "human",
"value": "/*\n * grunt-css-flip\n * https://github.com/twbs/grunt-css-flip\n *\n * Copyright (c) 2014 Chris Rebert\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar flip = require('css-flip');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with the existence of the decorators array introduced by syntax changes\n"
},
{
"from": "human",
"value": "export default function({ types }) {\n return {\n visitor: {\n Function: function parseFunctionPath(path) {\n (pa... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we actually exit when we fail on startup\n"
},
{
"from": "human",
"value": "import Promise from 'bluebird';\nimport process from 'process';\nimport util from 'util';\nimport { withRetries } from 'killrvideo-nodejs-common';\nimport { Scheduler } from './sch... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo: createvalue -> createValue"
},
{
"from": "human",
"value": "/**\n * @copyright 2015, Prometheus Research, LLC\n */\n\nimport {createValue} from './Value';\n\nexport Fieldset from './Fieldset';\nexport Field from './Field';\nexport {createVal... | javascript | chosen |
[
{
"from": "system",
"value": "Add util to parse response from GitHub access token request"
},
{
"from": "human",
"value": "/**\n * Create a copy of an object, omitting provided keys.\n * @param {Object} obj Object to copy\n * @param {Array} arr Keys to omit\n * @returns {Object}\n */\nexport con... | javascript | chosen |
[
{
"from": "system",
"value": "Use includes to make code simplier\n"
},
{
"from": "human",
"value": "export function getInterfaceLanguage() {\n if (!!navigator && !!navigator.language) {\n return navigator.language;\n } else if (!!navigator && !!navigator.languages && !!navigator.languages[0... | javascript | chosen |
[
{
"from": "system",
"value": "Split up assignment logic and add elucidating comment\n\nThis is the first in a line of commit intended to make this module more useable\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\n\n/*\n * read *.<type> files at given `path',\n * re... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing quotes to template"
},
{
"from": "human",
"value": "/**\n * @author {{{author}}}\n * @since {{{date}}}\n */\n\n(function () {\n 'use strict';\n\n angular\n .module({{{moduleName}}})\n .constant({{{elementName}}},\n // Add your ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix merge conflict in js tests\n"
},
{
"from": "human",
"value": "/*global mocha, mochaPhantomJS, sinon:true, window */\n'use strict';\n\nvar $ = require('jquery'),\n chai = require('chai'),\n sinon = require('sinon'),\n sinonChai = require('sinon-chai'),\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment about future work in confUrl\n"
},
{
"from": "human",
"value": "'use strict';\n// Handles params concerning configuration files in the $routeProvider phase\nangular.module('arethusa.core').factory('confUrl', [\n 'CONF_PATH',\n '$route',\n function (CO... | javascript | chosen |
[
{
"from": "system",
"value": "Add commented includePaths parameters for grunt-sass in case of Foundation usage\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n //grunt-sass\n grunt.config('sass', {\n options: {\n outputStyle: 'expanded',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor the twitter manager search methods with promises.\n"
},
{
"from": "human",
"value": "module.exports = (function(){\n\n\t// GET /users/:id/media?lat=<LAT>&lng=<LNG>&time=<TIME>\n\treturn function* collection(id) {\n\n\t\t// Twitter Requests\n\t\tvar TwitterM... | javascript | chosen |
[
{
"from": "system",
"value": "Use angular timeout directive instead of setTimeout.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\"hikeio\").\n\tdirective(\"giveFocus\", function() {\n\treturn {\n\t\tlink: function(scope, element, attributes) {\n\t\t\tscope.$watch(attribut... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regexp for theme changes\n"
},
{
"from": "human",
"value": "/*******************************\n Default Paths\n*******************************/\n\nmodule.exports = {\n base : '',\n\n theme : './src/theme.config',\n\n docs : {\n source : '../docs/... | javascript | chosen |
[
{
"from": "system",
"value": "fix(Router): Add lang to payload if payload doesn't exist\n\ncloses #16134\n"
},
{
"from": "human",
"value": "import { langSelector } from './';\n\n// This enhancers sole purpose is to add the lang prop to route actions so that\n// they do not need to be explicitall... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the url of message\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar supertest = require('supertest');\nvar logger = require('log4js').getLogger('Unit-Test');\nvar nconf = require('nconf');\nnconf.argv()\n\t\t .env()\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Use logger module instead of console for the dummy browser runner sagas\n\nSigned-off-by: Victor Porof <4f672cb979ca45495d0cccc37abaefc8713fcc24@gmail.com>\n"
},
{
"from": "human",
"value": "/*\nCopyright 2016 Mozilla\n\nLicensed under the Apache License, Version 2.... | javascript | chosen |
[
{
"from": "system",
"value": "[babel] Update preset to be able to detect if it's run from Webpack's babel-loader\n"
},
{
"from": "human",
"value": "module.exports = function() {\n return {\n presets: ['module:metro-react-native-babel-preset'],\n plugins: [\n [\n 'babel-plugin-... | javascript | chosen |
[
{
"from": "system",
"value": "Fix validation issue on events\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar schema = require('validate');\n\nvar Event = mongoose.model('Event', {\n name: String,\n start: Date,\n end: Date,\n group: String,\n notify: Boolean\n});... | javascript | chosen |
[
{
"from": "system",
"value": "Remove async from mongosoe query\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport passport from 'passport';\nimport {Strategy as LocalStrategy} from 'passport-local';\n\nfunction localAuthenticate(User, email, password, done) {\n User.findOneAsync({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add singleGroup publication, clarifying comments\n"
},
{
"from": "human",
"value": "Meteor.publish('allGroups', function () {\n return Groups.find();\n});\n"
},
{
"from": "gpt",
"value": "Meteor.publish('allGroups', function () {\n // Publish all group... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bower config value for tests"
},
{
"from": "human",
"value": "var fs = require('fs'),\n Libraries = require('../lib/libraries'),\n should = require('should');\n\ndescribe('Libraries', function() {\n describe('#bowerLibraries', function() {\n var readdi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix testcase source maps and hide console.warn messages\n"
},
{
"from": "human",
"value": "require('ts-node').register({ fast: true, compilerOptions: { target: 'es2015', } })\nrequire('source-map-support/register')\nrequire('jsdom-global/register')\nrequire('raf').... | javascript | chosen |
[
{
"from": "system",
"value": "Add select test for json columns\n"
},
{
"from": "human",
"value": "var chai = require('chai'),\n expect = chai.expect,\n sql = require('../psql');\n\ndescribe('select', function() {\n it('should generate a select statement with an asterisk with no arguments'... | javascript | chosen |
[
{
"from": "system",
"value": "Decrease high timeout in ci\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('./webpack.config');\n\nprocess.env.CHROME_BIN = require('puppeteer').executablePath();\n\nmodule.exports = function (config) {\n config.set({\n bas... | javascript | chosen |
[
{
"from": "system",
"value": "Test JSON extension deoes not apply for 204 status responses.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar JsonExtension = require('../../src/json');\n\nvar expect = require('chai').expect;\n\ndescribe('JsonExtension', function () {\n var ext;\n\n befor... | javascript | chosen |
[
{
"from": "system",
"value": "Add more keywords to ruby sandbox\n"
},
{
"from": "human",
"value": "const {VM} = require('vm2')\nconst exec = require('child_process').exec\n\nmodule.exports = {\n js: code => {\n const vm = new VM()\n try {\n return vm.run(code).toString()\n } catch... | javascript | chosen |
[
{
"from": "system",
"value": "Use relative path for html plugin\n"
},
{
"from": "human",
"value": "const HtmlWebPackPlugin = require(\"html-webpack-plugin\")\n\nmodule.exports = {\n entry: {\n main: __dirname + \"/src/DragRange.jsx\",\n viewer: __dirname + \"/src/index.js\",\n },\n\n ou... | javascript | chosen |
[
{
"from": "system",
"value": "Add .ts files to loader\n"
},
{
"from": "human",
"value": "const path = require(\"path\")\n\nconst PATHS = {\n app: path.join(__dirname, 'src/index.tsx'),\n}\n\nmodule.exports = {\n entry: { \n app: PATHS.app,\n },\n output: {\n path: __dirname + '/dist',... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to new babel/react-transform build pipeline\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n entry: [\n path.resolve(__dirname, \"src\", \"r3test.js\"),\n \"webpack/hot/dev-server... | javascript | chosen |
[
{
"from": "system",
"value": "Make plop file optional, and expose plop.setGenerator() function to allow dynamic creation of generator configs.\n"
},
{
"from": "human",
"value": "require('core-js'); // es2015 polyfill\nvar path = require('path');\nvar plopBase = require('./modules/plop-base');\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Use HashRouter for fix gh-page routing.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { render } from 'react-dom'\nimport './index.css'\nimport '../semantic/dist/semantic.min.css';\n\nimport Exame from './Exame.js'\nimport Result from './Resul... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console logging from figuring out graphjs.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n\n didInsertElement() {\n Chart.defaults.global.responsive = true;\n Chart.defaults.global.le... | javascript | chosen |
[
{
"from": "system",
"value": "Improve(debug): Use loggin on debug mode\n"
},
{
"from": "human",
"value": "/** @babel */\n\nimport { applyMiddleware, createStore } from 'redux'\nimport createLogger from 'redux-logger'\nimport createSagaMiddleware from 'redux-saga'\nimport reducers, { initialState... | javascript | chosen |
[
{
"from": "system",
"value": "Fix item list length bug when rendering tabless design\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\nvar TaxonPresenter = require('./presenters/taxon-presenter.js');\n\nrouter.get('/', function (req, res) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update displayName of wrapped component to include HoC name\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport PropTypes from 'prop-types'\n\nexport const getContextualizer = (propTypes, targetProp) => {\n class ContextProps extends... | javascript | chosen |
[
{
"from": "system",
"value": "Create different instances of the cluster for producers and consumers\n"
},
{
"from": "human",
"value": "const { createLogger, LEVELS: { INFO } } = require('./loggers')\nconst logFunctionConsole = require('./loggers/console')\nconst Cluster = require('./cluster')\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"test: make test fail\"\n\nThis reverts commit 6e23d7e72ae9379a18b756d609985065a840b3d7.\n"
},
{
"from": "human",
"value": "/**\n * Returns a very important number.\n *\n * @returns {number} - The number.\n */\nexport default function theDefaultExport() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES6 syntax fat arrow instead of using 'function'\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\n\n// Create a new component to produce some html\nconst App = function () { // const means that this is the final... | javascript | chosen |
[
{
"from": "system",
"value": "Add component as function support\n"
},
{
"from": "human",
"value": "\nimport h from 'snabbdom/h'\nimport extend from 'extend'\n\nconst sanitizeProps = (props) => {\n\n props = props === null ? {} : props\n\n Object.keys(props).map((prop) => {\n const keysRiver... | javascript | chosen |
[
{
"from": "system",
"value": "Add the ability to override the readFile function\n"
},
{
"from": "human",
"value": "import { createFilter } from 'rollup-pluginutils';\nimport { resolve as resolveSourceMap } from 'source-map-resolve';\nimport { readFile } from 'fs';\n\nexport default function sour... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments about ui-postcss in docs\n"
},
{
"from": "human",
"value": "module.exports = {\n plugins: {\n '@wearegenki/ui-postcss': {},\n },\n};\n"
},
{
"from": "gpt",
"value": "module.exports = {\n plugins: {\n '@wearegenki/ui-postcss': {},\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove new lines from text areas on save.\n\nResolves #390\n"
},
{
"from": "human",
"value": "//\n// textEditView\n// Modify text based on a textarea\n//\n\nimport ItemView from 'base/item-view';\n\nexport default ItemView.extend({\n template: 'editTextView',\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Include sourcesContent in source map\n"
},
{
"from": "human",
"value": "/* eslint-disable no-console */\nimport { createFilter } from 'rollup-pluginutils';\nimport { resolveSourceMap } from 'source-map-resolve';\nimport { readFile } from 'fs';\nimport { promisify } ... | javascript | chosen |
[
{
"from": "system",
"value": "Add react tap event plugin\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { render } from 'react-dom';\nimport { Provider } from \"react-redux\";\nimport { createStore, applyMiddleware } from \"redux\";\nimport thunk from \"redux-thunk\";\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Include from the functions directory\n"
},
{
"from": "human",
"value": "//Get the required shit together\nconst config = require(\"./config.json\");\nconst Discord = require(\"discord.js\");\nconst client = new Discord.Client();\nconst MSS = require(\"./functions/\"... | javascript | chosen |
[
{
"from": "system",
"value": "Change command title and hide from palette\n"
},
{
"from": "human",
"value": "define([\n \"text!src/templates/command.html\"\n], function(commandTemplate) {\n var commands = codebox.require(\"core/commands\");\n var dialogs = codebox.require(\"utils/dialogs... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing root css import\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { render } from \"react-dom\";\nimport Root from \"./Root\";\n\nrender(\n React.createElement(Root),\n document.getElementById(\"root\")\n);\n"
},
{
"from":... | javascript | chosen |
[
{
"from": "system",
"value": "Use App component in render\n\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { render } from 'react-dom'\nimport createStore from './createStore'\n\nconst store = createStore()\n\nrender(\n <h1>Hello from React</h1>,\n document.getElementById... | javascript | chosen |
[
{
"from": "system",
"value": "Fix getPort and add readFile\n\ngetPort was considering bind to 0.0.0.0 instead of 127.0.0.1.\nreadFile added to provide a promise-based version of fs.readFile"
},
{
"from": "human",
"value": "import pf from 'portfinder';\n\n\nexport function homedir() {\n return p... | javascript | chosen |
[
{
"from": "system",
"value": "Remove superflous settings option on dredd command\n"
},
{
"from": "human",
"value": "import { lazyFunctionRequire } from 'roc';\n\nimport config from '../config/roc.config.js';\nimport meta from '../config/roc.config.meta.js';\n\nconst lazyRequire = lazyFunctionReq... | javascript | chosen |
[
{
"from": "system",
"value": "Fix url to be not nested.\n"
},
{
"from": "human",
"value": "define([\n 'underscore',\n 'backbone',\n 'models/section',\n 'config'\n], function (_, Backbone, Section, config) {\n 'use strict';\n\n var SectionCollection = Backbone.Collection.extend({\n model... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug if mongoose path does not exist\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar fs = require('extfs');\nvar mongoose = require('mongoose');\nimport { AbstractDB } from './AbstractDB';\nimport { Core } from '../Core/Core';\n\nexport clas... | javascript | chosen |
[
{
"from": "system",
"value": "Update test: Run against all test images\n"
},
{
"from": "human",
"value": "var Disk = require( '../' )\nvar BlockDevice = require( 'blockdevice' )\nvar assert = require( 'assert' )\n\nconst DISK_IMAGE = __dirname + '/data/bootcamp-osx-win.bin'\n\ndescribe( 'Disk', ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename \"Label\" to \"TextView\" in jquery example\n\nDone to reflect eclipsesource/tabris-js@ca0f105e82a2d27067c9674ecf71a93af2c7b7bd\n\nChange-Id: I1c267e0130809077c1339ba0395da1a7e1c6b281\n"
},
{
"from": "human",
"value": "// jQuery built with \"grunt custom:-aja... | javascript | chosen |
[
{
"from": "system",
"value": "Reword test for add string and find string\n"
},
{
"from": "human",
"value": "var Trie = require('../app/trie');\n\ndescribe('Trie', function() {\n var trie;\n\n beforeEach(function() {\n trie = new Trie();\n });\n\n it('should be an object', function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use vanilla-ujs LiteAjax for user settings sending\n"
},
{
"from": "human",
"value": "jQuery(function(){\n var body = jQuery('body');\n var settings_path = body.data('settings-path');\n\n body.on('settingssave', function( event, key_or_settings, value )\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use creatError and logErrorExit to handle errors\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict';\n\nvar pkg = require('../package.json')\nvar cli = require('commander');\n\nvar fs = require('fs');\nvar path = require('path');\nvar spawn =... | javascript | chosen |
[
{
"from": "system",
"value": "Use a 10-second timeout for the Jest test\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport webpack from 'webpack';\nimport config from '../webpack.config';\n\ndescribe('example', () => {\n it('combines loader results into one object', () =>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"moveFeature\" tool initialization errors\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n if (window.ol && ol.source && !ol.source.VectorEventType) {\n // HACK: monkey patch event types not present in current OL6 repackage bui... | javascript | chosen |
[
{
"from": "system",
"value": "Use highp for derivatives calculations in perturb normal\n\nFixes #258"
},
{
"from": "human",
"value": "module.exports = /* glsl */ `\n#if !defined(USE_TANGENTS) && (defined(USE_NORMAL_MAP) || defined(USE_CLEAR_COAT_NORMAL_MAP))\n //http://www.thetenthplanet.de/arc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken link in comment"
},
{
"from": "human",
"value": "/*!\n{\n \"name\": \"CSS Animations\",\n \"property\": \"cssanimations\",\n \"caniuse\": \"css-animation\",\n \"polyfills\": [\"transformie\", \"csssandpaper\"],\n \"tags\": [\"css\"],\n \"warnings\":... | javascript | chosen |
[
{
"from": "system",
"value": "Remove finishedLoading() call, remove a.close on click method - not using, it was there for trying out items purposes\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed b... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor rating jquery to clear rating form on submit\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n $(\"#progress\").on('submit', '.new_rating', function(event) {\n event.preventDefault();\n const $form = $(this),\n url = $for... | javascript | chosen |
[
{
"from": "system",
"value": "Move lists to the left\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport styled from \"styled-components\";\n\nimport { Row, RowContent, ColumnContainer } from \"../SharedComponents.js\";\n\nimport Loading from \"../loading.js\";... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure append doesn't create an empty line when the first line of code is added\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\nconst program = require('commander');\nconst addLineNumbers = require('add-line-numbers');\nconst fs = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Set cache buster equal to 0 when there is no affected tables in the mapconfig\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function setLastUpdatedTimeToLayergroup () {\n return function setLastUpdatedTimeToLayergroupMiddleware (req, res, n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mobile hamburger menu contents not appearing\n"
},
{
"from": "human",
"value": "import $ from 'jquery';\n\nexport default function() {\n const $mobileMenuTrigger = $('[data-mobilemenu]');\n const $header = $('.header');\n const headerHeight = $('.header... | javascript | chosen |
[
{
"from": "system",
"value": "Add control buttons to auth\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport PropTypes from 'prop-types';\nimport jwtDecode from 'jwt-decode';\nimport styles from './styles.scss';\n\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add link to link to each page\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { Link } from 'react-router-dom';\nimport { fetchPosts } from '../actions';\n\n\nclass PostsIndex ext... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.