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 |
|---|---|---|---|---|---|---|---|
ace48d57e2db1ec33fd2f0599bc7161774db0ae2 | Fix flex-basis for checkbox | src/components/Checkbox/Checkbox.js | src/components/Checkbox/Checkbox.js | import React, {PropTypes, Component} from 'react'
import {colors, iconSizes} from '../../variables'
import {CheckIcon} from '../../icons'
const defaultContainerStyle = {
display: 'flex'
}
const defaultLabelStyle = {
display: 'block',
fontWeight: 600,
marginBottom: '0.5rem',
maxWidth: '100%'
}
const defaultC... | JavaScript | 0.000005 | @@ -3186,21 +3186,16 @@
ex: '1 1
- auto
'%7D%7D%3E%0A
|
cda20c21456df5a2a1baf7e9285613a87674c0fc | Fix clone() | src/helpers/GridHelper.js | src/helpers/GridHelper.js | /**
* @author mrdoob / http://mrdoob.com/
*/
import { LineSegments } from '../objects/LineSegments.js';
import { VertexColors } from '../constants.js';
import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
import { Float32BufferAttribute } from '../core/BufferAttribute.js';
import { BufferGeometry }... | JavaScript | 0 | @@ -449,16 +449,115 @@
r2 ) %7B%0A%0A
+%09this.parameters = %7B%0A%09%09size: size,%0A%09%09divisions: divisions,%0A%09%09color1: color1,%0A%09%09color2: color2%0A%09%7D;%0A%0A
%09size =
@@ -1582,16 +1582,31 @@
totype =
+ Object.assign(
Object.
@@ -1641,55 +1641,351 @@
pe )
-;%0AGridHelper.prototype.constructor ... |
47897abc3427b6a23b331435f5ed79231e4bc876 | validate on current value not last value | src/components/Form/Inputs/Input.js | src/components/Form/Inputs/Input.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import View from './InputView'
import Validators from './Validators'
export default class TextInput extends Component {
static propTypes = {
autocomplete: PropTypes.string,
defaultValue: PropTypes.string,
formId: PropTypes.strin... | JavaScript | 0.000005 | @@ -1547,24 +1547,29 @@
his.isValid(
+value
)%0A this.s
@@ -1750,16 +1750,21 @@
alid = (
+value
) =%3E %7B%0A
@@ -1845,16 +1845,25 @@
Ex.test(
+value %7C%7C
this.val
|
6c2775aad92b709958389b3144b48ca1f0d47f80 | Fix syntax errors made in previous commit | src/components/Header/HeaderView.js | src/components/Header/HeaderView.js | import classNames from 'classnames';
import React, { PropTypes } from 'react';
const HeaderView = ({
items,
githubLink,
onLabelClick
}) => (<div className="github-embed-nav">
{items.map(({ shown, label }, index) =>
<a
className={classNames({
'github-embed-nav-link': ... | JavaScript | 0 | @@ -683,17 +683,15 @@
%3C/
-div
+a
%3E%0A%3C/
-na
+di
v%3E);
|
63634cab1ec749671899524c4d7b5f2d83679df0 | optimize brotli for text | src/http/compress-file.js | src/http/compress-file.js | const zlib = require('zlib');
module.exports = ({ req, res, realContentType, headers, data }) => {
const accept = req.headers['accept-encoding'] || '';
const supportGzip = /\bgzip\b/.test(accept);
const supportBrotli = /\bbr\b/.test(accept);
const shouldCompress =
(supportGzip || supportBrotli)
&& !/^... | JavaScript | 0.999999 | @@ -483,16 +483,32 @@
pressor,
+ compressorOpts,
content
@@ -606,16 +606,285 @@
= 'br';%0A
+ compressorOpts = %7B%0A chunkSize: 32 * 1024,%0A params: %7B%0A %5Bzlib.constants.BROTLI_PARAM_MODE%5D: zlib.constants.BROTLI_MODE_TEXT,%0A %5Bzlib.constants.BROTLI_PARAM_QUALITY%5D: 4,%0A ... |
f71c89b71e74bc942fb2eadb0351ac2c13120ed4 | Add ref for file upload dropZone | src/components/file-upload/index.js | src/components/file-upload/index.js | import { h, Component } from 'preact';
import Dropzone from 'react-dropzone';
import style from './style';
export default class FileUpload extends Component {
constructor(props) {
super(props);
this.state = {
isFileSelected: false,
file: false,
};
this.handleFileDrop = this.handleFileDr... | JavaScript | 0 | @@ -195,16 +195,45 @@
rops);%0A%0A
+ this.dropzoneRef = null;%0A
this
@@ -905,16 +905,73 @@
=%22.stl%22%0A
+ ref=%7B(node) =%3E %7B this.dropzoneRef = node; %7D%7D%0A
|
f8f865e7678c1cd52518300dd4d0d5a801d582bc | Update Help Props So Popup Remains On-Screen | src/components/help/help.stories.js | src/components/help/help.stories.js | import React from 'react';
import { storiesOf } from '@storybook/react';
import { text, select } from '@storybook/addon-knobs';
import OptionsHelper from '../../utils/helpers/options-helper';
import notes from './notes.md';
import Help from './help';
storiesOf('Help', module)
.add('default', () => {
const childr... | JavaScript | 0 | @@ -470,41 +470,15 @@
-Help.defaultProps.tooltipPosition
+'right'
%0A
|
38294f9ad271cbec65950b751bd113ede1cf096a | fix table header alignment | apps/app/src/components/Table.js | apps/app/src/components/Table.js | import * as React from "react";
import styled, { x } from "@xstyled/styled-components";
import { LinkBlock } from "./Link";
export const Table = (props) => (
<x.table w={1} borderCollapse="collapse" textAlign="left" {...props} />
);
export const Tr = (props) => (
<x.tr borderBottom={1} borderColor="border" {...pr... | JavaScript | 0.000074 | @@ -544,18 +544,16 @@
dding: 2
- 4
;%0A font
|
b31e16593b7b902daf8fe4a4662892e5934e1580 | add React Router | src/components/skills/MainSkills.js | src/components/skills/MainSkills.js | import React from 'react'
class MainSkills extends React.Component {
render () {
return (
<div>
<dl className="skill-list">
<dt className="category">Programmiersprachen /<br />Plattformen</dt>
<dd className="details">
<ul>
<li className="high">JavaScri... | JavaScript | 0.000001 | @@ -2399,32 +2399,86 @@
gh%22%3ERedux,%3C/li%3E%0A
+ %3Cli className=%22high%22%3EReact Router,%3C/li%3E%0A
%3Cl
|
62b122f979e40abe9fcdc05999b360f8c92df1cb | Update ng-context-menu.js | src/ng-context-menu.js | src/ng-context-menu.js | /**
* ng-context-menu - v0.1.4 - An AngularJS directive to display a context menu when a right-click event is triggered
*
* @author Ian Kennington Walter (http://ianvonwalter.com)
*/
angular
.module('ng-context-menu', [])
.factory('ContextMenuService', function() {
return {
element: null,
menuEl... | JavaScript | 0 | @@ -1953,16 +1953,18 @@
+//
console.
@@ -3447,8 +3447,9 @@
;%0A %7D%5D);
+%0A
|
64e1b0ff9b61b5ac28ccb8d7d323b86101d74bd7 | fix bug about using es6 import | src/containers/Performance/index.js | src/containers/Performance/index.js | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import Perf from 'react-addons-perf';
import { connect } from 'react-redux';
import * as articleActions from '../../actions/articleActions';
import * as performanceActions from '../../actions/performanceActions';
import Article from './Articl... | JavaScript | 0 | @@ -1605,22 +1605,24 @@
%0A%7D%0A%0A
-export default
+module.exports =
con
|
e2fb49da71cba3462830513d777dcfe7ec362fd8 | fix ie9 Sky.startup ("Enhanced Support Across A Broad Diversity Of Customer Platform") | packages/startup/startup_client.js | packages/startup/startup_client.js | if (typeof Sky === "undefined") Sky = {};
(function() {
var queue = [];
var loaded = document.readyState === "loaded" ||
document.readyState == "complete";
var ready = function() {
loaded = true;
while (queue.length)
(queue.shift())();
};
if (document.addEventListener) {
document.addE... | JavaScript | 0 | @@ -649,16 +649,52 @@
Scroll =
+ !document.addEventListener &&%0A
documen
|
9d269914032336e81f7b2a3f15d202454902c238 | Add ObjectRoleModel.roleUsers for user/role mapping | src/objectRoleModel.js | src/objectRoleModel.js | import {BaseModel} from 'nxus-storage'
export default BaseModel.extend({
attributes: {
role: {
model: 'users-role'
},
object: {
model: 'subclass-must-define'
},
user: {
model: 'users-user'
}
}
})
| JavaScript | 0 | @@ -229,15 +229,337 @@
'%0A %7D%0A
+ %7D,%0A%0A roleUsers(object) %7B%0A return this.find(%7Bobject: object%7D).populate('role').populate('user').then((roles) =%3E %7B%0A let ret = %7B%7D%0A for (let r of roles) %7B%0A let name = r.role.role%0A if (!ret%5Bname%5D) %7B%0A ret%5B... |
d0940596360658a29215d99fba1ce348586a4c29 | update vote arrays on post document | app/imports/api/votesMethods.js | app/imports/api/votesMethods.js | import { Posts } from '/imports/collections/posts.js';
export const doVote = new ValidatedMethod({
name: 'Votes.methods.vote',
validate: new SimpleSchema({
postId: {
type: String,
},
voteValue: {
type: String,
},
}).validator(),
run({postId, voteValue}) {
console.log(voteValue)... | JavaScript | 0 | @@ -203,123 +203,1095 @@
-voteValue: %7B%0A type: String,%0A %7D,%0A %7D).validator(),%0A%0A run(%7BpostId, voteValue%7D) %7B%0A console.log(voteValue);
+fingerprint: %7B%0A type: String,%0A %7D,%0A voteValue: %7B%0A type: String,%0A %7D,%0A upVotes: %7B%0A type: %5BString%... |
344b5f45a1370d45dd59ab4edba72634ba54aee7 | Remove unnecessary trace | app/js/controllers/searchbox.js | app/js/controllers/searchbox.js | var searchCtrl = function ($scope, $http, $location) {
$scope.results = [];
$scope.moreCount = 0;
$scope.$watch('searchTarget', function(newValue) {
if (newValue && newValue.length > 0) {
console.log(newValue);
$http.get('api/search?q=' + newValue).success(function (data) {... | JavaScript | 0.00016 | @@ -207,43 +207,8 @@
) %7B%0A
- console.log(newValue);%0A
@@ -525,25 +525,29 @@
og(%22
-an e
+E
rror
-happened
+in searchbox.js
%22);%0A
|
eb4cc657500fc5f642ed5147a65f4ffc31cb5d82 | Fix issue with .val() returning back the placeholder value. | src/jquery.placeholder.js | src/jquery.placeholder.js | (function ($) {
"use strict";
$.extend({
placeholder: {
settings: {
focusClass: 'placeholderFocus',
activeClass: 'placeholder',
overrideSupport: false,
preventRefreshIssues: true
}
}
});
// check browser support for placeholder
$.support.placeholder = 'pl... | JavaScript | 0.000845 | @@ -1,16 +1,172 @@
+/*! jQuery Placeholder Plugin - v0.7.0 - 2012-12-03%0A* http://andrew-jones.com/jquery-placeholder-plugin%0A* Copyright (c) 2012 Andrew Jones; Licensed MIT */%0A%0A
(function ($) %7B%0A
@@ -629,24 +629,38 @@
n (value) %7B%0A
+ var el;%0A
if (type
@@ -683,24 +683,178 @@
defined') %7B%0A
... |
8adc44fd3aa11333c1daaa6048372e52f6fae467 | Use oneOf for hover style props | src/js/components/Tile.js | src/js/components/Tile.js | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import Props from '../utils/Props';
import Box from './Box';
const CLASS_ROOT = "tile";
export default class Tile extends Component {
render () {
const... | JavaScript | 0 | @@ -1331,30 +1331,55 @@
: PropTypes.
-string
+oneOf(%5B'border', 'background'%5D)
,%0A hoverCol
|
c8fae8c411e6f29e43eec5194a4e3a0c9a24889b | add on_files_page function | app/assets/javascripts/pages.js | app/assets/javascripts/pages.js | // on messaging page?
var on_messaging_page = function() {
var on_page = false;
if ($("#messaging_page").length > 0) {
on_page = true;
}
return on_page;
};
// on edit profile page?
var on_profile_page = function() {
var on_page = false;
if ($("#edit_profile_page").length > 0) {
on_page = true;
}
... | JavaScript | 0.000002 | @@ -1051,16 +1051,185 @@
e; %0A%7D;%0A%0A
+// on new manage users page?%0Avar on_files_page = function() %7B%0A var on_page = false;%0A if ($(%22#files_page%22).length %3E 0) %7B%0A on_page = true;%0A %7D%0A return on_page; %0A%7D;%0A%0A
var sign
|
48a26e718fc1c79f21ede4f1b218702b276a96b8 | fix typo | commands/pushall.js | commands/pushall.js | var async = require('async');
var exec = require('child_process').exec;
/*
* this command is called pushall as there is a weird Node bug when calling the command 'push' - try bosco push to see.
*/
module.exports = {
name: 'pushall',
description: 'Will push any changes across all repos - useful for batch updates... | JavaScript | 0.999991 | @@ -323,16 +323,17 @@
typicall
+y
used af
|
f14c029c211db032caa369815d42ff9d5da5a3eb | Fix catalog issue | app/catalog-tab/launch/route.js | app/catalog-tab/launch/route.js | import EmberObject from '@ember/object';
import { hash } from 'rsvp';
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { get/* , set */ } from '@ember/object';
export default Route.extend({
modalService: service('modal'),
catalog: service(),
scope: service... | JavaScript | 0.000001 | @@ -173,19 +173,13 @@
get
-/*
, set
- */
%7D f
@@ -2210,25 +2210,24 @@
if (
-
results.
upgrade
@@ -2222,155 +2222,118 @@
lts.
-upgrade )%0A %7B%0A verArr.unshift(%7B%0A sortVersion: results.upgrade.version,%0A version: results.upgrade.version + ' (current)
+app) %7B%0A ... |
61d6047a9fdad4e8978a17e5cf958b4f426716c5 | Add test messages for gender | app/models/user.server.model.js | app/models/user.server.model.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto');
/**
* A Validation function for local strategy properties
*/
var validateLocalStrategyProperty = function(property) {
return ((this.provider !== 'local' && !this.updated) || pro... | JavaScript | 0.000039 | @@ -568,24 +568,46 @@
n(gender) %7B%0A
+%09console.log(gender);%0A
%09if (gender
@@ -639,24 +639,58 @@
'female') %7B%0A
+%09%09console.log('test: ' + gender);%0A
%09%09return tru
|
4d705da1c13434363693d22435efb0ac993d191a | fix wine list html strucuture | app/client/js/views/wineview.js | app/client/js/views/wineview.js | /* global Marionette, Handlebars */
/**
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
... | JavaScript | 0.000013 | @@ -2416,17 +2416,16 @@
%0A%09%09'%3Ctd%3E
-%3C
%7B%7B wines
|
287f23cfc681a1ef122cbd5b23390375cec0784e | Add comment | app/modules/common.factories.js | app/modules/common.factories.js | (function() {
'use strict';
angular.module('common.factories', [])
/**
* Clone Object
*
* @param {array|object} will be clone
* @return {array|object} cloned
*/
.factory('objectUtilities', [function() {
var cloneObject = function(object) {
return JSON.parse(JSON.stri... | JavaScript | 0 | @@ -79,16 +79,174 @@
*%0A *
+ Object utilities%0A *%0A * Useful object's function for handling object %0A *%0A */%0A .factory('objectUtilities', %5Bfunction() %7B%0A%0A /**%0A *
Clone O
@@ -252,26 +252,30 @@
Object%0A
-*%0A
+ *%0A
* @para
@@ -306,16 +306,18 @@
e clon... |
3cc108e5008c69166c9fc4ad56c90ccb4d0b78ff | Fix import in employee.new controller | app/controllers/employee/new.js | app/controllers/employee/new.js | import EmployeeController from '../employee.js';
var EmployeeNewController = EmployeeController;
export default EmployeeNewController;
| JavaScript | 0.000001 | @@ -40,11 +40,8 @@
oyee
-.js
';%0D%0A
|
818782dace5ddd87ae9cbc34412573d78ba983f9 | standardize json error object to return { status, msg } | app/resources/services/geoip.js | app/resources/services/geoip.js | const request = require('request')
const redis = require('redis')
const config = require('config')
const chalk = require('chalk')
const logger = require('../../../lib/logger.js')()
const util = require('../../../lib/util.js')
const IP_GEOLOCATION_TIMEOUT = 500
exports.get = function (req, res) {
// Prevent this ser... | JavaScript | 0.999999 | @@ -500,21 +500,19 @@
s: 403,
-error
+msg
: 'I%E2%80%99m s
@@ -933,29 +933,27 @@
tatus: 500,
-error
+msg
: 'The serve
@@ -1441,21 +1441,19 @@
s: 503,
-error
+msg
: 'The I
@@ -1947,21 +1947,19 @@
s: 500,
-error
+msg
: 'The I
|
2a3aee6fc2642a152bdcad8e049436d19e274bc3 | define a "dummy" Symbol | runtime/js/runtime.js | runtime/js/runtime.js | // Copyright (c) 2015 Tzvetan Mikov.
// Licensed under the Apache License v2.0. See LICENSE in the project
// root for complete license information.
// Global
function isNaN (number)
{
return __asm__({},["result"],[["number", Number(number)]],[],
"%[result] = js::makeBooleanValue(isnan(%[number].raw.nval)... | JavaScript | 0.023771 | @@ -4107,16 +4107,86 @@
uffer;%0A%0A
+var Symbol; // FIXME: this is just a dummy to facilitate compilation%0A%0A
// A few
|
45ff1e8a0024ea054e7ca594b7f33591615940cd | add other action types | client/constants/ActionTypes.js | client/constants/ActionTypes.js | export const ADD_MESSAGE = 'ADD_MESSAGE';
export const RECEIVE_MESSAGE = 'RECEIVE_MESSAGE';
export const LOAD_MESSAGES = 'LOAD_MESSAGES';
export const LOAD_MESSAGES_SUCCESS = 'LOAD_MESSAGES_SUCCESS';
export const LOAD_MESSAGES_FAIL = 'LOAD_MESSAGES_FAIL';
export const RECEIVE_MESSAGES = 'RECEIVE_MESSAGES';
export cons... | JavaScript | 0.000026 | @@ -10,184 +10,44 @@
nst
-ADD_MESSAGE = 'ADD_MESSAGE';%0Aexport const RECEIVE_MESSAGE = 'RECEIVE_MESSAGE';%0Aexport const LOAD_MESSAGES = 'LOAD_MESSAGES';%0Aexport const LOAD_MESSAGES_SUCCESS = 'LOAD_MESSAGES
+CREATE_GROUP_SUCCESS = 'CREATE_GROUP
_SUC
@@ -70,48 +70,52 @@
nst
-LOAD_MESSAGES
+CREATE_GROUP
_FAIL
+UR... |
dc12d2cea4f9f15e395f5893c4f25541842160a9 | update blog url | app/scripts/controllers/blog.js | app/scripts/controllers/blog.js | 'use strict';
angular.module('scoreWebsiteApp')
.controller('BlogCtrl', function () {
window.location.replace('http://blog.openscore.io');
//_.forEach($('.navbar-collapse'), function(target) {
// $(target).collapse({'toggle': false});
//});
//
//$rootScope.section... | JavaScript | 0 | @@ -133,17 +133,18 @@
log.
-openscore
+cloudslang
.io'
|
bf4d02a6573b5913288fd34ca3fde5bb9d019a13 | refresh global status after task status changed | app/scripts/controllers/main.js | app/scripts/controllers/main.js | (function () {
'use strict';
angular.module('ariaNg').controller('MainController', ['$rootScope', '$scope', '$route', '$location', '$interval', 'ariaNgCommonService', 'ariaNgSettingService', 'aria2TaskService', 'aria2SettingService', function ($rootScope, $scope, $route, $location, $interval, ariaNgCommonServi... | JavaScript | 0 | @@ -2341,32 +2341,74 @@
tion (result) %7B%0A
+ refreshGlobalStat(false);%0A
@@ -2416,32 +2416,32 @@
route.reload();%0A
-
%7D);%0A
@@ -2874,32 +2874,78 @@
tion (result) %7B%0A
+ refreshGlobalStat(false);%0A
@@ -3350,32 +3350,32 @@
, f... |
9da0267a8e5503fa87f35747cd38174c06f66ef5 | fix post message twice | app/scripts/controllers/main.js | app/scripts/controllers/main.js | 'use strict';
var shell = require('shell');
var remote = require('remote');
var appConfig = remote.require('./lib/app-config');
/**
* @ngdoc function
* @name hipslackApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the hipslackApp
*/
angular.module('hipslackApp')
.controller('MainCtrl', fun... | JavaScript | 0.000006 | @@ -3048,32 +3048,99 @@
= function() %7B%0A
+ var message = $scope.inputText;%0A $scope.inputText = %22%22;%0A
var getUrl
@@ -3573,32 +3573,23 @@
essage:
-$scope.inputText
+message
%7D, %0A
|
1d2c660523a47694e29a0b3b066109c5043b6308 | update cancel display message | src/ui/a.grade-importer.picker.controller.client.js | src/ui/a.grade-importer.picker.controller.client.js | var DEVELOPER_KEY = 'AIzaSyCgyLaEarqrUnu9jmF82pl2R4WD_ywry2Q';
var DIALOG_DIMENSIONS = {width: 600, height: 425};
var pickerApiLoaded = false;
/**
* Loads the Google Picker API.
*/
function onApiLoad() {
gapi.load('picker', {
'callback': function() {
pickerApiLoaded = true;
}
});
google.script.r... | JavaScript | 0.000001 | @@ -2006,19 +2006,49 @@
ror(
-%0A
+'%3Cdiv class=%22msg msg-error%22%3E' +%0A
'
-%3Cp%3E
Unab
@@ -2092,19 +2092,32 @@
y again.
-%3C/p
+' +%0A '%3C/div
%3E' +%0A
@@ -2132,21 +2132,16 @@
Button()
-%0A
);%0A %7D%0A%7D
@@ -2698,18 +2698,61 @@
ose = '%3C
-p%3E
+div class=%22msg msg-information%2... |
8385633bb28bd63782e1caabe27b0947ac5edccc | Fix button display | app/scripts/services/session.js | app/scripts/services/session.js | 'use strict';
/**
* @ngdoc service
* @name waxeangularApp.Session
* @description
* # Session
* Factory in the waxeangularApp.
*/
angular.module('waxeApp')
.service('Session', ['$http', '$q', '$route', 'Utils', 'UserProfile', 'AccountProfile', 'NavbarService', function ($http, $q, $route, Utils, UserProfile, ... | JavaScript | 0.000001 | @@ -2519,16 +2519,23 @@
ditFile(
+false,
false);%0A
|
b4ead312a75f2f3bac4dc67f6ee00a36e5e31bce | Fix for temperature points duplicating due to Collection.set | examples/svg/js/app.js | examples/svg/js/app.js | var template = require('../templates/svg_view.mustache');
var TungstenBackboneBase = require('tungstenjs/adaptors/backbone');
var elem = document.getElementById('appwrapper');
var DemoModel = TungstenBackboneBase.Model.extend({
relations: {
clock: TungstenBackboneBase.Model,
chart: TungstenBackboneBase.Mod... | JavaScript | 0 | @@ -319,105 +319,8 @@
odel
-.extend(%7B%0A relations: %7B%0A temperatures: TungstenBackboneBase.Collection%0A %7D%0A %7D)
%0A %7D
|
865f95aaf593b70e60184d2f6920c3618409606e | Add citation | app/static/game/js/common.js | app/static/game/js/common.js | //javascript file to put commonly used functions between webpages in.
//Generates a random number between min (inclusive) and max (exclusive)
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
//function for determining if an image was correctly chosen
function isCorrect(c... | JavaScript | 0.000001 | @@ -497,16 +497,101 @@
website%0A
+//Based on http://stackoverflow.com/questions/955217/synchronous-jquery-json-request%0A
function
|
92765e05b929ba133820f166d5182688d4bcc788 | allow number keys to be used in input field | app/app/controllers/evolve.js | app/app/controllers/evolve.js | import Ember from 'ember';
var Population = require('asNEAT/population')['default'];
var MINUS_CODE = "-".charCodeAt(),
MULT_CODE = "*".charCodeAt(),
PLUS_CODE = "+".charCodeAt(),
DEC_CODE = ".".charCodeAt(),
ENTER_CODE = 13;
export default Ember.Controller.extend({
needs: ['application'],
// s... | JavaScript | 0.000001 | @@ -3170,36 +3170,8 @@
) %7B%0A
- e.preventDefault();%0A
@@ -3197,24 +3197,24 @@
tParents');%0A
+
%7D%0A
@@ -3319,36 +3319,8 @@
))%7B%0A
- e.preventDefault();%0A
@@ -3440,36 +3440,8 @@
) %7B%0A
- e.preventDefault();%0A
@@ -3595,36 +3595,8 @@
) %7B%0A
- e.pre... |
a24e754c803fa7e79dda922c4bbbd799db6ed8f8 | Fix documentation of historyRecords property. | guacamole/src/main/webapp/app/settings/directives/guacSettingsConnectionHistory.js | guacamole/src/main/webapp/app/settings/directives/guacSettingsConnectionHistory.js | /*
* Copyright (C) 2015 Glyptodon LLC
*
* 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, publi... | JavaScript | 0 | @@ -2236,60 +2236,116 @@
*
-The identifier of the currently-selected data source
+All matching connection history records, or null if these%0A * records have not yet been retrieved
.%0A
@@ -2370,38 +2370,56 @@
* @type
-String
+ConnectionHistoryEntry%5B%5D
%0A */
|
3f77e9f3fe0ff27e8e2b5ca1e6c7252332e5d795 | squish the time/date | app/assets/javascripts/app.js | app/assets/javascripts/app.js | function setup(data, percentages, strategies, strategy_ids) {
var options = {
series: {
lines: { show: true },
points: { show: true },
},
xaxis: { mode: 'time',
timezone: 'browser',
timeformat: "%m/%d %I%p",
tickSize: [1, "hour"]},
legend: { posi... | JavaScript | 0.999997 | @@ -250,17 +250,21 @@
: %22%25
-m/%25d %25I%25p
+I%25p%3Cbr/%3E%25m/%25d
%22,%0A
|
5211ac2b30e72971b365448a396da687a1b43843 | add geocoder to address so map shows exact location of shop | app/assets/javascripts/map.js | app/assets/javascripts/map.js |
var address = "1600 Amphitheatre Parkway, Mountain View";
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: {lat: -34.397, lng: 150.644}
});
var geocoder = new google.maps.Geocoder();
geocodeAddress(geocoder, map);
}
function geocodeAddress(geoc... | JavaScript | 0 | @@ -338,11 +338,8 @@
%7B%0A
- //
var
@@ -388,60 +388,18 @@
s').
-value;%0A var address = %22401 N Franklin St, Chicago%22
+innerHTML;
%0A g
|
9a3c156e5e427139316941ea1d58322c45024cd8 | fix osx build warnings | tasks/pack.js | tasks/pack.js | module.exports = function (gulp, packageJson) { 'use strict';
const _ = require('underscore');
const electronPackager = require('electron-packager');
const RELEASE_SETTINGS = {
dir: '.',
name: packageJson.name,
out: 'release',
'appVersion': packageJson.version,
'appC... | JavaScript | 0.000001 | @@ -2456,23 +2456,19 @@
-'
app
--b
+B
undle
--id'
+Id
: 'i
|
987d23b4c07b4ea687dd7b2c70919b1fd2bd70f2 | Clean up in beamChannel.js | app/directives/beamChannel.js | app/directives/beamChannel.js | angular.module('beam.directives')
.directive('beamChannel', function() {
return {
restrict: 'E',
templateUrl: '../templates/beamChannel.html',
scope: {
channel: '@',
connection: '@'
},
controller: function($scope) {
this.channel = $scope.channel;
this.... | JavaScript | 0.000001 | @@ -486,24 +486,35 @@
%7D%0A %7D
+.bind(this)
;%0A $s
@@ -573,16 +573,159 @@
setTopic
+);%0A $scope.$on('$destroy', function() %7B%0A $scope.$parent.clientCtrl.connection.removeListener('topic', this.setTopic);%0A %7D
.bind(th
@@ -730,17 +730,16 @@
this));%0A
-%0A
%7D,
|
7ea6718ef736b20cf7333db064bf471034ac086e | update output data | src/helpers/data_printer.js | src/helpers/data_printer.js | var fs = require('fs');
var path = require('path');
var data = require('../../data/data.json');
exports.printPopulationInfo = function (population, mark) {
var i;
var result;
var bestResult = [];
var worstResult = [];
var best = population[0];
var worst = population[population.length - 1];
... | JavaScript | 0.000036 | @@ -616,33 +616,186 @@
st:
-bestResult,%0A worst
+%7B%0A expression: best.root.getEvalString(),%0A data: bestResult%0A %7D,%0A worst: %7B%0A expression: worst.root.getEvalString(),%0A data
: wo
@@ -800,24 +800,34 @@
worstResult%0A
+ %7D%0A
... |
777c48bb5ea7d06e7a4104371abfc2da05173dc9 | Add the oneof keyword | src/languages/protobuf.js | src/languages/protobuf.js | /*
Language: Protocol Buffers
Author: Dan Tao <daniel.tao@gmail.com>
Description: Protocol buffer message definition format
Category: protocols
*/
function(hljs) {
return {
keywords: {
keyword: 'package import option optional required repeated group',
built_in: 'double float int32 int64 uint32 uint64... | JavaScript | 0.999973 | @@ -255,16 +255,22 @@
ed group
+ oneof
',%0A
|
2464d13414c522eacecfa7400894fdd65dde8303 | fix FeatureGroup e.layer empty in old IE, close #1938 | src/layer/FeatureGroup.js | src/layer/FeatureGroup.js | /*
* L.FeatureGroup extends L.LayerGroup by introducing mouse events and additional methods
* shared between a group of interactive layers (like vectors or markers).
*/
L.FeatureGroup = L.LayerGroup.extend({
includes: L.Mixin.Events,
statics: {
EVENTS: 'click dblclick mouseover mouseout mousemove cont... | JavaScript | 0 | @@ -1838,37 +1838,40 @@
%0D%0A%09%09
-if (!e.layer)
+e = L.extend(%7B%7D, e,
%7B%0D%0A%09%09%09
-e.
layer
- =
+:
e.t
@@ -1879,36 +1879,33 @@
rget
-;
+,
%0D%0A%09%09
-%7D%0D%0A%09%09e.
+%09
target
- =
+:
this
-;
%0D%0A
+%09%09%7D);
%0D%0A%09%09
|
607cf7063cbcb2e5b5c0f0ca4afd1149e815b456 | remove trailing comma | generators/entity/templates/src/main/webapp/app/entities/_entity-management.js | generators/entity/templates/src/main/webapp/app/entities/_entity-management.js | 'use strict';
angular.module('<%=angularAppName%>')
.config(function ($stateProvider) {
$stateProvider
.state('<%= entityStateName %>', {
parent: 'entity',
url: '/<%= entityUrl %>',
data: {
authorities: ['ROLE_USER'],
... | JavaScript | 0.999551 | @@ -3199,33 +3199,32 @@
s: %5B'ROLE_USER'%5D
-,
%0A
|
3c722af642212ccf7afcf88b2309219166fe3c0b | return only uploaded photos for the moment | social-mirror-fb.js | social-mirror-fb.js | 'use strict';
function SocialMirrorFB(fb, async, q) {
this.fb = fb;
this.async = async;
this.q = q;
}
SocialMirrorFB.prototype.getOne = function(resource, fields, accessToken, mapFunction) {
var deferred = this.q.defer();
var self = this;
this.fb.api(resource, { fields: fields, access_token: accessT... | JavaScript | 0 | @@ -1774,16 +1774,50 @@
lbum_id:
+ photo.album.id, //if !uploaded -%3E
(photo.
@@ -2230,16 +2230,25 @@
'/photos
+/uploaded
', 'id,n
|
6f3f5fc359c403e07e5123038f38bd46f3010cff | update userFollowing | src/documentModels/userFollowing.js | src/documentModels/userFollowing.js | 'use strict';
const objectSorter = require('../helpers/objectSorter');
const moment = require('moment');
class UserFollowing {
constructor(document, db, config) {
if (document == null || db == null || config == null) {
throw new Error('missing arguments');
}
this.document = document;
this.db = db;
}
/... | JavaScript | 0 | @@ -917,16 +917,18 @@
ySrcDest
+Id
Async(so
@@ -931,29 +931,28 @@
c(source
-, destination
+Id, targetId
, db, co
@@ -971,16 +971,18 @@
(source
+Id
== null
@@ -985,27 +985,24 @@
null %7C%7C
-destination
+targetId
== null
@@ -1139,34 +1139,28 @@
urce
-, destination: destination
+Id, target: targetId
%7D);%0... |
ce2c882ba4cf289c70d23b5108050c8fed54670f | Fix discussion card highlight below lollipop | app/views/discussion-item.js | app/views/discussion-item.js | import React from "react-native";
import Colors from "../../colors.json";
import NotificationBadgeContainer from "../containers/notification-badge-container";
import Card from "./card";
import CardTitle from "./card-title";
import CardSummary from "./card-summary";
import DiscussionFooter from "./discussion-footer";
im... | JavaScript | 0.000002 | @@ -713,16 +713,56 @@
config%22;
+%0Aimport colors from %22../../colors.json%22;
%0A%0Aconst
@@ -3772,24 +3772,53 @@
.bind(this)%7D
+ pressColor=%7Bcolors.underlay%7D
%3E%0A%09%09%09%09%09%3CView
|
efedb907d8ef3d255eaa02e997fd89e9d54d1935 | Add username to getuserRepos function call | javascript/controllers/twitter-controller.js | javascript/controllers/twitter-controller.js | angular.module('Gistter')
.controller('TwitterController', function($scope, $q, twitterService, $http) {
$scope.tweets = [];
$scope.repos = [];
twitterService.initialize();
// using the OAuth authorization result get the latest 20+ tweets from twitter for the user
$scope.refreshTimeline = function(maxId) {... | JavaScript | 0 | @@ -1034,24 +1034,32 @@
etUserRepos(
+username
);%0A %7D els
@@ -1058,24 +1058,66 @@
%7D else %7B%0A
+ // make sure usernmae doesn't exist%0A
var ge
@@ -1320,16 +1320,24 @@
erRepos(
+username
);%0A
|
f145415eb54c158d08a50e47dab68e3926841f5b | set country to location.country for new members | app/javascript/consent/index.js | app/javascript/consent/index.js | import React from 'react';
import { render } from 'react-dom';
import ComponentWrapper from '../components/ComponentWrapper';
import ConsentComponent from './ConsentComponent';
import {
setPreviouslyConsented,
changeCountry,
changeMemberEmail,
changeMemberId,
changeVariant,
} from '../state/consent';
// TOD... | JavaScript | 0.00002 | @@ -564,23 +564,37 @@
%0A const
+ %7B
member
+, location %7D
= windo
@@ -624,15 +624,8 @@
tion
-.member
;%0A
@@ -1051,16 +1051,36 @@
.country
+ %7C%7C location.country
));%0A %7D%0A
|
cd6d08285e3e85b2abbd6d2ed05f1663535484fc | Allow CORS for Authorization header | config/cors.js | config/cors.js | /**
* Cross-Origin Resource Sharing (CORS) Settings
* (sails.config.cors)
*
* CORS is like a more modern version of JSONP-- it allows your server/API
* to successfully respond to requests from client-side JavaScript code
* running on some other domain (e.g. google.com)
* Unlike JSONP, it works with POST, PUT, an... | JavaScript | 0 | @@ -3569,19 +3569,16 @@
****/%0A%0A
- //
headers
@@ -3592,14 +3592,29 @@
ent-type
+, authorization
'%0A%0A%7D;%0A
|
41184c8825ece6c471c3484a078c45231a450d31 | Fix `t/listener.t.js`. | compassion.colleague/t/listener.t.js | compassion.colleague/t/listener.t.js | require('proof/redux')(3, require('cadence')(prove))
function prove (async, assert) {
var Vizsla = require('vizsla')
var ua = new Vizsla
var abend = require('abend')
var conduit = require('compassion.conduit/conduit.bin'), program
async(function () {
program = conduit([ '--bind', '127.0.0.1... | JavaScript | 0 | @@ -1016,13 +1016,12 @@
ing.
-enter
+wait
(asy
|
fee9b6504822182292d96a228d942f93e77f65ec | Update export icons | js/app/handlers/menu-presentation-actions.js | js/app/handlers/menu-presentation-actions.js | ds.actions.register('presentation-actions', [
ds.models.action({
name: 'time-spans',
display: 'View across time spans...',
icon: 'fa fa-clock-o',
hide: ds.app.Mode.TRANSFORM,
handler: function(action, item) {
ds.manager.apply_transform(ds.models.transform.TimeSpans(), item)
}
}),... | JavaScript | 0 | @@ -1301,14 +1301,17 @@
fa-
-pictur
+file-imag
e-o'
@@ -1505,34 +1505,34 @@
ame: 'export-
-pn
+sv
g',%0A display:
@@ -1573,12 +1573,19 @@
fa-
+file-
code
+-o
',%0A
@@ -1859,13 +1859,20 @@
fa-
-table
+file-excel-o
',%0A
|
edfacd0ede45a99d86c70b511f50c68699fd6a02 | Create string dir, see https://github.com/phetsims/chipper/issues/1308 | 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.000002 | @@ -2957,24 +2957,25 @@
s.json' ) %7B%0A
+%0A
cons
@@ -2982,20 +2982,19 @@
t output
-Path
+Dir
= path.
@@ -3039,16 +3039,103 @@
strings'
+ );%0A fs.mkdirSync( outputDir );%0A%0A const outputPath = path.join( outputDir
, conglo
@@ -3154,24 +3154,25 @@
FileName );%0A
+%0A
fs.w
|
03e8fe2a2c6545186f15c58d93f048d982439f97 | update config files | config/gulp.js | config/gulp.js | var _ = require('lodash');
var argv = require('yargs').argv;
var SERVER = './server/';
var TEST = './test/';
var CONFIG = './config/';
var CLIENT = './client/';
var CLIENT_JS = CLIENT + 'js/';
var CLIENT_CSS = CLIENT + 'css/';
var ASSETS = './public/assets/';
var JS_ASSETS = ASSETS +... | JavaScript | 0.000001 | @@ -1,637 +1,74 @@
-var _ = require('lodash');%0Avar argv = require('yargs').argv;%0A%0Avar SERVER = './server/';%0Avar TEST = './test/';%0Avar CONFIG = './config/';%0Avar CLIENT = './client/';%0Avar CLIENT_JS = CLIENT + 'js/';%0Avar CLIENT_CSS = CLIENT + 'css/';%0Avar ASSETS = './publi... |
0e8872114d8122dcc3c95de5a072160f67479e99 | handle odd input names properly. | src/lib/dependshandler.js | src/lib/dependshandler.js | define([
"jquery",
"./depends_parse"
], function($, parser) {
function DependsHandler($el, expression) {
var $context = $el.closest("form");
if (!$context.length)
$context=$(document);
this.$el=$el;
this.$context=$context;
this.ast=parser.parse(expression)... | JavaScript | 0.000002 | @@ -493,16 +493,17 @@
ame=
+'
%22+name+%22
%5D%22);
@@ -498,16 +498,17 @@
%22+name+%22
+'
%5D%22);%0A
|
9e19789b120bd7d5bed90a536474d0d27e7cd484 | remove card from previos list after updating | app/js/factories/cardFactory.js | app/js/factories/cardFactory.js | app.factory('cardFactory', function () {
var service = {};
var cards = [
{
id: 1,
description: 'Fix bug in player',
list_id: 1,
sortIndex: 0
},
{
id: 2,
description: 'Add feature with D3',
list_id: 1... | JavaScript | 0 | @@ -1023,17 +1023,28 @@
ngCard,
-l
+destinationL
ist) %7B%0A
@@ -1095,24 +1095,25 @@
gCard.id%7D);%0A
+%0A
card
@@ -1223,181 +1223,151 @@
c
-ard.sortIndex =
+han
ge
-t
SortInd
-ex(list);%0A //console.log(card, 'card');%0A // todo change this.arrOfCards%0A changeSort... |
384eb4d18584cc1b07fc53aba971589883c39fe3 | Update home screen filter | scripts/HomeScreen.js | scripts/HomeScreen.js | var HomeScreen = {
$rightView: null,
$artists: null,
$recommendations: null,
$playlists: null,
menuItem: null,
tabs: null,
page: 0,
hasMore: true,
FILTER: [
'dignitasApollo',
'mrcoolvideoboy',
'huskystarcraft',
'husky',
'day9tv'
],
... | JavaScript | 0 | @@ -277,24 +277,48 @@
'husky',%0A
+ 'collegehumor',%0A
'day
@@ -3945,32 +3945,161 @@
urn;%0A %7D%0A%0A
+ // If they block us, we block them :)%0A if (externalUser.username.match(/VEVO$/)) %7B%0A return;%0A %7D%0A%0A
if ($.in
|
975667e56f72779495859d181bc40ff9cad139e6 | Update middleware | app/middlewares/requireLogin.js | app/middlewares/requireLogin.js | //
// Require Login
//
module.exports = function(req, res, next) {
if (req.session.userID) {
next();
} else {
res.redirect('/login');
}
}; | JavaScript | 0.000001 | @@ -115,21 +115,26 @@
-%7D else %7B
+ return;
%0A
+%7D%0A
@@ -157,16 +157,10 @@
ogin');%0A
- %7D%0A
%7D;
|
25a614f4e02bfc99208716f68da8cac5ec7f39e5 | Make change lock view consistent with style guide | lib/assets/javascripts/cartodb/new_dashboard/dialogs/change_lock_view_model.js | lib/assets/javascripts/cartodb/new_dashboard/dialogs/change_lock_view_model.js | var Backbone = require('backbone');
var _ = require('underscore');
var batchProcessItems = require('new_common/batch_process_items');
/**
* View model for change lock view.
* Manages the life cycle states for the change lock view.
*/
module.exports = Backbone.Collection.extend({
initialize: function(models) {
... | JavaScript | 0 | @@ -1622,32 +1622,40 @@
one(function() %7B
+%0A
callback(); %7D)%0A
@@ -1650,16 +1650,22 @@
lback();
+%0A
%7D)%0A
@@ -1684,16 +1684,24 @@
tion() %7B
+%0A
callbac
@@ -1722,16 +1722,22 @@
ailed');
+%0A
%7D);%0A %7D
|
607d3c819a97b9868843470d7dd5bff5997935d2 | Fix test | lib/assets/test/spec/cartodb/common/dialogs/delete_row/delete_row_view.spec.js | lib/assets/test/spec/cartodb/common/dialogs/delete_row/delete_row_view.spec.js | var DeleteRowView = require('../../../../../../javascripts/cartodb/common/dialogs/delete_row/delete_row_view');
describe('common/dialogs/delete_row/delete_row_view', function() {
beforeEach(function() {
this.row = new cdb.admin.Row({
cartodb_id: 100,
the_geom: JSON.stringify({ type: 'point', coordin... | JavaScript | 0.000004 | @@ -770,11 +770,9 @@
ete
-one
+a
row
|
9dd69adac87321f41f3ac1eaeb24ec8eff57ea51 | Remove duplicated namespace | lib/node_modules/@stdlib/math/base/blas/dasum/benchmark/benchmark.set_value.js | lib/node_modules/@stdlib/math/base/blas/dasum/benchmark/benchmark.set_value.js | 'use strict';
// MODULES //
var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/math/base/random/randu' );
var pow = require( '@stdlib/math/base/special/pow' );
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var pkg = require( './../package.json' ).name;
var wasm = require( './../lib/wasm.... | JavaScript | 0.000397 | @@ -3890,18 +3890,8 @@
wasm
-,set-value
:len
|
105e85777676d4ceec1d50323d5e5a5764681d16 | Allow param name to be edited in scenario detail view (closes #162) | app/scenario/scenario-detail.js | app/scenario/scenario-detail.js | 'use strict';
/* Controller for Scenario Detail View */
angular.module('lcaApp.scenario.detail',
['lcaApp.resources.service', 'lcaApp.status.service', 'lcaApp.models.scenario', 'lcaApp.models.param'])
.controller('ScenarioDetailController', ['$scope', '$window', 'StatusService', '$state', '$stateParams',... | JavaScript | 0 | @@ -2508,32 +2508,346 @@
= function () %7B%0A
+ $scope.gridData.forEach(function (e) %7B%0A var origParam = e.paramWrapper.paramResource;%0A if ( origParam && e.hasOwnProperty(%22name%22)) %7B%0A e.name = origParam.name;%0A %7D else %7B%0A ... |
582526e5d126ba31e65708453876fb0aa48aab89 | fix pip z-index related click issues | src/plugins/pip/pip.js | src/plugins/pip/pip.js | // Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var BaseObject = require('../../base/base_object');
var $ = require("jquery");
var _ = require('underscore');
var PipPlugin = BaseObject.extend({
n... | JavaScript | 0.000001 | @@ -439,18 +439,19 @@
index%22:
-20
+999
, bottom
|
3fbf0430d2d6ea824d284c3bc48400756f408e59 | fix simple view on build | config-overrides.js | config-overrides.js | const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = function override (config, env) {
// remove the css loader to simplify things
config.module.rules[1].oneOf = config.module.rule... | JavaScript | 0 | @@ -1362,18 +1362,9 @@
%0A %7D
- else %7B%0A
+%0A
//
@@ -1395,237 +1395,17 @@
at
-localhost:3000/foobar/%0A config.plugins.splice(2, 0,%0A new HtmlWebpackPlugin(%7B%0A inject: true,%0A template: path.resolve(__dirname, 'public', 'index.html'),%0A filename: 'foobar/index.html'%0A ... |
e9f5c063006f3f0d6022c5fc53370a7c2a3903be | Comment out writing_intensive=false for now, as the ASR API doesn't support it yet. | app/scripts/controllers/main.js | app/scripts/controllers/main.js | 'use strict';
/**
* @ngdoc function
* @name libedMeApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the libedMeApp
*/
angular.module('libedMeApp')
.controller('MainCtrl', ["$scope", "$http", function ($scope, $http) {
$scope.showDetails = false;
$scope.showAdvanced = false;
$sc... | JavaScript | 0 | @@ -447,21 +447,20 @@
ensive:
-false
+null
,%0A
@@ -1534,24 +1534,26 @@
+//
%7B val: false
|
97140e693b356b8f8ef3325dc8939724514bef9e | corrected missing semi-colon | tests/libs/phantomjs/phantomjs_jasminexml_runner.js | tests/libs/phantomjs/phantomjs_jasminexml_runner.js | var htmlrunner,
resultdir,
page,
fs;
phantom.injectJs("phantomjs-jasminexml-example/utils/core.js")
if ( phantom.args.length !== 2 ) {
console.log("Usage: phantom_test_runner.js HTML_RUNNER RESULT_DIR");
phantom.exit();
} else {
htmlrunner = phantom.args[0];
resultdir = phantom.args[1];
... | JavaScript | 0.999996 | @@ -105,16 +105,17 @@
ore.js%22)
+;
%0A%0Aif ( p
|
c774413a3394a03993385912ef983732b2d59f07 | Implement for for Issue #4 to keep context menu on screen if it is opened at bottomor left boundaries. | contextMenu.js | contextMenu.js | angular.module('ui.bootstrap.contextMenu', [])
.directive('contextMenu', ["$parse", "$q", function ($parse, $q) {
var contextMenus = [];
var removeContextMenus = function (level) {
while (contextMenus.length && (!level || contextMenus.length > level)) {
contextMenus.pop().remove();
... | JavaScript | 0 | @@ -1232,32 +1232,60 @@
000%0A %7D);%0A
+ var $promises = %5B%5D;%0A
angular.
@@ -1918,16 +1918,27 @@
+ $promise =
$q.when
@@ -1943,16 +1943,83 @@
en(text)
+%0A $promises.push($promise);%0A $promise
.then(fu
@@ -4662,32 +4662,1299 @@
($contextMenu);%0... |
1ce396d93acc2711cd78154137944213bacf5de7 | Reformat minimax placeChip calls onto multiple lines | app/scripts/models/ai-player.js | app/scripts/models/ai-player.js | 'use strict';
var Grid = require('./grid');
var Player = require('./player');
var Chip = require('./chip');
// An AI player that can think for itself; every AI player inherits from the
// base Player model
function AIPlayer(args) {
Player.call(this, args);
}
AIPlayer.prototype = Object.create(Player.prototype);
AIP... | JavaScript | 0 | @@ -1942,32 +1942,41 @@
Grid.placeChip(%7B
+%0A
column: c, chip:
@@ -1961,32 +1961,40 @@
column: c,
+%0A
chip: new Chip(
@@ -2008,16 +2008,21 @@
: this%7D)
+%0A
%7D);%0A
@@ -3534,16 +3534,25 @@
ceChip(%7B
+%0A
column:
@@ -3553,16 +3553,24 @@
lumn: c,
+%0A
chip: n... |
546c6fe1a4e289efa01bd7b4e512b7200f6ecfbf | style(options-services.js) Add missing semicolon | app/scripts/options-services.js | app/scripts/options-services.js | 'use strict';
/* globals angular */
angular.module('optionsApp')
.service('optionsService', function () {
var options = {
mapsAutocomplete: {
type: 'checkbox',
value: true,
label: 'Address autocomplete',
description: 'Add autocomplete to address fields. It will... | JavaScript | 0.999677 | @@ -2187,32 +2187,33 @@
options;%0A %7D
+;
%0A %0A th
@@ -2289,24 +2289,25 @@
me%5D;%0A %7D
+;
%0A %0A
|
c21bc11cfd8eccfd1f4cb2a4c551c2db19730138 | fix auth routes | app/scripts/services/account.js | app/scripts/services/account.js | (function () {
'use strict';
angular
.module('app.services', [])
.factory('AccountService', AccountService);
AccountService.$inject = ['$http', '$q', 'moment', 'OpenSenseBoxAPI', 'AuthenticationService'];
function AccountService ($http, $q, moment, OpenSenseBoxAPI, AuthenticationService) {
var se... | JavaScript | 0.000009 | @@ -1548,16 +1548,20 @@
gn-out',
+ %7B%7D,
%7Bauth:
@@ -4863,28 +4863,129 @@
+ boxId,
- %7Bauth: true
+%0A %7B%0A headers: %7B%0A 'Content-type': 'application/json;charset=utf-8'%0A %7D%0A
%7D)%0A
|
8d3b1eb5bef8b642fe7ebdd1ec546959ceaf5e82 | fix api root | app/scripts/services/apiRoot.js | app/scripts/services/apiRoot.js | 'use strict';
angular.module('BaubleApp')
.factory('apiRoot', ['$location', function($location) {
// AngularJS will instantiate a singleton by calling "new" on this function
var stagingHosts = ['app-staging.bauble.io'];
var productionHosts = ['app.bauble.io'];
var host = $location... | JavaScript | 0.000001 | @@ -583,20 +583,77 @@
/api
-.nextglass.c
+-baubleio.rhcloud.com/v1';%0A //return 'https://api.bauble.i
o/v1
|
89e19133848fbbb508bcded584f3c9286a5f6154 | Update docs | docs/examples/PaginationTable.js | docs/examples/PaginationTable.js | import React from 'react';
import { Table, Column, Cell, HeaderCell, TablePagination } from '../../src';
import fakeData from '../data/users';
const DateCell = ({ rowData, dataKey, ...props }) => (
<Cell {...props}>
{rowData[dataKey].toLocaleString()}
</Cell>
);
function formatLengthMenu(lengthMenu) {
retur... | JavaScript | 0.000001 | @@ -1026,25 +1026,16 @@
=%7Bdata%7D
-resizable
%3E%0A%0A
|
d27f75714681820a9fa68f056a894d83d025f534 | update main.js file to run on dom ready | app/templates/assets/js/main.js | app/templates/assets/js/main.js | // Edit this file as you wish!
console.log('Hello World!'); | JavaScript | 0 | @@ -1,8 +1,39 @@
+'use strict';%0A%0A(function() %7B%0A
// Edit
@@ -55,16 +55,18 @@
u wish!%0A
+
console.
@@ -85,8 +85,14 @@
orld!');
+%0A%7D)();
|
f7b999d54c52820454bf9e299b55765ebc4594b4 | update test conffig | app/templates/test/test-main.js | app/templates/test/test-main.js | var allTestFiles = [];
var TEST_REGEXP = /app\/src\/\w*\/\w*\.spec\.js$/;
var pathToModule = function(path) {
return path.replace(/^\/base\//, '../../').replace(/\.js$/, '');
};
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module na... | JavaScript | 0.000001 | @@ -2133,25 +2133,24 @@
otstrap'
-,
%3C%25 %7D %25%3E%0A
@@ -2145,68 +2145,8 @@
%25%3E%0A
- /*require home module*/%0A 'home': 'home/home'%0A
|
8b41fd4423ddf06b9d0f7544193f290cc7ac6bba | Make the regex for dates more lenient. Partial solution to #2244 | app/view/js/src/obj-datetime.js | app/view/js/src/obj-datetime.js | /**
* DateTime object
*/
bolt.datetimes = function () {
var is24h;
function evaluate(field) {
var date = moment(field.date.datepicker('getDate')),
time = moment([2001, 11, 24]),
hours = 0,
minutes = 0;
// Process time field
if (field.time.length) {... | JavaScript | 0.999986 | @@ -1548,20 +1548,22 @@
lid date
+(
time
+)
%0A
@@ -1615,18 +1615,18 @@
%7D-%5Cd%7B2%7D)
-
(
+
%5Cd%7B2%7D:%5Cd
@@ -1635,16 +1635,17 @@
%7D:%5Cd%7B2%7D)
+?
$/);%0A
|
c6f8f43d675837ef32bc9ee94e058bd2b2a39f4c | make load faster | src/editor/components/seDropdown.js | src/editor/components/seDropdown.js | /* eslint-disable node/no-unpublished-import */
import ListComboBox from 'elix/define/ListComboBox.js';
import NumberSpinBox from 'elix/define/NumberSpinBox.js';
// import Input from 'elix/src/base/Input.js';
import {defaultState} from 'elix/src/base/internal.js';
import {templateFrom, fragmentFrom} from 'elix/src/core... | JavaScript | 0 | @@ -213,22 +213,21 @@
ort
-%7BdefaultState%7D
+* as internal
fro
@@ -334,39 +334,8 @@
js';
-%0Aimport %7Binternal%7D from 'elix';
%0A%0A/*
@@ -466,16 +466,25 @@
%0A get %5B
+internal.
defaultS
@@ -525,16 +525,25 @@
n(super%5B
+internal.
defaultS
|
9f66abd8fffa00586cb3742829c7f8ccf765343e | correct passing of function | packages/mjml-core/src/index.js | packages/mjml-core/src/index.js | import { get, identity, map, omit, reduce } from 'lodash'
import juice from 'juice'
import { html as htmlBeautify } from 'js-beautify'
import { minify as htmlMinify } from 'html-minifier'
import MJMLParser from 'mjml-parser-xml'
import MJMLValidator from 'mjml-validator'
import components, { initComponent, registerC... | JavaScript | 0.000032 | @@ -805,25 +805,16 @@
eleton =
- (opt) =%3E
require
@@ -1378,17 +1378,8 @@
on =
- (opt) =%3E
def
|
cb63fbe51c71e51f44272db919bd3bab05e93f86 | add code review revisions | config/base.js | config/base.js | module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
/*
plugins: [
'ember-suave',
'turbopatent'
],
*/
extends: [
'eslint:recommended',
// Contains only recommended settings for custom rules defined in the
// eslint-plugin-ember addon
'plugin:ember/bas... | JavaScript | 0 | @@ -85,13 +85,8 @@
%7D,%0A
- /*%0A
pl
@@ -108,45 +108,15 @@
mber
--suave',%0A 'turbopatent
'%0A %5D,%0A
- */%0A
ex
@@ -152,140 +152,8 @@
ded'
-,%0A // Contains only recommended settings for custom rules defined in the%0A // eslint-plugin-ember addon%0A 'plugin:ember/base'
%0A %5D
@@ -1834,39... |
84ccb5b539e2d16f85df3c32683c54170b0f1210 | Add all headers | config/cors.js | config/cors.js | /**
* Cross-Origin Resource Sharing (CORS) Settings
* (sails.config.cors)
*
* CORS is like a more modern version of JSONP-- it allows your server/API
* to successfully respond to requests from client-side JavaScript code
* running on some other domain (e.g. google.com)
* Unlike JSONP, it works with POST, PUT, an... | JavaScript | 0.000003 | @@ -2167,21 +2167,21 @@
oud.org,
-
http
+s
://mathm
@@ -2191,17 +2191,16 @@
oud.org,
-
http://l
@@ -3656,19 +3656,16 @@
****/%0A%0A
- //
headers
@@ -3679,14 +3679,47 @@
ent-type
+,ocp-apim-subscription-key,accept
'%0A%0A%7D;%0A
|
42cf7de1aeb12c621264e6f1b7bdb90e03575d5f | Update app/pages/Logs.js | app/pages/Logs.js | app/pages/Logs.js | import React from 'react';
import { Header, Feed, Divider, Label, Icon } from 'semantic-ui-react';
import { capitalize, toLower } from 'lodash/string';
const { ipcRenderer } = require('electron');
const remote = require('@electron/remote');
const config = remote.getGlobal('config');
const STATUS_COLOR_MAP = {
succ... | JavaScript | 0 | @@ -1996,32 +1996,54 @@
%3C/Feed.Event%3E%0A
+ %3CDivider /%3E%0A
%3C/Feed
|
d0f982932c1b3fa362262133334f4936870720d0 | Update api.js | app/routes/api.js | app/routes/api.js | import express from 'express'
import { secret } from '../../config'
import { } from '../models'
import { sign } from 'jsonwebtoken'
import jwt from 'express-jwt'
const router = express.Router()
router.route('/')
.get((request, response) => {
response.json({
api: 'Kratelabs',
ok: true,
status: ... | JavaScript | 0.000001 | @@ -364,16 +364,17 @@
labs API
+.
',%0A
|
9a47eb44830d0f7a605a9bbc559f887ddb51ad6e | fix sporadic dataset navigation error | layout/explore/explore-datasets/component.js | layout/explore/explore-datasets/component.js | import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash/debounce';
import { Link } from 'routes';
import classnames from 'classnames';
// Responsive
import MediaQuery from 'react-responsive';
import { breakpoints } from 'utils/responsive';
// Utils
import { logEvent ... | JavaScript | 0.000013 | @@ -5304,16 +5304,24 @@
//
+ -------
Scroll
@@ -5346,43 +5346,63 @@
list
-%0A if (window.scrollTo &&
+ -------------------%0A const sidebarContent =
doc
@@ -5432,32 +5432,56 @@
idebar-content')
+;%0A if (window
.scrollTo) %7B%0A
@@ -5530,52 +5530,99 @@
- documen... |
bcc037e48e9d1073f08c388110b3197613e0a885 | make class the abstract for use in the other light shadow classes | src/lights/LightShadow.js | src/lights/LightShadow.js | import { Matrix4 } from '../math/Matrix4.js';
import { Vector2 } from '../math/Vector2.js';
/**
* @author mrdoob / http://mrdoob.com/
*/
function LightShadow( camera ) {
this.camera = camera;
this.bias = 0;
this.radius = 1;
this.mapSize = new Vector2( 512, 512 );
this.map = null;
this.matrix = new Matrix4... | JavaScript | 0.000028 | @@ -84,16 +84,154 @@
or2.js';
+%0Aimport %7B Vector3 %7D from '../math/Vector3.js';%0Aimport %7B Vector4 %7D from '../math/Vector4.js';%0Aimport %7B Frustum %7D from '../math/Frustum.js';
%0A%0A/**%0A *
@@ -460,50 +460,1214 @@
);%0A%0A
-%7D%0A%0AObject.assign( LightShadow.prototype, %7B
+ this._frustum = new Frustu... |
bbe0b12a80cac7b335d269e453633adde9460b04 | support for item text promise (e.g. for angular-translate manual translation resolution via $translate('KEY')) | contextMenu.js | contextMenu.js | angular.module('ui.bootstrap.contextMenu', [])
.directive('contextMenu', ["$parse", function ($parse) {
var renderContextMenu = function ($scope, event, options, model) {
if (!$) { var $ = angular.element; }
$(event.currentTarget).addClass('context');
var $contextMenu = $('<div>');
... | JavaScript | 0 | @@ -77,16 +77,22 @@
$parse%22,
+ %22$q%22,
functio
@@ -100,16 +100,20 @@
($parse
+, $q
) %7B%0A
@@ -1045,19 +1045,95 @@
$
-a.text(text
+q.when(text).then(function(text) %7B%0A $a.text(text);%0A %7D
);%0A
|
ebfa3c04207bbe306def62e65c7629c9a8738029 | Declare jQuery in netsim.js for JSHint | apps/src/netsim/netsim.js | apps/src/netsim/netsim.js | /**
* Internet Simulator
*
* Copyright 2015 Code.org
* http://code.org/
*
* 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... | JavaScript | 0.000006 | @@ -855,16 +855,31 @@
ckly */%0A
+/* global $ */%0A
'use str
|
e9a4d3bcf82fa893a484d2a62a296304d1976d1a | fix navigation to the next question on answer submission | public/app/services/utils/rgiQuestionSetSrvc.js | public/app/services/utils/rgiQuestionSetSrvc.js | 'use strict';
angular.module('app').factory('rgiQuestionSetSrvc', function (rgiUtilsSrvc) {
var answers = [];
return {
isAnyQuestionRemaining: function(answer) {
return answer.question_order !== answers.length;
},
getNextQuestionId: function(answer) {
return Str... | JavaScript | 0.988665 | @@ -70,16 +70,33 @@
nction (
+rgiQuestionSrvc,
rgiUtils
@@ -127,134 +127,1856 @@
= %5B%5D
-;%0A%0A return %7B%0A isAnyQuestionRemaining: function(answer) %7B%0A return answer.question_order !== answers.length
+, questions;%0A%0A rgiQuestionSrvc.query(%7Bassessment_ID: 'base'%7D, function (qu... |
9aea5f2019e8690b5524e2abfdfab1239879296b | create test seed data | server/config/seed.js | server/config/seed.js | /**
* Populate DB with sample data on server start
* to disable, edit config/environment/index.js, and set `seedDB: false`
*/
'use strict';
import Thing from '../api/thing/thing.model';
import User from '../api/user/user.model';
import Skill from '../api/skill/skill.model';
import Badge from '../api/badge/badge.mod... | JavaScript | 0.000002 | @@ -377,16 +377,1085 @@
odel';%0A%0A
+%0AUser.find(%7B%7D).removeAsync()%0A .then(function() %7B%0A var student1 = new User(%7B%0A provider: 'local',%0A name: 'Test User',%0A type: 'student',%0A email: 'test@example.com',%0A password: 'test',%0A studentData: %7B%0A points: 50%0... |
0e252f6682b6e23315e5961a1b22a54780d2dfc3 | Allow canary and beta tests to fail (#218) | config/ember-try.js | config/ember-try.js | 'use strict';
const getChannelURL = require('ember-source-channel-url');
module.exports = function() {
return Promise.all([
getChannelURL('release'),
getChannelURL('beta'),
getChannelURL('canary')
]).then((urls) => {
return {
useYarn: true,
scenarios: [
{
name: 'ember... | JavaScript | 0 | @@ -1275,32 +1275,63 @@
%7D%0A %7D
+,%0A allowedToFail: true
%0A %7D,%0A
@@ -1564,32 +1564,63 @@
%7D%0A %7D
+,%0A allowedToFail: true
%0A %7D%0A
|
c1ee019f670b283d21f990fa1d51b3ffce4147ad | fix typings test | tools/run-typings-test.js | tools/run-typings-test.js | /**
* This file uses the test project at test/typings-test to validate
* that AngularFire typings don't produce errors in user code.
*
* 1. Create a temp directory to copy the test project
* 2. Create a package.json based on test-project/package.sample.json,
* using versions from the project's root package.jso... | JavaScript | 0.005945 | @@ -1467,35 +1467,32 @@
, rootPackage.de
-vDe
pendencies%5B'zone
@@ -1938,24 +1938,29 @@
er%7D/tsconfig
+-test
.json%60, (err
|
0de7fde85c2ce9213513bb69e40b1ab27b0fbad9 | Add `useYarn` flag to `ember-try` configuration | config/ember-try.js | config/ember-try.js | /* eslint-env node */
module.exports = {
scenarios: [
{
name: 'ember-lts-2.8',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-8'
},
resolutions: {
'ember': 'lts-2-8'
}
},
npm: {
devDependencies: {
'ember-sourc... | JavaScript | 0 | @@ -34,16 +34,33 @@
rts = %7B%0A
+ useYarn: true,%0A
scenar
|
5b1773eb48aed9d0c615393eb7a41e5c92ad772c | Fix accumulateData | app/static/js/lib/cumulative.js | app/static/js/lib/cumulative.js | import {
filter,
fromPairs,
defaultTo,
head,
indexBy,
is,
keys,
last,
map,
prop,
range,
} from 'ramda'
export function accumulateData (data, column, series, extraYears = 0) {
let currentYear
let total = 0
// Check if request was canceled and thus column is undef... | JavaScript | 0.000004 | @@ -655,16 +655,20 @@
traYears
+ + 1
)%0A%0A /
@@ -1032,22 +1032,41 @@
tYear =
-latest
+data.data%5Blatest%5D%5Bcolumn%5D
%0A
|
8f4ce38963c66d0b436eb30d7aa7592a4194ddb1 | Remove unnecessary comment | src/sap.tnt/test/sap/tnt/demokit/sample/SideNavigation/V.controller.js | src/sap.tnt/test/sap/tnt/demokit/sample/SideNavigation/V.controller.js | sap.ui.define([
'jquery.sap.global',
'sap/ui/core/mvc/Controller',
'sap/m/Popover',
'sap/m/Button'
], function(jQuery, Controller, Popover, Button) {
"use strict";
var Controller = Controller.extend("sap.tnt.sample.SideNavigation.V", {
onInit: function () {
},
onCollapseExapandPress: function (even... | JavaScript | 0 | @@ -476,65 +476,8 @@
d);%0A
-%09%09%09//sideNavigation.setWidth(expanded? '20rem': '3rem');%0A
%09%09%7D%0A
|
7a57ebb6337c894fce2891c6349477c4e679f23d | Increase generated png size | server/lib/svg2png.js | server/lib/svg2png.js | import path from 'path';
import fs from 'fs';
import { getViewBoxDimensions } from './files';
const walkSync = function(dir) {
const isDirectory = dir => file => fs.statSync(path.join(dir, file)).isDirectory();
const filter = dir => file => file.match(/\.svg$/) || isDirectory(dir)(file);
return fs.readdirSync(di... | JavaScript | 0.000001 | @@ -826,16 +826,18 @@
im.width
+*4
%7D --heig
@@ -851,16 +851,18 @@
m.height
+*4
%7D%60);%0A
|
ea2b889f05f1e037226846b768d24b27a14a8bbb | Update server config for express 4 | app/templates/config/express.js | app/templates/config/express.js | var express = require('express'),
mongoStore = require('connect-mongo')(express),
config = require('./config');
module.exports = function(app) {
app.set('showStackError', true);
// No logger on test environment
if (process.env.NODE_ENV !== 'test') {
app.use(express.logger('dev'));
}
... | JavaScript | 0 | @@ -27,16 +27,184 @@
ress'),%0A
+ morgan = require('morgan'),%0A session = require('express-session'),%0A cookieParser = require('cookie-parser'),%0A methodOverride = require('method-override'),%0A
mong
@@ -241,21 +241,22 @@
o')(
-express),%0A
+session);%0A%0Avar
con
@@ -454,22 +454,14 @@
use(
... |
dcc6f9326e115c1fe348956f96140d608958224b | Update user.js | server/models/user.js | server/models/user.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto');
//mongoose.connect('mongodb://localhost/auth');
mongoose.connect('mongodb://ionic:ionicuser@dogen.mongohq.com:10095/app31139887');
/**
* Validations
*/
var validatePresenc... | JavaScript | 0.000001 | @@ -139,18 +139,16 @@
pto');%0A%0A
-//
mongoose
@@ -182,24 +182,26 @@
st/auth');%0A%0A
+//
mongoose.con
|
7188738954c5b927a1ddd4406d6e2877b41cd480 | add imports | myuw/static/vue/tests/inst_summary.test.js | myuw/static/vue/tests/inst_summary.test.js | import axios from 'axios';
import dayjs from 'dayjs';
import {mount, createLocalVue} from '@vue/test-utils';
import BootstrapVue from 'bootstrap-vue';
import Vuex from 'vuex';
import InstructorCourseSummery from
'../components/home/inst_course_summary/summary.vue';
// import {statusOptions} from '../vuex/store/model_... | JavaScript | 0.000001 | @@ -261,19 +261,16 @@
y.vue';%0A
-//
import %7B
@@ -324,11 +324,8 @@
r';%0A
-//
impo
@@ -820,16 +820,36 @@
rapVue);
+%0AlocalVue.use(Vuex);
%0A%0Ajest.m
|
86a1182bd6cd48dce5c2bb156846e8b4a0c070d3 | Convert Rect to stateless function | src/examples/GeometryShapes/Rect.js | src/examples/GeometryShapes/Rect.js | import React from 'react';
import PropTypes from 'react/lib/ReactPropTypes';
class Rect extends React.Component {
static propTypes = {
width: PropTypes.number.isRequired,
length: PropTypes.number.isRequired,
resourceId: PropTypes.string.isRequired,
};
render() {
const {
width,
length... | JavaScript | 0.999978 | @@ -74,34 +74,55 @@
s';%0A
-%0Aclass Rect extends
+import PureComponentMixin from 'react/lib/
React
-.
Comp
@@ -130,261 +130,337 @@
nent
- %7B%0A static propTypes = %7B%0A width: PropTypes.number.isRequired,%0A length: PropTypes.number.isRequired,%0A resourceId: PropTypes.string.isRequire
+WithPureRender... |
02367b233110bda38d730036ddbf9436cb50c2a7 | Update labs.js | assets/js/labs.js | assets/js/labs.js | ;(function(win,doc,head,body){
if(!('addEventListener' in win)) return;
win.z = function(a){
var x=a.data.length,
b=0,
c=doc.getElementById("repos");
c.removeAttribute("hidden");
for(;x>b;b++){
var e=doc.createElement("div"),
f=a.data[b].homepage?a.data[b].homepage:a.... | JavaScript | 0.000001 | @@ -1708,40 +1708,8 @@
2)%7B%0A
- appendOptionalMetaTags();%0A
@@ -3146,590 +3146,8 @@
%7D%0A%0A
- function appendOptionalMetaTags()%7B%0A var metatags = %5B'format-detection','apple-mobile-web-app-status-bar-style','apple-touch-fullscreen','apple-mobile-web-app-capable','mobile-web-app-capable','appl... |
39f1e24c5381fd9681720a8123cbf364ba60bcf4 | Include shiv instead of printshiv to support main. | grunt/modernizr.js | grunt/modernizr.js | // Generate Modernizr custom build from references in SCSS + JS assets
module.exports = function(grunt) {
grunt.config('modernizr', {
'devFile' : 'scripts/modernizr/modernizr.js',
'outputFile' : 'dist/scripts/modernizr/modernizr.js',
'extra' : {
'shiv' : false,
'prin... | JavaScript | 0 | @@ -285,28 +285,27 @@
'shiv' :
-fals
+tru
e,%0A
@@ -313,35 +313,36 @@
'printshiv' :
-tru
+fals
e,%0A '
|
ac6edee48b9c7c3c21d6e3c3879ecabed6e99721 | fix url | docusaurus/website/siteConfig.js | docusaurus/website/siteConfig.js | /**
* Copyright (c) 2017-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.
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
const siteConfig = {
title: 'Create... | JavaScript | 0.86565 | @@ -476,56 +476,8 @@
URL%0A
- baseUrl: '/', // Base URL for your project */%0A
//
@@ -542,21 +542,16 @@
l like:%0A
- //
url: '
@@ -579,21 +579,16 @@
ub.io',%0A
- //
baseUr
@@ -596,17 +596,24 @@
: '/
-test-site
+create-react-app
/',%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.