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 |
|---|---|---|---|---|---|---|---|
c5f451746dcd93a7b71158df28fb449e628fcabf | Allow disabling babel cache | buildjs/webpack.config.js | buildjs/webpack.config.js | 'use strict';
const path = require('path');
const fs = require('fs');
const findPackage = require('./src/find_package.js');
const webpack = require('webpack');
const resolve = require('resolve');
const mkdirp = require('mkdirp');
// We must place our files in a special folder for integration /w the android
// build... | JavaScript | 0 | @@ -377,69 +377,8 @@
ST;%0A
-const babelCache = path.join(destination, '../.babelcache');%0A
cons
@@ -438,16 +438,16 @@
OURCE);%0A
+
const pk
@@ -568,32 +568,260 @@
);%0A%0A
-mkdirp.sync(babelCache);
+%0Alet babelCache;%0Aif (!process.env.BABEL_CACHE %7C%7C process.env.BABEL_CACHE === '1') %7B%0A babelCache = pat... |
ca9ee2eb092abd14d2bda84618300f966d2d4f96 | Support IE9 a bit | busstops/static/js/map.js | busstops/static/js/map.js | (function () {
'use strict';
/*jslint
browser: true
*/
/*global
L, loadjs
*/
var mapContainer = document.getElementById('map');
if (!mapContainer || !mapContainer.clientWidth) {
return;
}
function getIcon(indicator, bearing, active) {
var className... | JavaScript | 0 | @@ -835,23 +835,24 @@
if (
-!isNaN(bearing)
+bearing !== null
) %7B%0A
@@ -902,16 +902,188 @@
style=%22
+-ms-transform: rotate(' + bearing + 'deg);-webkit-transform: rotate(' + bearing + 'deg);-moz-transform: rotate(' + bearing + 'deg);-o-transform: rotate(' + bearing + 'deg);
transfor
@@ -3305,24 +3305,35 @@
n(l... |
17413fcb8520e621c684876956924528882e9e62 | add prod env for nodemon, without debug | gruntfile.js | gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Unified Watch Object
var watchFiles = {
serverViews: ['app/views/**/*.*'],
serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'],
clientViews: ['public/modules/**/views/**/*.html'],
clientJS: ['public/js/*.js', 'public/modules/**/*.js'],
... | JavaScript | 0 | @@ -399,91 +399,8 @@
%09%7D;%0A
-%09grunt.loadNpmTasks('grunt-contrib-connect');%0A%09grunt.loadNpmTasks('grunt-daemon');%0A
%09//
@@ -1797,172 +1797,8 @@
%09%7D,%0A
-%09%09nodeprod: %7B%0A%09%09%09all: %7B%0A%09%09%09%09script: 'server.js',%0A%09%09%09%09options: %7B%0A%09%09%09%09%09ext: 'js,html',%0A%09%09%09%09... |
7fe53d68c085808e1eaa2e1f9b3531b56f15958a | Fix missing Jekyll compilation task | gruntfile.js | gruntfile.js | // Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
sass: {
files: 'scss/**/*.scss',
tasks: ['build']
},
eslint: {
files: 'js/**/*.js',
tasks: ['eslint']
},
docs: {
files:... | JavaScript | 0.999817 | @@ -6127,16 +6127,26 @@
ss:docs'
+, 'jekyll'
%5D);%0A //
@@ -6252,16 +6252,26 @@
n-icons'
+, 'jekyll'
%5D);%0A //
@@ -6404,21 +6404,16 @@
'jekyll
-:dist
'%5D);%0A /
|
42a0959e5e34607758f43b520e5c0a52b7108ca3 | Fix order of javascript concatenation. | gruntfile.js | gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['app/scripts/*.js'],
options: {
reporter: require('jshint-stylish'),
jshintrc: true
}
},
jasmine: {
app : {
src: 'app/scr... | JavaScript | 0.00008 | @@ -641,30 +641,8 @@
c: %5B
-'app/scripts/app.js',
'app
@@ -671,24 +671,46 @@
uery.min.js'
+, 'app/scripts/app.js'
%5D,%0A d
|
dbd7bd95c1dd0ef00aa8ba9351bb1e2a25369f0d | copy bower.json, not package.json | gruntfile.js | gruntfile.js | /*
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http:... | JavaScript | 0.000018 | @@ -914,16 +914,17 @@
src:
+%5B
'layout.
@@ -929,16 +929,31 @@
t.html',
+ 'bower.json'%5D,
%0A
@@ -965,27 +965,16 @@
: 'dist/
-layout.html
'%0A
|
c72aea65494ba2514c3afad48528428958bdcf52 | Update local Grunt task for building `docs` | gruntfile.js | gruntfile.js | // Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
sass: {
files: 'scss/**/*.scss',
tasks: ['build']
},
eslint: {
files: 'js/**/*.js',
tasks: ['eslint']
},
jekyll: {
file... | JavaScript | 0 | @@ -287,30 +287,28 @@
%7D,%0A
-jekyll
+docs
: %7B%0A
@@ -373,22 +373,16 @@
: %5B'docs
--build
'%5D%0A
@@ -6171,24 +6171,142 @@
unticon'%5D);%0A
+ // Build WFP UI Docs locally%0A grunt.registerTask('docs', %5B'sasslint', 'sass:docs', 'postcss:docs', 'jekyll:dev'%5D);%0A
// Build W
|
7c12c7b1246b991c68f4b51573538e02b3968beb | Add aria-label to floatingActionButton (#8574) | app/javascript/mastodon/features/ui/components/columns_area.js | app/javascript/mastodon/features/ui/components/columns_area.js | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... | JavaScript | 0 | @@ -64,16 +64,32 @@
import %7B
+ defineMessages,
injectI
@@ -1188,16 +1188,122 @@
ne,%0A%7D;%0A%0A
+const messages = defineMessages(%7B%0A publish: %7B id: 'compose_form.publish', defaultMessage: 'Toot' %7D,%0A%7D);%0A%0A
const sh
@@ -5041,16 +5041,22 @@
odalOpen
+, intl
%7D = thi
@@ -5436,16 +5436,66 @@
-but... |
e453164dc87ddbf3c6558173980231eb019471cc | Fix test after update | app/scripts/flashcards/services/flashcardlistDetailsService.js | app/scripts/flashcards/services/flashcardlistDetailsService.js | 'use strict'
angular.module('flashcardModule.services')
.service('flashcardListDetailsService', function(Flashcards, FlashcardLists) {
this.getListDetails = function(listId) {
return FlashcardLists.get( { flashcardListId: listId } );
};
this.getFlashcards = function(listId) {
... | JavaScript | 0 | @@ -1502,16 +1502,42 @@
ashcard)
+%0A .$promise
;%0A
|
587b8f35718b789111a2da350ca389eff6c13773 | stop navigation in main webview | electron.js | electron.js | "use strict";
const path = require("path");
const { Menu, app, shell, BrowserWindow } = require('electron');
const defaultMenu = require('electron-default-menu');
const URL = process.env.FAAO_URL || "https://azu.github.io/faao/";
// context-menu for window
require('electron-context-menu')();
// Standard stuff
app.on("g... | JavaScript | 0 | @@ -13,20 +13,19 @@
;%0Aconst
-path
+url
= requi
@@ -32,12 +32,11 @@
re(%22
-path
+url
%22);%0A
@@ -909,16 +909,469 @@
RL(URL);
+%0A%0A // prevent navigation in main webview%0A mainWindow.webContents.on('dom-ready', function(e) %7B%0A mainWindow.webContents.on('will-navigate', (event, URL) =%3E %7B%... |
66e0c9be5cb078f562f58bb6ca17df9f8071949e | change getUrlParameter variable naming style | corehq/apps/hqwebapp/static/hqwebapp/js/urllib.js | corehq/apps/hqwebapp/static/hqwebapp/js/urllib.js | var COMMCAREHQ_URLS = {};
hqDefine('hqwebapp/js/urllib.js', function () {
// http://stackoverflow.com/a/21903119/240553
var getUrlParameter = function (sParam) {
return getUrlParameterFromString(sParam, window.location.search);
};
var getUrlParameterFromString = function (sParam, sSearch) {
... | JavaScript | 0 | @@ -149,26 +149,25 @@
= function (
-sP
+p
aram) %7B%0A
@@ -203,18 +203,17 @@
mString(
-sP
+p
aram, wi
@@ -292,18 +292,16 @@
on (
-sP
+p
aram, s
-S
earc
@@ -317,24 +317,23 @@
var
-sP
+p
ageU
-RL
+rl
= decod
@@ -347,17 +347,16 @@
ponent(s
-S
earch.su
@@ -380,20 +380,19 @@
-sURL
+url
Varia... |
6a73033c47f7dc7280a7465e9e13078ad0332070 | simplify destination path | gulp/info.js | gulp/info.js | 'use strict';
var chalk = require('chalk');
var gulp = require('gulp');
var path = require('path');
var rump = require('rump');
var pkg = require('../package');
gulp.task(rump.taskName('info:server'), function() {
var destination = path.join(rump.configs.main.paths.destination.root,
ru... | JavaScript | 0.999987 | @@ -70,36 +70,8 @@
');%0A
-var path = require('path');%0A
var
@@ -90,24 +90,24 @@
re('rump');%0A
+
var pkg = re
@@ -205,18 +205,8 @@
n =
-path.join(
rump
@@ -245,83 +245,8 @@
root
-,%0A rump.configs.main.paths.destination.static)
;%0A%0A
|
985aada5e498f5c9eb1fcb90eeb4301cf65a55f1 | Fix preview delay on Web by sending a dummy file. | web/setup/publish.js | web/setup/publish.js | // @flow
/*
https://api.lbry.tv/api/v1/proxy currently expects publish to consist
of a multipart/form-data POST request with:
- 'file' binary
- 'json_payload' collection of publish params to be passed to the server's sdk.
*/
import { X_LBRY_AUTH_TOKEN } from '../../ui/constants/token';
import { doUpdateUp... | JavaScript | 0 | @@ -654,12 +654,30 @@
ring
+, preview: boolean
%7D,%0A
-
re
@@ -745,16 +745,25 @@
filePath
+, preview
%7D = par
@@ -891,35 +891,252 @@
;%0A
-const fileField = filePath;
+let fileField = filePath;%0A%0A if (preview) %7B%0A // Send dummy file for the preview. The tx-fee calculation does not depend on it.%... |
6e0413c649c16287bf4cac132e66f0d86b76481c | test webhook | client/app/admin/admin.controller.spec.js | client/app/admin/admin.controller.spec.js | 'use strict';
describe('Controller: AdminAccountCtrl', function () {
// load the controller's module
beforeEach(module('fahrtenbuchApp'));
var AdminAccountCtrl, $scope, $location, $httpBackend, fakeResponse;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope, ... | JavaScript | 0.000001 | @@ -3150,16 +3150,17 @@
// %7D);%0A%0A
+%0A
// @todo
|
e88fa29fa549dec087e0a0999cfdaa6d681512cb | add modal and move to inherit from component | client/src/components/routes/RoutePage.js | client/src/components/routes/RoutePage.js | import React from 'react';
import '../../styles/routes/route.css';
const RoutePage = ({
id, log_number, status, delivery_count,
updated_at, driver, truck, deliveries
}) => {
const last_updated = new Date(updated_at).toDateString();
const delivery_list = deliveries.map(delivery => <p>{delivery.invoice_number}... | JavaScript | 0 | @@ -5,16 +5,29 @@
rt React
+, %7BComponent%7D
from 'r
@@ -34,16 +34,127 @@
eact';%0A%0A
+import %7B Modal %7D from 'react-bootstrap';%0A%0Aimport DeliveryContainer from '../../containers/DeliveryContainer';%0A%0A
import '
@@ -187,20 +187,20 @@
css';%0A%0Ac
-onst
+lass
RoutePa
@@ -206,104 +206,44 @@
age
-= (%7... |
2cc07b445f4e7224e83bcbc6be07875ceb01757f | Fix incorrect loading state for some analysis items | client/src/js/analyses/components/Item.js | client/src/js/analyses/components/Item.js | import React from "react";
import CX from "classnames";
import { get } from "lodash-es";
import { connect } from "react-redux";
import { LinkContainer } from "react-router-bootstrap";
import { Row, Col, Label } from "react-bootstrap";
import { getTaskDisplayName } from "../../utils/utils";
import { Icon, Loader, Relat... | JavaScript | 0.000006 | @@ -461,250 +461,87 @@
nst
-AnalysisItem = props =%3E %7B%0A const itemClass = CX(%22list-group-item spaced%22, %7B hoverable: props.ready %7D);%0A const loaderIcon = %3CLoader size=%2214px%22 color=%22#3c8786%22 style=%7B%7B display: %22inline%22 %7D%7D /%3E;%0A const canRemove = props.ready && props.
+Righ... |
59292ad3c81f2b89f27c3ed0c6dea73c6c8f299f | Update Boot.js | projects/game1/src/js/states/Boot.js | projects/game1/src/js/states/Boot.js | (function() {
'use strict';
function Boot() {
}
Boot.prototype.preload = function() {
// Load animations before game start
game.load.json('preload-loading-icon',
'assets/img/preload/loading-icon.json');
game.load.json('preload-game-name',
'assets/img/p... | JavaScript | 0.000001 | @@ -654,35 +654,32 @@
ALL;%0A
- //
game.scale.minW
@@ -693,35 +693,32 @@
480;%0A
- //
game.scale.minH
@@ -733,35 +733,32 @@
260;%0A
- //
game.scale.maxW
@@ -772,35 +772,32 @@
640;%0A
- //
game.scale.maxH
@@ -812,35 +812,32 @@
480;%0A
- //
game.scale.... |
918715bffe45adab0506213e6d37ce404f094954 | Fix regression in agg nested association | js/aggregation/controllers/aggCtrl.js | js/aggregation/controllers/aggCtrl.js | /**
* aggCtrl
* @desc this controller is attached to each aggregation displayed
*/
Curiosity.controller('aggCtrl', function($scope, $modal, aggFactory, template){
$scope.aggTypeSelected = false;
$scope.data = aggFactory.info;
$scope.tplData = template.info;
/**
* @desc function call by ng-init, call... | JavaScript | 0.000006 | @@ -3815,16 +3815,17 @@
%22) %7B%0D%0A%09%09
+%09
for (sub
@@ -3843,18 +3843,21 @@
.nested)
+ %7B
%0D%0A
+%09
%09%09%09initT
@@ -3868,19 +3868,37 @@
ate(
+agg.nested%5B
sub_agg
+%5D
);%0D%0A
+%09%09%09%7D%0D%0A
%09%09%7D%0D
|
254ff41957131ef5faeb1f671da340e9f3832e05 | fix for how datasets where loaded into the subscription selectors | components/modal/AreaSubscriptionModal.js | components/modal/AreaSubscriptionModal.js | import React from 'react';
import PropTypes from 'prop-types';
import { toastr } from 'react-redux-toastr';
// Redux
import { connect } from 'react-redux';
// Services
import AreasService from 'services/AreasService';
import UserService from 'services/UserService';
import DatasetService from 'services/DatasetService'... | JavaScript | 0.000001 | @@ -5650,24 +5650,36 @@
lter(val =%3E
+Object.keys(
val.attribut
@@ -5694,16 +5694,28 @@
ribable)
+.length %3E 0)
%0A %7D
|
9b8ccc4ee7de1e26e898165e2e41158f628ed966 | add className test | components/result/__tests__/index.test.js | components/result/__tests__/index.test.js | import React from 'react';
import { mount } from 'enzyme';
import Result from '..';
import Button from '../../button';
describe('Progress', () => {
it('🙂 successPercent should decide the progress status when it exists', () => {
const wrapper = mount(
<Result
status="success"
title="Succes... | JavaScript | 0.00001 | @@ -1522,13 +1522,224 @@
);%0A %7D);
+%0A%0A it('%F0%9F%99%82 result should support className', () =%3E %7B%0A const wrapper = mount(%3CResult status=%22404%22 title=%22404%22 className=%22my-result%22 /%3E);%0A expect(wrapper.find('.ant-result.my-result')).toHaveLength(1);%0A %7D);
%0A%7D);%0A
|
f00ab3f3e9a7b0eb9e433dc73deef185dc0b63e3 | Correct default sensor data path | defaults.js | defaults.js | 'use strict';
module.exports = {
SERVE_INSECURE: false,
SENSOR_DATA_PATH: '/var/lib/homecontrol/sensordata/temperatureSensors/TA',
PROGRAMME_DATA_PATH: '/var/lib/homecontrol/programdata',
WEBAPP_DATA_PATH: '/var/lib/homecontrol/webapp'
};
| JavaScript | 0 | @@ -120,30 +120,8 @@
data
-/temperatureSensors/TA
',%0A
|
f4c6ef155145ee832c17a40851d82e9163e42644 | edit format | modules/dashboard-ui/provision/tenants/DbTenant.js | modules/dashboard-ui/provision/tenants/DbTenant.js | 'use strict';
var DbTenant = {
"_id": ObjectId("551286bce603d7e01ab1688e"),
"locked" : true,
"code": "DBTN",
"name": "Dashboard Tenant",
"description": "this is the main dashboard tenant",
"oauth":{},
"applications": [
{
"product": "DSBRD",
"package": "DSBRD_DEFLT",
"appId": ObjectId('5512926a7a1f0... | JavaScript | 0.000003 | @@ -1119,16 +1119,17 @@
app-acl%22
+,
%0A%09%09%09%09%09%09%09
|
6c14e2c2e22af6765c896fa9858c4b5db800edf5 | change the js to deferred object | lexos/static/js/scripts_dendrogram.js | lexos/static/js/scripts_dendrogram.js | /**
* the function to convert the from into json
* @returns {{string: string}} - the from converted to json
*/
function jsonifyForm () {
var form = {}
$.each($('form').serializeArray(), function (i, field) {
form[field.name] = field.value || ''
})
return form
}
/**
* the function to run the... | JavaScript | 0.000001 | @@ -562,52 +562,8 @@
ram%0A
- * @param url %7Bstring%7D - the url to do post%0A
*/%0A
@@ -579,19 +579,16 @@
doAjax (
-url
) %7B%0A
@@ -665,16 +665,72 @@
ble'%7D)%0A%0A
+ // convert form into an object map string to string%0A
var
@@ -750,20 +750,50 @@
yForm()%0A
+%0A
+// make the ajax request%0... |
81e54660bb62584827516cf36276d74e11744e2e | Fix point-grid aggregation bug | lib/cartodb/models/aggregation/aggregation-query.js | lib/cartodb/models/aggregation/aggregation-query.js | /**
* Returns a template function (function that accepts template parameters and returns a string)
* to generate an aggregation query.
* Valid options to define the query template are:
* - placement
* The query template parameters taken by the result template function are:
* - sourceQuery
* - res
* - columns
*... | JavaScript | 0.000002 | @@ -5401,16 +5401,21 @@
ionNames
+(ctx)
%7D%0A )%0A
|
0b40a8d3543337847ea0f50911118efb410d3e28 | Fix for role format | server/authentication/signIn.js | server/authentication/signIn.js | const superagent = require('superagent');
const config = require('../config');
const generateApiGatewayToken = require('./apiGateway');
const logger = require('../../log');
async function signIn(username, password) {
logger.info(`Log in for: ${username}`);
try {
const loginResult = await superagent
... | JavaScript | 0.000007 | @@ -2049,17 +2049,16 @@
oken);%0A%0A
-%0A
logg
@@ -2069,127 +2069,43 @@
nfo(
-%60Elite2 get roles success with body $%7BrolesResult.body%7D%60);%0A logger.info(%60Elite2 get roles success with body.roles $%7B
+'Roles response');%0A logger.info(
role
@@ -2120,16 +2120,8 @@
body
-.roles%7D%60
);%0A%0A
@@ ... |
761828678960105ee1234270fed0679837106879 | fix user auth logs | server/controllers/auth-logs.js | server/controllers/auth-logs.js | 'use strict';
/* global require */
var AuthLog = require('mongoose').model('AuthLog');
exports.getNumber = function (req, res) {
AuthLog.getNumber(req.params.user, function(error, logsNumber) {
res.send({error: error, number: logsNumber});
});
};
exports.list = function (req, res) {
AuthLog.list(... | JavaScript | 0.000003 | @@ -304,74 +304,220 @@
-AuthLog.list(req.params.user, req.params.itemsPerPage, req.params.
+var itemsPerPage = isNaN(req.params.itemsPerPage) ? 20 : parseInt(req.params.itemsPerPage);%0A var page = isNaN(req.params.page) ? 0 : parseInt(req.params.page);%0A%0A AuthLog.list(req.params.user, itemsPerPage,
pa... |
97b865873bc2fbf41ad3bbd6aaf21e15f018382d | increase timeout | node-tests/blueprints/ember-datetimepicker-test.js | node-tests/blueprints/ember-datetimepicker-test.js | 'use strict';
const {
setupTestHooks,
emberNew,
emberGenerate
} = require('ember-cli-blueprint-test-helpers/helpers');
const { expect } = require('ember-cli-blueprint-test-helpers/chai');
describe('Acceptance: ember generate and destroy ember-datetimepicker', function() {
setupTestHooks(this, {
disabledTa... | JavaScript | 0.00001 | @@ -339,10 +339,18 @@
ut:
-60
+2 * 60 * 1
000%0A
|
a8ee090fead6e4ef9d8c198880941048e11811be | Clean up toast logic in AppActions | common/app/flux/Actions.js | common/app/flux/Actions.js | import { Actions } from 'thundercats';
import { Observable } from 'rx';
export default Actions({
shouldBindMethods: true,
refs: { displayName: 'AppActions' },
setTitle(title = 'Learn To Code') {
return { title: title + ' | Free Code Camp' };
},
getUser() {
return this.readService$('user', null, nu... | JavaScript | 0.000003 | @@ -980,18 +980,92 @@
-const id =
+return %7B%0A ...state,%0A toast: %7B%0A ...args,%0A id:
sta
@@ -1114,10 +1114,9 @@
d :
-0;
+1
%0A
@@ -1124,46 +1124,11 @@
-const toast = %7B ...args, id: id + 1
+
%7D
-;
%0A
@@ -1136,33 +1136,8 @@
-return %7B ..... |
df7da53955b1fb3452af24e1dc1dc3d07c13d30e | add export Logo from components | common/components/index.js | common/components/index.js | export Sidebar from './Sidebar'
export Header from './Header'
export Footer from './Footer'
export Root from './Root'
export RouteAuth from './RouteAuth'
| JavaScript | 0 | @@ -147,8 +147,34 @@
teAuth'%0A
+export Logo from './Logo'%0A
|
759f0cd1762e058acd8efc127b212608385de1a9 | connect AddListing.js to store | client/src/components/AddListing/AddListing.js | client/src/components/AddListing/AddListing.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
export default class AddListing extends Component {
render() {
return (
<h2>Add Listing</h2>
);
}
}
| JavaScript | 0 | @@ -78,168 +78,323 @@
x';%0A
-import %7B bindActionCreators %7D from 'redux';%0A%0Aexport default class AddListing extends Component %7B%0A render() %7B%0A return (%0A %3Ch2%3EAdd Listing%3C/h2%3E%0A );%0A %7D%0A%0A%7D
+%0Aclass AddListing extends Component %7B%0A constructor(props) %7B%0A super(props... |
35f5399e1329a1e7b4c1a3b332ff10ce29c5c828 | Update unmuteMeet.js | TamperMonkey/misc/unmuteMeet.js | TamperMonkey/misc/unmuteMeet.js | // ==UserScript==
// @name Unmute me
// @namespace http://omnimed.com
// @version 0.1
// @description unmute the mic in the meet
// @author ggirard
// @match https://meet.google.com/*
// ==/UserScript==
(function() {
'use strict';
setInterval(function(){
if (document.query... | JavaScript | 0 | @@ -93,17 +93,17 @@
0.
-1
+2
%0A// @des
@@ -339,32 +339,18 @@
me='
-LgbsSe'%5D%22).parentElement
+BOHaEe'%5D%22)
.cla
@@ -430,13 +430,13 @@
me='
-LgbsS
+BOHaE
e'%5D%22
|
6204fcf7c0254bae2847d4798bccf1e2fe5e179f | clean up callbacks in download | download.js | download.js | var path = require('path')
var fs = require('fs')
var get = require('simple-get')
var pump = require('pump')
var tfs = require('tar-fs')
var zlib = require('zlib')
var util = require('./util')
function downloadPrebuild (opts, cb) {
var downloadUrl = util.getDownloadUrl(opts)
var cachedPrebuild = util.cachedPrebuil... | JavaScript | 0 | @@ -3002,24 +3002,30 @@
ssfully')%0A
+ %7D%0A
cb(nul
@@ -3041,58 +3041,8 @@
ed)%0A
- %7D else %7B%0A cb(null, resolved)%0A %7D%0A
@@ -3310,43 +3310,14 @@
-if (err) return cb(err)%0A
cb(
+err
)%0A
@@ -3588,77 +3588,10 @@
er,
-function (err) %7B%0A if (err) ... |
7d92325c6a2c8cbf7046ed925d77151f0336ab40 | Update transform-column to work with the latest functions | packages/data-mate/bench/transform-column-suite.js | packages/data-mate/bench/transform-column-suite.js | 'use strict';
const { Suite } = require('./helpers');
const { config, data } = require('./fixtures/data.json');
const { DataFrame, ColumnTransform } = require('./src');
const run = async () => {
const suite = Suite('Transform Column');
const dataFrame = DataFrame.fromJSON(config, data);
for (const column... | JavaScript | 0 | @@ -8,16 +8,116 @@
rict';%0A%0A
+const %7B isEmpty %7D = require('@terascope/utils');%0Aconst %7B FieldType %7D = require('@terascope/types');%0A
const %7B
@@ -213,16 +213,20 @@
%0Aconst %7B
+%0A
DataFra
@@ -233,45 +233,1298 @@
me,
-ColumnTransform %7D = require('./src');
+functionConfigRepository,%0A Fun... |
7c014ecddc9c293ad5e3b635489d8cc36363c376 | Update form error handling to better support HTML5 `invalid` attribute. | rocketbelt/components/forms/rocketbelt.forms.js | rocketbelt/components/forms/rocketbelt.forms.js | 'use strict';
((rb, document) => {
const aria = rb.aria;
const DESCRIBED_BY_ERROR_ID_ATTR = 'data-rb-describedbyerrorid';
function onClassMutation(mutations) {
const mutationsLen = mutations.length;
for (let k = 0; k < mutationsLen; k++) {
const mutation = mutations[k];
const el = mutation.t... | JavaScript | 0 | @@ -2183,16 +2183,23 @@
ctorAll(
+%0A
'.form-g
@@ -2273,16 +2273,21 @@
ieldset'
+%0A
);%0A c
@@ -2379,28 +2379,360 @@
onst
+ el =
formEl
- = formEls%5Bi%5D
+s%5Bi%5D;%0A%0A // %22invalid%22 will be raised by the checkValidity() call below.%0A // .invalid is added and will be handled by the... |
5ba234d4a409314e7de358e677460c5a57e70421 | Update left.js | src/assets/js/app/left.js | src/assets/js/app/left.js | $(function(){
leftStatusBarUpdate();
})
function leftStatusBarUpdate()
{
var app_name = storage.getItem(config.storageAppNameKey);
if(s3AuthObj)
$('#publisher-name').text(s3AuthObj.rootDirectory);
if(app_name)
$('#app-list > li').first().text(app_name);
if(s3AuthObj && app_... | JavaScript | 0 | @@ -310,32 +310,34 @@
Obj && app_name)
+ %7B
%0A $(%22#app
@@ -402,32 +402,16 @@
com/%22 +%0A
-
@@ -469,32 +469,16 @@
-
%22/APP/SO
@@ -498,11 +498,139 @@
n.png%22);
+%0A%0A $(%22#app-icon%22).error(function() %7B%0A $(%22#app-icon%22).att... |
fc67fb6e6291e1fe050cc016c191d2849bda0877 | Move distribution. | aplomb/router.js | aplomb/router.js | var hash = require('hash.murmur3.32')
var fnv = require('b-tree/benchmark/fnv')
function Router (options) {
this.delegates = options.delegates
this.extract = options.extract
var length = 256, dist = Math.floor(length / options.delegates.length)
this.buckets = []
this.delegates.forEach(function (del... | JavaScript | 0 | @@ -116,19 +116,18 @@
is.d
-elegates =
+istribute(
opti
@@ -139,16 +139,17 @@
elegates
+)
%0A thi
@@ -176,16 +176,243 @@
extract%0A
+%7D%0A%0ARouter.prototype.match = function (obj) %7B%0A var key = this.extract(obj)%0A return this.buckets%5Bfnv(new Buffer(key), 0, Buffer.byteLength(key)).readUIntLE(0, 1... |
a476ddf7cedf6145baf12ce4efe5be8f6947d838 | Remove unnecessary logging | app/app/Board.js | app/app/Board.js | /*
Copyright (c) 2017 Jirtdan Team and other collaborators
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... | JavaScript | 0 | @@ -1851,34 +1851,8 @@
) %7B%0A
- console.log(pin);%0A
|
91d463a5d9403ca491764a7a75c16c38abf763c3 | Update formatter.js | app/formatter.js | app/formatter.js | document.getElementById("formatButton").addEventListener("click", format, false);
document.getElementById("selectAllButton").addEventListener("click", selectAll, false);
function format() {
var input = document.getElementById("json-input").value;
try {
input = JSON.parse(input);
input = JSON.str... | JavaScript | 0 | @@ -491,72 +491,16 @@
led%22
-);%0A document.getElementById(%22errorOut%22).innerHTML = error
+, error)
;%0A
@@ -614,16 +614,21 @@
n(status
+, err
) %7B%0A
@@ -1036,77 +1036,22 @@
= %22
-Something went wrong, see below for details. %3Cb%3EYour JSON is invalid.
+%3Cb%3E%22 + err + %22
%3C/b%3E
|
dcdc63948bc4982c36a34f73d7fb0e8f94b64783 | Add numbers to multiple choice questions | app/generator.js | app/generator.js | const Generator = require('yeoman-generator');
const {toId, toAppId, toName, isValidAppId} = require('./utilities.js');
const PROJECT_TYPES = [{
name: 'JavaScript App',
value: 'js'
}, {
name: 'TypeScript App',
value: 'ts'
}];
const IDE_TYPES = [{
name: 'None',
value: 'none'
}, {
name: 'Visual Studio Cod... | JavaScript | 0.999246 | @@ -148,16 +148,20 @@
name: '
+1 -
JavaScri
@@ -193,24 +193,28 @@
%7B%0A name: '
+2 -
TypeScript A
@@ -267,16 +267,20 @@
name: '
+1 -
None',%0A
@@ -308,16 +308,20 @@
name: '
+2 -
Visual S
|
0455c61ae3a104c997dccc4171bff584dca4bd3a | Update assertString.js | src/lib/util/assertString.js | src/lib/util/assertString.js | export default function assertString(input) {
const isString = (typeof input === 'string' || input instanceof String);
if (!isString) {
let invalidType;
if (input === null) {
invalidType = 'null';
} else {
invalidType = typeof input;
if (invalidType === 'object' && input.constructor) ... | JavaScript | 0.000001 | @@ -526,9 +526,9 @@
+= %60
-I
+i
nste
|
9bed3a30ba955051b30c5a2cecc01616a264e222 | Remove temporary artificial results limit. | public/app/services/searchService.js | public/app/services/searchService.js | (function () {
'use strict';
define(
[
'lodash',
'jquery'
],
function (_, $) {
return function (baseUrl, ajaxOptions, noCache, logErrors) {
var queryString;
queryString = function (parameters) {
ret... | JavaScript | 0 | @@ -723,23 +723,8 @@
'')
- + '&limit=500'
,%0A
|
2cf8bd6d20ad8651d54c26938e395cfef88b526e | Comment deleting now works, w00t. | public/includes/js/commentsThingy.js | public/includes/js/commentsThingy.js | /**
* At least we all get to write some Javascript, eh?
*
* JD woz 'ere 2k15
*
* Based entirely off http://www.webcodo.net/comments-system-using-php-ajax/
*/
var commentsThingy = function EmptyCommentsThingy() {
console.error("Failed to build the native Comments function.");
};
var deleteComment = function empt... | JavaScript | 0 | @@ -1148,16 +1148,45 @@
entItem%22
+ id=%22comment_' + data.id + '%22
%3E',%0A%09%09%09'
@@ -4384,22 +4384,265 @@
%7B%0A%09%09
-console.log(id
+API.DELETE(%22/comment/%22 + id, %7B%7D,%0A%09%09%09function Success()%7B%0A%09%09%09%09var element = document.getElementById(%22comment_%22 + id);%0A%09%09%09%09element.par... |
7c99f8eb8c0d249176f01429e8fbdc270ee45896 | Remove tmp scaffolding | lib/buster-test-cli/browser/wiring.js | lib/buster-test-cli/browser/wiring.js | (function (B) {
function catchUncaughtErrors(emitter) {
window.onerror = function (message) {
emitter.emit("uncaughtException", {
name: "UncaughtError", message: message
});
return true;
};
}
function connectLogger(emitter) {
bust... | JavaScript | 0 | @@ -1944,340 +1944,8 @@
);%0A%0A
-// !!!!!!!!!%0Aif (!buster.publish) %7B%0A buster.publish = function () %7B%0A return buster.bayeuxClient.publish.apply(buster.bayeuxClient, arguments);%0A %7D;%0A%7D%0A%0Aif (!buster.subscribe) %7B%0A buster.subscribe = function () %7B%0A return buster.bayeuxCl... |
08d779f7b2bf39da5a35e0842beac82e31e69cbd | check whether the provided header is not empty | common/services/request.js | common/services/request.js | app.factory('Request', function () {
return {
execute: function (request) {
return $.ajax({
method: request.method,
url: request.uri,
beforeSend: function (xhr) {
var headers = request.headers;
for (var idx... | JavaScript | 0.00012 | @@ -401,16 +401,101 @@
s%5Bidx%5D;%0A
+ if (header.name.length %3E 0 && header.value.length %3E 0) %7B%0A
@@ -559,16 +559,42 @@
value);%0A
+ %7D%0A
|
cf7b57c0fea2205802452e6ebc3dc43b5cf4da5c | Use void 0 instead of undefined | lib/node_modules/@stdlib/utils/homedir/test/test.js | lib/node_modules/@stdlib/utils/homedir/test/test.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var proxyquire = require( 'proxyquire' );
// VARIABLES //
var mpath = './../lib/';
// TESTS //
tape( 'main export is a function', function test( t ) {
var homedir;
t.ok( true, __filename );
homedir = require( mpath );
t.strictEqual( typeof homedir, '... | JavaScript | 0.001261 | @@ -796,17 +796,14 @@
r':
-undefined
+void 0
%0A%09%09%7D
|
43b8c4cdfb4a2a6f05f4f57f7ce9c4dfe537bf49 | Check column arg is a string in AppView.addOne() | public/javascripts/views/app_view.js | public/javascripts/views/app_view.js | var AppView = Backbone.View.extend({
initialize: function() {
_.bindAll(this, 'addOne', 'addAll', 'render');
window.Project.stories.bind('add', this.addOne);
window.Project.stories.bind('reset', this.addAll);
window.Project.stories.bind('all', this.render);
window.Project.stories.fetch();
},
... | JavaScript | 0.000022 | @@ -346,24 +346,276 @@
, column) %7B%0A
+ // If column is blank determine it from the story. When the add event%0A // is bound on a collection, the callback send the collection as the%0A // second argument, so also check that column is a string and not an%0A // object for those cases.%0A
if (type
@@ ... |
7d43f676475ecebabed9cba40d0d7477a67ee25b | add feature flag for blackbox icon (#437) (#477) | public/js/components/SourceFooter.js | public/js/components/SourceFooter.js | const React = require("react");
const { DOM: dom } = React;
const { connect } = require("react-redux");
const { bindActionCreators } = require("redux");
const actions = require("../actions");
const { getSelectedSource } = require("../selectors");
function debugBtn(onClick, type, className = "active") {
className = `... | JavaScript | 0 | @@ -181,24 +181,69 @@
/actions%22);%0A
+const %7B isEnabled %7D = require(%22../feature%22);%0A
const %7B getS
@@ -722,24 +722,57 @@
ar%22 %7D,%0A
+ isEnabled(%22features.blackbox%22) ?
debugBtn(%0A
@@ -839,16 +839,23 @@
%0A )
+ : null
,%0A
|
0b43830f79e7ad756e98b61e18123d4030d98837 | add back missing export | packages/spark-core/src/plugins/credentials/index.js | packages/spark-core/src/plugins/credentials/index.js | /**!
*
* Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
* @private
*/
import {registerPlugin} from '../../spark-core';
import AuthInterceptor from './auth-interceptor';
import Credentials from './credentials';
registerPlugin(`credentials`, Credentials, {
proxies: [
`isAuthenticated`,
`isAuthen... | JavaScript | 0.000001 | @@ -399,16 +399,49 @@
%7D%0A%7D);%0A%0A
+export %7BCredentials as default%7D;%0A
export %7B
|
854a44a289757c953859553310cdf773e167f597 | add tests for weekday formatting | management_frontend/src/l10n/__tests__/l10n.test.js | management_frontend/src/l10n/__tests__/l10n.test.js | /*jshint ignore:start */
'use strict';
var rewire = require('rewire');
describe('l10n', function() {
var l10n;
beforeAll(function() {
l10n = rewire('../index');
});
it('should return month name in nominative when formatting without specifying form',
() => {
expect(l10n.formatMont... | JavaScript | 0.000001 | @@ -267,37 +267,42 @@
ying form',%0A
-() =%3E
+function()
%7B%0A expec
@@ -483,21 +483,26 @@
icely',
-() =%3E
+function()
%7B%0A
@@ -733,37 +733,42 @@
ined form',%0A
-() =%3E
+function()
%7B%0A expec
@@ -943,21 +943,26 @@
zero',
-() =%3E
+function()
%7B%0A
@@ -1264,37 +126... |
3b30335fa930964611df647cb5380f7a368f3522 | Update customer.service-spec.js | customer/service/customer.service-spec.js | customer/service/customer.service-spec.js | describe('customerServiceTest', function(API_URL) {
var url=API_URL + "/user";
beforeEach(function(){
module('ecDesktopApp.customer');
});
it("Les données du formulaire de creation de client doivent être postées", inject(function(customerService, $httpBackend){
var customer = {name : "Dendooven", firstname :"R... | JavaScript | 0.000001 | @@ -70,16 +70,17 @@
+ %22/user
+/
%22;%0A%09befo
|
3624cce4cefdfe7f9f2667ee4b7c49539a7f47df | add watchgetfiletransfers to root saga | plugins/Files/js/sagas/index.js | plugins/Files/js/sagas/index.js | import * as sagas from './files.js'
import { fork } from 'redux-saga/effects'
export default function* rootSaga() {
yield [
fork(sagas.watchGetWalletLockstate),
fork(sagas.watchGetFiles),
fork(sagas.watchSetAllowance),
fork(sagas.watchGetMetrics),
fork(sagas.watchGetWalletBalance),
fork(sagas.watchStorage... | JavaScript | 0 | @@ -460,13 +460,50 @@
dFile),%0A
+%09%09fork(sagas.watchGetFileTransfers),%0A
%09%5D%0A%7D%0A
|
55e2e8c7a40edc650afb0cf3693d093033272ad4 | increase timeout for jest | plugins/astroturf/index.test.js | plugins/astroturf/index.test.js | const createProject = require('@poi/test-utils/createProject')
test('astroturf', async () => {
const project = await createProject({ name: 'astroturf' })
await project.write(
'.poirc',
JSON.stringify({
plugins: [require.resolve('.')],
output: {
format: 'cjs',
target: 'node'
... | JavaScript | 0.008138 | @@ -57,16 +57,40 @@
ject')%0A%0A
+jest.setTimeout(60000)%0A%0A
test('as
|
22a00cd08e38b16bb47bd9191a32c4f90eeb7f41 | stop keydown event propagation when ESC pressed to discard matches | src/typeahead/typeahead.js | src/typeahead/typeahead.js | angular.module('ui.bootstrap.typeahead', [])
/**
* A helper service that can parse typeahead's syntax (string provided by users)
* Extracted to a separate service for ease of unit testing
*/
.factory('typeaheadParser', ['$parse', function ($parse) {
// 00000111000000000000022200000... | JavaScript | 0 | @@ -4372,17 +4372,18 @@
9), esc(
-9
+27
)%0D%0A
@@ -5134,24 +5134,58 @@
=== 27) %7B%0D%0A
+ evt.stopPropagation();%0D%0A
sc
|
4af9c39471c60535f1155216683251908e3651b7 | Remove accidental console.log | Expression.js | Expression.js | /**
* View code for expressions.
*
* @flow
*/
'use strict';
import React, {
Image,
Text,
View,
DeviceEventEmitter,
} from 'react-native';
import StatelessComponent from './StatelessComponent'
import {TrackedText, TrackedView} from './TrackedViews'
import type {
DisplayExpression,
DisplayL... | JavaScript | 0.000005 | @@ -666,41 +666,8 @@
) %7B%0A
- console.log(%22called 2%22);%0A
|
dc51384a1a3a05bbac29c2ca169a6199d0332322 | Allow CanvasProvider to receive sizes too. | src/util/CanvasProvider.js | src/util/CanvasProvider.js | CanvasProvider = {
canvases: [],
getCanvas: function(width, height) {
var canvas = this.canvases.length
? this.canvases.pop()
: document.createElement('canvas');
canvas.width = width;
canvas.height = height;
return canvas;
},
returnCanvas: function(canvas) {
this.canvases.push(canvas);
}
};
| JavaScript | 0 | @@ -52,24 +52,46 @@
ion(
-width, height) %7B
+) %7B%0A%09%09var size = Size.read(arguments);
%0A%09%09v
@@ -204,16 +204,21 @@
width =
+size.
width;%0A%09
@@ -234,16 +234,21 @@
eight =
+size.
height;%0A
@@ -303,16 +303,66 @@
nvas) %7B%0A
+%09%09// reset canvas:%0A%09%09canvas.width = canvas.width;%0A
%09%09thi... |
16ab401eeaae3ae04b15e76008ea8188b38a057d | use de-normalize `aria-hidden` | src/util/hidden-from-at.js | src/util/hidden-from-at.js | import trueish from './trueish'
export default function (props) {
return trueish(props, 'ariaHidden')
}
| JavaScript | 0.000097 | @@ -1,8 +1,41 @@
+import hasProp from './has-prop'%0A
import t
@@ -126,9 +126,10 @@
aria
-H
+-h
idde
|
70797c54140f9b419f9242c393c2cefb4e3dfd28 | Update app.js | js/app.js | js/app.js | function encrypt(text, pass) {
//console.log('pass:' + pass + ' encrypt IN:' + text);
var key = Sha256.hash(pass);
var encrypted = Aes.Ctr.encrypt(text, key, 256);
//console.log('encrypt OUT:' + encrypted);
return encrypted;
}
function decrypt (text, pass) {
//console.log('pass:' + pass + ' decrypt IN:' ... | JavaScript | 0.000002 | @@ -1961,29 +1961,8 @@
%0A %0A
- $('.page').show();%0A
$(
|
228ac96179303d83301bea0d3ea3d92a978e3424 | Test all now | js/app.js | js/app.js | 'use strict';
var main = require('./main');
main.debug = true;
require('./StoneConstants');
require('./rb');
require('./test/TestAi');
require('./test/TestGameLogic');
require('./test/TestGroup');
require('./test/TestStone');
main.tests.run();
| JavaScript | 0 | @@ -129,100 +129,10 @@
estA
-i');%0Arequire('./test/TestGameLogic');%0Arequire('./test/TestGroup');%0Arequire('./test/TestStone
+ll
');%0A
|
1820246d3c54c97cf3216ca3890dde14265d1df6 | Remove / in URL | js/app.js | js/app.js | var deps = [
'ui.router',
'ngAnimate',
'ngMaterial',
'mdl',
'ngIntercom',
'ngStorage',
'MinecraftlyAppControllers',
'MinecraftlyAppServices'
];
angular.module("MinecraftlyAppControllers", []);
angular.module("MinecraftlyAppServices", []);
angular.module('MinecraftlyApp', deps)
.r... | JavaScript | 0 | @@ -1308,17 +1308,20 @@
url: %22
-/
+home
%22,%0A
@@ -1686,17 +1686,16 @@
url: %22
-/
play%22,%0A
@@ -2064,17 +2064,16 @@
url: %22
-/
vote%22,%0A
@@ -2442,17 +2442,16 @@
url: %22
-/
team%22,%0A
@@ -2821,17 +2821,16 @@
url: %22
-/
about%22,%0A
@@ -3206,17 +3206,16 @@
url: %22
-/
educatio
... |
6018a2af3750adabddb7249343538074ef8b6b33 | Remove useless code | src/utils/storage/index.js | src/utils/storage/index.js | import {
setValueToSessionStorage,
getValueFromSessionStorage,
} from './sessionStorage'
import {
setValueToLocalStorage,
getValueFromLocalStorage,
} from './localStorage'
const SESSION_STORAGE_KEY = '__felog_session_storage_key__'
const LOCAL_STORAGE_KEY = '__felog_local_storage_key__'
export function getCou... | JavaScript | 0.000548 | @@ -539,268 +539,8 @@
%0A%7D%0A%0A
-export function getCategory(defaultValue) %7B%0A return (%0A getValueFromSessionStorage(%60$%7BSESSION_STORAGE_KEY%7D/category%60) %7C%7C%0A defaultValue%0A )%0A%7D%0A%0Aexport function setCategory(val) %7B%0A return setValueToSessionStorage(%60$%7BSESSION_STORAGE_KEY%7D/ca... |
7c553177abab242a29c6fe8bc351cf6bce52e774 | Update app.js | js/app.js | js/app.js | /*
UScan Technologies RFID Management System v0.1.0
Simplistic, elegant, and efficient RFID Management System
uscantechnologies.com
License: Attribution-NonCommercial-ShareAlike 4.0 International
*/
/* doesn't work
$(document).ready(function() {
$('.bar2').click(function() {
$(".tablez").animate({
... | JavaScript | 0.000002 | @@ -4038,17 +4038,152 @@
deUp();%0A%7D);%0A*/%0A%0A
+/*CHART STUFF */%0Avar myBarChart = new Chart(ctx).Bar(mySalesFloor, options);%0A%0Anew Chart(ctx).Bar(data, %7B%0A barShowStroke: false%0A%7D);%0A%0A
%0A
|
a62061bd557558b7319aa297e3c024d82f91e160 | Improve validation error message | src/validation/messages.js | src/validation/messages.js | 'use strict';
const pluralize = require('pluralize');
const { getWordsList } = require('../utilities');
// List of custom error messages getters
const errorMessages = {
// JSON schema keywords for any type
type: ({ params: { type } }) => {
const types = type.split(',');
const typesA = getWordsList(types,... | JavaScript | 0.000004 | @@ -604,22 +604,40 @@
nst: (%7B
-schema
+params: %7B allowedValue %7D
%7D) =%3E%0A
@@ -661,22 +661,28 @@
l to '$%7B
-schema
+allowedValue
%7D'%60,%0A%0A
|
15e415c20f0df4b9d518ce207544d36870434992 | copy html and css files to dist directory | config/gulp/tasks/build.js | config/gulp/tasks/build.js | /*global require*/
var gulp = require('gulp'),
clean = require('gulp-clean'),
usemin = require('gulp-usemin'),
rev = require('gulp-rev'),
minifyHtml = require('gulp-minify-html'),
runSequence = require('run-sequence'),
Builder = require('systemjs-builder');
gulp.task('build', function (callba... | JavaScript | 0 | @@ -412,24 +412,44 @@
'usemin',%0A
+ 'copy:app',%0A
call
@@ -1593,16 +1593,159 @@
('dist/'));%0A%7D);%0A
+%0Agulp.task('copy:app', function() %7B%0A 'use strict';%0A%0A return gulp.src('src/app/**/*.%7Bcss,html%7D')%0A .pipe(gulp.dest('dist/app'))%0A%7D);%0A
|
8d69b524f7fd89deb742589a186e6ffab367b551 | handle arrays | js/app.js | js/app.js | $(document).ready(function() {
// Setup - add a text input to each footer cell
$('#maplist tfoot th').each( function () {
var title = $(this).text();
$(this).html( '<input type="text" placeholder="Search '+title+'" />' );
} );
var table = $('#maplist').DataTable( {
"ajax": "dat... | JavaScript | 0.000007 | @@ -1713,16 +1713,35 @@
!= false
+ && data.length %3E 0
) %7B%0A
|
b4e77734dd65f54a3c51ff5f6373488b4396e7ff | Fix bug when computing Opensearch's total number of pages | js/app.js | js/app.js | angular.module('app', ['app.filters', 'app.atom2json', 'app.settings'])
.config(function($routeProvider, $locationProvider, $httpProvider) {
$locationProvider.hashPrefix('!');
$routeProvider.otherwise({controller:FeedCtrl, templateUrl:'partial/feed.html'});
});
function MainCtrl($scope, $location, $s... | JavaScript | 0.00002 | @@ -1353,16 +1353,78 @@
ensearch
+,%0A total = os.totalResults / os.itemsPerPage
;%0A
@@ -1569,41 +1569,67 @@
al:
-1%5Eos.totalResults/os.itemsPerPage
+Math.floor(total) === total ? total : Math.floor(total) + 1
,%0A
|
45f685f06095948affb0156ff07618ce5d0984f0 | Refactor AJAX Request | js/app.js | js/app.js | $('#key').bind('keypress', function (event) {
var regex = new RegExp("^[a-zA-Z0-9]+$");
var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
if (!regex.test(key)) {
event.preventDefault();
return false;
}
});
$("#urigen").click(function(e)
{
e.preventDefault();
var u = $... | JavaScript | 0.000001 | @@ -243,19 +243,17 @@
%0A %7D%0A%7D);
-%09%09%09
+%0A
%0A$(%22#uri
@@ -403,16 +403,17 @@
'GET',%0A
+%09
%09url: 'h
@@ -434,16 +434,17 @@
pi/v1',%0A
+%09
%09crossDo
@@ -455,16 +455,17 @@
: true,%0A
+%09
%09data: '
@@ -481,16 +481,17 @@
ey='+k,%0A
+%09
%09dataTyp
@@ -503,40 +503,53 @@
ext'
-,
%0A%09
-succes... |
3b2ebb49747efb2518ed7b65cb69001972fb8edd | add button show, hide | js/app.js | js/app.js | // $(document).ready(function() {
'use strict';
// Waiting for vote state
var Photo = function(fileLocation) { //constructor
this.fileLocation = fileLocation;
this.votes = 1;
this.index = [];
};
var Tracker = function() {
this.photoArray = [];
this.leftPhoto = '';
this.rightPhoto = '';
};
Tracker.prototype.get... | JavaScript | 0 | @@ -1172,32 +1172,58 @@
htPhoto.votes);%0A
+%09$('#nextbutton').show();%0A
%7D;%0A%0ATracker.prot
@@ -1426,16 +1426,42 @@
votes);%0A
+%09$('#nextbutton').show();%0A
%7D;%0A%0ATrac
@@ -1622,38 +1622,8 @@
%7D;%0A%0A
-$('div%5B#highlight%5D').hide();%0A%0A
var
@@ -2850,16 +2850,42 @@
otos();%0A
+%09$('#nextbutton'... |
58c86181c3c21a551b9f33ddbb91f5dbaf1cb145 | Update client script to handle reconnecting better | public/js/scripts.js | public/js/scripts.js | var ws = new WebSocket('ws://cfc.jmgpena.net/ws');
function renderMsg(message) {
var div = document.createElement("div");
var content = document.createTextNode(message);
div.appendChild(content);
document.body.appendChild(div);
}
ws.onopen = function(evt) {
console.log('Websocket connection open... | JavaScript | 0 | @@ -3,51 +3,8 @@
r ws
- = new WebSocket('ws://cfc.jmgpena.net/ws')
;%0A%0Af
@@ -204,27 +204,22 @@
%0A%7D%0A%0A
-ws.onopen =
functio
+n onope
n(ev
@@ -276,32 +276,18 @@
);%0A%7D
-;
%0A%0A
-ws.onclose =
function
(evt
@@ -274,32 +274,40 @@
d');%0A%7D%0A%0Afunction
+ onclose
(evt) %7B%0A cons
@@ -386,52 +38... |
fd7813fd62890da1df1216618ead48d0ba3b1961 | Use landed option in app.js | js/app.js | js/app.js | ;(function(lander){
console.log('Moon Lander Visualisation');
var display = document.getElementById('display');
var horizon = new Array(display.width);
horizon[0] = 50;
for (var index = 1; index < display.width; index++){
horizon[index] = horizon[index - 1] + 2 * (Math.random() - 0.5);
... | JavaScript | 0.000001 | @@ -583,16 +583,45 @@
rashed%22:
+ false,%0A %22landed%22:
false%0A
|
6a67159929123a0e8ef908c33526680df4fa0467 | Update app.js | js/app.js | js/app.js | //RedditApp Module
var redditApp = angular.module('redditApp', ['ngRoute']);
redditApp.controller('mainController', ['$scope', '$http', '$rootElement', '$timeout', function($scope, $http, $rootElement, $timeout){
$scope.next = null;
$scope.count = 0;
$scope.page = 1;
$scope.redditif... | JavaScript | 0.000002 | @@ -2783,18 +2783,38 @@
al-body'
-,
+).empty();%0D%0A $(
'.modal-
|
2b6f0b8ec9d5c9e02c4fc9625847d58b6d676e68 | fix decrypt bug | js/app.js | js/app.js | /*global MozSmsFilter*/
$(function() {
'use strict';
/*
function logObject(obj) {
$("#response").append("<br> New Object: " + obj);
Object.keys(obj).forEach(function (key) {
$("#response").append("<br> " + key + ": " + obj[key]);
});
}
*/
function logMsg(msg) {
[
'type', 'id', '... | JavaScript | 0.000011 | @@ -681,35 +681,19 @@
%0A%09//
-var crypto = crypto.subtle;
+ Encryption
%0A%09va
@@ -1063,26 +1063,35 @@
ey,
-cryptedMessage);%0A%09
+ptUtf8);%0A%09%0A%09%0A%09// decryption
%0A%09va
@@ -1143,20 +1143,30 @@
g, key,
-data
+cryptedMessage
);%0A%0A
|
d7cd478e860f62b9f7bc4b5088f50a028ea1b2fa | move call to addSearchBox() out of initMap() | js/map.js | js/map.js | /*-----------------------------------------------------------------------------------------*/
/* CONTROLLER */
// map in global scope for access
var map;
function initMap() {
// Create a new map object and add to #map div
map = new google.maps.Map(document.getElementById('map'), initOptions);
// add sea... | JavaScript | 0 | @@ -302,48 +302,9 @@
ns);
-%0D%0A%0D%0A%09// add search box%0D%0A%09addSearchBox();
+%09
%0D%0A%7D%0D
@@ -4405,24 +4405,41 @@
initMap();%0D%0A
+addSearchBox();%0D%0A
%0D%0A%0D%0A%0D%0A%0D%0A/*--
|
bbcf737e7dbb4f11e41ccb26bb8c34c8d36cd96f | Remove strikethrough on successful recipe | js/rrg.js | js/rrg.js | var recipe_id;
function fetchInsane() {
fetchRecipe(true);
}
function fetchRecipe(insane=false) {
var api_url = "https://rrg.jamesoff.net/recipe";
if (insane) {
api_url += '-insane'
}
$.getJSON(api_url, function(data) {
$("div#recipe").replaceWith(
formatRecipe(data)
... | JavaScript | 0.000001 | @@ -480,32 +480,94 @@
iv%3E%22%0A );%0A
+ $(%22div#yum%22).replaceWith(%22%3Cdiv id='yum'%3EYum.%3C/div%3E%22);%0A
recipe_i
|
ed37b715f75d1ecfa288f9b17e6cf68690ad89a8 | make some Square react things | js/web.js | js/web.js | import React from "react";
const board = require("./board.js")
console.log("white = " + board.WHITE)
// TODO: render a pieceless chessboard
const App = React.createClass({
getInitialState() {
return { board: new board.Board() }
},
render() {
return (
<div>
hello react world!
</... | JavaScript | 0.000003 | @@ -261,55 +261,213 @@
-return (%0A %3Cdiv%3E%0A hello react world!
+let squares = %5B%5D%0A for (let x = 0; x %3C 8; x++) %7B%0A for (let y = 0; y %3C 8; y++) %7B%0A squares.push(%3CSquare x=%7Bx%7D y=%7By%7D /%3E)%0A %7D%0A %7D%0A%0A return (%0A %3Cdiv className=%22boa... |
06dd1106c635228fa21bad70db090a26b890da76 | Move audio from view to controller | scripts/explore/ExploreJointSourceController.js | scripts/explore/ExploreJointSourceController.js |
var ExploreJointSourceController = JointSourceController.createComponent("ExploreJointSourceController");
ExploreJointSourceController.createViewFragment = function () {
return cloneTemplate("#template-explore-jointsource");
};
ExploreJointSourceController.defineAlias("model", "jointSource");
ExploreJointSourceCo... | JavaScript | 0 | @@ -1398,32 +1398,43 @@
%7B%0A if (this.
+controller.
audio) %7B%0A t
@@ -1433,24 +1433,35 @@
%0A this.
+controller.
audio.play()
@@ -1564,24 +1564,35 @@
if (this.
+controller.
audio) %7B%0A
@@ -1595,24 +1595,35 @@
%0A this.
+controller.
audio.pause(
@@ -1636,16 +1636,27 @@
this.
+c... |
df09f1a85e335f6282bf9393683b5c0513349933 | fix order of entries after sort | scripts/magickartenmarkt.de/browse-view.user.js | scripts/magickartenmarkt.de/browse-view.user.js | // ==UserScript==
// @name browse view: cleaner view by hiding duplicate name information
// @description magiccardmarket.eu, magickartenmarkt.de
// @version 0.0.1
// @namespace https://github.com/solygen/userscripts
// @repository https://github.com/solygen/userscripts.git
// @license MIT
// @r... | JavaScript | 0.000005 | @@ -1348,40 +1348,8 @@
list
- = $($.find('.col_2')).find('a')
,%0A
@@ -3660,16 +3660,58 @@
entries%0A
+ list = $($.find('.col_2')).find('a');%0A
$.ea
|
e4c987b2720f54504b88e2c5d9e8fe166465dde1 | use UUID | GPIOBridge.js | GPIOBridge.js | /*
* GPIOBridge.js
*
* David Janes
* IOTDB.org
* 2014-04-30
*
* Copyright [2013-2016] [David P. Janes]
*
* 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.... | JavaScript | 0.999847 | @@ -1283,65 +1283,442 @@
%7B
-%7D%0A );%0A%0A self.native = native;%0A self.istate = %7B%7D;
+%0A uuid: null, %0A %7D,%0A );%0A%0A self.native = native;%0A%0A if (self.native) %7B%0A self.istate = %7B%7D;%0A if (!self.initd.uuid) %7B%0A logger.error(%7B%0... |
bdb35a5e3cc4e10edc6ebdd4d48214177c474e5b | Optimize QOR Fixer | admin/views/assets/javascripts/qor/qor-fixer.js | admin/views/assets/javascripts/qor/qor-fixer.js | (function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node / CommonJS
factory(require('jquery'));
} else {
// Browser globals.
factory(jQuery);
}
})(function ... | JavaScript | 0.000001 | @@ -942,24 +942,16 @@
d('tbody
-:visible
%3E tr:vi
@@ -1566,72 +1566,8 @@
ad;%0A
- var $tbody = this.$tbody;%0A var $tfoot = this.$tfoot;%0A
@@ -1650,165 +1650,8 @@
);%0A%0A
- this.offsetTop = $this.offset().top;%0A this.maxTop = $this.outerHeight() - $thead.height() - $tbody.find('%3E tr... |
729cbf384f9d9ba37947f593d3386e640bc3a8ee | improve code readability | administration/static/js/courses/controllers.js | administration/static/js/courses/controllers.js | (function(angular){
'use strict';
var app = angular.module('courses');
app.controller('CourseListController', [
'$scope', 'Course',
function ($scope, Course) {
$scope.courseList = [];
$scope.ordering = 'id';
$scope.reverse = false;
$scope.filt... | JavaScript | 0.001398 | @@ -542,94 +542,153 @@
-return (%0A $scope.filters.all %7C%7C ($scope.filters%5Bcourse.status%5D)
+var f = $scope.filters;%0A var search = f.textsearch.toLowerCase();%0A var target = course.name.toLowerCase();%0A
%0A
@@ -708,12 +708,14 @@
-) &... |
06e5ff50186714f5aa1116cd19f61d7c98f9c252 | revise some comments | GulpConfig.js | GulpConfig.js | /**
* + Project Config
* =====================================================================
*/
module.exports = (function(config) {
var path = require('path');
// project paths
config.paths = (function(p) {
p.root = process.cwd();
p.bower = path.join(p.root, 'bower_componen... | JavaScript | 0 | @@ -2,23 +2,20 @@
**%0A * +
-Project
+Gulp
Config%0A
@@ -4299,15 +4299,12 @@
* =
-Project
+Gulp
Con
|
d9d737a14c16279779f2fe9066925aca381296b6 | Update task reducer | desktop/reactified/client/src/reducers/task.js | desktop/reactified/client/src/reducers/task.js | const taskReducer = (state=[], action) => {
switch (action.type) {
case 'ADD_TASK':
return [
...state,
action.task
];
case 'DO_TASK':
return [
...state.slice(0, action.index),
{
...state[action.index],
done: true,
},
...stat... | JavaScript | 0.000002 | @@ -439,22 +439,89 @@
-action.newTask
+%7B%0A ...state%5Baction.index%5D,%0A task: action.newTask.task%0A %7D
,%0A
|
a25b25524046c9318b3fee7ddb1519237d2f4231 | fix start gold | clickingsagajavascript.js | clickingsagajavascript.js | var progress = 0
var pps = 1
var goldpertick = 1
var goldcount = 2
var increasegoldproductionrateprice = 1
var increasegoldamountrateprice = 10
var pbar = document.getElementById("progressbar");
var golddisplay = document.getElementById("gold");
var clickcollectgold = document.getElementById("collectgold");
golddisp... | JavaScript | 0.000001 | @@ -58,17 +58,17 @@
count =
-2
+0
%0A%0A%0Avar i
|
e0951a60f6bc0abf9651f6be72ed6d4bd7bfc95d | Change button styles to flat button | client/components/Book.js | client/components/Book.js | import React from 'react';
import { Link } from 'react-router-dom';
const Book = (props) => {
const { book } = props;
return (
<div className="col s12 m6 l4">
<div className="card">
<div className="card-image">
<img src = { book.imageURL } className="responsi... | JavaScript | 0.000001 | @@ -1194,32 +1194,41 @@
3 btn btn-small
+btn-flat
white teal-text
@@ -1382,16 +1382,25 @@
n-small
+btn-flat
white te
@@ -1570,16 +1570,25 @@
n-samll
+btn-flat
white te
|
6ca975fde5c70746fee59223ed0588f220613b7f | fix add/rm lines and check empty val | client/contents/styles.js | client/contents/styles.js | var ace = AceEditor.instance();
angular.module('domegis')
.directive('domegisStyles', [
function() {
return {
restrict: 'E',
templateUrl: 'client/contents/styles.html',
scope: {
content: '='
},
controller: [
'$scope',
'$reactive',
'$compile',
... | JavaScript | 0 | @@ -3728,32 +3728,39 @@
ex = new RegExp(
+'%5Ct' +
regexEscape(prop
@@ -3763,32 +3763,34 @@
prop) + ':(.*?);
+%5Cn
');%0A
@@ -3921,32 +3921,163 @@
atch != null) %7B%0A
+ var rep = '';%0A if(val !== '')%0A rep = '%5Ct' + prop + ': ' + val + ';%... |
5b7b5fc32729c7b27029f584a745ce2bea49ca81 | Fix typo | client/lib/audioplayer.js | client/lib/audioplayer.js | AudioPlayer = {
audioElement: new Audio(),
canPlay: function(song) {
var self = this;
return self.audioElement.canPlayType(song.mime);
},
load: function(song, successCallback, errorCallback, options) {
var self = this;
if(self.audioElement.currentSrc) {
self.... | JavaScript | 0.999999 | @@ -852,16 +852,17 @@
== Meteo
+r
.userId(
|
2560290cf8c1494102321ca2d8a36adf60e2ce16 | Fix issue where gulp watch sass was not looking at correct files. | NetCore.Angular/gulpfile.js | NetCore.Angular/gulpfile.js | /// <binding BeforeBuild='moveToLibs, sass, typescript' Clean='clean' ProjectOpened='sass:watch, watch:ts' />
var gulp = require('gulp'),
ts = require('gulp-typescript'),
dest = require('gulp-dest'),
sass = require('gulp-sass'),
merge = require('merge2'),
del = require('del'),
tsProject = ts.cr... | JavaScript | 0 | @@ -1707,16 +1707,23 @@
h(paths.
+source.
sass, %5B'
|
c4cd57c5a2253061a3772777dd2355fa87ecb270 | use itemsPerPage in PeopleView.js | PeopleView.js | PeopleView.js | /* global MainGame */
// shows FirstName, LastName, Health, Edu, Shelter
var PeopleRightView={
style: {font:"30px myKaiti", fill:"black"},
createNew: function(data){
var v=MainGame.game.make.sprite(0,0,"peopleViewRightBg");
// name, health, edu, shelter
v.data=JSON.parse(JSON.stringify(data));
// ListView: 1... | JavaScript | 0 | @@ -16,16 +16,68 @@
ame */%0A%0A
+// change item per page here!%0Avar itemsPerPage=10;%0A%0A
// shows
@@ -119,16 +119,16 @@
Shelter%0A
-
var Peop
@@ -364,18 +364,30 @@
stView:
-10
+%5BitemsPerPage%5D
items (
@@ -690,18 +690,28 @@
.length/
-10
+itemsPerPage
);%0A%09%09v.p
@@ -1029,32 +1029,97 @@
on(view,index... |
5c5769bab227dd8f1cc8f1dd58471263038ee735 | Change file tree when changing submission | app/assets/javascripts/submission_statistics.js | app/assets/javascripts/submission_statistics.js | $(function() {
var ACE_FILES_PATH = '/assets/ace/';
var THEME = 'ace/theme/textmate';
var active_file = undefined;
var showFirstFile = function() {
var frame = $('.frame[data-role="main_file"]').isPresent() ? $('.frame[data-role="main_file"]') : $('.frame').first();
var file_id = frame.find('.editor'... | JavaScript | 0 | @@ -85,16 +85,45 @@
mate';%0A%0A
+ var currentSubmission = 0;%0A
var ac
@@ -144,16 +144,37 @@
defined;
+%0A var fileTrees = %5B%5D
%0A%0A var
@@ -384,32 +384,52 @@
id');%0A $(
-'#
file
-s'
+Trees%5BcurrentSubmission%5D
).jstree().s
@@ -471,16 +471,53 @@
frame);%0A
+ showFileTree(currentSubmission);%... |
36adec99bc47bb754ffabb7a296bd4f9f7554d54 | remove deprecated Vue resource method | app/installer/app/components/package-manager.js | app/installer/app/components/package-manager.js | module.exports = {
mixins: [
require('../lib/package')
],
data: function () {
return _.extend({
package: {},
view: false,
updates: null,
search: '',
status: ''
}, window.$data);
},
ready: function () {
thi... | JavaScript | 0.000002 | @@ -455,34 +455,39 @@
es(this.packages
-,
+).then(
function (res) %7B
@@ -684,16 +684,10 @@
%7D
-).error(
+,
func
|
05acdf3a05e596829e3bba87bc6b7bbe0f3a6a3e | change orders screen to have currentPaidAmount | app/pods/events/show/orders/index/controller.js | app/pods/events/show/orders/index/controller.js | import Ember from 'ember';
import ENV from 'aeonvera/config/environment';
export default Ember.Controller.extend({
columns: [
{ property: 'userName', title: 'Name' },
{ property: 'total', title: 'Total' },
{ property: 'paid', title: 'Paid' },
{ property: 'createdAt', title: 'Created At' },
{ prop... | JavaScript | 0 | @@ -188,29 +188,47 @@
y: '
-total', title: 'Total
+currentPaidAmount', title: 'Paid Amount
' %7D,
|
682045e815afc473bee2dcabe5fdc11512996ad8 | Increase colspan to align pagination footer to the right | app/src/Components/ListTable/ListTableFooter.js | app/src/Components/ListTable/ListTableFooter.js | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import TableRow from '@material-ui/core/TableRow';
import IconButton from '@material-ui/core/IconButton';
import FirstPageIcon from '@material-ui/icons/FirstPage';
import KeyboardArrowLeft from '@mate... | JavaScript | 0 | @@ -3137,9 +3137,10 @@
an=%7B
-3
+10
%7D%0A
|
c2b89e22143259c26e286e7516d300be47b1ba30 | Make sure to repear ident after each reconnect | TURTED.js | TURTED.js | var TURTED = function (sockjs_url) {
var me = this;
this.callbacks = {};
this.nativeConnection = {};
this.callbackQueue = [];
this.reconnectQueue = [];
this.isConnected = false;
this.connect = function (isReconnect) {
var sockjs = new SockJS(sockjs_url);
sockjs.onopen = func... | JavaScript | 0 | @@ -3592,32 +3592,39 @@
= 100;%0A
-while ((
+for (var i=0;i%3C
this.reconne
@@ -3641,32 +3641,12 @@
ngth
- %3E 0) && (emergency %3E 0)
+;i++
) %7B%0A
@@ -3676,32 +3676,27 @@
connectQueue
-.shift()
+%5Bi%5D
;%0A if
|
f765759573e5ed299c0f977b8099631f01411b57 | Apply scope and scopeId when Role.prototype.resolveParents | common/models/sec-role.js | common/models/sec-role.js | 'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const shortid = require('shortid');
const arrify = require('arrify');
const utils = require('../../src/utils');
/* eslint-disable */
/**
* @class Role
*/
function Role() {
// this is a dummy placeholder for jsdox
}
/* eslint-enable */
... | JavaScript | 0 | @@ -561,16 +561,59 @@
arents,
+_.pick(this, %5B'scope', 'scopeId'%5D)).filter(
p =%3E p.i
@@ -2134,30 +2134,15 @@
r =
-(
role =%3E
- %7B%0A%09%09%09%09%09return
(_.
@@ -2162,16 +2162,17 @@
cope) %7C%7C
+
role.sco
@@ -2244,15 +2244,8 @@
eId)
-%0A%09%09%09%09%7D)
;%0A%09%09
|
6bc2d0ec344a8e8b77aa93a7bd49ea69a1a697e7 | update winner bug fix | job/realtime/update_schdule.js | job/realtime/update_schdule.js | /**
* 更新比赛状态
* */
var query = require("../../service/common/connection").query;
var request = require("request");
//var dom = require("jsdom");
var cheerio = require("cheerio");
module.exports = function () {
var today = new Date();
today.setHours(0);
today.setMinutes(0);
today.setSeconds(0);
t... | JavaScript | 0 | @@ -2188,13 +2188,15 @@
us,
++
hs %3E
++
vs ?
@@ -2552,24 +2552,71 @@
ID, game) %7B%0A
+ if(status!=2)%7B%0A winnerID = 0;%0A %7D%0A
query(%22u
|
aeb25276d3b2c66c7a5daa0bf1f915a443cdd7a8 | Rename data-role attribute in the JQM plugin | js/jquery.mobile.mobiscroll.js | js/jquery.mobile.mobiscroll.js | /*
Copyright (c) 2012 Sergio Gabriel Teves
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program i... | JavaScript | 0 | @@ -724,23 +724,26 @@
%22mobile.
-datebox
+mobiscroll
%22, $.mob
@@ -827,16 +827,44 @@
: 'date'
+,%0A animate: 'pop'
%0A
@@ -917,104 +917,97 @@
var
-o = $.extend(this.options, this.element.data('options')),%0A input = $(this.element
+input = this.element,%0A o = $.e... |
c9f05f5eae221c45f7b8b09709e758180cfaf754 | Add todos | app/ui.js | app/ui.js | /**
* TODO: #timeline -> event page -> history back (and reverse), no view data is cached
* TODO: which table columns are always shown (how to render various event types)
* TODO: Add file logging for 404/500 (http://expressjs.com/guide.html#error-handling)
*/
var _ = require('underscore');
var express = require('e... | JavaScript | 0.000097 | @@ -10,85 +10,72 @@
DO:
-#timeline -%3E event page -%3E history back (and reverse), no view data is cached
+import.js hangs on /tmp/php.log -- need way to mass-insert async
%0A *
@@ -240,16 +240,58 @@
ndling)%0A
+ * TODO: Add 'err' handling to mongodb.js%0A
*/%0A%0Avar
|
2efa259620a685eb41fe8bf0645096fb4254106c | Use the label prop instead of the children | components/toast/Toast.js | components/toast/Toast.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Transition from 'react-transition-group/Transition';
import cx from 'classnames';
import { IconButton, LinkButton } from '../button';
import { TextSmall } from '../typography';
import LoadingSpinner from '../loadingSpinner';
import... | JavaScript | 0.000001 | @@ -2930,16 +2930,31 @@
inverse
+ label=%7Baction%7D
onClick
@@ -2967,29 +2967,9 @@
ose%7D
-%3E%7Baction%7D%3C/LinkButton
+/
%3E%0A
|
186fbcd40f95526712ad7c8db0249e688caf2d81 | move sass loader to postLoaders | conf/webpack-test.conf.js | conf/webpack-test.conf.js | module.exports = {
module: {
preLoaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint'
}
],
loaders: [
{
test: /\.scss$/,
loaders: [
'style',
'css',
'sass',
'postcss'
]
},
{... | JavaScript | 0.000001 | @@ -190,11 +190,9 @@
/%5C.
-scs
+j
s$/,
@@ -204,119 +204,191 @@
-loaders: %5B%0A 'style',
+exclude: /(node_modules%7C.*%5C.spec%5C.js)/,%0A loader: 'isparta-instrumenter'
%0A
+%7D%0A
-'css'
+%5D
,%0A
- 'sass',%0A 'postcss'%0A %5D
+postLoaders: %5B%0A ... |
2338819d77512a94a4ddaffad6131282df4157fb | Change tasks to update once per hour by default | config/config.template.js | config/config.template.js | module.exports = {
port: 8000,
tasks: {
cdnjs: {hour: 1},
google: {hour: 1},
jsdelivr: {hour: 1}
}
};
| JavaScript | 0 | @@ -57,20 +57,22 @@
cdnjs: %7B
-hour
+minute
: 1%7D,%0A
@@ -86,20 +86,22 @@
oogle: %7B
-hour
+minute
: 1%7D,%0A
@@ -121,12 +121,14 @@
r: %7B
-hour
+minute
: 1%7D
|
450b76c30096f1265d22c36b67a6a562a94a6eae | Update development.js | config/env/development.js | config/env/development.js | 'use strict';
var defaultEnvConfig = require('./default');
module.exports = {
db: {
uri: 'mongodb://kingtsunamy:9z80dS8tRMkI48tlBSw1h4jHOWeldaBtcaI6wbMXAoEiDWgtV27YZHd8QTYywYymYzf2GZuPAbC7AEklQX5Jdg==@kingtsunamy.documents.azure.com:10255/?ssl=true&replicaSet=globaldb' ,process.env.MONGOHQ_URL || process.... | JavaScript | 0.000001 | @@ -278,16 +278,19 @@
baldb' ,
+ //
process.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.