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
bf6ee533be01193700b7435ccfc7235b783a1433
Update controller
assets/js/controller.js
assets/js/controller.js
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var app = angular.module('application', ['ngRoute']) app.controller('HomeCtrl', ['$scope', 'RegisterServices', function ($scope, Reg...
JavaScript
0.000001
@@ -233,19 +233,16 @@ oute'%5D)%0A -app .control @@ -250,12 +250,12 @@ er(' -Home +Menu Ctrl @@ -678,9 +678,156 @@ %7D);%0A%7D%5D) -; +%0A.controller('SliderCtrl', %5B'$scope', 'RegisterServices', function ($scope) %7B%0A $scope.data = %7B%0A title : '%E0%B9%80%E0%B8%9B%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0...
008b63e1f20c267721d0979c7c946aa62a24aa52
Update grayscale.min.js
js/grayscale.min.js
js/grayscale.min.js
/*! * Start Bootstrap - Grayscale v3.3.7+1 (http://startbootstrap.com/template-overviews/grayscale) * Copyright 2013-2016 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE) */ function collapseNavbar() { if ($(".navbar").offset().top > 50) { $(".nav...
JavaScript
0.000001
@@ -1030,34 +1030,32 @@ .LatLng( -40.5853, -105.0844 +35.2271, 80.8431 ));%0A%7D);%0A @@ -1147,28 +1147,31 @@ Lng( -40.5853, -105.0844), +35.2271, 80.8431),%0A %0A
8521efb64c59fdaca7e0ebde61244a8854363e3d
Create profile on user registration
src/actions/profile.js
src/actions/profile.js
import {PROFILE_API} from '../config'; import {push} from 'react-router-redux'; import {checkStatus, parseJSON, camelizeProps} from '../util/http'; import * as types from '../constants'; require('isomorphic-fetch'); export function getProfileDataRequest() { return { type: types.PROFILE_DATA_REQUEST }; } expo...
JavaScript
0
@@ -1537,32 +1537,239 @@ SUCCESS%0A %7D;%0A%7D%0A%0A +export function createProfileFailure(error) %7B%0A return %7B%0A type: types.CREATE_PROFILE_FAILURE,%0A payload: %7B%0A status: error.response.status,%0A statusText: error.response.statusText%0A %7D%0A %7D;%0A%7D%0A%0A export function @@ -20...
94fcbb86b500dd501127e69c86d425bdade08175
Fix rule name
lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/test/test.js
lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/test/test.js
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
JavaScript
0.001229
@@ -1288,37 +1288,32 @@ ter.run( 'jsdoc- -list- maximum-line-len @@ -1674,37 +1674,32 @@ ter.run( 'jsdoc- -list- maximum-line-len @@ -2027,13 +2027,8 @@ doc- -list- maxi
aa67dc21b301583a4d4e53990c6bb288a7871da7
Use new gmodstore endpoint
src/lib/scriptfodder.js
src/lib/scriptfodder.js
const request = require('request-promise').defaults({ headers: { 'user-agent': 'scriptfodder-publish' }, baseUrl: 'https://scriptfodder.com', json: true }) class ScriptFodder { constructor (apiKey) { this.apiKey = apiKey } uploadVersion ({ scriptId, changes, versionName, file }...
JavaScript
0
@@ -126,28 +126,25 @@ https:// -scriptfodder +gmodstore .com',%0A
7906ac66bbbda870f0e36a780db92ecc8c8f6287
add sf-array deletion failing tests
src/directives/sf-array.directive.spec.js
src/directives/sf-array.directive.spec.js
chai.should(); var runSync = function (scope, tmpl) { var directiveScope = tmpl.isolateScope(); var stub = sinon.stub(directiveScope, 'resolveReferences', function(schema, form) { directiveScope.render(schema, form); }); scope.$apply(); } describe('sf-array.directive.js', function() { var exampleSchema;...
JavaScript
0.000002
@@ -616,24 +616,116 @@ %22items%22: %7B%0A + %22type%22: %22object%22,%0A %22properties%22: %7B%0A %22name%22: %7B%0A @@ -743,16 +743,20 @@ %22Name%22,%0A + @@ -793,16 +793,20 @@ + %22default @@ -810,16 +810,50 @@ ult%22: 6%0A +...
60f701d02c23554a5ed6d2e3ff6d071fa4a8bb77
no arrow
js/index.js
js/index.js
window.onload = function(){ //initialize // console.log('screen.height', window.innerHeight); var tc = document.getElementsByClassName('teaser-container')[0]; tc.style.opacity = 1.0; tc.style.height = window.innerHeight + 'px'; var invitee = document.getElementById('invitee'); invitee.innerHTML = gup('in...
JavaScript
0.99934
@@ -972,16 +972,35 @@ oll: 1,%0A + arrows: false,%0A asNa
4c4ba2df3d7630fd16f0c49c4b7c923109338807
Fix template literal test
test/template-literal.js
test/template-literal.js
import test from 'ava'; // Spoof supports-color require('./_supports-color')(__dirname); const m = require('..'); test('return an empty string for an empty literal', t => { const ctx = m.constructor(); t.is(ctx``, ''); }); test('return a regular string for a literal with no templates', t => { const ctx = m.const...
JavaScript
0.000002
@@ -2606,18 +2606,16 @@ %5B1m%5Ct%5Ct%5C -t%5C tHello! @@ -2674,18 +2674,16 @@ %5B1m%5Ct%5Ct%5C -t%5C tmultili @@ -2743,18 +2743,16 @@ 1m%5Ct%5Ct%5Ct -%5Ct :)%5Cu001B @@ -2792,26 +2792,24 @@ 001B%5B1m%5Ct%5Ct%5C -t%5C u001B%5B22m%5Cu0 @@ -2902,18 +2902,16 @@ %5B4m%5Ct%5Ct%5C -t%5C tI hope @@ -2970,18 +2970,...
62f80d4954ee751d278cb294579dcf074d178188
Use const instead of var
bin/kaba.js
bin/kaba.js
#!/usr/bin/env node /** * * @typedef {{ * cwd: string, * require: Array, * configNameSearch: string[], * configPath: string, * configBase: string, * modulePath: string, * modulePackage: *, * }} LiftoffEnvironment */ var Liftoff = require("liftoff"); var run = require("../src/run"); var minimist = req...
JavaScript
0.000003
@@ -228,19 +228,21 @@ ent%0A */%0A -var +const Liftoff @@ -264,19 +264,21 @@ toff%22);%0A -var +const run = r @@ -303,11 +303,13 @@ %22);%0A -var +const min
639fb7ad9e304420242d14e168c191c4f0402c46
update file /lib/fuse.js
lib/fuse.js
lib/fuse.js
var express = require('express'); var bodyParser = require('body-parser'); var cors = require('cors'); var request = require('request'); var events = require('events'); var fh = require('fh-mbaas-api'); var _ = require('underscore'); var fuseRoute = function() { var fuse = new express.Router(); fuse.use(cors()); ...
JavaScript
0.000002
@@ -1022,24 +1022,198 @@ ;%0A %7D);%0A%7D;%0A%0A +var mapping = %7B%0A %22FFIRSTNAME%22 : %22name%22,%0A %22FLASTNAME%22 : %22lastName%22,%0A %22FEMAIL%22 : %22email%22,%0A %22FPICTURE%22 : %22picture%22,%0A %22FCOMPANY%22 : %22companyName%22%0A %22FTITLE%22 : %22jobTitle%22%0A%7D;%0A%0A var transfor @@ -1249,...
ef2cafcde042e9ca0cc5c3b96152850c29a5fc8c
use kWidget.addReadyCallback instead of timing sensitive jsReadyCallback
modules/KalturaSupport/tests/resources/qunit-kaltura-bootstrap.js
modules/KalturaSupport/tests/resources/qunit-kaltura-bootstrap.js
//must come after qunit-bootstrap.js and after mwEmbedLoader.php if( window.QUnit ){ // Force html5 if not running flash qUnit tests: if( document.URL.indexOf('runFlashQunitTests') === -1 ){ mw.setConfig( 'forceMobileHTML5', true ); } window.QUnit.start(); jsCallbackCalledId = null; asyncTest( "Kalt...
JavaScript
0
@@ -972,135 +972,36 @@ ;%0D%0A%09 -if( window%5B'jsCallbackReady'%5D )%7B%0D%0A%09%09window%5B'orgJsCallbackReady'%5D = window%5B'jsCallbackReady'%5D;%0D%0A%09%7D%0D%0A%09window%5B'jsCallbackReady'%5D = +%0D%0A%09kWidget.addReadyCallback( fun @@ -1016,17 +1016,16 @@ ideoId ) - %7B%0D%0A%09%09// @@ -1887,98 +1887...
cf1a26dcd0d89286bc398438b071ec1be838d2d7
Fix manifest error under IE 8
assets/notifications.js
assets/notifications.js
/** * Notifications * * @class * @param {Object} options Optional configuration options * @return {Notifications} Notifications main instance */ var Notifications = (function(options) { /** * The declared UI libraries * * Each property of this variable must be an object with the `show` callba...
JavaScript
0.000001
@@ -1172,39 +1172,41 @@ +' default +' : 'info'%0A @@ -1894,39 +1894,41 @@ +' default +' : 'info'%0A @@ -2288,31 +2288,33 @@ +' default +' : 'informati @@ -3090,39 +3090,41 @@ +' default +' : 'info'%0A @@ -3675,23 +3675,25 @...
c7d3c71187b6ac9e78f82252f245676133a8f9af
Convert to ES6 class
src/lights/SpotLight.js
src/lights/SpotLight.js
import { Light } from './Light.js'; import { SpotLightShadow } from './SpotLightShadow.js'; import { Object3D } from '../core/Object3D.js'; function SpotLight( color, intensity, distance, angle, penumbra, decay ) { Light.call( this, color, intensity ); this.type = 'SpotLight'; this.position.copy( Object3D.Defaul...
JavaScript
0.99998
@@ -134,24 +134,21 @@ D.js';%0A%0A -function +class SpotLig @@ -149,16 +149,46 @@ potLight + extends Light %7B%0A%0A%09constructor ( color, @@ -211,15 +211,33 @@ ance + = 0 , angle + = Math.PI / 3 , pe @@ -246,16 +246,20 @@ mbra + = 0 , decay ) %7B%0A @@ -258,31 +258,25 @@ cay += 1 ) %7B%0A%0A%09 -Light...
4e5cc0e2d1f0fb8aa4425bd3dacade76bbb9255f
Bump version
package.js
package.js
Package.describe({ git: 'https://github.com/zimme/meteor-collection-softremovable.git', name: 'zimme:collection-softremovable', summary: 'Add soft remove to collections', version: '1.0.6-beta.1' }); Package.onUse(function(api) { api.versionsFrom('1.0'); api.use([ 'check', 'coffeescript', 'unde...
JavaScript
0
@@ -193,17 +193,17 @@ .6-beta. -1 +2 '%0A%7D);%0A%0AP
1e5e3ea83ffa781a4ade70573bd0d899b7ff057e
Check that javascript methods have params to avoid an unwanted comma
lib/handlebars/javascript.js
lib/handlebars/javascript.js
var format = require('string-template'); var handlebars = require('handlebars'); var hljs = require('highlight.js'); var kebab = require('kebab-case'); /** * Formats a JavaScript plugin constructor name to look like this: * ```js * var elem = new Foundation.Plugin(element, options); * ``` * * @par...
JavaScript
0.000001
@@ -977,16 +977,23 @@ d.params +.length ) %7B%0A
ff8900534ca4f8c73727d3152c3d1e794391d393
Allow Search to be general purpose
modules/profiles/server/controllers/profiles.server.controller.js
modules/profiles/server/controllers/profiles.server.controller.js
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Profile = mongoose.model('Profile'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Profile */ exports.create =...
JavaScript
0.000001
@@ -1952,668 +1952,205 @@ var -query = '%7B%7D';%0A if (req.query.role) %7B%0A query = %7B role: req.query.role %7D;%0A %7D else if (req.query.mfname && req.query.mlname) %7B%0A //console.log('req.query.mfname : '+req.query.mfname+', req.query.mlname :'+req.query.mlname);%0A query = %7B mfname: req.query.m...
01a0b8ae8e77e4ab3cfc684cd2c851d9fb294752
Fix bug
client/src/modules/plan/planner/make-idea/make-idea.js
client/src/modules/plan/planner/make-idea/make-idea.js
import angular from 'angular'; // import services for this modules import EventService from '../../../../services/event/event.service'; import ImageSearchService from '../../../../services/images/image.search.service'; // imports for this component import template from './make-idea.html'; import './make-idea.css'; c...
JavaScript
0.000001
@@ -1592,20 +1592,20 @@ ('.make- -plan +idea -images
c8f79f329a8f20cb13e393909a9634234fdd3d83
Add missing comma in var declaration.
lib/middleware/auto-reloader.js
lib/middleware/auto-reloader.js
/*! * Module dependencies. */ var path = require('path'), Gaze = require('gaze').Gaze; /** * Middlware to handle auto reload. * * Serves updated content from the www/ */ module.exports = function() { var watches = [path.join(process.cwd(), 'www/*')], watch = new Gaze(watches) outdated =...
JavaScript
0
@@ -294,16 +294,17 @@ watches) +, %0A
8dbda7ef7ad9b5c76ca1fb5987e3cb81167a41bf
Add empty emoji validation
Themes/default/scripts/breezeComponents/moodForm.js
Themes/default/scripts/breezeComponents/moodForm.js
Vue.component('mood-form', { template: ` <div> <message-box v-if="invalidEmoji" v-bind:type="'error'" @close="resetEmojiField()"> Invalid emoji. </message-box> <dl class="settings"> <dt> <span> <label>Mood:</label> </span> </dt> <dd> <input type="text" v-model="mood.emoji" @change="inval...
JavaScript
0.000001
@@ -138,22 +138,26 @@ %0A%09%09%09 -I +%7B%7B i nvalid - e +E moji -. + %7D%7D %0A%09%3C/ @@ -1259,52 +1259,270 @@ %7D/u%0A -%0A%09%09%09return !emojiRegex.test(this.mood.emoji) +%09%09%09this.invalidEmoji = false%0A%0A%09%09%09if (!this.mood.emoji %7C%7C%0A%09%09%09%090 === this.mood.emoji.length %7C%7C%0A%09%09%...
690dc6f7137cbc5dba8853370d147581c5168926
remove debug log.
src/app/lib/axiom_shell/exe/mkdir.js
src/app/lib/axiom_shell/exe/mkdir.js
// Copyright (c) 2014 The Axiom Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import AxiomError from 'axiom/core/error'; import Path from 'axiom/fs/path'; import environment from 'axiom_shell/environment'; import util from 'axiom...
JavaScript
0
@@ -795,31 +795,8 @@ );%0A%0A -console.log(pathSpec);%0A
1ecc049c8b01b30cb42e4f13285cbaf16fc06b1d
update basic package-file testing
test/testPackageFiles.js
test/testPackageFiles.js
/* jshint -W097 */ /* jshint strict:false */ /* jslint node: true */ /* jshint expr: true */ var expect = require('chai').expect; var fs = require('fs'); describe('Test package.json and io-package.json', function() { it('Test package files', function (done) { console.log(); var fileContentI...
JavaScript
0
@@ -2574,130 +2574,8 @@ ue;%0A - expect(fs.existsSync(__dirname + '/../LICENSE'), 'ERROR: LICENSE needs to exist! Please create one.').to.be.true;%0A
48344d6cab2b71f97d2637165b38e080182569ea
comment fix
nodeserver/src/client/js/ModelEditor3/Decorators/CircleDecorator/CircleDecorator.js
nodeserver/src/client/js/ModelEditor3/Decorators/CircleDecorator/CircleDecorator.js
"use strict"; define(['logManager', 'clientUtil', 'js/ModelEditor3/Decorators/DefaultDecorator/DefaultDecorator', 'text!js/ModelEditor3/Decorators/CircleDecorator/CircleDecoratorTemplate.html', 'css!ModelEditor3CSS/Decorators/CircleDecorator/CircleDecorator'], function (logManager, ...
JavaScript
0
@@ -3520,16 +3520,176 @@ idpoints +%0A //NOTE: it returns the connection point regardless of being asked for%0A //its own connection ports or some of the subcomponent's connection ports %0A%0A
df17ed4b237cf79e0aec588729872883eb0bb039
switch to using filmStripFrames
lib/game.js
lib/game.js
"use strict"; var Input = require("./input"); var Scene = require("./scene"); var systems = require("./systems"); function clone(obj) { if (obj === undefined) { return undefined; } return JSON.parse(JSON.stringify(obj)); } function splitFilmStripAnimations(animations) { Object.keys(animations).forEach(function(...
JavaScript
0
@@ -384,16 +384,22 @@ ilmstrip +Frames )%7B%0A%09%09%09sp @@ -434,25 +434,13 @@ ions -%5Bkey%5D, firstFrame +, key );%0A%09 @@ -495,23 +495,55 @@ tion +s , -firstFrame) %7B +key) %7B%0A%09var firstFrame = animations%5Bkey%5D%5B0%5D; %0A%09if @@ -601,26 +601,25 @@ me.filmstrip -.f +F rames != 0)%7B @@ -649,40 ...
5f4df706af690c1bb794ad235f50fcc17df18afc
fix gamejs.transform.rotate sometimes cutting of parts of surface
lib/gamejs/transform.js
lib/gamejs/transform.js
var Surface = require('../gamejs').Surface; var matrix = require('./utils/matrix'); var math = require('./utils/math'); var vectors = require('./utils/vectors'); /** * @fileoverview Rotate and scale Surfaces. */ /** * Returns a new surface which holds the original surface rotate by angle degrees. * @param {Surfac...
JavaScript
0
@@ -628,9 +628,10 @@ e %25 -9 +36 0 !=
3e090aa9a5b3f587d4e50903a07a19a738549c62
Bump version
package.js
package.js
Package.describe({ summary: "Define and create an Admin role when Meteor starts.", version: "0.1.0", name: "brylie:create-admin-role", git: "https://github.com/brylie/meteor-create-admin-role.git" }); Package.on_use(function (api, where) { // Meteor version api.versionsFrom("1.0.1"); // Dependencies ...
JavaScript
0
@@ -94,17 +94,17 @@ n: %220.1. -0 +1 %22,%0A nam @@ -291,18 +291,16 @@ .0.1%22);%0A - %0A // De
7d50ab042834256fb28bf995cd59ccd5a3cb2f82
change checking Error.errno to Error.code
bin/swig.js
bin/swig.js
#!/usr/bin/env node /*jslint es5: true */ var swig = require('../index'), optimist = require('optimist'), fs = require('fs'), path = require('path'), filters = require('../lib/filters'), utils = require('../lib/utils'), uglify = require('uglify-js'); var command, wrapstart = 'var tpl = ', argv = optim...
JavaScript
0.000001
@@ -2648,20 +2648,25 @@ (e. -errno !== 47 +code !== %22EEXIST%22 ) %7B%0A
9385b530a4a15df98da2f6cb8f9bfcef7dc2b494
Simplify import
lib/generators/utils.js
lib/generators/utils.js
import fs from 'fs'; import path from 'path'; import _ from 'lodash'; import {mkdirsSync, copySync, outputFileSync} from 'fs-extra'; import {template, capitalize} from 'lodash'; import matchBracket from 'match-bracket'; import locater from 'locater'; import {writeToFile, checkFileExists} from '../utils'; import {logger...
JavaScript
0.000188
@@ -130,53 +130,8 @@ a';%0A -import %7Btemplate, capitalize%7D from 'lodash';%0A impo @@ -168,16 +168,16 @@ acket';%0A + import l @@ -199,16 +199,17 @@ cater';%0A +%0A import %7B @@ -2896,32 +2896,34 @@ %7BcomponentName: +_. capitalize(fileN @@ -2996,24 +2996,26 @@ ponentName: +_. capitalize(f @@ -3130,32 +...
e9533dea6dc5cbb5bc7e9f3ea561302b454f2987
Revert "Migrated to urbanetic:utility."
package.js
package.js
// Meteor package definition. Package.describe({ name: 'urbanetic:bismuth-utility', version: '0.1.0', summary: 'A set of utilities for working with GIS apps.', git: 'https://github.com/urbanetic/bismuth-reports.git' }); Npm.depends({ 'request': '2.37.0', 'concat-stream': '1.4.7' }); Package.onUse(function...
JavaScript
0
@@ -431,16 +431,43 @@ 0.1_1',%0A + 'aramk:utility@0.8.6',%0A 'rea @@ -601,39 +601,8 @@ 1.0' -,%0A 'urbanetic:utility@1.0.0' %0A %5D
a1a67ff1118d0b8316cc406c0820407a2cc3a46d
Update systemjs.config.js
generators/app/templates/systemjs/systemjs.config.js
generators/app/templates/systemjs/systemjs.config.js
(function(global) { var paths = { 'npm:': '/node_modules/' }; var map = { 'app': 'app', '@angular/core': 'npm:@angular/core/bundles/core.umd.js', '@angular/common': 'npm:@angular/common/bundles/common.umd.js', '@angular/compiler': 'npm:@angular/compiler/bundles/compi...
JavaScript
0.000001
@@ -48,16 +48,17 @@ npm:': ' +. /node_mo
8179ad85fca1cfdd859ca513788292130d78fda9
Move CSS to the top.
src/foam/u2/CheckBox.js
src/foam/u2/CheckBox.js
/** * @license * Copyright 2015 Google Inc. 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 requir...
JavaScript
0
@@ -747,16 +747,451 @@ iew.',%0A%0A + css: %60%0A %5E %7B%0A margin: 8px 0;%0A padding: 8px;%0A %7D%0A%0A %5Elabel %7B%0A color: #444;%0A flex-grow: 1;%0A margin-left: 12px;%0A overflow: hidden;%0A white-space: nowrap;%0A display: inline;%0A %7D%0A%0A %5Enoselect...
1294826dc5515d224128cd6f0a97dfcc47674dd7
add the #! marker for npm bin
bin/wstt.js
bin/wstt.js
//@ sourceMappingURL=wst.map // Generated by CoffeeScript 1.6.1 (function() { var argv, client, host, localport, optimist, port, server, wsHost, wst, _, _ref; _ = require("under_score"); wst = require("../lib/wst"); optimist = require('optimist').usage("Run websocket tunnel server or client.\n To run server...
JavaScript
0.999846
@@ -1,67 +1,24 @@ -//@ sourceMappingURL=wst.map%0A// Generated by CoffeeScript 1.6.1 +#!/usr/bin/env node%0A %0A(fu
92990dd6e481c1ed96df6192125c259505521c32
simplify equivalent requisites
src/linear-converter.js
src/linear-converter.js
/*jshint node:true */ 'use strict'; var rescaleFactory = require('rescale'); var twoOfAKind = require('olsen'); var unitPreset = require('unit-preset'); /** * Returns the linear converter api based on the given adapter * * @param {Object} Decimal instance of decimal library * * @return {Object} Linear converter...
JavaScript
0.998481
@@ -2509,25 +2509,31 @@ %0A %5D -;%0A%0A var +.map(function wrappe -dP +r(p rese @@ -2557,101 +2557,112 @@ site -s = %5B%0A api.getCoefficientA,%0A api.getCoefficientB%0A %5D.map(wrapPresetEquivalenceRequisite +) %7B%0A return function(preset) %7B%0A return presetEquivalenceRequisite(preset).toStr...
12ee84977acc6eb4d75ebaeb495f7ebfacb2bfde
Fix double event fire on page with no hash - done
core/Controller.js
core/Controller.js
(function() { "use strict"; var ns = "nkf.core"; var self = $.namespace(ns); Controller.className = "Controller"; function Controller() { addEventHandler(); function addEventHandler() { window.onhashchange = function(e) { if (hashChangeAllowed) { $(document).trigger("nkf.co...
JavaScript
0
@@ -1339,32 +1339,34 @@ ms);%0A%0A + $(document).trig @@ -1398,32 +1398,34 @@ , %7B%0A + actionType: nkf. @@ -1448,32 +1448,34 @@ is,%0A + + action: %22load%22,%0A @@ -1466,32 +1466,34 @@ action: %22load%22,%0A + init @@ -1504,16 +1504,18 @@ ta.init%0A + ...
b422cf743a18340e59406247e9f9b334b718df31
Enable elda to persist her own memories
lib/neural/persistence-write.js
lib/neural/persistence-write.js
function configure(memory, network) { function write() { console.log('Write neural network to file system'); return buildIndex(network).then(writeFiles); } function buildIndex(network) { var subjects = network.subjects(); var index = { concepts: [], files: {} }; subjects.map...
JavaScript
0
@@ -120,26 +120,26 @@ return -buildIndex +mapNetwork (network @@ -178,18 +178,18 @@ ion -buildIndex +mapNetwork (net @@ -275,30 +275,36 @@ : %5B%5D -, %0A - files: %7B%7D%0A +%7D;%0A var fileList = %7B %7D;%0A%0A @@ -414,9 +414,9 @@ %7Bfc%7D -- +/ $%7Bsu @@ -472,19 +472,16 @@ -index.files ...
7fc9545bf3b4f70bc64c9d740ebbeff81ce9f3a9
version bumped
package.js
package.js
Package.describe({ summary: 'Flow Components', version: '0.0.25', git: 'https://github.com/meteorhacks/flow-components', name: "meteorhacks:flow-components" }); Package.onUse(function (api) { api.versionsFrom('METEOR@0.9.2'); api.use('ui'); api.use('templating'); api.use('reactive-var'); api.use('rea...
JavaScript
0
@@ -63,9 +63,9 @@ .0.2 -5 +6 ',%0A
ca2bc50ddc847f5721cdbdeab4ec52fc3b24e8ba
remove exception generation in debug
src/foam/nanos/medusa/ClusterClientDAO.js
src/foam/nanos/medusa/ClusterClientDAO.js
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.medusa', name: 'ClusterClientDAO', extends: 'foam.dao.ProxyDAO', documentation: `Marshall put and remove operations to the ClusterServer. `, implement...
JavaScript
0.000001
@@ -2740,37 +2740,8 @@ ng() -, new Exception(%22stackTrace%22) );%0A
ce2c2830b91f948d7f08b9e2df8f44094e97ab0a
Change test
src/client/app/people/people.controller.spec.js
src/client/app/people/people.controller.spec.js
/* jshint -W117, -W030 */ describe('PeopleController', function() { var controller; var people = mockData.getMockPeople(); console.debug(people); beforeEach(function() { bard.appModule('app.people'); bard.inject('$controller', '$log', '$q', '$rootScope'); var ds = { getPeop...
JavaScript
0.000002
@@ -962,22 +962,22 @@ ngth -(people.length +.of.at.least(1 );%0A
660cd165a1256cbfefc826d6af5f9081498d52a1
Update library
js/jquery.sparql.js
js/jquery.sparql.js
(function( $ ) { $.fn.query = function(query ,options) { if (options) { var opts = $.extend( {}, $.fn.defaults, options); $.fn.defaults = opts; } query = this.prefixesAsString() + query; var json_string = $.ajax( { url: $.fn.defaults.source+"query", data: {"...
JavaScript
0.000001
@@ -291,16 +291,8 @@ urce -+%22query%22 , %0A%09
23ef6099d9a1044169d6ae8cf5ad79b77af1e7e6
Remove comment
config/webpack.prod.js
config/webpack.prod.js
// This file is not used in production. /* eslint-disable import/no-extraneous-dependencies */ const path = require('path'); const autoprefixer = require('autoprefixer'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: './src/index.js', context: path.resolve(__dirn...
JavaScript
0
@@ -1,44 +1,4 @@ -// This file is not used in production.%0A /* e @@ -48,17 +48,16 @@ cies */%0A -%0A const pa
fb27f9e123428843625784ddfcbe1cfb9663fa12
Bump version.
package.js
package.js
Package.describe({ summary: "Client side uploads for meteor/s3 using signed uploads for meteorjs.", version: "0.1.7-rc.1", git: "https://github.com/jimmiebtlr/meteor-s3-signed-upload.git" }); Package.on_use(function(api){ api.use(['mrt:aws-sdk@0.2.0'],'server'); api.use(['aldeed:simple-schema@1.0.3']); api...
JavaScript
0
@@ -116,17 +116,17 @@ .1.7-rc. -1 +2 %22,%0A git
36a41fdd15bb9df99941b7eae24292e3c194b56d
Update strategy.js
lib/passport-fitbit/strategy.js
lib/passport-fitbit/strategy.js
/** * Module dependencies. */ var util = require('util') , OAuthStrategy = require('passport-oauth').OAuthStrategy , InternalOAuthError = require('passport-oauth').InternalOAuthError; /** * `Strategy` constructor. * * The Fitbit authentication strategy authenticates requests by delegating to * Fitbit using ...
JavaScript
0.000001
@@ -1691,35 +1691,35 @@ URL %7C%7C 'https:// -api +www .fitbit.com/oaut
95c0da7836c1bb30ad825f0c7fed5ba09ccd15c5
Fix postcss-loader not working due to ExtractTextPlugin syntax error
config/webpack/prod.js
config/webpack/prod.js
var path = require('path'); var webpack = require('webpack'); var postcssAssets = require('postcss-assets'); var postcssNext = require('postcss-cssnext'); var stylelint = require('stylelint'); var ManifestPlugin = require('webpack-manifest-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var c...
JavaScript
0
@@ -1331,33 +1331,37 @@ 'style-loader', -%0A + %5B%0A 'css-l @@ -1453,16 +1453,18 @@ + 'postcss @@ -1464,32 +1464,44 @@ postcss-loader'%0A + %5D%0A )%0A @@ -1647,27 +1647,18 @@ loader', -%0A +%5B 'css-loa @@ -1653,32 +1653,33 @@ ', %5B'css-loader' +%5D...
7e2bf12307b552cdd10ae5ced7edbf9da6787f8b
Configure the size of the conkeror completions buffer
conkeror/conkerorrc.js
conkeror/conkerorrc.js
// Load URLs from the command line in new buffers instead of new // windows. url_remoting_fn = load_url_in_new_buffer; // Load download buffers in the background in the current window, // instead of in new windows. download_buffer_automatic_open_target = OPEN_NEW_BUFFER_BACKGROUND; // Automatically follow unambiguous...
JavaScript
0.000001
@@ -1201,16 +1201,100 @@ ebjumps = true;%0A +%0A// Other options%0Aminibuffer_completion_rows = 30; // size of the completion buffer%0A
d60bc7a0003f96ac3983eb2045f6cbfab4e3dc19
add new rows after last row
js/app/sai/editor.js
js/app/sai/editor.js
/*jslint browser: true, eqeq: true, white: true, plusplus: true */ /*global angular, console, alert*/ (function () { 'use strict'; var app = angular.module('keira2'); app.controller("SmartAIEditorController", function ($scope, $rootScope, $stateParams) { /* At start we have no row selected */ $scope.s...
JavaScript
0.000026
@@ -4184,17 +4184,27 @@ .splice( -0 +rows.length , 0, ang
f7ae50457a18b109da51485ac9e0f39f0695108b
add 5 second delay
lib/plugins/offline-messages.js
lib/plugins/offline-messages.js
/** * Automatically removes and emits 'message:info' events * for all pending chat messages. * * Use this plugin if you want to get rid of pending notifications * related to offline messages. * @example * bot.use(vapor.plugins.offlineMessages); * @param {Object} VaporAPI Instance of the API class. * @module *...
JavaScript
0.000001
@@ -717,24 +717,64 @@ unction() %7B%0A + setTimeout(function() %7B%0A @@ -807,16 +807,20 @@ + + msg: Ste @@ -898,16 +898,20 @@ + proto: %7B @@ -912,16 +912,20 @@ oto: %7B%7D%0A + @@ -951,16 +951,20 @@ + new Stea @@ -1053,16 +1053,...
8d699be7f38eedb9dcc95be5ab7635606b2b0c8e
patch release - Bump to version 1.4.1
package.js
package.js
Package.describe({ summary: "Accounts Templates styled for Zurb Foundation.", version: "1.4.0", name: "useraccounts:foundation", git: "https://github.com/meteor-useraccounts/foundation.git", }); Package.on_use(function(api, where) { api.versionsFrom("METEOR@1.0"); api.use([ "less", ...
JavaScript
0
@@ -89,25 +89,25 @@ rsion: %221.4. -0 +1 %22,%0A name: @@ -464,33 +464,33 @@ counts:core@1.4. -0 +1 %22,%0A %5D, %5B%22clie @@ -1643,17 +1643,17 @@ ore@1.4. -0 +1 %22,%0A %5D
f1b3d2fa22e01f1dbde0761795ecf17e4324a22c
allow css sister file for a knockout component [TASK-887] this was useful for refactoring the RESKE search tabs to isolate styles but still use the plugin component loader.
src/client/modules/app/services/ko-component.js
src/client/modules/app/services/ko-component.js
define([ 'require', 'promise' ], function ( require, Promise ) { 'use strict'; function factory(config) { var runtime = config.runtime; var components = {}; function start() { return true; } function stop() { return true; ...
JavaScript
0
@@ -996,19 +996,65 @@ dulePath +s = +%5B%5D;%0A modulePaths.push( %5BpluginC @@ -1104,18 +1104,212 @@ oin('/') +) ;%0A + if (componentConfig.css) %7B%0A modulePaths.push('css!' + %5BpluginConfig.moduleRoot, componentConfig.module%5D.join('/...
5786efaaf14300f73ae5e253902fec24756b4db0
Use my own CDN
js/index.js
js/index.js
import "babel-polyfill"; import React from "react"; import { render } from "react-dom"; import { Provider } from "react-redux"; import getStore from "./store"; import WindowManager from "./components/WindowManager"; import Browser from "./browser"; import MainWindow from "./components/MainWindow"; import PlaylistWindo...
JavaScript
0
@@ -1447,35 +1447,46 @@ s:// -cdn.rawgit.com/captbaritone +d38dnrh1liu4f5.cloudfront.net/projects /win @@ -1497,15 +1497,8 @@ -js/ -master/ %22;%0A
62c792183eba411ad71e5d3a14adc138b98afea9
debug line for missing streaming client
lib/websocket/transports/engineio/index.js
lib/websocket/transports/engineio/index.js
// Engine.IO server-side wrapper 'use strict'; var fs = require('fs'), http = require('http'); var openSocketsById = {}; module.exports = function(ss, messageEmitter, config){ config = config || {}; config.server = config.server || {}; config.client = config.client || {}; // Send Engine.IO client-side c...
JavaScript
0.000001
@@ -664,24 +664,107 @@ ed fine.%0A %7D + else %7B%0A debug('Streaming will not work without the clientside transport.');%0A %7D %0A%0A // Send
1d1646cb770dd97340c5644ebac6de81c1c62aa4
Bump version number.
package.js
package.js
Package.describe({ summary: "Send e-mails with attachments.", version: "1.0.8", git: "www.github.com/priyadarshy/email-att" }); Package.on_use(function(api) { api.versionsFrom('METEOR@0.9.2.1'); api.addFiles('ashutosh:email-att.js'); }); Package.on_test(function(api) { api.use('tinytest'); ...
JavaScript
0
@@ -81,9 +81,9 @@ 1.0. -8 +9 %22,%0A @@ -130,24 +130,131 @@ l-att%22%0A%7D);%0A%0A +Npm.depends(%7B%0A %22simplesmtp%22: %220.3.10%22,%0A %22stream-buffers%22: %220.2.5%22,%0A %22mailcomposer%22: %220.1.15%22%0A%7D);%0A%0A Package.on_u @@ -510,110 +510,4 @@ );%0A%0A -Npm.depends(%7B%0A %22simplesmtp%2...
c2f45672d998ea216f19a0ad8d13b641d7967fe5
Add function stopAnime() to stop animations
Animable.js
Animable.js
/** * Animable.js * * https://github.com/JWhile/Animable.js * * version 1.0.0 */ var anime; (function(){ // namespace // class Animation function Animation(id, from, to, time, update) { this.id = id; // :int this.from = from; // :float this.diff = to - from; // :float this.start = Date.now();...
JavaScript
0.000004
@@ -90,16 +90,26 @@ ar anime +,stopAnime ;%0A%0A(func @@ -1429,16 +1429,252 @@ Id;%0A%7D;%0A%0A +// function stopAnime(int id):void%0AstopAnime = function(id)%0A%7B%0A for(var i = 0; i %3C animations.length; ++i)%0A %7B%0A if(animations%5Bi%5D.id === id)%0A %7B%0A animations.splice(i, ...
d1720eec6054afe091ed4c3176a7355ff0f460b3
Fix __tests__/sceanrio-map/transit-editor/stop-layer.js code so it passes standard lin
__tests__/scenario-map/transit-editor/stop-layer.js
__tests__/scenario-map/transit-editor/stop-layer.js
/* global describe, it, expect, jest */ import { mount } from 'enzyme' import React from 'react' import { Map } from 'react-leaflet' import Leaflet from '../../../test-utils/mock-leaflet' import { mockStops } from '../../../test-utils/mock-data.js' import StopLayer from '../../../lib/scenario-map/transit-editor/stop...
JavaScript
0.000003
@@ -19,22 +19,8 @@ , it -, expect, jest */%0A
d6d31d151bc0829dbecad800c542f2eeb73cf6d6
Add appropriate event handling to "Search" button.
ode/public/js/search.js
ode/public/js/search.js
// Models var SearchTarget = Backbone.Model.extend({ defaults: { features: new Backbone.Collection([]), strings: new Backbone.Collection([]), }, addFeatures: function(names) { _.each(names, function(n) { this.get('features').add(new Feature({ name: n })); }, this); }, addStrings: fun...
JavaScript
0
@@ -214,24 +214,247 @@ nction(n) %7B%0A + if (n.match(/%5E%3C.+%3E.*/i)) %7B%0A var name = n.slice(1, n.indexOf('%3E'));%0A var value = n.slice(n.indexOf('%3E') + 1);%0A this.get('features').add(new Feature(%7B name: name, value: value %7D));%0A %7D else %7B%0A this.g @@ -495,24...
0f32ffd59ddfbe14f7384cfa1431b5c76ee22a3e
hasFetchTrades = false
js/coinexchangeio.js
js/coinexchangeio.js
"use strict"; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError } = require ('./base/errors'); // --------------------------------------------------------------------------- module.exports = class coinexchangeio exten...
JavaScript
0.999997
@@ -609,24 +609,61 @@ PI': false,%0A + 'hasFetchTrades': false,%0A @@ -782,24 +782,62 @@ 'has': %7B%0A + 'fetchTrades': false,%0A
47e52fa6a01e8f4b692f72c6cf2b43544d90baaa
Fix bug service weather
core/processing.js
core/processing.js
'use strict'; const core = require('./core.js'); const fd = require('./field.js'); const serv = require('./../services/services.js'); const servWeather = require('./../services/weatherService.js'); const db = require('./../AslanDBConnector.js'); /* * Fonction qui traite les réponses de type bonjour */ function proce...
JavaScript
0.000008
@@ -3235,37 +3235,40 @@ sult.parameters. -ville +geo-city != undefined)%7B%0A @@ -3306,21 +3306,24 @@ ameters. -ville +geo-city ;%0A%09%09%09%7D%0A%09 @@ -3644,211 +3644,8 @@ r);%0A -%09%09%09%09if(response.result.parameters.ville != undefined)%7B%0A%09%09%09%09%09answer = fd.replaceField(answer, %0A%09%09%09%09%...
cf3fbb52c425f8386bb3847adc1a589917007a69
add underscore
package.js
package.js
Package.describe({ name: "tmeasday:publish-counts", summary: "Publish the count of a cursor, in real time", version: "0.7.3", git: "https://github.com/percolatestudio/publish-counts.git" }); Package.on_use(function (api, where) { api.versionsFrom("METEOR@0.9.2"); api.use(['blaze', 'templating'], 'client', ...
JavaScript
0.99977
@@ -352,32 +352,67 @@ go', 'client');%0A + api.use('underscore', 'server');%0A api.add_files(
c6a7db35eb048997543094503aed2a079c0e30e1
include play option for nav
js/components/nav.js
js/components/nav.js
// Create the nav component. var nav = {}; // Create the nav view-model. nav.vm = { init: function() { console.log ("nav vm init"); } } // Create the nav controller. nav.controller = function() { nav.vm.init (); } // Create the nav view. nav.view = function() { return m("header", [ m("div", {class: "...
JavaScript
0
@@ -602,12 +602,87 @@ , %22 -Game +About%22)%0A %5D),%0A m(%22li%22, %5B%0A m(%22a%22, %7Bhref: %22#%22%7D, %22Play %22)%0A
b7b6195cfc4bf558179fa90cab573eacf3101a54
Extract IIFE into separate function
js/modules/debug.js
js/modules/debug.js
const isFunction = require('lodash/isFunction'); const isNumber = require('lodash/isNumber'); const isObject = require('lodash/isObject'); const isString = require('lodash/isString'); const random = require('lodash/random'); const range = require('lodash/range'); const sample = require('lodash/sample'); const Message ...
JavaScript
0.999724
@@ -3188,19 +3188,201 @@ e = -(() =%3E %7B%0A +_createMessage(%7B commonProperties, conversationId, type %7D);%0A return Message.initializeSchemaVersion(message);%0A%7D;%0A%0Aconst _createMessage = (%7B commonProperties, conversationId, type %7D = %7B%7D) =%3E %7B%0A sw @@ -3395,26 +3395,24 @@ type) %7B%0A ...
c2e250212a7dee0ab19cf613494ac0fcf78c8a2c
Update localfiles.js
lib/middleware/localfiles.js
lib/middleware/localfiles.js
'use strict'; (function (module) { var fs = require('fs'); var url = require('url'); var path = require('path'); var mime = require('connect').static.mime; function charset(type) { var t = mime.charsets.lookup(type); return t ? ';charset=' + t : ''; } function create(optio...
JavaScript
0
@@ -1135,20 +1135,18 @@ %5C/$/, '/ -core +ui ');%0A @@ -1669,16 +1669,38 @@ name === + '/ui' %7C%7C pathname === '/core'
f2ff5df7730fc0574cce5366310aed4b3763a5ca
Version bump
package.js
package.js
Package.describe({ git: 'https://github.com/zimme/meteor-collection-behaviours.git', name: 'zimme:collection-behaviours', summary: 'Define and attach behaviours to collections', version: '1.0.5-rc.2' }); Package.onUse(function(api) { api.versionsFrom('1.0'); api.use([ 'check', 'coffeescript', ...
JavaScript
0.000001
@@ -195,16 +195,16 @@ '1. -0.5 +1.0 -rc. -2 +1 '%0A%7D)
389cb80d9df55432dfcac52fcb88a7644b44eed8
Apply Common Upgrade to Popover classes
js/mylib/popover.js
js/mylib/popover.js
// ---------------------------------------------------------------- // Popover Class class PopoverModel extends CommonModel { constructor({ name = 'Popover', selector = null, help = 'popover', trigger = 'hover' } = {}) { super({ name: name }); this.NAME = name; this.SE...
JavaScript
0
@@ -84,101 +84,228 @@ ss%0A%0A -class PopoverModel extends CommonModel %7B%0A constructor(%7B%0A name = 'Popover',%0A selector = +// ----------------------------------------------------------------%0A// Model%0A%0Aclass PopoverModel extends CommonModel %7B%0A constructor(%0A _setting = %7B%7D, %0A _initS...
0646dfbf4ce1f4f33fd39c2e43eccb4258688b4f
Allow adding of VC's to topics table - code needs to be unique per project
modules/vcs/client/controllers/vc.controller.js
modules/vcs/client/controllers/vc.controller.js
'use strict'; angular.module ('vcs') // ------------------------------------------------------------------------- // // controller for listing vcs // // ------------------------------------------------------------------------- .controller ('controllerVcList', ['$scope', '$rootScope', '$stateParams', 'VcModel', 'NgTa...
JavaScript
0
@@ -2461,24 +2461,39 @@ tle(obj.name ++m.project.code );%0A%09%09%09%09%09// c
3a6258f1d687258745ed874fe1042ef62bea8fd1
Bump version
package.js
package.js
Package.describe({ name: 'dispatch:configuration', summary: 'App configuration manager with inheritance', version: '0.1.5' }); Package.onUse(function(api) { api.use([ 'underscore@1.0.3', 'templating@1.1.1', 'check@1.0.5', 'aldeed:simple-schema@1.3.3', 'aldeed:collection2@2.5.0', 'dispat...
JavaScript
0
@@ -119,17 +119,17 @@ n: '0.1. -5 +6 '%0A%7D);%0A%0AP
0d2dd2e99bdcfa03a6d718a9e9f6d4cf0b69ce5c
Refresh the login page after 30 minutes to prevent CSRF error (Issue #158)
js/login.js
js/login.js
$(document).ready(function(){ $("form#login_form").submit(function(){ /* all the client side validation */ return validate(); }); $("input#email").blur(function(){ $(this).val($(this).val().trim()); }); /* must trim the password values here because they get trimmed on t...
JavaScript
0
@@ -1,8 +1,23 @@ +'use strict';%0A%0A $(docume @@ -438,20 +438,149 @@ %7D);%0A +%0A +/* refresh the page after ~30 minutes, otherwise they will receive a CSRF expired error */%0A setTimeout(refreshPage, 1799000); %0A%0A%7D);%0A%0A%0A @@ -2279,10 +2279,84 @@ ss);%0A%7D%0A%0A +function refreshPage()%0A%7...
4aaffec8781e6984485c97e448728422b1ba3f6f
patch release - Bump to version 1.0.1
package.js
package.js
Package.describe({ summary: "Accounts Templates unstyled.", version: "1.0.0", name: "useraccounts:unstyled", git: "https://github.com/meteor-useraccounts/unstyled.git", }); Package.on_use(function(api, where) { api.versionsFrom("METEOR@1.0"); api.use([ "less", "templating", ...
JavaScript
0
@@ -71,25 +71,25 @@ rsion: %221.0. -0 +1 %22,%0A name: @@ -442,33 +442,33 @@ counts:core@1.0. -0 +1 %22,%0A %5D, %5B%22clie @@ -1550,17 +1550,17 @@ ore@1.0. -0 +1 %22,%0A %5D
678a6304c34e7ca583b310f4ffd129822c78d12b
clean up
lib/observable/emit/index.js
lib/observable/emit/index.js
'use strict' var Emitter = require('../../emitter') var _emit = Emitter.prototype.emit var Event = require('../../event') // context optmizations as well -- have to reduce amount of fires -- the ignore stuff can be optmized exports.inject = [ require('../instances'), require('./instances'), require('./context'...
JavaScript
0.000001
@@ -219,17 +219,16 @@ ptmized%0A -%0A exports. @@ -321,32 +321,8 @@ %0A%5D%0A%0A -var overridemap = %7B%0A%0A%7D%0A%0A expo
4bdbefb01229ae9af6501b9a79fec9fcb3827a50
Update dependency
package.js
package.js
Package.describe({ name: 'aramk:checkbox', summary: 'A reactive checkbox widget', version: '1.0.0', git: 'https://github.com/aramk/meteor-checkbox.git' }); Package.on_use(function(api) { api.versionsFrom('METEOR@1.6.1'); api.use([ 'templating', 'underscore', 'jquery', 'urbanetic:utility@2.0...
JavaScript
0.000001
@@ -372,11 +372,11 @@ s@2. -0.8 +1.2 '%0A
0ca713b17795769db0e9f8e63889a82beefcc915
add Bacon.UI.ajax for "static" AJAX
Bacon.UI.js
Bacon.UI.js
(function() { var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; function nonEmpty(x) { return x && x.length > 0 } Bacon.UI = {} Bacon.UI.textFieldValue = function(textfield, initValue) { function getValue() { return textfield.val() } function autofillPoller() { if (textfiel...
JavaScript
0.000002
@@ -1423,32 +1423,118 @@ edValues())%0A %7D%0A + Bacon.UI.ajax = function(params) %7B%0A return Bacon.fromPromise($.ajax(params))%0A %7D%0A Bacon.Observab @@ -1722,69 +1722,21 @@ h%22%5D( -function(params) %7B return Bacon.fromPromise($.ajax(params)) %7D +Bacon.UI.ajax )%0A
0999c3fd68e6ef3304c2397b796e5bfe1f4c7743
Add decode/encode URI to Evince
lib/openers/evince-opener.js
lib/openers/evince-opener.js
/** @babel */ import Opener from '../opener' import url from 'url' const EVINCE_OBJECT = '/org/gnome/evince/Evince' const EVINCE_APPLICATION_INTERFACE = 'org.gnome.evince.Application' const DAEMON_SERVICE = 'org.gnome.evince.Daemon' const DAEMON_OBJECT = '/org/gnome/evince/Daemon' const DAEMON_INTERFACE = 'org.gnome...
JavaScript
0.000009
@@ -552,51 +552,90 @@ %7B%0A -atom.workspace.open(url.parse(uri).pathname +const filePath = decodeURI(url.parse(uri).pathname)%0A atom.workspace.open(filePath ).th @@ -3616,16 +3616,24 @@ format(%7B +%0A protoco @@ -3643,16 +3643,24 @@ 'file:', +%0A slashes @@ -3666,16 +3666,24 @@ s: true, +%0...
5cbf2c4b97f5493199654ab77522b9c545c339e6
Refactor CompanyList reducer so it's more readable
src/client/components/CompanyLists/reducer.js
src/client/components/CompanyLists/reducer.js
import _ from 'lodash' import { COMPANY_LISTS__LISTS_LOADED, COMPANY_LISTS__SELECT, COMPANY_LISTS__COMPANIES_LOADED, COMPANY_LISTS__FILTER, COMPANY_LISTS__ORDER, } from '../../actions' import { RECENT } from './Filters' const initialState = { orderBy: RECENT, } export default (state = initialState, { typ...
JavaScript
0.000001
@@ -286,16 +286,19 @@ efault ( +%0A state = @@ -310,16 +310,18 @@ alState, +%0A %7B type, @@ -325,52 +325,80 @@ pe, -...action +id, result, payload, query, orderBy %7D +%0A ) =%3E -( %7B%0A -...state,%0A ...( +switch (type) %7B%0A -%5B +case COMP @@ -424,30 +424,45 @@ ADED -%5D: (%7B result ...
bbaf942410dbdf8f4a602adf27c6a3d9a2c2af8d
Update minified JS.
console-history.min.js
console-history.min.js
/** * Console History v1.0.0 * console-history.min.js * * Licensed under the MIT License. * * Written by Sander Laarhoven <sander@laarhoven.org> * For Doorbell.io <3 * https://github.com/lesander/console-history * https://sander.tech - https://doorbell.io */ console.log("** All console logging functions on t...
JavaScript
0
@@ -262,17 +262,16 @@ .io%0A */%0A - console. @@ -476,17 +476,17 @@ so on.%22) -; +, console. @@ -501,17 +501,17 @@ sole.log -; +, console. @@ -528,17 +528,17 @@ ole.info -; +, console. @@ -555,17 +555,17 @@ ole.warn -; +, console. @@ -584,17 +584,17 @@ le.error -; +, console. @@ -613,17 +613,17 @@ le.deb...
46ccda869826624a6e30ed18d7835c1933383303
debug redirect uri
googleauth.js
googleauth.js
'use strict' import express from 'express' import qs from 'querystring' import fetch from 'node-fetch' import wga from 'wga' import jwt from 'jsonwebtoken' let google_client_id = process.env.GOOGLE_API_CLIENT_ID let google_client_secret = process.env.GOOGLE_API_CLIENT_SECRET let allowed_email = process.env.JWT_ALLOWE...
JavaScript
0.000001
@@ -532,16 +532,44 @@ llback'%0A + console.log(callback_uri)%0A let qu
335fd2471ee7c12243da4872061391a1ff4853e4
update "js/formValidation.js" module (see msg)
js/formValidation.js
js/formValidation.js
/* * * */ define(function() { /* * Finding the form by ID is faster than finding it by its name. See the * jsPerf test at: http://jsperf.com/finding-input-fields. */ var allFields = document.getElementById("contact").getElementsByTagName("input"); for (key in allFields) { var theFields ...
JavaScript
0
@@ -102,24 +102,42 @@ name -. See the %0A * + for the most %0A * part. See the jsP @@ -194,17 +194,16 @@ s.%0A */ - %0A var a @@ -348,16 +348,22 @@ s%5Bkey%5D;%0A + %0A t @@ -439,38 +439,128 @@ -console.log(%22nope%22);%0A %7D +var spanName = this.name + %22-error%22;%0A ...
0edaa5215359d5af78d56385381bb4678c69dce1
use `fromOptions` for read/write concern
lib/operations/command_v2.js
lib/operations/command_v2.js
'use strict'; const OperationBase = require('./operation').OperationBase; const resolveReadPreference = require('../utils').resolveReadPreference; class CommandOperationV2 extends OperationBase { constructor(parent, options) { super(options); this.ns = parent.s.namespace.withCollection('$cmd'); this.re...
JavaScript
0.000001
@@ -140,16 +140,114 @@ ference; +%0Aconst ReadConcern = require('../read_concern');%0Aconst WriteConcern = require('../write_concern'); %0A%0Aclass @@ -1524,17 +1524,9 @@ urn -options.w +W rite @@ -1528,24 +1528,45 @@ WriteConcern +.fromOptions(options) %7C%7C parent.w @@ -1641,17 +1641,9 @@ urn -options.r +...
990908ddc85ce80728437d312997c6ff3f73e29d
Add 'check' dependency
package.js
package.js
Package.describe({ name: "zeroasterisk:throttle", summary: "A secure means of rate limiting, debounce even in a cluster (emails, etc)", version: "0.3.4", git: "https://github.com/zeroasterisk/Meteor-Throttle.git" }); Package.onUse(function (api) { api.versionsFrom("0.9.0"); api.use(['meteor', 'underscore'...
JavaScript
0
@@ -313,16 +313,25 @@ erscore' +, 'check' %5D, 'serv
d6412bafb45552507179ab69456a431b22c901c9
Bump version to 1.5.0.
package.js
package.js
Package.describe({ name: "froatsnook:shopify", version: "1.4.4", summary: "Shopify API Access", git: "https://github.com/froatsnook/meteor-shopify", documentation: "README.md" }); Package.onUse(function(api) { api.versionsFrom("1.0.3.1"); api.use("check", ["client", "server"]); api.use(...
JavaScript
0
@@ -64,11 +64,11 @@ %221. -4.4 +5.0 %22,%0A
c11db9e27567db47b339672f05a9c17706cbf819
Update openClosedVines.user.js
openClosedVines.user.js
openClosedVines.user.js
// ==UserScript== // @name Auto open sensitive Vines // @namespace http://nindogo.tumblr.com/ // @author Ni Ndogo // @version 0.1.1.0 // @description open vines that are hidden due to sensitivity. // @match https://vine.co/* // @downloadURL https://github.com/nindogo/test_repo/raw/master/openClosedV...
JavaScript
0
@@ -30,19 +30,14 @@ -Auto o +O pen -s +S ensi @@ -108,12 +108,11 @@ -Ni N +nin dogo @@ -152,20 +152,37 @@ iption +This userscript open +s vines t @@ -189,11 +189,17 @@ hat -are +have been hid @@ -221,16 +221,29 @@ itivity. + (Adult, etc) %0A// @mat @@ -717,24 +717,26 @@ mmay) %7B%0A +/...
1ea3640cc0749d83d8f125a3327c35c58d0eede7
Bump version to 2.4.7
package.js
package.js
Package.describe({ name: 'jagi:astronomy', version: '2.4.6', summary: 'Model layer for Meteor', git: 'https://github.com/jagi/meteor-astronomy.git' }); Npm.depends({ lodash: '4.17.4' }); Package.onUse(function(api) { api.versionsFrom('1.3'); api.use([ 'ecmascript', 'es5-shim', 'ddp', 'm...
JavaScript
0
@@ -54,17 +54,17 @@ n: '2.4. -6 +7 ',%0A sum @@ -838,9 +838,9 @@ 2.4. -6 +7 '%0A
9ab39fa2824fad61d7d396159bb56929a5d9be16
fix merge conflict
js/ocean.js
js/ocean.js
var Wave = function(game, x, y, width, height) { this.game = game; Phaser.Image.call(this, this.game, x, y, 'wave'); //this.alpha = 1; var scaleX = width / this.width * 1.5; var scaleY = height / this.height * 1.5; this.scale.setTo(scaleX, scaleY); this.initialPos = { x: x, y: y }; // looks ugly, sho...
JavaScript
0.000003
@@ -333,16 +333,56 @@ lready!%0A +%0A%09this.tint = 0xc35918; // ASSAM color%0A%0A %09this.an
04fe258219797e85547cfbb45c8b4f4a73afd6ef
remove undifined function handleFocus
src/components/AddFolderForm/AddFolderForm.js
src/components/AddFolderForm/AddFolderForm.js
import React, {Component, PropTypes} from 'react'; import {Field, reduxForm} from 'redux-form'; import MenuItem from 'material-ui/MenuItem'; import FlatButton from 'material-ui/FlatButton'; import injectF from './../../helpers/injectF'; import injectMuiReduxFormHelper from './../../helpers/injectMuiReduxFormHelper'; i...
JavaScript
0.000002
@@ -2633,35 +2633,8 @@ e')%7D - onFocus=%7Bthis.handleFocus%7D onB
970c254ec4feddda6c59cbbf6a5bad6efdd39bc4
Disable NoFragmentCyclesRule
packages/relay-compiler/graphql-compiler/core/GraphQLValidator.js
packages/relay-compiler/graphql-compiler/core/GraphQLValidator.js
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @providesModule GraphQLValidator * @format */ 'use strict'; const Profiler = require('./GraphQLCompilerProfiler'); const ...
JavaScript
0
@@ -476,32 +476,8 @@ le,%0A - NoFragmentCyclesRule,%0A No @@ -1830,16 +1830,17 @@ e%0A // + KnownFra @@ -1858,16 +1858,173 @@ ule,%0A + // TODO: #25618795 Because of @argumentDefinitions, this validation%0A // incorrectly flags a subset of fragments using @include/@skip as recursive.%0A // NoFrag...
81fee764c73a9c16c5e6899af4ca00cc5aedce30
use gpsi promise
lib/plugins/gpsi/analyzer.js
lib/plugins/gpsi/analyzer.js
'use strict'; var Promise = require('bluebird'), log = require('intel'), gpagespeed = require('gpagespeed'); gpagespeed = Promise.promisify(gpagespeed); module.exports = { analyzeUrl: function(url, options) { log.info('Sending url ' + url + ' to test on Page Speed Insights'); const args = {url}; i...
JavaScript
0
@@ -16,41 +16,8 @@ var -Promise = require('bluebird'),%0A log @@ -79,53 +79,8 @@ );%0A%0A -gpagespeed = Promise.promisify(gpagespeed);%0A%0A modu
eb2b0b00959f5f0f01dda05b7b8fc45bad54715c
Add comment to package.js
package.js
package.js
(function () { 'use strict'; var chimpVersion = '0.19.4'; var meteorChimpVersion = '_1'; Package.describe({ name: 'xolvio:cucumber', summary: 'CucumberJS for Velocity', version: chimpVersion + meteorChimpVersion, git: 'https://github.com/xolvio/chimp.git', debugOnly: true }); Npm.dep...
JavaScript
0
@@ -26,16 +26,205 @@ rict';%0A%0A + /**%0A * This package.js file is used for Meteor package management%0A * http://docs.meteor.com/#/full/packagejs%0A *%0A * Not using Meteor? Ignore this, and look at package.json%0A */%0A%0A var ch
cbcb66112633cb583eb85e37c043cc8cb639a15c
fix blur event for multiselect
js/ld-ui-elements.js
js/ld-ui-elements.js
//get mulitselect options and add to a new div, also create a new button to display //selected options and toggle the new options div. Also hide the current select. function multiSelect(selectElem) { var selectObject = {select: selectElem}; var options = selectElem.getElementsByTagName('option'); var multi ...
JavaScript
0.000001
@@ -2022,23 +2022,139 @@ -%7D)%0A %7D else %7B +$(event.currentTarget).addClass('locked selected');%0A %7D)%0A %7D else %7B%0A $(event.currentTarget).toggleClass('selected'); %0A @@ -2297,64 +2297,8 @@ %7D%0A - $(event.currentTarget).addClass('locked selected');%0A %7D%0Afu @@ -2621...
def8d559c9f09076d5d6e42b00a7d5061e3b0b81
Use USDDisplay for displaying Steem and SBD values in SteemTrendingCharts component (#1044)
src/components/Sidebar/SteemTrendingCharts.js
src/components/Sidebar/SteemTrendingCharts.js
import React, { Component } from 'react'; import Trend from 'react-trend'; import fetch from 'isomorphic-fetch'; import _ from 'lodash'; import Promise from 'bluebird'; import { FormattedMessage } from 'react-intl'; import Loading from '../Icon/Loading'; import './SteemTrendingCharts.less'; const getSteemPriceHistory ...
JavaScript
0
@@ -284,16 +284,76 @@ s.less'; +%0Aimport USDDisplay from '../../components/Utils/USDDisplay'; %0A%0Aconst @@ -2578,36 +2578,50 @@ %3E%0A -%7B%60$$ +%3CUSDDisplay value= %7BcurrentSteemPri @@ -2623,18 +2623,19 @@ emPrice%7D -%60%7D + /%3E %0A @@ -3318,12 +3318,26 @@ -%7B%60$$ +%3CUSDDi...
910f12ab51ed54970bab5111cc57e7ce2c425e68
Update title screen instructions
js/screens/title.js
js/screens/title.js
game.TitleScreen = me.ScreenObject.extend({ init: function () { this._super(me.ScreenObject, 'init'); this.font = null; this.ground1 = null; this.ground2 = null; this.logo = null; }, onResetEvent: function () { me.audio.stop("theme"); game.data.newHiScore = false; me.game.world.a...
JavaScript
0.000001
@@ -1968,24 +1968,179 @@ %5D);%0A +this.text1 = 'Allow access to your microphone';%0A this.text2 = 'Swipe your hand upwards past it to start the game and make the bird fly!';%0A // this.text = @@ -2418,16 +2418,17 @@ text();%0A +%0A @@ -2431,17 +2431,276 @@ var -m +text1Measure...
c32a9fee2afa6c74cc0f380cb3c06a3895eb8446
fix jquery fail status
js/peter.js
js/peter.js
(function($) { $(function() { $('.form-horizontal').on('submit', function() { if ($('#inputStudentNum').val() === "") { alert('Please enter username!!'); return false; } $.post('/user/login', { 'school_id' : $('#inputStudentNum').val() }, function(response) { if (response.status...
JavaScript
0.000001
@@ -298,229 +298,90 @@ %09%09%09%09 -if (response.status === 0) %7B%0A%09%09%09%09%09// Success!%0A%09%09%09%09%09//console.log(response.data);%0A%09%09%09%09%09//alert(JSON.stringify(response.data));%0A%09%09%09%09%09location.href = '/';%0A%09%09%09%09%09//var term = $('#inputStudentNum').val();%0A%09%09%09%09%7D%0A%...
fd2365df325498a00c678721189862b6685636c7
add res.response
lib/init.js
lib/init.js
var PipeStream = require('pipestream'); var Transform = PipeStream.Transform; var util = require('./util'); var config = require('./config'); function addErrorEvents(req, res) { var clientReq, clientRes; req.on('dest', function(_req) { clientReq = _req.on('error', util.noop); }).on('error', abort) .on('close', ...
JavaScript
0.000031
@@ -2982,49 +2982,8 @@ s);%0A -%09%09removeDisableProps(req, _res.headers);%0A %09%09re
4f053c5fdd665e4d3dd1ccd630014e79d15c377f
patch release - Bump to version 0.9.13
package.js
package.js
Package.describe({ summary: "Accounts Templates styled for Twitter Bootstrap.", version: "0.9.12", name: "splendido:accounts-templates-bootstrap", git: "https://github.com/splendido/accounts-templates-bootstrap.git", }); Package.on_use(function(api, where) { api.versionsFrom("METEOR@0.9.2.2"); ...
JavaScript
0
@@ -92,25 +92,25 @@ sion: %220.9.1 -2 +3 %22,%0A name: @@ -527,33 +527,33 @@ lates-core@0.9.1 -2 +3 %22,%0A %5D, %5B%22clie @@ -1671,17 +1671,17 @@ re@0.9.1 -2 +3 %22,%0A %5D
c9c5bc66945e87413b791761055c3ba00add7682
Add helper action to bundle pile dispersing and coloring
src/components/fragments/fragments-actions.js
src/components/fragments/fragments-actions.js
export const ADD_PILES = 'ADD_PILES'; export const addPiles = piles => ({ type: ADD_PILES, payload: { piles } }); export const DISPERSE_PILES = 'DISPERSE_PILES'; export const dispersePiles = piles => ({ type: DISPERSE_PILES, payload: { piles } }); export const RECOVER_PILES = 'RECOVER_PILES'; export const ...
JavaScript
0
@@ -245,32 +245,250 @@ %7B piles %7D%0A%7D);%0A%0A +export const DISPERSE_PILES_WITH_COLOR = 'DISPERSE_PILES_WITH_COLOR';%0A%0Aexport const dispersePilesWithColors = piles =%3E (dispath) =%3E %7B%0A dispath(dispersePiles(piles.piles));%0A dispath(setPilesColors(piles.colors));%0A%7D;%0A%0A export const REC
8f1e82991d97fc8a16a6b7e79baa9a7566d08a56
add "libbitcoin team" to default list of contacts when creating new wallet.
js/model/contacts.js
js/model/contacts.js
'use strict'; define(['bitcoinjs-lib', 'util/btc'], function(Bitcoin, BtcUtils) { var Crypto = Bitcoin.CryptoJS; /** * Contacts (Address book). * @param {Object} store Object store * @constructor */ function Contacts(store, identity) { this.store = store; this.identity = identity this.contacts = this.store...
JavaScript
0
@@ -409,16 +409,96 @@ tad4bMy' + %7D,%0A %7B name: 'libbitcoin team', address: '1Fufjpf9RM2aQsGedhSpbSCGRHrmLMJ7yY' %7D%0A %5D);
10a989a003ec4d2b8c9e2bb72b7d342a4412b3d0
make icon optional in action button
src/components/views/elements/ActionButton.js
src/components/views/elements/ActionButton.js
/* Copyright 2017 Vector Creations Ltd 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, sof...
JavaScript
0
@@ -1104,35 +1104,24 @@ Types.string -.isRequired ,%0A %7D,%0A%0A @@ -2179,16 +2179,198 @@ %7D%0A%0A + const icon = this.props.iconPath ?%0A (%3CTintableSvg src=%7Bthis.props.iconPath%7D width=%7Bthis.props.size%7D height=%7Bthis.props.size%7D /%3E) :%0A undefined;%0A%0...
2b291f716e4184ecbc8690464ffcaee8f46e8784
Fix showing success message on wrong place
ckanext/requestdata/fanstatic/modal-form.js
ckanext/requestdata/fanstatic/modal-form.js
'use strict'; /* modal-form * * This JavaScript module creates a modal and responds to actions * */ this.ckan.module('modal-form', function($) { var api = { get: function(action, params, api_ver = 3) { var base_url = ckan.sandbox().client.endpoint; params = $.param(params); ...
JavaScript
0.000039
@@ -7658,41 +7658,123 @@ v = -document.getElementsByClassName(%22 +$('.requested-data-message')%0A%0A if (currentDiv.length %3E 1) %7B%0A currentDiv = this.el.next('. requ @@ -7791,17 +7791,17 @@ -message -%22 +' );%0A @@ -7811,45 +7811,55 @@ -currentDiv%5B0%5D.style. +%7D%0A ...
8a4afe3d8a60e6431ef070acb85676b096c85c48
Fix race condition in tests.
lib/jobs.js
lib/jobs.js
var async = require('async'), moment = require('moment'), events = require('events'), _ = require('lodash'), shouldStillProcess, pg = require('pg'), Transaction = require('pg-transaction'), debug = require('debug')('pg-jobs'); /** * @param Object options Options hash containing: * - db (...
JavaScript
0
@@ -5152,32 +5152,70 @@ commit(txDone);%0A + %7D%0A function txDone() %7B%0A Jobs.e @@ -5286,46 +5286,8 @@ ');%0A - %7D%0A function txDone() %7B%0A
f5f22a184d86228f3a63f1ac2c83e33001d6eb6f
Add comment
client/app/dbpGrabber/dbpGrabber.service.js
client/app/dbpGrabber/dbpGrabber.service.js
'use strict'; angular.module('biyblApp') .service('dbpGrabber', function () { // AngularJS will instantiate a singleton by calling "new" on this function langmap: { 'ar': ['ARZVDVO2ET', 'ARZVDVN2ET', 'العربية'], 'bg': ['BULBBSO2ET', 'BULBBSN2ET', 'Български'], 'bn': ['BNGCLVO2ET', 'BNGCLVN...
JavaScript
0
@@ -3706,23 +3706,177 @@ of -ref+verse hashe +verse data%0A // e.g.: http://dbt.io/text/verse?v=2&key=f241660c7e9b26ddf60d73b1d9fe5856&dam_id=FRNDBYN2ET&book_id=Rev&chapter_id=1&verse_start=1&verse_end=2&markup=osi s%0A
b2467a479458fbaf7c4200482eb3dcc19bb6a8ae
Remove stepSize from TNumber (https://github.com/phetsims/phet-io/issues/490)
js/types/TNumber.js
js/types/TNumber.js
// Copyright 2016, University of Colorado Boulder /** * * @author Sam Reid (PhET Interactive Simulations) * @author Andrew Adare */ define( function( require ) { 'use strict'; // modules var assertTypeOf = require( 'PHET_IO/assertions/assertTypeOf' ); var phetioNamespace = require( 'PHET_IO/phetioNamespac...
JavaScript
0
@@ -1988,42 +1988,8 @@ ge,%0A - stepSize: options.stepSize,%0A
99d2038f03513083dde80252fd3817e4fa4723ce
refactor stream linking
lib/link.js
lib/link.js
var Stream = require('./stream'); var Load = require('./load'); var Parse = require('./parse'); module.exports = function Link (scope, event, options) { var node = Stream.Node(options); // load instance, parse event and get flow stream sequences Load(scope, node, event[0], options).once('_flow_load', fun...
JavaScript
0.000014
@@ -1,18 +1,50 @@ var -Stream +Node = require('./node');%0Avar Sequence = requi @@ -50,21 +50,23 @@ ire('./s -tream +equence ');%0Avar @@ -197,23 +197,16 @@ node = -Stream. Node(opt @@ -480,21 +480,20 @@ eq, -link, first; +first, prev; %0A @@ -536,24 +536,69 @@ equence) %7B%0A%0A + // ...
8790cbc4d041adeeb7efc22382bede78666d2dbe
Update Example
Batchler.js
Batchler.js
/* Batchler.js, (c) 2015, Michael Fisher, v. 0.0.0 */ if(!this['console']) { this['console'] = function (message) {}; } var Batchler = {}; Batchler.Request = function () { /* Execute function. This function is called by the request's executer. The success and fail callbacks should include a call to the executer's c...
JavaScript
0.000001
@@ -169,26 +169,30 @@ () %7B%0A -/* E +this.e xecute + = functio @@ -196,120 +196,169 @@ tion -. This function is called by the request's executer. The success and fail callbacks should include a call to the +(executer) %7B%0A function success() %7B%0A if(executer) %7B%0A executer.callback('Succe...
a12bd91424e8834b451bb2fda96e9be65250d757
remove usless log
js/oa.contourRepo.js
js/oa.contourRepo.js
OA.ContourRepo = function(userSetting) { Array.call(this); var repo = this; var curr = 0; var counter = 0; var init = function() { return repo; }; this.setIndex = function(p3ds){ if (p3ds.cid != null) {console.error(2) curr = p3ds.cid; } } this.p...
JavaScript
0
@@ -209,17 +209,16 @@ (p3ds)%7B%0A -%0A @@ -244,24 +244,8 @@ l) %7B -console.error(2) %0A
ad196a01087daca8a13df41b5e81593c25b932c5
prepend # to indicate we match exactly the context query
js/tests.js
js/tests.js
var parser = new excellent.Parser('@', ['channel', 'contact', 'date', 'extra', 'flow', 'step']); describe("finding expressions", function() { it("find expressions with and without parentheses", function() { expect(parser.expressions('Hi @contact.name from @(flow.sender)')).toEqual([ {start: 3, ...
JavaScript
0.00002
@@ -2403,32 +2403,241 @@ age');%0A %7D);%0A%0A + it(%22ignore trailing spaces after varibles inside parenthenses triggering function completions%22, function() %7B%0A expect(parser.autoCompleteContext(%22Hi @(contact.age %22)).toBe('contact.age');%0A %7D);%0A%0A it('ignore t