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 |
|---|---|---|---|---|---|---|---|
24496b610b4f262f85a8b5041fd1d39efd6771be | Fix guest pool inquiry taking | packages/rocketchat-livechat/client/views/sideNav/livechat.js | packages/rocketchat-livechat/client/views/sideNav/livechat.js | /* globals LivechatInquiry, KonchatNotification */
Template.livechat.helpers({
isActive() {
const query = {
t: 'l',
f: { $ne: true },
open: true,
rid: Session.get('openedRoom')
};
const options = { fields: { _id: 1 } };
if (ChatSubscription.findOne(query, options)) {
return 'active';
}
},
... | JavaScript | 0 | @@ -2238,16 +2238,19 @@
es .
-open-roo
+sidebar-ite
m'(e
|
5de40384aaff3f9de3f0fc647451ca5be5b909db | test device | a/d/deviceSets.js | a/d/deviceSets.js | var deviceSets = [
{
name : 'Simple Devices',
devices : [
{ name: 'iPhone 4', w: 320, h:480, type:'phone', rotated: { w:416, h:320} },
{ name: 'Small Tablet', w: 600, h: 1000, type:'tablet' },
{ name: 'Apple iPad', w: 768, h:1024, type:'tablet' },
{ na... | JavaScript | 0.000001 | @@ -12,16 +12,182 @@
ets = %5B%0A
+/*%0A %7B%0A name : 'One Device',%0A devices : %5B%0A %7B name: 'iPhone 4', w: 320, h:480, type:'phone', rotated: %7B w:416, h:320%7D %7D%0A %5D%0A %7D,%0A*/%0A
%7B%0A
@@ -591,16 +591,25 @@
ptop' %7D,
+ %0A
|
a9fa59c88f28c589bf2f12e31ce67264607de5a6 | Add classname to table element | src/main/webapp/components/BuilderDataTable.js | src/main/webapp/components/BuilderDataTable.js | import * as React from 'react';
const HEADERS = ['no', 'text', 'log'];
export const BuilderDataTable = props => {
return (
<table>
<thead>
<BuilderRow
header={true}
data={HEADERS}
/>
</thead>
<tbody>
<BuilderRow data={} />
</tbody>
<... | JavaScript | 0.000002 | @@ -46,16 +46,17 @@
S = %5B'no
+.
', 'text
@@ -127,24 +127,47 @@
(%0A %3Ctable
+ className='data-table'
%3E%0A %3Cthe
|
1d8582589e826a2a62aba4f690488c62675a797b | Remove clutter message in Eslint plugin (#434) | lib/ExecutionControlEpic/Plugins/Eslint/Process/lsp.js | lib/ExecutionControlEpic/Plugins/Eslint/Process/lsp.js | /* eslint-disable */
const {
createMessageConnection,
StreamMessageReader,
StreamMessageWriter,
} = require("vscode-jsonrpc");
const { exec } = require("child_process");
const connection = createMessageConnection(
new StreamMessageReader(process.stdin),
new StreamMessageWriter(process.stdout),
);
function ... | JavaScript | 0 | @@ -486,19 +486,59 @@
-// Note: If
+if (stderr) %7B%0A // Note: err is non-null when
esl
@@ -574,32 +574,57 @@
code
-, it will
+%0A // (because the executable
return
+s
1
-, and%0A
+)%0A
@@ -632,29 +632,20 @@
//
-err will be non-null;
+To check for
act
@@ -668,53 +668,32 @@
rors... |
625bb1167d63829a941992d77455cbce650d2abd | Update config.js | bot/config.js | bot/config.js | // The WEBSOCKET server and port the bot should connect to.
// Most of the time this isn't the same as the URL, check the `Request URL` of
// the websocket.
// If you really don't know how to do this... Run `node getserver.js URL`.
// Fill in the URL of the client where `URL` is.
// For example: `node getserver.js http... | JavaScript | 0.000002 | @@ -2424,24 +2424,30 @@
.excepts = %5B
+'wolf'
%5D;%0A%0A// White
@@ -2888,16 +2888,77 @@
uide = '
+http://www.pokecommunity.com/showthread.php?t=289012#botguide
';%0A%0A// A
|
e29e91c0924fe6225fd627da896b2f2b365cda15 | Remove requireOptions | AbstractFilter.js | AbstractFilter.js | /*
backgrid-filter
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
Licensed under the MIT @license.
*/
(function (factory) {
// CommonJS
if (typeof exports == "object") {
module.exports = factory(require("underscore"),
require("back... | JavaScript | 0.000002 | @@ -2315,68 +2315,8 @@
) %7B%0A
- Backgrid.requireOptions(options, %5B%22collection%22%5D);%0A
|
eb3d2d0423b79478d9d28ab092d4c7d28fd36846 | Return in case of no data(no select query) | debug-db/src/main/assets/debugDbHome/js/app.js | debug-db/src/main/assets/debugDbHome/js/app.js | $( document ).ready(function() {
getDBList();
$("#query").keypress(function(e){
if(e.which == 13) {
queryFunction();
}
});
//update currently selected database
$( document ).on( "click", "#db-list .list-group-item", function() {
$("#db-list .list-group-item").each... | JavaScript | 0.001765 | @@ -3683,24 +3683,41 @@
essfully%22);%0A
+ return;%0A
%7D%0A%0A
|
3ac80b882464c338fe586905a9ddbf7a2cd347d8 | Integrate DocSearch (Algolia) | docs/.vuepress/config.js | docs/.vuepress/config.js | module.exports = {
title: 'chartjs-plugin-datalabels',
description: 'Display labels on data for any type of charts.',
ga: 'UA-99068522-2',
head: [
['link', { rel: 'icon', href: `/favicon.png` }],
],
themeConfig: {
repo: 'chartjs/chartjs-plugin-datalabels',
logo: '/favicon... | JavaScript | 0.000007 | @@ -403,24 +403,161 @@
ir: 'docs',%0A
+ algolia: %7B%0A apiKey: '7224f458f773f7cf4cbbc4c53621d30c',%0A indexName: 'chartjs-plugin-datalabels'%0A %7D,%0A
nav:
|
427b80bda3c386e70a11e409c4a6b8c2f445d714 | configure http client with current selected engine | webapps/client/scripts/api/index.js | webapps/client/scripts/api/index.js | 'use strict';
define([
'angular',
'camunda-bpm-sdk',
'camunda-bpm-sdk-mock'
],
function(
angular,
CamSDK,
MockClient
) {
var apiModule = angular.module('cam.tasklist.client', []);
apiModule.value('HttpClient', CamSDK.Client);
apiModule.value('CamForm', CamSDK.Form);
apiModule.value('MockHttpClie... | JavaScript | 0 | @@ -2509,16 +2509,37 @@
lient',%0A
+ '$window',%0A
functi
@@ -2557,19 +2557,292 @@
tpClient
-) %7B
+, $window) %7B%0A%0A function getCurrentEngine() %7B%0A var uri = $window.location.href;%0A%0A var match = uri.match(/%5C/app%5C/tasklist%5C/(%5Cw+)(%7C%5C/)/);%0A if (match) %7B%0A ... |
7f09678728564e1ac3963f96b27c0cbd79885366 | Add upgrading doc in the doc menu | docs/.vuepress/config.js | docs/.vuepress/config.js | var Prism = require('prismjs');
var loadLanguages = require('prismjs/components/');
loadLanguages(['php']);
module.exports = {
title: 'Sharp',
base: '/docs/',
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Documentation', link: '/guide/' },
{ text: '... | JavaScript | 0 | @@ -4118,32 +4118,73 @@
children: %5B%0A
+ 'upgrading/5.0',%0A
|
ddff29a9b4060e144dbdab2d2757d6e91157b091 | fix require in shopper example | example/shopper.js | example/shopper.js | 'use strict';
var Monito = require('../lib/index');
let chimp = new Monito({
register: (monito, next) => {
next(null, 'getProfile');
},
getProfile: (monito, next) => {
next(null, {
browse: 4
}, 'shop');
},
browse: (monito, next) => {
next(null, {
... | JavaScript | 0.000013 | @@ -41,13 +41,14 @@
lib/
-index
+monito
');%0A
|
337771fb02274120ca4b584050446a4df84edfa8 | build for publish | memoizerific.min.gzip.js | memoizerific.min.gzip.js | JXWM6W>8$Le0LHBRlmEIlm
p<K+X$(R4W)%WiJ[X+y0uur#lUE8ၳ?[VYq~v{bWs:IȃzG4ocR<ݺfP/E*A]܄c '"VZݷ"D"E̙ة_f0:_*v=bp돁;d9)Zi4Il )oKfZ=U_>vǧ?~N˩ۚFǺ]>LX+72mQwv%؊伳A[-X3g ^DunushX-X"@Cqh۲/ ϿOxX؆1.c1\+9.)$)ywz2ʳ-U
VL2WYYauF]cV{Vg/Fqj7H6`ǫcsyjF$&cr
L6H:p{Ln>%{O=9>tyh... | JavaScript | 0 | |
8e315f79565b3e9d69522065554a5f90d1dd6af1 | fix default DEVELOPMENT variable on php service | services_conf/php.js | services_conf/php.js | module.exports.prompt = { // use nested prompt
"development": [{
name: "AERIAWORK_ENABLED",
message: "Do you want to preload AeriaWork?".magenta,
type: 'list',
pageSize: 2,
required: true,
choices: [{
name: "yes",
value: 1
}, {
name: "no",
value: ''
}]
}, {
... | JavaScript | 0 | @@ -1588,17 +1588,19 @@
OPMENT:
-1
+%221%22
,
@@ -2253,17 +2253,19 @@
OPMENT:
-0
+%220%22
,
|
54c789c8eb2a342ac0d0ad809a14dbb21b10c87b | use ES6 class instead of createClass | example/src/app.js | example/src/app.js | /* global google */
import React from 'react';
import ReactDOM from 'react-dom';
import Geosuggest from '../../src/Geosuggest';
var App = React.createClass({ // eslint-disable-line
/**
* Render the example app
* @return {Function} React render function
*/
render: function() {
var fixtures = [
{... | JavaScript | 0.000003 | @@ -127,826 +127,43 @@
';%0A%0A
-var App = React.createClass(%7B // eslint-disable-line%0A /**%0A * Render the example app%0A * @return %7BFunction%7D React render function%0A */%0A render: function() %7B%0A var fixtures = %5B%0A %7Blabel: 'New York', location: %7Blat: 40.7033127, lng: -73.979681%7D%7D... |
4d6fea6551e8d41d01a17ba62757892fd42f37e4 | Fix for window variable in compatibility.js | src/main/webapp/js_src/gitana/compatibility.js | src/main/webapp/js_src/gitana/compatibility.js | /**
* This gets added into the Gitana Driver to ensure compilation time compatibility with
* the Appcelerator Titanium framework.
*/
/* jQuery Sizzle - these are to fool the Ti compiler into not reporting errors! */
/**
* The driver assumes a globally-scoped "window" variable which is a legacy of browser-compatibi... | JavaScript | 0 | @@ -491,10 +491,8 @@
%0Aif
-(!
(typ
@@ -518,17 +518,16 @@
efined%22)
-)
%0A%7B%0A w
|
34aba5d0d74df07e5b905655d2e335cbdbcea246 | use TextArea for body | web/js/propilex/models/Document.js | web/js/propilex/models/Document.js | define(
[
'moment',
'backbone'
],
function (moment, Backbone) {
return Backbone.Model.extend({
dateFormat: 'YYYY-MM-DD HH:mm:ss',
defaults: {
title: '',
body: ''
},
schema: {
title: { ty... | JavaScript | 0 | @@ -383,32 +383,36 @@
: %7B type: 'Text
+Area
', validators: %5B
|
5d43409086824f3f5c77adcc3f892c7964f80c2f | Paste HTML content into email templates | src/Oro/Bundle/FormBundle/Resources/public/js/app/views/wysiwig-editor/txt-html-transformer.js | src/Oro/Bundle/FormBundle/Resources/public/js/app/views/wysiwig-editor/txt-html-transformer.js | define(function() {
'use strict';
return {
text2html: function(content) {
// keep paragraphs at least
return '<p>' + String(content).replace(/(\n\r?|\r\n?)/g, '</p><p>') + '</p>';
},
html2text: function(content) {
return String(content)
... | JavaScript | 0 | @@ -411,16 +411,95 @@
)/g, '')
+%0A .replace(/%5Cs*%5Cn%7B2,%7D/g, '%5Cn%5Cn')%0A .trim()
;%0A
|
befdc7e0cd121ddaa60ba656cd60f5d1fc1b7f00 | rename some consts | src/store/actions/userSession.actions.js | src/store/actions/userSession.actions.js | import axios from 'axios';
import history from '../configuration/history';
import { getAccessToken, setAccessToken } from '../api';
import {
CHECK_LOGGED_STATUS,
LOGIN_START,
LOGIN_SUCCESS,
LOGIN_FAILURE,
} from '../constants';
import { requestStart, requestComplete } from './request.actions';
import { ... | JavaScript | 0.000164 | @@ -507,32 +507,26 @@
nst URL_
-EXCHANGE_CODE_ON
+GET_GITHUB
_TOKEN =
@@ -576,29 +576,28 @@
nst URL_GET_
-ACCES
+JANU
S_TOKEN = pr
@@ -639,24 +639,31 @@
;%0Aconst URL_
+GITHUB_
AUTHORIZE =
@@ -1803,24 +1803,18 @@
URL_
-EXCHANGE_CODE_ON
+GET_GITHUB
_TOK
@@ -2153,13 +2153,12 @@
GET_
-ACCES
+JANU
S_TO
@@ -2924,... |
fa140a517e4f4ac764f6ff2a9d0730dfca30b938 | Work around jsdom TextDecoder limitation | tests/js/setup-globals.js | tests/js/setup-globals.js | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0 | @@ -589,22 +589,105 @@
e.%0A */%0A%0A
-window
+/**%0A * External dependencies%0A */%0Aimport %7B TextEncoder, TextDecoder %7D from 'util';%0A%0Aglobal
.webStor
@@ -714,14 +714,14 @@
%7B%7D;%0A
-window
+global
.web
@@ -1690,8 +1690,234 @@
),%0A%7D));%0A
+%0A// These are not yet available in jsdom environment.%0A// ... |
d4231b3848adf796e4c2e10108dcd99651823e01 | Make "ko.computed" an alias for "ko.dependentObservable" | src/subscribables/dependentObservable.js | src/subscribables/dependentObservable.js | function prepareOptions(evaluatorFunctionOrOptions, evaluatorFunctionTarget, options) {
if (evaluatorFunctionOrOptions && typeof evaluatorFunctionOrOptions == "object") {
// Single-parameter syntax - everything is on this "options" param
options = evaluatorFunctionOrOptions;
} else {
// ... | JavaScript | 0.000297 | @@ -5289,28 +5289,143 @@
', ko.dependentObservable);%0A
+ko.exportSymbol('ko.computed', ko.dependentObservable); // Make %22ko.computed%22 an alias for %22ko.dependentObservable%22
|
cb78789708419259fad7cf3d99f9c485e21f83af | Update card view | src/CardList.js | src/CardList.js | import React, { Component } from 'react';
import styled from 'styled-components';
import NoResults from './NoResults';
import Griddle, { plugins, utils, components } from 'griddle-react';
const { connect } = utils;
const CardWrapper = styled.div`
margin: 0 10px 0 10px;
`
const ListWrapper = styled.div`
`
const Ce... | JavaScript | 0 | @@ -262,24 +262,80 @@
10px 0 10px;
+%0A%0A h1 %7B%0A font-weight: bold;%0A font-size: 16px;%0A %7D
%0A%60%0A%0Aconst Li
@@ -1093,31 +1093,22 @@
%3Cli%3E
-%3Cstrong%3EState%3C/strong%3E:
+%7BrowData.city%7D
%7Bro
@@ -1118,16 +1118,24 @@
ta.state
+Province
%7D%3C/li%3E%0A
@@ -1145,34 +1145,8 @@
%3Cli%3E
... |
40efcf5ff1db786b9788d6ce7dcbfbbf83ad734e | Fix js tests. | assets/js/googlesitekit/datastore/user/tracking.test.js | assets/js/googlesitekit/datastore/user/tracking.test.js | /**
* `core/user` data store: user tracking settings tests.
*
* Site Kit by Google, Copyright 2021 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.apac... | JavaScript | 0 | @@ -1397,31 +1397,26 @@
ribe( 's
-aveUser
+et
Tracking
', () =%3E
@@ -1407,16 +1407,23 @@
Tracking
+Enabled
', () =%3E
@@ -1735,31 +1735,26 @@
NAME ).s
-aveUser
+et
Tracking
( enable
@@ -1745,16 +1745,23 @@
Tracking
+Enabled
( enable
@@ -2491,31 +2491,26 @@
NAME ).s
-aveUser
+et
Tracking
( ...arg
@@ -2501,... |
f8d8c8dc086f65d696248daae839e4309986b0c7 | Remove unused vars | assets/src/components/editor-carousel/reorderer-item.js | assets/src/components/editor-carousel/reorderer-item.js | /**
* WordPress dependencies
*/
import { compose } from '@wordpress/compose';
import { Draggable, DropZone } from '@wordpress/components';
import { Fragment } from '@wordpress/element';
import { withDispatch, withSelect } from '@wordpress/data';
/**
* Internal dependencies
*/
import BlockPreview from './block-prev... | JavaScript | 0.000001 | @@ -1087,23 +1087,16 @@
entId %7D,
- index,
movePag
@@ -1154,18 +1154,8 @@
type
-, srcIndex
%7D =
|
9aac5f79bceedba995b0fe4b6e861a9c0052de2d | Remove unused prop. | assets/src/edit-story/components/canvas/displayLayer.js | assets/src/edit-story/components/canvas/displayLayer.js | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0 | @@ -1270,40 +1270,8 @@
or%7D%0A
- overflowAllowed=%7Bfalse%7D%0A
|
de36e0b13ffcd0d922381fb3d1b8c476091b6008 | fix reference error to member | bot/listen.js | bot/listen.js | const refresh = require('./lib/refresh');
const bot = require('./bot.js');
const settings = require('./../settings.json');
const modules = require('./modules.js');
const Message = require('./../orm/Message')
const commands = require('./commands');
const request = require('request-promise-native');
const influx = requir... | JavaScript | 0 | @@ -996,32 +996,40 @@
fields: %7B tag:
+message.
member.user.tag,
|
6a6d3015334d1027d9087e333057bd71dcefc4fa | add whitespace | wordpress/webpack/entry_HOMEPAGE.js | wordpress/webpack/entry_HOMEPAGE.js | /**
* entry_HOMEPAGE.js
*
* Module for loading styles and scripts related to the home page only
*
*/
var $ = require( "jquery" ); // require jQuery
require("./homepage.scss");
// Wait for the DOM to be ready before loading in JSON
document.addEventListener( "DOMContentLoaded", function( event ) {
/*
* ===... | JavaScript | 0.999999 | @@ -908,24 +908,28 @@
( posts ) %7B%0A
+
%0A // var
|
e2b36fd78af79410d2cbb498e268d1df82d33285 | Remove lazy vs eager confusing behavior | ValidationMixin.js | ValidationMixin.js | "use strict";
require('object.assign').shim();
var ValidationFactory = require('./ValidationFactory');
var ValidationMixin = {
/**
* Validate single form field against the components state. If no field
* is provided, validate entire form.
*
* @param {?String} field State key to validate
* @return {O... | JavaScript | 0.000002 | @@ -1,9 +1,9 @@
-%22
+'
use stri
@@ -8,9 +8,9 @@
rict
-%22
+'
;%0A%0Ar
@@ -41,16 +41,55 @@
shim();%0A
+var result = require('lodash.result');%0A
var Vali
@@ -161,17 +161,16 @@
xin = %7B%0A
-%0A
/**%0A
@@ -176,322 +176,63 @@
*
-Validate single form field against the components state. If no field%0A * is... |
5e138d45d282b48616710b0fde5347f885064794 | remove photo gallery elements | overloadBrowser.js | overloadBrowser.js | var QUERY = 'lab puppies';
var PAGE = 0;
var puppyGenerator = {
init: function() {
this.requestPuppies();
this.reloadPuppies();
},
_searchOnFlickr: function(page) {
return 'https://secure.flickr.com/services/rest/?' +
'method=flickr.photos.search&' +
'api_key=53caa6bf9c68533d9fc34ca096bc6c72&... | JavaScript | 0 | @@ -75,24 +75,58 @@
unction() %7B%0A
+ // document.body.innerHTML();%0A
this.req
@@ -487,17 +487,19 @@
er_page=
-5
+100
&' +%0A
@@ -678,24 +678,29 @@
= this.showP
+uppyP
hotos.bind(t
@@ -737,16 +737,21 @@
%0A showP
+uppyP
hotos: f
@@ -1385,17 +1385,17 @@
'_
-n
+q
.jpg';%0A
@@ -1511,51 +1511,... |
f0e4cdf269ad140f3fc214d586758f50b7bff35a | Move socket creation to method | src/middleware.js | src/middleware.js |
import merge from 'deepmerge';
import {SOCKET_DISPATCH, SOCKET_RECEIVE_ACTION, SOCKET_CONNECT, SOCKET_DISCONNECT} from './constants';
const defaultOptions = {
actions: [],
};
export default function socketMiddleware(options = defaultOptions) {
let socket;
options = merge(defaultOptions, options);
// Determi... | JavaScript | 0 | @@ -646,16 +646,441 @@
d%0A %7D;%0A%0A
+ const setupSocket = (url) =%3E %7B%0A socket = options.resolveSocket(url);%0A%0A socket.on(SOCKET_RECEIVE_ACTION, action =%3E %7B%0A store.dispatch(%7B...action, emitted: true%7D);%0A %7D);%0A%0A socket.on('disconnect', () =%3E %7B%0A store.dispatch(%7B%... |
a9656a6a337266042f30a52b13667867a1f17e2e | add forceArray() function to core lib | share/js/core/lib.js | share/js/core/lib.js | // *************************************************************************
// Copyright (c) 2014, SUSE LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of ... | JavaScript | 0 | @@ -4644,32 +4644,166 @@
;%0A %7D%0A
+ %7D,%0A%0A // convert null to empty array%0A forceArray: function (arr) %7B%0A return (arr === null) ? %5B%5D : arr;%0A
%7D%0A%0A %7D
|
805dd1906bdc51f54f29bf8d31a5913248af80e1 | Trim return | preload.js | preload.js | (() => {
function onMessageCreated(session, store, router) {
return (data) => {
store.find('message', data.message.id).then((message) => {
const isSameId = message.get('senderId') === Number(session.get('user.id'));
const byHuman = message.get('senderType') === 'User';
if (isSameId... | JavaScript | 0.000001 | @@ -668,16 +668,35 @@
+/g, '
+').replace(/%5Cn/g, '
');%0A
|
b69fca4c144988fe5e047601864b0e976e5f23a0 | Maintain current protocol, hostname and port when navigating | mirror.js | mirror.js | /*global window, document, Faye */
/*jslint vars: true, indent: 2 */
(function () {
'use strict';
var begin = function (beginControlling, beginMirroring) {
var faye = new Faye.Client('/faye');
if (window.location.hostname.indexOf('mirror') === 0) {
beginMirroring(faye);
} else {
beginCont... | JavaScript | 0.000001 | @@ -372,24 +372,162 @@
ion (url) %7B%0A
+ var a = document.createElement('a');%0A a.href = url;%0A a.protocol = window.location.protocol;%0A a.host = window.location.host;%0A%0A
if (wind
@@ -547,19 +547,22 @@
ref !==
-url
+a.href
) %7B%0A
@@ -582,27 +582,30 @@
tion.href =
-url
+a.href
;%0A ... |
0879b66e28fcc4f8d5f7051c19d4633868467e1b | Remove accidental double import | examples/cities.js | examples/cities.js | var fs = require('fs');
// Replace with require('pikud-haoref-api') if the package resides in node_modules
var pikudHaoref = require('../index');
var pikudHaoref = require('../index');
// Pikud Haoref Google Maps API Key
var options = {
googleMapsApiKey: 'AIzaSyBYZ7FFqB5U1mP1nAwJ0iScWU5GjDP1KCM'
};
// Fetch city... | JavaScript | 0.000002 | @@ -143,47 +143,8 @@
x');
-%0Avar pikudHaoref = require('../index');
%0A%0A//
|
1c2881afadac58327f2e05c73e345a5b8f017ff1 | Fix does not notify | preload.js | preload.js | (() => {
function onMessageCreated(session, store, router) {
return (data) => {
store.find('message', data.message.id).then((message) => {
const isSameId = message.get('senderId') === Number(session.get('user.id'));
const byHuman = message.get('senderType') === 'User';
if (isSameId... | JavaScript | 0 | @@ -15,28 +15,27 @@
ction on
-MessageCreat
+EventReceiv
ed(sessi
@@ -71,18 +71,136 @@
rn (
-data) =%3E %7B
+messageEvent) =%3E %7B%0A const %7Bdata, type%7D = JSON.parse(messageEvent.data);%0A%0A if (type !== 'message:created') %7B return; %7D%0A
%0A
@@ -1274,22 +1274,22 @@
const
-pusher
+stream
... |
c6005f64c9cb054da3ba64ed4475fd3cf37bd806 | Make range properties on the object too | prelude.js | prelude.js | // vim:ts=2:sw=2:expandtab:autoindent:
/*
Copyright (c) 2008 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld
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 with... | JavaScript | 0.000001 | @@ -1426,25 +1426,83 @@
;%0A
-while (i %3C to) %7B%0A
+var r;%0A function RangeInstance() %7B%0A while (i %3C to) %7B%0A r%5Bi%5D = i;%0A
@@ -1514,16 +1514,18 @@
i;%0A
+
i += by;
@@ -1527,17 +1527,110 @@
= by;%0A
-%7D
+ %7D%0A %7D;%0A r = new RangeInstance();%0A r.__itererator__ = fu... |
c31ce504155277a531c39a9c960c276ad831bacb | connect to mysql when initializing the models | server/boot/init-models.js | server/boot/init-models.js | /*eslint-env node */
var async = require('async');
module.exports = function(app) {
//data sources
var mongodbsvr = app.dataSources.mongodbsvr;
//create all models
async.parallel({
operators: async.apply(createOperators),
schaetzers: async.apply(createSchaetzers),
}, function(err, results)... | JavaScript | 0.000001 | @@ -143,18 +143,65 @@
godbsvr;
+%0A var mysqldbsvr = app.dataSources.mysqldbsvr;
%0D%0A
-
%0D%0A //
@@ -513,36 +513,36 @@
ors(cb) %7B%0D%0A m
-ongo
+ysql
dbsvr.automigrat
@@ -864,20 +864,20 @@
%7B%0D%0A m
-ongo
+ysql
dbsvr.au
|
0bdfdfce38a94625e68294beaceac2b1907c0772 | Fix definition of payable | model/business-process-new/costs.js | model/business-process-new/costs.js | // BusinessProcess costs resolution
'use strict';
var memoize = require('memoizee/plain')
, definePercentage = require('dbjs-ext/number/percentage')
, defineCurrency = require('dbjs-ext/number/currency')
, defineMultipleProcess = require('../lib/multiple-process')
, defineCost ... | JavaScript | 0.000009 | @@ -1335,32 +1335,48 @@
e: %7B type: Cost,
+ multiple: true,
value: function
|
6ec189330da0591994b9ebb44b699f4bfab780c4 | Fix resolver my english in docs | addon/resolver.js | addon/resolver.js | /**
@module ember-flexberry
*/
import Ember from 'ember';
import EmberResolver from 'ember-resolver';
/**
Base ember-flexberry application dependencies resolver.
Usage:
```javascript
import Ember from 'ember';
import Resolver from 'ember-flexberry/resolver';
let App = Ember.Application.extend({
Re... | JavaScript | 0.000002 | @@ -553,18 +553,9 @@
-Contains n
+N
ames
@@ -562,20 +562,17 @@
of type
- for
+s
which n
@@ -574,29 +574,32 @@
ich need
- lookup class
+s to be resolved
with pr
@@ -598,24 +598,26 @@
with prefix
+es
received th
@@ -646,32 +646,46 @@
DeviceService%22%7D%7D
+device service
%7B%7B/crossLink%7D%7D.%0A
@@... |
8aa84298ca34434e6e49fdf82ad7edb036986641 | Fix loading cookies with old format | src/app/lib/filestore.js | src/app/lib/filestore.js | const tough = require('tough-cookie');
const { MemoryCookieStore } = require('tough-cookie/lib/memstore');
const fs = require('fs');
function iterateProperties(obj, cb) {
for(let elem in obj) {
if(obj.hasOwnProperty(elem)) {
cb(elem, obj[elem])
}
}
}
class FileStore extends MemoryC... | JavaScript | 0 | @@ -1082,23 +1082,148 @@
-let json = data
+if (data.length %3E= 2) %7B%0A if (data%5B0%5D == '%7B' && data%5Bdata.length - 1%5D == '%7D') %7B%0A let json = data && data.length %3E 0
? J
@@ -1244,16 +1244,24 @@
) : %7B%7D;%0A
+
@@ -1309,32 +1309,40 @@
%3E %7B%0A ... |
880d30bd2907adccd0b623b2ea9df92e0dfabd02 | Update HFC Google Maps API Key (from website source code) | examples/cities.js | examples/cities.js | var fs = require('fs');
// Replace with require('pikud-haoref-api') if the package resides in node_modules
var pikudHaoref = require('../index');
// Pikud Haoref Google Maps API Key
var options = {
googleMapsApiKey: 'AIzaSyBYZ7FFqB5U1mP1nAwJ0iScWU5GjDP1KCM'
};
// Fetch city metadata from Pikud Haoref's website
p... | JavaScript | 0 | @@ -226,41 +226,41 @@
zaSy
-BYZ7FFqB5U1mP1nAwJ0iScWU5GjDP1KCM
+CSeMZ5AxUgSWHy6EedcgeXjRC2irszdUQ
'%0A%7D;
|
7c3cf505456c06d83b1ffc42c54f0b3c4bd0417b | change deleteOldNotifications cronjob time | server/commons/cronjobs.js | server/commons/cronjobs.js | // Cron Jobs
// Delete users with scheduledDelete set on profile
SyncedCron.add({
name: 'deleteUser',
schedule: function(parser) {
return parser.text('at 05:30');
},
job: function() {
return Bisia.Automator.deleteUsersFromBisia();
}
});
// Delete notifications read older than a week
SyncedCron.add({
name: '... | JavaScript | 0 | @@ -393,18 +393,18 @@
('at 05:
-00
+45
');%0A%09%7D,%0A
|
7e44b33b4915553f6620b025fa75cea0785f2702 | Remove shown tooltips after EPESI loading | modules/Utils/Tooltip/js/tooltip.js | modules/Utils/Tooltip/js/tooltip.js | Utils_Tooltip = {
timeout_obj: false,
enable_tooltips: function () {
jQuery('body').tooltip({selector: '[data-toggle="tooltip"]', html: true, trigger: "hover", container: "body"})
},
load_ajax: function (tooltip_id) {
jQuery('[data-ajaxtooltip="' + tooltip_id + '"]').on('shown.bs.tooltip... | JavaScript | 0 | @@ -188,16 +188,111 @@
%22body%22%7D)
+;%0A jQuery(document).on('e:loading', function() %7B jQuery('%5Brole=%22tooltip%22%5D').remove() %7D);
%0A %7D,%0A
|
76b175154b058d35a2dc8c1ce176cde16ea7ab7d | Add favicon | pages/_document.js | pages/_document.js | import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
import stylesheet from './styles.scss'
export default class MyDocument extends Document {
render () {
return (
<html>
<Head>
<meta charSet='utf-8' />
<meta name='viewport' content='width=d... | JavaScript | 0.000142 | @@ -411,24 +411,342 @@
sheet %7D%7D /%3E%0A
+ %3Clink rel='icon' type='image/png' href='/static/img/favicon/favicon-16x16.png' sizes='16x16' /%3E%0A %3Clink rel='icon' type='image/png' href='/static/img/favicon/favicon-32x32.png' sizes='32x32' /%3E%0A %3Clink rel='icon' type='image/png' href... |
be8f649ddd543350f2cad2d4674338e9f4564d74 | Add style prop schema | preview.js | preview.js | import React, { PropTypes, Component } from 'react';
export const getScale = (previewSize, cropArea) => {
return previewSize.width / cropArea.width;
};
export const getOrigin = (cropArea) => {
return {
x: cropArea.left + cropArea.width / 2,
y: cropArea.top + cropArea.height / 2
};
};
export const getTr... | JavaScript | 0 | @@ -1082,14 +1082,106 @@
pes.
-object
+shape(%7B%0A width: PropTypes.number.isRequired,%0A height: PropTypes.number.isRequired%0A %7D)
%0A %7D
|
dc58df48961c0edb60cd96527fc3e627580ea71a | Update current nsIAlertSerivce implementation | bootstrap.js | bootstrap.js | /* vim: set ts=2 ft=javascript */
/* 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/. */
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Comp... | JavaScript | 0 | @@ -1894,16 +1894,74 @@
Browsing
+,%0A aAlert.requireInteraction
);%0A %7D,%0A
@@ -2182,16 +2182,71 @@
Browsing
+,%0A aRequireInteraction
) %7B%0A
@@ -4150,16 +4150,142 @@
;%0A %7D,%0A%0A
+ showPersistentNofitication: function(aPersistentData, a... |
470dfa99032d1d4573117700c0c1b2411cf90aca | Add number regex | src/app/validators/number-validator.directive.js | src/app/validators/number-validator.directive.js | (function() {
'use strict';
var app = angular.module('radar.validators');
// TODO
app.directive('numberValidator', function() {
return {
restrict: 'A'
};
});
})();
| JavaScript | 0.99995 | @@ -73,16 +73,66 @@
ors');%0A%0A
+ var NUMBER_REGEX = /%5E%5B+-%5D?%5B0-9%5D+(%5C.%5B0-9%5D+)?$/;%0A%0A
// TOD
|
fb2db9a29c99a5a6fff14f3bc78bcd933511010d | improve parameter name | src/app/models/client.js | src/app/models/client.js | import { v4 } from "uuid"
import {
forEach,
forEachObjIndexed,
isNil,
map,
reject,
zipObj
} from "ramda"
import Redis from "./redis"
import Game from "./game"
import Revision from "./revision"
import { logger } from "~/app/index"
import { BLACK } from "~/share/constants/chess"
import { BEFORE, PRIMARY, ... | JavaScript | 0.000118 | @@ -3015,20 +3015,20 @@
nc move(
-data
+move
) %7B%0A
@@ -3175,20 +3175,20 @@
meUUID,
-data
+move
)%0A%0A i
|
576f0e28a8eb8f329b9dc827285922d327ec026a | fix redundancy | server/config/db.config.js | server/config/db.config.js | const Sequelize = require('sequelize')
const creds = require('./credentials') // grabbing the data from credentials.json
/* NOTE: that file is gitignored, add instructions on how to get
username and password!
*/
// creates database connection credentials needed to connect to DB via Sequelize
const dburl = `p... | JavaScript | 0.000148 | @@ -472,100 +472,13 @@
ze('
-postgres://sritpzob:inSkiV6E-lydsG8qoAmazy9Zmf9swVL3@tantor.db.elephantsql.com:5432/sritpzob
+dburl
')%0A%0A
|
eba1874b624fe0808df5a5c7b4b99a82812b2514 | add project creates div | dashboard.js | dashboard.js | $(document).ready(function() {
// var header = document.getElementById("dancer_header");
// header.style.visibility='hidden';
document.getElementById("waveform_button").onclick = function () {
location.href = document.location.href.replace("dashboard", "index");
};
$("#form_part1").submi... | JavaScript | 0.000001 | @@ -883,19 +883,22 @@
-var node =
+p.appendChild(
docu
@@ -933,91 +933,244 @@
itle
- + %22%3Cbr%3E%22 + filename + %22%3Cbr%3E%22 + numDancers +%22 dancers%22);%0A p.appendChild(node
+));%0A p.appendChild(document.createElement('br'))%0A p.appendChild(document.createTextNode(filename));%0A... |
ac394a9dc52f9dfaa37d6bbea107953d4c335de2 | make sure the promise rejects when it should | packages/api/utils/audio-over-socket.js | packages/api/utils/audio-over-socket.js | /**
* This file contains some re-usable parts for websocket audio communication.
*
* @module api/utils/audio-over-socket
*/
import autobahn from 'autobahn';
import { getWebsocketConnection, makeWebsocketCall } from '../communication/websocket';
import broadcaster from '../broadcaster';
import { dataToBase64, async... | JavaScript | 0.000021 | @@ -2866,24 +2866,100 @@
%7D%0A
+ %7D else %7B%0A defer.reject('no progress function registered');%0A
%7D%0A
|
7ac5a4cf2a50854dbbfc9a68e11edc2dca1a2403 | add notes | Algorithms/JS/arrays/matrices/nQueenProblem.js | Algorithms/JS/arrays/matrices/nQueenProblem.js | // Objective : In chess, a queen can move as far as she pleases, horizontally, vertically, or diagonally.
// A chess board has 8 rows and 8 columns.
// The standard 8 by 8 Queen’s problem asks how to place 8 queens on an ordinary chess board
// so that none of them can hit any other in one move.
// Here we ... | JavaScript | 0 | @@ -856,32 +856,52 @@
st) return true;
+ // cant be same row
%0A if (last -
@@ -948,24 +948,74 @@
return true;
+ // prev cant be one away from current cuz of diag
%0A if (las
@@ -1107,17 +1107,53 @@
false;%0A
-
%7D
+%0A// 00 01 02%0A// 10 11 12%0A// 20 21 22
%0A%0Avar pl
|
0d9cc4057ae0322e53d83da21baa36f2f445c671 | Refactor code | server/controllers/auth.js | server/controllers/auth.js | import passport from 'passport';
import passportLocal from 'passport-local';
import bcrypt from 'bcrypt';
import user from '../models';
import helpers from '../helpers';
const LocalStrategy = passportLocal.Strategy;
passport.serializeUser((sessionUser, done) => {
done(null, sessionUser.id);
});
passport.deserializ... | JavaScript | 0.000002 | @@ -106,20 +106,22 @@
%0Aimport
-user
+models
from '.
@@ -211,16 +211,42 @@
trategy;
+%0Aconst User = models.User;
%0A%0Apasspo
@@ -538,13 +538,8 @@
%7B%0A
-user.
User
|
f5f26a771785b94185fb3928adc0cdeae4cdccf4 | Update app.js | assets/js/app.js | assets/js/app.js | $( document ).ready(function() {
/* Sidebar height set */
$('.sidebar').css('min-height',$(document).height());
/* Secondary contact links */
var scontacts = $('#contact-list-secondary');
var contact_list = $('#contact-list');
scontacts.hide();
contact_list.mouseenter(function(){ scontacts.fadeIn(); });
... | JavaScript | 0.000002 | @@ -375,13 +375,12 @@
(); %7D);%0A
-%0A
%7D);%0A
|
931e4ec0cafa5f99b3e7255172eddcc8cbcfd797 | Fix ready function. | slyd/media/js/app.js | slyd/media/js/app.js | /*************************** Application **************************/
ASTool = Em.Application.create({
LOG_TRANSITIONS: true,
ready: function() {
LOG_TRANSITIONS: true,
}
});
// Leave 'null' for using window.location. Define it to override.
var SLYD_URL = null;
(function getServerCapabiliti... | JavaScript | 0 | @@ -153,47 +153,11 @@
() %7B
-%0A LOG_TRANSITIONS: true, %0A
%7D
-
%0A%7D);
|
f3e16214cb92a6f904ef5438697fe1d5de4d1187 | Fix missing comma in LangDic.js | src/LangDic.js | src/LangDic.js | export default {
'cn' : { // Chinese
'january':'一月',
'february':'二月',
'march':'三月',
'april':'四月',
'may':'五月',
'june':'六月',
'july':'七月',
'august':'八月',
'september':'九月',
'october':'十月',
'november':'十一月',
'december':'十二月',
'su':'日',
'mo':'一',
'tu':'二',
'we... | JavaScript | 0.999996 | @@ -2416,16 +2416,17 @@
:'%ED%86%A0'%0A %7D
+,
%0A 'es'
|
55e933e33ec6c1e5ff18d293401ca9f8b1a38aa2 | Add use strict | subtitle.js | subtitle.js | /*!
* Subtitle.js
* Parse and manipulate SRT (SubRip)
* https://github.com/gsantiago/subtitle.js
*
* @version 0.1.1
* @author Guilherme Santiago
*/
/**
* Dependencies
*/
var extend = require('xtend/immutable')
/**
* @constructor
* @param {String} Optional SRT content to be parsed
*/
function Subtitle (srt) {... | JavaScript | 0.000009 | @@ -1,8 +1,22 @@
+'use strict'%0A%0A
/*!%0A * S
@@ -328,16 +328,77 @@
(srt) %7B%0A
+ if (!(this instanceof Subtitle)) return new Subtitle(srt)%0A%0A
this._
|
09cff33b573d90d87c29895ebb03e3537b6a6dfd | fix off-by-one error—end param in `eagerSlice` is exclusive | src/LazyList.js | src/LazyList.js | import { cloneElement, Component, PropTypes } from 'react'
const proxyMethods = [
'getOffset',
'getScrollParent',
'getScroll',
'setScroll',
'getViewportSize',
'getScrollSize',
'getStartAndEnd',
'getItemSizeAndItemsPerRow',
'getSpaceBefore',
'getSizeOf',
'scrollTo',
'scrollAround',
'getVisible... | JavaScript | 0 | @@ -2864,12 +2864,8 @@
ngth
- - 1
)%0A%0A
|
4d2a80b4cb26bed3376b3697baaa200bed3ae4c9 | Remove Extra Log Statement | src/mockingjay.js | src/mockingjay.js | /**
* Core that determines wether to fetch a fresh copy from the source or
* fetch a cached copy of the data.
*/
var CacheClient = require('./cache_client');
var HttpClient = require('./http_client');
var HeaderUtil = require('./header_util');
var Util = require('./util');
var url = require('url');
var Mockingjay ... | JavaScript | 0 | @@ -1755,32 +1755,8 @@
) %7B%0A
- console.log(request);%0A
va
|
3adc27e2a5f97b579800bc324a091e99cb34cbe3 | support to get last command through up key in terminal | packages/code/widget/widget_terminal.js | packages/code/widget/widget_terminal.js | /*
@author Zakai Hamilton
@component WidgetTerminal
*/
screens.widget.terminal = function WidgetTerminal(me) {
me.element = {
properties : __json__
};
me.sendInput = function (terminal, message, type) {
var window = me.widget.window.get(terminal);
var field = me.ui.element.create... | JavaScript | 0 | @@ -145,17 +145,16 @@
operties
-
: __json
@@ -1671,26 +1671,8 @@
===
- 38 %7C%7C e.which ===
40
@@ -1736,24 +1736,335 @@
%7D
+ else if (e.which === 38) %7B%0A e.preventDefault();%0A if(terminal.lastCommand) %7B%0A me.core.property.set(terminal.var.inp... |
8a8f85ac2e6ff783d7e85ca265a4d2b5ac996545 | Make sure that we are only processing messages that are of type request | src/request/repository/message-store-manage.js | src/request/repository/message-store-manage.js | 'use strict';
var _ = require('lodash');
var glimpse = require('glimpse');
var processMessages = function(messages) {
return {
messages: messages,
groupedById: _.groupBy(messages, 'context.id')
};
};
// republish Found Summary
(function () {
function republishFoundSummary(messages) {
... | JavaScript | 0 | @@ -114,16 +114,160 @@
ges) %7B %0A
+ // NOTE: currently filtering out messages that aren't of type %22request%22%0A messages = _.filter(messages, 'context.type', 'request'); %0A %0A
retu
|
b21b09b292dec9ed68c592aaba7faee7f218c2e8 | Set default hook selector to `css` | src/model/Hook.js | src/model/Hook.js | var promises = require('q');
/** Mapping from short selector types to WebDriver's fully qualified selector types.
*
*@see <http://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/element>
*/
var WATAI_SELECTOR_TYPES_TO_WEBDRIVER_TYPES = {
css : 'css selector',
xpath : 'xpath',
a : 'partia... | JavaScript | 0 | @@ -427,16 +427,105 @@
ame'%0A%7D%0A%0A
+/** Default Watai selector type%0A*%0A*@type%09%7BString%7D%0A*/%0Avar DEFAULT_SELECTOR_TYPE = 'css';%0A%0A
/**@clas
@@ -970,16 +970,122 @@
iver) %7B%0A
+%0A%09if (typeof hook == 'string') %7B%0A%09%09this.type = DEFAULT_SELECTOR_TYPE;%0A%09%09this.selector = hook;%0A%09%7D%0... |
46081846864bab71b3bbd93d8dd873358efc22c4 | Update main.js | data/main.js | data/main.js | var sketchProc=function(processingInstance){ with (processingInstance){
setup = function() {
//Setup
var w = window.innerWidth ||
document.documentElement.clientWidth ||
document.body.clientWidth;
var h = window.innerHeight ||
document.documentElement.clientHeigh... | JavaScript | 0.000001 | @@ -427,16 +427,22 @@
dImage(%22
+/data/
images/B
|
bbf40d51f594bf86c65605b4ca70fbfca82b5cbd | Update macSay to use a queue and the new createClient | examples/macSay.js | examples/macSay.js | /*
* A fun little BART talker, kinda like the ones on the platform.
* Only works on a Mac!
*/
var exec = require('child_process').exec;
var bart = require('../lib/bart');
var speechQueue = [];
var say = function(estimates, voice){
//Build two statuses, one for the next train, and one for the one after it.
v... | JavaScript | 0 | @@ -163,16 +163,31 @@
b/bart')
+.createClient()
;%0A%0Avar s
@@ -1803,107 +1803,74 @@
-speechQueue.push(%7B%22estimates%22:estimates, %22voice%22:%22Victoria%22%7D);%0A%7D);%0A%0Abart.on('dbrk north', function(
+// console.log(estimates)%0A foo = %5Bestimates%5B3%5D, estimates%5B4%5D,
esti
@@ -1870,26 +18... |
2251e9be7acd7898671597252596ea68e3327412 | _ is an allowed first character of mqlkeys | webapp/WEB-INF/js/mjt/src/freebase/mqlkey.js | webapp/WEB-INF/js/mjt/src/freebase/mqlkey.js |
(function (mjt) {
/**
*
* routines to quote and unquote javascript strings as valid mql keys
*
*/
var mqlkey_start = 'A-Za-z0-9';
var mqlkey_char = 'A-Za-z0-9_-';
var MQLKEY_VALID = new RegExp('^[' + mqlkey_start + '][' + mqlkey_char + ']*$');
var MQLKEY_CHAR_MUSTQUOTE = new RegExp('([^' + mqlkey_char + '])... | JavaScript | 0.998455 | @@ -784,30 +784,8 @@
'-'
- %7C%7C x.charAt(0) == '_'
) %7B%0A
|
e02e8158859f2b0d07731f1d21fbbf454c94f831 | Refactor Google Analytics logic | src/runtime/google-analytics-event-listener.js | src/runtime/google-analytics-event-listener.js | /**
* Copyright 2021 The Subscribe with Google Authors. 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
*
* U... | JavaScript | 0.000934 | @@ -754,16 +754,186 @@
ypes';%0A%0A
+/** @typedef %7B?function(string, string, Object)%7D */%0Alet AnalyticsMethod;%0A%0A/** @typedef %7B%7Bga: AnalyticsMethod, gtag: AnalyticsMethod%7D%7D */%0Alet WindowWithAnalyticsMethods;%0A%0A
export c
@@ -1067,15 +1067,28 @@
t %7B!
-Window%7D
+./deps.DepsDef%7D deps
*/%0A
@@... |
dd3c409f7665fb9e812db288d66a5bf31e53ee70 | update for reversed dpad on gear vr | webapp/folders/default/scripts/leadvsgold.js | webapp/folders/default/scripts/leadvsgold.js | function updateStats(num) {
$.get(flaskServ + '/' + dbname + "/info/" + num, function (data) {
splitinfo = data.split(':')
$("#curfolder").html(splitinfo[0]);
$("#curcreator").html(splitinfo[1]);
$("#curindex").html(splitinfo[2]);
$("#cursession").html(splitinfo[3]);
... | JavaScript | 0 | @@ -428,40 +428,109 @@
ge(a
-ctionUrl, infoText, infoColor) %7B
+rgsobj) %7B%0A var actionUrl = argsobj%5B0%5D%0A var infoText = argsobj%5B1%5D%0A var infoColor = argsobj%5B2%5D
%0A
@@ -1214,16 +1214,706 @@
5000';%0A%0A
+upact = '/next/up/', upfolder, upcolor;%0Adownact = '/next/down/', downfolder, downc... |
3105606fda2e8abd112b2203c204d9fc286ebcda | add pregnancy form to calculate births recorded | mvp_apps/mvp_births/views/child_cases_by_status/map.js | mvp_apps/mvp_births/views/child_cases_by_status/map.js | function (doc) {
// !code util/mvp.js
if (isChildCase(doc)) {
var indicator_entries_open = {},
indicator_entries_closed = {},
indicators_dob = [];
var status = (doc.closed) ? "closed" : "open";
if (doc.dob || doc.dob_calc) {
var dob_date = doc.dob_ca... | JavaScript | 0.000001 | @@ -60,16 +60,54 @@
se(doc))
+ %7C%7C%0A isPregnancyCloseForm(doc))
%7B%0A
|
5c21395958cf6393d9fc66c6b16a463163532179 | Fix missing calculation | www/js/factories/DExOfferFactory.js | www/js/factories/DExOfferFactory.js | angular.module("omniFactories")
.factory("DExOffer",["Address", "WHOLE_UNIT",function DExOfferFactory(Address, WHOLE_UNIT){
var DExOffer= function(data,propertydesired,propertyselling,side){
var self = this;
self.initialize = function(){
data = data || {};
self.rawdata = data;
self.propertysellin... | JavaScript | 0.999809 | @@ -807,16 +807,74 @@
)%7B%0A%09%09%09%09%09
+self.price = self.desired_amount.div(self.selling_amount);
%0A%09%09%09%09%7D e
|
8bf230745c060c6be38466bab46605335581b980 | Update rules (#4) | packages/eslint-config-transit/index.js | packages/eslint-config-transit/index.js | 'use strict';
module.exports = {
extends: 'airbnb-base',
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {},
sourceType: 'script',
},
rules: {
'no-param-reassign': 'off',
'no-use-before-define': 'off',
'no-continue': 'off',
'radix': 'off',
'max-len': ['error', 120, 2],
'qu... | JavaScript | 0 | @@ -681,16 +681,53 @@
%7D%5D,%0A
+ 'class-methods-use-this': 'off',%0A
%7D,%0A%7D;%0A
|
830bfb248ed78f2df1a19e8b68c8a5cd93ca474f | Make examples/sensor.js more generic | examples/sensor.js | examples/sensor.js | var arduino = require('../'),
board, ldr;
board = new arduino.Board({
debug: true
});
ldr = new arduino.Sensor({
board: board,
pin: 'A0'
});
ldr.on('read', function(value) {
// |value| is reading of the light dependent resistor
console.log(value);
});
// Tested with:
// SoftPot
// http://www.spectra... | JavaScript | 0 | @@ -34,18 +34,21 @@
board,
-ld
+senso
r;%0A%0Aboar
@@ -90,18 +90,21 @@
ue%0A%7D);%0A%0A
-ld
+senso
r = new
@@ -157,10 +157,13 @@
);%0A%0A
-ld
+senso
r.on
@@ -180,16 +180,21 @@
unction(
+err,
value) %7B
@@ -194,16 +194,33 @@
alue) %7B%0A
+ value = +value;
%0A // %7Cv
@@ -228,16 +228,24 @@
lue%7C is
+cu... |
1e35f8fbbcdfe380dd77d6d7be6966c742699c8f | Add fn to shorten quarter name | myuw/static/vue/mixins/utils.js | myuw/static/vue/mixins/utils.js | import dayjs from 'dayjs';
export default {
methods: {
encodeForMaps(s) {
if (s) {
s = s.replace(/ \(/g, " - ");
s = s.replace(/[\)&]/g, "");
s = encodeURIComponent(s);
}
return s;
},
// Phone Number Utils
parsePhoneNumber(phNumStr) {
let parsed = null;
... | JavaScript | 0.000002 | @@ -1906,15 +1906,190 @@
%0A %7D,%0A
+ quarterAbbr(quarter_str) %7B%0A if (!quarter_str %7C%7C quarter_str.length === 0) %7B%0A return %22%22;%0A %7D%0A return quarter_str.substring(0, 3).toUpperCase();%0A %7D,%0A
%7D,%0A%7D%0A
|
b39dc601b261fbe61b5d6a10b141f7e299a29256 | Remove start button | src/MainMenu.js | src/MainMenu.js | /**
*
* The MainMenu state is used to display the games rules/instructions as well as providing a link to the terms and conditions of the game.
* The main menu will provide a start button which upon being pressed will load the Story state.
*/
var menumusic;
Game.MainMenu = function(game) { };
Game.MainMenu.protot... | JavaScript | 0.000004 | @@ -353,623 +353,8 @@
e)%7B%0A
- menumusic = game.add.audio('menu_music');%0A menumusic.play('', 0, 0.5, true);%0A%0A game.Storage = this.game.plugins.add(Phaser.Plugin.Storage);%0A%0A game.Storage.initUnset('Highscore', 0);%0A var highscore = game.Storage.get('Highscore') %7C%7C 0;%... |
7c3adf0d0235eabcf373d5112e3f4e17b6717fb4 | Remove confirmation for manually unpinned tabs | Keep-my-Pinned-Tab/src/bg/background.js | Keep-my-Pinned-Tab/src/bg/background.js | chrome.tabs.onCreated.addListener(
function(tab){
if(tab.pinned) {
chrome.tabs.executeScript(tab.id, {file: "src/js/onbeforeunload.js"});
}
}
);
chrome.tabs.onUpdated.addListener(
function(tabId, changeInfo, tab) {
if(changeInfo && changeInfo.pinned) {
chrome.tabs.executeScript(tabId, {fi... | JavaScript | 0 | @@ -1,20 +1,37 @@
+pinedTabs = %7B%7D;%0A%0A
chrome.tabs.onCreate
@@ -36,35 +36,32 @@
ted.addListener(
-%0A
function(tab)%7B%0A
@@ -59,18 +59,16 @@
n(tab)%7B%0A
-
if(tab
@@ -72,32 +72,60 @@
tab.pinned) %7B%0A
+ pinedTabs%5Btab.id%5D = true;%0A
chrome.tabs.
@@ -143,38 +143,38 @@
pt(tab.id, %7B
-fil... |
4d20443f241d9b08360ba6772f968db363397601 | make dewars server side pageable | client/js/collections/dewars.js | client/js/collections/dewars.js | define(['backbone.paginator', 'models/dewar', 'utils/kvcollection'], function(PagableCollection, Dewar, KVCollection) {
return PagableCollection.extend(_.extend({}, KVCollection, {
mode: 'client',
model: Dewar,
url: function() { return '/shipment/dewars'+(this.id ? '/sid/'+this.id : '')+(this.fc ? ... | JavaScript | 0 | @@ -117,16 +117,11 @@
) %7B%0A
+%0A
- %0A
re
@@ -185,25 +185,34 @@
%7B%0A
-%09
+
mode: '
-client',%0A
+server',%0A
@@ -225,16 +225,20 @@
Dewar,%0A
+
url:
@@ -351,17 +351,80 @@
,%0A
+
%0A
+ state: %7B%0A pageSize: 15,%0A %7D,%0A%0A
... |
574317578b9e5a6299428e32c5a90b9a9b32c8f5 | Rename reset to resetColorFg | bundleSize.js | bundleSize.js | const fs = require('fs');
const path = require('path');
const newDistPath = './dist';
const oldDistPath = './dist_old';
const getFileSizes = folderPath => {
return fs.readdirSync(folderPath).reduce((res, fileName) => {
res[fileName] = fs.readFileSync(path.join(folderPath, fileName)).byteLength;
return res;
... | JavaScript | 0.000001 | @@ -612,16 +612,23 @@
st reset
+ColorFg
= '%5Cx1b
@@ -751,16 +751,23 @@
s$%7Breset
+ColorFg
%7D%25s$%7Bsiz
@@ -784,16 +784,23 @@
s$%7Breset
+ColorFg
%7D%60,%0A
|
d6f0ace2239e0bc2e5ea9dd1e774985eed860c40 | use optimizeForBuffers in example | examples/server.js | examples/server.js | var http = require('http'),
dcache = require('../lib'),
//dstore = require('distribucache-redis-store'),
dstore = require('distribucache-memory-store'),
cacheClient = dcache.createClient(dstore()),
server, cache;
cache = cacheClient.create('page', {
staleIn: '5 sec',
populate: generatePage
});
server = ... | JavaScript | 0 | @@ -57,10 +57,8 @@
,%0A
-//
dsto
@@ -98,24 +98,26 @@
-store'),%0A
+//
dstore = req
@@ -298,16 +298,44 @@
ratePage
+,%0A optimizeForBuffers: true
%0A%7D);%0A%0Ase
@@ -684,16 +684,27 @@
b(null,
+new Buffer(
'%3Cp%3EHell
@@ -721,17 +721,17 @@
p%3E')
+)
;%0A %7D,
-50
+3
00);
|
2ee060497e732b176e74d33e11a2d309076edf12 | Disable button until loaded. | src/devilry_subjectadmin/devilry_subjectadmin/static/devilry_subjectadmin/app/view/period/ListOfRelatedUsers.js | src/devilry_subjectadmin/devilry_subjectadmin/static/devilry_subjectadmin/app/view/period/ListOfRelatedUsers.js | /**
* Overview of relatated users on a period.
*/
Ext.define('devilry_subjectadmin.view.period.ListOfRelatedUsers' ,{
extend: 'Ext.container.Container',
alias: 'widget.listofrelatedusers',
requires: [
'devilry_extjsextras.AlertMessageList',
'devilry_extjsextras.DjangoRestframeworkProxyErro... | JavaScript | 0 | @@ -2486,24 +2486,64 @@
: 'medium',%0A
+ disabled: true,%0A
@@ -2963,24 +2963,62 @@
%7D);%0A
+ this.down('button').enable();%0A
%7D,%0A%0A
|
6fe12c4d7ccc125776b8982a713f4b5a06d045e6 | Add scrollMeIntoView JavaScript helper | app/assets/javascripts/ax_window.js | app/assets/javascripts/ax_window.js | Ax.Window = {
make: function(url, options) {
var window = $.extend({}, Ax.Window.Methods);
window.url = url;
window.options = options || {};
return window;
},
loadFunction: function(target) {
target.find("a.popup").click(function() {
var link = $(this);
var content = link.attr("pop... | JavaScript | 0 | @@ -668,16 +668,559 @@
%7D%0A );
+%0A%0A $.fn.scrollMeIntoView = function () %7B%0A var $container = this.scrollParent(),%0A containerTop = $container.offset().top,%0A containerBottom = containerTop + $container.height(),%0A elemTop = this.offset().top,%0A ... |
c5cd627df50e73e7b23a806a29b5a47adb068151 | Fix syntax | assets/js/dpi.js | assets/js/dpi.js | var hashRegex = /^#(\d+)[x×](\d+)(@(\d*\.?\d+)["″])?|(\d*\.?\d+)["″]$/;
var dppx = window.devicePixelRatio ||
(window.matchMedia && window.matchMedia("(min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 1.5),(-moz-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5)").matches? 2 : 1) ||
1;
width.v... | JavaScript | 0.509732 | @@ -613,12 +613,12 @@
n dp
-
i %3E
+
0 ?
|
c3e969f11b9efa77ebc12b5595c0bbbf6b465df2 | Fix usual breakpoints | src/components/core/breakpoints/getBreakpoint.js | src/components/core/breakpoints/getBreakpoint.js | import { window } from 'ssr-window';
export default function (breakpoints) {
// Get breakpoint for window width
if (!breakpoints) return undefined;
let breakpoint = false;
const points = Object.keys(breakpoints).map((point) => {
if (typeof point === 'string' && point.startsWith('@')) {
const minRati... | JavaScript | 0.998631 | @@ -445,21 +445,39 @@
return
-point
+%7B value: point, point %7D
;%0A %7D);%0A
|
fcb554cc20bb98fd9ff1b944dac779242e5ffef0 | Improve example server view helpers | examples/server.js | examples/server.js | 'use strict';
//
// Require some modules
//
var fs = require('fs');
var jade = require('jade');
var connect = require('connect');
var Mincer = require('..');
//
// Get Mincer environment
//
var environment = require('./environment');
//
// Create connect application
//
var app = connect();
//
// ... | JavaScript | 0 | @@ -66,24 +66,55 @@
uire('fs');%0A
+var path = require('path');%0A
var jade
@@ -854,16 +854,199 @@
= %7B%7D;%0A%0A%0A
+// dummy helper that injects extension%0Afunction rewrite_extension(source, ext) %7B%0A var source_ext = path.extname(source);%0A return (source_ext === ext) ? source : (source + ext);%0A%7... |
e59d133e4dab08a4fbe8d32588dbe8ec18d7776b | remove unused method (#2213) | BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Application/View/TrashItem/ContentRestoreModalView.js | BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Application/View/TrashItem/ContentRestoreModalView.js | import AbstractRestoreModalView from './AbstractRestoreModalView'
import Content from '../../Model/Content/Content'
import Application from '../../Application'
/**
* @class ContentRestoreModalView
*/
class ContentRestoreModalView extends AbstractRestoreModalView
{
/**
* @privat... | JavaScript | 0 | @@ -295,237 +295,8 @@
w%0A%7B%0A
- /**%0A * @private%0A */%0A _getEditModelUrl() %7B%0A new Content(%7Bid: this._model.get('entity_id') %7D).fetch(%7B%0A success: (content) =%3E %7B%0A console.log(content);%0A %7D%0A %7D);%0A %7D%0A%0A
|
3966a4ea0ce32b7c0c582dc49b035627542263be | move code around | node-modules-installer.js | node-modules-installer.js | 'use strict';
var zlib = require('zlib');
var tar = require('tar');
var path = require('path');
var RegistryClient = require('./registry-client.js');
var TarballRepository = require('./tarball-repository.js');
module.exports = NodeModulesInstaller;
function NodeModulesInstaller() {
this.registryClient = new Reg... | JavaScript | 0.000001 | @@ -515,16 +515,333 @@
this;%0A%0A
+ self.unpackModule(prefix, moduleName, versionish, onUnpackaged);%0A%0A function onUnpackaged(err) %7B%0A if (err) %7B%0A return cb(err);%0A %7D%0A%0A cb(null);%0A %7D%0A%7D;%0A%0ANodeModulesInstaller.prototype.unpackModule =%0Afunction unpa... |
2b8c5256a217e9147ec5aa3b3b68d7fb369c3b66 | throw new error when path is not defined in file store | src/adapter/store/file.js | src/adapter/store/file.js | 'use strict';
import fs from 'fs';
import path from 'path';
/**
* file store class
*/
export default class extends think.adapter.store {
/**
* init
* @param {Object} config []
* @return {} []
*/
init(config){
this.config = think.extend({
path: ''
}, config);
if(!think.isDi... | JavaScript | 0.000001 | @@ -295,16 +295,93 @@
nfig);%0A%0A
+ if(!config.path)%7B%0A throw new Error('path must be defined.');%0A %7D%0A%0A
if(!
|
fc3b9ead01065ed2a3901211f0da2af2035ba596 | Test 123 | document/web/template.js | document/web/template.js |
var template = [];
// template object
if(window.Ravel.isLoaded) {
var _TEMPLATE = function( url ) {
this.url = url;
this.load = function( params ) {
if (window.XMLHttpRequest) { ajax = new XMLHttpRequest() }
if(typeof(params) == "object" ) {
p = JSON.stringify(params).replace(/[\"\}\{]/g, '... | JavaScript | 0.000001 | @@ -32,16 +32,20 @@
e object
+ 123
%0Aif(wind
|
4905ec521e81f56525dc884ad5a4c3a437b15310 | Update example | examples/simple.js | examples/simple.js | "use strict";
const cursor = require('kittik-cursor').Cursor.create().resetTTY();
const Print = require('../lib/Print').default;
const shape = require('kittik-shape-rectangle').default.create({
text: 'Good news, everybody!',
x: 'center',
background: 'white',
width: '50%'
});
new Print({
easing: 'inOutSine',... | JavaScript | 0.000001 | @@ -52,14 +52,15 @@
r').
-Cursor
+default
.cre
@@ -256,13 +256,39 @@
d: '
-white
+yellow_1',%0A foreground: 'black
',%0A
|
68d558762eb083a68b2b85c9ae376ebcd34ec7b9 | inserta arriba | client/route-card-view/index.js | client/route-card-view/index.js | var analytics = require('analytics');
var d3 = require('d3');
var convert = require('convert');
var Feedback = require('feedback-modal');
var mouseenter = require('mouseenter');
var mouseleave = require('mouseleave');
var Calculator = require('route-cost-calculator');
var RouteDirections = require('route-directions-tab... | JavaScript | 0.000007 | @@ -1841,11 +1841,8 @@
-if(
d3.s
@@ -1867,109 +1867,42 @@
or%22)
- == %22#000000%22) %7B%0A return 1;%0A %7Delse %7B%0A return -1;%0A %7D
+.node().parentNode.appendChild(a);
%0A
|
661507e9034296d4592b445601218db2f8ac70db | Update kajmanekTrpaslici.child.js | components/animals/kajmanekTrpaslici.child.js | components/animals/kajmanekTrpaslici.child.js | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/kajmanekTrpaslici/... | JavaScript | 0.000001 | @@ -2659,16 +2659,16 @@
vat
+je
doma
-je
moho
|
f54c0b9ae3888013cf458fe36d7192670d87c78a | fix some css conflicts with boostrap | client/src/components/Header.js | client/src/components/Header.js | import React, { Component } from 'react'
import styled from 'styled-components'
import logo from '../res/hacker_news_logo.jpg'
class Header extends Component {
render() {
return (
<Nav className="navbar navbar-default">
<div className="container">
<NavBrand
className="navbar-... | JavaScript | 0.000002 | @@ -283,16 +283,57 @@
avBrand%0A
+ style=%7B%7B color: '#d0d8e1' %7D%7D%0A
@@ -378,20 +378,8 @@
case
- navbar-link
%22%0A
@@ -1377,34 +1377,16 @@
: 10px;%0A
- color: #d0d8e1;%0A
border
@@ -1488,16 +1488,19 @@
.button%60
+%0A
border:
@@ -1504,16 +1504,76 @@
r: none;
+%0A%0A :hover,%... |
9a3c9c36ccd2c3e37fabfe0fd576c9670a90de9d | test update | src/api/__tests__/args.js | src/api/__tests__/args.js | import {
getArg,
getArgs,
getEnvironmentVariables,
getEnvironmentVariable,
getRemainingVariables,
getRemainingOptions,
flattenOptions,
} from '../args';
describe('args test', () => {
test('it should return correct arg', () => {
process.argv = ['node', '-e', 'MONGO_URL=mongodb://127.0.0.1:27017', '-... | JavaScript | 0.000001 | @@ -3819,12 +3819,498 @@
;%0A %7D);%0A
+%0A%0A test('it should ignore certain flags', () =%3E %7B%0A process.argv = %5B%0A 'node',%0A '-e',%0A 'MONGO_URL=mongodb://127.0.0.1:27017',%0A '-e',%0A 'ROOT_URL=http://localhost:3000',%0A '-e',%0A 'MY_SPECIAL_VAR=cats',%0A '-e',%0A... |
660c8f63c95bbd2570d519fee661a548f17b4ced | Increase z-index topbar | client/src/components/TopBar.js | client/src/components/TopBar.js | import { resetPages } from "actions"
import AppContext from "components/AppContext"
import GeneralBanner from "components/GeneralBanner"
import Header from "components/Header"
import NoPositionBanner from "components/NoPositionBanner"
import SecurityBanner from "components/SecurityBanner"
import { Person } from "models... | JavaScript | 0 | @@ -3018,16 +3018,17 @@
zIndex:
+1
100 %7D%7D r
|
825bced46f17837e1da4a84f3af7b2dd8f29d4c8 | add email check | client/src/components/donate.js | client/src/components/donate.js | import React, { Component } from 'react'
import * as styles from '../style'
import Donation, { KING_BADGE, ANGEL_BADGE } from './donation'
import { connect } from 'react-redux'
import * as selectors from '../selectors'
import * as actions from '../actions'
export class Donate extends Component {
constructor(props){... | JavaScript | 0.000001 | @@ -542,24 +542,64 @@
rmClick() %7B%0A
+ if (this.state.email.length %3E 5)%7B%0A
const do
@@ -605,24 +605,26 @@
onation = %7B%0A
+
patter
@@ -652,16 +652,18 @@
attern,%0A
+
am
@@ -689,24 +689,26 @@
ount,%0A
+
email: this.
@@ -719,26 +719,30 @@
e.email%0A
-%7D%0A
+ %7D%0A ... |
b6e393ccaac3e6ea2d257952d7f27d4dc3f47616 | Add Switch to Routes | client/src/containers/Routes.js | client/src/containers/Routes.js | import React, {Component} from 'react'
import {Route} from 'react-router-dom'
import Home from '../components/Home'
export default class Routes extends Component {
render() {
return (
<div>
<Route exact path='/' component={Home}/>
</div>
)
}
}
| JavaScript | 0.000001 | @@ -45,16 +45,24 @@
t %7BRoute
+, Switch
%7D from '
@@ -200,19 +200,22 @@
%0A %3C
-div
+Switch
%3E%0A
@@ -269,11 +269,14 @@
%3C/
-div
+Switch
%3E%0A
|
bfa56b43c075e013a03e5f79839089cbf40f323f | save messagesSent locally | www/js/services/microdonation_service.js | www/js/services/microdonation_service.js | angular.module("proBebe.services").factory('Microdonation', function($resource, Constants, storage, $ionicPopup, Profile, DonatedMessage, $q, SmsSender) {
return {
setProfileType: function(profileType){
storage.set('profileType', profileType);
},
getProfileType: function(){
return storage.get(... | JavaScript | 0 | @@ -1062,24 +1062,142 @@
d_message)%7B%0A
+ if(self._wasAlreadySent(donated_message))%0A return self._markMessageAsSent(donated_message);%0A%0A
@@ -1684,32 +1684,85 @@
hen(function()%7B%0A
+ self._addInAlreadySentList(donated_message);%0A
return s
@@ -1904,32 +190... |
35d8d1883db558bef869c030586190058fd2b600 | Fix syntax | www/js/controllers/DEx/OverviewController.js | www/js/controllers/DEx/OverviewController.js | angular.module("omniControllers")
.controller("DExOverviewController", ["$scope","Account","Orderbook","Wallet","PropertyManager","$http"
function DExOverviewController($scope,Account,Orderbook,Wallet,PropertyManager,$http){
$scope.isLoggedIn = Account.isLoggedIn;
$scope.markets = [];
$scope.noMarkets = tru... | JavaScript | 0.509732 | @@ -131,16 +131,17 @@
,%22$http%22
+,
%0A%09%09funct
|
4f1f585f92e55ce24d9bab0c76eaf9275c39c175 | Add this binding to home.js | client/src/modules/home/home.js | client/src/modules/home/home.js | import angular from 'angular';
// components used by this module
import PlanCardComponent from './plan-card/plan-card';
import NewPlanButtonComponent from './new-plan-button/new-plan-button';
import PlanService from '../../services/plan/plan.service';
// imports for this component
import template from './home.html';
i... | JavaScript | 0 | @@ -488,17 +488,16 @@
Plans';%0A
-%0A
this
@@ -501,292 +501,353 @@
his.
-delete
+load
Plan
+s
=
-(planId) =%3E %7B%0A PlanService.deletePlanById(planId).then(%0A this.PlanService.getAllPlans().then(this.loadPlans)%0A );%0A
+this.loadPlans.bind(this);%0A this.deletePlan = this.deletePlan... |
814affa2fba0caf15e5ad9e6c165c94d43abce7b | Add landed regions to invest requirements form handler | src/apps/investment-projects/middleware/forms/requirements.js | src/apps/investment-projects/middleware/forms/requirements.js | const { assign, flatten, get } = require('lodash')
const { updateInvestment } = require('../../repos')
const { requirementsFormConfig } = require('../../macros')
const { getOptions } = require('../../../../lib/options')
const { buildFormWithStateAndErrors } = require('../../../builders')
async function getFormOptions... | JavaScript | 0 | @@ -1857,24 +1857,129 @@
locations),%0A
+ actual_uk_regions: req.body.site_decided === 'true' ? cleanArray(req.body.actual_uk_regions) : %5B%5D,%0A
%7D)%0A%0A
|
a53f78e35eca4d2a2de68d07108f7c0fbb1eaa3d | update Tab | src/Tab/Tab.js | src/Tab/Tab.js | /**
* @file Tab component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
// Components
import Tabs from '../_Tabs';
// Vendors
import classNames from 'classnames';
import ComponentUtil from '../_vendors/ComponentUtil';
import Util ... | JavaScript | 0.000001 | @@ -3354,16 +3354,30 @@
Animated
+, ...restProps
%7D = this
@@ -3766,22 +3766,21 @@
abs %7B...
-this.p
+restP
rops%7D%0A
|
c5a20477ac1a8178fe0dfb14b1e166ec98e73b63 | Apply bcrypt to passport local strategy | src/api/lib/auth/local.js | src/api/lib/auth/local.js | import { collections } from '../../db/index.js';
export function validatePassword(passport, password) {
// TODO: use bcrypt
return Promise.resolve(true);
}
export default function login(username, password, done) {
const { User, Passport } = collections;
let passport;
// Retrieve passport with the username
... | JavaScript | 0 | @@ -41,16 +41,142 @@
dex.js';
+%0Aimport bcrypt from 'bcrypt';%0A// Fallback to bcryptjs if not available%0Aif (bcrypt == null) %7B%0A bcrypt = require('bcryptjs');%0A%7D
%0A%0Aexport
@@ -185,21 +185,21 @@
unction
-valid
+gener
atePassw
@@ -210,47 +210,234 @@
pass
-port, password) %7B%0A // TODO: use bcrypt
+wo... |
34764acb4cbab9b1c9254f99d2963c9c64c2cb8d | Update data clearing UI's text. | packages/coinstac-ui/app/render/components/settings.js | packages/coinstac-ui/app/render/components/settings.js | import app from 'ampersand-app';
import { Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import React, { Component, PropTypes } from 'react';
class Settings extends Component {
constructor(props) {
super(props);
this.deleteUserData = this.deleteUserData.bind(this);
}
deleteUser... | JavaScript | 0 | @@ -1076,17 +1076,85 @@
our user
-:
+, including your projects. %3Cstrong%3EThis action is permanent.%3C/strong%3E
%3C/p%3E%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.