conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update job detail step to handle cancelled waiting jobs\n\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { ClipLoader } from \"halogenium\";\nimport { Icon } from \"../../base\";\nimport { getTaskDisplayName } from \"../../utils\";\n\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Add fail conditions to initial ajax requests\n"
},
{
"from": "human",
"value": "function getAuth() {\n $.ajax({\n url: \"/users/sign_in\",\n type: \"get\",\n }).done(function(signin_response) {\n $(\".modal-1-inner\").append(signin_response);\n });\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix infinitely loading infinite list\n"
},
{
"from": "human",
"value": "import update from 'immutability-helper'\n\nimport ActionTypes from '../actionTypes'\n\nconst initialState = {\n currentPageIndex: 0,\n isLoading: false,\n listItems: [],\n totalPageCount: 0... | javascript | chosen |
[
{
"from": "system",
"value": "Remove fake_button stuff from js\n"
},
{
"from": "human",
"value": "var bind_sortable = function() {\n $('.sortable').sortable({\n dropOnEmpty: true,\n stop: function(evt, ui) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Convert tabs to spaces in source.\n"
},
{
"from": "human",
"value": "/* Hover Image Replacement Plug-in for jQuery\n * \n * Authors: \n * Sam Moore - sam@hashtack.com\n *\n * Adds a query function to swap the 'src' attribute\n * of the given img tag to a desired U... | javascript | chosen |
[
{
"from": "system",
"value": "Add page object code for split node and remove duplicated code\n"
},
{
"from": "human",
"value": "/**\n * Copyright JS Foundation and other contributors, http://js.foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not u... | javascript | chosen |
[
{
"from": "system",
"value": "Add failing spec for package deserialization\n"
},
{
"from": "human",
"value": "/** @babel */\n\ndescribe('About', () => {\n let workspaceElement\n\n beforeEach(() => {\n workspaceElement = atom.views.getView(atom.workspace)\n\n waitsForPromise(() => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make UUID usable from within CF\n"
},
{
"from": "human",
"value": "var uuid = require('uuid');\n\nexports.handler = function(event, context) {\n var id = uuid.v4();\n console.log('Generated UUID', id);\n context.succeed(id); // Echo back the first key valu... | javascript | chosen |
[
{
"from": "system",
"value": "Add support to run gulp serve with HTTPS support\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar browserSync = require('browser-sync');\nvar browserSyncSpa = require('browser-sync-spa');\n\nvar util = require('util');\n\nvar midd... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Handlebars helper pathFor and urlFor params bug.\n\nYou can optionally pass a parameters object as the first parameter. By default\nthese helpers will use the current data context for the parameters object.\n"
},
{
"from": "human",
"value": "if (Handlebars) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add current user object to rootScope\n"
},
{
"from": "human",
"value": "angular.module('bolt.profile', ['bolt.auth'])\n\n.controller('ProfileController', function ($scope, Auth, Profile) {\n $scope.user = {};\n $scope.newInfo = {};\n\n var getUserInfo = function ... | javascript | chosen |
[
{
"from": "system",
"value": "Create directory for season when required\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar debug = require('debug')('modules:search-torrents');\nvar async = require('async');\nvar pad = require('pad');\n\nmodule.exports = function (synologyOptions, destPath, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add status back to my reports\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Page from 'components/Page'\n\nimport Breadcrumbs from 'components/Breadcrumbs'\nimport ReportTable from 'components/ReportTable'\n\nimport API from 'api'\nimport {Rep... | javascript | chosen |
[
{
"from": "system",
"value": "CRM-3997: Make all mailboxes available under System organization\n\n- fix jscs\n"
},
{
"from": "human",
"value": "define(function(require) {\n 'use strict';\n\n var $ = require('jquery');\n var BaseComponent = require('oroui/js/app/components/base/component... | javascript | chosen |
[
{
"from": "system",
"value": "Update webstart URL for newer firmware.\n"
},
{
"from": "human",
"value": "module.exports = (function uris() {\n\n\treturn {\n\t\tlogin : 'https://%s/cgi/login.cgi'\n\t\t, webstart : 'http://%s/cgi/url_redirect.cgi?url_name=sess_%s&url_type=jwsk'\n\t}\n\t\n})()\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Delete service instance bindings before deleting service instance\n"
},
{
"from": "human",
"value": "angular.module('app.serviceInstance').controller('ServiceInstanceDeleteCtrl', ['$scope', '$modalInstance', '$log', 'serviceInstance', 'serviceInstanceService', 'mess... | javascript | chosen |
[
{
"from": "system",
"value": "Add scrolling to top of page when click to next page\n"
},
{
"from": "human",
"value": "if (history && history.pushState) {\n $(document).ready(function(){\n\n $('#photo_gallery').on(\"click\", \".pagination a[href]\", function() {\n $.getScript... | javascript | chosen |
[
{
"from": "system",
"value": "Add Object Comparison Function to Utility Module\n"
},
{
"from": "human",
"value": "var uuid = require('node-uuid')\n\nmodule.exports = {\n\tgenerateQueryString: function(data) {\n\t\tvar ret = [];\n\t\tfor (var d in data)\n\t\tif (data[d])\n\t\tret.push(encodeURICo... | javascript | chosen |
[
{
"from": "system",
"value": "Use fatal namespace for process errors\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst cleanStack = require('clean-stack')\n\nfunction createProcessExit (log) {\n function processExit (err) {\n if (!err) return process.exit()\n\n const {stack, messag... | javascript | chosen |
[
{
"from": "system",
"value": "Change default compiler and default compilers list.\n"
},
{
"from": "human",
"value": "const ALL_COMPILERS = ['clang-3.8', 'clang-3.9', 'clang-4.0', 'clang-5.0',\n 'clang-6.0', 'clang-7.0', 'clang-7.1', 'clang-8.0', 'clang-9.0',\n 'clang-10.0', 'clang-11.0', '... | javascript | chosen |
[
{
"from": "system",
"value": "Modify expected bug about wrong upper directory name of each platform when building\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 Samsung Electronics Co., Ltd.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ... | javascript | chosen |
[
{
"from": "system",
"value": "Mark notification as all read when closing popup\n"
},
{
"from": "human",
"value": "function NotificationDirective() {\n var directive = {\n restrict: 'EA',\n templateUrl: 'notifications/notificationsDirective.tpl.html',\n controller: NotificationDirective... | javascript | chosen |
[
{
"from": "system",
"value": "Support to check the ast node is valid or not\n"
},
{
"from": "human",
"value": "/**\n * Using esprima JS parser to parse AST\n * @lastmodifiedBy ChengFuLin(chengfulin0806@gmail.com)\n * @lastmodifiedDate 2015-07-27\n */\n/** Import esprima module */\nvar esprima = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not being able to type \"w\"\n"
},
{
"from": "human",
"value": "define(['constants', 'storage','tabs'], function(C, storage, tabs){\n 'use strict';\n\n function init() {\n\n $(window).keydown(function(e){\n switch(e.which){\n case C.KEYCODES.T:\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix entities showing up in German reset button / confirm dialog\n"
},
{
"from": "human",
"value": "var messages = {\n warningReset: {\n 'en': 'Are you sure you want to reset the game?\\n\\nYour saved progress will be lost and you\\'ll be sent to the start of the... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for valid titles\n"
},
{
"from": "human",
"value": "const { expect } = require('chai');\nconst request = require('supertest');\nconst app = require('../app');\n\n\ndescribe('Pages', function() {\n let req;\n\n describe('/', function() {\n beforeEach(f... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for missing paddable char\n"
},
{
"from": "human",
"value": "import request from 'supertest';\nimport test from 'tape';\n\nimport app from '../server';\n\ntest('Should leftpad correctly', t => {\n request(app)\n .get('?str=paddin%27%20oswal... | javascript | chosen |
[
{
"from": "system",
"value": "Configure deploy to copy dist as well\n"
},
{
"from": "human",
"value": "//upload to s3 task\nmodule.exports = {\n options: {\n accessKeyId: '<%= AWS_ACCESS_KEY_ID %>',\n secretAccessKey: '<%= AWS_SECRET_KEY %>',\n region: '<%= AWS_REGION %>'... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust error handling in Scanner\n"
},
{
"from": "human",
"value": "const check = require('check-types')\nconst { Transform } = require('stream')\nconst logger = require('winston')\n\n/**\n * Scans the object stream\n *\n * @property {Scanner~Callback} scannerCallba... | javascript | chosen |
[
{
"from": "system",
"value": "Allow dots in s3 buckets\n"
},
{
"from": "human",
"value": "\nmodule.exports = exports;\n\nvar url = require('url')\n\nmodule.exports.detect = function(to,config) {\n var uri = url.parse(to);\n var url_paths = uri.hostname.split('.');\n config.prefix = (!ur... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for login when loading chat page\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport {Topbar} from '../common';\nimport Chatbody from './body/Chatbody';\nimport './styles.css';\n\nclass Chat extends Component {\n render(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix generation of unit tests for serializers\n"
},
{
"from": "human",
"value": "import { moduleForModel, test } from 'ember-qunit';\n\nmoduleForModel('<%= name %>', 'Unit | Serializer | <%= name %>', {\n // Specify the other units that are required for this test.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Allow banners to act as a circle\n\nFix #99\n"
},
{
"from": "human",
"value": "jQuery(document).ready(function(){\n\tjQuery(\".banners-widget-area\").cycle({\n\t allowWrap: false,\n\t carouselFluid: true,\n\t fx: \"carousel\",\n\t manualSpeed: 400,\n\t ... | javascript | chosen |
[
{
"from": "system",
"value": "Change top bar colors for Hot Reloading label\n\nSummary: The current grey one is very bland, hard to read (no contrast) and often looks like a bug. I've changed it to match the iOS Personal Hotspot colors which look more idiomatic.\n\nReviewed By: cpojer\n\nDifferential Revisi... | javascript | chosen |
[
{
"from": "system",
"value": "Add AJAX call to delete an entry on a user's dashboard page\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n $('#login-link').on('click', function(event) {\n event.preventDefault();\n var $target = $(event.target);\n\n $.ajax({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "example: Add example of removing physics constraint\n"
},
{
"from": "human",
"value": "FamousFramework.scene('famous-tests:physics:basic:particle', {\n behaviors: {\n '.particle': {\n 'size': [200, 200],\n 'align': [0.5, 0.5],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix text, we dont save the session yet."
},
{
"from": "human",
"value": "/** @jsx React.DOM */\n\nvar React = require('react');\n\nvar View = React.createClass({\n\n render: function() {\n return (\n <header className=\"navigation-bar\">\n <button cl... | javascript | chosen |
[
{
"from": "system",
"value": "Use relative path for baseURL\n"
},
{
"from": "human",
"value": "require({\n baseUrl: '/src'\n}, [ 'html-janitor' ], function (HTMLJanitor) {\n var janitor = new HTMLJanitor({\n tags: {\n p: []\n }\n });\n\n var p = document.createElement('p');\n p.s... | javascript | chosen |
[
{
"from": "system",
"value": "Add rawgithub URL as updateURL\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Garmin Connect Course export\n// @namespace http://schlueters.de/garmin-connect-course-export\n// @description Export courses from the Garmin Connect web sit... | javascript | chosen |
[
{
"from": "system",
"value": "Fix skinning precision issue on iOS\n\nOn iOS, by default the bones that are sampled from the bone texture look\nlike they are using mediump. This can result in noticeable jitter or\nother more severe issues depending on the bone transformation matrix.\n\nFix this by explicitly... | javascript | chosen |
[
{
"from": "system",
"value": "Create uuid for module types\n"
},
{
"from": "human",
"value": "class React3Module {\n constructor() {\n this.userData = {};\n }\n\n setup(react3RendererInstance) { // eslint-disable-line no-unused-vars\n\n }\n\n update() {\n\n }\n\n dispose() {\n\n }\n}\... | javascript | chosen |
[
{
"from": "system",
"value": "Patch build for universal environments\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function (window, document) {\n\n //import(\"pathformer.js\");\n //import(\"vivus.js\");\n\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove modal padding around rebuild change list\n\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { map, sortBy } from \"lodash-es\";\nimport { Row, Col, ListGroup, ListGroupItem, Panel } from \"react-bootstrap\";\n\nimport { LoadingPlacehold... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing const keyword in test code\n"
},
{
"from": "human",
"value": "'use strict';\n\nVIRTUAL_DEP_IDS = ['\\0helper'];\n\nmodule.exports = {\n name: 'virtual-dep-injector',\n resolveId: (importee, importer) => {\n if (VIRTUAL_DEP_IDS.indexOf(importee) !== ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove all the module system junk\n"
},
{
"from": "human",
"value": "'use strict';\n\n// flatten arbitrarily nested array\n// data NestedList a = Elem a | List [NestedList a]\n// flatten :: NestedList a -> [a]\nmodule.exports = function flatten(arr) {\n const _flat... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade eslint-plugin-jsx-a11y to match eslint-config-airbnb peer dependency\n"
},
{
"from": "human",
"value": "const Base = require('yeoman-generator').Base;\nconst yarnInstall = require('yarn-install');\n\nclass ESLintGenerator extends Base {\n install() {\n y... | javascript | chosen |
[
{
"from": "system",
"value": "Fix <StatusBar /> will cause `Uncaught Invariant Violation: Element type is invalid`\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2015-present, Alibaba Group Holding Limited.\n * All rights reserved.\n *\n * @providesModule ReactStatusBar\n */\n\n'use st... | javascript | chosen |
[
{
"from": "system",
"value": "Fix empty properties error in misspelled properties\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar helpers = require('../helpers'),\n yaml = require('js-yaml'),\n fs = require('fs'),\n path = require('path');\n\nvar properties = yaml.safeLoad(fs.re... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional logging to initialise game\n"
},
{
"from": "human",
"value": "/* global angular */\nimport {web3, Chess} from '../../contract/Chess.sol';\nangular.module('dappChess').controller('InitializeGameCtrl',\n function ($rootScope, $scope, accounts) {\n $... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up task file source\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load our modules\nconst logger = __require('libs/log'),\n task = __require('libs/task'),\n queue = __require('libs/queue');\n\n// General task file handling\nmodule.exports = ... | javascript | chosen |
[
{
"from": "system",
"value": "Change user select to use public class fields\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass UserSelect extends React.Component {\n constructor(props) {\n super(props);\n\n this.defaultValue = 'unassigned';\n\n this.state = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper function createData() which prepare data for the client to send it to server\n"
},
{
"from": "human",
"value": "angular.module('sparrow')\n.controller('TimedCtrl', function() {\n //data is the information send when a template is added.\n this.data= {};\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import of latexCommands module\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nrequire('ts-node').register()\n\nconst latexCommands = require('../src/latexCommands')\nconst mathSvg = require('../server/mathSvg')\nconst fs = require('fs')\nconst util = re... | javascript | chosen |
[
{
"from": "system",
"value": "Add some extra ecludes for coverage collection\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n rootDir: path.resolve(__dirname, '../..'),\n moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],\n moduleDirectories: ['node_modu... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for batch collation\n"
},
{
"from": "human",
"value": "////////////////////////////////////////////////////////////////////\n// SourceCollectionView displays all of the sources available //\n// on the Juxta server and displays them in a compelling wa... | javascript | chosen |
[
{
"from": "system",
"value": "Use Bluebird's filter to simplify listRemovable()\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Resin.io\n *\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... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor loadMap to take result\n"
},
{
"from": "human",
"value": "\n(function() {\n 'use strict';\n\n /**\n * Controller for the gw app root view -- handles header bar and search bar logic\n */\n /* ngInject */\n function RootController($log, $s... | javascript | chosen |
[
{
"from": "system",
"value": "Add layout 4 columns to better make layout\n"
},
{
"from": "human",
"value": "export const BLOCK_LAYOUTS = [\n [{sm_size: 12, md_size: 12, lg_size: 12}],\n [\n {sm_size: 12, md_size: 6, lg_size: 6},\n {sm_size: 12, md_size: 6, lg_size: 6}\n ],\n [\n {sm... | javascript | chosen |
[
{
"from": "system",
"value": "Mark SearchEngineManagerWebUITest.testOpenSearchEngineManager as flaky.\nSearchEngineManagerWebUITest.testOpenSearchEngineManager fails when run on a ChromeOS VM for the first time, all subsequent runs pass. Marking it as flaky.\n\nSee crosbug.com/22673\n\n\nBUG=chromium-os:226... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue preventing inventory groups from loading\n\nA conditional was in place to check if a URL included the base path,\nif so, it was supposed to use the URL as-is, otherwise it should get\nthe URL by referencing a property in an object containing default\nURLs.\n\nThe cond... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deprecated option of Redux Dev Tools.\n\n"
},
{
"from": "human",
"value": "/* eslint-disable global-require */\n/* global window */\nimport { createStore, applyMiddleware, combineReducers } from 'redux';\nimport createSagaMiddleware from 'redux-saga';\nimport { ... | javascript | chosen |
[
{
"from": "system",
"value": "Add web users to users_by_location_id view\n"
},
{
"from": "human",
"value": "function(doc) {\n if (doc.doc_type == \"CommCareUser\" && doc.location_id) {\n emit([doc.location_id, doc._id], null);\n }\n}\n"
},
{
"from": "gpt",
"value": "func... | javascript | chosen |
[
{
"from": "system",
"value": "Update socket URL for production use.\n"
},
{
"from": "human",
"value": "var socket = io('http://localhost:13374');\nvar elems = document.getElementsByClassName(\"status\");\n\nsocket.on('status', function (data) {\n console.log(data);\n \n for (var i = 0; i < el... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue in overview parser\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst D3 = require('D3');\n\nexports.parser = function(rows) {\n\n var overviewResponse = D3.values(rows[0]);\n var overview = D3.nest()\n .key(function(d) {\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Hide the links that aren't selectable yet so you can't tab to them\n"
},
{
"from": "human",
"value": "var Flickity = require('flickity');\n\n(function(Flickity) {\n \"use strict\";\n\n if(document.querySelector('.rotate') !== null) {\n new Flickity('.ro... | javascript | chosen |
[
{
"from": "system",
"value": "Add due and change names of boilerplates\n\nClose #58\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Decorator as Cerebral} from 'cerebral-view-react';\nimport styles from './styles.css';\n\nconst boilerplates = {\n 'react': 'React',\n 'cer... | javascript | chosen |
[
{
"from": "system",
"value": "Add tray minimize, restore and quit\n\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport os from 'os';\nimport { Tray } from 'electron';\n\nexport default function buildTray(win) {\n const PLATFORM = os.platform();\n\n let icon;\n if (process.env... | javascript | chosen |
[
{
"from": "system",
"value": "Make lyra export work thanks to @RussellSprouts and @arvind. "
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('vleApp')\n .directive('lyraExport', function () {\n return {\n template: '<a href=\"#\" ng-click=\"export()\">export to lyra...</... | javascript | chosen |
[
{
"from": "system",
"value": "Add souremap to production build\n"
},
{
"from": "human",
"value": "import extend from 'extend';\nimport webpack from 'webpack';\nimport webpackConfig from './webpack.config.js';\n\nvar config = extend(true, {}, webpackConfig, {\n entry: './src/entry/main.js',\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor checkAuth function to account for change on server\n"
},
{
"from": "human",
"value": "var api = require('./api');\n\nmodule.exports = {\n\n login(username, password, callback) {\n api.login(username, password)\n .then((response) => {\n if(respon... | javascript | chosen |
[
{
"from": "system",
"value": "Write function to deal with colons in url\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {connect} from 'react-redux';\n\n\nconst Article = ({article, channelName}) => {\n return (\n <div>\n <h1>{article.title}</h1>\n <img src={ar... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Change let to var declarations\"\n\nThis reverts commit d436fb04e59a6153c6186e1782f162faa73ccf11.\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n exec = require('exec'),\n watch = require('gulp-watch');\n\nconst ADD = 'add';\n\nvar pa... | javascript | chosen |
[
{
"from": "system",
"value": "Change Shortcut for Deploy as Ctrl+Shift+P\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); yo... | javascript | chosen |
[
{
"from": "system",
"value": "Throw in extra keys for good measure.\n"
},
{
"from": "human",
"value": "'use strict';\nconst langKeys = Object.keys(require('../locales/languages')());\nconst jsonfile = require('jsonfile');\n\nlet enMessageKeys = Object.keys(jsonfile.readFileSync('../locales/en.js... | javascript | chosen |
[
{
"from": "system",
"value": "Change default window resolution to 1600x900\n"
},
{
"from": "human",
"value": "chrome.app.runtime.onLaunched.addListener(function() {\n\tchrome.app.window.create('index.html', {\n\t\t'bounds': {\n\t\t\t'width': 1280,\n\t\t\t'height': 800\n\t\t}\n\t});\n});"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Add Accept-Language header to all API requests\n\nIn the pilot version of the service the Accept-Language is\nalways \"fi\".\nCloses #188.\n"
},
{
"from": "human",
"value": "export default {\n API_URL: 'https://api.hel.fi/respa/v1',\n DATE_FORMAT: 'YYYY-MM-DD',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use a real vuex store in test, write new failing test\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\nconst prepareLearnApp = require('../../src/state/prepareLearnApp');\nconst sinon = require('sinon');\nconst kolibri = require('kolibri');\n\nconst { Memb... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error relating to timeline key\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\n\nimport { timelineSelectors } from \"../../redux/selectors\";\nimport { timelineActions } from \"../../redux... | javascript | chosen |
[
{
"from": "system",
"value": "Add a spinner while waiting for ajax calls to load\n"
},
{
"from": "human",
"value": "function loadDashboard(page, dashboard) {\n\tvar url = \"/dashboards/page/\"+dashboard+\"/\"+page+\"/\";\n\tconsole.log(\"Getting\", url);\n\taxios.get(url).then(function (response... | javascript | chosen |
[
{
"from": "system",
"value": "Make mismatchFilter a factory for API consistency\n"
},
{
"from": "human",
"value": "import { isEqual } from 'lodash';\n\nconst TAG_COMPARISON = {\n TOTAL: Symbol(),\n PARTIAL: Symbol(),\n MISMATCH: Symbol()\n};\n\nfunction compareTags (a, b) {\n /* Returns a TA... | javascript | chosen |
[
{
"from": "system",
"value": "Add anchor tag props for transferring\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2014, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nvar React = require('react/addons'),\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use error syntax colouring to be similar to jshint. Update valid message to match jshint & csslint output style. Closes gh-14\n"
},
{
"from": "human",
"value": "/*\n * grunt-html\n * https://github.com/jzaefferer/grunnt-html\n *\n * Copyright (c) 2012 Jörn Zaefferer... | javascript | chosen |
[
{
"from": "system",
"value": ":muscle: Resolve tick() after callbacks resolve\n"
},
{
"from": "human",
"value": "// Copyright (c) 2017 The Regents of the University of Michigan.\n// All Rights Reserved. Licensed according to the terms of the Revised\n// BSD License. See LICENSE.txt for details.\... | javascript | chosen |
[
{
"from": "system",
"value": "Update \"Get a Queue\" Node.js fetch"
},
{
"from": "human",
"value": "// Download the Node helper library from twilio.com/docs/node/install\n// These consts are your accountSid and authToken from https://www.twilio.com/console\nconst accountSid = 'ACXXXXXXXXXXXXXXXX... | javascript | chosen |
[
{
"from": "system",
"value": "Allow example visualizations to be passed only an options object\n"
},
{
"from": "human",
"value": "import candela from './../../src/candela';\nimport mainContent from './index.jade';\nimport visContent from './vis.jade';\nimport 'javascript-detect-element-resize/de... | javascript | chosen |
[
{
"from": "system",
"value": "Delete Group and User Dialog\n"
},
{
"from": "human",
"value": "// Delete users/groups via ajax\n$('.listFilterContainer').find(\".deleteIcon\").bind(\"click\", function(){\n var me = $(this);\n var url = me.attr(\"href\");\n var title = me.attr(\"data... | javascript | chosen |
[
{
"from": "system",
"value": "Support multiple SimpleMDE instances in a form\n\nAlso added Table button and removed the Image button.\n"
},
{
"from": "human",
"value": "$(function () {\n\t$(document).ready(function() {\n\t\tnew SimpleMDE({\n\t\t\telement: document.getElementById(\"simplemde\"),\... | javascript | chosen |
[
{
"from": "system",
"value": "Extend directive tpl to include releaseYear and Duration\n"
},
{
"from": "human",
"value": "catalogApp.directive('assetThumb', function() {\n\n var linkFn = function ($scope, $elem, attrs) {\n\n }\n\n return {\n restrict: 'E',\n template: '<a href=\"#\" cla... | javascript | chosen |
[
{
"from": "system",
"value": "Update all promise to allow for the ability to trigger events AFTER the state has changed.\n"
},
{
"from": "human",
"value": "/**\n * @export\n * @param {Object} store\n * @param {Object} state - Immutable state object\n */\nexport default function createDispatcher(... | javascript | chosen |
[
{
"from": "system",
"value": "Support Auth for Redis connections"
},
{
"from": "human",
"value": "var redis = require('redis'),\n url = require('url'),\n redis = require('redis'),\n url = require('url'),\n redisURL = url.parse(process.env.REDISCLOUD_URL || 'redis://localhost:6379');\... | javascript | chosen |
[
{
"from": "system",
"value": "Improve tests on the post render.\n"
},
{
"from": "human",
"value": "/*global window*/\n(function(NS) {\n NS = NS || {};\n var isInBrowser = typeof module === 'undefined' && typeof window !== 'undefined';\n //Container for all the post renderings functions.\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Fix small merge issue with GameObject\n\n:disappointed_relieved:\n"
},
{
"from": "human",
"value": "var PIXI = require('pixi.js');\n\nclass GameObject extends PIXI.Graphics {\n constructor(x, y) {\n super();\n this.modelx = x;\n this.modely =... | javascript | chosen |
[
{
"from": "system",
"value": "Update link in the comment\n"
},
{
"from": "human",
"value": "// As defined in https://github.com/mozilla/pdf.js/blob/master/src/shared/util.js#L378-L381\n\nconst PasswordResponses = {\n NEED_PASSWORD: 1,\n INCORRECT_PASSWORD: 2,\n};\n\nexport default PasswordResp... | javascript | chosen |
[
{
"from": "system",
"value": "Change the cache name after all\n"
},
{
"from": "human",
"value": "/*\n\tCopyright 2014 Google Inc. All Rights Reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou... | javascript | chosen |
[
{
"from": "system",
"value": "Fix shallow clone of source array\n\n"
},
{
"from": "human",
"value": "var questionData = require('../data/questions.json');\n\n// Filter invalid questions\n(() => {\n let invalid = 0;\n\n questionData.forEach((question, i) => {\n if (question.text === undefine... | javascript | chosen |
[
{
"from": "system",
"value": "Add new mixpanel method mock to test setup\n"
},
{
"from": "human",
"value": "import { configure } from 'enzyme'; // eslint-disable-line import/no-extraneous-dependencies\nimport Adapter from '@wojtekmaj/enzyme-adapter-react-17'; // eslint-disable-line import/no-ext... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old chardet debug require\n"
},
{
"from": "human",
"value": "const FeedParser = require('feedparser')\nconst iconv = require('iconv-lite')\nconst config = require('../config.js')\n\nclass DecodedFeedParser extends FeedParser {\n constructor (options, url) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning for fields with no source and no label\n"
},
{
"from": "human",
"value": "import inflection from 'inflection';\n\nexport default (label, source) => typeof label !== 'undefined' ? label : inflection.humanize(source); // eslint-disable-line no-confusing-ar... | javascript | chosen |
[
{
"from": "system",
"value": "Swap to Session Storage from cookies & Swap to pure JS\n"
},
{
"from": "human",
"value": "function playGong() {\n\tvar sound = document.getElementById('sound');\n\tsound.currentTime = 0;\n\tsound.play();\n}\n\nfunction gongEnabled() {\n\t return $('#gongbutton').pro... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unit.editing from initUnits().\nAdd generation,editing to initialState.\nAdd GAME_START,GAME_STOP to gameOfLifeApp's case.\n"
},
{
"from": "human",
"value": "import { INIT_UNITS, UPDATE_UNIT_STATE, UnitStates } from '../constants/ActionTypes';\n\nconst initia... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.