conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update autocomplete spec to use <ol>\n"
},
{
"from": "human",
"value": "/*global describe, beforeEach, module, inject, it, spyOn, expect, $, console */\n\ndescribe('dfAutocompleteDatalist', function() {\n 'use strict';\n\n var scope, $compile;\n beforeEach(module... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct entry point.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst jspm = require('gulp-jspm')\nconst sourcemaps = require('gulp-sourcemaps')\nconst filenames = require('gulp-filenames')\nconst flatten = require('gulp-flatten')\nconst hash = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Use keyboard_manager instead of hack for 'indentLess' hotkey\n"
},
{
"from": "human",
"value": "// assign dedent to shift-tab \n\nvar shift_tab_extension = (function() {\n\n var dedentKey = { \"Shift-Tab\":\"indentLess\" };\n var key = IPython.keyboard.keyco... | javascript | chosen |
[
{
"from": "system",
"value": "Use the async version of buildMatcher for the middleware loading\n"
},
{
"from": "human",
"value": "var metaRouter = require('../');\nvar routesLoader = require('../lib/routes-loader');\nvar DataHolder = require('raptor-async/DataHolder');\nvar nodePath = require('p... | javascript | chosen |
[
{
"from": "system",
"value": "Handle missed command flags (-t)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar dokkuGitRemoteParser = require('dokku-git-remote-parser')\nvar dokkuAppSsh = require('dokku-app-ssh')\nvar cp = require('child_process')\nvar _ = require('h... | javascript | chosen |
[
{
"from": "system",
"value": "Add dynamic loading of converters\n"
},
{
"from": "human",
"value": "var converter = require('./converter');\n\nvar converters = {\n 'distance': [\n 'mil', 'in', 'ft', 'yd', 'mi', 'cp',\n 'rd', 'A', 'n', 'µ', 'mm', 'cm', 'm',\n 'km', 'ly', 'l... | javascript | chosen |
[
{
"from": "system",
"value": "Fix use of wrong setting for organizations\n\nImplements nci-agency/anet#448\n"
},
{
"from": "human",
"value": "import Model from 'components/Model'\nimport Settings from 'Settings'\n\nexport default class Organization extends Model {\n\tstatic resourceName = 'Organ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug where the post submit autoform hook wasn't called\n"
},
{
"from": "human",
"value": "AutoForm.hooks({\n submitPostForm: {\n\n before: {\n submitPost: function(doc) {\n\n this.template.$('button[type=submit]').addClass('loading');\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add `Molecule` in export object.\n"
},
{
"from": "human",
"value": "root.Chem = {\n Atom: Atom,\n Bond: Bond,\n Element: Element,\n Data: {\n Elements: Elements\n }\n};\n})\n(this);"
},
{
"from": "gpt",
"value": "root.Chem = {\n Atom: Atom,\n B... | javascript | chosen |
[
{
"from": "system",
"value": "Enable indentation rule for templates\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* eslint-env node */\n\nmodule.exports = {\n extends: 'recommended',\n\n rules: {\n 'block-indentation': false,\n 'img-alt-attributes': false,\n 'triple-curlies': f... | javascript | chosen |
[
{
"from": "system",
"value": "FIX formatting on meet markdown\n"
},
{
"from": "human",
"value": "const MySql = require(\"./MySql.js\");\nconst entities = require(\"entities\");\n\nclass Meet{\n constructor(obj){\n Object.keys(obj).forEach(k=>this[k]=entities.decodeHTML(obj[k]));\n }\n\n as... | javascript | chosen |
[
{
"from": "system",
"value": "Add createdAt when logging a message and sort results by createdAt date\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n $(document).on('keyloaded', function () {\n var hostname = $('#hostname').val();\n $.ajax({\n ur... | javascript | chosen |
[
{
"from": "system",
"value": "Add report issue placeholder text script\n"
},
{
"from": "human",
"value": "// runtime fixes for ugly mantisbt elements\r\n/*\r\n$(\"input[type=text]\").addClass(\"form-control lwidth\");\r\n$(\"input[type=password]\").addClass(\"form-control lwidth\");\r\n$(\"input... | javascript | chosen |
[
{
"from": "system",
"value": "Change the \" to '\n"
},
{
"from": "human",
"value": "// Note: You must restart bin/webpack-dev-server for changes to take effect\n\nconst { resolve } = require('path')\nconst merge = require('webpack-merge')\nconst devConfig = require('./development.js')\nconst { d... | javascript | chosen |
[
{
"from": "system",
"value": "Use window.location.protocol instead of hardcoded one\n"
},
{
"from": "human",
"value": "$(function() {\n /*\n * Functions\n **/\n\n // Function to clear the table and insert a specific placeholder\n var insertPlaceholder = function(msg) {\n $('table.certi... | javascript | chosen |
[
{
"from": "system",
"value": "Update task creds as well\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. *... | javascript | chosen |
[
{
"from": "system",
"value": "Remove code in comment that was used for constructing call\n"
},
{
"from": "human",
"value": "class MCDirComponentController {\n /*@ngInject*/\n constructor(mcFileOpsDialogs) {\n this.mcFileOpsDialogs = mcFileOpsDialogs;\n this.selected = false;\... | javascript | chosen |
[
{
"from": "system",
"value": "Add minimized version of updated script.\n"
},
{
"from": "human",
"value": "(function(){melange.survey_template=function(){};melange.survey_template.prototype=new melange.templates._baseTemplate;melange.survey_template.prototype.constructor=melange.survey_template;m... | javascript | chosen |
[
{
"from": "system",
"value": "Update fab controller to notify others when a new task is added\n"
},
{
"from": "human",
"value": "/*\neslint no-shadow: [\"error\", { \"allow\": [\"$scope\"] }]\n*/\nangular.module('MainApp')\n .controller('FabControl', ($mdToast, $mdDialog, $scope, db) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable iPad tests because of reporting issues witht saucelabs\n"
},
{
"from": "human",
"value": "// Test runner\nvar runTests = require('./affixing-header-specs'),\n browsers = [\n {name: 'chrome'},\n {name: 'firefox'}\n ];\n\n// var browserCo... | javascript | chosen |
[
{
"from": "system",
"value": "SET INTEGRATION TOKENS IN THE PROCESS ENVIRONMENT TO LOCK DOWN\nACCESS TO THE LOUDS.\n"
},
{
"from": "human",
"value": "var\n SLACKBOT = require('./SLACKBOT.js'),\n RESTIFY = require('restify')\n ;\n\nvar LOUDBOT = new SLACKBOT();\n\nvar SERVER = RESTIFY.c... | javascript | chosen |
[
{
"from": "system",
"value": "FIX sonar warning for trailing commas\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('MLDS').factory('ReleaseFilesService',\n ['$resource',\n\t function($resource) {\n\t\treturn $resource(\n\t\t\t\t'app/rest/releasePackages/:releasePackageId/r... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Remove resolve in top level\"\n\nThis reverts commit 27c6b92e18e69f1e705596414467abd9ff660157.\n"
},
{
"from": "human",
"value": "import commonjs from '@rollup/plugin-commonjs';\nimport glslify from 'rollup-plugin-glslify';\nimport resolve from '@rollup/plu... | javascript | chosen |
[
{
"from": "system",
"value": "Define port to run on\n"
},
{
"from": "human",
"value": "require('dotenv').config()\n\nvar config = {};\n\nconfig.port = process.env.PORT;\nconfig.clientId = process.env.CLIENT_ID;\nconfig.clientSecret = process.env.CLIENT_SECRET;\n\nmodule.exports = config;\n"
},... | javascript | chosen |
[
{
"from": "system",
"value": "Make zip code input numeric\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Grid, Col, Form, Item, Label, Input, Card, CardItem } from 'native-base';\n\nimport CardHeader from '../../common/card-header/cardHeader';\n\n// Tempor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect line numbers in test failures\n\nReviewed By: voideanvalue\n\nDifferential Revision: D4597677\n\nfbshipit-source-id: 9e10fb7aaee16cd902489cd95cfb04a151da2226\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2015-present, Facebook, Inc.\n * All ... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic formatting to table values\n"
},
{
"from": "human",
"value": "/** Component for showing the queried index data as a table */\n\ndefine( [\n \"lodash\",\n \"jquery\",\n \"preferences\",\n \"dataTables.bootstrap\"\n], function(\n _,\n $,\n Preferences... | javascript | chosen |
[
{
"from": "system",
"value": "Add browser test case for applyAll\n"
},
{
"from": "human",
"value": "'use strict';\n/*\nload('rgb8.png').then(function (a) {\n var b = a.clone().invert();\n setLeft(a);\n setRight(b);\n});\n*/\n\n/*load('rgb8.png').then(function (a) {\n setLeft(a);\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the ? mark at because not all video URLs contain it, therefore it misses some URLs.\n"
},
{
"from": "human",
"value": "function findUrls( text )\n{\n var source = (text || '').toString();\n var urlArray = [];\n var url;\n var matchArray;\n\n //... | javascript | chosen |
[
{
"from": "system",
"value": "Fix script, hope working now\n"
},
{
"from": "human",
"value": "document.getElementById(\"ayuda\").setAttribute(\"aria-current\", \"page\");\n\nvar aside = document.getElementById(\"complementario\");\nvar button = document.createElement(\"BUTTON\");\nbutton.setAttr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing directory error when npm building\n\nThe full error was:\n Error: ENOENT: no such file or directory, open\n '/srv/src/kpi/jsapp/compiled/extracted-strings.json'\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst webpack = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Test Tangent Between Circles: 2 external tangents, circles overlap\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\nconst CircleTangents = require('../../../src').algorithms.geometry.CircleTangents;\n\nconst assert = require('assert');\n\ndescribe('Tangent... | javascript | chosen |
[
{
"from": "system",
"value": "Sort documents by date DESC\n"
},
{
"from": "human",
"value": "define(\n [\n 'models/Document',\n 'underscore',\n 'jquery',\n 'backbone'\n ],\n function (DocumentModel, _, $, Backbone) {\n \"use strict\";\n\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Return an array of rather than div\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '../Button/Button';\n\nconst Card = ( { nounObject } ) => {\n const mappedNounObject = Object.keys( nounObject... | javascript | chosen |
[
{
"from": "system",
"value": "Use MutationObserver for expanded stories and jQuery for collapsed ones\n"
},
{
"from": "human",
"value": "var storyListener = function (modal) {\n\n var readyStateCheckInterval = setInterval(function() {\n if (document.readyState === \"complete\") {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Test constructor calls without new\n"
},
{
"from": "human",
"value": "/**\n * Constructor tests\n */\n\nvar xQ = require('../index');\n\n/**\n * Test the empty constructor\n */\nmodule.exports.testEmpty = function(test) {\n var empty = new xQ();\n \n test.ok(empt... | javascript | chosen |
[
{
"from": "system",
"value": "Reset to default password check\n"
},
{
"from": "human",
"value": "import config from '../../../config'\n\nexport default function verify (password) {\n //return (password === 'config.login_password')\n return (password === 'hello')\n //return (password === confi... | javascript | chosen |
[
{
"from": "system",
"value": "[patch][Button] Add an id attribute to the button component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Button} from 'apparena-patterns-react';\n\nexport default function ButtonExample() {\n return (\n <div>\n <Button ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify and speed up the SeekOffsets code\n\nReplace the complex and inefficient O(n)-ish logic with a simpler\nO(1) approach.\nWe don't need to make an array of all entries, reverse that, and then pop\none element -- we only need to know the first key/value pair.\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Convert Endless Rage to 2 spaces\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport SPELLS from 'common/SPELLS';\nimport TalentStatisticBox from 'interface/others/TalentStatisticBox';\nimport Analyzer from 'parser/core/Analyzer';\nimport Events fr... | javascript | chosen |
[
{
"from": "system",
"value": "Migrate css-modules block to webpack 2\n"
},
{
"from": "human",
"value": "/**\n * CSS Modules webpack block.\n *\n * @see https://github.com/webpack/css-loader\n */\n\nmodule.exports = cssModules\n\n/**\n * @param {object} [options]\n * @param {RegExp, Function, str... | javascript | chosen |
[
{
"from": "system",
"value": "Call getElasticsearchData when host changes\n"
},
{
"from": "human",
"value": "import { ReactiveVar } from 'meteor/reactive-var'\nimport { Template } from 'meteor/templating';\n\nTemplate.dashboard.onCreated(function () {\n // Get reference to template instance\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Write zip to tmp directory\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar request = require('request');\nvar unzip = require('unzip');\n\nfunction get_dotfiles(username, repo){\n\trepo = repo || \"dotfiles\";\n\tvar repo_url = 'https://github.com/'+... | javascript | chosen |
[
{
"from": "system",
"value": "Build test definitions as umd\n"
},
{
"from": "human",
"value": "import { terser } from 'rollup-plugin-terser';\nimport typescript from 'rollup-plugin-typescript2';\n\nexport default [\n {\n input: 'mod.ts',\n output: {\n name: 'KeyCode',\n format: ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken UMD filename definition\n"
},
{
"from": "human",
"value": "import resolve from 'rollup-plugin-node-resolve'\nimport babel from 'rollup-plugin-babel'\nimport commonjs from 'rollup-plugin-commonjs'\nimport replace from 'rollup-plugin-replace'\nimport pkg fr... | javascript | chosen |
[
{
"from": "system",
"value": "Allow .env to overwrite NODE_ENV\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar env = process.env.NODE_ENV || 'development'\n\nif (env === 'development') require('dotenv').config()\n\nvar conf = module.exports = {\n env: env,\n server: {\n protocol: pro... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade ImportModalController to ES6 syntax\n"
},
{
"from": "human",
"value": " var ImportModalController = function($timeout, $modalInstance, document) {\n _.each(document.movements, function(movement, index) {\n movement._id = index;\n });\n\n //con... | javascript | chosen |
[
{
"from": "system",
"value": "Reset navigation using key prop to tell when route changes\n\nCloses #149\n"
},
{
"from": "human",
"value": "import { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport { push } from 'react-router-redux';\n\nimport { fetchNavigation, ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove React error from modal to pick a widget (wysiwyg)\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default function WidgetBlockCreation({ block, onSubmit }) {\n const { widgets } = block.admin;\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Set language choices based on user locale.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc directive\n * @name translapediaApp.directive:translateInput\n * @description\n * # translateInput\n */\nangular.module('translapediaApp')\n .directive('tr... | javascript | chosen |
[
{
"from": "system",
"value": "Add hint how to analyse webpack bundle.\n"
},
{
"from": "human",
"value": "/* @flow weak */\n\n'use strict';\n\nvar webpack = require('webpack');\nvar gutil = require('gulp-util');\n\nmodule.exports = function(webpackConfig) {\n return function(callback) {\n web... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure dataset-list doesn't get shadowed.\n"
},
{
"from": "human",
"value": "/**\n * Main, shows the start page and provides controllers for the header and the footer.\n * This the entry module which serves as an entry point so other modules only have to include ... | javascript | chosen |
[
{
"from": "system",
"value": "Update webpack to output libraryTarget commonjs2\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n\n\tentry: './src/index.js',\n\n\toutput: {\n\t\tpath: 'dist',\n\t\tfilename: 'index.js'\n\t},\n\n\ttarget: 'node',\n\n\tmodule: {\n\t\tloaders: ... | javascript | chosen |
[
{
"from": "system",
"value": "Use local verdana file if available.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar SVGO = require('svgo');\n\n// Initialize what will be used for automatic text measurement.\nvar Canvas = require('canvas');\nvar canvasElement = new Canvas(0, 0); ... | javascript | chosen |
[
{
"from": "system",
"value": "Replace each regex with it's minus display text\n\nSet a span id around it with obscured id\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports =\n\n/*@ngInject*/\nfunction ProofreadingPlayCtrl(\n $scope, $state, ProofreadingService, RuleService\n) {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix config glob to match even if in subdirectories\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n // Test files patterns\n test: [\n // Classic layout\n 'test/**',\n // Lerna monorepo\n 'packages/*/test/**/*.test.*',\n 'pack... | javascript | chosen |
[
{
"from": "system",
"value": "Use relative protocol (http/https) for querying the API.\n"
},
{
"from": "human",
"value": "window.config = {\n pppCoreUrl: 'http://core.frontend.askplatyp.us/',\n pppLoggerUrl: 'http://logger.frontend.askplatyp.us/'\n};\n"
},
{
"from": "gpt",
"val... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing blog post images\n"
},
{
"from": "human",
"value": "// Highlight active navigation menu item\n(function() {\n var fullPath = window.location.pathname.substring(1);\n var parentPath = fullPath.split('/')[0];\n var path = fullPath.replace(/\\//g, '');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use development mode in webpack to get better error messages in the devtools console\n"
},
{
"from": "human",
"value": "var path = require('path');\nconst ESLintPlugin = require('eslint-webpack-plugin');\n\nconst PATHS = {\n build: path.join(__dirname, '..', '..'... | javascript | chosen |
[
{
"from": "system",
"value": "Test forwarding login to google...\n"
},
{
"from": "human",
"value": "/**\n * Created by ryan on 11/10/15.\n */\n\n// Change this to go to next data collecting page when ready\nfunction check(form) {\n if(form.user.value == \"admin\" && form.pass.value == \"admin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing key in loop\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nclass App extends Component {\n constructor() {\n super();\n this.state = { items: [] };\n }\n componentWillMount() {\n fetch(\"http... | javascript | chosen |
[
{
"from": "system",
"value": "Check if Bluetooth is enabled\n"
},
{
"from": "human",
"value": "var log = function(message) {\n console.log(message);\n logDiv.innerHTML = logDiv.innerHTML + message + \"<br>\";\n };\n \nvar app = {\n\n // Application Constructor\n initial... | javascript | chosen |
[
{
"from": "system",
"value": "Select different max page records will default to show first page."
},
{
"from": "human",
"value": "/**\n * \n */\n\n$( document ).ready( function() {\n\tvar moretext = \"Read More\";\n var lesstext = \"Read Less\";\n\t$( \".more-link\" ).click( function() {\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lecturer lecture page being accessible to everyone\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n \n angular\n .module('lecturer')\n .config(config);\n\n /* ngInject */\n function config($routeProvider, $httpProvi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove last reference to Arabic\n"
},
{
"from": "human",
"value": "export ar from './ar.js';\nexport de from './de.js';\nexport en from './en.js';\nexport es from './es.js';\nexport fr from './fr.js';\nexport id from './id.js';\nexport it from './it.js';\nexport ja ... | javascript | chosen |
[
{
"from": "system",
"value": "[FLOW] Fix missing \"type\" in flow import. \n\nFixes: Named import from module `../TypeDefinition` `ContextWithNavigation` is a type, but not a value. In order to import it, please use `import type`."
},
{
"from": "human",
"value": "/* @flow */\n\nimport React from... | javascript | chosen |
[
{
"from": "system",
"value": "Create a new subscription for all the tomes of a mangas\n"
},
{
"from": "human",
"value": "// Send back all owned mangas\nMeteor.publish('allOwnedMangas', function(userId) {\n\treturn Mangas.find({\n\t\t\"user\": userId,\n\t\t\"owned\": true\n\t});\n});\n\n// Send b... | javascript | chosen |
[
{
"from": "system",
"value": "Use typing to glue together inconsistent api for no good reason.\n"
},
{
"from": "human",
"value": "const Type = require('./type').Type;\n\nconst noop = function() {}\nconst toRoom = (location, firstParty, secondParty, players) => config => {\n\n const firstPartyMs... | javascript | chosen |
[
{
"from": "system",
"value": "Make regexp easier to read\n\nThe parens don't do anything other than make it easier to read, but CodeClimate wanted me to do it... so I'm doing it.\n"
},
{
"from": "human",
"value": "// Make sure there's no \"javascript:alert()\" douchebaggery\nvar isWebAddress = f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove phantom header on splash screen on android\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { View, Text, Image, ActivityIndicator, AppRegistry, StyleSheet } from 'react-native';\n\nexport default class SpalshScreen extends... | javascript | chosen |
[
{
"from": "system",
"value": "Fix builder to return a literal React component, and supply correct context/args\n"
},
{
"from": "human",
"value": "const babel = require('babel');\n\nconst ast = require('./ast');\nconst extraction = require('./extraction');\nconst freeVariables = require('./free-v... | javascript | chosen |
[
{
"from": "system",
"value": "Set CKeditor instance width to textarea width\n\nI initially thought CKeditor did this automatically, but it doesn't, it\njust sets the width to 100%\n"
},
{
"from": "human",
"value": "//= requires \"editor\"\n//= requires <mootools/DomReady>\n//= requires <mootool... | javascript | chosen |
[
{
"from": "system",
"value": "Add logic to deckStore for dealing cards and updating deck\n"
},
{
"from": "human",
"value": "export default class DeckStoreService {\n\tconstructor($log, $http, _) {\n\t\t'ngInject';\n\n\t\tvar self = this;\n\n\t\tthis.$log = $log;\n\t\tthis.$http = $http;\n\n\t\tt... | javascript | chosen |
[
{
"from": "system",
"value": "Use lib instead of src so non-babel builds can process the lib of kickfliip.\n"
},
{
"from": "human",
"value": "import ddRender from 'skatejs-dom-diff/src/render';\nimport nsRender from 'skatejs-named-slots/src/render';\nimport nsSlot from 'skatejs-named-slots/src/s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix small bugs in bundle command\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Requires\nvar _ = require('underscore');\n\nvar fs = require('fs');\nvar path = require('path');\n\n// Comannder\nvar prog = require('commander');\n\n// etcd-dump's package... | javascript | chosen |
[
{
"from": "system",
"value": "Add styling for views and images\n"
},
{
"from": "human",
"value": "import { StyleSheet, Dimensions } from 'react-native';\n\nexport default StyleSheet.create({\n mainContainer: {\n width: Dimensions.get('window').width,\n height: Dimensions.get('window').hei... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Remove poor use of <br> elements\n"
},
{
"from": "human",
"value": "'use strict';\nimport React from 'react';\n\n\nconst About = () => (\n <div className=\"center-cont\">\n <h3>Davie Poplar Capital is a Raleigh-based private investment firm</h3>\n <... | javascript | chosen |
[
{
"from": "system",
"value": "Remove erroneous call to property length"
},
{
"from": "human",
"value": "/**\n * This demo is meant to be straight-forward and \n * not use very complex techniques, such as regular\n * expressions.\n * \n */\n\nfunction throwFormatError() {\n throw \"You should en... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to Iriscouch in production\n"
},
{
"from": "human",
"value": "var cradle = require('cradle');\nvar applyDesignDocuments = require('./design-documents');\n\nvar couchLocation = process.env.CLOUDANT_URL || process.env.COUCHDB || 'http://localhost';\nvar couch =... | javascript | chosen |
[
{
"from": "system",
"value": "Make data persist through date-changes\n"
},
{
"from": "human",
"value": "/* Mock interface to load and save bookings to the \"back end\" */\n\nimport { v4 } from 'uuid';\n\nimport bookingsByDay from './bookings.json';\n\n\n\n\nconst data = bookingsByDay\n .map(day... | javascript | chosen |
[
{
"from": "system",
"value": "Use new event handler syntax in skeleton app\n"
},
{
"from": "human",
"value": "if (Meteor.is_client) {\n Template.hello.greeting = function () {\n return \"Welcome to ~name~.\";\n };\n\n Template.hello.events = {\n 'click input' : function () {\n // t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix current tab styling on workspace summary page\n"
},
{
"from": "human",
"value": ";(function($, ns) {\n ns.WorkspaceSummaryPage = chorus.pages.Base.extend({\n crumbs : function() {\n return [\n { label: t(\"breadcrumbs.home\"),... | javascript | chosen |
[
{
"from": "system",
"value": "Fix app crash from our pagination when editing invalid things\n\nAddresses the most important part of #1742 , next patch will be to make\nit so we just navigate away from the detail page if we delete the item\nwe're on.\n"
},
{
"from": "human",
"value": "/**********... | javascript | chosen |
[
{
"from": "system",
"value": "Add replaced item to list shortcode\n"
},
{
"from": "human",
"value": "module.exports = function listShortCode (host, list) {\n return `\n<h2>${host}</h2>\n<ol reversed>\n${list.map(entry => `<li>${entry}</li>`).join('\\n')}\n</ol>`;\n}"
},
{
"from": "gpt... | javascript | chosen |
[
{
"from": "system",
"value": "Hide tooltip when showing modal\n"
},
{
"from": "human",
"value": "$(function() {\n\t$('.gcal-control').click(function() {\n\t\ttarget = $(this).data('target');\n\t\tif($(this).hasClass('gcal-control-disabled')) {\n\t\t\t$(this).removeClass('gcal-control-disabled');... | javascript | chosen |
[
{
"from": "system",
"value": "Fix searchForm JS in headerbar\n"
},
{
"from": "human",
"value": "/**\n * @class Denkmal_Component_HeaderBar\n * @extends Denkmal_Component_Abstract\n */\nvar Denkmal_Component_HeaderBar = Denkmal_Component_Abstract.extend({\n\n\t/** @type String */\n\t_class: 'Denk... | javascript | chosen |
[
{
"from": "system",
"value": "Add method to access an element of save-button\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var jCore = require('jcore');\n var helper = app.helper || require('../helper.js');\n var dom = app.dom || require('../dom.js');\n var Sidebar... | javascript | chosen |
[
{
"from": "system",
"value": "Add static files handling to express app.\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport mongoose from 'mongoose';\n\n\nimport config from '../config';\n\nimport apiRouter from './api';\n\n// Assemble the routes\nconst app = express();\nap... | javascript | chosen |
[
{
"from": "system",
"value": "Test env variable in function\n"
},
{
"from": "human",
"value": "const axios = require('axios');\nconst querystring = require('querystring');\n\nexports.handler = function (event, _context, callback) {\n if (process.env.NODE_ENV !== 'production') {\n require('do... | javascript | chosen |
[
{
"from": "system",
"value": "Disable add button too when test-case is disabled\n"
},
{
"from": "human",
"value": "/** @jsx React.DOM */\n'use strict';\n\nvar React = require('react'),\n ReactIntlMixin = require('react-intl');\n\n\nvar Role = React.createClass({\n mixins: [ReactIntlMixin],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update extension for 163 Music\n\nAdded extension for 163 Music.\nSorry for overlooking.Now rewrite the selector.\n"
},
{
"from": "human",
"value": "function onKeyPress(key) {\n if (key === NEXT) {\n var nextButton = document.querySelector('.nxt');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add branch for koding vm testing\n"
},
{
"from": "human",
"value": "/**\n * Created by Ennis on 21/02/16.\n */\nvar lexer = new Lexer();\n\n\nvar doLexer = function () {\n // String handling\n var lexer = new Lexer();\n lexer.addRule(/[a-zA-Z0-9]+/, functio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing call to done()\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Dependencies\nconst moment = require('moment')\n\nmodule.exports = function setup() {\n return function plugin(files, aldous, done) {\n files.forEach(function(file) {\n if (fi... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Replaced the config service by the limiter service\"\n\nThis reverts commit fc30aebd212ebd186bf7f8f93e0bf29473d7f9a2.\n"
},
{
"from": "human",
"value": "import Controller from '@ember/controller';\nimport {inject as service} from '@ember/service';\n\nexport... | javascript | chosen |
[
{
"from": "system",
"value": "Add to do for cloud code\n"
},
{
"from": "human",
"value": "\n// Use Parse.Cloud.define to define as many cloud functions as you want.\n// For example:\nParse.Cloud.define(\"hello\", function(request, response) {\n response.success(\"Hello world!\");\n});\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Add day of the week to time.\n"
},
{
"from": "human",
"value": "module.exports = function crawler(callback) {\n\tconst request = require('request');\n\tconst cheerio = require('cheerio');\n\n\tconst URL = 'http://sarc.pucrs.br/Default/';\n\n\tvar data = {};\n\tlet r... | javascript | chosen |
[
{
"from": "system",
"value": "Sort the original keys instead of the parsed floats\n\nThis fixes a bug where if your key is \"2.0\", we'd parse it as the float `2` and try to look up \"2\" in the dictionary which would fail. Instead do the parsing inside of `sort` which is a bit more expensive asymptotically... | javascript | chosen |
[
{
"from": "system",
"value": "Replace isFunction check with more open isCallable\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar slice = Array.prototype.slice\n , isFunction = require('es5-ext/lib/Function/is-function')\n , a2p = require('../apply_async_fn');\n\nrequire('..... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up ios delete key test\n\nClean up ios delete key test\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar setup = require(\"../../common/setup-base\"),\n desired = require('./desired'),\n unorm = require('unorm');\n\ndescribe('testapp - accented c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old style system callback, add function names for render() and debug()\n\ngit-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9403 688a9155-6ab5-4160-a077-9df41f55a9e9\n"
},
{
"from": "human",
"value": "import('helma.system', 'system');\n\nsystem.addHostObje... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.