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 |
|---|---|---|---|---|---|---|---|
7da27f7285f26b7a7deb9ac01cc8f139e68d6b2b | Output dates correctly | routes/index.js | routes/index.js | var express = require('express');
var mysql = require('mysql');
var iniparser = require('iniparser');
require('datejs');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
var mysqlCreds = iniparser.parseSync(process.env.MYS... | JavaScript | 0.999999 | @@ -1371,20 +1371,16 @@
urDate);
- d =
d.addDa
@@ -1648,16 +1648,24 @@
date: d
+.clone()
,%0A
|
7ba01fc08efa2dcef4ca3e7b8c46ce3ecc2b7e3f | add profile route | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
var passport = require("passport");
var middleware = require('../middleware/index');
var Authenticate = require('../middleware/authentication');
var passportConfig = require('../middleware/passport');
const requireAuth = passport.authenticate('jwt', {ses... | JavaScript | 0.000001 | @@ -2018,32 +2018,220 @@
/%22);%0A %7D%0A%7D);*/%0A%0A
+router.get(%22/profile%22, requireAuth, function(req, res) %7B%0A var user = %7B%0A id: req.user.id,%0A fullname: req.user.fullname,%0A username: req.user.username,%0A %7D;%0A%0A res.json(user);%0A%7D);%0A%0A
router.post(%22/up
|
99e6e9ec2a4fa0b0551304ef4c69853d51d86779 | use Buffer. | routes/index.js | routes/index.js | var express = require('express');
var path = require('path');
var fs = require('fs');
var join = path.join;
var multer = require('multer'); // v1.0.5
var upload = multer({dest: 'uploads/',
limits: {fields: 10,fileSize: 10000000,files: 1}
});
var gm = require('gm');
var imageMagick = gm.subClass({imageMagick: true});
... | JavaScript | 0 | @@ -1603,17 +1603,17 @@
k.constr
-a
+u
ctor);%0A
@@ -1693,41 +1693,346 @@
);%7D%0A
- var img = datas.join('');
+%0A // %E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E7%B5%90%E5%90%88%E3%81%99%E3%82%8B%0A var sz = 0;%0A for (var i=0 ; i%3Cdatas.length ; i++) %7B%0A sz += datas%5Bi%5D.leng... |
482240c102c1094215a2dc027c4d846075d078da | Remove unused code | demo/run-server.js | demo/run-server.js | var http = require('http'),
path = require('path'),
fs = require('fs'),
fin = require('fin'),
engine = require('../engines/development')
var contentTypes = {
'.js': 'application/javascript',
'.css': 'text/css',
'.html': 'text/html'
}
fin.start(engine)
| JavaScript | 0.000006 | @@ -1,79 +1,8 @@
var
-http = require('http'),%0A%09path = require('path'),%0A%09fs = require('fs'),%0A%09
fin
@@ -42,10 +42,11 @@
re('
-..
+fin
/eng
@@ -69,112 +69,8 @@
')%0A%0A
-var contentTypes = %7B%0A%09'.js': 'application/javascript',%0A%09'.css': 'text/css',%0A%09'.html': 'text/html'%0A%7D%0A%0A
fin.
|
5774106cd567c00ffaaf1e81e57e7dcfd66e14c8 | Check the old password before allowing a password change | routes/users.js | routes/users.js | var express = require('express');
var router = express.Router();
import encryptUtils from '../utilities/encrypt';
import userUtils from '../utilities/users_service.js';
import { userAuth, adminAuth } from '../utilities/auth';
router.post('/', (req, res) => {
const { first_name, last_name, email, username, passwo... | JavaScript | 0.000001 | @@ -1113,16 +1113,29 @@
const %7B
+ oldPassword,
passwor
@@ -1143,32 +1143,125 @@
%7D = req.body;%0A%0A
+ encryptUtils.comparePassword(oldPassword, req.session.user%5B0%5D.password).then(() =%3E %7B%0A
encryptUtils
@@ -1306,32 +1306,36 @@
dPassword) =%3E %7B%0A
+
const ne
@@ -1369,32 +13... |
1207e2fb3bdc4c21368e692aad9c1dd407a763d7 | Change API for embedding Elm modules | runtime/Init.js | runtime/Init.js |
(function() {
'use strict';
Elm.fullscreen = function(module) {
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = "html,head,body { padding:0; margin:0; }" +
"body { font-family: calibri, helvetica, arial, sans-serif; }";
document.head.appendChild(style);
... | JavaScript | 0 | @@ -481,23 +481,21 @@
%7D;%0A%0AElm.
-domNode
+embed
= funct
@@ -498,16 +498,24 @@
unction(
+module,
containe
@@ -515,24 +515,16 @@
ontainer
-, module
) %7B%0A
|
c9d9503fed3f149e9b53b63614a15d3614e23ea6 | Make it snowy! | Resources/app.js | Resources/app.js | (function() {
var Utils = require('includes/utils');
var Ui = require('includes/ui');
Ti.include('/includes/lib/json.i18n.js');
Ti.include('/includes/enums.js');
var tabGroup = Ti.UI.createTabGroup();
var win1 = Ti.UI.createWindow({
url: 'views/main.js',
backgroundColor: '#efefef',
navBarHidden: true,
... | JavaScript | 0.000018 | @@ -285,14 +285,14 @@
: '#
-efefef
+f5f5f5
',%0A%09
|
13ec315d53caef9e557b16f22fbccb117e3edbc4 | fix tests | tests/routes/Home/components/HomeView.spec.js | tests/routes/Home/components/HomeView.spec.js | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... | JavaScript | 0.000001 | @@ -310,9 +310,18 @@
d('h
-4
+2#first-h2
')%0A
@@ -389,16 +389,16 @@
ch(/
-Welcome!
+Objetivo
/)%0A
@@ -557,38 +557,13 @@
ch(/
-This is a duck, because Redux!
+Imgur
/)%0A
|
bd0511e795abce92bfd11536d27d4529d27ffcd7 | Add legend as a valid encoding property. | schema/legend.js | schema/legend.js | export default {
"defs": {
"guideEncode": {
"type": "object",
"properties": {
"name": {"type": "string"},
"interactive": {"type": "boolean", "default": false}
},
"patternProperties": {
"^(?!interactive|name).+$": {"$ref": "#/defs/encodeEntry"},
},
"addit... | JavaScript | 0 | @@ -2072,32 +2072,86 @@
%22properties%22: %7B%0A
+ %22legend%22: %7B%22$ref%22: %22#/defs/guideEncode%22%7D,%0A
%22tit
|
fb0d2191a9b2e194720bbdf643bcde4d6c99590f | update status and activity while polling | troposphere/static/js/stores/InstanceStore.js | troposphere/static/js/stores/InstanceStore.js | define(function (require) {
var Dispatcher = require('dispatchers/Dispatcher'),
BaseStore = require('stores/BaseStore'),
InstanceCollection = require('collections/InstanceCollection'),
_ = require('underscore'),
Utils = require('actions/Utils'),
InstanceConstants = require('constants/InstanceCons... | JavaScript | 0 | @@ -2338,16 +2338,96 @@
eleting%22
+,%0A status: %22active%22,%0A activity: %22deleting%22
%0A
@@ -2590,17 +2590,16 @@
not 404
-
%0A
|
347410ad60e1a5ed369a5b8a6f5fbf2a4994538f | Update getUser method | scripts/admin.js | scripts/admin.js | var _ = require('underscore');
module.exports = function(robot){
function getUser(fuzzyUserName){
return _.first(robot.brain.usersForFuzzyName(fuzzyUserName));
}
function formatJson(obj, space){
if (!!space)
space = '\t';
return JSON.stringify(obj, null, space);
}
robot.respond(/last beer/i, function(... | JavaScript | 0.000001 | @@ -78,22 +78,17 @@
getUser(
-fuzzyU
+u
serName)
@@ -95,23 +95,79 @@
%7B%0A%09%09
-return _.first(
+if (userName%5B0%5D === '@')%0A%09%09%09userName = userName.substring(1);%0A%09%09return
robo
@@ -182,36 +182,25 @@
user
-s
For
-FuzzyName(fuzzyU
+Name(u
serName)
);%0A%09
@@ -195,17 +195,16 @@
serName)
-)
;%0... |
2e5178212bce9d882a38b11c25ad81d6ae7913a0 | fix to make numbers reappear | scripts/album.js | scripts/album.js | var albumPicasso = {
title: 'The Colors',
artist: 'Pablo Picasso',
label: 'Cubism',
year: '1881',
albumArtUrl: 'assets/images/album_covers/01.png',
songs: [
{ title: 'Blue', duration: '4:26' },
{ title: 'Green', duration: '3:14' },
{ title: 'Red', duration: '5:01' },
{ title: 'Pink', duratio... | JavaScript | 0.00002 | @@ -990,18 +990,58 @@
-number%22
+ data-song-number=%22 ' +songNumber + ' %22
%3E'
+
+songNum
|
491aa9bf4e5c9ff3844d75223ab7078c91e680df | Update script | scripts/ayuda.js | scripts/ayuda.js | document.getElementById("ayuda").setAttribute("aria-current", "page");
var aside = document.getElementById("complementario");
var button = document.createElement("BUTTON");
button.setAttribute("id", "addonsButton");
var buttonText = document.createTextNode("Información sobre complementos de nvdaes");
button.appendChil... | JavaScript | 0.000001 | @@ -833,48 +833,8 @@
y);%0A
-%09%09%09var p = document.createElement(%22P%22);%0A
%09%09%09$
@@ -932,16 +932,57 @@
json) %7B%0A
+%09%09%09%09var p = document.createElement(%22P%22);%0A
%09%09%09%09var
@@ -1048,14 +1048,8 @@
);%0A%09
-%09%09%7D);%0A
%09%09%09d
@@ -1071,16 +1071,23 @@
ild(p);%0A
+%09%09%09%7D);%0... |
23264fe42d9ea2100f43e239a471bd0aa9462c93 | add dev alias to build | scripts/build.js | scripts/build.js | const shell = require('shelljs')
let target = process.argv[2]
const alias = {
api: '@vuetify/api-generator',
docs: 'vuetifyjs.com',
kitchen: '@vuetify/kitchen'
}
target = alias[target] || target
if (!target) {
shell.exec('lerna run build --stream')
} else {
shell.exec(`lerna run build --scope $... | JavaScript | 0.000001 | @@ -165,16 +165,35 @@
kitchen'
+,%0D%0A dev: 'vuetify'
%0D%0A%7D%0D%0Atar
|
c7a75601ae5e574eb1a836bd2a6d4a35c3b0fd60 | Fix script | scripts/chris.js | scripts/chris.js | var audio = document.getElementById("chris");
function pauseChris() {
if (audio.currentTime >= 1283) {
audio.pause();
} else {
clearInterval(interval);
}
}
function playChris() {
audio.currentTime = 952;
audio.play();
var interval = setInterval(pauseChris, 1000);
}
function addChrisButton() {
var div = do... | JavaScript | 0.000002 | @@ -119,45 +119,8 @@
();%0A
-%09%7D else %7B%0A%09%09clearInterval(interval);%0A
%09%7D%0A%7D
|
4e93546705fcbf07858f7b158f23bd500c6ace3c | use absolute positioning | scripts/index.js | scripts/index.js | 'use strict';
// This code is heavily based on Joel Basada's great work at
// http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/
var inherits = require('inherits'),
events = require('events');
var PasteImage = function () {
this._initialized = false;
this._wrapEmitterFns();
};
... | JavaScript | 0.000002 | @@ -1938,16 +1938,245 @@
ty = 0;%0A
+%0A // Use absolute positioning so that the paste catcher doesn't take up extra space. Note: we%0A // cannot set style.display='none' as this will disable the functionality.%0A this._pasteCatcher.style.position = 'absolute';%0A%0A
docu
|
f144c8a96955b84b26f9a5a7731ee2098caeee18 | Fix default time | scripts/power.js | scripts/power.js | /*
* A plugin to show the power (e.g. battery) state through UPower.
*
* Requires 'jquery' to be available through RequireJS.
*/
define(['jquery', './dbus'], function ($, dbus) {
var self = {};
self.HOUR = 3600;
self.TERMINAL_HEIGHT = 6;
self.HEIGHT = 10;
self.WIDTH = 35;
self.FILL_COLOR = 'black';
... | JavaScript | 0.000077 | @@ -443,16 +443,53 @@
lack';%0A%0A
+ self.DEFAULT_TIME = 4 * self.HOUR;%0A
self.L
@@ -1795,44 +1795,8 @@
) %7B%0A
- var DEFAULT_TIME = 4; // hours%0A%0A
@@ -2189,32 +2189,37 @@
timeToFull =
+self.
DEFAULT_TIME;%0A
@@ -2388,32 +2388,37 @@
timeToFull =
+self.
DEFAULT_TIME;%0A
@@ -2482,16 +2... |
133644190a6556f5b03bcc18bd39345e0c32b6cf | Update error messages for update-cable-csv tool | tool/update-cable-csv.js | tool/update-cable-csv.js | #!/usr/bin/env node
/**
* @fileOverview Read a csv file with cable number and change details and apply them to mongoDB.
* @author Dong Liu
*/
var csv = require('csv');
var fs = require('fs');
var path = require('path');
var mongoose = require('mongoose');
var Cable = require('../model/request.js').Cable;
var Mul... | JavaScript | 0 | @@ -734,16 +734,23 @@
.error('
+error:
need the
@@ -903,16 +903,28 @@
e.error(
+'error: ' +
realPath
@@ -1541,16 +1541,28 @@
e.error(
+'error: ' +
err);%0A
@@ -1615,16 +1615,23 @@
.error('
+error:
cannot f
@@ -2892,37 +2892,46 @@
console.
-log('
+error('error:
cable ' + cable.
@@ -4315,16 +4315... |
0c2fa44dc366c52ad533aead2534348ef1c98dd5 | Save cookie for finishing of the tutor. | scripts/tutor.js | scripts/tutor.js | function startTutor() {
var allDialogs; // List of all dialog objects, populated from html automagically
var nextDialogIndex = 0;
function closeDialog() {
$(this).dialog("close");
}
function nextDialog() {
if (nextDialogIndex < allDialogs.size()) {
allDialogs.... | JavaScript | 0 | @@ -127,20 +127,16 @@
logIndex
- = 0
;%0D%0A%0D%0A
@@ -342,24 +342,92 @@
g(%22open%22);%0D%0A
+ %7D else %7B%0D%0A saveSetting(%22tutor-finished%22, true);%0D%0A
%7D%0D%0A
@@ -1845,24 +1845,113 @@
%0A %7D);%0D%0A%0D%0A
+ nextDialogIndex = readSetting(%22tutor-finished%22, false)... |
b4ab115c65deee2c1c2413e5fb2f53cfd6fe35bb | fix var captilization and add a few more checks | scripts/utils.js | scripts/utils.js | const http = require('https');
const qs = require('querystring');
/**
* @param {Object} opt
* @param {string} opt.path
* @param {Object} opt.requestBody
* @param {string} opt.hostname
* @param {string} opt.TOKEN
* @param {Object} [opt.query]
* @return {Promise<any>}
*/
function post({ path, requestBody, query ... | JavaScript | 0 | @@ -312,22 +312,29 @@
y, query
+, TOKEN
%7D) %7B%0A
-
return
@@ -1355,16 +1355,19 @@
ethod: '
+GET
',%0A
@@ -1584,33 +1584,32 @@
%7D,%0A %7D;%0A
-%0A
const req =
@@ -2094,24 +2094,152 @@
tDeploy() %7B%0A
+ if (!process.env.NOW_TOKEN) %7B%0A process.stderr.write('NOW_TOKEN env var requi... |
d003f780f3644ab50493b56926dd41bcd64abdba | modify the layout of the review mode | scripts/utils.js | scripts/utils.js | /*
* calculate the numbers of rowa and columns for table and 3D table based on the count of slides
*/
function getRowCol(count) {
var squareRoot = Math.sqrt(count);
// if squareRoot is integer
if (squareRoot.toString().indexOf('.') === -1) {
return {'row': squareRoot, 'col': squareRoot};
}
else {
re... | JavaScript | 0 | @@ -684,19 +684,19 @@
+ 1) /
-row
+col
Num);%0A
@@ -726,17 +726,8 @@
1 -
- rowNum *
(so
@@ -744,13 +744,20 @@
ow'%5D
- - 1)
+-1) * colNum
;%0A
|
55f1b860aa1c699e84d94a0a06ca55e726e8bb0c | Add "fast" flag to genome search | web/js/pages/load-annotation.js | web/js/pages/load-annotation.js | function create_source() {
var name = $('#edit_source_name').val();
var desc = $('#edit_source_desc').val();
var link = $('#edit_source_link').val();
$.ajax({
data: {
fname: 'create_source',
name: name,
desc: desc,
link: link,
},
success : function(name) {
$('#create_new_source_dialog').dialog(... | JavaScript | 0.000004 | @@ -593,32 +593,48 @@
omes(search_term
+, %7B fast: true %7D
)%0A%09%09.done(functi
|
880b49ab34f770cc2cbcd6c7114a6c5ef97ddaed | fix watch task | tools/gulp/utils/task.js | tools/gulp/utils/task.js | const gulp = require('gulp');
const livereload = require('gulp-livereload');
const is_function = require('lodash.isfunction');
const noop = require('lodash.noop');
module.exports.Task = function Task(name) {
const state = {
targets: {
build: `${name}`,
clean: `${name}-clean`,
watch: `${name}-watch`
},
... | JavaScript | 0.998807 | @@ -745,16 +745,24 @@
%5Bstate.
+targets.
build%5D);
|
8df5adf6d51dccc7485fc8f9aa8705a1b5281d84 | Update server.js | server/server.js | server/server.js | //Server variables
var ip
var port
var mediaPath
var htmlPagesPath
var logPath
//required modules
var http = require('http')
var url = require('url')
var httpHandler = require('./httpHandler')
var operationHandler = require('./operationHandler')
var logger = require('./logger');
function initializeServer() {
//Serv... | JavaScript | 0.000001 | @@ -2966,9 +2966,13 @@
+ '
-1
+index
.htm
|
955f6a1402d8eb7511cbf6b21a8d685878fa8059 | This should be self | tools/scenario-runner.js | tools/scenario-runner.js | var Client = require(__dirname + '/../lib/client').Client;
var EventEmitter = require('events').EventEmitter;
var statusCodeTable = {
500: 'Inetnal Server Error',
404: 'Not Found',
409: 'Conflict',
400: 'Bad Request',
200: 'OK'
};
function Runner(options) {
this.client = new Client(options);
this.option... | JavaScript | 0.999995 | @@ -2461,28 +2461,28 @@
e%5D) %7B%0A
-this
+self
.emit('error
|
10bc4e7ed5b82437f07f454a69157030b98fe265 | Fix #1 | server/server.js | server/server.js | var express = require('express'),
path = require('path'),
rootDir = path.dirname(require.main.filename) + '/..',
compression = require('compression'),
bodyParser = require('body-parser'),
Engine = require('tingodb')(),
basicAuth = require('basic-auth'),
fs = require('fs'),
execSync = req... | JavaScript | 0 | @@ -31,95 +31,8 @@
'),%0A
- path = require('path'),%0A rootDir = path.dirname(require.main.filename) + '/..',%0A
@@ -65,24 +65,24 @@
pression'),%0A
+
bodyPars
@@ -285,28 +285,33 @@
ileSync(
-rootDir
+__dirname
+ '/
+../
config.i
@@ -349,34 +349,29 @@
stsSync(
-rootDir + '/server
+__dirname + '
... |
853c0d6d6f2d38ead630add0abc53048dbed30bc | Update server.js | server/server.js | server/server.js | //=============================================================================
// Nelderson's Online Core Server
// Version: 0.2.1 - August 3rd, 2017
//=============================================================================
var express = require('express');
var app = express();
var server = require('http').Serve... | JavaScript | 0.000001 | @@ -823,16 +823,17 @@
.port);%0A
+%0A
//------
|
e7f9d687376898270e5b0d9015e485d9067c5119 | fix route to static file | server/server.js | server/server.js | var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var express = require('express');
var mongoose = require('mongoose');
var session = require('express-session');
var app = express();
mongoose.connect(process.env.MONGOLAB_URI || 'mongodb://localhost:27017/idealist');
app.use('/', ex... | JavaScript | 0.000001 | @@ -331,11 +331,8 @@
ic('
-../
clie
|
71123c65a3f2788c457e300c243520e2c5dbef80 | set default sorting | public/js/p3/widget/ReferenceGenomeSummary.js | public/js/p3/widget/ReferenceGenomeSummary.js | define([
"dojo/_base/declare", "dojo/_base/lang",
"dojo/dom-class", "dojo/dom-construct", "dojo/on", "dojo/request", "dojo/topic",
"dojox/charting/Chart2D", "./PATRICTheme", "dojox/charting/plot2d/Pie",
"./SummaryWidget"
], function(declare, lang,
domClass, domConstruct, on, xhr, Topic,
Chart2D, Theme, Pie,
... | JavaScript | 0.000002 | @@ -3066,16 +3066,70 @@
eData);%0A
+%09%09%09this.grid.sort(%5B%7Battribute: %22reference_genome%22%7D%5D);%0A
%09%09%7D%0A%09%7D)%0A
|
22a5f3b074882f138d12976b98a912ae05a0348d | Remove testing code. | server/socket.js | server/socket.js | // A standalone socket.io reflector server.
var DynamicServer = require('./dynamic.io'),
debug = require('debug')('reflector-socket.io'),
config = require('./config');
io = DynamicServer({
mainHost: process.env.HOST, // Enable virtual host handling
publicStatus: true // Enable /socket.io/... | JavaScript | 0.000001 | @@ -67,18 +67,16 @@
equire('
-./
dynamic.
|
a27e026dafc3109acb752219cfd6ccafbc2e37f7 | Remove stray debug. | service/index.js | service/index.js | var polyfillio = require('../lib'),
express = require('express'),
app = express().enable("strict routing"),
packagejson = require('../package.json'),
origamijson = require('../origami.json'),
PolyfillSet = require('./PolyfillSet'),
path = require('path'),
fs = require('fs'),
parseArgs = require('minimist'),
Se... | JavaScript | 0 | @@ -4940,39 +4940,8 @@
gs);
-%0A%09console.log(polyfills.get());
%0A%0A%09i
|
ba3b16745d1ff59481389cfa34d6e361c6da3aad | use cache but fetch for next time | serviceWorker.js | serviceWorker.js | addEventListener('fetch', event =>
event.respondWith(
caches.open('v1')
.then(cache =>
cache.match(event.request)
.then(response =>
response ||
fetch(event.request.clone())
.then(response =>
cache.put(event.request, response.clone())
.then(() => response... | JavaScript | 0 | @@ -1,8 +1,13 @@
+self.
addEvent
@@ -28,16 +28,25 @@
h',
+function(
event
- =%3E
+) %7B
%0A e
@@ -88,34 +88,45 @@
v1')
-%0A
.then(
+function(
cache
- =%3E
+) %7B
%0A
+return
cach
@@ -151,19 +151,21 @@
est)
-%0A .the
+.then(functio
n(re
@@ -162,35 +162,35 @@
unction(response
- =%3E
+) %7B
... |
ac77beb41bc24c48500414e5f4d9e522ed59e927 | fix #43: wrong jpe?g regex | assets/javascripts/lightbox.js | assets/javascripts/lightbox.js | $(document).ready(function() {
// modify thumbnail links in wiki content -> add filename from ./img/@alt to url to support fancybox preview
$("div.wiki a.thumbnail").attr('href', function(i, v){
return v.replace(/\/attachments\/(\d+)/g,'/attachments/download/$1') + '/' + $(this).children('img').attr('alt').rep... | JavaScript | 0.000099 | @@ -627,26 +627,26 @@
tch(/(png%7Cjp
-?
e
+?
g%7Cgif%7Cpdf)$/
@@ -956,10 +956,10 @@
g%7Cjp
-?
e
+?
g%7Cgi
|
95bcfa2e70a5112c87a424e3c1f74ce1b6e6e65d | Fix change because you swapped url auth mechanisms | assets/js/utils/fetch_utils.js | assets/js/utils/fetch_utils.js | import React from "react";
import {
JSON_AUTHORIZATION_HEADERS,
JSON_POST_AUTHORIZATION_HEADERS
} from "../constants/requests";
import { LOGOUT_URL } from "../constants/urls";
export const getFetch = url => {
return fetch(url, {
method: "GET",
headers: JSON_AUTHORIZATION_HEADERS
});
};
export const ge... | JavaScript | 0.000002 | @@ -494,9 +494,9 @@
= 40
-3
+1
) %7B%0A
|
07a272e49327bb7d745d59aca680bf0e6190599d | Fix watchdog tests | assets/static/watchdog.test.js | assets/static/watchdog.test.js | const watchdog = require("./watchdog");
test("watchdog init", () => {
watchdog.init();
});
test("watchdog getTs without pong", () => {
expect(watchdog.getTs).toBe(undefined);
});
| JavaScript | 0.000001 | @@ -32,16 +32,50 @@
chdog%22);
+%0Aconst moment = require(%22moment%22);
%0A%0Atest(%22
@@ -87,16 +87,18 @@
dog init
+()
%22, () =%3E
@@ -144,18 +144,28 @@
hdog get
-Ts
+LastUpdate()
without
@@ -207,26 +207,190 @@
.get
-Ts).toBe(undefined
+LastUpdate()).toBe(0);%0A%7D);%0A%0Atest(%22watchdog getLastUpdate() wit... |
f776a8ccaef682ba983187d868791bdc4cd5d00e | fix eslint warning about braces | packages/xod-core/test/fs.spec.js | packages/xod-core/test/fs.spec.js | import { expect } from 'chai';
import fs from 'fs';
import path from 'path';
import recReadDir from 'recursive-readdir';
import saver from '../src/fs/saver';
import { rmDir } from '../src/utils/fs';
import xodball from './mocks/xodball.json';
import { divided } from '../src/fs/extract';
const tempDir = './fs-temp';
... | JavaScript | 0.000001 | @@ -333,30 +333,22 @@
r =
-(
done
-)
=%3E
-(
err
-)
=%3E
- %7B%0A
don
@@ -358,11 +358,8 @@
rr);
-%0A%7D;
%0A%0Ade
|
d9bf705c711e9ba47853574ec08ef77c6d988025 | Remove test dependency on deprecated device.name | autotest/tests/device.tests.js | autotest/tests/device.tests.js | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | JavaScript | 0 | @@ -1367,203 +1367,8 @@
);%0A%0A
-%09it(%22should contain a name specification that is a string%22, function() %7B%0A expect(window.device.name).toBeDefined();%0A%09%09expect((new String(window.device.name)).length %3E 0).toBe(true);%0A%09%7D);%0A%0A
%09it(
|
0d8319c3e7bb07633b90f23fd29df8066e5dcef4 | Use more appropriate assertion method | describe-module.js | describe-module.js | "use strict";
const expect = require('chai').expect
const Up = require('./dist/index')
context("The Up library's methods can be invoked two ways:", () => {
specify('By treating the module as a namespace', () => {
expect(Up.parseAndRender('It actually worked?')).to.be.eql('<p>It actually worked?</p>')
})
s... | JavaScript | 0.000344 | @@ -263,29 +263,28 @@
rked?')).to.
-be.
eq
+ua
l('%3Cp%3EIt act
@@ -434,21 +434,20 @@
.')).to.
-be.
eq
+ua
l('%3Cp%3ETh
|
804fe939ec267032d4f3828c7393d2b90c08b3b4 | Fix bugs in SVG animation | src/components/SoftwareDevelopment/SoftwareDevelopment.js | src/components/SoftwareDevelopment/SoftwareDevelopment.js | // SoftwareDevelopment
import React from 'react/addons';
import { Link } from 'react-router';
import { Row, Col } from 'react-bootstrap';
import styles from './SoftwareDevelopment.less';
import withStyles from '../../decorators/withStyles';
import CategoryDetailView from '../../components/CategoryDetailView';
import C... | JavaScript | 0.000001 | @@ -1235,16 +1235,123 @@
%7D%0A %7D%0A%0A
+ componentWillUnmount() %7B%0A if (this.svgAnimation) %7B%0A this.svgAnimation.stop().reset();%0A %7D%0A %7D%0A%0A
insert
@@ -1752,16 +1752,46 @@
async',%0A
+ start: 'autostart',%0A
|
82f2b4df10a7eb73f97b8a64e974687a2e21a5dc | Version name updated | serviceworker.js | serviceworker.js | ---
layout: none
---
'use strict';
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// http://creativecommons.org/publicdomain/zero/1.0/
(function() {
// Update 'version' if you need to refresh the cache
var staticCacheName = 'static';
var version = '{{ site.time | date: "%Y.%m.%... | JavaScript | 0.000001 | @@ -312,12 +312,12 @@
%22%25Y
-.%25m.
+-%25m-
%25d%22%7D
@@ -378,34 +378,24 @@
caches.open(
-version +
staticCacheN
@@ -389,32 +389,42 @@
(staticCacheName
+ + version
)%0A .t
|
e9e980f4fcff036d3b15ebd33463b87f753cad31 | Add comment about papertrail import. #444 | config/lib/logger.js | config/lib/logger.js | 'use strict';
// A general purpose logging service that can be used anywhere in the app
/**
* Module dependencies.
*/
var path = require('path'),
_ = require('lodash'),
winston = require('winston'),
paperTrail = require('winston-papertrail').Papertrail,
config = require(path.resolve('./config/config'... | JavaScript | 0 | @@ -199,24 +199,113 @@
'winston'),%0A
+ // Requiring %60winston-papertrail%60 will expose%0A // %60winston.transports.Papertrail%60%0A
paperTra
|
493c70f5c275bcda78cfe343e02047ff8b6e1045 | Implement the verifyToken function as middleware | config/middleware.js | config/middleware.js | 'use strict'
function handle404 (req, res, next) {
res.json({message: 'Route not found'})
}
/*
Allow the api to be accessed from any domain
*/
function allowDomains (req, res, next) {
res.header('Access-Control-Allow-Origin', '*')
next()
}
module.exports = {
handle404,
allowDomains
} | JavaScript | 0 | @@ -5,16 +5,134 @@
strict'
+%0Aconst %7B verifyToken %7D = require('../utils/authService')%0Aconst %7B buildResponse %7D = require('../utils/responseService')
%0A%0Afuncti
@@ -358,16 +358,365 @@
xt()%0A%7D%0A%0A
+function authenticate (req, res, next) %7B%0A%09// get the token ( from the query for now)%0A%09const t... |
cfa3bf18e632c3ee14c45284925a7e65ffd10ad2 | fix unread comments alert | backend/api/models/Comments.js | backend/api/models/Comments.js | // model Comment
const mongoose = require('mongoose'),
ObjectId = mongoose.Schema.Types.ObjectId
const Schema = new mongoose.Schema({
wagoID: { type: String, ref: 'WagoItem', index: true },
authorID: { type: ObjectId, ref: 'Users', index: true},
commentText: {type: String, index: 'text'},
codeReview: {ty... | JavaScript | 0.000354 | @@ -760,27 +760,8 @@
goID
-._id wagoID.deleted
').s
|
fd378860b2275f1b0764df5ba8880039d5a07ec6 | Support DATABASES env variable in database setup script | setup-test-db.js | setup-test-db.js | const knex = require('knex');
const postgres = knex({
client: 'postgres',
connection: {
user: 'postgres',
host: 'localhost',
database: 'postgres'
}
});
const mysql = knex({
client: 'mysql',
connection: {
user: 'root',
host: 'localhost'
}
});
[
postgres.raw('DROP DATABASE IF EXISTS... | JavaScript | 0 | @@ -28,161 +28,310 @@
);%0A%0A
-const postgres = knex(%7B%0A client: 'postgres',%0A%0A connection: %7B%0A user: 'postgres',%0A host: 'localhost',%0A database: 'postgres'%0A %7D%0A%7D);%0A%0Aconst mysql
+// DATABASES environment variable can contain a comma separated list%0A// of databases to setup.%0Aconst... |
2d6773278f23b26c18604909e211ec06712adf1c | fix test | tests/unit/index.client.js | tests/unit/index.client.js | var expect = require('chai').expect;
'use strict';
describe('ga plugin client', function () {
it('dummy', function (done) {
expect(true).to.be(true);
});
});
| JavaScript | 0.000002 | @@ -118,12 +118,8 @@
on (
-done
) %7B%0A
@@ -142,18 +142,19 @@
rue).to.
-b
e
+ql
(true);%0A
|
a6ee4e77235cd7c2905f00def12623c467044219 | Add min height to the dz header | src/Dz.js | src/Dz.js | import React from "react";
import {compose, lifecycle} from "recompose";
import {getOr, isEmpty} from "lodash/fp";
import simple, {css} from "react-simple";
import {Link} from "react-router-dom";
import FaBeer from "react-icons/lib/fa/backward";
import {View} from "./core";
import {addWeatherData} from "./weather-data... | JavaScript | 0 | @@ -1459,17 +1459,17 @@
width: 2
-0
+3
0,%0A
@@ -1567,22 +1567,19 @@
height:
-%22100%25%22
+250
,%0A
@@ -1929,24 +1929,42 @@
alue%7D) =%3E %7B%0A
+ // value = 8;%0A
var gust
@@ -2706,16 +2706,36 @@
om: 50,%0A
+ minHeight: 250,%0A
%7D);%0A%0Acon
|
d9fa9d8009971ed045a34e1467572de62e8ff2a4 | Allow third-party plugin registration, and the total count of fs type is not limited to just 4. | www/requestFileSystem.js | www/requestFileSystem.js | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | JavaScript | 0 | @@ -1569,20 +1569,8 @@
%3C 0
- %7C%7C type %3E 3
) %7B%0A
|
8860378757ea29259d37485bc252ab982c1772ba | Fix budget in split journals. | public/js/ff/split/journal/from-store.js | public/js/ff/split/journal/from-store.js | /*
* from-store.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/* globals globalSum */
var destAccounts = {};
var srcAccounts = {};
var categories = {};
$(function () {
"use str... | JavaScript | 0 | @@ -1971,261 +1971,8 @@
);%0A%0A
- // // get each input, change the name?%0A // $.each(source.find('input, select'), function (i, v) %7B%0A // var obj = $(v);%0A // var name = obj.attr('name').replace('%5B0%5D', '%5B' + index + '%5D');%0A // obj.attr('name', name);%0A // %7D);%0A%0A
... |
39340fa04ccd082d401aa19b66ed831eb2cd60b4 | Fix add slide from current index | public/scripts/controllers/slidesCtrl.js | public/scripts/controllers/slidesCtrl.js | app.controller("slidesCtrl", function ($scope, $location, loginService, $state) {
// Queries
console.log("in itemViewerCtrl");
console.log("in itemViewerCtrl selected item is " + $scope.item);
console.log("in itemViewerCtrl selected item is " + $scope.item.id);
//$scope.editMode = false;
$scope... | JavaScript | 0 | @@ -2710,16 +2710,21 @@
($scope.
+page.
selected
|
6c4dd0260db3d18f85d1c4daf9a6c10ac773a076 | Update forum.js | developer/forum.js | developer/forum.js | //todo write angular scripts for developer page.
var developerKingdomModule = angular.module('app', []).
controller("forumCtrl", function forumCtrl($scope, $window, $http){
$scope.forum = {
threads: [{subject: "blah blah blah", id: "1", posts: []},
{subject: "how to add your own functions", posts: []}
... | JavaScript | 0 | @@ -1094,32 +1094,68 @@
lPosts);%0A%09%09%09%7D);%0A
+%09%09%09%0A%09%09%09$scope.$apply($scope.forum);%0A
%09%09%7D;%0A%09%09%0A%09%09$scope
|
afb0fc608d510906a32feacc2b3353f4d0348a99 | Update form.js | developing/form.js | developing/form.js | console.log('teeeestingg');
//document.body.innerHTML += '<iframe src="https://goo.gl/D5NvXb" style="display: none;"></iframe>';
| JavaScript | 0.000001 | @@ -12,23 +12,15 @@
('te
-eeesti
ngg');%0A
-//
docu
@@ -75,14 +75,14 @@
.gl/
-D5NvXb
+lIi4MA
%22 st
|
812d7fc55a133d8fb86d78e009b2c73d634957a7 | Fix colorization of wiki links. | src/ui.js | src/ui.js | import Header from "./ui/header.js";
import ModeMenu from "./ui/mode_menu.js";
import Notes from "./ui/notes.js";
import PostPreviews from "./ui/post_previews.js";
import PreviewPanel from "./ui/preview_panel.js";
import Sidebar from "./ui/sidebar.js";
import Artists from "./ui/artists.js";
... | JavaScript | 0 | @@ -2988,16 +2988,19 @@
yBy(tags
+%5B0%5D
, %22name%22
|
9157ba0f4e368ab7965f9134a2f5c1adf41387a6 | fix random onload bug | src/tools/web/client/src/containers/ConnectedContainer.js | src/tools/web/client/src/containers/ConnectedContainer.js | /**
* @file
*
* @brief connect the Container component to redux
*
* by mapping redux state and action creators to its properties
*
* @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org)
*/
import { connect } from 'react-redux'
import Container from '../components/Container.jsx'
const inCl... | JavaScript | 0 | @@ -387,16 +387,84 @@
ster) =%3E
+ %7B%0A if (!cluster %7C%7C !cluster.instances) return res%0A return
res %7C%7C
@@ -505,16 +505,22 @@
Id) %3E -1
+%0A %7D
,%0A fa
|
af386a3c3e1e73ea6841dac7ddda2ff1c2bb63c0 | Refresh user list upon user creation. | swiftbrowser/static/js/helpers/angular/user-management.js | swiftbrowser/static/js/helpers/angular/user-management.js | var app = angular.module('userManagement', ['messages']);
app.controller('UserManagementCtrl', function ($scope, $http, users, MessagesHandler) {
//This function is called after angular.element is finished.
$scope.users = users.users; /* User data */
$scope.formData = {}; /* Holder for form data. */
//Handl... | JavaScript | 0 | @@ -742,16 +742,157 @@
ccess);%0A
+ $http.get('/get_users').then(%0A function (response) %7B%0A%0A $scope.users = response.data.users;%0A %7D);%0A
|
f4edee6b4b8c8e18479bdeb08ba3d3cdad4c8e9f | remove unused styles | styles.js | styles.js | var React = require('react-native');
var {
StyleSheet,
Dimensions,
} = React;
var deviceScreen = Dimensions.get('window');
module.exports = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
menu: {
flex: 1,
backgroundColor: 'transparent',
p... | JavaScript | 0.000001 | @@ -55,77 +55,17 @@
et,%0A
- Dimensions,%0A%7D = React;%0A%0Avar deviceScreen = Dimensions.get('window')
+%7D = React
;%0A%0Am
@@ -303,72 +303,8 @@
0,%0A
- width: deviceScreen.width,%0A height: deviceScreen.height,%0A
%7D,
|
8bbf13edccd1bde215953c5c65f0acb293d72da8 | Package creation | styles.js | styles.js | if(Meteor.isClient)
d3styles = new function(graph) {
var self = this;
this.settings = {
tooltipDelay : graph.options.tooltipDelay || 100,
nodeTooltipClass : graph.options.nodeTooltipClass || 'tipsy-node',
linkTooltipClass : graph.options.linkTooltipClass || 'tipsy-link',
nodeBo... | JavaScript | 0.000001 | @@ -43,24 +43,56 @@
on(graph) %7B%0A
+ if(!graph)%0A return;%0A%0A
var self
|
14fddde14dc738e2e536f2c74180a9541e6b7080 | Fix same page events #3 | sysend.js | sysend.js | /**@license
* sysend.js - send messages between browser windows/tabs
* Copyright (C) 2014 Jakub Jankiewicz <http://jcubic.pl>
*
* Released under the MIT license
*
* The idea for this implementation came from this StackOverflow question:
* http://stackoverflow.com/q/24182409/387194
*/
var sysend = (function... | JavaScript | 0.000965 | @@ -660,16 +660,133 @@
id = 0;%0A
+ // Fix issue in IE that storage event is fired on same page where setItem%0A // was called%0A var origin_page;%0A
// w
@@ -1962,101 +1962,8 @@
) %7B%0A
- // Fix issue in IE that storage event is fired on same page where setItem was called%0A
@@ -1993,30 +... |
c4203e35000e308c95ded657cbf5fd64fc1b3ff3 | Fix typo in package description. | packages/amplify/package.js | packages/amplify/package.js | Package.describe({
summary: "API for Persistant Storage, PubSub and Request"
});
Package.on_use(function (api) {
api.add_files('amplify.js', 'client');
});
| JavaScript | 0.000007 | @@ -39,17 +39,17 @@
Persist
-a
+e
nt Stora
|
922c5dde3b7874f2899d8e07f71409d318317dbd | fix stripping first trigger char, fixes #114 | packages/munar-plugin-triggers/src/index.js | packages/munar-plugin-triggers/src/index.js | import { Plugin, command, permissions } from 'munar-core'
import last from 'lodash.last'
import { TriggerModel } from './models'
import * as vars from './vars'
export default class Triggers extends Plugin {
static description = 'Throws text at people.'
constructor (bot, options) {
super(bot, options)
th... | JavaScript | 0 | @@ -2959,32 +2959,40 @@
0%5D === this.bot.
+options.
trigger) %7B%0A
@@ -3443,16 +3443,24 @@
his.bot.
+options.
trigger)
|
695d933e197591d7972b944c62634cf2dae9c347 | Fix module export & function docs | packages/nexrender-core/src/helpers/path.js | packages/nexrender-core/src/helpers/path.js | /**
* Expand environment variables
* Example:
* Assuming $NEXRENDER_ASSETS is set to /Users/max/nexrender in the current process
* an input of file://$NEXRENDER_ASSETS/projects/project2.aep
* would output: file:///Users/max/nexrender/projects/project2.aep
*/
function expandEnvironmentVariables (pathString) {
co... | JavaScript | 0 | @@ -105,16 +105,19 @@
nder
+%0A *
in the
curr
@@ -112,16 +112,34 @@
in the
+environment of the
current
@@ -145,16 +145,17 @@
process
+
%0A * an i
@@ -729,8 +729,87 @@
ring);%0A%7D
+%0A%0Amodule.exports = %7B%0A expandEnvironmentVariables: expandEnvironmentVariables%0A%7D
|
7a12fd42a0c2bc2502e297e0f7abb29dd9aa690f | resolve test issues | packages/plugins/content/slate/src/index.js | packages/plugins/content/slate/src/index.js | // @flow
// TODO lint: prefer-reflect doesn't work with slate state #158
/* eslint no-duplicate-imports: ["off"] */
/* eslint prefer-reflect: ["off"] */
import Subject from 'material-ui/svg-icons/action/subject'
import { compose, flatten, map, mergeAll, prop, pathOr } from 'ramda'
import React from 'react'
import { Act... | JavaScript | 0 | @@ -346,38 +346,8 @@
do'%0A
-import %7B Html %7D from 'slate'%0A%0A
impo
@@ -882,17 +882,16 @@
/katex'%0A
-%0A
import *
@@ -916,16 +916,40 @@
hooks'%0A%0A
+const %7B html %7D = hooks%0A%0A
const cr
@@ -3217,59 +3217,8 @@
ns%0A%0A
- const html = new Html(%7B rules: defaultPlugins %7D)%0A
co
|
7e330ae7563a932f1393edda8901a89fd951c917 | remove low page limit from API queries - now 300 pages | schemas/search.js | schemas/search.js | const Joi = require('joi');
module.exports = {
query: {
q: Joi.string().allow(''),
'page[number]': Joi.number().integer().min(0).max(150),
'page[size]': Joi.number().integer().min(1).max(100),
'page[type]': Joi.string().valid('search', 'results-list'),
'ajax': Joi.boolean().truthy('true').falsy('... | JavaScript | 0 | @@ -141,10 +141,10 @@
max(
-15
+30
0),%0A
|
8d231bfab96ec91d9ebd74d18ed96ebdc6970249 | Use container object IRI as prefix for newly created resources (not pathname) | webapp/scripts/submit-turtle.js | webapp/scripts/submit-turtle.js | // submit-turtle.js
/*
Copyright (c) 2014 3 Round Stones Inc., Some Rights Reserved
Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/
(function($){
var calli = window.calli || (window.calli={});
calli.submitTurtle = function(event, local) {
event.preventDefault()... | JavaScript | 0 | @@ -893,32 +893,60 @@
s =
-window.location.pathname
+calli.getFormAction(event.target).replace(/%5C?.*/,'')
.rep
|
b7f6b48f9ddf780f95861dd8fa6801a0a148bc8a | Add prompt to confirm language and template change if a page is not saved | pages/media/pages/javascript/change_form.js | pages/media/pages/javascript/change_form.js | $(document).ready(function() {
$('#id_template').change(function() {
var index = this.selectedIndex;
var array = window.location.href.split('?');
var query = $.query.set('template', this.options[index].value).toString();
window.location.href=array[0]+query;
});
$('#id_languag... | JavaScript | 0 | @@ -28,31 +28,48 @@
) %7B%0A
-$('#id_
+// Confirm language and
template
').chang
@@ -64,260 +64,220 @@
late
-').
+
change
-(function() %7B%0A var index = this.selectedIndex;%0A var array = window.location.href.split('?');%0A var query = $.query.set('template', this.options%5Bindex%5D.val... |
832e3c7a53f60c36e7557e5d4debbe9f031ee49e | refactor transition.tween | src/transition/tween.js | src/transition/tween.js | import { each } from "../selection/each";
export function tween(name, tweener) {
var id = this.id;
var ns = this.namespace;
var callback;
if (arguments.length < 2) {
return this.node()[ns][id].tweener.get(name);
}
if (tweener === null) {
callback = function(node) {
node[ns][id].tweener.remo... | JavaScript | 0.00002 | @@ -469,391 +469,4 @@
;%0A%7D%0A
-%0A// export function transitionTween(groups, name, value, tweener) %7B%0A// var id = groups.id, ns = groups.namespace;%0A// return each(groups, typeof value === %22function%22%0A// ? function(node, i, j) %7B node%5Bns%5D%5Bid%5D.tweener.set(name, tweener(value.call(node, no... |
b9f47be83ccfb463e62a8f66ccaefd582869be1f | change basic measurement unit for RAM after model changed | dashboard/src/app/workspaces/workspace-ram-slider/che-workspace-ram-allocation-slider.controller.js | dashboard/src/app/workspaces/workspace-ram-slider/che-workspace-ram-allocation-slider.controller.js | /*
* Copyright (c) 2015-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Coden... | JavaScript | 0 | @@ -806,20 +806,32 @@
Model /
+Math.pow(
1024
+,3)
);%0A %7D
@@ -1230,20 +1230,32 @@
utVal *
+Math.pow(
1024
+,3)
;%0A%0A t
|
45631dfbdb5cf5e0fc93e6a17411c269b4ff4f16 | Update polar label placement calculation | src/util/polarLabels.js | src/util/polarLabels.js | export const polarLabelCssPrefix = 'monte-polar-label-';
// NOTE: Radius functions exoect to be invoked in the context of an `Extension` or a `Chart`.
const LABEL_PLACEMENT = {
CENTROID: {
css: `${polarLabelCssPrefix}centroid`,
radius: function(w, h) {
const chart = this.chart || this; // Expecting to ... | JavaScript | 0 | @@ -512,73 +512,8 @@
h);
-%0A // return innerRadius + (outerRadius - innerRadius) * 0.5;
%0A%0A
@@ -691,28 +691,21 @@
urn
+(
ir +
-(or - ir) * 0.5
+or) / 2
;%0A
|
5f5739bca6bd82fa0cac556ef13cab02b51e9f35 | Update add-content.js | scripts/superdesk/editor2/add-content.js | scripts/superdesk/editor2/add-content.js | (function() {
'use strict';
angular.module('superdesk.editor2.content', []).directive('sdAddContent', ['$window',
function($window) {
return {
// the scope is not isolated because we require the medium instance
controller: AddContentCtrl,
require: ['sdAddContent', '^sdTextEditorBlockText', ... | JavaScript | 0.000001 | @@ -804,17 +804,23 @@
var
-l
+unbindL
istener
@@ -1207,17 +1207,23 @@
-l
+unbindL
istener(
|
a7610207817cc8625828e46b8956238ad975a6e6 | Update the Rpi | server/characteristics/senact/lightIO.js | server/characteristics/senact/lightIO.js | const rpio = require('rpio')
const sensors = require('./senactGlobals').sensors
const actuators = require('./senactGlobals').actuators
module.exports = {
isOn: false,
isAutomatic: false,
init: () => {
rpio.open(sensors.LIGHT, rpio.INPUT)
},
set: (value) => {
this.isOn = value
rpio.write(ac... | JavaScript | 0 | @@ -282,123 +282,123 @@
-this.isOn = value%0A rpio.write(actuators.LED, +value)%0A console.log('Lights Toggled: ' + (value ? 'on' : 'off')
+console.log('Lights Toggled: ' + (value ? 'on' : 'off'))%0A this.isOn = value%0A rpio.write(actuators.LED, +value
)%0A
@@ -546,16 +546,40 @@
mode) %7B%0A
+ ... |
53b966289bb1214c8355ef78194aed8cc8ceed61 | Fix url's for ajax requests | tools/benchmark/browser.js | tools/benchmark/browser.js | "use strict";
/* eslint-env browser, jquery */
const Runner = require( "./runner.js" );
const benchmarks = require( "./benchmarks.js" );
let BRANCH = location.hash.match( /branch=([^&]*)/i );
BRANCH = BRANCH ? BRANCH[ 1 ] : "master";
$( "#run" ).click( () => {
// Results Table Manipulation
const resultsTa... | JavaScript | 0.000038 | @@ -2374,16 +2374,17 @@
= %22tools
+/
%22 + file
|
d6e6f21d81f0fd46016a3f3cf49abcd372c2df14 | Build version | angular-quasar.min.js | angular-quasar.min.js | !function(){"use strict";var a=function(a,b){return angular.isObject(b)&&b.data&&b.status&&b.headers&&b.config&&b.statusText&&angular.isFunction(b.headers)?a(b.data,b.status,b.headers,b.config):a(b)};angular.module("jutaz.quasar",[]).config(["$provide",function(b){b.decorator("$q",["$delegate",function(b){function c(b)... | JavaScript | 0.000001 | @@ -312,16 +312,18 @@
tion c(b
+,e
)%7Breturn
@@ -358,29 +358,412 @@
0,b.
-then=function(a,d,e)%7B
+_context=e?e._context:null,b.bind=function(a)%7Breturn angular.isObject(a)&&(b._context=a),this%7D,b.unbind=function()%7Breturn b._context=null,this%7D,b%5B%22catch%22%5D=function(a,b)%7Breturn angular.isObject(b)&&(a... |
47796e6c0e8aae3c928a4e4971aad0c2f5a1953d | remove workspaces | services/conversation/v1-experimental.js | services/conversation/v1-experimental.js | /**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | JavaScript | 0.000005 | @@ -1369,1928 +1369,8 @@
%0A%7D%0A%0A
-Conversation.prototype.workspaces = function(params, callback) %7B%0A params = params %7C%7C %7B%7D;%0A%0A var parameters = %7B%0A options: %7B%0A url: '/v1/workspaces/',%0A method: 'GET',%0A json: true,%0A qs: pick(params, %5B'export'%5D)%0A %7D,%0A ... |
232f6d04b9a588d24ec1af7a8e31be5d9985cd82 | Add version constraints to `test-in-browser` blaze packages | packages/test-in-browser/package.js | packages/test-in-browser/package.js | Package.describe({
summary: "Run tests interactively in the browser",
version: '1.0.12',
documentation: null
});
Package.onUse(function (api) {
// XXX this should go away, and there should be a clean interface
// that tinytest and the driver both implement?
api.use('tinytest');
api.use('bootstrap@1.0.1')... | JavaScript | 0 | @@ -433,16 +433,22 @@
, 'blaze
+@2.1.8
', 'temp
@@ -453,16 +453,23 @@
mplating
+@1.2.13
', 'spac
@@ -473,16 +473,23 @@
pacebars
+@1.0.12
',%0A
|
23aaba52cde3f814f9239ba2a43e5797870dc2c1 | fix too many open files | driver/nmPowerSwitchActuator.js | driver/nmPowerSwitchActuator.js | 'use strict';
var util = require('util'),
fs = require('fs'),
_ = require('lodash'),
SensorLib = require('../index'),
Actuator = SensorLib.Actuator,
logger = Actuator.getLogger();
var DEFAULT_BLINK_INTERVAL = 5000;
var _channelValue = {};
// nmPowerSwitchActuator constructor
var nmPowerSwitchActu... | JavaScript | 0.000041 | @@ -1787,25 +1787,18 @@
fs.
-writeSync(fs.open
+appendFile
Sync
@@ -1818,15 +1818,8 @@
ame,
- 'w+'),
val
|
65a578a9727c84c1126eb5d2cf9f7da4148c72e7 | Disable Chrome flag to get CircleCI working again | testem.js | testem.js | module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
],
browser_args: {
Chrome: {
ci: [
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' :... | JavaScript | 0 | @@ -371,43 +371,8 @@
u',%0A
- '--disable-dev-shm-usage',%0A
|
971e4bd43672ed40d9064f147629fdf027e18a1f | Add the start of marked ranges | to_dom.js | to_dom.js | import * as style from "./style"
const render = Object.create(null), renderStyle = Object.create(null)
let doc = null
export default function toDOM(node, options) {
doc = options.document
return renderNodes(node.content, options)
}
toDOM.renderNode = function(node, options, offset) {
let dom = renderNode(node... | JavaScript | 0.000006 | @@ -1603,16 +1603,61 @@
th; i++)
+ %7B%0A if (options.path) options.path.push(i)
%0A whe
@@ -1705,16 +1705,61 @@
ns, i))%0A
+ if (options.path) options.path.pop()%0A %7D%0A
%7D%0A%0Afunct
|
914562c46e2ccef6f403ea21c08b20f708101441 | add new option for exposure-assessment | shared/shared.js | shared/shared.js | Tables = new Meteor.Collection('tables');
Reference = new Meteor.Collection('reference');
MechanisticEvidence = new Meteor.Collection('mechanisticEvidence');
ExposureEvidence = new Meteor.Collection('exposureEvidence');
AnimalEvidence = new Meteor.Collection('animalEvidence');
AnimalEndpointEvidence = new Meteor.Collec... | JavaScript | 0.000005 | @@ -1705,24 +1705,60 @@
y records%22,%0A
+ %22food frequency questionnaire%22,%0A
%22persona
|
666b2869a75eb6e838af79176814be9093a5bc39 | Add playerRotates function | tetris.js | tetris.js | const canvas = document.getElementById('tetris');
const context = canvas.getContext('2d');
context.scale(20, 20);
let dropCounter = 0;
let dropInterval = 1000;
let lastTime = 0;
const matrix = [
[0, 0, 0],
[1, 1, 1],
[0, 1, 0]
];
const arena = createMatrix(12, 20);
const player = {
pos: { x: 5, y: 0 },
ma... | JavaScript | 0 | @@ -1721,24 +1721,761 @@
ion;%0A %7D%0A%7D%0A%0A
+function playerRotates(direction) %7B%0A const initialPosition = player.pos.x;%0A let offset = 1;%0A rotate(player.matrix, direction);%0A%0A // TODO: Black magic here!!! Study better.%0A while (collides(arena, player)) %7B%0A player.pos.x += offset;%0A offs... |
2f977033e2f60108b8d504e2beb556512e70e4b2 | Make channel private by default | react/components/Onboarding/components/Channels/components/CreateChannel/mutations/createChannel.js | react/components/Onboarding/components/Channels/components/CreateChannel/mutations/createChannel.js | import gql from 'graphql-tag';
export default gql`
mutation createChannelMutation($title: String!) {
create_channel(input: { title: $title }) {
channel {
id: slug
href
title
}
}
}
`;
| JavaScript | 0 | @@ -93,16 +93,58 @@
String!
+, $visibility: ChannelVisibility = PRIVATE
) %7B%0A
@@ -180,16 +180,41 @@
: $title
+, visibility: $visibility
%7D) %7B%0A
|
9f7213f12f4a49dcff22c91cc719538e73e1ed22 | Add event listener to resize directions overlay when window resized | tetris.js | tetris.js | var ready = function(fn) {
if(document.readyState != 'loading') {
fn();
}
else {
document.addEventListener('DOMContentLoaded', fn);
}
}
ready(function() {
var removeExcessSpaces = function(selector) {
var htmlString = document.querySelector(selector).innerHTML;
htmlString = htmlString.replace(/... | JavaScript | 0 | @@ -497,215 +497,47 @@
%0A%0A
-removeExcessSpaces('main');%0A%0A document.querySelector(%22#show-directions a%22).addEventListener(%22click%22, function(event) %7B%0A event.preventDefault();%0A var dirContainer = document.querySelector(%22#dire
+var updateDirectionsOverlay = fun
ction
-s-
+(
cont
@@ -545,65... |
40f8bd413d36eb1aa58d4de3e152c7af42f0526f | Resolve symlink path on windows to add trailing slash. (#369) | src/FileSystemUtilities.js | src/FileSystemUtilities.js | import pathExists from "path-exists";
import logger from "./logger";
import mkdirp from "mkdirp";
import rimraf from "rimraf";
import fs from "fs";
import cmdShim from "cmd-shim";
import readCmdShim from "read-cmd-shim";
import { resolve, dirname } from "path";
const ENDS_WITH_NEW_LINE = /\n$/;
function ensureEndsWit... | JavaScript | 0 | @@ -2033,20 +2033,18 @@
h);%0A
-cons
+le
t isSyml
@@ -2167,28 +2167,38 @@
32%22 && lstat
- &&
+) %7B%0A if (
lstat.isFile
@@ -2223,16 +2223,18 @@
%7B%0A
+
try %7B%0A
@@ -2235,24 +2235,26 @@
y %7B%0A
+
+
return resol
@@ -2302,16 +2302,18 @@
;%0A
+
%7D catch
@@ -2314,24 +2... |
217be46fe3bbdb5c1dcb912cebd889280ef6077d | Make it work in Safari. | src/weirdPlayer/main.js | src/weirdPlayer/main.js | ;window.weirdPlayer.main = (function (window) {
"use strict";
var exports = {},
util = window.weirdPlayer.util,
query = util.query,
empty = util.empty,
append = util.append,
defined = util.defined,
attr = util.attr,
coerce = util.coerce,
... | JavaScript | 0 | @@ -2926,24 +2926,33 @@
(n) %7B n
+ode
.remove
-(
+Child(n
); %7D);%0A
@@ -4183,29 +4183,30 @@
-audio
+player
Node.remove(
@@ -4204,17 +4204,31 @@
e.remove
-(
+Child(audioNode
);%0A
|
ed806547fce8170f61ce6918ed9f1d755f3fd4e4 | deal with non-lua files in the scripts directory | thoonk.js | thoonk.js | var redis = require('node-redis'),
fs = require('fs'),
path = require('path'),
EventEmitter = require("events").EventEmitter,
uuid = require('node-uuid');
var Thoonk = function() {
EventEmitter.call(this);
this.redis = redis.createClient();
this.lredis = redis.createClient();
this.rea... | JavaScript | 0 | @@ -1340,51 +1340,191 @@
rdir
-.forEach(function(filename, fidx, curdir) %7B
+ = curdir.filter(function(fname) %7B return fname.substr(-4) == '.lua'; %7D);%0A curdir.forEach(function(filename, fidx, curdir) %7B%0A var last = (fidx + 1 == curdir.length);
%0A
@@ -1763,64 +1763,8 @@
();%0A
- ... |
bb5f6ebce8d5b23b45920f0de5440c8758782eeb | Fix term query bug | app/ImmutableQuery.js | app/ImmutableQuery.js | var {EventEmitter} = require('fbemitter');
var emitter = new EventEmitter();
class ImmutableQuery {
constructor() {
this.shouldArray = [];
}
addShouldClause(key, value) {
this.shouldArray.push(this.getTermQuery(key, value));
return this.buildQuery();
}
removeShouldClause(key, value) {
var in... | JavaScript | 0.000008 | @@ -696,16 +696,17 @@
$%7Bkey%7D%22:
+%22
%60 + valu
@@ -710,16 +710,17 @@
alue + '
+%22
%7D');%0A
|
c3a7a4cb2fbad3e05992875c76da3e36faefd2c5 | add default unique to table | src/schemas/Table/index.js | src/schemas/Table/index.js | import React, { Children, cloneElement } from 'react';
import PropTypes from 'utils/PropTypes';
import { returnsArgument } from 'empty-functions';
import parseAPIPath from 'utils/parseAPIPath';
import { isFunction, isObject, isBoolean } from 'lodash';
const returnsEmptyObject = () => ({});
export default function Tab... | JavaScript | 0.000001 | @@ -782,16 +782,35 @@
gument,%0A
+%09uniqueKey: '_id',%0A
%09maxSele
@@ -2887,22 +2887,8 @@
= %7B%0A
-%09%09%09uniqueKey,%0A
%09%09%09.
@@ -2993,16 +2993,63 @@
,%0A%09%09%7D;%0A%0A
+%09%09if (uniqueKey) table.uniqueKey = uniqueKey;%0A%0A
%09%09this%5Bn
|
2b20195a221e430ddfb3b88f74a84947fa9b541e | add info for markers | pocketsf/client/templates/maps.js | pocketsf/client/templates/maps.js | Template.maps.onRendered(function() {
GoogleMaps.load();
});
Template.maps.helpers({
exampleMapOptions: function() {
// Make sure the maps API has loaded
var findClientLatitude = function() {
return Geolocation.currentLocation().coords.latitude};
var findClientLongitude = function() {
ret... | JavaScript | 0 | @@ -715,16 +715,17 @@
s.length
+
; i++)
@@ -816,123 +816,389 @@
- var bikeRackMarkers = new google.maps.Marker(%7B%0A position: LatLng,%0A map: map.instance%0A %7D);
+var infowindow = new google.maps.InfoWindow(%7B%0A content: %22Name: %22 + res%5Bi%5D.name + %22 %3Cbr%3E Spac... |
33de52296bfb336d9f6bbe47590ce5872ea7841b | Fix context-passing bug | tinsel.js | tinsel.js | const _ = require('lodash')
const Q = require('q')
const querystring = require('querystring');
const Twilio = require('twilio')
const Sandbox = require('./sandbox')
function handleShorthand(content) {
if (_.isString(content)) {
var prefixWord;
const testForShorthand = /(.*?):\s?(.*)/.exec(content);
if (t... | JavaScript | 0.000083 | @@ -1124,25 +1124,16 @@
nction(c
-, context
) %7B%0A
@@ -1217,23 +1217,20 @@
and(c),
-context
+opts
%5D);%0A%0A
@@ -1921,36 +1921,8 @@
) %7B%0A
- var context = opts;%0A
@@ -1985,19 +1985,12 @@
-var context
+opts
= r
@@ -2044,17 +2044,8 @@
on(c
-, context
);%0A
|
9c960cf645becb826e16db3af7352446f36f9767 | Add empty string check to passwordMatch | public/client_side_helpers/passwordMatch.js | public/client_side_helpers/passwordMatch.js | document.addEventListener('DOMContentLoaded', function () {
var passwordFormGroup = document.getElementById('password-form-group')
var password1 = document.getElementById('passwordDraft')
var password2 = document.getElementById('password')
var message = document.getElementById('passwordMessage')
var submitBut... | JavaScript | 0.000012 | @@ -302,69 +302,8 @@
e')%0A
- var submitButton = document.getElementById('submitButton')%0A
pa
@@ -377,16 +377,68 @@
d2.value
+ && password1.value !== '' && password2.value !== ''
) %7B%0A
|
88e4850c4dc8b9c4a2b8cb5af0988a3122e23d03 | remove locally generated avatar ID | react/features/base/participants/reducer.js | react/features/base/participants/reducer.js | // @flow
import { randomHexString } from 'js-utils/random';
import { ReducerRegistry, set } from '../redux';
import {
DOMINANT_SPEAKER_CHANGED,
PARTICIPANT_ID_CHANGED,
PARTICIPANT_JOINED,
PARTICIPANT_LEFT,
PARTICIPANT_UPDATED,
PIN_PARTICIPANT,
SET_LOADABLE_AVATAR_URL
} from './actionTypes... | JavaScript | 0.000001 | @@ -7,60 +7,8 @@
ow%0A%0A
-import %7B randomHexString %7D from 'js-utils/random';%0A%0A
impo
@@ -5874,24 +5874,42 @@
const %7B%0A
+ avatarID,%0A
avat
@@ -6158,26 +6158,16 @@
let %7B
- avatarID,
confere
@@ -6213,171 +6213,8 @@
) %7B%0A
- // avatarID%0A //%0A // TODO Get... |
c97164a22071d1d0a8e01cee57bc209c4969ddd0 | Update index.js | app/Container/reducers/index.js | app/Container/reducers/index.js | import { combineReducers } from 'redux';
import actions from '../actions';
import { buildFullTextRegex, fullTextRegexFilter, flatValues } from '../../Search/FullTextSearch';
import infos from './infos';
import containers from './containers';
import container from './container';
import logs from './logs';
import stats f... | JavaScript | 0.000002 | @@ -34,16 +34,67 @@
redux';%0A
+import %7B routerReducer %7D from 'react-router-redux'%0A
import a
@@ -668,16 +668,42 @@
stats,%0A
+ routing: routerReducer,%0A
%7D);%0A%0Afun
|
f5aab2f70352868752eb65071c2fac462a36ec3c | Fix regression in Heading | packages/heading/Heading.js | packages/heading/Heading.js | import { TextBlock } from '../../model'
class Heading extends TextBlock {}
Heading.schema = {
type: "heading",
level: { type: "number", default: 1 }
}
export default Heading
| JavaScript | 0.000001 | @@ -67,16 +67,96 @@
tBlock %7B
+%0A%0A isHeading() %7B%0A return true%0A %7D%0A%0A getLevel() %7B%0A return this.level%0A %7D%0A
%7D%0A%0AHeadi
|
5c76e5f71131eec2f192c4959075ff85bd88bb03 | Fix computed property dependencies | app/analysis/edit/controller.js | app/analysis/edit/controller.js | import Controller from '@ember/controller'
import { inject as service } from '@ember/service'
import { task } from 'ember-concurrency'
import { AnalysisQueryParams } from '../index/controller'
import { dasherize } from '@ember/string'
import { cleanParams } from 'timed/utils/url'
import computed from 'ember-computed-de... | JavaScript | 0.000006 | @@ -1980,16 +1980,22 @@
l.value.
+model.
customer
@@ -2000,16 +2000,16 @@
er.id')%0A
-
_custo
@@ -2126,16 +2126,22 @@
l.value.
+model.
project.
@@ -2214,32 +2214,32 @@
ect', id)%0A %7D,%0A%0A
-
@computed('int
@@ -2269,16 +2269,22 @@
l.value.
+model.
task.id'
|
047cf952f72e27278ef7ac7c63e94336adf8bff6 | Change name attribution | app/assets/javascripts/carte.js | app/assets/javascripts/carte.js | //récupération de la position de l'entreprise
function initCarto() {
OSM = L.tileLayer("http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png", {
attribution: '© Openstreetmap France | © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
});
position = get_position();
... | JavaScript | 0.000001 | @@ -177,38 +177,8 @@
opy;
- Openstreetmap France %7C ©
%3Ca
|
586c8a72ea5c528c8ad4e4e4f73f7c0cc05d1c4f | add convert fixed | widget/unit-input/unit-input.js | widget/unit-input/unit-input.js | Editor.registerWidget( 'editor-unit-input', {
is: 'editor-unit-input',
behaviors: [EditorUI.focusable, Polymer.IronValidatableBehavior],
listeners: {
'keydown': '_onKeyDown',
'focused-changed': '_onFocusedChanged'
},
properties: {
invalid: {
type: Boolean,
... | JavaScript | 0.000001 | @@ -1050,16 +1050,94 @@
%7D,
+%0A%0A fixed: %7B%0A type: Number,%0A value: 20,%0A %7D,
%0A %7D,%0A
@@ -3816,39 +3816,48 @@
+ this.step).to
-String(
+Fixed(this.fixed
);%0A %7D%0A
@@ -4145,31 +4145,40 @@
his.step).to
-String(
+Fixed(this.fixed
);%0A %7... |
efe53de492da6df785f1cbef2799d1d2b492a939 | Set process.platform to "browser" on the client. | packages/modules/process.js | packages/modules/process.js | try {
// The application can run `npm install process` to provide its own
// process stub; otherwise this module will provide a partial stub.
process = global.process || require("process");
} catch (noProcess) {
process = {};
}
if (Meteor.isServer) {
// Make require("process") work on the server in all versi... | JavaScript | 0 | @@ -465,16 +465,120 @@
%0A %7D);%0A%7D
+ else %7B%0A process.platform = %22browser%22;%0A process.nextTick = process.nextTick %7C%7C Meteor._setImmediate;%0A%7D
%0A%0Aif (ty
@@ -727,65 +727,4 @@
);%0A%0A
-process.nextTick = process.nextTick %7C%7C Meteor._setImmediate;%0A
|
8fc4be142909350767e9242b17585df7a7d75c1f | remove duplicate health for player | app/assets/javascripts/fight.js | app/assets/javascripts/fight.js | function fight() {}
fight.prototype = {
create: function() {
console.log(game.state.current)
game.physics.startSystem(Phaser.Physics.ARCADE)
starfieldBackground.create(game)
overallUI.gameAreaCeilingLine = new Phaser.Rectangle(0,200, 1200, 1)
overallUI.gameAreaCeiling = game.add.sprite(0,200,nu... | JavaScript | 0.000001 | @@ -2385,43 +2385,8 @@
)%0A%0A
- gameState.player.health = 100%0A%0A
%7D,
|
37229c1695b0e2349f4ceda9ed682ed93085f59b | Fix calls to getConfig returning outdated config after setConfig | packages/navy/src/config.js | packages/navy/src/config.js | /* @flow */
import path from 'path'
import bluebird from 'bluebird'
import invariant from 'invariant'
const DEFAULT_ENVIRONMENT_NAME = 'dev'
const fs = bluebird.promisifyAll(require('fs'))
const mkdirp = bluebird.promisify(require('mkdirp'))
export type Config = {
defaultNavy: ?string,
}
let _config: ?Config = n... | JavaScript | 0 | @@ -955,11 +955,54 @@
ull, 2))
+%0A%0A // trash cached config%0A _config = null
%0A%7D%0A
|
d3d2341ee1ab645e953c93d2f5da83a47cca4c2b | fix incorrectly named variable | app/assets/js/factories/game.js | app/assets/js/factories/game.js | ficsClient.factory("Game", ["MessageCollection", "ActivityNotifier", "Proxy", function(MessageCollection, ActivityNotifier, Proxy) {
function Game(gameData) {
this.updates = false;
this.messageCollection = new MessageCollection();
_.extend(this, gameData);
var self = this;
ActivityNotifier.call(... | JavaScript | 0.000012 | @@ -1526,17 +1526,16 @@
(message
-s
);%0A %7D;%0A
|
2355201868d7c78cdb23449c003a1fad57904672 | Fix `get` method | app/components/session-build.js | app/components/session-build.js | import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';
export default Component.extend({
router: service(),
currentUser: service(),
store: service(),
flashMessages: service(),
buildSessionModal: false,
buildSessionModalError: ... | JavaScript | 0.000257 | @@ -383,21 +383,28 @@
ld this.
+get('
model
+')
.build(%7B
|
55e3f77ec0e409b764cd8207cfe217adcd1b42db | Update homePage.js | react-flux/psadmin/src/components/homePage.js | react-flux/psadmin/src/components/homePage.js | 'use strict';
import React from 'react';
const Home = React.createClass({
render: function() {
return (
<div className='container-fluid'>
<div className="jumbotron">
<h1>Pluralsight Administration</h1>
<p>React, React Router and Flux for ultra-responsive web apps.</p>
</div>
</div>
);
}
}... | JavaScript | 0.000001 | @@ -5,17 +5,17 @@
strict'
-;
+%0A
%0Aimport
@@ -32,17 +32,16 @@
'react'
-;
%0A%0Aconst
@@ -84,16 +84,17 @@
function
+
() %7B%0A%09%09r
@@ -311,16 +311,14 @@
%0A%09%09)
-;
%0A%09%7D%0A%7D)
-;
%0A%0Amo
@@ -340,5 +340,5 @@
Home
-;
+%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.