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 |
|---|---|---|---|---|---|---|---|
d8d0bf35cde7c21176f5c8e2acd713c87538f778 | Set the real boards sizes | js/index.js | js/index.js | (function () {
var game = null
, $aboutWindow = $(".window-about")
, $closeAboutBtn = $(".close-about")
, $game = $(".game-info")
, $enterName = $(".enter-name")
, $congrats = $(".congrats")
, $nameInput = $("form input.user-name")
, $time = $(".time")
, $pairsCount =... | JavaScript | 0.000001 | @@ -1048,11 +1048,8 @@
x:
-1//
6%0A
@@ -1065,12 +1065,8 @@
y:
-2 //
5%0A
@@ -1091,20 +1091,16 @@
x:
- 2//
10%0A
@@ -1113,12 +1113,8 @@
, y:
- 2//
6%0A
|
f26666814594722a92215166234e08d5ff073125 | Update index.js | js/index.js | js/index.js | $(document).ready(function() {
getWeather(); //Get the initial weather.
setInterval(getWeather, 600000); //Update the weather every 10 minutes.
});
// var d = new Date();
// document.getElementById("currentDate").innerHTML = d;
// 22721202
function getWeather() {
$.simpleWeather({
woeid: '1096823'... | JavaScript | 0.000002 | @@ -154,101 +154,8 @@
);%0A%0A
-// var d = new Date();%0A// document.getElementById(%22currentDate%22).innerHTML = d;%0A// 22721202%0A%0A
func
@@ -214,32 +214,49 @@
eid: '1096823',
+// WOEID Location
%0A locatio
@@ -694,28 +694,16 @@
/div%3E';%0A
- %0A
@@ -1086,29 +1086,17 @@
%7D... |
2b61723b9c1bd3a2b0fff7fb04b70b97bc1fea24 | Update modal.js | js/modal.js | js/modal.js | /*$('#myModal').on('hidden.bs.modal', function () {
$(this).removeData('bs.modal');
});
$('#myModal').on('show.bs.modal', function () {
$(this).find('.modal-body').css({
width:'auto', //probably not needed
height:'auto', //probably not needed
'max-height':'100%'
... | JavaScript | 0.000001 | @@ -850,18 +850,91 @@
e');
+%0A
+ $('body').css('overflow','hidden');%0A$('body').css('position','fixed');
%0A %7D);
|
bdd5d8ad898cbf720f9dfc698fa04cacb95787fa | 삭제 버튼 클릭 시 트윗이 삭제되지 않는 버그 수정 | js/popup.js | js/popup.js | (function() {
var tweetFormatStr =
'<div class="outerbox" id="{0}">'
+ '<img class="icon" src="{1}">'
+ '<div class="msgbox">'
+ '<div class="header">'
+ '<span class="userId">{2}</span>'
+ ' '
+ '<span class="name">{3}</span>'
+ '... | JavaScript | 0 | @@ -381,35 +381,8 @@
=%22#%22
- onclick=%22deleteTweet(%7B0%7D)%22
%3E'%0A
@@ -659,16 +659,27 @@
div%3E';%0A%0A
+ tweet();%0A
docume
@@ -726,26 +726,16 @@
rKey);%0A
- tweet();%0A
%0A funct
@@ -2862,16 +2862,18 @@
weet?%22))
+ %7B
%0A r
@@ -2875,24 +2875,30 @@
return;%0A
+ %7D%0A
var req ... |
cfb03854bf3373109dacadff5044ac4498654756 | Change fields affected by expander, refs #9266 | js/qubit.js | js/qubit.js | var Qubit = Qubit || {};
// Usage: log('inside coolFunc',this,arguments);
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function()
{
log.history = log.history || [];
log.history.push(arguments);
if (this.console)
{
console.log( Array.prototype.slice.call(a... | JavaScript | 0 | @@ -476,37 +476,278 @@
div
-:not(:has(ul, li))')%0A
+').each(function (index, element) %7B%0A var $element = jQuery(element);%0A // Don't apply expander to fields with only one child, if that child is a list%0A if ($element.children().length !== 1 %7C%7C !$element.children().first().is('u... |
995d7090a899506b9800c4549a02b413bebc3323 | Save As causes a navigate action, and updates the available history items. | js/store.js | js/store.js | "use strict";
/*global module, require*/
var _ = require("lodash"),
helpers = require("./helpers.js"),
isNum = helpers.isNum,
noop = helpers.noop,
callbacks = helpers.callbackHandler,
versionCacheFactory = require("./version-cache.js");
/*
Operates on a single collection. Keeps track of the op... | JavaScript | 0 | @@ -2138,18 +2138,90 @@
rialized
-);
+, function() %7B%0A%09%09 versionCache.updateVersions(%0A%09%09%09title%0A%09%09 );%0A%09%09%7D);%0A
%0A%09 %7D
@@ -4227,16 +4227,41 @@
oaded);%0A
+%09%09%09navigate(name, null);%0A
%09%09%09saveD
|
4c77e1046933e15f0d9e5a17856ab7cd470dc0f7 | Update theme.js | js/theme.js | js/theme.js | $( document ).ready(function() {
// Shift nav in mobile when clicking the menu.
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
});
// Close menu when you click ... | JavaScript | 0.000001 | @@ -528,24 +528,224 @@
%22);%0A %7D);%0A
+ // color background of current menu items%0A $(document).on('click', %22.wy-nav-shift a%22, function() %7B%0A $(%22.wy-nav-shift a%22).removeClass(%22current%22);%0A $(this).addClass(%22current%22);%0A %7D);%0A
$(docume
|
1318a9975573ddf9c7d1ae61af3ca0c50dc165e6 | remove unused functions | js/utils.js | js/utils.js |
import { api as router } from 'abyssa'
export const requestAnimationFrame = window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.msRequestAnima... | JavaScript | 0.000009 | @@ -557,119 +557,8 @@
%0A%7D%0A%0A
-export const addTabIndex = item =%3E item.tabIndex = 0%0A%0Aexport const removeTabIndex = item =%3E item.tabIndex = -1%0A
%0Aexp
|
cf081feb8420e96589caad88eb4a297b09a7667d | remove unused dep | actStub.js | actStub.js | 'use strict'
const Sinon = require('sinon')
const strictEquals = require('assert').deepStrictEqual
/**
*
*
* @class ActStub
*/
class ActStub {
/**
* Creates an instance of ActStub.
*
* @memberOf ActStub
*/
constructor (hemera) {
this.s = null
this.hemera = hemera
}
/**
*
*
* ... | JavaScript | 0.000002 | @@ -41,63 +41,8 @@
on')
-%0Aconst strictEquals = require('assert').deepStrictEqual
%0A%0A/*
|
0395747912e44b24cd38a5fc4b87a192c2f321e3 | update i18n logic | javascript/dojo-1.1.1-lib/trunk/src/main/webapp/js/org/ppwcode/dojo/dijit/i18n/LocalizedField.js | javascript/dojo-1.1.1-lib/trunk/src/main/webapp/js/org/ppwcode/dojo/dijit/i18n/LocalizedField.js | dojo.provide("org.ppwcode.dojo.dijit.i18n.LocalizedField");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dojo.i18n");
dojo.declare(
"org.ppwcode.dojo.dijit.i18n.LocalizedField",
[dijit._Widget, dijit._Templated],
{
//summary:
// todo
//description:
... | JavaScript | 0 | @@ -380,16 +380,33 @@
'%3Clabel
+ for=%22$%7Bfieldid%7D%22
%3E$%7Bvalue
@@ -413,17 +413,16 @@
%7D%3C/label
-%3E
',%0D%0A
@@ -427,24 +427,23 @@
%0D%0A
-property
+fieldid
: 'none'
@@ -568,24 +568,23 @@
%09 this.
-property
+fieldid
= argum
@@ -588,24 +588,23 @@
guments.
-property
+fieldid
;%0D%0A%09... |
9772a3539bb2dc9a3af1d2ec5d022dee2cc24595 | Remove debug statement | website/src/app/project/experiments/experiment/components/notes/mc-experiment-notes.component.js | website/src/app/project/experiments/experiment/components/notes/mc-experiment-notes.component.js | class MCExperimentNotesComponentController {
/*@ngInject*/
constructor($scope, $mdDialog, notesService, $stateParams, toast, editorOpts) {
$scope.editorOptions = editorOpts({height: 67, width: 59});
this.notesService = notesService;
this.$mdDialog = $mdDialog;
this.toast = toast... | JavaScript | 0.000021 | @@ -747,40 +747,8 @@
) %7B%0A
- console.log('addNote');%0A
|
da781a93b615b32b6edfe45a0c90383f7cf51cda | Add note about handling over int'l date line | local_modules/gridfilter/MarkerGrid.js | local_modules/gridfilter/MarkerGrid.js | const Mapper = require('./Mapper')
const circle = require('./circle')
// Build key strings for cells to help putting them into dictionary.
// Define the structure of the key here.
const stringify = (x, y) => x + ';' + y
const MarkerGrid = function (latLngBounds, gridSize) {
// Parameters:
// latLngBounds is a g... | JavaScript | 0 | @@ -581,16 +581,172 @@
height%0A%0A
+ // Ensure correct handling over map edges.%0A // For example, usually west %3C east, except when east goes over%0A // the international date line.%0A // TODO%0A%0A
// Map
|
21baa1d9add34cb832ca94974cd73b9cfb2f26a5 | add redirect to simple example | examples/index.js | examples/index.js | import React from "react";
import ReactDOM from "react-dom";
import { HashRouter as Router, Route, Link, Switch } from "react-router-dom";
import App from "./containers/App";
import Simple from "./examples/simple";
import Standard from "./examples/standard";
const examples = [
{
to: "/simple",
label: "Simpl... | JavaScript | 0.000001 | @@ -5,16 +5,30 @@
rt React
+, %7B Fragment %7D
from %22r
@@ -110,20 +110,16 @@
te,
-Link, Switch
+Redirect
%7D f
@@ -462,16 +462,105 @@
Router%3E%0A
+ %3CFragment%3E%0A %3CRoute exact path=%22/%22 render=%7B() =%3E %3CRedirect to=%22/simple%22 /%3E%7D /%3E%0A
%3CApp
@@ -583,16 +583,32 @@
les%7D ... |
06291110313fdba2556a971305066274c936d335 | Resolve image icon path relative to module | examples/swing.js | examples/swing.js | var {JFrame, JButton, ImageIcon, JLabel} = javax.swing;
var {setInterval} = require('ringo/scheduler');
var n = 0;
function main() {
var frame = new JFrame("Swing Demo");
var button = new JButton(new ImageIcon("img/ringo-drums.png"));
button.addActionListener(function(e) {
setInterval(function() {
... | JavaScript | 0 | @@ -212,16 +212,31 @@
ageIcon(
+module.resolve(
%22img/rin
@@ -250,16 +250,17 @@
s.png%22))
+)
;%0A bu
|
ba8dffbe83e78910242c0723feb0746519014780 | Update comparison.js | routes/comparison.js | routes/comparison.js | const express = require('express')
const router = express.Router()
const wrap = fn => (...args) => fn(...args).catch(args[2])
router.get('/:items', wrap(async (req, res) => {
const items = req.params.items.split('--').map(e => parseInt(e, 10))
const db = req.app.locals.db
const goods = db.collection('offers')
... | JavaScript | 0.000001 | @@ -250,18 +250,22 @@
const
-db
+%7B db %7D
= req.a
@@ -277,11 +277,8 @@
cals
-.db
%0A c
|
b76055bb539b5e8a6ca1a0e35001ef1264efe030 | fix error handling in github raw file request | routes/github-api.js | routes/github-api.js | var Github = require("github-api");
var request = require('request');
var User = require('../models/users.js');
var File = require('../models/composeFiles.js');
//Wrapper to get the list of repositories of the user
function listUserRepos(accessToken, username, callback){
var github = new Github({
token: acce... | JavaScript | 0 | @@ -2005,32 +2005,100 @@
ion(err, data)%7B%0A
+ if(err)%7B%0A callback(err, null);%0A %7D%0A if(data)%7B%0A
if(data.
@@ -2537,32 +2537,39 @@
ody);%0A %7D%0A
+ %7D
%0A %7D);%0A%7D%0A%0A%0A//W
|
aaf54df6917f1e0e358b6d07879110bcade318b8 | Fix me Music Object | app/objects/Music.js | app/objects/Music.js | const fs = require('fs');
const mm = require('musicmetadata');
// var iconv = require('iconv-lite');
class Music {
constructor(path = '', coverPath = '', cb = ()=>{}){
let me = this;
let read_stream = fs.createReadStream(path);
let parser = mm(read_stream,{duration : true}, (err, data) => {
if(err){
me.... | JavaScript | 0.000025 | @@ -168,25 +168,8 @@
%7D)%7B%0A
-%09%09let me = this;%0A
%09%09le
@@ -293,18 +293,20 @@
r)%7B%0A%09%09%09%09
-me
+this
.valid =
@@ -336,18 +336,20 @@
%09%09%09%7D%0A%09%09%09
-me
+this
.path =
@@ -357,18 +357,20 @@
ath;%0A%09%09%09
-me
+this
.valid =
@@ -379,18 +379,20 @@
rue;%0A%09%09%09
-me
+this
.title =
... |
2e0cf03be836f03a8c0b475b5f5d0ca35adb0332 | Add doc link | pr/gp2/pr.js | pr/gp2/pr.js | /* exported onBuyClicked */
/**
* Initializes the payment request object.
* @return {PaymentRequest} The payment request object.
*/
function buildPaymentRequest() {
if (!window.PaymentRequest) {
return null;
}
const baseRequest = {
apiVersion: 2,
apiVersionMinor: 0,
};
const tokenizationSpec... | JavaScript | 0 | @@ -216,16 +216,99 @@
l;%0A %7D%0A%0A
+ // Documentation:%0A // https://developers.google.com/pay/api/web/guides/tutorial%0A
const
|
1fa2657138fca62291238ed82202554d180dd8a3 | fix bugs | resources/assets/js/app.js | resources/assets/js/app.js |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
import Vue from 'vue';
import _ from 'lodash';
import Buefy from 'buefy... | JavaScript | 0.000001 | @@ -1595,36 +1595,16 @@
able));%0A
-
%0A
@@ -1608,36 +1608,44 @@
-if (
+this.list =
response.data.li
@@ -1650,407 +1650,204 @@
list
-) %7B%0A this.list = response.data.list;%0A %7D%0A %0A if... |
df3c76fa72c79dc0f84c41548d1782deb382f822 | Remove useless statement. | packages/xen-api/src/cli.js | packages/xen-api/src/cli.js | #!/usr/bin/env node
import blocked from 'blocked'
import Bluebird, {coroutine} from 'bluebird'
import eventToPromise from 'event-to-promise'
import execPromise from 'exec-promise'
import minimist from 'minimist'
import pw from 'pw'
import {start as createRepl} from 'repl'
import {createClient} from './'
// =========... | JavaScript | 0.000028 | @@ -436,49 +436,8 @@
bug'
-%0Aconst debug = createDebug('xen-api:cli')
%0A%0Aim
|
77ea0fb8257b7e193964919d5b2cc9d7690e6c43 | Fix KeystoneJS routes to enable pretty URLs. | www/routes/index.js | www/routes/index.js | var babelify = require('babelify');
var browserify = require('browserify-middleware');
var keystone = require('keystone');
var passport = require('passport');
var importRoutes = keystone.importer(__dirname);
var routes = {
views: importRoutes('./views'),
api: importRoutes('./api'),
auth: importRoutes('./auth')
};
... | JavaScript | 0 | @@ -871,43 +871,8 @@
);%0A%0A
-%09app.get('/', routes.views.index);%0A
%0A%09ap
@@ -3588,12 +3588,48 @@
.texts);
+%0A%0A%09app.get('*', routes.views.index);
%0A%7D;%0A
|
f7aa3b39ff1b72066dc502d78a97e3366f507e3f | Remove the unnecessary comment about private socket variable | public/javascript/pump/socket.js | public/javascript/pump/socket.js | // pump/socket.js
//
// Socket module for the pump.io client UI
//
// @licstart The following is the entire license notice for the
// JavaScript code in this page.
//
// Copyright 2011-2012, E14N https://e14n.com/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file excep... | JavaScript | 0 | @@ -921,32 +921,8 @@
%22;%0A%0A
- // Private instance%0A
|
129e2b771247ab54fb0302ce5708e02cafd1bfdb | Add translator. | assets/src/edit-story/components/form/dateTime/datePicker.js | assets/src/edit-story/components/form/dateTime/datePicker.js | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0.000001 | @@ -890,17 +890,17 @@
port %7B _
-_
+x
%7D from
@@ -2235,17 +2235,106 @@
l=%7B_
-_('Next',
+x(%0A 'Next',%0A 'This label can apply to next month, year and/or decade',%0A
'we
@@ -2335,32 +2335,41 @@
'web-stories'
+%0A
)%7D%0A prevA
@@ -2383,21 +2383,114 @@
l=%7B_
-_... |
da751166f48e4a2e4ba9fd382887556ecc275339 | Change componentWillReceiveProps to UNSAFE_componentWillReceiveProps | src/ReactHeight.js | src/ReactHeight.js | import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
const getElementHeightDefault = el => el.clientHeight;
export class ReactHeight extends PureComponent {
static propTypes = {
children: PropTypes.node.isRequired,
onHeightReady: PropTypes.func.isRequired,
hidden: PropTypes.... | JavaScript | 0.000002 | @@ -983,30 +983,27 @@
ine
-react/no-deprecated%0A
+camelcase%0A UNSAFE_
comp
|
886d71b9b3c5d0951d90151d6c38b9b5bde6552b | Update for plug-in : skyrock.com | plugins/skyrock.js | plugins/skyrock.js | var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Skyrock',
version:'0.1',
prepareImgLinks:function (callback) {
var res = [];
hoverZoom.urlReplace(res,
'a img[src*="small"]',
['/small.', '_small_'],
['/big.', '_']
);
... | JavaScript | 0 | @@ -168,16 +168,17 @@
s = %5B%5D;%0A
+%0A
@@ -304,32 +304,33 @@
'_'%5D%0A );%0A
+%0A
hoverZoo
@@ -428,32 +428,33 @@
'_'%0A );%0A
+%0A
hoverZoo
@@ -562,16 +562,587 @@
);%0A
+%0A //sample url:%0A //https://i.skyrock.net/0985/88950985/pics/3331887376_1_38_d... |
e8f6e23c16c5d7391809445cb3338e1138ce4906 | delete a vertex in polyline by rightclick. | public/javascripts/patheditor.js | public/javascripts/patheditor.js | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
function PathEditor(opt_options) {
var options = opt_options || {};
this.setValues(options);
this.polylines = new Array();
this.earthRadius = 6370986;
this.generalStyle = {strokeColor : "#0000... | JavaScript | 0 | @@ -3269,16 +3269,194 @@
%7D);%0A
+ var deleteNode = function(mev) %7B%0A%09if (mev.vertex != null) %7B%0A%09 pl.getPath().removeAt(mev.vertex);%0A%09%7D%0A %7D%0A google.maps.event.addListener(pl, 'rightclick', deleteNode);%0A
%7D%0APathEd
@@ -5155,8 +5155,9 @@
true;%0A%7D
+%0A
|
ba41ac69de0fdcb4079146aebd745c89752812bd | use prototype when convenient | app/scripts/query.js | app/scripts/query.js | 'use strict';
var regexTerm = /([\w\+\-&\|!\(\){}\[\]\^"~\*\?:\\]+)/g;
var regexNonTerm = /[^\w\+\-&\|!\(\){}\[\]\^"~\*\?:\\]+/g;
var enumGlueTypes = {
or: 1,
and: 2,
phrase: 3,
not: 4
};
var glue = function (term, type, field) {
var rv = '';
switch (type) {
case enumGlueTypes.or:
... | JavaScript | 0 | @@ -969,49 +969,8 @@
%5D;%0A%0A
- this.enumGlueTypes = enumGlueTypes;%0A%0A
@@ -2384,16 +2384,64 @@
%7D;%0A%7D;%0A%0A
+Query.prototype.enumGlueTypes = enumGlueTypes;%0A%0A
module.e
|
6b95e777256b21b185523ba648287ea23af6810f | version bump | web/webpack/webpack.common.js | web/webpack/webpack.common.js | const SPECMATE_VERSION = '0.1.7'
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const GitRevisionPlugin = require('git-revision-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const helpers = require('./helpers');
const gitRevisionPlugin = ne... | JavaScript | 0.000001 | @@ -27,9 +27,9 @@
0.1.
-7
+8
'%0A%0Ac
|
667d79104ea0803e47e3ca7a1768a65141fd44ff | Update build-docs.js | build-docs.js | build-docs.js | const jsdoc2md = require('jsdoc-to-markdown');
const fs = require('fs')
const glob = require('glob')
glob('lib/**/*.js', {}, (err, files) => {
const docs = files.map(file => {
const doc = jsdoc2md.renderSync({ files: file})
return {
location: `docs/${file.replace('.js', '.md')}`,
content: ... | JavaScript | 0 | @@ -227,16 +227,17 @@
: file%7D)
+;
%0D%0A re
|
d1230985586fc4cc9e3bb9d6a1190cd3cd97c060 | change var to let | src/Service/api.js | src/Service/api.js | const apiUrl = 'https://en.wikipedia.org/';
const searchUri = "w/api.php?format=json&action=query&prop=extracts&titles="
export default function wikiApi(term) {
return fetch(apiUrl + searchUri + term)
.then(function(response) {
return response.json();
}).then(function(json) {
let article = {};
let result... | JavaScript | 0 | @@ -347,11 +347,11 @@
or (
-var
+let
i i
@@ -533,8 +533,9 @@
%0A%09%09%7D);%0A%7D
+%0A
|
3ce4953463e85924943efbf864a788f2537e5c1f | Update SlimRequest.js | src/SlimRequest.js | src/SlimRequest.js | 'use strict';
const http = require('http');
const https = require('https');
const Querystring = require('querystring');
let debug = false;
let cache = false;
let log = {debug: (...args)=>{console.log(...args)}, info: (...args)=>{console.log(...args)},warn: (...args)=>{console.log(...args)},fatal: (...args)=>{console.lo... | JavaScript | 0 | @@ -3452,34 +3452,32 @@
res.on
-ce
('data', (chunk)
|
bf3219009278131dc2f4b46951870bd254331bda | implement modal on dashboard | app/src/Dashboard.js | app/src/Dashboard.js | import React, { Component } from 'react';
import CategoryForm from './category/CategoryForm';
export default class Dashboard extends Component {
render(){
return(
<div>
<CategoryForm />
</div>
)
}
} | JavaScript | 0.000001 | @@ -86,16 +86,54 @@
ryForm';
+%0Aimport ReactModal from 'react-modal';
%0A%0Aexport
@@ -185,83 +185,764 @@
-render()%7B%0A return(%0A %3Cdiv%3E%0A %3CCategoryForm /
+constructor() %7B%0A super();%0A this.state = %7B%0A showModal: false%0A %7D;%0A%... |
410c94f869fa314d1d74a011bd645f07fbcac465 | add missing unbind | public/scripts/app/views/Home.js | public/scripts/app/views/Home.js | define(function(require) {
'use strict';
var $ = require('jquery')
, _ = require('underscore')
, Hammer = require('hammer.min')
, Base = require('app/views/Base')
, socket = require('app/utils/socket')
, ChannelListView = r... | JavaScript | 0.000005 | @@ -3066,32 +3066,99 @@
y: function() %7B%0A
+ this.scroller.off('transitionend', this.onTransitionEnd)%0A
$(wind
|
00c89340463240764c808e3ed128f8601395dd8f | Use better confirm dialog | public/viewjs/userpermissions.js | public/viewjs/userpermissions.js | $('input.permission-cb').click(
function()
{
check_hierachy(this.checked, this.name);
}
);
function check_hierachy(checked, name)
{
var disabled = checked;
$('#permission-sub-' + name).find('input.permission-cb')
.prop('checked', disabled)
.attr('disabled', disabled);
}
$('#permission-save').click(
functi... | JavaScript | 0 | @@ -922,132 +922,447 @@
%7B%0A%09%09
-if (!this.checked)%0A%09%09%7B%0A%09%09%09if (!confirm(__t('Are you sure you want to remove full permissions for yourself?')))%0A%09%09%09%7B%0A%09%09%09%09this
+var element = this;%0A%0A%09%09if (!element.checked)%0A%09%09%7B%0A%09%09%09bootbox.confirm(%7B%0A%09%09%09%09message: ... |
60ae22f8d954730f0a6edf4881907f4974e62af4 | Fix js typo | webapps/callimachus/status.js | webapps/callimachus/status.js | /*
Copyright (c) 2009-2010 Zepheira LLC, Some Rights Reserved
Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/
$(document).ready(initForms);
var formRequestCount = 0;
function initStatus() {
$(window).unload(function (event) {
$("form[about]").addClass("wait")
f... | JavaScript | 0.999819 | @@ -182,12 +182,13 @@
init
-Form
+Statu
s);%0A
|
c1b030e1db0618a93ec7870abd05842100fc4e1a | update webpack dev config | webpack.development.config.js | webpack.development.config.js | var path = require('path');
var webpack = require('webpack');
module.exports = {
entry:
{
app: [
'webpack-hot-middleware/client',
'./public/src/containers/app'
]
},
output:
{
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
p... | JavaScript | 0 | @@ -491,170 +491,8 @@
%7D,%0A
- plugins: %5B%0A new webpack.optimize.OccurenceOrderPlugin(),%0A new webpack.HotModuleReplacementPlugin(),%0A new webpack.NoErrorsPlugin()%0A %5D,%0A
@@ -1205,12 +1205,174 @@
%7D%5D%0A %7D
+,%0A plugins: %5B%0A new webpack.optimize.Occurenc... |
9555dcc2e0af4954105467ea7605d60373f714d2 | 禁用扩展 reload | webpack/webpack.config.dev.js | webpack/webpack.config.dev.js | const _ = require('lodash');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const VersionFilePlugin = require('webpack-version-file-plugin');
const ChromeExtensionReloader = require('webpack-chrome-extension-reloader');
const config = require('./config.js');
module.exports =... | JavaScript | 0 | @@ -820,24 +820,27 @@
%0A %7D),%0A
+ //
new ChromeE
|
7ed3d632adb270538d8246d2517d84eb0398700e | update website-auto-redirect | website-auto-redirect.user.js | website-auto-redirect.user.js | // ==UserScript==
// @name website-auto-redirect
// @description auto redirect to article
// @include http://next.36kr.com/posts/*
// @include http://toutiao.io/posts/*
// @include http://wanqu.co/*
// @exclude http://wanqu.co/blog/*
// @include http://v.videohupu.com/*/v*.html
// @include ... | JavaScript | 0 | @@ -392,16 +392,66 @@
t.com/*%0A
+// @include http://today.itjuzi.com/product/*%0A
// @down
@@ -700,9 +700,9 @@
1.
-5
+6
%0A//
@@ -1134,16 +1134,70 @@
@href',%0A
+ 'today.itjuzi.com': '//a%5B@id=%22today_title%22%5D/@href',%0A
%7D;%0A%0Afunc
|
afa8cdda5d939f5828a4646717c47c9fda873951 | remove restrict | src/alert/alert.js | src/alert/alert.js | angular.module('ui.bootstrap.alert', [])
.controller('AlertController', ['$scope', '$attrs', function($scope, $attrs) {
$scope.closeable = !!$attrs.close;
this.close = $scope.close;
}])
.directive('alert', function() {
return {
restrict: 'EA',
controller: 'AlertController',
controllerAs: 'alert',
... | JavaScript | 0.000002 | @@ -233,28 +233,8 @@
n %7B%0A
- restrict: 'EA',%0A
|
3edc51da83e4ff84c949ecdebc86871c4814bd47 | cut uniprot features down to domains | src/CLMS/model/SearchResultsModel.js | src/CLMS/model/SearchResultsModel.js | // CLMS-model
// Copyright 2015 Rappsilber Laboratory, Edinburgh University
//
// authors: Colin Combe, Martin Graham
//
// SearchResultsModel.js
var CLMS = CLMS || {};
CLMS.model = CLMS.model || {};
CLMS.model.SearchResultsModel = Backbone.Model.extend ({
//http://stackoverflow.com... | JavaScript | 0 | @@ -5220,14 +5220,8 @@
%3E 4
- ) %7B//
&&
|
38815c16f57d9ab9f748bdf48e714cd76afc563f | add timeout | src/api/service.js | src/api/service.js | 'use strict';
const axios = require('axios');
const { GITHUB_API_URL } = require('../../config/api_url');
class GithubService {
constructor() {
this.url = GITHUB_API_URL,
this.timeout = 10000;
this.clientParams = `client_id=${process.env.CLIENT_ID}&client_secret=${process.env.CLIENT_SECRET... | JavaScript | 0.000005 | @@ -481,32 +481,67 @@
%0A %7D,%0A
+ timeout: this.timeout,%0A
url:
@@ -892,32 +892,67 @@
%0A %7D,%0A
+ timeout: this.timeout,%0A
url:
|
21a964796dabc4fce9fac32a2e4d4111caef6c6f | Fix whitespace in Lokalka's soup names | parsers/lokalka.js | parsers/lokalka.js | var cheerio = require('cheerio');
require('./parserUtil');
module.exports.parse = function(html, date, callback) {
var $ = cheerio.load(html);
var dayMenu = [];
var todayDate = date.format('DD.MM.YYYY');
var elements = $('li.fdm-item', 'div.entry-content.post-content');
elements.each(function(){
... | JavaScript | 0.999998 | @@ -1267,16 +1267,23 @@
xt: item
+.trim()
, price:
|
a0c1d78c271a01f6e531d93b8dcd505994b335e1 | Update python script arguments in node script | private/scraper.js | private/scraper.js | var PythonShell = require('python-shell');
var options = {
scriptPath: 'realclearpolitics-scraper',
args: [
'http://www.realclearpolitics.com/epolls/2016/president/nv/nevada_democratic_presidential_caucus-5337.html',
'test.json'
]
}
PythonShell.run('scraper.py', options, function(err, results) {
if (err) thro... | JavaScript | 0 | @@ -103,19 +103,16 @@
%09args: %5B
-%0A%09%09
'http://
@@ -214,25 +214,8 @@
tml'
-,%0A%09%09'test.json'%0A%09
%5D%0A%7D%0A
|
d3f52019681fcbf561836662eeb39541f38613be | fix high cpu usage at start by set watcher depth | projectsWatcher.js | projectsWatcher.js | 'use strict';
var _ = require('underscore'),
path = require('path'),
chokidar = require('chokidar'),
project = require('./lib/project'),
logger = require('./lib/logger')('projects watcher');
exports.init = function(app, callback) {
// start file watcher for reloading projects on change
var syncProject = functio... | JavaScript | 0.000001 | @@ -1503,16 +1503,26 @@
al: true
+, depth: 1
%7D%0A%09);%0A%09w
|
b65e2d5b5f2672d9a5321e0705ca1370c7352e98 | Fix the link inside the tag` | promise/js/main.js | promise/js/main.js | (function() {
function getUrl(url) {
// Return a new promise.
return new Promise(function(resolve, reject) {
// Do the usual XHR stuff
var req = new XMLHttpRequest();
req.open('GET', url);
req.onload = function() {
// This is called even on 404 etc
/... | JavaScript | 0 | @@ -957,23 +957,16 @@
onse) %7B%0A
- %0A
co
@@ -1282,32 +1282,16 @@
3%3E%3Ca
- class=%5C%22story%5C%22
href=%5C%22
+ li
@@ -1290,16 +1290,18 @@
f=%5C%22
+'
+ link +
%5C%22%3E'
@@ -1300,14 +1300,48 @@
nk +
-%5C%22%3E' +
+ '%5C%22 class=%5C%22story%5C%22%3E' + %0A
tit
@@ -1355,17 +13... |
379d309b30f4cb9104b28e8e6cb04352cad71cc2 | add title | dashboard/lib/routes/index.js | dashboard/lib/routes/index.js | /*
* Copyright 2015 Telefónica I+D
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | JavaScript | 0.999996 | @@ -1025,16 +1025,56 @@
ndex', %7B
+title: 'FIWARE Regions - Sanity check',
timestam
|
f77e44f2ddddabd71e443278ca00193215bf9954 | edit snippet newsletter | addons/website_mass_mailing/static/src/js/website_mass_mailing.editor.js | addons/website_mass_mailing/static/src/js/website_mass_mailing.editor.js | odoo.define('website_mass_mailing.editor', function (require) {
'use strict';
var Model = require('web.Model');
var ajax = require('web.ajax');
var core = require('web.core');
var base = require('web_editor.base');
var web_editor = require('web_editor.editor');
var options = require('web_editor.snippets.options');
var... | JavaScript | 0.001914 | @@ -2599,19 +2599,20 @@
e(%7B%0A
-edi
+star
t: funct
@@ -2620,39 +2620,16 @@
on () %7B%0A
- this._super();%0A
@@ -2704,24 +2704,54 @@
e.editor));%0A
+ return this._super();%0A
%7D,%0A s
|
1d5072da040fe04227b8c10fc410183d70098dee | Return new created contact properly | routes/contacts.js | routes/contacts.js | const express = require('express');
const router = express.Router();
const promise = require('bluebird')
const utils = require('../utilities.js')
const contactManager = require('../bin/contact-manager/contact-manager')
/**
* Handles the route `GET /contacts`.
* Lists the first 100 of the contacts available to the us... | JavaScript | 0 | @@ -1666,17 +1666,21 @@
.phone_n
-o
+umber
, req.bo
@@ -1734,18 +1734,16 @@
wContact
-ID
) %7B%0A
@@ -1764,34 +1764,13 @@
00).
-send(%22New contact: ID %22 +
+json(
newC
@@ -1775,18 +1775,16 @@
wContact
-ID
)%0A %7D)
|
6669c784f1a5d5187ec5e57170655fb7f16ce06b | fix festivals | routes/festival.js | routes/festival.js | var express = require('express')
var router = express.Router()
var path = require('path')
var debug = require('debug')('app:' + path.basename(__filename).replace('.js', ''))
var async = require('async')
var op = require('object-path')
var mapper = require('../helpers/mapper')
router.get('/:festival_id',... | JavaScript | 0.026989 | @@ -286,16 +286,36 @@
pper')%0A%0A
+var festivals = %7B%7D%0A%0A
router.g
@@ -612,24 +612,27 @@
lback) %7B%0A
+ //
var festiva
|
1cd4b3368de2ea8b097c6987d421d1eda644e977 | update bkmlt | src/bookmarklet.js | src/bookmarklet.js | javascript:(function()%7Bfunction%20insertMissingScripts(e)%7Bfor(var%20o%3Ddocument.getElementsByTagName(%22script%22)%2Cr%3D%5B%5D%2Ct%3D0%3Bo.length%3Et%3Bt%2B%2B)o%5Bt%5D.src.match(RegExp(e))%3Fr.push(!0)%3Ar.push(!1)%3B-1%3D%3D%3Dr.indexOf(!0)%26%26appendScript(sources%5Be%5D)%7Dfunction%20appendScript(e)%7Bvar%20... | JavaScript | 0.000001 | @@ -33,581 +33,138 @@
n%2520
-insertMissingScripts(e)%257Bfor(var%2520o%253Ddocument.getElementsByTagName(%2522script%2522)%252Cr%253D%255B%255D%252Ct%253D0%253Bo.length%253Et%253Bt%252B%252B)o%255Bt%255D.src.match(RegExp(e))%253Fr.push(!0)%253Ar.push(!1)%253B-1%253D%253D%253Dr.indexOf(!0)%2526%2526appendScript(source... |
34afc564cd58142656773eb04626a001c9527024 | Update markdown.js | plugin/markdown/markdown.js | plugin/markdown/markdown.js | // From https://gist.github.com/1343518
// Modified by Hakim to handle Markdown indented with tabs
(function(){
if( typeof Showdown === 'undefined' ) {
throw 'The reveal.js Markdown plugin requires Showdown to be loaded';
}
var stripLeadingWhitespace = function(section) {
var template = s... | JavaScript | 0.000001 | @@ -875,32 +875,144 @@
n text;%0A%0A %7D;%0A
+ %0A var twrap = function(el) %7B%0A return '%3Cscript type=%22text/template%22%3E' + el + '%3C/script%3E';%0A %7D;%0A
%0A var slidify
@@ -2757,32 +2757,40 @@
ata-markdown%3E' +
+ twrap(
sectionStack%5Bk%5D
@@ -2789,16 +2789,19 @@
Stack%5Bk%5D... |
9b25762a56afc587384ec420a724438b7015864c | remove js scroll as .focus() does the same | assets/js/basfoiy.js | assets/js/basfoiy.js | /**
*
* @author Ibrahim Naeem <mbting.9m@gmail.com>
*
**/
var api = null;
$(document).ready(function(){
thaanaKeyboard.defaultKeyboard='phonetic';
$("#followingBallsG").hide();
$("#basterm").focus();
//scroll to searchbox
$('html, body').animate({ scrollTop: $('#basterm').offset().top }, 'slow');
}... | JavaScript | 0.000001 | @@ -235,16 +235,18 @@
chbox %0A%09
+//
$('html,
|
0ecb07c08754029711a0b5fd9fb8f315827761a1 | Add explicit 'h' import | 1.0-hello-cycle/scripts/app.js | 1.0-hello-cycle/scripts/app.js | import Cycle from "@cycle/core";
import CycleWeb from "@cycle/web";
let {Rx} = Cycle;
let Observable = Rx.Observable;
// APP =============================================================================================
function Main({DOM}) {
let firstName$ = DOM.get("#first-name", "input")
.map(event => event.t... | JavaScript | 0.999998 | @@ -41,16 +41,21 @@
CycleWeb
+, %7Bh%7D
from %22@
|
06c2f294ff0e69ed3a99dcde09f56a0769463514 | Add support for IntersectionObserver | src/canvas-util.js | src/canvas-util.js | // Contains various canvas utility methods.
(function(exports) {
var CanvasUtil = {};
// Constructs a path on a <canvas>, given a Region.
CanvasUtil.pathFromRegion = function(ctx, region) {
region.iter_rectangles(function(x, y, width, height) {
ctx.rect(x, y, width, height);
}... | JavaScript | 0 | @@ -1900,211 +1900,318 @@
-function isElemVisible(elem) %7B%0A var rect = elem.getBoundingClientRect();%0A if (rect.bottom %3C 0 %7C%7C rect.top %3E window.innerHeight)%0A return false;%0A return true
+let isRunning = false;%0A function setRunning(running) %7... |
762d5706c02ae12d2970bdee537ce69fb89cf935 | Remove signatures-api | assets/js/helpers.js | assets/js/helpers.js | export function getHostName(url) {
var match = url.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);
if (match != null && match.length > 2 && typeof match[2] === 'string' && match[2].length > 0) {
return match[2];
}
else {
return null;
}
}
export function openPopup(url, title='popup', w=600, h=500) {
// Fixe... | JavaScript | 0.000215 | @@ -2380,339 +2380,8 @@
) %7B%0A
- const member = data.member %7C%7C %7B%7D%0A%0A logSubmission(Object.assign(%7B%0A name: member.first_name,%0A email: member.email,%0A zip_code: member.postcode,%0A phone: member.phone_number,%0A address: member.street_address,%0A comments: data.action_comment,%0A ... |
fffb7f14b374db456c6fbad42d7328cf64b4aef9 | Add a default page title when one is not found | assets/js/modules/search-console/dashboard/dashboard-widget-sitestats.js | assets/js/modules/search-console/dashboard/dashboard-widget-sitestats.js | /**
* SearchConsoleDashboardWidgetSiteStats component.
*
* Site Kit by Google, Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.or... | JavaScript | 0 | @@ -1655,10 +1655,57 @@
) :
-''
+__( 'Search Traffic Summary', 'google-site-kit' )
;%0A%0A%09
|
971258ef88c7936cd02138016634d9e837081dce | add user edit routes | back/routes/index.js | back/routes/index.js | /**
* @file Routes file.
*/
const express = require('express');
const router = express.Router();
const passport = require('passport');
const indexCtrl = require('../controllers/index.ctrl');
const userCtrl = require('../controllers/user.ctrl');
const coursesCtrl = require('../controllers/courses.ctrl');
const authM... | JavaScript | 0.000001 | @@ -961,16 +961,111 @@
ourses);
+%0Arouter.get('/:username/edit', userCtrl.edit);%0Arouter.post('/:username/edit', userCtrl.update);
%0A%0Arouter
|
634c97cb87c4582137e361b0f8540939100c3b17 | Fix io_progress init | client/common/init/io_progress.js | client/common/init/io_progress.js | 'use strict';
/**
* client
**/
/**
* client.common
**/
/**
* client.common.init
**/
/*global $, nodeca*/
var timeout;
var $notice;
function hide() {
clearTimeout(timeout);
$notice.hide();
}
function init() {
if (!$notice) {
$notice = $(nodeca.client.common.render.template('common.io_progr... | JavaScript | 0.001019 | @@ -221,16 +221,86 @@
ion
-init() %7B
+show() %7B%0A // make sure previous timeout was cleared%0A clearTimeout(timeout);%0A
%0A i
@@ -467,99 +467,8 @@
%0A %7D
-%0A%7D%0A%0A%0Afunction show() %7B%0A // make sure previous timeout was cleared%0A clearTimeout(timeout);
%0A%0A
@@ -514,16 +514,16 @@
500 ms%0A
... |
dc1583817f5742e37d3d6004438ccc5132dd3256 | remove confirm dialog fix | client/models/document.service.js | client/models/document.service.js | 'use strict';
(function () {
class DocumentService {
constructor(Document, $q, lodash, $mdDialog) {
this.$mdDialog = $mdDialog
this.lodash = lodash
this.$q = $q
this.Document = Document
this.collection = []
}
getCollection() {
return this.Document.query().$promise.th... | JavaScript | 0 | @@ -747,32 +747,116 @@
remove(data) %7B%0A
+ if(this.lodash.isEmpty(data))%7B%0A return this.$q.reject(false);%0A %7D%0A%0A
let confir
|
9658f68276a7a39a85e6ea40829c6ecf7e8c998e | Change active command icon | client/src/components/transfer.js | client/src/components/transfer.js | import React, { PureComponent } from 'react'
import { PropTypes } from 'prop-types'
import 'font-awesome-webpack'
import classNames from 'classnames/bind'
import Indicator from './indicator'
import styles from '../styles/core.scss'
import { humanBytes, percentage } from '../lib/utils'
import * as constant from '../... | JavaScript | 0 | @@ -2204,16 +2204,30 @@
fa-
-bullseye
+circle-o-notch fa-spin
', '
|
07b55fa1e6c40d982d615ce4c501ee6e0c81bf49 | Exit if unable to create ninja. | client.js | client.js | var
fs = require('fs')
, path = require('path')
, util = require('util')
, events = require('events')
, argv = require(path.resolve(__dirname, 'app', 'argv'))
, client = require(path.resolve(__dirname, 'app', 'client'))
, config = require(path.resolve(__dirname, 'app', 'config'))
, logger = require(path.resolve... | JavaScript | 0 | @@ -707,16 +707,124 @@
app);%0A%0A
+if((!ninja) %7C%7C !ninja.credentials.id) %7B%0A%0A%09log.error(%22Unable to create ninja client.%22);%0A%09process.exit(1);%0A%7D%0A%0A
config(n
|
58caa3a5019dd48fc01f3360b8327cd9aa55db6b | set title of song on load | client.js | client.js | var search = require('youtube-search')
var ytdl = require('ytdl-core')
var request = require('browser-request')
var ytApiKey = require('./yt_api_key')
var log = function (txt) {
var stdout = document.getElementById('stdout')
if (stdout) {
stdout.innerHTML += txt + '\n'
}
console.log(txt)
}
function show... | JavaScript | 0.000001 | @@ -1051,22 +1051,20 @@
owIcon('
-listen
+work
ing')%0A
@@ -1266,16 +1266,44 @@
start')%0A
+ showIcon('listening')%0A
%7D%0A
@@ -2206,24 +2206,100 @@
nent(link)%0A%0A
+ document.getElementById('title').innerHTML = videos%5B0%5D.title%0A%0A
@@ -2629,16 +2629,100 @@
layback)
... |
dfc8d91dbb9f0b3dbe77b6fb6cf188b81786ed0f | Update custom_funct.js | leaflet/JS-CSS/custom_funct.js | leaflet/JS-CSS/custom_funct.js | function leaflet_alert() {
alert("Clicking OK the user takes full responsibility of using this map.");
}
| JavaScript | 0.000001 | @@ -102,8 +102,195 @@
p.%22);%0A%7D%0A
+%0Afunction leaflet_alert2() %7B%0A var txt;%0A var r = confirm(%22Clicking OK the user takes full responsibility of using this map.%22);%0A if (r != true) %7B%0A txt = %22You pressed Cancel%22;%0A %7D%0A%7D%0A
|
4d55cd6fe8f1f12818539819a3768c9905bd8ecf | Improve test on post rendering function. | example/app/js/main.js | example/app/js/main.js | var domains = {
"DO_ENTIER": {
"type": "number",
"validation": [{
"type": "number"
}],
},
"DO_DATE": {
"type": "date"
},
"DO_TEXTE_50": {
"type": "text",
"validation": [{
"type": "string",
"options": {
"maxLength": 50
}
}],
"style": ["cssClassDom... | JavaScript | 0 | @@ -1,12 +1,38 @@
+/*global Fmk, jQuery, $*/%0A
var domains
@@ -1051,290 +1051,8 @@
%7D);%0A
-var TestView = Fmk.Views.CoreView.extend(%7B%0A metadatas:%7B%0A firstName: %22DO_TEXTE_50%22,%0A template: function()%7B return %22%3Cp%3ETest template!!!%3C/p%3E%22%7D%0A %7D%0A%0A%7D);%0Avar view = new TestView(%... |
c95568b4492c97f1bcf850acd0d568c6d95a3405 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -1097,12 +1097,13 @@
ime) %7B;%7D%0A%7D%0A%0A
+p
|
ad49d9fd344c41045baa8dddcd15c3b5a446b15d | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -879,8 +879,9 @@
p(Math.r
+a
|
05c8516f2ba3ce7042edaa2b8bc27508ab62b54b | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv | JavaScript | 0 | @@ -217,8 +217,9 @@
ss.argv
+%5B
|
22b0ee5a329d867ad2cc0d96dac64a76fb0d35ae | Commit all the required changes | commit.js | commit.js | var child_process = require('child_process')
var fs = require('fs');
var max_sleep = 300
var step = 10
//Added a comment that achieves no real goal.
//Non-blocking loop
//Adjustable step
//Status line
//Add a rough time indicator
//First cut at libfaketime support
var commit_messages = [
"Fixing an important issue w... | JavaScript | 0.998322 | @@ -1834,20 +1834,21 @@
eep = process.argv %5B
+
|
c11ab3c9b874a0ec17fb89a7576db110b0e0c8b4 | Fixing punctuation | commit.js | commit.js | var child_process = require('child_process')
var fs = require('fs');
var max_sleep = 300
var step = 10
//Added a comment that achieves no real goal.
//Non-blocking loop
//Adjustable step
//Status line
//Add a rough time indicator
//First cut at libfaketime support
var commit_messages = [
"Fixing an important issue w... | JavaScript | 0.999999 | @@ -1531,8 +1531,9 @@
n master
+%22
|
3bac7acb489b801e0d48905a0176f81eb86492b8 | Use the tile coordinate as a pseudo URL | examples/geojson-vt.js | examples/geojson-vt.js | import GeoJSON from '../src/ol/format/GeoJSON.js';
import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import Projection from '../src/ol/proj/Projection.js';
import VectorTileSource from '../src/ol/source/VectorTile.js';
import View from '../src/ol/View.js';
import {
Tile as TileLayer,
Ve... | JavaScript | 0 | @@ -1987,24 +1987,455 @@
ileCoord) %7B%0A
+ // Use the tile coordinate as a pseudo URL for caching purposes%0A return JSON.stringify(tileCoord);%0A %7D,%0A %7D);%0A // For tile loading obtain the GeoJSON for the tile coordinate%0A // before calling the default tileLoadFunction%0A const d... |
b7f62387f52d9b037d1f404bfabc461472e367ff | Load rastersync resources using https if available | examples/rastersync.js | examples/rastersync.js | var view = new ol.View({
center: ol.proj.transform([-112.2, 36.06], 'EPSG:4326', 'EPSG:3857'),
zoom: 11
});
var layer0 = new ol.layer.Tile({
source: new ol.source.OSM()
});
var layer1 = new ol.layer.Tile({
source: new ol.source.TileJSON({
url: 'http://tileserver.maptiler.com/grandcanyon.json',
crossOri... | JavaScript | 0 | @@ -255,16 +255,17 @@
l: 'http
+s
://tiles
@@ -399,16 +399,17 @@
l: 'http
+s
://api.t
@@ -858,18 +858,16 @@
vider(%7B%0A
-
url :
@@ -867,16 +867,22 @@
url : '
+https:
//assets
|
6db750d22e8da4632723445ab1c13f002b8958bd | add comments | examples/simpleTest.js | examples/simpleTest.js | const serverOperations = require('../out/src/serverOperations');
const config = require('../out/src/config');
// Initialise all required login information
var login = new config.ConnectionInformation();
login.server = '127.0.0.1';
login.port = 11000;
login.principal = 'dopaag';
login.username = 'admin';
login.passwor... | JavaScript | 0 | @@ -571,18 +571,8 @@
;%0A%0A%0A
-// upload%0A
asyn
@@ -622,16 +622,31 @@
Script)%7B
+%0A%0A // upload
%0A awa
@@ -733,24 +733,41 @@
loadScript);
+%0A%0A // download
%0A var ret
@@ -869,16 +869,30 @@
Script);
+%0A%0A // check
%0A if
|
a7d2d50dc0f86501a5c04eacc0b11487ab68527b | remove unused argument to addLocalMedia() | factories/mediafile.js | factories/mediafile.js | wwt.app.factory(
'MediaFile',
[
'$q',
function ($q) {
var api = {
addLocalMedia: addLocalMedia,
flushStore: flushStore,
getBinaryData: getBinaryData
};
var mediaCache = [];
function Media(params) {
return {
url:params.url,
key:p... | JavaScript | 0 | @@ -474,12 +474,8 @@
file
-, db
) %7B%0A
|
c66c6d5660ab858595818b0fe0773d68e3d329d6 | Update PAC file to use proxy only for internal sites. | files/socks/config.pac | files/socks/config.pac | function FindProxyForURL(url, host) {
return "SOCKS 127.0.0.1:8882";
}
| JavaScript | 0 | @@ -39,37 +39,191 @@
-return %22SOCKS 127.0.0.1:8882%22;
+var resolved_ip = dnsResolve(host);%0A if (isInNet(resolved_ip, %22142.150.237.0%22, %22255.255.255.0%22)) %7B%0A return %22SOCKS 127.0.0.1:8882%22;%0A %7D else %7B%0A return %22DIRECT%22;%0A %7D
%0A%7D%0A
|
1ade97c21acb4ec2435734deb7052028129e8942 | build as default task | flexget/ui/gulpfile.js | flexget/ui/gulpfile.js | 'use strict';
var gulp = require('gulp');
gulp.paths = {
src: 'src',
dist: 'app',
tmp: '.tmp'
};
require('require-dir')('./gulp');
gulp.task('build', ['clean'], function () {
gulp.start('buildapp');
});
| JavaScript | 0.000002 | @@ -210,8 +210,41 @@
');%0A%7D);%0A
+%0Agulp.task('default', %5B'build'%5D);
|
e9226a54658da17aed4113b3eb8db21d8ed61b22 | Add singleCourse subscription; courseId variable | client/templates/course/course.js | client/templates/course/course.js | Template.course.created = function () {
// Set the empty active lesson ID variable
activeLessonID = new ReactiveVar(undefined);
};
| JavaScript | 0 | @@ -35,16 +35,304 @@
() %7B%0A
+// Get reference to template instance%0A var instance = this;%0A%0A // Get reference to router%0A var router = Router.current();%0A%0A // Get course ID from router%0A instance.courseId = router.params._id;%0A%0A // Subscribe to single course%0A instance.subscribe('singleCourse... |
45a8199d4e523eed33229b8685547c71a8469f14 | update rendered calendar dates as soon as locale changes | client/views/calendar/calendar.js | client/views/calendar/calendar.js | Router.map(function () {
this.route('calendar', {
path: 'calendar',
template: 'calendar',
data: function() { return this.params; },
onAfterAction: function() {
document.title = webpagename + 'Calendar'
}
});
});
var updateUrl = function(event, instance) {
var filterParams = instance.filter.toParams();
... | JavaScript | 0 | @@ -1713,34 +1713,80 @@
on(day) %7B%0A%09%09
-return day
+Session.get('timeLocale');%0A%09%09return moment(day.toDate())
.format('ddd
|
eaa0d1a824e54f33eb289e024e0fe74521ae896e | Fix error in debug command when no project config is found | packages/@sanity/cli/src/commands/debug/printDebugInfo.js | packages/@sanity/cli/src/commands/debug/printDebugInfo.js | import os from 'os'
import util from 'util'
import path from 'path'
import pick from 'lodash/pick'
import omit from 'lodash/omit'
import osenv from 'osenv'
import fsp from 'fs-promise'
import xdgBasedir from 'xdg-basedir'
import promiseProps from 'promise-props-recursive'
import getUserConfig from '../../util/getUserCo... | JavaScript | 0 | @@ -1695,18 +1695,16 @@
n)%0A if
-(!
(project
@@ -1709,34 +1709,16 @@
ctConfig
- instanceof Error)
) %7B%0A
@@ -2130,16 +2130,45 @@
ine%7D%60))%0A
+ context.output.print('')%0A
%7D%0A%7D%0A%0Af
@@ -3662,16 +3662,47 @@
return
+ err.code === 'ENOENT' ? null :
%7Berror:
|
eaac85223b084ed3441ff3c87cdada46b4c50ebe | add community cross-storage on select | packages/bonde-admin/pages/admin/communities/list/page.js | packages/bonde-admin/pages/admin/communities/list/page.js | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import { BondeBackground } from '~client/components/layout/background'
import * as paths from '~client/paths'
import { FormattedMessage } from 'react-intl'
import { Loading } from '~client/components/awai... | JavaScript | 0 | @@ -371,16 +371,72 @@
ponents'
+%0Aimport crossStorage from '~client/cross-storage-client'
%0A%0Aclass
@@ -723,40 +723,236 @@
em (
-id) %7B%0A this.props.select(id)%0A
+community) %7B%0A crossStorage%0A .onConnect()%0A .then(() =%3E %7B%0A return crossStorage%0A .set('community', JSO... |
cab6c954eaa164e91a252f0b062a6574497da516 | Reset references to panel views on schema load | web_client/js/views/panelGroup.js | web_client/js/views/panelGroup.js | histomicstk.views.PanelGroup = girder.View.extend({
events: {
'click .h-info-panel-reload': 'reload',
'click .h-info-panel-submit': 'submit',
'click .h-remove-panel': 'removePanel'
},
initialize: function () {
this.panels = [];
this._panelViews = {};
this._sch... | JavaScript | 0 | @@ -1021,32 +1021,63 @@
();%0A %7D);%0A
+ this._panelViews = %7B%7D;%0A
this._jo
|
482b449b32b07c8f0a5a76b73344bc332585b296 | correct wording | webapp/app/js/controllers/auth.js | webapp/app/js/controllers/auth.js | 'use strict';
KylinApp.controller('LoginCtrl', function ($scope, $rootScope, $location, $base64, AuthenticationService, UserService) {
$scope.username = null;
$scope.password = null;
$scope.loading = false;
$scope.login = function () {
// set the basic authentication header that will be parsed... | JavaScript | 0.999886 | @@ -934,16 +934,28 @@
ave
-L2 acces
+correct access right
s.%22;
|
d913e80cf5284b5acf167a57bcbedf63b0f66e78 | Remove unused imports | webpack/typescript-loader-rule.js | webpack/typescript-loader-rule.js | const path = require('path');
const { locateStripesModule } = require('./module-paths');
// We want to transpile files inside node_modules/@folio or outside
// any node_modules directory. And definitely not files in
// node_modules outside the @folio namespace even if some parent
// directory happens to be in @folio.
... | JavaScript | 0.000001 | @@ -26,67 +26,8 @@
h');
-%0Aconst %7B locateStripesModule %7D = require('./module-paths');
%0A%0A//
|
5bd3b5032056799fb8f373f58861b4bb70c3f83d | Update DataTranslationCredits.js | src/DataTranslationCredits.js | src/DataTranslationCredits.js | /*
DataTranslationCredits.js
Copyright (c) 2014-2020 dangered wolf, et al
Released under the MIT License
*/
export const translationCredits = `
<b>български</b><br>
vancho1<br>
<a href="https://twitter.com/Khar0s" rel="user" target="_blank">Kharos</a><br>
<br><b>čeština</b><br>
<a href="https://twitter.com/JamesT... | JavaScript | 0 | @@ -664,32 +664,43 @@
eutsche%3C/b%3E%3Cbr%3E%0A
+Bandie%3Cbr%3E%0A
%3Ca href=%22https:/
|
d60bd6326ba6eb32ee5693e5269edd9b701af75b | Update manage-index.js | wp/admin/sections/manage-index.js | wp/admin/sections/manage-index.js | (function($){
function done(failed){
$("#reindex").removeAttr('disabled').addClass('complete');
$('#progress').hide();
if(failed){
$('#error').show().find('.msg').text(failed);
}else{
$('.finished').text(0);
$('#complete').show();
}
}
function index(page){
$.ajax({
url: window.inde... | JavaScript | 0.000001 | @@ -202,16 +202,18 @@
+%09%09
$('.fini
@@ -993,8 +993,9 @@
jQuery);
+%0A
|
695592afeda67670931d4025b1d28c9db22348f7 | Switch to https | www/js/core/constants/settings.js | www/js/core/constants/settings.js | (function () {
"use strict";
angular
.module('orange')
.constant('settings', {
'orangeApiUrl': 'http://orange-api.amida-demo.com/api/v1',
'clientSecret': 'arewedoneyetquestionmark',
'avatars': [
{path: 'img/avatars/Option1.png', path2x: 'img/a... | JavaScript | 0 | @@ -130,16 +130,17 @@
': 'http
+s
://orang
@@ -141,19 +141,22 @@
/orange-
-api
+secure
.amida-d
|
22426584b9933e0d00e6c0fd241b9a3c3a87ba0b | 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 @@
... |
0856dc16a30c53dfa979d1cb239471a566fb12b3 | Update item.client.controller.js | public/modules/core/controllers/item.client.controller.js | public/modules/core/controllers/item.client.controller.js | 'use strict';
angular.module('core').controller('itemController', ['$scope', 'Authentication', 'itemService',
function($scope, Authentication, itemService) {
// This provides Authentication context.
$scope.authentication = Authentication;
// Some example string - remove in prod
$scope.helloText = 'Item... | JavaScript | 0.000001 | @@ -956,17 +956,16 @@
cope.new
-t
Item, fu
|
616ab0f635e42c79c134cbf733143e89932c35e6 | Move the initial call to the componentDidMount method | react/features/conference/components/Conference.native.js | react/features/conference/components/Conference.native.js | import React, { Component } from 'react';
import { connect as reactReduxConnect } from 'react-redux';
import { connect, disconnect } from '../../base/connection';
import { Container } from '../../base/react';
import { FilmStrip } from '../../filmStrip';
import { LargeVideo } from '../../largeVideo';
import { RoomLockP... | JavaScript | 0 | @@ -2055,32 +2055,265 @@
d(this);%0A %7D%0A%0A
+ /**%0A * Inits the toolbar timeout after the component is initially rendered.%0A *%0A * @inheritDoc%0A * returns %7Bvoid%7D%0A */%0A componentDidMount() %7B%0A this._setToolbarTimeout(this.state.toolbarVisible);%0A %7D%0A%0A
/... |
35f13324050f3dea611c6e494d3d400066e205ee | update doc | api-doc.js | api-doc.js | /*
* Cut.js
* Copyright (c) 2013-2014 Ali Shakiba, Piqnt LLC and other contributors
* Available under the MIT license
* @license
*/
//
// ### Cut
//
// Create a new plain cut instance.
// No painting is associated with a plain cut, it is just a parent for other cuts.
var foo = Cut.create();
// Append/prepend bar... | JavaScript | 0 | @@ -2024,24 +2024,123 @@
fsetY : %22%22,%0A
+ // Scale to width-height.%0A scaleMode : %22%22, // %22in%22/%22out%22%0A scaleWidth : %22%22,%0A scaleHeight : %22%22,%0A
// Scale a
@@ -2157,17 +2157,17 @@
to width
-/
+-
height.%0A
@@ -2238,16 +2238,17 @@
ght : %22%22
+,
%0A%7D);%0A%0A//
|
d60affeb1777864a576da2ed2303a602b5693c8a | disable recording of pos as I moved the records | app/app.js | app/app.js | 'use strict';
//
// Debug
//
const stringifyObject = require('stringify-object');
function pretty(data) {
return "<pre>" + stringifyObject(data) + "</pre>";
}
const os = require('os');
function running_on_pi() {
// very hacky way to determine
// better: https://github.com/fourcube/detect-rpi
return os... | JavaScript | 0 | @@ -3770,24 +3770,89 @@
imestamp(),%0A
+ // disable as I moved them around and bought new shelves%0A
@@ -3862,16 +3862,22 @@
elf_id:
+-1, //
DG.get_s
@@ -3916,16 +3916,22 @@
lf_pos:
+-1, //
DG.get_s
@@ -3939,32 +3939,45 @@
elf_pos(entry),%0A
+ ////%0A
$cmd
|
c42e5d95d411cb4770ac99897fc1386d2433c953 | step 5.1 - events | app/app.js | app/app.js | var Container = React.createClass({
getInitialState: function(){
return {
title: this.props.title
}
},
handleClick: function(){
this.setState({title: 'Updated title'});
},
render: function() {
return (
<div>
<h1>{this.state.title}</h1>
<button onClick={this.handleC... | JavaScript | 0.999868 | @@ -102,16 +102,45 @@
ps.title
+,%0A newTitle: 'new title'
%0A %7D%0A
@@ -201,23 +201,117 @@
le:
-'Updated title'
+this.state.newTitle%7D);%0A %7D,%0A handleChange: function(event) %7B%0A this.setState(%7BnewTitle: event.target.value
%7D);%0A
@@ -399,16 +399,102 @@
e%7D%3C/h1%3E%0A
+ %3Cinput... |
6bf2b2c9dfd52b83ca6a580b257021e27971a010 | Update app.js | app/app.js | app/app.js | /*jshint esversion: 6 */
'use strict';
var express = require('express');
var http = require('http');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var CronJob = require(... | JavaScript | 0 | @@ -360,40 +360,16 @@
= '
-d9eeb169a7224fe28ae0f32aca0dc93e
+%5Bapikey%5D
';%0D%0A
|
a9c61ff2c371dffb163ae90b29a98b59aa228a50 | remove menu from login page | app/app.js | app/app.js | 'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.logout',
'myApp.login',
'myApp.patients',
'myApp.EditPatients',
'myApp.captureform',
'myApp.thankyou',
'myApp.users',
'myApp.AddUsers',
'myApp.version',
'ui.bootstrap.datet... | JavaScript | 0.000001 | @@ -2229,16 +2229,181 @@
) %7B%0A%09%09%09%0A
+%09%09%09var nomenuPage = $.inArray($location.path(), %5B '/login', '/logout'%5D) %3E -1;%0A%09%09%09if(nomenuPage) %7B%0A%09%09%09%09$('.menu').hide();%0A%09%09%09%7D else %7B%0A%09%09%09%09$('.menu').show();%0A%09%09%09%7D%0A%09%09%09%0A
%09%09%09var r
@@ -2478,22 +247... |
6284bd3f177b0b45dbc1e92fe76a6d5e811e4794 | Remove an unecessary console.log(). | app/app.js | app/app.js | // Must be loaded before angular.
import 'angular-file-upload'
import angular from 'angular'
import uiBootstrap from'angular-ui-bootstrap'
import uiIndeterminate from'angular-ui-indeterminate'
import uiRouter from'angular-ui-router'
import uiSelect from'angular-ui-select'
import naturalSort from 'angular-natural-sort... | JavaScript | 0.000009 | @@ -1352,27 +1352,8 @@
===%0A
-console.log('done')
%0Aexp
|
1c42c909da0c0771bc25a9228e729fc0d09fd251 | Update app.js | app/app.js | app/app.js | angular
.module('app', ['nzTour','ngMaterial', 'ui.codemirror', 'ngMdIcons'])
.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('blue')
.accentPalette('orange');
})
.directive('menuKey', function() {
return function(scope, element, attrs) {
elem... | JavaScript | 0.000002 | @@ -1,225 +1,4 @@
-angular%0A .module('app', %5B'nzTour','ngMaterial', 'ui.codemirror', 'ngMdIcons'%5D)%0A .config(function($mdThemingProvider) %7B%0A $mdThemingProvider.theme('default')%0A .primaryPalette('blue')%0A .accentPalette('orange');%0A %7D)
%0A .
|
8210485ddce9bde543a5a9f61c1a63fd25962320 | Check that findOne, updateOne and deleteOne do not use JSL in filter.id | src/middleware/validation/client_input_syntax.js | src/middleware/validation/client_input_syntax.js | 'use strict';
const { set, merge, mergeWith } = require('lodash');
const { validate } = require('../../utilities');
/**
* Check API input, for client-side errors (e.g. 400)
* Only checks basic input according to current action
* In a nutshell, checks that:
* - required attributes are defined
* - disabled at... | JavaScript | 0 | @@ -2167,16 +2167,91 @@
, value:
+ (%7B isNotJslFilterId %7D) =%3E isNotJslFilterId ? %7B not: %7B type: 'object' %7D %7D :
%7B%7D %7D,%0A
@@ -4604,16 +4604,119 @@
er.id'%5D,
+%0A isNotJslFilterId: true
@@ -4802,33 +4802,33 @@... |
e87038fac47d650475c1ecabbc7fbc075670fb15 | Fix for #38 | script/contest-admin.js | script/contest-admin.js | /**************************************
* Script for contest admin dashboard *
**************************************/
var defaultHash = "overview";
/**
* On document ready
*/
$(document).ready(function(){
// Add a listener if hash is changed
$(window).bind('hashchange', function() {
chooseWindow(... | JavaScript | 0 | @@ -1667,24 +1667,463 @@
%5D%22).val();%0A%0A
+ if (challenge === '') %7B%0A alert(%22Invalid request%22);%0A return false;%0A %7D else if(name === '') %7B%0A alert(%22Please input name of challenge%22);%0A return false;%0A %7D else if(!$.isNumeric(point... |
b0d77329f04817cae795b1a0b7c542abdc3dbdb6 | update protractor settings | protractor.conf.js | protractor.conf.js | exports.config = {
baseUrl: 'http://localhost:8080/',
specs: [
'src/**/*.e2e-spec.js'
],
exclude: [],
framework: 'jasmine2',
allScriptsTimeout: 110000,
jasmineNodeOpts: {
showTiming: true,
showColors: true,
isVerbose: false,
includeStackTrace: false,
defaultTimeoutInterval: 400... | JavaScript | 0 | @@ -44,17 +44,17 @@
host:808
-0
+1
/',%0A%0A s
|
b9ac1dbc99e17a08a2cb42eebd3db606b8dd0b01 | Exclude vector layers from featureInfo directive | src/modules/featureinfo/featureinfo-directive.js | src/modules/featureinfo/featureinfo-directive.js | angular.module('anol.featureinfo')
/**
* @ngdoc directive
* @name anol.featureinfo.directive:anolFeatureInfo
*
* @restrict A
* @requires $compile
* @requires $http
* @required $window
* @requires anol.map.MapService
* @requires anol.map.LayersService
*
* @description
* Makes GetFeatureInfo request on all la... | JavaScript | 0 | @@ -2409,32 +2409,169 @@
%7D%0A
+ if(layer instanceof ol.layer.Vector) %7B%0A return;%0A %7D%0A
|
b0e5c4b6affd5939014ed138f970a05624376e29 | Store appx in out folder | script/windows-store.js | script/windows-store.js | const ChildProcess = require('child_process')
const path = require('path')
const version = require('../package').version + '.0'
const command = path.join(__dirname, '..', 'node_modules', '.bin', 'electron-windows-store.cmd')
const args = [
'--input-directory',
path.join(__dirname, '..', 'out', 'ElectronAPIDemos-w... | JavaScript | 0.000001 | @@ -378,16 +378,23 @@
e, '..',
+ 'out',
'window
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.