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
e11b39a248dd133f8ac08782935d0b522dd85fd8
Fix rgb values
core/js/placeholder.js
core/js/placeholder.js
/** * ownCloud * * @author John Molakvoæ * @copyright 2016 John Molakvoæ <fremulon@protonmail.com> * @author Morris Jobke * @copyright 2013 Morris Jobke <morris.jobke@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENS...
JavaScript
0
@@ -2624,17 +2624,17 @@ r sat = -8 +7 0;%0A%09%09var @@ -3020,16 +3020,135 @@ %5D);%0A%09%09%7D%0A +%0A%09%09// Reduce values bigger than rgb requirements%0A%09%09rgb%5B0%5D = rgb%5B0%5D%25255;%0A%09%09rgb%5B1%5D = rgb%5B1%5D%25255;%0A%09%09rgb%5B2%5D = rgb%5B2%5D%25255;%0A%0A %09%09var hs
57da431eb5af025766f6935c8678be7828f4c4b1
Update Comments, Add Score
javascript/script.js
javascript/script.js
var lastId; function load(params) { params = params || {}; if(textbox.value == ""){ var subreddit = "all"; }else{ var subreddit = textbox.value; } $.getJSON("http://www.reddit.com/r/"+subreddit+"/.json?limit=75", params, function (data) { var children = data.data.children; $.each(childre...
JavaScript
0
@@ -57,16 +57,119 @@ %7C%7C %7B%7D;%0A + //If this gets called and textbox.value is empty, declare a var and set it equal to textbox.value:%0A %09if(text @@ -872,16 +872,46 @@ title+'%3C +br%3EScore: '+item.data.score+'%3C /span%3E%3C/ @@ -1561,16 +1561,110 @@ oad();%0A%0A +//This function just removes everyth...
57edfe0244b1908c03daf9d602fa5b5d797868ac
update pagelayout mutation to match new structure
graphql/resolvers/mutations/update-page-layout.js
graphql/resolvers/mutations/update-page-layout.js
const { insert, update } = require('../../../data/udify') const ExposedError = require('../../../data/exposed-error') const pageLayout = require('../queries/page-layout') module.exports = async function updatePageLayout(obj, { pathname, input }, { log, state }) { // Find all component ids const [ results ] = await...
JavaScript
0
@@ -770,16 +770,27 @@ device%5D. +components. forEach( @@ -1105,16 +1105,418 @@ d = id%0A%0A + components.push(data)%0A %7D)%0A%0A input%5Bdevice%5D.unusedComponents.forEach((%7B id, component, x, w, textAlign, colour, meta %7D) =%3E %7B%0A const data = %7B%0A pathname%0A , de...
2c0be1958b78376f2f5ea38fd8615105407524c4
Update library-list.js
src/library-list.js
src/library-list.js
window.jsLibs = [ { url: 'https://code.jquery.com/jquery-3.2.1.min.js', label: 'jQuery', type: 'js' }, { url: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js', label: 'Bootstrap 3', type: 'js' }, { url: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', l...
JavaScript
0.000002
@@ -3220,17 +3220,17 @@ es/v5.0. -7 +8 /css/all
ae7a5f140178d7d7ff81781e8ef82a52a2159869
Update build configuration.
assets/js/app.build.js
assets/js/app.build.js
({ appDir: "../", baseUrl: "js", dir: "../../build/public", modules: [ { name: "main" } ], paths: { 'jquery' : "jquery-1.7.1.min", 'jquery-ui' : "jquery-ui-1.8.16.custom.min", 'mustache' : "require-mustache" } })
JavaScript
0
@@ -161,16 +161,24 @@ 'jquery' + @@ -218,16 +218,24 @@ uery-ui' + : %22 @@ -260,24 +260,83 @@ ustom.min%22,%0A + 'jquery-temporaryClass' : %22jquery.temporaryClass%22,%0A 'mus @@ -341,16 +341,24 @@ ustache' + : @@ -376,16 +376,321 @@ stache%22%0A + ...
fb1d3af48385afab7cdb4b3b40a6c73ef1ca2ebe
remove dead code from location picker
app/hotels/src/allHotels/searchForm/locationPicker/LocationPickerScreen.js
app/hotels/src/allHotels/searchForm/locationPicker/LocationPickerScreen.js
// @flow import * as React from 'react'; import { View } from 'react-native'; import { Text, Touchable, StyleSheet, Color, TextInput, } from '@kiwicom/react-native-app-shared'; import { type NavigationType } from '@kiwicom/react-native-app-navigation'; import { PublicApiRenderer } from '@kiwicom/react-native...
JavaScript
0
@@ -3369,43 +3369,8 @@ ew%3E%0A - %7B!this.state.cityId && (%0A @@ -3398,26 +3398,24 @@ r%0A - query=%7Bgraph @@ -3418,18 +3418,16 @@ raphql%60%0A - @@ -3504,18 +3504,16 @@ - ...Sugge @@ -3571,14 +3571,10 @@ - %7D%0A +%7D%0A @@ -3582,18 +3582,16 @@ ...
7f260e1185284f6b1fea35bfacbc06f705ea2f06
test case for lifecycle hook events
test/unit/features/options/lifecycle.spec.js
test/unit/features/options/lifecycle.spec.js
import Vue from 'vue' describe('Options lifecyce hooks', () => { let spy beforeEach(() => { spy = jasmine.createSpy('hook') }) describe('beforeCreate', () => { it('should allow modifying options', () => { const vm = new Vue({ data: { a: 1 }, beforeCreate () { ...
JavaScript
0
@@ -4890,12 +4890,683 @@ %7D)%0A %7D) +%0A%0A it('should emit hook events', () =%3E %7B%0A const created = jasmine.createSpy()%0A const mounted = jasmine.createSpy()%0A const destroyed = jasmine.createSpy()%0A const vm = new Vue(%7B%0A render () %7B%7D,%0A beforeCreate () %7B%0A this.$o...
c10688cf8b2fd84c08fc0a29c077fe233481fe3f
Fix version
app/javascript/components/widgets/climate/emissions-deforestation/index.js
app/javascript/components/widgets/climate/emissions-deforestation/index.js
import { fetchAnalysisEndpoint } from 'services/analysis'; import { getLoss } from 'services/analysis-cached'; import biomassLossIsos from 'data/biomass-isos.json'; import { POLITICAL_BOUNDARIES_DATASET, BIOMASS_LOSS_DATASET } from 'data/layers-datasets'; import { DISPUTED_POLITICAL_BOUNDARIES, POLITICAL_BOUND...
JavaScript
0.000001
@@ -825,17 +825,17 @@ pe) ? 'v -1 +2 ' : 'v3'
a43fc19848313a2aaf4537a34d90eb9797492c28
Fix check all issue of fixed table head
admin/views/assets/javascripts/qor/qor-fixer.js
admin/views/assets/javascripts/qor/qor-fixer.js
(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as anonymous module. define(['jquery'], factory); } else if (typeof exports === 'object') { // Node / CommonJS factory(require('jquery')); } else { // Browser globals. factory(jQuery); } })(function ...
JavaScript
0
@@ -450,32 +450,74 @@ .' + NAMESPACE;%0A + var EVENT_CLICK = 'click.' + NAMESPACE;%0A var EVENT_RESI @@ -536,32 +536,32 @@ .' + NAMESPACE;%0A - var EVENT_SCRO @@ -1288,32 +1288,97 @@ : function () %7B%0A + this.$element.on(EVENT_CLICK, $.proxy(this.check, this));%0A%0A this.$cont @@ -1516,32 +1516...
d3c2de67d6c6ce71272849062c779c0c143b2238
Fix comment
src/inverted-index.js
src/inverted-index.js
/** * This is a class that defines the methods for an object that * creates the inverted index */ class InvertedIndex { /** * Constructor for the Inverted Index class */ constructor() { // Object to store all indexes created this.indexes = {}; } /** * Removes non alphanumeric chracters from...
JavaScript
0
@@ -4941,29 +4941,8 @@ ign -filesToSearch to the firs @@ -4962,16 +4962,52 @@ allArgs +array to the filesToSearch variable if it is
3ea729393dfada994ed08ee7430fd5b25d208a4c
Add isNewUpdate function
akvo/rsr/static/scripts-src/my-results/utils.js
akvo/rsr/static/scripts-src/my-results/utils.js
/* Akvo RSR is covered by the GNU Affero General Public License. See more details in the license.txt file located at the root folder of the Akvo RSR module. For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. */ import fetch from 'isomorphic-fetch'; let m...
JavaScript
0
@@ -445,25 +445,16 @@ months = - months = JSON.pa @@ -4591,28 +4591,18 @@ return -numberString +'' ;%0A%7D%0A%0Alet @@ -4831,12 +4831,107 @@ rings%5Bs%5D;%0A%7D%0A +%0Aexport const isNewUpdate = (update) =%3E %7Breturn update.id.toString().substr(0, 4) === 'new-'%7D;%0A
6cc03b97dc5bdb53dcdd2e0f486ce6a726d10171
Update case progress to Array in test
test/unit/services/test-get-case-progress.js
test/unit/services/test-get-case-progress.js
const expect = require('chai').expect const sinon = require('sinon') require('sinon-bluebird') const proxyquire = require('proxyquire') const breadcrumbHelper = require('../../helpers/breadcrumb-helper') const CASE_PROGRESS = [ { communityLast16Weeks: 1, licenseLast16Weeks: 2, totalCases: 3, warrant...
JavaScript
0
@@ -1394,22 +1394,21 @@ .be.an(' -object +Array ')%0A
6b8df980b2395e258924fd333a746c1bfba63bdd
Add input focus events to GA
assets/js/ga-events.js
assets/js/ga-events.js
$(document).ready(function() { // Profile header links (except scrolly click events for center three links...already included in profile.js) $('.navbar [data-ga]').on('click', function() { ga('send', 'event', { 'eventCategory': 'Profile Events', 'eventAction': 'Profile Header Click', 'eventLab...
JavaScript
0
@@ -853,24 +853,524 @@ %7D);%0A %7D);%0A%0A + // Algolia grants search box%0A $('#search-input').on('focus', function() %7B%0A ga('send', 'event', %7B%0A 'eventCategory': 'Profile Events',%0A 'eventAction': 'Profile Search Focus',%0A 'eventLabel': 'Grants search',%0A %7D);%0A %7D);%0A%0A // ...
da57ae740d30b1c8d1616028139eb96e82157170
Add `ast: true` to transform options for jest
jest/preprocessor.js
jest/preprocessor.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* eslint-env node */ 'use strict'; const {transformSync: babelTransformSync} = require('@babel/core'); /* $FlowFixMe(>=0....
JavaScript
0.00023
@@ -1549,16 +1549,164 @@ ns: %5B%5D,%0A + ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044%0A
0841d496537f5b0b9c57d573b040bf1666be64ed
Fix lunar-en.js layout (#1356)
assets/js/lunr-en.js
assets/js/lunr-en.js
--- --- var idx = lunr(function () { this.field('title', {boost: 10}) this.field('excerpt') this.field('categories') this.field('tags') this.ref('id') }); {% assign count = 0 %} {% for c in site.collections %} {% assign docs = c.docs %} {% for doc in docs %} idx.add({ title: {{ doc.title | jso...
JavaScript
0
@@ -1,12 +1,25 @@ ---%0A +layout: null%0A ---%0A%0Avar
323733c86c65eb42231986cfab89e4c86937ee8b
Fix for IE not parsing JSON
assets/js/lw-custom.js
assets/js/lw-custom.js
// This custom JavaScript file provides some functionality not available from the Jekyll theme // IE compatible fetch command var getJSON = function (url, callback) { var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.responseType = 'json'; xhr.onload = function () { var status = xhr.status; if (st...
JavaScript
0.000002
@@ -305,16 +305,37 @@ status;%0A +%09%09var response = %5B%5D;%0A %09%09if (st @@ -350,16 +350,98 @@ 200) %7B%0A +%09%09%09if (typeof xhr.response === 'string') %7B response = JSON.parse(xhr.response); %7D%0A %09%09%09callb @@ -450,20 +450,16 @@ k(null, -xhr. response @@ -492,20 +492,16 @@ status, -xhr. resp...
788fb8c608ba705d2731401eb631205a27abec8f
Fix oilpro submit url
src/jQuery-BEShare.js
src/jQuery-BEShare.js
/* jshint browser:true,jquery:true */ ;(function($, window, document, undefined) { "use strict"; /*jshint scripturl:true, -W084*/ var $window = $(window), $document = $(document); var TARGETS = { 'Facebook': 'https://www.facebook.com/sharer/sharer.php?u={$url}&t={$title}', 'Twitter': 'https://twitter...
JavaScript
0
@@ -570,23 +570,8 @@ url%7D -&title=%7B&title%7D ',%0A
95a00ccc1726e11e066c89767fccb13392b10473
fix bug with line endpoints not getting selected
core/getClosestEntity.js
core/getClosestEntity.js
function vec(p, q) { return q.clone().subtract(p) } function norm(vec) { return vec.clone().rotateRight().unit() } function perpComp(norm, offset) { return norm.dot(offset); } function project(u, v) { let lengthSq = v.lengthSq() return lengthSq > 0 ? v.clone().mulS(u.dot(v) / v.lengthSq()) : lengthSq } ...
JavaScript
0
@@ -669,352 +669,342 @@ let -linePos = wireVec.dot(offset) / wireVec.lengthSq()%0A // within boundaries of endpoints or radius of either end +rSq = r * r;%0A // within radius of either endpoints%0A let dist = Math.min(wire.p.distanceSq(point), wire.q.distanceSq( point -s +)) %0A if ( -linePos %3E 0 && linePos %...
bc3cc6d436a6a955fe012a9f2653b97344caeadf
change RemoteRobotStore getMotors and getPeripherals to return arrays
app/client/dashboard/stores/RemoteRobotStore.js
app/client/dashboard/stores/RemoteRobotStore.js
/** * Stores data sourced from a physical remote robot. * Includes motor and sensor data. */ import AppDispatcher from '../../dispatcher/AppDispatcher'; import DashboardConstants from '../constants/DashboardConstants'; import {EventEmitter} from 'events'; import assign from 'object-assign'; var ActionTypes = Dashboa...
JavaScript
0
@@ -288,16 +288,40 @@ ssign';%0A +import _ from 'lodash';%0A var Acti @@ -554,22 +554,33 @@ return +_.toArray( motors +) ;%0A %7D,%0A @@ -610,16 +610,26 @@ return +_.toArray( peripher @@ -631,17 +631,64 @@ ipherals -; +); // not that efficient, rewrite if bottleneck. %0A %7D%0A%7D);
6cc0e683842a3130ece3028a2107aa05ff85c57e
Make barRight optional.
src/page/mixin/cartridge-behaviour.js
src/page/mixin/cartridge-behaviour.js
import {isFunction} from 'lodash/lang'; import {dispatcher} from 'focus-core'; import {component as Empty} from '../../common/empty'; export default { /** * Updates the cartridge using the cartridgeConfiguration. */ _registerCartridge() { this.cartridgeConfiguration = this.cartridgeConfigura...
JavaScript
0
@@ -1189,62 +1189,21 @@ -dispatcher.handleViewAction(%7B%0A +let data -: + = %7B%0A - @@ -1285,28 +1285,24 @@ - summaryCompo @@ -1356,36 +1356,32 @@ y%7D,%0A - - actions: cartrid @@ -1428,20 +1428,16 @@ y: %5B%5D%7D,%0A - @@ -1526,83 +15...
4b9e722c4074d3ed6882413daf798d233bc06509
Remove unused import comment
cmd/tchaik/ui/static/js/src/stores/PlayingStatusStore.js
cmd/tchaik/ui/static/js/src/stores/PlayingStatusStore.js
'use strict'; var AppDispatcher = require('../dispatcher/AppDispatcher'); var EventEmitter = require('eventemitter3').EventEmitter; var assign = require('object-assign'); var NowPlayingConstants = require('../constants/NowPlayingConstants.js'); var PlaylistConstants = require('../constants/PlaylistConstants.js'); va...
JavaScript
0
@@ -379,77 +379,8 @@ );%0A%0A -// var CtrlConstants = require('../constants/ControlConstants.js');%0A%0A var
24bc2b5bd368cb5b3f89cd113e5812ec3d6b72f2
Add ListviewSearchingExample Button to UsageScreen & clean up
ignite-base/App/Containers/UsageExamplesScreen.js
ignite-base/App/Containers/UsageExamplesScreen.js
// @flow import React, { PropTypes } from 'react' import { View, ScrollView, Text, TouchableOpacity, Image } from 'react-native' import { connect } from 'react-redux' import LoginActions, { isLoggedIn } from '../Redux/LoginRedux' import TemperatureActions from '../Redux/TemperatureRedux' import { Actions as Navigation...
JavaScript
0
@@ -4711,24 +4711,129 @@ Example%7D /%3E%0A + %3CRoundedButton text='Listview Searching' onPress=%7BNavigationActions.listviewSearchingExample%7D /%3E%0A %3C/View
f3c92acacf350a1f9f34ee50ee8340c271afb868
Fix fetching daemon settings bug
src/renderer/redux/actions/settings.js
src/renderer/redux/actions/settings.js
import * as ACTIONS from 'constants/action_types'; import * as SETTINGS from 'constants/settings'; import Lbry from 'lbry'; import Fs from 'fs'; import Http from 'http'; export function doFetchDaemonSettings() { return function(dispatch) { Lbry.settings_get().then(settings => { dispatch({ type: AC...
JavaScript
0
@@ -95,34 +95,8 @@ gs'; -%0A%0Aimport Lbry from 'lbry'; %0Aimp @@ -139,16 +139,42 @@ http';%0A%0A +import Lbry from 'lbry';%0A%0A export f @@ -507,17 +507,20 @@ const -s +newS ettings @@ -525,25 +525,28 @@ s = %7B%7D;%0A -s +newS ettings%5Bkey%5D @@ -577,17 +577,20 @@ ngs_set( -s +newS ettings) @@ -59...
1d2bee8bdf36f98feb1d4f3c45ede5786c59b7e7
Send feedback when user register new business
app/components/BusinessList/RegisterBusiness.js
app/components/BusinessList/RegisterBusiness.js
// @flow import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import RaisedButton from 'material-ui/RaisedButton'; import DatePicker from 'material-ui/DatePicker'; import TextField from 'material-ui/TextField'; import styles from './BusinessList.css'; // Data - Cliente - Tipo de Page...
JavaScript
0
@@ -69,16 +69,23 @@ eduxForm +, reset %7D from @@ -98,16 +98,16 @@ -form';%0A - import R @@ -368,16 +368,161 @@ amento%0A%0A +const afterSubmit = (result, dispatch) =%3E %7B%0A window.alert('Venda cadastrada com sucesso!!!');%0A return dispatch(reset('RegisterBusiness'));%0A%7D;%0A%0A const up @@ -2122,16 +21...
df4a9c1a457dbaee3146afc7d3a4a66c74c7a087
add a period
app/components/browserwarning/browserwarning.js
app/components/browserwarning/browserwarning.js
/** * 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 is distributed in the...
JavaScript
0.999999
@@ -2302,16 +2302,17 @@ here%3C/a%3E +. %3C/div%3E%0A @@ -2331,20 +2331,16 @@ ;%0A %7D%0A - %0A ret @@ -3086,8 +3086,9 @@ %7D%0A %7D%0A%7D +%0A
ff47a461884f38409c768600457c31d35c94f3ef
fix TabixIndexedFile unit tests
tests/js_tests/spec/TabixIndexedFile.spec.js
tests/js_tests/spec/TabixIndexedFile.spec.js
require({ packages: [{ name: 'jDataView', main: 'jdataview', location: '../jDataView/src' }] }, [ 'dojo/_base/array', 'JBrowse/Browser', 'JBrowse/Store/TabixIndexedFile', 'JBrowse/Model/XHRBlob' ],function( array, Browser, TabixIndexedF...
JavaScript
0
@@ -119,16 +119,50 @@ %5B%0A + 'dojo/_base/declare',%0A @@ -317,16 +317,25 @@ unction( + declare, array, @@ -420,16 +420,269 @@ on() %7B%0A%0A +var VCFIndexedFile = declare( TabixIndexedFile, %7B%0A parseItem: function() %7B%0A var i = this.inherited( arguments );%0A if...
d30e8305689053d5ca9c7130189d211e27df9d07
fix setting date facets
app/facet_selector/facet_selector.controller.js
app/facet_selector/facet_selector.controller.js
'use strict'; (function() { angular.module('facetController', ['tagService']). controller('FacetController', ['$scope', 'Transfer', 'Facet', 'Tag', function($scope, Transfer, Facet, Tag) { $scope.remove_facet = function(name, id) { Facet.remove_by_id(name, id); Transfer.filter(); }; ...
JavaScript
0
@@ -653,240 +653,549 @@ -$scope.set_date_filter = function(start_date, end_date) %7B%0A if (!start_date && !end_date) %7B%0A return;%0A %7D%0A start_date = Date.parse(start_date %7C%7C '0');%0A end_date = Date.parse(end_date %7C%7C '999999999') +var date_is_valid = function(da...
c14a586fa66205bd470960628913e813cc7fe83f
update th right way
app/assets/javascripts/fae/form/inputs/_text.js
app/assets/javascripts/fae/form/inputs/_text.js
/* global Fae, SimpleMDE, toolbarBuiltInButtons */ 'use strict'; /** * Fae form text * @namespace form.text * @memberof form */ Fae.form.text = { init: function() { this.slugger(); this.overrideMarkdownDefaults(); this.initMarkdown(); }, /** * Attach listeners to inputs and update slug fiel...
JavaScript
0
@@ -3742,16 +3742,27 @@ asClass( +fields%5Bi%5D, 'mde-ena @@ -3766,27 +3766,16 @@ enabled' -, fields%5Bi%5D )) %7B%0A @@ -4045,37 +4045,32 @@ ass( -'markdown-enabled', fields%5Bi%5D +fields%5Bi%5D, 'mde-enabled' );%0A
90a44b85bd9b75ad19f6cd89c5adf8960f74f2f9
use app domain variable to render slug redirect on domain form
client/mobilizations/components/form-domain.js
client/mobilizations/components/form-domain.js
import React, { PropTypes } from 'react' import { reduxForm } from 'redux-form' import { FormGroup, ControlLabel, FormControl } from '~client/components/forms' const FormDomain = ({ formComponent: FormComponent, fields: { custom_domain: customDomain }, mobilization, ...formProps }) => ( <FormComponent {...fo...
JavaScript
0
@@ -73,16 +73,58 @@ x-form'%0A +import ServerConfig from '~server/config'%0A import %7B @@ -1532,17 +1532,32 @@ ug%7D. -reboo.org +%7BServerConfig.appDomain%7D %3C/co
bd19a22a275b7e4a308b75ea3c3d49dc52d363a3
fix disabled seconds
app/components/settings/SettingsDataTimeRage.js
app/components/settings/SettingsDataTimeRage.js
// @flow import React, {Component, PropTypes} from 'react'; import {DatePicker} from 'antd'; import moment from "moment"; import * as app from './../../constants/app'; //TODO: ресет значений, если отмена //TODO: время для сегодняшнего дня class SettingsDataTimeRage extends Component { createRange = (start, end) =>...
JavaScript
0
@@ -566,17 +566,17 @@ teRange( -0 +1 , 60);%0A
342845def34b391aae6c000d57f5c6e94efa97cc
Set all textures to use nearest filter.
examples/platformer/content.js
examples/platformer/content.js
/*The MIT License (MIT) Copyright (c) 2016 Jens Malmborg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
JavaScript
0
@@ -2250,16 +2250,105 @@ %0A %7D;%0A + for (var key in this.textures) %7B%0A this.textures%5Bkey%5D.filter = 'nearest';%0A %7D;%0A %7D%0A%7D%0A%0Am
3e1698dd13d084d8c468fc7fcdc86df03d35e5c2
remove disabling of websockets on espruino.com, since they were needed for Espruino relay
core/serial_websocket.js
core/serial_websocket.js
/* Gordon Williams (gw@pur3.co.uk) */ (function() { if (typeof window == "undefined" || typeof WebSocket == undefined) return; if (window.location.origin=="https://www.espruino.com" || window.location.origin=="https://espruino.github.io") { console.log("Running from github/espruino.com - WebSocket su...
JavaScript
0
@@ -128,24 +128,26 @@ n;%0A %0A if ( +/* window.locat @@ -187,16 +187,19 @@ .com%22 %7C%7C + */ %0A w @@ -293,22 +293,8 @@ thub -/espruino.com - W
138c5e4c08d4d9cc44dc6c63bfc8279572222bf4
Add initial game class
src/js/models/game.js
src/js/models/game.js
JavaScript
0
@@ -0,0 +1,2499 @@ +'use strict';%0A%0Avar Frame = require('./frame');%0A%0A/**%0A * @class Game%0A * @constructor%0A */%0Avar Game = function () %7B%0A this.frames = %5B%5D;%0A this.pinsLeftInFrame = 10;%0A%7D;%0A%0AGame.prototype = %7B%0A%0A /**%0A * Sets up game to begin%0A * @method init%0A */%...
c87155d6f9937339186d1df5d22ca27f93586685
Fix chart rendering
app/public/angular/directive/directive.chart.js
app/public/angular/directive/directive.chart.js
var async = require("async"); var uuid = require("uuid"); angular.module('AngularApp.directives') .directive('chart', function($rootScope, $timeout, $compile, chartData) { return { scope: { data: "=", layout: "=", chartLayout: "=" }, restric...
JavaScript
0.000001
@@ -1009,209 +1009,70 @@ -%5B%22chartLayout%22,%22layout%22,%22data%22%5D.forEach(function(variable) %7B%0A scope.$watch(variable, function() %7B%0A $timeout.cancel(timeoutId);%0A timeoutId = $timeout +scope.$watchCollection(%22%5BchartLayout,layout,data%5D%22,...
953ed56e5f4e9878b4b87cc34d6a0c2f7d168190
Update PermissionsModal with connectURL.
assets/js/components/permissions-modal/index.js
assets/js/components/permissions-modal/index.js
/** * PermissionsModal component. * * Site Kit by Google, Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2....
JavaScript
0
@@ -1180,16 +1180,176 @@ or() );%0A +%09const additionalScopes = permissionsError?.data?.scopes;%0A%09const connectURL = useSelect( ( select ) =%3E select( CORE_USER ).getConnectURL( additionalScopes ) );%0A %09const %7B @@ -1874,114 +1874,42 @@ %0A%0A%09%09 -// TODO: Add provisioning API URL here.%0A%09%09global.lo...
1fc46db23a6a3520661c0e0ac97112237f5c47f7
Rebase mistakes
src/js/structs/Job.js
src/js/structs/Job.js
import DateUtil from '../utils/DateUtil'; import Item from './Item'; import JobActiveRunList from './JobActiveRunList'; module.exports = class Job extends Item { getActiveRuns() { return new JobActiveRunList({items: this.get('activeRuns')}); } getCommand() { const {cmd} = this.get('run') || {}; ret...
JavaScript
0.000004
@@ -1551,16 +1551,23 @@ ailureAt + = null , lastSu @@ -1573,16 +1573,23 @@ uccessAt + = null %7D = this @@ -1604,16 +1604,98 @@ atus');%0A + let status = 'N/A';%0A let time = null;%0A%0A if (lastFailureAt !== null) %7B%0A last @@ -1735,24 +1735,67 @@ FailureAt);%0A + %7D%0A%0A if (lastSucces...
d0e0a1bb7995cad2f06e361a6ef314db6eb6fb2d
Connect project storages counter to sidebar label (WAL-52)
app/scripts/controllers/projects-controllers.js
app/scripts/controllers/projects-controllers.js
'use strict'; (function() { angular.module('ncsaas') .controller('ProjectAddController', [ 'projectsService', 'currentStateService', 'baseControllerAddClass', '$rootScope', '$state', 'ncUtilsFlash', ProjectAddController]); function ProjectAddController( projectsS...
JavaScript
0
@@ -3470,24 +3470,65 @@ e: %22storage%22 +,%0A countFieldKey: %22storages%22 %0A
4fc25e12f38ab101f8788d6b729b701c6c5e01fe
Make specifiedByUrl in IntrospectionScalarType's flow type optional (#2788)
src/utilities/getIntrospectionQuery.js
src/utilities/getIntrospectionQuery.js
import type { DirectiveLocationEnum } from '../language/directiveLocation'; export type IntrospectionOptions = {| // Whether to include descriptions in the introspection result. // Default: true descriptions?: boolean, // Whether to include `specifiedByUrl` in the introspection result. // Default: false s...
JavaScript
0
@@ -4016,16 +4016,17 @@ iedByUrl +? : ?strin
26fa595f3166e2d7fa7d8d16319ff57fef015dc7
Update validation util function definitions.
assets/js/modules/tagmanager/util/validation.js
assets/js/modules/tagmanager/util/validation.js
/** * Validation utilities. * * Site Kit by Google, Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * ...
JavaScript
0
@@ -1277,33 +1277,40 @@ %0A */%0Aexport -%7B +function isValid NumericID as @@ -1301,29 +1301,60 @@ alid -Numeric +Account ID +( a -s isValidA +ccountID ) %7B%0A%09return isValidNumericID( a ccou @@ -1358,18 +1358,20 @@ countID +);%0A %7D -; %0A%0A/**%0A * @@ -1672,31 +1672,31 @@ turn isValid -Numeric +A...
c931b25351aab1bfe643c7b6ed38750f433e6260
Align to center
src/routes/StudentInfo/StudentInfo.js
src/routes/StudentInfo/StudentInfo.js
import React, { Component, PropTypes } from 'react' // import Table from '../../../components/table/Table' import { staticID } from '../../utils/unique' import { studentHeader } from '../../routes/Student/components/studentHeader' import { Line } from 'react-chartjs-2' import TableFrame from '../../components/table/Tab...
JavaScript
0.000001
@@ -3902,16 +3902,28 @@ col-md-8 + offset-md-2 '%3E%0A
c080287933678db12031229f3ab54d4ce9e6596a
Fix typo
src/rules/no-useless-path-segments.js
src/rules/no-useless-path-segments.js
/** * @fileOverview Ensures that there are no useless path segments * @author Thomas Grainger */ import path from 'path' import sumBy from 'lodash/sumBy' import resolve from 'eslint-module-utils/resolve' import moduleVisitor from 'eslint-module-utils/moduleVisitor' /** * convert a potentialy relative path from no...
JavaScript
0.999999
@@ -290,16 +290,17 @@ otential +l y relati
a6b24f6af3b3fc1bc2d42e8fecf7a5609329ec34
Make callbacks-baseline correct
benchmark/madeup-parallel/callbacks-baseline.js
benchmark/madeup-parallel/callbacks-baseline.js
require('../lib/fakes'); module.exports = function upload(stream, idOrPath, tag, done) { var tx = db.begin(); var current = 0; var total = global.parallelQueries; function callback(err) { if( err ) { tx.rollback(); done(err); } else { current...
JavaScript
0.999908
@@ -174,45 +174,220 @@ s;%0A%0A +%0A%0A f -unction callback(err) %7B%0A +or( var i = 0; i %3C total; ++i ) %7B%0A FileVersion.insert(%7Bindex: i%7D).execWithin(tx, function onComplete(err) %7B%0A if (onComplete.called) return;%0A onComplete.called = true;%0A if( @@ -378,2...
fa037453fcc3b91a91a8c94741ea03f6ab2a57a9
Switch to fetch() to remove axios dependency
src/web/store/splatoon/data.js
src/web/store/splatoon/data.js
import axios from 'axios'; let updateDataTimer; export const namespaced = true; // State, actions, and mutators are identical for each data source, so this module // generates them automatically from a list of data sources. let dataSources = [ { name: 'schedules', url: '/data/schedules.json', ...
JavaScript
0
@@ -1,32 +1,4 @@ -import axios from 'axios';%0A%0A let @@ -1154,25 +1154,21 @@ -axios.get +fetch (%60/data/ @@ -1231,24 +1231,71 @@ (response =%3E + response.json())%0A .then(data =%3E dispatch('i @@ -1405,25 +1405,16 @@ latnet: -response. data %7D,%0A @@ -1452,54 +1452,8 @@ %7D)) -%...
aa7363e1213bc4d1dc81f648473c1ee35dd83f2c
add contentful attribution
src/layouts/footer.js
src/layouts/footer.js
import React, { Component } from "react"; import styled from "styled-components"; import SoftBricksLogo from "../components/softbricks-logo"; import ResponsiveContainer from "../components/responsive-container"; import Nav from "../components/nav"; import Text from "../components/text"; import Center from "../component...
JavaScript
0.000001
@@ -361,24 +361,65 @@ nts/inset%22;%0A +import Stack from %22../components/stack%22;%0A import Toolb @@ -447,24 +447,24 @@ s/toolbar%22;%0A - import color @@ -680,16 +680,17 @@ ite5%7D;%0A%60 +; %0A%0Aexport @@ -978,32 +978,85 @@ %3CCenter%3E%0A + %3CStack alignItems=%22center%22 scale=%22xl%22...
42ec17758da48c2dea1ba80f3d62eecaebd5bf87
Use MatCSS text initialization
app_server/public/src/js/modules/pages/login.js
app_server/public/src/js/modules/pages/login.js
const m = require('mithril'); const Login = module.exports = { controller: function () {}, view: function (ctrl) { return m('div.row', [ m('form.col offset-s3 s6', [ m('div.input-field col s12', [ m('input#username', {type: 'text'}), m('label', {for: 'username'}, 'Username') ...
JavaScript
0
@@ -24,16 +24,56 @@ ril');%0A%0A +const mz = require('../utils/mzInit');%0A%0A const Lo @@ -176,16 +176,25 @@ iv.row', + mz.text, %5B%0A
c0e7db1bb76455bfb8e66508eb8d4b99a8cb4f67
removed geo nesting
src/server/app/shared/models/event.js
src/server/app/shared/models/event.js
import { Schema } from 'mongoose'; // TO-DO: replace Strings with more appropriate data types const eventSchema = new Schema({ type: { type: String, required: true, enum: [ 'sweep', 'targeted', 'checkpoint', 'traffic', 'i9', 'action', 'other' ], }, descr...
JavaScript
0.999992
@@ -1472,21 +1472,8 @@ er,%0A - geo: %7B%0A @@ -1494,18 +1494,16 @@ er,%0A - longitud @@ -1511,22 +1511,16 @@ : Number -%0A %7D ,%0A de
be6bc61e0be6226af1c1b6fbbee0ffbfee38248c
Bring back useRawDomain for Voyager2
src/services/config/config.service.js
src/services/config/config.service.js
'use strict'; // Service for the spec config. // We keep this separate so that changes are kept even if the spec changes. angular.module('vlui') .factory('Config', function() { var Config = {}; Config.data = {}; Config.config = {}; Config.getConfig = function() { return {}; }; Config...
JavaScript
0
@@ -886,36 +886,35 @@ %7BuseRawDomain: -fals +tru e%7D%0A %7D;%0A
1a68f55fb8749db4d80f6b97d9c03358e2e554bd
fix issue with cached query, but no results
src/spicy-datatable/SpicyDatatable.js
src/spicy-datatable/SpicyDatatable.js
/** * @fileoverview SpicyDatatable * Main entry file for `spicy-datatable` package. Renders a tabele given a tableKey, columns, and rows prop. * For complete documentation of how to use this, refer to the `README.md` or check out the examples in `App.ja` */ import React, { Component, PropTypes } from 'react'; impor...
JavaScript
0.000001
@@ -1813,16 +1813,296 @@ %0A %7D;%0A + if (this.state.searchQuery.length %3E 0) %7B%0A const filterFunction = props.customFilter ? props.customFilter : filterRows;%0A const filteredRows = filterFunction(props.rows, props.columns, this.state.searchQuery) %7C%7C %5B%5D;%0A this.state.filteredRows = ...
4581e624f3c853c2b3a904696e4abeab73130439
Remove nested <div>s to avoid Chrome active link state bug
src/static/js/ace/widget_outsource.js
src/static/js/ace/widget_outsource.js
function makeOutsourceWidget(userlist, sendRequest, options) { var outsourceWidget = {}; var dialogContainer; var lineNo; var reqTxt; var button; outsourceWidget.createRequest = function(selection) { _close(); _init(selection); _show(); }; function _init(selection) { var det...
JavaScript
0
@@ -5113,27 +5113,28 @@ line = $('%3C -div +span %3E').text(fil @@ -5392,16 +5392,32 @@ end(line +.append('%3Cbr/%3E') );%0A
b688d2708bc0a2179b3c6d3060140f5fabc0dfb1
remove unneeded function, this all gets wrapped in a library-wide function so is already hidden to the outside world
src/libs/polyfills.js
src/libs/polyfills.js
(function(){ /** If no implementation of a method called (methodName) exists fill it in with the * implementation given as (filler). */ function polyfill(type, methodName, filler) { var proto = type.prototype; proto[methodName] = proto[methodName] || filler; } /** * Here we have ...
JavaScript
0
@@ -1,23 +1,11 @@ -(function()%7B%0A%0A /* +%0A/** %0A * If @@ -82,22 +82,18 @@ ith the%0A - * - impleme @@ -123,19 +123,13 @@ r).%0A - */ %0A - func @@ -170,19 +170,16 @@ ller) %7B%0A - var p @@ -204,19 +204,16 @@ ype;%0A - - proto%5Bme @@ -257,24 +257,15 @@ er;%0A - %7D%0A%0A...
e0e230fd6ded24d4f3cac0398a451bf21d873935
fix wrong variables name
src/libs/talkative.js
src/libs/talkative.js
import config from '../../config.json'; function commandValid(args) { if (args.length < 3) { return false; } if (!Array.isArray(args)) { return false; } return true; } export function send(status = 'ERROR', msg) { return { status, msg, } } export function analyzeNeed(msg) { try { ...
JavaScript
0.996902
@@ -806,16 +806,23 @@ ... +config. LANGUAGE
42be45ee0a225b141bb44a7de2d8a6e1073dabf9
Add debug menu
src/menus/mainMenu.js
src/menus/mainMenu.js
const { remote } = window.require("electron") const { Menu, dialog, process, app } = remote export default function mainMenu(song, dispatch) { const template = [ { label: "File", submenu: [ { label: "New", click: () => { dispatch("CREATE_SONG") } ...
JavaScript
0.000001
@@ -1,16 +1,51 @@ +import isDev from %22helpers/isDev%22%0A%0A const %7B remote %7D @@ -2141,16 +2141,393 @@ %7D)%0A %7D%0A + %0A if (isDev()) %7B%0A template.push(%7B%0A label: %22Debug%22,%0A submenu: %5B%0A %7B%0A label: 'Toggle Developer Tools',%0A accelerator: process.pl...
b50697acc38c3c19e6e2f4c6eef4b47a33ee46dc
Update JS references to Site Verification REST routes to use new module.
assets/js/components/setup/site-verification.js
assets/js/components/setup/site-verification.js
/** * SiteVerification component. * * Site Kit by Google, Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2....
JavaScript
0
@@ -1910,29 +1910,32 @@ les', 's -earch-console +ite-verification ',%0A%09%09%09%09%09 @@ -3098,21 +3098,24 @@ , 's -earch-console +ite-verification ', '
a21bd0254259d5fc967947cd15faaf59c6a398c7
Use `toString` if environment doesn't support `JSON.stringify`
packages/ember-data/lib/adapters/fixture_adapter.js
packages/ember-data/lib/adapters/fixture_adapter.js
require("ember-data/core"); require("ember-data/system/adapter"); require('ember-data/serializers/fixture_serializer'); var get = Ember.get, fmt = Ember.String.fmt; /** `DS.FixtureAdapter` is an adapter that loads records from memory. Its primarily used for development and testing. You can also use `DS.FixtureA...
JavaScript
0
@@ -157,16 +157,114 @@ ring.fmt +,%0A dump = Ember.get(window, 'JSON.stringify') %7C%7C function(object) %7B return object.toString(); %7D ;%0A%0A/**%0A @@ -1172,30 +1172,20 @@ e %25@', %5B -JSON.stringify +dump (fixture
ad9d2a0ef77bc067a3b4d36f4c679c5bd4939f33
simplify component w/ v2 changes
troposphere/static/js/components/projects/detail/resources/tableData/instance/Size.react.js
troposphere/static/js/components/projects/detail/resources/tableData/instance/Size.react.js
/** @jsx React.DOM */ define( [ 'react', 'backbone', 'stores/SizeStore' ], function (React, Backbone, SizeStore) { return React.createClass({ propTypes: { instance: React.PropTypes.instanceOf(Backbone.Model).isRequired }, render: function () { var identity = t...
JavaScript
0.000005
@@ -72,18 +72,8 @@ ores -/SizeStore '%0A @@ -104,25 +104,22 @@ ckbone, -SizeS +s tore +s ) %7B%0A%0A @@ -289,23 +289,23 @@ var i -dentity +nstance = this. @@ -322,298 +322,77 @@ ance -.get('identity');%0A var providerId = identity.provider;%0A var identityId = identity.id;%0A var ...
86474e1195d0a73ba9c879fe3b45fe9f4dc8ce0c
Fix blog urls for nav
src/static/MainNavNew/Submenu/MagazineDisplay/index.js
src/static/MainNavNew/Submenu/MagazineDisplay/index.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Spacer from 'atoms/Spacer'; import Layout from 'atoms/Layout'; import Col from 'atoms/Layout/Col'; import Hide from 'wrappers/Hide'; import BlogIntro from '../Intro/Blog'; import LinkList from '.....
JavaScript
0.000002
@@ -469,16 +469,67 @@ ePosts'; +%0Aimport fullBlogUrl from '../../utils/fullBlogUrl'; %0A%0Aimport @@ -1789,13 +1789,26 @@ l = +fullBlogUrl( p.url +) ;%0A%0A
bdbd821464726ae6024f27501a151a8f2cd5433e
Fix IE incompatibility.
src/test/test-obviel-template-perf.js
src/test/test-obviel-template-perf.js
/* performance benchmarks loosely based on these: http://genshi.edgewall.org/wiki/GenshiPerformance */ /*global module:false obviel:false test:false ok:false same:false $:false equal:false raises:false asyncTest:false start:false deepEqual: false stop:false */ module("Template Performance", { setup: functi...
JavaScript
0
@@ -430,22 +430,22 @@ );%0A%0Avar -module +obtemp = obvie @@ -1056,30 +1056,30 @@ ested = new -module +obtemp .Template(%0A' @@ -1196,30 +1196,30 @@ _flat = new -module +obtemp .Template(%0A' @@ -1479,30 +1479,30 @@ _view = new -module +obtemp .Template(%0A' @@ -2978,22 +2978,22 @@ e = new -module +obtem...
532fb8e2150c70c627d57f9f72f8232606976a4a
Fix error when unmuting a domain without listing muted domains first
app/javascript/flavours/glitch/reducers/domain_lists.js
app/javascript/flavours/glitch/reducers/domain_lists.js
import { DOMAIN_BLOCKS_FETCH_SUCCESS, DOMAIN_BLOCKS_EXPAND_SUCCESS, DOMAIN_UNBLOCK_SUCCESS, } from '../actions/domain_blocks'; import { Map as ImmutableMap, OrderedSet as ImmutableOrderedSet } from 'immutable'; const initialState = ImmutableMap({ blocks: ImmutableMap(), }); export default function domainLists...
JavaScript
0.000001
@@ -270,16 +270,55 @@ ableMap( +%7B%0A items: ImmutableOrderedSet(),%0A %7D ),%0A%7D);%0A%0A
e1471abba9de41694bd5a4b864119780bfaad5f3
drop submission clone all then
app/modules/submissions/actions/submission-clone-all.js
app/modules/submissions/actions/submission-clone-all.js
import { selected } from "../selectors" import { submissionCloneFunc } from "./submission-clone" import { clone } from "../../../lib/cloneutils" import Promise from "bluebird" const submissionClone = submissionCloneFunc(clone) // PUBLIC: Async thunk action for cloning all selected submissions. export const submission...
JavaScript
0
@@ -561,15 +561,8 @@ 2%7D) -.then() %0A %7D
b895ee783b13a50d4ab0a92c2ea15c2ff7f1e8ae
Fix defaultFontFamily misspelled in createTypography (#13260)
packages/material-ui/src/styles/createTypography.js
packages/material-ui/src/styles/createTypography.js
import deepmerge from 'deepmerge'; // < 1kb payload overhead when lodash/merge is > 3kb. import warning from 'warning'; function round(value) { return Math.round(value * 1e5) / 1e5; } const caseAllCaps = { textTransform: 'uppercase', }; const defaultFontFamiliy = '"Roboto", "Helvetica", "Arial", sans-serif'; /**...
JavaScript
0
@@ -258,17 +258,16 @@ ontFamil -i y = '%22Ro @@ -581,17 +581,16 @@ ontFamil -i y,%0A / @@ -2175,17 +2175,16 @@ ontFamil -i y%0A
f3d466103c7ad4b4eadba27f993d410b8a38485f
fix path resolving
packages/migration/scripts/utils/updateTemplates.js
packages/migration/scripts/utils/updateTemplates.js
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0.000001
@@ -709,16 +709,25 @@ t %7B join +, resolve %7D from @@ -1160,39 +1160,165 @@ %0A%0A -const templateFiles = getFiles( +// templatesDir is relative from the project root,%0A // heence going two levels up.%0A const templateFiles = getFiles(%0A resolve(process.cwd(), '..', '..', temp @@ -1323,24 +1323,28 @@ ...
975666d02d5b31e5cf0721993664d30b99f26f3b
add semi
packages/zent-datetimepicker/src/DateRangePicker.js
packages/zent-datetimepicker/src/DateRangePicker.js
import React, { Component } from 'react'; import classNames from 'zent-utils/classnames'; import DatePanel from './date/DatePanel'; import PanelFooter from './common/PanelFooter'; import { goMonths, isFunction, isArray } from './utils'; import { formatDate, parseDate } from './utils/format'; import clickOutside from '....
JavaScript
0.999982
@@ -5936,16 +5936,17 @@ %7D) +; %0A r
381a4f332e7c78dd81841a312f51348cc34600ef
Use UpdateUserNodeController
assets/js/app/settings/snapshots/snapshot-controller.js
assets/js/app/settings/snapshots/snapshot-controller.js
/** * This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module. * * Note that this file should only contain controllers and nothing else. */ (function() { 'use strict'; angular.module('frontend.settings') .controller('SnapshotController', [ ...
JavaScript
0.000001
@@ -3727,3417 +3727,34 @@ er: -%5B'$scope','$uibModalInstance','$log','NodeModel','InfoService','UserService','$localStorage','_nodes',%0A function($scope,$uibModalInstance,$log,NodeModel,InfoService,UserService,$localStorage,_nodes)%7B%0A%0A ...
79eb0bef6a2322feb6458e65e48e12d1848dc1a5
revert slide show speed back to 9s
public/js/home-hero.js
public/js/home-hero.js
import carouselNavigation from "./carousel-navigation.js"; const homeHero = { init() { this.heroEl = document.querySelector(".js-home-hero"); this.heroFeatures = JSON.parse( this.heroEl.getAttribute("data-hero-features") ); this.heroOverlayEl = document.querySelector(".js-home-hero-overlay"); ...
JavaScript
0
@@ -1347,9 +1347,9 @@ Ms: -4 +9 000,
837fbe84c8884ae12dbf9c306347aab532f9ad38
Fix wrong reference to Image in InputSample
src/onyx-samples/src/InputSample.js
src/onyx-samples/src/InputSample.js
var kind = require('enyo/kind'), utils = require('enyo/utils'); var EnyoImage = require('enyo/Image'); var Checkbox = require('onyx/Checkbox'), Groupbox = require('onyx/Groupbox'), GroupboxHeader = require('onyx/GroupboxHeader'), Input = require('onyx/Input'), InputDecorator = require('onyx/InputDecorator'), ...
JavaScript
0.000005
@@ -1871,32 +1871,36 @@ d'%7D,%0A%09%09%09%09%7Bkind: +Enyo Image, src: '@.. @@ -2320,16 +2320,20 @@ %09%7Bkind: +Enyo Image, s
704030c432809f15581b17f6d90005f24e92acdd
Fix the factory function so that Sequelize 4.x is supported (#139)
src/hooks/hydrate.js
src/hooks/hydrate.js
const factory = (Model, include = null) => { return item => { if (!(item instanceof Model.Instance)) { return Model.build(item, { isNewRecord: false, include }); } return item; }; }; export default options => { options = options || {}; return function (hook) { if (hook.type !== 'after') ...
JavaScript
0.000001
@@ -65,45 +65,353 @@ -if (!(item instanceof Model.Instance) +// (Darren): We have to check that the Model.Instance static property exists%0A // first since it's been deprecated in Sequelize 4.x.%0A // See: http://docs.sequelizejs.com/manual/tutorial/upgrade-to-v4.html%0A const shouldBuild = Model.Instanc...
08eaac64daa1b7bb5137261967cd7c655b7dbc1f
Use jQuery helpers for simplification and compat
jquery.sortBy-0.1.js
jquery.sortBy-0.1.js
/* uses schwartzian transform to sort the selected elements in-place */ (function($) { $.fn.sortBy = function(sortfn) { var values = [], $self = this; this.children().each(function(i,o) { values.push([ $(o), sortfn($(o)) ]); }); values.sort(function(a,b) { return a[1] > b[1] ? 1 : a[1] == b[1]...
JavaScript
0
@@ -153,16 +153,25 @@ his;%0A%0A%09%09 +values = this.chi @@ -178,20 +178,19 @@ ldren(). -each +map (functio @@ -195,18 +195,16 @@ ion( -i, o) %7B%0A%09%09%09 valu @@ -203,20 +203,15 @@ %0A%09%09%09 -values.push( +return %5B $( @@ -228,17 +228,16 @@ ($(o)) %5D -) ;%0A%09%09%7D);%0A @@ -243,20 +243,23 @@ %...
69a349f1865e59c5751e6ec685e41b57bb1b1f9a
Update exampe with new react-filter-box version
js-example/server.js
js-example/server.js
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config'); new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true }).listen(3011, 'localhost', function (err, result) { if (err) { ...
JavaScript
0
@@ -260,10 +260,10 @@ n(30 -11 +00 , 'l
47fea97fdf28b3cfa89d97e307bb8e3f34370a31
Change logged text data to object
js/NetworkManager.js
js/NetworkManager.js
import Logger from './Logger'; /** * The NetworkManager handles the socket connection and * dispatches receiving events */ export default class NetworkManager { /** * Default constructor */ constructor() { this.logger = Logger.create({ prefix: '[NETWORK]' }); this.connectCounter = 0; } async ini...
JavaScript
0.000001
@@ -2265,24 +2265,58 @@ ge(event) %7B%0A +%09%09event = JSON.parse(event.data);%0A %09%09this.logge @@ -2359,48 +2359,8 @@ vent -.data);%0A%0A%09%09event = JSON.parse(event.data );%0A%09 @@ -2489,37 +2489,21 @@ age: ', -JSON.stringify( data) -) ;%0A%0A%09%09thi
2def3584fdad8caeb31c157befd40904c283eb9d
make the default widget factory of the select column public so other people can use it
src/ui/widgets/table/select_column.js
src/ui/widgets/table/select_column.js
goog.provide('recoil.ui.widgets.table.SelectColumn'); goog.require('recoil.frp.Debug'); goog.require('recoil.frp.struct'); goog.require('recoil.ui.widgets.SelectorWidget'); goog.require('recoil.ui.widgets.table.Column'); /** * * @param {recoil.structs.table.ColumnKey} key * @param {string} name * @param {recoil.f...
JavaScript
0
@@ -841,20 +841,8 @@ et%7D%0A - * @private%0A */%0A @@ -898,17 +898,16 @@ tFactory -_ = funct @@ -1786,17 +1786,16 @@ tFactory -_ %7D;%0A%0A
38edd6de8818965b253cfc671b7b4dd2a6f4de11
add android loc strat sanity test
test/functional/apidemos/basic.js
test/functional/apidemos/basic.js
/*global it:true */ "use strict"; var path = require('path') , appPath = path.resolve(__dirname, "../../../sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk") , appPkg = "com.example.android.apis" , appAct = "ApiDemos" , describeWd = require("../../helpers/driverblock.js").describeForApp(appPath, "android...
JavaScript
0
@@ -1075,12 +1075,460 @@ ;%0A %7D);%0A + it('should not fail even when bad locator strats sent in', function(done) %7B%0A h.driver.elementByLinkText(%22foobar%22, function(err) %7B%0A should.exist(err);%0A err.status.should.equal(13);%0A err.cause.value.origValue.should.eql(%22link text is not a su...
c129970b63ccdfbcedca9565d3796f36931362c1
make sure .uri references are injected
source/application/layouts/index.js
source/application/layouts/index.js
import path from 'path'; export default layout; function layout(props) { const styleRefs = (props.reference.style || []).filter(isReference); const scriptRefs = (props.reference.script || []).filter(isReference); return `<!doctype html> <html> <head> <title>${props.title}</title> <meta name="viewport" co...
JavaScript
0
@@ -1610,16 +1610,38 @@ ference) + && !hasUri(reference) ;%0A%7D%0A%0Afun @@ -1683,16 +1683,38 @@ urn 'id' + in reference %7C%7C 'uri' in refe @@ -1802,12 +1802,93 @@ === '.' + %7C%7C%C2%A0hasUri(reference);%0A%7D%0A%0Afunction hasUri(reference) %7B%0A%09return 'uri' in reference ;%0A%7D%0A
04a01b66d2f0f8d629f5a1076c40c2b65027bcd0
Fix tshirt card names
js/app/CardsModel.js
js/app/CardsModel.js
(function (stampit, spoker) { spoker.CardsModel = stampit.compose(spoker.Model, stampit().enclose(function () { function fibonacci(test, acc) { var val; if (acc.length < 2) { val = 1; } else { val = acc[acc.length - 2] + acc[acc.length - 1...
JavaScript
0.000028
@@ -1039,24 +1039,25 @@ 'L', 'XL', ' +X XL', '?'%5D;%0A
c270947ca4113c00e2a7616ccedc10ba27943946
Remove unused var
static/js/states/jobDetails.js
static/js/states/jobDetails.js
define([ 'app', 'utils/sortArray' ], function(app, sortArray) { 'use strict'; var BUFFER_SIZE = 10000; return { url: "jobs/:job_id/", parent: 'build_details', templateUrl: 'partials/job-details.html', controller: function($scope, $http, $filter, projectData, buildData, Collection, ...
JavaScript
0.000001
@@ -82,36 +82,8 @@ ';%0A%0A - var BUFFER_SIZE = 10000;%0A%0A re
df9ccd50c5fb6475a88f4aac77cd0848e2bf7682
Update img path
js/canvasServices.js
js/canvasServices.js
/*global noiseServices*/ var canvasServices = (function () { 'use strict'; var canvas = document.getElementById('mainCanvas'), ctx = canvas.getContext('2d'), fps = 0, lastCalledTime, hasBasePicture = true, hasNoise = true, hasHueVariation = false, reque...
JavaScript
0.000001
@@ -3495,16 +3495,18 @@ .src = ' +./ img/' +
7f706e824de78494ee7fb66bc528aac5161a0bdb
Use exact types for options
packager/src/ModuleGraph/types.flow.js
packager/src/ModuleGraph/types.flow.js
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
JavaScript
0
@@ -1012,17 +1012,18 @@ sult = %7B +%7C %0A - entryM @@ -1071,19 +1071,20 @@ odule%3E,%0A +%7C %7D;%0A - %0Aexport @@ -1550,24 +1550,25 @@ utResult = %7B +%7C %0A code: str @@ -1582,35 +1582,36 @@ map: SourceMap,%0A +%7C %7D;%0A - %0Aexport type Pac @@ -1955,16 +1955,17 @@ sult = %7B +%7C %0A ast: @@...
b31eb0d508c3a7faea8acdca194847c9e56de07a
Correct discovery URL for observe example
js/client.observe.js
js/client.observe.js
var intervalId, iotivity = require( "iotivity" ), handle = {}; // Construct the absolute URL for the resource from the OCDoResource() response function getAbsoluteUrl( response ) { var ipv4Bytes = [], portHolder = {}; if ( iotivity.OCStackResult.OC_STACK_OK !== iotivity.OCDevAddrToIPv4Addr( response.addr, ip...
JavaScript
0
@@ -921,14 +921,14 @@ %09%22/o +i c/ -co re +s %22,%0A%09
23c2bad44cf66c05de53f5be6ed590697b1b383d
add back removed login check
source/views/stoprint/print-jobs.js
source/views/stoprint/print-jobs.js
// @flow import React from 'react' import {Platform, SectionList} from 'react-native' import {connect} from 'react-redux' import {type ReduxState} from '../../flux' import {updatePrintJobs} from '../../flux/parts/stoprint' import {type PrintJob, STOPRINT_HELP_PAGE} from '../../lib/stoprint' import { ListRow, ListSep...
JavaScript
0.000001
@@ -2731,32 +2731,347 @@ %3E%0A%09%09%09)%0A%09%09%7D%0A%09%09if +(this.props.loginState !== 'logged-in') %7B%0A%09%09%09return (%0A%09%09%09%09%3CStoPrintNoticeView%0A%09%09%09%09%09buttonText=%22Open Settings%22%0A%09%09%09%09%09header=%22You are not logged in%22%0A%09%09%09%09%09onPress=%7Bthis.openSettings%7D%0A%...
675055a587d399c81cfe1535307c0c1575a37c5a
Patch for Pong in preso2 (better)
js/foam/flow/Pong.js
js/foam/flow/Pong.js
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ CLASS({ nam...
JavaScript
0
@@ -1673,24 +1673,30 @@ %7B/*%0A +.card pong %7B posit
eb02ab83145067d048cf5ff79f523ad90f1f1749
Update gulp module configuration
js/forum/Gulpfile.js
js/forum/Gulpfile.js
var gulp = require('flarum-gulp'); gulp({ modulePrefix: 'tags' });
JavaScript
0
@@ -48,22 +48,42 @@ dule -Prefix: 'tags' +s: %7B%0A 'tags': 'src/**/*.js'%0A %7D %0A%7D);
db20033a727fb0abebaf793bd12a4ea31eae8e56
update annotation text per feedback
js/plot/util/annotations/annotationdefinitions.js
js/plot/util/annotations/annotationdefinitions.js
/* * == BSD2 LICENSE == * Copyright (c) 2014, 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 progr...
JavaScript
0
@@ -2287,91 +2287,83 @@ ta, -we may have failed to combine a square-wave bolus with this normal bolus to display +this normal and square-wave bolus may not be properly combined to appear as a d
fb11cea191a87815f07f9a64bb7be42d86ee5934
use provided providerFields in my-provider-fields directive
coopr-ui/app/directives/providerfields/providerfields.js
coopr-ui/app/directives/providerfields/providerfields.js
/** * myProviderFields */ angular.module(PKG.name+'.commons').directive('myProviderFields', function myProviderFieldsDirective () { return { restrict: 'E', templateUrl: 'providerfields/providerfields.html', scope: { model: '=', provider: '=' }, controller: function ($scope, myApi) ...
JavaScript
0
@@ -87,17 +87,16 @@ Fields', - %0Afunctio @@ -1467,16 +1467,167 @@ model;%0A%0A + angular.forEach($scope.provider.provisioner, function (v, k) %7B%0A if(v!=='') %7B%0A $scope.model%5Bk%5D = v;%0A %7D%0A %7D);%0A %7D%0A
acd4f0a9952be65ece37dee1b42aa294308a83a4
Fix problem with timeline event
extension/src/handlers/sync.js
extension/src/handlers/sync.js
import config from '../config'; const INTERVAL = config.FLUSH_INTERVAL; var state = { user: null, timeline: null, position: 1, events: [] }; function handleUser (type, e) { state.user = e; } function handlePost (type, e) { var post = Object.assign({ impressionOrder: state.position++,...
JavaScript
0.006671
@@ -710,16 +710,48 @@ e.uuid,%0A + startTime: e.startTime,%0A
763a28997d832800600925bfa70b059238d90236
update to 0.0.3
benchmark/benchmark.js
benchmark/benchmark.js
var cdeps = require('../index'); var detective = require('detective'); var Benchmark = require('benchmark'); var tests = { 'normal': 'require("a");require(\'b"\');require("c\\"");function require(require){return require;}', 'reg & comment': '(1)/*\n*/ / require("a");function require(require){return require;}', '...
JavaScript
0.000002
@@ -894,17 +894,17 @@ %7B%7D': 'do - +%7B /require @@ -918,16 +918,17 @@ test(s); +%7D while(f
bf652822ebfe028077b3f8f77523c7cda2771d2a
Refactor stylesheets gulp task
gulp/tasks/stylesheets.js
gulp/tasks/stylesheets.js
import gulp from 'gulp'; import plumber from 'gulp-plumber'; import postcss from 'gulp-postcss'; import notify from 'gulp-notify'; import config from '../config'; import autoprefixer from 'autoprefixer-core'; import pxtorem from 'postcss-pxtorem'; gulp.task('stylesheets', () => { const processors = [ require('p...
JavaScript
0.000001
@@ -168,44 +168,242 @@ ort -autoprefixer from 'autoprefixer-core +postcssImport from 'postcss-import';%0Aimport postcssMixins from 'postcss-mixins';%0Aimport postcssNested from 'postcss-nested';%0Aimport postcssSimpleVars from 'postcss-simple-vars';%0Aimport postcssColorFunction from 'postcss-color-function ';%0Ai @...
3ab9c8973409c1a753c1eaf6f3bd2a4b1472a894
Remove tests for such functionality
test/policies/proxy/proxy.test.js
test/policies/proxy/proxy.test.js
const path = require('path'); const fs = require('fs'); const request = require('supertest'); const should = require('should'); const config = require('../../../lib/config'); const gateway = require('../../../lib/gateway'); const { findOpenPortNumbers } = require('../../common/server-helper'); const originalGatewayCo...
JavaScript
0.000001
@@ -2130,28 +2130,24 @@ provided', ( -done ) =%3E %7B%0A @@ -2228,16 +2228,30 @@ %0A%0A +return should( setupGat @@ -2274,111 +2274,94 @@ ons) -.catch(err =%3E %7B%0A should(err.message).match(/no such file or directory/);%0A done();%0A %7D +).be.rejectedWith('ENOENT: no such file or ...
659d60b2351446af3d4b037785fae7c742ddc518
Make it possible to show the changelog directly via /about?tab=changelog
public/viewjs/about.js
public/viewjs/about.js
$('[data-toggle="collapse-next"]').on("click", function(e) { e.preventDefault(); $(this).parent().next().collapse("toggle"); });
JavaScript
0.000285
@@ -125,8 +125,150 @@ %22);%0A%7D);%0A +%0Aif ((typeof GetUriParam(%22tab%22) !== %22undefined%22 && GetUriParam(%22tab%22) === %22changelog%22))%0A%7B%0A%09$(%22.nav-tabs a%5Bhref='#changelog'%5D%22).tab(%22show%22);%0A%7D%0A
361ff8930f870c67d5e8ed40a49f8c21ff3314df
Add lint task to run all other lint tasks
gulpfile.js/tasks/lint.js
gulpfile.js/tasks/lint.js
'use strict' var gulp = require('gulp') var standard = require('gulp-standard') var config = require('../config') gulp.task('lint:gulpTasks', function () { return gulp.src(config.scripts.gulpTasks) .pipe(standard()) .pipe(standard.reporter('default', { breakOnError: true })) }) gulp.task('lint:sc...
JavaScript
0.000049
@@ -109,16 +109,93 @@ nfig')%0A%0A +gulp.task('lint', %5B%0A 'lint:gulpTasks',%0A 'lint:scripts',%0A 'lint:tests'%0A%5D)%0A%0A gulp.tas
45ddce08f8a2002d2e3b4b0c784a5519f5cab7f9
add trim to appendContext action
modules/builtin/src/actions/appendContext.js
modules/builtin/src/actions/appendContext.js
const _ = require('lodash') /** * Appends the provided context(s) to the list of contexts that will be used by the NLU Engine * for the next messages for that chat session. * * The TTL (Time-To-Live) represents how long the contexts will be valid before they are automatically removed. * For example, the default v...
JavaScript
0
@@ -1086,16 +1086,23 @@ ontexts. +trim(). split(',
eebf9cf5b52053837ae516afd4c951000d4e3a63
Add docs
cd/src/pipeline-events-handler/deltas/deltas.js
cd/src/pipeline-events-handler/deltas/deltas.js
const getStackFamily = require('./stack-family'); const getChangeSetFamily = require('./change-set-family'); const deltaArrow = require('./delta-arrow'); const deltaValue = require('./delta-value'); /** * Returns a multi-line string describing the parameters that have changed * @param {ParameterDeltas} deltas * @re...
JavaScript
0.000001
@@ -5201,24 +5201,130 @@ /),%0A );%0A%0A + // Some additional parameters that don't make sense to display in Slack are%0A // also filtered out.%0A const al
aea72df1496f7d1b306fc3168cce01cb0a7f3be3
Reimplement throwing to the CI script
tools/scripts/ci/ensure-guide-page-naming.js
tools/scripts/ci/ensure-guide-page-naming.js
const path = require('path'); const fs = require('fs'); const readdirp = require('readdirp-walk'); const guideRoot = path.resolve(__dirname, '../../../guide'); const allowedLangDirNames = [ 'arabic', 'chinese', 'english', 'portuguese', 'russian', 'spanish' ]; function checkDirName(dirName, fullPath) { ...
JavaScript
0
@@ -370,131 +370,8 @@ %0A - const newDirName = dirName.replace(/%5Cs/g, '-');%0A fs.renameSync(fullPath, fullPath.replace(dirName, newDirName));%0A // thr @@ -383,27 +383,18 @@ w Error( -%0A // %60 +%0A Invalid @@ -416,23 +416,8 @@ in -a folder named '$%7Bd @@ -452,22 +452,30 @@ spaces%0A +...
999807608956dabdd958d723f069f4b9d34f21a9
add mean and median to benchmark
benchmark/sub.js
benchmark/sub.js
var ss = require('..') , sock = ss.socket('sub'); sock.connect(3000); var n = 0; var ops = 200; var t = process.hrtime(); sock.on('message', function(msg){ if (n++ % ops == 0) { t = process.hrtime(t); var ms = t[1] / 1000 / 1000; process.stdout.write('\r [' + (ops * (1000 / ms) | 0) + ' ops/s] [' ...
JavaScript
0.000176
@@ -120,16 +120,34 @@ rtime(); +%0Avar results = %5B%5D; %0A%0Asock.o @@ -258,16 +258,84 @@ / 1000;%0A + var persec = (ops * (1000 / ms) %7C 0);%0A results.push(persec);%0A proc @@ -361,39 +361,22 @@ r %5B' + -(ops * (1000 / ms) %7C 0) +persec + ' ops @@ -427,8 +427,425 @@ %0A %7D%0A%7D); +%0A%0Afu...
994034d5abb44b1f008951397d34d43d65884461
Make Google sponsored ads clickable
app/adBlock.js
app/adBlock.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict' const URL = require('url') const ABPFilterParserLib = require('abp-filter-parser-cpp') const ABPFilt...
JavaScript
0.99992
@@ -1030,24 +1030,70 @@ protocol &&%0A + details.resourceType !== 'mainFrame' &&%0A firstP
98b93af35284ceb2d345534e05f13cbce1c8f4c2
test all the locals
test/tests/components/Dropdown.js
test/tests/components/Dropdown.js
import expect from 'expect'; import Dropdown, { Props } from '../../../src/dropdown'; import { newComponent } from '../helpers'; describe('Dropdown', function () { describe('locals', () => { const exampleProps = { id: '12345', className: 'fancy-class-name', style: { margin: 10, position: 'rela...
JavaScript
0.00004
@@ -320,17 +320,245 @@ ative' %7D +,%0A value: %7B value: 'test', label: 'Test' %7D,%0A onChange: () =%3E %7B%7D,%0A options: %5B%0A %7B value: 'test', label: 'Test' %7D,%0A %7B value: 'test1', label: 'Test1' %7D,%0A %7B value: 'test2', label: 'Test2' %7D%0A %5D %0A - %7D...
00b741dbc7c987614467406bf20201678b1b3807
fix bug in browse/query request code that caused success callback to be undefined
js/openbibl.query.js
js/openbibl.query.js
(function() { "use strict"; window.obp.query.subscribers = []; window.obp.query.init = function(file, subscribers){ var obp_query = this; this.subscribers = subscribers; if (window.obp.config.query.data === null) { this.request_query_data(file); } else { t...
JavaScript
0
@@ -722,16 +722,20 @@ le %22' + +file + '%22 n @@ -839,16 +839,19 @@ on_query +(); %0A @@ -1329,170 +1329,22 @@ -window.obp.SaxonCE.requestQueryTransform(%0A window.obp.config.paths%5B'query_xsl'%5D,%0A window.obp.bibliographies.xml,%0A %5B%5D,%0A +var cal...
cc806ae0da5dcb53a8a95e88d044c77e17ecc949
Save tags (#248)
res/sources/source.js
res/sources/source.js
gpf.require.define({}, function () { "use strict"; //region Source and SourceArray definitions return gpf.define({ $class: "Source", constructor: function (array, source, dependencies) { this._array = array; this._name = source.name; this._index = array....
JavaScript
0
@@ -4229,32 +4229,135 @@ ;%0A %7D%0A + if (this._tags.length) %7B%0A result.tags = this._tags.join(%22 %22);%0A %7D%0A retu
8b2ee68642f4014bbfdf57b29641548798dcc000
update code for $off
angular-off.js
angular-off.js
(function () { angular.injector(['ng']).injector.get('$rootScope') .constructor.prototype.$off = function(eventName, fn) { if(this.$$listeners) { if (arguments.length > 1) { var namedListeners = this.$$listeners[eventName]; if(namedListeners) { for(var i ...
JavaScript
0
@@ -1,9 +1,8 @@ -%0A (functio @@ -306,184 +306,61 @@ -for(var i = 0; i %3C namedListeners.length; i++) %7B%0A if(namedListeners%5Bi%5D === fn) %7B%0A namedListeners.splice(i, 1);%0A %7D%0A %7D +namedListeners.splice(namedListeners.indexOf(fn), 1); %0A ...
db3c4a9bb0448d9dfa2896afb0c7ca8e4980d119
Prepare archive helpers on the relavant pages
helpers/archive_helper.js
helpers/archive_helper.js
var _ = require("underscore"); var helper_utils = require("punch").Utils.Helper; var blog_content_handler = require("punch-blog-content-handler"); var all_posts = []; var last_modified = null; var fetch_all_posts = function(callback) { //reset posts list blog_content_handler.allPosts = {}; blog_content_handler.ge...
JavaScript
0
@@ -188,16 +188,407 @@ null;%0A%0A +// TODO: This code is duplicated from punch-blog-content-handler.%0A// Consider moving it to its own helper.%0Avar match_patterns = function(basepath, patterns) %7B%0A%09if (Array.isArray(patterns)) %7B%0A%09%09return _.any(patterns, function(pattern) %7B%0A%09%09%09return basepath...
1e2b39eddf90c8c1edf3b8a1aa96dce624741b83
Fix linting error
commands/publish.js
commands/publish.js
'use strict'; var chalk = require('chalk'), request = require('request'); module.exports = function(program) { var publish; publish = program.command('publish'); publish .description('Publish a theme') .option('-t, --tenant [tenant]', 'required - which tenant to use') .option('-k, --apiKey [...
JavaScript
0.000015
@@ -3601,38 +3601,32 @@ (error, response -, body ) %7B%0A if
f8dfb91df9f16837889da959a0fad16c4b9ed981
Tweak tests for iojs
packages/baby-tolk/test/tolk-basics.js
packages/baby-tolk/test/tolk-basics.js
'use strict'; var Path = require('path'); var expect = require('unexpected').clone(); expect.installPlugin(require('unexpected-promise')); expect.addAssertion('string', 'to begin with', function (expect, subject, cmp) { expect(cmp, 'to be a string'); expect(subject.substr(0, cmp.length), 'to be', cmp); }); var...
JavaScript
0
@@ -932,32 +932,35 @@ essage: /%5EENOENT +.*? , open '.+?fixtu @@ -1582,16 +1582,19 @@ /%5EENOENT +.*? , open '