conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add initial tests for CI\n"
},
{
"from": "human",
"value": "/**\n * Created by Dmytro on 4/11/2016.\n */\n"
},
{
"from": "gpt",
"value": "/**\n * Created by Dmytro on 4/11/2016.\n */\n\ndescribe('Initial test for CI', function() {\n\n it('should pass'... | javascript | chosen |
[
{
"from": "system",
"value": "Return an array of an array from tickValues on conversion graph.\n\nIn commit cf5dabaa5edff06db0e8c6f321def0b7e4be209a we started using\n.apply to allow us to pass multiple values to D3 functions. In this case\nwe want to treat the results of tickValues as a single argument, no... | javascript | chosen |
[
{
"from": "system",
"value": "Include the CHANGELOG in distributed versions of the plugin\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n\tgrunt.initConfig({\n\t\tcopy: {\n\t\t\tmain: {\n\t\t\t\tsrc: [\n\t\t\t\t\t'languages/*',\n\t\t\t\t\t'advanced-post-excerpt.php',\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add git repository and version to grunt Changelog\n"
},
{
"from": "human",
"value": "\nmodule.exports = function(grunt) {\n\n // Project configuration.\n grunt.initConfig({\n dox: {\n options: {\n title: \"Rebelizer API Docs\"\n },\n files... | javascript | chosen |
[
{
"from": "system",
"value": "Remove default form submit behavior\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar React = require('react');\n\nmodule.exports = React.createClass({\n\n displayName: 'Home',\n\n getInitialState: function(){\n return {};//getStateFromStores();... | javascript | chosen |
[
{
"from": "system",
"value": "Integrate with modified property, dupairs, of AnalyzedCFG\n"
},
{
"from": "human",
"value": "/**\n * Created by ChengFuLin on 2015/6/10.\n */\nvar factoryAnalyzedCFG = require('../../lib/dujs').factoryAnalyzedCFG,\n should = require('should');\n\ndescribe('Analyz... | javascript | chosen |
[
{
"from": "system",
"value": "Check new box. FIXME: Uncheck old one\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n hide_frequency();\n $(\"#id_repeats_0\").click(function() {\n\t\tif ($(\"#id_count\").val() > 1) {\n\t\t\tshow_frequency();\n\t\t} else {\n\t\t\thide_fr... | javascript | chosen |
[
{
"from": "system",
"value": "Revert the ,bgimage: define.classPath(this) to require, since the correct new way of loading local resources for WebGL causes an exception in Dali.\n/root/teem/dreemgl-dev/classes/ui/view.js:532\n\t\t\t\tif(require.loaded(this._bgimage)){\n\nbgimagemode:\"stretch\" is left in t... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"fix scroll low framerate\"\n\nThis reverts commit 1ad82adaec7893b2478dd75de4d5a171ea58a015.\n"
},
{
"from": "human",
"value": "'use strict';\n\n$(function () {\n // Handler for .ready() called.\n $('[data-scrollToLink]').each(function (i, l) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use statics for parseQuery modes (easier to read)\n"
},
{
"from": "human",
"value": "const HASH = '#'.charCodeAt(0);\nconst DOT = '.'.charCodeAt(0);\n\nexport const parseQuery = (query) => {\n let tag = null;\n let id = null;\n let className = null;\n let mode =... | javascript | chosen |
[
{
"from": "system",
"value": "Allow install check script to work in chrome.\n"
},
{
"from": "human",
"value": "// buffer-install-check.js\n// (c) 2013 Buffer\n// Adds an element to our app page that we can use to check if the browser has our extension installed.\n\nvar bufferMarkOurSite = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Allow reserving both tokens and percentage for same address\n"
},
{
"from": "human",
"value": "import { observable, action } from 'mobx';\n\nclass ReservedTokenStore {\n\n @observable tokens;\n\n constructor(tokens = []) {\n this.tokens = tokens;\n }\n\n @act... | javascript | chosen |
[
{
"from": "system",
"value": "Put spaces between joined members in group updates\n"
},
{
"from": "human",
"value": "/* vim: ts=4:sw=4:expandtab\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as publishe... | javascript | chosen |
[
{
"from": "system",
"value": "Use base color when hovering a connector\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Group } from 'react-art';\nimport Connector from './Connector.js';\nimport DrawingUtils from '../utils/DrawingUtils.js';\nimport { getDisplayName } from ... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare for new Yeoman Generator prompt()s.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Generator = module.exports = function () {\n\tvar cb = this.async();\n\n\tthis.prompt([{\n\t\tname: 'path',\n\t\tmessage: 'Where would you like to generate it?',\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix de deserializer for data: null\n"
},
{
"from": "human",
"value": "'use strict';\nvar _ = require('lodash');\nvar P = require('bluebird');\nvar humps = require('humps');\nvar Schemas = require('../generators/schemas');\n\nfunction ResourceDeserializer(model, para... | javascript | chosen |
[
{
"from": "system",
"value": "Description: Add grunt serve command and remove server launch from grunt default command\n\nFeature(s) impacted:\nAuthor: Arnaud J\nRoot cause:\nTest performed:\nTest result: Pass\nReviewer(s):\nNumber of findings: 0\nProblem(s): 0\nResolution(s): 0\n"
},
{
"from": "hum... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Also reactivate source maps for HMR development\"\n\nThis reverts commit 72ba077b28bb60a3b7a253b478337c3b3fb4a23e.\n"
},
{
"from": "human",
"value": "import baseConfig from './webpack.local.config.js';\n\n\nmodule.exports = (opts) => {\n\n let config = bas... | javascript | chosen |
[
{
"from": "system",
"value": "Handle search retrievers returning nothing\n"
},
{
"from": "human",
"value": "import { action, observable, computed } from 'mobx'\n\n\n\nclass SearchDomain {\n\n @observable\n searchText = ''\n\n constructor(items = [], retrievers) {\n this.items = items\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'NODE_ENV' environment variable plugin.\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst webpack = require('webpack');\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\nconst CopyWebpackPlugin = require('copy-webpack-pl... | javascript | chosen |
[
{
"from": "system",
"value": "Add tracking for declaration interactions\n\nUses virtual page views because they are the only\nform of interaction Google Analytics can track\nwhich appears in conversion funnels.\n\nWe are interested in knowing:\n\n1. if visitors to the page interact with the form\n2. if they... | javascript | chosen |
[
{
"from": "system",
"value": "Add classname to permissions data cell for testing\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport Immutable from 'immutable';\nimport { Table } from 'react-bootstrap';\nimport { AUTHENTICATED_USER } from '../../../utils/Consts/U... | javascript | chosen |
[
{
"from": "system",
"value": "Add algolia in site config\n"
},
{
"from": "human",
"value": "// See https://docusaurus.io/docs/site-config for all the possible\n// site configuration options.\n\nconst siteConfig = {\n title: 'Coursier',\n tagline: 'Pure Scala Artifact Fetching',\n\n // wiped w... | javascript | chosen |
[
{
"from": "system",
"value": "Fix routing deprecation for Ember 2.13\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport Config from 'ember-routable-modal/configuration';\n\nexport default Ember.Service.extend({\n routing: Ember.inject.service('-routing'),\n routeName: nu... | javascript | chosen |
[
{
"from": "system",
"value": "Add db handling to sections\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport update from 'immutability-helper';\nimport * as firebase from 'firebase';\nimport { Field } from '../Field';\nimport { notifications } from '../../service/notifications... | javascript | chosen |
[
{
"from": "system",
"value": "Include applicant emails on application dashboard\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ClubApplicationForm from 'components/apply/ClubApplicationForm'\n\nexport default props => (\n <ClubApplicationForm params={props.application} dis... | javascript | chosen |
[
{
"from": "system",
"value": "Add tags to added activities\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nclass AddActivityForm extends Component {\n\n createActivity(e) {\n e.preventDefault();\n const activity = {\n description: this.desc... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor toJSON to call __toJSON\n"
},
{
"from": "human",
"value": "\nfunction createModel(resource) {\n\n // Dynamically create constructor for model\n // TODO: Type checking + required vs non-required\n var _createModel = function(obj) {\n obj = obj || {};\n... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up the _pool namespace as well as _pool[name] and _counts\n"
},
{
"from": "human",
"value": "jsio('from shared.javascript import Class')\n\nexports = Class(function(){\n\t\n\tthis.init = function() {\n\t\tthis._pool = {}\n\t\tthis._counts = {}\n\t\tthis._uniqu... | javascript | chosen |
[
{
"from": "system",
"value": "Make axios compatible with Request::ajax()\n\nIt seems the library doesn't send the `X-Requested-With: XMLHttpRequest` header by default, if it's not present `$request->ajax()` always returns false."
},
{
"from": "human",
"value": "\nwindow._ = require('lodash');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Improve notifications around the remove package command\n"
},
{
"from": "human",
"value": "'use babel';\n\nimport DependenciesView from '../views/DependenciesView';\nimport getDependencies from '../yarn/get-dependencies';\nimport yarnExec from '../yarn/exec';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Remove useless if check statement\n"
},
{
"from": "human",
"value": "var amqp = require('amqplib');\n\nvar amqpUrl, amqpConnection, intervalID;\n\nfunction connect(_amqpUrl) {\n amqpUrl = amqpUrl || _amqpUrl || process.env.AMQP_URL || 'amqp://localhost';\n\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Fix transparent issue of search input\n"
},
{
"from": "human",
"value": "module.exports = {\n inputStyle: {\n \"border\": `1px solid transparent`,\n \"borderRadius\": `1px`,\n \"boxShadow\": `0 2px 6px rgba(0, 0, 0, 0.3)`,\n \"boxSizin... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused paramter in ReadableProxy._readOnce.\n"
},
{
"from": "human",
"value": "var inherits = require('util').inherits;\nvar Readable = require('stream').Readable;\n\nfunction ReadableProxy(stream, options, nil) {\n Readable.call(this, options);\n\n thi... | javascript | chosen |
[
{
"from": "system",
"value": "Stop augmenting the error message\n"
},
{
"from": "human",
"value": "var async = require('async')\nvar RSVP = require('rsvp')\n\nvar transformers = require('../transformers')\nvar Component = require('../component').Component\n\n\nexports.CompilerCollection = Compil... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce events frequency: 1% -> 0.5%\n"
},
{
"from": "human",
"value": "import React, { PropTypes, Component } from 'react'\nimport moment from 'moment'\n\nimport eventActions from '../actions/eventActionCreators'\n\nconst TIME_INIT = moment('2190-07-02').utc()\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Fix attempt to offline leak\n"
},
{
"from": "human",
"value": "const axios = require('axios')\n\nconst isOnline = async (req, res) => {\n try {\n const {status} = await axios.get('https://myanimelist.net')\n\n res.status(status === 200 ? 200 : 204).send()\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify creation of alerts for each level\n"
},
{
"from": "human",
"value": "Handlebars.registerHelper('session', function(input) {\n \"use strict\";\n return Session.get(input);\n});\n\nvar createAlert = function (level) {\n\t\"use strict\";\n\tHandlebars.regist... | javascript | chosen |
[
{
"from": "system",
"value": "Add typedefs for Cassandra query\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Promise = require('promise');\n\n/** Execute a batch of mutations\n * @param {Array<{mutation: string, params: Array<string|number|map}>} mutations\n * @returns {Promise}\n */... | javascript | chosen |
[
{
"from": "system",
"value": "Hide composed pots from inventory\n"
},
{
"from": "human",
"value": "import {theInv} from './options';\n\nexport default function decorate() {\n if (theInv.folders) {\n theInv.folders['-1'] = 'Main';\n }\n // Hide composed potions until Zorg fixes the feed\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use generic user name in script.\n"
},
{
"from": "human",
"value": ".pragma library\n\nvar homePath = \"file:///home/denexter\";\nvar illegalCharacters = /(\\(.*\\)|\\{.*\\}|\\[.*\\]|<.*>|[\\(\\)_\\{\\}\\[\\]\\!@#$^&*+=|\\/\"'?~`])/g\nvar whitespace = /\\s+/g\n\nfun... | javascript | chosen |
[
{
"from": "system",
"value": "Add default description on client side\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport Profile from '../components/Profile.jsx';\nimport { completeUpdate } from '../actions/index.js';\nimport request from 'then-request';\n\nconst ma... | javascript | chosen |
[
{
"from": "system",
"value": "FIx path to native modules\n\nReact-Native packager error `Unable to resolve module NativeModules from .../node_modules/react-native-audioplayer/AudioPlayer.js`\r\nThis seems to fix it."
},
{
"from": "human",
"value": "'use strict';\n\nvar RNAudioPlayer = require('N... | javascript | chosen |
[
{
"from": "system",
"value": "Add Laracasts full width vdeo description"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Laracasts - Full Width Video\n// @namespace http://tampermonkey.net/\n// @version 1.0\n// @description try to take over the world!\n// @author ... | javascript | chosen |
[
{
"from": "system",
"value": "Add linear filter on image little planet texture\n"
},
{
"from": "human",
"value": "( function () {\n\n\t/**\n\t * Image Little Planet\n\t * @param {string} source \t\t- URL for the image source\n\t * @param {number} [size=10000] - Size of plane geometry\n\t * @para... | javascript | chosen |
[
{
"from": "system",
"value": "Use strict mode in Jasmine specs\n\nOtherwise, Jasmine fails on CircleCI because it says I can't use\nblock-level declarations (let / const) outside of a strict block.\nBooooo. https://circleci.com/gh/briandk/transcriptase/84\n"
},
{
"from": "human",
"value": "descr... | javascript | chosen |
[
{
"from": "system",
"value": "Modify the style of logged in caption.\n\n- Change it to a button, same style as not logged in yet.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Layout from './layout';\n\nconst Introduction = () => (\n <p>\n Depcheck looks at your proje... | javascript | chosen |
[
{
"from": "system",
"value": "Fix URL argument to wasmFolder to be string, not array\n\nFixes https://github.com/magjac/d3-graphviz/issues/154\n\nFor some reason this incorrectness was working in @hpcc-js/wasm\nversion 0.3.11 and before, but with the changes in\nhttps://github.com/hpcc-systems/hpcc-js-wasm/... | javascript | chosen |
[
{
"from": "system",
"value": "Make legend a bit better\n"
},
{
"from": "human",
"value": "\nrequirejs.config({\n\tpaths: {\n\t\t'jquery': './lib/components/jquery/dist/jquery.min'\n\t}\n});\n\nrequire( [ 'src/graph' ] , function( Graph ) {\n\n\tvar functions = [\n\nfunction( domGraph ) {\n\n\tva... | javascript | chosen |
[
{
"from": "system",
"value": "Add Gift Aid statement before revoke button.\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default ({ confirmation, which_text, which_delete, reset }) =>\n <div>\n <p><b>Would you like to revoke your Gift Aid declaration?</b></p>\n <b... | javascript | chosen |
[
{
"from": "system",
"value": "Update fetchBans for d.js inc\n"
},
{
"from": "human",
"value": "module.exports = Cmds.addCommand({\n cmds: [';unban ', ';remban '],\n\n requires: {\n guild: true,\n loud: false,\n },\n\n desc: 'Unban a user from the guild',\n\n args: '(... | javascript | chosen |
[
{
"from": "system",
"value": "Update to a new extension execution struction.\n\nAdd global variable to verify pre-execution script gets injected\nonly once.\nChange pre-execution script from sendMessage to executeScript\nbecause script functionality has changed.\nChange collapse/expand script from executeSc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Remove unintended POST request when loading subtitles\n"
},
{
"from": "human",
"value": "/**\n * Moovie: an advanced HTML5 video player for MooTools.\n * @copyright 2010 Colin Aarts\n * @license MIT\n */\nimport { WebSRT } from './WebSRT.js';\nimport { WebVTT }... | javascript | chosen |
[
{
"from": "system",
"value": "Allow ember canary to fail\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\nmodule.exports = {\n scenarios: [\n {\n name: 'ember-lts-2.8',\n bower: {\n dependencies: {\n 'ember': 'components/ember#lts-2-8'\n },\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the presence validator test\n"
},
{
"from": "human",
"value": "describe('validator.presence', function() {\n var presence = validate.validators.presence;\n\n it(\"doesn't allow empty values\", function() {\n expect(presence('', {})).toBeDefined();\n expe... | javascript | chosen |
[
{
"from": "system",
"value": "Update the way we assert newly created contacts\n"
},
{
"from": "human",
"value": "const selectors = require('../../../../selectors')\nconst userActions = require('../../support/user-actions')\n\ndescribe('Contacts', () => {\n const data = {\n name: 'NewAddress'... | javascript | chosen |
[
{
"from": "system",
"value": "Add level to computer core damage report template\n"
},
{
"from": "human",
"value": "import { greekLetters, randomFromList } from \"../constants\";\n\nexport default (_, { name, stations, displayName = name }) => {\n // Find the station with the probe construction\... | javascript | chosen |
[
{
"from": "system",
"value": "Use double quotes in error messages\n"
},
{
"from": "human",
"value": "function validateCacheSize(cacheSize) {\n if (cacheSize === undefined) {\n throw new Error('Missing the required property `cacheSize`.');\n }\n if (!Number.isInteger(cacheSize) || cacheSize... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error if native bridge is not available\n\nFixes #73\n"
},
{
"from": "human",
"value": "import { GoogleAnalyticsBackwardsCompability } from './src/GoogleAnalyticsBackwardsCompability';\nimport { GoogleAnalyticsTracker } from './src/GoogleAnalyticsTracker';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Make it so that metadata repository doesn't prompt with fake server\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar request = require('superagent');\nvar glimpse = require('glimpse');\nvar util = require('../../lib/util');\n\nvar uriTemplate = require(\"uri-... | javascript | chosen |
[
{
"from": "system",
"value": "Support babel on browser process\n"
},
{
"from": "human",
"value": "require('coffee-script/register');\nrequire('./lib/cl');\nrequire('./app');\n"
},
{
"from": "gpt",
"value": "require('coffee-script/register');\nrequire('babel-register')(require('./babe... | javascript | chosen |
[
{
"from": "system",
"value": "Disable derequire in test environments by default\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nvar derequire = require('broccoli-derequire');\n\nmodule.exports = {\n name: 'ember-derequire',\n\n included: function(app) {\n this._... | javascript | chosen |
[
{
"from": "system",
"value": "Clear the heartbeat interval once data is flushed\n"
},
{
"from": "human",
"value": "var util = require('util')\nvar assert = require('assert')\nvar Transform = require('stream').Transform\n\nvar ChangesResponse = module.exports = function(options) {\n var self = t... | javascript | chosen |
[
{
"from": "system",
"value": "Convert this class to ES6\n"
},
{
"from": "human",
"value": "'use strict';\nconst gutil = require('gulp-util');\nconst through = require('through2');\nconst meta = require('jsforce-metadata-tools');\n\nmodule.exports = function(options) {\n return through.obj(funct... | javascript | chosen |
[
{
"from": "system",
"value": "Hide a reader for now.\n"
},
{
"from": "human",
"value": "export default {\n name: 'ArticleNav',\n configure (config) {\n config.addLabel('mode', 'Mode')\n config.addViewMode({\n name: 'open-manuscript',\n viewName: 'manuscript',\n commandGrou... | javascript | chosen |
[
{
"from": "system",
"value": "Enable SSL communication for PubNub\n\nThis makes the communication with PubNub more secure. this update sends device info, including lng/lat coordinates, so its best to use SSL."
},
{
"from": "human",
"value": "import EventEmitter from \"events\";\nimport PubNub f... | javascript | chosen |
[
{
"from": "system",
"value": "Add Supercollider class as a separate module export\n"
},
{
"from": "human",
"value": "function Supercollider() {\n this.options = {};\n this.searchOptions = {};\n this.adapters = {};\n this.tree = [];\n this.template = null;\n}\n\nSupercollider.prototype.init ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix select to trigger change event\n"
},
{
"from": "human",
"value": "/**\n * @class CM_FormField_Set_Select\n * @extends CM_FormField_Set\n */\nvar CM_FormField_Set_Select = CM_FormField_Set.extend({\n\t_class: 'CM_FormField_Set_Select'\n});"
},
{
"from": "... | javascript | chosen |
[
{
"from": "system",
"value": "Undo applying macro to example\n"
},
{
"from": "human",
"value": "\ndescribe('My module', () => {\n beforeEach(() => {\n myModule = injectLoaderCompatibility(\n __dirname,\n '../src/my-module.js',\n {\n 'events': eventsMock,\n '../li... | javascript | chosen |
[
{
"from": "system",
"value": "Test that any() is curried\n"
},
{
"from": "human",
"value": "import test from 'ava'\nimport any from '../../packages/any'\n\ntest('any() of an empty array returns false', t => {\n t.is(any(i => i, []), false)\n})\n\ntest('any() of a list that fully matches the pre... | javascript | chosen |
[
{
"from": "system",
"value": "Add timed out message to Loader\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { CircularProgress } from 'material-ui';\n\nconst Loading = () => (\n <div style={{textAlign: 'center'}}>\n <CircularProgress mode='indeterminate' />\n </div>\... | javascript | chosen |
[
{
"from": "system",
"value": "Update: Refactor Javascript Directive Simple to match best practices\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('<%= scriptAppName %>')\n .directive('<%= cameledName %>', function () {\n return {\n template: '<div></div>',\n res... | javascript | chosen |
[
{
"from": "system",
"value": "Rename \"open\" method to \"show\"\n"
},
{
"from": "human",
"value": "var React = require('react/addons');\n\nvar Notification = React.createClass({\n\n /**\n * @function hide\n * @description Focus on the element.\n */\n open: function () {\n this.setSta... | javascript | chosen |
[
{
"from": "system",
"value": "Add clear click events test\n"
},
{
"from": "human",
"value": "import chai from 'chai';\nimport Game from '../lib/game';\nimport $ from \"jquery\";\nconst expect = chai.expect;\n\ndescribe('game', function () {\n after(function() {\n $('.game-table').remove();\n... | javascript | chosen |
[
{
"from": "system",
"value": "Send to slug after looking up new post\n"
},
{
"from": "human",
"value": "Template.postSubmit.events({\n 'submit form': function(e) {\n e.preventDefault();\n\n var post = {\n url: $(e.target).find('[name=url]').val(),\n title: $(e.target).find('[nam... | javascript | chosen |
[
{
"from": "system",
"value": "Replace `Once` with `OnceExit` to do the compression last"
},
{
"from": "human",
"value": "const { compress } = require('csso').syntax;\nconst postcssToCsso = require('./lib/postcssToCsso.js');\nconst cssoToPostcss = require('./lib/cssoToPostcss.js');\n\nmodule.expo... | javascript | chosen |
[
{
"from": "system",
"value": "Format rule history result table cell\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2019 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\nfoam.CLASS({\n package: 'foam.nanos.ruler',\n name: 'RuleHist... | javascript | chosen |
[
{
"from": "system",
"value": "Allow a user to get the content out of the config\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-content-for-config'\n};\n"
},
{
"from": "gpt",
"value": "/* jshint node: true */\n'use s... | javascript | chosen |
[
{
"from": "system",
"value": "Move require outside of function call. Maybe this will help.\n"
},
{
"from": "human",
"value": "var DeviceInformationLoader = function (require, exports, module) {\n var exec = require(\"cordova/exec\");\n \n function DeviceInformation () {}\n \n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jquery call to point to correct item/blog\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\n $('nav').children().eq(3).on('click', function(event){\n console.log(\"hi\")\n $.ajax({\n\n })\n })\n\n})\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix max number to use parseInt\n"
},
{
"from": "human",
"value": "process.stdin.resume();\nprocess.stdin.setEncoding('utf8');\n\nvar input = '';\n\nprocess.stdin.on('data', function(chunk) {\n input += chunk;\n});\n\nprocess.stdin.on('end', function() {\n\n var li... | javascript | chosen |
[
{
"from": "system",
"value": "Add built status to front-end transforms\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\n\nexport default DS.Transform.extend({\n deserialize: function(serialized) {\n var map = {\n 0: 'New',\n 4: 'Opened',\n 8: 'Closed',\n 1... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure polyfill is loaded before generators\n"
},
{
"from": "human",
"value": "// setup JSDOM\nrequire('jsdom-global')()\n\n// make document and global available globally\nconst jsdom = require('jsdom')\nconst { JSDOM } = jsdom\nconst { document } = (new JSDOM(''... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to implicitly import Jeet\n\nThis is handy for `stylus —use jeet` usage and probably other places. It removes the need to include `@import ‘jeet’` at the top of every file."
},
{
"from": "human",
"value": "var path = require('path');\nvar pkg = require('.... | javascript | chosen |
[
{
"from": "system",
"value": "Declare tabWidth to stop it from leaking globally\n"
},
{
"from": "human",
"value": "var repeat = require('lodash.repeat');\n\nmodule.exports = function(md, opts) {\n // default to being two spaces wide\n if (!opts || typeof opts.tabWidth === 'undefined') {\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in bower import path; now correctly loads Dompurify into the source tree\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'roundcube-mail',\n isDevelopingAddon: function() {\n return true;\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Include height in postcss pxtorem config\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst lost = require('lost');\nconst pxtorem = require('postcss-pxtorem');\nconst autoprefixer = require('autoprefixer');\n\nmodule.exports = [\n lost(),\n pxtorem({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use own isActiveTrial property for show upgrade CTA\n\nno issue\n\nThe subscription.status property was set for a Stripe response. Switch to a `isActiveTrial` custom property which we send from the BMA\n"
},
{
"from": "human",
"value": "import Component from '@ember... | javascript | chosen |
[
{
"from": "system",
"value": "Attach Invitations Schema to Invitations collection\n"
},
{
"from": "human",
"value": "Invitations = new Mongo.Collection(\"invitations\");\n\nInvitationsSchema = new SimpleSchema({\n emails: {\n type: [String],\n label: \"E-mail address(es)\",\n regex: Si... | javascript | chosen |
[
{
"from": "system",
"value": "Stop propatation here not longer needed\n\nIt was preventing the community menu to close\nNot needed since the join button has been removed in 3c51857\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('Teem')\n .directive('participate', function() ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor CreateAccount test with configurable multi asserts\n"
},
{
"from": "human",
"value": "var element = {\n form: '#openAccForm',\n firstNameInput: '#fname',\n familyNameInput: '#lname',\n emailInput: '#Email',\n dateofBirthInputs: '???',\n fi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove medias from NewTweetView if tweet is posted successfully\n"
},
{
"from": "human",
"value": "import {\n REMOVE_MEDIA_TO_TWEET,\n UPLOADED_MEDIA_TO_TWEET\n} from '../constants/ActionTypes';\n\nconst initialState = {\n medias: [],\n};\n\nexport default functi... | javascript | chosen |
[
{
"from": "system",
"value": "Disable module concatenation in the build file\n"
},
{
"from": "human",
"value": "const Kaba = require(\"kaba\");\n\nmodule.exports = (new Kaba())\n .addJavaScriptEntries({\n \"all-tests\": \"tests/build/all-tests.js\",\n })\n .setOutputPath(\"tests/... | javascript | chosen |
[
{
"from": "system",
"value": "Change routes to send back objects to use with ajax\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst router = express.Router();\n\nconst db = require('../queries');\n\nrouter.get('/api/todos', (req, res, next) => {\n db.getAllTodos()\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use DIM_FLAVOR, not DIM_VERSION, to set GA\n"
},
{
"from": "human",
"value": "window.ga = window.ga || function(...args) { (ga.q = ga.q || []).push(args); }; ga.l = Number(new Date());\n\nga('create', $DIM_VERSION === 'release' ? 'UA-60316581-1' : 'UA-60316581-5', '... | javascript | chosen |
[
{
"from": "system",
"value": "Send NOTICE messages to the correct channel\n\nFixes #177\n"
},
{
"from": "human",
"value": "var Msg = require(\"../../models/msg\");\n\nmodule.exports = function(irc, network) {\n\tvar client = this;\n\tirc.on(\"notice\", function(data) {\n\t\tvar lobby = network.c... | javascript | chosen |
[
{
"from": "system",
"value": "Use the Github API repo sorting.\n\nThe Github API can sort by pushed time, no need to do it manually.\nhttp://developer.github.com/v3/repos/#list-user-repositories\n\nThis is both more efficient, Github does the sorting, but it also\nfixes a bug. Because the list of results a... | javascript | chosen |
[
{
"from": "system",
"value": "Modify error message log UI\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport VarOneStore from '../../stores/varOne-store';\nimport connectToStores from 'alt/utils/connectToStores';\n\n\n@connectToStores\nexport default class VarOn... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure subscriptions from top bar are running\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('yamcs.intf', []);\n})();\n"
},
{
"from": "gpt",
"value": "(function() {\n 'use strict';\n\n angula... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to set the conf param through route matching\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\n 'arethusa', [\n 'mm.foundation',\n 'ngRoute',\n 'arethusa.core',\n 'arethusa.morph',\n 'arethusa.hist'\n ],\n function($route... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.