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 |
|---|---|---|---|---|---|---|---|
1220a879805f7309f5302b8764fe775b3453033d | add engines to package.json | src/tasks/package.js | src/tasks/package.js | const { json, install } = require('mrm-core');
const packages = [
// Utilities
'del-cli',
'cross-env',
'nodemon',
'nsp',
// Jest
'jest',
'babel-jest',
// Babel
'babel-cli',
'babel-polyfill',
'babel-preset-webpack',
// ESLint
'eslint',
'eslint-plugin-import',
'eslint-config-webpack',
... | JavaScript | 0.000001 | @@ -411,16 +411,206 @@
merge(%7B%0A
+ engines: %7B%0A // Some versions are skipped because of known issues, see https://github.com/webpack-contrib/organization/issues/7%0A node: '%3E=4.3.0 %3C5.0.0 %7C%7C %3E=5.10'%0A %7D,%0A
sc
|
9647eae4bf7e7f0337995e17b0c8f021b18f29e0 | update release sequence with test:fail and version:branch | src/tasks/release.js | src/tasks/release.js | import { taskMaker } from '../taskMaker';
import runSequence from 'run-sequence';
import gutil from 'gulp-util';
import conventionalRecommendedBump from 'conventional-recommended-bump';
import conventionalChangelog from 'conventional-changelog';
function releaseTasks(gulp) {
taskMaker(gulp)
.createTask({... | JavaScript | 0 | @@ -992,16 +992,41 @@
:fail',%0A
+ 'test:fail',%0A
@@ -1104,24 +1104,31 @@
'version
+:branch
',%0A
|
add2c81ed6bf3091e12aeb321edb057a65353b52 | fix suggestion order | corehq/apps/case_importer/static/case_importer/js/excel_fields.js | corehq/apps/case_importer/static/case_importer/js/excel_fields.js | hqDefine('case_importer/js/excel_fields.js', function () {
function ExcelFieldRows(excelFields, caseFieldSpecs) {
var self = {
excelFields: excelFields,
caseFieldSpecs: caseFieldSpecs,
};
self.caseFieldSpecsInMenu = _(caseFieldSpecs).where({show_in_menu: true});
... | JavaScript | 0.000001 | @@ -2796,18 +2796,8 @@
e').
-reverse().
pluc
|
183642daf101989f2a5826506a14b07db5228ad1 | rename query_children | src/test/testType.js | src/test/testType.js | import { Model } from '../model';
import { Relationship } from '../relationship';
export class TestType extends Model {}
export class Children extends Relationship {}
export class ValenceChildren extends Relationship {}
export class Likes extends Relationship {}
export class Agrees extends Relationship {}
export clas... | JavaScript | 0.00059 | @@ -3011,39 +3011,37 @@
ildren.$name = '
-valence
+query
_children';%0A%0A%0ATe
|
aa05ddc7b0c75cf70018f8484c4042d2d48e351d | add support for valueLink | src/toggle/Toggle.js | src/toggle/Toggle.js | import React from 'react';
import { pure, skinnable, props, t } from '../utils';
import cx from 'classnames';
import './toggle.scss';
@pure
@skinnable()
@props({
value: t.Boolean,
onChange: t.Function,
size: t.maybe(t.union([t.String, t.Number])),
className: t.maybe(t.String),
style: t.maybe(t.Object)
})
e... | JavaScript | 0 | @@ -107,35 +107,56 @@
s';%0A
-%0A%0A
import
-'./toggle.scss
+%7B getValueLink %7D from '../link-state
';%0A%0A
+%0A
@pur
@@ -190,19 +190,119 @@
alue
-: t.Boolean
+Link: t.maybe(t.struct(%7B%0A value: t.Boolean,%0A requestChange: t.Function%0A %7D)),%0A value: t.maybe(t.Boolean)
,%0A
@@ -303,32 +303,40 ... |
7ce029ceddf9a02f9e1fdc08482146932782af32 | fix model error | perber/js/application.js | perber/js/application.js | Api = function(e) {
return e.data = JSON.stringify(e.data), e.type != "GET" ? e.contentType = "application/json" : e.processData = !1, $.ajax(e)
},
Perber = {
Model:{},
View:{},
Collection:{},
Region:{},
config:{}
};
// Model
Perber.Model.User = Backbone.Model.extend({
defaults: {
... | JavaScript | 0.000001 | @@ -2667,12 +2667,94 @@
#main',%0A%7D);%0A
+%0APerber.Region.Modal = Backbone.Marionette.Region.extend(%7B%0A el: '#modal',%0A%7D);%0A%0A
|
eac12c07f01aee95a3c911af3e149c77ccba1714 | Make zero-element bubbles a bit smaller | src/util/Clusters.js | src/util/Clusters.js | import { hierarchy } from 'd3-hierarchy';
export default class Clusters {
constructor () {
this.data = {
children: [
{
cluster: 'non-anomalous',
value: 0
},
{
cluster: 'anomalous',
value: 0,
children: []
}
]
};
}
... | JavaScript | 0.000092 | @@ -990,16 +990,17 @@
ue %7C%7C 0.
+0
1);%0A %7D%0A
|
85a9be0a23af4ea7c1e7b9da65100cfe73da20c2 | fix lint errors | src/util/initI18n.js | src/util/initI18n.js | import {init} from 'i18next';
import resources from '../../locales';
// value: The value of the variable that is being passed in to be interpolated into the localized string
// format: the pipe-delimited list of formatting flags, it will run the formatting functions sequentially
// based on the sequence of... | JavaScript | 0.000037 | @@ -63,19 +63,240 @@
ales';%0A%0A
-//
+function getVariationOfAOrAn(value) %7B%0A const vowelishLetters = %5B'a', 'e', 'i', 'o', 'u', 'h'%5D;%0A const isVowelish = vowelishLetters.find(l =%3E value.substring(0, 1) === l);%0A return isVowelish ? 'an' : 'a';%0A%7D%0A%0A/*%0AArguments:%0A
value:
@@ -342,16 +342,18... |
e4c493eba5c145f32882d6e8a00995396fa953b1 | correct use of module.export for positioning functions | src/util/position.js | src/util/position.js | /**
* center element on parent horizontally
* @param elem
* @param parent (optional)
* @method centerHorizontal
*/
PIXI_UI.centerHorizontal = function(elem, parent) {
parent = parent || elem.parent;
elem.x = Math.floor((parent.width - elem.width ) / 2);
};
/**
* center element on parent vertically
* @pa... | JavaScript | 0 | @@ -1,28 +1,55 @@
-/**%0A
+module.exports = %7B%0A /**%0A
* center element on par
@@ -61,24 +61,28 @@
orizontally%0A
+
* @param el
@@ -76,32 +76,36 @@
* @param elem%0A
+
* @param parent
@@ -108,32 +108,36 @@
rent (optional)%0A
+
* @method cente
@@ -145,35 +145,35 @@
Horizontal%0A
-*/%0... |
7edbaafffeabdecf43b23c42c72078ac90a2783a | Update lib/feature.js | lib/feature.js | lib/feature.js | const _ = require('underscore');
const Backbone = require('backbone');
let API_URL = '';
let Sale = '';
let Artworks = '';
let FeaturedSet = '';
let FeaturedLinks = '';
module.exports = function (a, b, c, d, e) {
API_URL = a;
Sale = b;
Artworks = c;
FeaturedSet = d;
FeaturedLinks = e;
return module.export... | JavaScript | 0 | @@ -6054,12 +6054,11 @@
%7D);%0A %7D%0A
-%0A
%7D;%0A
|
33df124de8f4e0aea8842bdc650732205e8338b9 | Update minified script. | src/vagueTime.min.js | src/vagueTime.min.js | (function(){"use strict";function t(t){var s,o,u=n(t.units),a=r(t.from,u),f=r(t.until,u,Date.now()),l=f-a;for(s in e)if(e.hasOwnProperty(s)&&l>=e[s])return o=Math.floor(l/e[s]),o+" "+i(s,o)+" ago";return"just now"}function n(e){if(typeof e=="undefined")return"s";if(e==="s"||e==="ms")return e;throw new Error("Invalid un... | JavaScript | 0 | @@ -643,36 +643,30 @@
e4%7D;
-typeof exports==%22undefined%22?
+exports?exports.get=t:
wind
@@ -689,22 +689,8 @@
t:t%7D
-:exports.get=t
%7D)()
|
25914bfe922ce8f17231bdaebecfef247dc82d0a | Use es6 style object function | models/rating.js | models/rating.js | module.exports = function (sequelize, DataTypes) {
const Rating = sequelize.define('Rating', {
id: {
primaryKey: true,
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4
},
value: {
type: DataTypes.INTEGER,
allowNull: false,
validate: {
min: 0
}
},
... | JavaScript | 0 | @@ -492,28 +492,8 @@
-associate: function
asso
|
3634eaa56ea884644a41a3395440c78452752198 | Use file.extname property since we depend on newer vinyl | lib/helpers.js | lib/helpers.js | 'use strict';
var path = require('path');
var fs = require('graceful-fs');
var async = require('async');
var convert = require('convert-source-map');
var stripBom = require('strip-bom');
var generate = require('./generate');
var urlRegex = /^(https?|webpack(-[^:]+)?):\/\//;
function isRemoteSource(source) {
retu... | JavaScript | 0 | @@ -3600,20 +3600,20 @@
ch (
-path
+file
.extname
(fil
@@ -3608,27 +3608,16 @@
.extname
-(file.path)
) %7B%0A
@@ -4004,24 +4004,200 @@
%7D;%0A %7D%0A%0A
+ // TODO: add this%0A // else if (preExistingComment !== null && typeof preExistingComment !== 'undefined') %7B%0A // sourceMap.preExistingComment... |
9379a21119ef354fef3d76c1ab40f83fd778fd29 | Update lib/helpers.js: Remove duplication. | lib/helpers.js | lib/helpers.js | var browserstack = require("browserstack"),
config = require("./config");
var workers = [],
timeout = config.browserstack.timeout || 480, // 8 minutes
client = browserstack.createClient(config.browserstack),
osMap = {};
var loadBrowsers = function(browsers) {
browsers.forEach(function(browser, idx){
client.c... | JavaScript | 0 | @@ -1517,224 +1517,17 @@
= %5B
-%7B%0A%09%09%09%09%09%09browser: browser.browser %7C%7C %22%22,%0A%09%09%09%09%09%09device: browser.device %7C%7C %22%22,%0A%09%09%09%09%09%09version: browser.version,%0A%09%09%09%09%09%09os: browser.os,%0A%09%09%09%09%09%09url: %22http://%22+config.tunnellink,%0A%09%09%09%09%09%09time... |
01cf7f4eaaf3ad689f8ae4470eca91cc6c35ce21 | Enable css source maps again | src/webpack/rules.js | src/webpack/rules.js | /* @flow */
import path from "path";
import ExtractTextPlugin from "extract-text-webpack-plugin";
import autoprefixer from "autoprefixer";
import precss from "precss";
import postcssPartialImport from "postcss-partial-import";
/**
* Creates loader for JavaScript files and add some extra features for dev server, like ... | JavaScript | 0 | @@ -1824,16 +1824,43 @@
aders: 1
+,%0A sourceMap: true
%0A
|
ec98d52a400e5f4fd9ce29d34df59d2ebc84751c | Use dim white for info logs as well as debug | lib/logging.js | lib/logging.js | var term = require('terminal-kit').terminal
var logger = exports
logger.levels = ['error', 'warn', 'info', 'debug']
logger.logLevel = 'warn'
/**
* Set the log level
*
* logger.setLevel('info')
*
*/
logger.setLevel = function (level) {
if (logger.levels.indexOf(level) === -1) {
throw new Error(`Log level m... | JavaScript | 0 | @@ -1092,16 +1092,44 @@
.white,%0A
+ info: term.dim.white,%0A
%7D%5Ble
|
d812f99174bb529cf22fcc8af9da7e731b9fade2 | Fix TypeError when updating slug | core/client/controllers/post-settings-menu.js | core/client/controllers/post-settings-menu.js | /* global moment */
import {parseDateString, formatDate} from 'ghost/utils/date-formatting';
import SlugGenerator from 'ghost/models/slug-generator';
import boundOneWay from 'ghost/utils/bound-one-way';
var PostSettingsMenuController = Ember.ObjectController.extend({
init: function () {
this._super();
... | JavaScript | 0 | @@ -4870,32 +4870,43 @@
newSlug =
+ newSlug &&
newSlug.trim();
|
f608908eb2b579402014a7969c5632672a87970b | Update config.js | static/app/config.js | static/app/config.js | define("config", function(){
//This is the base URL for the API
var BASE_URL = "http://digitalslidearchive.emory.edu:5081/v1";
//this is the URL for the site
var HOST_URL = "http://digitalslidearchive.emory.edu:5081";
//SLIDE_SETS will tell the app which slidesets to make available for the user
//Options 1: Al... | JavaScript | 0.000002 | @@ -112,21 +112,16 @@
mory.edu
-:5081
/v1%22;%0A%0A%09
@@ -208,13 +208,8 @@
.edu
-:5081
%22;%0A%0A
|
cb4976e8447c348b950f4354df6c8fbe3b194b05 | Update copywriting for Stackoverflow box | pages/support/Support.js | pages/support/Support.js | import React from 'react';
import './Support.scss';
const Support = () => (
<div className="support-container">
<div className="support-row">
<div className="support-column">
<div className="support-item-container">
<a href="https://github.com/skygear-demo" target="_blank">
<... | JavaScript | 0 | @@ -1453,24 +1453,10 @@
-Our support team
+We
wil
@@ -1489,16 +1489,36 @@
ged with
+%0A
skygear
|
d79681b0aede871d51acee9b5f06a708ee14fece | support prefixed env variables | src/core.config/index.js | src/core.config/index.js | /** @flow
* @briskhome
* └core.config <index.js>
*/
import path from 'path';
import nconf from 'nconf';
import properties from 'properties';
import { getCallee } from '../utilities/helpers';
import { resources } from '../utilities/resources';
import type {
CoreOptions,
CoreImports,
CoreRegister,
} from '../ut... | JavaScript | 0.000001 | @@ -854,16 +854,167 @@
: true,%0A
+ transform: (%7B key, value %7D) =%3E%0A key.toUpperCase().startsWith('BRISKHOME_')%0A ? %7B key: key.substr(10), value %7D%0A : %7B key, value %7D,%0A
%7D);%0A
|
1b1fed8c1982cebea0718c92db715b2008b2f5be | Switch FObjectArray to use this.assert instead of console.assert. | src/core/FObjectArray.js | src/core/FObjectArray.js | /*
* @license
* Copyright 2016 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 require... | JavaScript | 0 | @@ -1261,31 +1261,28 @@
) %7B%0A
-console
+this
.assert(Arra
@@ -1567,15 +1567,12 @@
-console
+this
.ass
|
3eff7e40eaff8e9cbc0d89fa134f94d90ae06d1a | Use short name for Poam show | client/src/pages/poams/Show.js | client/src/pages/poams/Show.js | import React from 'react'
import Page from 'components/Page'
import {DropdownButton, MenuItem} from 'react-bootstrap'
import Breadcrumbs from 'components/Breadcrumbs'
import Form from 'components/Form'
import LinkTo from 'components/LinkTo'
import autobind from 'autobind-decorator'
import History from 'components/Hist... | JavaScript | 0 | @@ -1794,20 +1794,21 @@
d%3E%7Bpoam.
-long
+short
Name%7D%3C/l
|
cf1af7173afdfaea9dafa6edbc641a2329c5965a | fix conformancy with 1.2 | lib/promise.js | lib/promise.js |
/*!
* Module dependencies.
*/
var slice = require('sliced');
var EventEmitter = require('events').EventEmitter;
/**
* Promise constructor.
*
* _NOTE: The success and failure event names can be overridden by setting `Promise.SUCCESS` and `Promise.FAILURE` respectively._
*
* @param {Function} back a function th... | JavaScript | 0.000613 | @@ -5056,16 +5056,37 @@
(val &&
+ 'function' == typeof
val.the
|
7fb98dd46146d52cea65f80106a40e5a9dec8b2e | Make async polymer-ready polyfill compatible. | src/declaration/queue.js | src/declaration/queue.js | /*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
(function(scope) {
/*
Elements are added to a registration queue so that they register in
the proper order at the appropriate time. We d... | JavaScript | 0 | @@ -3864,32 +3864,56 @@
= true;%0A %7D%0A
+ Platform.flush();%0A
requestAni
|
dababa35a06c68d4676271df4f54fbce8f55357d | Use hot loading for css | webpack.config.dev.js | webpack.config.dev.js | 'use-strict';
var path = require('path');
var webpack = require('webpack');
module.exports = {
context: __dirname,
entry: {
app: [
'webpack-hot-middleware/client',
'babel-polyfill',
'./js/index'
],
style: './css/index.scss'
},
output: {
path: path.join(__dirname, 'assets', ... | JavaScript | 0 | @@ -234,16 +234,63 @@
style:
+ %5B%0A 'webpack-hot-middleware/client',%0A
'./css/
@@ -301,16 +301,22 @@
x.scss'%0A
+ %5D%0A
%7D,%0A%0A
|
886b6fdd7a1505df0029a9fa0756dfaa15c0a062 | update timeout | test/managers/purchasing/purchase-order/create.js | test/managers/purchasing/purchase-order/create.js | require("should");
var helper = require("../../../helper");
var purchaseRequestDataUtil = require("../../../data-util/purchasing/purchase-request-data-util");
var validatePR = require("bateeq-models").validator.purchasing.purchaseRequest;
var PurchaseRequestManager = require("../../../../src/managers/purchasing/purcha... | JavaScript | 0.000001 | @@ -764,37 +764,8 @@
) %7B%0A
- setTimeout(done, 20000);%0A
@@ -779,16 +779,16 @@
getDb()%0A
+
@@ -1514,37 +1514,8 @@
) %7B%0A
- setTimeout(done, 30000);%0A
@@ -1940,24 +1940,91 @@
%7D);%0A%7D);%0A%0A
+it(%22#waiting%22, function (done) %7B%0A setTimeout(done, 20000);%0A%7D);%0A%0A... |
fb0bf266f5f3d70ef3a749e4d508f3a842eb730b | add event tracking | public/init.js | public/init.js | var currentColor = "#000000";
function upload() {
if(confirm("Want to save?")) {
$.post('/upload', { imageData : pixel.getDataURL() }, function(data) {
if(typeof data.thumb != 'undefined') {
$("#images").prepend(data.thumb);
pixel.clearCanvas();
FB.ui({
method: 'fee... | JavaScript | 0.000013 | @@ -264,24 +264,134 @@
arCanvas();%0A
+ %0A // add event tracking data%0A _gaq.push(%5B'_trackEvent', 'Drawings', 'Save', data.url%5D);%0A
%0A
@@ -851,32 +851,154 @@
s published.');%0A
+ %0A // add event tracking data%0A _gaq.push(%5B'_trackEvent', 'Dr... |
22bc29a60b6a2b2fc3ae7e8d1daca9450c53f843 | Update use of Object.assign on Arrays (#554) | docs/_includes/projects/properties/defaultconverter/my-element.js | docs/_includes/projects/properties/defaultconverter/my-element.js | import { LitElement, html } from 'lit-element';
class MyElement extends LitElement {
static get properties() { return {
prop1: { type: String, reflect: true },
prop2: { type: Number, reflect: true },
prop3: { type: Boolean, reflect: true },
prop4: { type: Array, reflect: true },
prop5: { type: Ob... | JavaScript | 0 | @@ -1493,22 +1493,16 @@
'prop4',
-%0A
JSON.st
@@ -1509,34 +1509,16 @@
ringify(
-Object.assign(%5B%5D,
%5B...this
@@ -1523,25 +1523,24 @@
is.prop4
-%5D
, randy
-)
+%5D
));%0A
@@ -1873,26 +1873,8 @@
p4 =
- Object.assign(%5B%5D,
%5B..
@@ -1888,17 +1888,16 @@
rop4
-%5D
, randy
-)
+%5D
;%0A
|
1b8e3f0f5f04517072d08bf729063c2573822bc5 | load fixtures when testing with data. | src/test/cases/collection.js | src/test/cases/collection.js | var should = require('should');
var lib = require('../../index');
var config = require('../config');
describe('Collection', function () {
before(function () {
this.db = new lib.Database(config.mysql);
this.Posts = require('../collections/Posts')(this.db);
});
after(function (done) {
this.db.close(do... | JavaScript | 0 | @@ -143,32 +143,36 @@
efore(function (
+done
) %7B%0A this.db
@@ -264,16 +264,321 @@
is.db);%0A
+ this.Post = require('../models/Post')(this.db);%0A this.postsData = require('../fixtures/posts');%0A%0A lib.fixtures.loadAll(%5B%0A %7B%0A model: new this.Post(),%0A data: this.postsData%... |
2d675e9b9bed735ad783acbfdbae416dcea760fa | Fix bug in content metadata upload | static/js/content.js | static/js/content.js | var content = content||{};
content.dropCrossBox = new crossBox();
content.serviceURL = '/LabBook/content/call/run';
content.handleDragEnter = function(event, page_id) {
event.stopPropagation();
event.preventDefault();
content.dropCrossBox.elementOver = event.target;
content.dropCrossBox.pageOver = page_id;
cont... | JavaScript | 0.000001 | @@ -879,16 +879,26 @@
_content
+, metadata
) %7B%0A%09var
@@ -1052,28 +1052,24 @@
eName%22,
-file_content
+metadata
.name);%0A
@@ -1098,28 +1098,24 @@
eType%22,
-file_content
+metadata
.type);%0A
@@ -1144,28 +1144,24 @@
eSize%22,
-file_content
+metadata
.size);%0A
|
dbc676997213cf77b9e8506c5ba926df0099afbd | Update main.js | public/main.js | public/main.js | var $ = document.querySelectorAll;
function setQuote(){
//Experimental request API
var rQuotes = new Request("quotes.json");
fetch(rQuotes).then(function(response) {
return response.json()
}).then(function(quotes) {
qn = Math.floor(Math.random() * quotes.length);
$("header h1")[0].innerHTM... | JavaScript | 0.000001 | @@ -1,15 +1,41 @@
var $ =
+ function(selector)%7Breturn
documen
@@ -52,18 +52,28 @@
ectorAll
-;%0A
+(selector);%7D
%0A%0Afuncti
|
1696c9ac20d5afe659c79cd4aacbe513f9907399 | Fix loading spinner glitch. | static/js/loading.js | static/js/loading.js | const render_loader = require("../templates/loader.hbs");
exports.make_indicator = function (outer_container, opts) {
opts = opts || {};
let container = outer_container;
// TODO: We set white-space to 'nowrap' because under some
// unknown circumstances (it happens on Keegan's laptop) the text
// ... | JavaScript | 0 | @@ -2289,25 +2289,8 @@
t: 0
-, display: %22none%22
%7D);%0A
|
cb7606764bb727fe409076aabf1ae4e86c120bef | FIX the connected message, showing the configured host instead of hardcoded localhost | tidoop-mr-lib-api/src/server.js | tidoop-mr-lib-api/src/server.js | /**
* Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-tidoop (FI-WARE project).
*
* fiware-tidoop is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either v... | JavaScript | 0.000001 | @@ -5853,17 +5853,27 @@
p://
-localhost
+%22 + config.host + %22
:%22 +
|
aee80babd26704fcae363e7f7d8210d6c17fa797 | Use the same convention for the key and certificate file name as DragonConnect | DragonBoard/src/lib/util.js | DragonBoard/src/lib/util.js | 'use strict';
/**
* Expose 'Util'
*/
module.exports = Util;
/**
* Module dependencies
*/
var awsIot = require('aws-iot-device-sdk');
/**
* Constants
*/
var DEBUG=true;
var KEY_PEM='private.pem.key';
var CERT_PEM='certificate.pem.crt';
var ROOT_CA='root-CA.crt';
var LOCAL_CERT_PATH='./certs/';
var INSTALLED_C... | JavaScript | 0 | @@ -184,27 +184,19 @@
EY_PEM='
-private.pem
+aws
.key';%0Av
@@ -208,31 +208,19 @@
RT_PEM='
-certificate.pem
+aws
.crt';%0Av
|
3fef5b900cfe367523b3b7273d587186aaaaeef6 | Correct client/etherscan manual test style | testm/client/etherscan/listAccountTransactions.js | testm/client/etherscan/listAccountTransactions.js | // Import AVA
import test from 'ava'
// Imports
import sleep from '../../../src/util/sleep'
import Client from '../../../src/client/etherscan'
// Test data
const testAddress = '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae'
const testUnusedAddress
= '0xe148E5AA46401b7bEe89D1F6103776ba508024e0'
// Sleep before each te... | JavaScript | 0 | @@ -243,12 +243,12 @@
ress
-%0A
=
+%0A
'0x
|
afc0d167d92e8ba2aa8cfbc919f68974c83d9f86 | generate only the core | framework/Gruntfile.js | framework/Gruntfile.js | /**
* TMP2 Build Script
* Version: 0.0.1
*/
module.exports = function( grunt ) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// ==========================================================================\n' +
... | JavaScript | 0.999903 | @@ -1641,32 +1641,108 @@
hemproject.js',%0A
+ %7D%0A %7D,%0A bd: %7B%0A files: %7B%0A
@@ -3796,23 +3796,31 @@
dev', %5B'
-default
+preprocess:core
', 'watc
|
a4aa8a3d867bbc519d3e3c6b8aeb39f712ba5b6a | Update login.js | web.to.plex/js/login.js | web.to.plex/js/login.js | var use_global_synq_token = true;
let $ = selector => document.querySelector(selector),
R = RegExp,
apikey, country,
genres = {
28: "Action",
12: "Adventure",
16: "Animation",
35: "Comedy",
80: "Crime",
99: "Documentary",
18: "Dr... | JavaScript | 0.000001 | @@ -1182,16 +1182,20 @@
n.search
+%7C%7C''
%7D%60, '_se
@@ -1196,24 +1196,24 @@
, '_self');%0A
-
%7D%0A%7D;%0A%0A$(
@@ -1741,24 +1741,223 @@
n(json =%3E %7B%0A
+ if(json.status_message) %7B%0A $('#apikey').setAttribute('valid', false);%0A alert(json.status_message);%0A ... |
e8f12e66fe071e391905303b487a0b0d1441858b | update imports path for accordion | spark/components/masthead/react/SprkMastheadAccordion.js | spark/components/masthead/react/SprkMastheadAccordion.js | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { uniqueId } from 'lodash';
import SprkMastheadAccordionItem from '../SprkMastheadAccordionItem/SprkMastheadAccordionItem';
class SprkMastheadAccordion extends React.Component {
constructor(props) {
super(p... | JavaScript | 0 | @@ -172,35 +172,8 @@
m '.
-./SprkMastheadAccordionItem
/Spr
|
b1d2cb716bd0daa5d82a90169eeee0225ead0667 | fix timer | pf_post_autosave.user.js | pf_post_autosave.user.js | // ==UserScript==
// @name ProgrammersForumAutosave
// @namespace http://programmersforum.ru/
// @version 0.1
// @description saves new post text to localStorage and restores it if closed the page without submitting (separate for each thread)
// @author Alex P
// @include *programmersforum.r... | JavaScript | 0.000014 | @@ -117,17 +117,17 @@
0.
-1
+2
%0A// @des
@@ -1637,17 +1637,17 @@
(timer
-!
+=
= null)
|
7c1fd8655c9de7b8867c1489d2087c749c580846 | Fix preventing from posting data in form. | public/javascripts/registration-validation.js | public/javascripts/registration-validation.js | var errorNames = [];
var validator = new FormValidator('registration_form', [{
name: 'firstname',
display: 'required',
rules: 'required|alpha'
},
{
name: 'lastname',
display: 'required',
rules: 'required|alpha'
},
{
name: 'password',
rules: 'required|callback_check_password'
},
{
... | JavaScript | 0 | @@ -783,16 +783,18 @@
) %7B%0A
+//
event.pr
|
f4dbc994836467dfe9725d733b60baeaa3c13e81 | Add JSDoc comments to PDFOutlineView | web/pdf_outline_view.js | web/pdf_outline_view.js | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | JavaScript | 0 | @@ -761,64 +761,421 @@
';%0A%0A
-var PDFOutlineView = (function PDFOutlineViewClosure() %7B
+/**%0A * @typedef %7BObject%7D PDFOutlineViewOptions%0A * @property %7BHTMLDivElement%7D container - The viewer element.%0A * @property %7BArray%7D outline - An array of outline objects.%0A * @property %7BIPDFLinkService%7D li... |
ae2fb9c5be28f55a03bb3fc28c1cb1bb5e761584 | Fix incorrect initialization of startStates. | js/DFA.js | js/DFA.js | function DFA(useDefaults) {
this.transitions = {};
this.startState = useDefaults ? 'start' : null;
this.acceptStates = useDefaults ? ['accept'] : null;
this.processor = {
currentInput: null,
currentState: null,
inputIndex: 0,
status: null,
};
}
DFA.prototype.transition = funct... | JavaScript | 0.000004 | @@ -144,28 +144,26 @@
'accept'%5D :
-null
+%5B%5D
;%0D%0A %0D%0A thi
|
dc4de0ce3087619ce5f2d197d2c1ddb4850d8252 | fix bugs, switch to arraysEqual method | konami.js | konami.js | // https://github.com/lasercar/konamijs
var Konami = (function() {
'use strict';
//arbitrary functions to be run when code is entered correctly
var callbacks = [];
function activate() {
var deleted = [];
//run all the callback functions
callbacks.forEach(function(item, position) {
item.callb... | JavaScript | 0.000001 | @@ -77,16 +77,276 @@
rict';%0A%0A
+ function arraysEqual(a, b) %7B%0A if (a === b) return true;%0A if (a == null %7C%7C b == null) return false;%0A if (a.length != b.length) return false;%0A%0A for (var i = 0; i %3C a.length; ++i) %7B%0A if (a%5Bi%5D !== b%5Bi%5D) return false;%0A %7D%0A return... |
a62ea4659debf47dca6dd8e1a649adfff4ad21e3 | fix eslint complaint | src/tree/model/tree-store.js | src/tree/model/tree-store.js | import Node from './node';
import { getNodeKey } from './util';
export default class TreeStore {
constructor(options) {
this.currentNode = null;
this.currentNodeKey = null;
for (let option in options) {
if (options.hasOwnProperty(option)) {
this[option] = options[option];
}
}
... | JavaScript | 0.000001 | @@ -7142,10 +7142,9 @@
%7D%0A %7D%0A%7D
-;
%0A
|
9c378db3a6a40dd71e4217bd3e1e5baf9873f3bf | Make the script executable | tools/check-dev-dependencies.js | tools/check-dev-dependencies.js | var checkVersion, exec, execAsync, exitCode;
exitCode = 0;
({exec} = require("child_process"));
execAsync = function(command) {
return new Promise(function(resolve, reject) {
return exec(command, function(err, stdout, stderr) {
if (err != null) {
return reject(err);
}
return resolve({... | JavaScript | 0.000344 | |
7a5d67e967d1828c190e38d9ba60d88b480b7972 | Fix regexes | unfuck.js | unfuck.js | +function() {
'use strict';
// A lot of javascript developers will hate me for
// extending the standard objects but I honestly
// don't care.
// Alias the prototype objects
var sProto = String.prototype,
aProto = Array.prototype,
oProto = Object.prototype,
nProto ... | JavaScript | 0.999957 | @@ -1130,33 +1130,32 @@
ace(new RegExp('
-/
%5E%5B' + str + '%5D+%7C
@@ -1169,17 +1169,20 @@
r + '%5D+$
-/
+', '
g'), '')
@@ -1518,17 +1518,16 @@
RegExp('
-/
%5E%5B' + st
@@ -1533,17 +1533,16 @@
tr + '%5D+
-/
'), '');
@@ -1878,17 +1878,16 @@
RegExp('
-/
%5B' + str
@@ -1893,17 +1893,16 @@
r + '%5D+$
-/
'), '... |
e3a793dddd4663898ef454d98d6ad564959693da | save filenames without spaces | src/electron/electron.js | src/electron/electron.js | // src/electron/electron.js
const {
app,
BrowserWindow
} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow() {
// Create the browser window.
win = new B... | JavaScript | 0.000006 | @@ -2455,13 +2455,23 @@
tle.
-trim(
+replace(' ', ''
) +
|
caf77a3b517ef08bed2c8aa830fb6752f7aa1267 | Add CORS to WDS config | webpack.config.babel.js | webpack.config.babel.js | // @flow
import path from 'path'
import webpack from 'webpack'
import { WDS_PORT, isProd } from './src/shared/config'
export default {
entry: [
'react-hot-loader/patch',
'./src/client',
],
output: {
filename: 'js/bundle.js',
path: path.resolve(__dirname, 'dist'),
publicPath: isProd ? '/stat... | JavaScript | 0 | @@ -620,16 +620,80 @@
: true,%0A
+ headers: %7B%0A 'Access-Control-Allow-Origin': '*',%0A %7D,%0A
%7D,%0A p
|
2dcbe9aa5919df20390944185bc19c61a5302b00 | Set publicPath so routes always look to the root for js/css/etc | webpack.config.babel.js | webpack.config.babel.js | import path from 'path';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
module.exports = {
context: path.resolve(__dirname, 'src'),
entry: {
main: 'app.js',
vendor: [ 'react', 'react-dom', 'react-router', 'mo... | JavaScript | 0 | @@ -378,24 +378,45 @@
, 'build'),%0A
+ publicPath: '/',%0A
filename
|
528faa4c7839b41f527a8134c29561a7ebd7ea4d | fix a mistake about calculating the signature | qingyun-cli.js | qingyun-cli.js | var crypto = require('crypto');
var https = require('https');
var console = require('console');
var querystring = require('querystring');
var accessKeyID = require('./api-key.json').accessKeyID;
var secrectAccessKey = require('./api-key.json').secrectAccessKey;
function GenerateSignature (method, uri, url) {
var ... | JavaScript | 0.998711 | @@ -491,36 +491,20 @@
-return url + '&signature=' +
+var base64 =
new
@@ -542,16 +542,132 @@
se64');%0A
+ for (x in base64) %7B%0A %09if (base64%5Bx%5D == ' ') base64%5Bx%5D = '+';%0A %7D%0A%0A return url + '&signature=' + base64;%0A
%7D%0A%0Afunct
|
211155aaa6be577ba2a36b78bf6e16d1fabfa31f | use DIV as button container | libsjs/oui/widget/button.js | libsjs/oui/widget/button.js | /**
* Button widget.
*
* @octdoc widget/button
* @copyright copyright (c) 2012 by Harald Lapp
* @author Harald Lapp <harald@octris.org>
*/
/**/
;(function() {
if ('button' in oui) return;
/**
* Constructor.
*
* @octdoc button/
* @public
* @param string ... | JavaScript | 0 | @@ -887,14 +887,11 @@
= '
-BUTTON
+DIV
';%0A
|
93ecea76434647896141a7c07c183d5a32ebf189 | Update Guru.js | TamperMonkey/Guru.js | TamperMonkey/Guru.js | // ==UserScript==
// @name Guru HD
// @namespace http://omnimed.com/
// @version 0.2
// @description View HD
// @author fcorriveau
// @match https://app.getguru.com/*
// @grant none
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
(function() {
'u... | JavaScript | 0.000001 | @@ -92,17 +92,17 @@
0.
-2
+3
%0A// @des
@@ -621,37 +621,35 @@
'width': '1
-790px
+00%25
',%0A '
@@ -666,13 +666,11 @@
: '1
-790px
+00%25
',%0A
|
9c368411b3f74ec5c9bb216c91bbd65257b2cb91 | Add audit to User schema | models/User.js | models/User.js | 'use strict';
const bcrypt = require('bcrypt-nodejs');
const gstore = require('gstore-node');
const userSchema = new gstore.Schema({
email: { type: 'string', validate: 'isEmail', required: true },
password: { type: 'string', excludeFromIndexes: true },
passwordResetToken: 'string',
passwordResetExpires: 'date... | JavaScript | 0 | @@ -87,16 +87,71 @@
-node');
+%0Aconst %7B auditDelete, auditSave %7D = require('./hooks');
%0A%0Aconst
@@ -888,24 +888,99 @@
solve();%0A%7D);
+%0AuserSchema.post('delete', auditDelete);%0AuserSchema.pre('save', auditSave);
%0A%0A/**%0A * Hel
|
7ecb2b756566b9d9474549263b5f78616d936185 | update author response of testing server | src/mock-data/authors.js | src/mock-data/authors.js | import author1 from './author1.json'
import author2 from './author2.json'
import author3 from './author3.json'
import author4 from './author4.json'
import authors from './authors.json'
// lodash
import find from 'lodash/find'
const _ = {
find,
}
const mocks = {
authors: authors.data,
author1: author1.data,
a... | JavaScript | 0.000073 | @@ -6,17 +6,16 @@
t author
-1
from '.
@@ -21,17 +21,16 @@
./author
-1
.json'%0Ai
@@ -41,17 +41,20 @@
t author
-2
+Post
from '.
@@ -64,52 +64,30 @@
thor
-2
+-post
.json'%0A
-import author3 from './author3.json'
+%0A// lodash
%0Aimp
@@ -95,92 +95,73 @@
rt a
-uthor4
+ssign
from '
-./author4.json'%0Aimport au... |
f428a0f5b9a500e61117793d74b0610db8b58304 | Add new players, album recognizing | connectors/v2/farfrommoscow.js | connectors/v2/farfrommoscow.js | 'use strict';
/* global Connector */
Connector.playerSelector = '.global-content';
Connector.isPlaying = function () {
return $('.player-buttonPause').length ? true : $('.Artist-Mini-Playing').length;
};
Connector.getArtistTrack = function () {
var artist = $('.AR-wrap:has(.Artist-Mini-Playing) .AR-name').length ... | JavaScript | 0 | @@ -159,276 +159,594 @@
gth
-? true : $('.Artist-Mini-Playing').length;%0A%7D;%0A%0AConnector.getArtistTrack = function () %7B%0A%09var artist = $('.AR-wrap:has(.Artist-Mini-Playing) .AR-name').length ? $('.AR-wrap:has(.Artist-Mini-Playing) .AR-name').text() : $(':has(.Artist-Mini-Playing) %3E div %3E .Artist-link
+%... |
b51b9af66fa9f22bce327543a548730c81ae99e4 | set active route on startup | frontend/src/router.js | frontend/src/router.js | import Vue from 'vue';
import VueRouter from 'vue-router';
import Recommendations from './components/recommendations';
import Venues from './components/venues';
Vue.use(VueRouter);
const routes = [
{
path: '/recommendations',
alias: '/',
name: 'recommendations',
component: Recommendations
}, {
... | JavaScript | 0.000001 | @@ -387,22 +387,22 @@
%5D;%0A%0A
-export default
+const router =
new
@@ -427,8 +427,69 @@
tes%0A%7D);%0A
+%0Arouter.replace('/recommendations');%0A%0Aexport default router;%0A
|
ae7f2fc910d327023034a24161865d35f9f2bd9a | add open at new tab for firefox | container/firefox/container.js | container/firefox/container.js | ;(function(HostAdmin){
const EDITOR_URL = 'chrome://hostadmin/content/editor.html';
const PERM_HELP_URL = HostAdmin.PERM_HELP_URL;
// {{{ copy from https://developer.mozilla.org/en-US/docs/Code_snippets/Tabbed_browser
function openAndReuseOneTabPerURL(url) {
var wm = Components.classes["@mozilla.org/appshell/win... | JavaScript | 0.000001 | @@ -1940,16 +1940,37 @@
LP_URL;%0A
+%09%09%7Delse%7B%0A%09%09%09url = t;%0A
%09%09%7D%0A%0A%09%09i
|
19d7e5698105291d32a275ba8b871aab82b6e5bd | Add category in server get attractions response | src/models/attraction.js | src/models/attraction.js | var mongoose = require('mongoose'),
_ = require("underscore"),
validator = require('mongoose-validator'),
extend = require('mongoose-schema-extend'),
Schema = mongoose.Schema;
// Find project working directory
var src = process.cwd() + '/src/';
// Load Models
var Point = require(src + 'models/point'),... | JavaScript | 0 | @@ -1527,32 +1527,69 @@
: this.name,%0A
+ category : this.category,%0A
descript
@@ -1985,32 +1985,69 @@
: this.name,%0A
+ category : this.category,%0A
descript
|
6346a60f6bcdf544349d4ccaced54ba326d4845f | Fix Internal Server Error (500) while null predicates. | src/models/predicates.js | src/models/predicates.js | 'use strict';
var errors = require('../util/errors'),
helpers = require('../util/helpers'),
combinators = require('../util/combinators'),
stringify = require('json-stable-stringify');
function forceStrings (obj) {
if (typeof obj !== 'object') {
return obj;
}
return Object.keys(obj).red... | JavaScript | 0.999981 | @@ -1354,24 +1354,84 @@
ction (o) %7B%0A
+ if (!o) %7B%0A return o;%0A %7D%0A
@@ -1964,24 +1964,69 @@
redicate) %7B%0A
+ if (!actual) %7B%0A return false;%0A %7D%0A
return O
|
e9bd8d59057a08dad622b4852e81b842db5c5ae7 | Update plugin generator for new prompt library | plugin/index.js | plugin/index.js |
'use strict'
var util = require('util')
, path = require('path')
, fs = require('fs')
, yeoman = require('yeoman-generator')
, config = require('./../config.js')
module.exports = Generator
function Generator() {
yeoman.generators.Base.apply(this, arguments)
this.sourceRoot(path.join(__dirname, ... | JavaScript | 0 | @@ -965,19 +965,16 @@
unction(
-e,
props) %7B
@@ -978,62 +978,8 @@
) %7B%0A
- if(e) %7B%0A return self.emit('error', e)%0A %7D%0A%0A
@@ -1068,17 +1068,16 @@
cb()%0A
-%0A
%7D)%0A%7D%0A%0A
|
4101c6f66c9f21f14d0bd8bdd202edd32403b252 | fix null value for the content | plugin/rules.js | plugin/rules.js | /**
* Created by Nicolas on 10/25/15.
*/
(function (Rules) {
'use strict';
var database = require('./database'),
logger = require('./logger'),
nodebb = require('./nodebb');
var cache = nodebb.cache;
var rulesList = [];
Rules.invalidate = function (done) {
database.g... | JavaScript | 0.000005 | @@ -949,32 +949,59 @@
ontent, done) %7B%0A
+ if (content) %7B%0A
var i =
@@ -1042,16 +1042,20 @@
+
for (i;
@@ -1078,24 +1078,28 @@
+
+
rule = rules
@@ -1107,16 +1107,20 @@
ist%5Bi%5D;%0A
+
@@ -1180,35 +1180,43 @@
ement);%0A
+
+
%7D%0A... |
aa08785af483759c5e06ef23829b780bf128b3d6 | fix translate | js/app.js | js/app.js | 'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'ui.bootstrap',
'pascalprecht.translate'
]).
config(['$routeProvider','$translate', function($routeProvider,$translate) {
$routeProvider
.when('/', {
templateUrl: 'templates/bienvenido.ht... | JavaScript | 0.027254 | @@ -192,21 +192,8 @@
er',
-'$translate',
fun
@@ -216,19 +216,8 @@
ider
-,$translate
) %7B%0A
@@ -900,45 +900,8 @@
);%0A%0A
- $translate.preferredLanguage('es')%0A
%7D%5D);
|
faacc4d23648592ee62a1bcccebb41202908844b | Support multiple elements with the same value. | js/app.js | js/app.js | /*global $*/
// Global namespace for the app
var app = {};
// Expose it for introspection
window.app = app;
// Set up pointers to useful elements
app.hooks = {};
$('[data-hook]').each(function (i, el) {
var $el = $(el);
// Convert hyphen-names to camelCase in hooks
var hook = $el.data('hook').replace(/-([a-z]... | JavaScript | 0 | @@ -210,18 +210,266 @@
var
-$el =
+dataHook = $(el).data('hook'),%0A // Get _all_ elements for a data-hook value, not just the single element%0A // in the current iteration. Supports multiple elements with the same%0A // data-hook value.%0A
$
-(
el
+ = $('%5Bdata-hook=%22' + dataHook + '%22%5D'... |
beadb85e8a30a2f8c6eeeee1a841d28583a36c20 | Update value sent on update subscription | src/app/components/traineeships/TraineeshipsContainer.js | src/app/components/traineeships/TraineeshipsContainer.js | import React, { Component } from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import { List, ListItem } from 'material-ui/List';
import { Row, Col } from 'react-flexbox-grid';
import CircularProgress from 'material-ui/CircularProgress';
import FloatingActionBu... | JavaScript | 0 | @@ -2926,16 +2926,33 @@
ingify(%7B
+ ...subscription,
data: %7B
|
f4adf904d3c94f7972b92c3bf662f07086ed7e61 | Use process.exitCode to indicate failure | lifecycleScripts/install.js | lifecycleScripts/install.js | var promisify = require("promisify-node");
var path = require("path");
var fs = require("fs");
var whichNativeNodish = require("which-native-nodish");
var prepareForBuild = require("./prepareForBuild");
var exec = promisify(function(command, opts, callback) {
return require("child_process").exec(command, opts, call... | JavaScript | 0.000001 | @@ -3142,24 +3142,52 @@
ssfully.%22);%0A
+ process.exitCode = 0;%0A
%7D,%0A f
@@ -3260,22 +3260,51 @@
or(stderr);%0A
+ process.exitCode = 13;%0A
%7D);%0A%7D%0A
|
f19b5d4c12ac7ad0dd0460ce48b32fd58f1d4044 | Add update method to List | models/list.js | models/list.js | var fs = require('fs');
var uuid = require('node-uuid');
/**
* A list containing todo items
* @param {String} name The name of the list
* @param {Array} todos An array of todo names
*/
var List = function(id, name, todos) {
this.id = '';
this.name = name;
this.todos = [];
};
List.prototype = (function () ... | JavaScript | 0 | @@ -842,24 +842,282 @@
%7D);%0A %7D,%0A%0A
+ update: function (args, callback) %7B%0A this.name = args.name %7C%7C this.name;%0A this.todos = args.todos %7C%7C this.todos;%0A this.save(function (err, data) %7B%0A if (err) %7B callback(err); return; %7D%0A callback(null, data);%0A ... |
1a78bdf874a51afda0f7458e49600dfcf5017287 | Update Tank_temp.js | content/temp_json/Tank_temp.js | content/temp_json/Tank_temp.js | {
'type': 'Arcade', // game or console
'name': 'Tank',
'authors': ['Steve Bristow', 'Lyle Rains'],
'company': ['Atari'],
'year': '1974',
'date': '05-11-1974', // Day, Month, Year
'headline': 'First Game about Tanques',
'resume': [
'Tank foi u... | JavaScript | 0.000001 | @@ -1065,81 +1065,195 @@
os
-',%0A 'ligula ornare nibh, elit suspendisse tortor sed volutpat,
+jogadores ficam no canto superior direito ',%0A 'e no canto inferior esquedo respectivamente.Tank foi o primeiro jogo a usar uma ROM baseada no IC para armazenar dados gr%C3%A1ficos.
',%0A
|
a41b12f25cbe0b86e14d99dcb6e62e6b8c1592d5 | update util/jcolorz/engine — add circular type check to colorify function | src/util/jcolorz/engine.js | src/util/jcolorz/engine.js | var colorz = require('../colorz')
function engine () {
var options
function kindOf (value) {
if (value === null) return 'null'
if (value === undefined) return 'undefined'
if (Array.isArray(value)) return 'array'
return typeof value === 'object'
? Object.prototype.toString.call(value)
.replace(/... | JavaScript | 0 | @@ -2925,16 +2925,77 @@
var type
+%0A%0A if (value === '%5BCircular%5D') type = 'circ'%0A else type
= getTy
@@ -3000,24 +3000,25 @@
Type(value)%0A
+%0A
var colo
|
a1b09336ecc880fbeaa093a2488245934df7a07a | Set Button Click Handler | js/app.js | js/app.js | ///Simple Task List Application
///Author: Joe Hochgreve///
var taskInput; //new-task
var addButton; //first button
var incompleteTaskHolder; //incomplete-tasks
var completedTaskHolder; //completed-tasks
//add a new task
var addTask = function(){
//when the button is pressed
//create a new list item with the text... | JavaScript | 0 | @@ -71,119 +71,293 @@
nput
-; //new-task%0Avar addButton; //first button%0Avar incompleteTaskHolder; //incomplete-tasks%0Avar completedTaskHolder
+ = document.getElementById('new-task'); //new-task%0Avar addButton = document.getElementsByTagName('button')%5B0%5D; //first button%0Avar incompleteTaskHolder = document.ge... |
53beef54497b0049dd7b0dc6aa0234583f1096a2 | Disable window.onerror | src/util/window_onerror.js | src/util/window_onerror.js | // We have to rely on the magic locals provided by header.js right now
// Once we're decoupled we'll be able to require notifier directly
var Notifier = require("../concat-dist");
// TODO: Drive this from somewhere rather than having it happen automatically
global.onerror = function (message, file, line) {
setTimeou... | JavaScript | 0.000004 | @@ -1,8 +1,11 @@
+//
// We ha
@@ -69,16 +69,19 @@
t now%0A//
+ //
Once we
@@ -137,16 +137,19 @@
irectly%0A
+//
var Noti
@@ -183,16 +183,19 @@
ist%22);%0A%0A
+//
// TODO:
@@ -264,16 +264,19 @@
tically%0A
+//
global.o
@@ -317,16 +317,19 @@
line) %7B%0A
+//
setTim
@@ -347,20 +347,23 @@
on () %7B%0A
+//... |
f272eb8b53cf6c9d817aaf6924a21cd89c0ee393 | Update app.js | js/app.js | js/app.js | /*
UScan Technologies RFID Management System v0.1.0
Simplistic, elegant, and efficient RFID Management System
uscantechnologies.com
License: Attribution-NonCommercial-ShareAlike 4.0 International
*/
/* doesn't work
$(document).ready(function() {
$('.bar2').click(function() {
$(".tablez").animate({
... | JavaScript | 0.000002 | @@ -817,16 +817,16 @@
id=1
-09645637
+78440485
5%22;%0A
|
e1ac575e5b778f3bbaaaa5bcba6cabce758afe69 | update for new server | js/bcl.js | js/bcl.js | BCL = {};
var BCL = {
createloop:function(aNode,aDistance){
urlStr = "http://50.19.41.163:3000/bcl/loop/"+aNode+"/"+aDistance; //54.197.234.215
$('#bLoop').html('Create Another Loop <span class="glyphicon glyphicon-exclamation-sign"></span>');
$.ajax({
type : "GET",
url: urlStr,
dataT... | JavaScript | 0 | @@ -78,20 +78,21 @@
p://
-50.19.41.163
+107.20.110.87
:300
|
9ea79b5c8bec6a701e4bd16f6be5e60ded4830dc | Update helpers | src/app/utils/helpers.js | src/app/utils/helpers.js | /** @module utils/helpers */
import nem from 'nem-sdk';
/**
* Check if wallet already present in an array
*
* @param {string} walletName - A wallet name
* @param {array} array - A wallets array
*
* @return {boolean} - True if present, false otherwise
*/
let haveWallet = function(walletName, array) {
let i ... | JavaScript | 0 | @@ -4383,24 +4383,46 @@
tion(obj) %7B%0A
+ if (!obj) return;%0A
return O
@@ -4448,16 +4448,427 @@
gth;%0A%7D%0A%0A
+/**%0A * Date object to YYYY-MM-DD format%0A *%0A * @param %7Bobject%7D date - A date object%0A *%0A * @return %7Bstring%7D - A short date%0A */%0Alet toShortDate = function(date) %7B%0A let ... |
0fd27c4fe6d379b7c7dd6589c3b6c2ea084220c4 | Add context.isDefined to check registrations without triggering factories. | src/foam/core/Context.js | src/foam/core/Context.js | /**
* @license
* Copyright 2016 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 requir... | JavaScript | 0 | @@ -2166,32 +2166,164 @@
e_%5Bid%5D;%0A %7D,%0A%0A
+ isDefined: function(id) %7B%0A return !! this.__cache__%5Bid%5D &&%0A ! foam.Function.isInstance(this.__cache__%5Bid%5D);%0A %7D,%0A%0A
/**%0A * R
|
6af3ea3ac41f290fb3d45bfe99b30964c6ba3b0a | Add another runtime test, try using mock functions | dynamic-runtime/src/__tests__/runtime-test.js | dynamic-runtime/src/__tests__/runtime-test.js | 'use strict';
import UserDefinition from '../UserDefinition';
describe('runtime', () => {
test('user defined identity function', () => {
const def = new UserDefinition(null, {
inputs: [
{tempo: 'step'},
],
output: {tempo: 'step'},
});
def.addConnection(def.definitionInputs[0],... | JavaScript | 0 | @@ -358,14 +358,28 @@
tput
-s = %5B%5D
+Callback = jest.fn()
;%0A
@@ -440,55 +440,803 @@
%7D%5D,
-(output) =%3E %7B%0A outputs.push(output);%0A %7D
+outputCallback);%0A%0A expect(outputCallback.mock.calls).toEqual(%5B%5B123%5D%5D);%0A outputCallback.mockClear();%0A%0A act.update(%5B%7Bvalue: 456,... |
0d83fa4ef1419ea68f3e6a2a54e1fb066d6ff86a | Fix for plug-in: Bing | plugins/bing.js | plugins/bing.js | var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Bing',
prepareImgLinks:function (callback) {
var currSrc;
$('a[m*="murl"]').one('mousemove', function() {
var link = $(this),
m = this.getAttribute('m'),
m1 = m.replace(/([{|... | JavaScript | 0 | @@ -81,16 +81,35 @@
'Bing',%0A
+ version:'0.2',%0A
prep
@@ -138,24 +138,25 @@
callback) %7B%0A
+%0A
var
@@ -155,23 +155,24 @@
var
-currSrc
+res = %5B%5D
;%0A%0A
@@ -184,45 +184,25 @@
'a%5Bm
-*=%22murl%22%5D').one('mousemove',
+%5D').each(
function
() %7B
@@ -189,32 +189,33 @@
').eac... |
6037273723921258b015befa07e8e85eba619a2f | Fix wrong css file path | SFcomicViewer.user.js | SFcomicViewer.user.js | // ==UserScript==
// @name SFcomic Viewer
// @namespace
// @version 1.1.1
// @description A userscript for convenient viewing SFcomic.
// @author AntonioTsai
// @include /^http[s]?\:\/\/comic.sfacg.com\/HTML\/.*\/$/
// @include /^http[s]?\:\/\/manhua.sfacg.com\/mh\/.*\/$/
// @include ... | JavaScript | 0.000041 | @@ -1234,17 +1234,21 @@
ter/
-README.md
+css/style.css
'%0A
|
f71b3e80268cb765ed39e4432032e3b977ceaf6c | Fix login flow [WAL-3245] | src/auth/auth-service.js | src/auth/auth-service.js | /*
* For security reasons, third-party authentication backends, such as SAML2,
* expect that when user is logged out, he is redirected to the logout URL so that
* user session would be cleaned both in Waldur and authentication backend.
*
* Consider the following workflow:
*
* 1) When login is completed, authenti... | JavaScript | 0 | @@ -1053,16 +1053,74 @@
store';%0A
+import %7B UsersService %7D from '@waldur/user/UsersService';%0A
import %7B
@@ -1171,16 +1171,16 @@
tions';%0A
-
%0Aexport
@@ -1774,37 +1774,166 @@
this.
-loginSuccess(response
+setAuthHeader(response.data.token);%0A const user = await UsersService.getCurrentUser();%0A ... |
e117e175b15d2bf92611df675b10edb78001474e | Use correct German. | src/weirdPlayer/translate.js | src/weirdPlayer/translate.js | ;window.weirdPlayer.translate = (function (window) {
var exports = {},
util = window.weirdPlayer.util,
query = util.query,
attr = util.attr,
log = util.log,
defined = util.defined;
var translations = {
en: {},
fr: {"Now playing:": "Joue maint... | JavaScript | 0.000004 | @@ -459,25 +459,25 @@
isitez Weird
--
+
Canada%22,%0A
@@ -541,13 +541,12 @@
tzt
-spiel
+l%C3%A4uf
t:%22,
@@ -578,18 +578,23 @@
%22: %22
-S
+Abs
piel
-/Halt
+en/Pause
%22,%0A
@@ -626,16 +626,17 @@
%22N%C3%A4chste
+s
Lied%22,%0A
@@ -675,13 +675,14 @@
%22: %22
-Check
+Besuch
en S
@@ -693,19 +693,15 @@
e... |
2098c62854f5dd156a38d2db71d354c9397cabd2 | Update intent.js | src/components/intent.js | src/components/intent.js | import xs from 'xstream'
import {last} from 'ramda'
import {html} from 'snabbdom-jsx'
export default function(sources){
const request$ = xs.of({
url: 'http://api.hurrycane.fr:9000/intent', // GET method by default
category: 'intent',
})
const response$ = sources.HTTP
.select('inte... | JavaScript | 0.000001 | @@ -162,16 +162,17 @@
l: 'http
+s
://api.h
@@ -1087,8 +1087,9 @@
%7D %0A%7D
+%0A
|
8f49e90219521eb44a622289523721f3576369b6 | Update Rainbow.js | src/gamemodes/Rainbow.js | src/gamemodes/Rainbow.js | var FFA = require('./FFA'); // Base gamemode
var Food = require('../entity/Food');
function Rainbow() {
FFA.apply(this, Array.prototype.slice.call(arguments));
this.ID = 3;
this.name = "Rainbow FFA";
this.specByLeaderboard = true;
this.colors = [{
'r': 255,
'g': 0... | JavaScript | 0 | @@ -1,5 +1,4 @@
-%EF%BB%BF
var
@@ -2955,17 +2955,16 @@
ode.
-setC
+c
olor
-(
+ =
this
@@ -2984,17 +2984,16 @@
rainbow%5D
-)
;%0A no
|
edc0b5f78eb67fc0f194b0026ed6670e63aa3b12 | Update coldfront.js | chat-plugins/coldfront.js | chat-plugins/coldfront.js | /**
* Frost ___ Plugin
* Informational commands
* by: panpawn
*/
var link_to_newest_issue = Rooms.rooms.lobby.frostMagLink;
exports.commands = {
coldfront: 'frostmag',
frostmag: function (target, room, user, connection) {
if (room.id !== 'coldfront') return false;
if (!this.canTalk()) return;
var mag = target;... | JavaScript | 0.000001 | @@ -637,16 +637,53 @@
= mag2;%0A
+%09%09%09Rooms.global.writeChatRoomData();%0A
%09%09%09this.
|
b646da16ce6b37708003b53d04c4f02dcf9619ac | update jup | src/objects/Character.js | src/objects/Character.js | const LimitY = 550;
const TimeLapse = 10;
class Character extends Phaser.Sprite {
constructor(game, x, y, key, frame) {
super(game, x, y, key, frame);
//Enable physics on the player
game.physics.arcade.enable(this);
this.body.bounce.x = this.body.bounce.y = 0;
this.cursor = game.input.keyboard.cr... | JavaScript | 0.000001 | @@ -1611,18 +1611,18 @@
ty.y = -
-27
+15
0;%0A
|
b0b735fd0ed556dd27a6126dcd7e677204dab7ac | Refactor `toggleMenu` in `MobileNavigation` by breaking it out into `showMenu` and `hideMenu` | admin/client/components/MobileNavigation.js | admin/client/components/MobileNavigation.js | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import { Container } from 'elemental';
var MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
className: React.PropTypes.strin... | JavaScript | 0 | @@ -2354,221 +2354,253 @@
this
-.setState(%7B%0A%09%09%09menuIsVisible: !this.state.menuIsVisible%0A%09%09%7D, () =%3E %7B%0A%09%09%09let body = document.getElementsByTagName('body')%5B0%5D;%0A%0A%09%09%09if (this.state.menuIsVisible) %7B%0A%09%09%09%09body.style.overflow = 'hidden';%0A%09%09%09%7D e
+%5Bthis.state.me... |
a9733baeb277be00b3ec531491c46178772d8d07 | Remove value input methods from value mixin. Fix a bug where a value was not set properly in values that dont support value property. | Source/Mixin/Value.js | Source/Mixin/Value.js | /*
---
script: Value.js
description: Add your widget have a real form value.
license: Public domain (http://unlicense.org).
requires:
- LSD.Mixin
provides:
- LSD.Mixin.Value
...
*/
LSD.Mixin.Value = new Class({
options: {
actions: {
value: {
enable: function() {
if (LSD.M... | JavaScript | 0 | @@ -2740,136 +2740,102 @@
-var input =
+if
(this.
-canE
+e
lement
-HoldValue() %7C%7C typeof(this.element.value != 'undefined')) && this.element%0A if (input) input.
+) this.element%5B(this.element.get('tag') != 'select') ? 'setAttribute' : '
set
+'%5D
('va
@@ -4442,494 +4442,8 @@
ta;%0A
- %7D,%0A %0... |
189e28bfd61d0164f4665df24b4a20e84ff20b8e | remove unused fns | corehq/apps/analytics/static/analytix/js/deprecated.js | corehq/apps/analytics/static/analytix/js/deprecated.js | /* globals _, _kmq */
// Deprecated analytics globals
var kmqPushSafe, // eslint-disable-line no-unused-vars
analytics; // eslint-disable-line no-unused-vars
window.analytics = {};
// to support deprecated direct ga() calls
var ga = window.ga || function () {
var _global = hqImport('analytics/js/initial').ge... | JavaScript | 0.000006 | @@ -185,581 +185,8 @@
%7D;%0A%0A
-// to support deprecated direct ga() calls%0Avar ga = window.ga %7C%7C function () %7B%0A var _global = hqImport('analytics/js/initial').getFn('global');%0A if (_global('isEnabled')) %7B%0A hqImport('analytics/js/google').logger.warning.log(arguments, 'no global ga functi... |
89283e07d71d186b2e2a2ec691a27f924ba9c2f5 | Fix message structure | network/fetch.js | network/fetch.js | /**
* Dependency on the CORS module.
* @type {object}
*/
let createCORSRequest = require('./cors');
let cancellablePromiseBuilder = require('./cancellable-promise-builder');
let uuid = require('uuid').v4;
let dispatcher = require('../dispatcher');
let isObject = require('lodash/lang/isObject');
/**
* Create a pending ... | JavaScript | 0.000008 | @@ -1335,16 +1335,44 @@
lErrors:
+ %5B%7B%0A message:
%60$%7Breq.
@@ -1410,18 +1410,34 @@
q.re
-questURL%7D%60
+sponseURL%7D%60%0A %7D%5D
%0A
|
1950fcc7db27d0bbc6f69eadfcd524fd5bdb84a9 | Update thisismadness.js | madness/js/thisismadness.js | madness/js/thisismadness.js | $(document).ready(function(){
madness();
});
function madness(){
var mad_text = [];
}
| JavaScript | 0.000001 | @@ -61,16 +61,63 @@
ness()%7B%0A
+ var canvas = document.getElementById(%22mad%22);%0A
var ma
|
203141756b607f0f329f9f55638bc947e1caa67e | send back email if the url that is formed as a result of the user input is invalid | update.js | update.js | var User = require('./server/models/user');
var Request = require('./server/models/request');
var config = require('./config')
var urlRequest = require('request');
var nodemailer = require('nodemailer');
var runEveryFiveMinute = function() {
var minutes = 0.1, the_interval = minutes * 60 * 1000;
setInterval(function... | JavaScript | 0.000251 | @@ -255,11 +255,9 @@
s =
-0.1
+5
, th
@@ -2221,18 +2221,141 @@
ng %3E 0)%7B
-%7D
%0A
+ %09sendEmail(request, seatsRemaining);%0A %7D%0A
@@ -2431,57 +2431,78 @@
- sendEmail(request, seatsRemaining);%0A%0A
+... |
71e719b7b36c0c0510b417b925b9356f7d08c6ce | Fix bug where package-attribute.decorate would remove values from other packages | src/package-attribute.js | src/package-attribute.js | var packageJson = require('json!streamhub-wall/../package.json');
var packageAttribute = 'data-lf-package';
/**
* Decorate an HTMLElement with the proper package attribute
* for streamhub-wall e.g.
* data-lf-package="streamhub-wall#3.0.0"
*/
exports.decorate = function (el) {
var currentVal = el.getAttribute(p... | JavaScript | 0.000001 | @@ -100,16 +100,70 @@
ackage';
+%0Avar packageAttributeValue = packageName(packageJson);
%0A%0A/**%0A *
@@ -383,16 +383,22 @@
tribute)
+ %7C%7C ''
;%0A va
@@ -403,219 +403,192 @@
var
-newVal = packageName(packageJson);%0A // If there already was this attribute, and it doesn't contain the%0A // new attr v... |
a92d879d34468246db1659ef80b17850c80cd422 | Fix path handling bugs | upload.js | upload.js | const P = require('bluebird');
const auth = require('./lib/auth');
const crypto = require('crypto');
const fse = require('fs-extra-promise');
const os = require('os');
const path = require('path');
const restify = require('restify');
module.exports = function config(opts) {
opts = opts || {};
const root = opts.ro... | JavaScript | 0.000003 | @@ -746,16 +746,22 @@
resolve(
+root,
tok.team
@@ -855,16 +855,19 @@
rsAsync(
+abs
dir)%0A%0A
|
9fede395036002b22650e56283066d5b7a1005c8 | fix modal shade issue | app/activity_detail/ad_participates_item.js | app/activity_detail/ad_participates_item.js | import React from 'React';
export default class Ad_participates_item extends React.Component{
constructor(props){
super(props);
this.state = props.data;
}
render(){
return(
<li className="media">
<div className="media-left">
<img className="media-object" src={this.s... | JavaScript | 0 | @@ -19,16 +19,58 @@
'React';
+%0Aimport %7BhashHistory%7D from 'react-router';
%0A%0Aexport
@@ -204,16 +204,115 @@
a;%0A %7D%0A%0A
+ handleRedirect(e)%7B%0A e.preventDefault();%0A hashHistory.push(%22profile/%22+this.state._id);%0A %7D%0A%0A
rend
@@ -401,16 +401,112 @@
-left%22%3E%0A
+ %3Ca... |
4c47ed4ed0481b61bf2c9c0e0d20a87c7408d051 | Remove accidentally committed code | app/assets/javascripts/caseload-capacity.js | app/assets/javascripts/caseload-capacity.js |
trace1 = {
x: capacityTable.headings,
y: capacityTable.rows[0].values,
line: {width: 3.5},
marker: {
line: {width: -0.5},
size: 9
},
name: 'Capacity %',
};
trace2 = {
x: capacityTable.headings,
y: capacityTable.rows[1].values,
line: {width: 3.5},
marker: {
... | JavaScript | 0 | @@ -1312,643 +1312,8 @@
5%7D,%0A
- range: %5B'2015-02-17', '2017-02-16'%5D, %0A rangeselector: %7Bbuttons: %5B%0A %7B%0A count: 1, %0A label: '1 Month', %0A step: 'month', %0A stepmode: 'backward'%0A %7D, %0A %7B%0A count: 6, %0A ... |
e973b120563004860450f421014fb636db2ebd1a | Exit != 0 is an error | child_process/passthru.js | child_process/passthru.js | "use strict";
var cp = require('child_process');
//callback(err, exit, lastline);
module.exports = function(cmd, options, chain){
if(Array.isArray(options))
options = { args : options} ;
options = options || {};
options.stdio = ['inherit', 'inherit', 'inherit'];
var ps = cp.spawn(cmd, options.args |... | JavaScript | 0.002353 | @@ -510,24 +510,100 @@
ion(exit) %7B%0A
+ var err = null;%0A if(exit !== 0)%0A err = %22Bad exit code %22 + exit;%0A
return c
@@ -607,20 +607,19 @@
n chain(
-null
+err
, exit);
|
dcb78cf4a285449c16c701a9d0de837ea67b78e0 | Fix icon upload after moving to `.data` for data attributes | app/assets/javascripts/galleries/add_new.js | app/assets/javascripts/galleries/add_new.js | $(document).ready(function() {
fixButtons();
$(".icon-row td:has(input)").each(function() {
$(this).keydown(processDirectionalKey);
});
bindFileInput($("#icon_files"));
});
function processDirectionalKey(event) {
var keyLeft = 37,
keyUp = 38,
keyRight = 39,
keyDown = 40;
if ([keyLeft, keyUp... | JavaScript | 0 | @@ -1686,19 +1686,19 @@
%7B%0A var
-new
+old
Row = $(
@@ -1714,16 +1714,39 @@
w:last%22)
+;%0A var newRow = oldRow
.clone()
@@ -1761,19 +1761,19 @@
index =
-new
+old
Row.data
|
05691c8241a23fb15fe56b52e3ae90ccf5996912 | Remove Sydney from InterfaceScanner | src/interface-scanner.js | src/interface-scanner.js | // Kiel Interface Scanner
// ======================
//
// Usage
// -----
//
// Get all available interfaces:
//
// ```javascript
// var InterfaceScanner = require("kiel/src/interface-scanner")
// var parsePattern = require("object-pattern").parse
// var Sydney = require("sydney")
// var interfaceScanner = new Sydney(ne... | JavaScript | 0 | @@ -843,40 +843,8 @@
n%22)%0A
-var Sydney = require(%22sydney%22)%0A
%0A%0Ava
@@ -884,70 +884,8 @@
%7B%7D%0A%0A
-InterfaceScanner.prototype = Object.create(Sydney.prototype)%0A%0A
Inte
|
22e8740af7070d81d73e474c5307afe33e3e0b17 | Change in index.js Made GX/GY testdata random | newsite/index.js | newsite/index.js | 'use strict';
var _ = require('lodash');
var path = require('path'); // init path so we can create paths using path.join()
var os = require('os');
// init app using express to make app a function handler which we can parse on to the HTTP server
var express = require('express');
var app = express();
var http = require(... | JavaScript | 0 | @@ -2769,36 +2769,32 @@
value:
-3 //
Math.floor(Math.
@@ -2942,12 +2942,8 @@
ue:
-3 //
Math
|
0c9373c5ca864dc9837a826421d2a741b9aa878e | Update example | example/write-and-rename-files/write-and-rename-files.js | example/write-and-rename-files/write-and-rename-files.js | const mkl = require('../..');
const md = require('markdown-it')('commonmark');
const globby = require('globby');
const rename = require('node-rename-path');
const path = require('path');
const mfs = require('m-fs');
const DEST = './dist';
const task = new mkl.Task()
.print()
.mapAsync('Read files', (file) => {
... | JavaScript | 0.000001 | @@ -317,24 +317,53 @@
%7B%0A return
+ %7B%0A file,%0A content:
mfs.readFil
@@ -374,16 +374,23 @@
nc(file)
+,%0A %7D
;%0A %7D)%0A
@@ -464,31 +464,28 @@
rocessed', (
-content
+item
) =%3E %7B%0A r
@@ -490,16 +490,61 @@
return
+%7B%0A file: item.file,%0A content: item.
content.
@@... |
f7b0e643ce0c96d3ec8776b0ccf2c2862806aaed | Add note. | public/build.js | public/build.js | #!/usr/bin/env node
/**
* Build static/.
*/
require(__dirname + '/../app/modules/mainevent');
var _ = require('underscore'),
fs = require('fs'),
program = require('commander'),
exec = require('child_process').exec,
APP = __dirname + '/..',
SOURCE = APP + '/public',
BUILD = APP + '/static',
... | JavaScript | 0 | @@ -1287,32 +1287,73 @@
program.prod) %7B%0A
+ // Only compress internal scripts.%0A
commands.p
|
c820ef2ebc8efa1ca1d99b6daf1a96c54b89c8c6 | Change the method of match data-col attribute for exact match | multifilter.js | multifilter.js | (function($) {
"use strict";
$.fn.multifilter = function(options) {
var settings = $.extend( {
'target' : $('table'),
'method' : 'thead' // This can be thead or class
}, options);
jQuery.expr[":"].Contains = function(a, i, m) {
return (a.textContent || a.innerText || "").toU... | JavaScript | 0.000003 | @@ -229,23 +229,21 @@
pr%5B%22:%22%5D.
-Contain
+Equal
s = func
@@ -321,25 +321,21 @@
erCase()
-.indexOf(
+ ===
m%5B3%5D.toU
@@ -348,14 +348,8 @@
se()
-) %3E= 0
;%0A
@@ -693,15 +693,13 @@
'th:
-Contain
+Equal
s('
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.