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 |
|---|---|---|---|---|---|---|---|
5932ece7c5327953bbef45d995d27d4170440add | fix bad i18n | src/app/utils/ChainValidation.js | src/app/utils/ChainValidation.js | import tt from 'counterpart';
import BadActorList from 'app/utils/BadActorList';
import VerifiedExchangeList from 'app/utils/VerifiedExchangeList';
import { PrivateKey, PublicKey } from '@steemit/steem-js/lib/auth/ecc';
export function validate_account_name(value, memo) {
let i, label, len, length, ref;
if (!... | JavaScript | 0 | @@ -508,16 +508,17 @@
e_should
+_
be_longe
@@ -608,16 +608,17 @@
e_should
+_
be_short
|
3c5b0c55a56038be9e10e69b73053ea6edaef597 | update stories to use correct export (#9009) | packages/carbon-react/src/components/Grid/Grid.stories.js | packages/carbon-react/src/components/Grid/Grid.stories.js | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import './Grid.stories.scss';
import { Grid, Column, FeatureFlags } from 'carbon-components-react';
import React from 'react';
import mdx fro... | JavaScript | 0 | @@ -214,22 +214,26 @@
rt %7B
+%0A
Grid,
+%0A
Column,
Fea
@@ -228,17 +228,28 @@
Column,
-
+%0A unstable_
FeatureF
@@ -253,16 +253,33 @@
reFlags
+as FeatureFlags,%0A
%7D from '
|
77fd9a7a9332836775b9c2aa5bcba2b614379cfa | remove menubar role (#7462) | packages/react/src/components/UIShell/HeaderNavigation.js | packages/react/src/components/UIShell/HeaderNavigation.js | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { settings } from 'carbon-components';
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
imp... | JavaScript | 0 | @@ -1850,26 +1850,16 @@
%3Cul
-%0A
%7B...acc
@@ -1874,26 +1874,16 @@
tyLabel%7D
-%0A
classNa
@@ -1920,33 +1920,8 @@
ar%60%7D
-%0A role=%22menubar%22
%3E%0A
|
83fe67151b93409ed4678bf4015c89d73269fc71 | Update message process service | src/bot/messageProcessService.js | src/bot/messageProcessService.js | import api from '../service/apiClient';
import accountService from '../domain/accountService';
import authService from '../domain/authService';
import generalService from '../domain/generalService';
import linkService from '../domain/linkService';
import transactionService from '../domain/transactionService';
const NO... | JavaScript | 0.000001 | @@ -1196,24 +1196,88 @@
ssages =%3E %7B%0A
+ if (replyMessages.length === 1) return replyMessages%5B0%5D;%0A%0A
return
|
32bac7207735b9e875482b880e770b954070db7a | Add support for pixelRatio < 1 | index-browser.js | index-browser.js | const assert = require('assert')
function createGL (opts) {
assert(!opts || (typeof opts === 'object'), 'pex-gl: createGL requires opts argument to be null or an object')
if (!opts) opts = {}
let canvas = opts.canvas
const pixelRatio = opts.pixelRatio || 1
if (!canvas) {
canvas = document.createElement... | JavaScript | 0 | @@ -982,17 +982,19 @@
elRatio
-%3E
+!==
1) %7B%0A
|
23e5ff974e4c0f8c8154da82eae576f2756540fc | Fix Android for Nativescript 3.0 | index.android.js | index.android.js | var appModule = require("application");
var Contact = require("./contact-model");
var KnownLabel = require("./known-label");
var Group = require("./group-model");
var helper = require("./contact-helper");
exports.getContact = function() {
return new Promise(function(resolve, reject) {
try {
var... | JavaScript | 0.000013 | @@ -665,33 +665,35 @@
odule.android.on
-A
+(%22a
ctivityResult =
@@ -689,18 +689,18 @@
tyResult
- =
+%22,
functio
@@ -705,40 +705,195 @@
ion(
-requestCode, resultCode, data) %7B
+eventData) %7B%0A %0A var requestCode = eventData.requestCode;%0A var resultCode = eventD... |
a591260ef75b608046558a2988a6c33d73c6fd78 | Update line.js | draw/shapes/line.js | draw/shapes/line.js | if(!Draw.line) {
Draw.line = function(x1, y1, x2, y2) {
if(!Canvas.configured) {
console.warn("KAPhy Warning - You must use Canvas.configure(); before you can draw!");
return;
}
Canvas.context.beginPath();
Canvas.context.moveTo(x1, y1);
Canvas.context.lineTo(x2, y2);
Canvas.co... | JavaScript | 0.000001 | @@ -198,16 +198,158 @@
%7D%0A %0A
+ if(Draw.shapeOn) %7B%0A console.warn(%22KAPhy Warning - You can't use other shape commands when in shape mode.%22);%0A return;%0A %7D%0A %0A
Canv
|
f4cadde5c8587ada4781aed845b552a2101a56aa | Fix resolver using numeric arguments | src/SimpleResourceProxy.js | src/SimpleResourceProxy.js | /*
* BSD 3-Clause License
*
* Copyright (c) 2017, MapCreator
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, th... | JavaScript | 0.000004 | @@ -6040,20 +6040,30 @@
rn this.
-list
+_buildResolver
(%7Bpage:
|
1f38710657c09e4d7b29acaef44075c29504cafa | Change double quotes to single quotes | public/modules/core/controllers/musical-background.client.controller.js | public/modules/core/controllers/musical-background.client.controller.js | 'use strict';
angular.module('core').controller('MusicalBackgroundController', ['$scope', 'TrialData',
function($scope, TrialData) {
// Expose TrialData on scope
$scope.trialData = TrialData;
// Save data to Trial Data
$scope.musicianChanged = function(isMusician) {
TrialData.data.answers.mu... | JavaScript | 0.000005 | @@ -353,38 +353,38 @@
LowerCase() ===
-%22
+'
true
-%22
+'
? true : false;
@@ -548,38 +548,38 @@
LowerCase() ===
-%22
+'
true
-%22
+'
? true : false;
@@ -751,14 +751,14 @@
===
-%22
+'
true
-%22
+'
? t
|
7e117df5d2c86f5f5bf10622c1a5972795d8f055 | update Waterfall | src/Waterfall/Waterfall.js | src/Waterfall/Waterfall.js | /**
* @file Waterfall component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component, Children, cloneElement} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import classNames from 'classnames';
class Waterfall extends Component {
constructor(... | JavaScript | 0.000001 | @@ -508,25 +508,19 @@
+%7D%0A%0A
-this.generate
+init
Temp
@@ -533,124 +533,17 @@
s =
-::this.generateTempColumns;%0A this.renderChildren = ::this.renderChildren;%0A%0A %7D%0A%0A initTempColumns(column)
+column =%3E
%7B%0A%0A
@@ -823,32 +823,33 @@
n result;%0A%0A %7D
+;
%0A%0A getM... |
f9fee5b201ee93b468ee9a747627a633fdc548b9 | Fix test post rename. | test/reducers/playlists.js | test/reducers/playlists.js | import { expect } from 'chai';
import fetch from 'fetch-mock';
import createStore from '../../src/store/configureStore';
import * as a from '../../src/actions/PlaylistActionCreators';
import { favoriteMediaComplete } from '../../src/actions/VoteActionCreators';
import * as s from '../../src/selectors/playlistSelectors... | JavaScript | 0 | @@ -1182,10 +1182,11 @@
(/%5C/
-v1
+api
%5C/pl
|
2d9beec6ef619cc6637ebeb07a3092e3b0a347c1 | Add tests | web/src/js/components/Search/__tests__/fetchWikipediaResults.test.js | web/src/js/components/Search/__tests__/fetchWikipediaResults.test.js | /* eslint-env jest */
import { mockFetchResponse } from 'js/utils/test-utils'
afterEach(() => {
jest.clearAllMocks()
})
beforeEach(() => {
global.fetch.mockImplementation(
() =>
new Promise((resolve, reject) => {
resolve(mockFetchResponse({}))
})
)
})
describe('fetchWikipediaResults', ... | JavaScript | 0.000001 | @@ -261,13 +261,11 @@
nse(
-%7B%7D
))%0A
+
@@ -483,16 +483,16 @@
sults()%0A
-
expe
@@ -530,12 +530,622 @@
(1)%0A %7D)
+%0A%0A it('fetches with a GET request', () =%3E %7B%0A const fetchWikipediaResults = require('js/components/Search/fetchWikipediaResults')%0A .default%0A fetchWikipediaResul... |
ccd965854ca57bdcfbb4785d18fa79bf2b030c56 | update to new test layout | test/spec/miwg/MiwgSpec.js | test/spec/miwg/MiwgSpec.js | 'use strict';
var Helper = require('../Helper');
describe('bpmn-miwg', function() {
var helper = new Helper('bpmn-miwg', '../bpmn-miwg-test-suite');
it('should execute A testsuite', function(done) {
helper.runSuite('A - Fixed Digrams with Variations of Attributes/Reference/*.bpmn', done);
}, 20000);
... | JavaScript | 0 | @@ -171,18 +171,16 @@
execute
-A
testsuit
@@ -225,222 +225,8 @@
te('
-A - Fixed Digrams with Variations of Attributes/Reference/*.bpmn', done);%0A %7D, 20000);%0A%0A%0A it('should execute B testsuite', function(done) %7B%0A helper.runSuite('B - Validate that tool covers conformance class set/
Refe
|
2e46a58ec29cc00abc17195edf165a73835cbfe4 | increase timeout for test to 15secs for CI | test/spec/xml/roundtrip.js | test/spec/xml/roundtrip.js | 'use strict';
var Helper = require('../../helper'),
XMLHelper = require('../../xml-helper');
var toXML = XMLHelper.toXML,
validate = XMLHelper.validate;
describe('bpmn-moddle - roundtrip', function() {
var moddle = Helper.createModdle();
function fromFile(file, done) {
XMLHelper.fromFile(moddle, f... | JavaScript | 0.000003 | @@ -405,16 +405,40 @@
ion() %7B%0A
+ this.timeout(15000);
%0A%0A it
|
47223c96595fc6f198da537830e6a8d47a567ad0 | Revert "use strict dependency injection" | src/angular-select-text.js | src/angular-select-text.js | 'use strict';
/**
* angular-select-text directive
*/
angular.module('angular-select-text', []).
directive('selectText', ['$window', function ($window) {
var selectElement;
if ($window.document.selection) {
selectElement = function(element) {
var range = $window.document.body.createTextRange()... | JavaScript | 0 | @@ -120,20 +120,8 @@
xt',
- %5B'$window',
fun
@@ -801,12 +801,10 @@
%7D;%0A %7D
-%5D
);
-%0A
|
cb0f36fdaef6c054bc932ee030800fd1d8c00db4 | Use tap assertion for better diagnostics | test/tap/version-no-git.js | test/tap/version-no-git.js | var common = require("../common-tap.js")
var test = require("tap").test
var npm = require("../../")
var osenv = require("osenv")
var path = require("path")
var fs = require("fs")
var mkdirp = require("mkdirp")
var rimraf = require("rimraf")
var requireInject = require("require-inject")
var pkg = path.resolve(__dirname... | JavaScript | 0 | @@ -810,59 +810,37 @@
if (
-err) return t.fail(%22Error performing version patch%22
+! t.error(err)) return t.end(
)%0A
|
57be404d04ce9ae2922e6e9917fb47b811916066 | add appropriate a11y behavior with disabled Blueprint Settings | app/jsx/blueprint_courses/components/BlueprintLockOptions.js | app/jsx/blueprint_courses/components/BlueprintLockOptions.js | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... | JavaScript | 0.000024 | @@ -5793,16 +5793,64 @@
Course%7D%0A
+ aria-label=%7Bthis.props.disabledMessage%7D%0A
/%3E
|
b6c0eac2eab7f8071b8bc18a53e730194dc84595 | fix console log (#547) | demo/assets/js/demo.js | demo/assets/js/demo.js | jQuery(function($) {
var fields = [
{
type: 'autocomplete',
label: 'Custom Autocomplete',
required: true,
values: [
{label: 'SQL'},
{label: 'C#'},
{label: 'JavaScript'},
{label: 'Java'},
{label: 'Python'},
{label: 'C++'},
{label: 'PHP... | JavaScript | 0 | @@ -5622,20 +5622,27 @@
ormData:
-
',
+formData
);%0A
|
5d9eab4afa9af4f288e6b237bf04482b0023e20b | Update videos.js | demo/demoApp/videos.js | demo/demoApp/videos.js | (function () {
"use strict";
window.App.videos = [
{
title: 'Интерстеллар',
url: 'http://fs.to/get/dl/5ykw9cc9cjk2269vcnox6wkie.0.521872670.2185543202.1426875731/Interstellar.2014.1080p.BDRip.IMAX.mkv',
type: 'vod'
},
{
title: 'Black.Sails... | JavaScript | 0 | @@ -87,20 +87,18 @@
e: '
-%D0%98%D0%BD%D1%82%D0%B5%D1%80%D1%81%D1%82%D0%B5%D0%BB%D0%BB%D0%B0%D1%80
+12 %D0%9E%D0%B1%D0%B5%D0%B7%D1%8C%D1%8F%D0%BD
',%0A
@@ -148,92 +148,93 @@
c9cj
-k2269vcnox6wkie.0.521872670.2185543202.1426875731/Interstellar.2014.1080p.BDRip.IMAX
+jo6ecjnar29tt2u.0.521872670.974127405.1427148291/1... |
1bb201f34728358b881504965705b93eef0ad6c6 | Update env variable names | ecosystem.config.js | ecosystem.config.js | require('dotenv').config();
module.exports = {
apps: [{
name: 'web',
script: './build/index.js',
wait_ready: true,
autorestart: false,
error_file: 'err.log',
out_file: 'out.log',
log_date_format: 'YYYY-MM-DD HH:mm Z',
}, {
name: 'worker',
script: './build/worker.js',
wait_re... | JavaScript | 0.000001 | @@ -408,20 +408,25 @@
ess.env.
-user
+PROD_USER
,%0A
@@ -443,20 +443,25 @@
ess.env.
-host
+PROD_HOST
,%0A
@@ -477,19 +477,29 @@
ess.env.
-key
+PROD_KEY_PATH
,%0A
@@ -596,20 +596,25 @@
ess.env.
-path
+PROD_PATH
,%0A
|
8090b08c0c3949c36c18c551126f9bd2adb26974 | add path variables | example-grunt/play-1/Gruntfile.js | example-grunt/play-1/Gruntfile.js | const fs = require('fs');
const path = require('path');
const utils = require('./tasks/utils.js');
const myCopy = require('./tasks/my-copy.js');
const ansible = require('./tasks/ansible-2.js');
let reservedFolderNames = [
'node_modules',
'_core',
'_build', 'build', 'tasks'
];
//////////////////////////////////... | JavaScript | 0.000002 | @@ -397,16 +397,361 @@
runt) %7B%0A
+%09%0A%09// define path variables%0A%09var currentWorkingDir = process.cwd().replace(/%5C%5C/g,'/');%0A%09console.log(currentWorkingDir);%0A%0A%09var projectBaseDir = path.posix.normalize(path.posix.join(currentWorkingDir, '../..'));%0A%09console.log(projectBaseDir);%0A%0A%09var bu... |
c46541c2f418746a5f3042ae7b03069766e65369 | use azure test post instead | KoppsAPIPost/index.js | KoppsAPIPost/index.js | module.exports = function (context, input) {
const RxHttpRequest = require("@akanass/rx-http-request").RxHR;
const options = {
qs: {
dir: 'xxxxx' // -> uri + '?access_token=xxxxx%20xxxxx'
},
body: {
some: 'payload'
},
json: true // Automatically... | JavaScript | 0 | @@ -160,62 +160,38 @@
-dir: 'xxxxx' // -%3E uri + '?access_token=xxxxx%2520xxxxx'
+code: process.env%5B'POST_CODE'%5D
%0A
@@ -446,35 +446,48 @@
http
+s
://
-posttestserver.com
+sstladok3.azurewebsites.net/api
/post
-s
', o
|
82213fc6397fbacccb6b9ca7bd8d16d0edc2c92e | revise maxlength errorMessage text | src/esui/validator/MaxLengthRule.js | src/esui/validator/MaxLengthRule.js | /*
* ESUI (Enterprise Simple UI)
* Copyright 2010 Baidu Inc. All rights reserved.
*
* path: esui/validator/MaxLengthRule.js
* desc: 最大长度验证规则类
* author: erik
*/
///import esui.validator.ValidityState;
///import esui.validator.Rule;
///import baidu.lang.inherits;
/**
* 最大长度验证规则类
*
* @class
* @param ... | JavaScript | 0.999524 | @@ -637,16 +637,19 @@
xlength%7D
+%E4%B8%AA%E5%AD%97%E7%AC%A6
%22,%0A%0A
|
e0edcf5c723d1def0ac42ffb8f1489936701b6bf | Fix typo | cloudFormationCustomUserPool.js | cloudFormationCustomUserPool.js | 'use strict';
const AWS = require("aws-sdk");
const cognitoISP = new AWS.CognitoIdentityServiceProvider({apiVersion: '2016-04-18'});
const https = require("https");
const url = require("url");
module.exports.handler = (event, context, callback) => {
console.log(JSON.stringify(event));
if (event.RequestType =... | JavaScript | 0.999999 | @@ -3818,17 +3818,16 @@
sFromArr
-r
ay(array
|
3612ae97716fbc92aa4ee458e77f82c11d06c36a | Attach fake body only when actually needed | feature-detects/flash.js | feature-detects/flash.js | /*!
{
"name": "Flash",
"property": "flash",
"tags": ["flash"],
"polyfills": ["shumway"]
}
!*/
/* DOC
Detects Flash support as well as Flash-blocking plugins
*/
define(['Modernizr', 'createElement', 'docElement', 'addTest', 'getBody', 'isSVG'], function(Modernizr, createElement, docElement, addTest, getBod... | JavaScript | 0 | @@ -387,16 +387,147 @@
053 */%0A%0A
+ var attachBody = function(body) %7B%0A if (!docElement.contains(body)) %7B%0A docElement.appendChild(body);%0A %7D%0A %7D;%0A
var
@@ -2156,44 +2156,8 @@
ed);
-%0A docElement.appendChild(body);
%0A%0A
@@ -2321,24 +2321,50 @@
!activex) %7B%0A
+... |
5eb52b08f1c85537cf9c91e6baff9a782851cb8c | Allow ':' in option name | lib/_options/parse.js | lib/_options/parse.js | 'use strict';
var push = Array.prototype.push
, call = Function.prototype.call
, trim = call.bind(String.prototype.trim)
, compact = require('es5-ext/lib/Array/prototype/compact')
, remove = require('es5-ext/lib/Array/prototype/remove')
, uniq = require('es5-ext/lib/Array/proto... | JavaScript | 1 | @@ -631,16 +631,17 @@
%5D%5Ba-z0-9
+:
%5D*)(%5B+-%5D
|
7d8c68dd982de36542c101f82adf275531cabec5 | Add redirect page type. re #168 and #219 | code/media/com_pages/js/page.js | code/media/com_pages/js/page.js | var Page = new Class({
Implements: Options,
options: {
sidebar: 'components-inner',
panel: 'types',
active: ''
},
initialize: function(options){
this.setOptions(options);
this.togglers = $(this.options.sidebar).getElements('a');
this.types = $(this.options.panel).getChildren();
this.active... | JavaScript | 0 | @@ -1,12 +1,51 @@
-var
+if (!Pages) %7B%0A var Pages = %7B%7D;%0A%7D%0A%0APages.
Page = n
@@ -152,16 +152,28 @@
%09active:
+ '',%0A%09%09type:
''%0A%09%09%0A%09
@@ -388,16 +388,55 @@
.active;
+%0A%09%09this.type = this.options.type;
%0A%0A%09%09this
@@ -1116,16 +1116,16 @@
his));%0A%0A
-
%09%09%7D, th... |
a4ef35b65a2a3240b5fb274602f3dd8d9b3d00f1 | Update connectionBuilder.js | src/cluster/connectionBuilder.js | src/cluster/connectionBuilder.js | const Connection = require('../network/connection')
const { KafkaJSNonRetriableError, KafkaJSConnectionError } = require('../errors')
const shuffle = require('../utils/shuffle')
const validateBrokers = brokers => {
if (!brokers || brokers.length === 0) {
throw new KafkaJSNonRetriableError(`Failed to connect: exp... | JavaScript | 0.000001 | @@ -761,23 +761,31 @@
const %5B
-host, p
+seedHost, seedP
ort%5D = s
@@ -849,32 +849,42 @@
%7B%0A host
+: seedHost
,%0A port
@@ -875,32 +875,50 @@
,%0A port
+: Number(seedPort)
,%0A sasl
@@ -1450,24 +1450,38 @@
(seedPort),%0A
+ sasl,%0A
%7D%0A
@@ -1645,29 +1... |
ab3ddf413dc2f32def9eb773c22aa4833d0c4874 | Fix rhino merge error. Fixes #1184 | lib/less/rhino.js | lib/less/rhino.js | var name;
function loadStyleSheet(sheet, callback, reload, remaining) {
var endOfPath = Math.max(name.lastIndexOf('/'), name.lastIndexOf('\\')),
sheetName = name.slice(0, endOfPath + 1) + sheet.href,
contents = sheet.contents || {},
input = readFile(sheetName);
input = input.replace(/^... | JavaScript | 0 | @@ -331,16 +331,17 @@
BF/, '')
+;
%0A
@@ -504,24 +504,69 @@
nts%0A %7D);%0A
+ parser.parse(input, function (e, root) %7B%0A
if (
@@ -3212,16 +3212,17 @@
;%0A %7D%0A
+
print
|
75b7b14af945abc62e14db2db3d66763ddccfd27 | update sample to include tenant info for testing | sample/device-code-sample.js | sample/device-code-sample.js | /*
* @copyright
* Copyright © Microsoft Open Technologies, 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... | JavaScript | 0 | @@ -783,17 +783,22 @@
re('
-adal-node
+../lib/adal.js
');%0A
@@ -1799,16 +1799,17 @@
RS_FILE'
+
%5D;%0A%0Avar
@@ -2145,14 +2145,35 @@
: '
-common
+auxteststageauto.ccsctp.net
',%0A
@@ -2203,31 +2203,96 @@
: '
-',%0A clientId : '
+https://login.windows-ppe.net',%0A clientId : '04b07795-8ddb-461... |
c5db0764e1e5d67d92fd67e5e28744c5469a6e9c | add clear token check before login | test/journeys/lib/test-helpers/tap/space.js | test/journeys/lib/test-helpers/tap/space.js | /**
* Test helpers for the tap tests that use material-ui as a front end
*/
import {assert} from 'chai';
export const elements = {
accessTokenInput: `input[aria-label="Access Token"]`,
saveTokenButton: `button[aria-label="Save Token"]`,
toSpaceRadioButton: `input[aria-label="To Space"]`,
toPersonRadioButton... | JavaScript | 0 | @@ -234,24 +234,80 @@
e Token%22%5D%60,%0A
+ clearTokenButton: %60button%5Baria-label=%22Clear Token%22%5D%60,%0A
toSpaceRad
@@ -830,16 +830,142 @@
, to) %7B%0A
+ if (aBrowser.element(elements.clearTokenButton).isVisible()) %7B%0A aBrowser.element(elements.clearTokenButton).click();%0A %7D%0A
aBrows
|
e5e228556228f13cd920c6145de2d2d625e2e851 | Add filter function to find font-icon by name | cmsplugin_cascade/static/cascade/js/admin/iconpluginmixin.js | cmsplugin_cascade/static/cascade/js/admin/iconpluginmixin.js | django.jQuery(function($) {
'use strict';
// create class handling the client-side part of plugins inheriting from IconPluginMixin
var $symbol = $('#id_glossary_symbol'),
$box = $symbol.closest('.glossary-box');
django.cascade.IconPluginMixin = ring.create(eval(django.cascade.ring_plugin_bases.IconPluginMixi... | JavaScript | 0.000001 | @@ -1052,24 +1052,146 @@
+ '%3C/h2%3E');%0A
+%09%09%09%09$symbol.before('%3Clabel for=%22query%22%3ESearch Icon:%3C/label%3E%3Cinput id=%22fonticon_search_query%22 type=%22text%22 name=%22query%22%3E');%0A
%09%09%09%09$.each(i
@@ -1344,16 +1344,38 @@
ore('%3Cul
+ id=%22fonticon_symbols%22
class=%22
@@ -1412,24 +14... |
fe8ee3e132bdd4cd057f3f786f513eafb31c9b9d | build retrigger | examples/js/fetch-okex-futures.js | examples/js/fetch-okex-futures.js | "use strict";
const ccxt = require ('../../ccxt')
async function test () {
const exchange = new ccxt.okex ()
await exchange.loadMarkets ()
for (let symbol in exchange.markets) {
const market = exchange.markets[symbol]
if (market['future']) {
console.log ('---------------------... | JavaScript | 0 | @@ -139,24 +139,25 @@
dMarkets ()%0A
+%0A
for (let
@@ -183,24 +183,25 @@
.markets) %7B%0A
+%0A
cons
@@ -236,16 +236,17 @@
symbol%5D%0A
+%0A
|
cc2816fa05678bea45aea02a4de8d618c4b29701 | Update HidaAmoro.spec.js | test/server/cards/03-DotV/HidaAmoro.spec.js | test/server/cards/03-DotV/HidaAmoro.spec.js | fdescribe('Hida Amoro', function() {
integration(function() {
describe('Hida Amoro\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
inPlay: ['miya-mystic']
... | JavaScript | 0 | @@ -1,9 +1,8 @@
-f
describe
|
891e26fa2706291a9ba59c85ca8239a7d6b6a64c | Bump version number. Tidy up comments. | jquery.roland.js | jquery.roland.js | /**
* Add and delete 'rows' to any container element.
*
* @author Stephen Lewis
* @package Crumbly
*/
(function($) {
$.fn.roland = function(options) {
var opts = $.extend({}, $.fn.roland.defaults, options);
return this.each(function() {
$container = $(this);
updat... | JavaScript | 0 | @@ -63,17 +63,16 @@
author%09%09
-%09
Stephen
@@ -80,30 +80,98 @@
ewis
-%0A * @package%09%09%09Crumbly
+ (http://github.com/experience/)%0A * @copyright Experience Internet%0A * @version 1.0.0
%0A */
@@ -4772,81 +4772,4 @@
*/%0A
-/* File location : themes/third_party/crumbly/js/libs/jquery.roland.js */%... |
46adeff0376613ea1b9f7898d25fa5d4a90db9c0 | Insert in editor if container is undefined | src/js/vanilla/module/AirPopover.js | src/js/vanilla/module/AirPopover.js | define([
'summernote/base/core/agent',
'summernote/base/core/dom',
'summernote/base/core/func',
'summernote/base/core/list',
'summernote/base/core/range'
], function (agent, dom, func, list, range) {
var AirPopover = function (context) {
var self = this;
var $document = $(document);
var $editab... | JavaScript | 0.000003 | @@ -2657,32 +2657,51 @@
e %7B%0A if (
+!info.container %7C%7C
self.isAncestor(
@@ -3795,16 +3795,35 @@
if (
+!info.container %7C%7C
self.isA
|
2465409945674d3501fabaf913ff687f092a8611 | Fix MS auth profile | src/auth/microsoft/post.js | src/auth/microsoft/post.js | 'use strict'
const _ = require('lodash')
const _h = require('../../_helpers')
const https = require('https')
const jwt = require('jsonwebtoken')
const querystring = require('querystring')
exports.handler = async (event, context) => {
if (event.source === 'aws.events') { return _h.json({ message: 'OK' }) }
try {
... | JavaScript | 0.000003 | @@ -1114,66 +1114,25 @@
e, '
-emails.0.value'),%0A picture: _.get(profile, 'image.url
+userPrincipalName
')%0A
@@ -2656,78 +2656,100 @@
nst
-query = querystring.stringify(%7B%0A access_token: accessToken%0A %7D)
+options = %7B%0A headers: %7B%0A 'Authorization': %60Bearer $%7BaccessToken%7... |
9880cbda8dd299315a253abaab69da00eecdf635 | Update app.js (#2129) | examples/navigation-guards/app.js | examples/navigation-guards/app.js | import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const Home = { template: '<div>home</div>' }
const Foo = { template: '<div>foo</div>' }
const Bar = { template: '<div>bar</div>' }
/**
* Signatre of all route guards:
* @param {Route} to
* @param {Route} from
* @param {Function} next
*
... | JavaScript | 0 | @@ -798,16 +798,17 @@
ed' %7D%7D)%3C
+/
p%3E%0A
|
5bdac6133f636f3ed989b5c060004738842f9b5e | Fix initializeSubapp, ensure conditional deps do not throw | lib/initializeSubapp.js | lib/initializeSubapp.js | /*jshint esversion:6, node:true*/
'use strict';
/*
* This adaptor brings up an express subapp
* to provide a dashboard. It relies on the
* server module, which is the a bare bones
* express server to which we mount different
* sub applications.
* @TODO: We should rename subappId to moduleid?
* they shoul... | JavaScript | 0.000001 | @@ -774,16 +774,22 @@
ndencies
+, true
).then((
|
dcfb60687843ce775a04763c93c27825656fa64e | Allow body parsing to be toggled | lib/middleware.js | lib/middleware.js | 'use strict';
var bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
session = require('express-session'),
flash = require('express-flash'),
multer = require('multer'),
helmet = require('helmet'),
compression = require('compression'),
expressLogger = require('./e... | JavaScript | 0.000001 | @@ -1548,24 +1548,68 @@
, options);%0A
+ if (options.bodyParser !== false) %7B%0A
app.use(
@@ -1647,24 +1647,28 @@
ons.json));%0A
+
app.use(
@@ -1721,16 +1721,22 @@
coded));
+%0A %7D
%0A%0A ap
|
046b792d34bdd80d61883f5030057fb5cd884173 | Fix typo | formats/iso-9660/file.js | formats/iso-9660/file.js | define(['Format', 'formats/byExtension'], function(Format, formatsByExtension) {
'use strict';
const RECORD_FMT = Format('iso-9660/chunk', {which:'file'});
return {
split: function split(segment, entries) {
var recordSegment = (segment.format.parameters['record-segment'] || '').match(/^\s*(\d+)\s... | JavaScript | 0.999999 | @@ -308,34 +308,34 @@
(/%5E%5Cs*(%5Cd+)%5Cs*,%5C
-*
s
+*
(%5Cd+)%5Cs*$/);%0A
|
42730ae0c92ce38d246c28803730ce60862ec12a | bump ??? distribution dist/snuggsi.min.es.js | dist/snuggsi.min.es.js | dist/snuggsi.min.es.js | const HTMLLinkElement=function(e){const t={},n=document.querySelector("link[href*="+e+"][rel=import]"),r=(e,t)=>HTMLImports&&!HTMLImports.useNative?HTMLImports.whenReady(e=>t({target:n})):n.addEventListener(e,t);return Object.defineProperties(t,{addEventListener:{writable:!1,value:function(e,s){n?r(e,s):s({target:t})}}... | JavaScript | 0.000007 | @@ -3599,33 +3599,49 @@
ments.define(...
-e
+%5B%5D.concat(...%5Be%5D)
,Component(t));(
@@ -3678,17 +3678,33 @@
fine(...
-e
+%5B%5D.concat(...%5Be%5D)
,Compone
|
308b2f69857057263f5bb78d7d8a4211bfee6b13 | Rename `done` to `postResponse` | lib/middleware.js | lib/middleware.js | 'use strict';
var Rule = require('./rule');
var SlackClient = require('./slack-client');
module.exports = Middleware;
function Middleware(config, slackClient, githubClient, logger) {
this.rules = config.rules.map(function(rule) {
return new Rule(rule);
});
this.successReaction = config.successReaction;
t... | JavaScript | 0.000001 | @@ -472,35 +472,43 @@
nction(message,
-d
+postResp
on
+s
e) %7B%0A var error
@@ -561,19 +561,27 @@
essage,
-d
+postResp
on
+s
e);%0A%0A %7D
@@ -792,19 +792,27 @@
e);%0A
-d
+postResp
on
+s
e(errorM
@@ -909,19 +909,27 @@
essage,
-d
+postResp
on
+s
e) %7B%0A v
@@ -1317,19 +1317,27 @@
leware,
-d
+po... |
1554f4606d7002a1cf8702a361bd7adba99a7e54 | Fix import path. | test/unit/api/component.js | test/unit/api/component.js | import { Component } from '../../../src';
import { classStaticsInheritance } from '../lib/support';
describe('api/Component', () => {
if (!classStaticsInheritance()) {
return;
}
describe('property getters', () => {
it('observedAttributes', () => {
class Test extends Component {
static get ... | JavaScript | 0 | @@ -79,16 +79,19 @@
rom '../
+../
lib/supp
|
9b31b0476c12987beb00f29ce1addb477c454d2b | Add boilerplate code for enabling ui menu | src/components/Drawing/Anchor.js | src/components/Drawing/Anchor.js | import React, { Component } from 'react';
class Anchor extends React.Component {
constructor(props) {
super(props);
this.handleMouseEnter = this.handleMouseEnter.bind(this);
this.handleMouseLeave = this.handleMouseLeave.bind(this);
this.state = {
hover: false,
input: null,
};
}
... | JavaScript | 0 | @@ -240,16 +240,186 @@
d(this);
+%0A this.handleRightClick = this.handleRightClick.bind(this);%0A this.handleSubmit = this.handleSubmit.bind(this);%0A this.handleChange = this.handleChange.bind(this);
%0A%0A th
@@ -893,16 +893,179 @@
else %7B%0A
+ const modifiedAngle = parseInt(this.state.input);%0... |
c72d740b82feec2281f6b9cc13359bc9f2393de8 | Enable passing in a callback in promise constructors | Promise.js | Promise.js | var Class = require('./Class'),
invokeWith = require('./invokeWith'),
slice = require('./slice'),
each = require('./each'),
bind = require('./bind')
module.exports = Class(function() {
this.init = function() {
this._dependants = []
this._fulfillment = null
}
this.add = function(callback) {
if (this._fulf... | JavaScript | 0 | @@ -201,24 +201,32 @@
= function(
+callback
) %7B%0A%09%09this._
@@ -268,16 +268,55 @@
= null%0A
+%09%09if (callback) %7B this.add(callback) %7D%0A
%09%7D%0A%0A%09thi
|
b0b6f33625883512ea9bc541028f6d414b89089d | Make sure that interpreter actually terminates on @ | src/befunge/interpreter.js | src/befunge/interpreter.js |
import * as Befunge from '../befunge';
import * as Instructions from './instructions';
import * as Grid from './grid';
import * as Pointer from './pointer';
import * as Terminal from '../ui/terminal';
export const create = () => {
const pointer = Pointer.create();
const interpreter = {
cellPositions: new Ma... | JavaScript | 0 | @@ -2090,18 +2090,8 @@
%3E %7B%0A
- cb();%0A
@@ -2114,16 +2114,26 @@
r, cb);%0A
+ cb();%0A
%7D, int
@@ -6032,46 +6032,8 @@
c
-learInterval(interpreter.timer);%0A c
onso
@@ -6051,16 +6051,39 @@
minated'
+);%0A stop(interpreter
);%0A b
|
e94310e7f7d23f2fb96a201cfdff2b32a94c28fc | Use select instead of React Dropdown. | src/components/DropdownOption.js | src/components/DropdownOption.js | import React, { Component } from 'react'
import {
Col,
Dropdown,
Form,
Row
} from 'react-bootstrap'
class DropdownOption extends Component {
render() {
const option = this.props.options[this.props.optionKey]
const model = this.props.model
return (
<Row className="align-items-center pb-2" k... | JavaScript | 0 | @@ -54,20 +54,8 @@
ol,%0A
- Dropdown,%0A
Fo
@@ -88,16 +88,50 @@
otstrap'
+%0Aimport Select from 'react-select'
%0A%0Aclass
@@ -272,16 +272,70 @@
ps.model
+%0A const currentChoice = model%5Bthis.props.optionKey%5D
%0A%0A re
@@ -582,24 +582,22 @@
%3C
-Dropdown
+Select
%0A
@@ -605,64 +605,1... |
a6d339c3087a392977d42b57a92eff04bfcbd77e | Fix bug with object sending in ShortHashg | lib/ShortHash.js | lib/ShortHash.js | var util = require('util'),
BaseHash = require('./BaseHash'),
BitwiseHash = require('./BitwiseHash');
/**
* Code table
* @type {String}
* @private
*/
var CODE_TABLE = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
/**
* Length of code table
* @type {Number}
*/
var BINARY_LENGTH = COD... | JavaScript | 0 | @@ -716,16 +716,27 @@
etData()
+.toString()
).hash()
|
260397921de9796a5bafba8b4ab521c8529d20f7 | fix #26 | lib/blocktypes/css.js | lib/blocktypes/css.js | 'use strict';
var path = require('path');
var helpers = require('./helpers');
module.exports = css;
function css(content, block, blockLine, blockContent, filepath) {
var styles = [];
var replacement;
if (block.inline) {
var scoped = block.scoped ? ' scoped' : '';
styles = obtainStyles(block, blockCont... | JavaScript | 0 | @@ -700,17 +700,16 @@
set + '%22
-/
%3E');%0A%7D%0A%0A
|
b2d9cf500d62889363ffb9319c2f4592fd2652d5 | Add a bit of timeout to make it work better | frontend/js/scrolling.js | frontend/js/scrolling.js | import { polyfill } from 'smoothscroll-polyfill';
polyfill();
const previousScrolls = {};
window.history.scrollRestoration = 'manual';
window.addEventListener('scroll', (e) => {
const path = document.location.pathname
previousScrolls[path] = window.scrollY;
});
export default function initScrolling(port) {
po... | JavaScript | 0.000002 | @@ -640,16 +640,17 @@
%7D,
+5
0)%0A %7D
|
5170d0b5bff2a714da8a8db67b93ad1b48823460 | remove iife from RunToCompletion script | compat-tests/RunToCompletion.js | compat-tests/RunToCompletion.js | // @flow
import { execSync } from 'child_process';
import JobQueueDatabase from '../src/database/JobQueueDatabase';
process.on('uncaughtException', err => {
throw err;
});
/* eslint no-await-in-loop: off */
(async function RunToCompletion() {
const jobQueueDatabase = new JobQueueDatabase();
let iteration = 0;
... | JavaScript | 0 | @@ -205,17 +205,16 @@
off */%0A%0A
-(
async fu
@@ -534,9 +534,60 @@
%7D%0A%7D
-)
+%0A%0Aif (require.main === module) %7B%0A RunToCompletion
();%0A
+%7D%0A
|
b687a27f26cb85b58bf201f026065fd4ccc11b0f | add effect fadeIn for .block_img | public/js/main.js | public/js/main.js | $(document).ready(function(){
item = 0
$.getJSON("/list", function(data) {
items = data
$('#pair').removeAttr("disabled")
$('#rand').removeAttr("disabled")
$('.button_start').removeAttr("disabled")
})
// checkbox menu
$('#checkbox_menu_button_go').click(function () {
... | JavaScript | 0.000001 | @@ -549,16 +549,94 @@
%0A %7D);
+%0A%0A $(%22.block_img%22).fadeIn(%5B2000, %5D);%0A $(%22.block_img%22).fadeOut(%5B2000, %5D);
%0A%7D)%0A%0A$('
|
242adb93dde9c57517eb5fd531adcfa8745d2a5a | clean code | lib/anthStats.js | lib/anthStats.js |
;(function(name, definition) {
// Bind exports in different environments
if (typeof define === 'function') {
// AMD or CMD module system
define(definition);
} else if (typeof module !== 'undefined' && module.exports) {
// Maybe this is a node module
var http = require('http');
module.exports = definition... | JavaScript | 0.000008 | @@ -3633,16 +3633,17 @@
tions ==
+=
'object
@@ -5535,16 +5535,17 @@
allback)
+;
%0A%0A%09%7D;%0A%0A%09
@@ -5564,10 +5564,11 @@
tats;%0A%7D)
+;
%0A%0A
|
ea9d4800d8d6416182cccff63b9a1b4d302708bc | remove en from list of languages, see #60 | js/LocaleInfo.js | js/LocaleInfo.js | // Copyright 2002-2015, University of Colorado Boulder
/**
* A module that provides information and utilities related to language locales.
*
* @author John Blanco
* @author Aaron Davis
*/
/* jslint node: true */
'use strict';
var localeInfo = require( '../../chipper/js/data/localeInfo.js' );
// get locales int... | JavaScript | 0 | @@ -371,22 +371,16 @@
r locale
-Object
in loca
@@ -390,16 +390,45 @@
nfo ) %7B%0A
+ if ( locale !== 'en' ) %7B%0A
sorted
@@ -443,16 +443,18 @@
push( %7B%0A
+
code
@@ -465,16 +465,12 @@
cale
-Object
,%0A
+
@@ -493,22 +493,16 @@
%5B locale
-Object
%5D.name,
@@ -498,24 +498,26 @@
ale %5D.na... |
7de319be217fa6992e7aee4f903f013233e26ac7 | Remove unused parameter other in asteroid.destroy() | demos/advanced/asteroid.js | demos/advanced/asteroid.js | ;(function(exports) {
var Asteroid = function(game, settings) {
this.game = game;
this.pos = settings.pos;
this.boundingBox = this.game.coquette.collider.CIRCLE;
if (settings.radius === undefined) {
this.size = { x: 60, y: 60 };
} else {
this.size = { x: settings.radius * 2, y: settin... | JavaScript | 0.000001 | @@ -1967,37 +1967,32 @@
stroy: function(
-other
) %7B%0A for (v
@@ -2728,21 +2728,16 @@
destroy(
-other
);%0A
|
834a958a1a10e023477d071200cb215dbb64f46d | move static propTypes & defaultProps outside of the component class | components/button/IconButton.js | components/button/IconButton.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import theme from './theme.css';
class IconButton extends Component {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
disabled: PropTypes.bool,
href: PropTypes.string... | JavaScript | 0 | @@ -175,533 +175,8 @@
t %7B%0A
- static propTypes = %7B%0A children: PropTypes.node,%0A className: PropTypes.string,%0A disabled: PropTypes.bool,%0A href: PropTypes.string,%0A icon: PropTypes.element,%0A onMouseLeave: PropTypes.func,%0A onMouseUp: PropTypes.func,%0A size: PropTypes.oneOf(%5B's... |
b440dd907ca221fc4cc941a05c784e6af3d3f048 | update bootstrap shim from https://gist.github.com/benfoxall/8844292 | public/js/main.js | public/js/main.js | require.config({
paths: {
jquery: '../lib/jquery/jquery-1.11.1.min',
text: '../lib/require/text',
underscore: '../lib/underscore/underscore-min',
// lodash: '../lib/lodash/lodash.min',
backbone: '../lib/backbone/backbone-min',
templates: '../templates',
... | JavaScript | 0 | @@ -630,243 +630,19 @@
-bootstrap: %7B%0A deps: %5B'jquery'%5D,%0A exports: '$.fn.popover'%0A %7D,%0A 'bootstrap/bootstrap-slider': %7B%0A deps: %5B'jquery'%5D,%0A exports: '$.fn.slider'%0A %7D,%0A 'bootstrap/bootstrap-
+'bootstrap/
affi
@@ ... |
e77727888f2d586ec9ee59f7c4470ea4cff33eab | add 60 and 80 speed limits | scripts/generate-overview.js | scripts/generate-overview.js | var fs = require('fs');
/** Config */
const JSON_DIR = './build/json/';
const VAR_VALUES = {
content: [10, 20, 25, 30, 35, 50, 70, 75, 90, 100, 110, 120, 130],
height: ['2m', '3.5m', '10ft'],
width: ['2m', '3.5m', '10ft'],
weight: ['3.5t', '10t']
};
const OUTPUT_FILES = [{
path: 'build/sign-overview.html',
... | JavaScript | 0.000517 | @@ -126,16 +126,20 @@
50,
+ 60,
70, 75,
90,
@@ -134,16 +134,20 @@
70, 75,
+ 80,
90, 100
|
c9cb926360da5e4028f7d2f83f4b4e94897cd8b8 | Remove incompatibility with 'mysql' | lib/commands/query.js | lib/commands/query.js | var Command = require('./command');
var Packets = require('../packets/index.js');
var util = require('util');
var compileParser = require('../compile_text_parser.js');
var ServerStatus = require('../constants/server_status.js');
function Query(sql, callback)
{
Command.call(this);
this.query = sql;
this.onRe... | JavaScript | 0 | @@ -911,37 +911,16 @@
ields%5B0%5D
-, this._resultIndex+1
);%0A %7D
@@ -981,29 +981,8 @@
elds
-, this._resultIndex+1
);%0A
@@ -1262,35 +1262,16 @@
ult', rs
-, this._resultIndex
);%0A t
@@ -1296,35 +1296,16 @@
void(0)
-, this._resultIndex
);%0A i
@@ -2627,35 +2627,16 @@
, fields
-, this._resultIndex
... |
d6f047c82c43708708945eef3ceceab06b7c55c6 | fix vote math | public/js/vote.js | public/js/vote.js | jQuery(function ($) {
var _token = $('meta[name="csrf-token"]').attr('content');
var puralize = function (count, text) {
return count + " " + text + ((count === 1) ? "" : "s");
};
var doVote = function (e, hash, vote, target) {
$.ajax({
type: "POST",
dataType: "js... | JavaScript | 0.000009 | @@ -1089,23 +1089,14 @@
th.m
-in
+ax
(0,
-Math.abs(
othe
@@ -1102,17 +1102,16 @@
erCount)
-)
;%0A
|
4c0d8dc0345ea6f0dc169ad9cdfa120aa9199f1a | Add background listen function. | js/background.js | js/background.js | var background = {};
background.INACTIVE_ICON = {
'16': 'images/poop-inactive16.png',
'19': 'images/poop-inactive19.png',
'32': 'images/poop-inactive32.png',
'38': 'images/poop-inactive38.png',
'48': 'images/poop-inactive48.png',
'64': 'images/poop-inactive38.png',
'128': 'images/poop-inactive128.png'
};... | JavaScript | 0 | @@ -2400,32 +2400,280 @@
d(background);%0A%0A
+background.listen = function () %7B%0A chrome.tabs.onActivated.addListener(this.updateIcon);%0A chrome.tabs.onUpdated.addListener(this.handleTabUpdated);%0A chrome.browserAction.onClicked.addListener(this.handleBrowserActionClick);%0A%7D.bind(background);%0A%0A
backgr... |
32f433dca362d25a3fd2fcb5fd5e245274407c6f | Fix typos | js/background.js | js/background.js | console.log("Chrome extension development is easy");
// When the extension is first installed or updated
chrome.runtime.onInstalled.addListener(function(data){
console.log('onInstalled');
// Set an initial value for the hipsters key in storage
chrome.storage.local.set({
hipsters: 0
});
});
// ... | JavaScript | 0.999999 | @@ -327,18 +327,18 @@
any rec
-i
e
+i
ved mess
@@ -430,10 +430,10 @@
rec
-i
e
+i
ved'
|
85db6cd1ee8572d71dfde70d1983eed57fccc576 | fix the 'Document Table' directive controller | public/app/directives/controllers/rgiDocumentTableCtrl.js | public/app/directives/controllers/rgiDocumentTableCtrl.js | 'use strict';
angular.module('app')
.controller('rgiDocumentTableCtrl', function (
_,
$scope,
$rootScope,
rgiDialogFactory,
rgiAssessmentSrvc,
rgiDocumentSrvc,
rgiHttpResponseProcessorSrvc,
rgiIdentitySrvc,
rgiNotifier
) {
var limi... | JavaScript | 0.000109 | @@ -248,33 +248,8 @@
vc,%0A
- rgiIdentitySrvc,%0A
@@ -288,61 +288,20 @@
var
-limit = 100,%0A currentPage = 0,%0A
+currentPage,
tot
@@ -311,74 +311,24 @@
ages
+, limit
=
+10
0;%0A%0A
- $scope.current_user = rgiIdentitySrvc.currentUser;%0A
@@ -352,17 +352,16 @@
... |
f429a4c8d91488d4855b2e79564efe03267c7c26 | fix the 'Document Table' directive controller | public/app/directives/controllers/rgiDocumentTableCtrl.js | public/app/directives/controllers/rgiDocumentTableCtrl.js | 'use strict';
angular.module('app')
.controller('rgiDocumentTableCtrl', function (
_,
$scope,
$rootScope,
rgiDialogFactory,
rgiAssessmentSrvc,
rgiDocumentSrvc,
rgiHttpResponseProcessorSrvc,
rgiIdentitySrvc,
rgiNotifier
) {
var limi... | JavaScript | 0.000109 | @@ -248,33 +248,8 @@
vc,%0A
- rgiIdentitySrvc,%0A
@@ -288,61 +288,20 @@
var
-limit = 100,%0A currentPage = 0,%0A
+currentPage,
tot
@@ -311,74 +311,24 @@
ages
+, limit
=
+10
0;%0A%0A
- $scope.current_user = rgiIdentitySrvc.currentUser;%0A
@@ -352,17 +352,16 @@
... |
94d30efae47a2944de45c87870deeeeacab55df7 | remove --silent option | lib/ruche/util/valid.js | lib/ruche/util/valid.js | /**
* Returns the list of available commands.
* @return {Array}
*/
var commands = function () {
return ['install', 'uninstall', 'alternatives'];
};
/**
* Returns an object of arrays containing legal options by context.
* @return {Object}
*/
var options = function () {
return {
'global': ['help', 'version... | JavaScript | 0.000015 | @@ -367,17 +367,8 @@
': %5B
-'no-path'
%5D,%0A
|
ca38a9af2da8f0108cc695987d30bd0151e8e5ac | Update contact_me.js | js/contact_me.js | js/contact_me.js | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit b... | JavaScript | 0 | @@ -866,31 +866,43 @@
l: %22
-././mail/contact_me.php
+//formspree.io/mail@alperozturk.com
%22,%0A
|
c8d5fd60016b46afa69e32ce403b2651e5ecc193 | Refactor node-generator to use helper functions. | generators/node/index.js | generators/node/index.js | const generators = require('yeoman-generator');
const path = require('path');
const util = require('../util.js');
const generator = generators.Base.extend({
// Cannot use arrow notation due to this object not referencing the correct object.
constructor: function () {
generators.Base.apply(this, arguments);
th... | JavaScript | 0 | @@ -312,205 +312,64 @@
s);%0A
-%0A
%09%09
-this.argument('appName', %7B%0A%09%09%09type: String,%0A%09%09%09description: 'Name for your application',%0A%09%09%09required: false,%0A%09%09%09optional: true%0A%09%09%7D);%0A%0A%09%09util.prompts.node.map((p) =%3E %7B%0A%09%09%09this.option(p.name);%0A%09%09%7D
+util.gene... |
7a2cea877c98ab4621f769a8467dcea96c5bf0f8 | Enable remote file adding | js/core/world.js | js/core/world.js | /*
* Application state
*/
var World = {
parser: PEG.buildParser(" \
start = entity* \
entity = (' ' / '\\n')* e:[^;\\n]+ (';' / '\\n' / !.) { return Query.parser.parse(e.join(''))[0] } \
"),
compile: function(state_source) {
return World.parser.parse(state_source).map(function(predicates) {
v... | JavaScript | 0.000001 | @@ -1135,16 +1135,157 @@
;%0A %7D,%0A%0A
+ addFile: function(url) %7B%0A (new XHConn()).connect(url, 'get', '', function(xhr) %7B%0A World.add(xhr.responseText.trim())%0A %7D);%0A %7D,%0A%0A
remove
@@ -2041,16 +2041,78 @@
i++) %7B%0A
+ if(scripts%5Bi%5D.src.length %3E 0) World.addFile(scripts%5Bi%5... |
b05bf6bc49e10082a491eef094edf21bbf181049 | Fix bug | public/modules/maps/controllers/maps.client.controller.js | public/modules/maps/controllers/maps.client.controller.js | 'use strict';
// Articles controller
angular.module('maps').controller('MapsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Articles',
function($scope, $stateParams, $location, Authentication, Maps) {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(po... | JavaScript | 0.000001 | @@ -2709,39 +2709,42 @@
ps.LatLng(info.l
+oc
ati
-tude
+on%5B0%5D
, info.longitude
@@ -2736,23 +2736,25 @@
info.lo
-ngitude
+cation%5B1%5D
),%0A
@@ -2959,23 +2959,26 @@
g(info.l
+oc
ati
-tude
+on%5B0%5D
, info.l
@@ -2978,23 +2978,25 @@
info.lo
-ngitude
+cation%5B1%5D
);%0A%09%09%09%09l
@@ -3578,16 +357... |
b95a869d431a2a993bb603438b3ef25986aace05 | add docs | scripts/package-integrity.js | scripts/package-integrity.js | /**
* Verify the integrity of each package - ensure package json matches
* imports
*/
var readFileSync = require("fs").readFileSync;
var writeFileSync = require("fs").writeFileSync;
var ts = require("typescript");
var glob = require("glob");
var childProcess = require('child_process');
var path = require('path');
... | JavaScript | 0.000001 | @@ -2960,16 +2960,38 @@
);%0A%7D);%0A%0A
+// Handle any errors.%0A
if (Obje
|
74dcfe13105c187c1db363cde97b9ca431f4c512 | remove INFO console log when executing e2e tests in headless mode | src/e2e/src/protractor.config.js | src/e2e/src/protractor.config.js | 'use strict'
const { EOL } = require('os')
const { SpecReporter } = require('jasmine-spec-reporter')
const colors = require('colors')
const CHROME_CAPABILITIES = {
browserName: 'chrome',
chromeOptions: {
args: ['--start-maximized', '--disable-infobars', '--disable-notifications', '--no-sandbox']
}
}
const ... | JavaScript | 0.000001 | @@ -457,16 +457,33 @@
eadless'
+, %60--log-level=2%60
%5D%0A %7D%0A%7D%0A
|
3c53739f4a1dcc290f28bbb0431046631e520c53 | Add __ function in vue global for translation in recorder | frappe/public/js/frappe/recorder/recorder.js | frappe/public/js/frappe/recorder/recorder.js | import Vue from 'vue/dist/vue.js';
import VueRouter from 'vue-router/dist/vue-router.js';
import RecorderRoot from "./RecorderRoot.vue";
import RecorderDetail from "./RecorderDetail.vue";
import RequestDetail from "./RequestDetail.vue";
Vue.use(VueRouter);
const routes = [
{
name: "recorder-detail",
path: '/det... | JavaScript | 0 | @@ -233,16 +233,85 @@
.vue%22;%0A%0A
+Vue.prototype.__ = window.__;%0AVue.prototype.frappe = window.frappe;%0A%0A
Vue.use(
|
f2a0b7d18a59536af766d8e4500f6fc8049ffcf0 | update coding style | config/initializers/nunjucks.js | config/initializers/nunjucks.js | 'use strict';
import koa from 'koa';
import nunjucks from 'nunjucks';
import settingsConfig from './settings';
const options = {
autoescape: true
};
export default function(app : koa) {
const env = nunjucks.configure('app/server/templates', options);
env.addFilter('json', JSON.string... | JavaScript | 0.000001 | @@ -344,13 +344,8 @@
on*
-views
(nex
@@ -533,16 +533,26 @@
ameters,
+%0A
...sett
@@ -562,16 +562,26 @@
sConfig,
+%0A
csrf: t
|
1cf93c1741f3a106d90ce5c5e578ae9292aa58ec | Update string-utils.min.js | lib/string-utils.min.js | lib/string-utils.min.js | (function() {
"function" !== typeof String.prototype.format && (String.prototype.format = function() {
var c = arguments, e = arguments.length, f = function(b) {
var a = typeof b;
return"string" === a ? b : "number" === a || "boolean" === a ? "" + b : "object" === a && "function" === typeof b.toString... | JavaScript | 0.000005 | @@ -759,9 +759,8 @@
)%0A%7D)();%0A
-%0A
|
57584cea3ca5b421412fdc5eddab41499d18ba66 | Exit 0 at core/cli.js on success | packages/truffle-core/cli.js | packages/truffle-core/cli.js | #!/usr/bin/env node
require('source-map-support/register')
var Config = require("truffle-config");
var Command = require("./lib/command");
var TaskError = require("./lib/errors/taskerror");
var TruffleError = require("truffle-error");
var version = require("./lib/version");
var OS = require("os");
var command = new C... | JavaScript | 0 | @@ -1444,576 +1444,22 @@
%0A%0A
-// Don't exit if no error; if something is keeping the process open,%0A // like %60truffle console%60, then let it.%0A%0A // Clear any polling or open sockets - %60provider-engine%60 in HDWallet%0A // and %60web3 1.0 confirmations%60 both leave interval timers etc wide open.%0A c... |
bc6bf54f7f1eb3a83ef9d85a997982ce1ae962eb | build app on circleci | tools/buildApplication/deployApplication.js | tools/buildApplication/deployApplication.js | const exec = require('child-process-promise').exec;
const co = require('co');
const colors = require('colors');
const args = require('./cmdArgs');
const configs = require('./config');
const createEnvFile = require('./createEnvFile');
const buildNativeVersion = require('./buildNativeVersion');
const ANDROID_PATH = `... | JavaScript | 0 | @@ -1310,16 +1310,17 @@
%5B'branch
+'
%5D%7D $%7Bcol
|
c4d4b8f148723c60aae43b30cf795242ea88f8a5 | remove unused code | src/client/errorHandler.js | src/client/errorHandler.js | import Xhr from './xhr';
window.onerror = (message, url, lineNo, colNo, error) => {
Xhr.post('/api/error/log', {
message,
url,
lineNo,
colNo,
error,
}).then(() => {}, () => {});
const msg = document.createElement('pre');
msg.innerText = [
`Message: ${message}`,
`URL: ${url}`,
`L... | JavaScript | 0.000017 | @@ -200,219 +200,7 @@
%7D);%0A
- const msg = document.createElement('pre');%0A msg.innerText = %5B%0A %60Message: $%7Bmessage%7D%60,%0A %60URL: $%7Burl%7D%60,%0A %60Line: $%7BlineNo%7D%60,%0A %60Column: $%7BcolNo%7D%60,%0A %60Stack: $%7Berror && error.stack%7D%60,%0A %5D.join('%5Cn');%0A
%7D;%0A
|
b95e9f0a734526483a26ec4732c351079bbb6f57 | Indent single line code blocks. | lib/render/man.js | lib/render/man.js | var EOL = require('os').EOL;
var util = require('util');
var TextRenderer = require('./text');
var repeat = require('cli-util').repeat;
var dnl = EOL + EOL;
var elements = require('manual').elements;
var escape = require('manual').sanitize;
var strip = function(text) {
return text.replace(/^\.[a-zA-Z]+\n/gmi, '');
}... | JavaScript | 0.000001 | @@ -718,16 +718,23 @@
n EOL +
+ ' ' +
element
|
7a8759ee5eaaced23a3214997cc8c9ecc3140c6b | Default keepEmptyPriority: false | lib/constants.js | lib/constants.js | 'use strict';
var path = require('path');
// #ARCHIVE:0 Eliminate unused config options
var DEFAULT_EXCLUDE_PATTERN = "^(node_modules|bower_components|\\.imdone|target|build|dist|logs)[\\/\\\\]?|\\.(git|svn|hg|npmignore)|\\~$|\\.(jpg|png|gif|swp|ttf|otf)$";
var CONFIG_DIR = ".imdone";
module.exports = {
CONFIG_DIR: ... | JavaScript | 0.999924 | @@ -616,19 +616,20 @@
iority:
-tru
+fals
e,%0A c
|
d058fc97c164d69871d9cb2bfff3ee038a42cd74 | Improve lint() logic, https://github.com/phetsims/phet-info/issues/150 | js/grunt/lint.js | js/grunt/lint.js | // Copyright 2017-2020, University of Colorado Boulder
/**
* Runs the lint rules on the specified files.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
'use strict';
// modules
const _ = require( 'lodash' ); // eslint-disable-line require-statement-match
const { ESLint } = require( 'eslint' ); // eslint-... | JavaScript | 0.000001 | @@ -2769,135 +2769,25 @@
4.
-Format the results.%0A const formatter = await eslint.loadFormatter( 'stylish' );%0A const resultText = formatter.format(
+Parse the
results
);%0A
@@ -2782,20 +2782,17 @@
results
- );%0A
+.
%0A const
@@ -2945,91 +2945,197 @@
%0A%0A
-const total = totalWarnings + totalErrors;... |
a745e42cf56fef652b30fbcc92db01d1f898c6ad | send directly string/Buffer results | packages/xo-server/src/xo.js | packages/xo-server/src/xo.js | import createLogger from '@xen-orchestra/log'
import XoCollection from 'xo-collection'
import XoUniqueIndex from 'xo-collection/unique-index'
import mixin from '@xen-orchestra/mixin'
import { createClient as createRedisClient } from 'redis'
import { EventEmitter } from 'events'
import { noSuchObject } from 'xo-common/a... | JavaScript | 0 | @@ -3436,16 +3436,122 @@
(typeof
+result === 'string' %7C%7C Buffer.isBuffer(result)) %7B%0A res.end(result)%0A %7D else if (typeof
result.p
|
d74c0db8b44217a5900ba95b611cb69d98ef7cd9 | add socket.io | dev/dispenseManager/app.js | dev/dispenseManager/app.js | require('mousetrap')
if (!Object.assign) {
Object.defineProperty(Object, 'assign', {
enumerable: false,
configurable: true,
writable: true,
value: function (target) {
if (target === undefined || target === null) {
throw new TypeError('Cannot convert first argument to object')
}
... | JavaScript | 0.000001 | @@ -1281,16 +1281,98 @@
ction'%0A%0A
+import injectTapEventPlugin from 'react-tap-event-plugin'%0AinjectTapEventPlugin()%0A%0A
var app
@@ -1508,129 +1508,772 @@
-this.products = new Products()%0A this.contacts = new Contacts()%0A this.newCode = new Code()%0A%0A this.filterText = ''
+var self = this%0A... |
010817f0a13ced4f0710efac22a30bb1977c589a | add `id` property | lib/route/feed.js | lib/route/feed.js | 'use strict'
const Feed = require('feed')
const config = require('../config')
const index = exports.index = function *(format) {
const userId = this.params.userId
const userInfo = config.getUserInfo(userId)
const messages = yield this.mongo.collection('messages').find({ userId }).toArray()
if (!userInfo) { ... | JavaScript | 0.000005 | @@ -358,16 +358,41 @@
Feed(%7B%0A
+ id: userInfo.userId,%0A
titl
|
023321d4c2ec0bef0eb88a403ea52403cd465859 | Fix some comments don't disappear | acg/extensions/acg-233.js | acg/extensions/acg-233.js | var acg = acg || {};
acg.ext = acg.ext || {};
acg.ext._233_recs = [];
acg.ext._233_fontname = 'Arial';
acg.ext._233_fontsize = 26;
acg.ext._233_lineh = 32;
acg.ext._233_layer = null;
acg.ext._233_firstresume = true;
acg.ext._233_onpause_reg = function () {
acg.ext._233_layer.getChildren().forEach(function (e) { e... | JavaScript | 0 | @@ -603,24 +603,128 @@
instead.%0A
+ // XXX: This has to be done twice, or some comments won't disappear QwQ%0A for (var i = 0; i %3C 2; i++)
acg.ext._23
@@ -3511,37 +3511,38 @@
233_lineh / acg.
-width
+height
));%0A %7D else i
@@ -3701,21 +3701,22 @@
h / acg.
-width
+height
));%0A
|
999e2b259a68f8b8bc7ea95ec8f55d0b566bfe50 | Remove project: returns deleted project name | src/commands/project-rm.js | src/commands/project-rm.js | import prompt from 'prompt';
import { getPrompt } from '../libs/prompt';
import chalk from 'chalk';
import Table from 'cli-table';
import config from '../config';
import * as specActions from '../actions/spec-actions';
const prompts = [{
name: 'confirm',
description: 'Are you sure you want to remove this project?... | JavaScript | 0.000011 | @@ -612,16 +612,28 @@
%60));%0A%0A%09%09
+const ret =
await di
@@ -665,16 +665,58 @@
(uuid));
+%0A%09%09const projectName = ret.data.spec.name;
%0A%0A%09%09cons
@@ -742,25 +742,44 @@
Project
-'
+$%7BprojectName%7D (id:
$%7Buuid%7D
-'
+)
removed
|
274ae69773b836c4a91003a684debb9547a42763 | Use correct codepoint | src/commands/vote/index.js | src/commands/vote/index.js | const MSS = require("./../../functions/");
const meta = require("./meta.json");
module.exports = function yt(message) {
let input = message.content.replace (/\n/g, "").split(" ");
input.shift();
input.shift();
let items = input.join(" ");
let vote = items.split(";");
if(vote.length < 1) {
return message.chan... | JavaScript | 0.000323 | @@ -600,36 +600,37 @@
.fromCodePoint(5
-7884
+08419
+ iterator))%0A%09%09
@@ -669,12 +669,13 @@
nt(5
-7884
+08419
+ i
|
91e9d648dd0bdc97137e0bc689f9d65ecca52889 | Allow milliseconds in the timestamp | lib/winston-graylog2.js | lib/winston-graylog2.js | // winston-graylog2.js: Transport for outputting logs over UDP to Graylog2
var util = require('util'),
winston = require('winston'),
compress = require('compress-buffer').compress,
dgram = require('dgram');
var Graylog2 = exports.Graylog2 = winston.transports.Graylog2 = function (options) {
this.name = 'gra... | JavaScript | 0.999991 | @@ -1926,13 +1926,8 @@
1000
- %3E%3E 0
;%0A
@@ -2749,12 +2749,13 @@
%7D%0A %7D);%0A%7D;
+%0A
|
b8ef9e3c96e425d832f3da31ea8d9498903c94a1 | remove comment | src/errorMessage/ErrorMessage.js | src/errorMessage/ErrorMessage.js |
import React from 'react';
// notdefinedvariable = 3434;
const renderErrorComp = (error,keyErr, Render, index) => {
if(error[keyErr] && Render){
return <Render {...error[keyErr]} key={index} />
}
};
const ErrorMessage = (errorspec) => {
return (error)=>{
let result = [];
if(er... | JavaScript | 0 | @@ -1063,57 +1063,8 @@
%7D
-%0A %0A%0A //===================%0A
|
28ed8719981ba49b1ef199c1e634e43e196efffb | add comment | js/mainwindow.js | js/mainwindow.js | // Initialize Editor
require('ace-min-noconflict');
require('ace-min-noconflict/mode-markdown');
var editor = ace.edit("editor");
editor.getSession().setMode("ace/mode/markdown");
editor.getSession().setUseWrapMode(true);
editor.focus();
var webview = document.getElementById('webview');
if (process.env.DEBUG_GUEST) {... | JavaScript | 0 | @@ -229,24 +229,43 @@
r.focus();%0A%0A
+// for Guest Debug%0A
var webview
|
34490522454d9e7da2dc00960d80b3d95c027998 | Remove param in FluxOnly example | src/example/FluxOnly/FluxOnly.js | src/example/FluxOnly/FluxOnly.js | import React from 'react';
import {Store, Url, Actions} from '../..';
import styles from './FluxOnly.css';
const Switch = React.createClass({
getInitialState() {
return Store.getQuery();
},
componentDidMount() {
this.unsubscribe =
Store.subscribe(this.onChange);
},
componentWillUnmount() {
... | JavaScript | 0 | @@ -408,16 +408,21 @@
('switch
+Block
' in thi
@@ -463,16 +463,21 @@
e.switch
+Block
;%0A %7D%0A
@@ -944,24 +944,29 @@
ery=%7B%7Bswitch
+Block
: 'First'%7D%7D%3E
@@ -1043,24 +1043,29 @@
ery=%7B%7Bswitch
+Block
: 'Second'%7D%7D
@@ -1666,16 +1666,21 @@
(%7Bswitch
+Block
: val%7D)
@@ -1727,16 +1727,21 @@
e.... |
0ccdf9479afa93de73543d1cc87b7320be58461f | use template's noConflict | lib/fidel-template.js | lib/fidel-template.js |
Fidel.prototype.render = function(data) {
var tmpl = $('#'+this.templateId).html();
this.el.html(template(tmpl, data));
};
| JavaScript | 0 | @@ -1,9 +1,73 @@
%0A
+(function(Fidel) %7B%0A Fidel.template = template.noConflict();%0A%0A
Fidel.pr
@@ -102,16 +102,18 @@
ta) %7B%0A
+
+
var tmpl
@@ -146,16 +146,18 @@
html();%0A
+
this.e
@@ -163,16 +163,22 @@
el.html(
+Fidel.
template
@@ -196,7 +196,27 @@
));%0A
+
%7D;%0A
+%7D)(window.Fidel);%0... |
a5724ea092159e472af23a64d86504ae798706a2 | Update events.js | lib/filters/events.js | lib/filters/events.js |
module.exports = {
w3cmemes: {
origin: "W3CMemes"
, name: "W3CMemes"
, description: "The official news agency for the W3C community"
}
, w3cnews: {
origin: "W3C News"
, name: "W3C News"
, description: "The party line"
}
, ... | JavaScript | 0 | @@ -3969,24 +3969,503 @@
%5D%0A %7D%0A
+, %22publ%22: %7B%0A origin: %22github%22%0A , name: %22Publishing Working Group documents%22,%0A , description: %22Github activities around the Publishing on the Web WG specs%22,%0A , repository: %5B%0A %22w3c/... |
d7ef755388b425e820f48ecb7e6b0963b199a219 | Add actions module and register to API | lib/digio-api.js | lib/digio-api.js | var request = require('request')
var digio_api = function (token) {
var API_URL = 'https://api.digitalocean.com/v2/'
var digio_headers = {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
}
var tools = {
_get: function (action, callback) {
request({
url: API_UR... | JavaScript | 0 | @@ -2013,16 +2013,66 @@
)(tools)
+,%0A actions: require('./modules/actions')(tools)
%0A %7D%0A%7D%0A%0A
|
d7098d3a55007f3d2085a2e3a11882fc10c8c773 | Fix dashboard groupby table view. | src/foam/dashboard/view/Table.js | src/foam/dashboard/view/Table.js | foam.CLASS({
package: 'foam.dashboard.view',
name: 'Table',
extends: 'foam.u2.Element',
requires: [
'foam.core.Model',
'foam.dao.ArrayDAO',
'foam.u2.view.TableView',
],
imports: [
'data',
'visualizationWidth',
'visualizationHeight'
],
properties: [
[ 'nodeName', 'table' ],
... | JavaScript | 0 | @@ -215,107 +215,26 @@
,%0A
- 'visualizationWidth',%0A 'visualizationHeight'%0A %5D,%0A properties: %5B%0A %5B 'nodeName', 'table' %5D,
+%5D,%0A properties: %5B
%0A
@@ -1127,16 +1127,21 @@
id:
+ '' +
k,%0A
@@ -1156,21 +1156,16 @@
value:
- '' +
data$da
|
27c9c7b86929214639e8d82b5f280b74b4587f26 | fix bug from last version | lib/ssdb_redis.js | lib/ssdb_redis.js | /**
* ssdb redis client wrapper
* Created by cherokee on 14-5-22.
*/
var SSDB = require('./SSDB.js');
var redis_cli = function(host,port){
this.ssdb_cli = SSDB.connect(host, port,30*1000,function(err,errobj){
if(err)throw errobj;
});
}
redis_cli.prototype.get = function(key,callback){
this.ssdb... | JavaScript | 0 | @@ -6053,37 +6053,8 @@
%7D
-console.log(name+' : '+data);
%0A
|
bc0346da174ed3c983851f2d9835290efa46ca69 | Fix test | test/actions/mango.spec.js | test/actions/mango.spec.js | /* eslint-env jest */
/* global cozy */
import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'
import {
INDEX_FILES_BY_DATE,
INDEX_FILES_BY_DATE_SUCCESS
} from '../../src/constants/actionTypes'
import {
FILE_DOCTYPE
} from '../../src/constants/config'
import { indexFilesByDate } from '... | JavaScript | 0.000879 | @@ -523,32 +523,43 @@
ields: %5B'class',
+ 'trashed',
'created_at'%5D%0A%7D
@@ -1564,16 +1564,27 @@
'class',
+ 'trashed',
'create
|
c77721e1f09a056945635fdcd15cc0b2f406244f | Update some var to model.var in CardController | js/myapp/card.js | js/myapp/card.js |
// ----------------------------------------------------------------
// Card Class
class CardModel extends SwitchModel {
constructor({
name,
lsKeyView,
triggerSelector,
switchSelector,
hash = null
} = {}) {
super({
name: name,
lsKeyView: lsKeyView,
triggerSelector: trigger... | JavaScript | 0 | @@ -563,13 +563,8 @@
ard-
-area
tbod
@@ -986,24 +986,30 @@
%0A this.
+model.
ID = null;%0A
@@ -1012,24 +1012,30 @@
l;%0A this.
+model.
HASH = null;
@@ -1036,32 +1036,38 @@
null;%0A this.
+model.
LOGIN = null;%0A
@@ -1118,16 +1118,22 @@
this.
+model.
ID = _id
@@ -1139,24 +1139,30 @@
d;%0A ... |
05cb8f224f6813337c6bbe22f3f71544c65b4ce7 | Add TEMPLATE_CARD_HOVER_SELECTOR in CardModel | js/myapp/card.js | js/myapp/card.js |
// ----------------------------------------------------------------
// Card Class
class CardModel extends SwitchModel {
constructor({
name,
lsKeyView,
triggerSelector,
switchSelector
} = {}) {
super({
name: name,
lsKeyView: lsKeyView,
triggerSelector: triggerSelector,
s... | JavaScript | 0 | @@ -768,24 +768,167 @@
_SELECTOR);%0A
+ this.TEMPLATE_CARD_HOVER_SELECTOR = '#card-hover-template';%0A this.$TEMPLATE_CARD_HOVER_SELECTOR = $(this.TEMPLATE_CARD_HOVER_SELECTOR);%0A
%0A thi
|
0d8160c9ba8e4de29c8f2c2284d0b71b2c01d06e | Use new _url to replace the way the url used to be obtained. | lib/emberconf.js | lib/emberconf.js | var Promise = require('bluebird')
, request = Promise.promisifyAll(require('request'))
, md = require('markdown').markdown
, _ = require('lodash')
, yt = require('youtube-dl')
, fs = require('fs')
, ProgressBar = require('progress')
var getInfoAsync = Promise.promisify(yt.getInfo)
var _link = 'https://raw... | JavaScript | 0 | @@ -2112,34 +2112,20 @@
ex) %7B%0A
-_extractData(
urls
-)
%0A .th
@@ -2155,36 +2155,223 @@
-var video = urls%5Bindex - 1%5D%0A
+return getInfoAsync(urls%5Bindex - 1%5D.url)%0A %7D)%0A .then(function (info) %7B%0A return %7B title: _.startCase(info.title.toLowerCase())%0A , url: info... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.