commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
8a14f9edf982a9994e6cb5c7d213370db28c9aef
Optimize output if selected task was not found
src/run.js
src/run.js
"use strict"; const chalk = require("chalk"); const tildify = require("tildify"); const prettyTime = require("pretty-time"); const path = require("path"); var timers = {}; /** * * @param {LiftoffEnvironment} env * @param argv */ module.exports = function (env, argv) { const VERBOSE = argv.v; const DEBU...
JavaScript
0.000017
@@ -2551,32 +2551,103 @@ ctedTask)%0A %7B%0A + if (kaba.DEFAULT_TASK_NAME !== selectedTaskName)%0A %7B%0A printUsa @@ -2682,25 +2682,32 @@ .yellow( -argv._%5B0%5D +selectedTaskName ) + %22 is @@ -2722,24 +2722,128 @@ istered.%22);%0A + %7D%0A else%0A %7B%0A ...
6fb1f05949e8ca5e1d9e692348535c7bf1f0186e
words plugin: links inherit color. default link color is annoying
plugins/popcorn.words.js
plugins/popcorn.words.js
// PLUGIN: words (function (Popcorn) { "use strict"; var styleSheet; Popcorn.basePlugin( 'words' , function(options, base) { var popcorn, video, classes, container, textContainer, text, node, i; if (!base.target || !options.text) { return; } popcorn = this; video = popcorn.media; ...
JavaScript
0.999987
@@ -573,16 +573,66 @@ %7D%5Cn' +%0A +%09%09%09%09%09'.popcorn-words %3E a %7B color: inherit; %7D%5Cn' +%0A %09%09%09%09%09'.p
b2dc6e68c29703182c048654ed19c4d9e66d51e0
Add "say" command.
extension.js
extension.js
'use strict'; var EventEmitter = require('events').EventEmitter; var axon = require('axon'); var rpc = require('axon-rpc'); var req = axon.socket('req'); var subSock = axon.socket('sub'); var rpcClient = new rpc.Client(req); var equal = require('deep-equal'); module.exp...
JavaScript
0.046462
@@ -3717,16 +3717,54 @@ 5000);%0A + var lastHeartbeatInterval = 5000;%0A func @@ -3778,24 +3778,24 @@ artbeat() %7B%0A - rpcC @@ -3998,16 +3998,217 @@ interval + %7C%7C lastHeartbeatInterval);%0A %7D);%0A %7D%0A%0A self.say = function(channel, message) %7B%0A rpcClient.call('say...
6abb2cb92edc1edaefea7e37cd46a6c866239c27
fix sharing nested galleries
apps/gallery/js/album_cover.js
apps/gallery/js/album_cover.js
var actual_cover; var paths = []; var crumbCount = 0; $(document).ready(returnToElement(0)); function returnToElement(num) { while (crumbCount != num) { $('#g-album-navigation .last').remove(); $('#g-album-navigation .crumb :last').parent().addClass('last'); crumbCount--; paths.pop(); } var p=''; for (var ...
JavaScript
0
@@ -1864,20 +1864,16 @@ += -'/'+ paths%5Bi%5D ;%0A @@ -1868,16 +1868,20 @@ paths%5Bi%5D ++'/' ;%0A if @@ -1896,24 +1896,38 @@ ') p = '/';%0A + alert(p);%0A $.getJSO
01761e0d9f10362d2a681b2bcb1c51c78b39d2d9
increase test timeout
index.test.js
index.test.js
const execa = require('execa'); const fs = require('fs'); afterEach(done => { fs.access('sitemap.xml', err => { if (!err) { fs.unlink('sitemap.xml', done); } }); }); test('should create sitemap file', () => { expect.assertions(1); return execa('node', [ 'index.js', 'https://larsgraubner...
JavaScript
0.000002
@@ -176,32 +176,35 @@ %7D);%0A%7D);%0A%0Atest( +%0A 'should create s @@ -216,16 +216,18 @@ p file', +%0A () =%3E %7B @@ -219,32 +219,34 @@ ile',%0A () =%3E %7B%0A + expect.asserti @@ -246,32 +246,34 @@ assertions(1);%0A%0A + return execa(' @@ -277,32 +277,34 @@ a('node', %5B%0A + 'index.j...
f3ea100dedd0ffd3ed102ddaa5bd0f1e5e0007a0
Fix Assist async and force calls settings
apps/spark/static/js/assist.js
apps/spark/static/js/assist.js
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
JavaScript
0
@@ -1344,16 +1344,21 @@ onCalls( +force ) %7B%0A @@ -1932,27 +1932,13 @@ eof -options.forceReload +force == @@ -2974,16 +2974,23 @@ async: + typeof options @@ -2994,14 +2994,15 @@ ons. +a sync -= +! = %22u @@ -3010,16 +3010,32 @@ defined%22 + && optons.async %0A %7D);
e27fb513a6887b400b8a6089f7fa2059a6fac528
Fix require bug
app/lib/backgroundLoader.js
app/lib/backgroundLoader.js
import getAndInitNewEpisodes from "./getAndInitNewEpisodes"; import forEach from "./forEach"; import episodesToString from "./episodesToString"; var ipc = require("ipc"); export default function(controller) { var store = controller.get("store"); var checkForEp = function(){ if(controller.get("isUpdating")) { r...
JavaScript
0.000001
@@ -148,17 +148,18 @@ r ipc = -r +nR equire(%22
72817bdb9f571075b2d0020ccba95bef68f9758e
use separate escape/non-escape toString functions for fragments - easier for browsers to optimise
src/virtualdom/Fragment/prototype/toString.js
src/virtualdom/Fragment/prototype/toString.js
export default function Fragment$toString ( escape ) { if ( !this.items ) { return ''; } return this.items.map( function ( item ) { return item.toString( escape ); }).join( '' ); }
JavaScript
0
@@ -111,24 +111,86 @@ ms.map( -function +escape ? toEscapedString : toString ).join( '' );%0A%7D%0A%0Afunction toString ( item @@ -189,25 +189,24 @@ ( item ) %7B%0A -%09 %09return item @@ -219,33 +219,78 @@ ing( - escape );%0A%09%7D).jo +);%0A%7D%0A%0Afunction toEscapedString ( item ) %7B%0A%09return item.toSt...
ec375d715289fc0726efcf2c34c97ad3b6e89e3a
Complete sensors list
sensors.js
sensors.js
const gpio = require('pi-gpio'); const client = require('prom-client'); const Promise = require('bluebird'); Promise.promisifyAll(gpio); const sensors = [{ gpioPin: 0, sensorId: '', sensorDescription: '', }]; const airTempGauge = new client.Gauge('air_temperature', 'Air Temperature in a room', ['sensorId', 'se...
JavaScript
0.000005
@@ -166,24 +166,336 @@ in: -0,%0A sensorId: ' +11,%0A sensorId: '0',%0A sensorDescription: '',%0A%7D, %7B%0A gpioPin: 12,%0A sensorId: '1',%0A sensorDescription: '',%0A%7D, %7B%0A gpioPin: 13,%0A sensorId: '2',%0A sensorDescription: '',%0A%7D, %7B%0A gpioPin: 15,%0A sensorId: '3',%0A sensorDescription: ''...
4c4b1a4d20640c3597bb8143f64a81f4227e1606
Remove console log
app/assets/javascripts/components/search.es6.js
app/assets/javascripts/components/search.es6.js
// Require React React = require('react/addons'); var TagsInput = require('react-tagsinput'); // Material UI import mui from 'material-ui'; let RaisedButton = mui.RaisedButton; let Colors = mui.Styles.Colors; let ThemeManager = mui.Styles.ThemeManager; let Snackbar = mui.Snackbar; let LightRawTheme = mui.Styles.LightRa...
JavaScript
0.000002
@@ -3691,51 +3691,8 @@ ) %7B%0A - console.log(this.state.tags.join('+'))%0A
1708171858ce97ec2e5e7f7681e5b8cf2c6ca901
Move the directive link function to a function definition.
app/common/directives/bubble-chart.directive.js
app/common/directives/bubble-chart.directive.js
(function () { 'use strict'; angular .module('gmailHistogramApp') .directive('d3BubbleChart', d3BubbleChartDirective); d3BubbleChartDirective.$inject = ['$window']; function d3BubbleChartDirective($window) { return { restrict: 'EA', scope: { ...
JavaScript
0
@@ -129,20 +129,16 @@ ctive);%0A - %0A d3B @@ -352,16 +352,41 @@ link: + link%0A %7D;%0A%0A functio @@ -387,16 +387,20 @@ unction +link (scope, @@ -425,28 +425,24 @@ - - var diameter @@ -449,20 +449,16 @@ = 450;%0A - @@ -521,20 +521,16 @@ - ...
4327db9cd4d507c15dfb4afe66d81653d1dadef6
Set theme field to full size
app/components/forms/settings/base/component.js
app/components/forms/settings/base/component.js
import React from 'react'; import { RaisedButton, MenuItem } from 'material-ui'; import { TextField, SelectField } from 'redux-form-material-ui'; import { Field, reduxForm } from 'redux-form'; import BaseComponent from 'lex/libs/base/component'; import BaseContainer from 'lex/libs/container'; import { I18n } from '...
JavaScript
0
@@ -1149,15 +1149,28 @@ -name=%22t +floatingLabelText=%22T heme @@ -1231,35 +1231,45 @@ %0A f -loatingLabelText=%22T +ullWidth=%7Btrue%7D%0A name=%22t heme%22%0A
e85b1a2f3f73a975b6570e0dd2a8a93735e30f24
fix c boolean formatter
app/components/logic/lib/formatter/c-boolean.js
app/components/logic/lib/formatter/c-boolean.js
const operators = { AND: '&&', OR: '||', NOT: '!', XOR: '^', }; const tryFetch = (map, key) => map[key] || key ; const whitspace = new RegExp('\s+', 'g'); const sanitizeName = (name) => name.replace(whitspace, '_'); const formatter = { name: "C Boolean", formatBinary: (op, lhs, rhs/*, depth*/) => { ...
JavaScript
0.999246
@@ -62,9 +62,10 @@ R: ' -%5E +!= ',%0A%7D
400e1b221d277175d8d3656f7e5f146ce20f0a6e
refresh based on notifications
app/controllers/facebook-realtime-controller.js
app/controllers/facebook-realtime-controller.js
var User = mongoose.model("User") , ImageList = mongoose.model("ImageList") , util = require('util') , PuSHHelper = require('node-push-helper').PuSHHelper; module.exports = function (app) { // a GET request will be a challenge query app.get('/facebook/realtime', function(req, res){ PuSHHelper.handshake(...
JavaScript
0.000002
@@ -98,16 +98,46 @@ 'util')%0A + , _ = require('underscore')%0A , PuSH @@ -571,16 +571,1603 @@ null));%0A + %0A var notifications = req.body;%0A %0A if (notifications%5B'object'%5D == 'user') %7B%0A var seen_in_this_batch = %7B%7D;%0A var entries = notifications.entry;%0A for (var i=0; ...
b544e1f33c824b6fe2f60143d503df1bd606ba73
declare connectGaiaHub in proptypes
app/js/welcome/components/ConnectStorageView.js
app/js/welcome/components/ConnectStorageView.js
import React, { PropTypes } from 'react' const ConnectStorageView = (props) => ( <div> <h3 className="modal-heading m-t-15 p-b-20"> Connect a storage provider to store app data in a place you control </h3> <img role="presentation" src="/images/blockstack-logo-vertical.svg" class...
JavaScript
0.000001
@@ -1059,16 +1059,61 @@ Dropbox: + PropTypes.func.isRequired,%0A connectGaiaHub: PropTyp
f6d88915fdbbc270fa40043c66fd46e897f804de
break general intersection test
src/set_core_test.js
src/set_core_test.js
require("steal-qunit"); var set = require('./set-core'); var ignoreProp = function(){ return true; }; QUnit.module("set core"); test('set.equal', function(){ ok(set.equal({ type: 'FOLDER' }, { type: 'FOLDER', count: 5 }, { count: ignoreProp }), 'count ignored'); ok(set.equal({ type: 'folder' }, {...
JavaScript
0
@@ -3896,32 +3896,181 @@ ues not equal%22); +%0A%0A%09res = set.intersection(%7Bfoo: 'bar'%7D,%7Bcompleted: true%7D);%0A%09deepEqual(res, %7Bfoo: 'bar', completed: true%7D, 'intersection should combine definitions'); %0A%7D);%0A%0Atest('set.
0af482b4e11e885956f8ee32eb0dad2df0f9e8fb
Update zh_cn.js
vendor/assets/javascripts/redactor-rails/langs/zh_cn.js
vendor/assets/javascripts/redactor-rails/langs/zh_cn.js
//@chen1706@gmail.com (function ($) { $.Redactor.opts.langs['zh_cn'] = { html: 'HTML代码', video: '视频', image: '图片', table: '表格', link: '链接', link_insert: '插入链接', unlink: '取消链接', formatting: '样式', paragraph: '段落', quote: '引用', code: '代码', header1: '一级标题', header2: '二级标题', header3: '三级标题', header4: '四级标题', ...
JavaScript
0.000005
@@ -160,16 +160,36 @@ '%E6%8F%92%E5%85%A5%E9%93%BE%E6%8E%A5',%0A +%09link_edit: '%E7%BC%96%E8%BE%91%E9%93%BE%E6%8E%A5',%0A %09unlink: @@ -333,16 +333,33 @@ '%E5%9B%9B%E7%BA%A7%E6%A0%87%E9%A2%98',%0A +%09header5: '%E4%BA%94%E7%BA%A7%E6%A0%87%E9%A2%98'%0A %09bold: @@ -1371,16 +1371,52 @@ : '%E5%AF%B9%E9%BD%90%E6%9...
954ab95f680a2b1cd2dc30b189a0a0e03234a7e4
Add getVersions
src/spm.js
src/spm.js
import co from "co"; import { EventEmitter } from "events"; import Config from "./config"; import { getJSON } from "./utils"; import Package from "./package"; class SPM extends EventEmitter { constructor () { super(); this.config = new Config; this._currentPackage = null; } // Public methods get...
JavaScript
0
@@ -52,16 +52,105 @@ events%22; +%0Aimport map from %22lodash/collection/map%22;%0Aimport zipObject from %22lodash/array/zipObject%22; %0A%0Aimport @@ -190,16 +190,29 @@ getJSON +, getJSONProp %7D from @@ -304,16 +304,25 @@ ructor ( +config=%7B%7D ) %7B%0A @@ -359,16 +359,24 @@ w Config +(config) ;%0A ...
1c445ca6378aa1725dd16a074963229ec5c5f17f
add chrome API check
plugins/sidebar/index.js
plugins/sidebar/index.js
'use strict'; const React = require('react'); const ListItem = require('react-material/components/ListItem'); const Sidebar = require('./sidebar'); const FileList = require('./file-list'); const File = require('./file'); const FileOperations = require('./file-operations'); const ProjectOperations = require('./project...
JavaScript
0
@@ -788,16 +788,103 @@ rylord?%0A + if(typeof chrome !== 'undefined' && typeof chrome.syncFileSystem !== 'undefined')%7B%0A chrome @@ -949,16 +949,18 @@ etail)%7B%0A + if(d @@ -1001,24 +1001,26 @@ al')%7B%0A + space.refres @@ -1041,16 +1041,22 @@ + + %7D%0A + %7D);%0A + ch @@...
3896605bec916d4cf00d586d64aede700481dfbd
fix typo
createjson.js
createjson.js
const fs = require('fs'); const path = require('path'); const codelabsPath = '_posts/codelabs/'; const indexJson = []; function readDir(lolPath) { fs.readdir(lolPath, (err, files) => { if (err) { console.log(err); throw err; } files .map((file) => { if (fs.statSync(path.join(l...
JavaScript
0.999991
@@ -131,19 +131,19 @@ readDir( -lol +dir Path) %7B%0A @@ -155,19 +155,19 @@ readdir( -lol +dir Path, (e @@ -304,35 +304,35 @@ tSync(path.join( -lol +dir Path, file)).isD @@ -365,35 +365,35 @@ adDir(path.join( -lol +dir Path, file));%0A @@ -430,11 +430,11 @@ oin( -lol +dir Path
53ecc46ba16a163edfa6219143ac4a6344b70426
remove extra buffer creation
credential.js
credential.js
/** * credential * * Easy password hashing and verification in Node. * Protects against brute force, rainbow tables, and * timing attacks. * * Cryptographically secure per-password salts prevent * rainbow table attacks. * * Key stretching prevents brute force. * * Constant time verification prevents hang ma...
JavaScript
0.000001
@@ -1790,24 +1790,12 @@ ll, -new Buffer( hash -) .toS
401c7b04ace9311ca51264f2a68c9fc09560224c
Remove bar timer
src/js/round/clock/view.js
src/js/round/clock/view.js
var m = require('mithril'); var classSet = require('chessground').util.classSet; function prefixInteger(num, length) { return (num / Math.pow(10, length)).toFixed(length).substr(2); } function bold(x) { return '<b>' + x + '</b>'; } function formatClockTime(ctrl, time) { var date = new Date(time); var minutes...
JavaScript
0.000001
@@ -1113,149 +1113,8 @@ , %5B%0A - m('div.timer.before', %7B%0A style: %7B%0A width: Math.max(0, Math.min(100, (time / ctrl.data.initial) * 100)) + '%25'%0A %7D%0A %7D),%0A
94def5257c300501c74502951d28979cf7a24d21
replace $server global var with call to wptServer()
filmstrip.js
filmstrip.js
<?php /* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
JavaScript
0.000007
@@ -618,17 +618,42 @@ geid');%0A +$wptServer = wptServer(); %0A - $query = @@ -1075,25 +1075,28 @@ xmlurl = %22%7B$ -s +wptS erver%7DxmlRes @@ -1554,17 +1554,20 @@ rl = %22%7B$ -s +wptS erver%7Dre @@ -2424,17 +2424,20 @@ 0 id='%7B$ -s +wptS erver%7Dth
762a8d35db181f2f1c58415675b8f1c32eb61567
Fix docs link
app/pages/HomePage/index.js
app/pages/HomePage/index.js
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import shouldPureComponentUpdate from 'react-pure-render/function'; import Button from 'Button'; import GettingStarted fr...
JavaScript
0
@@ -1035,16 +1035,84 @@ n=%22book%22 + href=%22https://github.com/mxstbr/react-boilerplate/tree/master/docs%22 %3EDocs%3C/B
da9fe41e74a64eff77134979745b2081fd22155a
Clean up lint errors for ProSignup
client/src/components/Signup/ProSignup.js
client/src/components/Signup/ProSignup.js
import React, { Component } from 'react'; import { Button, Form, Grid, Header, Icon } from 'semantic-ui-react'; export default class ProSignup extends Component { constructor() { super() } render() { return( <div> <div className="signup-buttons"> <Header textAlign='center'><Icon ...
JavaScript
0
@@ -186,16 +186,17 @@ super() +; %0A %7D%0A%0A @@ -216,16 +216,17 @@ return + (%0A @@ -304,16 +304,16 @@ ign= -' +%22 center -' +%22 %3E%3CIc @@ -328,16 +328,17 @@ %22travel%22 + /%3EProfes @@ -437,33 +437,10 @@ =%7B5%7D -%3E%0A %3C/Grid.Column + / %3E%0A @@ -550,16 +550,35 @@ %3C...
1aa2c7437f8571870cfcfdcc46f8582d25a0e963
Replace bootstrap modal in Groups Component
client/src/js/groups/components/Groups.js
client/src/js/groups/components/Groups.js
import { push } from "connected-react-router"; import { find, get, includes, map, sortBy } from "lodash-es"; import React from "react"; import { InputGroup } from "react-bootstrap"; import { connect } from "react-redux"; import styled from "styled-components"; import { BoxGroup, Button, InputError, Loa...
JavaScript
0.000003
@@ -263,20 +263,16 @@ import %7B -%0A BoxGrou @@ -277,20 +277,16 @@ oup, -%0A Button, %0A @@ -281,20 +281,16 @@ Button, -%0A InputEr @@ -293,20 +293,16 @@ utError, -%0A Loading @@ -317,22 +317,8 @@ der, -%0A Icon,%0A Dia @@ -325,20 +325,16 @@ logBody, -%0A ModalDi @@ -341,27 ...
3ef8e6f1c4374320a25d9a3da5dbccc5a7d7f0d3
Call initialize on original L.Map instead
src/leaflet.dataoptions.js
src/leaflet.dataoptions.js
// // leaflet.dataoptions // // A Leaflet plugin that makes it easy to configure a Leaflet map using data // attributes on the map's DOM element. // (function () { function defineDataOptions(L) { L.Map = L.Map.extend({ // Override the default constructor to get options from data ...
JavaScript
0
@@ -200,16 +200,47 @@ s(L) %7B%0A%0A + var LMapOrig = L.Map;%0A%0A @@ -967,22 +967,25 @@ L -. Map -.__super__ +Orig.prototype .ini
e769dbab4fd867d8b76f6bdf5061600f964e0db9
Fix myCounterparts tests
client/tests/webdriver/pages/home.page.js
client/tests/webdriver/pages/home.page.js
import Page from "./page" class Home extends Page { get topbar() { return browser.$("#topbar") } get ie11BannerText() { const ieBanner = browser.$("#ieBanner") ieBanner.waitForExist() ieBanner.waitForDisplayed() return browser.$("#ieBanner > div:nth-child(2)").getText() } get securityBa...
JavaScript
0
@@ -867,27 +867,31 @@ r.$( -%22#nav-links-button%22 +'//a%5Btext()=%22My Work%22%5D' )%0A @@ -1078,14 +1078,31 @@ r.$( -%22#my-c +'//a//span%5Btext()=%22My C ount @@ -1108,21 +1108,19 @@ terparts --nav%22 +%22%5D' )%0A %7D%0A%0A
482b18bc542a2bb593492f1b7a7dcae62fb228e3
Add additional tests in API tester.
external/api_tester/api_test.js
external/api_tester/api_test.js
/** * Copyright 2018 The Lovefield Project Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
JavaScript
0
@@ -1301,16 +1301,40 @@ Builder; +%0A let db;%0A let schema; %0A%0A befo @@ -1742,16 +1742,168 @@ BJECT);%0A + return builder.connect(%7B%0A DataStoreType: lf.DataStoreType.MEMORY%0A %7D).then(conn =%3E %7B%0A db = conn;%0A schema = db.getSchema();%0A %7D);%0A %7D);%0A%0A @@ -4320,13 +...
a09eae7d085e53a5e0e9f60e6becbcf3e3e45515
combine routing reducer
app/store/configureStore.js
app/store/configureStore.js
import { createStore, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import rootReducer from '../reducers' import DevTools from '../components/DevTools' // make it NODE_ENV-dependent const finalCreateStore = getCreateStoreModifier()(createStore) export default (initialState) => finalCreateSto...
JavaScript
0.000001
@@ -1,16 +1,33 @@ import %7B + combineReducers, createS @@ -104,16 +104,68 @@ -thunk'%0A +import %7B routeReducer %7D from 'redux-simple-router'%0A%0A import r @@ -271,16 +271,145 @@ endent%0A%0A +// let redux store the current URL%0Aconst reducer = combineReducers(Object.assign(%7B%7D, rootReducer, %7B%0A routi...
dfcafb7b0037abc6bb4cbff5639bdb836c6a62d0
update analytics code
public/javascripts/analytics_lib.js
public/javascripts/analytics_lib.js
/*------------------------------------------------------------------+ | Utilizes event tracking in Google Analytics to track | | clicks on outbound, document, and email links. | | Requires jQuery | +-----------------------------------------...
JavaScript
0
@@ -918,16 +918,16 @@ 'UA- -xxxxxxxx +31505617 -1'%5D
df21ff82b5e2c460cc71571a1cfaf7487c8c5e28
add new line
dashboard/test/unit/test_refresh.js
dashboard/test/unit/test_refresh.js
/* * Copyright 2015 Telefónica I+D * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
JavaScript
0.002414
@@ -2111,12 +2111,13 @@ %7D);%0A%7D);%0A +%0A
69f21295477743d5be7b191c4bae5e15db081315
Remove the toLowerCase function call as it doesn't work on this object, and it's going to be lower case anyway
generators/aws/lib/s3.js
generators/aws/lib/s3.js
const fs = require('fs'); const FILE_EXTENSION = '.original'; const S3_STANDARD_REGION = 'us-east-1'; let Progressbar; const S3 = module.exports = function S3(Aws, generator) { this.Aws = Aws; try { Progressbar = require('progress'); // eslint-disable-line } catch (e) { generator.error(`S...
JavaScript
0.000008
@@ -667,22 +667,8 @@ gion -.toLowerCase() ===
ebbbb7a7721f62bfa9580199ce4af29c41d91daa
Add jsdoc.
common/models/member.js
common/models/member.js
var loopback = require('loopback'); var path = require('path'); var debug = require('debug')('freecoder:member'); module.exports = function (Member) { // send verification email after registration // refer to http://docs.strongloop.com/display/public/LB/Remote+hooks Member.afterRemote('create', function (context...
JavaScript
0
@@ -914,16 +914,144 @@ %0A %7D);%0A%0A + /**%0A * Change user password by verify old password first.%0A * @param access_token%0A * @param options%0A * @param cb%0A */%0A Member @@ -1267,154 +1267,8 @@ ss); -%0A //if (!options.oldPass %7C%7C !options.newPass) %7B%0A // var msg = 'oldPass or newPa...
8585bda908d0e675841c992686be2dd1ab63e415
Update items.js
data/items.js
data/items.js
items = { "type": "FeatureCollection", "features": [ { "geometry": { "type": "Point", "coordinates": [ "35.179436", "31.763183" ] }, "type": "Feature", "properties": { "text": "פרג זיפני", "image": "data/photos/1.JPG" } ...
JavaScript
0.000001
@@ -323,10 +323,281 @@ %7D,%0A + %0A%7B%0A %22geometry%22: %7B%0A %22type%22: %22Point%22,%0A %22coordinates%22: %5B%0A %2235.178672%22,%0A %2231.765298%22%0A %5D%0A %7D,%0A %22type%22: %22Feature%22,%0A %22properties%22: %7B%0A %22text%22: %22%D7%9...
ca5eb976d37fe3870dd2cfbdea33ef05e70b0f13
handle synchronous exceptions in indexedDB openDatabase method
src/lib/store/indexedDb.js
src/lib/store/indexedDb.js
define(['../util', './pending'], function(util, pendingAdapter) { var DB_NAME = 'remoteStorage'; var DB_VERSION = 1; var OBJECT_STORE_NAME = 'nodes'; var logger = util.getLogger('store::indexed_db'); var adapter = function(indexedDB) { if(! indexedDB) { throw new Error("Not supported: indexedDB n...
JavaScript
0.000001
@@ -1305,32 +1305,50 @@ nction(event) %7B%0A + try %7B%0A var da @@ -1383,24 +1383,26 @@ ;%0A + + if(typeof(da @@ -1450,16 +1450,18 @@ + if(datab @@ -1499,24 +1499,26 @@ + + var versionR @@ -1573,16 +1573,18 @@ + versionR @@ -1628,32 +1628,...
cc9a2a0f6a48c2b97dd199d9d879921b26708ce4
update watch task for html closes #24
app/templates/_gruntfile.js
app/templates/_gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { options: { livereload: true, spawn: false }, // Styling scss: { files: 'components/**/*.scss', tasks: ['imagemin', 'sync', 'compass:development', ...
JavaScript
0
@@ -830,24 +830,49 @@ files: %5B'* +.html', 'components/app/* */*.html', ' @@ -864,24 +864,25 @@ p/**/*.html' + , '!componen @@ -947,28 +947,33 @@ 'replace -:development +', 'accessibility '%5D,%0A
d403669be0f6cf25ee198e3dfc34b7182dea8470
Update index.js
projects/acc/js/index.js
projects/acc/js/index.js
if ('Accelerometer' in window && 'Gyroscope' in window) { //document.getElementById('moApi').innerHTML = 'Generic Sensor API'; let accelerometer = new Accelerometer(); accelerometer.addEventListener('reading', e => MaccelerationHandler(accelerometer, 'moAccel')); accelerometer.start(); let accelerometer...
JavaScript
0.000002
@@ -2410,60 +2410,8 @@ ); %0A - document.body.style.background = #000000;%0A %7D%0A
96acf76612545d56504a9ba9aa04853d6495e8dd
Fix #413 - children with the same key
public/js/components/SourcesTree.js
public/js/components/SourcesTree.js
const React = require("react"); const { DOM: dom, PropTypes } = React; const { nodeHasChildren, createParentMap, addToTree, collapseTree, createTree } = require("../utils/sources-tree.js"); const classnames = require("classnames"); const ImPropTypes = require("react-immutable-proptypes"); const Arrow = React.crea...
JavaScript
0
@@ -3127,16 +3127,24 @@ %0A %7B +%0A classNa @@ -3180,16 +3180,16 @@ sed %7D),%0A - @@ -3227,24 +3227,48 @@ 5 + %22px%22 %7D,%0A + key: item.path,%0A onCl @@ -3328,28 +3328,16 @@ ck: e =%3E - %7B%0A setExpa @@ -3357,27 +3357,22 @@ xpanded) -; %0A - %7D %...
ae7402422a690d9e34ae9fb07eb1b42f95b77c03
remove e2e files in karma
app/templates/karma.conf.js
app/templates/karma.conf.js
'use strict'; module.exports = function (config) { config.set({ basePath: 'client', frameworks: ['jasmine'], preprocessors: { '**/*.html': ['ng-html2js'] }, ngHtml2JsPreprocessor: { stripPrefix: 'client/', moduleName: 'templates' }, plugins: [ 'karma-phantomjs...
JavaScript
0
@@ -1190,16 +1190,58 @@ '%0A %5D, +%0A%0A exclude: %5B%0A 'views/**/*.e2e.js' %3C%25 if (f @@ -1260,32 +1260,17 @@ ts) %7B %25%3E -%0A%0A exclude: %5B +, %0A ' @@ -1307,23 +1307,22 @@ .js' -,%0A %5D, %3C%25 %7D %25%3E +%0A %5D, %0A%0A
0c5e03f8245ff12f8e81d7f784083f75062aa734
call to Places Details API working; need to incorporate it into map initialization and remove calls to Geocoding API
public/scripts/models/google_map.js
public/scripts/models/google_map.js
'use strict'; const GOOGLE_GEOCODE_API_KEY = 'AIzaSyB3ds8lw9KjCDvLxfBCj5EpU52-5nGUe_Q'; const GOOGLE_PLACES_API_KEY = 'AIzaSyABR5dsVE6XNT0UOAKI_qmSC4_p0jPShQM'; const locations = [ { title: 'Fly Awake Tea' }, { title: 'Tao of Tea' }, { title: 'Heavens Tea, School of Tea Arts' } ]; //this is ho...
JavaScript
0
@@ -626,11 +626,12 @@ rch/ -xml +json ?que @@ -671,24 +671,168 @@ PI_KEY%7D%60%0A%7D%0A%0A +function placeDetailsUrl(id) %7B%0A return %60https://maps.googleapis.com/maps/api/place/details/json?placeid=$%7Bid%7D&key=$%7BGOOGLE_PLACES_API_KEY%7D%60%0A%7D%0A%0A function ini @@ -1255,24 +1255,78 @@ response) %7B%0A ...
8dd3dc991f5895d3cc511d2db4f88e44cddd8b62
add special variable test cases for rename.js
rename.js
rename.js
"use strict"; class Env { constructor(outer, k, v) { this.outer = outer; this.k = k; this.v = v; } get(key) { return (key == this.k) ? this.v : this.outer.get(key); } static empty() { return new Env(new Map()); } } class NextVar { constructor() { this.nextVar = 0; } n...
JavaScript
0.000001
@@ -919,17 +919,16 @@ ename;%0A%0A -%0A /*%0Avar _ @@ -1319,24 +1319,146 @@ %CE%BB_1 _1))%22%5D,%0A + %5B%22(%CE%BB_1 (_1 _1))%22, %22(%CE%BB_0 (_0 _0))%22%5D,%0A %5B%22(%CE%BB_0 (_0 _0))%22, %22(%CE%BB_0 (_0 _0))%22%5D,%0A %5B%22(%CE%BB_1 (%CE%BB_0 _0))%22, %22(%CE%BB_0 (%CE%BB_1 _1))%22%5D,%0A %5D;%0...
608215c5bca4a64b667970968c8344c54e7a78f2
update get new notifications logic
files/public/we.notification.js
files/public/we.notification.js
/** * Notifications client side lib */ (function (we) { we.notification = { count: 0, countDisplay: null, link: null, init: function() { this.countDisplay = $('.main-menu-link-notification-count'); this.link = $('.main-menu-notification-link'); // only start if both elements is found if (th...
JavaScript
0
@@ -348,32 +348,39 @@ k) this. -registerNewCheck +getNewNotificationCount ();%0A %7D, @@ -1033,12 +1033,20 @@ 'we. -post +notification .js: @@ -1064,14 +1064,25 @@ tNew -sPosts +NotificationCount :',
19af6710d339b3d156971fa3a3a95607de161b55
fix remaining cases on reduce
special.js
special.js
var u = require('./util') var compare = require('typewiselite') var search = require('binary-search') function is$ (obj) { for(var k in obj) if(k[0] === '$') return true return false } //rawpaths, reducedpaths, reduce function arrayGroup (set, get, reduce) { //we can use a different lookup path on the righ...
JavaScript
0.000002
@@ -1891,24 +1891,109 @@ on (rule) %7B%0A + //this traverses the rule THREE TIMES!%0A //surely I can do this in one go.%0A functi @@ -2111,33 +2111,32 @@ le, makeReduce)%0A -%0A return m @@ -2470,24 +2470,38 @@ %7D)%0A%0A +var reduce = ( function red @@ -2501,213 +2501,473 @@ ion ...
14150f7825c78a6caaf50fb659a7f2c99267f2e5
comment line so that build passes
src/App.js
src/App.js
import React from 'react'; import { Time, WeekDate, Event, EventOption, TimeInterval } from './suppClasses' import { makeDomain, search } from './cSearch' import { Schedule , scheduleEvaluation } from './schedule' import { miect4 } from './data/miect4'; import { miect2 } from './data/miect2'; import logo from './logo...
JavaScript
0
@@ -208,16 +208,18 @@ hedule'%0A +// import %7B
dd471a697d821b88245e9d7d0a3259becba5f484
Add userGuess()
src/App.js
src/App.js
import React, { Component } from 'react'; import './App.css'; import ReactSVG from 'react-svg' class App extends Component { constructor(){ this.alphabet = [] this.word = [] this.guessesLeft = 8 } function newGame() { newGameView() this.alphabet = ["A", "B", "C", "D", "E", "F"...
JavaScript
0.000001
@@ -521,16 +521,647 @@ )%0A %7D%0A%0A + userGuess( event ) %7B%0A letter = event.value%0A if(!this.alphabet.includes(letter.toUpperCase)) %7B%0A // You already guessed that! Do nothing (no penalty).%0A Console.log(%22You already guessed that!%22)%0A return%0A %7D%0A else %7B%0A this....
d6a7f211850f9b1b6c6a3a0ab17d72dfce38568a
Substitute static content with the state object
src/App.js
src/App.js
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>React Todos</h2> </div...
JavaScript
0.000084
@@ -117,16 +117,331 @@ onent %7B%0A +%0A constructor() %7B%0A super()%0A this.state = %7B%0A //list of todos in state object%0A todos: %5B%0A %7B id: 1, name: 'Learn React', isComplete: true %7D,%0A %7B id: 2, name: 'Build a React App', isComplete: false %7D,%0A %7B id: 3, name: '...
7028afe0153202364f428eb1761968a5f747c724
Add more locations.
src/App.js
src/App.js
import React, { Component } from 'react'; import './App.css'; import ErrorMsg from './ErrorMsg.js'; import LoadingMsg from './LoadingMsg.js'; import TimeTable from './TimeTable.js'; import UserLocation from './UserLocation.js'; import MapView from './MapView.js'; class App extends Component { constructor(props) { s...
JavaScript
0
@@ -573,16 +573,38 @@ nce:1000 +, filterOut:'Otaniemi' %0A%09%09%09%7D);%0A @@ -756,24 +756,451 @@ 100%5D%0A%09%09%09%7D);%0A +%09%09%7D else if (/sello/.exec(currentURL)) %7B%0A%09%09%09self.setState(%7B%0A%09%09%09%09lat:60.219378, lon:24.815121, maxDistance:325, filterOut:'Lepp%C3%A4vaara'%0A%09%09%09%7D);%0A%09%...
0988c6e3d216f019a08bc9cfdf864a9e4af5caa2
Update order of lessons.
src/App.js
src/App.js
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' import { withRouter } from 'react-router' import { Panel, ListGroup, ListGroupItem, Navbar, Col, Clearfix } from 'react-bootstrap' import * as Lessons from './lessons/index.js' const lessons = [ { key: 'StateAsProps', d...
JavaScript
0
@@ -359,26 +359,19 @@ y: ' -Pure Render -Function +State s', @@ -388,28 +388,20 @@ e: ' -Pure render function +Render state s' %7D @@ -408,35 +408,42 @@ ,%0A %7B key: ' +Pure Render -State +Function s', displayN @@ -444,36 +444,44 @@ splayName: ' -Render state +Pure render function s' %7D,%0A%5D%0A%0Acon
f6f4d331233f9b4fb886e39acae232512b63c833
make years the default time bin
src/VIS.js
src/VIS.js
/*global d3, utils */ "use strict"; // declaration of global object (modified by browser().load()) var VIS = { ready: { }, // which viz already generated? last: { // which subviews last shown? bib: { } }, files: { // what data files to request info: "data/info.json", meta: "data...
JavaScript
0.000066
@@ -1229,15 +1229,15 @@ t: %22 -month +year %22, + //
701503a5d205d22145597390b492992c17244925
Make jshint pass
tasks/aglio.js
tasks/aglio.js
'use strict'; var path = require('path'); var when = require('when'); module.exports = function (grunt) { var _ = require('underscore'); var aglio = require('aglio'); grunt.registerMultiTask('aglio', 'Grunt plugin to generate aglio documentation', function () { var done = this.async(); // Merge task-sp...
JavaScript
0.994966
@@ -2455,24 +2455,8 @@ %7D;%0A%0A - compile();%0A%0A @@ -3473,16 +3473,17 @@ html == += 'string @@ -3959,16 +3959,32 @@ );%0A %7D +%0A%0A compile(); %0A %7D);%0A%7D
7ce48514893ffdaed2a7cb8d5c553ca723a7b193
Enable smart typographic punctuation in markdown plugin.
tasks/build.js
tasks/build.js
var gulp = require('gulp'); var Metalsmith = require('metalsmith'); var collections = require('metalsmith-collections'); var ignore = require('metalsmith-ignore'); var permalinks = require('metalsmith-permalinks'); // Content var fileMetadata = require('metalsmith-filemetadata'); var metadata = require('metalsmith-me...
JavaScript
0
@@ -1556,16 +1556,47 @@ arkdown( +%7B%0A smartypants: true%0A %7D ))%0A .
81df5c6a7b5126e888fcbe9962185e683ace8821
Implement click transition for now
front/scripts/modules/reader.js
front/scripts/modules/reader.js
'use strict'; const electron = require('electron'); const remote = electron.remote; const webFrame = electron.webFrame; const app = remote.app; const co = require('co'); const View = require('./view'); const util = require('./util'); const keycodes = require('./keycodes'); let current = null; class Reader extends View...
JavaScript
0
@@ -286,16 +286,36 @@ = null; +%0Aconst _events = %7B%7D; %0A%0Aclass @@ -641,16 +641,99 @@ (this);%0A + _events.left = this.next.bind(this);%0A _events.right = this.prev.bind(this);%0A %7D%0A%0A s @@ -1672,24 +1672,136 @@ peHandler);%0A + this.left.addEventListener('click', _events.left);%0A this...
ed6abbc49f74022e7ac2a93012509ee02fe85598
Increase maxBuffer to 1000 * 1024, was having problems with the `xcodebuild archive` exceeding buffer
tasks/xcode.js
tasks/xcode.js
/* * grunt-xcode * https://github.com/matiassingers/grunt-xcode * * Copyright (c) 2014 Matias Singers * Licensed under the MIT license. */ 'use strict'; var Promise = require('bluebird'); var exec = Promise.promisify(require('child_process').exec); var temporary = require('temporary'); String.prototype.format =...
JavaScript
0.000001
@@ -685,32 +685,56 @@ urn exec(command +, %7BmaxBuffer: 1000*1024%7D )%0A .catch(h
d590014bb6377979afaf738b23ce5d4895903c43
load correctly lowercased findone.js blueprint
blueprints/find.js
blueprints/find.js
/** * Module dependencies */ var util = require( 'util' ), actionUtil = require( './_util/actionUtil' ), pluralize = require( 'pluralize' ); /** * Find Records * * get /:modelIdentity * * /:modelIdentity/find * * An API call to find and return model instances from the data adapter * using the spec...
JavaScript
0.00004
@@ -1646,17 +1646,17 @@ './find -O +o ne' )( r
fbea2335c0a71d71dc27788281ed97a28e3855e8
Fix time lost if opponent was disconnected.
frontend/js/controllers/play.js
frontend/js/controllers/play.js
/** * Created by stas on 30.01.16. */ 'use strict'; playzoneControllers.controller('PlayCtrl', function ($scope, $rootScope, $routeParams, GameRest, WebRTCService, WebsocketService, $interval, dateFilter) { $scope.boardConfig = { pieceType: 'leipzig' }; $scope.gameConfig = { zeitnotLimit...
JavaScript
0
@@ -3415,24 +3415,150 @@ me.$savePgn( +).then(%0A function () %7B%0A WebsocketService.sendGameToObservers($scope.game.id);%0A %7D%0A );%0A %7D;%0A%7D)
7178296aa07088e152e38e852cda00e7ce85f0c6
Update rest_api.js
app/assets/javascripts/codelation_ui/std/interfaces/rest_api.js
app/assets/javascripts/codelation_ui/std/interfaces/rest_api.js
(function(){ "use strict"; // Config options App.vue.config.rest_api = { 'options': {}, 'version': null }; function url() { if (App.vue.config.rest_api.version === null) { return '/api'; }else{ return '/api/v' + App.vue.config.rest_api.version; } } function toPath(...
JavaScript
0.000001
@@ -2794,32 +2794,159 @@ toPath(model);%0A + if (App.vue.interfaces.contentValidators.methods._valueIsEmpty(id)) %7B%0A var path = url + '/';%0A %7Delse%7B%0A var path @@ -2956,32 +2956,42 @@ url + '/' + id;%0A + %7D%0A var requ
3f854bd6a0d4d0e5e363e1fc38dbdf6ba6693b2c
edit playground
src/app.js
src/app.js
document.write('Hello Frontend Masters!') var React = require('react') var Hello = React.createClass({ render: function() { return <div>Hello, {this.props.name}</div> } }) React.render(<Hello name="dian"/>, document.body)
JavaScript
0.000001
@@ -1,47 +1,4 @@ -document.write('Hello Frontend Masters!')%0A%0A var @@ -182,8 +182,9 @@ nt.body) +%0A
96064ca82c38e6248a5f5f851b9046fc40776444
fix cart
app/assets/javascripts/controllers/trade/my/carts/show-ready.js
app/assets/javascripts/controllers/trade/my/carts/show-ready.js
class CartController extends Stimulus.Controller { //static targets = [ 'number' ]; connect() { console.log(this.numberTarget.value) } update() { var data = new FormData(); data.set(this.numberTarget.name, this.numberTarget.value); Rails.ajax({ url: this.numberTarget.dataset.url, type: 'PATCH'...
JavaScript
0.000001
@@ -1,8 +1,47 @@ +import %7B Controller %7D from 'stimulus'%0A%0A class Ca @@ -65,17 +65,8 @@ nds -Stimulus. Cont @@ -80,10 +80,8 @@ %7B%0A -// stat
37f2ced956641f948101ebdd4fb0b26a63113c2b
Edit the verification base url to avoid strange anchor behavior and separate path and token
frontend/views/provider-form.js
frontend/views/provider-form.js
var Backbone = require('backbone'), template = require("../templates/provider-form.hbs"), i18n = require('i18next-client'); var config = require('../config'); module.exports = Backbone.View.extend({ initialize: function(){ this.render(); }, render: function() { var $el = this.$el; ...
JavaScript
0
@@ -2331,16 +2331,17 @@ thname+' +? #/regist @@ -2349,16 +2349,17 @@ r/verify +/ ';%0A%0A
0230a79eb937ed562c42124cdeaa6da25c874394
add docstring to app.js
src/app.js
src/app.js
define('app', ['vent', 'db', 'util', 'template'], function( vent, db, util, tmpl ){ 'use strict'; var app = window.app = {}; app.vent = vent; app.db = db; app.util = util; app.tmpl = tmpl; return app; });
JavaScript
0.000001
@@ -1,8 +1,228 @@ +/**%0A * app.js%0A *%0A * This module is somewhat superfluous at the moment, its only being used to%0A * expose certain interfaces for debugging purposes. Perhaps it will evolve down%0A * the road to a more useful construct.%0A */%0A%0A define('
aed3dae46a21f1c4200af6b3c3d8184ce6d09c05
Update test to reflect PerDistrict
app/assets/javascripts/student_profile/LightProfilePage.test.js
app/assets/javascripts/student_profile/LightProfilePage.test.js
import React from 'react'; import ReactDOM from 'react-dom'; import renderer from 'react-test-renderer'; import {toMoment, toMomentFromTimestamp} from '../helpers/toMoment'; import {withDefaultNowContext} from '../testing/NowContainer'; import LightProfilePage, {latestStar, countEventsSince} from './LightProfilePage'; ...
JavaScript
0
@@ -4886,32 +4886,65 @@ ..defaultProps,%0A + districtKey: 'somerville',%0A student: %7B @@ -5341,24 +5341,58 @@ faultProps,%0A + districtKey: 'new-bedford',%0A studen
e70a56c0d2b642bb7ab1cbc58e6a7486b8c04231
fix typo
src/renderer/js/component/form.js
src/renderer/js/component/form.js
import React from "react"; import PropTypes from "prop-types"; import FormField from "component/formField"; import { Icon } from "component/common.js"; let formFieldCounter = 0; export const formFieldNestedLabelTypes = ["radio", "checkbox"]; export function formFieldId() { return "form-field-" + ++formFieldCounter...
JavaScript
0.999991
@@ -761,17 +761,16 @@ ent %7B%0A -s propType
532558b47ba9055c04301e69a201faef765d96dd
Refactor email page to use new textarea
app/scripts/Widget/plugins/PressureWidget/settings/EmailPage.js
app/scripts/Widget/plugins/PressureWidget/settings/EmailPage.js
import React, { Component, PropTypes } from 'react' import { reduxForm } from 'redux-form' import * as WidgetActions from '../../../actions' import { FormFooter, InputTag } from '../../../components' import { FormRedux, FormGroup, ControlLabel, FormControl } from '../../../../Dashboard/Forms' import { Base as...
JavaScript
0
@@ -2621,34 +2621,8 @@ ext%22 - style=%7B%7Bheight: '20rem'%7D%7D com
6019c287f3db0a415a0a7290df3a8f8308e7c8c7
change preview photo number
javascript.js
javascript.js
function initialize_webiopi(){ // apply style.css after initialize webiopi applyCustomCss('styles.css'); // set touch area var touchArea = $("#touchArea")[0]; // add touch event listener touchArea.addEventListener("touchstart", touchEvent, false); touchArea.addEventListener("touchmove", t...
JavaScript
0
@@ -4553,84 +4553,8 @@ %0A%09%09%7D -%0A%7D%0A%0Afunction ActionShutter()%7B%0A webiopi().callMacro(%22shutterCamera%22, %5B0%5D); %0A%0A%09%09 @@ -4625,24 +4625,28 @@ b = data + - 1 ;%0A%09%09%7D);%0A %09%0A%09%09setT @@ -4637,17 +4637,92 @@ ;%0A%09%09%7D);%0A -%09 +%7D%0A%0Afunction ActionShutter()%7B%0A ...
c7761e26070c3e4bcd8d6a7016f0bdc18257a39b
clean up naming
analysis/test/js/spec/directives/sumaCsvHourly.js
analysis/test/js/spec/directives/sumaCsvHourly.js
'use strict'; describe('Directive: sumaCsvHourly', function () { // load the directive's module beforeEach(module('sumaAnalysis')); beforeEach(module('csvHourlyMock')); // load the directive's template beforeEach(module('views/directives/csv.html')); var element, scope, testLink, Ctrl...
JavaScript
0.003219
@@ -289,28 +289,28 @@ cope,%0A -test +Mock Link,%0A @@ -485,20 +485,20 @@ ');%0A -test +Mock Link = m @@ -814,12 +814,12 @@ ual( -test +Mock Link
1d7ea9c960b3d914158142a25cebfb76dd7f0473
Remove VariablesAreInputTypesRule
packages/relay-compiler/core/RelayValidator.js
packages/relay-compiler/core/RelayValidator.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict * @format */ 'use strict'; const Profiler = require('./GraphQLCompilerProfiler'); const util = require('util');...
JavaScript
0
@@ -466,38 +466,8 @@ le,%0A - VariablesAreInputTypesRule,%0A fo @@ -3521,40 +3521,8 @@ ule, -%0A VariablesAreInputTypesRule, %0A%0A
884c167fc7f8d98788652579d8959047544628c8
Support graphql in resolve-scripts (#171)
packages/resolve-scripts/src/server/express.js
packages/resolve-scripts/src/server/express.js
import bodyParser from 'body-parser'; import express from 'express'; import path from 'path'; import query from 'resolve-query'; import commandHandler from 'resolve-command'; import request from 'request'; import ssr from './render'; import eventStore from './event_store'; import config from '../configs/server.config....
JavaScript
0
@@ -1059,32 +1059,174 @@ q, res) =%3E %7B%0A + const gqlQuery = req.query && req.query.graphql;%0A const result = gqlQuery%0A ? executeQuery(req.params.queryName, gqlQuery)%0A : executeQuery(re @@ -1244,16 +1244,29 @@ eryName) +;%0A%0A result .then(st
6e9777f51758400cd30641a85a2740563cf89c61
add table to theme-data storybook docs
packages/theme-data/src/__stories__/stories.js
packages/theme-data/src/__stories__/stories.js
import baseTheme from "../baseTheme"; import basicsReadme from "../basics/README.md"; import densityReadme from "./DENSITY_README.md"; import colorSchemeReadme from "./COLOR_SCHEME_README.md"; function filterMatchByKey(o, keyFragment) { return Object.keys(o).reduce((acc, key) => { if (key.match(keyFragment)) { ...
JavaScript
0.000002
@@ -4446,32 +4446,169 @@ efined%0A %7D,%0A %7B%0A + description: %22Component - Table%22,%0A schema: filterMatchByKey(baseTheme.unresolvedRoles, /%5Etable./),%0A readme: undefined%0A %7D,%0A %7B%0A description:
3734a5389404e56c89467093ec96c487d6450094
Fix listener tests
packages/transport-commons/test/client.test.js
packages/transport-commons/test/client.test.js
const assert = require('assert'); const { EventEmitter } = require('events'); const errors = require('@feathersjs/errors'); const Service = require('../lib/client'); describe('client', () => { let connection, testData, service; beforeEach(() => { connection = new EventEmitter(); testData = { data: 'testi...
JavaScript
0.000011
@@ -5365,35 +5365,50 @@ ;%0A service. -off +removeAllListeners ('test');%0A
cee1bc36ab83de27ce8e4809efd2c1f23b93195b
Update browser versions
protractor-remote.conf.js
protractor-remote.conf.js
"use strict"; var request = require("request"); exports.config = { sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, allScriptsTimeout: 11000, specs: [ "e2e-tests/*.js" ], multiCapabilities: [ addCommon({browserName: "chrome", version: 46}), addCommon({browserName: "firefox...
JavaScript
0
@@ -277,10 +277,16 @@ on: -46 +%22latest%22 %7D),%0A @@ -335,10 +335,16 @@ on: -42 +%22latest%22 %7D),%0A @@ -399,18 +399,24 @@ ersion: -11 +%22latest%22 %7D),%0A%09%09ad
7eb9a1111b42e55044d551cee8502dbff6ae95fa
Remove geolocation caching
geolocate.js
geolocate.js
/* global map */ (function () { 'use strict' var latitude var longitude if (!map) return false var getCurrentLocation = function (success, error) { var geolocator = window.navigator.geolocation; var options = { enableHighAccuracy: true, maximumAge: 10000 }; if (geolocator) { ...
JavaScript
0.000001
@@ -760,300 +760,8 @@ %7D%0A%0A - var cacheCurrentLocation = function () %7B%0A var onSuccess = function (position) %7B%0A latitude = position.coords.latitude%0A longitude = position.coords.longitude%0A %7D%0A%0A // Do nothing if we are unable to do geolocation%0A // No error callback%0A%0A getC...
332a3df24e66bc7fee91f5cc0256feff045e431e
Reverting state to 3adfae7e5b3b70310dae64de0ae8a1b8b5471f5f
src/routes/yelpSearch.js
src/routes/yelpSearch.js
var express = require('express'), yelp = require('yelp-fusion'); var router = express.Router(); var client; const token = yelp.accessToken(process.env.YELP_KEY, process.env.YELP_SECRET).then(response =>{ client = yelp.client(response.jsonBody.access_token); }).catch(e => { console.log(e); }); fu...
JavaScript
0.999651
@@ -399,56 +399,8 @@ %0A%7D%0A%0A -function yelpSearch(query, lat, lon, rad) %7B%0A%0A%7D%0A%0A rout @@ -768,16 +768,17 @@ rad = +1 500;%0A %7D @@ -809,203 +809,8 @@ %7D%0A - console.log(%22HI%22);%0A //TODO: Increase search radius if nothing found%0A //TODO: Probably put search in own function, put into ...
e5ae43e30821ce2b3caefef328318e46c2fa10f2
clean up working directory between install:arch tests
packages/xod-cli/test-func/installArch.spec.js
packages/xod-cli/test-func/installArch.spec.js
import { test } from '@oclif/test'; import { assert } from 'chai'; import path from 'path'; import process from 'process'; import fs from 'fs-extra'; import { createWorkingDirectory } from './helpers'; // save process.exit for unmocking const exit = process.exit; // save tty status const isTTY = process.stdout.isTTY;...
JavaScript
0
@@ -5935,32 +5935,84 @@ exit;%0A %7D);%0A%0A + after(() =%3E %7B%0A fs.removeSync(wd);%0A %7D);%0A%0A its(wd);%0A %7D @@ -6351,32 +6351,84 @@ exit;%0A %7D);%0A%0A + after(() =%3E %7B%0A fs.removeSync(wd);%0A %7D);%0A%0A its(wd);%0A %7D
cbc464000d03364d67e5b6c89e0bd22ef7de5f27
Attach event listeners also to dynamically inserted elements. Fixes #150
pari/article/static/article/js/media_player.js
pari/article/static/article/js/media_player.js
$(function(){ $(".media-popup").on("shown.bs.modal", function () { if($(this).data('video')) { var youtube_url = "http://www.youtube.com/embed/" + $(this).data('video') + "?autoplay=1"; $('.video-container', this).html('<iframe src="' + youtube_url + '" frameborder="0" allowfullscree...
JavaScript
0
@@ -10,36 +10,28 @@ n()%7B%0A $(%22 -.media-popup +body %22).on(%22shown @@ -41,16 +41,33 @@ .modal%22, + %22.media-popup%22, functio @@ -682,28 +682,20 @@ %0A $(%22 -.media-popup +body %22).on('h @@ -710,16 +710,32 @@ .modal', + %22.media-popup%22, functio
b8f3f7b57ac0fbde9c1bdd1f3b3ccb931a131c43
fix localforage error
src/app.js
src/app.js
import feathers from 'feathers/client'; import hooks from 'feathers-hooks'; import rest from 'feathers-rest/client'; import socketio from 'feathers-socketio/client'; import authentication from 'feathers-authentication-client'; import io from 'socket.io-client'; import superagent from 'superagent'; import localForage fr...
JavaScript
0.000001
@@ -296,47 +296,8 @@ t';%0A -import localForage from 'localforage';%0A impo @@ -390,19 +390,30 @@ ) : +require(' local -F +f orage +') ;%0A%0Ac
1f2de197d30e05141d9a6418c2b4a973ecfab6b1
Fix bugs in AST module
src/AST.js
src/AST.js
/* NOTE: We forego using classes and class-based inheritance because at this time super() tends to be slow in transpiled code. Instead, we use regular constructor functions and give them a common prototype property. */ import * as Nodes from './Nodes.js'; export * from './Nodes.js'; function isNode(x) { return x ...
JavaScript
0.000001
@@ -555,13 +555,16 @@ -break +continue ;%0A%0A @@ -648,11 +648,11 @@ or ( -var +let j =
e1dc65cc8b1a270e07f8d1dbbb08692204d187e4
Implement unwrapConsole, to show line numbers when using remote inspector
www/main.js
www/main.js
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
JavaScript
0
@@ -2715,35 +2715,8 @@ */%0A%0A -function wrapConsole() %7B%0A var @@ -2746,16 +2746,51 @@ nsole;%0A%0A +exports.wrapConsole = function() %7B%0A functi @@ -3782,24 +3782,98 @@ ror'),%0A %7D%0A%7D +;%0A%0Aexports.unwrapConsole = function() %7B%0A window.console = origConsole;%0A%7D; %0A%0A/********* @@ -659...
9d01caa76766dd6ceb5fea4031643288f088daaa
Remove only
test/bigtest/tests/settings-transfers-test.js
test/bigtest/tests/settings-transfers-test.js
import { expect } from 'chai'; import { beforeEach, describe, it, } from '@bigtest/mocha'; import TransferInteractor from '../interactors/settings-transfers'; import setupApplication from '../helpers/setup-application'; describe.only('Settings transfers', () => { setupApplication({ scenarios: ['settings-feef...
JavaScript
0
@@ -234,13 +234,8 @@ ribe -.only ('Se
699d473ac92ab61a7abf32002c500150633cfc08
enable advpng test (#13)
test/advpng.js
test/advpng.js
import test from 'ava' import { readFile, writeFile, find, rm } from 'fildes-extra' import { join } from 'path' import imagemin from 'imagemin' import imageminAdvpng from 'imagemin-advpng' const images = join(__dirname, 'images') const build = join(__dirname, 'build') test.before(() => { return find(join(build, '**...
JavaScript
0
@@ -709,73 +709,12 @@ %0A%7D%0A%0A -// https://github.com/imagemin/imagemin-advpng/issues/3%0Atest.skip +test ('ad
de1ce519cab94308b05e76c8d2e9436e9fedb5a6
Update push.js
www/push.js
www/push.js
/* global cordova:false */ /* globals window */ /*! * Module dependencies. */ var exec = cordova.require('cordova/exec'); /** * PushNotification constructor. * * @param {Object} options to initiate Push Notifications. * @return {PushNotification} instance that can be monitored and cancelled. */ var PushNotif...
JavaScript
0.000001
@@ -4420,14 +4420,8 @@ back -, data ) %7B%0A @@ -4890,21 +4890,9 @@ ct', - %5B%7Bdata:data%7D +%5B %5D);%0A
a1c1af255e0fdfd4318493bdf412acf9645d110b
Split disabled and sale logic.
src/App.js
src/App.js
import config from './config.js'; import React, { Component } from 'react'; import Select from './components/Select.js'; import RentSelect from './components/RentSelect.js'; import moment from 'moment'; import DatePicker from 'react-datepicker'; export default class App extends Component { constructor () { sup...
JavaScript
0
@@ -635,16 +635,50 @@ ixRent,%0A + rentOptionsDisabled: false,%0A sa @@ -687,16 +687,16 @@ : false%0A - %7D;%0A @@ -1010,24 +1010,61 @@ PrefixRent;%0A + let rentOptionsDisabled = false;%0A let sale @@ -1350,32 +1350,68 @@ mGetPrefixRent;%0A + rentOptionsDisabled = true;%0A ...
6a0d0d68853cf7757ebcf92cd685f1093dbdfd39
Fix cookie domain generator
public/javascript/core.js
public/javascript/core.js
//Reusable functions var Alphagov = { cookie_domain: function() { host_parts = document.location.host.split('.'); return '.' + host_parts.slice(-3, 3).join('.'); }, read_cookie: function(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.co...
JavaScript
0.000003
@@ -107,24 +107,34 @@ t.split('.') +.reverse() ;%0A return @@ -161,15 +161,24 @@ ice( --3 +0 , 3). +reverse(). join
b5ed0a6789436063620749aaede1a94ddfb3cce5
use FileStore for demo
demo/index.js
demo/index.js
const express = require('express'); const http = require("http"); const swig = require('swig'); const Wechat = require('../lib'); const path = require("path"); const debug = require('debug')('wechat'); const cookieParser = require('cookie-parser'); const session = require('express-session'); const MongoStore = Wechat...
JavaScript
0
@@ -558,16 +558,19 @@ auth%22,%0A + // store: @@ -598,19 +598,16 @@ : 5%7D),%0A - // store:
88df841c370dedd466d1c15cb06b8d556771bb14
fix typo
src/app.js
src/app.js
import express from 'express'; import bodyParser from 'body-parser'; import requireDir from 'require-dir'; const routes = requireDir('./routes'); const connectors = (() => { const c = requireDir('./connectors'); return Object.keys(c).reduce((m, k) => { const v = c[k]; console.log(`(${k}) connector: ${v.nam...
JavaScript
0.000864
@@ -912,24 +912,25 @@ g = m%5Bd.con +n ector%5D %7C%7C %5B%5D @@ -964,16 +964,17 @@ m%5Bd.con +n ector%5D =
124c8ebae0c768b25051d5a724486861a88e2dff
fix bug in PATRIC3/patric3_website#1813
public/js/p3/widget/SelectionToGroup.js
public/js/p3/widget/SelectionToGroup.js
define([ "dojo/_base/declare", "dijit/_WidgetBase", "dojo/on", "dojo/dom-class", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojo/text!./templates/SelectionToGroup.html", "dojo/_base/lang", "../WorkspaceManager", "dojo/dom-style", "dojo/parser", "dijit/form/Select", "./WorkspaceFilenameValidationText...
JavaScript
0
@@ -1910,18 +1910,36 @@ Path -, thing) %7B +) %7B%0A%09%09%09this.path = newPath;%0A %0A%09%09%09
956b553dac919df4cb90421aeeb094a9a3842eaf
Use filter in page search
src/search/find-pages.js
src/search/find-pages.js
import update from 'lodash/fp/update' import db from '../pouchdb' import { keyRangeForPrefix } from '../pouchdb' import { pageKeyPrefix } from '../activity-logger' import { searchableTextFields, revisePageFields } from '../page-analysis' // Post-process result list after any retrieval of pages from the database. con...
JavaScript
0
@@ -863,24 +863,139 @@ query,%0A + filter: doc =%3E (typeof doc._id === 'string'%0A && doc._id.startsWith(pageKeyPrefix)),%0A fiel
236f51a9e2689cb9d0d2a71e00046ac4a16ab517
Update App.js
src/App.js
src/App.js
import React, {Component} from 'react'; import {Main} from './components/Main'; import Warnings from './components/Warnings'; import Top from './components/Top/Top'; import {StartAuction} from './components/StartAuction/StartAuction'; import Footer from './components/Footer/Footer'; import {getAddressBalance} from './l...
JavaScript
0.000001
@@ -163,77 +163,8 @@ p';%0A -import %7BStartAuction%7D from './components/StartAuction/StartAuction';%0A impo @@ -1200,34 +1200,8 @@ /%3E%7D%0A - %3CStartAuction/%3E%0A
4f50764ebdc7566c4f192e3ad51dec8b1c4c5338
Add APP_VERSION in app.js
src/app.js
src/app.js
/* Require libs */ var UI = require('ui'); var Vector2 = require('vector2'); var ajax = require('ajax'); var Vibe = require('ui/vibe'); /* Variables */ var isUpdating = false; var locationOptions = {"timeout": 15000, "maximumAge": 30000, "enableHighAccuracy": true}; /* UI Elements */ var main...
JavaScript
0.000006
@@ -143,24 +143,50 @@ ariables */%0A +var APP_VERSION = %22v2.0%22;%0A var isUpdati @@ -3158,15 +3158,30 @@ '& -demo=1' +pebble=' + APP_VERSION ;%0A
dbf15ea6e4de60662c24ccf49c5640d88c25883d
Fix admin advanced flag
src/server/jwt-helper.js
src/server/jwt-helper.js
import jwt from 'jsonwebtoken' import config from 'config' import hashids from 'src/shared/utils/hashids-plus' import { includes } from 'lodash' const opts = {} opts.algorithm = config.jwt.OPTIONS.ALG opts.expiresIn = config.jwt.OPTIONS.EXP opts.issuer = config.jwt.OPTIONS.ISS opts.audience = config.jwt.OPTIONS.AUD e...
JavaScript
0
@@ -521,24 +521,49 @@ dmin = true%0A + data.advanced = true%0A %7D%0A%0A // Ad
6260b1fa7145b27a67aeaf1780cd2b1fbde32f0c
fix failed test on windows
test/common.js
test/common.js
var fs = require('fs'); var assert = require('assert'); var csso = require('../lib/index.js'); describe('csso', function() { it('justDoIt() should works until removed', function() { var output = []; var tmp = console.warn; try { console.warn = function() { outpu...
JavaScript
0.000001
@@ -89,16 +89,91 @@ .js');%0A%0A +function normalize(str) %7B%0A return str.replace(/%5Cn%7C%5Cr%5Cn?%7C%5Cf/g, '%5Cn');%0A%7D%0A%0A describe @@ -1917,16 +1917,26 @@ +normalize( fs.readF @@ -1996,16 +1996,17 @@ ).trim() +) %0A
4394d9c821c7fcc9321e271e725b1ba0dc4c6c42
Improve UX of answering boolean prompts
src/services/Terminal.js
src/services/Terminal.js
const {gray, yellow, red, blue, bold} = require('chalk'); const readline = require('../lib/readline/readline'); const {pathCompleter} = require('./pathCompleter'); const EventEmitter = require('events'); const boxen = require('boxen'); const {terminate} = require('../helpers/proc'); module.exports = class Terminal ext...
JavaScript
0.000005
@@ -278,16 +278,50 @@ roc');%0A%0A +const PROMPT = blue.bold('%3E%3E ');%0A%0A module.e @@ -546,32 +546,22 @@ ctive ? -blue.bold('%3E%3E ') +PROMPT : '',%0A @@ -3812,75 +3812,33 @@ -let result = await new Promise(resolve =%3E %7B%0A const question = +this._readline.setPrompt( bold @@ -3871,20 +3871,...
525318ffb6c5fb21e22d3f1538a0b643c61b025d
fix syntax of example
hello_world_rtm.js
hello_world_rtm.js
var Bot = require('./Slackbot.js'); var bot = Bot(); bot.init(); bot.startRTM({ team: { token: process.env.token } }); bot.hears(['hello'],'direct_message,direct_mention',function(connection,message) { bot.reply(connection,message,'Hello!'); }); bot.hears(['lunch'],'direct_message,direct_mention',functio...
JavaScript
0.000012
@@ -181,35 +181,24 @@ n',function( -connection, message) %7B%0A @@ -208,27 +208,16 @@ t.reply( -connection, message, @@ -248,13 +248,22 @@ s(%5B' -lunch +question','ask '%5D,' @@ -302,27 +302,16 @@ unction( -connection, message) @@ -328,24 +328,21 @@ tart -Task(connec +Conversa tion -, +( mess @@ -358,13 +3...
2b819adfe80bab0b52fcf43c5f9a32c1d23cae63
update proper emit
public/js/data-channel.js
public/js/data-channel.js
var room; var users = {}; var dataChannels = {}; // when Bistri API client is ready, function // "onBistriConferenceReady" is invoked onBistriConferenceReady = function () { // test if the browser is WebRTC compatible if ( !bc.isCompatible() ) { // if the browser is not compatible, display an alert ...
JavaScript
0.000001
@@ -6744,31 +6744,36 @@ ;%0A -window.io.Socket.emit() +socket.emit(%22escs_poweron%22); %0A%7D%0A%0A
db71ec4183947c7ab25c8436b7eddc03251d67a8
Tweak instructions link text, fix href warning
src/App.js
src/App.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actionCreators } from './appRedux'; import Cell from './Cell.js'; import Settings from './Settings.js'; import Instructions from './Instructions.js'; import './App.css'; const mapStateToProps = state => ({ settings: state.sett...
JavaScript
0
@@ -3039,16 +3039,28 @@ href=%22# +instructions %22 onClic @@ -3102,16 +3102,21 @@ +Show Instruct @@ -3119,16 +3119,22 @@ ructions + Again %0A
22a0ebd1aed7dd437f672fc5fdc31ec37d72bd26
Update config.js
test/config.js
test/config.js
module.exports = { library: "/usr/lib/libsofthsm.so", name: "SoftHSM", slot: 0, sessionFlags: 4, // SERIAL_SESSION pin: "6789" }
JavaScript
0.000002
@@ -29,18 +29,32 @@ %22/usr/l -ib +ocal/lib/softhsm /libsoft @@ -56,16 +56,17 @@ bsofthsm +2 .so%22,%0A%09n @@ -78,16 +78,18 @@ %22SoftHSM +v2 %22,%0A%09slot @@ -143,12 +143,13 @@ n: %22 -6789 +12345 %22%0A%7D%0A
2e58c815b8b9b15dd4e4b7e308f3805c08a79ab2
Move decodeArticleUrl to parent
client/src/components/ArticleShow.js
client/src/components/ArticleShow.js
import React from 'react' import BackButton from './BackButton' function decodeArticleUrl(title) { const sanitizedTitle = decodeURIComponent(title) return sanitizedTitle.split("[percent]").join("%") } const ArticleShow = ({channel, articles, match}) => { const matchParams = decodeArticleUrl(match.params.articl...
JavaScript
0.000002
@@ -63,148 +63,8 @@ '%0A%0A%0A -function decodeArticleUrl(title) %7B%0A const sanitizedTitle = decodeURIComponent(title)%0A return sanitizedTitle.split(%22%5Bpercent%5D%22).join(%22%25%22)%0A%7D %0A%0Aco @@ -107,16 +107,34 @@ s, match +, decodeArticleUrl %7D) =%3E %7B%0A
ea07381c25811380b99c495f64ac13bcfb085c2f
test of pushing ability
client/src/js/models/SessionModel.js
client/src/js/models/SessionModel.js
/* global gapi */ var _ = require('underscore'); var Backbone = require('backbone'); var UserModel = require('./UserModel.js'); var SessionModel = Backbone.Model.extend({ defaults: { logged: false, userId: '' }, initialize: function() { this.user = new UserModel({}); }, loginSessionUser: funct...
JavaScript
0.000001
@@ -478,24 +478,25 @@ his session. + %0A this.up
b94493ffe7364f72b6aea3187d816849102b13e2
align margin (#670)
src/App.js
src/App.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'redux-bundler-react' import NavBar from './navigation/NavBar' import navHelper from 'internal-nav-helper' import IpldExploreForm from './ipld/IpldExploreForm' import AsyncRequestLoader from './loader/AsyncRequestLoader'...
JavaScript
0
@@ -1101,23 +1101,33 @@ ain -className='pa3' +style=%7B%7Bpadding: '40px'%7D%7D %3E%0A
59d991ea7d10961e90b79231f092a5d780300fbe
Clean up sessionsConverter module
src/sessionsConverter.js
src/sessionsConverter.js
// module pattern var sessionsConverter = (function(){ // variable to keep track of different labels var labels = []; // labels set for checking if label is unique var labelSet = {}; function init(){ labels = []; labelSet = {}; } function getConvertedSessions(sessions){ var convertedSessions...
JavaScript
0
@@ -1,8 +1,22 @@ +'use strict'%0A%0A // modul @@ -853,16 +853,111 @@ stamp;%0A%0A + // adding the values map to converted session for developer to view for possible debugging%0A conv @@ -1605,24 +1605,157 @@ ssion;%0A %7D%0A%0A + // this creates a mapping of the data value as well as notes for each label%0...