conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix cross domain request (CORS) issue\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n //$.get('http://127.0.0.1:8000/output.csv', function (data) {\n //$.get('https://github.com/kenyot/weight_log/blob/gh-pages/output.csv', function (data) {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix (again) how this module is included via amd/commonjs\n"
},
{
"from": "human",
"value": "var webpack = require('webpack')\nvar generate = function(isProd) {\n return {\n entry: {\n 'sir-trevor-adapter': './src/index.js',\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(template): Fix path for storage util\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware, compose } from 'redux'\nimport rootReducer from 'reducers/rootReducer'\nimport { throttle } from 'lodash'\nimport createSagaMiddleware from 'redux-saga... | javascript | chosen |
[
{
"from": "system",
"value": "Modify external API to expose Configuration, Grid and Store\n"
},
{
"from": "human",
"value": "export default from './Widget'\n\nexport PivotTable from './components/Main'\n"
},
{
"from": "gpt",
"value": "export default from './Widget'\n\nexport PivotTab... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused teacher and course route\n"
},
{
"from": "human",
"value": "// For more information see: http://emberjs.com/guides/routing/\nSis.Router.map(function() {\n this.route('home', { path: '/' });\n this.route('teacher', { path: '/teacher' });\n this.route... | javascript | chosen |
[
{
"from": "system",
"value": "Use IE safe `for` loop in route styles initializer\n"
},
{
"from": "human",
"value": "import Router from '@ember/routing/router';\nimport { getOwner } from '@ember/application';\nimport podNames from 'ember-component-css/pod-names';\n\nRouter.reopen({\n didTransiti... | javascript | chosen |
[
{
"from": "system",
"value": "Fix overflowing page title when resizing the page\n\nIn the moe-list page, after the height of the thumbnails have been calculated and evened out, when resizing the page, the page title overfloed with the page count at time.\n\nCloses #89"
},
{
"from": "human",
"val... | javascript | chosen |
[
{
"from": "system",
"value": "Check if file exists to avoid trying to delete a non-existent file. Fixes GH-23.\n"
},
{
"from": "human",
"value": "/*\n * grunt-contrib-clean\n * http://gruntjs.com/\n *\n * Copyright (c) 2012 Tim Branyen, contributors\n * Licensed under the MIT license.\n */\n\n'u... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path name for angular component\n"
},
{
"from": "human",
"value": "// Testacular configuration\n\n// base path, that will be used to resolve files and exclude\nbasePath = '';\n\n// list of files / patterns to load in the browser\nfiles = [\n JASMINE,\n JASMINE... | javascript | chosen |
[
{
"from": "system",
"value": "Convert test back to ES5\n"
},
{
"from": "human",
"value": "const expect = require('chai').expect;\n\nconst childProcess = require('child_process');\nconst path = require('path');\nconst package = require('../package.json');\n\ndescribe('The module build', () => {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add exit validation of message receipt.\n"
},
{
"from": "human",
"value": "// Verify that we can spawn a worker, send and receive a simple message, and\n// kill it.\n\nvar assert = require('assert');\nvar path = require('path');\nvar sys = require('sys');\nvar Worke... | javascript | chosen |
[
{
"from": "system",
"value": "Remove name from test utils session\n"
},
{
"from": "human",
"value": "const buildHeaders = require('./build-headers')\n\nmodule.exports = {\n buildUserHeaders,\n buildHeaders\n}\n\nfunction buildUserHeaders (opts) {\n const _buildHeaders = buildHeaders(opts)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make tests pass. Still need actual unit tests.\n"
},
{
"from": "human",
"value": "import expect from 'expect'\nimport React from 'react'\nimport {render, unmountComponentAtNode} from 'react-dom'\n\nimport Component from 'src/'\n\ndescribe('Component', () => {\n le... | javascript | chosen |
[
{
"from": "system",
"value": "Replace hardcoded api values with env variables\n"
},
{
"from": "human",
"value": "angular.module('app.config', []);\n\nangular.module('app.config').factory('apiUrl', function($location) {\n // API Config\n var protocol = 'https' //$location.protocol();\n var hos... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up Ember routes a bit and clarify their declarations\n"
},
{
"from": "human",
"value": "define([\n 'ember',\n],\n\nfunction (Em) {\n 'use strict';\n\n var Router = Em.Router.extend({\n location: 'history'\n });\n\n Router.map(function () {\n this.re... | javascript | chosen |
[
{
"from": "system",
"value": "Use relative import within common folder\n"
},
{
"from": "human",
"value": "import DIFFICULTIES from 'common/DIFFICULTIES';\n\nexport default function getDifficulty(fight) {\n return DIFFICULTIES[fight.difficulty];\n}\n"
},
{
"from": "gpt",
"value": "im... | javascript | chosen |
[
{
"from": "system",
"value": "CHange number step on input area.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport TextField from 'material-ui/TextField';\nimport Card, { CardActions, CardContent } from 'material-ui/Card';\nimport Button from 'material-ui/Button... | javascript | chosen |
[
{
"from": "system",
"value": "Check if results from bank are not equal null\n"
},
{
"from": "human",
"value": "import { expect } from 'chai';\n\nimport NBG from '../src/banks/NBG';\nimport CreditAgricole from '../src/banks/CreditAgricole';\nimport CBE from '../src/banks/CBE';\n\nconst { describe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove more unnecessary files in dist/node_modules/\n"
},
{
"from": "human",
"value": "const shell = require('shelljs');\nconst path = require('path');\nconst { rebuild } = require('electron-rebuild');\n\nfunction rebuildModules(buildPath) {\n if (process.platform ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix references specific to ChromeSpec\n- Use console.log instead of `logger` from ChromeSpec app\n"
},
{
"from": "human",
"value": "// Copyright (c) 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with confirm group order\n"
},
{
"from": "human",
"value": "Template.callButton.events({\n 'click .call-button': function (event, template) {\n $(event.target)\n .data('working-text', 'Working...')\n .button('working')\n .prop('disabled'... | javascript | chosen |
[
{
"from": "system",
"value": "Add OpenLattice User Role role as clarification for default permissions\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport Immutable from 'immutable';\nimport { Table } from 'react-bootstrap';\nimport { AUTHENTICATED_USER } from '..... | javascript | chosen |
[
{
"from": "system",
"value": "Index location into a geopoint\n\nThe geopoint is a geolocation type which amongst other things supports geohashing.\n\nKB-351\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = metadata => {\n var coordinates;\n\n if (metadata.google_maps_coordi... | javascript | chosen |
[
{
"from": "system",
"value": "Install from git: try to install babel + presets automatically\n"
},
{
"from": "human",
"value": "/* eslint-disable no-var */\n\nvar stat = require(\"fs\").stat\nvar spawn = require(\"child_process\").spawn\nvar join = require(\"path\").join\nvar pkg = require(\"../... | javascript | chosen |
[
{
"from": "system",
"value": "Fix symbolication outside of chrome debugging\n\nSummary:\nWhen debugging in VScode or nucleide using a nodejs environment rather than chrome, the JS sources are made to appear as if they exist on disk, rather than coming from a `http://` url. Prior to this change the packager ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix module export and actually use this..\n"
},
{
"from": "human",
"value": "var BaconModelMixin = {\n componentDidMount: function() {\n this.unsubscribe = this.props.model.onValue(this.setState.bind(this));\n },\n componentWillUnmount: function() {\n if(th... | javascript | chosen |
[
{
"from": "system",
"value": "Update description on docs page\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar router = express.Router();\n\n/**\n * Home page\n */\nrouter.get('/', function (req, res, next) {\n\n res.render('yard/index');\n\n});\n\n\n/*... | javascript | chosen |
[
{
"from": "system",
"value": "Fix word count in ember.\n"
},
{
"from": "human",
"value": "export default function (s) {\n s = s.replace(/(^\\s*)|(\\s*$)/gi, ''); // exclude start and end white-space\n s = s.replace(/[ ]{2,}/gi, ' '); // 2 or more space to 1\n s = s.replace(/\\n /, '\\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add placeholder link to workshop fold\n\n"
},
{
"from": "human",
"value": "'use strict';\nimport React from 'react';\n\nvar WorkshopFold = React.createClass({\n displayName: 'WorkshopFold',\n\n render: function () {\n return (\n <section className='worksho... | javascript | chosen |
[
{
"from": "system",
"value": "Create return the created object from mongodb\n"
},
{
"from": "human",
"value": "const ModelState = require('../model-state');\n\nclass BaseData {\n constructor(db, ModelClass, validator) {\n this.db = db;\n this.validator = validator;\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Revise the way that searching for food is handled.\n"
},
{
"from": "human",
"value": "var CommandUtil = require('../../src/command_util')\n .CommandUtil;\nvar l10n_file = __dirname + '/../../l10n/scripts/rooms/8.js.yml';\nvar l10n = require('../../src/l10n')(l10n_f... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Use `@clear` instead of clearing manually\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet Message = require('./message')\n\nclass BottomPanel extends HTMLElement{\n prepare(){\n this.panel = atom.workspace.addBottomPanel({item: this, visible: true})... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Use non ideal state component to show no challenges\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Spinner } from '@blueprintjs/core';\nimport ChallengeCard from './ChallengeCard';\n\n\nclass Challe... | javascript | chosen |
[
{
"from": "system",
"value": "Change to right contract name for LimitBalance\n"
},
{
"from": "human",
"value": "module.exports = function(deployer) {\n deployer.deploy(PullPaymentBid);\n deployer.deploy(BadArrayUse);\n deployer.deploy(ProofOfExistence);\n deployer.deploy(Ownable);\n deploye... | javascript | chosen |
[
{
"from": "system",
"value": "Update of conf editor route\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.core').constant('CONF_ROUTE', {\n controller: 'ConfEditorCtrl',\n templateUrl: 'templates/conf_editor.html'\n});\n"
},
{
"from": "gpt",
"value": ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix embed=body to query string for eventstore in mono\n"
},
{
"from": "human",
"value": "var debug = require('debug')('geteventstore:getevents'),\n req = require('request-promise'),\n assert = require('assert'),\n url = require('url'),\n q = require('q')... | javascript | chosen |
[
{
"from": "system",
"value": "Add scaffolding for GET /objects route\n"
},
{
"from": "human",
"value": "var pg = require('pg');\nvar Hapi = require('hapi');\n\nvar server = new Hapi.Server();\n\n\nserver.connection({ port: 3000 });\n\nserver.start(function () {\n console.log('Server running... | javascript | chosen |
[
{
"from": "system",
"value": "Make arn optional in ListTagsOfResrouces\n"
},
{
"from": "human",
"value": "exports.types = {\n ResourceArns: {\n type: 'String',\n required: true,\n tableName: false,\n regex: 'arn:aws:dynamodb:(.+):(.+):table/(.+)',\n },\n}\n"
},
{
"from": "g... | javascript | chosen |
[
{
"from": "system",
"value": "Make adding new commands easier\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict'\n\nconst sergeant = require('sergeant')\nconst app = sergeant({ description: 'CMS for erickmerchant.com' })\n\nrequire('./src/commands/update.js')(app)\nrequire('./s... | javascript | chosen |
[
{
"from": "system",
"value": "Add @glimmer/env to vendor.js in local builds.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst build = require('@glimmer/build');\nconst packageDist = require('@glimmer/build/lib/package-dist');\nconst buildVendorPackage = require('@glimmer/build/lib/bui... | javascript | chosen |
[
{
"from": "system",
"value": "Make rover master unavailable for mobile devices\n\nNow, users with a small device (!gt-md in Material Angular speak) are redirected to main when they try to access the page via the URL.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module for the rove... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Add data adapter hsot\"\n\nThis reverts commit 20a22994a4b619ec58e123de3eb7c4de9f4af786.\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\nimport ENV from '../config/environment';\nimport DataAdapterMixin from 'ember-simple-auth/mixins/data-a... | javascript | chosen |
[
{
"from": "system",
"value": "Update file reference for Linux CI build\n"
},
{
"from": "human",
"value": "import { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport Facets from '../components/Facets';\nimport * as Window1Actions from '../actions/window1';\n\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Correct bug on chapters when playing a chapter\n\nThe chapter wasn't playing due to the wrong reference of the exposed function setTime.\n"
},
{
"from": "human",
"value": "(function(app){\n\n \"use strict\"\n\n /**\n * Creates a new HTML element ov-index to crea... | javascript | chosen |
[
{
"from": "system",
"value": "Move ID & HASH & CARD in CardDetail classes\n\nfrom Controller to Model\n"
},
{
"from": "human",
"value": "\n// ----------------------------------------------------------------\n// CardDetail Class\n\n// --------------------------------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Include author in progress notes\n"
},
{
"from": "human",
"value": "/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/\nExt.define('SlateAdmin.model.person.progress.ProgressNote', {\n extend: 'Ext.data.Model',\n\n idProper... | javascript | chosen |
[
{
"from": "system",
"value": "Make debugging easier by adding sourceURL\n\nSee here for more details http://stackoverflow.com/questions/15732017/trouble-debugging-content-scripts-in-a-chrome-extension-using-require-js"
},
{
"from": "human",
"value": "require.load = function (context, moduleName,... | javascript | chosen |
[
{
"from": "system",
"value": "Stop using our fork of cordova-plugin-googleplus.\n\nThe PR that we were waiting on got merged in April 2018:\nhttps://github.com/EddyVerbruggen/cordova-plugin-googleplus/pull/366\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Google OAuth flow\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix server login simulation timeout.\n"
},
{
"from": "human",
"value": "import express from 'express';\n\nconst router = express.Router();\n\nrouter.route('/login')\n .post(function(req, res, next) {\n\n const {password} = req.body;\n\n // Simulate DB checks ... | javascript | chosen |
[
{
"from": "system",
"value": "Use span tag for InPlaceFieldView\n"
},
{
"from": "human",
"value": "//\n//https://github.com/mszoernyi/ember-inplace-edit\n//\n\nvar InPlaceFieldView = Ember.View.extend({\n tagName: 'div',\n isEditing: false,\n layoutName: \"in_place_edit\",\n templateName: fu... | javascript | chosen |
[
{
"from": "system",
"value": "Use the `seq` from the fixture\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst assert = require('assert')\nconst assertCalled = require('assert-called')\nconst CouchDBChangesResponse = require('../')\n\nconst changes = [\n {\n id: 'foo',\n changes: [... | javascript | chosen |
[
{
"from": "system",
"value": "Remove tap framework (we don't seem to actually be using it)\n"
},
{
"from": "human",
"value": "module.exports = {\n basePath: '..',\n singleRun: true,\n client: {\n captureConsole: true\n },\n browsers: [\n 'PhantomJS'\n ],\n frameworks: [\n 'tap'\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove let in datasource tools tests\n"
},
{
"from": "human",
"value": "var datasourceTools = require(\"../source/tools/datasource.js\");\n\nmodule.exports = {\n\n\tsetUp: function(cb) {\n\t\t(cb)();\n\t},\n\n extractDSStrProps: {\n\n testExtractsPropertie... | javascript | chosen |
[
{
"from": "system",
"value": "Update error messages in user\n"
},
{
"from": "human",
"value": "var bcrypt = require( 'bcrypt' );\nvar appModels = require( '../models' );\nvar MongooseDataManager = require( '../utils/data_manager' ).MongooseDataManager;\nvar systemError = require( '../utils' ).sy... | javascript | chosen |
[
{
"from": "system",
"value": "Add version field to model definition\n"
},
{
"from": "human",
"value": "const Sequelize = require('sequelize');\nconst sequelize = require('./');\n\nconst Stage = require('./stage');\n\nconst Submission = sequelize.define('submissions', {\n\tname: {\n\t\ttype: Sequ... | javascript | chosen |
[
{
"from": "system",
"value": "Update todo example. fixes 'Create' that shouldn't happen\n\nCurrently, an `onBlur` creates a new todo on `TodoTextInput`. This makes sense for existing items but not for new items. I.e consider the following: \r\n\r\n1. cursor on new item (\"What needs to be done?\")\r\n2. cli... | javascript | chosen |
[
{
"from": "system",
"value": "Make dynamic host in /API\n"
},
{
"from": "human",
"value": "/*\n\n #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#\n This file is part of the Smart Developer Hub Project:\n http://www.smartdeveloperhub.org/\n Center ... | javascript | chosen |
[
{
"from": "system",
"value": "Configure gulp task to copy the redirects-configuration file properly\n"
},
{
"from": "human",
"value": "// common.js\n\nvar gulp = require('gulp'),\n $ = require('gulp-load-plugins')(),\n helper = require('../helper'),\n path = require('../path');\n\n// Ba... | javascript | chosen |
[
{
"from": "system",
"value": "Add one more creation way and refactor test descriptions.\n"
},
{
"from": "human",
"value": "// 1: async - basics\n// To do: make all tests pass, leave the assert lines unchanged!\n\ndescribe('`async` defines an asynchronous function', function() {\n\n describe('ca... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to retrieve key from instance\n"
},
{
"from": "human",
"value": "// Pure backbone stuffs\n//\n//= require app/settings\n//= require bb/underscore-min\n//= require bb/backbone-min\n//= require_self\n\nvar pubSub = _.extend({},Backbone.Events); //http://blog.saf... | javascript | chosen |
[
{
"from": "system",
"value": "Fix domains test after pull & npm install\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet nock = require('nock');\nlet cmd = require('../../../commands/domains');\nlet expect = require('chai').expect;\n\ndescribe('domains', function() {\n beforeEach(()... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Add route for user ripple deposit, withdraw in angular\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('publicApp', [\n 'ngCookies',\n 'ngResource',\n 'ngSanitize',\n 'ngRoute'\n])\n .config(function ($routeProvider) {\n $routePr... | javascript | chosen |
[
{
"from": "system",
"value": "Drop recurring_cost in favour of pro_rata boolean\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar ObjectId = mongoose.Schema.Types.ObjectId;\nvar ProductType = require(\"./producttype_model\");\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update rate of weight update\n"
},
{
"from": "human",
"value": "var data = []\nvar w0 = 1;\nvar w1 = 0;\nvar w2 = 0;\nvar alpha = 0.01;\n\nmodule.exports = {\n\n reportWeights : function(io) {\n //setInterval(function(){\n io.emit('weights', JSO... | javascript | chosen |
[
{
"from": "system",
"value": "Support extra params on event manager\n"
},
{
"from": "human",
"value": "\n;(function(){\n var binder = window.addEventListener ? 'addEventListener' : 'attachEvent'\n , unbinder = window.removeEventListener ? 'removeEventListener' : 'detachEvent'\n , eventPre... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with writing to log file when not suppose to\n"
},
{
"from": "human",
"value": "/*jslint node: true */\n'use strict';\n\nvar fs = require('fs');\n\nvar Logger = function() {};\n\nvar defaults = function(object, defaults) {\n for (var prop in defaults) {... | javascript | chosen |
[
{
"from": "system",
"value": "[Web] Add resources folder into test environment\n"
},
{
"from": "human",
"value": "Module.preRun = [\n function () \n {\n FS.mkdir('/test');\n FS.mount(NODEFS, { root: '../../Test/test' }, '/test');\n }\n]"
},
{
"from": "gpt",
"value": "Module.... | javascript | chosen |
[
{
"from": "system",
"value": "Add details field to launchpads\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\nconst mongoosePaginate = require('mongoose-paginate-v2');\nconst idPlugin = require('mongoose-id');\n\nconst launchpadSchema = new mongoose.Schema({\n name: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove forgotten references to Hero component\n"
},
{
"from": "human",
"value": "import angular from 'angular'\nimport Navbar from './navbar/navbar'\nimport Hero from './hero/hero'\nimport User from './user/user'\n\nconst commonModule = angular.module('app.common', ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow scheme/protocol to be passed to script\n\nGoogles GTM now seems to redirect any http request to https, this now causes an extra redirect which seems wasteful.\r\nThis proposal is to allow someone to pass in the scheme they desire so someone can always call https if they w... | javascript | chosen |
[
{
"from": "system",
"value": "Fix parsing of the CLI parameters\n"
},
{
"from": "human",
"value": "const minimist = require('minimist');\n\n\n// prepare CLI arguments\nconst argv = minimist(process.argv.slice(2), {\n boolean: [\"dev\", \"debug\", \"d\", \"v\", \"lint\", \"help\", \"version\"]... | javascript | chosen |
[
{
"from": "system",
"value": "Add color method to button item\n"
},
{
"from": "human",
"value": "import Item from './item';\n\nexport default class ButtonItem extends Item {\n constructor() {\n super();\n\n this._root\n .classed('button', true)\n .styles({\n 'background':... | javascript | chosen |
[
{
"from": "system",
"value": "Add no-sorting version of detect permutations.\n"
},
{
"from": "human",
"value": "const _ = require('lodash');\nconst quicksort = require('../../sorting-algorithms/javascript/quickSort');\n\n\nmodule.exports = detectPermutations;\n\nfunction detectPermutations (str1... | javascript | chosen |
[
{
"from": "system",
"value": "Support the set/unset of belongsTo relationship\n"
},
{
"from": "human",
"value": "'use strict';\nvar _ = require('lodash');\nvar P = require('bluebird');\nvar humps = require('humps');\nvar Schemas = require('../generators/schemas');\n\nfunction ResourceDeserialize... | javascript | chosen |
[
{
"from": "system",
"value": "Remove implementation detail of Plone path fallback to chunks directory. It is set in Products.CMFPlone.resources.browser.scripts.pt\n"
},
{
"from": "human",
"value": "// NOTE: Import this file before any other files\n// Overwrite path to load resources or use defau... | javascript | chosen |
[
{
"from": "system",
"value": "ALign with the relevant code\n"
},
{
"from": "human",
"value": "var replaceAll = function( oldToken ) {\n var configs = this;\n return {\n from: function( string ) {\n return {\n to: function( newToken ) {\n var _token;\n var index... | javascript | chosen |
[
{
"from": "system",
"value": "Change to function declaration so this is bound by scope\n"
},
{
"from": "human",
"value": "import React from \"react\";\r\nimport {Router, Route, Link, browserHistory, IndexRoute} from 'react-router';\r\nimport {Provider} from 'react-redux';\r\nimport thunk from 'r... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing commas in res.send() calls\n"
},
{
"from": "human",
"value": "/**\n * Get documentation URL\n */\nexports.getDocUrl = function (req, res) {\n\tres.sendBody('Documentation for this API can be found at http://github.com/thebinarypenguin/tasty');\n};\n\n\n/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix signalError, it needs to be function to be \"lazily\" evaluated and not throw Error immediately when called\n"
},
{
"from": "human",
"value": "import {Option} from 'giftbox';\n\nconst lists = {\n\t1: {\n\t\tid: 1,\n\t\tname: 'work items',\n\t\titems: [\n\t\t\t{ ... | javascript | chosen |
[
{
"from": "system",
"value": "Use audio file in inlineAudio story\n"
},
{
"from": "human",
"value": "import '../frontend';\nimport {storiesOfContentElement, filePermaId} from 'pageflow-scrolled/spec/support/stories';\n\nstoriesOfContentElement(module, {\n typeName: 'inlineAudio',\n baseConfigu... | javascript | chosen |
[
{
"from": "system",
"value": "Use single quotes for the JSON string, double quotes for the values within it\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar Brain = require('../lib/brain');\nvar Configuration = require('../lib/configuration.js');\nvar State = r... | javascript | chosen |
[
{
"from": "system",
"value": "Add more media file extensions\n"
},
{
"from": "human",
"value": "module.exports = {\n isPlayable,\n isVideo,\n isAudio,\n isPlayableTorrent\n}\n\nvar path = require('path')\n\n/**\n * Determines whether a file in a torrent is audio/video we can play\n */\nfunct... | javascript | chosen |
[
{
"from": "system",
"value": "Implement setCredentials on the mock OAuth2 client\n\nFixes broken unit tests.\n\nThe implementation looks kind of ridiculous, but it's not terribly different\nfrom what Google does themselves as of 1.1.3:\n\nhttps://github.com/google/google-api-nodejs-client/blob/bd356c38efc5a... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Create store for current month if doesnt exists\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n\n model () {\n return this.get('store').findAll('expense');\n // return this.get('store').findAll('e... | javascript | chosen |
[
{
"from": "system",
"value": "Return documents to make it easier to test\n"
},
{
"from": "human",
"value": "function download(filename, text, click = true) {\n const element = document.createElement('a');\n element.setAttribute('href', `data:text/plain;charset=utf-8,${encodeURIComponent(text)}... | javascript | chosen |
[
{
"from": "system",
"value": "Make the code even shorter\n"
},
{
"from": "human",
"value": "(function(document) {\n\n document.addEventListener(\"wheel\", function(e) {\n if (e.shiftKey) {\n if (e.deltaX > 0) {\n window.history.back();\n return e.preventDefault();\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Update factory name to ngCrypto"
},
{
"from": "human",
"value": "/**\n * Angular crypto-js\n * https://github.com/janppires/angular-crypto-js.git\n **/\n (function(angular, CryptoJS){\n 'use strict';\n\n angular\n .module('angular-crypto-js', [])\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove prism fix for html and js code blocks\n"
},
{
"from": "human",
"value": "\nvar md = (function () {\n // marked\n var defaults = {\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n sanitize: false,\n // sanitizer: null,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Send all arch events for now\n"
},
{
"from": "human",
"value": "// Copyright 2002-2014, University of Colorado Boulder\n\n/**\n * Base class for button models, which describe the behavior of buttons when users interact with them. Property values\n * are set by an a... | javascript | chosen |
[
{
"from": "system",
"value": "Use Node's `inspect` for error message formation\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nvar nodeUtils = require('util');\n\n\nvar REASONS = {\n 'values' : 'Given objects are not equal',\n 'types' : 'Given objects a... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for minLength and limit in AutoComplete"
},
{
"from": "human",
"value": "import {bindable, customAttribute} from 'aurelia-templating';\r\nimport {inject} from 'aurelia-dependency-injection';\r\nimport {fireEvent} from '../common/events';\r\n\r\n@customAt... | javascript | chosen |
[
{
"from": "system",
"value": "Add pretty-ms to display a friendlier error message on timeout\n"
},
{
"from": "human",
"value": "const RateLimiter = require(\"rolling-rate-limiter\");\n\nconst config = require('../config');\n\nconst validKeys = ['key1','key2', 'key3', 'key4', 'key5']; //TODO repl... | javascript | chosen |
[
{
"from": "system",
"value": "Make the Calculator app window remember its position.\n\nBUG=153630\n\n\nReview URL: https://chromiumcodereview.appspot.com/11092091\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@162036 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"from": "human",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Change port settings for heroku\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar debug = require('debug')('passport-mongo');\nvar app = require('./app');\n\napp.set('port', 27017);\n\nvar server = app.listen(app.get('port'), function() {\n debug('Expre... | javascript | chosen |
[
{
"from": "system",
"value": "Fix startup for clients using Finnish and Chinese.\n"
},
{
"from": "human",
"value": "// We save the user language preference in the user profile, and use that to set\n// the language reactively. If the user is not connected we use the language\n// information provi... | javascript | chosen |
[
{
"from": "system",
"value": "Stop registering a lowercase epsg32631 projection\n\nWe said it is now only uppercase.\n"
},
{
"from": "human",
"value": "goog.provide('ngeo.proj.EPSG32631');\n\ngoog.require('ol.proj');\n\nif (typeof proj4 == 'function') {\n const epsg32631def = [\n '+proj=utm'... | javascript | chosen |
[
{
"from": "system",
"value": "Add matchPath to top-level exports\n"
},
{
"from": "human",
"value": "export {\n withHistory,\n Route,\n Switch,\n Router\n} from './Core'\n\n// Accessories\nexport Link from './Link'\nexport Redirect from './Redirect'\nexport Prompt from './Prompt'\n\n// High-l... | javascript | chosen |
[
{
"from": "system",
"value": "Use vertical check box group in Tug of War tab\n"
},
{
"from": "human",
"value": "//Render a simple vertical check box group, where the buttons all have the same sizes\n//TODO: not ready for use in simulations, it will need further development & discussion first.\nd... | javascript | chosen |
[
{
"from": "system",
"value": "Hide settigns login if oscar hasn't been tapped\n"
},
{
"from": "human",
"value": "// @flow\n\nimport * as React from 'react'\nimport {StyleSheet, ScrollView} from 'react-native'\nimport {TableView} from 'react-native-tableview-simple'\nimport type {TopLevelViewProp... | javascript | chosen |
[
{
"from": "system",
"value": "Add day 7 solution part 2\n"
},
{
"from": "human",
"value": "// Part 1\nI=document.body.innerText.split`\\n`,I.map(x=>x.split` `[0]).find(w=>!I.some(e=>[...e.split`>`,''][1].includes(w)))\n"
},
{
"from": "gpt",
"value": "// Part 1\nI=document.body.innerT... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.