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 |
|---|---|---|---|---|---|---|---|
249911995364e999001fe20f35674ae0c7db574f | Upgrade SidebarController to ES6 syntax | src/client/controller/sidebar_controller.js | src/client/controller/sidebar_controller.js | export default class SidebarController {
constructor(AccountsRepository, MovementsRepository) {
this.accounts = AccountsRepository;
this.movements = MovementsRepository;
}
}
SidebarController.$inject = ['AccountsRepository', 'MovementsRepository'];
| JavaScript | 0 | @@ -1,19 +1,4 @@
-export default
clas
@@ -239,8 +239,43 @@
tory'%5D;%0A
+%0Aexport default SidebarController;%0A
|
bc7a7db99d24d9399aa960d0c5fb1f83f80f95d0 | add action types/creators to project reducer | src/reducers/projects.js | src/reducers/projects.js | import {combineReducers} from 'redux'
import project from './project'
const defaultState = {
byId: {},
allIds: []
}
export const byId = (state = defaultState.byId, action) => {
const { type, payload } = action
switch (type) {
case 'CREATE_PROJECT':
return {...state, [payload.id]: project(state[payloa... | JavaScript | 0 | @@ -42,32 +42,565 @@
ort
-project from './project'
+cuid from 'cuid'%0Aimport project from './project'%0A%0A// ** action types **%0Aconst CREATE_PROJECT = 'CREATE_PROJECT'%0A// ** action creators **%0Aexport const createProject = (%7B%0A ownerId = '',%0A name = '',%0A summary = '',%0A tags = %5B%5D,%0A descripti... |
02042bd4a119d8995f288e0c44cb460214e1d147 | add name to Accessibility mixin | lib/AccessibilitySupport/AccessibilitySupport.js | lib/AccessibilitySupport/AccessibilitySupport.js | var
kind = require('../kind');
/**
* @name AccessibilityMixin
* @mixin
*/
module.exports = {
/**
* AccessibilityLabel is used for accessibility voice readout.
* If accessibilityLabel is set, screen reader reads the label when control is focused.
*
* @type {String}
* @default ''
* @public
*/
accessibilityLab... | JavaScript | 0 | @@ -89,16 +89,74 @@
ts = %7B%0A%0A
+%09/**%0A%09* @private%0A%09*/%0A%09name: 'enyo.AccessibilitySupport',%0A%0A
%09/**%0A%09*
|
6ce7a7849d95b94d2d70c9f59342c08a1383bd3a | fix eslint errors | src/index.js | src/index.js | /* @flow */
process.stdout.write('Hello world!')
| JavaScript | 0.000255 | @@ -10,28 +10,61 @@
*/%0A%0A
-process.stdout.write
+/* eslint-disable no-console, no-undef */%0Aconsole.log
('He
|
4a5a3a0351d778599c59f39eda9acd0500526089 | return emptpy partials if there are no arguments | index.js | index.js | var Mustache = require('mustache');
module.exports = {
getHtml: function(templateName) {
var templateEl = document.getElementById(templateName + '_');
if (!templateEl)
throw new Error('Script element does not exists for name: ' + templateName);
return templateEl.innerHTML;
},
render: function(te... | JavaScript | 0.000152 | @@ -600,16 +600,42 @@
= %7B%7D;%0D%0A
+%09%09if (!list) return obj;%0D%0A
%09%09%5B%5D.con
|
cf856eb8f24ee94e20e9733f722851ea5d5d0294 | Add support for building the specRunner.min.html file Add testing of minified msngr file to the test task | Gruntfile.js | Gruntfile.js | module.exports = (function (grunt) {
"use strict";
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-mocha-phantomjs');
grunt.loadNpmTasks('grunt-available-tasks');... | JavaScript | 0 | @@ -49,10 +49,9 @@
t%22;%0A
-%09
%0A
+
%09gru
@@ -1277,16 +1277,39 @@
er.html%22
+, %22specRunner.min.html%22
%5D%0A%09%09%7D,%0A%09
@@ -2769,17 +2769,16 @@
with the
-
%0A%09%09unit
@@ -4168,24 +4168,24 @@
criptEnd);%0A%0A
-
%09%09fs.writeFi
@@ -4236,32 +4236,108 @@
ing: %22utf8%22 %7D);%0A
+%09%09fs.writeF... |
ebf3da7e28134c6feefc4cdd4d48bf46bf204009 | include job_type on job included | app/modules/users/controllers/user-controller.js | app/modules/users/controllers/user-controller.js | var express = require('express')
, bcrypt = require('bcryptjs')
, crypto = require('crypto')
, passport = require('passport')
, mailer = require(root + '/config/mail')
, db = require(root + '/app/models');
module.exports = {
findById : function(id){
return db.user.find({
... | JavaScript | 0.000001 | @@ -351,38 +351,75 @@
, include : %5B
-db.job
+%7B model : db.job, include : %5Bdb.job_type%5D %7D
%5D%0A %7D);%0A
@@ -590,22 +590,59 @@
lude : %5B
-db.job
+%7B model : db.job, include : %5Bdb.job_type%5D %7D
%5D%0A
|
09590e08ed57ea669376646edc8f1f8869768705 | Rename executeMutations to executeBatchMutations | src/clients/cassandra/CassandraConnector.js | src/clients/cassandra/CassandraConnector.js | 'use strict';
const Promise = require('promise');
const cassandra = require('cassandra-driver');
const asyncEachLimit = require('async/eachLimit');
const array = require('lodash/array');
const BATCH_LIMIT = process.env.BATCH_LIMIT || 10;
const ASYNC_OPERATIONS_LIMIT = process.env.ASYNC_OPERATIONS_LIMIT || 50;
const di... | JavaScript | 0.018923 | @@ -981,32 +981,37 @@
function execute
+Batch
Mutations(mutati
@@ -2156,32 +2156,37 @@
ts = %7B%0A execute
+Batch
Mutations: execu
@@ -2187,16 +2187,21 @@
execute
+Batch
Mutation
|
df6c1ed9bb756feb5c259edd42b317df08dc9fd7 | simplify reducers with new actions and split by functionality | src/reducers/reducers.js | src/reducers/reducers.js | import initialState from '../stores/initialState'
import { SET_COORDS_AROUND_ME, SET_METERS_AROUND_ME, /*GET_BUS_STOPS_AROUND_ME_REQUEST,*/ GET_BUS_STOPS_AROUND_ME_SUCCESS, GET_BUS_STOPS_AROUND_ME_ERROR } from '../actions/actions.js'
//
// reducers case by action
//
const busStopsAroundMe = ( state=initialState, ac... | JavaScript | 0 | @@ -56,89 +56,87 @@
rt %7B
+%0A
SET_
-COORDS_AROUND_ME, SET_METERS_AROUND_ME, /*GET_BUS_STOPS_AROUND_ME_REQUEST,*/
+LOADING_STATE,%0A SET_COORDS_AROUND_ME,%0A SET_METERS_AROUND_ME,%0A
GET
@@ -164,16 +164,20 @@
SUCCESS,
+%0A
GET_BUS
@@ -198,17 +198,17 @@
ME_ERROR
-
+%0A
%7D from '
@@ -272,31 +2... |
3ef56099ed43b45fa80de81db8d31f9305f68c3a | change colors of grid and background | src/js/client/visual/VGrid.js | src/js/client/visual/VGrid.js | 'use strict';
define(['core/SETTINGS', 'underscore', 'THREE.TrackballControls'],
function(SETTINGS, _){
function VGrid(grid){
this.grid = grid;
this.init();
this.addGrid();
};
VGrid.prototype = {
scene: null,
camera: null,
renderer: null,
... | JavaScript | 0 | @@ -134,18 +134,8 @@
d)%7B%0A
- %0A%0A
@@ -523,14 +523,14 @@
r(0x
-CCCCCC
+000000
, 1)
@@ -2008,22 +2008,22 @@
olor: 0x
-000000
+FFFFFF
%0A
|
e5c181ad0438ee29498b063ae10aaef730540013 | fix absolute src and relative protocols | index.js | index.js | var cheerio = require('cheerio')
var map = require('map-limit')
var request = require('request')
var assign = require('object-assign')
var url = require('url')
var path = require('path')
var limit = 25
function scripts(body) {
var $ = cheerio.load(body)
var tags = []
$('script').each(function(idx, el) {
el ... | JavaScript | 0.00001 | @@ -491,54 +491,327 @@
%7B%0A
-request.get(%7B uri: script.src, baseUrl: base %7D
+var fetchOpt%0A var scriptSrc = script.src%0A if (scriptSrc.indexOf('//') === 0) %7B // assume HTTP%0A scriptSrc = 'http:' + scriptSrc%0A %7D%0A%0A // try to find relative%0A if (url.parse(scriptSrc).host) %7B%0A fetchOpt =... |
808ea482c5a3a5c21885412a1b85269d29d61190 | fix gruntfile paths | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
nodemon: {
dev: {
script: 'bin/www'
}
},
less: {
dev: {
options: {
paths: ["api/assets/styles"]
},
files: {
... | JavaScript | 0.000003 | @@ -686,24 +686,28 @@
src: %5B'
+api/
assets/js/ma
@@ -812,24 +812,28 @@
files: %5B'
+api/
assets/js/**
@@ -920,16 +920,20 @@
iles: %5B'
+api/
assets/s
|
b1989a91ed750b47a280e96ef9b2730b4263dde1 | Remove proxy /static in dev mode, static file needn't proxy for dev | src/index.js | src/index.js | import Koa from 'koa';
import Router from 'koa-router';
import serve from 'koa-static-server';
import path from 'path';
import rollbar from './lib/rollbar';
import { version } from '../package.json';
import webhookRouter from './webhook';
import graphqlMiddleware from './graphql';
import redis from './lib/redisClient'... | JavaScript | 0 | @@ -1256,198 +1256,8 @@
);%0A
- app.use(%0A serve(%7B%0A rootDir: path.join(__dirname, '../static'),%0A rootPath: '/static',%0A maxage: 31536000 * 1000, // https://stackoverflow.com/a/7071880/1582110%0A %7D)%0A );%0A
%7D el
@@ -1403,18 +1403,19 @@
%7D)%0A );%0A
-
+%7D%0A%0A
app.use(
@@ -1... |
9bfb9cdeea877b461ad20b0377516b0dea9deca6 | change default export | index.js | index.js | var isType = exports.isType = function isType(type) {
return function(arg) {
if (type === 'Array' && Array.isArray) {
return Array.isArray(arg);
}
return Object.prototype.toString.call(arg) === "[object " + type + "]";
}
}
exports.isString = isType('String');
exports.isArray... | JavaScript | 0.000001 | @@ -1,34 +1,4 @@
-var isType = exports.isType =
func
@@ -13,24 +13,24 @@
ype(type) %7B%0A
+
return f
@@ -125,21 +125,16 @@
.isArray
-(arg)
;%0A
@@ -232,18 +232,21 @@
%0A%0Aexport
-s.
+ var
isString
@@ -272,18 +272,21 @@
;%0Aexport
-s.
+ var
isArray
@@ -310,18 +310,21 @@
;%0Aexport
-s.
+ var
is... |
5ac79bcf6de18af527ff6e61058209ccb3e2ca05 | use cache for user get. | server/liveblog/themes/themes_assets/angular/liveblog-embed/resources.service.js | server/liveblog/themes/themes_assets/angular/liveblog-embed/resources.service.js | (function(angular) {
'use strict';
Blogs.$inject = ['$resource', 'config'];
function Blogs($resource, config) {
return $resource(config.api_host + 'api/client_blogs/:blogId', {blogId: config.blog._id});
}
Users.$inject = ['$resource', 'config'];
function Users($resource, config) {
... | JavaScript | 0.000001 | @@ -378,16 +378,96 @@
:userId'
+, %7B'userId':'@id'%7D, %7B%0A 'get': %7B method:'GET', cache: true%7D%0A%0A %7D
);%0A %7D
|
3d28d75cac60da2182c5ac99668d5def802878de | Use full name of HTMLFormElement | lib/HTMLFormElement/prototype/submit-by-event.js | lib/HTMLFormElement/prototype/submit-by-event.js | 'use strict';
var form = require('../valid-html-form');
module.exports = function () {
var event = form(this).ownerDocument.createEvent('HTMLEvents');
event.initEvent('submit', true, true);
this.dispatchEvent(event);
return event;
};
| JavaScript | 0.000001 | @@ -46,16 +46,24 @@
tml-form
+-element
');%0A%0Amod
|
51d2c829563ff5aa1d44d429ccfecf7addfe565e | update cms editor container reducer to load article settings | app/src/containers/CmsEditorContainer/reducer.js | app/src/containers/CmsEditorContainer/reducer.js | import * as types from './constants';
import update from 'react-addons-update';
import { editorStateFromRaw } from 'megadraft';
export const initialState = {
article: {
id: null,
action: null,
},
editorState: editorStateFromRaw(null),
editorTitle: null,
preview: {
isPreviewing: false,
content... | JavaScript | 0 | @@ -1215,32 +1215,449 @@
(action.type) %7B%0A
+ case types.CMS_SET_STATE_FROM_ARTICLE:%0A return udpdate(state, %7B%0A spotlighted: %7B%0A $set: action.article.spotlighted,%0A %7D,%0A status: %7B%0A $set: action.article.status,%0A %7D,%0A selectedTags: %7B%0... |
b840ccea9ffe40af8f55345d991f9b0fd9fcec8c | fix highlight on first load | static/javascript/getcloudify.js | static/javascript/getcloudify.js | angular.module('getcloudify',['ui.bootstrap','ngRoute']).config(function($locationProvider, $routeProvider ){
//$locationProvider.hashPrefix('!'); // this will make anchor links active again! yey!!
$locationProvider.html5Mode( { enabled: true, requireBase: false} );
var firstLoadPost = angular.element('.po... | JavaScript | 0.000001 | @@ -543,29 +543,192 @@
-if ( firstLoadPost )%7B
+function highlight(root)%7B%0A _.each(root.find('pre code'), hljs.highlightBlock);%0A %7D%0A%0A if ( firstLoadPost )%7B%0A highlight(firstLoadPost);
%0A
@@ -813,16 +813,17 @@
= null;%0A
+%0A
@@ -100... |
14e5333b4945255b2acdd9759791ebc134ee02c2 | fix userlog error | src/bot/utils/userLog.js | src/bot/utils/userLog.js | module.exports = async (guild, member, type) => {
type = type === "join" ? "greeting" : "farewell";
if(type === "greeting") {
var dm = await r.table("settings").get(["greeting-dm", guild.id]).run();
dm = dm ? dm.value : false;
}
let userlog = await r.table("settings").get(["userlog", guild.id]).run();
if(!use... | JavaScript | 0.000007 | @@ -339,16 +339,28 @@
n;%0A%09else
+ if(userlog)
userlog
|
50d8b23d2f70bc80fdc3817e326f7e516fd576de | Fix lint | src/index.js | src/index.js | import DayPicker from './DayPicker';
import Input from './DayPickerInput';
import * as DateUtils from './DateUtils';
import * as LocaleUtils from './LocaleUtils';
import * as ModifiersUtils from './ModifiersUtils';
DayPicker.Input = Input;
DayPicker.DateUtils = DateUtils;
DayPicker.LocaleUtils = LocaleUtils;
DayPicker... | JavaScript | 0.000032 | @@ -356,18 +356,16 @@
export %7B
-%0A
DayPick
@@ -378,18 +378,16 @@
default,
-%0A
DateUti
@@ -389,18 +389,16 @@
teUtils,
-%0A
LocaleU
@@ -406,10 +406,8 @@
ils,
-%0A
Mod
@@ -421,7 +421,8 @@
tils
-%0A%7D
+ %7D;
%0A
|
9dd923849aab9c12a1aaf250f09a8d5ee6f50060 | Use import plugin default settings | index.js | index.js | /* eslint-disable filenames/no-index */
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
impliedStrict: true,
ecmaFeatures: {
jsx: true,
},
},
extends: [
'eslint:recommended',
'plugin:... | JavaScript | 0 | @@ -398,32 +398,98 @@
y/recommended',%0A
+ 'plugin:import/errors',%0A 'plugin:import/warnings',%0A
'prettie
@@ -488,24 +488,24 @@
'prettier',%0A
-
'pre
@@ -666,17 +666,17 @@
-%22
+'
import/i
@@ -684,13 +684,13 @@
nore
-%22: %5B%22
+': %5B'
node
@@ -697,17 +697,17 @@
_modu... |
2995788873a8dc32a8a1cb3a74608d80da4a1654 | Rename methods | src/js/forms-storage.js | src/js/forms-storage.js | /*===============================================================================
************ Store and parse forms data ************
===============================================================================*/
app.formsData = {};
app.formStoreData = function (formId, formJSON) {
// Store form data in app... | JavaScript | 0.000002 | @@ -1150,20 +1150,20 @@
p.formTo
-JSON
+Data
= funct
@@ -2817,24 +2817,35 @@
('formToJSON
+ formToData
', %7BformData
@@ -2891,24 +2891,57 @@
app.form
-FromJSON
+ToJSON = app.formToData;%0Aapp.formFromData
= funct
@@ -4661,37 +4661,24 @@
%7D%0A %7D%0A
- %0A
%7D);%0A
@@ -4703,16 +4703... |
e5db7dbd18e5f928f17022ad2a029c6eafc1af06 | Fix other gallery photos endpoint name | src/js/constants/Constants.js | src/js/constants/Constants.js | import config from '../config/config';
export const API_ROOT = config.API_ROOT;
export const IMAGES_ROOT = config.IMAGES_ROOT;
export const API_URLS = {
LOGIN : API_ROOT + 'login',
VALIDATE_INVITATION_TOKEN: API_ROOT + 'invitations/token/validate/',
VALIDATE_USERNAME : API_ROOT + ... | JavaScript | 0 | @@ -1298,25 +1298,19 @@
+ '
-users/%7Bid%7D/
photos
+/%7Bid%7D
',%0A%0A
|
cc0a3593cdb752b204d1e5cad7a9a9c852cb5b1f | modify indexjs | src/index.js | src/index.js | 'use strict';
const ViberBot = require('viber-bot').Bot;
const BotEvents = require('viber-bot').Events;
const TextMessage = require('viber-bot').Message.Text;
const winston = require('winston');
const toYAML = require('winston-console-formatter');
const UrlMessage = require('viber-bot').Message.Url;
const ContactMess... | JavaScript | 0.000001 | @@ -5241,16 +5241,21 @@
%0A/*%0Atext
+ name
%0A*/%0A%0Abot
|
17e1de8b828ded3e9c0454dd9cad4d4ea1376ee7 | Fix related link | src/components/RepoFlowItem/RepoFlowItem.js | src/components/RepoFlowItem/RepoFlowItem.js | /**
* Created by PolarisChen on 16/8/10.
*/
import React, { Component, PropTypes } from 'react';
import $ from 'jquery';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './RepoFlowItem.scss';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card... | JavaScript | 0 | @@ -3482,16 +3482,12 @@
ted?
-fullName
+repo
=$%7Bt
|
f84cc2d22d7dd47e061fb77d3cd8b1209aa17d8f | Fix object parameter conversion | src/index.js | src/index.js | const mysql = require('mysql');
const config = JSON.parse(global.LoadResourceFile('ghmattimysql', 'config.json'));
const configString = global.GetConvar('mysql_connection_string', 'mysql://localhost/fivem');
const useBoolean = global.GetConvarInt('mysql_use_boolean', 0);
const showDebug = global.GetConvarInt('mysql_de... | JavaScript | 0.000001 | @@ -680,19 +680,19 @@
meters,
-key
+txt
)) %7B%0A
@@ -719,19 +719,19 @@
ameters%5B
-key
+txt
%5D);%0A
|
c1c1492481c32975e9dfb9d2a06a375ddd21aee4 | Add comment to helper function | index.js | index.js | module.exports = HTTPCallback
var EventEmitter = require('events').EventEmitter
var concat = require('concat-stream')
var http = require('http')
var https = require('https')
var inherits = require('util').inherits
var retry = require('retry')
var url = require('url')
function HTTPCallback(options) {
options = ( opt... | JavaScript | 0 | @@ -3763,16 +3763,87 @@
) %7D) %7D%0A%0A
+// Helper function to check whether a callback request was successful.%0A
function
|
9ac42385af895a7ea003a5139212db70536622bd | add timestamp to error log | index.js | index.js | var mosca = require('mosca');
var message = require('./message');
var moscaSettings = function() {
// for heroku
if (process.env.NODE_ENV == 'production') {
console.log('hello heroku');
var config = {};
config.port = (1 * process.env.PORT) || 1883;
return config;
} else {
return { port: 1883... | JavaScript | 0.00001 | @@ -462,33 +462,28 @@
client) %7B%0A
-console.e
+logE
rror('client
@@ -748,25 +748,20 @@
%7B%0A
-console.e
+logE
rror('fa
@@ -847,33 +847,28 @@
client) %7B%0A
-console.e
+logE
rror('some e
@@ -937,33 +937,28 @@
setup() %7B%0A
-console.e
+logE
rror('Mosca
@@ -987,16 +987,103 @@
ng')%0A%7D%0A%0A
+va... |
613043d0e2e3002a76d49793ab12c1ae1c6df095 | Set ESLint env to "node" for webpack.config.js | public/webpack.config.js | public/webpack.config.js | 'use strict';
module.exports = {
context: __dirname,
entry: {
app: './app/app.jsx'
},
output: {
filename: 'bundle.js',
path: __dirname + '/dist',
publicPath: 'assets/dist/',
chunkFilename: '[id].chunk.js'
},
resolve: {
modulesDirectories: ['node_modules', 'bower_components'],
alias: {
'setup': _... | JavaScript | 0.000002 | @@ -1,8 +1,31 @@
+/* eslint-env node */%0A%0A
'use str
|
2f08894ba1ae404a53303fb55206e5f70a4666c4 | disable some gmaps ui | src/js/location/googleMaps.js | src/js/location/googleMaps.js | /* global google */
const buildMap = function (userLocation, customOptions = {}, domSelector = '.js-map') {
const centre = { lat: userLocation.latitude, lng: userLocation.longitude }
const defaultOptions = {
zoom: 10,
center: centre,
draggable: true
}
const updatedOptions = Object.assign(defaultOpt... | JavaScript | 0 | @@ -259,16 +259,171 @@
le: true
+,%0A mapTypeId: google.maps.MapTypeId.ROADMAP,%0A fullscreenControl: true,%0A zoomControl: true,%0A streetViewControl: false,%0A mapTypeControl: false
%0A %7D%0A c
|
bc845b2e8dac16c83dd8c26e0ca246586ce7ffd5 | Validate dataviews format before instantiating | lib/cartodb/models/analysis-mapconfig-adapter.js | lib/cartodb/models/analysis-mapconfig-adapter.js | var queue = require('queue-async');
var debug = require('debug')('windshaft:analysis');
var camshaft = require('camshaft');
var dot = require('dot');
dot.templateSettings.strip = false;
function AnalysisMapConfigAdapter(analysisBackend) {
this.analysisBackend = analysisBackend;
}
module.exports = AnalysisMapConf... | JavaScript | 0.000001 | @@ -2451,24 +2451,141 @@
ews %7C%7C %7B%7D;%0A%0A
+ var errors = getDataviewsErrors(dataviews);%0A if (errors.length %3E 0) %7B%0A return callback(errors);%0A %7D%0A%0A
var data
@@ -4785,12 +4785,541 @@
%0A %7D);%0A%7D;%0A
+%0Afunction getDataviewsErrors(dataviews) %7B%0A var errors = %5B%5... |
b58b88daf14b6a7025abd13b60f2bd8a070ee5a4 | Remove button on artist details | ReactApp/src/Cards/Program/ProgramComponents.js | ReactApp/src/Cards/Program/ProgramComponents.js | import React, { Component } from 'react';
import {blue100, red100, cyan500, teal400, amber800, pink500, purple500} from 'material-ui/styles/colors';
import {CardText} from 'material-ui/Card';
import RaisedButton from 'material-ui/RaisedButton';
const programTableStyle = {
// border: '1px solid black',
borderColla... | JavaScript | 0 | @@ -2148,253 +2148,8 @@
iv%3E%0A
- %3CCardText%3E%0A %3CRaisedButton label=%7Bstrings.all_details%7D secondary=%7Btrue%7D%0A labelColor='white' linkButton=%7Btrue%7D%0A style=%7B%7BmarginLeft: 'auto'%7D%7D%0A href=%22/static/all-details.html%22 /%3E%0A %3C/CardTe... |
7945953a428d64b0c61e246be1a68ef8d167f7fd | fix cursor iteration | lib/findBy/code/index.js | lib/findBy/code/index.js | const config = require('config'),
_ = require('lodash'),
codeQueryParser = require('./code-query-parser'),
Promise = require('bluebird'),
request = Promise.promisify(require('request').get, { multiArgs: true }),
apps = require('../../db/apps'),
log = require('../../logger');
exports.init = function init(en... | JavaScript | 0.000002 | @@ -1414,20 +1414,24 @@
const
-docs
+respBody
= JSON.
@@ -1441,16 +1441,41 @@
se(body)
+,%0A docs = respBody
.respons
@@ -1561,17 +1561,21 @@
cursor:
-b
+respB
ody.next
|
4ed7e0816a8797012c13318993804fa3049c8ac4 | remove header set | index.js | index.js | var express = require('express');
var app = express();
// GaloreTV 1
// var vids = "https://gdata.youtube.com/feeds/api/playlists/PLPp3tIzLUEwaZfRUCuw1aJbDrTdgdm07b?v=2&alt=jsonc&max-results=49";
// Galore TV 2
// var vids = "https://gdata.youtube.com/feeds/api/playlists/PLPp3tIzLUEwYySnVu0xLsKr13quhabBGr?v=2&alt=jsonc... | JavaScript | 0 | @@ -577,673 +577,8 @@
0;%0A%0A
-// Add headers%0Aapp.use(function (req, res, next) %7B%0A%0A // Website you wish to allow to connect%0A res.setHeader('Access-Control-Allow-Origin', '*');%0A%0A // Request methods you wish to allow%0A res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PA... |
88650c73d3560d1cce65f8e80557cc9b336bde8a | Use path to concatenate folders. Don't use uglify | public/webpack.config.js | public/webpack.config.js | var debug = process.env.NODE_ENV !== 'production';
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? 'inline-sourcemap' : null,
entry: [
'font-awesome-loader',
__dirname +'/js/main.js'
],
output: {
path: __dirname,
filename: 'js/main.min.js'
},
plug... | JavaScript | 0.000192 | @@ -44,16 +44,46 @@
ction';%0A
+const path = require('path');%0A
var webp
@@ -211,16 +211,18 @@
: %5B%0A
+
'font-aw
@@ -240,16 +240,28 @@
r',%0A
+ path.join(
__dirnam
@@ -265,12 +265,11 @@
name
- +'/
+, '
js/m
@@ -275,16 +275,17 @@
main.js'
+)
%0A %5D,%0A
@@ -581,88 +581,8 @@
(),%0A
- new ... |
7463279dbc72847871a2cf124ca929d9abb341f4 | use http cache for signee status and requestor email GETs | app/scripts/services/ahjosign.srv.js | app/scripts/services/ahjosign.srv.js | /**
* (c) 2016 Tieto Finland Oy
* Licensed under the MIT license.
*/
'use strict';
angular.module('AhjoSigningService', [
'ngResource',
])
.factory('SigningOpenApi', function ($resource, ENV) {
return $resource(ENV.SignApiUrl_GetDocs, {}, {
get: {
method: "GET",
... | JavaScript | 0 | @@ -1103,36 +1103,35 @@
cache:
-fals
+tru
e%0A %7D%0A
@@ -1343,36 +1343,35 @@
cache:
-fals
+tru
e%0A %7D%0A
@@ -2330,16 +2330,780 @@
%7D);%0A
-
%7D)
+%0A .service('SigningUtil', %5B'$log', function ($log) %7B%0A $log.debug(%22SigningUtil%22);%0A v... |
70cc088009a599ed74494ad0e162b0c99ce4bfb3 | remove unused var | src/index.js | src/index.js | import { defaultOptions, headings } from './constants'
const emRegex = /em/
const emOrRemRegex = /r?em$/
const getFontValue = size => {
return parseFloat(size)
}
const getFontUnit = size => {
const match = size.match(emOrRemRegex)
return match ? match[0] : 'px'
}
const trimArrayTo6 = array => {
return array... | JavaScript | 0.000002 | @@ -53,29 +53,8 @@
s'%0A%0A
-const emRegex = /em/%0A
cons
|
b52e6783b7593e3bdf0a5e56eae6ebf3ad8091f7 | Add UMD | Gruntfile.js | Gruntfile.js | var version = require('./src/version.js');
module.exports = function(grunt) {
var jssdkSrc = './src/';
var jssdkVer = version.get();
var jssdkDest = './dist/jssdk-';
var jssdkOutput = jssdkDest + jssdkVer + '.js';
var oConfigInit = {
pkg: grunt.file.readJSON('package.json'),
jshin... | JavaScript | 0.00005 | @@ -726,34 +726,32 @@
,%0A
-
browserifyOption
@@ -763,36 +763,32 @@
-
'fullPaths' : fa
@@ -778,35 +778,70 @@
'fullPaths'
-
: false
+,
%0A
+ 'standalone': 'yhsd'%0A
@@ -988,34 +988,32 @@
-
'fullPaths' : fa
@@ -1011,16 +1011,5... |
2140d91010563d9ba386f41279430e9399fe9c85 | Implement getFollowingOlderThan to FollowingUsecase | redux/src/main/domain/usecases/FollowingUsecase.js | redux/src/main/domain/usecases/FollowingUsecase.js | export default class FollowingUsecase {
/**
* @param {TwitterClient} twitterClient
*/
constructor(twitterClient) {
this.twitterClient = twitterClient;
}
/**
* @param {string} myId
* @param {number} count
* @returns {Promise<Object>}
*/
getFollowing(myId, count) {
return this.twitte... | JavaScript | 0.000001 | @@ -371,10 +371,291 @@
);%0A %7D%0A%0A
+ /**%0A * @param %7Bstring%7D myId%0A * @param %7Bstring%7D nextCursor%0A * @param %7Bnumber%7D count%0A * @returns %7BPromise.%3CObject%3E%7D%0A */%0A getFollowingOlderThan(myId, nextCursor, count) %7B%0A return this.twitterClient.friendsList(%7B userId: myId, c... |
b9be3ba3294733abec8e5a281c758586b381ab37 | convert index.coffee | src/index.js | src/index.js | module.exports =
client: require './client.coffee'
tracker: require './tracker.js'
parser: require './parser/parser.coffee'
util: require './util.js'
| JavaScript | 0.00048 | @@ -9,16 +9,18 @@
xports =
+ %7B
%0A cli
@@ -31,17 +31,17 @@
require
-
+(
'./clien
@@ -45,24 +45,26 @@
ient.coffee'
+),
%0A tracker
@@ -72,17 +72,17 @@
require
-
+(
'./track
@@ -87,16 +87,18 @@
cker.js'
+),
%0A par
@@ -109,17 +109,17 @@
require
-
+(
'./parse
@@ -134,16 +134,18 @@
.coffee'
+)... |
15e274ee8301925246e39f00915a971e720e600e | fix erroneous detection of data end | index.js | index.js | var net = require("net");
var EventEmitter = require("events").EventEmitter;
var util = require("util");
var Mail = function (host, debug) {
EventEmitter.call(this);
this.debug = debug;
this.host = host;
var that = this;
var server = net.createSer... | JavaScript | 0.000018 | @@ -2009,16 +2009,17 @@
se if(/%5E
+%5C
.%5Cr%5Cn/m.
|
add169cebf11e9b62e045b74d0d658dc130e763a | Update Point.js | src/js/modules/Point.js | src/js/modules/Point.js | define(function(){
function Point(x, y, context) {
this.x = x;
this.y = y;
this.r = 2;
this.ctx = context;
}
Point.prototype.draw = function() {
this.ctx.fillStyle = '#f00';
this.ctx.beginPath();
this.ctx.arc(this.x, this.y, this.r, 0, Math.PI*2, false);
this.ctx.closePath();
this.ctx.fill();
};
... | JavaScript | 0.000001 | @@ -88,16 +88,39 @@
.r = 2;%0A
+%09%09this.color = '#f00';%0A
%09%09this.c
@@ -196,22 +196,26 @@
Style =
-'#f00'
+this.color
;%0A%09%09this
@@ -360,8 +360,9 @@
nt;%0A%0A%7D);
+%0A
|
85b449f16655ea6159bc35413e8573c10c4a990c | Add rate limit and disconnect error to retry func | src/botPage/bot/tools.js | src/botPage/bot/tools.js | import { Map } from 'immutable'
import { getUTCTime } from 'binary-common-utils/lib/tools'
export const noop = () => {}
export const tradeOptionToProposal = tradeOption =>
tradeOption.contractTypes.map(type => ({
duration_unit: tradeOption.duration_unit,
basis: 'stake',
currency: tradeOption.currency,
... | JavaScript | 0 | @@ -1783,16 +1783,48 @@
esponse'
+, 'RateLimit', 'DisconnectError'
%5D).inclu
|
2abe267564ee9343f4cfd3d4e247d192c731ec3e | change feedback messages | gateway/app.js | gateway/app.js | var env = require('dotenv').config();
var path = require('path');
var express = require('express');
var requestify = require('requestify');
var _ = require('lodash');
var webserver = require('./webservers');
var serial = require('./serial-comm');
var tunnel = require('./tunnelling');
var app = webserver.app;
var server... | JavaScript | 0 | @@ -479,16 +479,38 @@
= false;
+%0Avar findData = false;
%0A%0Aapp.se
@@ -2953,16 +2953,17 @@
%7B%0A if(!
+(
smsSende
@@ -2963,19 +2963,54 @@
msSended
-) %7B
+ && findData)) %7B%0A findData = true;%0A
%0A req
@@ -3580,37 +3580,30 @@
og('
-1 ==%3E sms sended!', smsSended
+SMS SENT SUCCESSFULY!'
);%0A
@@ ... |
0a34c5206d77f342c3eff6833fb13cba5d87c16a | stupid mistakes are stupid | src/index.js | src/index.js | const browser = typeof window !== 'undefined';
let fetch;
let FormData;
if (browser) {
fetch = window.fetch; // eslint-disable-line no-undef
FormData = window.FormData; // eslint-disable-line no-undef
} else {
fetch = require('node-fetch');
FormData = require('./FormData');
}
class Fetcher {
constructor(met... | JavaScript | 0.999985 | @@ -2809,21 +2809,31 @@
reject(f
+ ? f
(err)
+ : err
);%0A
@@ -2861,20 +2861,19 @@
(res) :
-null
+res
);%0A
|
ed022c220f63258a321b60f11ec5d43c3ff86f98 | revert back to localhost:7777 url, for backwards compat. hardcoding is ugly but that is how it worked before | index.js | index.js | 'use strict'
var emojiNamedCharacters = require('emoji-named-characters')
var marked = require('ssb-marked')
var ssbref = require('ssb-ref')
var mlib = require('ssb-msgs')
var blockRenderer = new marked.Renderer()
var inlineRenderer = new marked.Renderer()
// override to only allow external links or hashes, and cor... | JavaScript | 0.000003 | @@ -2407,16 +2407,37 @@
url = '
+http://localhost:7777
/' + hre
|
a8292bc0779cc5f6530424524b3fb7b1ec17a763 | update collection/reduce | src/collection/reduce.js | src/collection/reduce.js | var make = require('./make_')
var arrReduce = require('../array/reduce')
var objReduce = require('../object/reduce')
module.exports = make(arrReduce, objReduce)
| JavaScript | 0 | @@ -19,13 +19,13 @@
('./
+_
make
-_
')%0Av
|
c24121ac73f629b525a05aeed5f27ae66251cb8d | Change Vector class to ES2015/ES6 format. | public/javascript/Attractor.js | public/javascript/Attractor.js | import * as constants from "./constants";
let initNum = 1;
function Attractor(game, center) {
this.type = "attractor";
this.id = initNum;
this.isAlive = true;
this.game = game;
this.center = center;
this.mass = constants.EarthMass * 4;
this.radius = this.mass / constants.EarthMass * const... | JavaScript | 0 | @@ -57,22 +57,51 @@
1;%0A
-function Attra
+export default class Attractor%7B%0A constru
ctor
@@ -117,24 +117,28 @@
nter) %7B%0A
+
+
this.type =
@@ -150,16 +150,20 @@
actor%22;%0A
+
this
@@ -177,24 +177,28 @@
nitNum;%0A
+
+
this.isAlive
@@ -207,24 +207,28 @@
true;%0A%0A
+
+ ... |
6c1ec078ba0a50d22a3f6d9babc6eb09f2d942c5 | Add comments. | index.js | index.js | module.exports = function (node, type) {
var isNode = true
var requiredProps = [
'attributes',
'children',
'type'
]
requiredProps.some(function (prop) {
if (!node[prop]) {
isNode = false
return true
}
})
if (type && isNode) return node.type === type
return isNode
}
| JavaScript | 0 | @@ -1,21 +1,351 @@
-module.exports =
+/**%0A * Returns %60true%60 if %60node%60 is a valid Deku node. If %60type%60 is specified,%0A * it will ensure that type is strictly equal. (whether that is a %60Component%60%0A * or a %60String%60 element name)%0A * @param %7BDekuElement%7D node The virtual node to check.%0A ... |
b3c34bcfaf45085c9806e0929ca4feff05e2ec02 | add coverage | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
phplint: {
options: {
swapPath: '/tmp'
},
application: [
'./src/**/*.php',
'./... | JavaScript | 0 | @@ -1234,16 +1234,48 @@
phpunit'
+,%0A coverage: true
%0A
|
f8c49906462d3776ffc3d2c879cf13127068595c | Add 'pcansi' support for ZOC terminal | core/client_term.js | core/client_term.js | /* jslint node: true */
'use strict';
// ENiGMA½
var Log = require('./logger.js').log;
var enigmaToAnsi = require('./color_codes.js').enigmaToAnsi;
var renegadeToAnsi = require('./color_codes.js').renegadeToAnsi;
var iconv = require('iconv-lite');
var assert = require('assert');
var _ = require('lodash');
... | JavaScript | 0.000001 | @@ -2805,24 +2805,51 @@
fTelnet%0A%09//%0A
+%09//%09pcansi:%0A%09//%09%09* ZOC%0A%09//%0A
%09//%09screen:%0A
@@ -2938,29 +2938,8 @@
%0A%09//
-%0A%0A%09//%09:TODO: Others??
%0A%09re
@@ -2952,16 +2952,26 @@
'ansi',
+ 'pcansi',
'pc-ans
|
e6f041fa35ce5a210e464c3f0f227f5576be687c | update collection/reject — coverage | src/collection/reject.js | src/collection/reject.js | var make = require('./_make')
var makeIterator = require('../function/makeIterator_')
function arrReject (arr, fn, thisObj) {
fn = makeIterator(fn, thisObj)
var result = []
if (arr == null) return result
var i = -1
var len = arr.length
var val
while (++i < len) {
val = arr[i]
if (!fn(val, i, ar... | JavaScript | 0 | @@ -78,16 +78,61 @@
rator_')
+%0Avar hasOwn = Object.prototype.hasOwnProperty
%0A%0Afuncti
@@ -216,16 +216,160 @@
lt = %5B%5D%0A
+ // istanbul ignore if%0A // due to the way %60_make%60 works at present, a null or undefined list%0A // will return undefined. may change in future%0A
if (ar
@@ -670,24 +670,52 @@
... |
e5aba61d05759c9cbc0bda45065413ff4dc44e02 | fix exporting of knockout. | src/index.js | src/index.js | require('coffee-script');
var Server = require('./server');
var Application = require('./server/application');
exports.createServer = function (opts) {
return new Server(opts);
};
exports.createApplication = function (opts) {
return new Application(opts);
};
exports.ko = require('./api/ko').ko
| JavaScript | 0 | @@ -305,12 +305,10 @@
api/ko')
-.ko
+;
%0A
|
91a48ca6deedbf7928a7e563f9725c8e9d287a41 | add check for MGI in GO tab's with column | src/features/Ontology/utils/withLinkGenerator.js | src/features/Ontology/utils/withLinkGenerator.js | // @flow
/**
* This is a helper function to generate links for the With column of DisplayTable.
*/
const withLinkGenerator = (id: string) => {
if (id.slice(0, 3) === "KW-") {
return `https://www.uniprot.org/keywords/${id}`
}
if (id.slice(0, 3) === "SL-") {
return `https://www.uniprot.org/locations/${... | JavaScript | 0 | @@ -409,32 +409,128 @@
try/$%7Bid%7D%60%0A %7D%0A%0A
+ if (id.slice(0, 3) === %22MGI%22) %7B%0A return %60http://www.informatics.jax.org/marker/$%7Bid%7D%60%0A %7D%0A%0A
if (id.slice(0
|
3ce3d5f8381c154a7ed19f56c478560b87787a0b | use relative path instead of absolute path of weinre & log | lib/inspectors/weinre.js | lib/inspectors/weinre.js | var Transform = require('pipestream').Transform;
var util = require('../util');
var weinrePath, weinreUrl, weinreScript;
module.exports = function(req, res, next) {
if (req.rules.weinre) {
if (!weinreUrl) {
weinrePath = this.config.WEBUI_PATH + 'weinre.' + this.config.weinreport;
weinreUrl = weinrePa... | JavaScript | 0 | @@ -428,16 +428,17 @@
ath + '%22
+;
%3C/script
|
f011e7ecc4c625d720004b6d5aeab9219f2fe6ec | improve error handling | src/index.js | src/index.js | import Parsec from "parsec"
import { notifyUpdates, findFlypath as find } from "fly-util"
import reporter from "./reporter"
import cli from "./cli/"
import pkg from "../package"
notifyUpdates({ pkg })
let { help, list, file, version, _: tasks } =
Parsec.parse(process.argv)
.options("file", { default: "./" })
... | JavaScript | 0.000002 | @@ -4,27 +4,23 @@
ort
-Parsec
+Fly
from %22
-parsec
+./fly
%22%0Aim
@@ -28,61 +28,27 @@
ort
-%7B notifyUpdates, findFlypath as find %7D from %22fly-util
+Parsec from %22parsec
%22%0Aim
@@ -86,16 +86,21 @@
%0Aimport
+* as
cli from
@@ -109,16 +109,82 @@
./cli/%22%0A
+import %7B trace, notifyUpdates, findPath... |
b820382e2b9500f8ef47a193389eba9f56182a9f | add default weinre id | lib/inspectors/weinre.js | lib/inspectors/weinre.js | var Transform = require('pipestream').Transform;
var util = require('../util');
module.exports = function(req, res, next) {
if (req.rules.weinre) {
var localUIHost = this.config.localUIHost;
res.on('src', function(_res) {
if (!util.supportHtmlTransform(_res)) {
return;
}
var name = util.getPath(util.... | JavaScript | 0 | @@ -353,45 +353,8 @@
));%0A
-%09%09%09if (!name) %7B%0A%09%09%09%09return;%0A%09%09%09%7D%0A%09%09%09%0A
%09%09%09v
|
813711445c64d07cd9a45eac06b8e7b5b112e896 | Make the display count in UnreadNotice 'unlimited' | src/chat/UnreadNotice.js | src/chat/UnreadNotice.js | /* @flow */
import React, { PureComponent } from 'react';
import { StyleSheet, View } from 'react-native';
import type { Narrow } from '../types';
import connectWithActions from '../connectWithActions';
import { getUnreadCountForNarrow } from '../selectors';
import { Label, RawLabel } from '../common';
import { unread... | JavaScript | 0 | @@ -851,16 +851,36 @@
ops = %7B%0A
+ limited: boolean,%0A
narrow
@@ -889,16 +889,16 @@
Narrow,%0A
-
unread
@@ -983,16 +983,68 @@
Props;%0A%0A
+ static defaultProps = %7B%0A limited: false,%0A %7D;%0A%0A
static
@@ -1115,16 +1115,33 @@
const %7B
+ limited, narrow,
unreadC
@@ -1164,43 +1164,8 @@
ops... |
d39d7c8be0acd187e0835134a6979c48049a2367 | Use context.response.reply. fixes #3 | src/command-middleware.js | src/command-middleware.js | // Description:
// Middleware to prevent certain commands to be run in certain rooms
//
module.exports = function(robot) {
robot.listenerMiddleware(function(context, next, done){
var id = context.listener.options.id;
var room = context.response.envelope.room;
var cb = robot.brain.data.commandBlacklists... | JavaScript | 0.998903 | @@ -407,35 +407,31 @@
-robot.send(%7B room: room %7D,
+context.response.reply(
%22Sor
@@ -544,8 +544,9 @@
%0A %7D);%0A%7D
+%0A
|
71be4924c8bde048fe3a57a30472de98b77cdce9 | Correct models connector | app/templates/server/route-models.js | app/templates/server/route-models.js | 'use strict';
var _ = require('lodash');
var _s = require('underscore.string');
var async = require('async');
function extractModels(params) {
return _.values(_.reduce(params, function(memo, value, key) {
var index = key.split('.').pop();
var param = key.slice(0, -(index.length + 1));
mem... | JavaScript | 0.000002 | @@ -471,10 +471,9 @@
odel
-s/
+-
' +
|
e7f26be82f2895dd79aabc743415c0f881b26a3c | Change the logo to our new logo. | public/javascripts/checkout.js | public/javascripts/checkout.js | lichess.checkout = function(publicKey) {
var $checkout = $('div.plan_checkout');
var lifetime = {
cents: parseInt($checkout.data('lifetime-cents')),
usd: $checkout.data('lifetime-usd')
};
var $stripeForm = $checkout.find('form.stripe_checkout');
var min = 100, max = 100 * 100000;
if (location.hash... | JavaScript | 0 | @@ -3045,94 +3045,49 @@
s://
-s3.amazonaws.com/stripe-uploads/acct_18J612Fj1uHKxNqMmerchant-icon-1465200826114-logo.
+lichess1.org/assets/logo/lichess-favicon-
512.
@@ -3227,16 +3227,17 @@
function
+
(token)
|
c1bd9e91f56d4a841f47d90a1bd6e75fbc63b089 | Fix typo | src/commands/fun/8ball.js | src/commands/fun/8ball.js | const { Command } = require('discord-akairo')
const { randomFrom } = require('../../util/Util.js')
const responses = [
['Yes.', 'Absolutely.', 'Most likely.', 'Wihtout a doubt.', 'It is certain.'],
['Reply hazy, try again.', 'Better not tell you now.', 'Concentrate and ask again.'],
['My sources say no.', 'Nuh-h... | JavaScript | 0.999999 | @@ -162,10 +162,10 @@
'Wi
-h
t
+h
out
|
fa4aabbcf9625dd067f35bfb960f05ce060c819d | Fix some comments | index.js | index.js | 'use strict';
/**
* Wordpress MVC gulp development file.
* Enables predefined (standarized) tasks, such use minify or sass compilation.
*
* @link http://gulpjs.com/
* @author Alejandro Mostajo <info@10quality.com>
* @copyright 10 Quality
* @license MIT
* @version 1.2.1
*/
/**
* Export module.
* @since 1.0.... | JavaScript | 0.001466 | @@ -15,25 +15,25 @@
%0A/**%0A * Word
-p
+P
ress MVC gul
@@ -100,19 +100,18 @@
s, such
-use
+as
minify
@@ -4410,17 +4410,17 @@
lean tru
-c
+n
k%0A gu
@@ -4570,37 +4570,38 @@
);%0A // Build
-trunk
+assets
%0A gulp.task('
@@ -5449,17 +5449,17 @@
// Word
-p
+P
ress tas
|
131d5becadb4a5c2cc05a2cc40efdd6383bb8f96 | add param prop to inject as handlerParam | src/common/action-bar.js | src/common/action-bar.js | import _ from 'messages'
import ActionButton from 'action-button'
import map from 'lodash/map'
import React from 'react'
import Tooltip from 'tooltip'
import {
ButtonToolbar
} from 'react-bootstrap-4/lib'
const STYLE = {
borderRadius: '15px',
fontSize: '1.8em'
}
const ActionBar = ({ actions }) => (
<ButtonToo... | JavaScript | 0.000001 | @@ -292,16 +292,23 @@
actions
+, param
%7D) =%3E (
@@ -355,16 +355,38 @@
handler,
+ handlerParam = param,
label,
@@ -533,16 +533,54 @@
andler%7D%0A
+ handlerParam=%7BhandlerParam%7D%0A
|
1f5cc1871583e4f4cebee72338486138016f411e | add some code comment (RT-3224) | src/js/util/settings.js | src/js/util/settings.js |
/**
* Check if userblob is actual blob class, not just empty dummy object
*
* @param userBlob
*/
exports.blobIsValid = function(userBlob) {
return userBlob instanceof rippleVaultClient.Blob;
}
/**
* Check if there is such setting in user blob
* use like hasSetting($scope.userBlob, 'trust.advancedM... | JavaScript | 0 | @@ -1750,24 +1750,142 @@
'secure');%0D%0A
+ // when edited it comes as string from input,%0D%0A // so convert to number to be stored in blob in consisten way%0D%0A
o.port =
@@ -1889,15 +1889,22 @@
t =
-+
+Number(
o.port
+)
;%0D%0A
|
65f97d3798dfc54ff0eefdda5076f2fd8535740c | add jupyter notebook | public/js/ProjectController.js | public/js/ProjectController.js | var projectModule = angular.module('Project', []);
projectModule.controller('projController',['$scope', '$window', function($scope,$window){
$scope.sentiment1 = function(){
var langdingUrl = 'http://'+$window.location.host+'/sentiment1';
$window.location.href= langdingUrl;
};
$scope.sentiment2 = functi... | JavaScript | 0.000001 | @@ -861,9 +861,54 @@
s: '
-#
+https://github.com/ricLuo/My_MeanStack_Website
'%7D%0A
|
9a14ed4d06f9c120527dd7e73111e80dfa809c06 | add images path | src/commands/user/draw.js | src/commands/user/draw.js | const imagedir = "./src/data/images/draw/";
const config_path = "../config_json/draw.json"
module.exports = function (client, message) {
let card = undefined;
card = GetACard("");
};
function Help(message) {
message.channel.send(
"```\n" +
"command " + message.content.split(" ")[0] + "\n" +
"```"
... | JavaScript | 0.000001 | @@ -1,12 +1,29 @@
+// imagedir-path%0A
const imaged
@@ -64,120 +64,452 @@
nst
-config_path = %22../config_json/draw.json%22%0A%0Amodule.exports = function (client, message) %7B%0A let card = undefined;%0A
+bounsSSR_path = imagedir + %22BounsSSR/%22;%0Aconst bounsSR_path = imagedir + %22BounsSR/%22;%0Aconst SSR_path... |
177064e2259030634774dbffaf1f277a2e27581c | move lib/* ./ | index.js | index.js | module.exports = require('./lib/websocket'); | JavaScript | 0.000001 | @@ -1,44 +1,733 @@
-module.exports = require('./lib/websocket');
+var EventEmitter = require('events').EventEmitter;%0Avar websocket = require('./websocket');%0Avar http = require('http');%0A%0A%0Afunction Server (server,config) %7B%0A this.server = server;%0A this.config = config %7C%7C %7B%7D;%0A%7D%0A%0AServer.pro... |
aabd31eaf6a1af84c3de7f86227597fb081a1c22 | Make it compatible with node v5.0.0 | index.js | index.js | #!/usr/bin/env node
const moment = require("moment");
const sugar = require("sugar");
const chalk = require("chalk");
const exec = require("child_process").exec;
process.argv.splice(0, 2);
if (process.argv.length > 0) {
// Attempt to parse the date
let date = process.argv.join(" ");
let parsedDate = new sugar.D... | JavaScript | 0.00042 | @@ -13,16 +13,32 @@
nv node%0A
+%0A'use strict';%0A%0A
const mo
|
d283e5da728b9e5b86bc9c1f1c48d9f5bc84e85b | check first if user is null | routes/middleware.js | routes/middleware.js | /**
* This file contains the common middleware used by your routes.
*
* Extend or replace these functions as your application requires.
*
* This structure is not enforced, and just a starting point. If
* you have more middleware you may want to group it as separate
* modules in your project's /lib directory.
... | JavaScript | 0.000002 | @@ -938,16 +938,28 @@
req.user
+ && req.user
.canAcce
|
6fe6179f9a8e3696ca8ef70a40f588ee9ddcc631 | Store jobs with reduced redundancy on S3 | index.js | index.js | 'use stirct'
var opbeat = require('opbeat').start()
var uuid = require('node-uuid')
var AWS = require('aws-sdk')
var Printer = require('ipp-printer')
var port = process.env.PORT || 3000
var s3 = new AWS.S3()
var printer = new Printer({ name: 'printbin', port: port, zeroconf: false })
printer.on('job', function (job... | JavaScript | 0 | @@ -620,16 +620,56 @@
cript',%0A
+ StorageClass: 'REDUCED_REDUNDANCY',%0A
Key:
|
354b971f6522b89225cf20844af06ec7fcabaa72 | Fix #50 for Bramble, removed console.log in error catcher | lib/PostMessageTransport.js | lib/PostMessageTransport.js | /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, forin: true, maxerr: 50, regexp: true */
/*global define, brackets*/
// This transport provides a PostMessage connection between Brackets and a live browser preview.
define(function (require, exports, module) {
"use strict";
var _ifram... | JavaScript | 0 | @@ -1119,97 +1119,8 @@
) %7B%0A
- console.error(%22PostMessageTransport: Error parsing message: %22 + event.data);%0A
|
ded45b2c9b0515cc7a0dd6bdc41899defb7d3a54 | Improve activity display | src/commands/activity.js | src/commands/activity.js | var path = require("path");
var _ = require("lodash");
var Bacon = require("baconjs");
var colors = require("colors");
var moment = require("moment");
var Activity = require("../models/activity.js");
var AppConfig = require("../models/app_configuration.js");
var Logger = require("../logger.js");
var displayState = ... | JavaScript | 0.000004 | @@ -323,24 +323,33 @@
nction(state
+, isFirst
) %7B%0A switch
@@ -393,24 +393,26 @@
n %22OK
+
%22.bold.green
@@ -448,24 +448,26 @@
n %22FAIL
+
%22.bold.red;%0A
@@ -505,16 +505,18 @@
ANCELLED
+
%22.bold.r
@@ -527,16 +527,252 @@
-default:
+case %22WIP%22:%0A if(isFirst) %7B%0A ... |
e90e44a7c83b11e7664dbc4338e8a9f8a4c656d3 | use URLs from "Link" response header for pagination | scenarios/api.github.com/paginate-issues/record.js | scenarios/api.github.com/paginate-issues/record.js | module.exports = paginateIssues
const env = require('../../../lib/env')
const getTemporaryRepository = require('../../../lib/temporary-repository')
async function paginateIssues (state) {
let error
// create a temporary repository
const temporaryRepository = getTemporaryRepository({
request: state.request,
... | JavaScript | 0.000001 | @@ -1369,19 +1369,13 @@
-const baseU
+let u
rl =
@@ -1651,97 +1651,8 @@
%7D%0A%0A
- await state.request(Object.assign(options, %7B%0A url: %60$%7BbaseUrl%7D&page=1%60%0A %7D))%0A%0A
@@ -1664,17 +1664,17 @@
let i =
-2
+1
; i %3C= 5
@@ -1683,24 +1683,41 @@
i++) %7B%0A
+ const response =... |
9888b199d0ad77ee68824d338575a642bad568d8 | remove unneccessary blank lines | index.js | index.js | 'use strict'
/*
* adonis-framework
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
| JavaScript | 0.99777 | @@ -208,9 +208,8 @@
ode.%0A*/%0A
-%0A
|
b9eaa9efc8951a71608ccacc5c2a1c0c89272baa | Update r.js configuration | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
compile: {
options: {
mainConfigFile: 'js/main.js',
baseUrl: 'js/',
name: '../bower_... | JavaScript | 0.000001 | @@ -228,16 +228,38 @@
gFile: '
+gui-resources/scripts/
js/main.
@@ -293,16 +293,38 @@
seUrl: '
+gui-resources/scripts/
js/',%0A
@@ -352,126 +352,108 @@
e: '
-../bower_components/almond/almond',%0A include: %5B'main'%5D,%0A out: 'build/app.min.js'
+main',%0A ... |
e71497787de26f58341b659503426f7ea6ec21d7 | Change StumbleUpon share text | src/jssocials.shares.js | src/jssocials.shares.js | (function(window, $, jsSocials, undefined) {
$.extend(jsSocials.shares, {
stumbleupon: {
label: "StumbleUpon",
logo: "fa fa-stumbleupon",
shareUrl: "http://www.stumbleupon.com/submit?url={url}&title={title}",
countUrl: "https://cors-anywhere.herokuapp.com/... | JavaScript | 0.000002 | @@ -122,18 +122,12 @@
: %22S
-tumbleUpon
+hare
%22,%0A
|
96798d6556d09b0620824f00b1f459b22354e6f0 | remove duplicated logging code | generals-ai.js | generals-ai.js | // Overall System Design
//
// -------------- ------------------
// |DOM elements|--> populateGameState() -->|gameState Object|
// -------------- ------------------
// ^ | | |
// | ... | JavaScript | 0.000017 | @@ -1093,304 +1093,8 @@
---%0A
-%0Avar logger = %7B%7D;%0Avar DEBUG_LEVEL = 5;%0Alogger.trace = function(str) %7B%0A if (DEBUG_LEVEL %3E= 6) %7B%0A console.log(str);%0A %7D%0A%7D%0A%0Alogger.debug = function(str) %7B%0A if (DEBUG_LEVEL %3E= 5) %7B%0A console.log(str);%0A %7D%0A%7D%0A%0Alogger.info = function... |
fd6c1f9d6b3f25917f37fbb5f8589c4e49f6db80 | remove extra import | src/index.js | src/index.js | import path from 'path'
import execa from 'execa'
import findup from 'findup-sync'
import jp from 'fs-jetpack'
import entries from 'lodash/entries'
import isString from 'lodash/isString'
import isFunction from 'lodash/isFunction'
import xdg from 'xdg-basedir'
export const paths = {
downloadDir: path.join(xdg.data, '... | JavaScript | 0.000002 | @@ -108,45 +108,8 @@
ck'%0A
-import entries from 'lodash/entries'%0A
impo
|
6851a3194b481fe0b349bfd9b04f2acc0cc505a6 | Make it more clear that users should enter their linkedin name instead of a URL | src/app/views/account/profile/ProfileController.js | src/app/views/account/profile/ProfileController.js | (function() {
'use strict';
angular.module('civic.account')
.controller('AccountProfileController', AccountProfileController);
// @ngInject
function AccountProfileController($scope,
$state,
$interval,
... | JavaScript | 0.000027 | @@ -3969,35 +3969,25 @@
helpText: '
-A link to y
+Y
our LinkedIn
@@ -3987,22 +3987,23 @@
inkedIn
-profil
+usernam
e, displ
|
aa8c1f7c6aaca40a55357035e40f68e90e030f53 | Update MediaFileProxy.js | lib/win8metro/plugin/win8metro/MediaFileProxy.js | lib/win8metro/plugin/win8metro/MediaFileProxy.js | var utils = require('cordova/utils'),
File = require('cordova/plugin/File'),
CaptureError = require('cordova/plugin/CaptureError');
/**
* Represents a single file.
*
* name {DOMString} name of the file, without path information
* fullPath {DOMString} the full path of the file, including the name
* ... | JavaScript | 0 | @@ -140,481 +140,8 @@
);%0D%0A
-/**%0D%0A * Represents a single file.%0D%0A *%0D%0A * name %7BDOMString%7D name of the file, without path information%0D%0A * fullPath %7BDOMString%7D the full path of the file, including the name%0D%0A * type %7BDOMString%7D mime type%0D%0A * lastModifiedDate %7BDate%7D last modified d... |
a1cf7b7ca50fe98e537bf3e0f17e4e34cf2315e6 | Remove config value we no longer use. | Gruntfile.js | Gruntfile.js | /**
* Created by bantonides on 11/27/13.
*/
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
grunt.initConfig({
/**
* We read in our `package.json` file so we can access the package name and
* version. It's already there, so we don't repeat... | JavaScript | 0 | @@ -2041,124 +2041,8 @@
%7B%0A
- from: 'AUTH0_AUDIENCE_DASHBOARD',%0A to: process.env.AUTH0_AUDIENCE_DASHBOARD%0A %7D,%0A %7B%0A
|
1ee3dc58a439dbd3fe0cd6658e6ad9232216c08f | remove unnecessary mixed type (#3022) | src/jsutils/memoize3.js | src/jsutils/memoize3.js | /**
* Memoizes the provided three-argument function.
*/
export function memoize3<
A1: { ... } | $ReadOnlyArray<mixed>,
A2: { ... } | $ReadOnlyArray<mixed>,
A3: { ... } | $ReadOnlyArray<mixed>,
R: mixed,
>(fn: (A1, A2, A3) => R): (A1, A2, A3) => R {
let cache0;
return function memoized(a1, a2, a3) {
i... | JavaScript | 0 | @@ -201,15 +201,8 @@
%0A R
-: mixed
,%0A%3E(
|
cc898de3eda0f4f2c9ddf57cd977ed9009857639 | Make it more clear that users should enter their facebook handle instead of a URL | src/app/views/account/profile/ProfileController.js | src/app/views/account/profile/ProfileController.js | (function() {
'use strict';
angular.module('civic.account')
.controller('AccountProfileController', AccountProfileController);
// @ngInject
function AccountProfileController($scope,
$state,
$interval,
... | JavaScript | 0.000017 | @@ -3641,19 +3641,9 @@
t: '
-A link to y
+Y
our
@@ -3651,21 +3651,20 @@
acebook
-profi
+hand
le, disp
|
7e2afd1fd52e6fd2deb536e2c9a5c8056a3560cc | Fix links in agenda items for Firefox | src/components/Agenda.js | src/components/Agenda.js | import React, {PureComponent, PropTypes} from 'react';
import {View, Text, TouchableHighlight, StyleSheet} from 'react-native';
import {compileAgendaContent} from '../agendas';
import Button from './Button';
import MarkdownContent from './MarkdownContent';
import Refresh from './Refresh';
class TimeboxedItem extends P... | JavaScript | 0 | @@ -659,11 +659,23 @@
s('a
-, a
+%5Bhref%5D, a%5Bhref%5D
*')
@@ -743,25 +743,24 @@
this.props;%0A
-%0A
onSelect
@@ -1477,16 +1477,51 @@
ghlight%0A
+ accessibilityRole='link'%0A
|
f28fbfc5712119cadee3b10d25a398a8d0d4f304 | fix clone issue were doc root needed to be deleted, should build a clone script and i guess build a config file | git-express.js | git-express.js | var express = require('express')
var clone = require("nodegit").Clone.clone;
var proxy = express()
var git_path = "https://github.com/stevenharradine/git-express.git"
var getMostRecentCommit = function(repository) {
return repository.getBranchCommit(branch)
}
var getCommitMessage = function(commit) {
return commi... | JavaScript | 0 | @@ -70,16 +70,63 @@
.clone;%0A
+var open = require(%22nodegit%22).Repository.open;%0A
var prox
@@ -524,26 +524,8 @@
2%5D%0A%0A
- console.log ()%0A%0A
// C
@@ -572,16 +572,18 @@
folder.%0A
+//
clone(
@@ -609,16 +609,54 @@
, null)%0A
+ open(%22docroot%22)//, %22docroot%22, null)%0A
// L
|
c1799e9bee34fca4698f0d5e392c98492ff6abc0 | Update Article.js | src/components/Article.js | src/components/Article.js | import React, { Component, PropTypes } from 'react'
import CommentList from './CommentList'
import { findDOMNode } from 'react-dom'
class Article extends Component {
static propTypes = {
article: PropTypes.object.isRequired,
selectArticle: PropTypes.func.isRequired,
isSelected: PropTypes.bo... | JavaScript | 0.000001 | @@ -1398,24 +1398,118 @@
extProps) %7B%0A
+ //%D0%B5%D1%81%D0%BB%D0%B8 %D0%B1 %D0%B7%D0%B4%D0%B5%D1%81%D1%8C %D0%B1%D1%8B%D0%BB%D0%B0 %D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0, %D0%BD%D1%83%D0%B6%D0%BD%D0%BE %D0%BB%D0%B8 %D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B6%D0%B0%D1%82%D1%8C %D1%82%D0%B5%D0%BA%D1%81%D1%8... |
b162dafae803c00bcdc9987baf2ea5d8e1d7d3ff | Add `componentWillReceiveProps` method to Avatar component (#1045) | src/components/Avatar.js | src/components/Avatar.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import getImage from '../helpers/getImage';
import './Avatar.less';
const defaultImage =
'https://res.cloudinary.com/hpiynhbhq/image/upload/v1506948447/p72avlprkfariyti7q2l.png';
class Avatar extends Component {
static propTypes = {
... | JavaScript | 0 | @@ -565,16 +565,177 @@
ps;%0A
- if (
+%0A this.setState(%7B%0A imageUrl: getImage(%60@$%7Busername%7D?s=$%7Bsize%7D%60),%0A %7D);%0A %7D%0A%0A componentWillReceiveProps(nextProps) %7B%0A if (this.props.username !== nextProps.
user
@@ -787,32 +787,42 @@
l: getImage(%60@$%7B
+nextProps.
username%7D... |
545085c89a7faebae4f41cc4505b9d28d029d77d | Update ios-helper.js | hooks/lib/ios-helper.js | hooks/lib/ios-helper.js |
var fs = require("fs");
var path = require("path");
var utilities = require("./utilities");
/**
* This is used as the display text for the build phase block in XCode as well as the
* inline comments inside of the .pbxproj file for the build script phase block.
*/
var comment = "\"Fabric.io: Crashlytics\"";
module... | JavaScript | 0.000001 | @@ -1715,24 +1715,26 @@
in(%22%22);%0A
+//
%0A
@@ -1717,33 +1717,54 @@
(%22%22);%0A//
-%0A
+ // %22$%7BPODS_ROOT%7D%22%0A//
var scri
@@ -1860,16 +1860,325 @@
+ '%22';%0A
+// var script = '%22' + %22./Fabric.framework/run %22 + pluginConfig.apiKey + %22 %22 + pluginConfig.... |
0b23cd77e01cc0c62140d56d01bf6471e9ca3835 | Tweak release tag message | Gruntfile.js | Gruntfile.js | "use strict";
module.exports = function (grunt) {
grunt.initConfig({
bump: {
options: {
files: ["package.json"],
commit: true,
commitMessage: "Release %VERSION%",
commitFiles: ["package.json"],
createTag: true,
... | JavaScript | 0 | @@ -213,16 +213,8 @@
e: %22
-Release
%25VER
|
da0ccd087831f15c9cd7a1dbc657c14afc5f82ba | remove unused modules | index.js | index.js | #!/usr/bin/env node
var cp = require('child_process')
var path = require('path')
var os = require('os')
var crypto = require('crypto')
if (require.main === module) {
var child = launch(process.argv)
child.stdout.pipe(process.stdout)
child.stderr.pipe(process.stderr)
}
function launch (args) {
if (!args) {
... | JavaScript | 0.000001 | @@ -78,62 +78,8 @@
th')
-%0Avar os = require('os')%0Avar crypto = require('crypto')
%0A%0Aif
|
0fd624e2f425b35703021308969f57c628f00ba1 | Remove wrong delete translation implementation. | src/article/models/TranslateableCollectionModel.js | src/article/models/TranslateableCollectionModel.js | import DefaultCollectionModel from './DefaultCollectionModel'
export default class TranslateableCollectionModel extends DefaultCollectionModel {
constructor(api) {
super(api)
}
addItem (item) { // eslint-disable-line no-unused-vars
// TODO: adding a figure like this would be possible in a classical Subs... | JavaScript | 0 | @@ -468,49 +468,8 @@
ars%0A
- this._api.deleteTranslation(item.id)%0A
%7D%0A
|
14bdeef7a63a51942306b0588f2063eb1162cf42 | Add `,` to illegals in Python function definition. | src/languages/python.js | src/languages/python.js | /*
Language: Python
Category: common
*/
function(hljs) {
var PROMPT = {
className: 'prompt', begin: /^(>>>|\.\.\.) /
};
var STRING = {
className: 'string',
contains: [hljs.BACKSLASH_ESCAPE],
variants: [
{
begin: /(u|b)?r?'''/, end: /'''/,
contains: [PROMPT],
relevan... | JavaScript | 0.000006 | @@ -1784,16 +1784,17 @@
/%5B$%7B=;%5Cn
+,
%5D/,%0A
|
eb2cf005b0e9d796341552a41b062c2328e7f829 | Remove ModelError form MASTER.js, because @chochos told me to. | runtime-js/MASTER.js | runtime-js/MASTER.js | (function(define) {
define(function(rq$, ex$, module) {
//the Ceylon language module
//#METAMODEL
//#COMPILE core_functions.js,Anything.js,Object,Null,Identifiable,Callable,callables.js,dynamic_functions.js
//#COMPILE comprehensions.js,Basic,Throwable,printStackTrace,Exception,Comparison,identityHash,impl/rethrow,... | JavaScript | 0 | @@ -3158,36 +3158,8 @@
ance
-,meta/declaration/ModelError
%0A//#
|
62aa3b15905295749841a9d939ed46563ce78bad | fix padding props on Column | src/components/Column.js | src/components/Column.js | import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import Base from './Base';
const BREAKPOINTS = {
default: 0,
small: 1,
medium: 2,
large: 3,
huge: 4,
};
const SIZES = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
const BREAKPOINT_NAMES = Object.keys(BREAKPOINTS);
const push = direction => p... | JavaScript | 0.000001 | @@ -959,24 +959,141 @@
%09%09%7D%0A%09%60;%0A%7D;%0A%0A
+const padding = (prop, fallback) =%3E props =%3E%0A%09props.theme.space%5Bprops%5Bprop%5D%5D %7C%7C props.theme.space%5Bprops%5Bfallback%5D%5D;%0A%0A
const Column
@@ -1185,20 +1185,23 @@
ding: $%7B
-size
+padding
('p')%7D;%0A
@@ -1220,59 +1220,25 @@
: $%7B
-... |
733bde456bd6ffad1e68b162cc3764a4b7a678bd | Fix indentation of the Python grammar | src/languages/python.js | src/languages/python.js | define(function() {
// Export
return function(Prism) {
Prism.languages.python= {
'comment': {
pattern: /(^|[^\\])#.*?(\r?\n|$)/g,
lookbehind: true
},
'string' : /("|')(\\?.)*?\1/g,
'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in... | JavaScript | 0.999999 | @@ -17,21 +17,10 @@
) %7B%0A
-%0A%09// Export%0A%09
+
retu
@@ -40,19 +40,20 @@
rism) %7B%0A
-%0A%09%09
+
Prism.la
@@ -70,19 +70,22 @@
thon= %7B%0A
-%09%09%09
+
'comment
@@ -89,20 +89,24 @@
ent': %7B%0A
-%09%09%09%09
+
pattern:
@@ -137,12 +137,16 @@
/g,%0A
-%09%09%09%09
+
look
@@ -1... |
60e55413052f442c387c8ba552aa18920585ceda | prepare for test ,the first step is finished | index.js | index.js | 'use strict';
/*
*@author xtx1130
*@description 处理基础routes和基本controller绑定,抛出扩展后的koa构造函数
*/
const Koa = require('koa');
const Routes = require('./app/routes/koas-router');
const Controller = require('./app/controllers/controller');
const Assert = require('assert');
const syncRouteController = Symbol.for('koas#syncRo... | JavaScript | 0.000014 | @@ -1261,16 +1261,18 @@
%7D%0A%09%09%7D%0A%09%09
+//
console.
@@ -1320,16 +1320,18 @@
)%0A%09%7D%09%0A%7D%0A
+//
let s =
|
1c761072e85174eef506254cf0a02a225383b270 | Fix typo. | Gruntfile.js | Gruntfile.js | /* jshint node:true */
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-ts');
grunt.loadNpmTasks('grunt-tslint');
grunt.loadNpmTakss('dts-generator');
grunt.loadNpmTasks('... | JavaScript | 0.001604 | @@ -270,18 +270,18 @@
oadNpmTa
-k
s
+k
s('dts-g
|
6eac425565aeec28a317e9e8f94fe0764b660fdf | Remove log statement | cs-ish/euler/017.js | cs-ish/euler/017.js | //
// Number Letter Counts
//
// If the numbers 1 to 5 are written out in words: one, two, three, four, five,
// then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
//
// If all the numbers from 1 to 1000 (one thousand) inclusive were written out
// in words, how many letters would be used?
//
var numbers = {... | JavaScript | 0.000001 | @@ -1511,40 +1511,4 @@
t%0A%7D%0A
-%0Aconsole.log(numberToLetters(1000))%0A
|
fbb5b35a163ffc79b2458fc7d54bafb0065e5a9e | simplify cli instructions | src/js/components/modals/CliInstallModal.js | src/js/components/modals/CliInstallModal.js | import { Trans } from "@lingui/macro";
import { i18nMark } from "@lingui/react";
import browserInfo from "browser-info";
import classNames from "classnames";
import { Modal } from "reactjs-components";
import PropTypes from "prop-types";
import React from "react";
import { Icon } from "@dcos/ui-kit";
import { SystemIc... | JavaScript | 0 | @@ -2047,71 +2047,8 @@
= %5B%0A
- %60%5B -d /usr/local/bin %5D %7C%7C sudo mkdir -p /usr/local/bin%60,%0A
@@ -2091,35 +2091,23 @@
%60
-sudo mv dcos /usr/local/bin
+chmod +x ./dcos
%60,%0A
@@ -2117,24 +2117,23 @@
%60sudo
-chmod +x
+mv dcos
/usr/lo
@@ -2139,21 +2139,16 @@
ocal/bin
-/dcos
%60,%0A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.