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 |
|---|---|---|---|---|---|---|---|
e0f2b4b2b83da856a18cd0c234c24fd9bb719a24 | use lookup for rank weighting | src/modules/rank.js | src/modules/rank.js | import * as ajax from './support/ajax';
import * as layout from './support/layout';
import * as system from './support/system';
import * as task from './support/task';
var ranks;
var myRank;
var theRows;
var rankCount;
var characterRow;
function parseRankData(linkElement, responseText) { // Native
// Makes a weight... | JavaScript | 0 | @@ -232,16 +232,317 @@
erRow;%0A%0A
+var privLookup = %7B%0A 'Bank Withdraw': 5,%0A 'Build/Upgrade/Demolish Structures': 5,%0A 'Can Un-Tag Items': 5,%0A 'Build/Upgrade Structures': 4,%0A 'Can Kick Members': 4,%0A 'Can Mass Messages': 0.5,%0A 'Take Items': 0.2,%0A 'Can Recall Tagged Items': 0.2,%0A 'Store Item... |
4fa0907b0afff8f64bf9c6a7592f7f70e6e8dddf | Add stub implementation for 'getAudioTracks' and 'getVideoTracks' methods | platform/video.html5/backend.js | platform/video.html5/backend.js | var Player = function(ui) {
var player = ui._context.createElement('video')
player.dom.preload = "metadata"
var dom = player.dom
player.on('play', function() { ui.waiting = false; ui.paused = dom.paused }.bind(ui))
player.on('pause', function() { ui.paused = dom.paused }.bind(ui))
player.on('ended', function() {... | JavaScript | 0 | @@ -3444,24 +3444,172 @@
mented')%0A%7D%0A%0A
+Player.prototype.getAudioTracks = function() %7B%0A%09log('Not implemented')%0A%7D%0A%0APlayer.prototype.getVideoTracks = function() %7B%0A%09log('Not implemented')%0A%7D%0A%0A
Player.proto
|
0dccdf845643ffa3e017254649a5a58c2c0f5752 | fix auto-complete | playground/src/editor/editor.js | playground/src/editor/editor.js | // Copyright 2018 The AMPHTML Authors
//
// 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 by applicable law or agre... | JavaScript | 0.000043 | @@ -5845,16 +5845,30 @@
alidator
+.toLowerCase()
%5D);%0A
|
13273fb632b3148e1d075b6a044c6befd8a2d433 | Add explicit type casts for options.duration | src/ol/animation.js | src/ol/animation.js | goog.provide('ol.animation');
goog.require('ol');
goog.require('ol.PreRenderFunction');
goog.require('ol.ViewHint');
goog.require('ol.coordinate');
goog.require('ol.easing');
/**
* Generate an animated transition that will "bounce" the resolution as it
* approaches the final value.
* @param {olx.animation.BounceO... | JavaScript | 0.000001 | @@ -588,33 +588,62 @@
ions.duration) ?
-
+%0A /** @type %7Bnumber%7D */ (
options.duration
@@ -634,32 +634,33 @@
options.duration
+)
: 1000;%0A var e
@@ -1918,33 +1918,62 @@
ions.duration) ?
-
+%0A /** @type %7Bnumber%7D */ (
options.duration
@@ -1964,32 +1964,33 @@
options.duration
+)
: 1000;%0A... |
9324fd028260e39231d125fbe9e15b46e14456f5 | Rename "IMAP Sync" - fix js tests | src/Oro/Bundle/ImapBundle/Resources/public/js/app/views/imap-gmail-view.js | src/Oro/Bundle/ImapBundle/Resources/public/js/app/views/imap-gmail-view.js | define(function(require) {
'use strict';
var ImapGmailView;
var _ = require('underscore');
var BaseView = require('oroui/js/app/views/base/view');
ImapGmailView = BaseView.extend({
events: {
'click button[name$="[userEmailOrigin][check]"]': 'onClickConnect',
'click ... | JavaScript | 0 | @@ -156,16 +156,47 @@
/view');
+%0A var $ = require('jquery');
%0A%0A Im
|
aabfa974291b8bb3b841171a29045049f36adaca | Use the new notify() function | uptrack/static/js/status.js | uptrack/static/js/status.js | var make_popover = function() {
var pkgid = $(this).attr("data-pkg");
return $("#popover_content_" + pkgid).html();
}
var make_popovers = function(popover_class) {
$(popover_class).popover({animation: true, container: "body", html: true,
placement: "bottom", title: "Actions",
... | JavaScript | 0 | @@ -1795,306 +1795,185 @@
-$(notif).html('%3Cdiv class=%22alert alert-error%22%3E%3Ca class=%22close%22 data-dismiss=%22alert%22%3E%C3%97%3C/a%3E%3Cspan%3E' + data.error + '%3C/span%3E%3C/div%3E');%0A %7D else %7B%0A $(notif).html('%3Cdiv class=%22alert alert-success%22%3E%3Ca class=%22close%22 ... |
983963ccc4c50671b8ce09ae45410977ef32e5ad | return false from inCurrentMonth method if there is no selectedMonth | source/common/res/features/highlight-current-month/main.js | source/common/res/features/highlight-current-month/main.js | (function poll() {
// Waits until an external function gives us the all clear that we can run (at /shared/main.js)
if (typeof ynabToolKit !== 'undefined' && ynabToolKit.pageReady === true) {
ynabToolKit.currentMonthIndicator = (function () {
// Determine whether the selected month is the current month
... | JavaScript | 0.000009 | @@ -487,16 +487,22 @@
) return
+ false
;%0A
|
919f324a7f77f4d74d62851c7a5a7fb2a191ad70 | add guidelines parallel to those added to datetime utils | src/utils/format.js | src/utils/format.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | JavaScript | 0 | @@ -694,16 +694,894 @@
==%0A */%0A%0A
+/*%0A * Guidelines for these utilities:%0A *%0A * 1. Only %22workhorse%22 functions used in 2+ places should be here.%0A * 1a. A function used in multiple components for one view should live%0A * in view-specific utils: src/utils/%5Bview%5D/format.js%0A * 1b. A function used in o... |
bc69048610978fd44a162f185219912e5127d9d8 | Fix register dialog title | web/app/view/Register.js | web/app/view/Register.js | /*
* Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* 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 b... | JavaScript | 0.000001 | @@ -788,24 +788,59 @@
register',%0A%0A
+ title: Strings.loginRegister,%0A%0A
items: %7B
|
d16ed462c1d00f79feb3032c8bed4534a46c40fd | Use pointer cursor for topic map. [rev: none] | find-core/src/main/public/static/js/find/app/util/topic-map-view.js | find-core/src/main/public/static/js/find/app/util/topic-map-view.js | /*
* Copyright 2016 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'backbone',
'underscore',
'find/app/vent',
'i18n!find/nls/bundle',
'topicmap/js/topicmap'
], function(Backb... | JavaScript | 0 | @@ -711,18 +711,8 @@
dler
- %7C%7C _.noop
;%0A%0A
@@ -965,34 +965,38 @@
-this.$el.
+var
topic
-map(
+MapOptions =
%7B%0A
@@ -1197,17 +1197,118 @@
%7D
-,
+%0A %7D;%0A%0A if (this.clickHandler) %7B%0A this.$el.addClass('clickable');%0A
%0A
@@ -13... |
b9e24fb96bbf6cd0fab09f34899262433ea0f8c2 | Exclude name tag when validating whether a feature has tags (closes #3091) | js/id/validations/missing_tag.js | js/id/validations/missing_tag.js | iD.validations.MissingTag = function() {
var validation = function(changes, graph) {
var warnings = [];
for (var i = 0; i < changes.created.length; i++) {
var change = changes.created[i],
geometry = change.geometry(graph);
if ((geometry === 'point' || geomet... | JavaScript | 0.000001 | @@ -35,16 +35,254 @@
on() %7B%0A%0A
+ // Slightly stricter check than Entity#isUsed (#3091)%0A function hasTags(entity, graph) %7B%0A return _.without(Object.keys(entity.tags), 'area', 'name').length %3E 0 %7C%7C%0A graph.parentRelations(entity).length %3E 0;%0A %7D%0A%0A
var
@@ -597,2... |
79848197534b76432fa123a9b324529b0260ea6f | update the octaves when changing the baseFrequency | Tone/effect/AutoFilter.js | Tone/effect/AutoFilter.js | define(["Tone/core/Tone", "Tone/effect/Effect", "Tone/component/LFO", "Tone/component/Filter"], function(Tone){
"use strict";
/**
* @class Tone.AutoFilter is a Tone.Filter with a Tone.LFO connected to the filter cutoff frequency.
* Setting the LFO rate and depth allows for control over the filter modul... | JavaScript | 0 | @@ -4009,16 +4009,70 @@
(freq);%0A
+%09%09%09//and set the max%0A%09%09%09this.octaves = this._octaves;%0A
%09%09%7D%0A%09%7D);
|
4b458460deebac7f5bcfad793e371a9845368c99 | fix for Bug 334696 | src/ui-scripts/ui-actions.js | src/ui-scripts/ui-actions.js | var EventHandler = function(type, is_capturing, handler_key)
{
handler_key = handler_key ? handler_key : 'handler';
if(!window.eventHandlers)
{
window.eventHandlers = {};
}
if(window.eventHandlers[type])
{
return;
}
window.eventHandlers[type] = {};
var handler = function(event)
{
var ... | JavaScript | 0 | @@ -3527,16 +3527,27 @@
;%0A %7D%0A
+setTimeout(
client.s
@@ -3557,17 +3557,19 @@
pTopCell
-(
+, 0
);%0A%7D%0A%0Aev
|
4fa84934bf614895b258eca5a4d09d789fb93dd8 | Fix sharedPromiseTo jsdoc types | src/utils/sharedPromiseTo.js | src/utils/sharedPromiseTo.js | /**
* @param { () => Promise<void> } [func]
* @returns { (() => Promise<void>?) => Promise<void> }
*/
module.exports = defaultFunc => {
let promise = null
return func => {
if (promise == null)
promise = (defaultFunc ? defaultFunc() : func()).finally(() => (promise = null))
return promise
}
}
| JavaScript | 0 | @@ -1,12 +1,27 @@
/**%0A
+ * @template T%0A
* @para
@@ -42,18 +42,22 @@
ise%3C
-void
+T
%3E %7D %5B
-f
+defaultF
unc%5D
@@ -72,16 +72,23 @@
urns %7B (
+func?:
() =%3E Pr
@@ -97,14 +97,10 @@
ise%3C
-void%3E?
+T%3E
) =%3E
@@ -112,12 +112,9 @@
ise%3C
-void
+T
%3E %7D%0A
|
2028f1f722586aa0653db7a662d11e834d58d4e5 | remove angry error message output when caught gracefully | core/lib/annotation_exporter.js | core/lib/annotation_exporter.js | "use strict";
var annotations_exporter = function (pl) {
var path = require('path'),
fs = require('fs-extra'),
JSON5 = require('json5'),
_ = require('lodash'),
md = require('markdown-it')(),
paths = pl.config.paths;
/*
Returns the array of comments that used to be wrapped in raw JS.
*/
... | JavaScript | 0.00008 | @@ -525,36 +525,32 @@
console.log(
-ex,
'annotations.js
@@ -1448,12 +1448,8 @@
log(
-ex,
'ann
|
8c02a8511d774019f4ccd48f93e4bf01137192be | update capsules to async | src/v2-routes/v2-capsules.js | src/v2-routes/v2-capsules.js | // Dragon Endpoints
const express = require("express")
const v2 = express.Router()
// Returns all capsule data
v2.get("/", (req, res, next) => {
global.db.collection("dragon").find({},{"_id": 0 }).toArray((err, doc) => {
if (err) {
return next(err)
}
res.json(doc)
})
})
// Returns Dragon data
v... | JavaScript | 0 | @@ -76,16 +76,69 @@
Router()
+%0Aconst asyncHandle = require(%22express-async-handler%22)
%0A%0A// Ret
@@ -146,23 +146,22 @@
rns all
-capsule
+Dragon
data%0Av2
@@ -169,16 +169,34 @@
get(%22/%22,
+ asyncHandle(async
(req, r
@@ -189,38 +189,32 @@
(async (req, res
-, next
) =%3E %7B%0A global.
@@ -206,16 +206,... |
0fa782f52419fe1338803ffeb91a25f2d45410ff | Update banner.js | next/modules/banner.js | next/modules/banner.js | {
"mixins": ["isDisplayComponent", "hasPaper"],
"module_type": "core",
"init": function() {
var self = this;
self.border = 0;
self.minimum_height = self.minimum_height || 20;
self.minimum_width = self.minimum_width || 20;
eve("interface.request_handle.overlay_paper.overlay_paper0", functio... | JavaScript | 0.000001 | @@ -1240,12 +1240,8 @@
CAYP
- 0.2
%22, s
|
73b02ac026b6a9230eafbbbc004c4d52167ff120 | fix #340 | src/view/get-prop-handler.js | src/view/get-prop-handler.js | /**
* @file 获取属性处理对象
* @author errorrik(errorrik@gmail.com)
*/
var contains = require('../util/contains');
var empty = require('../util/empty');
var svgTags = require('../browser/svg-tags');
var evalExpr = require('../runtime/eval-expr');
var getANodeProp = require('./get-a-node-prop');
var NodeType = require('./no... | JavaScript | 0 | @@ -923,17 +923,16 @@
value;%0A
-%0A
@@ -5714,24 +5714,160 @@
lPropHandler
+,%0A type: %7B%0A prop: function (el, value) %7B%0A el.setAttribute('type', value %7C%7C '');%0A %7D%0A %7D
%0A %7D%0A%7D;%0A%0Af
|
2273685f9a8c934b6476faaad112313a7f8af813 | add selectize handlers only once | webroot/js/app/lib/AttachmentsWidget.js | webroot/js/app/lib/AttachmentsWidget.js | App.Lib.AttachmentsWidget = Class.extend({
$element: null,
$input: null,
$progress: null,
$fileList: null,
$hiddenSelect: null,
$dropZone: null,
$attachmentsTable: null,
$attachmentId: null,
config: {
uploadUrl: null
},
init: function($element, config) {
this.... | JavaScript | 0 | @@ -2281,24 +2281,85 @@
.select');%0A%0A
+ if (!tagsInput.data('tag-handlers-added')) %7B%0A
@@ -2435,24 +2435,28 @@
+
+
var selectiz
@@ -2516,24 +2516,28 @@
+
var contextT
@@ -2552,32 +2552,36 @@
is;%0A
+
+
selectize.on('fo
@@ -2596,... |
1b30da6cd28170b554b5fa906f0ff456e3388dda | Return 400 instead of 500 errors for problems with the request | nodejs/s3/s3handler.js | nodejs/s3/s3handler.js | /**
* NodeJs Server-Side Example for Fine Uploader S3.
* Maintained by Widen Enterprises.
*
* This example:
* - handles non-CORS environments
* - handles delete file requests assuming the method is DELETE
* - Ensures again the file size does not exceed the max (after file is in S3)
* - signs policy document... | JavaScript | 0.000001 | @@ -2904,33 +2904,33 @@
res.status(
-5
+4
00);%0A res
@@ -3517,33 +3517,33 @@
res.status(
-5
+4
00);%0A res
@@ -4917,33 +4917,33 @@
res.status(
-5
+4
00);%0A
|
824343706c15000118260f2f7818235cc524a4dc | make chat responsive | app/client/views/homes/singleHomeActivityStatus/singleHomeActivityStatus.js | app/client/views/homes/singleHomeActivityStatus/singleHomeActivityStatus.js | Template.singleHomeActivityStatus.onCreated(function () {
const templateInstance = this;
// Get ID of current home
templateInstance.homeId = templateInstance.data.home._id;
// Add variable to hold activity counts
templateInstance.activityLevelCounts = new ReactiveVar();
templateInstance.autor... | JavaScript | 0 | @@ -3762,17 +3762,17 @@
r: 1
-0
+5
,%0A
@@ -4005,16 +4005,34 @@
r: false
+, responsive: true
%7D);%0A
|
729e7e30e522f5354f916daccd3d01177b6f29b4 | Change notation for object | week-7/eloquent.js | week-7/eloquent.js | // Eloquent JavaScript
// Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on!
// Program Structure
// Write your own variable and do something to it.
var number_of kitties = 1;
var number_of_kitties = number_of_kitties + 100;
console.log(number_of_kitties);
prompt("What... | JavaScript | 0.000001 | @@ -891,17 +891,16 @@
%0A%09name:
-%5B
%22Sabrina
@@ -904,20 +904,19 @@
ina%22
-%5D
+,
%0A%09age:
-%5B
22
-%5D
+,
%0A%09fa
@@ -968,16 +968,17 @@
butter%22%5D
+,
%0A%09quirk:
@@ -978,17 +978,16 @@
%09quirk:
-%5B
%22reads o
@@ -1010,17 +1010,16 @@
ch year%22
-%5D
%0A%7D%0A%0A// D
|
edf65d80e5ca3f5d16aeec1e9c54c8e6e9fe00a5 | Tweak correspondence short name | project/src/js/lichess/perfs.js | project/src/js/lichess/perfs.js | export const perfTypes = [
['bullet', 'Bullet', 'Bullet'],
['blitz', 'Blitz', 'Blitz'],
['classical', 'Classical', 'Classic'],
['correspondence', 'Correspondence', 'Corres'],
['chess960', 'Chess960', '960'],
['kingOfTheHill', 'King Of The Hill', 'KotH'],
['threeCheck', 'Three-check', '3check'],
['antich... | JavaScript | 0.000001 | @@ -172,16 +172,18 @@
'Corres
+p.
'%5D,%0A %5B'
|
1bb1feec14a9bab2cabf51b2bf7224549a34e418 | Comment about to return false or use preventDefault | spn-drag-drop.js | spn-drag-drop.js | 'use strict';
angular.module('spnDragDrop', []).
directive('spnDraggable', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.attr('draggable', attrs.spnDraggable);
/*
dragstart
drag
dragenter
dragleave
drag... | JavaScript | 0 | @@ -1632,16 +1632,75 @@
n false;
+ // Maybe we should use a e.preventDefault at the beginning
%0A
|
b10b00be91922e4b4baf4c3edcffcdab4c613c10 | ensure options to path.resolve are strings | tasks/lib/jshint.js | tasks/lib/jshint.js | /*
* grunt-contrib-jshint
* http://gruntjs.com/
*
* Copyright (c) 2013 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license.
*/
'use strict';
var path = require('path');
var jshintcli = require('jshint/src/cli');
exports.init = function(grunt) {
var exports = {
usingGruntReporter: false
};... | JavaScript | 0.998513 | @@ -1304,16 +1304,27 @@
reporter
+.toString()
);%0A %7D
|
fd819bcba00fc83dcc35d01972597b8598e5fc3c | add context and params for willQuery and didQuery hooks | addon/modules/object-browser-serializer.js | addon/modules/object-browser-serializer.js | import Ember from 'ember'
const {on} = Ember
import offsetPagination from './pagination/offset'
// import cursorPagination from './pagination/cursor'
export default Ember.Object.extend({
initContext: on('init', function () {
Ember.defineProperty(this, 'pagination', undefined, (function () {
let pagination ... | JavaScript | 0 | @@ -1912,25 +1912,60 @@
is.willQuery
-(
+.call(context, serializedQueryObject
)%0A if (tr
@@ -2629,25 +2629,60 @@
his.didQuery
-(
+.call(context, serializedQueryObject
)%0A retu
|
25ae19ce517540d58f63aa05028ce42e2a120cff | Change word | src/BoardView.js | src/BoardView.js | import React, { Component } from 'react';
import ReactPaginate from 'react-paginate';
import BoardThreadList from './BoardThreadList';
import SubmitForm from './SubmitForm';
import Endpoints from './Endpoints';
import './styles/BoardView.css';
class BoardView extends Component {
constructor(props) {
super(... | JavaScript | 0.002402 | @@ -1321,22 +1321,20 @@
? (%3Cp%3E
-Thread
+Post
s: %7Bthis
|
a603e1defd25851f2661e1e266ce7c081fceb0f0 | add missing campaign api methods | src/Campaigns.js | src/Campaigns.js | 'use strict'
const {encode} = require('./helpers')
module.exports = class Campaigns {
constructor (client) {
this.client = client
}
addVoucher (campaignName, voucher, callback) {
return this.client.post(
`/campaigns/${encode(campaignName)}/vouchers`,
// TODO if voucher is optional, secure a... | JavaScript | 0.000002 | @@ -136,16 +136,218 @@
nt%0A %7D%0A%0A
+ create (campaign, callback) %7B%0A return this.client.post('/campaigns', campaign, callback)%0A %7D%0A%0A get (name, callback) %7B%0A return this.client.get(%60/campaigns/$%7Bencode(name)%7D%60, null, callback)%0A %7D%0A%0A
addVou
@@ -584,11 +584,163 @@
)%0A ... |
48d5e37e9db7786c39c6b595319de5874cdec427 | dest task cwd | tasks/src/common.js | tasks/src/common.js | import gulp from 'gulp'
import plugins from 'gulp-load-plugins'
function src({ src, cwd, plumber = false }) {
return gulp.src(src, { cwd })
.pipe(_.plumber(plumber ?
null : { errorHandler: fail }))
}
function emit(o, stream) {
return dest(o, stream)
.pipe(_.connect.reload())
}
function dest({ dest }, stream) ... | JavaScript | 0.999565 | @@ -301,16 +301,21 @@
t(%7B dest
+, cwd
%7D, stre
@@ -354,16 +354,25 @@
est(dest
+, %7B cwd %7D
))%0A%7D%0A%0Afu
|
a938337912d228592e755f868a7132880ae23e97 | Fix jsdoc | src/DateUtils.js | src/DateUtils.js | /**
* Clone a date object.
*
* @export
* @param {Date} d The date to clone
* @return {Date} The cloned date
*/
export function clone(d) {
return new Date(d.getTime());
}
/**
* Return `true` if the passed value is a valid JavaScript Date object.
*
* @export
* @param {any} value
* @returns {Boolean}
*/
ex... | JavaScript | 0.00006 | @@ -485,22 +485,20 @@
@param %7B
-%5Btype%5D
+Date
%7D d%0A * @
@@ -508,14 +508,14 @@
am %7B
-%5Btype%5D
+number
%7D n%0A
|
ac4ac496f826bbdaaabcc9ad794f19509511e273 | Fix openings resource on request error | src/FullSlate.js | src/FullSlate.js | import request from 'superagent';
/**
* FullSlate API class
* @class
*/
class FullSlate {
/**
* FullSlate API path
* @member {string} API path, the `{key}` string will be replaced with
* with the real key on construction
*/
path = 'https://{key}.fullslate.com/api/'
/**
* @constructs FullSla... | JavaScript | 0.000001 | @@ -3549,21 +3549,30 @@
Object,
+(Object%7C
Error
+)
%3E%7D Resol
@@ -4477,16 +4477,25 @@
%7D else
+ if (err)
%7B%0A
@@ -4495,32 +4495,68 @@
%7B%0A re
+ject(err);%0A %7D%0A%0A re
solve(res.body);
@@ -4555,28 +4555,16 @@
s.body);
-%0A %7D
%0A
|
b58371b4dac3aab4489e6526080341b66e41ddae | remove primary key on $delete | src/FuryModel.js | src/FuryModel.js | (function() {
'use strict';
function FuryModel(pk) {
this._isLoaded = false;
this._isLoading = false;
this._remoteData = null;
this._eventQueue = {
'loaded': [],
'created': [],
'deleted': []
};
this._filteredProperties = [
'_pk',
'_isLoaded',
'_isLoading... | JavaScript | 0.000042 | @@ -3995,32 +3995,57 @@
en(function() %7B%0A
+ self._pk = null;%0A
self._re
|
002bdda92fa952916f6c7b847eaa75e50cb5bfa3 | disable satellite view | public/javascript/map_helper.js | public/javascript/map_helper.js | (function() {
this.geocoder = new google.maps.Geocoder();
this.markers = [];
function makeMarker(coordinateArray, map, tweet, color){
var marker = new google.maps.Marker({
position: { lat: coordinateArray[0], lng: coordinateArray[1] },
map: map,
animation: google.maps.Animation.DROP,
... | JavaScript | 0 | @@ -2190,16 +2190,47 @@
zoom: 3
+,%0A mapTypeControl: false
%0A %7D;%0A
|
118788a0a8ed061c0a01a17933a8acf179a96583 | Remove console.log call | public/javascripts/visualize.js | public/javascripts/visualize.js | var visualize = (function() {
return (function(widget, name, reduce) {
var params = {};
if (reduce) {
params['group_level'] = 1;
}
else {
params['reduce'] = false;
}
console.log(params);
$.ajax({
url: "/couchdb/" + name,
... | JavaScript | 0.000003 | @@ -231,36 +231,8 @@
%7D%0A
- console.log(params);
%0A
|
002d4b4e23aa94a40c35d068115bdb8d1837c7ce | Fix for using non-ascii category name as a link in top_menu | app/assets/javascripts/discourse/models/nav_item.js | app/assets/javascripts/discourse/models/nav_item.js | /**
A data model representing a navigation item on the list views
@class InviteList
@extends Discourse.Model
@namespace Discourse
@module Discourse
**/
var validNavNames = ['latest', 'hot', 'categories', 'category', 'favorited', 'unread', 'new', 'read', 'posted'];
var validAnon = ['latest', 'hot', 'categ... | JavaScript | 0.000001 | @@ -641,37 +641,20 @@
%0A%0A
-// href from this item%0A href
+categorySlug
: fu
@@ -672,20 +672,21 @@
var
-name
+split
= this.
@@ -700,69 +700,333 @@
me')
-,%0A href = Discourse.getURL(%22/%22) + name.replace(' ', '-
+.split('/');%0A if (split%5B0%5D === 'category' && split%5B1%5D) %7B%0A v... |
a507d756b730f4597d24627151f8dd3d233024d1 | repair the js slugify method | app/assets/javascripts/locomotive/utils/core_ext.js | app/assets/javascripts/locomotive/utils/core_ext.js | (function() {
String.prototype.trim = function() {
return this.replace(/^\s+/g, '').replace(/\s+$/g, '');
}
String.prototype.repeat = function(num) {
for (var i = 0, buf = ""; i < num; i++) buf += this;
return buf;
}
String.prototype.truncate = function(length) {
if (this.length > length) {
... | JavaScript | 0.001598 | @@ -535,16 +535,17 @@
Exp('%5B%5E%5C
+%5C
w%5C%5C' + s
@@ -743,16 +743,17 @@
erCase()
+;
%0A %7D%0A%0A
|
8302735a4254393ff04b6a8e1196b20a632abe9c | domain url | app/components/board-audio/board-audio.component.js | app/components/board-audio/board-audio.component.js | (function () {
angular
.module('mysoundboard')
.component('boardAudio', {
controller: boardAudioController,
templateUrl: 'board-audio/board-audio.html',
bindings: {
audio: '='
}
});
function boardAudioController($scope, $mdToast, ResourceFactory, HotkeysService) {
c... | JavaScript | 0.999821 | @@ -444,22 +444,35 @@
p://
-localhost:3000
+my-soundboard.herokuapp.com
/api
|
b445265f5785a73aa1e5bf165f8081015908c886 | Change visible param for widgets | app/components/createEditWidget/createEditWidget.js | app/components/createEditWidget/createEditWidget.js | createEditWidget.$inject = ['api'];
function createEditWidget(api) {
return {
restrict: 'AE',
scope: {},
templateUrl: 'app/components/createEditWidget/createEditWidget.html',
link: function(scope, elem, attr, ctrl) {
scope.action = scope.$parent.subroute.action;
... | JavaScript | 0 | @@ -804,36 +804,38 @@
'visible' :
+'
true
+'
,%0A
@@ -1048,20 +1048,22 @@
ible' :
+'
true
+'
,%0A
|
d4fee24194158a5b13b59cadf468f40bc849227a | fix multi-batch code durations | app/frontend/app/controllers/organization/extras.js | app/frontend/app/controllers/organization/extras.js | import Ember from 'ember';
import Controller from '@ember/controller';
import persistence from '../../utils/persistence';
import modal from '../../utils/modal';
import i18n from '../../utils/i18n';
export default Controller.extend({
refresh_lists: function() {
this.load_blocked_emails();
this.load_gifts();
... | JavaScript | 0.000333 | @@ -3020,32 +3020,29 @@
t(this.get('
-duration
+years
')) %7C%7C 5;%0A
|
288f7e678ae3096aeda138bf3a07fa3f2e40553a | Update prdt_detl_controller.js | app/modules/product_details/prdt_detl_controller.js | app/modules/product_details/prdt_detl_controller.js | 'use strict';
angular.module('tgtApp.prdt_detl').controller('prdt_detl_ctrl', ["dataService","$scope",function(dataService,$scope) {
//scope object to store product information
$scope.product = [];
//call webservice to load product information from json file
var promise=dataService.getItems();
promise.... | JavaScript | 0.000001 | @@ -1565,10 +1565,706 @@
%0A %7D
+%0A %0A //initialization of data and logic for quantity control%0A $scope.qty = 1;%0A $scope.minQty = 1;%0A $scope.maxQty = 10;%0A%0A $scope.plus = function()%0A %7B%0A if($scope.qty%3C$scope.maxQty)%7B%0A $scope.qty= $scope.qty+1;%0A %7D%0A %7D%0A $scope.minus = ... |
5046da534cf5928e8ed092ad05ba36665264662e | Add tanura.eventHandler.check(). | public/javascripts/app.js | public/javascripts/app.js | 'use strict';
/*
* Tanura main script.
*
* This script defines Tanura's high level features.
*/
/*
* Fire an event.
*
* When given an event name, this function will run all callbacks for that
* event. Exit is true on success, false otherwise.
*/
tanura.eventHandler.fire = (x) =>
((_) =>
! (! _[x... | JavaScript | 0 | @@ -95,16 +95,320 @@
s.%0A */%0A%0A
+/*%0A * Check if an event exists.%0A *%0A * When given an event name, this function will check, if there is an entry in %0A * tanura.eventHandler.events for that name, that has the methods required.%0A */%0Atanura.eventHandler.check = (x) =%3E%0A ((_) =%3E !! _%5Bx%5D && Array.i... |
33121629a7d5cf377d157bbd522f64454dd690e0 | add notes on map.js | public/javascripts/map.js | public/javascripts/map.js | document.addEventListener('DOMContentLoaded', function () {
var location = document.getElementById("location");
function showPosition(position) {
location.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
initialize(position.coords.latitude, positio... | JavaScript | 0.000001 | @@ -1,16 +1,51 @@
+// equivilant to $(document).ready%0A
document.addEven
@@ -87,16 +87,70 @@
ion () %7B
+%0A%0A // displays location from the getlocation function
%0A var l
@@ -427,16 +427,46 @@
e);%0A %7D;
+%0A%0A // html5 gets geo location
%0A funct
@@ -694,17 +694,46 @@
%7D%0A %7D;%0A
+ // initializin... |
ac38014106b17df9186c27e6cf1a197f9ad8dbbc | Test for loader passing query.cli | test/loader.test.js | test/loader.test.js | var expect = require("expect");
var installer = require("../src/installer");
var loader = require("../src/loader");
var path = require("path");
describe("loader", function() {
beforeEach(function() {
expect.spyOn(console, "info");
this.callback = expect.createSpy();
this.check = expect.spyOn(installer, ... | JavaScript | 0 | @@ -228,24 +228,60 @@
, %22info%22);%0A%0A
+ this.cacheable = function() %7B%7D;%0A
this.cal
@@ -304,24 +304,24 @@
reateSpy();%0A
-
this.che
@@ -755,16 +755,77 @@
%7D;%0A%0A
+ this.query = '?%7B%22cli%22:%7B%22save%22:true,%22saveExact%22:true%7D%7D';%0A%0A
load
@@ -1281,34 +1281,108 @@
%0A... |
fec580b327da8a1bcd2ed994f15c7c7e1a09e690 | set site title and heading upon loading a directory | public_html/assets/app.js | public_html/assets/app.js | var uri_map = {
dir_id: '/d/',
file_id: '/f/',
dir_api: '/a/dir/'
};
var link_map = {
"URI:CHK:": uri_map.file_id,
"URI:DIR2:": uri_map.dir_id,
"URI:DIR2-RO:": uri_map.dir_id + 'ro/'
};
function get_link(lafs_uri) {
for (var k in link_map) {
if (lafs_uri.substr(0, k.length) == k)
return link_m... | JavaScript | 0 | @@ -3329,30 +3329,21 @@
-$(%22h3.heading%22).text(%22
+var title = '
Dire
@@ -3349,17 +3349,17 @@
ectory:
-%22
+'
+ data%5B
@@ -3385,16 +3385,144 @@
r(18, 5)
+;%0A title += (currentId.substr(0,3) == 'ro/') ? ' (ro)' : '';%0A document.title = title;%0A $(%22h3.heading%22).text(title
).show()
|
777ed91489e33c9a14621d9e9d5abee31ac083cb | Update test_helper.js | test/test_helper.js | test/test_helper.js | var chai = require('chai');
global.expect = chai.expect;
global.fbp = require('..');
global.MockSender = function(inputArray) {
return function() {
var outport = fbp.OutputPort.openOutputPort('OUT');
inputArray.forEach(function(item) {
outport.send(fbp.IP.create(item));
});
}
}
global.MockRecei... | JavaScript | 0.000003 | @@ -1,12 +1,27 @@
+'use strict';%0A%0A
var chai = r
@@ -70,37 +70,216 @@
ct;%0A
-global.fbp = require('..
+%0Avar InputPort = require('../core/InputPort')%0A , InputPortArray = require('../core/InputPortArray')%0A , OutputPort = require('../core/OutputPort')%0A , OutputPortArray = require('../core/OutputPortArray
... |
f1806a52ef3854801b89dfbae86fa2e3071b4318 | Fix FladeServer updateCurrentFlade crashing when callback is null | services/flade.service.js | services/flade.service.js | var htmlparser = require('htmlparser2');
var https = require('https');
var models = require('../models/index');
const FladeService = {};
FladeService.getAndSaveCurrentFlade = function(callback){
isFladeFromToday(function(fromToday){
if(!fromToday){
updateFlade(callback);
} else {
FladeService.ge... | JavaScript | 0 | @@ -1882,32 +1882,44 @@
r, flade)%7B%0A
+ callback &&
callback(flade)
|
7d1fb96cd6ebb0f61325fb50501fe72ffb49c6da | Change utility item title. | views/navigation/utility.js | views/navigation/utility.js | import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import count from '/views/accounts/notifications';
import Canvas from '/views/canvas/canvas';
import Toast from '/views/components/toasts';
import './utility.html';
// Populate Profile tab under Account Overview
const utilityNavigat... | JavaScript | 0 | @@ -1880,21 +1880,15 @@
e: '
-Obtener Ayuda
+Espa%C3%B1ol
',%0A
|
d214147a161d2e82feff53f7173ed4f1ec9be54a | Add remote open | www/bridge.open.js | www/bridge.open.js | /**
* @title Open - cordova.plugins.bridge.open
* @overview Open documents with compatible apps.
* @copyright © 2014 cordova-bridge
* @license GPLv2
* @author Carlos Antonio
*/
var exec = require('cordova/exec');
/**
* open
*
* @param {String} args File URI
* @param {Function} success Success callback
* @pa... | JavaScript | 0.000001 | @@ -706,16 +706,589 @@
(uri);%0A%0A
+ function onDeviceReady() %7B%0A var dir = (cordova.file.tempDirectory) ? 'tempDirectory' : 'externalCacheDirectory',%0A ft = new FileTransfer(),%0A filename = uri.substring(uri.lastIndexOf('/') + 1),%0A path = cordova.file%5Bdir%5D + filename;%0A%0A ft.... |
7cfc3267f99a82f00a51e8ea5adf2f274cac271e | Fix first empty line ignore string | PurePO2JSON.js | PurePO2JSON.js | /*
* PurePO2JSON v2.0.1
* by André Zanghelini (An_dz)
*
* with previous contributions by Roland Reck (QuHno)
*/
function specialChars(match, linefeed, special) {
"use strict";
// get rid of new lines
if (linefeed === "n") {
return "_10_";
}
if (linefeed === "r") {
return "_13_"... | JavaScript | 0.997871 | @@ -16,17 +16,17 @@
ON v2.0.
-1
+4
%0A * by A
@@ -902,16 +902,39 @@
= null;
+%0A var empty = false;
%0A%0A fi
@@ -1969,24 +1969,55 @@
=== null) %7B%0A
+ empty = false;%0A
@@ -2466,50 +2466,20 @@
-msgstr = false;%0A return
+empty = true
;%0A
@@ -3420,5... |
a39f7888a4f0caf483c52c11a7ada944dc8c5e46 | fix callback bug | www/js/app/main.js | www/js/app/main.js | // global application setting
var jQT = new $.jQTouch({
icon:'img/jqtouch.png',
addGlossToIcon:false,
startupScreen:'img/jqt_startup.png',
statusBar:'black'
});
$(function() {
// video plugin definition
var vp;
// Step 1: initialize plugins
$(document).bind("deviceready", function() ... | JavaScript | 0.000001 | @@ -175,28 +175,9 @@
);%0A%0A
-$(function() %7B%0A%0A
+%0A
// v
@@ -199,20 +199,16 @@
inition%0A
-
var vp;%0A
@@ -208,20 +208,16 @@
ar vp;%0A%0A
-
// Step
@@ -239,20 +239,16 @@
plugins%0A
-
$(docume
@@ -288,20 +288,16 @@
) %7B%0A
-
-
vp = win
@@ -321,29 +321,21 @@
Player;%0A
-
%... |
08879fcbdce4651f0d93a49a3cbea9bd42264e45 | split bindSelectorChanged | js/tinymce/themes/inlight/src/main/js/tinymce/inlight/ui/Toolbar.js | js/tinymce/themes/inlight/src/main/js/tinymce/inlight/ui/Toolbar.js | /**
* Toolbar.js
*
* Released under LGPL License.
* Copyright (c) 1999-2016 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
define('tinymce/inlight/ui/Toolbar', [
'global!tinymce.util.Tools',
'global!tinymce.ui.Factory'
], fun... | JavaScript | 0 | @@ -647,28 +647,27 @@
;%0A%0A%09var
-bind
+get
Selector
Changed
@@ -658,23 +658,27 @@
Selector
-Changed
+StateResult
= funct
@@ -682,24 +682,16 @@
nction (
-editor,
itemName
@@ -706,68 +706,264 @@
%7B%0A%09%09
-return function () %7B%0A%09%09%09var selection = editor.selection;%0A%0A%09
+var result = functi... |
e1b08390d047482a5dda2ed37f3f215cb6d5df74 | remove double '/' from url | healthCheckService.js | healthCheckService.js | /* jslint node: true, esnext: true */
"use strict";
const path = require('path'),
service = require('kronos-service'),
route = require('koa-route');
module.exports.registerWithManager = function (manager) {
const adminService = manager.serviceDeclare('koa', {
name: 'health-check',
autostart: true,
get path... | JavaScript | 0.000596 | @@ -212,21 +212,27 @@
%0A%09const
-admin
+healthCheck
Service
@@ -308,16 +308,29 @@
: true,%0A
+%09%09port: 9856,
%0A%09%09get p
@@ -418,17 +418,16 @@
is.port%7D
-/
$%7Bthis.p
@@ -444,21 +444,90 @@
%0A%09%7D);%0A%0A%09
-admin
+healthCheckService.info(%7B%0A%09%09url: healthCheckService.url%0A%09%7D);%0A%0A%09h... |
74f59fd5b0f4c02aee74a12fc3976a98dbfb38c2 | Fix comment hiding and unhiding | kuulemma/static/app/components/comment-list/comment-list-service.js | kuulemma/static/app/components/comment-list/comment-list-service.js | /* Kuulemma
* Copyright (C) 2014, Fast Monkeys Oy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* T... | JavaScript | 0.000001 | @@ -1589,32 +1589,63 @@
extend(params, %7B
+%7D);%0A forcedParams.comment.
is_hidden: true%7D
@@ -1641,16 +1641,15 @@
dden
-:
+ =
true
-%7D)
;%0A
@@ -1773,16 +1773,47 @@
arams, %7B
+%7D);%0A forcedParams.comment.
is_hidde
@@ -1817,17 +1817,16 @@
dden
-:
+ =
false
-%7D)
;%0A
|
32f0ca15bdf38608874b67b1c4929e6cf8e08e16 | Remove pat-packery and add pat-masonry to patterns config. | src/patterns.js | src/patterns.js | /* Patterns bundle configuration.
*
* This file is used to tell r.js which Patterns to load when it generates a
* bundle. This is only used when generating a full Patterns bundle, or when
* you want a simple way to include all patterns in your own project. If you
* only want to use selected patterns you will need ... | JavaScript | 0 | @@ -1132,18 +1132,16 @@
kdown%22,%0A
-//
%22pat
@@ -1252,27 +1252,8 @@
r%22,%0A
- %22pat-packery%22,%0A
|
706acfa8edae5b75c88a54d026ebec028ef7e82c | update check | app/javascript/components/widgets/widgets/forest-change/fao-reforest/actions.js | app/javascript/components/widgets/widgets/forest-change/fao-reforest/actions.js | import { getFAOExtent } from 'services/forest-data';
export const getData = ({ params, dispatch, setWidgetData, widget, state }) => {
getFAOExtent({ ...params })
.then(response => {
const data = response.data.rows;
const hasCountryData =
(data.length &&
data.find(d => d.iso === stat... | JavaScript | 0 | @@ -116,15 +116,8 @@
dget
-, state
%7D)
@@ -242,24 +242,16 @@
ryData =
-%0A
(data.l
@@ -258,26 +258,16 @@
ength &&
-%0A
data.fi
@@ -283,58 +283,13 @@
.iso
- === state().location.payload.country)) %7C%7C%0A
+)) %7C%7C
nul
@@ -366,47 +366,19 @@
ata
-%7C%7C params.type === 'global' ? ... |
17b0495b1f398a65a290a49846d7afa4a414e353 | Add CRA preset to MDX template | lib/cli/generators/REACT_SCRIPTS/template-mdx/.storybook/presets.js | lib/cli/generators/REACT_SCRIPTS/template-mdx/.storybook/presets.js | module.exports = [
{
name: '@storybook/addon-docs/react/preset',
options: {
configureJSX: true,
},
},
];
| JavaScript | 0 | @@ -12,16 +12,56 @@
rts = %5B%0A
+ '@storybook/preset-create-react-app',%0A
%7B%0A
|
e6e4c1603ad952158e66f408631d40cc3a3d4acc | Add jQuery-QueryBuilder sortable plugin | doorman/static/js/plugins.js | doorman/static/js/plugins.js | // place any jQuery/helper plugins in here, instead of separate, slower script files.
$(function() {
$(".tagsinput").tagsinput({
tagClass: "label label-default",
trimValue: true
});
$('.tagsinput').on('itemAdded', function(event) {
var data = JSON.stringify([]);
if ($... | JavaScript | 0 | @@ -4937,32 +4937,135 @@
%7D,%0A
+ 'sortable': %7B%0A icon: 'glyphicon glyphicon-move',%0A %7D,%0A
%7D,%0A%0A
|
eb1cde6a9ec2170b4420e8d3b8d3b0688b1aa3f1 | Use default padding parameter | lib/themes/dosomething/paraneue_dosomething/js/takeover/Takeover.js | lib/themes/dosomething/paraneue_dosomething/js/takeover/Takeover.js | import Validation from 'dosomething-validation';
import setting from '../utilities/Setting';
const $ = require('jquery');
const template = require('lodash/string/template');
class Takeover {
constructor($takeoverContainer, tpl) {
this.$el = $takeoverContainer;
this.template = tpl;
this.baseUrl = window... | JavaScript | 0.000001 | @@ -4618,66 +4618,14 @@
g =
-null) %7B%0A padding = (padding === null) ? 100 : padding;%0A
+100) %7B
%0A
@@ -4671,19 +4671,23 @@
ght() +
-100
+padding
);%0A %7D%0A%7D
|
867922f97e85e5631bfef2b4a6ab4089f166ca00 | Implement callback function to handle user cursor drag event. | js/constructors.js | js/constructors.js | // DO WE EVEN USER THIS.FAVORITES????
function User(userData) {
this.uid = userData.id,
this.userId = userData.userId,
this.position = userData.position,
this.name = userData.name,
this.img = userData.profileImageURL,
this.marker = null,
this.currentPark = userData.currentPark,
this.skateparks = userDa... | JavaScript | 0 | @@ -381,16 +381,38 @@
ion() %7B%0A
+ //this may not work%0A
curren
@@ -436,24 +436,31 @@
tion = this.
+marker.
position;%0A%0A
@@ -1012,19 +1012,16 @@
on() %7B%0A
- //
google.
@@ -1105,16 +1105,19 @@
his));%0A
+ //
google.
@@ -1485,16 +1485,42 @@
nds();%0A%0A
+ console.log('batch em')%0A
allSka
|
84b0a9626b81ab24e2a113047c14843fd71e826a | fix eslint error #511 | js/echo_newline.js | js/echo_newline.js | /**@license
* __ _____ ________ __
* / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // //... | JavaScript | 0.000001 | @@ -5149,35 +5149,58 @@
%7D else
+ if (!arguments.length)
%7B%0A
-
@@ -5318,57 +5318,8 @@
ned%0A
- if (!arguments.length) %7B%0A
@@ -5357,36 +5357,32 @@
-
-
%7D else %7B%0A
@@ -5366,36 +5366,32 @@
%7D else %7B%0A
-
... |
fe8c64bda0bde3f6597302238df8a8d876c69776 | Update default gebo-server address | app/scripts/controllers/main.js | app/scripts/controllers/main.js | /**
* This controller was inspired by:
* enginous/angular-oauth
* https://github.com/enginous/angular-oauth
*/
'use strict';
angular.module('geboClientApp')
.controller('MainCtrl', function ($scope, Token, $location) {
$scope.verified = false;
/**
* Configure OAuth2 for interaction with gebo-serve... | JavaScript | 0 | @@ -410,16 +410,17 @@
o: 'http
+s
://192.1
@@ -428,19 +428,19 @@
8.1.25:3
-000
+443
/dialog/
@@ -468,16 +468,17 @@
o: 'http
+s
://local
@@ -487,11 +487,11 @@
st:3
-000
+443
',%0A
|
cd42c14eb58c32c63e784795fa2b666a111da643 | Update room.js | app/scripts/controllers/room.js | app/scripts/controllers/room.js | 'use strict';
angular.module('chatterApp')
.controller('RoomCtrl', function ($scope, $rootScope, $firebaseObject, $firebaseArray, $routeParams, $mdSidenav) {
var roomRef = new Firebase("https://chatter-bzu.firebaseio.com/rooms/" + $routeParams.id);
var messagesRef = new Firebase("https://chatter-bzu.firebase... | JavaScript | 0.000001 | @@ -190,35 +190,31 @@
se(%22https://
-chatter-bzu
+msports
.firebaseio.
@@ -293,19 +293,15 @@
s://
-chatter-bzu
+msports
.fir
|
8d1dd565486c02f7bf75068cb140253fa1598745 | fix workspace filter to resolve internal server error | app/scripts/services/summary.js | app/scripts/services/summary.js | 'use strict';
/**
* @ngdoc service
* @name ng311.Summary
* @description
* # Summary
* Factory in ng311
* //TODO rename to reports
*/
angular
.module('ng311')
.factory('Summary', function ($http, $resource, Utils) {
var Summary = {};
/**
* @description find roles with pagination
* @param ... | JavaScript | 0 | @@ -5602,24 +5602,27 @@
1) %7B%0A
+ //
query.metho
@@ -5629,16 +5629,16 @@
d = %7B%7D;%0A
-
@@ -5709,33 +5709,34 @@
%0A query
-.
+%5B'
method.workspace
@@ -5735,16 +5735,18 @@
orkspace
+'%5D
= %7B $in
@@ -5825,25 +5825,26 @@
query
-.
+%5B'
method.works
@@ -5847,16 +5847,18 @@... |
245061f4eee8be0a1ed0fa896be5703113116878 | resolve last pinned project is not saved due to async setState | app/src/common/app-container.js | app/src/common/app-container.js | import firstBy from 'thenby';
import { ipcRenderer } from 'electron';
import { Container } from 'unstated';
import debounce from 'lodash.debounce';
import Fuse from 'fuse.js';
import formatPath from '~/common/format-path';
import createStore from '~/common/preferences-store';
import Channels from '~/common/channels';
... | JavaScript | 0 | @@ -346,10 +346,10 @@
T =
-2
5
+0
0;%0Ac
@@ -847,16 +847,114 @@
.args);%0A
+ // Auto sync state changes with preferences%0A this.subscribe(() =%3E this.syncPreferences());%0A
// S
@@ -2793,36 +2793,47 @@
one%0A
-const nextP
+this.setState(%7B%0A p
rojects
- =
+:
existin
@@ -2841,16 +2841,18... |
6a3df56adbe31a00aec82ed582af739915317b49 | Convert SimLauncher to es6 class, rename to simLauncher.js, https://github.com/phetsims/joist/issues/630 | js/griddle-main.js | js/griddle-main.js | // Copyright 2014-2020, University of Colorado Boulder
/**
* Main file for the Griddle library demo.
*/
import Screen from '../../joist/js/Screen.js';
import Sim from '../../joist/js/Sim.js';
import SimLauncher from '../../joist/js/SimLauncher.js';
import GriddleDemoScreenView from './demo/GriddleDemoScreenView.js'... | JavaScript | 0.001867 | @@ -196,17 +196,17 @@
%0Aimport
-S
+s
imLaunch
@@ -229,17 +229,17 @@
oist/js/
-S
+s
imLaunch
@@ -489,17 +489,17 @@
%7D%0A%7D;%0A%0A
-S
+s
imLaunch
|
8adf81bdeabd36f0d4bbdaf82fa2c99817da3371 | Allow passing material to model construction | js/models/model.js | js/models/model.js | var Material = require('./material');
var math = require('../math/math');
/**
* Basic model. A model useful high-level representation
* of a transform, geometry and material which can be rendered.
* Models can be organized hierarchically (see add, remove).
*
* @param ctx the context.
* @param name the name of th... | JavaScript | 0 | @@ -446,24 +446,159 @@
me = name;%0A%0A
+ var mat;%0A%0A if (options && options.material) %7B%0A mat = options.material;%0A %7D else %7B%0A mat = new Material();%0A %7D%0A%0A
/** The
@@ -649,25 +649,11 @@
l =
-new Material(ctx)
+mat
;%0A%0A
|
33279e28aa1f06fb6ee749e13e1f9ad6274dd591 | Update the example in Tempo guide. Fixes #86 | demo/guide.tempo_progress.js | demo/guide.tempo_progress.js | // Source code licensed under Apache License 2.0.
// Copyright © 2019 William Ngan. (https://github.com/williamngan/pts)
window.demoDescription = "Progress demo in Tempo guide.";
//// Demo code starts (anonymous function wrapper is optional) ---
(function() {
Pts.quickStart( "#pt", "#e2e6ef" );
// Create te... | JavaScript | 0 | @@ -418,150 +418,8 @@
= 0;
-%0A%0A // for every 1 beat, change the center's count%0A tempo.every(1).start( (count) =%3E %7B%0A counter = count;%0A // console.log( count );%0A %7D)
%0A %0A
@@ -816,16 +816,181 @@
cle%22 );%0A
+ %7D);%0A%0A // for every 1 beat, change the center's count and background color... |
32139346630330d48743c9292f34ee16f46a757b | fix demo | demo/pages/progress/index.js | demo/pages/progress/index.js | Controller.$inject = ['$http', '$timeout', 'qgrid'];
export default function Controller($http, $timeout, qgrid) {
const ctrl = this;
ctrl.gridModel = qgrid.model();
ctrl.gridModel.progress({isBusy: true});
$timeout(() =>
$http.get('data/people/100.json')
.then(function (response) {
ctrl.gridModel.data({
... | JavaScript | 0.000001 | @@ -166,45 +166,87 @@
;%0A%09c
-trl.gridModel.progress(%7BisBusy: true%7D
+onst service = qgrid.service(ctrl.gridModel);%0A%09const cancelBusy = service.busy(
);%0A%0A
@@ -396,46 +396,18 @@
%09%09%09c
-trl.gridModel.progress(%7BisBusy: false%7D
+ancelBusy(
);%0A%09
|
3fc5a9e300ecfc0cff035381d13a499ff9e027e3 | fix typo | src/sap.ui.core/test/sap/ui/core/qunit/odata/v4/testsuite.odatav4.qunit.js | src/sap.ui.core/test/sap/ui/core/qunit/odata/v4/testsuite.odatav4.qunit.js | sap.ui.define(function () {
"use strict";
return {
name : "TestSuite for sap.ui.core: GTP testcase CORE/ODATAV4",
defaults : {
group : "OData V4",
qunit : {
version : "edge",
reorder : false
},
sinon : {
version : "edge"
},
ui5 : {
language : "en-US",
rtl : false,
libs :... | JavaScript | 0.000032 | @@ -1525,17 +1525,17 @@
/v4/Late
-p
+P
ropertie
|
aca5316181455100b468949ed510d9ce150f2cda | Update exports and stop exposing the internal CalendarResource class | DeprecatedClient.js | DeprecatedClient.js | /*!
* google-apps-admin-sdk
* MIT Licensed
*/
var request = require('request');
module.exports = {
Client: Client
, CalendarResource: CalendarResource
}
function Client(appDomain, accessToken, refreshToken, clientId, clientSecret) {
this.appDomain = appDomain
this.accessToken = accessToken;
this.refreshTo... | JavaScript | 0 | @@ -98,66 +98,15 @@
ts =
- %7B%0A
Client
-: Client%0A, CalendarResource: CalendarResource%0A%7D
%0A%0Afu
|
91929aebbd3d7a1fb692a713c73537c50094afbf | Update app.js | RC/uart/app.js | RC/uart/app.js | var redis = require('redis');
var SerialPort = require('serialport');
var fs = require('fs');
var files = fs.readdirSync('/dev/');
//console.log('files=<',files,'>');
var uartDevice = false;
files.forEach(function(file) {
//console.log('file=<',file,'>');
if(file.startsWith('ttyUSB')) {
//consol... | JavaScript | 0.000002 | @@ -999,32 +999,40 @@
eMotor(motor);%0D%0A
+/* %0D%0A
motor.mt = '
@@ -1145,32 +1145,36 @@
eMotor(motor);%0D%0A
+*/%0D%0A
%7D%0D%0A if(messag
|
8f331e218c57021c5b272e4b7f64b63e937bbb43 | Fix scheduler datacontext | src/scheduler.datacontext.js | src/scheduler.datacontext.js |
(function() {
'use strict';
angular.module('freeants').factory('schedulerDataContext', ['$http', 'helpers', 'path', function ($http, helpers, path) {
//End points
function SchedulerUrl() {
return path.api + "/Scheduler";
}
return {
schedule: function (schedulerObject) {
... | JavaScript | 0.000166 | @@ -1146,14 +1146,12 @@
d: '
-DELETE
+POST
',%0A
@@ -1284,23 +1284,25 @@
data: %7B
+%22
thingId
+%22
: thingI
|
3d07c2f83e43565fff7abfbcbad7d81283b3712b | Update ozController.js | adopt4k_server/STATIC/scripts/ozController.js | adopt4k_server/STATIC/scripts/ozController.js | var ozController = {
$tooltip: null,
map: null,
base_layer: null,
oz_layer: null,
api_url: '/api/adoptions/?format=json&page_size=5000',
adoptions: {},
oz_url_lq: 'https://services1.arcgis.com/DnZ5orhsUGGdUZ3h/ArcGIS/rest/services/OZ2013_LowRes/FeatureServer/0',
oz_url_hq: 'https://services1.arcgis... | JavaScript | 0.000001 | @@ -1925,12 +1925,8 @@
+ '
-.org
:400
|
1034d8e1dfdff7c0780264144292c22c6f0c5904 | Fix empty value for @use() | src/property.js | src/property.js | import parse_value_group from './parser/parse-value-group';
import parse_grid from './parser/parse-grid';
import Shapes from './shapes';
import prefixer from './prefixer';
import { memo } from './utils';
export default {
['@size'](value, { is_special_selector }) {
let [w, h = w] = parse_value_group(value);
... | JavaScript | 0.002932 | @@ -2157,24 +2157,54 @@
'%5D(rules) %7B%0A
+ if (rules.length %3E 2) %7B%0A
return r
@@ -2209,15 +2209,21 @@
rules;%0A
+ %7D%0A
%7D%0A%0A%7D%0A
|
7fc59bbd61e9f76fe271a12523b62272dc1a38c5 | remove lingering console.log | app/assets/javascripts/backend/datepickers.js | app/assets/javascripts/backend/datepickers.js | var datepickers = datepickers || {
init: function() {
this.load_ranges();
this.load_regulars();
$('.date_picker, .date_range_picker').find('.input-group-addon').on(
'click',
this.icon_click_listener
);
},
icon_click_listener: function(e) {
e.preventDefault();
$(this).parents('... | JavaScript | 0.000001 | @@ -1791,31 +1791,8 @@
));%0A
- console.log(date);%0A
|
698e12d1b0b2dac20e9da77d3737efa45b611fc9 | fix linkedin url | data/SiteConfig.js | data/SiteConfig.js | const config = {
siteTitle: "Mildronize", // Site title.
siteTitleShort: "Mildronize", // Short site title for homescreen (PWA). Preferably should be under 12 characters to prevent truncation.
siteTitleAlt: "Mildronize", // Alternative site title for SEO.
siteLogo: "/logos/android-chrome-512x512.png", // Logo u... | JavaScript | 0.998334 | @@ -2630,23 +2630,16 @@
url: %22
-mailto:
https://
|
2fef9bdade7d21de4c8992472106a11c31290584 | Fix webdriver bridge bug | node-src/webdriverBridge.js | node-src/webdriverBridge.js |
var fs = require('fs');
var nextClientActionId = 1;
var exportMethods = ['dragStart', 'dragOver', 'dragLeave', 'drop', 'delay'];
// using this ugly hack, since selenium seems to not pass arguments given to the execute() method
function webdriverExecuteAsync(self, script, parameters, callback) {
var parameterAss... | JavaScript | 0.000001 | @@ -28,50 +28,22 @@
var
-nextClientActionId = 1;%0A%0Avar exportMethods
+EXPORT_METHODS
= %5B
@@ -98,16 +98,86 @@
elay'%5D;%0A
+var WEBDRIVER_ASYNC_EXEC_TIMEOUT = 2000;%0A%0Avar nextClientActionId = 1;%0A
%0A%0A// usi
@@ -650,32 +650,92 @@
self.webdriver
+%0A .timeoutsAsyncScript(WEBDRIVER_ASYNC_EXEC_TIMEOU... |
5ea287772e965b9c0eff96695c60f6d648bec405 | Add separate alpha values for room state so that the states can be referenced without string literals. | states/main/entities/room.js | states/main/entities/room.js | /**
* This file defines the room for the game.
* A room consists of a tiled floor, several walls to block player entry, and a lighting state.
* Rooms may be either lit or unlit.
*/
var LightsOut = (function(lightsOut){
lightsOut.Room = function(game, zDepthManager,
navPointIndex, x, y, width, height)... | JavaScript | 0 | @@ -1462,11 +1462,13 @@
T :
-0.8
+%22LIT%22
,%0D%0A%0D
@@ -1591,20 +1591,26 @@
I_LIT :
-0.95
+%22SEMI_LIT%22
,%0D%0A%0D%0A
@@ -1677,19 +1677,120 @@
UNLIT :
-1.0
+%22UNLIT%22%0D%0A %7D;%0D%0A%0D%0A lightsOut.Room.State.Alpha = %7B%0D%0A LIT : 0.8,%0D%0A SEMI_LIT : 0.1,%0D%0A UNLIT : 0.95
%0D%0A %... |
b6da99a7a1ac34a0d2b9f4a429bdb4a2be741a52 | Remove obsolete TODO | wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/ItemList.js | wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/ItemList.js | /**
* Data handler for an item list form builder field in an Ajax form.
*
* @author Matthias Schmidt
* @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Form/Builder/Field/ItemList
* @since 5.2
*/
define(... | JavaScript | 0.00087 | @@ -878,80 +878,8 @@
) %7B%0A
-%09%09%09%09// TODO: data%5Bthis._fieldId%5D is an array but if code assumes object%0A
%09%09%09%09
|
694669d476be60a2e91681f5aaeae703e7b925bd | Initialize child object | src/quo.core.js | src/quo.core.js | /*
QuoJS 1.0
(c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
http://quojs.tapquo.com
*/
(function($$) {
var OBJ_PROTO = Object.prototype;
var EMPTY_ARRAY = [];
/**
* Determine the internal JavaScript [[Class]] of an object.
*
* @param {object} obj to get the real type of itself.
... | JavaScript | 0.000036 | @@ -2334,32 +2334,56 @@
= function() %7B%0A
+ var child = %7B%7D;%0A
for (var
|
ac7b636a065fc90f41faedb3b0af7da0dfaee274 | load the event binding only once | static/javascripts/custom.js | static/javascripts/custom.js | function viewDidLoad() {
// 总
$("#n-post-wrapper").load("view/create-post.html", function () {
// $('.n-main .n-container').css('margin-left', $('#n-nav .n-container').css('width'));
});
// $("#n-home-wrapper").load("view/home.html", function () {
// // $('.n-main .n-container').css('margin-left', $('#n-nav .n-cont... | JavaScript | 0 | @@ -4341,16 +4341,51 @@
%0A%0A%0A%0A%0A%0A%0A%0A
+%7D%0A%0A$(document).ready(viewDidLoad)%0A%0A
// %E9%9B%B7%E7%8B%97%0Ava
@@ -4998,38 +4998,4 @@
%E9%9B%B7%E7%8B%97%E5%AE%8C%0A
-%7D%0A%0A$(document).ready(viewDidLoad)%0A
|
220e00e0365001497782df08aaf0dd5ced37fc2f | Change || to && | cron/disabled/expiring-cards.js | cron/disabled/expiring-cards.js | #!/usr/bin/env node
import '../../server/env';
import logger from '../../server/lib/logger';
import models from '../../server/models';
import * as libPayments from '../../server/lib/payments';
// Run on the 7th and 21st of the month
const today = new Date();
const date = today.getDate();
const month = today.getMonth(... | JavaScript | 0.000004 | @@ -400,17 +400,16 @@
ion' &&
-(
date !==
@@ -411,18 +411,18 @@
e !== 7
-%7C%7C
+&&
date !=
@@ -425,17 +425,16 @@
e !== 21
-)
&& !pro
|
8d0f979154506b2abe3fe8e414544650f929736e | disable the Normalize option on TopWord page | static/js/scripts_topword.js | static/js/scripts_topword.js | $(function() {
var totalGroups = 2, groupID;
$("#addOneGroup").click(function() {
var $block = $("#group-2");
var selected = [];
console.log($("#group-2 input:checked"));
$("#group-2 input:checked").each(function() {
selected.push($(this).attr('name'));
});
for(var i=0; i<selected.length;i++){
... | JavaScript | 0 | @@ -953,16 +953,18 @@
%0A%09%7D);%0A%0A%09
+//
document
@@ -1010,12 +1010,239 @@
= true;%0A
+%0A%09%09function updateTokenizeCheckbox() %7B%0A%09%09%09$('input%5Btype=radio%5D%5Bname=normalizeType%5D').attr('disabled', 'true');%0A%09%09%09$('input%5Btype=radio%5D%5Bname=normalizeType%5D').parent('label').addClass('d... |
5c3297776b009f63a34bd483024d8482d6883968 | remove duplicate line from merge | src/SplitPane.js | src/SplitPane.js | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import Pane from './Pane';
import Resizer from './Resizer';
import VendorPrefix from 'react-vendor-prefix';
export default React.createClass({
propTypes: {
primary: React.PropTypes.oneOf(['first', 'second']),
minSize: Rea... | JavaScript | 0.000005 | @@ -464,73 +464,8 @@
ol,%0A
- split: React.PropTypes.oneOf(%5B'vertical', 'horizontal'%5D)%0A
@@ -611,25 +611,24 @@
opTypes.func
-,
%0A %7D,%0A%0A
|
ea8fcde444cc0db51c1186252d64447ff5c497fd | fix build | app/containers/AccountProvider/sagas/index.js | app/containers/AccountProvider/sagas/index.js | import { takeLatest, fork, takeEvery } from 'redux-saga/effects';
import { WEB3_CONNECT, WEB3_METHOD_CALL, CONTRACT_METHOD_CALL, SET_AUTH, CONTRACT_TX_SENDED } from '../actions';
import { injectedWeb3ListenerSaga } from './injectedWeb3ListenerSaga';
import { accountLoginSaga } from './accountLoginSaga';
import { webs... | JavaScript | 0.000001 | @@ -746,52 +746,8 @@
ga';
-%0Aimport intercomSaga from './intercomSagas';
%0A%0Aex
|
c19e7d473f72a0b555c503ecd642e3ebea38a868 | add failing test for showFlat() | src/Util.test.js | src/Util.test.js | import { bitCount, adjustOctave, showFlat, prettyAccidental, SHARP, FLAT} from './Util';
test('bitCount(i)', () => {
expect(bitCount(0b0)).toEqual(0)
expect(bitCount(0b1)).toEqual(1)
expect(bitCount(0b01)).toEqual(1)
expect(bitCount(0b1111111111111)).toEqual(13)
expect(bitCount(0b1010101010101)).toEqual(7)
... | JavaScript | 0 | @@ -893,16 +893,55 @@
l('Bb')%0A
+ expect(showFlat('g#')).toEqual('ab')%0A
%7D)%0A%0Atest
|
26a871e3c4249e73531d297bd93064ddcb3f2648 | Update ember-i18n-cp-validations.js | app/initializers/ember-i18n-cp-validations.js | app/initializers/ember-i18n-cp-validations.js | import Ember from 'ember';
import ValidatorsMessages from '../validators/messages';
const {
Handlebars,
Logger:logger,
computed,
isPresent,
isEmpty,
inject,
get,
String: {
isHTMLSafe
}
} = Ember;
function unwrap(input) {
if ((typeof isHTMLSafe === 'function' && isHTMLSafe(input)) || (input ins... | JavaScript | 0 | @@ -552,23 +552,8 @@
ix',
- 'i18n.locale',
fun
|
955897ddf6330d8cfde0ef78846cdcaf941c5d05 | use sendChannel instead of reload | src/api/index.js | src/api/index.js | import 'whatwg-fetch'
import {isEqual} from 'lodash'
import Action from '../action'
import Codec from './codec'
export default function API() {
return ({getState, dispatch}) => (next) => {
const api = (() => {
const app = `${location.protocol}//${location.host}`
const server = __env.production ? ap... | JavaScript | 0 | @@ -1647,16 +1647,60 @@
ut(() =%3E
+ %7B%0A emit('reconnect')%0A
websock
@@ -1720,16 +1720,28 @@
handler)
+%0A %7D
, 5000)%0A
@@ -1790,36 +1790,8 @@
%3E %7B%0A
- location.reload()%0A
@@ -5031,24 +5031,96 @@
h (event) %7B%0A
+ case 'reconnect':%0A ... |
f30dabde7aa191a53fcd31e643e7e0f23f5ed624 | Fix typo [WAL-638] | app/scripts/components/cost-planning/utils.js | app/scripts/components/cost-planning/utils.js | // @ngInject
export default class CostPlanningFormatter {
constructor($filter) {
this.$filter = $filter;
}
formatFlavor(flavor) {
return `${flavor.name} (${this.$filter('formatFlavor')(flavor)})`;
}
formatPreset(preset) {
return `${preset.category} / ${preset.variant} ${preset.name}`;
}
for... | JavaScript | 0.001012 | @@ -489,12 +489,14 @@
tem.
-size
+flavor
);%0A
|
93f264aad5aa407d74e260b8d5d4f44e0ca769b8 | extend tests | tests/services/manager.spec.js | tests/services/manager.spec.js |
"use strict";
import {Manager} from '../../src/services/Manager';
import {Collection} from '../../src/classes/Collection';
import {Model} from '../../src/classes/Model';
describe('service: Manager', () => {
let mngr;
let http;
angular.module('tests').service('testsServiceManager', Manager);
before... | JavaScript | 0.000001 | @@ -1374,13 +1374,359 @@
%7D);%0A%0A
+ it('should not attempt to save pristine models', () =%3E %7B%0A let m = new Model();%0A m.$load(%7Bfoo: 'bar'%7D);%0A mngr.save(m);%0A %7D);%0A%0A it('should throw an exception when saving', () =%3E %7B%0A let m = new Model();%0A m.$... |
b27958349517c421ca4170bbccc6482c2ce682d3 | add license header | src/refactor.js | src/refactor.js | 'use strict';
var refactor = require('esrefactor');
var esprima = require('esprima');
var estraverse = require('estraverse');
function getIdentifiers(source) {
var identifiers = [];
var ast = esprima.parse(source, {range: true});
// Get the identifiers for each of the variables in the first function exp... | JavaScript | 0 | @@ -1,8 +1,625 @@
+/**%0A Copyright (c) 2016 Null Lines Pte Ltd%0A%0A Permission is hereby granted, free of charge, to any person obtaining a copy%0A of this software and associated documentation files (the %22Software%22), to deal%0A in the Software without restriction, including without limitation the rights%0A to us... |
6ed160942902ebf91dd4f3732b2982f06c8f3674 | declare loop variable in loop again | src/registry.js | src/registry.js | /*
* changes to previous patterns.register/scan mechanism
* - if you want initialised class, do it in init
* - init returns set of elements actually initialised
* - handle once within init
* - no turnstile anymore
* - set pattern.jquery_plugin if you want it
*/
define([
"jquery",
"./core/logger",
"./... | JavaScript | 0 | @@ -728,14 +728,8 @@
plog
-, name
;%0A%0A
@@ -866,32 +866,36 @@
for (
+var
name in registry
@@ -1850,16 +1850,20 @@
for (
+var
name in
|
701359834084a595a7783a0e802a85d9fa6a1eb9 | Add Missing Logger to Rehasher | src/rehasher.js | src/rehasher.js | var FileSystemHelper = require('./filesystem_helper');
var FileSystem = require('fs');
var Url = require('url');
var Util = require('./util');
var HeaderUtil = require('./header_util');
var CacheClient = require('./cache_client');
var Rehashser = function (options) {
this.logger = options.logger;
this.options = op... | JavaScript | 0 | @@ -223,16 +223,50 @@
lient');
+%0Avar Logger = require('./logger');
%0A%0Avar Re
@@ -316,22 +316,20 @@
r =
-options.l
+new L
ogger
+()
;%0A
|
0f16ee612863684fb8190ca8c542f52c107d3592 | Multiply depth by 18px | src/renderer.js | src/renderer.js | import { buildHTML, classNames, quoteattr } from './utils';
const defaultRowRenderer = (node) => {
const { id, label, children, state } = node;
const { depth, open, path, total, selected = false } = state;
const childrenLength = Object.keys(children).length;
const more = node.hasChildren();
let to... | JavaScript | 0.999544 | @@ -1123,9 +1123,9 @@
* 1
-2
+8
+ '
|
feeb957e780aaf46f7dc8d084d108fceae806acc | Fix typo in docs | src/response.js | src/response.js | import { lowerCaseObjectKeys, assign } from './utils'
const REGEXP_CONTENT_TYPE_JSON = /^application\/json/
/**
* @typedef Response
* @param {Request} originalRequest, for auth it hides the password
* @param {Integer} responseStatus
* @param {String} responseData, defaults to null
* @param {Object} responseHeade... | JavaScript | 0.001431 | @@ -3018,22 +3018,20 @@
rent raw
-Status
+Data
%0A *
|
3b3c1dbdfb1f74c80c3c4db333803fc918a8eedf | Document FrequencyMap with YUIDoc comments. | src/scripts/FrequencyMap.es6 | src/scripts/FrequencyMap.es6 | class FrequencyMap {
constructor () {
this.frequencies = [ ];
for (let i=0; i < 128; i++) {
this.frequencies.push(this.calculateFrequency(i));
}
}
getNoteIndex(octave, note) {
if (note >= 0 && note <= 12) {
return octave*12 + note;
}
... | JavaScript | 0 | @@ -1,340 +1,1213 @@
-class FrequencyMap %7B%0A%0A constructor () %7B%0A this.frequencies = %5B %5D;%0A for (let i=0; i %3C 128; i++) %7B%0A this.frequencies.push(this.calculateFrequency(i));%0A %7D%0A %7D%0A%0A getNoteIndex(octave, note) %7B%0A if (note %3E= 0 && note %3... |
53d6be8e7279b5c572fd77bf592120d80aa06363 | Fix bug when pushing event to events list | src/schedule.js | src/schedule.js | import {WeekDate} from './suppClasses'
export class Schedule{
/*
solution = { event1 : [eventOption choosen],
event2 : [eventOption choosen],
...
}
schedule = {
'Monday' : [eventOption1, eventOption2],
...
}
*/
constructor(solution) {
this.schedule = this.proc... | JavaScript | 0 | @@ -1692,17 +1692,23 @@
ts.push(
-)
+event);
%0A %09%7D%0A
|
a48b3c263b019f6f8efac0b4531cbd01be2ae668 | Use https URL for bing | src/bing/Bing.js | src/bing/Bing.js | /*
* MapEmAll is licensed under the conditions of the MIT License (MIT)
*
* Copyright (c) 2015-2016 Philip Stöhrer
* All rights reserved.
*
* See https://raw.githubusercontent.com/stophi-dev/MapEmAll/master/LICENSE for details.
*/
define(['JSLoader', 'bing/BingMap'], function (loader, BingMap) {
'use strict... | JavaScript | 0.000008 | @@ -1138,19 +1138,24 @@
le('http
+s
://
+ecn.
dev.virt
@@ -1200,16 +1200,20 @@
x?v=7.0&
+s=1&
onscript
|
39a80743adc8b3fd04a58445c449b6ba242b1120 | refresh page after logout | stores/AccountStore/index.js | stores/AccountStore/index.js | /*
* AccountStore store
*
*/
import { types as t, getParent } from 'mobx-state-tree'
import R from 'ramda'
import store from 'store'
import { markStates, makeDebugger, stripMobx, BStore } from '../../utils'
import { User, EmptyUser } from '../SharedModel'
/* eslint-disable no-unused-vars */
const debug = makeDebug... | JavaScript | 0.000001 | @@ -139,16 +139,18 @@
import %7B
+%0A
markSta
@@ -153,16 +153,18 @@
kStates,
+%0A
makeDeb
@@ -169,16 +169,18 @@
ebugger,
+%0A
stripMo
@@ -186,16 +186,29 @@
obx,
+%0A
BStore
-
+,%0A Global,%0A
%7D fr
@@ -1056,137 +1056,27 @@
-console.log('AccountStore get user: ', user)%0A if (user) %7B%0A ... |
4f61b1e4b70bcd804fe98abddc84b46622b0e085 | Make MAX_CHARACTERS configurable | usability/limit_output/main.js | usability/limit_output/main.js | // Restrict output in a codecell to a maximum length
define([
'base/js/namespace',
'jquery',
'notebook/js/outputarea',
'base/js/dialog',
'notebook/js/codecell',
'services/config'
], function(IPython, $, oa, dialog, cc, config) {
"use strict";
var config = new configmod.ConfigSection('l... | JavaScript | 0.998637 | @@ -196,16 +196,37 @@
/config'
+,%0A 'base/js/utils'
%0A%5D, func
@@ -264,16 +264,26 @@
, config
+mod, utils
) %7B%0A
@@ -296,16 +296,167 @@
trict%22;%0A
+ var MAX_CHARACTERS = 10000; // maximum number of characters the output area is allowed to print%0A%0A var base_url = utils.get_body_data(%22baseU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.