conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "prototype: Simplify the NWMatcher adapter and optimize it for browsers that don't need to extend DOM elements. [jddalton]\n"
},
{
"from": "human",
"value": "Prototype._original_property = window.NW;\n//= require \"repository/src/nwmatcher\"\n\nPrototype.Selector = (... | javascript | chosen |
[
{
"from": "system",
"value": "Fix demo app: modules no longer act as JSAdapters\n\ngit-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9147 688a9155-6ab5-4160-a077-9df41f55a9e9\n"
},
{
"from": "human",
"value": "// a simple web app/module\nimportFromModule('helma.skin', 'render');\n\nfunction m... | javascript | chosen |
[
{
"from": "system",
"value": "Save comment with username instead of user id\n"
},
{
"from": "human",
"value": "import { Mongo } from 'meteor/mongo';\nimport { ValidatedMethod } from 'meteor/mdg:validated-method';\nimport { SimpleSchema } from 'meteor/aldeed:simple-schema';\n\nexport const Messag... | javascript | chosen |
[
{
"from": "system",
"value": "Improve Faye/Bayeux coverage in widget specs.\n"
},
{
"from": "human",
"value": "import { test , moduleForComponent } from 'appkit/tests/helpers/module-for';\nimport DashboardWidgetComponent from 'appkit/components/dashboard-widget';\n\nmoduleForComponent('dashboard... | javascript | chosen |
[
{
"from": "system",
"value": "Add header background color based on config\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport NavMenu from './NavMenu';\n\nexport default class Header extends React.Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add null check on help generation\n"
},
{
"from": "human",
"value": "import Plugin from \"./Plugin\";\n\nexport default class MasterPlugin extends Plugin {\n\n static get plugin() {\n return {\n name: \"MasterPlugin\",\n description: ... | javascript | chosen |
[
{
"from": "system",
"value": "Use `for` instead of `forEach` as it minifies better."
},
{
"from": "human",
"value": "var slice = [].slice;\n\nmodule.exports = {\n on: function on(ev, handler) {\n var events = this._events,\n eventsArray = events[ev];\n\n if (!eventsAr... | javascript | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Fix the jit-grunt mapping for the replace task\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\t\"use strict\";\n\n\t// Display the execution time of grunt tasks\n\trequire(\"time-grunt\")(grunt);\n\n\t// Load all grunt-tasks in 'Bui... | javascript | chosen |
[
{
"from": "system",
"value": "Fix anchor of the \"Add it to the directory\" link"
},
{
"from": "human",
"value": "import React from 'react';\nimport Link from '../components/Link';\nimport { StyleSheet, css } from 'glamor/aphrodite';\n\nexport default () => {\n return (\n <footer className={... | javascript | chosen |
[
{
"from": "system",
"value": "Fix flash of unstyled text"
},
{
"from": "human",
"value": "import Head from 'next/head';\n\nexport default () =>\n <header>\n <Head>\n <style>{`\n body {\n font-family: \"Helvetica Neue\", Arial, sans-serif;\n }\n `}</style>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix rendering before prefs loaded\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default class Prefs extends React.Component {\n static propTypes = {\n prefs: React.PropTypes.object.isRequired,\n setPrefs: React.PropTypes.func.isRequir... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging with Blueprint authorization token\n"
},
{
"from": "human",
"value": "var BlueprintClient = require('xively-blueprint-client-js');\n\nvar client = new BlueprintClient({\n authorization: process.env.BLUEPRINT_AUTHORIZATION\n});\n\nmodule.exports = client... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct port env variable\n"
},
{
"from": "human",
"value": "var server = require('./server');\n\nvar port = process.env.port || 3000;\nserver.listen(port, function() {\n console.log('Listening on port ' + port);\n});\n"
},
{
"from": "gpt",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging for server-side work completed event\n"
},
{
"from": "human",
"value": "const io = require('socket.io'),\n winston = require('winston');\n\nwinston.remove(winston.transports.Console);\nwinston.add(winston.transports.Console, {'timestamp': true});\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add image the right way\n"
},
{
"from": "human",
"value": "(function(document){\n\n function setStyle(style, param) {\n var range, sel;\n\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.getRangeAt) {\n range = sel.getRan... | javascript | chosen |
[
{
"from": "system",
"value": "Make babel-runtime use ecmascript-runtime on server only.\n"
},
{
"from": "human",
"value": "Package.describe({\n name: \"babel-compiler\",\n summary: \"Parser/transpiler for ECMAScript 2015+ syntax\",\n // Tracks the npm version below. Use wrap numbers to incre... | javascript | chosen |
[
{
"from": "system",
"value": "Check that posts exist before applying the resizeObserver\n"
},
{
"from": "human",
"value": "import $ from \"jquery\";\nimport Sugar from \"../../sugar\";\n\n/**\n * Handlers for scripted embed (social) quirks\n */\n$(Sugar).bind(\"ready\", function(){\n\n // Initi... | javascript | chosen |
[
{
"from": "system",
"value": "Allow cache methods that are run from the service.\n"
},
{
"from": "human",
"value": "define([], function () {\n\n var caches = {};\n\n function Cache(method) {\n this.method = method;\n this._store = {};\n }\n\n /** xml -> Promise<Result> **/\n Cache.pro... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Vdos collection on client\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'pntbr:youtube',\n version: '0.0.1',\n summary: 'Manage Youtube\\'s videos',\n git: 'https://github.com/goacademie/fanhui',\n documentation: 'README.md'\n})\n\nPacka... | javascript | chosen |
[
{
"from": "system",
"value": "Add semicolons to avoid generating typos\n"
},
{
"from": "human",
"value": "/*!\n{\n \"name\": \"Unicode characters\",\n \"property\": \"unicode\",\n \"tags\": [\"encoding\"],\n \"warnings\": [\n \"positive Unicode support doesn't mean you can use it inside <... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Tryign double quotes to prevent HTML entity encoding.\"\n\nThis reverts commit 656c393aaa66e558179ad94f08812bd3c931b690.\n"
},
{
"from": "human",
"value": "module.exports = {\n app_host_port: 'streetmix-staging.herokuapp.com',\n restapi_baseuri: \"http://... | javascript | chosen |
[
{
"from": "system",
"value": "Delete the if-none-match header in the no-caching plugin\n"
},
{
"from": "human",
"value": "var robohydra = require('robohydra'),\n RoboHydraHead = robohydra.heads.RoboHydraHead;\n\nfunction getBodyParts(config) {\n \"use strict\";\n\n var n... | javascript | chosen |
[
{
"from": "system",
"value": "Add WATCHMEN_BASE_URL env var to configure base url\n"
},
{
"from": "human",
"value": "module.exports = {\n\n public_host_name: 'http://watchmen.letsnode.com/', // required for OAuth dance\n\n auth: {\n GOOGLE_CLIENT_ID: process.env.WATCHMEN_GOOGLE_CLIE... | javascript | chosen |
[
{
"from": "system",
"value": "Fix correct check for env argument passed\n\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar nightwatch = require('nightwatch');\nvar originalArgv = JSON.parse(process.argv[2]);\n\nnightwatch.cli(function(argv) {\n for (var key in originalArgv) {... | javascript | chosen |
[
{
"from": "system",
"value": "Handle missing title localisation file.\n"
},
{
"from": "human",
"value": "/**\n * i18n plugin\n * register handlebars handler which looks up translations in a dictionary\n */\n\nvar path = require(\"path\");\nvar fs = require(\"fs\");\nvar handlebars = require(\"ha... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up and make a separate method for return a readStream\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar JSONStream = require('JSONStream');\n\nvar jsonReader = {};\njsonReader.read = function (fileName, callback) {\n return fs.readFile(fileName,... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of node path utils when processing the jst names for jst grunt task\n"
},
{
"from": "human",
"value": "require('js-yaml');\n\nmodule.exports = function (grunt) {\n grunt.loadNpmTasks('grunt-contrib-jst');\n grunt.loadNpmTasks('grunt-mocha-test');\n grunt... | javascript | chosen |
[
{
"from": "system",
"value": "Remove exception on requiring module"
},
{
"from": "human",
"value": "/**\n * @class nodelinux\n * This is a standalone module, originally designed for internal use in [NGN](http://github.com/thinkfirst/NGN).\n * However; it is capable of providing the same features... | javascript | chosen |
[
{
"from": "system",
"value": "Enable remote debugging when running app. "
},
{
"from": "human",
"value": "module.exports = function(grunt) { \n\n grunt.initConfig({\n\n nodewebkit: {\n options: {\n platforms: ['osx'],\n buildDir: './build', \n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a grunt task for only the jsbox_app js tests\n"
},
{
"from": "human",
"value": "require('js-yaml');\n\nmodule.exports = function (grunt) {\n grunt.loadNpmTasks('grunt-mocha-test');\n\n grunt.initConfig({\n paths: require('paths.yml'),\n mochaTest: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeouts to social app loading\n"
},
{
"from": "human",
"value": "// load social sharing scripts if the page includes a Twitter \"share\" button\nvar _jsLoader = _jsLoader || {};\n\n// callback pattern\n_jsLoader.initTwitter = (function() {\n if (typeof (twtt... | javascript | chosen |
[
{
"from": "system",
"value": "Fix fallout from global lexical scope changes.\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://mo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix fullscreen mode when using disableEncapsulation option\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('sgApp')\n .directive('shadowDom', function(Styleguide, $templateCache) {\n\n var USER_STYLES_TEMPLATE = 'userStyles.html';\n\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Include url attribute in created Collection\n"
},
{
"from": "human",
"value": "define(['streamhub-sdk/collection'], function (Collection) {\n 'use strict';\n\n\n var HotCollectionToCollection = function () {};\n\n\n /**\n * Transform an Object from Stre... | javascript | chosen |
[
{
"from": "system",
"value": "Create worker queue with options"
},
{
"from": "human",
"value": "var mongo = require('mongoskin');\nvar job = require('./job');\nvar Queue = require('./queue');\nvar Worker = require('./worker');\n\nmodule.exports = Connection;\n\nfunction Connection(uri, options) ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix header nav selected key issue\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Menu, Icon, Popover } from 'antd'\nimport { Link } from 'dva/router'\nimport uri from 'utils/uri'\nimport { l } from 'utils/l... | javascript | chosen |
[
{
"from": "system",
"value": "Implement sort ordering for SubTabView\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react'\nimport {StyleSheet, View} from 'react-native'\nimport TabButton from './TabButton'\n\nexport default class extends Component {\n\tstate = {activeTab: 0}... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for nested pages\n"
},
{
"from": "human",
"value": "const fs = require(`fs`);\nconst glob = require(`glob`);\nconst path = require(`path`);\n\nconst buildHtml = require(`./_build-html.js`);\n\nconst pages = glob.sync(path.join(process.cwd(), `pages`, `**... | javascript | chosen |
[
{
"from": "system",
"value": "Make printview work with jupyter\n"
},
{
"from": "human",
"value": "// convert current notebook to html by calling \"ipython nbconvert\" and open static html file in new tab\n\ndefine([\n 'base/js/namespace',\n 'jquery',\n], function(IPython, $) {\n \"use s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix priority order in default config usage (env is not priority)\n"
},
{
"from": "human",
"value": "require('./env');\n\nmodule.exports = function(config) {\n config = Object.assign({}, config, {\n BUGS_TOKEN: process.env.BUGSNAG_TOKEN,\n LOGS_TOKEN: process.... | javascript | chosen |
[
{
"from": "human",
"value": "Create app entry main file\n"
},
{
"from": "gpt",
"value": "import './css/app';\nconsole.log('Initiated');\nimport {postMessage, getMessage} from './js/worker';\n\ndocument.addEventListener('DOMContentLoaded', init);\n\nlet workerBlob;\nrequire(['raw!../builds/worker... | javascript | chosen |
[
{
"from": "system",
"value": "Remove current user data from response and user customer routes\n"
},
{
"from": "human",
"value": "const { Router } = require('express')\nconst authRoutes = require('./authentication')\nconst usersRoutes = require('./users')\nconst authMiddleware = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Add Cypress test for About menu\n"
},
{
"from": "human",
"value": "context(\"Sage top bar UI\", () => {\n beforeEach(() => {\n cy.visit(\"/\")\n })\n\n context(\"new node icon\", () => {\n it(\"lets you drag a node onto canvas\", () => {\n cy.getSageIf... | javascript | chosen |
[
{
"from": "system",
"value": "fix(demo): Fix access path of the button component\n"
},
{
"from": "human",
"value": "import 'normalize.css';\nimport React from 'react';\nimport { render } from 'react-dom';\nimport ButtonDemo from './components/ButtonDemo';\nimport './index.css';\n\nrender(\n <ma... | javascript | chosen |
[
{
"from": "system",
"value": "Add button that toggles `<Pic>` to make it easier to develop for unmount\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React, { Component } from 'react';\nimport Pic from '../lib/index.js';\n\nexport default class Playground extends Component {\n rende... | javascript | chosen |
[
{
"from": "system",
"value": "Add custom launcher for karma\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/1.0/config/configuration-file.html\n\nmodule.exports = function (config) {\n config.set({\n basePath: '... | javascript | chosen |
[
{
"from": "system",
"value": "Implement filtering items by keywords and price and passing result back\n"
},
{
"from": "human",
"value": "const WMASGSpider = require('../wmasg-spider');\n\nclass SearchItems {\n constructor(concurrency = 5) {\n this.title = 'search items';\n this.concurrenc... | javascript | chosen |
[
{
"from": "system",
"value": "Add permission group field to User object.\n\n#25\n"
},
{
"from": "human",
"value": "'use strict'\nlet mongoose = require('mongoose')\n\nmongoose.Promise = global.Promise\n\nlet Schema = mongoose.Schema\n\nlet UserSchema = new Schema({\n email: String,\n password:... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial validations (using redux forms)\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Field, reduxForm } from 'redux-form';\n\nclass PostsNew extends React.Component {\n renderField(field) {\n return (\n <div className='form-gr... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error message for missing classes\n"
},
{
"from": "human",
"value": "const parse = require(\"./parser\");\nconst { getClass } = require(\"./objects\");\nconst interpret = require(\"./virtualMachine\");\n\nfunction main({ runtime, data, system, log }) {\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Put in missing bytes field"
},
{
"from": "human",
"value": "define(['mac/roman'], function(macRoman) {\n\n 'use strict';\n \n function open(item) {\n return item.getBytes().then(function(bytes) {\n item.setDataObject(new TextView(bytes.buffer, bytes.byteO... | javascript | chosen |
[
{
"from": "system",
"value": "Change mixed type to array json\n"
},
{
"from": "human",
"value": "var Bcrypt = require('bcryptjs')\nvar Mongoose = require('../../database').Mongoose\n\nvar ObjectId = Mongoose.Schema.Types.ObjectId;\n\nvar userSchema = new Mongoose.Schema({\n username: {\n typ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve automatic focus to the search input\n"
},
{
"from": "human",
"value": "new Vue({\n el: '#app',\n delimiters: ['[[', ']]'],\n data: {\n search: '',\n activeNote: window.location.href.split('#')[1]\n },\n methods: {\n seeNote: function (note) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix debug plugin after hiding app title\n"
},
{
"from": "human",
"value": "enabled(){\n this.isDebugging = false;\n \n this.onKeyDown = (e) => {\n // ==========================\n // F4 key - toggle debug mode\n // ==========================\n \n if... | javascript | chosen |
[
{
"from": "system",
"value": "chore(cleanup): Remove old code for copying test-module"
},
{
"from": "human",
"value": "var utils = require('utils')\n , env = utils.bootstrapEnv()\n , moduleLdr = env.moduleLoader\n , injector = require('injector')\n , ncp = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Change exports for Execution Environment\n\nThis reverts the export which is resulting in canUseDOM’s value equaling undefined.\n"
},
{
"from": "human",
"value": "/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Cla... | javascript | chosen |
[
{
"from": "system",
"value": "Use rcomp instead of .reverse() in sort\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Semvish = require('semvish');\n\n\nmodule.exports = function(arr) {\n if(!arr) {\n return;\n }\n\n return arr.slice().sort(Semvish.compare).reverse();\n};... | javascript | chosen |
[
{
"from": "system",
"value": "Add dummy param to break caching\n"
},
{
"from": "human",
"value": "require.config({\n paths: {\n jquery: \"/static/js/libs/jquery-min\",\n underscore: \"/static/js/libs/underscore-min\",\n backbone: \"/static/js/libs/backbone-min\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove teacherConnect socket event for frontend handling\n"
},
{
"from": "human",
"value": "//var Teachers = require('../models/teachers');\n//var TeacherClasses = require('../models/Teacher_classes');\n//var Classes = require('../models/classes');\n//var ClassLesso... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with csrf token\n"
},
{
"from": "human",
"value": "/**\n * @copyright Copyright (c) 2012-2015 2amigOS! Consulting Group LLC\n * @link http://2amigos.us\n * @license http://www.opensource.org/licenses/bsd-license.php New BSD License\n */\nif (typeof dosamigos... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve regex forward lookahead issue"
},
{
"from": "human",
"value": "var m = angular.module(\"routeUrls\", []);\n\nm.factory(\"urls\", function($route) {\n\n var pathsByName = {};\n angular.forEach($route.routes, function (route, path) {\n if (route.n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix off-by-one error in match highlighter\n"
},
{
"from": "human",
"value": "function MatchHighlighter() {\n 'use strict';\n\n const mergeRanges = function(indexes) {\n return indexes.reduce(function(obj, index, pos) {\n const prevIndex = ind... | javascript | chosen |
[
{
"from": "human",
"value": "Add functionality to VideoList component\n"
},
{
"from": "gpt",
"value": "import React from 'react';\nimport VideoListItem from './video_list_item';\n\nconst VideoList = (props) => {\n const videoItems = props.videos.map((video) => {\n return <VideoListItem video... | javascript | chosen |
[
{
"from": "system",
"value": "Remove logging from server test\n"
},
{
"from": "human",
"value": "let chai = require('chai')\nlet chaiHttp = require('chai-http')\nlet server = require('../src/main.js')\nimport {expect} from 'chai'\nchai.use(chaiHttp)\n\ndescribe('server', () => {\n before( () =>... | javascript | chosen |
[
{
"from": "system",
"value": "Use Events instead of custom dispatcher (more)\n"
},
{
"from": "human",
"value": "import * as Backbone from 'backbone';\nimport Items from '../collections/items';\nimport SearchBoxView from '../views/searchBox-view';\nimport SearchResultsView from '../views/searchRe... | javascript | chosen |
[
{
"from": "system",
"value": "Set action to information when routing to workshop details\n"
},
{
"from": "human",
"value": "// Imports\nimport UserRoles from '../../core/auth/constants/userRoles';\nimport WorkshopController from './workshop.controller';\nimport WorkshopHeaderController from './w... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Enable delete and update post on home page\n"
},
{
"from": "human",
"value": "/**\n * Created by farid on 8/16/2017.\n */\nimport React, {Component} from \"react\";\nimport Post from \"./Post\";\nimport PropTypes from 'prop-types';\n\n\nclass CategoryBody exte... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Update SafeAreaView for React Nav 5\n\nCan't import directly from React Nav anymore, using `react-native-safe-area-context` now\n"
},
{
"from": "human",
"value": "// @flow\n\nimport * as React from 'react';\nimport { SafeAreaView } from 'react-navigation';\... | javascript | chosen |
[
{
"from": "system",
"value": "Create prototype react component for user in list\n"
},
{
"from": "human",
"value": "var UserList = React.createClass({\n componentDidMount: function() {\n socket.on('join', this._join);\n socket.on('part', this._part);\n },\n render: function... | javascript | chosen |
[
{
"from": "system",
"value": "Fix type on region tag"
},
{
"from": "human",
"value": "/**\n * Copyright 2017, Google, Inc.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the L... | javascript | chosen |
[
{
"from": "system",
"value": "Change karma to run both Firefox and Chrome.\n\nI have both, I care about both, so run both!\n"
},
{
"from": "human",
"value": "module.exports = function(config){\n config.set({\n\n basePath : './',\n\n files : [\n 'app/bower_components/angular/angular.j... | javascript | chosen |
[
{
"from": "system",
"value": "Add plugin state to logging\n"
},
{
"from": "human",
"value": "/* eslint-disable no-console */\nimport { CONFIG } from '../constants';\nimport { Socket } from 'phoenix';\nimport { startPlugin } from '..';\nimport listenAuth from './listenAuth';\nimport handleNotific... | javascript | chosen |
[
{
"from": "system",
"value": "Set log level. PhantomJS off.\n"
},
{
"from": "human",
"value": "var istanbul = require('browserify-istanbul');\nvar isparta = require('isparta');\n\nmodule.exports = function (config) {\n 'use strict';\n\n config.set({\n\n browsers: [\n 'Chr... | javascript | chosen |
[
{
"from": "system",
"value": "popup: Remove extraneous `maxHeight` prop on a `View`.\n\nThis is not a prop that the `View` component supports. It has never\nhad any effect, and the Flow 0.75 we'll pull in with RN 0.56 will\nregister it as an error.\n\nThis prop was added in commit ce0395cff when changing t... | javascript | chosen |
[
{
"from": "system",
"value": "Make some modules flow strict\n\nSummary:\nTSIA\n\nChangelog: [Internal]\n\nReviewed By: mdvacca\n\nDifferential Revision: D28412774\n\nfbshipit-source-id: 899a78e573bb49633690275052d5e7cb069327fb\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) Facebook, In... | javascript | chosen |
[
{
"from": "system",
"value": "Update target browsers. IE 11 needs to be manually specified now becuase it's dropped below 1% in Australia, but is still supported by ABC.\n"
},
{
"from": "human",
"value": "// External\nconst mem = require('mem');\n\n// Ours\nconst { merge } = require('../utils/st... | javascript | chosen |
[
{
"from": "system",
"value": "Write test for walkTre() filter.\n"
},
{
"from": "human",
"value": "import walkTree from '../../../src/util/walk-tree';\n\ndescribe('utils/walk-tree', function () {\n it('should walk parents before walking descendants', function () {\n var order = [];\n var o... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused before each call\n"
},
{
"from": "human",
"value": "describe('Satellite game', function () {\n beforeEach(function () {\n\n });\n\n it('should exists', function () {\n expect(s).to.be.an('object');\n expect(s).to.have.property('config');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update featured projects button text\n"
},
{
"from": "human",
"value": "$('.project-toggle-featured').on('click', function() {\n const projectId = $(this).data(\"project-id\"),\n featured = $(this).data(\"featured\") === \"True\";\n method =... | javascript | chosen |
[
{
"from": "system",
"value": "FIX : Version was not compatible with node\n\nReason : webpack was using window\n"
},
{
"from": "human",
"value": "var webpack = require('webpack'),\n path = require('path'),\n CleanWebpackPlugin = require('clean-webpack-plugin');\n\nvar libraryName = 'webstom... | javascript | chosen |
[
{
"from": "system",
"value": "Use single quotes for strings"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport FormControl from 'react-bootstrap/lib/FormControl';\n\nclass Filter extends Component {\n\n constructor(props){\n super(props);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use user service in interceptor\n"
},
{
"from": "human",
"value": "export default function userInterceptor($localStorage){\n function request(config){\n if(config.headers.Authorization){\n return config;\n }\n if($localStorage.token){\n config.he... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typos in text about NLP\n"
},
{
"from": "human",
"value": "/**\n * Created by Tomasz Gabrysiak @ Infermedica on 08/02/2017.\n */\n\nimport html from '../../templates/helpers';\n\nconst template = (context) => {\n return new Promise((resolve) => {\n resolve(h... | javascript | chosen |
[
{
"from": "system",
"value": "Fix chunkhash not allowed in development\n"
},
{
"from": "human",
"value": "// Used to run webpack dev server to test the demo in local\nconst webpack = require('webpack');\nconst path = require('path');\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use webpack just for transpileOnly of ts to js.\n\nType checking is done by IDE, npm run tscWatch or build anyway.\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n entry: {\n 'acrolinx-sidebar-integration': './src/acrolinx... | javascript | chosen |
[
{
"from": "system",
"value": "Move stuff to vendor bundle\n"
},
{
"from": "human",
"value": "var webpack = require('webpack')\n\nmodule.exports = {\n entry: {\n ui: './lib/ui/main.js',\n vendor: ['react', 'debug']\n },\n output: {\n path: 'dist',\n filename: '[name].js'\n },\n m... | javascript | chosen |
[
{
"from": "system",
"value": "Change default port to 6000 as specified in geogw\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst path = require('path')\nconst nconf = require('nconf')\n\nconst defaults = {\n\n port: 5000,\n\n mongo: {\n url: 'mongodb://localhost/link-analyzer',\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Add padding space between table name and loaded data\n"
},
{
"from": "human",
"value": "function Translator(domain) {\n this.domain = domain;\n this.init();\n}\n\nTranslator.prototype = {\n TYPE_ADD: 'add',\n MAPPED_FIELDS: {\n 'id': '_key'\n },\n\n init: f... | javascript | chosen |
[
{
"from": "system",
"value": "Use complete IP address as default\n\nWork around crash due to tabris-js issue 956\n"
},
{
"from": "human",
"value": "import {Events} from 'tabris';\nimport {mixin} from './helpers';\n\nconst store = {};\n\nclass Settings {\n\n get serverUrl() {\n return store.s... | javascript | chosen |
[
{
"from": "system",
"value": "Improve formatting of ModelValidationError toString()\n"
},
{
"from": "human",
"value": "var inherits = require('inherits');\n\nvar self = module.exports = {\n FieldValidationError: FieldValidationError,\n ModelValidationError: ModelValidationError,\n \n message... | javascript | chosen |
[
{
"from": "system",
"value": "Set legends and colors of series\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $.jqplot('gets-sets', [$(\"#gets-sets\").data(\"gets\"), $(\"#gets-sets\").data(\"sets\")], {\n title: 'Gets & Sets',\n grid: {\n drawBorder: false,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix offline endpoint to point to 2020 instead of 2019\n"
},
{
"from": "human",
"value": "/* eslint-disable max-len */\nimport dayjs from \"dayjs\";\n\nexport const GDQ_API_ENDPOINT = \"https://api.gdqstat.us\";\n\nexport const OFFLINE_MODE = true;\n\nconst LIVE_STOR... | javascript | chosen |
[
{
"from": "system",
"value": "Add back in the button tests"
},
{
"from": "human",
"value": "// import { test, getRenderedComponent } from '../spec_helper'\n// import { default as subject } from '../../src/components/buttons/Button'\n\n// test('#render', (assert) => {\n// const button = getRend... | javascript | chosen |
[
{
"from": "system",
"value": "Add direction information to cards\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux'\nimport { RECEIVE_STOP_DATA } from '../actions'\n\nconst cardsReducer = () => {\n return {cards: [{name: 'Fruängen', stopId: '9260', updating: false, error... | javascript | chosen |
[
{
"from": "system",
"value": "Change log level to lowercase\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar winston = require('winston');\nvar expressWinston = require('express-winston');\n\nvar requestLogger = expressWinston.logger({\n transports: [\n new winston.transports.Console(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix reaggroing when player gets hit while deaggrod.\n"
},
{
"from": "human",
"value": "import Obstacle from './Obstacle'\n\nexport default class extends Obstacle {\n constructor (game, player, x, y, frame, bulletFrame) {\n super(game, player, x, y, frame)\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Throw errors on non-zero cmd exit codes\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar exec = require('child_process').exec;\nvar semver = require('semver');\nvar sh = require('execSync');\nvar packageJSONPath = path.joi... | javascript | chosen |
[
{
"from": "system",
"value": "Set DISABLE_EXTRACT_CSS in correct place\n"
},
{
"from": "human",
"value": "const genDefaultConfig = require('@storybook/vue/dist/server/config/defaults/webpack.config.js')\nconst merge = require('webpack-merge')\n\nmodule.exports = (baseConfig, env) => {\n const s... | javascript | chosen |
[
{
"from": "system",
"value": "Replace `mount` calls with `shallow` in <Post> tests\n"
},
{
"from": "human",
"value": "import { expect } from 'chai';\nimport { mount } from 'enzyme';\nimport React from 'react';\nimport Post from '../../src/js/components/Post';\n\ndescribe('<Post/>', () => {\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Remove 'utf-8' option because it's the default.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\n/** Load modules. */\nvar fs = require('fs'),\n path = require('path');\n\n/** Resolve program params. */\nvar args = process.argv.slice(proce... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.