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 |
|---|---|---|---|---|---|---|---|
b27c4d671a35daf2a6d6cf3c34f3860a8aa25067 | clean up | Gruntfile.js | Gruntfile.js | /* global Buffer */
/**
* When using enketo-core in your own app, you'd want to replace
* this build file with one of your own in your project root.
*/
const nodeSass = require( 'node-sass' );
module.exports = grunt => {
// show elapsed time at the end
require( 'time-grunt' )( grunt );
// load all grunt... | JavaScript | 0.00042 | @@ -1,24 +1,4 @@
-/* global Buffer */%0A
/**%0A
|
edee62cf9acb93032a10e0a77fec3cef400b4d3b | simplify router | specificity-calculator.js | specificity-calculator.js | // Copyright 2013 Lauren Sperber
// https://github.com/lauren/specify-me/blob/master/LICENSE
//
// A more efficient way to calculate selector specificity. If you want to preserve the
// hierarchy of the inputted selectors, try the version called
// specificity-calculator-with-hierarchy.js
;(function (exports) {
//... | JavaScript | 0.005662 | @@ -1211,18 +1211,22 @@
) %7B%0A
-if
+return
(typeof
@@ -1246,30 +1246,17 @@
tring%22)
-%7B%0A return
+?
calcula
@@ -1279,35 +1279,17 @@
put)
-;%0A %7D else %7B
+
%0A
-return
+:
get
@@ -1310,22 +1310,16 @@
input);%0A
- %7D%0A
%7D;%0A%0A
|
0cab79195cf512680a0692c337cd565f64e6666a | Simplify Gruntfile.js. | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Force use of Unix newlines
grunt.util.linefeed = '\n';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
dist: 'dist'
},
less: {
core: {
options: {
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '<%= p... | JavaScript | 0.000001 | @@ -1690,21 +1690,15 @@
%5Cn')
-.concat(
+ +
'%5Cn'
-)
%0A%09%09%09
|
c077f49e237b71f2739e21ff6b6ae83e3ab86e31 | Fix survey saving | client/containers/NomineeSurveyPage.js | client/containers/NomineeSurveyPage.js | import { notification, Tabs } from 'antd';
import React, { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import * as ReactSurvey from 'survey-react';
import { connect } from 'react-redux';
import { map } from 'lodash';
import { NomineeForm, OrganisationForm } from '../components';
imp... | JavaScript | 0.000003 | @@ -1202,44 +1202,96 @@
ine%0A
-%0A
-if (this.props.params.surveyKey
+const %7B surveyKey %7D = this.props.params;%0A%0A if (surveyKey && surveyKey != 'create'
) %7B%0A
@@ -1310,34 +1310,16 @@
e.key =
-this.props.params.
surveyKe
|
5cbbbba4510104f2467efbf5b345f96d96ed13ad | Update core.js | js/core.js | js/core.js | var issuesList;
var issuesHTML;
$(document).ready(function() {
var webURL = window.location.href;
var splitFlag = "http://";
if (webURL.substring(0, 5) == "https") {
splitFlag = "https://";
}
var user = webURL.split(splitFlag)[1].split(".")[0];
user = 'mrzhangxisheng';
//blogListURL... | JavaScript | 0.000001 | @@ -3153,32 +3153,104 @@
comments_url);%0A
+ $(%22#commentsList%22).removeAttr('data_comments_url');%0A
|
5b98fe9409e1c0c2c3d0649f0051b71de96acea3 | remove comment. | js/foundation/foundation.tooltip.js | js/foundation/foundation.tooltip.js | ;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.tooltip = {
name : 'tooltip',
version : '5.0.0',
settings : {
// selector : '.has-tip',
additional_inheritable_classes : [],
tooltip_class : '.tooltip',
append_to: 'body',
disable_for_touch: fals... | JavaScript | 0 | @@ -154,40 +154,8 @@
: %7B%0A
- // selector : '.has-tip',%0A
|
eeddec2c2fc163cd013fdd934d8bd5f2df86ab1b | Update startGekko.js | web/routes/startGekko.js | web/routes/startGekko.js | const _ = require('lodash');
const promisify = require('tiny-promisify');
const moment = require('moment');
const pipelineRunner = promisify(require('../../core/workers/pipeline/parent'));
const cache = require('../state/cache');
const Logger = require('../state/logger');
const broadcast = cache.get('broadcast');
cons... | JavaScript | 0 | @@ -1913,17 +1913,16 @@
ent.log)
-)
%0A r
@@ -3827,8 +3827,9 @@
gekko;%0A%7D
+%0A
|
fb9c7372c794af092ea63f05e4ec901b7574a3f3 | Update ember validation syntax for inline validations | app/controllers/words/new.js | app/controllers/words/new.js | // This is really the creation of
// a new meaning proposal
import Ember from "ember";
import EmberValidations from 'ember-validations';
import ENV from '../../config/environment';
export default Ember.Controller.extend(EmberValidations, {
seqId: null,
proposalId: null,
validations: {
"model.wordName": {
... | JavaScript | 0 | @@ -104,16 +104,29 @@
idations
+, %7Bvalidator%7D
from 'e
@@ -342,25 +342,8 @@
ne:
-EmberValidations.
vali
|
eb0fa952371876f2bcd70317214006051349adb3 | update Gruntfile with layout tasks | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
grunt.initConfig({
clean: {
build: ['build/']
},
copy : {
pub: {
src : 'public/**',
dest : 'build/',
expand : true
},
bower: {
... | JavaScript | 0 | @@ -772,33 +772,36 @@
and (min-width:
-7
+61.2
5em)' // 1200px
@@ -786,35 +786,34 @@
: 61.25em)' //
-120
+98
0px%0A
@@ -872,15 +872,15 @@
-// blog
+gallery
: %7B%0A
@@ -886,27 +886,24 @@
%0A
- //
dest :
@@ -928,20 +928,23 @@
layouts/
-blog
+gallery
-grid.cs
@@ -954,27 +95... |
bc374f4270b08d727de9c997d2be5970fdd9e7b9 | fix jshint warning w/ minor refactor | www/lib/Servers.js | www/lib/Servers.js | /*jshint browser:true, node:true*/
var path = require("path"),
fs = require("fs"),
net = require("net"),
childProcess = require("child_process"),
readline = require("readline"),
gui = process.gui || require("nw.gui"),
async = require("async"),
Config = require("./Config").init(),
Log = require("./Log").init();
... | JavaScript | 0 | @@ -599,20 +599,19 @@
n()%7B%0A%09%09%09
-this
+win
.hide();
@@ -636,20 +636,19 @@
l();%0A%09%09%09
-this
+win
.close(t
|
e695a1f2fcab2367bd0133e0d962945889ca77e9 | Update cross browser permissions | app/src/index.js | app/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import { CrossStorageHub } from 'cross-storage';
import App from './App';
CrossStorageHub.init([
{ origin: /\.appbase.io$/, allow: ['get'] },
{ origin: /hardcore-hoover-0d4fea.netlify.com$/, allow: ['get'] },
{ origin: /localhost:1359$/, allow: ['get'] }... | JavaScript | 0.000001 | @@ -296,9 +296,8 @@
:135
-9
$/,
|
3d0e48094be8249e290459b345783dbbb3721be4 | fix pr input.js | assets/assets/js/purchase/request/input.js | assets/assets/js/purchase/request/input.js | $(document).ready(function() {
$('.input-append.date')
.datepicker({
todayHighlight: true,
autoclose: true,
format: "dd-mm-yyyy"
});
$('.select2').select2({
dropdownAutoWidth : true
});
$('.harga')
// event handler
.change(resizeInput... | JavaScript | 0.998897 | @@ -2049,12 +2049,13 @@
;%0A %7D)
+;
%0A%7D);
|
5230a70f4280e20b6de41f1f988b09e3f4930e30 | remove console.log | src/www/js/cards.js | src/www/js/cards.js | const React = require('react');
const ReactDOM = require('react-dom');
const utilities = require("../../../node_modules/simple-react-utilities/js/utilities.js");
import Filter from './filter.js';
import { Card } from './components/card.js';
import { CardGroup } from './components/card-group.js';
import { ShowHideButto... | JavaScript | 0.000006 | @@ -785,50 +785,8 @@
%7D;%0A%0A
- console.log(this.props.startFilter);%0A%0A
@@ -2480,38 +2480,8 @@
s;%0A%0A
- console.log(this.state);%0A%0A
@@ -3211,35 +3211,8 @@
0;%0A%0A
- console.log(filters);%0A%0A
@@ -6565,65 +6565,8 @@
s%22%3E%0A
- %7Bconsole.log(this.state.save... |
7b9019595bab2776caa6c2f91c4a921f5a6c5921 | Remove unused template reference | webpack.examples.config.js | webpack.examples.config.js | var Bootstrap = require('bootstrap-webpack-plugin')
var path = require('path').join.bind(null, __dirname)
var outputDir = path('build')
var indexEntry = ['./examples/basic/index.js', 'webpack/hot/dev-server']
var jsLoaders = ['react-hot', 'babel']
module.exports = {
entry: {
index: indexEntry
},
output: {... | JavaScript | 0 | @@ -650,53 +650,8 @@
ap(%7B
-%0A template: 'examples/basic/index.html'%0A
%7D)%5D%0A
|
d9237746d2e67797cb6d5bda3d66f2e80292c3d4 | Add error handling to notifications request. | assets/js/components/notifications/dashboard-core-site-alerts.js | assets/js/components/notifications/dashboard-core-site-alerts.js | /**
* DashboardCoreSiteAlerts component.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LIC... | JavaScript | 0 | @@ -1220,16 +1220,167 @@
cations(
+).catch( ( e ) =%3E %7B%0A%09%09%09// eslint-disable-next-line no-console%0A%09%09%09console.warn( 'Error caught while fetching notifications', JSON.stringify( e ) );%0A%09%09%7D
);%0A%0A%09%09th
|
3d986b0616ad6be95a401a8f0000033eead318d9 | Make the connect server bind to all interfaces | Gruntfile.js | Gruntfile.js | // http://stackoverflow.com/questions/13567312/working-project-structure-that-uses-grunt-js-to-combine-javascript-files-using-r
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
localConfig: (function(){
... | JavaScript | 0.000001 | @@ -1304,32 +1304,73 @@
options: %7B%0A
+ hostname: '0.0.0.0',%0A
|
ef7409c05b458f796553a9f5f93b9f88c961923d | Fix #1638 | main/download.js | main/download.js | const currrentDownloadItems = {}
ipc.on('cancelDownload', function (e, path) {
if (currrentDownloadItems[path]) {
currrentDownloadItems[path].cancel()
}
})
function downloadHandler (event, item, webContents) {
var itemURL = item.getURL()
if (item.getMimeType() === 'application/pdf' && itemURL.indexOf('blo... | JavaScript | 0.000001 | @@ -159,16 +159,94 @@
%7D%0A%7D)%0A%0A
+function isAttachment(header) %7B%0A return /%5E%5Cs*attache*?ment/i.test(header)%0A%7D%0A%0A
function
@@ -321,16 +321,79 @@
etURL()%0A
+ var attachment = isAttachment(item.getContentDisposition())%0A%0A
if (it
@@ -516,16 +516,31 @@
) === -1
+ && !attachment
) %7B // ... |
aa2f37e93fa220ccab5a0c3bee1b2ef7d7b91f89 | Update to logging format | js/core.js | js/core.js | /**
* [CORE description]
* @version 0.15
*/
var CORE = function() {
'use strict';
var moduleData = {}
var debug = true;
return {
modules: moduleData,
config: {},
data: {},
events: {},
/**
* Triggers starter logic for all game modules
* @retu... | JavaScript | 0 | @@ -123,19 +123,20 @@
debug =
-tru
+fals
e;%0A%0A
@@ -4758,16 +4758,31 @@
error'%5D(
+JSON.stringigy(
message%5B
@@ -4783,16 +4783,24 @@
ssage%5Bi%5D
+,null,4)
);%0A
@@ -6876,49 +6876,8 @@
) %7B%0A
- console.log('test');%0A
|
fc33737cb2061cf3ac1358960f6ac1bde0b18636 | Split grunt bootlink task into two: one for search.erb and one for all others. | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
prefix: 'public/dist/',
name: '<%= pkg.name.toLowerCase() %>',
//htmllint: {
//options: {
//},
//all: 'views/*'
//},
bootlint: {
... | JavaScript | 0.000006 | @@ -368,84 +368,560 @@
alse
-,%0A relaxerror: %5B%5D%0A %7D,%0A files: 'views/*'
+%0A %7D,%0A main: %7B%0A src: 'views/search.erb'%0A %7D,%0A partials: %7B%0A options: %7B%0A relaxerror: %5... |
32abfe55b412fc899a46e0eed22bee2bc4b08bfd | remove motorRight on open socket connection | app/js/diddyborg.service.js | app/js/diddyborg.service.js | function DiddyborgService() {
'use strict';
let host = window.location.host;
let socket = new WebSocket( 'ws://' + host + '/motor' );
let connected = false;
socket.onopen = function(event) {
console.log('Motors connected');
connected = true;
motorRight(80,'token');
socket.onclose = functio... | JavaScript | 0 | @@ -259,36 +259,8 @@
rue;
-%0A motorRight(80,'token');
%0A%0A
|
2efcf11261c044d752ed6c517d0ff6682675fcaa | Update jshint in Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
// Project configuration.
//noinspection JSUnresolvedFunction
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
' * <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("y... | JavaScript | 0 | @@ -4781,17 +4781,16 @@
ckstyle'
-%5D
, 'jasmi
@@ -4797,13 +4797,14 @@
ne_node'
+%5D
);%0A%7D;
|
97b63827d292f891abbc3fc8a05773839f4e24b1 | Update GUI | assets/src/js/components/PageActionForm.js | assets/src/js/components/PageActionForm.js | 'use strict'
import React, { Component, PropTypes } from 'react'
export default class PageActionForm extends Component {
constructor (props) {
super(props)
}
renderForm () {
const { id, version, onBumpVersion } = this.props
return (
<div className='col-xs-12' style={{paddingTop: '75px'}}>
... | JavaScript | 0.000001 | @@ -165,26 +165,27 @@
%0A %7D%0A%0A
-renderForm
+bumpVersion
() %7B%0A
@@ -198,19 +198,104 @@
t %7B
-id,
+onBumpVersion %7D = this.props%0A if(confirm('Are you sure you want save and create a new
version
, on
@@ -290,17 +290,20 @@
version
-,
+?'))
onBumpV
@@ -300,32 +300,81 @@
)) onBumpVersion
+()%... |
3df624f9564d397f9e3349e2d49f6a93216adcbe | Define module.exports in require | runtime_library/module.js | runtime_library/module.js | (function(context){
'use strict';
// This regex is from the Node.js source code:
// https://github.com/joyent/node/blob/b9bec2031e5f44f47cf01c3ec466ab8cddfa94f6/lib/path.js#L308-L311
var PATH_SPLITTER_REGEX = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/i;
/**
* Load a module or javasc... | JavaScript | 0 | @@ -1592,16 +1592,29 @@
dule = %7B
+ exports: %7B%7D
%7D;%0A v
@@ -2463,16 +2463,17 @@
code + '
+;
%7D)(modul
@@ -2481,16 +2481,24 @@
, module
+.exports
, requir
|
eea95f1ecb4bfeab6dc7e3339cc71bf9284ae501 | Stop search results that get out of order overwriting subsequent requests | app/js/directives/search.js | app/js/directives/search.js | formsAngular.controller('SearchCtrl', ['$scope', '$http', '$location', function ($scope, $http, $location) {
$scope.handleKey = function(event) {
if (event.keyCode === 27 && $scope.searchTarget.length > 0) {
$scope.searchTarget = '';
} else if ($scope.results.length > 0) {
s... | JavaScript | 0 | @@ -99,24 +99,54 @@
ocation) %7B%0A%0A
+ var currentRequest = '';%0A%0A
$scope.h
@@ -2067,32 +2067,71 @@
e.length %3E 0) %7B%0A
+ currentRequest = newValue;%0A
$htt
@@ -2186,24 +2186,230 @@
on (data) %7B%0A
+ // Check that we haven't fired off a subsequent request, in w... |
7bd2f4153fd88e488b93f949452e148f7b4354fd | fix mongoose hidden | app/initializers/mongoose.js | app/initializers/mongoose.js | 'use strict';
//dependencies
const path = require('path');
const environment = require('execution-environment');
const conf = require('config');
const winston = require('winston');
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
// mongoose.set('debug', true);
const mongooseShow =
require(p... | JavaScript | 0.000006 | @@ -1158,24 +1158,27 @@
populate');%0A
+//
const mongoo
@@ -1217,16 +1217,19 @@
den')(%7B%0A
+//
defaul
@@ -1239,20 +1239,23 @@
dden: %7B%0A
+//
+
password
@@ -1258,24 +1258,27 @@
word: true,%0A
+//
__v: tru
@@ -1276,24 +1276,27 @@
__v: true,%0A
+//
__t: tru
@@ -1301,13 +1301,19 @@
rue%... |
f8d70c4063a57336bb65e0b024fa096c0a56045d | Fix Gruntfile.js | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.config.init({
targetDir: './test/sandbox/public',
nodeModulesPath: __dirname + "/node_modules"
});
grunt.loadTasks('./test/sandbox/public/modules/Core');
grunt.registerTask('default', ['yawik:core']);
gr... | JavaScript | 0.000075 | @@ -211,17 +211,20 @@
unt.
-loadTasks
+file.recurse
('./
@@ -254,68 +254,162 @@
ules
-/Core');%0A grunt.registerTask('default', %5B'yawik:core'%5D
+',function(absPath,rootDir,subDir,fileName)%7B%0A if('Gruntfile.js' === fileName)%7B%0A grunt.loadTasks(rootDir+'/'+subDir);%0A %7D%0A %7D... |
41dc1f6d61c18b7beb28a525180a748e37e4479a | Remove TODOs | test/plugins/handlebars.js | test/plugins/handlebars.js | var fs = require('fs'),
fu = require('../../lib/fileUtil'),
handlebars = require('handlebars'),
lib = require('../lib'),
sinon = require('sinon');
describe('handlebars plugin', function() {
// TODO : More explict test for normal output
// TODO : Precompiled test with mocks
var readFile = fs.readF... | JavaScript | 0.000001 | @@ -204,96 +204,8 @@
) %7B%0A
- // TODO : More explict test for normal output%0A // TODO : Precompiled test with mocks%0A
va
|
46cdc476c4666262bbb60465a1ffb5242214215e | Make accuracy test more lenient | test/spec/test-correctingInterval.js | test/spec/test-correctingInterval.js | /* jshint expr: true */
describe('setCorrectingInterval', function() {
var noop = function() { };
it('should be defined', function() {
expect(setCorrectingInterval).to.be.ok;
});
it('should return a unique id', function() {
var iter = 5,
defined = {};
for (var i = 0; i < iter; i++) {
... | JavaScript | 0.000002 | @@ -1225,18 +1225,18 @@
delay =
-20
+15
0,%0A
@@ -1295,22 +1295,78 @@
ousDelay
-;%0A%0A
+,%0A intervalId;%0A%0A this.timeout(5000);%0A%0A intervalId =
setCorr
@@ -1621,23 +1621,86 @@
sDelay)
-done();
+%7B%0A done();%0A clearCorrectingInterval(intervalId);%0A %7D
%0A p... |
2c075b00aac6fb54ddb59da4e66f62324b8999ff | Build output is now called isaac-app.tar.gz | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var distOutputDir = "dist";
var distOutputFile = "app.tar.gz";
var requestLogger = function(req) {
console.log('[%s] %s', (new Date).toUTCString(), req.url.cyan);
}
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
... | JavaScript | 0.000001 | @@ -83,16 +83,22 @@
File = %22
+isaac-
app.tar.
|
5697e1a5520c8a03b3f337a87fcc42cf09fcebdd | Package backend .ts sources for vuln snippet lookup | Gruntfile.js | Gruntfile.js | /*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
'use strict'
module.exports = function (grunt) {
const os = grunt.option('os') || process.env.PCKG_OS_NAME || ''
const platform = grunt.option('platform') || process.env.PCKG_CPU_ARCH || ''
const node = grunt.option('node') || p... | JavaScript | 0 | @@ -1201,24 +1201,51 @@
agger.yml',%0A
+ 'server.ts',%0A
@@ -1380,17 +1380,17 @@
'data/*.
-j
+t
s',%0A
@@ -1633,25 +1633,25 @@
'models/*.
-j
+t
s',%0A
@@ -1699,17 +1699,17 @@
outes/*.
-j
+t
s',%0A
|
1f72545fa6c5ec433477899da1b85c5c256c37c8 | Update rockpaperscissors.js | app/js/rockpaperscissors.js | app/js/rockpaperscissors.js | ////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
var randomNumber =... | JavaScript | 0 | @@ -664,32 +664,71 @@
yerMove(move) %7B%0A
+ var move = x%0A if (move = null) %0A
// Write an
|
215eb2e28a932875ac49a375a882d9809a2a9972 | Change GA code | public/js/tracking/google-analytics.js | public/js/tracking/google-analytics.js | /*eslint-disable */
//script from:
//https://analytics.google.com/analytics/web/#management/Settings/a67365892w117922625p123341464/%3Fm.page%3DTrackingCode/
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.g... | JavaScript | 0 | @@ -498,17 +498,17 @@
7365892-
-5
+6
', 'auto
|
92c20d17a2eb5c9f778ea8811640e09adc09cacd | Fix comment. | extensions/visualizations/visualizations.js | extensions/visualizations/visualizations.js | // Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | JavaScript | 0 | @@ -731,12 +731,13 @@
ves
-four
+three
var
@@ -766,43 +766,28 @@
ns',
+ and
%0A// '
-explorationId', and 'stateName
+isAddressed
'. T
@@ -822,19 +822,16 @@
these is
-%0A//
specifi
@@ -838,16 +838,19 @@
c to the
+%0A//
particu
|
bce2021130131e2379a8720e4a90ca2809cd713b | Add file information to projects endpoints | app/routes/projects--get.js | app/routes/projects--get.js | 'use strict';
import Joi from 'joi';
import Boom from 'boom';
import db from '../db/';
module.exports = [
{
path: '/projects',
method: 'GET',
handler: (request, reply) => {
let {page, limit} = request;
let offset = (page - 1) * limit;
Promise.all([
db('projects').count('id'),
... | JavaScript | 0.000001 | @@ -59,31 +59,119 @@
m';%0A
-%0Aimport db from '../db/
+import Promise from 'bluebird';%0A%0Aimport db from '../db/';%0Aimport %7B ProjectNotFoundError %7D from '../utils/errors
';%0A%0A
@@ -531,16 +531,115 @@
= res;%0A
+ return Promise.map(projects, p =%3E attachProjectFiles(p))%0A .then(projects =... |
a5b399939b238bee4edd4fdcb994143a37cc0f30 | rewrite coffee compiliation | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-angular-templat... | JavaScript | 0.999977 | @@ -384,342 +384,189 @@
-files: %7B%0A 'build/chz.js': 'src/chz.coffee',%0A 'build/calendar.js': 'src/calendar.coffee
+ expand: true, // Enable dynamic expansion.%0A cwd: 'src/
',
-%0A
- 'build/datepicker.js': 'src/datepicker.coffee',%0A 'build/date-format.js':... |
5d68b0441e2b4fca1a8f6b069cc1e68940bdcab3 | Disable mod loader test | test/simulator/misc/dex.js | test/simulator/misc/dex.js | 'use strict';
const assert = require('./../../assert');
describe('Mod loader', function () {
it('should work fine in any order', function () {
{
Chat.uncacheTree('./tools');
let Tools = require('./../../../tools');
assert.strictEqual(Tools.mod('gen2').getTemplate('nidoking').learnset.bubblebeam.join(','),... | JavaScript | 0 | @@ -91,16 +91,21 @@
() %7B%0A%09it
+.skip
('should
|
d05ecc0d512c635665d72ffcda2c5c2537fff781 | include plugin files in dist.zip | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
/**
* read optional JSON from filepath
* @param {String} filepath
* @return {Object}
*/
var readOptionalJSON = function (filepath) {
var data = {};
try {
data = grunt.file.readJSON(filepath);
// The concatenated file won't pass one... | JavaScript | 0 | @@ -2076,16 +2076,87 @@
%5D%0A
+ %7D, %7B%0A src : %5B'plugin/*.js'%5D,%0A dest : 'dist/'%0A
|
cea8287f1bf98f2378060b9dfac6c1b29b2d8920 | Change database cache to setTimeout | app/scripts/src/database.js | app/scripts/src/database.js | chrome.promise = new ChromePromise();
const sL = chrome.promise.storage.local;
class DB {
constructor() {
this.cached = {};
setInterval(() => {
for (let key in this.cached) {
delete this.cached[key];
}
}, 60 * 1000);
}
gCached(key) {
// Get item with cached result
let cke... | JavaScript | 0 | @@ -132,67 +132,268 @@
-setInterval(() =%3E %7B%0A for (let key in this.cached) %7B%0A
+this.cleanTimer = null;%0A %7D%0A%0A cleanCache() %7B%0A clearTimeout(this.cleanTimer);%0A this.cleanTimer = setTimeout(() =%3E this._cleanCache(), 60 * 1000);%0A %7D%0A%0A _cleanCache() %7B%0A let keys = O... |
5209f03c912d4b502caccdcab35e217dbec1a620 | Fix linting errors | src/mentionPlugin/MentionSearch/MentionOption/index.js | src/mentionPlugin/MentionSearch/MentionOption/index.js | import React, {
// PropTypes,
Component,
} from 'react';
import styles from './styles';
export default class MentionOption extends Component {
constructor(props) {
super(props);
this.state = {};
}
onMentionSelect = () => {
this.props.onMentionSelect(this.props.mention);
};
onMouseOver = ()... | JavaScript | 0.000075 | @@ -358,16 +358,17 @@
ed: true
+,
%0A %7D);
@@ -437,16 +437,17 @@
d: false
+,
%0A %7D);
|
85e6c3302fb68496c6172174705a558d2fb740a4 | add grunt help description | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
watch: {
'toolkit': {
files: [ 'grunt/js/**/*.js',
'grunt/sass/**/*.scss'
],
tasks: ['compass','jshint','requirejs']
}
},
clean: {
... | JavaScript | 0 | @@ -29,16 +29,155 @@
unt) %7B%0A%0A
+ var cli = grunt.cli;%0A%0A cli.optlist.beautify = %7B%0A %22short%22: %22B%22,%0A info: %22Set beautify on%22,%0A type: String%0A %7D;%0A%0A
grun
|
6b748894a25e185051fcf7af4d531f172a44ed0f | remove logs | public/javascripts/wiktionary.js | public/javascripts/wiktionary.js | var wiki = (function(){
var kanji = "";
var base_url = "https://en.wiktionary.org/w/api.php?";
var commonQueryParams = {
"format" : "json",
"action" : "parse",
"callback" : "?"
};
function buildQuery(queryParams){
var query = base_url;
$.extend(queryParams, commonQueryParams);
... | JavaScript | 0.000001 | @@ -645,84 +645,8 @@
x)%7B%0A
- console.log(this.className);%0A console.log($(this).attr('href'));%0A
|
243755d0e2e05a3e9c50c3860f036faf72a4f34c | Remove debug | wit-ai/my-wit-actions.js | wit-ai/my-wit-actions.js | const moment = require('moment');
const weather = require('./weather');
const actions = {
getWeather: (data) => new Promise((resolve, reject) => {
const context = data.context;
const entities = data.entities;
console.log(data);
const missingLocation = entities.location === undefined;
const locati... | JavaScript | 0.000001 | @@ -217,31 +217,8 @@
es;%0A
- console.log(data);%0A
|
17dc7adbab0845950ed3b90b69612c9d5d8ce80d | Update grunt file with new languages. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
products: {
'argos-saleslogix': {
basePath: '.',
},
'argos-sdk': {
basePath: '../../argos-sdk',
},
},
'lang-pack': {
'de': {
bundleName: "Mobile 3.6 DE"... | JavaScript | 0 | @@ -332,17 +332,20 @@
'e
-s
+n-GB
': %7B%0A
@@ -374,17 +374,20 @@
le 3.6 E
-S
+N-GB
%22,%0A
@@ -397,18 +397,18 @@
%0A '
-pt
+es
': %7B%0A
@@ -440,10 +440,10 @@
3.6
-PT
+ES
%22,%0A
@@ -450,36 +450,36 @@
%7D,%0A 'e
-n-GB
+s-ES
': %7B%0A bun
@@ -500,21 +500,82 @@
le 3.6 ... |
5da2d5708f1020983d7ee7b06720c9dcdf9d8f64 | fix script fee | src/modules/ui/directives/scriptTxForm/ScriptTxForm.js | src/modules/ui/directives/scriptTxForm/ScriptTxForm.js | (function () {
'use strict';
const { SIGN_TYPE } = require('@waves/signature-adapter');
const BASE_64_PREFIX = 'base64:';
const { uniqueId } = require('ts-utils');
const { fetch } = require('data-service');
/**
* @param {typeof Base} Base
* @param {Waves} waves
* @param {$rootSc... | JavaScript | 0 | @@ -3734,24 +3734,25 @@
st script =
+(
this.state &
@@ -3800,33 +3800,33 @@
%7C BASE_64_PREFIX
-;
+)
%0A
@@ -3830,28 +3830,12 @@
-this.script = script
+
.rep
@@ -3852,32 +3852,207 @@
64_PREFIX, '');%0A
+ if (this.script !== script) %7B%0A this.script = s... |
0e9cf2cf060193bb7e8957f904f5c37c0788ede2 | change the js of the web | static/js/notify.js | static/js/notify.js |
$('#submit').click(function(){
$('#submit').button('loading')
$.ajax({
url: '/notify',
data: $('#notify').serialize(),
type: 'get',
success: function(data){
$("#msg").removeClass("hide");
$("#submit").button('complete')
}
})
});
$('ul.nav li a').click(function(){
var active_one = this;
var action... | JavaScript | 0.000001 | @@ -247,460 +247,4 @@
);%0A%0A
-$('ul.nav li a').click(function()%7B%0A%09var active_one = this;%0A%09var action_type = $(this).attr('title');%0A%09$.ajax(%7B%0A%09%09url: '/'+action_type,%0A%09%09data: %7B'action':action_type%7D,%0A%09%09type: 'get',%0A%09%09success: function(data)%7B%0A%09%09%09$.getScript(%22static... |
f79c7fdae91da798e9e2c3e71f1222ac2f06ad9d | fix bugs with image downloader | public/js/admin_add_edit_book.js | public/js/admin_add_edit_book.js | var fileInBase64;
function fillBookEditor(book) {
$('#book_title').val(book.title);
$('#book_author').val(book.author);
$('#book_year').val(book.year);
$('#book_pages').val(book.pages);
$('#book_isbn').val(book.isbn);
$('#book_description').val(book.description);
// $("#book_img_upload").f... | JavaScript | 0 | @@ -2709,16 +2709,17 @@
if
+(
(imageOb
@@ -2730,9 +2730,9 @@
dth
-%3E
+/
ima
@@ -2744,16 +2744,50 @@
.height)
+ %3E (canvas.width / canvas.height))
%7B%0A%0A
@@ -3368,264 +3368,8 @@
%7D);%0A
-%0A%0A // // $(%22#book_img_upload%22).fileinput(%7B%0A // // allowedFileExtensio... |
e1dbc747f83ee7f21de51f6f205146a95fcea091 | fix files when there are no search results | app/jsx/files/NoResults.js | app/jsx/files/NoResults.js | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | JavaScript | 0.000078 | @@ -875,25 +875,8 @@
%3Cp
- ref=%22yourSearch%22
%3E%0A
|
824b8c546ac6f0d4d9b5d50bcf88332fd77ae6e7 | Improve wording a bit and make the kata (hopefully) better. Closes #36 thanks for reporting | katas/es6/language/object-api/is.js | katas/es6/language/object-api/is.js | // ES6 - 54: Object - is
// To do: make all tests pass, leave the assert lines unchanged!
// Follow the hints of the failure messages!
describe('`Object.is()` determines whether two values are the same', function(){
describe('scalar values', function() {
it('1 is the same as 1', function() {
//// const are... | JavaScript | 0 | @@ -1125,18 +1125,18 @@
coercion
-,
+(
as in %60=
@@ -1141,24 +1141,45 @@
%60==%60
+)
and
+strict compare (as in
%60===%60
-,
+)
do
-es
NOT
@@ -1215,13 +1215,49 @@
'+0
-!= -0
+and -0 are not the same for %60Object.is()%60
', f
@@ -1276,29 +1276,38 @@
const
-coerc
+strictlyCompar
ed = +0 ===
... |
c491ef7fb05eb123deaa544c262ebc30a228d991 | Fix equalHTML assertions for bare text nodes | test/support/assertions.js | test/support/assertions.js | export function equalInnerHTML(fragment, html) {
var actualHTML = normalizeInnerHTML(fragment.innerHTML);
QUnit.push(actualHTML === html, actualHTML, html);
}
export function equalHTML(node, html) {
var fragment;
if (node.length) {
fragment = document.createDocumentFragment();
while (node[0]) {
f... | JavaScript | 0.000016 | @@ -219,16 +219,34 @@
;%0A if (
+!node.nodeType &&
node.len
|
122042b440341c3ec123ee8b5927da96f1cb0757 | remove uneeded | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
firebase: 'ltsquigs',
open : {
dev: {
path: 'http://localhost:2002'
}
},
clean: {
build: ["build"]
},
connect: {
server: {
... | JavaScript | 0.000008 | @@ -82,54 +82,8 @@
g(%7B%0A
- pkg: grunt.file.readJSON('package.json'),%0A
|
45c9a313a6d83962fe8522ab8e8f5807e7cc9321 | make regex lint | Gruntfile.js | Gruntfile.js | /*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homep... | JavaScript | 0.000152 | @@ -1223,32 +1223,102 @@
eqnull: true,%0A
+ %22-W044%22 : true, // cant get inline comment to work with grunt%0A
globals:
|
7be16e4ea596bc0cbbbf5bb137ef0a8b74dda505 | update initial disp | public/scripts/layout.js | public/scripts/layout.js | const WIDTH_THRESHOLD = 768;
// handles showing of initial content
function layout_initial_show() {
// if ($('#display-initial').css('display') !== 'none' && $('#display-body').css('display') === 'none') return;
$('#display-body').css('display', 'none')
$('#display-initial').css('display', '')
$('#disp-title'... | JavaScript | 0 | @@ -302,62 +302,184 @@
%0A%0A
-$('#disp-title').text('Welcome to Princeton Courses
+if (document.isMobile) %7B%0A $('#disp-title').text('Navigate by swiping left and right')%0A $('#disp-title-right').text('')%0A $('#disp-subtitle').text('Search to begin!
')%0A
+
$(
@@ -477,32 +477,35 @@
')%0A $('#... |
99c21938293bf0fa03f14cfa4b965eb1ce6554e4 | add back EventEmitter mixin mocha tests | test/tests/EventEmitter.js | test/tests/EventEmitter.js | // TODO: Someday add tests that test with default context and emit with a specified object to emit to
describe('enyo.EventEmitter', function () {
var EventEmitter = enyo.EventEmitter;
describe('methods', function () {
var emitter;
beforeEach(function() {
emitter = new enyo.Object({mixins: [EventEmitter]})... | JavaScript | 0 | @@ -1,8 +1,111 @@
+var%0A%09EventEmitter = require('../../lib/EventEmitter'),%0A%09CoreObject = require('../../lib/CoreObject');%0A%0A
// TODO:
@@ -208,21 +208,16 @@
scribe('
-enyo.
EventEmi
@@ -240,47 +240,8 @@
() %7B
-%0A%09var EventEmitter = enyo.EventEmitter;
%0A%0A%09d
@@ -339,13 +339,12 @@
new
-enyo.
+Core... |
966d52e9e94fb7075bac368ed3f2efbf4efd8917 | Fix compression | Gruntfile.js | Gruntfile.js | /* jshint node: true */
var CopyWebpackPlugin = require('copy-webpack-plugin');
var WebpackUglifyJsPlugin = require('webpack-uglify-js-plugin');
var OptimizeJsPlugin = require('optimize-js-plugin');
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package... | JavaScript | 0.001312 | @@ -1916,35 +1916,45 @@
%7B
-src
+cwd
: '
-./
dist/
-**
',
-dest: '/'
+src: '**', expand: true
%7D%0A
|
dbb1483b39893a87475753187213d1d58d590ef1 | Return fb function in firebase factory | public/js/firebase.js | public/js/firebase.js | angular.module('omnibooks.database', ['firebase'])
.factory('fireBase', function($firebaseArray, $firebaseObject) {
var myDataRef = new Firebase('https://sweltering-inferno-7210.firebaseio.com/');
var enterBook = function(org, username, title, img, author, isbn, price) {
var bookDetails = {
title... | JavaScript | 0 | @@ -6112,16 +6112,58 @@
ssword,%0A
+ authWithFacebook: authWithFacebook,%0A
ge
|
5ef668b09f6f9cda4fc47b3fb6e5c689a8750f76 | Add search form | public/static/js/main.js | public/static/js/main.js | var Navbar = ReactBootstrap.Navbar;
var Nav = ReactBootstrap.Nav;
var NavItem = ReactBootstrap.NavItem;
var MenuItem = ReactBootstrap.MenuItem;
var NavItemLink = ReactRouterBootstrap.NavItemLink;
var ButtonLink = ReactRouterBootstrap.ButtonLink;
var MenuItemLink = ReactRouterBootstrap.MenuItemLink;
var DropdownButton =... | JavaScript | 0.000001 | @@ -459,24 +459,58 @@
rap.Button;%0A
+var Input = ReactBootstrap.Input;%0A
var Grid = R
@@ -589,16 +589,88 @@
ap.Col;%0A
+var State = ReactRouter.State;%0Avar Navigation = ReactRouter.Navigation;%0A
var Rout
@@ -1533,28 +1533,16 @@
ixins: %5B
-ReactRouter.
State%5D,%0A
@@ -4329,32 +4329,332 @@
t.createClass(%7B%... |
7369061ef32174d3d5cc3883e2906d5310541a17 | Remove unused function | app/middleware/renderer.js | app/middleware/renderer.js | const log = require('../lib/logger');
const mapLink = require('../lib/mapLink');
function notFound(req, res, msg) {
log.warn(msg, 'Not found (404)');
res.status(404);
res.render('404');
}
function gpSurgeries(req, res) {
if (res.locals.gp) {
res.render('hub', {
mapUrl: mapLink.generateUrl(res.locals... | JavaScript | 0.000081 | @@ -373,123 +373,26 @@
%0A%7D%0A%0A
-function bookAnAppointment(req, res) %7B%0A res.render('book-appointment');%0A%7D%0A%0Amodule.exports = %7B%0A bookAnAppointment,
+module.exports = %7B
%0A g
|
dc3eaee865c9787470754d78137e549f4f765e1e | Remove cssmin | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
// live browser injection
browserSync: {
bsFiles: {
src : 'css/site.css'
},
options: {
watchTask: true
}
},
// watch changes to less files
... | JavaScript | 0.000002 | @@ -417,21 +417,11 @@
ess'
-, 'cssmin'
%5D,%0A
+
@@ -1207,284 +1207,8 @@
%7D,%0A%0A
- // Minify CSS%0A cssmin: %7B%0A target: %7B%0A files: %5B%7B%0A expand: true,%0A cwd: 'css',%0A src: %5B'*.css', '!*.min.css'%5D,%0A dest: ... |
32534179d6c13f8a2e208773b6a3c60b79fc5244 | Update Grunt to watch /lib directory | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-express-server');
grunt.loa... | JavaScript | 0 | @@ -2579,24 +2579,49 @@
ss/*.scss',%0A
+ 'lib/**/*.js',%0A
's
|
124de30504c71e8de3ee64189689914609b37c98 | remove missile limit | src/sprites/Player.js | src/sprites/Player.js | import Phaser from 'phaser'
export default class extends Phaser.Sprite {
constructor ({ game, x, y, weapon }) {
super(game, x, y, 'player');
this.anchor.setTo(0.5);
this.weapon = this.game.add.weapon(30, 'missile');
this.weapon.bulletKillType = Phaser.Weapon.KILL_WORLD_BOUNDS;
... | JavaScript | 0.001193 | @@ -222,18 +222,18 @@
.weapon(
-30
+-1
, 'missi
|
89551db70f10b558ca4fdceb1f4e8e5c899bf058 | replace problematic language | Gruntfile.js | Gruntfile.js | 'use strict';
var request = require('request')
, testServerRootUri = 'http://127.0.0.1:2808'
, testServerStatusUri = testServerRootUri + '/status'
, testServerKillUri = testServerRootUri + '/quit'
, mochaPhantomJsTestRunner = testServerRootUri +
'/static/browser/test/index.html'
, serverWasAlreadyRunning... | JavaScript | 0.999997 | @@ -5849,19 +5849,16 @@
ln('
-Poison pill
+Shutdown
req
|
5080a46f9a180a0cc6c8ac30254bffa7cb6c2b3b | break out test / live | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['Gruntfile.js', 'src/components/<%= pkg.name %>/*.js', 'tests/<%= pkg.name %>/*.js']
},
rsync: {
"test": {
src: "./src/",
dest: "aaron@akb.io:/var/www/bolddaemon/test/",
syncDest: t... | JavaScript | 0 | @@ -342,15 +342,17 @@
rue%0A
-//%7D,%0A//
+%09%09%09%7D,%0A%09%09%09
%22liv
@@ -357,18 +357,20 @@
ive%22: %7B%0A
-//
+%09%09%09%09
src: %22./
@@ -376,18 +376,20 @@
/src/%22,%0A
-//
+%09%09%09%09
dest: %22a
@@ -423,18 +423,20 @@
emon/%22,%0A
-//
+%09%09%09%09
syncDest
@@ -447,10 +447,12 @@
ue,%0A
-//
+%09%09%09... |
3cc8842a4447219384ebcf3686e3f726c41866f2 | add button to enable external midi controller | public/js/views/userInputView.js | public/js/views/userInputView.js | var WO = WO || {};
WO.userInputView = Backbone.View.extend({
template: _.template(
'<script>$(function() {$( "#tabs" ).tabs();});</script>'+
'<div>'+
'<div id="Container">'+
'<div id="Loading">LOADING...</div>'+
'<div id="tabs">'+
'<ul>'+
'<li><a href="#tabs-1">Dru... | JavaScript | 0 | @@ -1132,32 +1132,179 @@
an%3E%3C/button%3E' +%0A
+ '%3Cbutton class=%22enable-midi-button%22 onClick=%22WO.midi.enableMidiController();%22%3E%3Cspan%3EEnable External MIDI Controller%3C/span%3E%3C/button%3E' +%0A
'%3C
|
e9858aca688574d591c5972bf69733d1d4d0da83 | clean up | app/service/email-service.js | app/service/email-service.js | 'use strict';
module.exports = ['$q', '$log', '$http', emailService];
function emailService($q, $log, $http){
$log.debug('emailService');
let service = {};
let url = `${__API_URL__}/contact`;
service.sendMail = function(form){
console.log('url = ', url);
return $http({
method: 'POST',
ur... | JavaScript | 0.000001 | @@ -236,40 +236,8 @@
m)%7B%0A
- console.log('url = ', url);%0A
|
707c0211225bd5c9eef965ae83694615759c5a95 | Add ball angle change based on paddle side | js/game.js | js/game.js |
$(document).ready(function(){
var canvas = $('#canvas')[0];
var ctx = canvas.getContext('2d');
var raf;
var paddle = new Paddle()
paddle.drawPaddle = function() {
ctx.fillRect(this.x,this.y,this.width,this.height);
ctx.fillStyle = this.colour;
}
var ball = new Ball()
ball.drawBall = functi... | JavaScript | 0.000001 | @@ -1210,16 +1210,19 @@
%7D%0A%0A
+ //
endGame
@@ -1224,16 +1224,128 @@
dGame();
+%0A%0A if ( ball.bottomEdge() == canvas.height)%7B%0A console.log('game over!')%0A alert('Game Over!');%0A %7D
%0A //
@@ -1522,16 +1522,89 @@
dge() )%7B
+ // triggers if the y coor of the ball matches the to... |
1e8da8acc53ad48ba3bdd3edd55c0e03061ae261 | Add TODO comment | app/services/apiEndpoints.js | app/services/apiEndpoints.js | export const BASE_URL = 'http://localhost:3000/api';
export const GET_USERS = '/users';
export const GET_USER = '/users';
export const POST_USER = '/users';
export const PUT_USER = '/users';
export const DELETE_USER = '/users';
| JavaScript | 0 | @@ -45,16 +45,53 @@
00/api';
+ // TODO: Get it from a config value.
%0Aexport
|
de60850cf71e88bb514219f3a1a9db6f65c606a7 | Add i18n factory | app/services/i18n.factory.js | app/services/i18n.factory.js | (function() {
'use strict';
angular
.module('app')
.factory('i18n', i18n);
i18n.$inject = ['$translate'];
function i18n($translate) {
var factory = {
setLang: setLang
};
return factory;
function setLang(langKey) {
$translate.use(langKey);
}
}
})();
| JavaScript | 0 | @@ -142,24 +142,65 @@
ranslate) %7B%0A
+ var currentLang = getDefaultLang();%0A%0A
var fact
@@ -229,16 +229,40 @@
setLang
+,%0A getLang: getLang
%0A %7D;%0A
@@ -324,31 +324,217 @@
-$translate.use(langKey)
+currentLang = langKey;%0A $translate.use(currentLang);%0A %7D%0A%0A function ... |
b67f1605868fd4159b95cb9c78557454a5bd0c8a | Remove empty line | src/string-builder.js | src/string-builder.js | module.exports = StringBuilder;
function StringBuilder(){
this.buffer = [];
this.prefix = null;
this.suffix = null;
this.decorators = [];
}
StringBuilder.prototype.cat = function(){
var buffer = this.buffer;
var prefix = this.prefix;
var suffix = this.suffix;
var cat = this.cat;
c... | JavaScript | 0.999871 | @@ -1791,19 +1791,16 @@
(deep) %7B
-%0A
%0A
|
c26c403c866b6940d09f0cf9eedd56a4d7253f9c | Update overview.js | public/js/overview.js | public/js/overview.js | window.overview = {};
$(document).ready(function() {
$("#overview").on("tabOpened", function() {
$(".overview-date").text(window.utils.formatDate_english(new Date()));
window.api.get('overview/announcements/get/', function(data) {
$("#announcementList").text("");
var response = data.feedback.reverse();
f... | JavaScript | 0.000001 | @@ -1102,19 +1102,19 @@
%0A%09alert(
-hello
+%22Hi!%22
);%0A%7D;%0A
|
49e6c78b939288aef466ecf2201ea038e0d162c9 | Fix eslint warning | src/Main/SpellTimeline.js | src/Main/SpellTimeline.js | import React from 'react';
import PropTypes from 'prop-types';
import GeminiScrollbar from 'react-gemini-scrollbar';
import ReactTooltip from 'react-tooltip';
import 'gemini-scrollbar/gemini-scrollbar.css';
import SpellIcon from 'common/SpellIcon';
import { formatDuration, formatMilliseconds } from 'common/format';
i... | JavaScript | 0.00001 | @@ -270,28 +270,8 @@
tion
-, formatMilliseconds
%7D f
|
4e67258ed46ee980c7d108393db8b036cbab7b32 | fix usergroup store settigns reader | stores/usergroup.js | stores/usergroup.js | 'use strict';
/*global nodeca, _*/
// 3rd-party
var Store = require('nlib').Settings.Store;
var fetch_usergroups = nodeca.components.memoizee(function (ids, callback) {
nodeca.models.users.UserGroup.find().where('_id').in(ids).exec(callback);
}, { async: true, maxAge: 30000 });
///////////////////////////////... | JavaScript | 0.000002 | @@ -689,16 +689,20 @@
turn ug.
+raw_
settings
@@ -706,16 +706,56 @@
ngs%5Bkey%5D
+ ? %7B value: ug.raw_settings%5Bkey%5D%7D : null
;%0A
|
dcaa988c843d6b9a2af09e4ff6905a67e4c38824 | delete 'use strict' | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
grunt.initConfig({
bower: {
install: {
options: {
targetDir: 'app/lib',
verbose: true
}
}
},
copy: {
closureLibrary: {
files: [
{
e... | JavaScript | 0.000012 | @@ -33,24 +33,8 @@
) %7B%0A
- 'use strict';%0A
re
|
91fed2a031dbd8834fa0d507d2957a6d6a3e2f78 | update Checkbox stories | stories/checkbox.js | stories/checkbox.js | import React from 'react';
import { storiesOf } from '@storybook/react';
import { checkA11y } from 'storybook-addon-a11y';
import { withInfo } from '@storybook/addon-info';
import { withKnobs, boolean } from '@storybook/addon-knobs/react';
import { action } from '@storybook/addon-actions';
import { Store, State } from ... | JavaScript | 0.000003 | @@ -397,16 +397,21 @@
import %7B
+ Box,
Checkbo
@@ -417,14 +417,22 @@
ox,
-Island
+Link, TextBody
%7D f
@@ -518,16 +518,61 @@
yles';%0A%0A
+const sizes = %5B'small', 'medium', 'large'%5D;%0A%0A
const st
@@ -959,16 +959,17 @@
dd('size
+s
', () =%3E
@@ -968,37 +968,73 @@
', () =%3E (%0A %3C
-div%3E%0A
+Box... |
2a6a4a500e6fc517c7c3f7fd171fbe9750f1d19f | add grunt build task | Gruntfile.js | Gruntfile.js | /* global module:false */
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
app: grunt.file.readJSON('package.json'),
meta: {
banner: grunt.file.read('js/jsxc/banner.js')
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
... | JavaScript | 0.000002 | @@ -4611,16 +4611,70 @@
ult', %5B
+'build', 'watch' %5D);%0A%0A grunt.registerTask('build', %5B
'copy:cs
@@ -4719,26 +4719,16 @@
refixer'
-, 'watch'
%5D);%0A%0A
@@ -4810,60 +4810,13 @@
', '
-sass', 'replace:imageUrl', 'autoprefixer', 'copy:css
+build
', '
|
312c4bdf968b6a162b7fa33323ab30fe92d6b1be | Refactor JS a bit | public/js/suptasks.js | public/js/suptasks.js | var Suptasks = {
timer: 0
};
Suptasks.incrementTimer = function() {
Suptasks.timer = Suptasks.timer + 1;
};
Suptasks.updateView = function() {
var inputs = document.getElementsByClassName('timer-inputs');
for (i = 0; i < inputs.length; i++) {
inputs[i].value = Suptasks.timer;
};
var tags = document.g... | JavaScript | 0 | @@ -20,30 +20,21 @@
timer: 0
-%0A%7D;%0A%0ASuptasks.
+,%0A%0A
incremen
@@ -39,18 +39,17 @@
entTimer
- =
+:
functio
@@ -45,33 +45,36 @@
er: function() %7B
-%0A
+ %0A
Suptasks.timer
@@ -95,30 +95,26 @@
mer + 1;
-%0A%7D;%0A%0ASuptasks.
+ %0A %7D,%0A%0A
updateVi
@@ -115,18 +115,17 @@
dateView
- =
+:
fu... |
3aaa9db0507684a261afa232f377228ead310e3e | Add event listeners in Controller for key handling | controller.js | controller.js | var Controller = function(args) {
this.actorCanvas = args.actorCanvas;
this.boardCanvas = args.boardCanvas;
this.pelletCanvas = args.pelletCanvas;
this.pac = new Actor({
context: this.actorCanvas.context,
startX: 113,
startY: 212,
name: "m",
direction: "right"
});
this.blinky = new Ghos... | JavaScript | 0 | @@ -858,16 +858,137 @@
39%0A %7D);
+%0A%0A addEventListener(%22keydown%22, this.handleKeyDown.bind(this));%0A addEventListener(%22keyup%22, this.handleKeyUp.bind(this));
%0A%7D%0AContr
|
5c721528dc820e7b0aeb7276351e47c0c9a64ebd | Replace Meteor.call with Meteor.apply for supposedly synchronous behavior | collections/Keys.js | collections/Keys.js | Keys = new Mongo.Collection("keys");
KeySchema = new SimpleSchema({
keyID: {
type: Number,
label: "Key ID",
min: 0
},
vCode: {
type: String,
label: "Verification Code",
regEx: /^[0-9a-zA-Z]+$/,
custom: function() {
if (this.field("keyID").isSet === false) return "keyIDMissing";
... | JavaScript | 0.000001 | @@ -417,12 +417,13 @@
eor.
-call
+apply
('va
@@ -434,16 +434,17 @@
teKey',
+%5B
this.fie
@@ -472,16 +472,23 @@
is.value
+%5D, true
);%0A
|
22ab8c515460d3fc19f4f787c33e6c20571d26ab | modify Grunt | Gruntfile.js | Gruntfile.js |
var exec = require("child_process").exec;
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*scharts started*/',
distRoot: 'build',
docsRoot: 'docs',
browserify: {
build: {
files: {
'<%= distRoot %>/... | JavaScript | 0.000001 | @@ -881,135 +881,14 @@
s
-ui: %7B%0A src: %5B'less/%3C%25= pkg.name %25%3E.less'%5D,%0A dest: '%3C%25= distRoot %25%3E/css/%3C%25= pkg.name %25%3E.css'%0A %7D,%0A suiMin
+charts
: %7B%0A
@@ -932,33 +932,32 @@
: true%0A %7D
-,
%0A src: %5B'
@@ -953,307 +953,15 @@
-src: ... |
30ce8dcc68018bdee36fe5d853ef2e440c0bd1f3 | Add grunt tasks for releasing packages | Gruntfile.js | Gruntfile.js | module.exports = function( grunt ) {
'use strict';
//
// Grunt configuration:
//
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
//
grunt.initConfig({
// specifying JSHint options and globals
// https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#specifying-jshint-... | JavaScript | 0.000001 | @@ -1046,24 +1046,201 @@
-R lib'%0A
+ %7D,%0A release: %7B%0A command: %5B%0A 'git tag v%3C%25= packageVersion %25%3E',%0A 'git push origin master --tags',%0A 'npm publish'%0A %5D.join('&&')%0A
%7D%0A
%7D,%0A
@@ -1227,24 +1227,24 @@
&')%0A %7D%0A
-
... |
38e03ffa2e2a5baccaf34c619a530c2c692fd722 | Add startGame function in controller | controller.js | controller.js | var Controller = function(shape) {
this.gameBoard = new tetrisBoard();
this.gameView = new browserView({gameBoard: this.gameBoard});
} | JavaScript | 0.000001 | @@ -131,8 +131,143 @@
ard%7D);%0A%7D
+%0AController.prototype.startGame = function() %7B%0A this.gameBoard.blit();%0A this.gameView.animate();%0A this.gameBoard.cycleDropBlock();%0A%7D
|
369da7f21ac2ce8cc677139d4231e4bd88cef644 | Fix array diff | src/Problems/ArrayDiff.js | src/Problems/ArrayDiff.js | const createHashTable = require('../DataStructures/LinkedHashTable')
/**
* Given two arrays, find the difference between them.
* Example:
* [1, 2, 3] and [2, 4, 1] => [3, 4]
* ['A', 'B'] and ['C', 'D', 'A', 'E'] => ['B', 'C', 'D', 'E']
*
* We can solve it by looping through all elements of both arrays
* and keep... | JavaScript | 0.000245 | @@ -677,12 +677,17 @@
===
-null
+undefined
)%0A
|
f9d24624f3fefed9c8ac20e526d76152ce7fed3b | Update cmdhelp command | commands/cmdhelp.js | commands/cmdhelp.js | const Discord = require('discord.js')
const Confax = require('../bot.js')
Confax.registerCommand('cmdhelp', 'default', (message, bot) => {
let helpInfo = ''
let cmd = message.content.split(' ')[0]
let realCmd
let cmdType
let commands = Confax.commands
if (!cmd) return 'Please provide a command to get the i... | JavaScript | 0.000001 | @@ -1,42 +1,4 @@
-const Discord = require('discord.js')%0A
cons
@@ -600,18 +600,29 @@
on
-%60
+**
' +
-'%60:%5Cn
+realCmd + '**:
%60%60%60'
|
40eb35e459bb89a4e65e9a0680851ab439b7e9f1 | update test | app/unit_tests/fish_test.js | app/unit_tests/fish_test.js | describe('fishCtrl',function(){
beforeEach(module('teamapp','firebase'));
var $scope, $firebaseArray, $firebaseObject, createController, firebaseSync;
initFirebase();
beforeEach(inject(function($rootScope, $controller, _$rootScope_, _$firebaseArray_, _$firebaseObject_){
$firebaseArray = _$firebaseArray_;
$fire... | JavaScript | 0.000001 | @@ -136,20 +136,19 @@
er,
-firebaseSync
+$q, defered
;%0A%09i
@@ -265,16 +265,22 @@
eObject_
+, _$q_
)%7B%0A%09%09$fi
@@ -354,38 +354,19 @@
t_;%0A
+%0A
%09%09
-//$controller = _$controller
+$q = _$q
_;%0A%09
@@ -422,16 +422,125 @@
.$new();
+%0A%09%09deferred = _$q_.defer();%0A%0A%09//spyOn($scope.allData.$load... |
180aa3315f7452a50c49fdd106a9deeb37a25a63 | Drop console.log. | js/html.js | js/html.js | /*global require: false, module: false, console: false */
'use strict';
var _ = require('underscore');
// merge, dropping undefined props
//var m = (...objs) => _.pick(_.extend.apply(null, [{}, ...objs]), (v, k) => v !== undefined);
function cases([tag, ...data], c) {
return c[tag](...data);
}
function nullval() {
... | JavaScript | 0 | @@ -1914,29 +1914,8 @@
1);%0A
-%09console.log(k, id);%0A
%09ret
|
f72ddc71fc5a3713123d9639cde0de4a51c62dc5 | Suppress Behat output if everything is okay | Gruntfile.js | Gruntfile.js | /*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Task configuration.
phpcs: {
application: {
src: ['src/**/*.php']
},
options: {
bin: 'vendor/bin/phpcs',
standard: 'phpcs.xml'
}
},
phpmd: {
... | JavaScript | 0.999918 | @@ -692,75 +692,8 @@
: %7B%0A
- options: %7B%0A output: true%0A %7D,%0A
|
e7ff64f7b2dd06264e14c438b9b76314d60bd473 | clean code | assets/js/app.js | assets/js/app.js | $(document).ready(function () {
/* Sidebar height set */
$('.sidebar').css('min-height', $(document).height());
/* Secondary contact links */
var scontacts = $('#contact-list-secondary');
var contact_list = $('#contact-list');
scontacts.hide();
contact_list.mouseenter(function () { scontacts.fadeIn(); });
... | JavaScript | 0.000008 | @@ -26,17 +26,20 @@
n () %7B%0A%0A
-%09
+
/* Sideb
@@ -55,17 +55,20 @@
set */%0A
-%09
+
$('.side
@@ -115,17 +115,20 @@
ht());%0A%0A
-%09
+
/* Secon
@@ -149,17 +149,20 @@
inks */%0A
-%09
+
var scon
@@ -199,17 +199,20 @@
dary');%0A
-%09
+
var cont
@@ -243,17 +243,20 @@
ist');%0A%0A
-%09
+ ... |
94373d3bef2b740492c64b5c3f47ccd413210c7f | add some comments for better readability | src/system/pooling.js | src/system/pooling.js | var objectClass = {};
var instance_counter = 0;
/**
* This object is used for object pooling - a technique that might speed up your game if used properly.<br>
* If some of your classes will be instantiated and removed a lot at a time, it is a
* good idea to add the class to this object pool. A separate pool for tha... | JavaScript | 0 | @@ -3915,24 +3915,83 @@
.pop()))) %7B%0A
+ // pull an existing instance from the pool%0A
@@ -4273,32 +4273,73 @@
else %7B%0A
+ // create a new instance%0A
|
da4b2f2fedfbc8a995253a3d911945fb29ba285b | whitelist sub tag, resolves #341 | app/utils/SanitizeConfig.js | app/utils/SanitizeConfig.js |
const iframeWhitelist = [
{
re: /^(https?:)?\/\/player.vimeo.com\/video\/.*/i,
fn: (src) => {
// <iframe src="https://player.vimeo.com/video/179213493" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
if(!src) return... | JavaScript | 0 | @@ -1746,16 +1746,21 @@
ike, sup
+, sub
%0A%60.trim(
|
5b592f6a0d1c9401cb138b67cbfef791e12bb4e0 | Fix playing command (#24) | commands/playing.js | commands/playing.js | const Command = require('../structures/command.js');
module.exports = class Playing extends Command {
constructor(client) {
super(client);
this.name = "playing";
}
run(message, args, commandLang) {
let embed = this.client.getDekuEmbed(message);
if(args[0]) {
let game = args[0];
let... | JavaScript | 0.000011 | @@ -299,19 +299,26 @@
e = args
-%5B0%5D
+.join(' ')
;%0A
|
58e24b1fe21a85d1fd26c6e7435ee6e3a94580f9 | Add forever tasks | Gruntfile.js | Gruntfile.js | var pkg = require('./package.json');
module.exports = function (grunt) {
grunt.initConfig({
shipit: {
options: {
workspace: '/tmp/hello-world-workspace',
deployTo: '/home/pi/vermicomposter-console',
repositoryUrl: pkg.repository.url,
ignores: ['.git', 'node_modules'],
... | JavaScript | 0.00024 | @@ -517,11 +517,294 @@
ploy');%0A
+%0A grunt.shipit.remote('forever stop app.js', function (err, res) %7B%0A console.log(%22STOP%22);%0A console.log(res.stdout, res.stderr);%0A %7D);%0A%0A grunt.shipit.remote('forever start app.js', function (err, res) %7B%0A console.log(%22START%22);%0A console.log(res... |
d0c5f67973684752acbabf3708c7e12bee95dfa7 | Fix #21: Actually merge responses | app/scripts/data_bridge.js | app/scripts/data_bridge.js | /*jshint camelcase:false */
define(function (require) {
'use strict';
var client = require('api').getDefaultInstance();
var Q = require('q');
var _ = require('lodash');
function DataBridge(mediator) {
this.mediator = mediator;
}
DataBridge.prototype.listen = function () {
... | JavaScript | 0 | @@ -2166,16 +2166,194 @@
.objects
+,%0A response: %7B%0A timeline: oldCTL.response.timeline%0A %7D%0A %7D, function (a, b) %7B%0A return _.isArray(a) ? a.concat(b) : undefined;
%0A
@@ -2995,24 +2995,53 @@
ctl:
-response
+mergeCTLResponses(response, da... |
504755fd05af8cc09b659c781afacd9215c5706f | fix root scene container route stack | src/RootSceneContainer.js | src/RootSceneContainer.js | import React, { Component } from 'react';
import { BackAndroid } from 'react-native';
import { connect } from 'react-redux';
import RootScene from './RootScene';
import { actionCreators as navigationActions } from './actions';
import { propTypes as navigationPropTypes } from './reducer';
class RootSceneContainer exte... | JavaScript | 0.000001 | @@ -1119,41 +1119,13 @@
tion
-%5Bstore.navigation.activeTabIndex%5D
+.null
;%0A
|
c25965d0038f34ac860b27a0cf69708e41c08a24 | change watchlist | commands/watched.js | commands/watched.js | module.exports.name = 'watched';
module.exports.alias = [
'watched',
'watchlist'
];
module.exports.isAllowed = (message, server) => {
return server.hiddenChannels.includes(message.channel.id) && message.member.hasPermission('ADMINISTRATOR');
};
module.exports.help = 'Shows users on the watchlist.';
module.expor... | JavaScript | 0.000001 | @@ -381,17 +381,17 @@
t res =
-'
+%60
Watched
@@ -399,30 +399,12 @@
sers
-:%5Cn';%0A for (var i in
+ ($%7B
serv
@@ -422,22 +422,31 @@
sers
-) %7B%0A
+.length%7D):%5Cn%60;%0A
res +=
'%3C@
@@ -445,15 +445,8 @@
s +=
- '%3C@' +
ser
@@ -465,24 +465,40 @@
sers
-%5Bi%5D + '%3E%5Cn';%0A %7D
+.map(u =%3E %6... |
e5ec2e6cc636d643056033bda4561ea40c9d86a5 | Fix avera email error | js/init.js | js/init.js | /*
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
This file is part of the Smart Developer Hub Project:
http://www.smartdeveloperhub.org
Center for Open Middleware
http://www.centeropenmiddleware.com/
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... | JavaScript | 0.998582 | @@ -2154,37 +2154,38 @@
email: %22
-carlos.blanco
+alejandro.vera
@centeropenm
|
ebdde92dc6de4ae02f00ef8096921d99ec7a3b7b | tidy up a bit | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
var STREAM_SOURCE_PORT = 4567;
// TODO: move files list to own file
var TEST_LIBS = [
'node_modules/karma-jstd-adapter/jstd-adapter.js'
, 'test/libs/sinon.js'
, 'test/libs/sinon-ie.js'
, 'test/libs/*.js'
];
// NB: source files are order sens... | JavaScript | 0.000001 | @@ -4094,70 +4094,8 @@
);%0A%0A
- //grunt.registerTask('checksize', %5B'micro:oboe_min'%5D);%0A%0A
g
@@ -4319,17 +4319,16 @@
%5D);%0A
-%0A
grunt
@@ -5319,131 +5319,8 @@
%0A
- // micro isn't working: %0A // 'micro:oboe_min... |
e762ceec939d4b2c7b52112829e20555dd12b451 | update Pi IP address in gruntfile update some text | Gruntfile.js | Gruntfile.js | var piUserHost = "root@192.168.0.107";
var fs = require('fs');
var sources = [
'server.js',
'src/**/*.js',
'opt/**/*'
];
var js = sources.concat('test/**/*.js');
module.exports = function(grunt) {
grunt.initConfig({
simplemocha: {
options: {
timeout: 3000,
globals: [
'expec... | JavaScript | 0 | @@ -21,20 +21,18 @@
ot@1
-92.168.
+72.2
0.10
-7
+.9
%22;%0Av
@@ -1558,19 +1558,29 @@
ln(%22
-T
+Attempted to t
ransfer
-red
%22+r
|
825630094350ae5e85827baea9efbe72476f6863 | Update build process to deploy modernizr | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var
pkg = grunt.file.readJSON('package.json'),
merge = require('merge')
;
/* tasks configuration */
grunt.initConfig({
pkg: pkg,
jshint: {
all: [
'Gruntfile.js',
'src/js/src/**/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
jscs: {
main: [... | JavaScript | 0 | @@ -1433,16 +1433,114 @@
n/img/'%0A
+%09%09%09%09%09%7D,%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09src: 'src/js/libs/modernizr/modernizr.js',%0A%09%09%09%09%09%09dest: 'bin/js/modernizr.js'%0A
%09%09%09%09%09%7D%0A%09
@@ -2031,16 +2031,133 @@
on.js%22'%0A
+%09%09%09%09%09%09%7D,%0A%09%09%09%09%09%09%7B%0A%09%09%09%09... |
9d1684c6b09893354e703fe7b4ac0875726a70db | Fix release task folder references | Gruntfile.js | Gruntfile.js | /*global module:false*/
var shell = require('shelljs');
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Task configuration.
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
no... | JavaScript | 0 | @@ -3120,38 +3120,39 @@
oyName -%3E grunt
-deploy
+release
:your-deploy-nam
@@ -3284,38 +3284,39 @@
ername -%3E grunt
-deploy
+release
:your-deploy-nam
@@ -3456,22 +3456,23 @@
%3E grunt
-deploy
+release
:your-de
@@ -3958,16 +3958,30 @@
o-prompt
+ --path ~/dist
').code
@@ -4052,16 +4052,30 @@
o-prompt
+ --p... |
3622c143e5e7051805c06b3c8b126b9a8196380f | Add second slack bot integration | plugins/slack.js | plugins/slack.js | const LifeforcePlugin = require("../utils/LifeforcePlugin.js");
class SlackBot extends LifeforcePlugin {
constructor(restifyserver, logger, name) {
super(restifyserver, logger, name);
this.apiMap = [
{
path: "/api/slack/log",
type: "post",
... | JavaScript | 0 | @@ -677,24 +677,148 @@
%0A %7D);
+%0A%0A this.kmbot = new SlackBot(%7B%0A token: this.config.slack.kmweb,%0A name: 'kabuildbot'%0A %7D);
%0A %7D%0A%7D%0A%0Afu
@@ -1020,32 +1020,155 @@
:'%0A %7D);%0A%0A
+ this.bot.postMessageToChannel('ecoweb-development', p... |
cb9c1e30628d33922f6e649e20db43db3390f320 | update the l20n.js to disable attributes for now | js/l20n.js | js/l20n.js | var L20n = {
getContext: function() {
return new this.Context();
},
_startLoading: function(res, callback) {
var xhr = new XMLHttpRequest();
xhr.overrideMimeType('text/plain');
xhr.addEventListener("load", function() {
return callback(xhr.responseText)
});
xhr.open('GET', res.uri, ... | JavaScript | 0 | @@ -757,24 +757,116 @@
aURI);%0A %7D,%0A
+ // we should have getValue for value, getAttributes for attributes and get %0A // for both%0A
get: funct
@@ -1065,32 +1065,78 @@
ion(id, args) %7B%0A
+ return %7B%7D; // skip the attributes for now%0A
var curObj =
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.