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 |
|---|---|---|---|---|---|---|---|
df7671daa331d0f9b0ec8098a7b1a6414894e43d | Update HEADER.js | HEADER.js | HEADER.js | /*! Fabric.js Copyright 2008-2014, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "1.4.8" };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;
}
if (typeof document !== 'undefined' && typeof window !== 'undefined') {
fabric.document = document;
fabric.window = window;
... | JavaScript | 0 | @@ -1210,8 +1210,128 @@
dth%22%0A%5D;%0A
+%0A/**%0A * Pixel per Inch as a default value set to 96. Can be changed for more realistic conversion.%0A */%0Afabric.DPI = 96;%0A
|
4f2763ec9febe13202ffb20b6bd42b11040b03b7 | Add try/catch to config.js to conditionally require rsync creds file | tools/gulp/config.js | tools/gulp/config.js | // Define Paths
var src = 'source/'
var srcAssets = 'source/_assets/'
var build = 'build/'
var development = 'build/development/'
var developmentAssets = 'build/assets/'
var production = 'build/production/'
var productionAssets = 'build/production/assets/'
var rsyncCredentials = require('../../rsync-credentials.json')... | JavaScript | 0 | @@ -251,16 +251,157 @@
sets/'%0A%0A
+// Require rsyncCredentials only if the file exists%0Avar fs = require('fs')%0Atry %7B%0A fs.accessSync('../../rsync-credentials.json', fs.F_OK);%0A
var rsyn
@@ -454,16 +454,52 @@
s.json')
+%0A%7D catch (e) %7B%0A // Do not require%0A%7D
%0A%0A// Def
|
88d1d872879ab8f89d3534e4557e85073ee0bffa | change pathline from path file to import | styleguide.config.js | styleguide.config.js | const path = require('path');
const MiniHtmlWebpackPlugin = require('mini-html-webpack-plugin');
const { generateCSSReferences, generateJSReferences } = MiniHtmlWebpackPlugin;
module.exports = {
title: 'React Kawaii',
pagePerSection: true,
sections: [
{
name: 'React Kawaii',
content: 'docs/ReactK... | JavaScript | 0 | @@ -617,16 +617,153 @@
: true,%0A
+ getComponentPathLine: pathname =%3E %7B%0A const %7B name %7D = path.parse(pathname)%0A return %60import %7B $%7Bname%7D %7D from 'react-kawaii'%60%0A %7D,%0A
templa
|
c0aedbf3f7b93ad232da1aee5dadcaeecc3d2512 | Change labels | components/satellite-basemaps/settings/planet-menu/selectors.js | components/satellite-basemaps/settings/planet-menu/selectors.js | import { createStructuredSelector, createSelector } from 'reselect';
import isEmpty from 'lodash/isEmpty';
import { getPlanetBasemaps } from '../../planet-selectors';
const COLOR_OPTIONS = [
{
label: 'Visual',
imageType: 'visual',
value: '',
},
{
label: 'Analytic',
imageType: 'analytic',
... | JavaScript | 0.000001 | @@ -206,14 +206,21 @@
l: '
-Visual
+Natural Color
',%0A
@@ -283,16 +283,25 @@
l: '
-Analytic
+False color (NIR)
',%0A
|
17232da003d6943dd82b823aba3d96a972b24bf6 | Use `assert` in `t/basics/delete.t.js`. | t/basics/delete.t.js | t/basics/delete.t.js | #!/usr/bin/env node
require('./proof')(3, function (Strata, step, tmp, load, objectify, serialize, gather, deepEqual) {
var strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 })
step(function () {
serialize(__dirname + '/fixtures/split.before.json', tmp, step())
}, function () {
... | JavaScript | 0 | @@ -102,25 +102,22 @@
gather,
-deepEqual
+assert
) %7B%0A
@@ -416,33 +416,30 @@
) %7B%0A
-deepEqual
+assert
(records, %5B
@@ -830,25 +830,22 @@
-deepEqual
+assert
(records
@@ -908,17 +908,14 @@
-deepEqual
+assert
(str
|
17da5d5830ded8e4a157be629eecd32e717f9b91 | Test that fixup not callled on error. | t/cadence/fixup.t.js | t/cadence/fixup.t.js | #!/usr/bin/env node
require('proof')(4, function (step, equal, deepEqual) {
var fs = require('fs'), cadence = require('../..');
cadence(function (step) {
echo(1, step(step, function (number) {
echo(- number, step());
}));
}, function (items) {
deepEqual(items, -1, 'fixup cadence');
})(st... | JavaScript | 0.000006 | @@ -35,9 +35,9 @@
f')(
-4
+6
, fu
@@ -146,32 +146,693 @@
ction (step) %7B%0A%0A
+ step(function () %7B%0A (function (callback) %7B%0A callback(null, 1);%0A %7D)(step(step, function (number) %7B%0A return number + 1;%0A %7D));%0A %7D, function (value) %7B%0A equal(value, 2, 'fi... |
88a4f3e64aa0fa5634f8f6555957996f51621740 | Include preferred term in expand-grouped | controllers/expand_grouped.js | controllers/expand_grouped.js |
var config = require('../config/config.js');
var neo4j = require('neo4j');
var _ = require("lodash");
var db = new neo4j.GraphDatabase({
url: 'http://localhost:7474',
auth: config.neo4j
***REMOVED***);
const elastic = require('elasticsearch');
const elasticClient = new elastic.Client({
"host": [
{
... | JavaScript | 0 | @@ -480,16 +480,24 @@
%5B%22str%22,
+ %22pref%22,
%22lang%22,
@@ -1269,28 +1269,86 @@
(hits.length
+ %3E 0
) %7B%0A
+ var pref = hits%5B0%5D._source.pref;%0A
@@ -1390,16 +1390,17 @@
.types;%0A
+%0A
@@ -1441,16 +1441,22 @@
%5Btypes,
+ pref,
hits.ma
@@ -1597,16 +1597... |
345a7987327d2b1bb8603d300427d4fcdc9241af | add solution | Algorithms/JS/arrays/findAllDuplicates.js | Algorithms/JS/arrays/findAllDuplicates.js | // Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
// Find all the elements that appear twice in this array.
// Could you do it without extra space and in O(n) runtime?
// Example:
// Input:
// [4,3,2,7,8,2,3,1]
// Output:
// [2,3]
/**
* @param {num... | JavaScript | 0.000003 | @@ -353,8 +353,300 @@
%7D%0A */%0A%0A%0A
+var findDuplicates = function(nums) %7B%0A var result = %5B%5D;%0A for (var i = 0; i %3C nums.length; ++i) %7B%0A var index = Math.abs(nums%5Bi%5D)-1;%0A if (nums%5Bindex%5D %3C 0)%7B%0A result.push(Math.abs(index+1));%0A %7D%0A num... |
57246921892a9ed33972bb6f0a316c168de65aa2 | add steps | Algorithms/JS/strings/lengthOfLastWord.js | Algorithms/JS/strings/lengthOfLastWord.js | // Length of Last Word
// Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
// If the last word does not exist, return 0.
// Note: A word is defined as a character sequence consists of non-space characters only.
// For example,
// G... | JavaScript | 0.000566 | @@ -447,16 +447,83 @@
------%0A%0A
+// subtract all characters from the last index of an empty string%0A%0A
var leng
|
e2591d2a5ce633b29847131700f81cde5b6a0623 | tweak API testing code | spec/generative.js | spec/generative.js | 'use strict';
var Generative = module.exports = {};
Generative.random = function(min, max) {
return min + Math.random() * (max - min);
};
Generative.randomInt = function(min, max) {
return min + Math.floor(Math.random() * (max - min));
};
Generative.oneOf = function(list) {
return list[Generative.randomInt(0... | JavaScript | 0.000001 | @@ -2005,22 +2005,108 @@
ion%5Bj%5D,
-result
+%7B%0A state : result.state,%0A output: result.output,%0A thrown: result.thrown%0A %7D
));%0A %7D%0A
@@ -2764,30 +2764,38 @@
%7B%0A var i,
-result
+output, thrown
;%0A%0A system.
@@ -2798,22 +2798,18 @@
tem.
-initiali
+re
se
+t
();%0A
+%0A
... |
12c4e155f9a97e784eee7d734d5ab9a97ee2d4a1 | Fix tests | spec/index.spec.js | spec/index.spec.js | /* eslint-env jasmine */
var path = require('path');
var fs = require('fs');
var cheerio = require('cheerio');
var webpack = require('webpack');
var rm_rf = require('rimraf');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var HtmlWebpackInlineSou... | JavaScript | 0.000003 | @@ -1387,37 +1387,35 @@
%5D').html()).toBe
-Null(
+(''
);%0A done(
|
35d45f7493a30dc99b36c374721f1f95853903a7 | Fix Git Bash and make update/uninstall work on Windows (#2322) | download/src/index.js | download/src/index.js | /* eslint-disable unicorn/no-process-exit */
import fs from 'fs';
import path from 'path';
import { spawnSync } from 'child_process';
import zlib from 'zlib';
import onDeath from 'death';
import fetch from 'node-fetch';
import retry from 'async-retry';
import which from 'which-promise';
import readPkg from 'read-pkg';... | JavaScript | 0 | @@ -3311,40 +3311,20 @@
ile(
-content) %7B%0A const initContent =
+) %7B%0A return
(%0A
@@ -3532,583 +3532,89 @@
'%5Cn'
-%0A );%0A%0A // Older files could contain this multiple times%0A // since it just got appended every time%0A if (content.split(initContent).length %3E 2) %7B%0A const defaultContent = c... |
cd85ef3ba03744d80bdacfa8d0499b73dbc2ee42 | Fix radius | paint.js | paint.js | function GetContext() {
return document.getElementById("canvas").getContext("2d");
}
var radiusSupported = false;
var nextCount = 0;
var touchMap = {};
var pointMode = (window.location.hash == "#points");
var enableForce = false;
document.addEventListener('keyup', function(e) {
switch(e.which) {
// ESC
... | JavaScript | 0.000003 | @@ -1423,16 +1423,17 @@
if (!
+(
'radiusX
@@ -1434,32 +1434,33 @@
adiusX' in touch
+)
&& 'webkitRadiu
@@ -1525,16 +1525,17 @@
if (!
+(
'force'
@@ -1542,16 +1542,17 @@
in touch
+)
&& 'web
|
2642cdddcd3e7bdda05d9c721b7fa356f47f6434 | remove unused code for #5 | parse.js | parse.js | var tokenize = require('./tokenize')
var fs = require('fs')
var path = require('path')
var protos_root_dir = null
var onfieldoptions = function(tokens) {
var opts = {}
while (tokens.length) {
switch(tokens[0]) {
case '[':
case ',':
tokens.shift()
var name = tokens.shift()
... | JavaScript | 0.000008 | @@ -33,96 +33,8 @@
ze')
-%0Avar fs = require('fs')%0Avar path = require('path')%0A%0Avar protos_root_dir = null
%0A%0Ava
@@ -4920,258 +4920,8 @@
%0A%7D%0A%0A
-var read = function(file, options) %7B%0A if (!options) options = %7B%7D%0A if (options.root_dir) %7B%0A protos_root_dir = options.root_dir%0A ... |
085bae3049baef883d05a95f3ef28e63d9c09539 | Update test for store.deleteKernel | spec/store-spec.js | spec/store-spec.js | "use babel";
import { CompositeDisposable } from "atom";
import { isObservableMap, isObservable, isComputed } from "mobx";
import store from "./../lib/store";
describe("Store initialize", () => {
it("should correctly initialize store", () => {
expect(store.subscriptions instanceof CompositeDisposable).toBeTruth... | JavaScript | 0 | @@ -4455,21 +4455,19 @@
Kernel(%22
-lang1
+foo
%22);%0A
|
cc061610feadc877c9477346f6c5211c6f3eac1f | Simplify section hook parameter convention | paths.js | paths.js | 'use strict';
var _ = require('lodash');
var removeMd = require('remove-markdown');
var themeFunctions = require('theme').functions || {};
var MdHelper = require('./elements/MdHelper');
var itemHooks = require('./itemHooks');
var config = require('config');
var siteFunctions = config.functions || {} ;
function allIt... | JavaScript | 0 | @@ -2114,35 +2114,9 @@
ion(
-file, fileName, sectionName
+o
) %7B%0A
@@ -2124,24 +2124,26 @@
return
+o.
file.date %7C%7C
@@ -2182,35 +2182,9 @@
ion(
-file, fileName, sectionName
+o
) %7B%0A
@@ -2212,16 +2212,18 @@
.render(
+o.
file.__c
@@ -2264,38 +2264,38 @@
ion(
-file, fileName, sectionName) %7B
+o) %7... |
fffe79ce4a8958cb39c9373d39c3f03ccbd2fbd0 | fix deep file finding | pjson.js | pjson.js | var fs = require('fs');
var root = __dirname.split('node_modules')[0];
var contents = fs.readFileSync(root + 'package.json');
var pjson = {};
if (contents) {
pjson = JSON.parse(contents);
}
module.exports = pjson;
| JavaScript | 0.00001 | @@ -42,13 +42,15 @@
ame.
-split
+replace
('no
@@ -63,13 +63,21 @@
ules
-')%5B0%5D
+/pjson/', '')
;%0Ava
|
c3dd4c38067066bf6289ccd18519d3f73f6fff06 | Update addResourceCtrl.js | frontend/app/controllers/addResourceCtrl.js | frontend/app/controllers/addResourceCtrl.js | define(['./module'], function (controllers) {
'use strict';
controllers.controller('addResourceCtrl',['$scope', '$rootScope', '$http', '$routeParams', function ($scope, $rootScope, $http, $routeParams) {
$rootScope.$broadcast('Update', '_full');
$scope.sendResource = function(Alias, Content, Title) {
if (... | JavaScript | 0.000002 | @@ -302,16 +302,28 @@
t, Title
+, IsResource
) %7B%0A%09%09%09i
@@ -365,16 +365,36 @@
Title ==
+ '' %7C%7C IsResource ==
'') %7B%0A
@@ -536,17 +536,16 @@
p.post('
-/
api/addR
@@ -600,16 +600,40 @@
e: Title
+, IsResource: IsResource
%7D).succe
@@ -869,9 +869,10 @@
%5D);%0A
-
%09%09%7D);
+%0A
|
95499e706ab8062508859c7414a84cf3a80a868e | Update dataType.js | generators/add/templates/schema/dataType.js | generators/add/templates/schema/dataType.js | 'use strict';
import {
GraphQLObjectType,
GraphQLString
} from 'graphql';
import {globalIdField} from 'graphql-relay';
import fields from 'schemas/fields';
const {nodeInterface} = fields;
export default new GraphQLObjectType({
name: '<%= name %>',
description: 'This is the type of the <%= name %>.',
inter... | JavaScript | 0.000001 | @@ -351,15 +351,8 @@
ds:
-() =%3E (
%7B%0A
@@ -493,14 +493,13 @@
%7D%0A %7D
-)
%0A%7D);%0A
|
7efd9238e211c94a2fc93fda0b05f68d3660082f | Update test template | generators/app/templates/test/index-test.js | generators/app/templates/test/index-test.js | import test from 'ava';
import { Request } from 'alexa-lambda-skill';
import <%= className %> from '..';
test('LaunchRequest', t => {
const event = Request.launchRequest().build();
return t.same(<%= className %>(event), {
version: '1.0',
response: {
shouldEndSession: true,
outputSpeech: { type... | JavaScript | 0 | @@ -74,34 +74,129 @@
ort
-%3C%25= className %25%3E from '..'
+%7B handler %7D from '..';%0A%0A// AWS Lambda requires a CommonJS export named 'handler'%0Aconst %3C%25= className %25%3E = handler.default
;%0A%0At
@@ -274,39 +274,32 @@
ld();%0A%0A return
-t.same(
%3C%25= className %25%3E
@@ -297,36 +297,77 @@
ssNa... |
3574a2837a8575a00babaf32fe0d8256360b697e | Correct .google-map .data('map') attribute to point to GMap instance | gmapsfield/static/admin/gmapsfield/admin.js | gmapsfield/static/admin/gmapsfield/admin.js | (function(window, document) {
var jQ = window.jQuery || (window.django && window.django.jQuery);
jQ(function($) {
// Construct useful closure per map instance
$(".google-map[type=text]").live("initialize-map", function(evt, data) {
var map, data,
orig = $(th... | JavaScript | 0.000022 | @@ -4146,24 +4146,28 @@
date);%0A%09
+
$(clone).dat
@@ -4175,16 +4175,17 @@
('map',
+g
map);%0A
@@ -4231,33 +4231,8 @@
r);%0A
-%09 console.log(clone);%0A
|
68d8caaeeab4c14ce93d903ecc99aa38684fe9c3 | Fix lint (#773) | modules/core/src/io/browser-load.js | modules/core/src/io/browser-load.js | import {requestFile} from './browser-request-file';
let pathPrefix = '';
/*
* Set a relative path prefix
*/
export function setPathPrefix(prefix) {
pathPrefix = prefix;
}
export function loadFile(url, opts) {
if (typeof url !== 'string' && !opts) {
// TODO - warn for deprecated mode
opts = url;
url... | JavaScript | 0 | @@ -426,16 +426,56 @@
al Image
+, Blob, URL, createImageBitmap, location
*/%0A%0A/*%0A
|
970e55b6b4ca7839917e3dc870c29725438ec18c | Tidy utils code | infrastructure/static/js/utils.js | infrastructure/static/js/utils.js | var mm = mm || {};
mm.utils = mm.utils || {
formatUnits: function(number) {
if (number >= 10**9) {
return "billion";
} else if (number >= 10**6) {
return "million";
}
return "";
},
formatHuman: function(number) {
if (number >= 10**9) {
... | JavaScript | 0.000001 | @@ -620,17 +620,24 @@
alse) %7B%0A
-%09
+
if (isFo
@@ -641,20 +641,28 @@
sFormat)
+
%7B%0A%09
+
var amou
@@ -709,24 +709,32 @@
mber), 2);%0A%09
+
return amoun
@@ -739,22 +739,32 @@
unt;
- %0A%09%7D
+%0A%09 %7D
else
+
%7B%0A%09
+
retu
@@ -804,13 +804,14 @@
g();
+%0A%09... |
613f4194ffd8ebdef1dc637dcc55fea61d910e4f | Fix style issues | nodejs/production_code/Gruntfile.js | nodejs/production_code/Gruntfile.js | "use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
clean: ["node_modules", "target"],
nodeunit: {
all: ["tests/**/*Test.js"]
},
eslint: {
lib: {
src: ["lib/**/*.js"]
},
test: {
src: ["tests/**/*.js"]
},
... | JavaScript | 0 | @@ -1369,10 +1369,9 @@
my
-_t
+T
arge
@@ -1394,33 +1394,33 @@
es: %7B%0A
-'
+%22
target/dest.min.
@@ -1425,21 +1425,21 @@
n.js
-': %5B'
+%22: %5B%22
lib/*.js
'%5D%0A
@@ -1434,17 +1434,17 @@
lib/*.js
-'
+%22
%5D%0A
@@ -1466,16 +1466,17 @@
%7D,%0A
+%22
concat_s
@@ -1483,16 +1483,17 @@
... |
fba4a055e7d2878a1a110232c621d3065a6b6b5e | remove new line | packages/node_modules/@webex/plugin-meetings/src/index.js | packages/node_modules/@webex/plugin-meetings/src/index.js | /* eslint-env browser */
import {registerPlugin} from '@webex/webex-core';
import Meetings from './meetings';
import config from './config';
registerPlugin('meetings', Meetings, {
config
});
export default Meetings;
// eslint-disable-next-line object-curly-spacing
export * as CONSTANTS from './constants';
| JavaScript | 0.000003 | @@ -136,17 +136,16 @@
nfig';%0A%0A
-%0A
register
|
90178af87f8df70d836ff06c81ea42bdc686f18b | fix the bug that storage module will init many times (#1360) (#1363) | packages/ringcentral-integration/modules/Storage/index.js | packages/ringcentral-integration/modules/Storage/index.js | import { Module } from '../../lib/di';
import StorageBase from '../../lib/StorageBase';
import loginStatus from '../Auth/loginStatus';
import moduleStatuses from '../../enums/moduleStatuses';
const DEFAULT_DISABLE_ALLOW_INACTIVE_TABS_WRITE = false;
/**
* @class
* @description Alternative implementation of the Stora... | JavaScript | 0 | @@ -1478,19 +1478,20 @@
-!
this.
-ready
+pending
%0A
@@ -1489,32 +1489,113 @@
nding%0A ) %7B%0A
+ this.store.dispatch(%7B%0A type: this.actionTypes.init,%0A %7D);%0A
const st
|
be5da0c87188482861d5e379e2519eed8f284935 | Fix import | packages/strapi-admin/admin/src/containers/Admin/index.js | packages/strapi-admin/admin/src/containers/Admin/index.js | /**
*
* Admin
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import axios from 'axios';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { bindActionCreators, compose } from 'redux';
import { Switch, Route } from 'react-router-dom';
import { in... | JavaScript | 0 | @@ -712,54 +712,8 @@
x';%0A
-import Logout from '../../components/Logout';%0A
impo
@@ -1228,24 +1228,55 @@
ofilePage';%0A
+import Logout from './Logout';%0A
import %7B%0A d
|
54374b61dc29a03c654c4acd8d4fdcea3b83f047 | fix allowed values for radiogroup | packages/vulcan-core/lib/modules/decorators/radiogroup.js | packages/vulcan-core/lib/modules/decorators/radiogroup.js | export const makeRadiogroup = (field = {}) => {
if (!field.options) {
throw new Error(`Radiogroup fields need an 'options' property`);
}
const rgField = {
...field,
input: 'radiogroup',
allowedValues: field.options.map(({ value }) => value),
};
return rgField;
};
| JavaScript | 0 | @@ -173,16 +173,33 @@
.field,%0A
+ type: Array,%0A
inpu
@@ -217,17 +217,65 @@
oup',%0A
-
+%7D;%0A%0A rgField.arrayItem = %7B ...rgField.arrayItem,
allowed
@@ -321,19 +321,16 @@
%3E value)
-,%0A
%7D;%0A%0A r
|
80902ce31f17ef1c7a6e3bfa89265e3d46a2f474 | Add test to ensure each property value is a string | jasmine/spec/invertedIndexTest.js | jasmine/spec/invertedIndexTest.js | describe('Inverted Index Tests: ', function() {
var index = new Index();
var filter = new Filter();
var results;
beforeEach(function(done) {
index.createIndex('books.json', index.populateIndex).done(function(data) {
results = data;
// Invoke jasmine's done callback
done();
});
});... | JavaScript | 0.000054 | @@ -537,32 +537,381 @@
qual(2);%0A %7D);
+%0A%0A it('Ensures each object property contains a string value', function() %7B%0A for (var i = 0, len = results.length; i %3C len; i++) %7B%0A // Iterate over the properties of each object%0A for(key in results%5Bi%5D) %7B%0A // Ensure the v... |
88fedf73a6b2d708ee19be2dcf57c41d7f675239 | Fix setItemState too | items/DimmerItem.js | items/DimmerItem.js | "use strict";
var request = require("request");
var DimmerItem = function(widget,platform,homebridge) {
this.platform = platform;
this.uuidAction = widget.uuidAction; //to control a dimmer, use the uuidAction
this.stateUuid = widget.states.position; //a dimmer always has a state called position, which is... | JavaScript | 0.000001 | @@ -3055,16 +3055,61 @@
and 100%0A
+ if (this.platform.ws.is_connected()) %7B%0A
this
@@ -3156,24 +3156,30 @@
, command);%0A
+ %7D%0A
callback
|
dee7978f335fc7d81cf9f6654ed1b323a7621e25 | Update mainConfig.js | src/app/config/mainConfig.js | src/app/config/mainConfig.js | app.constant("FIREBASE_URL", "https://brilliant-fire-7355.firebaseio.com/");
app.constant("AUTHENTICATION", {
enabled : false,
loginProvider: 'google',
options: {
preferRedirect: true,
rememberMe: true,
scope: 'https://www.googleapis.com/auth/plus.login'
}
});
app.constant("WHI... | JavaScript | 0.000001 | @@ -26,53 +26,25 @@
L%22,
-%22https://brilliant-fire-7355.firebaseio.com/%22
+YOUR_DATABASE_URL
);%0A%0A
@@ -325,12 +325,13 @@
Width: 5%0A%7D);
+%0A
|
e8a253496a86fbfb1bc9a8cba558987900228767 | change comment/share | ivereadthat/read.js | ivereadthat/read.js | MutationObserver = window.MutationObserver || window.WebKitMutationObserver
var observer = new MutationObserver(function(mutations, observer) {
jQuery(".UFILikeLink").each(function() {
if($(this).text() == "Like" || $(this).text() == "讚") {
$(this).text("朕知道了")
}
else if($(this).... | JavaScript | 0 | @@ -416,16 +416,381 @@
%7D%0A %7D)
+;%0A%0A jQuery(%22.uiLinkButtonInput%22).each(function() %7B%0A if ($(this).attr(%22value%22) == %22Comment%22 %7C%7C $(this).text(%22value%22) == %22%E7%95%99%E8%A8%80%22) %7B%0A $(this).attr(%22value%22, %22%E5%8D%BF%E5%AE%B6%E5%8F%AF%E7%9F%A5%EF%BC%9F%22)%... |
2e24ef3290cb082cb26339679da63404fe5e3cd0 | use instruction counting for test | tests.js | tests.js | module('legind.tests').requires('legind.instrumentation','lively.TestFramework').toRun(function() {
TestCase.subclass('legind.tests.CTests',
'running', {
setUp: function() {
this.constant = new legind.instrumentation.CConstant(0);
this.linear = new legind.instrumentation.CLinear(0);
this.qu... | JavaScript | 0.000059 | @@ -3629,16 +3629,20 @@
rofiler(
+true
);%0A %7D
|
6ad39df5f59ce5088af200651e950a285c5f5c3f | Make sure only one game over event is handled | javascripts/game.js | javascripts/game.js | function Game() {
this.canvas = document.getElementById('game');
this.nextTileColor = Colors.random();
this.hud = new Hud(this.nextTileColor);
this.grid = new Grid(this.nextTileColor);
this.playing = true;
EventHandler.subscribe('gameOver', new Subscriber(this, this.gameOver.bind(this)));
EventHandler.sub... | JavaScript | 0 | @@ -1193,24 +1193,48 @@
unction() %7B%0A
+ if (this.playing) %7B%0A
this.playi
@@ -1245,16 +1245,18 @@
false;%0A
+
var p
@@ -1286,16 +1286,18 @@
t('p');%0A
+
p.inne
@@ -1318,16 +1318,18 @@
Over!';%0A
+
this.c
@@ -1350,9 +1350,13 @@
ild(p);%0A
+ %7D%0A
%7D
|
a9187b7c9937b641acde8784f23455c1b9539ec5 | return mounted component (#132) | platform/nativescript/runtime/index.js | platform/nativescript/runtime/index.js | import { start } from 'tns-core-modules/application'
import { warn } from 'core/util/index'
import { patch } from './patch'
import { mountComponent } from 'core/instance/lifecycle'
import { compileToFunctions } from '../compiler/index'
import { registerElement } from '../element-registry'
import { isPage } from '../uti... | JavaScript | 0 | @@ -1827,24 +1827,31 @@
else %7B%0A
+return
mountCompone
|
8e352582974b7c826c4bc05af75dc766a0e1de50 | Change window title | javascripts/main.js | javascripts/main.js | console.log('This would be the main JS file.');
| JavaScript | 0.000001 | @@ -41,8 +41,39 @@
ile.');%0A
+document.title = %22Idrees Khan%22%0A
|
4227a56fe23fdd3c43128c4e86df4e532cd24993 | Increase nightmare action timeout on CI for e2e tests | __tests__/end-to-end/e2e-constants.js | __tests__/end-to-end/e2e-constants.js | export const ENTER_UNICODE = '\u000d';
export const SIMPLE_TEST_TIMEOUT = 10 * 1000;
const NIGHTMARE_ACTION_TIMEOUT = (process.env.CIRCLECI ? 4 : 2) * 1000;
export const NIGHTMARE_CONFIG = {
waitTimeout: NIGHTMARE_ACTION_TIMEOUT,
gotoTimeout: NIGHTMARE_ACTION_TIMEOUT,
loadTimeout: NIGHTMARE_ACTION_TIMEOUT,
exec... | JavaScript | 0 | @@ -139,9 +139,9 @@
I ?
-4
+6
: 2
|
116f958ebe46b829e94fdf02e8d45d0ad51ea37c | Add response object value retrieval | plugins/jspsych-survey-multi-choice.js | plugins/jspsych-survey-multi-choice.js | /**
* jspsych-survey-multi-choice
* a jspsych plugin for multiple choice survey questions
*
* Shane Martin
*
* documentation: docs.jspsych.org
*
*/
(function($) {
jsPsych['survey-multi-choice'] = (function() {
var plugin = {};
plugin.create = function(params) {
//params = jsPsych.pluginAPI.e... | JavaScript | 0.000005 | @@ -2978,19 +2978,16 @@
onse', i
-, j
);%0A
@@ -3059,17 +3059,16 @@
%22 name=%22
-#
' + inpu
@@ -3639,21 +3639,24 @@
ame + %22-
-rad
+quest
io
+n
%22).each(
@@ -3739,22 +3739,16 @@
).find(%22
-label
input:ra
@@ -3750,16 +3750,24 @@
ut:radio
+:checked
%22).val()
|
7a3ad5a17a670c023565098892ab29db02c63c0e | Add mouseup and mousedown to mosue event fix | src/bom/event/MouseEvents.js | src/bom/event/MouseEvents.js | (function(global, lowland, core) {
var bound = false;
var doc = global.document;
var body = doc.body;
var synthesizer = function(e) {
var eventDoc = e.target.ownerDocument || document;
var doc = eventDoc.documentElement;
var body = eventDoc.body;
if (e.pageX == null || e.pageY == null) {... | JavaScript | 0 | @@ -1323,16 +1323,172 @@
vents);%0A
+ lowland.bom.Events.registerHook(%22mousedown%22, lowland.bom.event.MouseEvents);%0A lowland.bom.Events.registerHook(%22mouseup%22, lowland.bom.event.MouseEvents);%0A
%7D)(this,
|
c07b2fbb478110b91aa01497511054b082b24aee | remove console log | server/authRoutes/register/handlers/handlePostRegister.js | server/authRoutes/register/handlers/handlePostRegister.js | const User = require('../../../models/user.js')
const handlePostRegister = (req, res) => {
const { email, password } = req.body
console.log(req.body)
const account = new User({ email })
User.register(account, password, err => {
if (err) {
return res.json({ success: false, msg: 'Username already exi... | JavaScript | 0.000003 | @@ -127,32 +127,8 @@
body
-%0A console.log(req.body)
%0A%0A
|
e19a5b5f6c65ee127ab630d23f9de7fee7cf8969 | Change should to contains | cypress/integration/category-page.js | cypress/integration/category-page.js | describe('Category page', () => {
it('verification of filters in the Women category', () => {
cy.visit('/')
cy.setCookie('shop/claims/onboardingAccepted', 'test')
indexedDB.deleteDatabase('shop')
cy.clearLocalStorage()
cy.get('[data-testid=menuButton]').click()
cy.get('[data-testid=categoryBut... | JavaScript | 0.000811 | @@ -788,34 +788,25 @@
click().
-should('
contain
-',
+s(
'S')%0A
@@ -937,34 +937,25 @@
click().
-should('
contain
-',
+s(
'XL')%0A
@@ -1241,26 +1241,17 @@
%5D').
-should('
contain
-',
+s(
'No
|
798d10b9ae22c095d8d446832166c46920f46acb | fix search | src/client/products/store.js | src/client/products/store.js | import {searchForQuery} from '../search/actions';
import {onProductsResponse, onServerProducts} from './actions';
import {register} from '../dispatcher';
import {state, productsCursor} from '../state';
import axios from 'axios';
import {Record} from 'immutable';
// Isomorphic store has to be state-less.
const Product ... | JavaScript | 0.000014 | @@ -449,24 +449,31 @@
ts =%3E %7B%0A
+return
products.wit
@@ -483,24 +483,20 @@
tations(
-products
+list
=%3E %7B%0A
@@ -503,18 +503,12 @@
-//products
+list
.cle
@@ -575,63 +575,12 @@
-console.log('pushing', serverProduct);%0A products
+list
.pus
@@ -864,16 +864,8 @@
%7D)
-.toMap()
... |
04e3704e9e107e6e9fffffecf01722aed85e7cb2 | Fix typo | src/common/RESOURCE_TYPES.js | src/common/RESOURCE_TYPES.js | import indexById from 'common/indexById';
const RESOURCE_TYPES = {
MANA: { // Paladin, Priest, Shaman, Mage, Warlock, Monk, Druid
id: 0,
name: 'Mana',
icon: 'inv_elemental_mote_mana',
url: 'mana',
},
RAGE: { // Warrior, Druid
id: 1,
name: 'Rage',
icon: 'spell_misc_emotionangry',
u... | JavaScript | 0.999999 | @@ -731,18 +731,18 @@
%7B // Dea
-h
t
+h
Knight%0A
|
5d94e222f3e16d394362e17774025b583860977a | Modify sub title | web/localizations.js | web/localizations.js | String.toLocaleString({
"en": {
"%sub-title": "search the actress that the girl is similar to",
"%upload-description": "please upload beauty girl image",
"%error": "not found, please upload another image",
"%buy": "SHOPPING",
"%similarity": "similarity",
"%like": "LIKE",
"%unlike": "UNLIKE"
},
"zh": {
... | JavaScript | 0.000498 | @@ -66,12 +66,11 @@
ess
-that
+who
the
|
d965c703747d215fca972820178f254098ae3d24 | add user timings to retro channel join | web/static/js/app.js | web/static/js/app.js | /* eslint-disable react/jsx-filename-extension, global-require */
// IE 11 support
import "core-js/features/set"
import "core-js/features/map"
import "core-js/features/symbol"
import "core-js/features/array"
import React from "react"
import { render } from "react-dom"
import { bindActionCreators } from "redux"
import... | JavaScript | 0.000591 | @@ -1110,16 +1110,68 @@
tionz)%0A%0A
+ console.time('retroChannelJoin -%3E recieved %22ok%22')%0A
retroC
@@ -1284,46 +1284,169 @@
-actionz.setInitialState(initialState)%0A
+console.timeEnd('retroChannelJoin -%3E recieved %22ok%22')%0A actionz.setInitialState(initialState)%0A%0A console.time('joined... |
98be654f4d4cda66bd48ca7f29e62b4beff96c68 | rollback default browser list | web/ui/karma.conf.js | web/ui/karma.conf.js | /* global module: true */
// Karma configuration
// Generated on Thu Jan 22 2015 09:23:45 GMT-0600 (CST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https:... | JavaScript | 0.000001 | @@ -1966,16 +1966,26 @@
sandbox'
+, 'Chrome'
%5D,%0A%0A%0A
|
3dd6100758eb99388d3735e629025ea11a7fbf68 | fix props and import location of AnnualLeave | src/components/Calculator.js | src/components/Calculator.js | import React, { Component } from 'react'
// Material UI components
import {
Table,
TableHeader,
TableHeaderColumn,
TableBody,
TableRow
} from 'material-ui/Table'
// Child components
import Header from './Header'
// Salary and Costs
import Salary from './rows/input/Salary'
import Kiwisaver from './row... | JavaScript | 0 | @@ -717,16 +717,22 @@
'./rows/
+input/
AnnualLe
@@ -3710,24 +3710,83 @@
%3CAnnualLeave
+%0A handleChange=%7Bthis.handleChange%7D%0A
/%3E%0A
|
e2e49ea78c6d676160554c6b1e4a20a185f45d07 | Update to use debounce util. | src/EventStream.js | src/EventStream.js | import UniqueList from './util/UniqueList';
import {id, identity, truthy} from 'vega-util';
var STREAM_ID = 0;
/**
* Models an event stream.
* @constructor
* @param {function(Object, number): boolean} [filter] - Filter predicate.
* Events pass through when truthy, events are suppressed when falsy.
* @param {fu... | JavaScript | 0 | @@ -45,16 +45,26 @@
import %7B
+debounce,
id, iden
@@ -2548,59 +2548,87 @@
am()
-, evt = null, tid = null;%0A%0A function callback(
+;%0A%0A this.targets().add(stream(null, null,%0A debounce(delay, function(e
) %7B%0A
+
@@ -2637,18 +2637,16 @@
r df = e
-vt
.dataflo
@@ -2648,16 +2648,18 @@
taflow;%0... |
474d7bacd431402db6e0d8d9a3ce576b0f2fc4c8 | Improve cleanup on abort | src/EventStream.js | src/EventStream.js | /* eslint max-depth: 0 */
import http from 'http';
import https from 'https';
import url from 'url';
import { EventEmitter } from 'events';
class EventStream extends EventEmitter {
constructor(uri, token, options) {
super();
this.uri = uri;
this.token = token;
this.reconnectInterval = 2000;
Object.assign(th... | JavaScript | 0.000001 | @@ -898,30 +898,8 @@
);%0A%0A
-%09%09%09if (this.debug) %7B%0A%09
%09%09%09t
@@ -912,25 +912,28 @@
q = req;%0A%09%09%09
-%09
+if (
this.debug(t
@@ -930,23 +930,19 @@
is.debug
-(this);
+) %7B
%0A%09%09%09%09thi
@@ -947,18 +947,19 @@
his.
-req = null
+debug(this)
;%0A%09%09
@@ -1637,24 +1637,52 @@
n, body %7D);%... |
159ef74edbaee56ccc33ccd34d7185b573ae3e9a | Fix off-by-one errors with _.random | tools.js | tools.js | "use strict";
// A collection of the 6 different tools in Randomize. Each tool collects the
// appropriate input settings and returns a data object of its results, which
// will later be passed into View.display().
var Tools = {
// Picks a random number from 1 to 6
die: function () {
return {
mode: "die... | JavaScript | 0.999999 | @@ -346,9 +346,9 @@
(1,
-7
+6
)%0A
@@ -1141,12 +1141,8 @@
imum
- + 1
),%0A
|
8b0419956b242b2f0458f2ab6ebaedd2d2d11bf4 | Check seeker menu item | src/components/SeekerMenu.js | src/components/SeekerMenu.js | import React, { PropTypes } from 'react';
import List from 'react-list-select';
import _ from 'lodash';
import { Panel, Button, Row, Col } from 'react-bootstrap';
import '../styles/react-list-select.scss';
export default class SeekerMenu extends React.Component {
static propTypes = {
label: PropTypes.string.is... | JavaScript | 0 | @@ -682,24 +682,66 @@
extProps) %7B%0A
+ if (nextProps.list !== undefined) %7B%0A
this.set
@@ -744,24 +744,26 @@
.setState(%7B%0A
+
list:
@@ -802,28 +802,36 @@
abled),%0A
+
%7D);%0A
+ %7D%0A
%7D%0A%0A rende
|
7645386f55e83c66f03419741395eee947150686 | change sortable js group name | popup.js | popup.js | /**
* popup.js
* (c) Ben Pruitt, 2017 [MIT License, see LICENSE]
*
* js logic for the settings dialog for digikey-clip
*
*/
// Create an HTML list from `list_arr` inside of the ul element with id
// `ul_el_id`
// note that the innerHTML and data-id attributes of the list items will both
// be the respective valu... | JavaScript | 0.000001 | @@ -1662,33 +1662,28 @@
group: %22
-localStorage-test
+digikey-clip
%22,%0A
@@ -1745,25 +1745,20 @@
p: %22
-localStorage-test
+digikey-clip
%22,%0A
|
4e1bb349bc5cd20438f7d7122b0d7dfb82f17569 | clean up nav | src/components/nav/navbar.js | src/components/nav/navbar.js | import React, { Component } from 'react';
import { logout, firebase } from '../../backend';
import { history } from '../../history';
import { Link } from '../router';
import Logo from './logo';
class Navigation extends Component {
constructor(props) {
super(props);
this.handleLogout = this.handleLogout.bin... | JavaScript | 0.000001 | @@ -90,50 +90,8 @@
d';%0A
-import %7B history %7D from '../../history';%0A%0A
impo
@@ -472,24 +472,16 @@
en(() =%3E
- %7B%0A
this.se
@@ -506,45 +506,8 @@
l %7D)
-;%0A history.push('/login');%0A %7D
);%0A
|
007d247a719af3e9149a915a33034742efb98c0c | Move setState logic on new tweet to component method | src/components/stream-app.js | src/components/stream-app.js | 'use strict';
var React = require('react');
var io = require('socket.io-client');
var TwitterStreamList = require('./stream-list');
var TwitterStreamApp = React.createClass({
getInitialState: function() {
return {
tweets: []
};
},
componentDidMount: function() {
var so... | JavaScript | 0.000001 | @@ -271,25 +271,23 @@
-componentDidMount
+onTweetReceived
: fu
@@ -285,32 +285,37 @@
eived: function(
+tweet
) %7B%0A var
@@ -318,32 +318,52 @@
var
-sock
+twe
et
+s
=
-io
+this.state.tweets.slice
();%0A
-%0A
sock
@@ -362,132 +362,208 @@
-socket.on('tweet', function(tweet) %7B%0A... |
ecf8c5e8a54a63530dec3565a9088496563dd2f3 | clear search results on search term change | src/containers/SearchForm.js | src/containers/SearchForm.js | import React, { Component } from 'react';
import SearchResults from '../components/SearchResults';
import './SearchForm.css'
const filterResults = (searchResults) => {
let filteredResults = [];
searchResults.forEach(sub => {
if (sub.data.subscribers > 1) {
filteredResults.push(sub.data);
}
});
... | JavaScript | 0 | @@ -584,24 +584,31 @@
s.setState(%7B
+%0A
searchTerm:
@@ -625,16 +625,46 @@
et.value
+,%0A searchResults: %5B%5D%0A
%7D);%0A %7D%0A
|
05cbd2464be43d21d394303e5166c7e69745b115 | put without model | src/controller/Controller.js | src/controller/Controller.js | /**
* Developer: Vladislav Smirnov
* Date: 10.9.2017
* Copyright: 2009-2017 Comindware®
* All Rights Reserved
* Published under the MIT license
*/
import CTEventsService from '../services/CTEventsService';
import WebSocketService from '../services/WebSocketService';
import ToastNotificationServic... | JavaScript | 0.000002 | @@ -7225,32 +7225,53 @@
+ requestData.model &&
requestData.mod
|
91bb0517fc0628ce5244d6772bb1b16c62641032 | Add glob based clean | src/Rules/Clean.js | src/Rules/Clean.js | /* @flow */
import micromatch from 'micromatch'
import File from '../File'
import Rule from '../Rule'
import type { Command } from '../types'
export default class Clean extends Rule {
static commands: Set<Command> = new Set(['clean'])
static alwaysEvaluate: boolean = true
static description: string = 'Clean u... | JavaScript | 0.000001 | @@ -6,16 +6,72 @@
low */%0A%0A
+import _ from 'lodash'%0Aimport fastGlob from 'fast-glob'%0A
import m
@@ -476,150 +476,467 @@
nst
-cleanPatterns: Array%3CFunction%3E = this.options.cleanPatterns.map(pattern =%3E micromatch.matcher(pattern))%0A const files: Set%3CFile%3E = new Set()
+%5BfilePatterns, generatedPat... |
ecfbe40814b536d7def79d531c71383231d36c39 | Convert unicode to lower-case before sanitize | src/SearchUtils.js | src/SearchUtils.js | /**
* @providesModule RNUtils.SearchUtils
*/
import Singleton from 'singleton';
import _ from 'lodash';
const KEYWORD_TRUNK_LENGTH = 3;
class SearchUtils extends Singleton {
constructor() {
super();
this.buildSanitizedDict();
}
buildSanitizedDict() {
const vietnameseChars = require('./data/vietn... | JavaScript | 0.999999 | @@ -1311,16 +1311,37 @@
t = text
+.toLowerCase()%0A
.split('
|
0ee372eefb98b196beeb157f27bc565373382806 | Update ajax.js | src/addons/ajax.js | src/addons/ajax.js | var mag = {}
var Deferred = function() {
return function Deferred(resolve, reject) {
Deferred.resolve = resolve
Deferred.reject = reject
}
}
var FUNCTION = 'function'
var $document = document
function identity(value) {
return value
}
var type = {}.toString
var ARRAY = '[object Array]'
var OBJECT = '[... | JavaScript | 0.000001 | @@ -4349,16 +4349,18 @@
;%0A
+//
console.
|
09c13e5c1a922c77e4251e9ac89bfa0912eac8a6 | fix hover translation mode with constraint keys. | src/entry/content-capture.js | src/entry/content-capture.js | import optionsStorage from '../storage/options';
import ContextExtractor from '../ContextExtractor';
import hoverExcluded from '../storage/hoverExcluded';
import { getWordFromCaretPosition } from '../rangeHelpers';
import {
PROXY_CONTENT_MOUSE,
PROXY_CONTENT_OPEN_POPUP,
PROXY_CONTENT_CLOSE_POPUP,
PROXY_CONTENT_... | JavaScript | 0 | @@ -1174,308 +1174,8 @@
) %7B%0A
- if (options.hoverAlt %7C%7C options.hoverCtrl %7C%7C options.hoverShift) %7B%0A document.body.removeEventListener('mousemove', onHoverTranslationListener);%0A document.body.addEventListener('keydown', onKeyDownListener);%0A document.body.addEventListener('keyup', on... |
89e3e6aa0c3c0f88b753e370c37173ef1bab740f | Update event-emitter.service.js | src/event-emitter.service.js | src/event-emitter.service.js | angular
.module('angular-event-emitter', [ ])
.factory('EventEmitter', function($exceptionHandler) {
function EventEmitter() {
this._eventsHandlers = { };
}
angular.extend(EventEmitter.prototype, {
on: function(eventName, handler) {
if(!angular.i... | JavaScript | 0.000001 | @@ -524,16 +524,20 @@
Handler(
+new
Error('e
|
8e9c0c19f29d40c0504604c5cbcf4fbba1366b7c | Fix signature error w/ redux-async-connect | src/application.js | src/application.js | import React from 'react'
import { render } from 'react-dom'
import { merge, some } from 'lodash'
import { loadOnServer } from 'redux-async-connect'
import Store from './store'
export default class Application {
static defaults = {
router: null,
root: null,
store: ... | JavaScript | 0.000001 | @@ -1982,16 +1982,20 @@
nServer(
+%7B...
renderPr
@@ -2000,24 +2000,25 @@
Props, store
+%7D
)%0A .the
|
fd49d014258a0818a288d44b65f32ba48f5d51dd | Use Promise.resolve in named-register. Resolves #2359. (#2363) | src/extras/named-register.js | src/extras/named-register.js | /*
* SystemJS named register extension
* Supports System.register('name', [..deps..], function (_export, _context) { ... })
*
* Names are written to the registry as-is
* System.register('x', ...) can be imported as System.import('x')
*/
(function (global) {
var System = global.System;
setRegisterRegistry(Sys... | JavaScript | 0 | @@ -1163,18 +1163,30 @@
-setTimeout
+Promise.resolve().then
(fun
|
7108ef738613c35adf0a7e644e90971602f490b4 | Add rule enabled check | src/foam/nanos/ruler/Rule.js | src/foam/nanos/ruler/Rule.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.ruler',
name: 'Rule',
documentation: 'Rule model represents rules(actions) that need to be applied in case passed object satisfies provided predicate.... | JavaScript | 0.000001 | @@ -4640,16 +4640,42 @@
return
+ getEnabled()%0A &&
getPred
@@ -4685,16 +4685,18 @@
te().f(%0A
+
@@ -4734,16 +4734,18 @@
oldObj)%0A
+
|
afc6a69bcdbd2db8322d13f3e20679328259f3bd | Fix #135 | src/function/textFromHtml.js | src/function/textFromHtml.js | define([
'var/emojione',
'var/invisibleChar',
'function/unicodeTo',
],
function(emojione, invisibleChar, unicodeTo) {
return function(str, self) {
str = str
.replace(/<img[^>]*alt="([^"]+)"[^>]*>/ig, '$1')
.replace(/\n|\r/g, '')
.replace(/<br[^>]*>/ig, '\n')
... | JavaScript | 0.000001 | @@ -174,16 +174,90 @@
r = str%0A
+ .replace(/ /g, '%5Cn')%0A .replace(/	/g, '%5Ct')%0A
@@ -1337,16 +1337,88 @@
g, '%60')%0A
+ .replace(/</g, '%3C')%0A .replace(/>/g, '%3E')%0A
|
4a169700dbd18389ee660bf77bd4690fc2d29459 | Add backticks | src/functions/music/index.js | src/functions/music/index.js | const Player = require("./player.js");
const MSS = require('./../../functions/');
const Players = [];
exports.init = init;
exports.add = add;
exports.stop = stop;
exports.skip = skip;
exports.list = list;
function init(message) {
console.log(typeof Players[message.guild.id]);
if(typeof Players[message.guild.id] ==... | JavaScript | 0.000098 | @@ -1135,16 +1135,21 @@
aylist%5Cn
+%60%60%60%5Cn
%22%0A%09%09Play
@@ -1285,13 +1285,18 @@
+=
-%60...%60
+%22...%5Cn%60%60%60%22
%0A%09%09%09
@@ -1337,18 +1337,16 @@
ing += %60
-%5Cn
$%7Bindex%7D
@@ -1361,16 +1361,18 @@
m.title%7D
+%5Cn
%60;%0A%09%09%09%09r
|
651afe43278f6df6d6bdf245bb740ef6339b604c | Use computed `isFocused` instead of compare manually | src/js/components/Tab/Tab.js | src/js/components/Tab/Tab.js | import React from 'react'
import { inject, observer } from 'mobx-react'
import { blue, red, grey } from 'material-ui/colors'
import Icon from './Icon'
import Url from './Url'
import { match } from 'fuzzy'
const indicatorWidth = '2px'
const tabStyle = {
display: 'flex',
alignItems: 'center',
justifyContent: 'spac... | JavaScript | 0 | @@ -1966,78 +1966,59 @@
-const %7B%0A faked, tab: %7B id %7D, searchStore: %7B focusedTab
+if (this.props.faked) %7B%0A return%0A
%7D%0A
-%7D =
+if (
this
@@ -2027,44 +2027,22 @@
rops
-%0A if (!faked && id === f
+.tab.isF
ocused
-Tab
) %7B%0A
|
c4e08bbf3506321635cd3bb4e94a3c2db50b7fb1 | modify image processing module | src/js/lib/imageProcessor.js | src/js/lib/imageProcessor.js | /**
* Image Processor
*/
var window = global.window,
document = window.document,
console = window.console;
var Buffer = global.Buffer;
var fs = global.require('fs');
// constructor
function ImageProcessor(image, options) {
this.initialize(image, options);
}
// init setter
initSetter(ImageProcessor);
... | JavaScript | 0 | @@ -879,16 +879,21 @@
.quality
+Level
= optio
@@ -912,16 +912,16 @@
%7C 0.92;%0A
-
%0A if
@@ -2146,32 +2146,37 @@
y = this.quality
+Level
;%0A%0A var canva
@@ -2832,19 +2832,10 @@
ype.
-saveToImage
+to
File
@@ -4103,32 +4103,268 @@
eturn this;%0A%7D;%0A%0A
+// set quality%0AImageProcessor.prototype.qua... |
6a1c9c9fc0dcfcd2d843cf9642c6aafef30f1d75 | fix coding style : add missing ; | assets/js/ButtonClass.js | assets/js/ButtonClass.js | /* vim: set expandtab sw=4 ts=4: */
/**
* Button Class.
*
* Copyright (C) 2014-2015 Dieter Adriaenssens <ruleant@users.sourceforge.net>
*
* This file is part of buildtimetrend/dashboard
* <https://github.com/buildtimetrend/dashboard/>
*
* This program is free software: you can redistribute it and/or modify
* i... | JavaScript | 0.000013 | @@ -4119,24 +4119,25 @@
nData;%0A %7D
+;
%0A // Get
|
e76b81254293434a2ff736242176770a09c86054 | Remove console log | src/lib/SpotifyController.js | src/lib/SpotifyController.js | /* @flow */
const SpotifyWebApi = require('spotify-web-api-node');
const api = new SpotifyWebApi({
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
});
class SpotifyController {
// Props
api: SpotifyWebApi
// Methods
constructor() {
this.api = api;
}
/**
* Search wr... | JavaScript | 0.000002 | @@ -1676,58 +1676,8 @@
%3E %7B%0A
- console.log(JSON.stringify(data, null, 2));%0A
|
7a793a60a10d2e328cf4f5a16e1b09a2bc8a3bb4 | update cache/queue -- minor edits | src/cache/queue.js | src/cache/queue.js | // adopted from map-config <https://github.com/doowb/map-config>
// Copyright (c) 2015, Brian Woodward
var stampit = require('../object/stampit')
var kindOf = require('../lang/kindOf')
var flatten = require('../array/flatten')
var slice = require('../array/slice')
var forEach = require('../collection/forEach')... | JavaScript | 0 | @@ -315,16 +315,89 @@
Each')%0A%0A
+// process-queue for the primary way I use this: bot.process(bot.queue)%0A%0A
module.e
@@ -485,16 +485,17 @@
process
+q
,%0A ad
@@ -562,23 +562,28 @@
his, 'is
-QConfig
+ProcessQueue
', true)
@@ -777,23 +777,28 @@
if (is
-QConfig
+ProcessQueue
(val)) %7B
@@ -1153,32 +115... |
147489192dbfe962a93f0904e8fada26072b8a31 | deadline a have group | www/js/services/deadlinesService.js | www/js/services/deadlinesService.js | "use strict";
angular.module('wuw.services')
.factory('Deadlines', function($http, $q, Settings) {
var deadlines = JSON.parse(Settings.getSetting('localDeadlines') || '[]');
// add a new deadline (to server and locally)
var add = function(newDeadline) {
var deferred = $q.defer();
newDeadl... | JavaScript | 0.999236 | @@ -2184,16 +2184,83 @@
e.info;%0A
+ mergedDeadline.group = currDeadline.group;%0A
|
09c6753df62a2019800b374b7266143a86723f2c | use stock instead of person | lib/test/object-get-hook.js | lib/test/object-get-hook.js | // test/object-get-hook.js
//
// Test get hooks for Databank objects
//
// Copyright 2012, StatusNet Inc.
//
// 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/l... | JavaScript | 0.000001 | @@ -1071,22 +1071,21 @@
-person
+stock
: %7B%0A
@@ -1107,24 +1107,22 @@
pkey: '
-username
+ticker
'%0A
@@ -1590,22 +1590,21 @@
ize the
-Person
+Stock
class':
@@ -1670,22 +1670,21 @@
var
-Person
+Stock
= Datab
@@ -1703,22 +1703,21 @@
bClass('
-person
+stock
');%0A
@@ -1732,22 +1... |
307951ddad9e89944931512d200bba58b6c3434f | remove redundant js code for Webkit redraw hack on setup tag ui | roundware/rw/static/rw/js/setup_tag_ui.js | roundware/rw/static/rw/js/setup_tag_ui.js | // get around some jQuery namespace conflicts in js files...
var $ = django.jQuery;
var jQuery = django.jQuery;
function update_MasterUI_edit_form() {
// update the edit form fields with data for the selected masterui
$form=$('#setup_tag_ui_form');
var datastring = $form.serialize();
//console.log('... | JavaScript | 0 | @@ -767,172 +767,4 @@
%0A%0A%7D%0A
-%0A$(document).ready( function () %7B%0A // force WebKit to repaint the assign tags field by measuring it%0A $('#id_master_ui_edit-ui_mappings_tags').hide().show(0);%0A%7D);%0A
|
fbb96e0dfad7e14a6c410602f077a5643e9cfa20 | remove onSubmit callback | packages/lore-hook-dialog-bootstrap/src/templates/Modal.js | packages/lore-hook-dialog-bootstrap/src/templates/Modal.js | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { connect } from 'lore-hook-connect';
export default connect(function() {
return {};
}, { subscribe: true })(createReactClass({
displayName: 'Modal',
propTypes: {
dialog: PropTypes.node.i... | JavaScript | 0 | @@ -998,42 +998,8 @@
cel:
- this.dismiss,%0A onSubmit:
thi
|
3910f4af3935004cbb3ac89b8018560cc5f45cfd | Remove the accidental fdescribe | frontend/test/e2e/auth/login.spec.js | frontend/test/e2e/auth/login.spec.js |
import { By } from "selenium-webdriver";
import {
waitForUrl,
screenshot,
loginMetabase,
describeE2E
} from "../support/utils";
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
describeE2E("auth/login", () => {
let sessionId;
fdescribe("has no cookie", () => {
beforeEach(async () => {
... | JavaScript | 0.999997 | @@ -240,17 +240,16 @@
d;%0A%0A
-f
describe
|
9c7eeeed43924792d1d8238b6db9bee7a3e35c67 | use orm-data metadata to extend element defnition | src/entity-schema.js | src/entity-schema.js | import extend from 'extend';
/**
* Takes an entity and uses it's metadata to generate a form-schema. Entities
* behave like normal objects in the way one can get and set the values on
* it's properties.
*
* @param {object} entity
*
* @returns {object[]} a schema consisting out of element objects
*/
export func... | JavaScript | 0.000005 | @@ -599,24 +599,57 @@
(entity)) %7B%0A
+ /* should be fixed in orm */%0A
if (key
@@ -679,16 +679,23 @@
er__') %7B
+%0A
continue
@@ -699,38 +699,14 @@
nue;
-%7D /* should be fixed in orm */
+%0A %7D
%0A%0A
@@ -732,16 +732,17 @@
key
+
: key,%0A
@@ -806,16 +806,28 @@
element,
+ data%5Bke... |
ab1b6eb1185cf48b97b81e700025b55bd5e326b3 | update file/modStats.js | src/file/modStats.js | src/file/modStats.js | var path = require('path')
var fs = require('fs')
function modifyStatsObject (stats, fp) {
return {
abs : fs.realpathSync(fp),
rel : fp,
dir : path.dirname(fp),
base : path.basename(fp),
file : path.basename(fp, path.extname(fp)),
ext : path.extname(fp),
stats : stats,
dat... | JavaScript | 0 | @@ -46,16 +46,271 @@
('fs')%0A%0A
+/**%0A * modify the stats object with more filepath info and content%0A * @param %7BObject%7D stats the return object from fs.%5Bstats%7Clstat%5D%0A * @param %7BString%7D fp filepath of object to be stated%0A * @return %7BObject%7D expanded stats with file content%0A */%0A... |
0334e6c0138bfef3b11c400d3da58633c8697257 | Call "routeToState" on page's ready() | library/CM/Page/Abstract.js | library/CM/Page/Abstract.js | /**
* @class CM_Page_Abstract
* @extends CM_Component_Abstract
*/
var CM_Page_Abstract = CM_Component_Abstract.extend({
/** @type String */
_class: 'CM_Page_Abstract',
/** @type String[] */
_stateParams: [],
/** @type String|Null */
_fragment: null,
_ready: function() {
this._fragment = window.... | JavaScript | 0 | @@ -289,30 +289,28 @@
) %7B%0A
-this._fragment
+var location
= windo
@@ -323,27 +323,45 @@
tion
-.pathname + window.
+;%0A var params = queryString.parse(
loca
@@ -375,35 +375,164 @@
arch
+)
;%0A
-// @todo routeToState
+var state = _.pick(params, _.intersection(_.keys(params), this.getStateParams()));... |
d192bf8fcb996c5d4d0a86e6fab2e0c4fac3bc8a | Improve error handling of config functions | src/functions/run.js | src/functions/run.js | 'use strict'
const { addGenErrorHandler } = require('../errors')
const { getParams } = require('./params')
const { stringifyConfigFunc } = require('./tokenize')
// Process config function, i.e. fires it and returns its value
const runConfigFunc = function ({
configFunc,
mInput,
mInput: { serverParams },
para... | JavaScript | 0.000002 | @@ -17,29 +17,26 @@
nst %7B addGen
-Error
+Pb
Handler %7D =
@@ -577,13 +577,10 @@
dGen
-Error
+Pb
Hand
@@ -724,16 +724,95 @@
NTIME',%0A
+ extra: (%7B configFunc %7D) =%3E (%7B value: stringifyConfigFunc(%7B configFunc %7D) %7D),%0A
%7D)%0A%0Amodu
|
f04c6bf92ee6e09bb2fa0b1686bfdc5fc8c98ffd | Use optimized jQuery from Google APIs | lighthouse-inline-images.js | lighthouse-inline-images.js | // ==UserScript==
// @name Lighthouse Inline Image Attachments
// @namespace headinsky.dk
// @description Show image attachments for Lighthouse tickets inline
// @include https://*.lighthouseapp.com/*
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
var width = $("d... | JavaScript | 0 | @@ -248,37 +248,61 @@
p://
-code.jquery.com/jquery-latest
+ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min
.js%0A
|
c397151b56efe87ade834b36d6cf611a9aa15261 | Enable translations (#91) | website/languages.js | website/languages.js | const languages = [
{
enabled: true,
name: 'English',
tag: 'en',
},
{
enabled: false,
name: '日本語',
tag: 'ja',
},
{
enabled: false,
name: 'العربية',
tag: 'ar',
},
{
enabled: false,
name: 'Bosanski',
tag: 'bs-BA',
},
{
enabled: false,
name: 'Català... | JavaScript | 0 | @@ -2028,36 +2028,35 @@
%7B%0A enabled:
-fals
+tru
e,%0A name: 'T%C3%BC
@@ -2290,36 +2290,35 @@
%7B%0A enabled:
-fals
+tru
e,%0A name: '%E7%B9%81%E9%AB%94
|
7e83d6d50587542c7f28aff481b951ef9b7accac | fix method name | js/adapters/ifmo.js | js/adapters/ifmo.js | function Ifmo_adapter(page) {
this.page = page;
this.problems = [];
this.tbl_data = [];
}
Ifmo_adapter.prototype.parse = function() {
var page = this.page;
var data = [];
var problems = [];
$(page).find('table[class != "wrapper"]').find("tr").each(function () {
var row = {}
... | JavaScript | 0.00456 | @@ -124,16 +124,20 @@
pe.parse
+_tbl
= funct
@@ -1953,36 +1953,40 @@
this.parse
+_tbl
();%0A
-
%0A return this
@@ -2033,16 +2033,17 @@
_problem
+s
= funct
@@ -2063,24 +2063,24 @@
f (this.
-problems
+tbl_data
.length
@@ -2103,16 +2103,20 @@
is.parse
+_tbl
();%0A%0A
|
3ee7f96ff0a6c68851acc4cb26a32df820bca876 | Use useNativeDriver prop in CircleSnail (#200) | CircleSnail.js | CircleSnail.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated, Easing } from 'react-native';
import { Surface as ARTSurface } from '@react-native-community/art';
import Arc from './Shapes/Arc';
const AnimatedArc = Animated.createAnimatedComponent(Arc);
const MIN_ARC_ANGLE = 0.1;
con... | JavaScript | 0 | @@ -2798,24 +2798,75 @@
ion: false,%0A
+ useNativeDriver: this.props.useNativeDriver,%0A
%7D).start
|
4a449cb8d1b9ed828ad0c519eb7dde9dd39a23b1 | rebuild script only destroys if --destroy flag is passed | scripts/rebuild-store.js | scripts/rebuild-store.js | #!/usr/bin/env node
'use strict';
/*jshint asi: true */
var leveldb = require('valuepack-core/mine/leveldb')
, storeUsers = require('./store-npm-users')
, storePackages = require('./store-npm-packages')
function rebuild() {
leveldb.destroy(function (err) {
if (err) return console.error(err)
... | JavaScript | 0 | @@ -228,97 +228,18 @@
ion
-rebuild() %7B%0A leveldb.destroy(function (err) %7B%0A if (err) return console.error(err)%0A%0A
+store() %7B%0A
le
@@ -266,26 +266,24 @@
(err, db) %7B%0A
-
if (err)
@@ -318,49 +318,13 @@
b);%0A
- console.log('destroyed db')%0A%0A
+%0A
-
stor
@@ -351,26 +351,2... |
52714fd9b02d46c4312a9a4ae9d58bd73943fdf7 | Fix code style | endpoints/hljomaholl/tests/integration_test.js | endpoints/hljomaholl/tests/integration_test.js | var request = require('request');
var assert = require('assert');
var helpers = require('../../../lib/test_helpers.js');
describe('hljomaholl', function() {
// The only thing that changes is the form attribute, so why not just re-use the object
var fieldsToCheckFor = ['date', 'time', 'image','title', 'descript... | JavaScript | 0.000169 | @@ -151,18 +151,16 @@
ion() %7B%0A
-
// The
@@ -241,18 +241,16 @@
object%0A
-
var fi
@@ -267,16 +267,21 @@
kFor = %5B
+%0A
'date',
@@ -296,16 +296,17 @@
'image',
+
'title',
@@ -320,16 +320,17 @@
iption',
+
'locatio
@@ -348,16 +348,20 @@
ketURL',
+%0A
'moreIn
@@ -370,20 +370,22 @@
URL'
+... |
bea1e2ae7afa3473edc66b3a225de4bd961bd0e3 | test tab | loading/platform-loading.js | loading/platform-loading.js | /**
* Created by Jackey Li on 2015/12/9.
*/
(function (angular) {
'use strict';
// var prefix = 'app/components/';
var prefix = '';
angular.module(globals.appName).directive('platformLoading',
[function () {
return {
restrict: 'EA',
replace: true,
templateUrl: prefix + 'loading/templates/loading... | JavaScript | 0.000001 | @@ -762,21 +762,16 @@
eturn %7B%0A
-%09%09%09%09
%0A%09%09%09%09 sh
|
7eca0341a136b75907c58287a8d16f625be85e31 | Implement parameters for GET request | src/http/pdf-http.js | src/http/pdf-http.js | const ex = require('../util/express');
const pdfCore = require('../core/pdf-core');
const getRender = ex.createRoute((req, res) => {
const opts = {
// TODO: add all params here
};
return pdfCore.render(req.query)
.then((data) => {
res.set('content-type', 'application/pdf');
res.send(data);
... | JavaScript | 0.000001 | @@ -152,76 +152,1337 @@
-// TODO: add all params here%0A %7D;%0A%0A return pdfCore.render(req.query
+url: req.query.url,%0A scrollPage: req.query.scrollPage,%0A emulateScreenMedia: req.query.emulateScreenMedia,%0A waitFor: req.query.waitFor,%0A viewport: %7B%0A width: req.query%5B'viewport.widt... |
678153ae95a302ea8654eaff3ab55e64451064d7 | Fix events-feed script to pass in correct events | project/src/main/webapp/events-feed.js | project/src/main/webapp/events-feed.js | $(function() {
populateEvents();
});
async function populateEvents() {
const rankedEvents = await getRankedEvents();
const eventLevels = getLodsFromEvents(rankedEvents);
populateRankedEvents(eventLevels);
}
const filters = {}
$(async function() {
toggleDropdown();
// If want all events on discovery page ... | JavaScript | 0.000002 | @@ -1,221 +1,4 @@
-$(function() %7B%0A populateEvents();%0A%7D);%0A%0Aasync function populateEvents() %7B%0A const rankedEvents = await getRankedEvents();%0A const eventLevels = getLodsFromEvents(rankedEvents);%0A populateRankedEvents(eventLevels);%0A%7D%0A%0A
cons
@@ -245,17 +245,16 @@
%7D else %7B
-
%0A //... |
f016db1ff759c47e602e0aaa0984bfbcd694438b | Add space between comment summary and @see | src/main/webapp/components/BuildSnapshotContainer.js | src/main/webapp/components/BuildSnapshotContainer.js | import * as React from "react";
import {BuildSnapshot} from "./BuildSnapshot";
import {Wrapper} from "./Wrapper";
/**
* Container Component for BuildSnapshots.
*
* @param {*} props input property containing an array of build data to be
* rendered through BuildSnapshot.
*/
export const BuildSnapshotContainer = Re... | JavaScript | 0.000115 | @@ -570,16 +570,22 @@
reshes.%0A
+ *%0A
* @s
|
e17d6ad84e1cabfd514a1d33e45dda6a13caa207 | fix var query scope in oraculo_si_no.js | js/oraculo_si_no.js | js/oraculo_si_no.js | //var divquestion = document.getElementById('to-lock');
// Get the div locker
//var divanswer = document.getElementById('div-locker');
// function setupgateway()
// {
// divquestion.style.display = 'none';
// divanswer.style.display = 'block';
// }
//
// function removegateway()
// {... | JavaScript | 0.000005 | @@ -493,24 +493,28 @@
on');%0A
+let
question = $
|
3deb1608228d5ffa75d467ffb328692d8ba4ae76 | Make My Files page get media type via content_type instead of filename | js/page/my_files.js | js/page/my_files.js | var moreMenuStyle = {
position: 'absolute',
display: 'block',
top: '26px',
left: '-13px',
};
var MyFilesRowMoreMenu = React.createClass({
onRevealClicked: function() {
lbry.revealFile(this.props.path);
},
onRemoveClicked: function() {
lbry.deleteFile(this.props.lbryUri, false);
},
onDeleteClic... | JavaScript | 0 | @@ -6119,16 +6119,17 @@
_bytes;%0A
+%0A
@@ -6136,27 +6136,20 @@
var
-showWatchButton
+mediaType
=
-(
lbry
@@ -6166,70 +6166,92 @@
ype(
-file_name) == 'video' %7C%7C lbry.getMediaType(file_name)
+metadata.content_type, file_name);%0A var showWatchButton = (mediaType
== '
-audi
+vide
o');
|
a2717ac10298f5e9689b420a0af0eb310eababd3 | Fix search key | js/plugin/Search.js | js/plugin/Search.js | BR.Search = class extends L.Control.Geocoder {
constructor(options) {
super(
Object.assign(
{
geocoder: new L.Control.Geocoder.LatLng({
next: new L.Control.Geocoder.Nominatim({
serviceUrl: 'https://nominatim.... | JavaScript | 0.00011 | @@ -1553,17 +1553,13 @@
nt('
-mousedown
+click
'));
|
a382fb1277f55a165a1e3f84d8ad8e6d42d6e1b7 | Add placeholders for unfinished components | angel-player/src/chrome/content/ui.js | angel-player/src/chrome/content/ui.js | // Subpages for the left and right panes
var links_left = {
"welcome" : {
text : "Welcome",
url : "welcome/welcome.html"
},
"texteditor" : {
text: "Text Editor",
url : "texteditor/editor.html"
}
};
var links_right = {
"simulator" : {
text: "Simulator",
url: "simulator/main.html"
},
... | JavaScript | 0 | @@ -204,24 +204,183 @@
ditor.html%22%0A
+ %7D,%0A %22blockeditor%22 : %7B%0A text : %22Block Editor (TODO)%22,%0A url : %22about:blank%22%0A %7D,%0A %22maker%22 : %7B%0A text : %22Robot Maker (TODO)%22,%0A url : %22about:blank%22%0A
%7D%0A%7D;%0A%0Avar
@@ -537,24 +537,259 @@
nsole.html%22%0A
+ %7... |
03607bdf494104dcfdade2cc4f942ef4c3e89393 | Add feature_flags to CallSession definition | 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 | @@ -2133,16 +2133,50 @@
icipant%3E
+,%0A +feature_flags: ?Array%3Cstring%3E
%0A%7C%7D;%0A%0Aex
|
95ecfe3d43c230c07954daa8a723bf920eac2611 | Remove console.log | providers/datasets-provider/actions.js | providers/datasets-provider/actions.js | import { createAction, createThunkAction } from 'redux/actions';
import flatten from 'lodash/flatten';
import sortBy from 'lodash/sortBy';
import chroma from 'chroma-js';
import { getDatasets } from 'services/datasets';
import thresholdOptions from 'data/thresholds.json';
import { reduceParams, reduceSqlParams } from... | JavaScript | 0.000004 | @@ -10707,63 +10707,8 @@
%7D);%0A
- console.log('parsedDatasets', parsedDatasets);%0A
|
b112705c23698daea480c04f413a70d844aa5b92 | disable cad files again - file page changes needed to support | ui/constants/file_render_modes.js | ui/constants/file_render_modes.js | export const VIDEO = 'video';
export const AUDIO = 'audio';
export const FLOATING_MODES = [VIDEO, AUDIO]; // these types will show in floating player
export const PDF = 'pdf';
export const DOCX = 'docx';
export const HTML = 'html';
export const MARKDOWN = 'md';
export const DOCUMENT = 'document';
export const PLAIN_T... | JavaScript | 0 | @@ -1141,16 +1141,21 @@
ION%5D : %5B
+CAD,
APPLICAT
|
51ace97323732c078aaceca857ab2011825b6887 | fix youtube embedding. camelCase is such a bummer | public/javascripts/widgets/embedder.js | public/javascripts/widgets/embedder.js | /* Copyright (c) 2010, Diaspora Inc. This file is
* licensed under the Affero General Public License version 3 or later. See
* the COPYRIGHT file.
*/
(function() {
var Embedder = function() {
var self = this;
this.services = {};
this.subscribe("widget/ready", function(evt, contentElement) {
... | JavaScript | 0.999905 | @@ -761,16 +761,79 @@
ned;%0A %0A
+ console.log(template);%0A console.log(views);%0A
re
@@ -862,24 +862,24 @@
te, views);%0A
-
%7D;%0A%0A
@@ -1444,24 +1444,63 @@
);%0A %7D%0A%0A
+ console.log(videoLink.data());%0A
contai
@@ -1553,16 +1553,17 @@
data())%0A
+%0A
... |
209b38dbedc5129f0a3e82fb0ab2f5395224ac3c | Delete barf | src/pages/expansions/RequisitionRegimenModalTable.js | src/pages/expansions/RequisitionRegimenModalTable.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import PropTypes from 'prop-types';
import { GenericPage } from '../GenericPage';
import { expansionPageStyles } from '../../globalStyles';
/**
* Renders page to be displayed in StocktakeEditPage -> expansion.
*
* @prop ... | JavaScript | 0.000001 | @@ -745,782 +745,8 @@
ps;%0A
- // const %7B customData %7D = this.state;%0A // const %7B database %7D = this.props;%0A // const %7B otherData %7D = customData;%0A // const newData = %7B%0A // ...otherData,%0A // regimenData: %5B%0A // %7B%0A // name: 'Number of RDT this month',%0A... |
f81c02b0bbfdfe091b701345da8fcedbc78d24eb | remove comments | public/js/app/common/LoginDirective.js | public/js/app/common/LoginDirective.js | 'use strict';
/**
* Show or hide the Login dialog when we receive events
*/
app.directive('loginDialog', function (AUTH_EVENTS) {
return {
restrict: 'A',
template: '<div ng-if="visible" ng-include="\'/js/app/login.html\'">',
link: function (scope) {
var showDialog = function (... | JavaScript | 0 | @@ -321,49 +321,8 @@
) %7B%0A
- console.log('visible!');%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.