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 |
|---|---|---|---|---|---|---|---|
1d5c7a84a3eb25d136b41881e4abe252032bb98d | rename Layer action prop names to on* to avoid clashes with actions themselves | src/components/Layer.js | src/components/Layer.js | import React from 'react';
import { connect } from 'react-redux';
import { playbackListenerAdd, playbackListenerRemove, layerClear, layerRemove, layerIncrementNote, layerSetMuted } from '../actions';
import Button from './Button';
function getOpacity(value) {
const minimum = 0.2;
return minimum + ((1 - minimum) *... | JavaScript | 0 | @@ -72,58 +72,45 @@
t %7B
-p
lay
-backListenerAdd
+erClear
,
-p
lay
-backListenerRemov
+erIncrementNot
e, layer
Clea
@@ -109,61 +109,103 @@
ayer
-Clear
+Remove
, layer
-Remove, layerIncrementNote
+SetMuted %7D from '../actions';%0Aimport %7B playbackListenerAdd
,
+p
lay
-erSetMuted
+backListenerRemove
%7... |
18b00a836df026013ffb9f05ec96a506f66eb26a | Add imdb link button | src/components/Movie.js | src/components/Movie.js | import React from 'react';
export const Movie = (props) => {
let poster = props.Poster === 'N/A' ? <img src="" alt={props.Title} height="250" width="170" /> : <img src={props.Poster} alt={props.Title} height="250" width="170" />
return (
<div className="col-md-3">
{poster} <br/>
{props.Title} - {pr... | JavaScript | 0.000001 | @@ -224,16 +224,79 @@
%22170%22 /%3E
+;%0A let imdbURL = %60http://www.imdb.com/title/$%7Bprops.imdbID%7D/%60;
%0A retur
@@ -414,24 +414,127 @@
Plot%7D %3Cbr/%3E%0A
+ %3Ca href=%7BimdbURL%7D target=%22_blank%22%3E %3Cbutton className=%22btn btn-sm btn-success%22%3EIMDb%3C/button%3E %3C/a%3E%0A
%3Ca hre... |
f64172c567edf05d6f46ee6eb16bf35a6a6a2ec6 | Add link to event tickets | src/components/Movie.js | src/components/Movie.js | import React, { Component, PropTypes } from 'react';
import {
Image,
ScrollView,
StyleSheet,
Text,
View } from 'react-native';
import FitImage from 'react-native-fit-image';
import moment from 'moment';
require('moment/locale/fi');
const styles = StyleSheet.create({
container: {
paddingLeft: 10,
p... | JavaScript | 0 | @@ -64,16 +64,27 @@
Image,%0A
+ Linking,%0A
Scroll
@@ -89,16 +89,16 @@
llView,%0A
-
StyleS
@@ -111,16 +111,36 @@
Text,%0A
+ TouchableOpacity,%0A
View %7D
@@ -775,24 +775,145 @@
m: 10,%0A %7D,%0A
+ link: %7B%0A color: '#ffc40c',%0A fontSize: 18,%0A fontWeight: 'bold',%0A paddingBottom: 10... |
a94c2743568513d055387bb96f412d3449b4c69a | Remove 'clear' due to unforseen consequences | src/components/apps/terminal/commands.js | src/components/apps/terminal/commands.js | import * as apps from '../../Applications.vue'
let localforage = require('localforage')
export default {
data () {
console.log('apps:', apps.comps)
return {
// apps: Object.keys(apps.comps)
}
},
cmd (vue, command) {
let myCmd = command.split(' ')
switch (myCmd[0]) {
case 'test':
... | JavaScript | 0.00069 | @@ -2332,32 +2332,35 @@
break%0A
+ //
case 'clear':%0A
@@ -2360,26 +2360,29 @@
ear':%0A
+//
+
vue.results
@@ -2387,24 +2387,27 @@
s = %5B%5D%0A
+ //
break%0A
|
842639dc43c46bba6ed9274813141e3890093690 | Allow subtitles to box component | components/box.js | components/box.js | import React from 'react'
import PropTypes from 'prop-types'
const Box = ({ children, title, color }) => (
<div className='wrapper'>
{title && <h3 className={color}>{title}</h3>}
<div className='inner'>
{children}
</div>
<style jsx>{`
@import 'colors';
.wrapper {
backgroun... | JavaScript | 0.000001 | @@ -86,16 +86,26 @@
, title,
+ subtitle,
color %7D
@@ -111,16 +111,16 @@
%7D) =%3E (%0A
-
%3Cdiv c
@@ -148,51 +148,194 @@
%7B
+(
title
-&& %3Ch3 className=%7Bcolor%7D%3E%7Btitle%7D%3C/h3%3E
+%7C%7C subtitle) && (%0A %3Cdiv className=%7B%60header $%7Bcolor%7D%60%7D%3E%0A %7Btitle && %3Ch3%3E%7Bt... |
bf868f9ba4c1268ac1c70c0deebc99fff1a59c5e | Fix for uncaught null value in synchronize.js | src/conc/synchronize.js | src/conc/synchronize.js | /*
* Copyright 2010 Jive Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript | 0 | @@ -1726,24 +1726,32 @@
return
+ prop &&
prop.addCal
|
abbbac5f9bff32d5a2186125e9d57c847bc21ad7 | fix this.action.primary being empty | frappe/public/js/frappe/ui/dialog.js | frappe/public/js/frappe/ui/dialog.js | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.provide('frappe.ui');
var cur_dialog;
frappe.ui.open_dialogs = [];
frappe.ui.Dialog = frappe.ui.FieldGroup.extend({
init: function(opts) {
this.display = false;
this.is_dialog = true;
$.extend(this, {... | JavaScript | 0.999999 | @@ -940,32 +940,51 @@
imary_action %7C%7C
+!frappe._.is_empty(
this.action.prim
@@ -986,22 +986,17 @@
.primary
-.label
+)
) %7B%0A%09%09%09t
|
4dcea40510a6381b6283fe69eff8c89df62e9c15 | Add cypress-testing-library to cypress/support | frontend/cypress/support/commands.js | frontend/cypress/support/commands.js | // ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... | JavaScript | 0.000005 | @@ -1,28 +1,74 @@
+import 'cypress-testing-library/add-commands'%0A
// *************************
|
96e346ef0cc0b62e4d91f4b7f7d4d1751275c6e8 | Add empty plist key | src/config/ios/index.js | src/config/ios/index.js | const path = require('path');
const findProject = require('./findProject');
/**
* Returns project config by analyzing given folder and applying some user defaults
* when constructing final object
*/
exports.projectConfig = function projectConfigIOS(folder, userConfig) {
const project = userConfig.project || findP... | JavaScript | 0 | @@ -731,16 +731,51 @@
aries',%0A
+ plist: userConfig.plist %7C%7C %5B%5D,%0A
%7D;%0A%7D;%0A
|
33375f89e38df76232bd37359129cdf0c495ea99 | remove 20 | server/initial-state.js | server/initial-state.js | import getChannelModel from './models/channel';
import getMessageModel from './models/message';
import getUserModel from './models/user';
const User = getUserModel();
const Channel = getChannelModel();
const Message = getMessageModel();
export default function getInitState(sessionId) {
return new Promise((resolve, ... | JavaScript | 0.000016 | @@ -764,53 +764,8 @@
();%0A
- channelObj.unreadMessagesCount = 20;%0A
|
e4498737c2d860a617c9b0f1673f4df13052b0b5 | Add map delete route | server/routes/routes.js | server/routes/routes.js | 'use strict';
var Map = require('../models/map');
module.exports = function (app) {
app.route('/api/maps')
.get(function(req, res){
Map.find(function (error, doc) {
res.send(doc);
});
})
.post(function(req, res){
let map = req.body;
let locationMap = new Map(map);
l... | JavaScript | 0 | @@ -406,10 +406,211 @@
%7D);%0A
+ app.route('/api/maps/:id')%0A .delete(function(req, res) %7B%0A Map.findOne(%7B%0A _id: req.params.id%0A %7D).remove(function (error, result)%7B%0A res.status(300).send();%0A %7D);%0A %7D);%0A
%7D%0A
|
172c70f4a4cb857222bccf6501e13b2b65aa32cb | Switch to template literals | src/controllers/components/cart-panel.js | src/controllers/components/cart-panel.js | import { searchItem, checkIn, searchModel } from '../../lib/api-client';
import { Dispatcher } from 'consus-core/flux';
export default class CartController {
static checkInItem(id, itemAddress) {
return checkIn(id, itemAddress).then(item => {
Dispatcher.handleAction('CHECKIN_SUCCESS', {
... | JavaScript | 0 | @@ -1081,17 +1081,15 @@
or:
-'
+%60
All
-' +
+$%7B
mode
@@ -1094,20 +1094,17 @@
del.name
- + '
+%7D
s have b
@@ -1115,25 +1115,25 @@
checked out.
-'
+%60
%0A
@@ -1263,16 +1263,19 @@
error:
+%60$%7B
model.na
@@ -1280,12 +1280,9 @@
name
- + '
+%7D
is
@@ -1308,17 +1308,17 @@
heckout.
-'
+%60
... |
9c27717ffa0e85f770e2b7d78c71f789c8e968a4 | rewrite to return only one object | src/services/user/services/AdminUsers.js | src/services/user/services/AdminUsers.js | /* eslint-disable no-param-reassign */
/* eslint-disable class-methods-use-this */
const { BadRequest, Forbidden } = require('@feathersjs/errors');
const logger = require('../../../logger');
const { createMultiDocumentAggregation } = require('../../consent/utils/aggregations');
const { userModel } = require('../model'... | JavaScript | 0.000451 | @@ -588,21 +588,16 @@
async (
-ref,
schoolId
@@ -1324,16 +1324,49 @@
%0A%09return
+ new Promise((resolve, reject) =%3E
userMod
@@ -1483,16 +1483,83 @@
%7D).exec(
+(err, res) =%3E %7B%0A%09%09if (err) reject(err);%0A%09%09else resolve(res%5B0%5D);%0A%09%7D)
);%0A%7D;%0A%0Ac
@@ -2525,22 +2525,16 @@
llUsers(
-th... |
02dc5a74186029e334e4160c82cdf764ff56320a | tweak motion speeds | src/sm-img-controls/helpers/animation.js | src/sm-img-controls/helpers/animation.js | const easings = simpla.constants.easings;
export default {
listeners: {
'activated': '_animateIn',
'deactivated': '_animateOut'
},
get _animateControls() {
return {
top: this.$['controls-top'],
bottom: this.$['controls-bottom']
};
},
get _animateOptions() {
return {
'i... | JavaScript | 0.000001 | @@ -401,9 +401,9 @@
n: 1
-5
+8
0%0A
@@ -506,9 +506,9 @@
n: 1
-2
+0
0%0A
|
764aced388be388f7ab3af14cc310b6b26012020 | update to routes | app/js/Routes.js | app/js/Routes.js | 'use strict'
import React from 'react'
import {
Router, Route, IndexRoute,
browserHistory
} from 'react-router'
import App from './App'
import HomePage from './pages/HomePage'
import SummitPage from './pages/SummitPage'
import Pape... | JavaScript | 0 | @@ -3120,32 +3120,94 @@
okenSalePage%7D /%3E
+%0A %3CRoute path=%22/summit2017%22 component=%7BSummit2017Page%7D /%3E
%0A%0A %3CRoute p
|
b98a8d2e151c7c1db432bebee4ca191f63b1f960 | Revert whitespace | app/lib/slack.js | app/lib/slack.js | /*
* Slack message sending logic
*/
const Slack = require('node-slack');
const config = require('config');
const activities = require('../constants/activities');
module.exports = {
/*
* Post a given activity to Slack
*/
postActivity: function(activity) {
obj = this.formatActivity(activity);
this... | JavaScript | 0.000004 | @@ -4016,11 +4016,8 @@
*/%0A
- %0A
po
|
6d2b159ba0cd4c313f88321160c59504f40a0b18 | add list cache | app/listcache.js | app/listcache.js | caches.open("$$$toolbox-cache$$$https://civic-data.github.io/opengov/$$$").then(function(x) {
console.log(x.keys());
return x.keys();
}).then(function(z) {
console.log(z);
})
caches.keys().then(function(key){
caches.open(key).then(function(x) {
//console.log(x.keys());
return x;
})
}).then(func... | JavaScript | 0.000001 | @@ -2462,24 +2462,562 @@
%7D)%0A %7D)%0A %7D)%0A%7D);%0A
+%0Acaches.keys().then(function(response) %7B%0A response.forEach(function(element, index, array) %7B%0A caches.open(element).then(function(x) %7B%0A return x.keys();%0A %7D).then(function(items) %7B%0A items.forEach(funct... |
a48ef6932d71541c14001713d079f984d1070317 | Add global tools to an element when it's enabled | src/store/internals/addEnabledElement.js | src/store/internals/addEnabledElement.js | import {
mouseEventListeners,
mouseWheelEventListeners,
touchEventListeners
} from '../../eventListeners/index.js';
import {
imageRenderedEventDispatcher,
mouseToolEventDispatcher,
newImageEventDispatcher,
touchToolEventDispatcher
} from '../../eventDispatchers/index.js';
import store from '../index.js';
... | JavaScript | 0 | @@ -276,24 +276,77 @@
/index.js';%0A
+import %7B addToolForElement %7D from './../addTool.js';%0A
import store
@@ -2107,16 +2107,60 @@
t);%0A %7D%0A
+ _addGlobalToolsToElement(enabledElement);%0A
%7D;%0A%0A/**%0A
@@ -2630,12 +2630,265 @@
%7D%0A %7D);%0A%7D%0A
+%0Afunction _addGlobalToolsToElement (enabledElem... |
5d329062de1f903a05bb83101d81e4543cf993f6 | Fix gulp server root (for some reason started defaulting to dist) | cu-build.config.js | cu-build.config.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/.
*/
var name = 'cu-patcher-ui';
var config = {
type: 'module',
path: __dirname,
name: name,
bundle: {
... | JavaScript | 0 | @@ -412,16 +412,91 @@
'%0A %5D%0A
+ %7D,%0A server: %7B%0A root: __dirname + %22/publish/interface/cu-patcher-ui/%22%0A
%7D%0A%7D;%0A%0A
|
ffb1bfd3f0595c794a03b4385d56d1be45dd34f3 | Fix examples | src/configs/examples.js | src/configs/examples.js | export const rao2014Gm12878Mbol1kbMresChr22Loops = {
name: 'Loops in chromosome 22 of GM12878',
data: 'Rao et al. (2014) GM12878 Mbol 1kb',
url: 'https://rawgit.com/flekschas/8b0163f25fd4ffb067aaba2a595da447/raw/rao-2014-gm12878-mbol-1kb-mres-chr22-loops.json'
};
export const rao2014Gm12878Mbol1kbMresChr4Tads = ... | JavaScript | 0.000108 | @@ -145,37 +145,53 @@
url: 'https://
-rawgi
+gist.githubuserconten
t.com/flekschas/
@@ -223,24 +223,65 @@
95da447/raw/
+12316079e1adb63450ad38e21fdb51950440e917/
rao-2014-gm1
@@ -310,16 +310,29 @@
22-loops
+-hipiler-v140
.json'%0A%7D
@@ -482,37 +482,53 @@
url: 'https://
-rawgi
+gist.githubuserconten
t.com/f... |
5ff974986821c8c22aae508b5298afcc90b92af5 | Reimplement changing entry value | src/container/ledger.js | src/container/ledger.js | import React, { Component } from 'react';
import style from './ledger.css';
import BookDateEntry from '../component/bookDateEntry';
import BookEntry from '../component/bookEntry';
import CachedForm from '../component/cachedForm';
import SearchBox from '../component/searchBox';
export default class Ledger extends Com... | JavaScript | 0 | @@ -1159,16 +1159,20 @@
yChange(
+id,
value) %7B
@@ -1180,36 +1180,123 @@
-this.setState(%7B entry: value
+const %7B entries %7D = this.state;%0A this.setState(%7B%0A entries: entries.map((v, i) =%3E i === id ? value : v),%0A
%7D);
|
74742b701bca088b0bf3834769dd10890d9d20e8 | Update FontWatcher annotations. | src/core/fontwatcher.js | src/core/fontwatcher.js | goog.provide('webfont.FontWatcher');
goog.require('webfont.FontWatchRunner');
/**
* @constructor
* @param {webfont.UserAgent} userAgent
* @param {webfont.DomHelper} domHelper
* @param {webfont.EventDispatcher} eventDispatcher
* @param {Object.<string, function(Object): webfont.Size>} fontSizer
*/
webfont.FontWa... | JavaScript | 0 | @@ -1335,14 +1335,20 @@
t):
-number
+webfont.Size
%3E,%0A
@@ -1395,16 +1395,17 @@
%3Cstring,
+
boolean%3E
|
edb5a75d43630b9902e4d6727e03a478657bc6a8 | Update docstring in `get_choropleth_color.js` | src/utils/colors/get_choropleth_color.js | src/utils/colors/get_choropleth_color.js |
/** compute getColor func special for choropleths
*
* @param color -
* an Array, this will compute a d3 scaleQuantile
* a callable - will just return as is
**/
export default ({
color,
features,
yCol
}) => {
if (typeof color === 'function') return color
else {
const domain = d3.extent(features, d =... | JavaScript | 0 | @@ -1,9 +1,8 @@
-%0A
/** comp
@@ -64,16 +64,56 @@
color -%0A
+ * a callable - will just return as is%0A
* an A
@@ -159,48 +159,8 @@
ile%0A
- * a callable - will just return as is%0A
**/%0A
|
d4a9f191b16338aea350245537e4a635a5db359d | Add description and mark private methods | src/widgets/TextInputMenuSelectWidget.js | src/widgets/TextInputMenuSelectWidget.js | /**
* Menu for a text input widget.
*
* This menu is specially designed to be positioned beneath a text input widget. The menu's position
* is automatically calculated and maintained when the menu is toggled or the window is resized.
*
* @class
* @extends OO.ui.MenuSelectWidget
*
* @constructor
* @param {OO.u... | JavaScript | 0.000001 | @@ -4,54 +4,49 @@
%0A *
-Menu for a text input widget.%0A *%0A * Th
+TextInputMenuSelectWidget
is
+a
menu
+that
is s
@@ -87,18 +87,50 @@
beneath
- a
+%0A * a %7B@link OO.ui.TextInputWidget
text in
@@ -132,23 +132,23 @@
xt input
- widget
+%7D field
. The me
@@ -160,19 +160,16 @@
position
-%0A *
is aut... |
c120555b6b36bd4b54a19de8761208d4e506f9af | update jsdoc.js (#378) | packages/google-cloud-language/.jsdoc.js | packages/google-cloud-language/.jsdoc.js | // 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.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -1040,9 +1040,9 @@
201
-8
+9
Goo
@@ -1161,16 +1161,71 @@
'lumen'
+,%0A default: %7B%0A %22outputSourceFiles%22: false%0A %7D
%0A %7D,%0A
|
03e97267522321f16ac836bf0422774349e0f20e | add EE plugins to watchlist | grunt/config/watch.js | grunt/config/watch.js | module.exports = function(config, watchConf) {
'use strict';
var options = {
livereload: false
};
watchConf.cockpit_assets = {
options: options,
files: [
'<%= pkg.gruntConfig.cockpitSourceDir %>/{fonts,images}/**/*',
'<%= pkg.gruntConfig.cockpitSourceDir %>/scripts/index.htm... | JavaScript | 0 | @@ -1635,24 +1635,139 @@
t/**/*.js',%0A
+ '../../camunda-bpm-platform-ee/webapps/camunda-webapp/plugins/target/classes/plugin-webapp/**/*.%7Bjs,html%7D'%0A
%5D,%0A
|
fe752be0c1f02be11ae2feb53b4e730fee9d9d42 | Update maxBuffer limit to 100Mib | packages/grpc-tools/bin/protoc_plugin.js | packages/grpc-tools/bin/protoc_plugin.js | #!/usr/bin/env node
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | JavaScript | 0.000001 | @@ -1123,16 +1123,22 @@
024 * 10
+24 * 1
00%7D, fun
|
e8982dc47fccac3b0b96130ceaa534d5a8fc5c69 | fix build progress | app/util/util.js | app/util/util.js | const type = obj => obj ? Object.prototype.toString.call(obj).slice(8, -1).toLowerCase() : 'undefined';
const trim = (str, chars = '\\s') => ('' + str).replace(new RegExp(`(^${chars}+)|(${chars}+$)`, 'g'), '');
const ltrim = (str, chars = '\\s') => ('' + str).replace(new RegExp(`^${chars}+`), '');
const rtrim = (str, ... | JavaScript | 0 | @@ -488,17 +488,24 @@
(s) =%3E
-s
+('' + s)
.toLower
|
359b6c4f006a42e5c1ada2342b209f5f8d6854be | remove ramda on addFileTransport and change file log options variable name | server/utils/logging.js | server/utils/logging.js | const fs = require('fs')
const winston = require('winston')
const DailyRotateFile = require('winston-daily-rotate-file')
const Stomp = require('stomp-client')
const util = require('util')
const R = require('ramda')
const misc = require('./misc')
const format = winston.format
const path = require('path')
const dir = pr... | JavaScript | 0.000002 | @@ -521,21 +521,28 @@
'%0A%7D%0A
+%0A
const f
-l
+ileL
ogOpt
+ion
s =
@@ -659,16 +659,17 @@
'w' %7D%0A%7D%0A
+%0A
const lo
@@ -1168,24 +1168,120 @@
(level) %7B%0A
+ fileLogOptions.level = level%0A fileTransport = new winston.transports.File(fileLogOptions)%0A //
fileTranspo
|
7263a1986a356dc5b7e2e5dab87b94da3bb174fd | move newrelic log files to /tmp | newrelic.js | newrelic.js | /**
* New Relic agent configuration.
*
* See lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: ['salesforce-service'],
/**
* Your New Relic lic... | JavaScript | 0 | @@ -1215,26 +1215,10 @@
: '/
-var/log/newrelic/c
+tm
p/ne
|
acc628a75f2bb7b6f0eb5a45fa29bccde10af4f2 | fix base URL of dbots | monitors/modules/guildCount/postToDiscordBots.js | monitors/modules/guildCount/postToDiscordBots.js | /**
* @file postToDiscordBots
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license GPL-3.0
*/
const request = require('request-promise-native');
/**
* Posts guild count to Discord Bots
* @param {TesseractClient} Bastion Tesseract client object
* @returns {void}
*/
module.exports = async Bastion => {
try... | JavaScript | 0 | @@ -600,17 +600,16 @@
https://
-a
discord.
|
6efa95584b32fd9b16ea9e81b61b1dcdb9c8fa55 | Refactor frame page size specs to remove repeated code | sashimi-webapp/test/e2e/specs/pageRenderer/frame-page-size.spec.js | sashimi-webapp/test/e2e/specs/pageRenderer/frame-page-size.spec.js | const pagesModeActivation = require('./pages-mode-activation');
module.exports = {
'should activate Pages mode': pagesModeActivation['should activate Pages mode'],
'should have the same page size for reference and renderer frame ': (browser) => {
browser
.getElementSize('#reference-frame-of-viewer-conta... | JavaScript | 0 | @@ -62,660 +62,263 @@
);%0A%0A
-module.exports = %7B%0A 'should activate Pages mode': pagesModeActivation%5B'should activate Pages mode'%5D,%0A%0A 'should have the same page size for reference and renderer frame ': (browser) =%3E %7B%0A browser%0A .getElementSize('#reference-frame-of-viewer-container', (refe... |
81f87af0114d35c9040f1e5e3ccd11ee62cf85be | fix filtering and selection | ooiui/static/js/views/aa/StatusAlertTableView.js | ooiui/static/js/views/aa/StatusAlertTableView.js | "use strict";
/*
* ooiui/static/js/views/aa/StatusAlertTableView.js
*/
var StatusAlertTableView = Backbone.View.extend({
bindings: {
},
events: {
},
initialize: function() {
_.bindAll(this, "render");
this.initialRender();
},
initialRender:function(){
this.$el.html('<i class="fa fa... | JavaScript | 0 | @@ -495,32 +495,97 @@
All:function()%7B%0A
+%0A this.filter.searchBox().val(%22%22);%0A this.filter.search();%0A%0A
this.pageabl
@@ -2317,32 +2317,66 @@
ditable: false,%0A
+ headerCell: %22select-all%22,%0A
%7D,%0A %7B
@@ -4518,20 +4518,21 @@
);%0A%0A
-var
+self.
filter =
@@ -4767... |
53170d8b8fc60002799f65bd0d8662c9b7102e62 | Add hooks to OverviewDetailTab | src/js/pages/system/OverviewDetailTab.js | src/js/pages/system/OverviewDetailTab.js | import mixin from 'reactjs-mixin';
import {Link} from 'react-router';
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import {StoreMixin} from 'mesosphere-shared-reactjs';
import Config from '../../config/Config';
import ConfigStore from '../../stores/ConfigStore';
imp... | JavaScript | 0 | @@ -28,16 +28,49 @@
mixin';%0A
+import %7BHooks%7D from 'PluginSDK';%0A
import %7B
@@ -96,16 +96,16 @@
outer';%0A
-
/* eslin
@@ -1144,16 +1144,70 @@
teners =
+ Hooks.applyFilter('OverviewDetailTab:StoreListeners',
%5B%0A
@@ -1436,16 +1436,17 @@
%7D%0A %5D
+)
;%0A %7D%0A%0A
@@ -1586,16 +1586,112 @@
... |
8db679cc1d3e48d8961e3012297028895273c28a | Fix SonarQube reported vulnerabilities | src/main/resources/static/awe.js | src/main/resources/static/awe.js | var client = new XMLHttpRequest();
client.onerror = function(e) {
alert("Error: " + e.error);
};
client.onload = function() {
if (!this.response) return;
var resp = JSON.parse(this.response);
if (resp.status / 100 != 2) {
alert(resp.path + ": " + resp.status + " " + resp.error);
}
};
function stackTr... | JavaScript | 0 | @@ -62,21 +62,27 @@
(e) %7B%0A
-alert
+console.log
(%22Error:
@@ -239,13 +239,19 @@
-alert
+console.log
(res
|
4130a95ba93056be33f9a924f284d217fdf8b499 | update graphic classname (#751) | packages/idyll-components/src/graphic.js | packages/idyll-components/src/graphic.js | const React = require('react');
class Graphic extends React.Component {
render() {
const { idyll, updateProps, hasError, ...props } = this.props;
return (
<div {...props} />
);
}
}
Graphic._idyll = {
name: "Graphic",
tagType: "open"
}
module.exports = Graphic;
| JavaScript | 0 | @@ -161,20 +161,38 @@
urn
-(%0A %3Cdiv
+%3Cdiv className=%22idyll-graphic%22
%7B..
@@ -205,14 +205,8 @@
%7D /%3E
-%0A )
;%0A
@@ -241,17 +241,17 @@
me:
-%22
+'
Graphic
-%22
+'
,%0A
@@ -263,16 +263,17 @@
pe:
-%22
+'
open
-%22
+'
%0A%7D
+;
%0A%0Amo
|
d35b365869a4273c593f05e4d477e3fe08ec13ee | kill log spew | view/view.js | view/view.js | var View = Backbone.View.extend({
events: {
'click #shutdown-app': '_onShutdownAppClicked',
'click #restart-app': '_onRestartAppClicked',
'click #shutdown-pc': '_onShutdownPcClicked',
'click #restart-pc': '_onRestartPcClicked',
'click #start-app': '_onStartClicked',
'click .update': '_onUpdateClicked',
... | JavaScript | 0.000001 | @@ -818,45 +818,8 @@
) %7B%0A
-%09%09console.log(new Date().getTime());%0A
%09%09$(
|
e4354e8623da50536dd2931453542bda32795de5 | fix whitespace | GulpFlow.js | GulpFlow.js | var _ = require("underscore");
var Class = require("yajscf");
var through = require("through2");
var gutil = require("gulp-util");
var PluginError = gutil.PluginError;
var execFile = require("child_process").execFileSync;
var flow = require("flow-bin");
const PLUGIN_NAME = "gulp-flow";
module.exports = Class.extend(
... | JavaScript | 0.999999 | @@ -1363,20 +1363,16 @@
%0A %7D,%0A
-
%0A rep
|
2f5924719ef207cc8b93717412e191e00da696f0 | add log warning | elasticdump.js | elasticdump.js | var util = require("util");
var http = require("http");
var https = require("https");
var EventEmitter = require('events').EventEmitter;
var elasticdump = function(input, output, options){
var self = this;
self.input = input;
self.output = output;
self.options = options;
if (!self.options.searchBody) ... | JavaScript | 0.000001 | @@ -2491,16 +2491,254 @@
dump');
+%0A%0A if(self.options.skip)%7B%0A self.log('Warning: skipping ' + self.options.skip + ' rows.');%0A self.log(%22 * skipping doesn't guarantee that the skipped rows have already been written, please refer to the README.%22);%0A %7D
%0A %7D%0A%0A
|
65daac4fd3e2e1a5fd6100f0c18aa9a05bc39973 | Update Gulpfile.js (#32) | Gulpfile.js | Gulpfile.js | // Require the dependencies so that we can use their functionality
var autoprefixer = require('autoprefixer');
var cssnano = require('cssnano');
var gulp = require('gulp');
var exec = require('gulp-exec');
var sass = require('gulp-sass');
var postcss = require('gulp-postcss');
var reporter = require('postcss-reporter')... | JavaScript | 0 | @@ -1962,32 +1962,63 @@
.sculpin)%0A //
+ Kill process running on :8000.
Run the command
@@ -2049,16 +2049,67 @@
sculpin%0A
+ .pipe(exec('lsof -ti TCP:8000 %7C xargs kill'))%0A
.pip
|
414b11cbe6607852f80d10adff126ffdea0c598a | Allow selector to disable start btn when no remaining imports | src/options/imports/selectors.js | src/options/imports/selectors.js | import { createSelector } from 'reselect'
import {
FILTERS,
STATUS,
DOC_SIZE_EST,
DOC_TIME_EST,
IMPORT_TYPE as TYPE,
DOWNLOAD_STATUS as DL_STAT,
} from './constants'
export const entireState = state => state.imports
export const importStatus = state => entireState(state).importStatus
export c... | JavaScript | 0 | @@ -3345,16 +3345,27 @@
owTypes,
+ estimates,
%0A (al
@@ -3372,16 +3372,27 @@
lowTypes
+, estimates
) =%3E %7B%0A
@@ -3427,16 +3427,22 @@
sabled =
+ () =%3E
!Object
@@ -3498,16 +3498,282 @@
%7C curr)%0A
+%0A // Map-reduce the remaining estimates to disable button when they're all 0%0A const no... |
98608cf45c1f3f3c018c14ac2badd6e3e64a60b6 | add missing key attributes | source/pages/profile.js | source/pages/profile.js | import React from "react"
import { connect } from "react-redux"
import { FormattedMessage } from "react-intl"
import {
Tabs,
Tab,
List,
ListItem
} from "material-ui"
import { pages } from "api"
import { userPageFields } from "config"
function mapStateToProps(state, props) {
return {
page:... | JavaScript | 0.000019 | @@ -863,16 +863,71 @@
istItem%0A
+ key=%7B%60labels.userPageFields.$%7Bfield%7D%60%7D%0A
@@ -1581,16 +1581,58 @@
%3CTab
+ key=%7B%60titles.userPageFields.$%7Bcategory%7D%60%7D
label=%7B
|
dcd335f63462347f1e3ecd952a5e46da5db4f313 | add parsing hooks | src/df-model-storage.js | src/df-model-storage.js | ;
(function() {
'use strict';
angular.module('dfModelStorage', []).directive('dfModelStorage', ['$window', '$parse', '$log',
function($window, $parse, $log) {
var defaultConfig = {
onNoDataFound: angular.noop,
onParseError: angular.noop,
onSuccess: angular.identity
};
r... | JavaScript | 0 | @@ -188,16 +188,54 @@
fig = %7B%0A
+ onNotSupported: angular.noop,%0A
@@ -1174,32 +1174,85 @@
session storage%0A
+ var sessionStorageKey = prefix + itemName;%0A
var it
@@ -1287,33 +1287,33 @@
getItem(
-prefix + itemName
+sessionStorageKey
);%0A
@@ -1596,24 +1596,33 @@
seEr... |
16d6fb04e8d5ad618a218ea24983125b698b44dd | Add output. | entry/index.js | entry/index.js | module.exports = function (context, req) {
var https = require('https');
var input = JSON.stringify(req.body);
var command = input.split('&')[7].split('=')[1];
var userquery = input.split('&')[8].split('=')[1];
var callback = input.split('&')[9].split('=')[1];
var username = input.split('&... | JavaScript | 0.000308 | @@ -1509,19 +1509,63 @@
);%0A %7D
-;
%0A%0A
+ context.log('Command was %25s', command); %0A
cont
@@ -1596,24 +1596,28 @@
userquery);%0A
+
%0A if (com
|
58c594d5693f2927fa4769758df927672dc5f749 | Allow prettier to reformat | packages/provider/index.js | packages/provider/index.js | const debug = require("debug")("provider");
const Web3 = require("web3");
const { Web3Shim, InterfaceAdapter } = require("@truffle/interface-adapter");
const wrapper = require("./wrapper");
const DEFAULT_NETWORK_CHECK_TIMEOUT = 5000;
module.exports = {
wrap: function(provider, options) {
return wrapper.wrap(prov... | JavaScript | 0.000003 | @@ -1193,16 +1193,24 @@
imeout =
+%0A
network
|
239b508bfd64178402b66d5cd59a8b2c31a0b552 | Improve wysihtml5.dom.resolveList | src/dom/resolve_list.js | src/dom/resolve_list.js | /**
* Unwraps an unordered/ordered list
*
* @param {Element} element The list element which should be unwrapped
*
* @example
* <!-- Assume the following dom: -->
* <ul id="list">
* <li>eminem</li>
* <li>dr. dre</li>
* <li>50 Cent</li>
* </ul>
*
* <script>
* wysihtml5.dom.re... | JavaScript | 0.000009 | @@ -1072,16 +1072,47 @@
ibling =
+ list.previousElementSibling %7C%7C
list.pr
|
c0b7f3e02c32907de86888e4582e4f1ec0b79143 | make aperture open install with --production | commands/open.js | commands/open.js | var purge = require('./purge')
var bulk = require('./bulk')
var link = require('./link')
module.exports = init
function init(root, config, events, done) {
link(root, config, events, function(err) {
if (err) return done(err)
config.bulk = {
command: 'npm'
, args: [
'install'
... | JavaScript | 0 | @@ -334,16 +334,41 @@
always'%0A
+ , '--production'%0A
%5D%0A
|
0343c2d06a168648a44a0d1d87481c6706fc7625 | Convert _id to string if for string property | src/entity/aggregate.js | src/entity/aggregate.js | 'use strict'
const _ = require('lodash')
const _h = require('../_helpers')
exports.handler = async (event, context) => {
if (event.source === 'aws.events') { return _h.json({ message: 'OK' }) }
if (!event.Records && event.Records.length === 0) { return }
for (var i = 0; i < event.Records.length; i++) {
co... | JavaScript | 0.999999 | @@ -2527,16 +2527,27 @@
eference
+.toString()
%7D%0A
|
08e18c4118eb9ff59849f591c47b9de69e3ddebf | Fix for Actions when no data set. | src/foam/core/Action.js | src/foam/core/Action.js | /**
* @license
* Copyright 2016 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
*
* Unless requir... | JavaScript | 0 | @@ -3166,16 +3166,24 @@
%0A
+ data &&
data.pu
|
8889e69d169d1a6292eb95bbe07a93160e8bd29e | Add resetCurrentGame action | src/redux/modules/currentGame.js | src/redux/modules/currentGame.js | import { Record as record } from 'immutable';
import { checkSuccessStatus, toJSON } from 'redux/utils/api';
const NEW_GAME_REQUEST = 'NEW_GAME_REQUEST';
const NEW_GAME_SUCCESS = 'NEW_GAME_SUCCESS';
const NEW_GAME_FAILURE = 'NEW_GAME_FAILURE';
const UPDATE_HAS_OPPONENT = 'UPDATE_HAS_OPPONENT';
function newGameRequest(... | JavaScript | 0 | @@ -287,16 +287,65 @@
PONENT';
+%0Aconst RESET_CURRENT_GAME = 'RESET_CURRENT_GAME';
%0A%0Afuncti
@@ -1451,16 +1451,102 @@
%7D;%0A%7D%0A%0A
+export function resetCurrentGame() %7B%0A return %7B%0A type: RESET_CURRENT_GAME,%0A %7D;%0A%7D%0A%0A
const in
@@ -2191,24 +2191,80 @@
,%0A %7D);%0A
+ case RESE... |
4c5820defc2332e0283eaea830c3b6bbaedc2bb4 | Allow set value to accept a custom setter function | src/helpers/setValue.js | src/helpers/setValue.js | import { setPathValue } from './objectPath'
import parseUrl from './parseUrl'
export default function compile (path) {
if (typeof path === 'string') {
// check if the string is a url
const url = parseUrl(path)
if (url) {
const urlPath = (url.path || '').split('.')
if (url.scheme === 'output')... | JavaScript | 0.000001 | @@ -1724,16 +1724,75 @@
%7D%0A %7D%0A
+ %7D else if (typeof path === 'function') %7B%0A return path%0A
%7D%0A //
|
04e29fcbd1d1e34ddc32ec36185b8f02eb63be40 | Update the Issue title on changes on the reference. | src/issue/issue_view.js | src/issue/issue_view.js | "use strict";
var $$ = require ("substance-application").$$;
var NodeView = require("../node/node_view");
var TextView = require("../text/text_view");
// Substance.Issue.View
// ==========================================================================
var IssueView = function(node, viewFactory) {
NodeView.call(t... | JavaScript | 0 | @@ -3509,32 +3509,139 @@
return true;%0A
+ %7D%0A else if (this.ref && op.path%5B0%5D === this.ref.id) %7B%0A this._updateTitle();%0A return true;%0A
%7D else %7B%0A
|
972652722a00fc1502bdbc2bb9ba328012cc9d30 | Use dynamic require in NodeTraceurLoader. | src/runtime/NodeTraceurLoader.js | src/runtime/NodeTraceurLoader.js | // Copyright 2015 Traceur Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | JavaScript | 0 | @@ -708,32 +708,85 @@
';%0A%0A
-let fs = require('fs');%0A
+export class NodeTraceurLoader extends TraceurLoader %7B%0A constructor() %7B%0A
let
@@ -809,16 +809,20 @@
path');%0A
+
let file
@@ -869,81 +869,8 @@
);%0A%0A
-export class NodeTraceurLoader extends TraceurLoader %7B%0A constructor() %7B%0A
... |
a31b7bad8fd0c25e9c5c41d9642bb491355d7689 | reset first date on close | src/jquery.daterange.js | src/jquery.daterange.js | /**
* jQuery UI Datepicker add-on which can help select date range
* First click selects start date of range. Second click selects
* end date of range and closes calendar.
*
* Plugin accept all Datepicker options except "onSelect" callback.
* It will be overwritten by plugin. Also, plugin introduce one more
* op... | JavaScript | 0.000015 | @@ -2979,20 +2979,43 @@
set
-inline state
+state%0A inst.rangeStart = null;
%0A
|
b5b2b16cd29add2357670ac033b298878d397fa0 | order start end end of selected dates | src/jquery.daterange.js | src/jquery.daterange.js | /**
* jQuery UI Datepicker add-on which can help select date range
* First click selects start date of range. Second click selects
* end date of range and closes calendar.
*
* Plugin accept all Datepicker options except "onSelect" callback.
* It will be overwritten by plugin. Also, plugin introduce one more
* op... | JavaScript | 0 | @@ -533,16 +533,386 @@
($) %7B%0A%0A
+ function compareDates(start, end, format) %7B%0A var temp, dateStart, dateEnd;%0A%0A try %7B%0A dateStart = $.datepicker.parseDate(format, start);%0A dateEnd = $.datepicker.parseDate(format, end);%0A if (dateEnd %3C dateStart) %7B%0A temp = start;%0A... |
38253a81c8da3d4b7774138a4b712dab45a39856 | Update screenUtils.js | src/scripts/scene/screenUtils.js | src/scripts/scene/screenUtils.js | module.exports.isSmall = isSmall;
var smallSize = 768; // this is similar to `xs` size of bootstrap
// determines whether screen size should be treated as "small"
function isSmall() {
if (typeof window === undefined) return false;
return window.innerWidth <= smallSize;
}
| JavaScript | 0.000001 | @@ -1,8 +1,162 @@
+/**%0A * This is just a helper which checks whether screen should be treated as%0A * small. We change behavior of search results depending on screen size%0A */%0A
module.e
|
cbe8d3f954971c9dc38a4449be49e2c2ce41ea9c | Fix toast.tvwindow.show args | src/sectv-tizen/tvwindowProxy.js | src/sectv-tizen/tvwindowProxy.js | /*
* Copyright 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | JavaScript | 0.000179 | @@ -1969,23 +1969,44 @@
+v
ar
-gs%5B0%5D
+ rect = %5B%5D;%0A%0A rect
%5B0%5D = ar
@@ -2030,23 +2030,20 @@
-args%5B0%5D
+rect
%5B1%5D = ar
@@ -2067,23 +2067,20 @@
-args%5B0%5D
+rect
%5B2%5D = ar
@@ -2104,23 +2104,20 @@
-args%5B0%5D
+rect
%5B3%5D = ar
@@ -2195,23 +2195,... |
609698e9e1cbbc08b924e90ce9e6b60b46de7af2 | Add z/y to help | src/js/app/view/help.js | src/js/app/view/help.js | 'use strict';
var Backbone = require('backbone');
var $ = require('jquery');
var HELP_CONTENTS = [
['j', 'go to next asset in collection'],
['k', 'go to previous asset in collection'],
[''],
['right click', 'insert next available landmark'],
['snap + click', 'move snapped landmark'],
['snap + ... | JavaScript | 0.000002 | @@ -529,32 +529,107 @@
nt selection'%5D,%0A
+ %5B'z', 'undo last operation'%5D,%0A %5B'y', 'redo last undone operation'%5D,%0A
%5B'click outs
|
087dc1590b3b937a151c020264d5a2cdc0d46c7a | Fix name of provider | src/js/appController.js | src/js/appController.js | /**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
/*
* Your application specific code will go here
*/
define(['ojs/ojcore', 'knockout', 'jso', 'ojs/ojrouter', 'ojs/ojknockout', 'ojs/ojarraytabledatasource',
'ojs/ojoffcanvas'],
... | JavaScript | 0.000116 | @@ -585,14 +585,16 @@
D: %22
-google
+euregjug
%22,%0D%0A
|
329abba80bf7a3c630748ea46f3bb02603ffbf33 | Clear input[type=file] in imageDialog. | src/js/module/Dialog.js | src/js/module/Dialog.js | define('module/Dialog', function () {
/**
* Dialog
*
* @class
*/
var Dialog = function () {
/**
* toggle button status
*
* @param {jQuery} $btn
* @param {Boolean} bEnable
*/
var toggleBtn = function ($btn, bEnable) {
$btn.toggleClass('disabled', !bEnable);
... | JavaScript | 0 | @@ -944,27 +944,122 @@
-$imageInput
+// Cloning imageInput to clear element.%0A $imageInput.replaceWith($imageInput.clone()%0A
.on('cha
@@ -1070,32 +1070,34 @@
, function () %7B%0A
+
$ima
@@ -1112,32 +1112,34 @@
.modal('hide');%0A
+
defe
@@ -1166,33 +1166,... |
94c789f00e635af816ed40ed8002161aac615b60 | save teacherIds in db | src/services/user-group/model.js | src/services/user-group/model.js | 'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const getUserGroupSchema = (additional = {}) => {
const schema = {
name: {type: String, required: true},
schoolId: {type: Schema.Types.ObjectId, required: true},
createdAt: {type: Date, 'default': Date.now},
updatedAt: {type:... | JavaScript | 0 | @@ -550,16 +550,78 @@
d: true%7D
+,%0A%09teacherIds: %5B%7Btype: Schema.Types.ObjectId, required: true%7D%5D
%0A%7D));%0Aco
@@ -677,24 +677,88 @@
GroupSchema(
+%7B%0A%09teacherIds: %5B%7Btype: Schema.Types.ObjectId, required: true%7D%5D%0A%7D
));%0Aconst gr
|
4bab87c67416669a8929e73937754a8fdb03652c | remove console log | src/js/page-category.js | src/js/page-category.js | // Common modules
import './common'
// Page modules
var urlParameter = require('./get-url-parameter')
var accordion = require('./accordion')
var FindHelp = require('./find-help')
var apiRoutes = require('./api')
// Lodash
var sortBy = require('lodash/collection/sortBy')
var forEach = require('lodash/collection/forEac... | JavaScript | 0.000003 | @@ -2017,38 +2017,8 @@
p()%0A
- console.log('callback')%0A
|
ee8db4b91daedbd93f3190555e74d67c8d6c7d2c | fix find help provider name | src/js/page-category.js | src/js/page-category.js | import './common'
let accordion = require('./accordion')
let FindHelp = require('./find-help')
let apiRoutes = require('./api')
let forEach = require('lodash/collection/forEach')
let getApiData = require('./get-api-data')
let templating = require('./template-render')
let analytics = require('./analytics')
let social... | JavaScript | 0.000012 | @@ -1531,33 +1531,40 @@
derId: provider.
-p
+serviceP
roviderId,%0A
@@ -1589,25 +1589,32 @@
e: provider.
-p
+serviceP
roviderName,
|
e9b99a2f391f70ef6adbb309e70fbf98f6c2e664 | Change map key | src/shared/actions/MapActions.js | src/shared/actions/MapActions.js | import request from 'superagent'
import {
MAP_INITED,
SET_MAP_PIN_STARTED,
SET_MAP_PIN_COMPLETED,
SET_MAP_GEO_COMPLETED,
FIND_MAP_PLACE_COMPLETED,
FIND_MAP_PLACE_FAILED
} from 'shared/constants/ActionTypes'
/* eslint-disable max-len */
async function searchForm (address) {
return new Promise((resolve, re... | JavaScript | 0.000001 | @@ -413,40 +413,40 @@
aSyA
-FZCD9PCbfA3qVdMX5a4qT3xFl4osxwzA
+OL2_DNy1xwxo2t1Lxif4r2gnBpDjOkn4
&add
|
0b3d6ec7d257ae203ed22a59bdd5ed3b46a3215c | add 'clone of:' to title of cloned recipes | src/js/recipe-detail.js | src/js/recipe-detail.js | ;(function(){//IFEE
angular.module('brewKeeper')
.controller('recipeDetail', function($scope, $http, $location, $routeParams, $rootScope){
var id = $routeParams.id;
var username = $routeParams.username;
$scope.username = $routeParams.username;
$scope.id = $routeParams.id;
... | JavaScript | 0.000007 | @@ -4904,24 +4904,39 @@
Data.title =
+ %22Clone of: %22 +
$scope.deta
|
f9727373d19d7498df92983f0a27f8db6ee9878a | Remove unnecessary divs | src/shared/components/Overlay.js | src/shared/components/Overlay.js | import React from "react";
import classNames from "classnames";
import {Link} from "@kchmck/redux-history-utils";
import {Provider, connect} from "react-redux";
import {sprintf} from "sprintf-js";
import {hsvToRgb} from "../util";
const Marker = ({loc, pos, active=false}) => (
<Link to={`/info/${loc.lkey}`}
... | JavaScript | 0.000008 | @@ -605,32 +605,24 @@
=%3E
-%3Cdiv%3E%0A %7BcurLoc &&
+curLoc ?%0A
%3CMa
@@ -683,27 +683,34 @@
true%7D /%3E
-%7D%0A %3C/div
+ :%0A %3Cspan /
%3E%0A);%0A%0Afu
|
f13419fca75819b283d746ec01fa0db601eaded4 | Support hashbang URLs | src/js/routers/index.js | src/js/routers/index.js | /*jslint nomen: true */
/*globals define: true */
define([
'jquery',
'lib/lodash',
'backbone',
'settings',
'api'
],
function($, _, Backbone, settings, api) {
'use strict';
var IndexRouter = Backbone.Router.extend({
routes: {
"": "home",
"register": "register",
"reset": "reset_pas... | JavaScript | 0 | @@ -265,16 +265,19 @@
%0A %22
+(!)
register
@@ -294,24 +294,27 @@
er%22,%0A %22
+(!)
reset%22: %22res
@@ -334,16 +334,19 @@
%0A %22
+(!)
reset/:r
@@ -375,32 +375,35 @@
sword%22,%0A%0A %22
+(!)
surveys/new%22: %22n
@@ -413,32 +413,35 @@
survey%22,%0A %22
+(!)
surveys/:slug/di
@@ -452,3... |
1a9e03fb91d65cc4a5c225fc1b22389cd1b3fe2c | Align DSL util comments | src/js/utils/DSLUtil.js | src/js/utils/DSLUtil.js | import DSLFilterTypes from '../constants/DSLFilterTypes';
import {CombinerNode, FilterNode} from '../structs/DSLASTNodes';
const ENDING_WHITESPACE = /\s+$/;
const DSLUtil = {
/**
* Checks if the given expression can be processed by the UI
*
* @param {DSLExpression} expression - The expression to process
... | JavaScript | 0 | @@ -5646,17 +5646,16 @@
through
-.
exact fi
@@ -5974,17 +5974,16 @@
through
-.
fuzzy fi
|
fd7aea5186ede878cd55318d2a9bbf8650c7bf9b | bump saucelabs browser versions (#3469) | src/karma.sauce.conf.js | src/karma.sauce.conf.js | // Configuration used testing via Sauce Labs on Travis CI
process.env.SAUCE_ACCESS_KEY = process.env.SAUCE_ACCESS_KEY.split('').reverse().join('');
const BROWSERS = {
'CHROME': {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest'
},
'FIREFOX': {
base: 'SauceLabs',
browserName: 'fire... | JavaScript | 0 | @@ -354,17 +354,17 @@
'EDGE1
-6
+7
': %7B%0A
@@ -464,15 +464,15 @@
: '1
-6.16299
+7.17134
'%0A
@@ -474,33 +474,33 @@
4'%0A %7D,%0A 'EDGE1
-7
+8
': %7B%0A base: '
@@ -580,39 +580,39 @@
%0A version: '1
-7.17134
+8.17763
'%0A %7D,%0A 'IE10':
@@ -1050,33 +1050,33 @@
orm: 'macOS 10.1
-3
+4
',%0A ... |
f31e5aba5d118b3e589c6c373fc2fc5cd09bc6c7 | implement require | src/simple-array-translations.js | src/simple-array-translations.js | import { isArray, camelCase } from './utils';
function letToVar(cmd, ...vars) {
const varPairs = [];
for (let i = 0; i < vars.length; i += 2) {
let name = vars[ i ];
let val = vars[ i + 1 ];
if (name && val) {
if (isArray(val)) {
val = toJsString(val);
}
let statement = `${na... | JavaScript | 0.000001 | @@ -1496,17 +1496,227 @@
%7B%0A
-return %22%22
+const statements = reqTokens.map(token =%3E%0A %60var $%7Btoken%7D = $%7BmoduleName%7D%5B'$%7Btoken%7D'%5D%60);%0A statements.unshift(%60var $%7BmoduleName%7D = require('$%7BmoduleName%7D')%60);%0A%0A return statements%0A .map(s =%3E s + ';')%0A .join(' ')
... |
415f38e18cc144a6ad0d63f2f1823e94af71bda0 | add missing test description | src/lib/luxPath.test.js | src/lib/luxPath.test.js | import luxPath from './luxPath';
function locationMock(str) {
const query = str.match(/\?.*/);
const pathname = str.replace(query, '');
return { pathname, query, toString: () => `${pathname}${query || ''}` };
}
describe('Library: luxPath', function () {
it('should be defined and be a function', function () {... | JavaScript | 0.004552 | @@ -2027,16 +2027,53 @@
('should
+ parse partial with only query string
', funct
|
c9125f673743d26335fb358887879d3215087351 | Improve loading ffmpeg from ffmpeg-binaries | src/transcoders/ffmpeg/Ffmpeg.js | src/transcoders/ffmpeg/Ffmpeg.js | const ChildProcess = require('child_process');
const FfmpegProcess = require('./FfmpegProcess');
const ffmpegSources = [
'ffmpeg',
'avconv',
'./ffmpeg',
'./avconv',
'node_modules/ffmpeg-binaries/bin/ffmpeg',
'node_modules\\ffmpeg-binaries\\bin\\ffmpeg',
];
class FfmpegTranscoder {
constructor(mediaTrans... | JavaScript | 0.000001 | @@ -95,181 +95,8 @@
);%0A%0A
-const ffmpegSources = %5B%0A 'ffmpeg',%0A 'avconv',%0A './ffmpeg',%0A './avconv',%0A 'node_modules/ffmpeg-binaries/bin/ffmpeg',%0A 'node_modules%5C%5Cffmpeg-binaries%5C%5Cbin%5C%5Cffmpeg',%0A%5D;%0A%0A
clas
@@ -1424,24 +1424,110 @@
Command() %7B%0A
+ try %7B%0A return requ... |
e0afd563ace77581f7542250a7980726fdd8f67d | Add test coverage for Collapse wrapper ref (#6617) | src/transitions/Collapse.spec.js | src/transitions/Collapse.spec.js | // @flow weak
import React from 'react';
import { assert } from 'chai';
import { spy, stub } from 'sinon';
import { createShallow } from 'src/test-utils';
import Collapse, { styleSheet } from './Collapse';
describe('<Collapse />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallow();
... | JavaScript | 0 | @@ -123,16 +123,29 @@
eShallow
+, createMount
%7D from
@@ -7079,13 +7079,377 @@
);%0A %7D);
+%0A%0A describe('mount', () =%3E %7B%0A let mount;%0A let mountInstance;%0A%0A before(() =%3E %7B%0A mount = createMount();%0A mountInstance = mount(%3CCollapse /%3E).instance();%0A %7D);%0A%0A a... |
e72cfbfbd91544ecfc11ef75abc8f3bc91779ec9 | Fix recursion | src/utils/filter_package_tree.js | src/utils/filter_package_tree.js | /**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.998425 | @@ -745,12 +745,17 @@
%0A//
-MAIN
+FUNCTIONS
//%0A
@@ -765,223 +765,82 @@
*%0A*
-Applies a filter to a provide package tree.%0A*%0A* ## Notes%0A*%0A* - The filter may be a regular expression string. If unable to generate a regular expression from a provided %60filter%60 string, the function returns %60null%60
+... |
36f598451aa7525b738101255067b6e4fb50965e | fix map data | lib/fixtures/maps/map1.js | lib/fixtures/maps/map1.js | 'use strict';
module.exports = {
width: 16,
height: 15,
tiles: [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 1... | JavaScript | 0.000001 | @@ -43,9 +43,9 @@
h: 1
-6
+5
,%0A
@@ -55,17 +55,17 @@
eight: 1
-5
+6
,%0A ti
@@ -1015,25 +1015,25 @@
%7By: 1, x: 1
-4
+3
%7D,%0A %7B
@@ -1032,25 +1032,25 @@
%7By: 1
-3
+4
, x: 1%7D,%0A
@@ -1063,16 +1063,16 @@
y: 1
-3
+4
, x: 1
-4
+3
%7D,%0A
@@ -1111,17 +1111,17 @@
3, x: 1
-0
+1
%7D... |
a5957ecdd837d0d0b98e8ec2a4cc13ea9c3cca83 | remove debugger statement | lib/forms/camunda-form.js | lib/forms/camunda-form.js | 'use strict';
/* global CamSDK: false */
var $ = require('./dom-lib'),
VariableManager = require('./variable-manager'),
// BaseClass = require('./../base-class'),
InputFieldHandler = require('./controls/input-field-handler'),
ChoicesFieldHandler = require('./controls/choices-field-handler');
function C... | JavaScript | 0.000117 | @@ -3327,70 +3327,8 @@
);%0A%0A
-/* jshint debug: true */%0Adebugger;%0A/* jshint debug: false */%0A%0A
|
101ec488baae88ef42ba89c769dd9c97743e4df4 | Update bitboxPaths.js | src/wallets/bip44/bitboxPaths.js | src/wallets/bip44/bitboxPaths.js | import {
ethereum,
ethereumClassic,
ropsten,
singularDTV,
expanse,
ubiq,
ellaism,
etherGem,
callisto,
ethereumSocial,
musicoin,
goChain,
eosClassic,
akroma,
etherSocialNetwork,
pirl,
ether1,
atheios,
tomoChain,
mixBlockchain,
iolite
} from './paths';
export default [
ethereum... | JavaScript | 0 | @@ -572,19 +572,8 @@
lite
-,%0A solidum
%0A%5D;%0A
|
7268434334cb9e9ca1b182a11028e57e69c43f71 | fix bug would insert instead of update | startup/client/companies/code.js | startup/client/companies/code.js | Meteor.subscribe('theCompanies');
Template.companies.helpers({
'company': function(){
return Companies.find();
},
'selectedClass': function(){
if(this._id == Session.get('selectedCompanyId')){
return "selected"
}
},
'selectedCompany': function(){
... | JavaScript | 0 | @@ -717,16 +717,291 @@
();%09%0A%7D%0A%0A
+// return currently selected company object or if none a newly created one%0Afunction getCompany() %7B%0A if (Session.get('selectedCompanyId') == null) %7B %0A %09%09return new Company();%0A %7D else %7B%0A return Company.findOne(%7B_id: Session.get('selectedC... |
2158ef710d52118db7a57810c07d62160713ab63 | Simplify syntax in nbconvert-css webpack config | packages/nbconvert-css/webpack.config.js | packages/nbconvert-css/webpack.config.js | const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const path = require('path');
module.exports = {
entry: './raw.css',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'style')
},
plugins: [
new MiniCssExtractPlugin({
filename: 'index.css'
})
],
module: {
... | JavaScript | 0.00004 | @@ -375,41 +375,8 @@
e: %5B
-%0A %7B%0A loader:
Mini
@@ -402,31 +402,9 @@
ader
-%0A %7D,%0A
+,
'cs
@@ -412,25 +412,16 @@
-loader'
-%0A
%5D%0A
|
2e1c1adeddb2242c96e9ca87e1541f8ac48710b0 | Use max-age=31536000 and immutable in Cache-Control (#177) (#182) | packages/@cra-express/static-loader/src/index.js | packages/@cra-express/static-loader/src/index.js | const express = require("express");
const bodyParser = require("body-parser");
const compression = require("compression");
function staticLoader(app, options) {
const { clientBuildPath } = options;
app.use(compression());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
// S... | JavaScript | 0.000001 | @@ -933,24 +933,66 @@
index: false
+, immutable: true, maxAge: 31536000 * 1000
%7D));%0A %7D%0A%0A
|
394a1bbb2f183e42393eab7e10cc9089bdd94f69 | Add debug message to chromoting extension | remoting/client/extension/chromoting_tab.js | remoting/client/extension/chromoting_tab.js | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Message id so that we can identify (and ignore) message fade operations for
// old messages. This starts at 1 and is incremented for each new mess... | JavaScript | 0.000011 | @@ -2039,24 +2039,137 @@
Challenge;%0A%0A
+ console.log('connect request received: ' + chromoting.hostname + ' by ' +%0A chromoting.username);%0A%0A
// TODO(ga
@@ -2354,24 +2354,91 @@
ppAuth);%0A %7D
+ else %7B%0A console.log('ERROR: chromoting plugin not loaded');%0A %7D
%0A%0A document
|
0e59566902448e5d646a1dd18bd57d784268fcc1 | use destructuring import in example | example/App.js | example/App.js | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
import React, {Component} from 'react';
import {Platform, ScrollView, StyleSheet, Text, View, SafeAreaView} from 'react-native';
import DeviceInfo from 'react-native-device-info... | JavaScript | 0.000001 | @@ -315,16 +315,120 @@
e-info';
+%0Aimport %7BgetUniqueID, getManufacturer, getBrand, getModel, getDeviceId%7D from 'react-native-device-info';
%0A%0Aconst
@@ -939,27 +939,16 @@
queID =
-DeviceInfo.
getUniqu
@@ -986,27 +986,16 @@
turer =
-DeviceInfo.
getManuf
@@ -1026,35 +1026,24 @@
SON.brand =
-DeviceInfo.
... |
1a521561bf335b74af692f13c11ea112b4af0088 | Remove readystate check - no longer using mongodb for sessions | web/index.js | web/index.js | const path = require('path')
const config = require('../config.js')
const TEST_ENV = process.env.NODE_ENV === 'test'
if (!TEST_ENV) process.env.NODE_ENV = 'production'
const morgan = require('morgan')
const express = require('express')
const session = require('express-session')
const compression = require('compression'... | JavaScript | 0 | @@ -2456,299 +2456,8 @@
) %7B%0A
- // Make sure the database connection works on every API request%0A if (!TEST_ENV && mongoose.connection.readyState !== 1) %7B%0A console.log('Ingoring request due to mongoose readyState !== 1')%0A return res.status(500).json(%7B status: 500, message: 'Internal Server ... |
1489c022e4aab0ebe051445174de2cd24e1e8519 | Fix example. | example/app.js | example/app.js | require([
'example/jquery.js',
'example/mustache.js',
'../lunr.js',
'text!templates/question_view.mustache',
'text!templates/question_list.mustache',
'text!example_data.json',
'text!example_index.json'
], function (_, Mustache, lunr, questionView, questionList, data, indexDump) {
var renderQuestionList... | JavaScript | 0.000004 | @@ -2,24 +2,25 @@
equire(%5B%0A '
+/
example/jque
@@ -30,16 +30,17 @@
js',%0A '
+/
example/
|
45a888a24b84f0db6f47e9ea86c73616a51b7935 | Use --harmony_proxies | execjstests.js | execjstests.js | var childProcess = require('child_process');
var fs = require('fs');
var jstests = fs.readdirSync('./jstests/');
var success = 0;
jstests.forEach(function(file) {
console.log('\n\n------');
console.log('Executing: ' + file);
try {
childProcess.execSync('node --harmony index.js --file ./jstests/' + file);
... | JavaScript | 0 | @@ -275,16 +275,34 @@
harmony
+--harmony_proxies
index.js
|
5d26c7493b4b2e59a26d38ed3572b7225c260f7c | fix jshint error | addon/components/drop-zone.js | addon/components/drop-zone.js | /* global Dropzone*/
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['dropzone'],
myDropzone:undefined,
element: null,
dropzoneOptions: null,
// Configuration Options
url: '#',
withCredentials: null,
method: null,
parallelUploads: null,
maxFilesize: null,
file... | JavaScript | 0.000001 | @@ -3219,25 +3219,17 @@
er = 0;%0A
-
%0A
+
@@ -3441,21 +3441,9 @@
--;%0A
-
%0A
+
@@ -3577,16 +3577,21 @@
%7D)
+.call
(dropzon
@@ -3610,22 +3610,16 @@
ement);%0A
-
%0A d
@@ -3726,20 +3726,16 @@
%0A %7D;%0A
-
%0A let
@@ -5144,22 +5144,16 @@
ceeded,... |
7c8fd696ef514a493b4b95aa1abc0635dd314c5a | The tomorrow parameter should be optional | src/modules/guildwars2/commands/Daily.js | src/modules/guildwars2/commands/Daily.js | 'use strict';
const Discord = require('discord.js');
const moment = require('moment-timezone');
const DiscordReplyMessage = require('../../../../bot/modules/DiscordReplyMessage');
const ApiBase = require('./ApiBase');
const dailyThumbnail = 'https://render.guildwars2.com/file/483E3939D1A7010BDEA2970FB27703CAAD5FBB... | JavaScript | 0.999698 | @@ -435,16 +435,17 @@
tomorrow
+?
'%5D);%0A
|
cd152cca14f313d4148427e996d1d39ea9e5d4f7 | Use a for loop instead of goog.array.forEach | src/ol/format/wmsgetfeatureinfoformat.js | src/ol/format/wmsgetfeatureinfoformat.js | goog.provide('ol.format.WMSGetFeatureInfo');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.dom.NodeType');
goog.require('goog.object');
goog.require('goog.string');
goog.require('ol.format.GML2');
goog.require('ol.format.XMLFeature');
goog.require('ol.xml');
/**
* @classdesc
* Forma... | JavaScript | 0.999984 | @@ -1613,61 +1613,105 @@
-goog.array.forEach(node.childNodes, function(layer) %7B
+for (var i = 0, ii = node.childNodes.length; i %3C ii; i++) %7B%0A var layer = node.childNodes%5Bi%5D;
%0A
@@ -1773,22 +1773,24 @@
-return
+continue
;%0A
@@ -2859,16 +2859,8 @@
%7D
-, this);
%0A %7D
|
7054f4aa8620e658a6321e30a59b9165229a974c | Comment out tests depending on bug 935990 | lib/gcli/test/testHelp.js | lib/gcli/test/testHelp.js | /*
* Copyright 2012, Mozilla Foundation and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | JavaScript | 0 | @@ -2871,17 +2871,69 @@
either/
-,
+%0A // Commented out until bug 935990 is fixed
%0A
@@ -2934,16 +2934,19 @@
+ //
/%5C(stri
@@ -3722,16 +3722,72 @@
+ // Commented out until bug 935990 is fixed%0A //
/%5B--sec
|
c136116a1df731dd029e264884b7722bad2963f6 | fix pull api test | lib/github/PullApiTest.js | lib/github/PullApiTest.js | /**
* Copyright 2010 Ajax.org B.V.
*
* This product includes software developed by
* Ajax.org B.V. (http://www.ajax.org/).
*
* Author: Ryan Funduk <ryan.funduk@gmail.com>
*/
var assert = require("assert");
var sys = require("sys");
var GitHubApi = require("../github").GitHubApi;
var username = 'ornicar';
var r... | JavaScript | 0.000001 | @@ -301,17 +301,17 @@
e =
-'ornicar'
+%22ajaxorg%22
;%0Ava
@@ -327,24 +327,13 @@
=
-'php-github-api'
+%22ace%22
;%0A%0Av
@@ -785,16 +785,18 @@
repo, 1
+57
, functi
@@ -826,26 +826,29 @@
assert.
-ok
+equal
(pull.number
@@ -847,16 +847,21 @@
l.number
+, 157
);%0A
|
cdf32e114f461b90b72f3f397751a8d916d852e4 | fix none JSON response issue | lib/iso-execute-client.js | lib/iso-execute-client.js | var isoconfig = require('./iso-config');
var isoreq = require('./iso-request-core');
module.exports = {
execute: function (name, cfg) {
if (!name) {
return Promise.reject(new Error('iso-execute-client without name!'));
}
return isoreq(Object.assign({}, {
method: 'PUT... | JavaScript | 0.000007 | @@ -407,32 +407,8 @@
me,%0A
- json: true,%0A
@@ -539,22 +539,127 @@
-return R.body;
+try %7B%0A return JSON.parse(R.body);%0A %7D catch (E) %7B%0A return R.body;%0A %7D
%0A
|
3b4fd806820d39bf163f20a22ddd49223031eb60 | fix async part 2 | discordJs/test.js | discordJs/test.js | /*
A ping pong bot, whenever you send "ping", it replies "pong".
*/
// Import the discord.js module
const DISCORD = require("discord.js");
const EXECFILE = require("child_process").execFile;
const FS = require('fs');
const SLTS = require('./slots');
const EVENTS = require('./events');
const UTIL = require('./util');... | JavaScript | 0.000003 | @@ -2633,111 +2633,8 @@
File
-,'utf8', function(err)%7B%0A if (err) %7B%0A return console.log(err);%0A %7D%0A %7D
);%0A
|
4649caa0744d16f62b868fd912fb3c9f11c64cea | Fix error loading timeline | js/controllers/timeline-controller.js | js/controllers/timeline-controller.js | (function(global) {
'use strict';
var app = global.app || {};
var m = global.m;
var util = global.util;
var translateX = util.translateX;
var TimelineController = function(option) {
this.url = m.prop(option.url);
this.state = m.prop(TimelineController.STATE_INITIALIZED);
this.title = m.prop(op... | JavaScript | 0.000002 | @@ -831,32 +831,151 @@
-extract: requestExtract,
+deserialize: function(value) %7B%0A try %7B%0A return JSON.parse(value);%0A %7D catch (e) %7B%0A return null;%0A %7D%0A %7D
%0A
@@ -1939,15 +1939,23 @@
uest
-Extract
+SuccessCallback
= f
@@ -1966,19 +1966,22 @@
i... |
cc3425b481609ac7fc754fdbd46b8d3b7bb301e7 | Update bootstrap-datepicker.sv.js | js/locales/bootstrap-datepicker.sv.js | js/locales/bootstrap-datepicker.sv.js | /**
* Swedish translation for bootstrap-datepicker
* Patrik Ragnarsson <patrik@starkast.net>
*/
;(function($){
$.fn.datepicker.dates['sv'] = {
days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag", "Söndag"],
daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör", "Sön"],
daysMin: ... | JavaScript | 0 | @@ -653,16 +653,34 @@
Start: 1
+,%0A%09%09clear: %22Rensa%22
%0A%09%7D;%0A%7D(j
|
0108ed5f93c692d2c046a3319c76898c4c1f6835 | Fix Ukrainian lang code | js/locales/bootstrap-datepicker.ua.js | js/locales/bootstrap-datepicker.ua.js | /**
* Ukrainian translation for bootstrap-datepicker
* Igor Polynets
*/
;(function($){
$.fn.datepicker.dates['ru'] = {
days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четверг", "П'ятница", "Субота", "Неділя"],
daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Нед"],
daysMin: ["Нд", "Пн", "Вт"... | JavaScript | 0.99999 | @@ -111,10 +111,10 @@
es%5B'
-r
u
+a
'%5D =
|
5114a47f6e6116647f4abfb23a588b45607543ed | clean up lost "this." | app/controllers/home.js | app/controllers/home.js | module.controller("Home", ['$scope'], function($scope) {
});
module.controller("Reminder", ['$scope'], function($scope) {
});
module.service('ReminderService', function() {
this.reminders = [
{
id: 1,
heading: "Add Physicians",
text: "Need to add the Physicians to the app",
due: "1... | JavaScript | 0.000004 | @@ -579,18 +579,8 @@
%7D%0A
- this.%0A
%7D);%0A
|
3f23896e539be91be21bd8ac6b7031dbc2e4da85 | Replace urls with S3 ones for the production on the donations page. | app/js/pages/donatii.js | app/js/pages/donatii.js | 'use strict';
var Backbone = require('../shims/backbone');
var View = Backbone.View;
var templates = require('../lib/templates');
var $ = require('../shims/jquery');
var donations = require('../lib/donations.json');
module.exports = View.extend({
pageTitle: 'Monica Macovei Presedinte | Susținere financiară',
temp... | JavaScript | 0 | @@ -209,16 +209,88 @@
.json');
+%0Avar urlrepl = require('../lib/url-replace');%0Avar _ = require('lodash');
%0A%0Amodule
@@ -548,16 +548,145 @@
= this;%0A
+ _.forEach(donations, function (entry) %7B%0A if (entry.image) %7B%0A entry.image = urlrepl(entry.image);%0A %7D%0A %7D);%0A
self
|
313f169ff421fd7644a53686275c788e58a16a3f | Update ETH minConf | app/lib/wallet/index.js | app/lib/wallet/index.js | 'use strict';
var work = require('webworkify')
var IeWorker = require('./ie-worker.js');
var worker = window.isIE ? new IeWorker() : work(require('./worker.js'))
var auth = require('./auth')
var utils = require('./utils')
var db = require('./db')
var emitter = require('cs-emitter')
var crypto = require('crypto')
var A... | JavaScript | 0 | @@ -4173,16 +4173,42 @@
= seed;%0A
+ options.minConf = 12;%0A
%7D else
|
08e408dc82e109bcb53c42284dac3f3544df4566 | set correct price state | app/reducers/players.js | app/reducers/players.js | import _ from 'lodash';
import { SAVE_SEARCH_RESULTS, ADD_PLAYER, REMOVE_PLAYER, SET_PRICE } from '../actions/players';
export function players(state = {}, action) {
switch (action.type) {
case SAVE_SEARCH_RESULTS: {
const nextState = _.merge({}, state);
_.set(nextState, 'search', action.results);
... | JavaScript | 0.00045 | @@ -741,15 +741,8 @@
set(
-_.find(
next
@@ -750,21 +750,18 @@
tate
-.
+, %60
list
-, %7B id:
+.$%7B
acti
@@ -769,20 +769,16 @@
n.id
- %7D), '
+%7D.
price
-'
+%60
, ac
|
185d967089385d77b999c24829c97837c1533b6e | Improve noLoadingRequests methods handling | app/redux/AppReducer.js | app/redux/AppReducer.js | import {Map, OrderedMap} from 'immutable';
import { translate } from 'app/Translator';
const defaultState = Map({
requests: {},
loading: false,
error: '',
location: {},
notifications: null,
notificounters: Map({
total: 0,
feed: 0,
reward: 0,
send: 0,
ment... | JavaScript | 0.000001 | @@ -204,16 +204,42 @@
: null,%0A
+ noLoadingRequests: 0,%0A
noti
@@ -1207,152 +1207,8 @@
'';%0A
- // console.log(new Date().getTime(), %22RPC_REQUEST_STATUS:%22, action.payload.method);%0A if (action.payload.event === 'BEGIN') %7B%0A
@@ -1246,29 +1246,25 @@
-
-%22
+'
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.