conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Allow augmented data passing to combineResources"
},
{
"from": "human",
"value": "var lumbar = require('../lumbar');\n\nfunction combineResources(context, callback) {\n var resources = context.resources || [];\n if (!resources.length) {\n return callback();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix logic for validating viewBox prop\n"
},
{
"from": "human",
"value": "const meetOrSliceTypes = {\n meet: 0,\n slice: 1,\n none: 2,\n};\n\nconst alignEnum = [\n \"xMinYMin\",\n \"xMidYMin\",\n \"xMaxYMin\",\n \"xMinYMid\",\n \"xMidYMid\",\n... | javascript | chosen |
[
{
"from": "system",
"value": "Return a glob compatible list of paths\n"
},
{
"from": "human",
"value": "/**\n * @license\n * grunt-template-progeny\n * Copyright 2014 Luis Aleman <https://github.com/Lalem001/>\n */\n(function (module) {\n\tmodule.exports = function (grunt) {\n\t\tvar progeny = r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with type of object"
},
{
"from": "human",
"value": "/*jslint node : true, nomen: true, plusplus: true, vars: true, eqeq: true,*/\n/* \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance ... | javascript | chosen |
[
{
"from": "system",
"value": "Use modern syntax + add `options.apiUrl`\n"
},
{
"from": "human",
"value": "var CALLBACK_NAME = '__googleMapsApiOnLoadCallback'\n\nvar OPTIONS_KEYS = ['channel', 'client', 'key', 'language', 'region', 'v']\n\nvar promise = null\n\nmodule.exports = function (options)... | javascript | chosen |
[
{
"from": "system",
"value": "Use setImmediate() to kick aggregate off.\n"
},
{
"from": "human",
"value": "/**\nProvide mdb-aggregate, a MongoDB style aggregation pipeline, to NodeJS.\n\nCopyright (C) 2014 Charles J. Ezell III\n\nThis program is free software: you can redistribute it and/or mod... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for eslint@1 recommended rules\n"
},
{
"from": "human",
"value": "module.exports = {\n env: {\n browser: true,\n es6: true,\n node: true\n },\n rules: {\n 'global-strict': 0,\n 'indent': [2, 2],\n 'no-console': 2,\n 'no-underscore... | javascript | chosen |
[
{
"from": "system",
"value": "Handle future event emit for gulp tasks\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar rump = module.exports = require('rump');\nvar configs = require('./configs');\nvar originalAddGulpTasks = rump.addGulpTasks;\n\nrump.addGulpTasks = function(options) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add getter for webpack config\n"
},
{
"from": "human",
"value": "const chalk = require(\"chalk\");\n\n\n/**\n * Main Kaba class\n */\nclass Kaba\n{\n /**\n *\n */\n constructor ()\n {\n }\n}\n\n\n// export a single instance\nmodule.exports = new ... | javascript | chosen |
[
{
"from": "system",
"value": "Add to first on add button clicked\n"
},
{
"from": "human",
"value": "function randomId() {\n return 'v-' + Math.random().toString(36).slice(-8);\n}\n\nfunction prepareMxDbmsProductVue(data) {\n return new Vue({\n el: '#mx_dbms_product_form',\n data: data,\n... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Add key to Message type\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport type { Range, Point, TextEditor } from 'atom'\n\nexport type Message = {\n location: {\n file: string,\n position: Range,\n },\n source: ?{\n file: stri... | javascript | chosen |
[
{
"from": "system",
"value": "Fix package name checking for svelte builds.\n"
},
{
"from": "human",
"value": "module.exports = function inclusionFilter(packages) {\n return function(packageName) {\n if (packages.length === 0) { return true; }\n\n return packages.map(function(pkg) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "bugfix: Exclude results with matching inline configs when testing files\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nmodule.exports = function(ast, filePath, plugins) {\n var errors = [],\n warnings = [];\n\n _.each(plugins, function(... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Add npm package require fallback in generator example\"\n\nThis reverts commit 58bc37236ed79da107a3eb04999f429d9ef20410.\n"
},
{
"from": "human",
"value": "// Load our letter icon generator\nvar materialLetterIcons = require('../generator') || require('mate... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging at the beginning of gitPull().\n"
},
{
"from": "human",
"value": "\n// First, import everything we need (I assume that you installed Flick via the above command).\nvar connect = require( 'connect' ),\n shell = require( 'shelljs' ),\n flick = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Add generated code in exe_module.\n"
},
{
"from": "human",
"value": "// GENERATED BY grunt make_dir_module.\nexport var dir = {};\nexport default dir;\nimport m0 from \"wash/exe/cat\";\ndir[\"cat\"] = m0;\nimport m1 from \"wash/exe/clear\";\ndir[\"clear\"] = m1;\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Add back in _sockjs_onload since some servers might depend upon that for iframe bootstrap.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar transportList = require('./transport-list');\n\nmodule.exports = require('./main')(transportList);\n"
},
{
"fro... | javascript | chosen |
[
{
"from": "system",
"value": "Remove not needed callback arguments 💀"
},
{
"from": "human",
"value": "var buildFile = require('./build-file')\nvar runGitCommand = require('./helpers/run-git-command')\n\nvar COMMITHASH_COMMAND = 'rev-parse HEAD'\nvar VERSION_COMMAND = 'describe --always'\n\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove lineHeight from unitless values\n"
},
{
"from": "human",
"value": "// Taken from:\n// https://github.com/necolas/react-native-web/blob/master/src/apis/StyleSheet/normalizeValue.js\nconst unitlessNumbers = {\n boxFlex: true,\n boxFlexGroup: true,\n columnCo... | javascript | chosen |
[
{
"from": "system",
"value": "Put module name into a variable\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar angular = require('angular');\nvar bluebird = require('bluebird');\n\nangular\n .module('mwl.bluebird', [])\n .constant('Bluebird', bluebird)\n .config(function($provide, Blue... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"This probably breaks applications\"\n\nThis reverts commit f442d48ab9900990bff5a1036f33c4f249662a86.\n"
},
{
"from": "human",
"value": "import axios from 'axios'\n\nconst apiBase = 'https://api.hackclub.com/'\nconst methods = ['GET', 'PUT', 'POST', 'PATCH',... | javascript | chosen |
[
{
"from": "system",
"value": "Add (hacky) way of dealing with HTML4 attr on body\n"
},
{
"from": "human",
"value": "import { Component, Children, PropTypes } from \"react\";\nimport withSideEffect from \"react-side-effect\";\n\nclass BodyAttributes extends Component {\n render() {\n return C... | javascript | chosen |
[
{
"from": "system",
"value": "Add use strict to new module\n"
},
{
"from": "human",
"value": "/**\n * Regular expression to classify if a valid IPv4 or IPv6 address is local.\n * Note: does not validate that the string is a valid IPv4 or IPv6 address.\n * Note: assumes the local IP address uses ... | javascript | chosen |
[
{
"from": "system",
"value": "Use typeof instead of isCallable\n"
},
{
"from": "human",
"value": "// Internal method, used by iteration functions.\n// Calls a function for each key-value pair found in object\n// Optionally takes compareFn to iterate object in specific order\n\n'use strict';\n\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Make columns reorderable when debug false\n\nWhen $compileProvider.debugInfoEnabled(false) then element.scope() doesn't work. As a workaround, put $scope back on each header element.\r\n\r\nhttps://docs.angularjs.org/api/ng/function/angular.element"
},
{
"from": "human"... | javascript | chosen |
[
{
"from": "system",
"value": "Change cartridge conf of advaced search dynamically\n"
},
{
"from": "human",
"value": "import {isFunction, isUndefined} from 'lodash/lang';\nimport {setHeader} from 'focus-core/application';\nimport {component as Empty} from '../../common/empty';\n\nmodule.exports =... | javascript | chosen |
[
{
"from": "system",
"value": "Update promise executor to use existing method\n"
},
{
"from": "human",
"value": "import ExecutorAbstract from '../ExecutorAbstract';\n\nclass PromiseExecutor extends ExecutorAbstract {\n //-----------------------------------\n // Constructor\n //----------------... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Implement a rock solid validator\n"
},
{
"from": "human",
"value": "'use strict'\n\n/* @flow */\n\nimport type {Exec$Options} from './types'\n\nexport function validate(filePath: string, parameters: Array<string>, options: Exec$Options) {\n\n}\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Add reloadItems to masonry update function\n"
},
{
"from": "human",
"value": "function updateMasonry() {\n var $container = $('.row').masonry();\n $container.imagesLoaded(function () {\n $container.masonry();\n });\n}\n$(window).load(function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use class, module and async\n"
},
{
"from": "human",
"value": "\nvar events = require('events')\nvar util = require('util')\nvar web3 = require('web3')\nvar request = require('request')\nvar async = require('async')\n\n\nfunction RPC (options) {\n this.url = ['http... | javascript | chosen |
[
{
"from": "system",
"value": "Configure date picker date format.\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n var locale = 'en' !== LOCALE ? LOCALE : '';\n\n var init;\n (init = function () {\n $('input[type=\"text\"].datetime').each(function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable livereload because of port conflicts\n"
},
{
"from": "human",
"value": "var paths = require( './paths' );\n\nmodule.exports = {\n\n\toptions: {\n\t\tlivereload: true,\n\t},\n\tstyles: {\n\t\t// Which files to watch (all .less files recursively in the less di... | javascript | chosen |
[
{
"from": "system",
"value": "Add newlines when writing to files\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst sysout = console.log;\nfunction toFile(log) {\n fs.appendFile(\"./latest.log\", log, () => {});\n}\nconst out = log => {\n sysout(log);\n toFile(log);\n};... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests config for invitation system\n\n"
},
{
"from": "human",
"value": "import Enzyme, { shallow, render, mount } from 'enzyme'\nimport Adapter from 'enzyme-adapter-react-16'\nimport React from 'react'\nimport 'isomorphic-fetch'\nimport 'fetch-mock'\n\n\nglobal.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix group edit file-related record clean\n"
},
{
"from": "human",
"value": "/**\n * @module ember-flexberry\n */\n\nimport OlvInputCellComponent from 'ember-flexberry/components/object-list-view-input-cell';\n\nexport default OlvInputCellComponent.extend({\n action... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for CI comment\n- this._super();\n+ this._super(...arguments);\n"
},
{
"from": "human",
"value": "import Ember from 'ember'\nimport _ from 'lodash/lodash'\n\nexport default Ember.Component.extend({\n classNames: ['frost-pods'],\n classNameBindings: ['ori... | javascript | chosen |
[
{
"from": "system",
"value": "Add a few more tests for our Yelp endpoint\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar chai = require('chai');\nvar chaihttp = require('chai-http');\nvar expect = require('chai').expect;\n\nchai.use(chaihttp);\n\nrequire('../../../server');\n\n\ndescribe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix active class not displaying on recent ember versions\n"
},
{
"from": "human",
"value": "import { reads, and } from '@ember/object/computed';\nimport LinkComponent from '@ember/routing/link-component';\nimport layout from '../templates/components/paper-link'\n\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issues with fetching the fixture data\n"
},
{
"from": "human",
"value": "var promisify = require(\"promisify-node\");\nvar fs = promisify(\"fs\");\nvar exec = promisify(\"child_process\").exec; \n\nbefore(function(done) {\n var url = \"https://github.com/nodegi... | javascript | chosen |
[
{
"from": "system",
"value": "Make 'exports' property explicit for modular object\n"
},
{
"from": "human",
"value": "(function(window) {\n 'use strict';\n\n window.modular = {\n Module: window.parent.app.ModularModule,\n };\n\n window.addEventListener('load', function() {\n setTimeout(... | javascript | chosen |
[
{
"from": "system",
"value": "Use white when selected to contrast with blue\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\n\n//Custom all purpose dashboard button\nclass DashButton extends React.Component {\n\n render() {\n return (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor everything into a single .run() call\n\nThere is really no need for us to have multiple calls to app.run() when\na single one will suffice in this file. This keeps the logic as much\ntogether as possible.\n"
},
{
"from": "human",
"value": "app.config(['$rou... | javascript | chosen |
[
{
"from": "system",
"value": "Update cordova globalization plugin to v1.0.1\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'dispatch:phoneformat.js',\n summary: 'phoneformat.js packaged for meteor',\n version: '1.5.4',\n git: 'https://github.com/DispatchMe/phoneformat.js.git'\... | javascript | chosen |
[
{
"from": "system",
"value": "Update to new git repo.\n"
},
{
"from": "human",
"value": "Package.describe({\n name: \"froatsnook:sleep\",\n summary: \"Fiber-friendly sleep statements (server only)\",\n version: \"1.0.1\",\n git: \"https://github.com/froatsnook/sleep\"\n});\n\nPackage... | javascript | chosen |
[
{
"from": "system",
"value": "Move Feedback button closer to the left\n"
},
{
"from": "human",
"value": "var intervalTracker = {};\n\nvar customizeGitShoes = function(){\n if (jQuery(\"#feedback-container\")[0]) {\n // Move gitShoes to the left side\n jQuery(\"#feedback-container\").css('... | javascript | chosen |
[
{
"from": "system",
"value": "Move question template initialization to question submit method for question backbone model\n"
},
{
"from": "human",
"value": "app = app || {};\n\napp.QuestionView = Backbone.View.extend({\n\n events: {\n 'submit .question_form': 'submitQuestion',\n },\n\n ini... | javascript | chosen |
[
{
"from": "system",
"value": "Add public ori helper js\n"
},
{
"from": "human",
"value": "function showOriFancybox(status) {\n unsafeWindow.jQuery.fancybox({\n 'type': 'inline',\n 'content': '#update',\n 'autoScale': false,\n 'autoDimensions': false,\n 'widt... | javascript | chosen |
[
{
"from": "system",
"value": "Add action to highlight help button\n"
},
{
"from": "human",
"value": "const openTutorial = () => {\n return { type: 'OPEN_TUTORIAL' };\n};\n\nconst closeTutorial = () => {\n return { type: 'CLOSE_TUTORIAL' };\n};\n\nconst viewNext = () => {\n return { type: 'VIE... | javascript | chosen |
[
{
"from": "system",
"value": "Update js array map to have appropiate commas separating values.\n"
},
{
"from": "human",
"value": "import React, {Component, PropTypes} from \"react\";\n\nimport _ from \"lodash\";\n\nclass JSArrMap extends React.Component {\n constructor(){\n super();\n }\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Send the request to post the link.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nexport default class Post extends React.Component {\n render() {\n return (\n <div className='post'>\n <textarea placeholder='Say ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove message handling in StateChange\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.core').factory('StateChange', [\n '$parse',\n function($parse) {\n function getToken(state, tokenOrId) {\n if (angular.isObject(tokenOrId)... | javascript | chosen |
[
{
"from": "system",
"value": "Set signal high to give IA priority\n"
},
{
"from": "human",
"value": "(function (env) {\n \"use strict\";\n env.ddg_spice_wikinews = function(api_result){\n\n if (api_result.error) {\n return Spice.failed('wikinews');\n }\n\n D... | javascript | chosen |
[
{
"from": "system",
"value": "Fix check on error when getting camera picture\n"
},
{
"from": "human",
"value": "Template.messageInput.events({\n\n 'submit form': function (event, template) {\n\n event.preventDefault();\n\n var messageInput = event.currentTarget.elements['message... | javascript | chosen |
[
{
"from": "system",
"value": "Set a https url because firefox was being a little bitch.\n"
},
{
"from": "human",
"value": "var streamURL = \"http://half-shot.uk:8000/status-json.xsl\";\nvar player = document.querySelector(\"audio#stream_player\");\nvar streamended = true;\nvar player_interval;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use the new reset-password endpoint\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst opn = require('opn');\nconst AccountManager = require('../account-manager');\nconst {handleResponseData, parseSetCookies, findCookie} = require('../utils');\n\nconst BaseSt... | javascript | chosen |
[
{
"from": "system",
"value": "Use events in connect middleware\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar urllite = require('urllite');\nvar renderResponseToString = require('../renderResponseToString');\n\n\nvar connectMiddleware = function(Router) {\n return functio... | javascript | chosen |
[
{
"from": "system",
"value": "Add hours to label in calendar view\n\nAdds a label for the number of hours to each calendar event"
},
{
"from": "human",
"value": "frappe.views.calendar[\"Timesheet\"] = {\n\tfield_map: {\n\t\t\"start\": \"start_date\",\n\t\t\"end\": \"end_date\",\n\t\t\"name\": \"... | javascript | chosen |
[
{
"from": "system",
"value": "[build] Use print instead of Seed.printf during doc build, as it doesn't depend on an installed version of seed\n"
},
{
"from": "human",
"value": "#!/usr/bin/env seed\nSeed.include(Seed.argv[2]);\n\nfunction output_param (param){\n Seed.printf(\"<varlistentry><te... | javascript | chosen |
[
{
"from": "system",
"value": "Remove subitem system for now"
},
{
"from": "human",
"value": "define(function() {\n\n 'use strict';\n \n var _PARENT = Symbol('parent');\n var _SUBITEMS = Symbol('subitems');\n \n function Item() {\n this[_SUBITEMS] = [];\n }\n \n Item.prototype = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add global navigator setting to modify the error, 'navigator is not defined', in testing with react-router link\n"
},
{
"from": "human",
"value": "import _$ from 'jquery';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport TestUtils from 'react-a... | javascript | chosen |
[
{
"from": "system",
"value": "Use wss if on https\n"
},
{
"from": "human",
"value": "import ReconnectingWebSocket from \"reconnecting-websocket\";\n\nclass SocketService {\n\n constructor($q, $log) {\n \"ngInject\";\n this.socket = null;\n this.$q = $q;\n this.$log = $log;\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Add afterBuild cleanup for MergedTree\n"
},
{
"from": "human",
"value": "var RSVP = require('rsvp')\nvar temp = require('temp')\ntemp.track()\n\nvar helpers = require('./helpers')\n\n\nexports.MergedTree = MergedTree\nfunction MergedTree (trees) {\n this._trees = t... | javascript | chosen |
[
{
"from": "system",
"value": "Reset another ruby environment variable.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash'),\n path = require('path');\n\n_.extend(exports, {\n envOverrides: {},\n\n supervisordConfigPath: function() {\n var config = require('api-u... | javascript | chosen |
[
{
"from": "system",
"value": "Create Bet: refactor for code clarity and readability.\n"
},
{
"from": "human",
"value": "Template.createBetForm.events({\n \"submit .create-bet\": function(event) {\n var status = \"open\";\n var title = event.target.betTitle.value;\n var wager = event.ta... | javascript | chosen |
[
{
"from": "system",
"value": "chore(docs): Adjust title for sizing reference"
},
{
"from": "human",
"value": "import readme from './README.md';\n\nexport default {\n readme,\n meta: {\n title: 'Component sizing'\n }\n};\n"
},
{
"from": "gpt",
"value": "import readme f... | javascript | chosen |
[
{
"from": "system",
"value": "Update example to great circle\n"
},
{
"from": "human",
"value": "import { point } from '@turf/turf';\n\npoint([0, 10]);\n"
},
{
"from": "gpt",
"value": "import { greatCircle } from '@turf/turf';\n\ngreatCircle([0, 0], [100, 10]);\n"
}
] | javascript | chosen |
[
{
"from": "system",
"value": "Use mobile markup rendering in message display\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react'\nimport {Text} from '../../../common-adapters'\nimport {globalColors} from '../../../styles'\nimport MessageWrapper from './wrapper'\n\nimport type ... | javascript | chosen |
[
{
"from": "system",
"value": "Stop the interval when all messages have been displadyed\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport Messages from '../Messages/Messages';\n\nclass Conversation extends React.Component {\n\n constructor(props, context) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the data attribute when commiting too.\n"
},
{
"from": "human",
"value": "$(function() {\n $(\"td\").dblclick(function() {\n var td = $(this), originalContent = td.text();\n\n td.addClass(\"cellEditing\");\n td.data(\"originalContent\", originalCont... | javascript | chosen |
[
{
"from": "system",
"value": "Fix file path to error sound\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nfunction audio(url) {\n return new Audio(url);\n}\n\nconst red = audio(\"https://s3.amazonaws.com/freecodecamp/simonSound1.mp3\");\nconst blue = audio(\"https://s3.amazonaws.com/free... | javascript | chosen |
[
{
"from": "system",
"value": "Add taks to speed development testing\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n // contrib-watch\n watch: {\n all: {\n fi... | javascript | chosen |
[
{
"from": "system",
"value": "Add Cat class and makePaw() function, fix drawGrid bug\n"
},
{
"from": "human",
"value": "let gridSize = 32\nlet grid\n\nfunction setup() {\n grid = makeGrid(32, 32)\n createCanvas(512, 512)\n drawGrid()\n}\n\nfunction makeGrid(x, y) {\n let g = new Array(x)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the keystone app name and brand.\n"
},
{
"from": "human",
"value": "var config = require('./config.json');\nvar keystone = require('keystone');\n\nkeystone.init({\n\n\t'name': 'anapi',\n\t'brand': 'anapi',\n\n\t'favicon': 'public/favicon.ico',\n\t'view engine': ... | javascript | chosen |
[
{
"from": "system",
"value": "Change location for jquery.datatables translations\n"
},
{
"from": "human",
"value": "// Place your application-specific JavaScript functions and classes here\n// This file is automatically included by javascript_include_tag :defaults\n\nprettyPrint();\n\n// Setup j... | javascript | chosen |
[
{
"from": "system",
"value": "[fix] Set default API limit to 1000.\n\nFixes an exception on /artists when there are more than 20 artists on\nthe page (e.g. with ?limit=40).\n"
},
{
"from": "human",
"value": "import _ from \"lodash\";\nimport jQuery from \"jquery\";\nimport moment from \"moment\"... | javascript | chosen |
[
{
"from": "system",
"value": "Restructure menus to match mac patterns\n"
},
{
"from": "human",
"value": "var app = require('app')\nvar dialog = require('dialog')\nvar menu = require('menu')\n\n/*\nBuild the application menu for the current platform.\n*/\nexports.application_menu = function(windo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix georgian locale syntax error\n"
},
{
"from": "human",
"value": "/**\n * Select2 Georgian (Kartuli) translation.\n * \n * Author: Dimitri Kurashvili dimakura@gmail.com\n */\n(function ($) {\n \"use strict\";\n\n $.extend($.fn.select2.defaults, {\n fo... | javascript | chosen |
[
{
"from": "system",
"value": "Set UTC time zone for DB time conversion\n"
},
{
"from": "human",
"value": "const Errors = use('core/errors');\n\nconst DefaultProperty = require('./default');\n\n\nclass DateProperty extends DefaultProperty {\n\n constructor() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix index declaration for User model\n"
},
{
"from": "human",
"value": "var wompt = require(\"./includes\"),\n db = wompt.db;\n\nwompt.mongoose.model('User',{\n\n\tcollection : 'users',\n\n\tproperties: [\n\t\t//simple attributes\n\t\t 'name'\n\t\t,'email'\n\t\t,... | javascript | chosen |
[
{
"from": "system",
"value": "Add alternative solution to confirmEdning.js\n"
},
{
"from": "human",
"value": "function confirmEnding(str, target) {\n\n if (str.split(\" \").length > 1){\n var lastChar = str.split(\" \");\n var lastWord = lastChar[lastChar.length - 1];\n\n if (target.le... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeout: 30000 in Critical task\n"
},
{
"from": "human",
"value": "import gulp from 'gulp'\nimport gutil from 'gulp-util'\nimport critical from 'critical'\nimport appPath from '../paths'\n\nexport default () => {\n return gulp\n .src(appPath.allHTML)\n .p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix uglify after buildRelease & buildTests\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = function (grunt) {\n grunt.registerTask(\"make\", [\n \"exec:version\",\n \"check\",\n \"jsdoc:public\",\n \"connectIf\",... | javascript | chosen |
[
{
"from": "system",
"value": "Add config with group mappings"
},
{
"from": "human",
"value": "(function(window, document, undefined){\n 'use strict';\n\n var $ = window.jQuery;\n\n function init () {\n\n if ($('#filter-nav').length > 0) {\n return;\n }\n\n var nav = '<div class=... | javascript | chosen |
[
{
"from": "system",
"value": "Add Norwegian translation of clear\n"
},
{
"from": "human",
"value": "/**\n * Norwegian translation for bootstrap-datepicker\n **/\n;(function($){\n $.fn.datepicker.dates['no'] = {\n days: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(item-stack): Allow showing a delete icon for item stacks\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\"\nimport { Label } from \"semantic-ui-react\"\n\nclass ItemStack extends Component {\n\trender() {\n\t\tconst { item } = this.pr... | javascript | chosen |
[
{
"from": "system",
"value": "Lib: Add `ERROR` prefix to error messages\n"
},
{
"from": "human",
"value": "/**\n* Copyright 2012-2016, Plotly, Inc.\n* All rights reserved.\n*\n* This source code is licensed under the MIT license found in the\n* LICENSE file in the root directory of this source t... | javascript | chosen |
[
{
"from": "system",
"value": "Install dependencies at the end of the setup"
},
{
"from": "human",
"value": "'use strict';\n\nvar yeoman = require('yeoman-generator'),\n utils = require('../../utils');\n\nvar LogGenerator = yeoman.generators.Base.extend({\n prompts: require('./prompts... | javascript | chosen |
[
{
"from": "system",
"value": "Change the cursor over cast list items.\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { red500 } from 'material-ui/styles/colors';\n\nimport { ListItem } from 'material-ui/List';\nimport Avatar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problems with element identification\n"
},
{
"from": "human",
"value": "(function($) {\n var params = (function() {\n var url_tokens = document.URL.replace(document.baseURI.concat('?'), '').split(/&/g),\n params = {};\n\n for(piece in url_tokens) {... | javascript | chosen |
[
{
"from": "system",
"value": "Increase portability by adding ascii_only\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/*jshint camelcase: false */\n/*eslint-disable camelcase*/\n\nmodule.exports = {\n options: {\n beautify: {\n keep_quoted_props: true\n }\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor signature receptions so we can use it at several places\n"
},
{
"from": "human",
"value": "function FayeAuthentication(endpoint) {\n this._endpoint = endpoint || '/faye/auth';\n}\n\nFayeAuthentication.prototype.endpoint = function() {\n return (this._endp... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing font file in build\n\nSigned-off-by: Rohan Jain <f3a935f2cb7c3d75d1446a19169b923809d6e623@gmail.com>\n"
},
{
"from": "human",
"value": "/* global require, module */\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nmodule.exports = function... | javascript | chosen |
[
{
"from": "system",
"value": "Write tests for User model\n"
},
{
"from": "human",
"value": "const dotenv = require('dotenv');\n\ndotenv.config();\n\nmodule.exports = {\n development: {\n username: 'Newman',\n password: 'andela2017',\n database: 'postit-db-dev',\n host: '127.0.0.1',\... | javascript | chosen |
[
{
"from": "system",
"value": "Use an external service to deliver JS resource with ‘Content-Type: application/javascript;’"
},
{
"from": "human",
"value": "/**\n * Loads specific scripts, depending on the parameters.\n * @class SDK Loader\n * @param {Object} options\n * @param {Integer} [option... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for Portuguese whitespace errors again\n\nCI build failed with the following error: `/home/travis/build/JWDeveloper/JWManagement/imports/i18n/pt/_export.js:26:1: Too many blank lines at the end of file. Max of 0 allowed.`\n\nLets see what happens this time.\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Include `<` and `>` into BNF attributes\n"
},
{
"from": "human",
"value": "/*\n Language: Backus–Naur Form\n Author: Oleg Efimov <efimovov@gmail.com>\n */\n\nfunction(hljs){\n return {\n contains: [\n // Attribute\n {\n className: 'attribute',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add support of analytics.js (GA) to switcher"
},
{
"from": "human",
"value": "/**\n * This script will fix some counters to be used with Switcher.js.\n */\n\n$(document).on('construct', function () {\n\n // Google Analytics\n\n //noinspection JSUnresolvedVaria... | javascript | chosen |
[
{
"from": "system",
"value": "Hide http warning on localhost\n"
},
{
"from": "human",
"value": "(function () {\n\t'use strict';\n\n\t/**\n\t * @ngdoc function\n\t * @name passmanApp.controller:MainCtrl\n\t * @description\n\t * # MainCtrl\n\t * Controller of the passmanApp\n\t */\n\tangular.modul... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with JSCS failing to report violations\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar jscs = require('gulp-jscs');\nvar log = require('../utils/log');\n\nmodule.exports = function(gulp, options) {\n var config = require('../config')[options.key |... | javascript | chosen |
[
{
"from": "system",
"value": "Add listen to all events\n"
},
{
"from": "human",
"value": "const chokidar = require(\"chokidar\");\nconst log = require(\"./services/logger.service\");\nconst FileIndex = require(\"./util/fileIndex\");\nconst FileRecognizer = require(\"./util/fileRecognizer\");\nco... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.