conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Fix scrollspy bug occured by layout changes\n"
},
{
"from": "human",
"value": "(function () {\n\nvar $specContainer = $('#spec-container');\n\nif (!isMobile) {\n $('.section-tabs a').click(function () {\n var href = $(this).attr('href');\n gotoTab(h... | javascript | chosen |
[
{
"from": "system",
"value": "Fix text for partner, add questions for reflection\n"
},
{
"from": "human",
"value": "// DOM Manipulation Challenge\n\n\n// I worked on this challenge by myself, with: Peter Leong.\n\n\n// Add your JavaScript calls to this page:\n\n// Release 0:\n// Add the class \"... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix a typo in template\nWe need the name to be motion so Motion.createElement is available for JSX\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport React from 'react'\n\nclass Main extends React.Component {\n render() {\n return <div>Hello World</d... | javascript | chosen |
[
{
"from": "system",
"value": "Use a smaller timeout value\n"
},
{
"from": "human",
"value": "\"use strict\";\nvar global = require(\"./global.js\");\nvar ASSERT = require(\"./assert.js\");\nvar schedule;\nif (typeof process !== \"undefined\" && process !== null &&\n typeof process.cwd === \"f... | javascript | chosen |
[
{
"from": "system",
"value": "Make downloads work in FF.\n"
},
{
"from": "human",
"value": "import ChunkedBlob from './ChunkedBlob'\n\nexport default class DownloadFile {\n\n constructor(name, size, type) {\n this.name = name\n this.size = size\n this.type = type\n this.chunks = new... | javascript | chosen |
[
{
"from": "system",
"value": "Add .js ext to load scripts/slack-github-issues\n\nThis is why Hubot wasn't finding the script. `robot.loadFile` will only try to\nload the file if it has an extension in `require.extensions`.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';... | javascript | chosen |
[
{
"from": "system",
"value": "Rename of function from transaction module\n"
},
{
"from": "human",
"value": "var mysql = require('mysql')\n\nvar createTransaction = require('any-db-transaction').createFromArgs\n\nexports.name = 'mysql'\n\nexports.createQuery = mysql.createQuery\n\nexports.createT... | javascript | chosen |
[
{
"from": "system",
"value": "Replace the `request` property with `resourcePath`"
},
{
"from": "human",
"value": "'use strict';\n\nvar istanbul = require('istanbul');\n\nmodule.exports = function(source) {\n var instrumenter = new istanbul.Instrumenter({\n embedSource: true,\n n... | javascript | chosen |
[
{
"from": "system",
"value": "Update url to plain old cascadiajs.com\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar opener = require(\"opener\");\nvar url = \"http://bit.ly/cascadiafest\";\n\nconsole.log(\"Opening \" + url);\nopener(url);\n"
},
{
"from": "gpt",
"value"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in exports of markdown module\n"
},
{
"from": "human",
"value": "// !! Defines a parser and serializer for\n// [CommonMark](http://commonmark.org/) text (registered in the\n// [`format`](#format) module under `\"markdown\"`).\n\n;({defaultMarkdownParser: ex... | javascript | chosen |
[
{
"from": "system",
"value": "Remove version when client is used\n\nUpon further reading of the Google Maps docs when using a client ID and not specifying a version it will by default supply the Release version. Since its not necessary to provide a version number I removed that bit of code."
},
{
"f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix display mode for block formulas\n"
},
{
"from": "human",
"value": "var katex = require(\"katex\");\n\nmodule.exports = {\n book: {\n assets: \"./static\",\n js: [],\n css: [\n \"katex.min.css\"\n ]\n },\n ebook: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Replace all the occurences of web-unsafe and web-safe characters in base64 functions\n"
},
{
"from": "human",
"value": "var url = require(\"url\"),\n crypto = require(\"crypto\");\n\nvar signGMapsURL = function(urlToSign, webSafeKey) {\n var b64Key = fromWebSafeBa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"undefined var exts when eslint-local-rules.js not found\"\n\nFixes #14"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nvar { requireUp } = require('./requireUp');\nvar { DEFAULT_EXTENSIONS } = require('./constants');\n\nvar rules = req... | javascript | chosen |
[
{
"from": "system",
"value": "Update for loop to be old-js compatible\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar reshape = require('reshape')\n\nexports.name = 'reshape';\nexports.inputFormats = ['reshape', 'html'];\nexports.outputFormat = 'html';\n\nexports.renderAsync = function (... | javascript | chosen |
[
{
"from": "system",
"value": "Use ducktyping to detect streams, return early instead of else\n"
},
{
"from": "human",
"value": "var es = require('event-stream');\nvar rs = require('replacestream');\nvar stream = require('stream');\n\nmodule.exports = function(search, replacement) {\n var doRepl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove commented code in test\n"
},
{
"from": "human",
"value": " // assert(typeof callback === 'function');\n // var duplex = !(method === 'GET' || method === 'DELETE' || method === 'HEAD');\n // if (duplex) {\n // return {\n // end: function (body) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Test with a broken bundled dependency\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar assert = require('assert')\nvar dependenciesToArray = require('../')\n\nassert.deepEqual(dependenciesToArray({\n dependencies: {\n foo: '^1.0.0'\n }\n}), [\n { package... | javascript | chosen |
[
{
"from": "system",
"value": "Replace syntax disallowed by eslint config\n"
},
{
"from": "human",
"value": "/* eslint no-console:0 */\n\n// mocha/jsdom setup from:\n// http://reactjsnews.com/testing-in-react/\n\nimport jsdom from 'jsdom';\nimport chai from 'chai';\nimport chaiEnzyme from 'chai-e... | javascript | chosen |
[
{
"from": "system",
"value": "Add a filter for case sensitivity\n\n@audreycarlsen Let me know if you see this screw anything up for you. It\nshould be relatively stable, but you never know.\n"
},
{
"from": "human",
"value": "/*\n\nSets up a connect server to work from the /build folder. May also... | javascript | chosen |
[
{
"from": "system",
"value": "Include partial-word matches in place picker CS-12315\n"
},
{
"from": "human",
"value": "define([\"knockout\", \"app/urls\", \"jquery\", \"data\", \"knockout.init\"],\n\tfunction (ko, urls, $, data, init) {\n\t\tfunction ViewModel(selected) {\n\n\t\t\tthis.placesUr... | javascript | chosen |
[
{
"from": "system",
"value": "Include permanent notification in example\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { render } from 'react-dom';\nimport { Notification } from 'react-notification';\n\nclass Example extends Component {\n constructor(props)... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the creation of object to follow the ES6 spec.\n"
},
{
"from": "human",
"value": "// Easier, more readable way of retrieving an HTTP Error type for passing through Koa\n// example: throw new httpErrors.Forbidden('No way, Jose'))\n\nimport http from 'http'\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Remove scope isolated scope from navigation directive\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n module.exports = ['Config', '$location', function (Config, $location) {\n\n function link(scope) {\n\n // Set key to watch for activ... | javascript | chosen |
[
{
"from": "system",
"value": "client: Improve background contrast for current song titles.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Card, CardHeader, CardMedia, CardTitle } from 'material-ui/Card';\n\nconst ServerThumbnail = ({\n server,\n media\n}) => (\n <Card... | javascript | chosen |
[
{
"from": "system",
"value": "Add explode to projectile mixin\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst Projectile = (props) => {\n return (\n <a-mixin\n id='projectile'\n dynamic-body\n geometry='primitive: sphere; radius: 0.25;'\n // velocity='0 0 -... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing injection for minified MainCtrl\n"
},
{
"from": "human",
"value": "function MainCtrl($scope, $routeParams, $route, $location) {\n\n $scope.checkLocation = function() {\n if (!$location.path().startsWith('/login')) {\n $scope.hideAdmi... | javascript | chosen |
[
{
"from": "system",
"value": "FIX: Fix locator for decimal input\n"
},
{
"from": "human",
"value": "// knobs locators\nexport const INPUT_PRECISION_SLIDER = 'input[name=\"precision\"][type=\"range\"]';\n\n// component preview locators\nexport const LABEL_INPUT_PREVIEW = 'div[role=\"presentation\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove functional property from component\n"
},
{
"from": "human",
"value": "function identity (x) {\n return x\n}\n\nmodule.exports = {\n name: 'AnimatedNumber',\n functional: true,\n props: {\n number: Number,\n formatter: {\n type: Function,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Convert Property to ES6 class\n"
},
{
"from": "human",
"value": "var inherits = require('util').inherits;\n\n// var Property = require('gremlin-core/src/structure/Property');\n// var GraphKey = require('gremlin-core/src/structure/Graph.Key');\n\nfunction TinkerPrope... | javascript | chosen |
[
{
"from": "system",
"value": "Fix log to allow use console and file at same time\n"
},
{
"from": "human",
"value": "import * as sqlectron from 'sqlectron-core';\nimport config from './config';\n\n// Hack solution to ignore console.error from dtrace imported by bunyan\n/* eslint no-console:0 */\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add message output from console.log.\n"
},
{
"from": "human",
"value": "const WebSocket = require('ws');\n\nconst wss = new WebSocket.Server({\n perMessageDeflate: false,\n port: 8080\n});\n\nwss.on('connection', (ws) => {\n\n // Receive message from client\n ws... | javascript | chosen |
[
{
"from": "system",
"value": "Add remove track to Mixer model\n"
},
{
"from": "human",
"value": "Mixer = function () {\n\tthis.mix = []\n}\n\n//Adds a track to the mix. Example args = {url: sound.aws.com, divId: 1}\nMixer.prototype.addTrack = function (args) {\n\tvar newTrack = new Howl({\n\t\tu... | javascript | chosen |
[
{
"from": "system",
"value": "Change template literal string to use string concatination.\n\nWhen precompiling assets for production, the template literals cause a\ncrash. String concatination avoids this issue.\n"
},
{
"from": "human",
"value": "// Place all the behaviors and hooks related to t... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct props on ShufflingCardGrid\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport uuid from 'uuid';\n\nimport './store/reducers';\nimport CARD_TEXTS from './store/values.json';\n\nimport ShufflingCardGrid from './components/... | javascript | chosen |
[
{
"from": "system",
"value": "Call cookie banner component JS\n"
},
{
"from": "human",
"value": "// = require govuk_publishing_components/modules\n// = require modules/global-bar\n// = require modules/sticky-element-container\n// = require modules/toggle\n// = require modules/track-click\n// = r... | javascript | chosen |
[
{
"from": "system",
"value": "Change ordering of JS pipeline\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts,... | javascript | chosen |
[
{
"from": "system",
"value": "Fix select2 not targeting inputs on navigation\n\nTurbolinks navigation messes with select2's default behavior.\nWe have to add a an explit call to `.select2` when Turbolinks\nhas finished rendering the new content.\n"
},
{
"from": "human",
"value": "// This is a ma... | javascript | chosen |
[
{
"from": "system",
"value": "Add switch sync icons around\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2020\n */\n\nimport React from 'react';\n\nimport PropTypes from 'prop-types';\n\nimport { connect } from 'react-redux';\n\nimport { selectUsin... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Validate all JS files in the 'Build/' subdir with JSHint\n"
},
{
"from": "human",
"value": "/**\n * Grunt-Contrib-JSHint\n * @description Validate files with JSHint.\n * @docs https://github.com/gruntjs/grunt-contrib-jshint\n */\n\nvar config = require('../Co... | javascript | chosen |
[
{
"from": "system",
"value": "Add some fugly javascript to pre-fill parent wiki page.\n"
},
{
"from": "human",
"value": "$(document).ready(function($) {\n $(\"#content .contextual\").prepend(\"<a href=\\\"#\\\">New</a>\");\n});\n"
},
{
"from": "gpt",
"value": "$(document).ready(fu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Allow database name to be configured\n\nWe broke the honoring of the database name\nsettings when we 'refactored' server.js a\ncouple commits ago.\n"
},
{
"from": "human",
"value": "// server.js\r\n// \r\n// The main entry point for Circle Blvd. Handles\r\n// c... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Check if boot obj exists\n"
},
{
"from": "human",
"value": "// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n// MIT License. See license.txt\n\n// for translation\nfrappe._messages = {};\nfrappe._ = function(txt, replace, context = null) {... | javascript | chosen |
[
{
"from": "system",
"value": "Add PAYLINEV2 parameter on TemplateURLOptions"
},
{
"from": "human",
"value": "var EntityBase = require('./EntityBase');\n\nvar PayInTemplateURLOptions = EntityBase.extend({\n defaults: {\n PAYLINE: null\n }\n});\n\nmodule.exports = PayInTemplateURLOpti... | javascript | chosen |
[
{
"from": "system",
"value": "Work around bungle bug (it ignores dependencies).\n"
},
{
"from": "human",
"value": "/**\n * Patterns gallery - A simple gallery\n *\n * Copyright 2013 Simplon B.V. - Wichert Akkerman\n */\ndefine([\n \"jquery\",\n \"../registry\",\n \"photoswipe\"\n], func... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where homepage only displayed once.\n\nResolves #383\n"
},
{
"from": "human",
"value": "//\n// Gistbook\n// A model representing a new Gistbook\n//\n\nimport { BaseModel, BaseCollection } from 'base/entities';\n\nexport default BaseModel.extend({\n initiali... | javascript | chosen |
[
{
"from": "system",
"value": "Add JS to clear text area after submit answer post form"
},
{
"from": "human",
"value": "$(document).on(\"ready\", function(){\n\n $('#answers-form form').on('submit', function(event){\n event.preventDefault();\n var valuesToSubmit = $(this).serialize();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Update OutgoingPaymentProcessor to use new method.\n"
},
{
"from": "human",
"value": "var depositCallbackJob = require(__dirname+'/../jobs/deposit_completion_callback.js');\nvar OutgoingPayment = require(__dirname+'/outgoing_payment.js');\nvar gateway = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Set stdout / stderr with to 80 to fix tests\n"
},
{
"from": "human",
"value": "'use strict'\n/* globals cli */\n\nglobal.cli = require('heroku-cli-util')\ncli.raiseErrors = true\ncli.color.enabled = false\n\nlet nock = require('nock')\nnock.disableNetConnect()\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Browsersync notifications and ghostMode\n"
},
{
"from": "human",
"value": "module.exports = {\n bsFiles: {\n src: [\n '<%= globalConfig.public.public %>/**/*',\n '!<%= globalConfig.public.public %>/patterns/**/*'\n ]\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add newly-posted review to the reviews list without needing to refresh.\n"
},
{
"from": "human",
"value": "/* global angular */\nangular.module('ClassRat').controller('reviewInputCtrl', function($scope, $http, sharedReviewInputFormService, addReviewService) {\n $... | javascript | chosen |
[
{
"from": "system",
"value": "Add lessons and other service\n"
},
{
"from": "human",
"value": "'use strict';\n\n// const userLessonTokens = require('./user-lesson-tokens');\n\n// const lessons = require('./lessons');\n\nconst users = require('./users');\n\nconst mongoose = require('mongoose')\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Change New Todo to Modal.\n"
},
{
"from": "human",
"value": "import NavigationBar from 'react-native-navbar';\nimport React, { Component, PropTypes } from 'react';\nimport {\n View,\n ScrollView,\n} from 'react-native';\n\nimport {default as AddTodo} from '../comp... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for nested HTML\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\nvar test = require(\"./testing\").test;\n\nvar htmlWriter = require(\"../lib/html-writer\");\n\n\ndescribe('html-writer', function() {\n test('can generate simple parag... | javascript | chosen |
[
{
"from": "system",
"value": "Support event timezone aware datetime\n"
},
{
"from": "human",
"value": "import dayjsCommon from 'dayjs';\n\ndayjsCommon.extend(require('dayjs/plugin/advancedFormat'))\ndayjsCommon.extend(require('dayjs/plugin/calendar'))\ndayjsCommon.extend(require('dayjs/plugin/re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix required title in test fixture\n"
},
{
"from": "human",
"value": "import test from '../../../../';\n\ntest(t => {\n\tt.is(global.value, '🦄');\n});\n"
},
{
"from": "gpt",
"value": "import test from '../../../../';\n\ntest('test', t => {\n\tt.is(globa... | javascript | chosen |
[
{
"from": "system",
"value": "Add new line to EOF\n"
},
{
"from": "human",
"value": "/*!\n * Copyright 2013 Apereo Foundation (AF) Licensed under the\n * Educational Community License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License. You may\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Update serviceworker cache config for source files\n"
},
{
"from": "human",
"value": "module.exports = {\n navigateFallbackWhitelist: [/^\\/nothing\\//],\n staticFileGlobs: [\n 'manifest.json',\n 'bower_components/webcomponentsjs/*.js',\n 'images/*'\n ],... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typos in Mailer Config"
},
{
"from": "human",
"value": "Mailer.config({\n from: 'John Doe <from@domain.com',\n replyTo: 'John Doe <from@domain.com'\n});\n\nMeteor.startup(function() {\n\n Mailer.init({\n templates: Templates, // Global Templates namesp... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of jquery no conflict for stripe JS\n"
},
{
"from": "human",
"value": "Stripe.setPublishableKey('$PublishKey');\nvar payment_form_id = '#$FormName';\n\n$(function() {\n var payment_form = $(payment_form_id);\n\n payment_form.bind(\n \"submit\",... | javascript | chosen |
[
{
"from": "system",
"value": "Add params for location based search\n"
},
{
"from": "human",
"value": "define([\"underscore\", \"jquery\"], function(_, $) {\n return function (averageCartype) {\n\n var public = {};\n var private = {};\n\n private.createObject = function (averageCartype)... | javascript | chosen |
[
{
"from": "system",
"value": "Use Object.is for comparision in Object.keyOf\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar some = require('./some');\n\nmodule.exports = function (obj, searchValue) {\n\tvar r;\n\treturn some(obj, function (value, name) {\n\t\tif (value === searchValue) {... | javascript | chosen |
[
{
"from": "system",
"value": "Add an example call to show URL handling\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n angular\n .module('springbootangularhtml5')\n .controller('MainController', MainController);\n\n /** @ngInject */\n function Main... | javascript | chosen |
[
{
"from": "system",
"value": "Define __DEV__ for frontend tests\n"
},
{
"from": "human",
"value": "import nodeExternals from 'webpack-node-externals';\nvar path = require('path')\n\nexport default {\n target: 'node',\n externals: [nodeExternals()],\n module: {\n rules: [\n //{ t... | javascript | chosen |
[
{
"from": "system",
"value": "Update Content Security Policy (CSP) to reduce reporting errors in the console.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n modulePrefix: 'jolli',\n environment: environment,\n base... | javascript | chosen |
[
{
"from": "system",
"value": "Use address instead of title\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst stencila = require('.')\nconst colors = require('colors') // eslint-disable-line no-unused-vars\n\n// Banner\nconsole.log(('Stencila CLI for Node.js ' + stencila.version + '... | javascript | chosen |
[
{
"from": "system",
"value": "Remove props param to get current mobilization selector\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport { connect } from 'react-redux'\n\n// Global module dependencies\nimport { SettingsPageLayout } from '../../../components/Layou... | javascript | chosen |
[
{
"from": "system",
"value": "Use path.join instead of concating directories.\n"
},
{
"from": "human",
"value": "function fileToArray(file) {\n return (\n fs.readFileSync(__dirname + '/' +file)\n .toString()\n .trim()\n .split('\\n')\n );\n}\n\nconst sandwich = require('sandw... | javascript | chosen |
[
{
"from": "system",
"value": "Fix logoBig drawing over nav overlay"
},
{
"from": "human",
"value": "!function(){var n=document.querySelector.bind(document),e=document.querySelectorAll.bind(document);window.onscroll=function(){(window.pageYOffset||document.documentElement.scrollTop)>(window.inner... | javascript | chosen |
[
{
"from": "system",
"value": "Implement Get AccountModel Business Logic\n"
},
{
"from": "human",
"value": "module.exports = {\n getAccountModel: function (redisClient, accountHashID, callback) {\n \n }\n}"
},
{
"from": "gpt",
"value": "var configuration = require('../../config/c... | javascript | chosen |
[
{
"from": "system",
"value": "Disable pug compiling from watch.\nThe pug compiler is crashing on node 10\n"
},
{
"from": "human",
"value": "'use strict'\r\n\r\nconst gulp = require('gulp')\r\nconst watch = require('gulp-watch')\r\nconst pug = require('gulp-pug')\r\nconst scss = require('gulp-sas... | javascript | chosen |
[
{
"from": "system",
"value": "Add an eslint config and update the code to match it.\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n exec = require('child_process').exec;\n \ngulp.task('test', function(cb) {\n exec(\n\t\t'node testrunner.js',\n\t\t{ cwd : 'tests' },\n\t\tfu... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor Gulpfile for Gulp Watch\n"
},
{
"from": "human",
"value": "// gulpfile.js\n\n// Packages\nvar gulp = require('gulp');\nvar rename = require('gulp-rename');\nvar uglify = require('gulp-uglify');\nvar browserify = require('browserify');\nvar babelify = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Update gulp paths to scan recusrively\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar phpunit = require('gulp-phpunit');\nvar phplint = require('gulp-phplint');\nvar watch = require('gulp-watch');\nvar notifier = require('node-notifier');\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Send title to navigator on control panel item press\n"
},
{
"from": "human",
"value": "\nimport React, {View, Text, Linking} from 'react-native'\n\nimport {logout} from '../api/Account'\nimport Styles from '../styles/Styles'\nimport ControlPanelItem from '../compone... | javascript | chosen |
[
{
"from": "system",
"value": "Add global query function getAll and getById\n"
},
{
"from": "human",
"value": "var MIM = angular.module('starter.services', []);\n\nMIM.factory('DB', function($q, $ionicPlatform, $cordovaSQLite) {\n this.queryStatement = function(query, parameters) {\n paramete... | javascript | chosen |
[
{
"from": "system",
"value": "Add query() test for Resource\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport Fabric from '../';\n\nconst assert = require('assert');\nconst expect = require('chai').expect;\n\nconst widget = require('../data/widget');\n\ndescribe('Resource', function () ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove check for matching base domain and update host string concatenation to *append* the port rather than reconstructing the whole string\n"
},
{
"from": "human",
"value": "class UrlBuilder {\n constructor(name, absolute, ziggyObject) {\n\n this.name = n... | javascript | chosen |
[
{
"from": "system",
"value": "Use hasOwnProperty when setting defaults\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2013, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tagName on mj-raw when parent is mj-column\n"
},
{
"from": "human",
"value": "import MJMLElement from './decorators/MJMLElement'\nimport React, { Component } from 'react'\n\n@MJMLElement({\n tagName: 'mj-raw'\n})\nclass Raw extends Component {\n\n render () {\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove code that uses Lettering.js\n"
},
{
"from": "human",
"value": "\n(function(d) {\n var config = {\n kitId: 'kyi0gmx',\n scriptTimeout: 3000,\n async: true\n },\n h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\\bwf-loa... | javascript | chosen |
[
{
"from": "system",
"value": "Test that clock is reset on runtime dispose\n"
},
{
"from": "human",
"value": "const test = require('tap').test;\nconst Clock = require('../../src/io/clock');\nconst Runtime = require('../../src/engine/runtime');\n\ntest('spec', t => {\n const rt = new Runtime();... | javascript | chosen |
[
{
"from": "system",
"value": "Add child_id params as well to prevent clash in some cases\n"
},
{
"from": "human",
"value": "(function($) {\n\n jQuery.fn.comboEdit = function(options){\n options.selector = jQuery(this).selector;\n\n var onClick = function(e){\n\n var t... | javascript | chosen |
[
{
"from": "system",
"value": "Add ajax call to sms controller\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\n // var turbolinks = require('turbolinks')\n\n $(\"#walk-me-home\").on(\"click\", function(e){\n e.preventDefault();\n\n $.ajax({\n url: \"http://172.16.... | javascript | chosen |
[
{
"from": "system",
"value": "Add utf-8 BOM to CSV download\n"
},
{
"from": "human",
"value": "PT = PT || {};\n\nPT.downloadCsv = function(serverResponse){\n var survey = serverResponse.survey;\n var responses = serverResponse.responses;\n var a = document.createElement('a');\n var csvString... | javascript | chosen |
[
{
"from": "system",
"value": "Move Index import to the top to fix css order issue\n"
},
{
"from": "human",
"value": "/** DO NOT MODIFY **/\nimport React, { Component } from \"react\";\nimport { render } from \"react-dom\";\n\nimport { Root } from \"gluestick-shared\";\nimport { match } from \"re... | javascript | chosen |
[
{
"from": "system",
"value": "Add y-dimension, downwards movement, clickHandler\n"
},
{
"from": "human",
"value": "console.log(\"Helllo world\");\nvar virus = document.querySelector(\"div\");\nvirus.style.top = \"400px\";\nvar x = 1;\nvar velocity = .1; // px per millisecond\nvar startTime = Dat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests runtime error. Add extension \".ts\" MIME type.\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/configuration-file.html\n\nmodule.exports = function (config) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make XHRs synchronous so they can be tested more easily"
},
{
"from": "human",
"value": "Johnson.load(PLUGIN_PREFIX + \"/lib/jquery.fn.js\");\nJohnson.load(PLUGIN_PREFIX + \"/lib/jquery.print.js\");\nJohnson.load(PLUGIN_PREFIX + \"/tutorial/tabs.js\");\nJohnson.load... | javascript | chosen |
[
{
"from": "system",
"value": "Add site footer to each documentation generator\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tac... | javascript | chosen |
[
{
"from": "system",
"value": "Fix vertical alignment of edit avatar screen\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport React from 'react'\nimport {Avatar, Box, Text, Button} from '../common-adapters'\nimport {globalStyles, globalMargins} from '../styles'\nimport {noAvatarMessage, ha... | javascript | chosen |
[
{
"from": "system",
"value": "Add failing test for calling set on arrays\n\nThere seems to be a bug here. Enable pending test by changing `xit` to `it`.\n"
},
{
"from": "human",
"value": "describe(\"$.set\", function() {\n\tit(\"exists\", function() {\n\t\texpect($.set).to.exist;\n\t});\n\n\tit(... | javascript | chosen |
[
{
"from": "system",
"value": "Add add garbage collection and fix drawing order in the manager\n"
},
{
"from": "human",
"value": "var p;\nvar drawings = [];\n\nvar DrawingManager = function (p5Sketch) {\n p = p5Sketch;\n};\n\nDrawingManager.prototype.add = function (pulse) {\n console.log('Adde... | javascript | chosen |
[
{
"from": "system",
"value": "Add a model to access the data from Foursquare API\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n});\n"
},
{
"from": "gpt",
"value": "import Ember from 'ember';\nimport config from '../config/enviro... | javascript | chosen |
[
{
"from": "system",
"value": "Revert discovery images used to the 3.13.0-32-generic kernel\n"
},
{
"from": "human",
"value": "// Copyright 2015, EMC, Inc.\n\nmodule.exports = {\n friendlyName: 'Bootstrap Ubuntu',\n injectableName: 'Task.Linux.Bootstrap.Ubuntu',\n implementsTask: 'Task.B... | javascript | chosen |
[
{
"from": "system",
"value": "Split User address data into separate properties\n"
},
{
"from": "human",
"value": "module.exports = (db, Sequelize) => {\n var User = db.define('users', {\n id: {\n type: Sequelize.INTEGER,\n autoIncrement: true,\n primaryKey: true\n },\n n... | javascript | chosen |
[
{
"from": "system",
"value": "Add fetch mention timeline method\n"
},
{
"from": "human",
"value": "import Twitter from 'twitter'\nimport config from 'config'\nimport storage from 'electron-json-storage-sync'\n\nconst OAUTH_TOKEN_KEY = 'oauthToken'\n\nconst oauthInfo = storage.get(OAUTH_TOKEN_KEY... | javascript | chosen |
[
{
"from": "system",
"value": "Add logic to convert reddit dot com cookies\n"
},
{
"from": "human",
"value": "import { atob } from 'Base64';\nimport { PrivateAPI } from '@r/private';\n\nimport Session from '../../app/models/Session';\nimport makeSessionFromData from './makeSessionFromData';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Add a utility that checks if a user has a certain role\n"
},
{
"from": "human",
"value": "/**\n * Created by djarosz on 11/6/15.\n */\n/**\n * The purpose of this file is to store all functions and utilities that are used by multiple routes.\n */\n\nfunction filterB... | javascript | chosen |
[
{
"from": "system",
"value": "Add pagesize to table demo.\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport Chart from \"react-google-charts\";\n// Ref : https://developers.google.com/chart/interactive/docs/gallery/histogram\n\nconst dat... | javascript | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 10