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 |
|---|---|---|---|---|---|---|---|
86c970bac0b251292b826107efde2c5d403b457a | Read FAQ wasn't working with a URL on the same site | app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 | app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 | import { createWidget, applyDecorators } from 'discourse/widgets/widget';
import { h } from 'virtual-dom';
import DiscourseURL from 'discourse/lib/url';
import { ajax } from 'discourse/lib/ajax';
createWidget('priority-faq-link', {
tagName: 'a.faq-priority',
buildAttributes(attrs) {
return { href: attrs.href ... | JavaScript | 0 | @@ -252,19 +252,31 @@
priority
+.widget-link
',%0A
-
%0A build
@@ -451,24 +451,48 @@
click(e) %7B%0A
+ e.preventDefault();%0A
if (this
@@ -540,34 +540,8 @@
) %7B%0A
- e.preventDefault();%0A
@@ -655,23 +655,16 @@
-return
Discours
@@ -715,24 +715,97 @@
;%0A %7D);%0A
+ %7D el... |
48221b89d56412d8e228728a26e8705525053c58 | convert SFP to functional components | template.js | template.js | 'use static'
module.exports = (name, path) => `<template>
<span class="mdi mdi-${name}">
<svg
:width="width"
:height="height"
:viewBox="viewBox"
:xmlns="xmlns"
>
<title>MDI ${name}</title>
<path d="${path}" />
</svg>
</span>
</template>
<script>
export default {
n... | JavaScript | 0.000467 | @@ -50,18 +50,29 @@
template
+ functional
%3E%0A
-
%3Cspan
@@ -119,16 +119,22 @@
:width=%22
+props.
width%22%0A
@@ -147,16 +147,22 @@
height=%22
+props.
height%22%0A
@@ -177,16 +177,22 @@
iewBox=%22
+props.
viewBox%22
@@ -206,16 +206,22 @@
:xmlns=%22
+props.
xmlns%22%0A
|
883db610667b51810c73be130b2d7d9d58a18832 | Comment update | mb-logging-api/model/model.js | mb-logging-api/model/model.js | module.exports = (function() {
var express = require('express');
var app = express();
var mongoose = require('mongoose');
var mb_config = rootRequire('config/mb_config.json');
if (app.get('env') == 'development' || app.get('env') == 'test') {
// To output objects for debugging
// console.log("/pr... | JavaScript | 0 | @@ -1078,24 +1078,22 @@
ure the
-database
+server
is runn
|
8cf0baa467a6dfbd92e90bd6bd01d8f835ea8860 | Add canUpgrade getter | src/entities/Player.js | src/entities/Player.js | class Player {
static getId() {
// Example ID: _nHpPQT_l0zYRzjUAABL
var res = "";
for (var i = 0; i < Player.ID_LEN; ++i) {
res += Player.ID_CHARS[Math.floor(Math.random() * Player.ID_CHARS_LEN)];
}
return res;
}
getData() {
return [
this.id,
this.sid,
this.name,
this.x,
this.y,
thi... | JavaScript | 0.000001 | @@ -641,16 +641,75 @@
ng);%0A%09%7D%0A
+%09get canUpgrade() %7B%0A%09%09return (this.upgradePoints %3E= 0);%0A%09%7D%0A
%09gather(
|
dee61916c84311a3c0803f00d426c3ec72150094 | Fix LineClamp (issue #161) | src/helpers.js | src/helpers.js | module.exports = [
{
type: 'helper',
name: 'Line clamp',
prefix: 'LineClamp',
declaration: {
'-webkit-line-clamp': '$0',
'max-height': '$1'
},
rules: {
'[class*=LineClamp]': {
'display': '-webkit-box',
... | JavaScript | 0 | @@ -390,32 +390,194 @@
%0A %7D,%0A
+ /**%0A * 1. fixes WebKit bug that displays an extra line when the pseudo-element%0A * is by itself on a next line%0A */%0A
'a%5Bc
@@ -672,32 +672,74 @@
'-webkit-box',%0A
+ 'display': 'flex', /* 1... |
4ba3a290b888593c76f7d7221636af594724c7e1 | change these alerts so as not to confuse ourselves when grepping for alerts to remove debugging code. :-) | lib/OpenLayers/Events.js | lib/OpenLayers/Events.js | /* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the full
* text of the license. */
/**
* @class
*/
OpenLayers.Events = Class.create();
OpenLayers.Events.prototype = {
/** @final @type Array: supported events */
BR... | JavaScript | 0.000004 | @@ -3508,22 +3508,26 @@
*
-a
le
-rt(
+ftStr =
%22Left: %22
@@ -3538,17 +3538,16 @@
his.left
-)
;%0A *
@@ -3602,14 +3602,20 @@
-alert(
+centerStr =
%22Cen
@@ -3645,17 +3645,16 @@
LonLat()
-)
;%0A *
|
68fc1e2bed0f2f1f1cd92ee07bef44e1bf8774fa | Fix register new fields in content manager | packages/strapi-plugin-content-manager/admin/src/components/Inputs/index.js | packages/strapi-plugin-content-manager/admin/src/components/Inputs/index.js | import React, { memo, useMemo } from 'react';
import PropTypes from 'prop-types';
import { get, isEmpty, omit, toLower } from 'lodash';
import { FormattedMessage } from 'react-intl';
import { Inputs as InputsIndex } from '@buffetjs/custom';
import { useStrapi } from 'strapi-helper-plugin';
import useDataManager from '... | JavaScript | 0 | @@ -1264,32 +1264,40 @@
lt:%0A return
+ type %7C%7C
'text';%0A %7D%0A%7D;%0A
|
81d3a477b0e42ab6e2b4aa5a5a4afd971ea37563 | make isAdmin true in dev environment | src/pages/claimCollective.js | src/pages/claimCollective.js | import React, { Fragment } from 'react';
import { graphql, compose } from 'react-apollo';
import gql from 'graphql-tag';
import { FormattedMessage } from 'react-intl';
import fetch from 'node-fetch';
import withData from '../lib/withData';
import withIntl from '../lib/withIntl';
import withLoggedInUser from '../lib/wi... | JavaScript | 0.001233 | @@ -2982,20 +2982,54 @@
min) %7C%7C
-true
+process.env.NODE_ENV === 'development'
;%0A%0A r
|
19a634b712203a041bb92f03ee957de8af1fe9af | Use new index alias. | lib/route.js | lib/route.js | 'use strict';
const path = require('path');
const router = require('koa-router');
const Joi = require('joi');
const validateNpmPackageName = require('validate-npm-package-name');
const get = require('lodash/get');
const badgeVault = require('./util/badgeVault');
function validateJoiSchema(schema, input) {
const v... | JavaScript | 0 | @@ -916,12 +916,15 @@
pms-
-read
+current
',%0A
|
80c2374e3be9ffec1005fd40588cd35795597d73 | fix date picker bug on insert form with multiple date pickers | imports/ui/InsertForm/InsertFormDateInput.js | imports/ui/InsertForm/InsertFormDateInput.js | Template.InsertFormDateInput.helpers({});
Template.InsertFormDateInput.onCreated(() => {
const template = Template.instance();
const data = Template.currentData().data;
template.key = data.key;
template.format = data.format;
template.insertForm = data.parentInstance;
if (data.defaultValue != ... | JavaScript | 0 | @@ -835,16 +835,25 @@
ueRaw =
+template.
$('.date
|
9255123951d1edc14d2c65b4ef176be7ecbd2e8e | Send a response back to post to prevent request queue/timeout issue. | pi433HomeAuto.js | pi433HomeAuto.js | /**
* Main nodeJS requirements
*/
var settings = require('./settings.js'), // Change this to setup app
cronSchedule = require('./cron.js'),
flash = require('connect-flash'),
express = require('express'),
passport = require('passport'),
util = require('util'),
GoogleStrategy = require('passport-go... | JavaScript | 0 | @@ -4040,16 +4040,37 @@
te);%0D%0A%09%7D
+ %0D%0A%09res.end(%22Ok%22);%0D%0A%09
%0D%0A %7D%0D%0A)
|
040edb783a54705e2c0269af69d53a181b4d5a56 | Fix number to string | src/es2015/timeline.js | src/es2015/timeline.js | let request = require("request");
let hubotSlack = require("hubot-slack");
let SlackTextMessage = hubotSlack.SlackTextMessage;
let timelineChannel = process.env.TIMELINECHANNEL || "timeline";
let linkNames = process.env.LINK_NAMES;
if (linkNames !== 0 && linkNames !== 1) {
linkNames = 0;
};
module.exports ... | JavaScript | 0.999999 | @@ -251,17 +251,19 @@
mes !==
-0
+%220%22
&& link
@@ -272,17 +272,19 @@
mes !==
-1
+%221%22
) %7B%0A
|
8cf792f0f15e4062fa891f6544fb19582e730ab8 | print port when multiplex server starts (#98) | plugin/multiplex/index.js | plugin/multiplex/index.js | var express = require('express');
var fs = require('fs');
var io = require('socket.io');
var crypto = require('crypto');
var app = express.createServer();
var staticDir = express.static;
io = io.listen(app);
var opts = {
port: 1948,
baseDir : __dirname + '/../../'
};
io.sockets.on('connection', functio... | JavaScript | 0 | @@ -1187,8 +1187,179 @@
null);%0A
+%0Avar brown = '%5C033%5B33m',%0A%09green = '%5C033%5B32m',%0A%09reset = '%5C033%5B0m';%0A%0Aconsole.log( brown + %22reveal.js:%22 + reset + %22 Multiplex running on port %22 + green + opts.port + reset );
|
4ef12abd1f68559493e173f9e5ab38b39d9e6a2a | Fix typo in ImportSpecifier branch of Scope scanning code. | lib/scope.js | lib/scope.js | var assert = require("assert");
var types = require("./types");
var Type = types.Type;
var namedTypes = types.namedTypes;
var Node = namedTypes.Node;
var isArray = types.builtInTypes.array;
var hasOwn = Object.prototype.hasOwnProperty;
function Scope(path, parentScope) {
assert.ok(this instanceof Scope);
asser... | JavaScript | 0 | @@ -3262,16 +3262,27 @@
Pattern(
+%0A
node.nam
@@ -3318,16 +3318,45 @@
et(%22id%22)
+,%0A bindings%0A
);%0A%0A
|
2e31e924b5c64686cf8639ec75eea2d6a5f8457b | update ip2region.js | binding/nodejs/ip2region.js | binding/nodejs/ip2region.js | /**
* ip2region client for nodejs
*
* project: https://github.com/lionsoul2016/ip2region
*
* @author dongyado<dongyado@gmail.com>
* */
var ip2r = {};
ip2r.db_file = null;
exports.setDbFile = function(path)
{
ip2r.db_file = path;
}
exports.getDbFile = function(path)
{
return ip2r.db_file;
}
exports.bi... | JavaScript | 0.000002 | @@ -143,31 +143,84 @@
var
-ip2r = %7B%7D;%0Aip2r.db_file
+fs = require('fs');%0Avar ip2r = %7B%7D;%0Aip2r.db_file = null;%0Aip2r.db_fd
= n
@@ -288,16 +288,58 @@
= path;%0A
+ ip2r.db_fd = fs.open(ip2r.db_file);%0A
%7D%0A%0Aexpor
|
53612865b85de21aaad2488370351d7caef0c60a | Add warning support to notification, refactor | lib/notification.js | lib/notification.js | import Bluebird from 'bluebird';
// FIXME: assign this globally for axios
global.Promise = Bluebird;
import axios from 'axios';
class Notification {
error(resource, message) {
const data = `${resource.title}: ${message}`;
console.error(data);
return Bluebird.resolve();
}
}
export default Notification... | JavaScript | 0 | @@ -127,345 +127,139 @@
';%0A%0A
-class Notification %7B%0A error(resource, message) %7B%0A const data = %60$%7Bresource.title%7D: $%7Bmessage%7D%60;%0A console.error(data);%0A return Bluebird.resolve();%0A %7D%0A%7D%0A%0Aexport default Notification;%0A%0Aclass SlackNotification %7B%0A constructor(webhook_... |
e799076415c0549e2f72ab5639c4de006257d9a8 | Disable dragging for fullcalendar | src/patterns/fullcalendar.js | src/patterns/fullcalendar.js | define([
'jquery',
'../core/logging',
'../utils',
"../registry",
'jquery_fullcalendar'
], function($, logging, utils, registry) {
var log = logging.getLogger('fullcalendar');
var fullcalendar = {
name: "fullcalendar",
trigger: ".pat-fullcalendar",
init: function($ca... | JavaScript | 0.000001 | @@ -2278,16 +2278,57 @@
endar(%7B%0A
+ disableDragging: 'true',%0A
|
a5dd51e18cce21548656bde82bd4ef22d822f894 | update docblocks | src/factory/Factory.js | src/factory/Factory.js | import RawMap from './RawMap';
import TimeoutMap from './TimeoutMap';
import TriggerMap from './TriggerMap';
import AsyncMap from './AsyncMap';
import Sequence from '../chains/Sequence';
import Parallel from '../chains/Parallel';
import Loop from '../chains/Loop';
import Limiter from '../chains/Limiter';
/**
* Tasks... | JavaScript | 0 | @@ -638,13 +638,18 @@
am %7B
-a
+A
rray
+%3CMap%3E
%7D ma
|
479b7485cc89c36a67fe987c02304baffe376fbc | Fix Twitter tests | tests/acceptance/twitter-test.js | tests/acceptance/twitter-test.js | import { test } from 'qunit';
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance';
import Ember from 'ember';
moduleForAcceptance('Acceptance | twitter');
test('share', function(assert) {
visit('/twitter/share');
andThen(function() {
assert.equal(currentPath(), 'twitter.share');
... | JavaScript | 0.000509 | @@ -880,34 +880,38 @@
F%252F
-example.com%252Fshare-things
+plyfe.github.io%252Fember-social
&tex
|
d82880ca6ad81ee0b3f7026dd1deb345271da301 | add comment about why we're doing dumb things with chromedriver | app/chrome_android.js | app/chrome_android.js | "use strict";
var Android = require('./android').Android
, _ = require('underscore')
, proxyTo = require('./device').proxyTo
, logger = require('../logger').get('appium')
, exec = require('child_process').exec
, spawn = require('child_process').spawn
, async = require('async')
, through = require('throug... | JavaScript | 0 | @@ -1943,170 +1943,8 @@
));%0A
- if (!alreadyReturned && data.indexOf(%22Started ChromeDriver%22) !== -1) %7B%0A this.chromedriverStarted = true;%0A alreadyReturned = true;%0A cb();%0A %7D%0A
%7D)
@@ -2345,176 +2345,222 @@
%0A%0A
-setTimeout(function() %7B%0A if (!alreadyReturned) %7B%0A ... |
7fcdf7b1400ef814c4ba669686c2e456cb03ec2d | Add accepted .gif files | lib/components/mailer.js | lib/components/mailer.js | 'use babel';
import { fn } from './helpers';
import { File } from 'atom';
import mailconfig from '../settings/mailconfig.json';
let Builder = null;
export default class Mailer {
constructor() {
this.config = mailconfig;
this.settings = atom.config.get('palladium');
this.parser = new win... | JavaScript | 0 | @@ -3967,16 +3967,24 @@
, '.png'
+, '.gif'
%5D;%0A%0A
|
06c65c8d8c79e9d1c57fb89f29c12b580b470c47 | Use wire instead of async for control flow in parser | lib/parser/index.js | lib/parser/index.js | 'use strict';
var async = require('async');
var MarkdownIt = require('markdown-it');
var _ = require('lodash');
var wire = require('event-wire');
var $ = require('./cheequery');
// Get an amount of non-space characters in html tree
//
function get_text_length(node) {
var length = 0;
... | JavaScript | 0.000001 | @@ -12,43 +12,8 @@
';%0A%0A
-var async = require('async');%0A
var
@@ -45,24 +45,24 @@
kdown-it');%0A
+
var _
@@ -996,16 +996,26 @@
er() %7B%0A
+ var bus =
this.bu
@@ -1023,24 +1023,496 @@
= wire();%0A%0A
+ this.bus.before('parse', function emit_sanitize(data, callback) %7B%0A // Cleanup AST f... |
1bf4c669df0eff2b6499d46a1785db886f9b8f95 | fix damage issue | app/classes/Player.js | app/classes/Player.js | import Prefab from './entityPrefab'
import Weapon from './Weapon'
import armorProperties from '../properties/armorProperties'
import playerProperties from '../properties/playerProperties'
import { socket } from '../sockets'
import HealthBar from '../states/utils/HealthBar.js'
/* global StackQuest, Phaser */
// clie... | JavaScript | 0.000001 | @@ -1403,71 +1403,8 @@
Key%0A
- this.stats.attack = this.weapon.attack + this.stats.attack%0A
|
445288021e6232c84b8b818bfb6725d6b49689ad | Add some monome related changes | lib/cracked/overrides.js | lib/cracked/overrides.js | //This file has modules that override the main library
/**
* Sampler - sound file player
*
* [See more sampler examples](../../examples/sampler.html)
*
* @plugin
* @param {Object} [userParams] map of optional values
* @param {Number} [userParams.speed=1]
* @param {Number} [userParams.start=1]
* @param {Number... | JavaScript | 0 | @@ -762,21 +762,8 @@
low%0A
- * @param cb%0A
*/%0A
|
5bf2d0ca6c5a927fb77d5707ebb2d9d0efd21ff6 | Print ID of newly added request | plugins/request_q.dbot.js | plugins/request_q.dbot.js | var api;
var storage;
function addRequestToQEvent(channelID, request) {
var requests = storage.getItem(channelID + "_requests") || [];
requests.push(request);
storage.setItem(channelID + "_requests", requests);
api.Messages.send(channelID, "Added request '" + request + "'");
}
function handleCmd(data)... | JavaScript | 0 | @@ -2798,17 +2798,44 @@
%22) + %22'
-%22
+ with ID %22 + requests.length
);%0A %7D
@@ -2923,17 +2923,17 @@
ion: %221.
-0
+1
.0%22,%0A
|
8222ce7405bf4299b83760f109cec4a292ea34dd | Fix #2616 Remove id="show-detail" | frontend/src/app/components/ExperimentRowCard.js | frontend/src/app/components/ExperimentRowCard.js | // @flow
import classnames from 'classnames';
import { Localized } from 'fluent-react/compat';
import React from 'react';
import LocalizedHtml from '../components/LocalizedHtml';
import { buildSurveyURL, experimentL10nId } from '../lib/utils';
import type { InstalledExperiments } from '../reducers/addon';
import E... | JavaScript | 0 | @@ -1346,25 +1346,8 @@
%3Ca
- id=%22show-detail%22
hre
|
d731c47034926af2b9a825d98dd231f3fc1aa32c | update card shadow color | app/compoment/Card.js | app/compoment/Card.js | const React = require('react');
const ReactNative = require('react-native');
const {
Image,
Text,
View,
StyleSheet,
Dimensions,
TouchableHighlight,
Alert,
Button,
Platform,
TouchableOpacity,
} = ReactNative;
var {height, width} = Dimensions.get('window');
const iconPath = "../icon";
type Props = {... | JavaScript | 0 | @@ -3089,14 +3089,14 @@
: %22#
-000000
+1A237E
%22,%0A
@@ -3119,9 +3119,9 @@
: 0.
-8
+9
,%0A
@@ -3173,17 +3173,17 @@
height:
-1
+2
,%0A
@@ -3188,16 +3188,17 @@
width:
+
1%0A %7D,
|
53da76fa33189302b2610c2d5b9ddae613d232a8 | fix for building vendor styles | gulp/tasks/bundle.js | gulp/tasks/bundle.js | 'use strict';
var gulp = require('gulp');
var inject = require('gulp-inject');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var watchify = require('watchify');
var bowerFiles = require('main-bower-files');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var... | JavaScript | 0 | @@ -1424,16 +1424,54 @@
erFiles(
+_.merge(%7B%0A filter: /.+%5C.css$/%0A %7D,
config.b
@@ -1481,16 +1481,17 @@
rFiles))
+)
%0A .pi
|
422481e644d1a8f1ee6eb718ee5bd6ca945e7e42 | Fix spaces | lib/css-syntax-error.es6 | lib/css-syntax-error.es6 | import supportsColor from 'supports-color';
import chalk from 'chalk';
import terminalHighlight from './terminal-highlight';
/**
* The CSS parser throws this error for broken CSS.
*
* Custom parsers can throw this error for broken custom syntax using
* the {@link Node#error} method.
*
* PostCSS will use... | JavaScript | 0.999946 | @@ -1971,18 +1971,16 @@
is.name
-
= 'CssSy
|
7ae053ff30370e577ea76b8958e7a6f74aa446dd | add plugin | lib/plugin/index.js | lib/plugin/index.js | var cp = require('./child-process');
exports.fork = cp.fork;
function loadPlugin(pluginPath, ruleValue, callback) {
cp.fork({
main: pluginPath,
ruleValue: ruleValue
}, callback);
}
exports.loadPlugin = loadPlugin;
| JavaScript | 0.000001 | @@ -35,33 +35,8 @@
);%0A%0A
-exports.fork = cp.fork;%0A%0A
func
@@ -66,19 +66,8 @@
ath,
- ruleValue,
cal
@@ -92,12 +92,18 @@
%7B%0A%09%09
-main
+pluginPath
: pl
@@ -114,32 +114,8 @@
Path
-,%0A%09%09ruleValue: ruleValue
%0A%09%7D,
|
fd797d2ab3d0226ae6003f3ea06135bf3a188169 | Fix PinguinRadio test | tests/connectors/pinguinradio.js | tests/connectors/pinguinradio.js | 'use strict';
module.exports = function(driver, connectorSpec) {
connectorSpec.shouldBehaveLikeMusicSite(driver, {
url: 'http://www.pinguinplayer.com/'
});
};
| JavaScript | 0 | @@ -126,33 +126,49 @@
http
+s
://
-www.
pinguin
-player.com/
+radio.com/player/pinguin-radio
'%0A%09%7D
|
2867995ad602416ad13fae265dfc71282307b6a3 | Disable p2p exploration in HTTP mode | test/app.js | test/app.js | var assert = require('assert');
var expect = require('chai').expect;
var Fabric = require('../');
describe('App', function () {
it('should expose a constructor', function () {
assert.equal(typeof Fabric.App, 'function');
});
it('should create an application smoothly', async function () {
var app = new... | JavaScript | 0 | @@ -651,24 +651,26 @@
racle);%0A
+//
await app._e
|
517b1c2b7577f1192a64c9bf98e4699a8abe55bb | Test token creation. | lib/token.js | lib/token.js | 'use strict';
/**
* Token generation.
* (C) 2013 Alex Fernández.
*/
// requires
require('prototypes');
var Log = require('log');
var crypto = require('crypto');
var testing = require('testing');
// globals
var log = new Log('info');
// constants
var SHORT_LENGTH = 4;
/**
* Generate a random token in base 36 w... | JavaScript | 0 | @@ -268,16 +268,39 @@
TH = 4;%0A
+var TOKEN_LENGTH = 16;%0A
%0A%0A/**%0A *
@@ -399,41 +399,115 @@
var
-start = generateShortRandomId() +
+ids = Math.floor(TOKEN_LENGTH / SHORT_LENGTH);%0A%09var token = '';%0A%09for (var i = 0; i %3C ids; i++)%0A%09%7B%0A%09%09token+=
gen
@@ -528,24 +528,27 @@
omId();%0A
+%09%7D%... |
78ca6ac6ad2d27176b4c52190cca532b8e4c8da5 | fix quotes | web/static/js/carto/config/base.js | web/static/js/carto/config/base.js | /**
* @requires config.js
* @requires OpenLayers/Control/Navigation.js
* @requires OpenLayers/Control/KeyboardDefaults.js
* @requires OpenLayers/Control/PanZoomBar.js
* @requires OpenLayers/Control/ArgParser.js
* @requires OpenLayers/Control/Attribution.js
* @requires OpenLayers/Control/ScaleLine.js
* @requires... | JavaScript | 0.000001 | @@ -901,17 +901,17 @@
bution:
-%22
+'
©IG
@@ -964,17 +964,17 @@
_blank%22%3E
-%22
+'
+%0A
@@ -989,17 +989,17 @@
-%22
+'
%3Cimg src
@@ -1079,17 +1079,17 @@
gp.gif%22%3E
-%22
+'
+%0A
@@ -1104,17 +1104,17 @@
-%22
+'
%3C/a%3E %3Ca
@@ -1180,17 +1180,17 @@
UF.pdf%22
-%22
+'
... |
a17dbacc366f4a752248828d55d06ca78bf5e3f0 | remove unused consts | lib/parser/sequence.js | lib/parser/sequence.js | var List = require('../utils/list');
var cmpChar = require('../scanner').cmpChar;
var TYPE = require('../scanner').TYPE;
var WHITESPACE = TYPE.Whitespace;
var IDENTIFIER = TYPE.Identifier;
var STRING = TYPE.String;
var NUMBER = TYPE.Number;
var COMMENT = TYPE.Comment;
var EXCLAMATIONMARK = TYPE.ExclamationMark;
var NU... | JavaScript | 0.000002 | @@ -267,52 +267,8 @@
nt;%0A
-var EXCLAMATIONMARK = TYPE.ExclamationMark;%0A
var
@@ -345,54 +345,8 @@
is;%0A
-var RIGHTPARENTHESIS = TYPE.RightParenthesis;%0A
var
@@ -499,40 +499,8 @@
gn;%0A
-var SEMICOLON = TYPE.Semicolon;%0A
var
@@ -547,56 +547,8 @@
et;%0A
-var RIGHTCURLYBRACKET = TYPE.RightCurlyBracket;%0A
... |
873784337837f33878a713e757a11413b36e0371 | Remove console statement and fix test so it passes. | backend/server/schema/sample.spec.js | backend/server/schema/sample.spec.js | /* jshint expr: true */
//var model = require('../mocks/model');
var model = require('../model-loader')(true);
var schema = require('./index')(model);
var should = require('should');
var atf = require('../specs/atf');
var util = require('util');
describe('Sample Schema', function() {
'use strict';
it('should... | JavaScript | 0 | @@ -22,10 +22,8 @@
*/%0A%0A
-//
var
@@ -61,54 +61,8 @@
');%0A
-var model = require('../model-loader')(true);%0A
var
@@ -2073,42 +2073,8 @@
r);%0A
- console.dir(err);%0A
@@ -2875,19 +2875,19 @@
e.act
-ion
+ual
.should.
@@ -2887,37 +2887,37 @@
should.eql('does
- not
+-not-
exist');%0A ... |
ca10bc788aa85d6f7f1ef45b21f831823e66fb01 | fix error reported by `make doc` | lib/token.js | lib/token.js | // Token class
'use strict';
/**
* class Token
**/
/**
* new Token(type, tag, nesting)
*
* Create new token and fill passed properties.
**/
function Token(type, tag, nesting) {
/**
* Token#type -> String
*
* Type of the token (string, e.g. "paragraph_open")
**/
this.type = type;
/**
... | JavaScript | 0 | @@ -3774,16 +3774,17 @@
ering.%0A
+*
*/%0A%0AToke
|
b869c05bb126c399e1e2178ff88cefc3e83829e9 | Integrate test case with new version of inter-procedural dataflow graph | tests/dujs/analyzedcfgbuilder.js | tests/dujs/analyzedcfgbuilder.js | /**
* Created by ChengFuLin on 2015/5/27.
*/
var builder = require('../../lib/dujs').analyzedCFGBuilder,
CFGExt = require('../../lib/dujs').CFGExt,
ScopeTree = require('../../lib/dujs').ScopeTree,
should = require('should');
describe('AnalyzedCFGBuilder', function () {
"use strict";
describe('Pri... | JavaScript | 0.000001 | @@ -1228,25 +1228,145 @@
-should.not.exist(
+/// original call site is modified to be Call Node%0A should.exist(connectedCFG%5B2%5D%5B1%5D._testonly_._astNode);%0A
conn
@@ -1391,32 +1391,65 @@
stonly_._astNode
+.type.should.eql('CallExpression'
);%0A
@@ -1685,71 +168... |
7202e8c2ba101a21ef15f7c6b64e4c806bfdebe6 | Fix Zotero.CreatorTypes.getTypesForItemType in connector | chrome/content/zotero/xpcom/connector/cachedTypes.js | chrome/content/zotero/xpcom/connector/cachedTypes.js | /*
***** BEGIN LICENSE BLOCK *****
Copyright © 2011 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | JavaScript | 0 | @@ -3584,14 +3584,14 @@
ypes
-.push(
+%5Bi%5D =
%7B%22id
@@ -3654,17 +3654,16 @@
name */%7D
-)
;%0A%09%09%09%09%7D%0A
|
b5c7fe1a4cf7556478c0965547400e2cf02486b3 | Update PostManager docs. | src/posts/js/post.service.js | src/posts/js/post.service.js | /*global angular*/
(function (app) {
"use strict";
/**
* @ngdoc service
* @name post.service:Post
*
* @description
* # post model
*
* The post model
*
* @property {string} title the post title.
*/
app.factory('Post', function () {
return function Po... | JavaScript | 0 | @@ -500,133 +500,77 @@
* @
-param %7Bobject%7D $http http provider%0A * @param %7Bobject%7D $q promise provider%0A * @param %7Bconstructor%7D Post the post model
+requires $http%0A * @requires $q%0A * @requires post.service:Post
%0A
|
e947a98c6f31cae99ff62ccf0d2c37fd45e787a3 | Clean up WIP | htmltemplate/js/diagram.js | htmltemplate/js/diagram.js | //import {ignoreEntities} from './config.js'
const ignoreEntities = ["String", "Int", "Double", "Float", "Bool", "CGPoint", "CGSize",
"NSObject", "AnyObject", "Error", "Date",
"class","Codable", "DeCodable", "Encodable", "Equatable","CodingKeys"];
var renderedEntities = [];
var templates = {
case: undefined,
pro... | JavaScript | 0.000003 | @@ -3569,19 +3569,16 @@
%7D%0A %7D;%0A%0A
-%0A%0A%0A
networ
|
b4c8af4200b1cccf800b7ea6fc8b66bd99a37ab5 | add iview build | build/webpack.base.conf.js | build/webpack.base.conf.js | var path = require('path')
var utils = require('./utils')
var config = require('../config')
var vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
entry: {
app: './src/main.js'
},
output: {
path: config.build.assetsRoot,
... | JavaScript | 0 | @@ -1748,24 +1748,180 @@
%7D%0A %7D
+,%0A // iview %E7%BB%84%E4%BB%B6%E4%BB%A3%E7%A0%81%E5%A4%84%E7%90%86%0A %7B test: /iview.src.*?js$/, loader: 'babel-loader' %7D,%0A %7B test: /%5C.js$/, loader: 'babel-loader', exclude: /node_modules/ %7D%0A
%0A %5D%0A %7D%0A%7D
|
f12f759b108a98fada10cc42093e451be8a6f98b | enable api-jarvis debug mode | app/containers/App.js | app/containers/App.js | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { setDebugMode } from 'api-jarvis';
if (process.env.NODE_ENV !== 'production') setDebugMode(true);
// ====================================... | JavaScript | 0 | @@ -214,51 +214,8 @@
';%0A%0A
-if (process.env.NODE_ENV !== 'production')
setD
|
01ebbc9812de5fde21082aded6deea5684680f8f | Use "trace" instead of "silly" for bunyan compliance | lib/trace.js | lib/trace.js | 'use strict';
var format = require('util').format;
var Trace = function (logger) {
this.enabled = !!logger;
this.logger = logger;
};
function address(context) {
var remoteAddress = '(unknown)';
if (context.socket) {
if (context.socket.remoteAddress) {
remoteAddress = context.socket.remoteAddress + ':' + con... | JavaScript | 0 | @@ -44,16 +44,42 @@
.format;
+%0Avar url = require('url');
%0A%0Avar Tr
@@ -1250,16 +1250,83 @@
ring)%22;%0A
+%09%09%7D else if (value instanceof url.Url) %7B%0A%09%09%09return value.format();%0A
%09%09%7D%0A%09%09re
@@ -1614,13 +1614,13 @@
ger.
-silly
+trace
(%0A%09%09
@@ -2927,16 +2927,16 @@
');%0A%7D;%0A%0A
-... |
76b28b7a3a66dde81ea712b21ab376919bafd80f | Fix IE `CustomEvent` related bug | src/js/base.js | src/js/base.js | /*globals CustomEvent */
(function() {
'use strict';
var base = window.base = window.base || {};
/**
* Like `document.querySelectorAll`
*
* @param {string} selector
* @param {HTMLElement=} $node
* @return {NodeList}
*/
base.$all = function(selector, $node) {
$nod... | JavaScript | 0.000001 | @@ -1966,23 +1966,23 @@
if (
-window.
+typeof
CustomEv
@@ -1984,16 +1984,31 @@
tomEvent
+ === 'function'
) %7B%0A
|
9ac585c0dfbbe688ddb324a5eaa86ae7977dade0 | Simplify Entity.toString for now | js/core/world.js | js/core/world.js | /*
* Application state
*/
var PEG = require("./peg.js")
var Query = require("./query.js")
var fs = require("fs")
var inspect = require("eyes").inspector()
var World = {
parser: PEG.buildParser(" \
start = entity* \
entity = (' ' / '\\n')* e:[^;\\n]+ (';' / '\\n' / !.) { return e.join('') } \
"),
comp... | JavaScript | 0.000001 | @@ -1408,58 +1408,8 @@
turn
- typeof obj%5Bk%5D == 'string' ? k +%22='%22+obj%5Bk%5D +%22'%22 :
k %7D
@@ -1427,16 +1427,23 @@
+ %22%7D%22;%0A
+ %7D,%0A
%7D%0A
|
beb196348853845fdd160c80086f45cd22fa0bd4 | Increase timeout in guarantee test. | test/dom.js | test/dom.js | 'use strict'
var test = require('tape')
test('NGN.DOM', function (t) {
t.ok(typeof NGN.DOM.svg.update === 'function', 'SVG update exists.')
var p = document.createElement('span')
var hr = document.createElement('hr')
var p2 = document.createElement('p')
var sel = '#test1'
var sel2 = 'body > span:first-of... | JavaScript | 0 | @@ -1768,16 +1768,37 @@
rantee',
+ %7B%0A timeout: 5000%0A%7D,
functio
@@ -2877,19 +2877,16 @@
00)%0A%7D)%0A%0A
-//
test('NG
@@ -2921,19 +2921,16 @@
n (t) %7B%0A
-//
var sr
@@ -3035,14 +3035,9 @@
/%3E'%0A
-//%0A//
+%0A
se
@@ -3055,27 +3055,24 @@
nction () %7B%0A
-//
NGN.DOM.
@@ -3108,19 +3108,16... |
6c73516a15967a3fa13c62cdac695129d8c5b387 | change model to post | app/controller/api.js | app/controller/api.js | (function() {
function secure(fn) {
if(request.authorization == "esh:" + config.sitepass) return fn()
else return ["unauthorized"]
}
function create() {
return secure(function() {
with(eval(request.content)) {
if(title != undefined && photo != undefined) {
var path = "/tmp/" + Math.floor(Math.ran... | JavaScript | 0 | @@ -454,21 +454,20 @@
%09%09%09%09var
-model
+post
= model
@@ -541,21 +541,20 @@
er.js%22)(
-model
+post
)%0A%09%09%09%09%09%0A
|
7e235f0db95f878b5723151981069e292aa4e662 | add objective text verification to e2e ld view page test | test/client/e2e/learning-design-scenarios.js | test/client/e2e/learning-design-scenarios.js | 'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Learning Design', function() {
it('Logged in user can see all learning designs', function() {
var existingUserName = testUsers.getUserName;
var existingUserPassword = testUsers.getUserPassword;
browser().navigateTo('/l... | JavaScript | 0 | @@ -1663,24 +1663,140 @@
()).toBe(2);
+%0A expect(repeater('.objectives li').column('objective.objective_descr')).toEqual(%5B%22Objective 1%22, %22Objective 6%22%5D);
%0A%0A // Log
|
a3f3cd18e365e0218a06e8fab2a4903d457f496b | add serviceworker filename to htmlplugin | build/webpack.prod.conf.js | build/webpack.prod.conf.js | const { join, resolve } = require('path')
const { sync } = require('glob-all')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const { name } = require('../package')
const merge = require('webpack-merge')
const chalk = require('chalk')
const baseWebpackConfig = re... | JavaScript | 0.000001 | @@ -3893,16 +3893,25 @@
ceWorker
+: 'sw.js'
%0A %7D),
|
df114e16190f568ef498b95be538d5af6dd86e99 | Refactor (#3382) | lib/preprocessor.js | lib/preprocessor.js | 'use strict'
const fs = require('graceful-fs')
const mm = require('minimatch')
const isBinaryFile = require('isbinaryfile')
const _ = require('lodash')
const CryptoUtils = require('./utils/crypto-utils')
const log = require('./logger').create('preprocess')
function executeProcessor (process, file, content) {
let d... | JavaScript | 0 | @@ -1424,16 +1424,68 @@
let p
+ = instances%5Bname%5D%0A if (p) %7B%0A return p%0A %7D
%0A%0A tr
@@ -1916,24 +1916,276 @@
ame)%0A %7D%0A%0A
+ if (!p && !alreadyDisplayedErrors%5Bname%5D) %7B%0A alreadyDisplayedErrors%5Bname%5D = true%0A log.error(%60Failed to instantiate preprocessor... |
335e5fb1cf1af33699287a570758e7fb0f1568e4 | Add hasValue state when false | react/src/base/inputs/components/SprkTextareaCheck/SprkTextareaCheck.js | react/src/base/inputs/components/SprkTextareaCheck/SprkTextareaCheck.js | import React, { Component } from 'react';
import classNames from 'classnames';
import propTypes from 'prop-types';
class SprkTextareaCheck extends Component {
constructor(props) {
const { value } = props;
const { defaultValue } = props;
super(props);
if( value || defaultValue ) {
this.state = ... | JavaScript | 0.008744 | @@ -348,16 +348,84 @@
%7D;%0A
+ %7D else %7B%0A this.state = %7B%0A hasValue: false,%0A %7D;%0A
%7D%0A
|
66411e00f5e20d565f427c0f8cc415275704dbaf | change gulpfile | gulpfile.js | gulpfile.js | /**
* Created by dsky on 16/6/22.
* gulp task to make development quick
* css sprite, imagemin, sass lint && sass to css, css minify, js minify
*/
'use strict';
var gulp = require('gulp');
var gulpif = require('gulp-if');
var changed = require('gulp-changed');
var sass = require('gulp-sass');//sass
var autoPrefixer... | JavaScript | 0.000001 | @@ -1795,16 +1795,64 @@
ssSrc)))
+%0A .pipe(browserSync.reload(%7Bstream: true%7D))
;%0A%7D);%0A//
@@ -2110,24 +2110,72 @@
distImgSrc))
+%0A .pipe(browserSync.reload(%7Bstream: true%7D))
;%0A%7D);%0A//sass
@@ -2391,16 +2391,64 @@
_scss%7D))
+%0A .pipe(browserSync.reload(%7Bstream: true%7D))
;%0A%7D... |
43bfde6791956faee11b11720fcd47cb14b779b5 | remove attributes param if not defined | lib/users.js | lib/users.js | /**
* Copyright (c) ActiveState 2013 - ALL RIGHTS RESERVED.
*/
define([
'underscore',
'./collection'],
function (_, Collection) {
var users = function (api) {
this.api = api;
this.collection = 'users';
};
users.prototype = Object.create(new Collection());... | JavaScript | 0.000002 | @@ -3901,32 +3901,115 @@
point + '/Users?
+';%0A%0A if (attributes) %7B%0A users_url = users_url + '
attributes=' + a
@@ -4018,16 +4018,34 @@
ributes;
+%0A %7D
%0A%0A
|
54d65467add70654fdab45c50fe25d70d8c10e36 | Enable energy chunk layer | js/energy-systems/view/FaucetAndWaterNode.js | js/energy-systems/view/FaucetAndWaterNode.js | // Copyright 2016, University of Colorado Boulder
define( function( require ) {
'use strict';
// Modules
var EFACBaseNode = require( 'ENERGY_FORMS_AND_CHANGES/energy-systems/view/EFACBaseNode' );
var FaucetAndWater = require( 'ENERGY_FORMS_AND_CHANGES/energy-systems/model/FaucetAndWater' );
var FaucetNode =... | JavaScript | 0.000001 | @@ -193,24 +193,117 @@
aseNode' );%0A
+ var EnergyChunkLayer = require( 'ENERGY_FORMS_AND_CHANGES/common/view/EnergyChunkLayer' );%0A
var Faucet
@@ -543,57 +543,8 @@
);%0A
- // var Path = require( 'SCENERY/nodes/Path' );%0A
va
@@ -2575,24 +2575,183 @@
Droplet );%0A%0A
+ // Create the energy chunk layer.%... |
ef7980e587d9b26c0c0d18eed309b55ea4284701 | add slash if necessary in model constructor | src/data/model.js | src/data/model.js | // Copyright (c) 2013 M-Way Solutions GmbH
// http://github.com/mwaylabs/The-M-Project/blob/absinthe/MIT-LICENSE.txt
/**
*
* @module Bikini.Model
*
* @type {*}
* @extends Backbone.Model
*/
Bikini.Model = Backbone.Model.extend({
constructor: function( attributes, options ) {
this.init(attributes, opti... | JavaScript | 0.000001 | @@ -271,32 +271,207 @@
es, options ) %7B%0A
+ if(this.url && typeof this.url === 'string') %7B%0A if(this.url.charAt(this.url.length - 1) !== '/') %7B%0A this.url += '/';%0A %7D%0A %7D%0A
this.ini
|
aaaa0f6a0fd06e8444bbb360d1f58b86ad2b9d78 | Rename resolve/reject methods | lib/process-tree.js | lib/process-tree.js | // Copyright (c) 2017 The Regents of the University of Michigan.
// All Rights Reserved. Licensed according to the terms of the Revised
// BSD License. See LICENSE.txt for details.
module.exports = (newLogger) => new Promise((resolve, reject) => {
let logger = newLogger({});
logger.storeProcess(new Promise((good,... | JavaScript | 0 | @@ -231,16 +231,81 @@
olve
-, reject
+Preprocess,%0A rejectPreprocess
) =%3E
@@ -377,17 +377,37 @@
se((
-good, bad
+resolveProcess, rejectProcess
) =%3E
@@ -453,12 +453,22 @@
-good
+resolveProcess
();%0A
@@ -484,16 +484,26 @@
resolve
+Preprocess
(logger)
|
9c3781fa6924e379d113f71bfce3934f4513e23a | remove Android Emulator from CRON | wct.conf.js | wct.conf.js | var envIndex = process.argv.indexOf('--env') + 1;
var env = envIndex ? process.argv[envIndex] : undefined;
module.exports = {
testTimeout: 180 * 1000,
verbose: false,
plugins: {
local: {
browserOptions: {
chrome: [
'headless',
'disable-gpu',
'no-sandbox'
]
... | JavaScript | 0.000038 | @@ -1179,170 +1179,8 @@
= %5B%0A
- %7B%0A deviceName: 'Android GoogleAPI Emulator',%0A platformName: 'Android',%0A platformVersion: '8.1',%0A browserName: 'chrome'%0A %7D,%0A
|
81d8c4e07fd672b3723cad7dc1a1cc4adcaabe93 | update with circle transition effect | js/d3_element.js | js/d3_element.js | /**
* Java script library on top of d3.
*/
var d3Elements = (function(){
var lib = function(){
},
data = function(){
},
element = function(){
}
return {
version : '0.1',
lib : lib,
element : element,
data : data
}
})();
/**
* To stringify data
* @param data
* @returns
*/
d3Elements.data... | JavaScript | 0 | @@ -689,32 +689,151 @@
%22fill%22, %22green%22)
+%0A.transition()%0A .delay(100)%0A .duration(1000) %0A .attr(%22r%22, 10)%0A .attr(%22cx%22, 30)%0A .style(%22fill%22, %22red%22)
;%0A%7D%0A%0A/**%0A * Java
|
f347f622ee954d66cb09880cfbf214769706832f | Add fcc market text | src/routes/Projects/routes/Projects/FCCMarket/FCCMarket.js | src/routes/Projects/routes/Projects/FCCMarket/FCCMarket.js | import React from 'react'
import Isvg from 'react-inlinesvg'
import ImageLoader from 'react-imageloader'
import View from '../../../../../components/ViewWrapper'
import RandomText from '../../../../../components/RandomText'
import Tool from '../../../components/Tool'
import classes from '../../../styles/Project.scss'
... | JavaScript | 0.000034 | @@ -2499,1487 +2499,464 @@
-Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iure minima%0A ullam officia ut cum iusto veritatis in officiis, facilis ratione%0A excepturi unde delectus itaque eaque vitae voluptatem, sit nobis nostrum%0A consequuntur maxime pariatur, elige... |
a476c3247c7ca22ee1cbd9e088ff228933847e09 | Fix transparentize in samples (#7098) | samples/utils.js | samples/utils.js | 'use strict';
window.chartColors = {
red: 'rgb(255, 99, 132)',
orange: 'rgb(255, 159, 64)',
yellow: 'rgb(255, 205, 86)',
green: 'rgb(75, 192, 192)',
blue: 'rgb(54, 162, 235)',
purple: 'rgb(153, 102, 255)',
grey: 'rgb(201, 203, 207)'
};
(function(global) {
var MONTHS = [
'January',
'February',
'March',
... | JavaScript | 0 | @@ -634,16 +634,23 @@
r =
-global.C
+Chart.helpers.c
olor
|
06519875565ffe3582e0568932ae5c362bfe4e90 | Allow modifier starting with a number | lib/preset-patterns.js | lib/preset-patterns.js | module.exports = {
suit: {
componentName: /[A-Z][a-zA-Z]+/,
componentSelectors: suitSelector,
utilitySelectors: /^\.u(?:-[a-z][a-zA-Z0-9]*)+$/,
},
bem: {
componentName: /[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*/,
componentSelectors: bemSelector,
},
};
/**
* @param {String} componentName
* @param {O... | JavaScript | 0.000002 | @@ -633,24 +633,27 @@
= '(?:--%5Ba-z
+0-9
%5D%5Ba-zA-Z0-9%5D
|
de5ca92e4e03913b1c19d51c47dc36b502a867cd | add e2e session.delay explainer | test/end-to-end-tests/src/usecases/signup.js | test/end-to-end-tests/src/usecases/signup.js | /*
Copyright 2018 New Vector Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | JavaScript | 0 | @@ -1328,21 +1328,137 @@
//
-fill out form
+ Delay required because of local race condition on macOs%0A // Where the form is not query-able despite being present in the DOM
%0A
@@ -1480,24 +1480,44 @@
delay(100);%0A
+ //fill out form%0A
const us
|
b5b6c91aa34d923e7e0673ad962aa6a4e72e812e | fix prerenderspa plugin timeout | build/webpack.prod.conf.js | build/webpack.prod.conf.js | var fs = require('fs')
var path = require('path')
var utils = require('./utils')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var HtmlWebpackPlugin = r... | JavaScript | 0 | @@ -4406,16 +4406,34 @@
false,%0A
+ timeout: 0,%0A
re
|
fbfa9f07f9e7eb7befc5b2caf0ea0a951d78b7ab | add nodeid to http response event | lib/protocol/events.js | lib/protocol/events.js | // Copyright 2014, Renasar Technologies Inc.
/* jshint: node:true */
'use strict';
var di = require('di');
module.exports = eventsProtocolFactory;
di.annotate(eventsProtocolFactory, new di.Provide('Protocol.Events'));
di.annotate(eventsProtocolFactory,
new di.Inject(
"Services.Messenger",
"Servi... | JavaScript | 0 | @@ -269,33 +269,33 @@
Inject(%0A
-%22
+'
Services.Messeng
@@ -296,17 +296,17 @@
essenger
-%22
+'
,%0A
@@ -307,17 +307,17 @@
-%22
+'
Services
@@ -323,17 +323,17 @@
s.Assert
-%22
+'
,%0A
@@ -338,11 +338,11 @@
-%22Q%22
+'Q'
%0A
@@ -574,32 +574,33 @@
ert.ok(nodeId);%0A
+%0A
... |
5f8dbd8a9a6eb4084081aef6adb543463d83474b | refactor utils.getRuleInfo | lib/utils.js | lib/utils.js | 'use strict';
/**
* Determines whether a node is a 'normal' (i.e. non-async, non-generator) function expression.
* @param {ASTNode} node The node in question
* @returns {boolean} `true` if the node is a normal function expression
*/
function isNormalFunctionExpression (node) {
return (node.type === 'FunctionExpressi... | JavaScript | 0.000002 | @@ -1049,16 +1049,24 @@
_KEYS =
+new Set(
%5B'create
@@ -1075,16 +1075,17 @@
'meta'%5D
+)
;%0A le
@@ -2227,178 +2227,40 @@
e =
-prop.key.type === 'Literal'%0A ? prop.key.value%0A : prop.key.type === 'Identifier'%0A ? prop.key.name%0A : null;%0A
... |
98f09e25b9d8cf178a449125b88fde0c816bc63f | make comment more accurate | js/scripts/make-conglomerate-string-files.js | js/scripts/make-conglomerate-string-files.js | // Copyright 2022, University of Colorado Boulder
/**
* This script makes a JSON file for each repo subdirectory in phetsims/babel. These files contain a locale object for
* each locale that has a string file in phetsims/babel. Each locale object has every string key / translated value
* pair we have for that local... | JavaScript | 0 | @@ -2324,34 +2324,28 @@
the
-history of the string file
+string key's history
.%0A
|
702e32d6e5ed1aeec0e67a301f474b5bca65775d | convert spaces to tabs | test/fen.js | test/fen.js | require('traceur/bin/traceur-runtime.js');
var test = require('tape');
var Fen = require('../lib/fen.js').Fen;
var fenCodes = [
'rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1',
'2kr1bnr/1pp2ppp/p7/2pP4/6P1/2N2Q1P/PPP2PK1/R1B1q3 w - -',
'1r3Q2/p3P2k/2bp2p1/1pb5/5PP1/8/P6P/7K w - -',
'6k1/5pp1/p6... | JavaScript | 0.999997 | @@ -124,18 +124,17 @@
des = %5B%0A
-
+%09
'rnbqkbn
@@ -188,18 +188,17 @@
3 0 1',%0A
-
+%09
'2kr1bnr
@@ -248,18 +248,17 @@
w - -',%0A
-
+%09
'1r3Q2/p
@@ -296,18 +296,17 @@
w - -',%0A
-
+%09
'6k1/5pp
@@ -335,18 +335,17 @@
w - -',%0A
-
+%09
'8/6pk/6
@@ -378,18 +378,17 @@
w - -',%0A
-
+%09
'6R1/pp1
... |
7490007815be2b3e3d7bf526b471b70253d08854 | update fireball-x/dev#103: 切换场景时,允许 entity 不被 destroy | src/definition.js | src/definition.js | // global definitions
Fire.isNode = !!(typeof process !== 'undefined' && process.versions && process.versions.node);
Fire.isNodeWebkit = !!(Fire.isNode && 'node-webkit' in process.versions); // node-webkit
Fire.isAtomShell = !!(Fire.isNode && 'atom-shell' in process.versions); // atom-shell
Fire.isApp = Fire.is... | JavaScript | 0 | @@ -1751,16 +1751,98 @@
editor%0A
+var DontDestroy = 1 %3C%3C 5; // dont destroy automatically when loading a new scene%0A%0A
/**%0A *%0A
@@ -2033,16 +2033,46 @@
: Dirty,
+%0A DontDestroy: DontDestroy,
%0A%0A //
@@ -3187,16 +3187,30 @@
roying %7C
+ DontDestroy %7C
//
|
3ae23587811a92440799837c21e452c33cd9d8aa | update builder | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
postcss = require('gulp-postcss'),
rename = require('gulp-rename'),
ghPages = require('gulp-gh-pages'),
shell = require('gulp-shell')
require('gulp-release-tasks')(gulp);
var pkg = require('./package.json'),
slim_banner = [
'*',
'* Copyright (c) ' + new Date().getFullYear()... | JavaScript | 0.000001 | @@ -934,49 +934,8 @@
(),%0A
- require('postcss-nested')(),%0A
@@ -1060,32 +1060,73 @@
properties')(),%0A
+ require('postcss-nested')(),%0A
requ
|
c026dc466015bb66f42ccc2b2b88e4cc23e4fbbf | Increase accepted time range for int tests | test/int.js | test/int.js | 'use strict';
const should = require('should');
const async = require('async');
const t = require('./../index');
const Tick = t.Tick;
const ACCEPTABLE_RESULT_RANGE_MIN = 0.1 * 1e9;
const ACCEPTABLE_RESULT_RANGE_MAX = 0.108 * 1e9;
const suts = {
testCustomInit: function(n, cb) {
const tick = new Tick('te... | JavaScript | 0 | @@ -168,17 +168,19 @@
MIN = 0.
-1
+099
* 1e9;%0A
|
0de1f666a108b2794d2c79d5464168a40214ee76 | Resolve file loading issues with the modules | gulpfile.js | gulpfile.js | /* ============================================================ *\
SETUP
\* ============================================================ */
/*jslint node: true */
'use strict';
// Gulp
var gulp = require('gulp');
var argv = require('yargs').argv;
var runSeq = require('run-sequence');
// Tasks
var del = requi... | JavaScript | 0 | @@ -325,16 +325,53 @@
del');%0A%0A
+// Node%0Avar path = require('path');%0A%0A
// Confi
@@ -383,16 +383,19 @@
config
+
= requir
@@ -434,16 +434,19 @@
creds
+
= requir
@@ -480,14 +480,17 @@
var
-slate
+cartridge
= r
@@ -520,78 +520,216 @@
);%0A%0A
-var cartridgeSettings = %7B%0A%09tasks: %7B%0A%0... |
2e9b989771589fe1167f83556cc3f9f53ce3837e | remove __cachePToK | src/graph/QueryNode.js | src/graph/QueryNode.js | import difference from 'lodash/difference';
import uniq from 'lodash/uniq';
import identity from 'lodash/identity';
import mapValues from 'lodash/mapValues';
import { refetch } from '../cache/strategies';
import { compose, product } from '../fetch/operators';
import { cacheFetch } from '../query/operators';
import { Ob... | JavaScript | 0.001111 | @@ -113,50 +113,8 @@
y';%0A
-import mapValues from 'lodash/mapValues';%0A
impo
@@ -152,24 +152,24 @@
trategies';%0A
+
import %7B com
@@ -388,32 +388,8 @@
tch,
- __cachePToK: cachePToK,
id,
@@ -739,27 +739,16 @@
etch, A,
- cachePToK,
depth%0A
@@ -970,387 +970,8 @@
0;%0A%0A
- const depsPToK = %7B%7D;%0A ... |
ba5be8c352d9f2d263972705c8221f4550280f0b | add watcher to get config dynamically. | modules/config/configUtils.js | modules/config/configUtils.js | var fs = require('fs');
var path = require('path');
var cfgFileName = 'config.cfg';
var cache = {};
function getConfigs() {
if (!cache[cfgFileName]) {
if (!process.env.cloudDriveConfig) {
process.env.cloudDriveConfig = path.join(process.env.cloud_home, cfgFileName);
}
if (fs.ex... | JavaScript | 0 | @@ -93,16 +93,79 @@
he = %7B%7D;
+%0Avar filePath = path.join(process.env.cloud_home, cfgFileName);
%0A%0Afuncti
@@ -305,54 +305,16 @@
g =
-path.join(process.env.cloud_home, cfgFileName)
+filePath
;%0A
@@ -351,36 +351,16 @@
ync(
-process.env.cloudDriveConfig
+filePath
)) %7B
@@ -407,36 +407,16 @@
ync(
-proces... |
1616453b2ee8dfb77f1974e2bcfba20744bfe1e1 | Add additional check for inline false boolean | test/jsx.js | test/jsx.js | import render from '../src/jsx';
import { h, Component } from 'preact';
import chai, { expect } from 'chai';
import { spy, match } from 'sinon';
import sinonChai from 'sinon-chai';
chai.use(sinonChai);
// tag to remove leading whitespace from tagged template literal
function dedent([str]) {
return str.split( '\n'+str... | JavaScript | 0.000001 | @@ -2748,16 +2748,35 @@
%0A%09%09%09%09%3Cd%3E
+%7Bfalse%7D%3C/d%3E%0A%09%09%09%09%3Ce%3E
%3CFalse /
@@ -2778,17 +2778,17 @@
lse /%3E%3C/
-d
+e
%3E%0A%09%09%09%3C/d
@@ -2870,16 +2870,28 @@
%3Cd%3E%3C/d%3E%0A
+%09%09%09%09%3Ce%3E%3C/e%3E%0A
%09%09%09%3C/div
|
f8d6ecd96a452927c6176fd24731165a557cf63c | fix documentations | js/freelancer.js | js/freelancer.js | /*!
* Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
// jQuery for page scrolling feature - requires jQuery Easing plugin
$(function() {
$('body').on('click', '.page-scroll... | JavaScript | 0 | @@ -2082,13 +2082,12 @@
//
-Popov
+Mark
er p
@@ -2206,21 +2206,20 @@
imating
-popov
+mark
er on ho
@@ -2424,15 +2424,14 @@
er o
-r popov
+n mark
er%0A
|
aad7e245fa3ae33dbc219ae57c78e1146898a133 | Use the new module name for eventlogging module | modules/ext.thanks.mobilediff.js | modules/ext.thanks.mobilediff.js | ( function ( mw, M, $ ) {
var popup = M.require( 'mobile.toast/toast' ),
SchemaMobileWebClickTracking = M.require( 'loggingSchemas/SchemaMobileWebClickTracking' ),
schema = new SchemaMobileWebClickTracking( {}, 'MobileWebDiffClickTracking' );
/**
* Create a thank button for a given edit
*
* @param {String}... | JavaScript | 0.000251 | @@ -112,16 +112,23 @@
quire( '
+mobile.
loggingS
|
a9d316885ce05f068b15649bdce3297442592b82 | Make sure everything is in lowercase. | lib/utils.js | lib/utils.js | var toNumber = require("underscore.string/toNumber"),
ltrim = require("underscore.string/ltrim");
// Generate a random justinfan username
function generateJustinfan() {
return "justinfan" + Math.floor((Math.random() * 80000) + 1000);
}
// Determine if value is a valid integer
function isInteger(value) {
//0 ... | JavaScript | 0.001301 | @@ -509,24 +509,37 @@
+ ltrim(name
+.toLoweCase()
, %22#%22);%0A%7D%0A%0A/
@@ -644,16 +644,29 @@
username
+.toLoweCase()
, %22#%22);%0A
|
fca2be39d99f249aa5d4fe47e6307d4403e107d8 | update config | gulpfile.js | gulpfile.js | /*!
* @author: Divio AG
* @copyright: http://www.divio.ch
*/
'use strict';
// #############################################################################
// #IMPORTS#
var browserSync = require('browser-sync');
var cache = require('gulp-cached');
var gulp = require('gulp');
var gutil = require('gulp-util');
va... | JavaScript | 0.000001 | @@ -4277,16 +4277,17 @@
+'
configFi
@@ -4288,16 +4288,17 @@
nfigFile
+'
: PROJEC
@@ -4351,12 +4351,14 @@
+'
args
+'
: %5B%5D
|
1e5f1849eced54b5f0df50385e39151ead9324ac | Remove more random github elements | js/github.com.js | js/github.com.js | // Alternate between h/m Objective-C files with 'a'
function alternate(URL) {
var newURL = null;
if (URL.endsWith(".h")) {
newURL = URL.replaceLast("m");
} else if (URL.endsWith(".m")) {
newURL = URL.replaceLast("h");
}
if (newURL) {
window.location.href = newURL;
}
}
String.prototype.replaceL... | JavaScript | 0 | @@ -1587,16 +1587,53 @@
move();%0A
+ $(%22.toolbar-commenting%22).remove();%0A
%7D%0A%0A// Re
|
9e68a985674173ec8b2318f40c18e4b4a92b41c3 | add ability to ignore actions with transformers in dispatcher/bug fix | src/dispatcher.js | src/dispatcher.js | import {chan, go, operations, buffers, take, put, takeAsync, putAsync, CLOSED} from 'js-csp'
export function defineDispatcher({transformers}){
return class {
constructor(){
this.outCh = chan(buffers.fixed(10))
this.outMult = operations.mult(this.outCh)
}
listen(source){
if(source.out... | JavaScript | 0 | @@ -41,24 +41,8 @@
ake,
- put, takeAsync,
put
@@ -69,16 +69,63 @@
'js-csp'
+%0Aimport %7Bcompose, filter%7D from 'transducers.js'
%0A%0Aexport
@@ -246,16 +246,51 @@
ixed(10)
+, compose(filter(value =%3E !!value))
)%0A
|
434d5a8b1e8380680c02bc0460f428edc3548d46 | Fix Github -> GitHub. | cmd/tchaik/ui/static/js/src/components/LeftColumn.js | cmd/tchaik/ui/static/js/src/components/LeftColumn.js | "use strict";
import React from "react";
import classNames from "classnames";
import Icon from "./Icon.js";
import StatusView from "./Status.js";
import PlayerKeyView from "./PlayerKey.js";
import ContainerActions from "../actions/ContainerActions.js";
import ContainerConstants from "../constants/ContainerConstants... | JavaScript | 0.000093 | @@ -3404,17 +3404,17 @@
tle=%22Git
-h
+H
ub%22 href
|
d4056ebd0f7e0bb916ed925f8637991cce991424 | allow nuget restore when paths have spaces | modules/gulp-nuget-restore.js | modules/gulp-nuget-restore.js | 'use strict';
var gutil = require('gulp-util'),
es = require('event-stream'),
fs = require('fs'),
q = require('q'),
spawn = require('./spawn'),
exec = require('./exec'),
log = require('./log'),
path = require('path'),
which = require('which'),
resolveNuget = require('./resolve-nuget'),
debug = requi... | JavaScript | 0 | @@ -77,30 +77,8 @@
'),%0A
- fs = require('fs'),%0A
q
@@ -129,110 +129,28 @@
,%0A
-exec = require('./exec'),%0A log = require('./log'),%0A path = require('path'),%0A which = require('which
+log = require('./log
'),%0A
@@ -308,100 +308,8 @@
e;%0A%0A
-var CWD = process.cwd();%0Afunction projectPathFor(path) ... |
e01443dd5437e36ca750033a09658de1fc11d980 | Add dotfiles to chokidar ignored files | lib/watch.js | lib/watch.js | var chokidar = require('chokidar');
var path = require('path');
var url = require('url');
var fs = require('fs');
function watch(options, callback) {
var scripts = options.scripts || {};
var cwd = options.cwd || process.cwd();
var watcher = chokidar.watch(options.watch, {
persistent: true
});
for (var ... | JavaScript | 0 | @@ -294,16 +294,41 @@
nt: true
+,%0A ignored: /%5B%5C/%5C%5C%5D%5C./
%0A %7D);%0A%0A
|
9cfc603e258bab043f5fb1ee8bdfd9a3299cb448 | Revert changes on response-helper | lib/response-helper.js | lib/response-helper.js | "use strict";
module.exports = function(logger) {
/**
* Sends an error HTTP response, with the given status code and a response
* body containing a JSON object with the error identifier and description.
* If redirectUri is provided, the error is send in the query component
* of the redirection URI using... | JavaScript | 0 | @@ -471,37 +471,24 @@
description
-, redirectUri
) %7B%0A logg
@@ -514,110 +514,8 @@
n);%0A
- if (redirectUri) %7B%0A this.redirectError(redirectUri, error, description);%0A return;%0A %7D%0A
@@ -640,22 +640,17 @@
error,
-errorD
+d
escripti
@@ -658,24 +658,55 @@
n, state) %7B%0A
+ l... |
ab0574a03b09d221577adde5879bf96f57658235 | Make RECENT mode title consistent. | cmd/tchaik/ui/static/js/src/stores/ContainerStore.js | cmd/tchaik/ui/static/js/src/stores/ContainerStore.js | import {ChangeEmitter} from "../utils/ChangeEmitter.js";
import AppDispatcher from "../dispatcher/AppDispatcher.js";
import ContainerConstants from "../constants/ContainerConstants.js";
import SearchConstants from "../constants/SearchConstants.js";
var _defaultMode = ContainerConstants.ALL;
function setMode(m) {
... | JavaScript | 0.000001 | @@ -577,16 +577,71 @@
brary%22;%0A
+_titles%5BContainerConstants.RECENT%5D = %22Recently Added%22;%0A
_titles%5B
|
05ae73c93f7be87d3f6955c515a83f922bf92484 | fix controller.on() not called correctly | lib/router/index.js | lib/router/index.js | var routers = []
var routersLength = 0
var _ = require('../lodash-x.js')
var pathToRegExp = require('path-to-regexp')
var yieldr = require('yieldr')
var runFilters = require('../run-filters.js')
var Controller = require('../controller/index.js')
var binder = require('../status-handler-binder.js')
var routerOpti... | JavaScript | 0.000002 | @@ -4661,35 +4661,103 @@
%7D%0A
-%0A
+ %7D else %7B%0A context.status = 405%0A %7D%0A%0A
var
@@ -4826,18 +4826,16 @@
status%5D%0A
-%0A
@@ -4830,33 +4830,32 @@
us%5D%0A
-
if (_.isFunction
@@ -4889,34 +4889,30 @@
- ... |
a5432802bca54b3872d278b861a370d2f3cf7a7f | enable loose mode for es6.modules to get past __esModule defineProperty | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var browserify = require('gulp-browserify');
var babel = require('gulp-babel');
var mocha = require('gulp-mocha');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var rimraf = require('gulp-rimraf');
var shell = require('gulp-shell');
var version = require('./packa... | JavaScript | 0 | @@ -446,13 +446,23 @@
se:
-'all'
+%5B'es6.modules'%5D
%0A
|
0cbd7c00529456471677a3208e70b79b009266b3 | Fix eslint errors | src/http/image-http.js | src/http/image-http.js | // # imagesService
// everything related to image manipulation
//
'use strict';
import * as gcs from '../util/gcs';
import * as actionCore from '../core/action-core';
import {createJsonRoute, throwStatus} from '../util/express';
import * as userCore from '../core/user-core';
import * as imageCore from '../core/im... | JavaScript | 0.013429 | @@ -2354,17 +2354,17 @@
IZE = 38
-:
+;
%0A const
@@ -2408,16 +2408,17 @@
T_HEIGHT
+
= 1024;%0A
|
413a72c5b294f5c34f1196a038f0fe72c267de56 | Update the list of void elements | lib/self-closing.js | lib/self-closing.js |
/*!
* Jade - self closing tags
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
module.exports = [
'area'
, 'base'
, 'br'
, 'col'
, 'hr'
, 'img'
, 'input'
, 'link'
, 'meta'
, 'source'
];
| JavaScript | 0 | @@ -164,16 +164,28 @@
, 'col'%0A
+ , 'embed'%0A
, 'hr'
@@ -216,36 +216,98 @@
, '
-link'%0A , 'meta'%0A , 'source
+keygen'%0A , 'link'%0A , 'menuitem'%0A , 'meta'%0A , 'param'%0A , 'source'%0A , 'track'%0A , 'wbr
'%0A%5D;
|
bd2d7c5770b9ad9ca6d971aecc5b365ae866fa2a | remove closedb task | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var fs = require('fs');
var through2 = require('through2');
var runSequence = require('run-sequence');
var tarbz2 = require('decompress-tarbz2');
var vinylAssign = require('vinyl-assign');
var exec = require('child_process').exec;
var buildIndex = require('./lib/findBy/tagname/searchIndex/bu... | JavaScript | 0.999967 | @@ -1683,32 +1683,67 @@
n(function () %7B%0A
+ mongo.close();%0A
@@ -1742,32 +1742,33 @@
cb()
+;
%0A
@@ -1835,32 +1835,67 @@
console.error(
+'Error in insert:listing task: ' +
e.message);%0A
@@ -2271,32 +2271,67 @@
n(function () %7B%0A
+ ... |
0faa3bb3d8d9cb7ec97e45419e49f1e897515555 | Add Gulp task for minifying Redactor CSS | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')(),
scripts = {
src: ['admin/views/assets/javascripts/components/*.js'],
dest: 'admin/views/assets/javascripts',
lib: 'admin/views/assets/javascripts/lib',
main: 'admin/views/assets/javascripts/main.js'
... | JavaScript | 0.000001 | @@ -2709,32 +2709,273 @@
yles.lib))%0A%7D);%0A%0A
+gulp.task('redactor', function () %7B%0A return gulp.src('admin/views/assets/stylesheets/lib/redactor.css')%0A .pipe(plugins.rename('redactor.min.css'))%0A .pipe(plugins.minifyCss())%0A .pipe(gulp.dest('admin/views/assets/stylesheets/lib'));%0A%7D);%0A%0A
gulp.ta... |
ed98ed11aabf81a4826d2b0c7a87157931f03550 | update comments, add whitespace | wordpress/webpack/entry_SHARING.js | wordpress/webpack/entry_SHARING.js | /**
* entry_SHARING.js
*
* Module for loading styles and scripts related to single posts only
*
*/
var $ = require( "jquery" ), // require jQuery
q = require( "Q" ); // require the Q Promise library
// Load in asynchronous code for Facebook and Google+ sharing
require("./config/async-sharing");
/* Load in s... | JavaScript | 0.000001 | @@ -2554,23 +2554,29 @@
ink );%0A%0A
-%0A
/
-/
+*%0A *
Object
@@ -2633,16 +2633,144 @@
+ links%0A
+ * These links are already on the web page at this point%0A * %22getLink%22 is the id of the link already on the page%0A */%0A
var
@@ -2843,32 +2843,34 @@
ook-share-link%22,
+
%0A ... |
40650de261dd390ffc2be1ac3334fd357436966f | update unit test | test/purchasing/unit-payment-order/update.js | test/purchasing/unit-payment-order/update.js | var helper = require("../../helper");
var validator = require('dl-models').validator.master;
var validatorPurchasing = require('dl-models').validator.purchasing;
var UnitPaymentOrderManager = require("../../../src/managers/purchasing/unit-payment-order-manager");
var unitPaymentOrderManager = null;
var unitPaymentOrder... | JavaScript | 0 | @@ -383,16 +383,105 @@
-util%22);
+%0Avar unitReceiptNote = require('../../data-util/purchasing/unit-receipt-note-data-util');
%0A%0Arequir
@@ -1517,22 +1517,26 @@
ate
-new blank data
+data (remove item)
', f
@@ -1621,16 +1621,17 @@
update(%7B
+
createdD
@@ -1633,16 +1633,17 @@
atedData
+
%7D)%0A
@@ -18... |
236c441c6c40ffea9df299c19a2444e4d3698ae8 | Update Channel Logic | lib/slackService.js | lib/slackService.js | 'use strict';
var Slack = require('node-slack');
var config = require('./config');
function noop() {}
module.exports = (function () {
var slack = new Slack(config.webhook);
var params = {
attachments: []
};
if (typeof config.username !== 'undefined') {
params.username = config.userna... | JavaScript | 0 | @@ -355,32 +355,66 @@
!== '#undefined'
+ && typeof channel !== 'undefined'
) %7B%0A para
|
98386ff4c40f784e0c0e7ce6baeab1b86afb915f | fix failing heightmap test | test/scripts/HeightMapBoundingScript-test.js | test/scripts/HeightMapBoundingScript-test.js | define([
'goo/scripts/HeightMapBoundingScript'
], function(
HeightMapBoundingScript
) {
'use strict';
describe('Build a basic heightmap and check basic points', function() {
it ('adds a simple heightmap gets its height values', function() {
var heightMatrix = [[0, 0, 0, 0], [0, 0.5, 0.5, 0], [... | JavaScript | 0.000001 | @@ -1067,27 +1067,25 @@
ht).toEqual(
-0.5
+1
);%0D%0A%09%09%7D);%0D%0A%0D
|
1f517e5d2bf261a5ed1cd2d4b73572cbe5e0f97a | Add test for Set.prototype.values() | test/set.js | test/set.js | require('../iterators.js');
chai = require('chai');
expect = chai.expect;
var set, emptyset;
describe('Set prototype functions', function(){
beforeEach(function(){
set = new Set();
set.add('a');
set.add('b');
set.add('c');
emptyset = new Set();
});
it('should iterate over keys of a filled s... | JavaScript | 0 | @@ -1130,32 +1130,957 @@
al(undefined);%0A%0A
+ expect(second).to.deep.equal(first);%0A %7D);%0A%0A it('should iterate over values of a filled set', function() %7B%0A var iterator = set.values();%0A var first = iterator.next();%0A var second = iterator.next();%0A var third = iterator.next();%0A var... |
439963cbecf9f31a51f196f08e6fab2c5b4d9089 | Add sass build task | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var taskListing = require('gulp-task-listing');
var bower = require('gulp-bower');
var tsd = require('gulp-tsd');
var typescript = require('gulp-typescript');
var electron = require('electron-connect').server.create();
var mocha = require('gulp-mocha');
gulp.task('help', taskListing);
['b... | JavaScript | 0.000095 | @@ -176,24 +176,57 @@
pescript');%0A
+var sass = require('gulp-sass');%0A
var electron
@@ -273,16 +273,16 @@
eate();%0A
-
var moch
@@ -441,16 +441,76 @@
/*.ts';%0A
+ var stylesheet_glob = 'src/' + dir + '/**/*.%7Bsass,scss%7D';%0A
var st
@@ -803,16 +803,130 @@
dir));%0A%0A
+ gulp.src(stylesheet_glob)%0A ... |
396df55f1b2652b96e89330f931bd9d6ef925bac | Add composite property tests | test/specs/style_manager/model/Properties.js | test/specs/style_manager/model/Properties.js | import Editor from 'editor/model/Editor';
describe('StyleManager properties logic', () => {
let obj;
let em;
let domc;
let dv;
let cssc;
let sm;
let cmp;
let rule1;
let rule2;
beforeEach(() => {
em = new Editor({
mediaCondition: 'max-width',
avoidInlineStyle: true,
styleManag... | JavaScript | 0 | @@ -1615,32 +1615,194 @@
thy();%0A %7D);%0A%0A
+ test('Inner property has no value', () =%3E %7B%0A expect(compTypeProp.hasValue()).toBe(false);%0A expect(compTypePropInn.hasValue()).toBe(false);%0A %7D);%0A%0A
test('Rule s
@@ -1979,16 +1979,17 @@
alue('55
+%25
');%0A
@@ -1994,39 +1994,35... |
46ebcbf51d99cd439906cf63a5bf4cefe5ddce45 | make it work with thread expand etc; BEWARE IT NOW NEEDS JQUERY TO BE LOADED BEFORE | js/local-time.js | js/local-time.js | /*
* local-time.js
* https://github.com/savetheinternet/Tinyboard/blob/master/js/local-time.js
*
* Released under the MIT license
* Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
*
* Usage:
* $config['additional_javascript'][] = 'js/local-time.js';
*
*/
onready(function(){
var iso8601 = f... | JavaScript | 0 | @@ -207,16 +207,78 @@
Usage:%0A
+ * $config%5B'additional_javascript'%5D%5B%5D = 'js/jquery.min.js';%0A
* $co
@@ -750,18 +750,56 @@
1);%0A%09%7D;%0A
+%0A%09var do_localtime = function(elem) %7B
%09%0A
+%09
%09var tim
@@ -807,16 +807,12 @@
s =
-document
+elem
.get
@@ -840,16 +840,17 @@
me');%0A%09%0A
+%09... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.