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
cb19570f56cb18da4d9df024419a2e66e3d7684e
fix merge issues
server.js
server.js
var zkLib = require('./lib/ZooKeeper.js'); var kafkaLib = require('./lib/Kafka.js'); var cache = require('./lib/Cache.js').cache; var logger = require('./logger.js').logger; var config = require('./config'); var express = require('express'); var app = express(); var loadMetadata =...
JavaScript
0.000001
@@ -294,17 +294,16 @@ ess();%0A%0A - var load
a577f1922ee7054a97b455ccfaa16857cb2b79fc
Use $.fn.children instead of `>` in selector
js/collapse.js
js/collapse.js
/* ======================================================================== * Bootstrap: collapse.js v3.3.1 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/boo...
JavaScript
0
@@ -1521,16 +1521,18 @@ ent. -find('%3E +children(' .pan
8f649cb4ae8c52f47c7314226fe5edbddfcb735f
check option types in constructor
pigpio.js
pigpio.js
'use strict'; var EventEmitter = require('events').EventEmitter, pigpio = require('bindings')('pigpio.node'), util = require('util'); pigpio.gpioInitialise(); function Gpio(gpio, options) { if (!(this instanceof Gpio)) { return new Gpio(gpio, options); } options = options || {}; this.gpio = +gpio; ...
JavaScript
0.000001
@@ -324,25 +324,40 @@ if ( -'mode' in options +typeof options.mode === 'number' ) %7B%0A @@ -370,17 +370,16 @@ is.mode( -+ options. @@ -400,31 +400,46 @@ if ( -'pullUpDown' in options +typeof options.pullUpDown === 'number' ) %7B%0A @@ -458,17 +458,16 @@ lUpDown( -+ options. @@ -494,25 +494,40 @@ if ( -'edge' ...
cb59fb60c4d0e9d0dcbd2a772a916d0ad3b901be
Make event error handling more platform compatible
js/costanza.js
js/costanza.js
/*global HTMLDocument, Window, console */ // Helper method used to avoid exposing costanza internals to the funky string methods var _costanzaEvil = function(__costanza_str) { return function() { return eval(__costanza_str); }; } this.Costanza = (function() { "use strict"; // Save off a reference to the e...
JavaScript
0
@@ -5723,32 +5723,52 @@ if (errorMsg && + (errorMsg.target %7C%7C errorMsg.srcEle @@ -5768,24 +5768,25 @@ .srcElement) +) %7B%0A // @@ -5988,24 +5988,80 @@ n;%0A %7D%0A%0A + var el = errorMsg.target %7C%7C errorMsg.srcElement;%0A%0A errorM @@ -6112,53 +6112,19 @@ %7C%7C e -rrorMsg.srcEle...
baa439e863a98880dc8372c6693e31e0f6c0fe25
Remove bias from the die throw; change randomness range
js/dicepass.js
js/dicepass.js
var DicePass = { DEFAULT_WORD_COUNT : 5, HasBrowserCryptoSupport: function() { if ((window.crypto && window.crypto.getRandomValues) || (window.msCrypto && window.msCrypto.getRandomValues)) { if(Uint32Array.prototype.join === undefined) { Uint32Array.prototype.join = Array.prototype.join; ...
JavaScript
0.999221
@@ -400,24 +400,103 @@ unction() %7B%0A + // Because there are only 6 values on a die, an 8-bit number is sufficient%0A var numb @@ -505,26 +505,25 @@ s = new Uint -32 +8 Array(this.D @@ -686,16 +686,377 @@ mbers);%0A + for (var i = 0; i %3C this.DEFAULT_WORD_COUNT; i++) %7B%0A // 256 is not a m...
37133ff3dcd44092504f27c948f2fed075c8cf29
Fix demo approot update.
demo/controller.js
demo/controller.js
angular.module('colorboxdemo.controllers', []). controller('ColorboxCtrl', function ($scope, $location) { $scope.imagesForGallery = []; $scope.setApproot = function(appRoot) { $scope.approot = appRoot; $scope.imagesForGallery = [ { thumb: a...
JavaScript
0
@@ -185,24 +185,165 @@ (appRoot) %7B%0A + //only change when needed.%0A if ($scope.approot && appRoot === $scope.approot) %7B%0A return;%0A %7D%0A @@ -368,16 +368,16 @@ ppRoot;%0A - @@ -1561,16 +1561,342 @@ %5D; +%0A%0A $scope.z...
eae5e907267c4d0b830ff0169e4d53d39a174655
fix eslint
eln/Sequence.js
eln/Sequence.js
import MolecularFormula from './libs/MolecularFormula'; function explodeSequences(sample) { var sequencePeptidic = getFirstPeptide(sample); if (sequencePeptidic) { sequencePeptidic.setValue( MolecularFormula.Peptide.sequenceToMF(String(sequencePeptidic)) ); } var sequenceNucleic = getFirstNucleo...
JavaScript
0.000874
@@ -425,16 +425,70 @@ equence) + // could be removed with new MolecularFormula library %0A ) %7B%0A
379a735e8a20f7423d13eebc47b9a1d3c5fc2e7b
Update Mapper.js
public/js/Mapper.js
public/js/Mapper.js
var Mapper = { _packets: [], _polyline: null, car: null, map: null }; Mapper.init = function(element, packetList) { if (packetList === void 0) { packetList = []; } this.map = new Microsoft.Maps.Map(element, { credentials: 'AuknkZ3WFkby8tWsY03iI9muVj4jcRdHztYdxJiOdu6PXPrX7Tm2ziXOsfz3wAPY...
JavaScript
0.000001
@@ -383,17 +383,16 @@ .compact -; %0A %7D);
bcba64c8e9b262bb0dd0391f9589a0de9b14c83a
Update Mapper.js
public/js/Mapper.js
public/js/Mapper.js
var Mapper = { _packets: [], _polyline: null, car: null, map: null }; Mapper.init = function(element, packetList) { if (packetList === void 0) { packetList = []; } this.map = new Microsoft.Maps.Map(element, { credentials: 'AuknkZ3WFkby8tWsY03iI9muVj4jcRdHztYdxJiOdu6PXPrX7Tm2ziXOsfz3wAPY...
JavaScript
0.000001
@@ -375,16 +375,24 @@ nBarMode +.compact ;%0A %7D)
5c523dbfd28edfc9c718fe9e134828aa82d916fc
fix linting
imports/ui/dashboard/dashboard.js
imports/ui/dashboard/dashboard.js
import CollectionsCount from '/imports/api/collectionsCount/collectionsCount'; import { DefaultAdminAccessRoles, GlobalHouseholdsAccessRoles, HousingUnitsAccessRoles, PendingClientsAccessRoles, ResponsesAccessRoles, } from '/imports/config/permissions'; import './dashboard.html'; const allWidgets = [ { ...
JavaScript
0.000003
@@ -112,66 +112,8 @@ es,%0A - GlobalHouseholdsAccessRoles,%0A HousingUnitsAccessRoles,%0A Pe @@ -137,16 +137,16 @@ sRoles,%0A + Respon @@ -408,348 +408,8 @@ %7D,%0A - /*%0A %7B%0A name: 'Active List',%0A id: 'eligibleClients',%0A icon: 'fa-user-plus',%0A path: 'adminDashboardeligibleClientsVie...
53f03deab99b1a7f1def4e66d93522070d17ed31
add notes
src/web_server/index.js
src/web_server/index.js
#!/usr/bin/env node var express = require("express"); var fs = require("fs"); var net = require("net"); var _ = require("underscore"); var app = express(); // home page var search_html = fs.readFileSync("public/index.html").toString(); // connections with computing nodes var computing_node_count = 0; var computing...
JavaScript
0
@@ -12,16 +12,546 @@ env node +%0A/******************************************************************************%0A * Copyright (c) 2015 Jamis Hoo%0A * Distributed under the MIT license %0A * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)%0A * %0A * Project: Distributed Image Searc...
a436d7202da835dd8f5b1f89127242006c0d3537
Tidy up.
ui/TextPropertyEditor.js
ui/TextPropertyEditor.js
import Surface from './Surface' import TextPropertyComponent from './TextPropertyComponent' /** Editor for a text property (annotated string). Needs to be instantiated inside a {@link ui/Controller} context. @class @component @extends ui/Surface @prop {String} name unique editor name @prop {String[]} p...
JavaScript
0.000002
@@ -684,16 +684,31 @@ %60%60%60%0A*/%0A%0A +export default class Te @@ -2433,100 +2433,54 @@ %7D%0A -%7D%0A%0ATextPropertyEditor.prototype._isTextPropertyEditor = true%0A%0Aexport default TextPropertyEditor +%0A get _isTextPropertyEditor () %7B return true %7D%0A%7D %0A
c4e729ed3acbe7c020076e6eb3c3610149d062b7
change swipebox events
js/get.data.js
js/get.data.js
$(function() { if(window.location.protocol === "https:") { location.href = "http://mywebservice.info/beauty/"; } var url = "http://mywebservice.info/beautyUniversity/data_out/school/university"; $( '.swipebox' ).swipebox(); $( '.swipebox' ).click(function() { $("div.slide > img").attr("data-caption", "This...
JavaScript
0
@@ -219,20 +219,51 @@ ' ). -swipebox +click(function(e) %7B%0A%09%09e.preventDefault ();%0A +%09 %09$( @@ -280,26 +280,19 @@ ' ). -click(function() %7B +swipebox(); %0A%09%09$
9526e98b2b6d7517d3a7832a91aa84724e394b23
add in preflop pair
player.js
player.js
var OUR_NAME = 'node'; function rank2Num(rank) { switch (rank) { case 'J': return 11; case 'Q': return 12; case 'K': return 13; case 'A': return 14; default: return parseInt(rank); } } /** * @returns false - если не префлоп * 1000 - если пара или больше или равно 10 * 0 - если ну...
JavaScript
0.000001
@@ -1176,24 +1176,245 @@ ) * 6;%0A %7D + else if(rank1 == rank2) %7B%0A if ( rank1 %3E= 10 ) %7B%0A bet = game_state.current_buy_in - player.bet + game_state.minimum_raise;%0A %7D else %7B%0A bet = game_state.current_buy_in - player.bet;%0A %7D%0A %7D %0A%0A return
553089938d48d36a0ec83ce80c23343c30fc659a
use sync file readers in cli
src/cli/itemicondat2png.js
src/cli/itemicondat2png.js
const process = require('process') const fs = require('fs') const createVerge1PalLoader = require('../loader/createVerge1PalLoader') const createVerge1ItemIconDatLoader = require('../loader/createVerge1ItemIconDatLoader') const createVerge1ItemIconDatConverter = require('../converter/createVerge1ItemIconDatConverter')...
JavaScript
0
@@ -396,16 +396,36 @@ rgv%5B3%5D%0A%0A +const diskPalData = fs.readF @@ -427,16 +427,20 @@ readFile +Sync (palFile @@ -447,36 +447,10 @@ name -, (err, diskPalData) =%3E %7B%0A +)%0A cons @@ -506,18 +506,16 @@ lData%7D)%0A - const pa @@ -540,17 +540,43 @@ load()%0A%0A - +const diskItemIconDatData = fs.r...
131cb57d099f5f16915c0da0c7a99e5cf111f96d
fix jshint
addon/components/ember-trix.js
addon/components/ember-trix.js
import Ember from 'ember'; import layout from '../templates/components/ember-trix'; const { computed, isNone, isPresent, set, } = Ember; const TRIX_EVENTS = [ 'trix-attachment-add', 'trix-attachment-remove', 'trix-blur', 'trix-change', 'trix-file-accept', 'trix-focus', 'trix-initialize', 'trix...
JavaScript
0.000002
@@ -495,17 +495,10 @@ trix - = null ;%0A + @@ -573,23 +573,29 @@ itor');%0A +%0A + if ( isPrese @@ -607,10 +607,21 @@ ix) -&& +) %7B%0A set @@ -644,16 +644,26 @@ trix);%0A + %7D%0A %7D%0A @@ -833,24 +833,58 @@ entName)) %7B%0A + /* jshint ignore:start */%0A ...
188d139048c9777e8b751657d5eecc21c456a082
Add diconnect connect
player.js
player.js
var config = require('cheslie-config'), io = require('socket.io-client'), ai = require('./ai.js'), game = io(config.game.url), tournament = io(config.tournament.url), name = ai.name; tournament.on('connect', function () { console.log('Player ' + name + ' is connected to ' + config.tournament.ap...
JavaScript
0.000001
@@ -501,16 +501,89 @@ );%0A%7D);%0A%0A +tournament.on('disconnect', function () %7B%0A tournament.connect();%0A%7D);%0A%0A game.on( @@ -1179,12 +1179,72 @@ %0A %7D%0A%7D);%0A +%0Agame.on('disconnect', function () %7B%0A game.connect();%0A%7D);
45d63edec0bce640a212aaed2b3c3035dc404928
simplify functions
src/createWCProto.js
src/createWCProto.js
/** * @module raf */ /** * Created by tushar.mathur on 01/09/16. */ 'use strict' import {createStore} from './micro-redux' import CustomEvent from './CustomEvent' function isArray (i) { return i instanceof Array } /** * Creates the prototype for the web component element. * @name createWCProto * @param {Fun...
JavaScript
0.000017
@@ -1750,16 +1750,63 @@ nd(this) +%0A this.__render = this.__render.bind(this) %0A%0A @@ -1921,21 +1921,22 @@ set: ( -value +params ) =%3E %7B%0A @@ -1964,21 +1964,22 @@ ps%5Bp%5D = -value +params %0A @@ -1986,32 +1986,38 @@ this.__ +store. dispatch Actions(%60@@p @@ -2004,24 +2004,2...
6fb9619ac68cb6288bef6dfa1fdd511e9050d1ee
Add content to action
addon/components/tags-input.js
addon/components/tags-input.js
import Ember from 'ember'; export default Ember.Component.extend({ tagName: 'input', attributeBindings: [ 'placeholder' ], content: null, itemText: null, itemValue: null, addAction:null, source:null, substringMatcher(strs){ return function findMatches(q, cb) { var matches, substrRegex; // an ar...
JavaScript
0
@@ -1477,32 +1477,52 @@ ddAction', event + , me.get('content') );%0A%09%09 %7Delse%7B%0A%09 @@ -1745,16 +1745,37 @@ ', event + , me.get('content') );%0A%09%09
8208ece9dfe39f29c84b6d08ce72e75257cc2de2
Fix proxy dialog checkboxes disabled state on init
chrome/content/zotero/preferences/preferences_proxies.js
chrome/content/zotero/preferences/preferences_proxies.js
/* ***** BEGIN LICENSE BLOCK ***** Copyright © 2006–2013 Center for History and New Media George Mason University, Fairfax, Virginia, USA http://zotero.org This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify...
JavaScript
0
@@ -1064,24 +1064,54 @@ roxyList();%0A +%09%09this.updateCheckboxState();%0A %09%7D,%0A%09%0A%09/**%0A%09 @@ -1967,24 +1967,181 @@ .init();%0A%09%09%0A +%09%09this.updateCheckboxState();%0A%09%7D,%0A%09%0A%09%0A%09updateCheckboxState: function() %7B%0A%09%09var transparent = document.getElementById('zotero-proxies-t...
1ac4fe3ae5cd43bddd9ad803d13c6607d3627e6d
Send version to server
server.js
server.js
var REQUEST = require('request'); var LUCY_HOST = 'http://54.213.18.26'; var LUCY_PORT = 3000; var LUCY_URL = LUCY_HOST + ':' + LUCY_PORT; var handleResponse = function(callback, ignoreBody) { return function(err, res, body) { if (err) { console.log('Error connecting to Lucy\'s servers:' + JSON.stringify...
JavaScript
0
@@ -132,16 +132,44 @@ CY_PORT; +%0Avar LUCY_VERSION = '0.1.0'; %0A%0Avar ha @@ -495,24 +495,192 @@ %7D%0A %7D%0A%7D%0A%0A +var buildBody = function(email, password, payload) %7B%0A return %7B%0A email: email,%0A password: password,%0A lucy_version: LUCY_VERSION,%0A payload: payload,%0A %7D;%0A%7D%0...
666353337a8899bf6176847f634e56c6df074ce2
fix order-by-clause error with empty string
addon/query/order-by-clause.js
addon/query/order-by-clause.js
/** * Class of order-by part of the query. * * @module ember-flexberry-data * @namespace Query * @class OrderByClause */ export default class OrderByClause { /** * @param clause * @class Query.OrderByClause * @constructor */ constructor(clause) { this._clause = []; clause.split(',').forEac...
JavaScript
0.721868
@@ -285,16 +285,36 @@ e = %5B%5D;%0A + if (clause) %7B%0A clau @@ -344,16 +344,18 @@ i) =%3E %7B%0A + le @@ -377,24 +377,26 @@ split(' ');%0A + let na @@ -401,24 +401,26 @@ name;%0A + let directio @@ -440,16 +440,18 @@ h - 1%5D;%0A + if @@ -495,24 +495,26 @@ = 'desc')...
cae9d2f4712552f64907fb7f9578324bc50af453
reset invalid form state when gateway id is populated and validation succeeds
src/lwc/gePaymentGatewayManagement/gePaymentGatewayManagement.js
src/lwc/gePaymentGatewayManagement/gePaymentGatewayManagement.js
/* * Copyright (c) 2020 Salesforce.org * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, ...
JavaScript
0
@@ -2842,34 +2842,16 @@ ert();%0A%0A - try %7B%0A @@ -2897,28 +2897,24 @@ );%0A%0A - if (isEmpty( @@ -2935,28 +2935,24 @@ - - return;%0A @@ -2955,27 +2955,19 @@ - %7D%0A%0A +%7D%0A%0A @@ -2988,24 +2988,39 @@ er = true;%0A%0A + ...
30ede6de15d75d473bd33fe2ad93d48209a4cdcd
Update 502 message
src/daemon/router.js
src/daemon/router.js
let net = require('net') let express = require('express') let pkg = require('../../package.json') module.exports = function (servers) { let router = express.Router() function index (req, res) { res.render('index', { pkg, monitors: servers.list() }) } function kill (req, res) { res.end...
JavaScript
0
@@ -1239,17 +1239,24 @@ ).send(%60 -C +Hotel: c an't con
22f9ac4bfb3013535865ab8ef419b6cefd3d0ffb
Add missing required default 'renderScrollComponent' prop for ListView
src/components/ListView.js
src/components/ListView.js
import React from 'react'; import ScrollResponder from '../mixins/ScrollResponder'; import TimerMixin from 'react-timer-mixin'; import ScrollViewManager from '../NativeModules/ScrollViewManager'; import ScrollView from './ScrollView'; var ListViewDataSource = require('../api/ListViewDataSource'); //var React = require...
JavaScript
0
@@ -6192,16 +6192,130 @@ ;%0A %7D,%0A%0A + getDefaultProps() %7B%0A return %7B%0A renderScrollComponent: (props) =%3E %3CScrollView %7B...props%7D /%3E%0A %7D;%0A %7D,%0A%0A getInn
3a19d7e2fb2ce86880bb641f23bc3f0818dde7ac
Update config.js
public/js/config.js
public/js/config.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. */ requirejs.config({ baseUrl: '/vendor', paths: { jquery: 'AdminLTE/plugins/jQuery/jquery-2.2.3.min', jqueryui...
JavaScript
0
@@ -2871,16 +2871,62 @@ %5D +,%0A processEscapes: true %0A @@ -5761,12 +5761,13 @@ %0A %7D);%0A%7D); +%0A
a6a895a7ade16204cb1613390acc3434517ee659
update server bootstrap
server.js
server.js
'use strict'; var express = require('express'); var app = express(); var http = require('http').Server(app); var config = require('./server/config'); require('./server/socket')(http); var playerManager = require('./server/player_manager'); require('./server/api')(app, playerManager); http.listen();
JavaScript
0
@@ -293,10 +293,124 @@ .listen( +process.env.PORT %7C%7C port, function() %7B%0A%09console.log('%E2%9C%94 App listening on port', process.env.PORT %7C%7C config.port);%0A%7D );
d632ea848ff5f9557d84cf531952cb9d6eb1c20e
fix {long}
src/components/Location.js
src/components/Location.js
import React from 'react'; import Map from './Map'; import colors from '../constants/colors'; class Location extends React.Component { static propTypes = { location: React.PropTypes.string, address: React.PropTypes.string, lat: React.PropTypes.number, long: React.PropTypes.number } render() { ...
JavaScript
0.00006
@@ -1037,16 +1037,17 @@ =$%7Blat%7D, +$ %7Blong%7D%60%7D
eead26602518012bcb41103c17cfd5308bc47ea0
Fix path config
src/components/app/main.js
src/components/app/main.js
( function( window, define, require, undefined ) { require.config( { enforceDefine: false, optimize: 'uglify2', waitSeconds: 0, paths: { // Config will be switched on build config: 'config/development', // App vendor: ...
JavaScript
0.000005
@@ -330,17 +330,16 @@ 'vendor -/ ',%0A @@ -371,17 +371,16 @@ 'utils -/ ',%0A%0A @@ -483,17 +483,16 @@ /modules -/ ',%0A @@ -531,17 +531,16 @@ patterns -/ ',%0A @@ -574,17 +574,16 @@ '../site -/ ',%0A%0A
5fcacd115566aff0fbc40faefd16f0a8b90376e0
add support for l10n-attrs
js/l20n-xml.js
js/l20n-xml.js
document.addEventListener("DOMContentLoaded", function() { var headNode = document.getElementsByTagName('head')[0]; if (!headNode) return; var ctx = L20n.getContext(); var links = headNode.getElementsByTagName('link') for (var i = 0; i < links.length; i++) { if (links[i].getAttribute('type') == 'in...
JavaScript
0
@@ -2103,17 +2103,16 @@ lue;%0A%7D%0A%0A -%0A function @@ -2501,48 +2501,248 @@ ;%0A -if (attrs) %7B%0A for (var j in attrs) %7B%0A +var l10nAttrs;%0A if (node.hasAttribute('l10n-attrs'))%0A l10nAttrs = node.getAttribute('l10n-attrs').split(%22 %22);%0A else%0A l10nAttrs = null;%0A if (attrs) %7B%0A ...
05c89b84fe2261be535fdb7566fb5932f5373d87
Update variable name for consistency.
assets/js/googlesitekit-data.js
assets/js/googlesitekit-data.js
/** * External dependencies */ /** * Internal dependencies */ import SiteKitRegistry from 'assets/js/googlesitekit/data'; if ( typeof global.googlesitekit === 'undefined' ) { global.googlesitekit = {}; } if ( typeof global.googlesitekit.data === 'undefined' ) { global.googlesitekit.data = SiteKitRegistry; } /...
JavaScript
0
@@ -67,31 +67,20 @@ %0Aimport -SiteKitRegistry +Data from 'a @@ -281,31 +281,20 @@ .data = -SiteKitRegistry +Data ;%0A%7D%0A%0A// @@ -374,21 +374,10 @@ ult -SiteKitRegistry +Data ;%0A
fc820365ccce6385676bd112749b4abbe3749b82
Add tanintharyi
public/js/search.js
public/js/search.js
var $REG_URL = /((https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?)/g; var alias = [ ["bago", "ပဲခူး"], ["rakhing", "ရခိုင်"], ["kayin", "ကရင်"], ["ayeyarwaddy", "ဧရာ၀တီ", "ဧရာဝတီ"] ]; $("#search-at-header").on('keyup', function(event){ var that = $(this); var typped = that.val(); typped = ty...
JavaScript
0.999894
@@ -194,16 +194,49 @@ %E1%80%A7%E1%80%9B%E1%80%AC%E1%80%9D%E1%80%90%E1%80%AE%22%5D +,%0A %5B%22tanaintharyi%22, %22%E1%80%90%E1%80%94%E1%80%84%E1%80%BA%E1%80%B9%E1%80%9E%E1%80%AC%E1%80%9B%E1%80%AE%22%5D %0A%5D;%0A%0A$(%22
4987965adc21b7d50524bf2d412ef7f7bb3a636d
Deploy file nemsen
server.js
server.js
const express = require('express'); const app = express(); const path = require('path'); const port = process.env.PORT | '8080'; app.set('port', port); app.use(express.static(__dirname + '/dist')); app.get('/[^\.]+$', function (req, res) { res.set('Content-Type', 'text/html').sendFile(path.join(__dirname...
JavaScript
0.000001
@@ -120,13 +120,14 @@ RT %7C +%7C ' -808 +500 0';%0D
982b18806295eaeac875eac895f8cff53396dbf7
Fix evaluation bug when white is set to AI
engine.js
engine.js
// Piece and mobility weights for evaulation function. var kingWt = 200; var queenWt = 9; var rookWt = 5; var knightWt = 3; var bishopWt = 3; var pawnWt = 1; var mobilityWt = 0.1; // Implements at replaceAt function to change a char at specific index. function stringReplaceAt(s, index, replacement) { return s.subs...
JavaScript
0.000001
@@ -699,10 +699,9 @@ )%7D, -10 +2 000%0A @@ -1214,65 +1214,8 @@ e);%0A - console.log(currentMoveScore, possibleMoves%5Bx%5D);%0A @@ -1643,63 +1643,14 @@ %7D%0A + %7D%0A - console.log('----------------------------');%0A @@ -3289,44 +3289,8 @@ ore) - * (gameState.turn() === 'w' ? 1:-1) ...
1874c755f778b2c482c2937efd3ce96dc78301e7
fix small nav bug
assets/public/js/application.js
assets/public/js/application.js
/*! * Adapted from Bootstrap docs JavaScript */ !function ($) { $(function () { // IE10 viewport hack for Surface/desktop Windows 8 bug // // See Getting Started docs for more information if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement('styl...
JavaScript
0
@@ -592,67 +592,8 @@ y)%0A%0A - //var navHeight = $('.navbar').outerHeight(true) + 10%0A%0A @@ -638,25 +638,24 @@ bar' +, %0A -// offset: navH @@ -654,17 +654,163 @@ et: -navHe +20 // required to select the right thing. if this is smaller then you are at the top of one section%0A ...
8dfd0ce1df76a3e030900a4953abae712d4ed89b
Update speech
public/js/watson.js
public/js/watson.js
// Pass a string of input and it will automatically play // the returned audio function textToSpeech(input) { var audio = $('audio').get(0); var text = {text: input}; console.log('raw input', input); audio.setAttribute('src','/synthesize?' + $.param(text)); } // Speech to Text logic // This is heavily modified fro...
JavaScript
0.000002
@@ -427,16 +427,56 @@ erences%0A +%09var instructions = $('#talkIndicator')%0A %09var mic @@ -862,24 +862,88 @@ s('green');%0A +%09%09%09%09talkIndicator.html(%22Listening, press space again to stop%22);%0A %09%09%09%7D else %7B%0A @@ -1033,16 +1033,61 @@ ange');%0A +%09%09%09%09talkIndicator.html(%22Processing Sp...
5646b09b983b5d45e53ac0812cff521768516d9e
remove redundant condition
src/core/import/csv/csv.js
src/core/import/csv/csv.js
import {CharReader} from '@grid/core/io'; export class Csv { constructor(delimiter = ',') { this.delimeter = delimiter; } read(text) { const reader = new CharReader(text); const delimiter = this.delimeter; const result = []; let line = []; let term = ''; const condition = true; do { const c = r...
JavaScript
0.95201
@@ -1112,37 +1112,8 @@ m);%0A -%09%09%09%09%09if (line.length %3E 0) %7B%0A%09 %09%09%09%09 @@ -1136,15 +1136,8 @@ e);%0A -%09%09%09%09%09%7D%0A %09%09%09%09
0a4cec787bfbb77fcf17c6c24c0265c980a1794a
Fix unit test
modules/shared/shared-config.factory.js
modules/shared/shared-config.factory.js
(function () { 'use strict'; angular .module('dpShared') .factory('sharedConfig', sharedConfigFactory); sharedConfigFactory.$inject = ['environment']; function sharedConfigFactory (environment) { const globalConfig = { RADIUS: 50, THUMBNAIL_WIDTH: 240, ...
JavaScript
0.000005
@@ -824,32 +824,36 @@ _ROOT: 'https:// +acc. api.data.amsterd
bae545927c033c406dd3ef019e1d7cac3d5db0f0
Update messages.js
js/messages.js
js/messages.js
var messages = { next: { 'en': 'Next', 'de': 'Weiter', 'fr': 'Suivant', 'pt-br': 'Próximo', 'es': 'Siguiente', 'ru': 'Следующий', 'fa': 'مرحله بعدی' }, labelFooter: { 'en': 'Flexbox Froggy is created by', 'de': 'Flexbox Froggy wurde gemacht von', 'fr': 'Flexbox Froggy est c...
JavaScript
0
@@ -171,17 +171,38 @@ %D9%84%D9%87 %D8%A8%D8%B9%D8%AF%DB%8C' +,%0A 'tr': 'Sonraki' %0A - %7D,%0A l @@ -524,16 +524,60 @@ %D8%AA%D9%88%D8%B3%D8%B7',%0A + 'tr': 'Flexbox Froggy%5C'nin yarat%C4%B1c%C4%B1s%C4%B1:'%0A %7D,%0A l @@ -726,16 +726,37 @@ '%D9%85%D8%B1%D8%AD%D9%84%D9%87' +,%0A 'tr': 'Seviye...
1de98f8449f0907320ac6a678ed5479dbc40fdec
update code format.
Browser/js/Browser.js
Browser/js/Browser.js
(function($) { $.browser = {}; (function() { $.browser.msie = false; $.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { $.browser.msie = true; $.browser.version = RegExp.$1; } })(); window.SwitchView = function(n) { ...
JavaScript
0
@@ -413,22 +413,18 @@ es%22 + n) -,%0A +;%0A @@ -466,38 +466,34 @@ ight%22, %22normal%22) -,%0A +;%0A $(%22.Swit @@ -525,38 +525,34 @@ ight%22, %22normal%22) -,%0A +;%0A $(%22.Swit @@ -593,22 +593,18 @@ normal%22) -,%0A +;%0A @@ -1334,36 +1334,32 @@ -top%22);%0...
798b973e4f245a4f185fad9b2b858e353792232a
prefix iot:vendor. to iot:vendor/
models/NestThermostat.js
models/NestThermostat.js
/* * NestThermostat.js * * David Janes * IOTDB * 2015-06-16 */ var iotdb = require("iotdb"); exports.Model = iotdb.make_model('NestThermostat') .facet(":hvac.thermostat") .name("NestThermostat") .description("Nest Thermostat") .io("target_temperature_c", iotdb.number.temperature.celsius) ...
JavaScript
0.999998
@@ -271,24 +271,26 @@ perature_c%22, + ( iotdb.numbe @@ -302,32 +302,61 @@ perature.celsius + ).name(%22target temperature%22) )%0A .i(%22ambien @@ -372,16 +372,18 @@ ture_c%22, + ( iotdb.s @@ -414,16 +414,46 @@ .celsius + ).name(%22ambient temperature%22) )%0A .i @@ -493,16 +493,55 @@ humidity +.unit(...
d5eeab1ec808a9da441371dbb15f14b3c03491f8
Move common string to constant.
plugin.js
plugin.js
var format = require("util").format; module.exports = { init: function (client, imports) { const requiresAdmin = imports.admin.requiresAdmin; return { handlers: { "!join": requiresAdmin(function (command) { if (command.args[0]) { ...
JavaScript
0.000003
@@ -147,16 +147,80 @@ esAdmin; +%0A const requiresAdminHelp = %22Requires admin privileges.%22; %0A%0A @@ -3256,36 +3256,25 @@ -%22R +r equires - a +A dmin - privileges.%22 +Help %0A @@ -3538,36 +3538,25 @@ -%22R +r equires - a +A dmin - privileges.%22 +Help %0A @@ -3750,36 +3750,...
1e921d6458ac5cf80c453b88b32181066f561fac
change streetAddress to userAddressObj for clarity
script.js
script.js
//Geolocation Function is listed below. function geoLocation() { var output = document.getElementById("out"); if (!navigator.geolocation){ output.innerHTML = "<p>Geolocation is not supported by your browser</p>"; return; } function success(position) { var latitude = position.coords.latitude...
JavaScript
0
@@ -910,21 +910,22 @@ var -street +user Address +Obj = d
272fca9bb9c1920442badb94c93bea0cfc3e7d06
use app.bundle_path to construct the final bundle URL
App/Utilities/generateAppURL.js
App/Utilities/generateAppURL.js
module.exports = (app) => { return `http://packager${global.RN_VERSION}.rnplay.org/${app.url_token}.bundle`; };
JavaScript
0.000001
@@ -81,32 +81,26 @@ .org -/ $%7Bapp. -url_token%7D. bundle +_path%7D %60;%0A%7D
aea330812e9ac53e9d8c233962f1968750a6fc47
fix bug of fan value
statics/js/gpu_meter.js
statics/js/gpu_meter.js
enchant(); var circluarGraph = function(context,fan,power,memory,temp){ context.clearRect(0,0,228,228); var percent=memory; fan = 360*fan-90; memory = 360*memory-90; temp=360*temp-90; power=360*power-90; createCircle(context, 100, 0.7, 'rgb(64,64,0)', 10...
JavaScript
0
@@ -1822,33 +1822,32 @@ atch(re)%5B0%5D * 0. -0 01;%0A power = @@ -1988,17 +1988,16 @@ %5B0%5D * 0. -0 01;%0A
e5680786bcbe755e57a04c08c6ad376b5fa924cf
add image upload config
plugin.js
plugin.js
/** * We.js plugin config */ var uuid = require('node-uuid'); var log = require('./lib/log')(); module.exports = function loadPlugin(projectPath, Plugin) { var plugin = new Plugin(__dirname); var imageMimeTypes = [ 'image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'image/bmp', '...
JavaScript
0.000001
@@ -496,19 +496,20 @@ %0A -fil +imag e: %7B%0A @@ -505,36 +505,42 @@ mage: %7B%0A -dest +uploadPath : projectPath + @@ -555,19 +555,20 @@ uploads/ -fil +imag es',%0A @@ -576,95 +576,467 @@ -rename: function (fieldname, filename) %7B%0A return Date.now() + '_' + uuid.v1(); +ava...
8196e36895b0271ebc8b6233262e7aed2550ae6b
Add attention notice
module/gtp/controller.js
module/gtp/controller.js
var child_process = require('child_process') var events = require('events') var Response = require('./response') var Controller = function(command, args) { var self = this events.EventEmitter.call(self) self._buffer = '' self.process = child_process.spawn(command, args) self.process.stdout.on('da...
JavaScript
0.000006
@@ -107,16 +107,283 @@ onse')%0A%0A +/**%0A * Attention! The GTP 2.0 draft specifies that the engine%0A * has to respond to the commands in the same order as they%0A * come in. Unfortunately, due to the asynchronous nature of%0A * node.js, the %60response%60 event could be handled *not*%0A * in the given order.%0A */%...
3495a7ebebd2be732c28184cb388329cc596b7cd
ALlow more comlex loading patterns.
howler.js
howler.js
var howler = (function() { // Batch loading variables (only one batch can be loaded at a time for the moment) var counter, target; var batching = false; var callback; // Template loading variables var loaded = false; var path; var templates = {}; return { /// init...
JavaScript
0
@@ -177,16 +177,32 @@ allback; +%0A var Q = %5B%5D; %0A%0A // @@ -300,28 +300,221 @@ -return %7B%0A /// +function clear_Q() %7B%0A if (Q.length !== 0) %7B%0A var t = Q.shift();%0A howler.batch(t%5B0%5D, t%5B1%5D);%0A %7D%0A %7D%0A%0A return %7B%0A //...
25b8e11c29528121341a71ffde84bfd7ed73479d
add small check
initializer.js
initializer.js
function getCacheBuster(bust) { return (bust ? "?_t=" + (new Date()).getTime() : ""); } function isArray(obj) { if (Array.isArray) { return Array.isArray(obj); } else { return "[object Array]" === Object.prototype.toString.call(obj); } } function addJsScript(src, id, bust, async, i...
JavaScript
0
@@ -2115,16 +2115,25 @@ (scripts +, options ) %7B%0A @@ -2340,16 +2340,381 @@ spec%5B1%5D; +%0A if (spec%5B6%5D) %7B%0A spec%5B6%5D = JSON.parse(spec%5B6%5D);%0A %7D%0A%0A if (options) %7B%0A if (!spec%5B6%5D) %7B%0A spec%5B6%5D = %7B%7D;%0A %7...
04e69426b4f101dc15b62c395ab10d00a0466cd7
Update version to 1.0.1 for release
inject.user.js
inject.user.js
// ==UserScript== // @name Steam Link Fixer // @namespace KovuTheHusky // @version 1.0.0 // @description Replace onclick attributes with actual links on Steam pages. // @author KovuTheHusky // @match http://steamcommunity.com/app/*/guides* // @grant none // @updateURL https://raw...
JavaScript
0
@@ -96,17 +96,17 @@ 1.0. -0 +1 %0A// @des
1662368c8278518daf8bd21661bc77a13e6c9b37
fix tests
js/registry.js
js/registry.js
/** * Patterns registry fork - Central registry and scan logic for patterns * * Copyright 2012-2013 Simplon B.V. * Copyright 2012-2013 Florian Friesdorf * Copyright 2013 Marko Durkovic * Copyright 2013 Rok Garbas */ /* * changes to previous patterns.register/scan mechanism * - if you want initialised class, d...
JavaScript
0.000001
@@ -751,24 +751,43 @@ r, utils) %7B%0A + 'use strict';%0A%0A var log @@ -4478,16 +4478,17 @@ alized') +; %0A
87dc84deded1c9124da0bbd3958da64529828469
Add checklist in localstorage
js/services.js
js/services.js
"use strict"; /* Services */ angular.module( "trelloBlogServices", [] ) .service( "I18n", ["$rootScope", "tmhDynamicLocale", "LOCALES", "config", function ( $rootScope, tmhDynamicLocale, LOCALES, config ) { // By default, use browser language $rootScope.locale = navigator.language.toLocaleLowerCase(...
JavaScript
0
@@ -2974,32 +2974,81 @@ = local.lists;%0A + model.checklists = local.checklists;%0A mode
7233445a26e63396fbb2697b9579a829b51f9ad2
Correct config reference in instructions
js/services.js
js/services.js
/** * These adapters are specific to the MIA's implementation of Griot. You should * overwrite them if you'd like to use your own service to pull data. If you'd * rather manually enter metadata using GriotWP, set config.use_mia_media_meta * and config.use_mia_object_meta to false in config.js. */ /** * miaMediaM...
JavaScript
0.000004
@@ -220,26 +220,26 @@ fig. -use_ mia -_m +M edia -_m +M eta +Active %0A * @@ -254,27 +254,27 @@ fig. -use_ mia -_o +O bject -_m +M eta +Active to
b1cb07ab2b6ce68cfa3827744da0f7ef33e80e62
clean up space
Algorithms/JS/graphs/BreadthFirstTraversal.js
Algorithms/JS/graphs/BreadthFirstTraversal.js
/* * For the example graph below, what is the expected output if we printed each * vertex value from vertex A outwards using: * * a. BREADTH FIRST traversal? * * NOTE: Assume the order of edges will be alphabetical. E.g., Vertex D has edges to * 5 vertices in the following order: B, C, ...
JavaScript
0.000074
@@ -2942,13 +2942,8 @@ FT(g) )%0A -%0A%0A%0A%0A%0A
4988b622c443eec729f6f761166d5a29742cd1ab
Improve scroll position documentation and allow `scrollPos` to be just a number
scroll.js
scroll.js
import isObject from 'vanillajs-helpers/isObject'; import isNumber from 'vanillajs-helpers/isNumber'; import viewport from './viewport'; import isWindow from './isWindow'; import isDOMElement from './isDOMElement'; import inDOM from './inDOM'; import size from './size'; /** * @typedef {Object} ScrollData * @propert...
JavaScript
0
@@ -565,16 +565,369 @@ t.%0A */%0A%0A +/**%0A * @typedef %7BObject%7D ScrollMoveInfo%0A * @property %7BNumber%7D x - Set the scroll X position to this value.%0A * @property %7BNumber%7D y - Set the scroll Y position to this value.%0A * @property %7BNumber%7D byX - Scroll X axis by this amount (only if %60x%60 is not d...
1829a634e947e733eec38f1ea1dfa3e31d818ff5
Add formula dataview test
test/acceptance/dataviews/spatial-filters-test.js
test/acceptance/dataviews/spatial-filters-test.js
'use strict'; require('../../support/test-helper'); const assert = require('../../support/assert'); const TestClient = require('../../support/test-client'); describe('spatial filters', function () { const mapConfig = { version: '1.8.0', layers: [ { type: 'cartodb', ...
JavaScript
0.000001
@@ -908,32 +908,296 @@ %7D%0A + %7D,%0A counter: %7B%0A type: 'formula',%0A source: %7B%0A id: 'a0'%0A %7D,%0A options: %7B%0A column: 'val',%0A operation: 'count'%0A...
1266f6a88101ca8b4c662cc44ed39c237f44bca2
refactor course get edit
back/controllers/courses.ctrl.js
back/controllers/courses.ctrl.js
var models = require('../models'); var coursesCtrl = module.exports = {}; coursesCtrl.list = function (req, res) { models.Course.findAll() .then(function (allCourses) { res.send(allCourses); }); }; coursesCtrl.getCreate = function (req, res) { res.render('courses/create'); }; coursesCtrl.create = ...
JavaScript
0
@@ -711,12 +711,14 @@ .get -Edit +Course = f @@ -730,32 +730,69 @@ on (req, res) %7B%0A + console.log('req.user', req.user);%0A models.Course. @@ -929,31 +929,25 @@ n(function ( -courseS +s ections) %7B%0A @@ -975,20 +975,22 @@ courses/ -edit +single ', %7B%0A @@ -998,17 +998,64 @@ -i +usernam...
08e448e862eac4fbf34b440bdfdf984427dbad6e
Fix issue #14
backbone-super/backbone-super.js
backbone-super/backbone-super.js
// This is a plugin, constructed from parts of Backbone.js and John Resig's inheritance script. // (See http://backbonejs.org, http://ejohn.org/blog/simple-javascript-inheritance/) // No credit goes to me as I did absolutely nothing except patch these two together. (function(Backbone) { Backbone.Model.extend = Backbon...
JavaScript
0
@@ -1145,16 +1145,23 @@ ction()%7B + return parent. @@ -1268,16 +1268,29 @@ , parent +, staticProps );%0A%0A%09%09//
bc5552edcc621047d7d43448996c3cfcca4e2fff
Use ScreenIcon, see phetsims/joist#626
js/sun-main.js
js/sun-main.js
// Copyright 2014-2020, University of Colorado Boulder /** * Main file for the Sun library demo. */ import Property from '../../axon/js/Property.js'; import Screen from '../../joist/js/Screen.js'; import Sim from '../../joist/js/Sim.js'; import simLauncher from '../../joist/js/simLauncher.js'; import Rectangle from...
JavaScript
0
@@ -190,24 +190,79 @@ Screen.js';%0A +import ScreenIcon from '../../joist/js/ScreenIcon.js';%0A import Sim f @@ -936,16 +936,36 @@ urn new +ScreenIcon(%0A new Rectangl @@ -1063,16 +1063,22 @@ eight, %7B +%0A fill: c @@ -1081,18 +1081,26 @@ l: color +%0A %7D )%0A -%7D );%0A%7D;%0A%0A @@ -2094,1...
13947783a7a9c9202811c45f92913aa3ed066bce
fix possible race condition
backend/middlewares/rateLimit.js
backend/middlewares/rateLimit.js
module.exports = async function (req, res) { const method = req.raw.method && req.raw.method.toUpperCase && req.raw.method.toUpperCase() if (method === 'OPTIONS') { // OPTIONS for cors pre-flight. return } var key, max, expire if (req.raw.url.match(/^\/auth\//)) { key = 'rate:auth:' + req.raw.ip ...
JavaScript
0.99855
@@ -287,20 +287,21 @@ key = ' -rate +limit :auth:' @@ -372,12 +372,13 @@ = ' -rate +limit :wag @@ -434,15 +434,17 @@ %7D%0A -var cou +let curre nt = @@ -461,12 +461,12 @@ is2. -incr +llen (key @@ -478,71 +478,12 @@ f (c -ount === 1) %7B%0A redis2.expire(key, expire)%0A %7D%0A else if (cou +urre nt %...
0069243845624baeb4766bd8a3d2d199438eb64e
add card detail badges
js/template.js
js/template.js
TrelloPowerUp.initialize({ 'card-buttons': function(t, options){ return [{ icon: './images/icon-gray.svg', text: 'Time track', callback: function(t){ return t.overlay({ title: 'Time track', url: './overlay.html', args: { user: '' } }); } },...
JavaScript
0
@@ -616,16 +616,96 @@ );%0A %7D,%0A + 'card-detail-badges': function(t, card) %7B%0A return getBadges(t, card);%0A %7D,%0A 'show- @@ -931,9 +931,9 @@ ', 3 -6 +7 );%0A%0A
236a9cf9da2476ae553a2d1afada431e9f7dadbc
Clean up
gui/js/onboarding.window.js
gui/js/onboarding.window.js
const {addFileManagerShortcut} = require('./shortcut') const electron = require('electron') const {dialog, session} = require('electron') const autoLaunch = require('./autolaunch') const defaults = require('./defaults') const {translate} = require('./i18n') const log = require('../../core-built/app.js').default.logger...
JavaScript
0
@@ -1286,16 +1286,17 @@ timeouts +. %0A thi @@ -1430,32 +1430,98 @@ stration-done')%0A + // XXX: Passing this as an event sender is a bit hacky...%0A this.che @@ -4456,69 +4456,8 @@ ) %7B%0A - console.log('checkSyncPath', syncPath, eventSender.send)%0A @@ -4781,22 +4781,65 @@ (error) -...
b1a59cd1f45b50ec0358f1c06592258253bac216
Fix - Configuration is not displayed
app/templates/src/main/webapp/scripts/app/admin/configuration/_configuration.controller.js
app/templates/src/main/webapp/scripts/app/admin/configuration/_configuration.controller.js
'use strict'; angular.module('<%=angularAppName%>') .config(function ($stateProvider) { $stateProvider .state('configuration', { parent: 'admin', url: '/configuration', data: { roles: ['ROLE_ADMIN'] }, ...
JavaScript
0
@@ -991,24 +991,94 @@ nService) %7B%0A + ConfigurationService.get().then(function(configuration) %7B%0A $sco @@ -1096,17 +1096,17 @@ ation = -C +c onfigura @@ -1109,28 +1109,27 @@ guration -Service.get( +;%0A %7D );%0A %7D
82a392e122a47886824fe9be823301a563326221
Change api url
student-backbone/app.js
student-backbone/app.js
var app = { //host: "http://139.162.42.111:3000/api", host: "http://localhost:3000/api", api: function(path) { return app.host + path; }, templateCache: {}, loadTemplates: function(names, callback) { var that = this; var load = function(index) { var name = names[index]; $.get('templates/' + name + ...
JavaScript
0.000001
@@ -6,18 +6,16 @@ pp = %7B%0A%09 -// host: %22h @@ -47,16 +47,18 @@ /api%22,%0A%09 +// host: %22h
ead9c3d9ec4102fa36019b1ed0e92dc485554c11
fix e2e test
test/e2e/collective.loggedout.createOrder.test.js
test/e2e/collective.loggedout.createOrder.test.js
import { download, chromeless } from '../utils'; const WEBSITE_URL = process.env.WEBSITE_URL || "https://staging.opencollective.com"; describe("collective.loggedout.createOrder", () => { let browser; beforeAll(() => browser = chromeless.init()); afterAll(() => chromeless.close(browser)); test("makes a one...
JavaScript
0.000044
@@ -941,18 +941,20 @@ t%5Bname=' -CC +card number'%5D @@ -975,17 +975,13 @@ pe(%22 -Full Name +11/22 %22, %22 @@ -996,13 +996,15 @@ me=' -CCnam +exp-dat e'%5D%22 @@ -1014,35 +1014,33 @@ .type(%2211 -/22 +1 %22, %22input%5Bname=' @@ -1043,16 +1043,11 @@ me=' -CCexpiry +cvc '%5D%22) @@ -1055,34 +1055,36 ...
2b74ea888aebb30b90ad02c73d5753be6a9ecd77
Fix version checking
js/versions.js
js/versions.js
// Simple function for comparing x.y.z versions function cmpVersions (a, b) { var i, l, d; a = a.split('.'); b = b.split('.'); l = Math.min(a.length, b.length); for (i=0; i<l; i++) { d = parseInt(a[i], 10) - parseInt(b[i], 10); if (d !== 0) { return d; } } ...
JavaScript
0
@@ -510,26 +510,28 @@ function get -Ba +Fixe dVersions(ca @@ -934,18 +934,20 @@ -ba +fixe dVersion @@ -1905,18 +1905,20 @@ allback( -ba +fixe dVersion @@ -2128,10 +2128,12 @@ get -Ba +Fixe dVer @@ -2148,18 +2148,20 @@ nction ( -ba +fixe dVersion @@ -2788,18 +2788,20 @@ (typeof -ba +fixe dVersion ...
965b6a4a8b794853eb8a4a284cd10654997a68d0
update example_keys
example_keys.js
example_keys.js
module.exports = { facebook: { FACEBOOK_APP_ID: 'YOUR_FACEBOOK_APP_ID', FACEBOOK_APP_SECRET: 'YOUR_FACEBOOK_APP_SECRET' }, aws: { AWS_ACCESS_KEY_ID: 'AWS_ACCESS_KEY_ID', AWS_SECRET_ACCESS_KEY: 'AWS_SECRET_ACCESS_KEY', AWS_REGION: 'AWS_REGION' }, db: { dev: { host: 'POSTGRES_DEV_H...
JavaScript
0.000002
@@ -282,24 +282,57 @@ %0A dev: %7B%0A + dbName: 'POSTGRES_DBNAME',%0A host: @@ -487,24 +487,57 @@ oduction: %7B%0A + dbName: 'POSTGRES_DBNAME',%0A host:
c3a7c74fe7bbf3b9ac7def1b12374140c84aea67
Convert disclosure to use new view system
views/button/disclosure.js
views/button/disclosure.js
// ========================================================================== // SC.CheckboxView // ========================================================================== require('views/button/button'); /** @class Disclosure triangle button. @extends SC.ClassicButtonView @author Charles Jolley @vers...
JavaScript
0.999502
@@ -255,31 +255,24 @@ @extends SC. -Classic ButtonView%0A @@ -277,48 +277,24 @@ %0A @ -author Charles Jolley %0A @version 1.0 +since SproutCore %0A*/%0A @@ -320,15 +320,8 @@ SC. -Classic Butt @@ -461,16 +461,24 @@ on-view +sc-view button d @@ -532,16 +532,32 @@ class=%22 +sc-button-label label%22%3...
2e700b3d3bb8ab6adf3c40bd58ed9171eee81e6f
change default whatsNew URI to about:objPathString
resource/modules/options.jsm
resource/modules/options.jsm
Modules.VERSION = '1.1.2'; this.keys = [ { id: objName+'-key_mainSidebar', get disabled () { return trueAttribute($('mainKeyset-menu'), 'disabled'); }, get keycode () { return $('mainKeyset-menu').value; }, get accel () { return $('accelCheckboxMain').checked; }, get shift () { return $('shiftCheckboxMain')...
JavaScript
0
@@ -20,9 +20,9 @@ 1.1. -2 +3 ';%0A%0A @@ -2097,44 +2097,8 @@ %7B%0A%09 -// this doesn't work in e10s yet%0A%09// aWin @@ -2177,118 +2177,8 @@ g);%0A -%09aWindow.gBrowser.selectedTab = aWindow.gBrowser.addTab('chrome://'+objPathString+'/content/whatsnew.xhtml');%0A %09aWi
cd7f83d9c59c70df65972a08f5cd19e927fbc076
Fix missing semicolon
amazon_personal_filter.user.js
amazon_personal_filter.user.js
// ==UserScript== // @name Amazon personal filter // @namespace curipha // @description Obscure annoying contents from search result and best sellers // @include https://www.amazon.co.jp/* // @exclude https://www.amazon.co.jp/ap/* // @exclude https://www.amazon.co.jp/mn/* // @excl...
JavaScript
0.999999
@@ -2123,16 +2123,17 @@ %7D%0A %7D +; %0A%0A%0A //
0508ce33c44290aa26e50fc71ca7cbe48fac913b
add bar chart
examples/App.js
examples/App.js
import React from 'react' import { StyleSheet, Text, View, Button } from 'react-native' import PureChart from './pure-chart' export default class App extends React.Component { constructor (props) { super(props) this.generateData = this.generateData.bind(this) this.state = { data: [] } } ge...
JavaScript
0.000001
@@ -671,16 +671,76 @@ ata%7D /%3E%0A + %3CPureChart type=%7B'bar'%7D data=%7Bthis.state.data%7D /%3E%0A
b06a1bfebf4992dc3e430f831bdf8af79f05d499
change to https
jsObfuscate.js
jsObfuscate.js
var Q = require('q'); var http = require('http'); var entities = require('entities'); var querystring = require('querystring'); var htmlparser = require('htmlparser2'); function request(method, postData, reqHeaders) { var deferred = Q.defer(); reqHeaders = reqHeaders || {}; var headers = { ...
JavaScript
0.001234
@@ -33,17 +33,17 @@ var http - +s = @@ -56,16 +56,17 @@ re('http +s ');%0Avar @@ -552,16 +552,17 @@ q = http +s .request @@ -620,10 +620,11 @@ rt: -80 +443 ,%0A
5fcc0840bdf15a5b91d8df6708c0200501b0fb9b
converted to UMD
powwow.js
powwow.js
require(function() { var powwow = {}; powwow.VERSION = '0.1.0'; return powwow; });
JavaScript
0.999999
@@ -1,25 +1,519 @@ -require(function() %7B%0A +(function (root, factory) %7B%0A if (typeof define === 'function' && define.amd) %7B%0A // AMD. Register as an anonymous module.%0A define(%5B%5D, factory);%0A %7D else if (typeof exports === 'object') %7B%0A // Node. Does not work with strict Co...
2731c84d773ecba53f60129f9df3ce7c452f91f4
Test to ensure IIFE case still reports
test/specs/rules/require-line-feed-at-file-end.js
test/specs/rules/require-line-feed-at-file-end.js
var Checker = require('../../../lib/checker'); var assert = require('assert'); describe('rules/require-line-feed-at-file-end', function() { var checker; beforeEach(function() { checker = new Checker(); checker.registerDefaultRules(); }); it('should report no line feed at file end', func...
JavaScript
0
@@ -151,16 +151,17 @@ hecker;%0A +%0A befo @@ -253,24 +253,87 @@ ules();%0A + checker.configure(%7B requireLineFeedAtFileEnd: true %7D);%0A %7D);%0A it(' @@ -320,24 +320,25 @@ %7D);%0A %7D);%0A +%0A it('shou @@ -391,71 +391,8 @@ ) %7B%0A - checker.configure(%7B requireLineFeedAt...
92584915936d96adb5f9ccecbe60ac9fd541453d
Add missing semicolon to example to pass ESLint checks
examples/gps.js
examples/gps.js
"use strict"; var bebop = require("../."); var drone = bebop.createClient(); drone.connect(function() { drone.GPSSettings.resetHome(); drone.WifiSettings.outdoorSetting(1); drone.on("PositionChanged", function(data) { console.log(data); }) });
JavaScript
0.000002
@@ -248,13 +248,14 @@ a);%0A %7D) +; %0A%7D);%0A
3cc0fcdacc5485bc6e60a3fde73d46178496b582
delete unused methods
js/common/view/CoordinatesNode.js
js/common/view/CoordinatesNode.js
// Copyright 2018, University of Colorado Boulder /** * Displays '(x, y)' coordinates for a location. If the location is null, this displays '(?, ?)'. * * @author Chris Malley (PixelZoom, Inc.) */ define( require => { 'use strict'; // modules const graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphin...
JavaScript
0
@@ -1048,16 +1048,37 @@ tend( %7B%0A + decimals: 0,%0A @@ -1196,37 +1196,16 @@ ius: 4,%0A - decimals: 0,%0A @@ -2614,682 +2614,94 @@ %7D;%0A -%0A // @private for use in other methods%0A this.foregroundNode = foregroundNode;%0A this.backgroundNode = backgroundNode;%0A...
ac857b64adf50e353c4f5a7eba2fa5c44bc69f18
Fix delete action of DAOUpdateController broken by b428f48e35840d00a3991a6492371249c0f5bb12
js/foam/u2/DAOUpdateController.js
js/foam/u2/DAOUpdateController.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.000001
@@ -2696,147 +2696,8 @@ %7D,%0A - %5D,%0A%0A listeners: %5B%0A %7B%0A name: 'doBack',%0A framed: true,%0A code: function() %7B%0A this.stack.popView();%0A %7D%0A %7D,%0A @@ -2995,16 +2995,154 @@ %7D%0A %5D,%0A%0A + listeners: %5B%0A %7B%0A name: 'doBack',%0A fr...
6638dec85aac0441237be1a652fe94770713fe30
remove = from flashy regex since all colours are one word anyway
modules/flashy/flashy.js
modules/flashy/flashy.js
/** * Module Name: Flashy * Description: Makes pages with flashing text and that innit. */ var _ = require('underscore')._; var flashy = function(dbot) { this.colourMap = { 'white': 'FFFFFF', 'red': 'FF0000', 'green': '00FF00', 'blue': '0000FF', 'yellow': 'FFFF00', ...
JavaScript
0.000002
@@ -469,23 +469,16 @@ input%5B1%5D -.trim() ;%0A @@ -1113,35 +1113,14 @@ y (%5B -%5Cd%5Cw-%5D+%5B%5Cd%5Cw%5Cs-%5D*)%5B %5D?=%5B %5D? +%5E %5D+) (.+)
16142ad0a34cff4df048bea30f5c3ddf29467fe1
Rename humans to people
src/ggrc/assets/javascripts/components/people_list.js
src/ggrc/assets/javascripts/components/people_list.js
/*! Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: andraz@reciprocitylabs.com Maintained By: andraz@reciprocitylabs.com */ (function (can) { can.Component.extend({ tag: "people-list", ...
JavaScript
0.999999
@@ -720,22 +720,29 @@ ,%0A -humans +mapped_people : %5B%5D,%0A @@ -2082,22 +2082,29 @@ e.attr(%22 -humans +mapped_people %22, this. @@ -2297,22 +2297,29 @@ e.attr(%22 -humans +mapped_people %22), func @@ -2324,20 +2324,21 @@ nction ( -huma +perso n) %7B%0A @@ -2440,20 +2440,21 @@ attrs%22, -huma +p...
3f056ac3a9b83f43704007ff7c566d5bd2206c3a
fix relative paths for bin script
bin/readme-help.js
bin/readme-help.js
#!/usr/bin/env node const fs = require('fs'); const readmeMarkdown = fs.readFileSync('README.md').toString(); require('../index.js')(readmeMarkdown);
JavaScript
0.000002
@@ -39,16 +39,46 @@ ('fs');%0A +const path = require('path');%0A const re @@ -108,16 +108,45 @@ ileSync( +path.relative(process.cwd(), 'README. @@ -149,16 +149,17 @@ DME.md') +) .toStrin
fcc81389a22e19d1ec53fc92ade9e42facf08bca
Fix typo in password validation error message
js/views/RegistrationPagePart1.js
js/views/RegistrationPagePart1.js
import React, { Text, TextInput, View, TouchableWithoutFeedback, Image, ScrollView, Alert, Dimensions, } from 'react-native' import Variables from '../styles/Variables' import Styles from '../styles/Styles' import Color from '../styles/Color' import Button from '../components/Button' import Checkbox ...
JavaScript
0.000126
@@ -1684,37 +1684,35 @@ n 8 and 15 alpha - num -b eric characters' @@ -1914,13 +1914,11 @@ lpha - num -b eric
e17b99645e4a060fc9caabd3622541bf8f1b5d55
Fix travis event if theres a hiccup
events/travis.js
events/travis.js
/*jslint white: true */ /*global State, module, require, console */ /** * Copyright (c) 2014 brian@bevey.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, inclu...
JavaScript
0.998918
@@ -1585,16 +1585,28 @@ if( +(travis) && (travis%5B
d5424e6c1e33c102992139d2716051214f8115ee
add link to find more examples
example-tonic.js
example-tonic.js
octo = require('octokat')(/* Config options would go here */) // Fetch the info for a repository repoInfo = await octo.repos('philschatz/octokat.js').fetch() // Fetch all the open issues for a repository (2 methods): // 1. Directly //openIssues = await octo.repos('philschatz/octokat.js').issues.fetch({state: 'open'}...
JavaScript
0
@@ -506,8 +506,100 @@ tle; %7D)%0A +%0A%0A// For more examples see https://github.com/philschatz/octokat.js/blob/master/examples.md%0A
df3ba94bf9b24fcb8e5264e42c603f6c38a0ce06
remove unused computed prop
ui/src/components/checkbox/use-checkbox.js
ui/src/components/checkbox/use-checkbox.js
import { h, ref, computed, getCurrentInstance } from 'vue' import useQuasar from '../../composables/use-quasar.js' import useDark, { useDarkProps } from '../../composables/use-dark.js' import useSize, { useSizeProps } from '../../composables/use-size.js' import useRefocusTarget from '../../composables/use-refocus-targ...
JavaScript
0.000001
@@ -974,28 +974,8 @@ ean, -%0A fontSize: String, %0A%0A @@ -2132,127 +2132,8 @@ )%0A%0A - const labelStyle = computed(() =%3E%0A props.fontSize !== void 0%0A ? %7B fontSize: props.fontSize %7D%0A : %7B%7D%0A )%0A%0A co @@ -5581,41 +5581,8 @@ kip%60 -,%0A style: labelStyle.value %0A
d676ebaca2e2d8ab6b70b9ca6a93c03657747cdc
Compress diffChildren further
src/diff/children.js
src/diff/children.js
import { diff, unmount } from './index'; import { coerceToVNode, Fragment } from '../create-element'; import { EMPTY_OBJ, EMPTY_ARR } from '../constants'; import { removeNode } from '../util'; /** * Diff the children of a virtual node * @param {import('../internal').PreactElement} parentDom The DOM element whose * ...
JavaScript
0.000047
@@ -3915,23 +3915,11 @@ Node -==null ? null : + && old
b673f54028a912ef81ab7f67ee368eccb7a3e827
add a hook for choosing push/replace state
route/pushstate/pushstate.js
route/pushstate/pushstate.js
steal('can/route', function() { "use strict"; if(window.history && history.pushState) { var getPath = function() { return location.pathname + location.search; }; // popstate only fires on back/forward. // To detect when someone calls push/replaceState, we need to w...
JavaScript
0.000001
@@ -2083,38 +2083,33 @@ -history.pushState(null, null, +can.route.updateLocation( path @@ -2212,24 +2212,24 @@ options ) %7B%0A - @@ -2292,32 +2292,432 @@ %0A %7D,%0A + /**%0A * This is a blunt hook for updating the window.location.%0A * You may pref...
f1b55074d8722da7456e45c9eceb16d2368702c1
Remove colons from tallies.
johari.js
johari.js
adjectiveArray = [{name: "happy"},{name:"sad"},{name:"angry"},{name:"afraid"}]; Names = new Meteor.Collection("names"); Adjectives = new Meteor.Collection("adjectives"); if (Meteor.isClient) { arrayMinusArray = function(x, y) { return _.without.apply(_, [x].concat(y)); }; Router.map(f...
JavaScript
0.000005
@@ -4309,17 +4309,16 @@ tive + %22 -: (%22 + fr
6ca86e42bf9ce4c57767fb0b2df1bb005277acf6
Simplify example code
example/index.js
example/index.js
require('../'); mapboxgl.accessToken = window.localStorage.getItem('MapboxAccessToken'); var map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/mapbox/streets-v8', center: [-79.4512, 43.6568], zoom: 13 }); var geocoder = new mapboxgl.Geocoder({ position: 'bottom-left' }); var button = docum...
JavaScript
0.999832
@@ -267,37 +267,8 @@ der( -%7B%0A position: 'bottom-left'%0A%7D );%0Av @@ -624,39 +624,8 @@ ) %7B%0A - var result = geocoder.get();%0A co @@ -649,14 +649,22 @@ d', -result +geocoder.get() );%0A%7D
df01727f0995f00f6dc9b8f15ad93aa79f116dc8
reset start-datepicker after setting new end date in admin pool search
src/js/administration/admin-pool-search.controller.js
src/js/administration/admin-pool-search.controller.js
app.controller('AdminPoolSearchController', ['moment', '$scope', '$timeout', 'administrationRestService', 'globalMessagesService', '$filter', function(moment, $scope, $timeout, administrationRestService, globalMessagesService, $filter) { 'use strict'; $scope.roles = []; $scope.expenseStates = []; $scope.form = {};...
JavaScript
0
@@ -1647,68 +1647,78 @@ ();%0A +%0A %09%09%09 -jQuery('.datepicker-start-time').datetimepicker('destroy' +var newMaxDate = moment($filter('getISODate')($scope.form.endTime) );%0A%09 @@ -1759,85 +1759,46 @@ .dat -etimep +a('DateTimeP icker -(%22change%22, %7B maxDate: $filter('getISODate')($scope.form.endTime) %7D ...
88e5ad6a6a88dbc6cd5cb92c63cb06e3dd93d637
fix baseurl override
bin/tonic-site-generator-cli.js
bin/tonic-site-generator-cli.js
#!/usr/bin/env node var path = require('path'), confPath = process.cwd() + '/' + process.argv[2], config = require( confPath ), baseDir = path.dirname(confPath), resetWeb = require('../src/reset-site'), jekyll = require('../src/jekyll'), mdoc = require('../src/mdoc'), docco = require('../s...
JavaScript
0
@@ -561,16 +561,20 @@ config. +ctx. baseurl
af9319e52e893cdedd595062a0a8155bdd3e31a2
fix whitespace
src/dom/Draggable.js
src/dom/Draggable.js
/* * L.Draggable allows you to add dragging capabilities to any element. Supports mobile devices too. */ L.Draggable = L.Class.extend({ includes: L.Mixin.Events, statics: { START: L.Browser.mobileWebkit ? 'touchstart' : 'mousedown', END: L.Browser.mobileWebkit ? 'touchend' : 'mouseup', MOVE: L.Br...
JavaScript
0.999999
@@ -985,16 +985,10 @@ %09%09%0D%0A - +%09%09 L.Do
c19b8a3beea7d2aac5936eed9cc5b28d66a4641d
Clean up bin/test-client.js
bin/test-client.js
bin/test-client.js
#!/usr/bin/env node var socketio = require('socket.io-client'), request = require('request'); var event = { type: 'click', target: 'node12', bubbles: true, cancelable: true, view: null, detail: 1, screenX: 2315, screenY: 307, clientX: 635, clientY: 166, ctrlKey: false, ...
JavaScript
0.000004
@@ -854,47 +854,8 @@ ');%0A - //(function sendEvent () %7B%0A @@ -907,107 +907,8 @@ t);%0A - // process.nextTick(sendEvent);%0A //setTimeout(sendEvent, 5);%0A //%7D)();%0A @@ -1051,56 +1051,8 @@ t);%0A - console.log(%22Processed event: %22 + num);%0A
aa1e0ef687698bf2de777f0a06c304627be94968
Fix user activity load more
js/forum/src/components/activity-page.js
js/forum/src/components/activity-page.js
import UserPage from 'flarum/components/user-page'; import LoadingIndicator from 'flarum/components/loading-indicator'; import ActionButton from 'flarum/components/action-button'; export default class ActivityPage extends UserPage { /** */ constructor(props) { super(props); this.user = m.prop(); t...
JavaScript
0
@@ -1103,20 +1103,21 @@ Results( -star +offse t) %7B%0A @@ -1190,21 +1190,30 @@ ,%0A -start +page: %7Boffset%7D ,%0A
ff53f18fbb0fe8d3bc313a3e781bfbfb827d0a1c
Update formatScripts.js
static/scripts/formatScripts.js
static/scripts/formatScripts.js
var paragraphMinSentences=4, paragraphMaxSentences=12, sentenceMinWords=4, sentenceMaxWords=12, lineWordMin=1, lineWordMax=7, stanzaLineMin=2, stanzaLineMax=8; function gimmeNormal(myString, numParagraphs, numWords){ numWords=numWords||300000000; var formattedText=''; var mySentences=sentenceize(myString, se...
JavaScript
0.000001
@@ -733,17 +733,40 @@ aphs);%0A%09 -%09 +%0A%09console.log(myString); %0A%09format @@ -880,32 +880,8 @@ s);%0A -%09console.log(myString);%0A %09myS
c5dd1771dbb85286b8c2343b6beae36a00a6e629
Update app.js
js/app.js
js/app.js
var tools = [ { name:'HSOptimizer', src:'http://hsoptimizer.github.io/ancient/' }, { name:'Philni\'s Optimizer', src:'http://philni.neocities.org/ancientssoul.html' }, { name:'Ancients Optimizer', src:'http://wieschie.github.io/' }, { ...
JavaScript
0.000002
@@ -1681,16 +1681,17 @@ unction( +e ) %7B%0A @@ -1691,20 +1691,16 @@ %7B%0A e -vent .prevent
36e756e488cac1daff898f4c2a11e4670991af27
Add folded audio scope
js/app.js
js/app.js
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame; window.AudioContext = AudioContext || window.webkitAudioContext; var canvas...
JavaScript
0
@@ -1496,16 +1496,45 @@ eType);%0A + var x0 = canvas.width / 2;%0A var y0 @@ -1727,11 +1727,11 @@ = '# -6aa +399 ';%0A%09 @@ -1992,76 +1992,372 @@ %0A%09%09%09 -break;%0A%09%7D%0A canvas.strokeStyle = %22#0088ff%22;%0A canvas.lineWidth = 1; +var offset = 30;%0A%09%09%09canvasContext.strokeStyle = '#399';%0A%...
a60b2b40ac2738079c2b8b8e431ab64749a4eda2
add the invisible state to the Post.js
models/Post.js
models/Post.js
var keystone = require('arch-keystone'); var transform = require('model-transform'); var Types = keystone.Field.Types; var Post = new keystone.List('Post', { autokey: { path: 'slug', from: 'name', unique: true, fixed: true }, track: true, defaultSort: '-publishedDate', }); Post.add({ name: { label: '網址名稱(英...
JavaScript
0.000001
@@ -590,16 +590,27 @@ archived +, invisible ', defau
1d07153592088ea4e82891e79b5caf7bf5c9894c
update user base model header
models/User.js
models/User.js
var keystone = require('keystone'), Types = keystone.Field.Types; // Create model var User = new keystone.List('User', { track: true, autokey: { path: 'key', from: 'email', unique: true }, map: { name: 'email' }, hidden: true }); // Create fields User.add('Permissions', { permissions: { isVerified: { type: ...
JavaScript
0
@@ -484,15 +484,13 @@ %7D, ' -General +Login Inf @@ -1113,8 +1113,9 @@ = User; +%0A
12a78f3f0c09714d92a8e96c4e05603565bc7fac
Set up store
js/app.js
js/app.js
import React from 'react'; import ReactDOM from 'react-dom'; import Page from './components/Page'; import styles from '../scss/style.scss'; ReactDOM.render( <Page />, document.getElementById('view') );
JavaScript
0.000022
@@ -137,35 +137,221 @@ s';%0A -%0AReactDOM.render(%0A %3CPage / +import %7BcreateStore%7D from 'redux';%0Aimport reducer from './reducer';%0Aimport %7BProvider%7D from 'react-redux';%0A%0Aconst store = createStore(reducer);%0A%0AReactDOM.render(%0A %3CProvider store=%7Bstore%7D%3E%0A %3CPage /%3E%0A %3C/Provider...
c7ee96e1a52899c17b457f49ba1b2b937058ca4b
store datetime for user updates
models/user.js
models/user.js
var config = require('../config'); var mysql = require('mysql'); function User(data) { this.id = data.id ? data.id : ""; this.keyuser = data.keyuser ? data.keyuser : ""; this.last_send = data.last_send ? data.last_send : null; this.notify = data.notify ? data.notify : true; this.dbCon = mysql.crea...
JavaScript
0.000001
@@ -176,69 +176,8 @@ %22%22;%0A - this.last_send = data.last_send ? data.last_send : null;%0A @@ -1100,32 +1100,514 @@ %0A %7D)%0A + %7Delse%7B%0A context.dbCon.query('UPDATE user SET updated=now() WHERE keyuser=?', %5Bcontext.keyuser%5D, function (err, result) %7B%0A ...