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 |
|---|---|---|---|---|---|---|---|
66ca1e39198836fe3f41e14a6802852fe21d1c3a | fixed date problem 2 | timer.js | timer.js | //new Date(year, month, day, hours, minutes, seconds, milliseconds)
window.countDownDate = new Date(2019,3,30).getTime();
// Update the count down every 1 second
var x = setInterval(function() {
countDownDate = new Date("");
if (window.countDownDate !== undefined) {
// Get todays date and time
... | JavaScript | 0.998352 | @@ -115,16 +115,51 @@
Time();%0A
+console.log(window.countDownDate);%0A
%0A%0A// Upd
@@ -228,42 +228,8 @@
() %7B
-%0A countDownDate = new Date(%22%22);
%0A%0A
|
e3f627aafaf256f8211cea547eb54392c570976d | clean up ast trap | traps.js | traps.js |
function empty () { return "" }
module.exports = function (namespace, names) {
var obj = {};
for (var k in traps)
obj[k] = (names.indexOf(k) !== -1
? traps[k]
: (k[0] === k[0].toUpperCase() ? empty : forwards[k]))
.bind(null, namespace);
return obj;
}
var traps = {};
var forwards = {};
//... | JavaScript | 0.000001 | @@ -355,98 +355,8 @@
//%0A%0A
-traps.Ast = function (namespace, ast, url) %7B return namespace+%22.Ast(%22+ast+%22,%22+url+%22);%22 %7D%0A%0A
trap
|
d7d27a0b23b4c872b21148f7f64ffddf6c4b05a9 | change error message | tree1.js | tree1.js | // newick tree
// console.log(JSON.stringify(tnt.tree.parse_newick(newick)))
var newick = "";
var tree = tnt.tree();
var parsedObj = tnt.tree.parse_newick(newick);
var newickInput = document.getElementById("userInput").value;
var treeCreated = false;
tree.on("click", function (node)
{
var root = tree.root();
//nod... | JavaScript | 0.000001 | @@ -705,36 +705,45 @@
-throw 'Error reading Newick'
+console.log(%22error should be thrown%22)
;%0A%7D%0A
|
b1636625525fe0f3ef444c603d54c977f5cfe4bd | add helpful comments ~:20 | git-time-log.js | git-time-log.js | #!/usr/bin/env node
/* global module, require, process, console */
var gitlog = require('gitlog'),
_ = require('underscore'),
moment = require('moment'),
program = require('commander');
var GitTimeLog = function (opts) {
opts = opts || {};
this._repo = opts['repo'] || '.';
this._author = opts['au... | JavaScript | 0 | @@ -366,16 +366,66 @@
99999;%0A%0A
+ // formats minutes into tilde-based time format%0A
this.f
@@ -455,24 +455,24 @@
otalMins) %7B%0A
-
var dura
@@ -861,32 +861,142 @@
' + mins;%0A %7D;%0A%0A
+ // parses a commit message for a tilde-based time entry%0A // and returns an object with hours and minutes%0A... |
f627cdc5d9b2df3e6e60c21acd7d0b5eea51d2c1 | Replace maintainerd link in log message | github/index.js | github/index.js | const fetch = require("node-fetch");
const qs = require("qs");
const { load } = require("js-yaml");
const { includes, find } = require("lodash");
const { getInstallationToken } = require("./installation-token");
const NEXT_ENTRY_MARKER = "<!-- log tail -->";
const timeStamp = () => new Date().toISOString();
const g... | JavaScript | 0 | @@ -368,35 +368,42 @@
http
+s
://
-maintainerd.divmain.com/
+github.com/divmain/maintainerd
) lo
|
c75b4fb15576656403f61a96e1d6473e029ed094 | Move SessionsAPI to own type | types.js | types.js | /* @flow */
// The standard runnable actions
export type Runnable<T> = {
run: () => Promise<?T>
};
export type ParticipantRole = 'HOST' | 'GUEST';
// Defines the options for new participants
export type NewParticipant = {
+display_name: string,
+fee?: JSONFee,
+role: ParticipantRole,
+picture?: string,
+... | JavaScript | 0 | @@ -2154,44 +2154,25 @@
ype
-CoviuClientSDK = %7B%7C%0A sessions: %7B%0A
+SessionsAPI = %7B%7C%0A
ad
@@ -2264,18 +2264,16 @@
ipant%3E,%0A
-
cancel
@@ -2319,18 +2319,16 @@
e%3Cany%3E,%0A
-
create
@@ -2379,18 +2379,16 @@
ssion%3E,%0A
-
delete
@@ -2442,18 +2442,16 @@
e%3Cany%3E,%0A
-
delete... |
7843ac2262441f380e26e16146d0de7e4ae48434 | Fix up comments | wecon.js | wecon.js | /* wecon -- Web Console emulator
* https://github.com/CylonicRaider/wecon */
/* Hide implementation details in namespace */
this.Terminal = function() {
/* Passive UTF-8 decoder */
function UTF8Dec() {
this._buffered = [];
this.replacement = "\ufffd";
}
UTF8Dec.prototype = {
/* String.fromCodePoi... | JavaScript | 0.000053 | @@ -110,16 +110,14 @@
in
-namespac
+closur
e */
@@ -3108,29 +3108,8 @@
alue
-; cut bytes off input
*/%0A
@@ -3141,32 +3141,75 @@
sh();%0A %7D%0A
+ /* Cut buffered bytes off input */%0A
input =
|
213ae2889cc0d0acdcdaf324027127d8ab9f6316 | Add AST to schema step in util | packages/idyll-document/src/utils/idl2ast.js | packages/idyll-document/src/utils/idl2ast.js | const compiler = require('idyll-compiler')
const fs = require('fs')
const { join } = require('path')
fs.writeFileSync(
join(__dirname, 'ast.json'),
JSON.stringify(
compiler(fs.readFileSync(join(__dirname, 'src.idl'), 'utf8')),
null,
2
),
'utf8'
)
| JavaScript | 0.000001 | @@ -93,16 +93,67 @@
('path')
+%0Aconst %7B splitAST, translate %7D = require('./index')
%0A%0Afs.wri
@@ -312,8 +312,239 @@
utf8'%0A)%0A
+%0Afs.writeFileSync(%0A join(__dirname, 'schema.json'),%0A JSON.stringify(%0A translate(%0A splitAST(%0A JSON.parse(fs.readFileSync(join(__dirname, 'ast.json'), 'u... |
085e8e51720c1f38a36b9cfc5f293349a3065789 | add test for onType action | tests/unit/components/ember-selectize-test.js | tests/unit/components/ember-selectize-test.js | import {
moduleForComponent,
test
} from 'ember-qunit';
moduleForComponent('ember-selectize', 'EmberSelectizeComponent');
test('it renders', function() {
expect(2);
// creates the component instance
var component = this.subject();
equal(component._state, 'preRender');
// appends the component to the p... | JavaScript | 0 | @@ -374,8 +374,434 @@
');%0A%7D);%0A
+%0Atest('it sends onType action when changing filter', function() %7B%0A expect(1);%0A%0A var testText = 'dummy text';%0A var component = this.subject();%0A var targetObject = %7B%0A externalAction: function(query) %7B%0A equal(query, testText, 'externalAction was call... |
7f7c9f2a4b8ceba0a17415a88a28495d67a2fb1b | add toastr | config/environment.js | config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'console',
podModulePrefix: 'console/pods',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember c... | JavaScript | 0.99896 | @@ -830,16 +830,507 @@
,%0A %7D;%0A%0A
+ ENV%5B'ember-toastr'%5D = %7B%0A injectAs: 'toast',%0A toastrOptions: %7B%0A closeButton: true,%0A debug: false,%0A newestOnTop: true,%0A progressBar: true,%0A positionClass: 'toast-bottom-left',%0A preventDuplicates: true,%0A onclick:... |
f66744311eb49532b4c31c878dadb44ac6df3c3e | Revert "Implemeted concurrency to Promise.map function to limit the number of request that the server is able to fire at the same time" | server/helpers/utils.js | server/helpers/utils.js | var Promise = require("bluebird");
var Vimeo = require("../integrations/vimeo/request-vimeo");
var filter = require("../integrations/vimeo/filter-vimeo");
var RequestApi = require('../models/model.js');
exports.makeRequest = function(category, callback){
// Create the query to fetch the Vimeo API
var queryObj ... | JavaScript | 0 | @@ -148,24 +148,159 @@
er-vimeo%22);%0A
+%3C%3C%3C%3C%3C%3C%3C HEAD%0A=======%0A// var mongoose = require('mongoose');%0A%3E%3E%3E%3E%3E%3E%3E Created a MongoDB Database to store the request from the Vimeo API%0A
var RequestA
@@ -769,32 +769,35 @@
%7D%0A%09
+ //
console.log('st
@@ -822,24 +822,25 @@
... |
d765a43166275bfcafb22706dcbb66c04fa9eb35 | Update supported locales | locales/index.js | locales/index.js | /**
* Languages Loader
*/
const fs = require('fs');
const yaml = require('js-yaml');
const merge = (...args) => args.reduce((a, c) => ({
...a,
...c,
...Object.entries(a)
.filter(([k]) => c && typeof c[k] === 'object')
.reduce((a, [k, v]) => (a[k] = merge(v, c[k]), a), {})
}), {});
const languages = [
/*'cs... | JavaScript | 0 | @@ -309,17 +309,17 @@
s = %5B%0A%09/
-*
+/
'cs-CZ',
@@ -320,16 +320,18 @@
s-CZ',%0A%09
+//
'da-DK',
@@ -332,16 +332,18 @@
a-DK',%0A%09
+//
'de-DE',
@@ -368,16 +368,18 @@
',%0A%09
+//
'fr-FR',
*/%0A%09
@@ -374,18 +374,16 @@
'fr-FR',
-*/
%0A%09'ja-JP
@@ -387,17 +387,17 @@
-JP',%0A%09/
-*
+/
'ja-KS',
@@ -408,... |
f26c8b035b0dd61b2bb0215b25db8ca348841fb9 | Update Log Fix | assets/js/vendor/github.commits.widget.js | assets/js/vendor/github.commits.widget.js | (function(e){function t(t,n,r){this.element=t;this.options=n;this.callback=e.isFunction(r)?r:e.noop}t.prototype=function(){function t(t,n,r,i){e.ajax({url:"https://api.github.com/repos/"+t+"/"+n+"/commits?sha="+r,dataType:"jsonp",success:i})}function n(n){if(!n.options){n.element.append('<span class="error">Options for... | JavaScript | 0.000001 | @@ -628,17 +628,17 @@
unction
-g
+n
(t,n)%7Bre
@@ -749,17 +749,17 @@
unction
-y
+u
(t)%7Bretu
@@ -814,16 +814,29 @@
.text(t)
+.prepend(%22 %22)
%7Dfunctio
@@ -837,17 +837,17 @@
unction
-b
+c
(t,n)%7Bva
@@ -1014,16 +1014,43 @@
.text(t)
+.append(%22 %22).prepend(%22 - %22)
;return
@@ -1060,17 +1060,17 @@
u... |
1eb48af8030867d23044313a011429fc8f80bbb0 | Fix for Time widget | cherryforms/static/js/widgets/Time.js | cherryforms/static/js/widgets/Time.js | define(['underscore', 'backbone', 'core', 'utils', 'moment',
'widgets/Text', 'datepicker'], function(_, Backbone, CherryForms, Utils, moment) {
"use strict";
var Widgets = CherryForms.Widgets,
Widget = Widgets.Widget,
Fields = CherryForms.Fields,
Events = CherryForms.Events,
... | JavaScript | 0 | @@ -848,28 +848,20 @@
if (
-ms instanceof Number
+!_.isNaN(ms)
) %7B%0A
|
46431817d91808b5163fb6151a9cb621493f15d7 | Use updated image for sdl_core | server/lib/constants.js | server/lib/constants.js | module.exports = {
//constant string values used throughout manticore
strings: {
manticoreServiceName: "manticore-service",
coreServicePrefix: "core-service-",
hmiServicePrefix: "hmi-service-",
coreHmiJobPrefix: "core-hmi-",
coreGroupPrefix: "core-group-",
hmiGroupPrefix: "hmi-group-",
coreTaskPrefix: "... | JavaScript | 0 | @@ -455,25 +455,37 @@
e: %22
-crokita/discovery
+smartdevicelink/manticore-sdl
-cor
|
3ea271b3cc4f82c3c435f4bd1bfd67b697614695 | Update Gruntfile.js | app/templates/skeleton/Gruntfile.js | app/templates/skeleton/Gruntfile.js | /*jslint node: true */
'use strict';
var pkg = require('./package.json');
//Using exclusion patterns slows down Grunt significantly
//instead of creating a set of patterns like '**/*.js' and '!**/node_modules/**'
//this method is used to create a set of inclusive patterns for all subdirectories
//skipping node_module... | JavaScript | 0 | @@ -3274,16 +3274,28 @@
'appcss'
+,isPath:true
%7D%0A
|
e86686aeaa0cc79ba45e844313c1a3a64e325b51 | Fix skipped first tag | chrome/content/zotero/longTagFixer.js | chrome/content/zotero/longTagFixer.js | var Zotero_Long_Tag_Fixer = new function () {
var _oldTag = window.arguments[0];
var _dataOut = window.arguments[1];
this.init = function () {
document.getElementById('zotero-old-tag').value = _oldTag;
var lastMode = Zotero.Prefs.get('lastLongTagMode');
if (!lastMode) {
lastMode = 0;
}
this.switchM... | JavaScript | 0.000001 | @@ -1815,14 +1815,16 @@
f (i
-==0 %7C%7C
+ != 0 &&
tag
@@ -1863,16 +1863,54 @@
e;%0A%09%09%09%7D%0A
+%09%09%09if (!tags%5Bi%5D) %7B%0A%09%09%09%09continue;%0A%09%09%09%7D%0A
%09%09%09var l
|
ebedd359007f705ce15b99f2bdc4adeb56fac635 | Interpolate url variable | server/methods/users.js | server/methods/users.js | Meteor.methods({
addUser (user) {
// Add new user
var userId = Accounts.createUser(user);
return userId;
},
addUsersAndSendEnrollmentEmails (enrollmentDocument) {
// original example: https://stackoverflow.com/a/16098693/1191545
// Make sure mail configuration is present
if (!process.env... | JavaScript | 0.000029 | @@ -735,20 +735,26 @@
e %7D %5Cn%5Cn
+ $ %7B
url
+ %7D
%60;%0A %7D
|
5e6837699a4c19401defe442b06b80a2199efc9d | improve transfer list totals display | app/transferlist/transfer-totals.js | app/transferlist/transfer-totals.js | /* globals
window $ document */
import { BaseScript, SettingsEntry } from '../core';
import './style/transfer-totals.scss';
export class TransferTotalsSettings extends SettingsEntry {
static id = 'transfer-totals';
constructor() {
super('transfer-totals', 'Transfer list totals', null);
this.addSetting('... | JavaScript | 0.000003 | @@ -3643,79 +3643,8 @@
iv%3E%0A
- %3Cdiv class=%22auctionStartPrice auctionValue%22%3E %3C/div%3E%0A
|
0d07368923e5f9132f852c24f9db4721aceed796 | remove newline from the beginning of the template | template.js | template.js | 'use static'
module.exports = (name, path) => `
<template>
<span class="mdi mdi-${name}">
<svg
:width="width"
:height="height"
:viewBox="viewBox"
:xmlns="xmlns"
>
<title>MDI ${name}</title>
<path d="${path}" />
</svg>
</span>
</template>
<script>
export default {
... | JavaScript | 0 | @@ -41,17 +41,16 @@
th) =%3E %60
-%0A
%3Ctemplat
|
4b038cdfbf67388ef216e28817c178e9abb385f2 | add additional log | example/gen-docs.js | example/gen-docs.js | #!/usr/bin/env node
var vm = require('vm');
var fs = require('fs');
var _ = require('lodash');
var log = require('winston');
var rimraf = require('rimraf');
log.cli();
var myArgs = require('optimist')
.usage('Usage: $0 path/to/config')
.demand(1)
.argv;
// Load in the factories
var fileReaderFactory = require(... | JavaScript | 0.000003 | @@ -2018,16 +2018,64 @@
(docs);%0A
+ log.info('Rendering', docs.length, 'docs');%0A
retu
|
02a7a9d45af130d07ebba32af651fe980d5f0951 | Update CLI test to reliably stop | test/cli.js | test/cli.js | 'use strict';
import Fabric from '../';
const assert = require('assert');
const expect = require('chai').expect;
describe('CLI', function () {
it('should expose a constructor', function () {
assert.equal(typeof Fabric.CLI, 'function');
});
it('should create an CLI smoothly', async function () {
let cl... | JavaScript | 0 | @@ -431,24 +431,48 @@
catch (E) %7B%0A
+ await cli.stop();%0A
consol
|
abd33586af0006e8492bbcdb1eb27a306359b03c | test coverage for the non-object case | test/cmp.js | test/cmp.js | var test = require('tape');
var equal = require('../');
test('equal', function (t) {
t.ok(equal(
{ a : [ 2, 3 ], b : [ 4 ] },
{ a : [ 2, 3 ], b : [ 4 ] }
));
t.end();
});
test('not equal', function (t) {
t.notOk(equal(
{ x : 5, y : [6] },
{ x : 5, y : 6 }
));
t.... | JavaScript | 0.000003 | @@ -610,24 +610,234 @@
end();%0A%7D);%0A%0A
+test('non-objects', function (t) %7B%0A t.ok(equal(3, 3));%0A t.ok(equal('beep', 'beep'));%0A t.ok(equal('3', 3));%0A t.notOk(equal('3', 3, %7B strict: true %7D));%0A t.notOk(equal('3', %5B3%5D));%0A t.end();%0A%7D);%0A%0A
test('argume
|
dd17b0f6517c90dba84407c5e01926911a49304d | Add tests for rbind method | test/lfr.js | test/lfr.js | 'use strict';
var assert = require('assert');
var sinon = require('sinon');
require('./fixture/sandbox.js');
describe('lfr', function() {
describe('Abstract Method', function() {
it('should throw errors for calling abstract methods', function() {
assert.throws(function() {
lfr.abstractMethod();
... | JavaScript | 0 | @@ -5373,13 +5373,854 @@
);%0A %7D);
+%0A%0A describe('RBind', function() %7B%0A it('should add additionally supplied parameters to the end of the arguments the function is executed with', function() %7B%0A var TestClass = function() %7B%7D;%0A TestClass.prototype.method = function(param1, param2) %7B%0... |
d0601f6a6070fabd53074fcec6160cd5999dc0a9 | Tidy `t/coverage/checksum-constructor.t.js`. | t/coverage/checksum-constructor.t.js | t/coverage/checksum-constructor.t.js | #!/usr/bin/env node
require('./proof')(1, function (step, Strata, tmp, load, objectify, assert, say) {
var fs = require('fs'), crypto = require('crypto'), strata
step(function () {
fs.writeFile(tmp + '/.ignore', '', 'utf8', step())
}, function () {
strata = new Strata({ directory: tmp, leaf... | JavaScript | 0 | @@ -68,37 +68,15 @@
tmp,
- load, objectify,
assert
-, say
) %7B%0A
|
2454e58da2dcc9644b66f712a0630c9c23fd1062 | update kwizmeestert | kwizmeestert/src/components/PickCategories.js | kwizmeestert/src/components/PickCategories.js | import React, {Component, PropTypes} from 'react';
import ListItem from "./ListItem";
class PickCategories extends Component {
componentDidMount() {
this.props.fetchCategories();
}
render() {
const categories = this.props.categories.map((category) => (
<ListItem
... | JavaScript | 0 | @@ -193,16 +193,228 @@
%0A %7D%0A%0A
+ hasSelectedCategory() %7B%0A const selectedCategories = this.props.categories.filter((category) =%3E %7B%0A return category.approved;%0A %7D);%0A%0A return selectedCategories.length %3E 0;%0A %7D%0A%0A
rend
@@ -887,16 +887,91 @@
gori... |
8c58824efbc7de57908e7e84aa078cef0b82ba12 | fix tests for previous app-tree tidy | usage/jsgui/src/test/javascript/specs/model/app-tree-spec.js | usage/jsgui/src/test/javascript/specs/model/app-tree-spec.js | define([
"model/app-tree"
], function (AppTree) {
var apps = new AppTree.Collection
apps.url = "fixtures/application-tree.json"
apps.fetch({async:false})
describe("model/app-tree", function () {
it("loads fixture data", function () {
expect(apps.length).toBe(2)
var... | JavaScript | 0 | @@ -922,17 +922,8 @@
test
-:riBZUjMq
%22)%0A
@@ -1353,17 +1353,8 @@
cat1
-:fXyyQ7Ap
%22)%0A
|
158adfb6fd180b2e526b6f85535ab08f8fae0405 | disable loose for example builds | packages/picimo-demo-shell/webpack.config.js | packages/picimo-demo-shell/webpack.config.js | /* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-env node */
const path = require('path');
const colors = require('colors');
const emoji = require('node-emoji');
const isProd = process.env.NODE_ENV === 'production';
const root = process.env.PICIMO_PROJECT_DIR || proces... | JavaScript | 0 | @@ -2124,27 +2124,28 @@
loose:
-tru
+fals
e,%0A
|
aa3d06f605b20d2744e186e24f6371d5f2604d50 | Fix react-native-web StyleSheet pre-rendering | packages/plugin-bundler-webpack/src/index.js | packages/plugin-bundler-webpack/src/index.js | import path from "path";
// import url from "url"
// import pkg from "@phenomic/core/package.json"
import findCacheDir from "find-cache-dir";
// import webpack, { BannerPlugin, optimize, DefinePlugin } from "webpack"
import webpack, { BannerPlugin, optimize } from "webpack";
import webpackDevMiddleware from "webpack-d... | JavaScript | 0.000008 | @@ -1310,16 +1310,39 @@
portant%22
+,%0A%0A %22react-native-web%22
%0A%5D;%0A%0Acon
|
7b60ff8504e240c14dd4ef5a9332acdbbe845416 | Fix bug in reducer reset | reducer.js | reducer.js | import {INIT, PUSH, REPLACE, POP, DISMISS, RESET} from './actions';
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function clone(map){
var el = {};
for (var i in map)
if (typeof(map[i])!='object')
el[i] = map[i];
return el;
}
export default function reduce... | JavaScript | 0.000001 | @@ -1887,36 +1887,31 @@
-currentRoute
+initial
: action.ini
|
f8a6f1c1291ea131ba5b8214471b7d03b4484a1d | Update default guide label format to support multi-line arrays. (#2456) | packages/vega-encode/src/ticks.js | packages/vega-encode/src/ticks.js | import {isLogarithmic, Time, UTC} from 'vega-scale';
import {timeFormat, timeInterval, utcFormat, utcInterval} from 'vega-time';
import {error, isNumber, isObject, isString, peek, span} from 'vega-util';
import {format as numberFormat, formatSpecifier} from 'd3-format';
/**
* Determine the tick count or interval func... | JavaScript | 0 | @@ -136,16 +136,25 @@
%7Berror,
+ isArray,
isNumbe
@@ -274,16 +274,115 @@
rmat';%0A%0A
+const defaultFormatter = value =%3E isArray(value)%0A ? value.map(v =%3E String(v))%0A : String(value);%0A%0A
/**%0A * D
@@ -4235,22 +4235,32 @@
:
-String
+defaultFormatter
;%0A%0A if
|
4af9cf7707fa3bb32f402be461b16f0137518556 | Change dev-port to 8081 (fix #53) | config/index.js | config/index.js | // see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'assets',
assetsPublicPat... | JavaScript | 0 | @@ -999,17 +999,17 @@
ort: 808
-0
+1
,%0A au
|
2f1c0e81f431b0e3e762c00513d09d1472bd0840 | Reset assets public path | config/index.js | config/index.js | // see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPat... | JavaScript | 0 | @@ -321,35 +321,8 @@
h: '
-http://avid.koser.us/assets
/',%0A
|
9ab908b4f77cbbf53664f8c591ea4f7e199aa638 | Add SystemDefault to DEMO_REGISTRY | config/model.js | config/model.js | "use strict";
define(['settings'],function(settings){
function model(value,registry){
var DEFAULT_PAGE = 1;
var DEFAULT_ITEM = 5;
var __meta = {},__data = [],__uses=[],object = {meta:__meta,data:__data};
var registered = false;
if(registry!=undefined){
DEMO_REGISTRY[registry.name] = {};
if(registry.use... | JavaScript | 0 | @@ -2934,16 +2934,77 @@
= data;%0A
+%09%09%09%09if(registered)%0A%09%09%09%09%09DEMO_REGISTRY%5Bregistry.name%5D=__data;%0A
%09%09%09%09retu
|
b0f0fc0fd84d923538b4f67a5ad5e11591ebf55c | Fix wiredep | config/watch.js | config/watch.js | module.exports = {
bower : {
files : ['bower.json'],
tasks : ['bowerInstall']
},
js : {
files : ['<%= config.app %>/scripts/**/*.js'],
tasks : ['browserify'],
options : {
livereload : true
}
},
gruntfile : {
files ... | JavaScript | 0.000002 | @@ -85,20 +85,15 @@
: %5B'
-bowerInstall
+wiredep
'%5D%0A
|
f51952d882b12c9e6160af8d2a538ed8407a8e3d | Remove comment | toolkits/landcover/test/helpers/test-image.js | toolkits/landcover/test/helpers/test-image.js | /**
* @license
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | JavaScript | 0 | @@ -1646,51 +1646,8 @@
) %7B%0A
- // DO NOT MERGE - USE .sample() INSTEAD?%0A
re
|
00b9097620e5e74e8789cd86dac50cd692e9d864 | Reset default firebase config | src/admin/firebase_config/config.js | src/admin/firebase_config/config.js | const config = {
apiKey: 'AIzaSyBTOhdIK1iBnmTSUXbIqYySeuqG8RwqAC4',
authDomain: 'tamiat-dadae.firebaseapp.com',
databaseURL: 'https://tamiat-dadae.firebaseio.com',
projectId: 'tamiat-dadae',
storageBucket: 'tamiat-dadae.appspot.com',
messagingSenderId: '1013231925212'
}
export default config
| JavaScript | 0.000001 | @@ -31,41 +31,41 @@
zaSy
-BTOhdIK1iBnmTSUXbIqYySeuqG8RwqAC4
+DN6vYIk-89PI1y1gmI8P-33hvZ8NxT3iI
',%0A
@@ -80,30 +80,27 @@
ain: 'tamiat
--dadae
+cms
.firebaseapp
@@ -136,22 +136,19 @@
//tamiat
--dadae
+cms
.firebas
@@ -177,22 +177,19 @@
'tamiat
--dadae
+cms
',%0A sto
@@ -211,14 +211,11 @@
miat
--dadae
+cms
.... |
724df224cb887d04b579a26883e9641bbaabdcfb | correct generation logs | src/api/db/manage/generate/index.js | src/api/db/manage/generate/index.js | const { Report, db } = require('../../index.js')(process.env.MONGODB_URI);
const mongoose = require('mongoose');
async function generateFromReports() {
// Find all reports that start a list.
const tailReports = await Report.find({
previous: { $exists: false },
}).exec();
const newLoos = [];
for (const re... | JavaScript | 0.00006 | @@ -954,27 +954,16 @@
xisting
-new-schema
loos wit
@@ -976,16 +976,16 @@
nfirm.'%0A
+
);
@@ -1067,19 +1067,8 @@
ing
-new-schema
loo
@@ -1293,28 +1293,24 @@
w loos from
-new
reports%0A
@@ -1321,17 +1321,17 @@
ole.
-warn('Mig
+log('Gene
rati
@@ -1342,23 +1342,12 @@
oos
-across from new
+from
... |
9df5638c8ec998161604728aa4cf76b751336af5 | make linter happy - add missing trailing comma | src/autocomplete/CommandProvider.js | src/autocomplete/CommandProvider.js | /*
Copyright 2016 Aviral Dasgupta
Copyright 2017 Vector Creations Ltd
Copyright 2017 New Vector Ltd
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
U... | JavaScript | 0.000017 | @@ -3306,16 +3306,17 @@
dialog')
+,
%0A %7D,%0A
|
71f5c9791df3a97ebe387025d19ddc9a2e6d3e07 | replace switch with if-else chain | src/babel/build-external-helpers.js | src/babel/build-external-helpers.js | import buildHelpers from "./build-helpers";
import generator from "./generation";
import * as util from "./util";
import t from "./types";
function buildGlobal(namespace, builder) {
var body = [];
var container = t.functionExpression(null, [t.identifier("global")], t.blockStatement(body));
var tree = ... | JavaScript | 0.000002 | @@ -1747,14 +1747,10 @@
;%0A
-switch
+if
(ou
@@ -1761,18 +1761,12 @@
Type
-) %7B%0A case
+ ===
%22gl
@@ -1770,17 +1770,19 @@
%22global%22
-:
+) %7B
%0A tre
@@ -1824,30 +1824,42 @@
;%0A
- break;%0A case
+%7D else if (outputType ===
%22umd%22
-:
+) %7B
%0A
@@ -1902,30 +1902,42 @@
;%0A
- break... |
67b049f22dc6cab2b70d8e78bad699d286cc5b41 | Update index.js | Leaderboard-Stats-Plugin/index.js | Leaderboard-Stats-Plugin/index.js |
'use strict'; // dont touch
var plugin = []; // dont touch
plugin.command = []; // dont touch
plugin.commandName = []; // dont touch
plugin.gamemodeId = []; // dont touch
plugin.gamemode = []; // dont touch
plugin.addToHelp = []; // dont touch
// [General]
plugin.name = "Leaderboard Stats"; // Name of plugin REQUIR... | JavaScript | 0.000002 | @@ -1785,33 +1785,33 @@
(plugin.tick %3E
-6
+7
) %7B%0A plugin.t
@@ -1849,32 +1849,77 @@
%0A %7D else %7B%0A
+ if (isNaN(plugin.tick)) plugin.tick = 1;%0A
plugin.tick
@@ -2228,9 +2228,9 @@
k %3E
-6
+7
) %7B%0A
|
a5a8cf70af58fa36e5273b3284d823b28f3d1801 | test updated and coverage improved | test/adapters/helpers/conversions.js | test/adapters/helpers/conversions.js | var libpath = process.env["JMX_COVERAGE"] ? "./../../../lib-cov" : "./../../../lib";
var assert = require("assert"),
java = require("java"),
conversions = require(libpath + "/adapters/helpers/conversions");
describe("conversions", function() {
describe("#v8ToJavaClass", function() {
[
// js obj... | JavaScript | 0 | @@ -340,16 +340,17 @@
string%22,
+
%22java.l
@@ -383,24 +383,25 @@
se,
+
%22boolean%22
@@ -420,16 +420,17 @@
%5B 1,
+
@@ -479,16 +479,17 @@
3648,
+
%22int%22
@@ -522,16 +522,17 @@
7483649,
+
%22doub
@@ -567,24 +567,25 @@
4967295,
+
%22int%22
@@ -613,24 +61... |
6d6d3a2afa994b5f35719194762d111645cee718 | Reorder functions and document shiftSlides method. | public/javascripts/presenter.js | public/javascripts/presenter.js | (function($){
/**
* This class represents the actual presentation. It encapsulates the
* logic for:
* - setting/maintaining the states of all slides.
* - showing any given slide.
* - transitioning to the next or previous slide.
* It can be controlled by a public interface but does no... | JavaScript | 0 | @@ -1512,830 +1512,8 @@
%7D,%0A%0A
- shiftSlides: function(proportion) %7B%0A if (proportion === 0) %7B%0A this._$getSlides().css(%7B%0A '-webkit-transform': '',%0A '-moz-transform': '',%0A '-o-transform': '',%0A ... |
5ab5ec57a032874b11852d535a870306de6c10ac | Update test/github/util/check-authorization to use ava assertions | test/github/util/check-authorization.js | test/github/util/check-authorization.js | import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import requireInject from 'require-inject'
import sinon from 'sinon'
import test from 'ava'
chai.use(chaiAsPromised)
const expect = chai.expect
test.beforeEach((t) => {
const list = sinon.stub()
const stubs = {
ghissues: {
createComme... | JavaScript | 0 | @@ -1,74 +1,4 @@
-import chai from 'chai'%0Aimport chaiAsPromised from 'chai-as-promised'%0A
impo
@@ -90,61 +90,8 @@
a'%0A%0A
-chai.use(chaiAsPromised)%0Aconst expect = chai.expect%0A%0A
test
@@ -452,24 +452,24 @@
const
-authData
+expected
= 'auth
@@ -501,39 +501,32 @@
elds()%0A return
-expect(
util.checkA... |
b57a3e6ab21f42a42f040aa26f35a063979baae5 | Remove unused variables in test_logging.js | test/integration/server/test_logging.js | test/integration/server/test_logging.js |
'use strict';
var fs = require('fs');
var path = require('path');
var supertest = require('supertest');
var expect = require('thehelp-test').expect;
var util = require('./util');
var serverUtil = require('../../../src/server/util');
var logShim = require('thehelp-log-shim');
var logger = logShim('end-to-end:test');... | JavaScript | 0.000002 | @@ -178,147 +178,8 @@
l');
-%0Avar serverUtil = require('../../../src/server/util');%0A%0Avar logShim = require('thehelp-log-shim');%0Avar logger = logShim('end-to-end:test');
%0A%0Ava
|
29b688102c816eabe7904860c8e582bf63838c0e | fix tests for ReadableState based on new "tiime" element | test/js/components/ReadableDate-spec.js | test/js/components/ReadableDate-spec.js | import React from 'react';
import { assert } from 'chai';
import { shallow } from 'enzyme';
import { ReadableDate } from '../../../src/js/components';
describe("ReadableDate", () => {
it("renders dash with no data", () => {
const wrapper = shallow(<ReadableDate />);
assert.equal(wrapper.contains... | JavaScript | 0 | @@ -804,91 +804,89 @@
per.
-containsMatchingElement(%0A %3Cspan%3Ea few seconds ago%3C/span%3E%0A ), true
+find('time').length, 1);%0A assert.equal(wrapper.text(), 'a few seconds ago'
);%0A
@@ -1055,17 +1055,16 @@
60*60);%0A
-%0A
@@ -1169,85 +1169,83 @@
per.
-containsMatchingElem... |
6c51050c22253cbade347f0a449e74dfca4e6910 | fix loading spinner tests | test/spec/directives/loading-spinner.js | test/spec/directives/loading-spinner.js | 'use strict';
describe('Directive: loadingSpinner', function () {
// load the directive's module
beforeEach(module('baubleApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
... | JavaScript | 0 | @@ -61,16 +61,18 @@
n () %7B%0A%0A
+
// loa
@@ -96,16 +96,18 @@
module%0A
+
before
@@ -119,17 +119,17 @@
module('
-b
+B
aubleApp
@@ -134,16 +134,18 @@
pp'));%0A%0A
+
var el
@@ -163,16 +163,18 @@
scope;%0A%0A
+
before
@@ -209,24 +209,28 @@
cope) %7B%0A
+
+
scope = $roo
@@ -248,16 +24... |
2a5726bd307b24a75c187a5c002ddf628643452e | Improve var ref test. | test/specs/parsing/performance.tests.js | test/specs/parsing/performance.tests.js | import { evaluateXPathToNumber, evaluateXPathToBoolean } from 'fontoxpath';
import slimdom from 'slimdom';
const cacheId = {};
describe('performance', () => {
// Warm up the cache
// Counting to 10 milion takes a couple of seconds.
before(function () {
this.timeout(100000);
evaluateXPathToNumber('count(0 to 100... | JavaScript | 0 | @@ -1920,56 +1920,29 @@
it('
-Makes sorting fast by skipping it in some querie
+Saves variable result
s',
@@ -2076,527 +2076,60 @@
%09//
-The extra steps should not add too much of a performance regression, since they do not have to be sorted%0A%09%09chai.assert.isAtMost(%0A%09%09%09timeXPath('(/child::*/child::*/... |
dfffdc4f88ed67c4dc06867cd147197b4888964f | Refactor preferences test. | test/tests/menu/negative/preferences.js | test/tests/menu/negative/preferences.js | 'use strict';
const { Application } = require('spectron');
const { assert } = require('chai');
const APP_PATH = './dist/Negative-darwin-x64/Negative.app/Contents/MacOS/Negative';
const TIPS_ID = '#shouldShowTips';
describe('Negative > Preferences', function () {
const app = new Application({
path: APP_PATH,
en... | JavaScript | 0 | @@ -1150,16 +1150,59 @@
ue;%0A%09%09%09%09
+// Focus the Preferences window%0A%09%09%09%09return
app.clie
@@ -1228,16 +1228,17 @@
dles%5B1%5D)
+;
%0A%09%09%09%7D)%0A%09
@@ -1245,32 +1245,70 @@
%09%09.then(() =%3E %7B%0A
+%09%09%09%09// Get %22Show tips%22 checkbox value%0A
%09%09%09%09return app.c
@@ -1393,17 +1... |
153ca55d94d810fcf1d0480b2085b65777d0eb33 | fix SelectedFilters icon positioning issue on firefox | packages/web/src/styles/Button.js | packages/web/src/styles/Button.js | import { css } from 'emotion';
import styled from 'react-emotion';
import darken from 'polished/lib/color/darken';
const filters = css`
margin: 0 -3px;
max-width: 100%;
a {
margin: 2px 3px;
padding: 5px 8px;
font-size: 0.85rem;
position: relative;
span:first-child {
max-width: 360px;
white-space: ... | JavaScript | 0 | @@ -453,16 +453,27 @@
: 100%25;%0A
+%09%09%09top: 0;%0A
%09%09%09right
|
e0cae45bee83ad36c77124e2eec60bc8cfbc552f | make attachment funcs available in public API | packages/xod-project/src/index.js | packages/xod-project/src/index.js | export * from './project';
export {
createPatch,
duplicatePatch,
getPatchPath,
setPatchPath,
getPatchDescription,
setPatchDescription,
getPatchAttachments,
setPatchAttachments,
hasImpl,
getImpl,
setImpl,
removeImpl,
nodeIdEquals,
listNodes,
getNodeById,
getNodeByIdUnsafe,
getPinByKey,
... | JavaScript | 0 | @@ -1185,16 +1185,166 @@
patch';%0A
+export %7B%0A getFilename as getAttachmentFilename,%0A getContent as getAttachmentContent,%0A getEncoding as getAttachmentEncoding,%0A%7D from './attachment';%0A
export *
|
61ba8a893703ef2beaadff716f6e3b491def6a5e | add next prev classes for dynamic container on init | src/responsive-carousel.dynamic-containers.js | src/responsive-carousel.dynamic-containers.js | /*
* responsive-carousel dynamic containers extension
* https://github.com/filamentgroup/responsive-carousel
*
* Copyright (c) 2012 Filament Group, Inc.
* Licensed under the MIT, GPL licenses.
*/
(function($) {
var pluginName = "carousel",
initSelector = "." + pluginName,
itemClass = pluginName + "-item",... | JavaScript | 0 | @@ -1452,16 +1452,61 @@
date%22 )%0A
+%09%09%09%09%09%5B pluginName %5D( %22_addNextPrevClasses%22 )%0A
%09%09%09%09%09//
|
0294ed455f1be4b931941f91b92aa12c1a4442d2 | Check if the image exists to show the resize slider | src/sunstone/public/app/utils/disks-resize.js | src/sunstone/public/app/utils/disks-resize.js | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2015, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | JavaScript | 0.000001 | @@ -4857,16 +4857,48 @@
attr;%0A%0A
+%0A if (disk.SIZE) %7B%0A
@@ -4912,24 +4912,26 @@
(disabled)%7B%0A
+
@@ -5001,32 +5001,34 @@
E);%0A
+
%7D else %7B%0A
@@ -5012,32 +5012,34 @@
%7D else %7B%0A
+
//
@@ -5080,16 +5080,18 @@
+ 500... |
409feecf14a5cc0c4ddb4a1dd9173092b48cae1a | Add a few more tests | tests/unit/helpers/weather-icon-test.js | tests/unit/helpers/weather-icon-test.js | import {
weatherIcon
} from 'ember-cli-weather-icons/helpers/weather-icon';
module('WeatherIconHelper');
// Replace this with your real tests.
test('it works', function() {
var result = weatherIcon('sunny');
equal(result.toString(), '<i class="wi wi-sunny"></i>');
});
| JavaScript | 0.000001 | @@ -106,59 +106,234 @@
);%0A%0A
-// Replace this with your real tests.%0Atest('it work
+test('it returns an icon with the correct sunny class', function() %7B%0A var result = weatherIcon('sunny');%0A equal(result.toString(), '%3Ci class=%22wi wi-sunny%22%3E%3C/i%3E');%0A%7D);%0A%0Atest('it returns an icon with the c... |
34bafdac249db81846af9a77967b168211ef94ce | Fix test after breaking it with the changes done to the job template | test/test-sample-folder-integrity.js | test/test-sample-folder-integrity.js | var assert = require ('assert'),
path = require ('path'),
fs = require ('fs');
describe ('sample folder integrity', function(){
var sampleFolder = path.join(process.cwd(), '/samples');
describe ('scaffold folder', function(){
describe ('config file', function(){
var dashboardFile = path.join(sa... | JavaScript | 0.000001 | @@ -1155,24 +1155,25 @@
bFile);%0A
+%0A
job(%7B%7D,%7B
@@ -1168,39 +1168,345 @@
-job(%7B%7D,%7B%7D, function(err, data)%7B
+// the default job uses easyRequest as example, so let's mock it%0A var mockedDependencies = %7B%0A easyRequest : %7B%0A HTML : function (options, cb) ... |
1cb88be2d20aa34df8d5fbccccd33a89d2071477 | Fix unit tests for composeWindow.getCurrentLang | test/units/ad/compose_window.test.js | test/units/ad/compose_window.test.js | /**
* @jest-environment ./test/helpers/jest-thunderbird-environment.cjs
*/
import { ComposeWindow } from "./../../../addon/ad/compose_window";
import { LoggerStub } from './../../../addon/lib/logger_stub.js';
import { jest } from '@jest/globals'
describe('ComposeWindow', () => {
var factory = function () {
r... | JavaScript | 0.000001 | @@ -2577,20 +2577,16 @@
compose
-_ext
returns
@@ -2594,32 +2594,32 @@
, async () =%3E %7B%0A
+
var compos
@@ -2661,39 +2661,38 @@
.compose
-_ext.getCurrentLanguage
+.getActiveDictionaries
= jest.
@@ -2712,20 +2712,37 @@
rnValue(
-'ca'
+%7Bca: true, en: false%7D
)%0A%0A
@@ -2831,31 +2831,30 @@
pos... |
3d2f554be9667d888b808ca4a674b28fc0b52dca | Use early return pattern | lib/cartodb/cache/named_map_provider_cache.js | lib/cartodb/cache/named_map_provider_cache.js | 'use strict';
var _ = require('underscore');
var dot = require('dot');
var NamedMapMapConfigProvider = require('../models/mapconfig/provider/named-map-provider');
var templateName = require('../backends/template_maps').templateName;
var LruCache = require("lru-cache");
const TEN_MINUTES_IN_MILLISECONDS = 1000 * 60 *... | JavaScript | 0.000002 | @@ -1117,17 +1117,16 @@
%7C%7C %7B%7D;%0A
-%0A
var
@@ -1189,16 +1189,17 @@
s);%0A
+%0A
if (
!nam
@@ -1198,9 +1198,8 @@
if (
-!
name
@@ -1243,24 +1243,90 @@
Key)) %7B%0A
+ return callback(null, namedMapProviders%5BproviderKey%5D);%0A %7D%0A%0A
namedMap
@@ -1385,28 +1385,24 @@
er(%0A ... |
324e374758ef11bece4cc4cdadc91240c149596b | Fix for env file | lib/generators/templates/environments/test.js | lib/generators/templates/environments/test.js | //= require handlebars
//= require ember
//= require ember-data.prod
| JavaScript | 0.000001 | @@ -60,10 +60,5 @@
data
-.prod
%0A
|
46f1b3b4bc2bd271601d987ee21b75a38f645312 | Send processing status to client on db list request | utils/database.js | utils/database.js | var Promise = require('bluebird'),
MongoClient = require('mongodb').MongoClient,
dbServer = 'mongodb://localhost:27017/',
archiver = require('archiver'),
fs = require('fs'),
async = require('async'),
collUtils = require('./collection'),
db = {};
module.exports = {
list : List,
setDb : ... | JavaScript | 0 | @@ -1665,16 +1665,36 @@
ts' : %7B%7D
+,'processing' : true
%7D;%0A
|
7650aceeb4c5217e8524f63a5d6c0919079ac17d | Fix to issue 369. | src/client/features/search/index.js | src/client/features/search/index.js | const React = require('react');
const h = require('react-hyperscript');
const Link = require('react-router-dom').Link;
const Loader = require('react-loader');
const queryString = require('query-string');
const _ = require('lodash');
const classNames = require('classnames');
const Icon = require('../../common/componen... | JavaScript | 0 | @@ -917,16 +917,17 @@
%7D);
+
%0A %7D%0A%0A
@@ -2460,24 +2460,109 @@
result =%3E %7B%0A
+ if(_.isEmpty(state.dataSources))%7B%0A return h('div');%0A %7D%0A else%7B%0A
const
@@ -3203,32 +3203,38 @@
%5D)%0A %5D);%0A
+ %7D%0A
%7D);%0A%0A con
|
0515e5adc0a7635657e4cdb9334b308a0b8d72ba | Fix linter | packages/react-static/src/commands/create.js | packages/react-static/src/commands/create.js | import fs from 'fs-extra'
import chalk from 'chalk'
import path from 'path'
import git from 'git-promise'
import { execSync } from 'child_process'
import inquirer from 'inquirer'
import autoCompletePrompt from 'inquirer-autocomplete-prompt'
import matchSorter from 'match-sorter'
import downloadGitRepo from 'download-gi... | JavaScript | 0.000002 | @@ -844,29 +844,8 @@
()%0A%0A
- const prompts = %5B%5D%0A
co
|
14251ad11f9d99bd35ddc673ac69f166b8e0d29c | Resolve relative path | packages/mjml-core/src/index.js | packages/mjml-core/src/index.js | import { get, identity, map, omit, reduce } from 'lodash'
import juice from 'juice'
import { html as htmlBeautify } from 'js-beautify'
import { minify as htmlMinify } from 'html-minifier'
import MJMLParser from 'mjml-parser-xml'
import MJMLValidator from 'mjml-validator'
import components, { initComponent, registerC... | JavaScript | 0.000002 | @@ -51,16 +51,39 @@
lodash'%0A
+import path from 'path'
%0Aimport
@@ -837,16 +837,98 @@
require(
+options.skeleton.charAt(0)=='.' ? path.resolve(process.cwd(), options.skeleton) :
options.
|
1c8e3c4f90023614880ee048c58d511285e13010 | add key for Breadcrumb elements | src/components/A10-UI/Breadcrumb.js | src/components/A10-UI/Breadcrumb.js | import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { FIRST_BREADCRUMB } from '../../constants/breadcrumb';
export default class Breadcrumb extends Component {
render() {
let { data } = this.props;
data = FIRST_BREADCRUMB.concat(data);
return (<ol className="... | JavaScript | 0.000038 | @@ -463,16 +463,26 @@
: %5B%3CLink
+ key=%7Bidx%7D
to=%7Bite
|
65427f1f77b565c91e9ba5d038eb1663fc833efe | Move reformatColumns to helpers/reformat | src/components/Budgets/CSVExport.js | src/components/Budgets/CSVExport.js | import flatten from 'flat';
import jsonexport from 'jsonexport';
import React, { Component } from 'react';
import { CSVLink } from 'react-csv';
class CSVExport extends Component {
constructor(){
super();
this.exportFile = this.exportFile.bind(this);
}
convertFileType(data) {
const options = {
headers: th... | JavaScript | 0 | @@ -136,16 +136,74 @@
ct-csv';
+%0Aimport %7B reformatColumns %7D from '../../helpers/reformat';
%0A%0Aclass
@@ -632,21 +632,16 @@
%09return
-this.
reformat
@@ -682,1530 +682,8 @@
%09%7D%0A%0A
-%09reformatColumns(items) %7B%0A%09%09const flatList = items.map((item) =%3E flatten(item, %7B maxDepth: 2 %7D));%0A%09... |
5a97e3870d023236c4f509fb000ec025107dc20f | Connect Form to Redux Store | src/components/Budgets/Item/Form.js | src/components/Budgets/Item/Form.js | import React, { Component } from 'react';
import nanoid from 'nanoid';
import flatten from 'flat';
export default class ItemForm extends Component {
constructor(props) {
super(props);
this.state = {
item: {
...flatten({ ...props.item }, { maxDepth: 2 }),
},
};
this.onSubmit = t... | JavaScript | 0 | @@ -1,12 +1,40 @@
+import flatten from 'flat';%0A
import React
@@ -74,84 +74,47 @@
ort
-nanoid from 'nanoid';%0Aimport flatten from 'flat';%0A%0Aexport default
+%7B connect %7D from 'react-redux';%0A%0A
class
-Item
Form
@@ -751,16 +751,21 @@
em %7D));%0A
+ %0A
this
@@ -778,31 +778,93 @@
ate(
- ItemForm... |
5589e09760f70a16737b582e9ef9d1d5552eb2f1 | Add unlogged user menu | src/components/Navigation/Topnav.js | src/components/Navigation/Topnav.js | import React, { PropTypes } from 'react';
import { Link } from 'react-router';
import { Menu, Popover, Icon, Input } from 'antd';
import Avatar from '../Avatar';
import './Topnav.less';
const SubMenu = Menu.SubMenu;
class Topnav extends React.Component {
static propTypes = {
username: PropTypes.string,
};
... | JavaScript | 0.000001 | @@ -690,219 +690,64 @@
ps;%0A
+%0A
-return (%0A %3Cdiv className=%22Topnav%22%3E%0A %3Cdiv className=%22Topnav__container%22%3E%0A %3Cspan className=%22Topnav__brand%22%3Ebusy%3C/span%3E%0A %3CInput placeholder=%22Search...%22 className=%22Topnav__input%22 /%3E
+let content;%0A%0A ... |
a34e11aa6f61d6dcb83fa70c9c84d4e7bd5f5844 | update story | src/components/qTip/qTip.stories.js | src/components/qTip/qTip.stories.js | import React from 'react';
import { addStoryInGroup, MID_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { boolean } from '@storybook/addon-knobs';
import { Store, State } from '@sambego/storybook-state';
import { IconIdeaMediumOutline } from '@teamleader/ui-icons';
import { Island, Link, QTip, TextBody } from ... | JavaScript | 0 | @@ -103,58 +103,8 @@
s';%0A
-import %7B boolean %7D from '@storybook/addon-knobs';%0A
impo
@@ -226,24 +226,16 @@
import %7B
- Island,
Link, Q
@@ -490,107 +490,8 @@
p'),
-%0A%0A parameters: %7B%0A info: %7B%0A propTablesExclude: %5BTextBody, Island, Link, State%5D,%0A %7D,%0A %7D,
%0A%7D;%0A
@@ -504,... |
6ba25accf7bd28c03ff7f55c989f2fb55b65ba9d | Replace `_site_id` with `_sid` to follow naming conventions | lib/follow.js | lib/follow.js |
/**
* Module dependencies.
*/
var debug = require('debug')('wpcom:like');
/**
* Follow methods
*
* @param {String} site_id site id
* @param {WPCOM} wpcom
* @api public
*/
function Follow(site_id, wpcom){
if (!site_id) {
throw new Error('`site id` is not correctly defined');
}
if (!(this instanceo... | JavaScript | 0.000094 | @@ -391,20 +391,16 @@
this._s
-ite_
id = sit
@@ -405,16 +405,16 @@
ite_id;%0A
+
%7D;%0A%0A/**%0A
@@ -600,36 +600,32 @@
ites/' + this._s
-ite_
id + '/follows/'
@@ -838,36 +838,32 @@
ites/' + this._s
-ite_
id + '/follows/n
@@ -1111,36 +1111,32 @@
ites/' + this._s
-ite_
id + '/follows/m
@@ -1378,32 +1378,32 @@
... |
54bd2a5d978be0d13cb1d1b82e54a16ace79815a | Add text-transform on mj-text component | packages/mjml-text/src/index.js | packages/mjml-text/src/index.js | import { MJMLElement } from 'mjml-core'
import merge from 'lodash/merge'
import React, { Component } from 'react'
const tagName = 'mj-text'
const defaultMJMLDefinition = {
content: '',
attributes: {
'align': 'left',
'color': '#000000',
'font-family': 'Ubuntu, Helvetica, Arial, sans-serif',
'font-si... | JavaScript | 0 | @@ -1047,16 +1047,70 @@
ration')
+,%0A textTransform: mjAttribute('text-transform')
%0A %7D
|
20bb82b907b019e66e4d013aa7ef708cf1497b72 | Use more useful variable names than 'data'. | lib/person.js | lib/person.js | var Person = function(userId){
this._userId = userId;
this._minId = 0;
this._lastImage = null;
this.username = null;
this.lastUpdate = null;
};
var P = Person.prototype;
P.getLatestUpdate = function(client, callback){
var self = this;
client.getUserMedia(this._userId, this._minId, function(err, data){
... | JavaScript | 0.000026 | @@ -305,20 +305,25 @@
on(err,
-data
+resultSet
)%7B%0A i
@@ -387,20 +387,25 @@
if (
-data
+resultSet
.hasOwnP
@@ -423,20 +423,25 @@
ta') &&
-data
+resultSet
.data.le
@@ -479,20 +479,25 @@
Updates(
-data
+resultSet
.data, c
@@ -883,20 +883,21 @@
unction(
-data
+entry
)%7B%0A thi
@@ -911,20 +911,21 @@... |
cde1ae00efcf21bf3e5a066a71943b64e8563edf | fix link 2 | Easy-Rent/read.js | Easy-Rent/read.js | var path_591 = 'https://rent.591.com.tw/'
console.log('Start loading data from 591')
//var searchPath = path_591 + '/index.php?module=search&action=rslist&is_new_list=1&type=1&searchtype=1®ion=1&listview=img&option=cold,hotwater,bed,wardrobe&kind=2&rentprice=3&order=area&orderType=desc&other=cook';
var searchPath = ... | JavaScript | 0 | @@ -641,103 +641,51 @@
);%0A%09
-console.log(response)%0A%09$('#container .body_591').html(response.main);%0A%09$('#container .body_591
+var $data = $(response.main);%0A%09$data.find('
a').
@@ -738,19 +738,20 @@
s.attr('
-src
+href
', path_
@@ -772,11 +772,12 @@
tr('
-src
+href
'));
@@ -782,13 +782,55 @@
);%0A%... |
fca66b1ef5603f95a41a553a003453811c953665 | Switch Button to TouchableWithoutFeedback | src/button.js | src/button.js | import React from './React'
const { PropTypes, View } = React
import ps from 'react-native-ps'
import Uranium from 'uranium'
import Color from 'color'
import connectTheme from './connectTheme'
import Shadows from './styles/Shadows'
import { Breakpoints } from './styles/Grid'
import { Body1 } from 'carbon-ui/lib/Type'
... | JavaScript | 0 | @@ -9,57 +9,108 @@
eact
+, %7B PropTypes %7D
from '
-./R
+r
eact'%0A
-const %7B PropTypes, View %7D = React
+import %7B TouchableWithoutFeedback, View %7D from 'react-native-universal'
%0Aimp
@@ -490,16 +490,28 @@
theme,%0A
+ ...other,%0A
%7D) =%3E %7B%0A
@@ -816,51 +816,38 @@
%3C
-View style=%7BtStyles.to... |
999b9e22750ed64302a2880fce2e1fbcb99ba250 | Use destroy instead of remove for vuejs (#1583) | apps/vue-editor/src/mixin/option.js | apps/vue-editor/src/mixin/option.js | const editorEvents = [
'load',
'change',
'caretChange',
'focus',
'blur',
'keydown',
'keyup',
'beforePreviewRender',
'beforeConvertWysiwygToMarkdown',
];
const defaultValueMap = {
initialEditType: 'markdown',
initialValue: '',
height: '300px',
previewStyle: 'vertical',
};
export const optionsM... | JavaScript | 0 | @@ -1244,14 +1244,15 @@
tor.
-remove
+destroy
();%0A
|
5555aec74b0f4894731de61eb3d3cd36b77028c8 | Fix for broken @import errors | web/ember-cli-build.js | web/ember-cli-build.js | /*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
lessOptions: {
paths: [
"bower_components",
"bower_components/bootstrap/less",
]
}
});
app.im... | JavaScript | 0.000001 | @@ -292,16 +292,94 @@
%5D%0A
+ %7D,%0A minifyCSS: %7B%0A options: %7B%0A processImport: false%0A %7D%0A
%7D%0A
|
1034cca153501d9e8bf5392562eed842c2f2365c | Fix formatting, re#6542 | arches/app/media/js/views/search.js | arches/app/media/js/views/search.js | define([
'jquery',
'underscore',
'knockout',
'knockout-mapping',
'arches',
'viewmodels/alert',
'search-components',
'views/base-manager',
'views/components/simple-switch'
], function($, _, ko, koMapping, arches, AlertViewModel, SearchComponents, BaseManagerView) {
// a method to ... | JavaScript | 0.000007 | @@ -2924,32 +2924,33 @@
;%0A %7D)
+;
%0A var
@@ -3048,16 +3048,17 @@
%7D, this)
+;
%0A
|
86a3eb1601348e7a609bd6dc3fa4060fee6013af | fix test name | test/test_channel_security_token_live_time.js | test/test_channel_security_token_live_time.js | "use strict";
require("requirish")._(module);
var OPCUAServer = require("lib/server/opcua_server").OPCUAServer;
var OPCUAClient = require("lib/client/opcua_client").OPCUAClient;
var should = require("should");
var assert = require("better-assert");
var async = require("async");
var util = require("util");
var opcua = r... | JavaScript | 0.000546 | @@ -1609,11 +1609,8 @@
it(%22
-ZZ
A se
|
81b991a6e8211d6abfb773cba427518873500189 | Update the path to Amanda in the ‘exclusiveMaximum.js’ file | tests/validators/exclusiveMaximum.js | tests/validators/exclusiveMaximum.js | // Load dependencies
var amanda = require('../../src/amanda.js');
/**
* Test #1
*/
exports['Test #1'] = function(test) {
var count = 0;
var schema = {
required: true,
type: 'number',
maximum: 10,
exclusiveMaximum: true
};
[
11,
100,
10,
{},
null,
[],
function() ... | JavaScript | 0 | @@ -46,18 +46,19 @@
/../
-src/amanda
+dist/latest
.js'
|
ca6b91ac4281f9c426c40b69c72a0e280bb7ec1e | move BADGES_ENABLED checks to checkOrGrant | troposphere/static/js/actions/BadgeActions.js | troposphere/static/js/actions/BadgeActions.js | define(function (require) {
var Utils = require('./Utils'),
$ = require('jquery'),
Router = require('../Router'),
stores = require('stores'),
globals = require('globals'),
Badge = require('models/Badge'),
BadgeConstants = require('constants/BadgeConstants'),
Badges = require... | JavaScript | 0 | @@ -444,20 +444,16 @@
State%5D,%0A
-
%0A che
@@ -532,31 +532,49 @@
istoryStore.
-getAll(
+fetchWhere(%7Bunique: true%7D
).meta.count
@@ -990,17 +990,16 @@
_BADGE);
-
%0A %7D
@@ -1156,16 +1156,42 @@
if(
+globals.BADGES_ENABLED &&
!stores.
@@ -2336,36 +2336,8 @@
) %7B%0A
- console.log... |
b5e4db8fdfda1808b12fd97e119178feedbbe5e6 | fix admin delete article acceptance test for new selectors | tests/acceptance/admin-delete-article-test.js | tests/acceptance/admin-delete-article-test.js | import { test } from 'qunit';
import moduleForAcceptance from 'adlet/tests/helpers/module-for-acceptance';
import { authenticateSession } from 'adlet/tests/helpers/ember-simple-auth';
import Ember from 'ember';
let s3Mock = Ember.Service.extend({
listAll(){
return [
{Key: "Article1", Body: [77,121,32,83,101,... | JavaScript | 0 | @@ -1239,20 +1239,37 @@
(%22.a
-dmin-a
rticle
+-edit__header__controls
__de
|
37a9f5046b0395df0cda76178dc6ebae72512b95 | Add replace option | esm/mount.js | esm/mount.js | import { getEl } from './util.js';
import { doUnmount } from './unmount.js';
const hookNames = ['onmount', 'onremount', 'onunmount'];
const shadowRootAvailable = typeof window !== 'undefined' && 'ShadowRoot' in window;
export const mount = (parent, child, before) => {
const parentEl = getEl(parent);
let childEl =... | JavaScript | 0.000017 | @@ -257,16 +257,25 @@
, before
+, replace
) =%3E %7B%0A
@@ -743,24 +743,111 @@
!= null) %7B%0A
+ if (replace) %7B%0A parentEl.replaceChild(childEl, getEl(before));%0A %7D else %7B%0A
parentEl
@@ -885,16 +885,22 @@
fore));%0A
+ %7D%0A
%7D else
|
cc3e762b1155fbae12de6291225cf98884a35de7 | Fix in case the user has not signed in | gcf/functions/index.js | gcf/functions/index.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 appli... | JavaScript | 0.000115 | @@ -1946,18 +1946,172 @@
the user
-.%0A
+ unless he has not signed it.%0A if (!data.authToken) %7B%0A%0A console.log('User has not signed in.');%0A exports.makeuppercase(context, data);%0A%0A %7D else %7B%0A
ref.au
@@ -2144,32 +2144,33 @@
hToken, function
+
(error, result)
@@ -2163,32 +2163,34 @@
rro... |
51f2f1bcbbff7f9a71df79c0da97e8b5f16c5f1f | allow running under chrome but not web app | core/config.js | core/config.js | /**
Copyright 2014 Gordon Williams (gw@pur3.co.uk)
This Source Code is subject to the terms of the Mozilla Public
License, v2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
------------------------------------------------------------------
Centra... | JavaScript | 0.000001 | @@ -1254,32 +1254,50 @@
!== 'undefined'
+ && chrome.storage
) %7B%0A chrome
@@ -1595,16 +1595,34 @@
defined'
+ && chrome.storage
) %7B%0A
|
06565e805223a8a4048c3edc93550eed13984ce1 | create user token id | chrome-stress-aid/static/js/background.js | chrome-stress-aid/static/js/background.js | chrome.runtime.onMessage.addListener(function (msg, sender) {
// First, validate the message's structure
if ((msg.from === 'content')) {
alert(msg.subject);
var http = new XMLHttpRequest();
var url = "http://104.198.249.148:5000/updatetemp";
var params = JSON.stringify({
'account_id': 456,
... | JavaScript | 0.000002 | @@ -735,8 +735,1411 @@
%0A %7D%0A%7D);
+%0A%0A%0Afunction getRandomToken() %7B%0A // E.g. 8 * 32 = 256 bits token%0A var randomPool = new Uint8Array(32);%0A crypto.getRandomValues(randomPool);%0A var hex = '';%0A for (var i = 0; i %3C randomPool.length; ++i) %7B%0A hex += randomPool%5Bi%5D.toStr... |
da2aa10757682723a3330fea79afd1a142f69cd0 | correct GAE login fields | Dashboard/tests/casperjs/lib/loginGAE.js | Dashboard/tests/casperjs/lib/loginGAE.js | // login module
//
exports.login = function(username, password) {
casper.test.comment("Login in with username \"" + username + "\", password \"" + password + "\"");
casper.start(casper.cli.get("url") + "/login", function() {
return this.test.assertExists('form#gaia_login', 'FLOW GAE Login Found');
... | JavaScript | 0.000001 | @@ -419,24 +419,31 @@
%7B%0A%09%09%09%09%09
+Email:
username
: 'akvoq
@@ -438,36 +438,16 @@
name
-: 'akvoqa@gmail.com'
,%0A%09%09%09%09%09
-p
+P
assw
|
85a7c745be1170332d21bb80e83cef1f1302e262 | Add getAll in config | src/config.js | src/config.js | import fs from 'fs';
import u from 'url';
class Config {
_cache = {};
constructor() {
this._dir = process.env.NODE_CONFIG_DIR || process.cwd() + '/config';
}
// Set config dir
set dir(dir) {
this._dir = dir;
}
// Get config
get(arg) {
if (!this._cache[arg]) {... | JavaScript | 0.000001 | @@ -1022,32 +1022,425 @@
he%5Barg%5D;%0A %7D%0A%0A
+ // Get config%0A getAll() %7B%0A if (!this._cache.all) %7B%0A this._init();%0A let all = %5B%5D;%0A for (let file of this._files) %7B%0A let config = this._parse(file);%0A if (config) %7B... |
d4f60c6f69ecc2e2d8b5c899ea0ff6dd45f28258 | Update consts.js | src/consts.js | src/consts.js | var globals = require('./globals');
var consts = module.exports = {};
consts.encodingTypes = [X, Y, ROW, COL, SIZE, SHAPE, COLOR, ALPHA, TEXT];
consts.dataTypes = {"O": O, "Q": Q, "T": T};
consts.dataTypeNames = ["O","Q","T"].reduce(function(r,x) {
r[consts.dataTypes[x]] = x; return r;
},{});
consts.DEFAULTS = {... | JavaScript | 0 | @@ -636,32 +636,8 @@
les%0A
- timeScaleNice: %22day%22,%0A
ti
@@ -660,8 +660,9 @@
th: 3%0A%7D;
+%0A
|
e5d841d8d5969af4dae1c0952bd6c63ba8bcab93 | allow slashes(/) in Product names | offenerhaushalt/static/js/budget.js | offenerhaushalt/static/js/budget.js | $(function(){
var site = JSON.parse($('#site-config').html()),
embedTemplate = Handlebars.compile($('#embed-template').html());
$embedCode = $('#embed-code')
baseFilters = {};
$.each(site.filters, function(i, f) {
baseFilters[f.field] = f.default;
});
var $hierarchyMenu = $('#hierarchy-m... | JavaScript | 0.000027 | @@ -2660,16 +2660,35 @@
illdown%5D
+.replace('/','%252F')
+ '/';%0A
|
8cbd4cdb45c854937a45b1d1c437b6bccf634ce5 | Version number change, primarily for meeting clarity. | CareWheels/www/js/app.js | CareWheels/www/js/app.js | // Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
angular.module('careWheels', [
'ionic',
'ui.route... | JavaScript | 0 | @@ -592,17 +592,17 @@
R', '0.0
-3
+4
')%0A%0A.run
|
cb33a14b3ddd1a1d84d35521a353c2872dad4cee | remove version from src code | src/cookie.js | src/cookie.js | define(function(require, exports) {
// Cookie
// -------------
// Thanks to:
// - http://www.nczonline.net/blog/2009/05/05/http-cookies-explained/
// - http://developer.yahoo.com/yui/3/cookie/
var Cookie = exports;
Cookie.version = '1.0.2';
var decode = decodeURIComponent;
var ... | JavaScript | 0.000001 | @@ -240,38 +240,8 @@
rts;
-%0A Cookie.version = '1.0.2';
%0A%0A
|
2b3a2c0b847acfff72edea2c7df79f282a4ec500 | fix typo | src/cursor.js | src/cursor.js | // @flow
import EventEmitter from 'events';
import * as dom from './dom';
import { Css } from './consts';
import logger from './logger';
import HighlightMarkers from './highlightmarkers';
import type { ScrollToCallback } from './typedefs';
export type IterableQueries = string | Array<string>;
/**
* Class responsib... | JavaScript | 0.999999 | @@ -3843,16 +3843,23 @@
if (
+typeof
scrollTo
|
f3ffa4fb62c2d941ce32f019ae277375b003a061 | Set Custos RootStaffPos updates pname/oct | src/custos.js | src/custos.js | /*
Copyright (C) 2011 by Gregory Burlet, Alastair Porter
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, p... | JavaScript | 0 | @@ -3365,16 +3365,220 @@
ffPos;%0A%0A
+ var actingClef = this.staff.getActingClefByEle(this);%0A var pitchInfo = this.staff.calcPitchFromStaffPos(this.rootStaffPos, actingClef);%0A this.setRootNote(pitchInfo%5B%22pname%22%5D, pitchInfo%5B%22oct%22%5D);%0A%0A
$(th
@@ -3622,17 +3622,16 @@
this%5D);%0A
-%0... |
cb64c22792587791ad34c76a3e15ace175215756 | stop requesting when there is no data received last time | infinitescroll.js | infinitescroll.js | (function($){
$.fn.infinitescroll = function(options) {
var states = {
curPage: 1,
processing: false
}
var options = $.extend({
thresholdPx: 100,
ajaxType: "POST",
url: "",
dataType: "html",
data: {},
callback: function(data, textStatus, jqXHR) {
th... | JavaScript | 0 | @@ -107,25 +107,49 @@
ssing: false
+,%0A lastPage: false,
%0A
-
%7D%0A%0A v
@@ -573,16 +573,35 @@
cessing
+&& !states.lastPage
) %7B%0A
@@ -977,16 +977,17 @@
= false%0A
+%0A
@@ -1009,16 +1009,153 @@
success:
+ %5Bfunction(data, textStatus, jqXHR) %7B%0A if (data.length == 0)... |
d254a30240fff0151a849f75e97d6af12011be94 | Streamline deploy:rollback | src/deploy.js | src/deploy.js | var DeployMutex = require('./deploy-mutex');
var deployMutex = new DeployMutex();
module.exports = function(robot) {
robot.respond(/deploy pending ([^\s]+) ([^\s]+)$/i, function(chat) {
if (deployMutex.hasJob()) {
chat.send('Deploy job can not be started because ' + (deployMutex.getJob()) + ' is in progre... | JavaScript | 0 | @@ -3685,24 +3685,92 @@
ion(chat) %7B%0A
+ if (!robot.userHasRole(chat, 'deployer')) %7B%0A return;%0A %7D%0A
var app
@@ -4090,24 +4090,59 @@
rollback');%0A
+ deployMutex.setJob(job, chat);%0A
job.on('
|
2654d8ce8f61b77083929556be748941e6101146 | Fix localization | activities/Abacus.activity/js/activity.js | activities/Abacus.activity/js/activity.js | define(["sugar-web/activity/activity",'easeljs','tweenjs','activity/game','activity/standardabacus','activity/standardabacuscolumn','activity/abacusbead','activity/onecolumnabacus','activity/posnegcolumn'], function (act) {
// Manipulate the DOM only when it is ready.
requirejs(['domReady!'], function (doc) {
// ... | JavaScript | 0.000001 | @@ -923,16 +923,140 @@
ge;%0A%09%09%09%09
+window.addEventListener('localized', function(e) %7B%0A%09%09%09%09%09if (e.language != language) %7B%0A%09%09%09%09%09%09setTimeout(function() %7B%0A%09%09%09%09%09%09
webL10n.
@@ -1081,16 +1081,45 @@
nguage;%0A
+%09%09%09%09%09%09%7D, 50);%0A%09%09%09%09%09%7D%0A%09%09%... |
6ef15806dd51bafd0a52cb9726c64ced798cb151 | Fix #211: keep undo states (#212) | src/editor.js | src/editor.js | import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
import PropTypes from 'prop-types';
import React from 'react';
import { processSize } from './utils'
function noop() { }
class MonacoEditor extends React.Component {
constructor(props) {
super(props);
this.containerElement = undefined;
th... | JavaScript | 0 | @@ -159,17 +159,18 @@
./utils'
+;
%0A
-
%0Afunctio
@@ -762,37 +762,240 @@
tor.
-setValue(this.__current_value
+pushUndoStop();%0A this.editor.executeEdits('', %5B%7B%0A range: this.editor.getModel().getFullModelRange(),%0A text: this.__current_value%0A %7D%5D, %5Bnew monaco.Range(1, ... |
d979db81769f6440eac0b1d6050b3fa604a732ab | Fix fd-diagram-edit-form controller init without super | addon/controllers/fd-diagram-edit-form.js | addon/controllers/fd-diagram-edit-form.js | import EditFormController from 'ember-flexberry/controllers/edit-form';
export default EditFormController.extend({
parentRoute: 'fd-diagram-list-form',
init: function() {
}
});
| JavaScript | 0 | @@ -152,33 +152,8 @@
m',%0A
- init: function() %7B%0A %7D%0A
%7D);%0A
|
2857d44a1135c1a225812720694dbc633c1b277d | Update garbage.js | cron/garbage.js | cron/garbage.js | const CronJob = require('cron').CronJob;
const TimeDate = require('time').Date;
const garbageList = require('../data/garbage.json');
const TIME_ZONE = 'Asia/Tokyo';
const garbageType = () => {
"use strict";
const date = new TimeDate();
date.setTimezone(TIME_ZONE);
const day = date.getDay();
return garbag... | JavaScript | 0.000001 | @@ -452,9 +452,9 @@
%E3%81%84%E3%81%BE%E3%81%99%E3%80%82
-%E6%9C%AC
+%E4%BB%8A
%E6%97%A5%E3%81%AF%E3%80%8C'
|
43be2fd9144406785c7da4b375176da9322c85fd | add progress to upgrade script | upgrades/mentions_delete_mentions_set_zset.js | upgrades/mentions_delete_mentions_set_zset.js | 'use strict';
const db = module.parent.require('./database');
const batch = module.parent.require('./batch');
module.exports = {
name: 'Delete mentions:sent:<pid> sorted sets',
timestamp: Date.UTC(2021, 10, 2),
method: async function () {
const nextPid = await db.getObjectField('global', 'nextPid');
... | JavaScript | 0 | @@ -233,24 +233,59 @@
nction () %7B%0A
+ const %7B progress %7D = this;%0A
cons
@@ -522,16 +522,56 @@
s) =%3E %7B%0A
+ progress.incr(pids.length);%0A
|
d96292c8bc0933ce202a6de4a1a4c938aa267a72 | typos man | ProcessesingScripts/lynximport.js | ProcessesingScripts/lynximport.js | var templatehandler = require("../engine/templateHanler.js");
exports.Process = function(page){
var jsdom = require('jsdom').jsdom;
var serializer = require('jsdom').serializeDocument;
var document = jsdom(page);
var list = document.getElementsByTagName("lynximport");
for(var i =0 ; i<list.length; i++){
d... | JavaScript | 0.999566 | @@ -45,16 +45,17 @@
plateHan
+d
ler.js%22)
|
a1d91dfa87f55fd92012998b6ea3c2399e81bbad | Fix ContainerComponentEditor quill formats | app/assets/javascripts/components/ContainerComponentEditor.js | app/assets/javascripts/components/ContainerComponentEditor.js | /* eslint-disable class-methods-use-this */
/* eslint-disable react/no-multi-comp */
import React from 'react';
import PropTypes from 'prop-types';
import { OverlayTrigger, Popover } from 'react-bootstrap';
import ReactQuill from './react_quill/ReactQuill';
import QuillToolbarDropdown from './react_quill/QuillToolbar... | JavaScript | 0.000001 | @@ -778,16 +778,128 @@
an%3E%0A);%0A%0A
+const toolbarOptions = %5B%0A 'header',%0A 'bold',%0A 'italic',%0A 'underline',%0A 'script',%0A 'list',%0A 'bullet',%0A%5D;%0A%0A
const ed
@@ -1705,49 +1705,8 @@
ps);
-%0A // this.state = %7B editorDelta: %7B%7D %7D;
%0A%0A
@@ -2282,70 +2282,8 @@
%7D%0A%0A
- t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.