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 |
|---|---|---|---|---|---|---|---|
d3ff165b425b48531290b80c91a9e218221d9bd0 | Fix incoming URLs | views/utils/routes.js | views/utils/routes.js | import NotificationIconController from "../controllers/notification-icon-controller";
import ChatController from "../controllers/chat-controller";
import ChatTitleController from "../controllers/chat-title-controller";
import RoomTitleController from "../controllers/room-title-controller";
import DiscussionsController ... | JavaScript | 0.999999 | @@ -2487,16 +2487,67 @@
(%22/%22);%0A%0A
+%09const room = parts%5B0%5D;%0A%09const thread = parts%5B1%5D;%0A%0A
%09switch
@@ -2569,17 +2569,17 @@
%7B%0A%09case
-1
+0
:%0A%09%09retu
@@ -2592,42 +2592,77 @@
tes.
-room(%7B room: parts%5B0%5D %7D);%0A%09case 2:
+home();%0A%09case 1:%0A%09%09if (room === %22me%22) %7... |
518f356fea7f8bf59e0e2912736fce9cf3868f1d | fix the input validation on cookbook versions | public/javascripts/cookbook_constraint_ctrl.js | public/javascripts/cookbook_constraint_ctrl.js | function jQuerySuggest(timestamp){
var cb_name = retrieveCbName(timestamp);
populateVersionBoxContent(timestamp, cb_name);
document.getElementById("cookbook_version_" + timestamp).value = "0.0.0";
}
function populateVersionBoxContent(timestamp, cb_name){
$.getJSON('/cookbooks/'+cb_name, function(result){
... | JavaScript | 0.000058 | @@ -824,16 +824,17 @@
.match(/
+%5E
%5Cd+%5C.%5Cd+
|
1b6cd47ea29b04960d1dbe1b852baee827ab1962 | Update api_admin.js | routes/api_admin.js | routes/api_admin.js | var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
res.json({
status: "ok",
version: "1"
});
});
router.get('/feedback/getList', global.apiCall, global.requireUser, global.getUserRecord, global.requireViewFeedback, function(req, res, next) {
knex("feedba... | JavaScript | 0.000002 | @@ -375,32 +375,74 @@
function(obj) %7B%0A
+%09%09var tempArr = obj;%0A%09%09tempArr.reverse();%0A
%09%09res.json(%7B%0A%09%09%09
@@ -468,19 +468,23 @@
edback:
-obj
+tempArr
%0A%09%09%7D);%09%0A
|
9c7f905b3a054b1fb8db61017928b44c448d87dd | Add Chrome browser for angular2 tests | generators/app/conf.js | generators/app/conf.js | const lit = require('fountain-generator').lit;
module.exports = function karmaConf(props) {
const conf = {
browsers: props.framework === 'angular2' ? ['Chrome'] : ['PhantomJS'],
basePath: '../',
singleRun: props.singleRun,
autoWatch: !props.singleRun,
logLevel: 'INFO',
junitReporter: {outputD... | JavaScript | 0 | @@ -107,83 +107,8 @@
= %7B%0A
- browsers: props.framework === 'angular2' ? %5B'Chrome'%5D : %5B'PhantomJS'%5D,%0A
@@ -124,16 +124,16 @@
'../',%0A
+
sing
@@ -258,22 +258,381 @@
ports'%7D%0A
-
%7D;%0A%0A
+ if (process.env.TRAVIS) %7B%0A conf.browsers = %5B'Chrome_travis_ci'%5D;%0A conf.customL... |
3de04ef8716394d0ff1cae2409c9d32bd102fba6 | Disable eslint camel case | generators/app/conf.js | generators/app/conf.js | const lit = require('fountain-generator').lit;
module.exports = function karmaConf(props) {
const conf = {
basePath: '../',
singleRun: props.singleRun,
autoWatch: !props.singleRun,
logLevel: 'INFO',
junitReporter: {outputDir: 'test-reports'}
};
if (process.env.TRAVIS) {
conf.browsers = [... | JavaScript | 0.000207 | @@ -361,20 +361,22 @@
chers =
+lit%60
%7B%0A
-
Chro
@@ -424,18 +424,16 @@
melcase%0A
-
ba
@@ -452,18 +452,16 @@
,%0A
-
flags: %5B
@@ -480,25 +480,22 @@
x'%5D%0A
-
%7D%0A
-
-
%7D
+%60
;%0A %7D el
|
e69353bfdfd311a622500691f7763f1c901345fa | Change scale extent to 0.01~10 | public_html/js/XDI_graph_editor_zoom.js | public_html/js/XDI_graph_editor_zoom.js | /*
The MIT License (MIT)
Copyright (c) 2014 Neustar Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | JavaScript | 0.00314 | @@ -1181,11 +1181,13 @@
(%5B0.
+0
1,
-3
+10
%5D)%0A
|
879c8ac4b8e7895a18f0236ed6c52fa5bb6d3c19 | fix ireland | app/lib/score-scraper.js | app/lib/score-scraper.js | /**
* Dependencies.
*/
var request = require('request');
var cheerio = require('cheerio');
/**
* Module.
*/
module.exports = function (options) {
/**
* Constants.
*/
var url = 'http://www.livescore.com/euro/';
// var url = 'http://www.livescore.com/worldcup/match/?match=1-1444464';
var mainClass =... | JavaScript | 0.000007 | @@ -575,16 +575,86 @@
eland%22;%0A
+ if (team === %22Ireland%22)%0A team = %22Republic of Ireland%22;%0A
%0A ret
|
e3b550378fa545c003d91243363e723f47c7281e | fix save post | public/js/controllers/admin.js | public/js/controllers/admin.js |
var FluidApp = angular.module('FluidApp', []);
FluidApp.service('PageService', function() {
this.createPage = function(data) {
$.post('/' + data.route, data, function() {
console.log('POST success');
});
}
this.savePage = function(data) {
$.put('/' + data.route, data, function() {
con... | JavaScript | 0 | @@ -1146,16 +1146,18 @@
a.title)
+ +
'.json'
@@ -2415,18 +2415,21 @@
title:
-''
+title
,%0A
@@ -2440,18 +2440,21 @@
getSlug(
-''
+title
),%0A
|
53700a1a1938b15c768f29f4c5e190334147d0ea | add stdout log | routes/pdftotext.js | routes/pdftotext.js | import log from "../libs/log";
import multer from "multer";
import fs from "fs";
import * as PDFTOTEXT from "child_process";
const UPLOAD = multer({dest: 'public/uploads/'}).single('pdf');
module.exports = app => {
app.get("/api/pdftotext", (req, res) => {
res.json({status: "PDF to Text API"});
// res.flush(); ... | JavaScript | 0.000258 | @@ -868,16 +868,39 @@
;%0A%09%09%09%7D%0A%0A
+%09%09%09log.debug(stdout);%0A%0A
%0A%09%09%7D)%0A%0A%0A
|
33f753abf817864a5b206fa6a16d4772681f47fb | edit geometry in a sql view fixed | lib/assets/javascripts/cartodb/table/infowindow.js | lib/assets/javascripts/cartodb/table/infowindow.js | /**
* this infowindow is shown in the map when user clicks on a feature
*/
(function() {
var MapInfowindow = cdb.geo.ui.Infowindow.extend({
events: cdb.core.View.extendEvents({
'click .edit': '_editGeom',
'click .remove': '_removeGeom'
}),
initialize: function() {
var self = th... | JavaScript | 0 | @@ -667,24 +667,437 @@
%7D%0A %7D);
+%0A%0A // Set live tipsy when geom is enabled or disabled%0A this.$el.find(%22a.edit%22).tipsy(%7B%0A live:true,%0A fade:true,%0A gravity: 's',%0A offset: -2,%0A title: function()%7B%0A var enabled = !$(this).hasClass(%22d... |
2c167f56caa226637be6fa1c9f06458bb2bf237a | enable async subscribe test | packages/node_modules/@webex/internal-plugin-presence/test/integration/spec/presence.js | packages/node_modules/@webex/internal-plugin-presence/test/integration/spec/presence.js | /*!
* Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file.
*/
import '@webex/internal-plugin-mercury';
import '@webex/internal-plugin-presence';
import {assert} from '@webex/test-helper-chai';
import WebexCore from '@webex/webex-core';
import testUsers from '@webex/test-helper-test-users';
import {expectEv... | JavaScript | 0.000004 | @@ -5470,34 +5470,32 @@
s change', () =%3E
- %7B
%0A spock.w
@@ -6347,25 +6347,16 @@
e dnd'))
-;%0A %7D
);%0A %7D
|
6a4f19f1dfaf4d0d3ed55c2b2ce6370353a0bc8b | Add API endpoint to update existing quotes | routes/v1/quotes.js | routes/v1/quotes.js | var express = require('express');
var router = express.Router();
var models = require('../../models/index');
router.get('/', function (req, res) {
models.Quote.find({}).then(function(response){
return res.json(response);
});
});
router.get('/random', function (req, res) {
models.Quote.find({}).then(functi... | JavaScript | 0 | @@ -175,34 +175,34 @@
hen(function
-(response)
+ (quotes)
%7B%0A return
@@ -211,24 +211,54 @@
es.json(
-response
+%7Bcount: quotes.length, quotes: quotes%7D
);%0A %7D);
@@ -307,17 +307,16 @@
res) %7B%0A
-%0A
models
@@ -344,16 +344,17 @@
function
+
(respons
@@ -355,16 +355,17 @@
esponse)
+
%7B%0A ... |
812074e20ec80d098b408fa52d77c9dd062b7ee3 | Add Chromium to the list of supported user agents because Chromium on ubuntu the user agent is not the same as Chrome. | public/src/util/accepted-ua.js | public/src/util/accepted-ua.js | /* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
(function() {
var ACCEPTED_UA_LIST = {
"Chrome": 17,
"Firefox": 10,
"IE": 9,
"Safari... | JavaScript | 0 | @@ -252,16 +252,36 @@
IST = %7B%0A
+ %22Chromium%22: 17,%0A
%22Chr
|
c363a4814660ae300621d495a3f810738e88d3ce | change to 87 to fix site | lib/book-generator.js | lib/book-generator.js | /**
* @overview Book-Generator Lib
* @module bookGenerator
* @author Dominik Sigmund
* @version 0.1
* @description Creates pdfs from Images
* @memberof resilienz
* @requires module:fs
* @requires module:sync
* @requires module:child_process
* @requires bin:imagemagick
*/
var fs = require('fs')
var async = ... | JavaScript | 0 | @@ -4154,9 +4154,9 @@
ty 8
-9
+7
-pa
|
524cd718b3bcf5edfdd90a45589ff4c25d860489 | tweak limit again | lib/bumpAframeDocs.js | lib/bumpAframeDocs.js | const async = require('async');
const fs = require('fs');
const config = require('../config');
const utils = require('./utils');
const execCommand = utils.execCommand;
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
/**
* Run `bumpdocs` on the aframe-site repository and deploy.
*/
function bumpAframeDocs (data) {
... | JavaScript | 0 | @@ -791,33 +791,33 @@
old-space-size=1
-0
+5
0 /app/.heroku/n
@@ -921,17 +921,17 @@
e-size=1
-0
+5
0 /app/.
|
b3af1049adf495e622b7c975467518becf62631d | add buffSpellId | src/Parser/Core/Modules/Items/BFA/Dungeons/RevitalizingVoodooTotem.js | src/Parser/Core/Modules/Items/BFA/Dungeons/RevitalizingVoodooTotem.js | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Abilities from 'Parser/Core/Modules/Abilities';
import ItemHealingDone from 'Main/ItemHealingDone';
/**
* Revitalizing Voodoo Totem -
* Use: Heals the target for 0 ev... | JavaScript | 0.000001 | @@ -784,16 +784,68 @@
VOODOO,%0A
+ buffSpellId: SPELLS.TOUCH_OF_THE_VOODOO.id,%0A
@@ -1181,17 +1181,16 @@
ling +=
-(
event.am
@@ -1193,22 +1193,16 @@
t.amount
- %7C%7C 0)
+ (even
|
517af4d7985e10eaa0ff731859bff6bccfba6c95 | Configure Redux store to work with redux-devtools-extensions & react-native-debugger | app/redux/store/index.js | app/redux/store/index.js | /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore } from 'redux';
import reducers from '../reducers';
// export default createStore(
// reducers,
// undefined,
// applyMiddleware(),
// );
export default createStore(
reducers,
wi... | JavaScript | 0 | @@ -122,16 +122,25 @@
ateStore
+, compose
%7D from
@@ -185,19 +185,97 @@
cers';%0A%0A
-//
+const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ %7C%7C compose;%0A%0A
export d
@@ -294,19 +294,16 @@
eStore(%0A
-//
reduce
@@ -310,172 +310,70 @@
rs,%0A
-// undefined,%0A// applyMiddleware(),%... |
08c3430ab23a94f0573bc063e726d6974e1c75ae | update message | app/scripts/bootstrap.js | app/scripts/bootstrap.js | /**
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | JavaScript | 0 | @@ -3655,15 +3655,17 @@
be
-retried
+saved for
lat
|
52392966d0252727c6fd0cfec48298f2d0115243 | disable factoids plugin for now | app/scripts/node-main.js | app/scripts/node-main.js | var PLUGINS = ['./plugins/greet', './plugins/weather', './plugins/factoids'];
var jQuery = require('jQuery');
var repl = require("repl");
var requirejs = require('requirejs');
requirejs.config({
//Use node's special variable __dirname to
//get the directory containing this file.
//Useful if building a libr... | JavaScript | 0 | @@ -50,30 +50,8 @@
her'
-, './plugins/factoids'
%5D;%0Av
|
4f0fa7cfd2894a75c90a0cf4e2fb2d61c9502891 | move addons and (most) api docs to reference | website/sidebars.js | website/sidebars.js | /**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
module.exports = {
documentatio... | JavaScript | 0 | @@ -380,34 +380,16 @@
rials: %5B
-'user_guide/index'
%5D,%0A
@@ -427,97 +427,1315 @@
': %5B
-'user_guide/index'%5D,%0A 'Getting started': %5B%0A 'user_guide/index',
+%0A %7B%0A type: 'category',%0A link: %7B type: 'doc', id: 'addons/... |
bd1708ab061ac7f3f8e7218a876e19eb1c47a7de | Update accounts-meteorid package description | packages/accounts-meteorid/package.js | packages/accounts-meteorid/package.js | Package.describe({
summary: "Login service for Meteor accounts",
internal: true // XXX for now
});
Package.on_use(function (api) {
api.use(['underscore', 'random']);
api.use('accounts-base', ['client', 'server']);
// Export Accounts (etc) to packages using this one.
api.imply('accounts-base', ['client', 's... | JavaScript | 0 | @@ -48,16 +48,18 @@
r Meteor
+Id
account
|
b15b121bfa8773e614a97348b0221a3f244aa0ae | Replace ListView with List from NativeBase | js/components/developer/choose-language-screen/index.js | js/components/developer/choose-language-screen/index.js | import React, { Component } from 'react';
import { StyleSheet, View, ListView } from 'react-native';
import { Card, Thumbnail, Container, Content } from 'native-base';
import chooseLanguageStyles from './chooseLanguageStyles';
import GlobalStyle from '../../common/globalStyle';
import CardHeader from '../../common/card... | JavaScript | 0 | @@ -64,18 +64,8 @@
View
-, ListView
%7D f
@@ -128,16 +128,22 @@
Content
+, List
%7D from
@@ -756,209 +756,8 @@
%7D;%0A%0A
- constructor(props) %7B%0A super(props);%0A const ds = new ListView.DataSource(%7B rowHasChanged: (r1, r2) =%3E r1 !== r2 %7D);%0A this.state = %7B%0A dataSource: ds.cloneWi... |
c5a823cf9f289a87d891d54c89e7aee28bf5ba47 | Remove Firebase starter app | website/sidebars.js | website/sidebars.js | module.exports = {
Sidebar: [
"getting_started",
{
type: "category",
label: "Concepts",
items: [
"concepts/providers",
"concepts/reading",
"concepts/combining_providers",
{
type: "category",
label: "Modifiers",
items: [
... | JavaScript | 0.000001 | @@ -1942,189 +1942,8 @@
k%22,%0A
- label: %22Firebase Starter%22,%0A href: %22https://github.com/lohanidamodar/flutter_firebase_starter/tree/feature/riverpod%22,%0A %7D,%0A %7B%0A type: %22link%22,%0A
|
0f14de729a3944f2dccec32709151ad2dfad090a | fix bug 817093 - Use get() Persona method | media/js/mdn/init.js | media/js/mdn/init.js | /* Global initialization script */
/* Fake the placeholder attribute since Firefox doesn't support it. */
jQuery.fn.placeholder = function(new_value) {
if (new_value) {
this.attr('placeholder', new_value);
}
/* Bail early if we have built-in placeholder support. */
if ('placeholder' in docume... | JavaScript | 0 | @@ -4052,21 +4052,8 @@
.get
-VerifiedEmail
(fun
|
8d0e26262c3a0956751eb7b6049b9b2572cce11f | Add another blank like in constant.js file | src/audio-worklet/free-queue/examples/simple-passthrough/constants.js | src/audio-worklet/free-queue/examples/simple-passthrough/constants.js | export const KERNEL_LENGTH = 20;
export const RENDER_QUANTUM = 128;
export const FRAME_SIZE = KERNEL_LENGTH * RENDER_QUANTUM;
export const QUEUE_SIZE = 40960;
| JavaScript | 0.000002 | @@ -152,8 +152,9 @@
40960;%0A
+%0A
|
f9dc54fdf63333c84b201aefb9072c9ca03ace26 | remove uncessary imports | src/ui/animation/index.js | src/ui/animation/index.js | import 'velocity-animate';
import 'velocity-animate/velocity.ui';
import './loader';
import './directive';
| JavaScript | 0.006981 | @@ -1,71 +1,4 @@
-import 'velocity-animate';%0Aimport 'velocity-animate/velocity.ui';%0A%0A
impo
|
567d832f35edbbe23b5df31bf3f93f88945d5462 | revert fontSize to 15px | packages/cf-style-const/src/variables.js | packages/cf-style-const/src/variables.js | import { lighten, darken } from 'polished';
const colorOffsetLight = 0.15;
const colorOffsetDark = 0.07;
export default {
gradient: {
primary: 'linear-gradient(left, #76C4E2, #85CBA8)',
two: 'linear-gradient(left, #8176B5, #85CBA8)',
three: 'linear-gradient(left, #8176B5, #76C4E2)',
four: 'linear-gr... | JavaScript | 0.000002 | @@ -1020,17 +1020,17 @@
Size: '1
-6
+5
px',%0A b
|
bddb0185b40751cfbd2d38579cc2565546ea5fab | Add css-mqpacker to postcss task | app/src/grunt/postcss.js | app/src/grunt/postcss.js | /*
* POSTCSS: Transforming CSS with JS plugins
*/
module.exports = function (grunt) {
var proc = {
autoprefixer: require('autoprefixer-core'),
singleCharset: require('postcss-single-charset')
},
opt = {
autoprefixer: {
browsers: 'last 2... | JavaScript | 0.000001 | @@ -160,16 +160,67 @@
ore'),%0D%0A
+ cssMqPacker: require('css-mqpacker'),%0D%0A
@@ -632,32 +632,79 @@
pt.autoprefixer)
+,%0D%0A proc.cssMqPacker.postcss
%0D%0A
|
de2fcbe72f0a8b77d07fd7d5ebe95d9b31b9e7f4 | remove genericScale console log | src/util/getColorScale.js | src/util/getColorScale.js | // import * as scales from "./colorScales";
import createLegendMatchBound from "./createLegendMatchBounds";
import { genericDomain, colors, genotypeColors } from "./globals";
import { parseGenotype, getGenotype } from "./getGenotype"
import d3 from "d3";
/* this checks if there are more items in the tree compared
t... | JavaScript | 0 | @@ -743,24 +743,27 @@
cmax) =%3E %7B%0A
+ //
console.log
@@ -788,33 +788,8 @@
led.
- This is next to useless.
%22)%0A
|
c8917bfc4c9cbc86f492560feec8c3fb8e942239 | Return stats in callback | lib/cartodb/backends/turbo-carto-postgres-datasource.js | lib/cartodb/backends/turbo-carto-postgres-datasource.js | 'use strict';
var dot = require('dot');
dot.templateSettings.strip = false;
function createTemplate(method) {
return dot.template([
'SELECT',
'min({{=it._column}}) min_val,',
'max({{=it._column}}) max_val,',
'avg({{=it._column}}) avg_val,',
method,
'FROM ({{=it._sql... | JavaScript | 0.000001 | @@ -2501,58 +2501,31 @@
+var
result
-Set
=
-resultSet %7C%7C %7B%7D;%0A var r
+getR
esult
- =
+(
resu
@@ -2533,21 +2533,10 @@
tSet
-.rows %7C%7C %5B%5D;%0A
+);
%0A
@@ -2614,11 +2614,8 @@
ult%5B
-0%5D%5B
meth
@@ -2629,16 +2629,159 @@
%7C%7C %5B%5D;%0A
+ var stats = %7B%0A ... |
d3f1a4ce1647ab7588751aa03e0cafb89146e6fc | Update VPN download-first exp cookie ID | media/js/products/vpn/download-first-experiment.js | media/js/products/vpn/download-first-experiment.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
(function (Mozilla) {
'use strict';
var href = window.location.href;
var initTrafficCop = function (... | JavaScript | 0 | @@ -1036,20 +1036,22 @@
age-
-sub-position
+download-first
-exp
|
bc0c8035221b0ef0b30b5d68e5a011678c31164c | use includes instead of regex | src/javascript/app/pages/user/account/settings/professional_client.js | src/javascript/app/pages/user/account/settings/professional_client.js | const BinaryPjax = require('../../../../base/binary_pjax');
const Client = require('../../../../base/client');
const BinarySocket = require('../../../../base/socket');
const FormManager = require('../../../../common/form_manager');
const State = require('../../../../../_common/storage').State;
const pr... | JavaScript | 0.000002 | @@ -1202,36 +1202,38 @@
&&
-/%5Eprofessional$/.test(status
+status.includes('professional'
)) %7B
@@ -1416,34 +1416,49 @@
(is_in_page &&
-/%5E
+status.includes('
professional_req
@@ -1463,30 +1463,17 @@
equested
-$/.test(status
+'
)) %7B%0A
@@ -1662,10 +1662,25 @@
&&
-/%5E
+status.includes('
prof
@@ -1... |
bff104d9fa3a8e6c15246b53bc7bd228facc2f91 | Add 'odd'/'even' classes on table rows | chromium/common/html/paginatedtable.js | chromium/common/html/paginatedtable.js | function PaginatedTable(opts) {
var that = this;
that._manager = opts.manager;
that._table = opts.table;
that._createRow = opts.createRow;
that._currentPage = 0;
if (opts.rowClick) {
that._table.find("tr:not(.moreRow)").live("click", function() {
var theRow = $(this);
opts.rowClick(theRow.... | JavaScript | 0.005228 | @@ -1677,16 +1677,125 @@
ewRow);%0A
+ if (newRow.prev().hasClass(%22odd%22))%0A newRow.addClass(%22even%22);%0A else%0A newRow.addClass(%22odd%22);%0A
newR
|
c8a0dff14cf8a0357d3e22694fa884bcd212f0c2 | 주석 수정 | data/parser/blog/drama.js | data/parser/blog/drama.js | // TODO 변경필요
const blogName = 'Drama & Company';
const rootUrl = 'http://blog.dramancompany.com/category/develop/';
const headerSrc = 'http://blog.dramancompany.com/wp-content/uploads/2015/11/2000_dark.png';
// Module
const cheerio = require('cheerio');
const requestPromise = require('request-promise');
const rootPat... | JavaScript | 0.000001 | @@ -980,17 +980,108 @@
/
-/ Summary
+**%0A * Summary%0A * post-article %ED%81%B4%EB%9E%98%EC%8A%A4%EB%A5%BC %EA%B0%80%EC%A7%84 %EC%9A%94%EC%86%8C%EA%B0%80 2%EA%B0%80%EC%A7%80 %EC%9D%B4%EA%B8%B0 %EB%95%8C%EB%AC%B8%EC%97%90 1%EB%A1%9C %ED%95%B4%EC%A4%98%EC%95%BC%ED%95%A8%0A */
%0A... |
995064b35b8d60b93882f85aa69991141c55b912 | add digits validator | src/validators/Numbers.js | src/validators/Numbers.js | import Error from './ValidatorError'
export default {
min(name, value, params) {
value = value === null || typeof value === 'undefined' ? '' : value
return new Promise((resolve, reject) => {
var min = parseInt(params[0])
if (value.length < min) reject(new Error(name, `${name} field must have at l... | JavaScript | 0.999789 | @@ -50,19 +50,22 @@
ult %7B%0A
-min
+digits
(name, v
@@ -80,661 +80,244 @@
rams
-) %7B%0A value = value === null %7C%7C typeof value === 'undefined' ? '' : value%0A return new Promise((resolve, reject) =%3E %7B%0A var min = parseInt(params%5B0%5D)%0A if (value.length %3C min) reject(new Error(name,... |
b335eba2c5673bfdf71cdb4a6993dd6475c07e96 | Make effect evaluator recover from errors | public/js/commands.js | public/js/commands.js | define(function(require) {
var sandbox = require('./sandbox');
var groups = require('./examples');
var funkit = require('funkit');
var $ = require('jquery');
// https://github.com/josscrowcroft/javascript-sandbox-console
function initCommands($p, editor, previews, dims) {
$p.append($pla... | JavaScript | 0.000007 | @@ -1980,24 +1980,58 @@
);%0A%0A
+ try %7B%0A
@@ -2088,16 +2088,157 @@
, vars);
+%0A %7D%0A catch(e) %7B%0A console.error(e.message);%0A %7D
%0A%0A
|
c2535d313bd9f1b03bbcc680f8f5d48bfefd286c | modify path for icons in code | javascripts/src/processingjs_ide.js | javascripts/src/processingjs_ide.js | /**
Copyright (C) 2011 by Semmy Purewal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribut... | JavaScript | 0 | @@ -1540,16 +1540,23 @@
(%22run%22,%22
+images/
icons/ru
@@ -1619,24 +1619,31 @@
on(%22save%22, %22
+images/
icons/save.p
@@ -1745,16 +1745,23 @@
tach%22, %22
+images/
icons/at
|
96dcdf038c216e45724a072428abde088465b8dc | Check for 403 and reload page. | client/app/view/auth/AuthController.js | client/app/view/auth/AuthController.js | Ext.define('Starter.view.auth.AuthController', {
extend: 'Ext.app.ViewController',
// <debug>
onLoginAsAdminButtonClick: function() {
var form = this.getView().getForm();
form.setValues({
username: 'admin@starter.com',
password: 'admin'
});
this.onLoginButtonClick();
},
onLoginAsUserButt... | JavaScript | 0.000001 | @@ -930,32 +930,128 @@
orm, action) %7B%0D%0A
+%09%09%09%09if (action.response.status === 403) %7B%0D%0A%09%09%09%09%09window.location.reload();%0D%0A%09%09%09%09%09return;%0D%0A%09%09%09%09%7D%0D%0A
%09%09%09%09Starter.Util
@@ -1081,32 +1081,32 @@
ignin_failed);%0D%0A
-
%09%09%09%7D%0D%0A%09%09%7D);%0D%0A%09%7D,
@... |
1e6b03f019448b12948eb33fc9893a62a904a957 | Remove debug logging | web/jitard.js | web/jitard.js | /**
* Created by kriberg on 21.02.14.
*/
var App = angular.module('Jitard', []);
App.controller('ItemCtrl', function($scope, $http) {
$http.get('/stationspinner/marketitems/')
.then(function(res) {
$scope.items = res.data;
});
$scope.currentPage = 0;
$scope.pageSizes = [
... | JavaScript | 0.000002 | @@ -1831,40 +1831,8 @@
');%0A
- console.log(predicate);%0A
|
728199e8e29ab7f3d8d6e5d6dcbf7ecb72b58e00 | remove cmd_load from cd-dojos | lib/dojos/cd-dojos.js | lib/dojos/cd-dojos.js | 'use strict';
var _ = require('lodash');
var path = require('path');
var serve_static = require('serve-static');
module.exports = function (options) {
var seneca = this;
var plugin = 'dojos';
var version = '1.0';
options = seneca.util.deepextend({
prefix: '/api/'
}, options);
seneca.add({ role: plug... | JavaScript | 0.000003 | @@ -450,58 +450,8 @@
y);%0A
- seneca.add(%7Brole: plugin, cmd: 'load'%7D, proxy);%0A
se
|
b06f46248c1a71c712339ac144c1fb29896421ff | Delete LOG_OUT action | client/src/reducers/articlesReducer.js | client/src/reducers/articlesReducer.js | import initialState from './initialState'
export default function articlesReducer(state = initialState.articles, action) {
switch(action.type) {
case 'LOADING_ARTICLES':
if (!state.find(element => element.name === action.payload.name)) {
return [...state, action.payload]
} else {
re... | JavaScript | 0.000001 | @@ -157,76 +157,34 @@
se '
-LOADING_ARTICLES':%0A if (!state.find(element =%3E element.name ===
+GET_SOURCES':%0A return
act
@@ -187,38 +187,45 @@
action.payload.
-name))
+map(source =%3E
%7B%0A retur
@@ -230,78 +230,49 @@
urn
-%5B...stat
+%7Bname: source.nam
e, a
-ction.payload%5D%0A %7... |
36840a69e0e69eb3b007b3dadbe2135a5a03e751 | Update Knobs for Message Storybook | src/components/message/message.stories.js | src/components/message/message.stories.js | import React from 'react';
import { storiesOf } from '@storybook/react';
import { text, select, boolean } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import OptionsHelper from '../../utils/helpers/options-helper';
import notes from './notes.md';
import Message from './message';
st... | JavaScript | 0 | @@ -412,20 +412,14 @@
per.
-themesBinary
+colors
, Me
@@ -1091,16 +1091,25 @@
ismiss=%7B
+ evt =%3E %7B
action(
@@ -1116,16 +1116,23 @@
'click')
+(evt) %7D
%7D%0A
|
3019cb110e156134173b3c52666ee5364abffffd | patch from Fred to avoid error in certain browsers | src/war/js/application.js | src/war/js/application.js | if(Ajax) {
Ajax.Responders.register({
onCreate: function() {
if($('spinner') && Ajax.activeRequestCount>0)
Effect.Appear('spinner',{duration:0.5,queue:'end'});
},
onComplete: function() {
if($('spinner') && Ajax.activeRequestCount==0)
Effect.Fade('spinner',{duration:0.5,que... | JavaScript | 0.000001 | @@ -1,11 +1,40 @@
+var Ajax;%0A
if
+
(Ajax
+ && (Ajax != null)
) %7B%0A
|
31a84e2be2b83a80d92368ff203fdbdaaa228b19 | add new callback | public/js/sinterjs.js | public/js/sinterjs.js | var sinter = {};
sinter.login = function(assertion){
$.ajax({
type:'POST',
url:'/login',
data:{assertion:assertion},
success:function(res,status,xhr){
if(res.needName){
var name = '';
while(!name){
name=prompt('please in... | JavaScript | 0.000001 | @@ -1797,1042 +1797,930 @@
ion(
+event
)%7B%0A
- // do preview%0A%7D;%0Asinter.publish = function()%7B%0A // do publish%0A%0A%7D;%0Asinter.edit = function()%7B%0A console.log('edit')%0A%7D;%0Asinter.draft = function()%7B%0A console.log('draft');%0A%7D;%0Awindow.sinter = sinter;%0A%0A$(function()%7... |
ca4387f54999ffb6f1094d839105cf12ca49cc39 | Add back button icon | js/forum/src/components/TagsPage.js | js/forum/src/components/TagsPage.js | import Component from 'flarum/Component';
import IndexPage from 'flarum/components/IndexPage';
import listItems from 'flarum/helpers/listItems';
import humanTime from 'flarum/helpers/humanTime';
import tagLabel from 'flarum/tags/helpers/tagLabel';
import sortTags from 'flarum/tags/utils/sortTags';
export default clas... | JavaScript | 0.000002 | @@ -187,16 +187,56 @@
anTime';
+%0Aimport icon from 'flarum/helpers/icon';
%0A%0Aimport
@@ -525,16 +525,34 @@
h('tags'
+, icon('th-large')
);%0A a
|
ebff2336093985bbff54656bf45b6354ba8c9a7a | fix module not found | src/web/containers/App.js | src/web/containers/App.js | import React, { Component } from 'react';
import Board from '../components/Board'
import Header from '../components/Header'
import { connect } from 'react-redux'
import * as LamaActions from '../../common/actions'
import { bindActionCreators } from 'redux'
import HTML5Backend from 'react-dnd-html5-backend';
import {Dra... | JavaScript | 0 | @@ -430,16 +430,19 @@
Status'%0A
+//
import %7B
|
2a0b15f085d9c29a954544e15a2fb39dc580d35b | Remove prefix '_' while passing context param to templates | lib/cartodb/models/dataview/list.js | lib/cartodb/models/dataview/list.js | const BaseDataview = require('./base');
const debug = require('debug')('windshaft:dataview:list');
const TYPE = 'list';
const listSqlTpl = ctx => `select ${ctx._columns} from (${ctx._query}) as _cdb_list`;
/**
{
type: 'list',
options: {
columns: ['name', 'description']
}
}
*/
module.exports = cla... | JavaScript | 0.000002 | @@ -155,17 +155,16 @@
t $%7Bctx.
-_
columns%7D
@@ -176,17 +176,16 @@
($%7Bctx.
-_
query%7D)
@@ -835,33 +835,32 @@
l(%7B%0A
-_
query: this.quer
@@ -866,33 +866,32 @@
ry,%0A
-_
columns: this.co
|
050e9776d1355e9c24fed37d71fe9ef32b583dc2 | Use const for requirements, constants and variables that are initialized once | lib/cartodb/models/dataview/list.js | lib/cartodb/models/dataview/list.js | var BaseDataview = require('./base');
var TYPE = 'list';
var listSqlTpl = ctx => `select ${ctx._columns} from (${ctx._query}) as _cdb_list`;
/**
{
type: 'list',
options: {
columns: ['name', 'description']
}
}
*/
module.exports = class List extends BaseDataview{
constructor (query, options = {... | JavaScript | 0 | @@ -1,11 +1,13 @@
-var
+const
BaseDat
@@ -34,19 +34,21 @@
ase');%0A%0A
-var
+const
TYPE =
@@ -56,19 +56,21 @@
list';%0A%0A
-var
+const
listSql
@@ -746,11 +746,13 @@
-var
+const
lis
|
9bfbf6873aa61a3d0762a7a4a4288f5434b90d1c | FIX SCROLLSPY | public/scripts/app.js | public/scripts/app.js |
function easeInOut(t) {
return t<.5 ? 16*t*t*t*t*t : 1+16*(--t)*t*t*t*t;
}
angular.module("personaApp", ['ngRoute', 'ngAnimate', 'duScroll'])
.value('duScrollEasing', easeInOut)
.value('duScrollOffset', 30)
.value('duScrollBottomSpy', true)
.controller('AppController', function($rootScope, $location){
var app = th... | JavaScript | 0.000001 | @@ -504,266 +504,8 @@
%7D;%0A%0A
- $rootScope.$on('$routeChangeStart', function(event, currRoute, prevRoute)%7B%0A $rootScope.animation = currRoute.animation;%0A %7D);%0A%0A $rootScope.$on('$routeChangeSuccess', function(event, currRoute, prevRoute)%7B%0A $(document).duScrollTop(0, 1100);%0A %7D);%0A%0A
... |
c1fd0ca34ed58de8c89091f8d30ac2aaf0ff8e2d | Switch the container page to use the new view | cms/static/js/views/pages/container.js | cms/static/js/views/pages/container.js | /**
* XBlockContainerView is used to display an xblock which has children, and allows the
* user to interact with the children.
*/
define(["jquery", "underscore", "gettext", "js/views/feedback_notification", "js/views/feedback_prompt", "js/views/baseview", "js/views/xblock", "js/views/modals/edit_xblock", "js/models... | JavaScript | 0 | @@ -252,16 +252,38 @@
seview%22,
+ %22js/views/container%22,
%22js/vie
@@ -419,16 +419,31 @@
aseView,
+ ContainerView,
XBlockV
@@ -813,38 +813,41 @@
blockView = new
-XBlock
+Container
View(%7B%0A
@@ -7907,9 +7907,8 @@
fine();%0A
-%0A
|
8b1488e8cfbe4708295fb3c8fb1cdf1a6883c26c | fix ButtonMenu tests | packages/tocco-ui/src/Menu/ButtonMenu.spec.js | packages/tocco-ui/src/Menu/ButtonMenu.spec.js | import React from 'react'
import {shallow} from 'enzyme'
import ButtonMenu from './ButtonMenu'
import Menu from './Menu'
import MenuItem from './MenuItem'
import Button from '../Button'
import ButtonGroup from '../ButtonGroup'
import Icon from '../Icon'
describe('tocco-ui', () => {
describe('Menu', () => {
desc... | JavaScript | 0 | @@ -1018,9 +1018,9 @@
gth(
-2
+1
)%0A
|
fcdd4917387c65833d18e401acfd986f6ad57f6d | add notes on history | packages/editor/plugins/history/index.js | packages/editor/plugins/history/index.js | // FIXME: this plugin is a hack. Fine for now, but needs to be
// cleaned up
import sift from 'sift';
import debounce from 'lodash/function/debounce';
import { CallbackNotifier } from 'common/notifiers';
import ObservableCollection from 'common/collection/observable';
import { Entity, deserialize } from 'editor/entity... | JavaScript | 0 | @@ -71,16 +71,204 @@
ned up%0A%0A
+// TODO: diff history - reduce all data to figure out snapshot.%0A// Use key frames to reduce diffing amount.%0A%0A// Diff could also be dispatched across the network for realtime Shenanigans.%0A%0A
import s
|
c73c2feec2a97de3e8448a4fea5584f1c973b756 | fix source Michael Ebert | plugins/twitter/michael60318.js | plugins/twitter/michael60318.js | (function () {
'use strict';
var util = require('../../lib/util');
module.exports = {
id: 'michael60318',
name: 'twitter-michaelebert',
filter: util.relevant
};
}());
| JavaScript | 0.000001 | @@ -36,16 +36,47 @@
var
+_ = require('lodash'),%0A
util = r
@@ -101,16 +101,16 @@
util');%0A
-
%0A mod
@@ -212,21 +212,185 @@
er:
-util.relevant
+function (list) %7B%0A return _.filter(list, function (item) %7B%0A return util.isRelevant(title) && !/%5CS*kicker%5C.de%5CS*/... |
4967fcf1f583428e68b28cf9238b052a07395862 | Fix type annotation | lib/node_modules/@stdlib/blas/base/sdsdot/lib/sdsdot.js | lib/node_modules/@stdlib/blas/base/sdsdot/lib/sdsdot.js | /**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.000014 | @@ -1040,33 +1040,25 @@
y%0A* @param %7B
-PositiveI
+i
nteger%7D stri
@@ -1134,33 +1134,25 @@
y%0A* @param %7B
-PositiveI
+i
nteger%7D stri
|
a61c7e08196d3bccda486dee8b1602edcebd4274 | add input widget mapping to datatype=text, fieldtype=textarea | nbextensions/appCell/widgets/paramInputResolver.js | nbextensions/appCell/widgets/paramInputResolver.js | /*global define*/
/*jslint white:true,browser:true*/
define([
'./input/singleTextInput',
'./input/multiTextInput',
'./input/singleSelectInput',
'./input/singleIntInput',
'./input/multiIntInput',
'./input/singleObjectInput',
'./input/multiObjectInput',
'./input/singleNewObjectInput',
... | JavaScript | 0.000007 | @@ -7398,32 +7398,163 @@
ectInputWidget;%0A
+ case 'textarea':%0A return SingleTextareaInputWidget; %0A
|
c2e12ae861206203c6e2c00339670af8cbbfeceb | fix reconnect | vue.config.js | vue.config.js | module.exports = {
devServer: {
proxy: "http://localhost:9090"
}
};
| JavaScript | 0.000002 | @@ -42,31 +42,101 @@
xy:
-%22http://localhost:9090%22
+%7B%0A %22/api/go/%22: %7B%0A target: %22http://localhost:9090%22,%0A ws: true%0A %7D%0A %7D
%0A %7D
|
de592c675558bba39eeab2c3a03f3e64170595eb | Use package.json to name the process. | wotblitz.js | wotblitz.js | #!/usr/bin/env node
var program = require('commander');
var config = {
api: require('./config/api.json'),
app: require('./config/app.json'),
version: require('./package.json').version
};
main(
program
.version('wotblitz.js version ' + config.version)
.option('-v, --verbose', 'output more information, ... | JavaScript | 0 | @@ -141,23 +141,19 @@
on'),%0A
-version
+pkg
: requir
@@ -175,18 +175,44 @@
on')
-.version%0A%7D
+%0A%7D;%0A%0Aprocess.title = config.pkg.name
;%0A%0Am
@@ -271,16 +271,20 @@
config.
+pkg.
version)
|
46e09e7b65a3775080540f53feba15b7ebeabc71 | Save followed files in localStorage | web/client.js | web/client.js | var socket = io.connect('http://localhost');
var followedFiles = {};
var activeFile = undefined;
// l'évènement line est émis quand une ligne est ajoutée à un fichier
socket.on('line', function (data) {
if (followedFiles[data.file] !== undefined) {
var line = document.createElement("div");
// ajou... | JavaScript | 0 | @@ -2001,16 +2001,38 @@
end(li);
+%0A%0A saveFiles();
%0A %7D%0A%7D
@@ -2873,24 +2873,499 @@
ted%22);%0A%7D);%0A%0A
+// fonctions de sauvegarde%0Afunction saveFiles() %7B%0A var files = Object.keys(followedFiles);%0A localStorage.setItem(%22files%22, JSON.stringify(files));%0A%7D%0A%0Afunction popula... |
c5e0487e507b1a1462de47bc49716dfc11a63116 | Update minified script | lib/ga-dissect.min.js | lib/ga-dissect.min.js | var GADissect={readCookie:function(){return document.cookie},cookieProperties:function(){var e=this.readCookie(),t={},n=this.parseCookieFragment(e,"__utmz=",";"),r=this.parseCookieFragment(n,"utmcsr=","|"),i=this.parseCookieFragment(n,"utmcmd=","|"),s=this.parseCookieFragment(n,"utmctr=","|"),o=this.parseCookieFragment... | JavaScript | 0.000001 | @@ -642,16 +642,19 @@
Int(h%5B5%5D
+,10
);return
@@ -791,16 +791,17 @@
(!e%7C%7Ce==
+=
%22%22%7C%7C!t%7C%7C
@@ -803,16 +803,17 @@
%7C!t%7C%7Ct==
+=
%22%22%7C%7C!n%7C%7C
@@ -815,16 +815,17 @@
%7C!n%7C%7Cn==
+=
%22%22)retur
|
95cf2fa1a8cd7d0151c1b9f1fbe8d7dd8a4c0952 | Use cwd to resolve path to io files. | bin/generator.js | bin/generator.js | var fs = require('fs');
var path = require('path');
var inFile = process.argv[2];
var outFile = process.argv[3];
var fullInFile = path.join(__dirname, inFile || '');
var fullOutFile = path.join(__dirname, outFile || '');
var fileContent = null;
var characters = [];
var output = null;
var font = {
meta: {
... | JavaScript | 0 | @@ -46,17 +46,16 @@
ath');%0A%0A
-%0A
var inFi
@@ -129,30 +129,37 @@
= path.
-join(__dirname
+resolve(process.cwd()
, inFile
@@ -194,22 +194,29 @@
ath.
-join(__dirname
+resolve(process.cwd()
, ou
|
842979a8226c75fdfc6950a14483577ba7e655d2 | load distributed jquery | spec/dummy/app/assets/javascripts/application.js | spec/dummy/app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -595,31 +595,20 @@
uery
-%0A//= require
+/dist/
jquery
-_ujs
%0A//=
|
9228d7d92e39d2c14f8167c414dbb0c6cf913f0d | inherit local variables | lib/helper/partial.js | lib/helper/partial.js | var extend = require('../extend'),
renderSync = require('../render').renderSync,
fs = require('fs'),
path = require('path'),
_ = require('underscore'),
cache = {};
var resolve = function(base, part){
return path.resolve(path.dirname(base), path.extname(part) ? part : part + path.extname(base));
};
var ren... | JavaScript | 0.998235 | @@ -751,22 +751,41 @@
ontent,
-locals
+_.extend(locals, options)
);%0A%0A
|
8b52dbb8312d4594ba41ea75335692b24bb3b015 | Fix participants merging | lib/helpers/upload.js | lib/helpers/upload.js | 'use strict';
var googleapis = require('googleapis');
var async = require('async');
var rarity = require('rarity');
var managePart = require('./manage-part.js');
var config = require('../../config/configuration.js');
function mergeThreadDate(mails) {
if(mails[0]) {
var date = "";
mails[0].payload.headers.fo... | JavaScript | 0.000001 | @@ -1159,26 +1159,8 @@
-mail.from.forEach(
func
@@ -1195,98 +1195,129 @@
-buffer%5Bobj.address%5D = obj.name;%0A %7D);%0A mail.to.forEach(function walkAddresses(obj
+if(obj.name && obj.name.length %3E 0) %7B%0A buffer%5Bobj.address%5D = obj.name;%0A %7D else if(! buffer%5Bobj.address%5D
... |
72cb6c7f7c70ac6a77ed74ac6793eca7427be703 | update tgz to use new helper. | examples/pack-tgz.js | examples/pack-tgz.js | var fs = require('fs');
var zlib = require('zlib');
var archiver = require('archiver');
var gzipper = zlib.createGzip();
var output = fs.createWriteStream(__dirname + '/example-output.tar.gz');
var archive = archiver('tar');
output.on('close', function() {
console.log(archive.pointer() + ' total bytes');
console... | JavaScript | 0 | @@ -21,37 +21,8 @@
');%0A
-var zlib = require('zlib');%0A%0A
var
@@ -58,41 +58,8 @@
);%0A%0A
-var gzipper = zlib.createGzip();%0A
var
@@ -155,16 +155,69 @@
er('tar'
+, %7B%0A gzip: true,%0A gzipOptions: %7B%0A level: 1%0A %7D%0A%7D
);%0A%0Aoutp
@@ -460,22 +460,8 @@
ipe(
-gzipper).pipe(
outp
|
edecb15fe8d27957ba01d1b12a3722c1059a6564 | Update TwoTensors.js | CNN/util/TwoTensors.js | CNN/util/TwoTensors.js | export { filtersTensor4d_biasesTensor3d };
/**
* A function accepts a Base class and returns a sub-class of Base.
*
* @param {Class} Base
* The base class to be inherited.
*
* @return {Class}
* Return a sub-class of Base. The returned sub-class contains filtersTensor4d and biasesTensor3d, and a method to di... | JavaScript | 0 | @@ -171,16 +171,35 @@
herited.
+ Default is Object.
%0A *%0A * @
@@ -386,17 +386,30 @@
or3d
- =
+( (
Base =
+ Object ) =
%3E cl
@@ -428,77 +428,8 @@
Base
- %7B%0A//!!! (2021/12/16 Remarked)%0A//class filtersTensor4d_biasesTensor3d
%7B%0A%0A
|
96993929c34ca6848064644ff0c1694d92a17647 | revert link sanitation whitelist | widget/app.js | widget/app.js | 'use strict';
(function (angular, buildfire) {
angular
.module('peoplePluginWidget', [
'peopleEnums',
'peopleFilters',
'peopleWidgetServices',
'ngAnimate',
'ngRoute',
'ui.bootstrap',
'infinite-scroll'
])
.constant('TAG_NAMES', {
PEOPLE_INFO: 'peopleInfo',
... | JavaScript | 0 | @@ -704,16 +704,24 @@
ile%7Cfile
+%7Csms%7Ctel
):/);%0A%0A%0A
|
c835905d04090ba17d137a4ccb03a42c59d72b09 | disable for non clang/gcc compilers | lib/tooling/compiler-dropin-tool.js | lib/tooling/compiler-dropin-tool.js | // Copyright (c) 2019, Compiler Explorer Authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// thi... | JavaScript | 0.000002 | @@ -2262,179 +2262,8 @@
%22);%0A
- // %7D else if (compilationInfo.compiler.exe.indexOf(%22-g++%22) !== -1) %7B%0A // return path.resolve(path.dirname(compilationInfo.compiler.exe), %22..%22);%0A
@@ -2271,32 +2271,32 @@
%7D else %7B%0A
+
@@ -3628,279 +3628,40 @... |
f47d0039f704e533a16929ffac76d6c28cab4929 | Rework attestations section | waltz-ng/client/attestation/components/section/attestation-section.js | waltz-ng/client/attestation/components/section/attestation-section.js | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017 Waltz open source project
* See README.md for more information
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, eit... | JavaScript | 0 | @@ -2299,33 +2299,32 @@
s%22%0A %7D
-,
%0A %7D;%0A%0A
@@ -2895,26 +2895,8 @@
turn
- Object.assign(%7B%7D,
%7B%0A
@@ -3074,25 +3074,24 @@
%7D
-)
;%0A
@@ -3759,71 +3759,24 @@
hen(
-r
+()
=%3E
-%7B%0A return loadData();%0A %7D
+loadDat... |
70e97c1c9c3fbde8a319cd20b41393f39e851c80 | Test redirecting to new username screen | web/src/js/components/Authentication/__tests__/Authentication.test.js | web/src/js/components/Authentication/__tests__/Authentication.test.js | /* eslint-env jest */
import React from 'react'
import {
shallow
} from 'enzyme'
import {
goTo,
replaceUrl,
goToDashboard,
goToLogin,
authMessageURL,
missingEmailMessageURL,
verifyEmailURL
} from 'navigation/navigation'
import {
getCurrentUser
} from 'authentication/user'
import {
isInIframe
} from... | JavaScript | 0 | @@ -156,16 +156,36 @@
ageURL,%0A
+ enterUsernameURL,%0A
missin
@@ -5895,12 +5895,748 @@
RL)%0A %7D)
+%0A%0A it('goes to new username screen if authed and username is not set', async () =%3E %7B%0A expect.assertions(1)%0A const Authentication = require('../Authentication').default%0A%0A const mockUserDa... |
663189dc031c86a1bffcd901fd24ba58d7a3a3b4 | Update react rules | with-react.js | with-react.js | module.exports = {
extends: 'commercetools',
plugins: ['react'],
ecmaFeatures: {
jsx: true
},
env: {
browser: true
},
rules: {
'react/display-name': 0,
'react/jsx-boolean-value': [ 2, 'always' ],
'react/jsx-no-undef': 2,
'react/jsx-sort-props': 0,
'react/jsx-uses-react': 2... | JavaScript | 0.000001 | @@ -224,16 +224,68 @@
ays' %5D,%0A
+ 'react/jsx-key': 2,%0A 'react/jsx-no-bind': 2,%0A
'rea
@@ -468,32 +468,103 @@
-set-state': 2,%0A
+ 'react/no-direct-mutation-state': 2,%0A 'raact/no-is-mounted': 2,%0A
'react/no-mu
|
87a517a169f54c834a95d14ec2c9879c8e12b46f | exclude text inputs from paste handler | app/pasteManager.js | app/pasteManager.js | function getString(item) {
return new Promise(resolve => {
item.getAsString(resolve);
});
}
export default function(state, emitter) {
window.addEventListener('paste', async event => {
if (state.route !== '/' || state.uploading) return;
if (event.target.type === 'password') return;
const items = ... | JavaScript | 0.000003 | @@ -251,16 +251,46 @@
%0A if
+(%5B'password', 'text'%5D.includes
(event.t
@@ -303,23 +303,9 @@
type
- === 'password'
+)
) re
|
64cce9dbe0ae6f0c36f049f920addbec69185327 | add upload progress bar | app/scripts/main.js | app/scripts/main.js | $(function () {
var $roomList = $('#room_list');
var roomList = [];
var websocket = scheme + "://" + location.hostname + ":" + location.port + "/ws";
var socket = new Socket(websocket);
var chatWindow = new ChatWindow(socket);
function process_message(msg) {
if (msg.type == "EVENT") {... | JavaScript | 0 | @@ -4178,19 +4178,23 @@
-don
+complet
e: funct
@@ -4226,91 +4226,29 @@
$
-.each(data.result.files, function (index, file) %7B%0A $img = $(%22%3Cimg/%3E%22
+('#progress').remove(
);%0A
@@ -4254,24 +4254,27 @@
+%7D,%0A
$img.src
@@ -4269,78 +4269,69 @@
-$img.src =... |
06409a167508d646a9e5484dcfe4d388a0e0549d | Handle twittershare correctly even if no organisation twitteraccount | app/scripts/main.js | app/scripts/main.js | 'use strict';
function checkDateInput() {
var input = document.createElement('input');
input.setAttribute('type', 'date');
var notADateValue = 'not-a-date';
input.setAttribute('value', notADateValue);
return (input.value !== notADateValue);
}
function fbshareCurrentPage() {
window.open('https://www.face... | JavaScript | 0.000005 | @@ -436,24 +436,40 @@
entPage() %7B%0A
+ var via = '';%0A
var twitte
@@ -527,16 +527,80 @@
tent');%0A
+ if (twitterAccount)%7B%0A via += '&via=' + twitterAccount;%0A %7D%0A
window
@@ -686,32 +686,11 @@
) +
-'&
via
-=' + twitterAccount
%0A )
|
dfd41f3686c8f019011338892aec9f1151f23881 | add escape key into function called after video is opened | app/scripts/main.js | app/scripts/main.js | /* jshint devel:true */
(function( $ ){
'use strict';
$( document ).foundation();
$( '.play-button' ).click( function ( e ) {
e.preventDefault();
$( '#video-modal' ).foundation( 'reveal', 'open' );
$( 'iframe' ).attr( 'src', '//player.vimeo.com/video/121852108?autoplay=1&color=7e8b9e&title=0&byl... | JavaScript | 0 | @@ -334,22 +334,45 @@
t=0' );%0A
+ listenForEscape();%0A
%7D);%0A
-
%0A $( '.
@@ -622,24 +622,57 @@
0');%0A %7D);%0A%0A
+ function listenForEscape() %7B%0A
$( documen
@@ -703,16 +703,18 @@
) %7B%0A
+
if ( e.k
@@ -726,24 +726,26 @@
e == 27 ) %7B%0A
+
$( 'if
@@ -862,15 +862,26 @@
... |
635aa020f93b06833f8b1fad27671d45d76fb2d3 | fix default preferences issue where the wrong defaults were being loaded | app/scripts/main.js | app/scripts/main.js | $( document ).ready(function() {
//check for cookies
var bgColor;
var fontColor;
var showImages;
var theme;
if ( document.cookie ) { //they have preferences, let's load them
var preferences = document.cookie.split(';');
bgColor = preferences[0].split('=')[1];
fontColo... | JavaScript | 0.000001 | @@ -848,33 +848,16 @@
-document.cookie=%22
bgColor=
#333
@@ -852,16 +852,17 @@
bgColor=
+%22
#333333%22
@@ -871,33 +871,16 @@
-document.cookie=%22
fontColo
@@ -881,16 +881,17 @@
ntColor=
+%22
#FFFFFF%22
@@ -900,33 +900,16 @@
-document.cookie=%22
showImag
@@ -911,16 +911,17 @@
wImages=... |
c36f23ff3e9982a8ecd6e22619e4c93b90666bad | update keys | app/services/api.js | app/services/api.js | // @flow
/* eslint-disable camelcase */
import { stringify } from 'querystring'
// $FlowFixMe
import { schema, normalize } from 'normalizr'
import camelcaseKeys from 'camelcase-keys'
import decamelizeKeys from 'decamelize-keys'
import axios from 'axios'
const userSchema = new schema.Entity('users', { idAttribute: 'id'... | JavaScript | 0.000003 | @@ -1024,99 +1024,99 @@
d: '
-bYGKuGVw91e0NMfPGp44euvGt59s',%0A client_secret: 'HP3RmkgAmEGro0gn1x9ioawQE8WMfvLXDz3ZqxpK
+MOBrBDS8blbauoSck0ZfDbtuzpyT',%0A client_secret: 'lsACyCD94FhDUtGTXi3QzcFE2uU1hqtDaKeqrdwj
',%0A
@@ -1681,13 +1681,14 @@
': '
-9.3.3
+10.3.1
',%0A
@@ -1714,11 +1714,76 @@
'6.
-0.9
+7.1... |
5ad02dfe75936f21c6577ee572f2d9198cf8f9da | Check format of the action | app/services/wit.js | app/services/wit.js | 'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const Facebook = require('./facebook');
const sessions = require('./sessions');
const keepr = require('./keepr');
const config = require('../../config');
module.exports = {
actions: {
send: ({sessionId}, {text}) => {
const re... | JavaScript | 0 | @@ -930,18 +930,16 @@
_keyword
-:
(request
@@ -939,19 +939,16 @@
request)
- =%3E
%7B%0A
|
bcb0b97cabf823cd8bcfa2878228d57ff5212c5e | Change default language to hebrew | packages/custom/icu/public/app/app.js | packages/custom/icu/public/app/app.js | 'use strict';
angular.module('mean.icu').config([
'$meanStateProvider',
function($meanStateProvider) {
$meanStateProvider
.state('login', {
url: '/login',
templateUrl: '/icu/components/login/login.html',
controller: 'LoginController'
})
.state... | JavaScript | 0.000009 | @@ -7882,29 +7882,26 @@
lng: '
+h
e
-n-US
',%0A u
|
2fa3b4c072aa6920a559ec97c5d36b6dd5125dd9 | allow multiple bundle | browserEslint.js | browserEslint.js | 'use strict';
var path = require('path');
var stripAnsi = require('strip-ansi');
var BrowserEslint = function() {};
BrowserEslint.prototype.apply = function(compiler) {
compiler.plugin('done', function(stats) {
if (stats.hasErrors()) {
var outputFileSystem = compiler.outputFileSystem;
... | JavaScript | 0.000002 | @@ -105,19 +105,58 @@
unction(
-) %7B
+filename) %7B%0A this.filename = filename;%0A
%7D;%0A%0ABrow
@@ -200,24 +200,45 @@
compiler) %7B%0A
+ var self = this;%0A
compiler
@@ -443,45 +443,93 @@
var
-main = path.join(outputOptions.path,
+filename = self.filename %7C%7C outputOptions.filename;%0A ... |
38ddc2b650cf493df35e6d3d1cd61eccb901a471 | Disable sourcemaps since we don't use them | brunch-config.js | brunch-config.js | exports.files = {
javascripts: {
joinTo: {
'fateOfAllFools.js': /^(?!spec)/
}
},
stylesheets: {
joinTo: 'fateOfAllFools.css'
}
};
/*
Tests are handled by Karma. This is to silence a warning that Brunch
reports (which is helpful actually in most cases!) because it sees JS files
outside t... | JavaScript | 0 | @@ -1001,8 +1001,72 @@
%5D%0A %7D%0A%7D%0A
+%0A// Doesn't fit our debugging style%0Aexports.sourceMaps = false;%0A
|
d06b3171f243cbb0971453b3c1a5d361cdd5cb8d | Add html files | lib/helpers/select-best-download.js | lib/helpers/select-best-download.js | "use strict";
module.exports = function(file) {
if(file.exportLinks) { // this file is a google drive document
/* if(file.exportLinks["text/html"]) {
return {
type: "document",
url: file.exportLinks["text/html"],
extension: ".html"
};
} */
// we hide html export unless... | JavaScript | 0.000002 | @@ -114,11 +114,8 @@
%0A
- /*
if(
@@ -278,76 +278,12 @@
%7D
-*/%0A // we hide html export unless we are able to hydrate zips%0A
+else
if(
|
7e53cea181c5c2ea68e5a0a439c2f23f71d73a17 | Add parse_var methode to the RustParser | lib/languages/rust.js | lib/languages/rust.js | var DocsParser = require("../docsparser");
var xregexp = require('../xregexp').XRegExp;
function RustParser(settings) {
DocsParser.call(this, settings);
}
RustParser.prototype = Object.create(DocsParser.prototype);
RustParser.prototype.setup_settings = function() {
this.settings = {
'curlyTypes': fal... | JavaScript | 0.000003 | @@ -825,24 +825,95 @@
e, %5B%5D%5D;%0A%7D;%0A%0A
+RustParser.prototype.parse_var = function(line) %7B%0A return null;%0A%7D;%0A%0A
RustParser.p
@@ -962,20 +962,16 @@
args) %7B%0A
-
retu
|
72938038cbca2a381b6b23bdbf4ab94125809665 | Remove util.print and use console.log instead | bin/shell_variables.js | bin/shell_variables.js | #!/usr/bin/env node
var parser = require('nomnom'),
util = require('util'),
cmdLine = require('../lib/cmd_line');
/**
* Exit the process
*
* @method exitCallback
* @param {Integer} code Exit Code to return
* @param {String} output Text to output
*/
function exitCallback(code, output) {
if... | JavaScript | 0 | @@ -50,36 +50,8 @@
'),%0A
- util = require('util'),%0A
@@ -309,18 +309,19 @@
-util.print
+console.log
(out
@@ -331,17 +331,28 @@
);%0A %7D
-%0A
+ else %7B%0A
cons
@@ -362,16 +362,22 @@
.log();%0A
+ %7D%0A
proc
|
e82f1bad5457a21cf77745445f32760464144132 | Check devices.length >= 1. | blink1/color-picker.js | blink1/color-picker.js | (function() {
var ui = {
r: null,
g: null,
b: null
};
var connection = -1;
function initializeWindow() {
for (var k in ui) {
var id = k.replace(/([A-Z])/, '-$1').toLowerCase();
var element = document.getElementById(id);
if (!element) {
throw "Missing UI element: " + k... | JavaScript | 0 | @@ -1052,16 +1052,108 @@
%0A %7D%0A%0A
+ if (devices.length %3C 1) %7B%0A console.warn(%22No devices found.%22);%0A return;%0A %7D%0A%0A
chro
|
6e5f944cf23c9d2c1ee01c21ccb8b95d2f6300db | fix ut | test/leaflet/mapping/ImageMapLayerSpec.js | test/leaflet/mapping/ImageMapLayerSpec.js | require('../../../src/leaflet/mapping/ImageMapLayer');
var url = GlobeParameter.imageURL;
describe('leaflet_ImageMapLayer', function () {
var originalTimeout;
var testDiv, map, imageLayerObject;
beforeAll(function () {
testDiv = document.createElement("div");
testDiv.setAttribute("id", "map... | JavaScript | 0.000039 | @@ -2129,44 +2129,12 @@
+ %22
-%25E4%25B8%2596%25E7%2595%258C%25E5%259C%25B0%25E5%259B%25BE
+%E4%B8%96%E7%95%8C%E5%9C%B0%E5%9B%BE
_Day
|
3a772669048751c932c5049a46007ceac1966b85 | make `wheelZoomRatio` test check less strict (round up to tenths) (#814) | test/specs/options/wheelZoomRatio.spec.js | test/specs/options/wheelZoomRatio.spec.js | describe('wheelZoomRatio (option)', () => {
it('should be `0.1` by default', (done) => {
const image = window.createImage();
const cropper = new Cropper(image, {
ready() {
const canvasData = cropper.getCanvasData();
const wheelEvent = window.createEvent('wheel');
wheelEvent.delt... | JavaScript | 0.000001 | @@ -950,39 +950,57 @@
Event);%0A
-expect(
+const expectedWidthRaw =
canvasData.width
@@ -1026,44 +1026,256 @@
tio)
-).to.equal(cropper.getCanvasData().w
+;%0A const actualWidthRaw = cropper.getCanvasData().width;%0A%0A const expectedWidth = Math.round(expectedWidthRaw * 10) / 10;%0A con... |
7e67c2dfc83bdb8a13b0dec560c1ed46ac39c863 | Update forbid-component-props to new ESLint rule format | lib/rules/forbid-component-props.js | lib/rules/forbid-component-props.js | /**
* @fileoverview Forbid certain props on components
* @author Joe Lencioni
*/
'use strict';
// ------------------------------------------------------------------------------
// Constants
// ------------------------------------------------------------------------------
var DEFAULTS = ['className', 'style'];
// ... | JavaScript | 0.998341 | @@ -510,16 +510,276 @@
xports =
+ %7B%0A meta: %7B%0A docs: %7B%7D,%0A%0A schema: %5B%7B%0A type: 'object',%0A properties: %7B%0A forbid: %7B%0A type: 'array',%0A items: %7B%0A type: 'string'%0A %7D%0A %7D%0A %7D,%0A additionalProperties: t... |
73b8a70de56f6d2eca3548559af6a57d6da015a6 | Fix JSON conversion of mixed content/valueProperty | xml2json.js | xml2json.js | 'use strict';
var jgeXml = require('./jgeXml.js');
String.prototype.replaceAt = function(index, character) {
return this.substr(0, index) + character + this.substr(index+character.length);
};
String.prototype.insert = function (index, string) {
if (index > 0)
return this.substring(0, index) + string + this.su... | JavaScript | 0.000007 | @@ -1367,24 +1367,53 @@
en != '') %7B%0A
+%09%09%09%09var closeObject = false;%0A
%09%09%09%09// conte
@@ -2233,24 +2233,104 @@
');%0A%09%09%09%09%09%09%7D%0A
+%09%09%09%09%09%09if (valueProperty) %7B%0A%09%09%09%09%09%09%09s += ',%7B';%0A%09%09%09%09%09%09%09closeObject = true;%0A%09%09%09%09%09%09%7D%0A
%09%09%09... |
f9996f6c84bd083584ee5bd2756c91083af62eca | Set currentState in PlayState rather than in pentagine.js. | example/PlayState.js | example/PlayState.js | function PlayState() {
this.setup = function() {
this.helicopter = new Sprite("helicopter1.png", 100, context.height / 2 - 100);
this.helicopter.animationTimer = 0;
this.helicopter.vy = 5;
this.walls = [];
this.walls[context.width - 1] = 20;
this.speed = 30;
this.difficulty = 50;
pr... | JavaScript | 0 | @@ -1974,12 +1974,36 @@
layState();%0A
+switchState(playState);%0A
|
60f731af3d8aec3a6de6b17bb2270a5ac7e8e5e9 | Remove message about serializing and deserializing appState | common/src/intl/messages/en.js | common/src/intl/messages/en.js | export default {
app: {
footer: {
madeByHtml: `made by <a href="https://twitter.com/steida">steida</a>`
},
header: {
h1: `Home`,
login: 'Login',
me: 'Me (protected)',
todos: 'Todos'
}
},
auth: {
form: {
button: {
login: 'Login',
signup: 'Sign... | JavaScript | 0 | @@ -1538,153 +1538,29 @@
ode%3E
-gulp -p%3C/code%3E)%60%0A %7D,%0A %7B%0A key: 'globalState',%0A txt: %60Time travel with %3Cb%3Ectrl+shift+s%3C/b%3E and %3Cb%3Ectrl+shift+l%3C/b%3E.
+npm web-start%3C/code%3E)
%60%0A
|
d2526ad81b08a0c5f5070da6936b584daee14047 | Update delete.js | bot/commands/delete.js | bot/commands/delete.js | const bot = require('./../bot');
/**
* This method should return the response directly to the channel
* @param {*string array} params
* @param {*message} message
*/
async function command(params, message) {
if (!message.member.hasPermission("MANAGE_MESSAGES")) {
message.channel.send("You aren't Worthy"... | JavaScript | 0.000001 | @@ -1374,32 +1374,58 @@
ze +%22 messages%22)
+.then(m =%3Em.delete(10000))
;%0A %7D%0A else
@@ -1699,38 +1699,32 @@
%0A return
-await
message.channel.
@@ -1766,23 +1766,82 @@
ssages%22)
-;%0A %7D
+.then(m =%3Em.delete(10000));%0A %7D%0A await message.delete(10000);
%0A%7D%0A/**%0A
|
3a60e6917c98e65696915a15bfa0a069ed158853 | Update script.js | randomQuoteGenerator/script.js | randomQuoteGenerator/script.js | $(document).ready(function() {
generateQuote();
function generateQuote() {
var quotes = ["Wandering around the web is like living in a world in which every doorway is actually one of those science fiction devices which deposit you in a completely different part of the world when you walk through them. In f... | JavaScript | 0.000002 | @@ -1,37 +1,4 @@
-$(document).ready(function() %7B%0A
gene
@@ -11,20 +11,16 @@
ote();%0A%0A
-
function
@@ -38,20 +38,16 @@
ote() %7B%0A
-
var qu
@@ -1117,20 +1117,16 @@
imov%22%5D;%0A
-
seed =
@@ -1175,20 +1175,16 @@
- 1));%0A
-
arr =
@@ -1208,20 +1208,16 @@
t('@');%0A
-
docum... |
1de544180ec5598318bf1c8336335bc9f98323c0 | fix #743 (#865) | packages/create-razzle-app/lib/utils/get-install-cmd.js | packages/create-razzle-app/lib/utils/get-install-cmd.js | 'use strict';
const execa = require('execa');
let cmd;
module.exports = function getInstallCmd() {
if (cmd) {
return cmd;
}
try {
execa.sync('yarnpkg', '--version');
cmd = 'yarn';
} catch (e) {
cmd = 'npm';
}
return cmd;
};
| JavaScript | 0.000001 | @@ -163,16 +163,17 @@
rnpkg',
+%5B
'--versi
@@ -175,16 +175,17 @@
version'
+%5D
);%0A c
|
9a7ea2db6715981062c691636d51f63ab95243a2 | Fix title inconsistencies. | packages/interweave-emoji-picker/src/PreviewBar.js | packages/interweave-emoji-picker/src/PreviewBar.js | /**
* @copyright 2016, Miles Johnson
* @license https://opensource.org/licenses/MIT
* @flow
*/
import React from 'react';
import PropTypes from 'prop-types';
import EmojiCharacter from 'interweave/lib/components/Emoji';
import { EmojiShape, EmojiPathShape } from 'interweave/lib/shapes';
import type { Emoji,... | JavaScript | 0 | @@ -491,16 +491,66 @@
an,%0A%7D;%0A%0A
+const TITLE_REGEX: RegExp = /(%5E%7C%5Cn%7C%5Cs%7C-)%5Ba-z%5D/g;%0A%0A
export d
@@ -1127,107 +1127,58 @@
se()
-%0A .split(' ')%0A .map(word =%3E word.charAt(0).toUpperCase() + word.slice(1))%0A .join(' '
+.replace(TITLE_REGEX, token =%3E token.toUpperCase()
);%... |
bff86b7d421b7c93db914a871464ce08ead68930 | Update container.js | static/views/container.js | static/views/container.js | define([
'jquery', 'underscore', 'views/base', 'globals/eventbus', 'bootbox', 'modules/cloudstore', 'ace', 'codemirror', 'cm.vim', 'cm.clike',
'css!libs/codemirror/codemirror-4.8.0.css', 'cm.placeholder',
'add2home', 'css!libs/add2home/add2home.css', 'sha256', 'aes'],
function($, _, BaseView, EventBus, bootbox, ... | JavaScript | 0.000001 | @@ -5543,24 +5543,415 @@
%7D);%0A
+ %0A var commandDisplay = document.getElementById('command-display');%0A var keys = '';%0A CodeMirror.on(editor, 'vim-keypress', function(key) %7B%0A keys = keys + key;%0A commandDisplay.innerHTML = keys;%0A %7D);%0A ... |
96ff1b8fbc6d4573c5eceae727aa058127ace925 | Use Example.deployed() to retrieve deployed contract in tests. | packages/truffle/templates/example.js | packages/truffle/templates/example.js | contract('Example', function(accounts) {
it("should assert true", function(done) {
var example = Example.at(Example.deployed_address);
assert.isTrue(true);
done();
});
});
| JavaScript | 0 | @@ -108,35 +108,17 @@
ple.
-at(Example.deployed_address
+deployed(
);%0A
|
34f440b8135ab31956910c06a4c8c55e2dcd0b08 | fix jsxc.org demo | example/js/helper.js | example/js/helper.js | armConnectionParameterForm();
$('.version').text(jsxc.version);
// special setup on localhost
if (window.location.hostname === 'localhost') {
watchLoginCredentials();
restoreInstantLoginCredentials();
$('.localhost').show();
}
// special setup for jsxc.org/example
if (window.location.hostname === 'www.jsxc... | JavaScript | 0 | @@ -1,35 +1,4 @@
-armConnectionParameterForm();%0A%0A
$('.
@@ -502,16 +502,47 @@
();%0A %7D%0A%0A
+armConnectionParameterForm();%0A%0A
function
|
b65a51031c5f88ef157c7b788c75d9f740522c1d | Revert display option | grunt/tasks/jasmine.js | grunt/tasks/jasmine.js | var _ = require('underscore');
var defaultOptions = {
keepRunner: true,
summary: true,
display: 'full',
vendor: [
// Load & install the source-map-support lib (get proper stack traces from inlined source-maps)
'node_modules/source-map-support/browser-source-map-support.js',
'test/install-source-map... | JavaScript | 0.000001 | @@ -101,12 +101,13 @@
y: '
-full
+short
',%0A
|
97fecea00f6009e7188ff21012193fabdd0ae48d | remove unnecessary global | scripts/datasets.js | scripts/datasets.js | /* global $, _, deparam, Fuse */
var params = deparam(window.location.search.substr(1))
_.templateSettings.variable = 'data'
var templates = {
listGroupItem: _.template($('[data-hook=tmpl-list-group-item]').html()),
datasetItem: _.template($('[data-hook=tmpl-dataset-item]').html())
}
var elements = {
categori... | JavaScript | 0.003419 | @@ -20,14 +20,8 @@
aram
-, Fuse
*/%0A
|
726b0b06972d6441dfa74b2b93157952d155d8fe | Stop closing the modal when you click the overlay. (#1373) | scripts/download.js | scripts/download.js | /* global ga releaseTitle releaseVersion downloadRegion stripeKey StripeCheckout */
$(function () {
// Set defaults
var paymentMinimum = 100 // Let's make the minimum $1 because of processing fees.
var currentButton = 'amount-ten' // Default to $10 when the page loads.
var previousButton = 'amount-ten'... | JavaScript | 0 | @@ -8238,16 +8238,62 @@
e-modal'
+,%0A disableCloseOnOverlayClick: true
%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.