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 |
|---|---|---|---|---|---|---|---|
06627cfa6ac8f1f1cb1769c2158c31916b736345 | use index.js for integration testing, not app.js | test/server/integration/test.api.example.js | test/server/integration/test.api.example.js | var should = require('should'),
request = require('supertest'),
app = require('../../../app');
describe('/api/example', function () {
describe('POST /api/example', function () {
it('should return valid status', function (done) {
request(app)
.post('/api/example')
... | JavaScript | 0.000002 | @@ -89,19 +89,21 @@
./../../
-app
+index
');%0A%0Ades
|
ea6ce326b47ff7de1b0066b653dff3ea1f666719 | add filter for file extension, works on win! | app/atom.js | app/atom.js | // Stopgap atom.js file for handling normal browser things that atom
// does not yet have stable from the browser-side API.
// - Opening external links in default web browser
// - Saving files/downloads to disk
$(document).ready(function() {
if (typeof process === 'undefined') return;
if (typeof process.version... | JavaScript | 0 | @@ -1333,16 +1333,110 @@
xtension
+,%0A filters: %5B%7B name: typeExtension.toUpperCase(), extensions: %5BtypeExtension%5D%7D%5D
%0A
|
db014c16bf9ebf9021578d4137f328b670c787eb | Backup restore() when 'close' fails to fire | core/door.js | core/door.js | /* jslint node: true */
'use strict';
var spawn = require('child_process').spawn;
var events = require('events');
var _ = require('lodash');
var pty = require('ptyw.js');
var decode = require('iconv-lite').decode;
var net = require('net');
var async = require('async');
exports.Door = Door;
functi... | JavaScript | 0.000002 | @@ -889,24 +889,48 @@
ing));%0A%09%7D;%0A%0A
+%09var restored = false;%0A%0A
%09var restore
@@ -955,16 +955,29 @@
%7B%0A%09%09if(
+!restored &&
self.cli
@@ -1074,16 +1074,36 @@
sume();%0A
+%09%09%09restored = true;%0A
%09%09%7D%0A%09%7D;%0A
@@ -3276,24 +3276,123 @@
();%0A%09%09%09%09%09%7D%0A%0A
+%09%09%09%09%... |
f5f9be47c450f8d10d519007d3dbcdcd9d4f61bc | remove unused file reference | app/boot.js | app/boot.js | window.name = 'NG_DEFER_BOOTSTRAP!';
require.config({
waitSeconds: 120,
baseUrl : '/app',
paths: {
'authentication' : 'services/authentication',
'angular' : 'libs/angular-flex/angular-flex',
'ngRoute' : 'libs/angular-route/angular-route.min',
'ngSanitize... | JavaScript | 0.000001 | @@ -3625,65 +3625,8 @@
%7D,%0A
- 'ammapEU' : %7B deps: %5B'ammap3'%5D %7D,%0A
|
88aebd69c12ba6d9b2c9300f643bc560eb71b0c5 | Update fichaReme.js | app/pdf/fichaReme.js | app/pdf/fichaReme.js | var PdfPrinter = require('pdfmake/src/printer');
var path = require('path');
module.exports = {
pdf: function(Ficha) {
// Validar Ficha para reemplazar nulos por strings vacios, para que no aparezca "null" en el pdf
var fichaTemp = JSON.stringify(Ficha, function(key, value){
if(va... | JavaScript | 0 | @@ -1826,16 +1826,20 @@
+area
= %22Terr
|
2158a055d10893c0e30d4d376c2e51eed4ba5291 | Use lazyFunctionRequire for improved import performance. | extensions/roc-plugin-typescript/src/roc/index.js | extensions/roc-plugin-typescript/src/roc/index.js | import webpack from '../webpack';
export default {
description: `
# roc-plugin-typescript
A roc plugin for compiling typescript (*.ts and *.tsx) files. It uses
[ts-loader](https://github.com/TypeStrong/ts-loader) for to let webpack compile
typescript files and adds source maps via
[source-map-l... | JavaScript | 0 | @@ -4,33 +4,93 @@
ort
-webpack from '../webpack'
+%7B lazyFunctionRequire %7D from 'roc';%0A%0Aconst lazyRequire = lazyFunctionRequire(require)
;%0A%0Ae
@@ -977,23 +977,41 @@
action:
+lazyRequire('../
webpack
+')
,%0A %7D%5D
|
7ffb29aa6ce5a95fd78d725379eb3d8a45adf185 | Fix #path() (#1519) | test/support/builders/atom_watcher_event.js | test/support/builders/atom_watcher_event.js | /* @flow */
const _ = require('lodash')
const path = require('path')
const metadata = require('../../../core/metadata')
const events = require('../../../core/local/steps/event')
const statsBuilder = require('./stats')
/*::
import type { Stats } from 'fs'
import type { Metadata } from '../../../core/metadata'
import... | JavaScript | 0.000001 | @@ -2298,20 +2298,29 @@
data.id(
-newP
+this._event.p
ath)%0A
|
6eb7430ed13290d36b34d61454d2d0e083e6e92a | fix missing http method | app/js/plex/PlexServer.js | app/js/plex/PlexServer.js | var request = require('request');
var safeParse = require("safe-json-parse/callback")
var parseXMLString = require('xml2js').parseString;
var PlexTv = require('./PlexTv.js')
var PlexClient = require('./PlexClient.js')
var PlexConnection = require('./PlexConnection.js')
var PlexAuth = require('./PlexAuth.js')
module.exp... | JavaScript | 0.006941 | @@ -1289,16 +1289,23 @@
n, 15000
+, 'GET'
);%0A
@@ -2335,16 +2335,23 @@
en, 7500
+, 'GET'
);%0A
|
2ec265aa4f81f672a14a2705c2c3b00785f89650 | Create logic to insert sibling status span if it doesn't exist. | backfeed.js | backfeed.js | /* backfeed.js */
var Backfeed = (function() {
"use strict";
//define classes to add/remove
const errorStatusClass = 'glyphicon-remove';
const errorGroupClass = 'has-error';
const successStatusClass = 'glyphicon-ok';
const successGroupClass = 'has-success';
const formGroupClass = 'form-group';
const for... | JavaScript | 0 | @@ -361,16 +361,55 @@
edback';
+%0A const baseStatusClass = 'glyphicon';
%0A%0A //at
@@ -1218,24 +1218,74 @@
element) %7B%0A
+ //if there is a proper sibling, return it%0A
if (
@@ -1398,19 +1398,265 @@
-return null
+//if no sibling was found, create one and return it.%0A var status = docu... |
c7eb40a612d198e26a8bc4276684a2281651401c | Convert modal actions to action creators | app/redux/modules/modal.js | app/redux/modules/modal.js | {
type: OPEN_MODAL,
}
{
type: CLOSE_MODAL,
}
{
type: UPDATE_DUCK_TEXT,
newDuckText
}
const initialState = {
duckText: '',
isOpen: false,
}
export default function modal (state = initialState, action) {
switch (action.type) {
case OPEN_MODAL :
return {
...state,
isOpen: true,
... | JavaScript | 0.999999 | @@ -1,57 +1,176 @@
-%7B%0A type: OPEN_MODAL,%0A%7D%0A%0A%7B%0A type: CLOSE_MODAL,%0A%7D%0A%0A%7B%0A
+function openModal () %7B%0A return %7B%0A type: OPEN_MODAL,%0A %7D%0A%7D%0A%0Afunction closeModal () %7B%0A return %7B%0A type: CLOSE_MODAL,%0A %7D%0A%7D%0A%0Afunction updateDuckText () %7B%0A return %7B%0... |
981eb204ad7b5be8f07cb4a6f721a3a8fe9b3c54 | Remove dead code. | app/main.js | app/main.js | exports = module.exports = function(IoC, interpreter, translator, unsealer, sealer, logger) {
var Tokens = require('tokens').Tokens;
var tokens = new Tokens();
return Promise.resolve(tokens)
.then(function(tokens) {
var components = IoC.components('http://i.bixbyjs.org/tokens/Token');
ret... | JavaScript | 0.00001 | @@ -2155,2534 +2155,546 @@
api.
-seal = function(claims, recipients, options, cb) %7B%0A console.log('SEAL THIS MESSAGE!');%0A console.log(claims)%0A %0A var type = options.type %7C%7C 'application/jwt';%0A %0A %0A var sealer;%0A try %7B%0A sealer = toke... |
e3fb57663ba676e374997e419a29cdcdc301b3d3 | Update logger.js | ideas/logger/logger.js | ideas/logger/logger.js | var Logger = function($) {
function Logger() {
if (this instanceof Logger) {
var that = this;
var id = 'web-commons-logger';
var $box = $('<div style="display: none; position: absolute; top: 10px; right: 10px; width: 600px; height: 300px; z-index: 9999; border: 1px solid #ddd; font: n... | JavaScript | 0.000001 | @@ -194,32 +194,50 @@
none; position:
+ fixed; *position:
absolute; top:
@@ -1973,17 +1973,25 @@
stylize(
-k
+%22'%22+k+%22'%22
, useHtm
@@ -2187,25 +2187,192 @@
%09%09case '
-string':
+regexp':%0A%09%09%09%09any = ('' + any);%0A%09%09%09case 'string': %0A%09%09%09%09any = useHtml ? %0A%09%09%09%09%09any.repla... |
1b672091c1bf4ea3713319afefa4b154781c9096 | Update bookmarklet.js | ModOp/bookmarklet.js | ModOp/bookmarklet.js | (function () { var jsCode=document.createElement('script');jsCode.setAttribute('src', 'https://dl.dropboxusercontent.com/u/13815598/ModOp.js');document.body.appendChild(jsCode);}()); | JavaScript | 0.000001 | @@ -93,18 +93,18 @@
s://
-dl.dropbox
+raw.github
user
@@ -119,18 +119,37 @@
com/
-u/13815598
+AlessandroChecco/ModOp/master
/Mod
@@ -195,8 +195,9 @@
e);%7D());
+%0A
|
f7ff86c9838692affecb2b90aa74a78bf5dcb549 | Remove a debug line | app/main.js | app/main.js | 'use strict';
var app = require('app');
var BrowserWindow = require('browser-window');
var Menu = require("menu");
var env = require('./vendor/electron_boilerplate/env_config');
var menuTemplate = require('./menu_template')(app);
var windowStateKeeper = require('./vendor/electron_boilerplate/window_state');
var shell =... | JavaScript | 0.000587 | @@ -3523,41 +3523,8 @@
url%0A
- console.log(%22got %22 + url);%0A
|
dd39a8d1369994fc2f10a334d2e30e232def67ee | Remove radar tooltips for everything but the actual value ring | src/interface/report/Results/statistics/Radar.js | src/interface/report/Results/statistics/Radar.js | import React from 'react';
import PropTypes from 'prop-types';
import { formatNumber } from 'common/format';
const Ring = ({ size, color, style, ...others }) => (
<div
style={{
position: 'absolute',
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: size,
hei... | JavaScript | 0 | @@ -937,31 +937,8 @@
' %7D%7D
- data-tip=%2230-40 yards%22
/%3E%0A
@@ -1003,31 +1003,8 @@
5 %7D%7D
- data-tip=%2220-30 yards%22
/%3E%0A
@@ -1070,31 +1070,8 @@
5 %7D%7D
- data-tip=%2210-20 yards%22
/%3E%0A
@@ -1134,30 +1134,8 @@
1 %7D%7D
- data-tip=%220-10 yards%22
/%3E%0A
|
22f9901f4f3479bbe7883b9fc13ec040ae03aa75 | Disable debug informations | app/main.js | app/main.js | import angular from 'angular'
import register from './utils/register'
import hrRes from 'angular-hy-res'
import formly from 'angular-formly'
import formlyBootstrap from 'angular-formly-templates-bootstrap'
import angularAnimate from 'angular-animate'
import 'ng-promise-status'
import './directives/progressBar/progressB... | JavaScript | 0.000002 | @@ -1038,16 +1038,150 @@
k.com/')
+%0A .config(%5B'$compileProvider', function ($compileProvider) %7B%0A // disable debug info%0A $compileProvider.debugInfoEnabled(false);%0A%7D%5D);
%0A%0Aregist
|
8c2fa813ade4fe09fa58c40307964030f51ab637 | Customize for handling years | simpleshelf/_attachments/code/models/byyearspinelist.js | simpleshelf/_attachments/code/models/byyearspinelist.js | /**
* ByYearSpineList: SpineList extended for holding Spines by year
*/
window.ByYearSpineList = window.SpineList.extend({
model: Spine, // same
initialize: function(models, options) {
// Backbone.Model.prototype.set.call(this, attributes, options);
window.SpineList.prototype.initialize.call(this,... | JavaScript | 0 | @@ -572,18 +572,24 @@
, values
+, year
;%0A
-
@@ -708,16 +708,145 @@
ows%5Bx%5D;%0A
+ year = parseInt(row.key);%0A if (_.isNaN(year))%7B%0A year = null;%0A %7D%0A
@@ -1068,17 +1068,20 @@
-%09
+
'year':
row.
@@ -1076,23 +... |
41a3376fdb9dd9a4b6cf7c003e60eb13270387ab | Move IsAndroid and IsIOS to storage | src/js/containers/ImportAccount/ImportAccount.js | src/js/containers/ImportAccount/ImportAccount.js | import React from "react"
import { connect } from "react-redux"
import { ImportAccountView, LandingPage } from '../../components/ImportAccount'
import {
ImportKeystore, ImportByDevice, ImportByPrivateKey,
ErrorModal, ImportByMetamask,
ImportByDeviceWithLedger, ImportByDeviceWithTrezor
} from "../ImportAccount"
i... | JavaScript | 0.000004 | @@ -1556,30 +1556,61 @@
if (
-true) %7B%0A if (true
+!web3Service.isHaveWeb3()) %7B%0A if (isMobile.iOS()
) %7B%0A
|
5fe7e4d51eebb52f13f56f39b0248737906b862d | Fix blundered callback ordering | app/models/calibration.js | app/models/calibration.js | var mysql = require('mysql');
var connectionParams = require('../../config/connectionParams');
var pool = mysql.createPool(connectionParams);
/*
Creates a Fossil object from a database row
*/
function Fossil(databaseRow) {
// From Link_CalibrationFossil and View_Fossils
this.id = databaseRow['FossilID'];
t... | JavaScript | 0.00003 | @@ -1562,16 +1562,56 @@
tions';%0A
+ // this callback is err, rows, fields%0A
functi
@@ -1864,32 +1864,37 @@
ionId, function(
+err,
calibration, err
@@ -1880,37 +1880,32 @@
err, calibration
-, err
) %7B%0A if(err
@@ -1917,38 +1917,32 @@
callback(
-null,
err);%0A %7D el
@@ -2022,20 +2022,20... |
a663d8c5d68fd12eff3583e5c768838d96dc2dae | switch confirm text around | src/js/controllers/tournaments/inProgressCtrl.js | src/js/controllers/tournaments/inProgressCtrl.js | import site from '../../app';
site.filter('inRound', () => (items, round) => _.filter(items, (i) => i.id.r === round));
site.filter('inSection', () => (items, section) => _.filter(items, (i) => i.id.s === section));
site.controller('inProgressController', ($scope, SidebarManagement, CurrentPlayerBucket, UserStatus, T... | JavaScript | 0 | @@ -1501,16 +1501,48 @@
.title('
+Reset Bracket')%0A .content('
Would yo
@@ -1570,35 +1570,17 @@
bracket?
-')%0A .content('
+
This is
|
89717854256d1d173dfc5ec8017b1676308ff0e1 | Fix jshint errors. | app/scripts/modal.js | app/scripts/modal.js | /* foundation modal tweaks
*/
// add a class on the body, when the modal is opened
// so we can set position: fixed on the background.
$(document).on('opened', '[data-reveal]', function () {
$(document.body).addClass('modal-opened');
});
$(document).on('closed', '[data-reveal]', function () {
$(document.body).re... | JavaScript | 0.000003 | @@ -25,16 +25,49 @@
ks%0A */%0A%0A
+(function() %7B%0A 'use strict';%0A%0A
// add a
@@ -111,16 +111,18 @@
opened%0A
+
// so we
@@ -165,16 +165,18 @@
ground.%0A
+
$(docume
@@ -215,32 +215,34 @@
, function () %7B%0A
+
$(document.bod
@@ -274,13 +274,17 @@
');%0A
+
%7D);%0A%0A
+
$(do
@@ -335,16 +... |
41cf3e9c561167b6ed677f305542d54b2811dbce | Remove unused vars | app/views/explore.js | app/views/explore.js | 'use strict'
let component = require('omniscient')
let immutable = require('immutable')
let S = require('underscore.string.fp')
let logger = require('js-logger-aknudsen').get('explore')
let R = require('ramda')
let h = require('react-hyperscript')
let React = require('react')
let ReactDOM = require('react-dom')
let Pac... | JavaScript | 0.000001 | @@ -2299,55 +2299,8 @@
%3E %7B%0A
- let exploreCursor = cursor.cursor('explore')%0A
le
@@ -4159,57 +4159,8 @@
%3E %7B%0A
- let exploreCursor = cursor.cursor('explore')%0A
|
96bcfc188f26b26a9133695520a1b5251786fe9c | Add not started boolean to approvalStates array | src/main/web/florence/js/functions/_viewCollections.js | src/main/web/florence/js/functions/_viewCollections.js | function viewCollections(collectionId) {
var result = {};
var pageDataRequests = []; // list of promises - one for each ajax request.
pageDataRequests.push(
$.ajax({
url: "/zebedee/collections",
type: "get",
success: function (data) {
result.data ... | JavaScript | 0.000003 | @@ -944,16 +944,35 @@
mpleted:
+ false, notStarted:
false%7D;
@@ -1658,32 +1658,187 @@
%7D%0A
+ case ('NOT_STARTED'): %7B%0A approvalStates.notStarted = true;%0A break;%0A %7D%0A
|
19251287b3eb05f6dc1fa3f57b4f60f912428083 | Switch to notmyidea | scripts/reducers/homepage.js | scripts/reducers/homepage.js | const INITIAL_STATE = {
title: "",
server: "https://leplatrem-happiness.herokuapp.com/v1",
bucket: "happiness"
};
export default function homepage(state=INITIAL_STATE, action) {
return state;
}
| JavaScript | 0.000006 | @@ -53,41 +53,27 @@
s://
-leplatrem-happiness.herokuapp.com
+kinto.notmyidea.org
/v1%22
|
f7052544340875279dc3ec8e4fa6e95ca3a97c1d | Change function name. | app/sync.js | app/sync.js | /**
* 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 required by applic... | JavaScript | 0.000002 | @@ -621,19 +621,16 @@
unction
-pre
fetchArt
@@ -1448,16 +1448,17 @@
ion(err)
+
%7B%0A%09%09cons
@@ -1519,16 +1519,17 @@
%09%7D)%0A %7D%0A%0A
+%0A
self.ad
@@ -1575,113 +1575,41 @@
%7B%0A %09
-//console.log(%22event: %22 + event);%0A %09if (event.tag == 'articles') %7B%0A%09%09//console.log(%22Inside wait.%22);... |
ec4f4caf2753d7a4061f111ef1506087799e6b4a | Update costing formula | app/util.js | app/util.js | export function getProjectCost (project) {
return project.cost.capital + project.cost.operating * ATF_CONFIG.budget.years
}
export function formatCost (cost) {
if(cost < 1000000000) {
return '$' + Math.round(cost/1000000) + 'M'
}
return '$' + Math.round(cost/100000000)/10 + 'B'
}
| JavaScript | 0.000001 | @@ -1,24 +1,59 @@
+import haversine from 'haversine'%0A%0A
export function getProje
@@ -71,16 +71,91 @@
ject) %7B%0A
+ if(project.cost && (project.cost.capital %7C%7C project.cost.operating)) %7B%0A
return
@@ -231,175 +231,986 @@
ars%0A
-%7D%0A%0Aexport function formatCost (cost) %7B%0A if(cost %3C 1000000000... |
f5ac5105e38ce7a3721d852342ea6c265630f057 | Revert "Add multiple domains separated by whitespace" | scripts/pi-hole/js/list.js | scripts/pi-hole/js/list.js | // IE likes to cache too much :P
$.ajaxSetup({cache: false});
// Get PHP info
var token = $("#token").html();
var listType = $("#list-type").html();
var fullName = listType === "white" ? "Whitelist" : "Blacklist";
function sub(index, entry) {
var domain = $("#"+index);
domain.hide("highlight");
$.ajax({
... | JavaScript | 0 | @@ -2024,25 +2024,50 @@
ion add(
-domain) %7B
+) %7B%0A var domain = $(%22#domain%22);
%0A if(
@@ -2073,16 +2073,22 @@
(domain.
+val().
length =
@@ -2396,16 +2396,22 @@
%22:domain
+.val()
, %22list%22
@@ -3105,32 +3105,60 @@
%7D);%0A
+ domain.val(%22%22);%0A
refr
@@ -350... |
2a80df3379d528b8c13e5609671ca571c75245db | Fix bug in new attribute setter | khufu-runtime/src/index.js | khufu-runtime/src/index.js | import {store_handler, cleanup_stores} from './stores'
import {patch, attributes, notifications, symbols} from 'incremental-dom'
import {elementOpen, elementClose, elementVoid, text} from 'incremental-dom'
import {CANCEL} from './stores'
import {add_style} from './style'
import {item} from './dom'
export {CANCEL, add... | JavaScript | 0 | @@ -191,32 +191,85 @@
ncremental-dom'%0A
+import %7BapplyAttr, applyProp%7D from 'incremental-dom'%0A
import %7BCANCEL%7D
@@ -471,16 +471,17 @@
crementa
+l
-dom def
|
5c8e787803af7337f8b7665bceb8b90be78dff5a | Clarify test types during scaffolding (#34638) | plopfile.js | plopfile.js | module.exports = function (plop) {
function getFileName(str) {
return str.toLowerCase().replace(/ /g, '-')
}
plop.setGenerator('test', {
description: 'Create a new test',
prompts: [
{
type: 'input',
name: 'name',
message: 'Test name',
},
{
type: 'list... | JavaScript | 0 | @@ -390,50 +390,408 @@
s: %5B
-'e2e', 'unit', 'production', 'development'
+%0A %7B%0A name: 'e2e - Test %22next dev%22 and %22next build && next start%22',%0A value: 'e2e',%0A %7D,%0A %7B%0A name: 'production - Test %22next build && next start%22',%0A ... |
384c9bd339b7c0e2b20959dfe848d08d906763ee | Remove Debugger Statement From Route | app/routes/application.js | app/routes/application.js | import config from '../config/environment';
import {
inject as service
} from '@ember/service';
import AuthenticateRoute from 'wholetale/routes/authenticate';
export default AuthenticateRoute.extend({
internalState: service(),
model: function (params) {
// console.log("Called Authenticate, proceeding in Appl... | JavaScript | 0 | @@ -1466,26 +1466,8 @@
) %7B%0A
- debugger;%0A
|
35156c460f2cedae679a98c4d09d9c4b7c967a44 | Disable KPI ID button | src/components/Login.js | src/components/Login.js | import React from 'react'
import {Link} from 'react-router-dom';
import SupportInformationDialog from './SupportInformationDialog';
import * as campus from "../CampusClient";
import TelegramLoginWidget from "./TelegramLoginWidget";
class Login extends React.Component {
state = {
login: '',
password: '',
... | JavaScript | 0.000001 | @@ -3359,19 +3359,16 @@
-%7B/*
%3Cdiv cla
@@ -3387,19 +3387,16 @@
-group%22%3E
-*/%7D
%0A
@@ -3408,19 +3408,16 @@
-%7B/*
%3Ca cla
@@ -3475,19 +3475,16 @@
/kpiid%22%3E
-*/%7D
%0A
@@ -3492,27 +3492,24 @@
-%7B/*
%3Cdiv cla
@@ -3522,19 +3522,16 @@
=%22icon%22%3E... |
474546c114e04bc610443e47ec241ca48d00b5d0 | Update meta | hawk/routes/yard/index.js | hawk/routes/yard/index.js | 'use strict';
var express = require('express');
var router = express.Router();
/**
* Home page
*/
router.get('/', function (req, res, next) {
res.render('yard/index');
});
/**
* Docs page
*/
router.get('/docs', function (req, res, next) {
res.render('yard/docs/index', {
main: {
title : 'Hawk.... | JavaScript | 0.000001 | @@ -289,11 +289,12 @@
m
-ain
+eta
: %7B%0A
@@ -313,20 +313,30 @@
: '
-Hawk.so Docs
+Platform documentation
',%0A
@@ -441,17 +441,18 @@
cations.
-
+%5Cn
To learn
|
f8c51a084064ae01dafcc5bbe8e26c6623b61b9c | remove unused flow suppression | packages/relay-runtime/mutations/commitRelayModernMutation.js | packages/relay-runtime/mutations/commitRelayModernMutation.js | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule commitRelayModernMutation
* @flow
* @format
*/
'use strict';
const RelayDeclarativeMutationConfig = require('Relay... | JavaScript | 0 | @@ -1372,176 +1372,8 @@
T%3E(%0A
- /* $FlowFixMe(%3E=0.55.0 site=www) This comment suppresses an error found when%0A * Flow v0.55 was deployed. To see the error delete this comment and run%0A * Flow. */%0A
en
|
6423bad50226de2e1a972a083df44517bbaa0d36 | Fix `form-input-list `directive reference | app/views/profile.js | app/views/profile.js | define(['app', 'angular', 'jquery', '/app/views/forms-input-list.partial.html.js'], function(app, angular, $){
return ['$scope', '$http', '$location', '$filter', '$timeout', 'user', function ($scope, authHttp, $location, $filter, $timeout, user) {
$scope.returnUrl = $location.search().returnurl || $location.searc... | JavaScript | 0.000067 | @@ -24,27 +24,17 @@
', '
-jquery', '/app/view
+directive
s/fo
@@ -51,24 +51,8 @@
list
-.partial.html.js
'%5D,
@@ -72,19 +72,16 @@
angular
-, $
)%7B%0A%0Aretu
|
9e228967b5ced34f22a9c8492cd28b1875f6bfa9 | Fix Vehicles fields in bills component | src/components/bills.js | src/components/bills.js | import React, {Component} from 'react'
import Table from 'grommet/components/Table'
import TableRow from 'grommet/components/TableRow'
import Heading from 'grommet/components/Heading'
import Box from 'grommet/components/Box'
import Select from 'grommet/components/Select'
import Columns from 'grommet/components/Columns'... | JavaScript | 0 | @@ -1353,17 +1353,16 @@
/vehicle
-s
')%0A .
@@ -2796,17 +2796,17 @@
%60$%7Bopt.
-m
+M
odelo%7D $
@@ -2810,17 +2810,17 @@
%7D $%7Bopt.
-c
+C
olor%7D $%7B
@@ -2823,17 +2823,17 @@
%7D $%7Bopt.
-p
+P
lacas%7D%60)
|
9aa40fd4881538878fa68b035f79a72cfaf13b29 | add note about 200 Hz text analysis being perhaps overzealous | scripts/textanalysis-ui.js | scripts/textanalysis-ui.js | var text = ""; // Last text of sentence
var sugg = []; // suggestions for autocompletion of node names
$('#textanalyser').autocompleteTrigger({
triggerStart: '#',
triggerEnd: '',
source: sugg
});
// TODO - hide this in a scope
function analyzeSentence(sentence, finalize)
{
var ret = TextAnalyser2(sent... | JavaScript | 0 | @@ -3856,16 +3856,116 @@
h();%0A%7D%0A%0A
+/* TODO: don't use interval by default but only if keys are comming to fast (but still - 5 ms??) */%0A
window.s
@@ -4057,17 +4057,19 @@
length*8
-%3E
+ %3E
500)$('#
@@ -4241,17 +4241,19 @@
onChange
-=
+ =
false;%0A
|
4731bbe2f4154fd7f9c5ef7e64f3c47b6d461d32 | Fix clean race condition, add more clean tasks | app/templates/gulpfile.js | app/templates/gulpfile.js | var gulp = require('gulp'),
gutil = require('gulp-util'),
clean = require('gulp-clean'),
header = require('gulp-header'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
stylus = require('gulp-stylus'),
autoprefixer = require('gulp-autoprefixer'),
csso = require('gulp-csso'),
jade = ... | JavaScript | 0 | @@ -1165,16 +1165,186 @@
'clean',
+ %5B'clean:browserify', 'clean:stylus', 'clean:jade'%5D);%0Agulp.task('clean:browserify', %5B'clean:browserify:lib', 'clean:browserify:demo'%5D);%0A%0Agulp.task('clean:browserify:lib',
functio
@@ -1378,82 +1378,453 @@
ist'
+%5D
,
-'lib/tmp'%5D, %7B read: false %7D)%0A .pipe(c... |
1ffd003c0534924ab9d3fa054d2b318d35fceced | disable dom merging; our target event handling doesn't work with it atm | logology-v05/src/www/js/app/index.js | logology-v05/src/www/js/app/index.js | /*****************************************************************************
*
* Logology V{{{VERSION}}}
* Author: {{{AUTHOR.NAME}}} <{{{AUTHOR.EMAIL}}}> <{{{AUTHOR.SITE}}}>
*
* This is a very simple demonstration of using gulp + ES6; it obviously
* doesn't do anything resembling the goal of the app yet.
*
**... | JavaScript | 0 | @@ -488,16 +488,44 @@
smf-h%22;%0A
+%0A//h.useDomMerging = true;%0A%0A
import E
|
fbddfae8ec7756e36d027f0813814528bbc0e40d | mark for translation | plugins/services/src/js/constants/ServiceTableHeaderLabels.js | plugins/services/src/js/constants/ServiceTableHeaderLabels.js | var ServiceTableHeaderLabels = {
cpus: "CPU",
disk: "Disk",
gpus: "GPU",
mem: "Mem",
name: "Name",
status: "Status",
version: "Version",
instances: "Instances",
regions: "Region"
};
module.exports = ServiceTableHeaderLabels;
| JavaScript | 0 | @@ -1,7 +1,52 @@
-var
+import %7B i18nMark %7D from %22@lingui/react%22;%0A%0Aconst
Ser
@@ -83,13 +83,23 @@
us:
+i18nMark(
%22CPU%22
+)
,%0A
@@ -108,14 +108,24 @@
sk:
+i18nMark(
%22Disk%22
+)
,%0A
@@ -134,13 +134,23 @@
us:
+i18nMark(
%22GPU%22
+)
,%0A
@@ -158,13 +158,23 @@
em:
+i18nMark(
%22Mem%2... |
5f70d258dfe4f173b9380cd986e04411f1b9dd6e | Add getElasticsearchHealth | main/server/methods/elasticsearch.js | main/server/methods/elasticsearch.js | // Npm packages imports
import ElasticSearch from 'elasticsearch';
Meteor.methods({
async getElasticsearchData (host) {
// Placeholder for Elasticsearch data
let elasticsearchData;
// default query parameters
const queryParams = {
size: 0,
body: {
query: {
filtered: {
... | JavaScript | 0 | @@ -2050,16 +2050,567 @@
;%0A %7D%0A
+ %7D,%0A async getElasticsearchHealth (host) %7B%0A // Initialize Elasticsearch client, using provided host value%0A const esClient = new ElasticSearch.Client(%7B host %7D);%0A%0A // Check if we can connect to Elasticsearch%0A const elasticsearchHealth = await esC... |
3793c4a5819848557c982d96d73b8f13a0c68847 | Fix style for image | scripts/amazon-bookmarklet.js | scripts/amazon-bookmarklet.js | javascript: (() => {
const productUrl = document
.querySelector('link[rel="canonical"]')
.href.replace(/amazon.co.jp\/.*\/dp/, 'amazon.co.jp/dp');
const imageUrl = document.querySelector('#main-image-container img')
.attributes['src'].textContent;
const title = document.querySelector('#productTitle').... | JavaScript | 0.000001 | @@ -649,11 +649,15 @@
ss=%22
+max-
h-
-4
+6
0%22%3E
|
67027607b3d4114f607b10cff2244c46c0a203b4 | Add pixelToGenomeLoci export | app/scripts/utils/index.js | app/scripts/utils/index.js | export { default as absToChr } from './abs-to-chr';
export { default as chromInfoBisector } from './chrom-info-bisector';
export { default as scalesToGenomeLoci } from './scales-to-genome-loci';
| JavaScript | 0 | @@ -111,24 +111,95 @@
-bisector';%0A
+export %7B default as pixelToGenomeLoci %7D from './pixel-to-genome-loci';%0A
export %7B def
|
b466d006b1c6e7e70c494ade2754c6b691949cbc | use env be url | app/services/sketch-svc.js | app/services/sketch-svc.js | 'use strict';
angular.module('myApp.sketchSvc', []).service("sketchSvc", ['$q', '$http', function($q, $http) {
return {
all: function(options) {
let { user } = options;
let deferred = $q.defer();
$http({
method: 'GET',
url: "http://localhost:3000/sketches"
}).then(({ ske... | JavaScript | 0.999692 | @@ -264,30 +264,17 @@
rl:
-%22http://localhost:3000
+%60$%7BbeURL%7D
/ske
@@ -278,17 +278,17 @@
sketches
-%22
+%60
%0A %7D
|
638ba6a2c5796e239e75714b67912e190c6592c2 | fix travis e2e build | scripts/update-examples.js | scripts/update-examples.js | // call it as `$ node scripts/update-examples.js` from root
const join = require('path').join;
const existsSync = require('fs').existsSync;
const spawn = require('child_process').spawn;
const execSync = require('child_process').execSync;
const rimrafSync = require('rimraf').sync;
const examples = [
'browser-less',
... | JavaScript | 0 | @@ -1416,22 +1416,13 @@
wd,
-detached: true
+stdio
%7D);
|
0765d8b0b57981dbaaec46d90c87a71b7f79bb39 | Remove log | addon/components/list-card/header-dropdown-item.js | addon/components/list-card/header-dropdown-item.js | import Ember from 'ember';
import layout from '../../templates/components/list-card/header-dropdown-item';
export default Ember.Component.extend({
tagName: 'li',
classNames: ['list-card-header-dropdown-item'],
layout: layout,
/**
* Passed in to component
*/
dropdownItem: null,
/**
* Actions
*... | JavaScript | 0.000001 | @@ -643,49 +643,8 @@
);%0A%0A
- console.log(%22Recomput isSelected%22);%0A%0A
|
565f3364a31eab82a609f38bda6f0dda78b095f0 | Update menu | core/menu.js | core/menu.js | var display = require('display');
var options = {};
options.coffee = function () {
return 'Coffee';
};
options.coffeeWithSugar = function () {
return 'Coffee with sugar';
};
options.coffeeWithCream = function () {
return 'Coffee with cream';
};
options.coffeeWithCreamAndSugar = function () {
return 'Coffee... | JavaScript | 0.000001 | @@ -385,12 +385,36 @@
n 'Soup';%0A%7D;
+%0A%0Amodule.exports = menu;
|
f15d367300d862ba6e26e731da80296849c1a601 | add log for 404 | agir/front/components/notFoundPage/NotFoundPage.js | agir/front/components/notFoundPage/NotFoundPage.js | import PropTypes from "prop-types";
import React, { useEffect } from "react";
import { usePrevious } from "react-use";
import styled from "styled-components";
import style from "@agir/front/genericComponents/_variables.scss";
import background from "@agir/front/genericComponents/images/illustration-404.svg";
import {... | JavaScript | 0.000001 | @@ -581,16 +581,114 @@
.svg%22;%0A%0A
+import generateLogger from %22@agir/lib/utils/logger%22;%0A%0Aconst logger = generateLogger(__filename);%0A%0A
const Co
@@ -2086,16 +2086,108 @@
null;%0A%0A
+ if (!isOffline) %7B%0A logger.error(%60React 404 on page $%7Bwindow.location.pathname%7D%60);%0A %7D%0A%0A
ret... |
be79394bc851b6a5ba4a3c4d5d37d331600138f1 | Remove blank line | src/reducers/workspace/updateElementReducer.js | src/reducers/workspace/updateElementReducer.js | const updateElement = (workspace, elementId, newProps) => {
const element = workspace.entities[elementId]
return Object.assign({}, workspace, {
...workspace,
entities: {
...workspace.entities,
[elementId]: {
...element,
...newProps
}
}
})
}
export const changePrimi... | JavaScript | 0.999999 | @@ -285,17 +285,16 @@
%7D%0A %7D)%0A
-%0A
%7D%0A%0Aexpor
|
b8bcec94c1187486048abfc11f5df43800418025 | fix resize handler | scripts/core/config/widget.js | scripts/core/config/widget.js | /**
* Created with JetBrains RubyMine.
* User: teamco
* Date: 11/24/12
* Time: 1:49 PM
* To change this template use File | Settings | File Templates.
*/
/**
* Created with JetBrains RubyMine.
* User: teamco
* Date: 11/17/12
* Time: 4:10 PM
* To change this template use File | Settings | File Templates.
*/... | JavaScript | 0.000001 | @@ -1640,18 +1640,11 @@
s: '
-n, e, s, w
+all
'%0A
|
221d6d0180608b6bb2b87ac47fb0410ee97ae15d | add expiration time on token | api/application-services/authentication-service.js | api/application-services/authentication-service.js | 'use strict';
var UserService = require('../domain/services/users/user-service');
var jwt = require('jsonwebtoken');
var config = require('../config/config');
var appConstants = require('../config/app-constants');
var EntityWithFilterMustExistSpec = require('./specifications/entity-with-filter-must-exist-spec');
var q... | JavaScript | 0.000006 | @@ -945,17 +945,18 @@
resIn: '
-1
+72
h' // ex
|
193542d83dd17027b4ed23f0afa53ae0e44ec973 | add type annotation for win and ga/gtag | 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 | @@ -2516,24 +2516,167 @@
abel,%0A %7D;
+%0A%0A /** @type %7BWindow %7C%7Bga?: function(string, string, Object), gtag?: function(string, string, Object)%7D%7D */%0A const win = this.deps_.win();
%0A // TODO
@@ -2822,35 +2822,14 @@
a =
-this.deps_.
win
-()
.ga
- %7C%7C null
;%0A
@@ -2947,37 +2947,16 ... |
ea98bf19a34bc81665ff03a0fb7c5eb243d40a05 | Load custom preprocessor from ".thought/hb-preprocessor.js" change name of custom helper file to ".thought/hb-helpers.js" | customize.js | customize.js | /*!
* thought <https://github.com/nknapp/thought>
*
* Copyright (c) 2015 Nils Knappmeier.
* Released under the MIT license.
*/
'use strict'
var path = require('path')
/**
*
* Create a spec that can be loaded with `customize` using the `load()` function.
*
* @param {String} workingDir the working directory o... | JavaScript | 0 | @@ -1202,36 +1202,39 @@
helpers: path.
-join
+resolve
(workingDir, '.t
@@ -1248,26 +1248,101 @@
, 'h
-andlebars-helpers,
+b-helpers,js'),%0A preprocessor: path.resolve(workingDir, '.thought','hb-preprocessor.
js')
|
ceadec6369646233fa43672ee5023dfdd057307c | check key length in #byteLength as well | v2/header.js | v2/header.js | // Copyright (c) 2015 Uber Technologies, Inc.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, ... | JavaScript | 0 | @@ -2286,32 +2286,259 @@
rr) return res;%0A
+ if (res.length %3E self.maxKeyLength) %7B%0A return bufrw.LengthResult.error(errors.TransportHeaderTooLong(%7B%0A maxLength: self.maxKeyLength,%0A headerName: key%0A %7D));%0A %7D%0A
length +
|
ddd6d66bc621c272abf424c096f048760af6b94f | Remove old comments. | experimental/babel-preset-env/test/debug-fixtures.js | experimental/babel-preset-env/test/debug-fixtures.js | const chai = require("chai");
const child = require("child_process");
const fs = require("fs-extra");
const helper = require("babel-helper-fixtures");
const path = require("path");
const fixtureLoc = path.join(__dirname, "debug-fixtures");
const tmpLoc = path.join(__dirname, "tmp");
const clear = () => {
process.ch... | JavaScript | 0 | @@ -1097,111 +1097,8 @@
%3E %7B%0A
- // stderr = stderr.trim();%0A%0A // if (stderr) %7B%0A // throw new Error(%22stderr:%5Cn%22 + stderr);%0A // %7D%0A%0A
te
|
8844ef82ef57d32c7cb4fd2cd0c2134b95d4a85a | fix getting server port | backhome.js | backhome.js | 'use strict';
let config = require('config'),
path = require('path'),
fs = require('fs'),
// Http server
express = require('express'),
bodyParser = require('body-parser'),
app = express(),
port = config.get('http.port'),
// Security
https = require('https'),
httpsOptions = {
// key: fs.readFileSync('./conf... | JavaScript | 0.000001 | @@ -209,20 +209,22 @@
ig.get('
-http
+server
.port'),
|
55c8af91633746abad48602c2c070b8e95c6bd75 | Make radar icons change size based on distance. Law of inverse variation | src/systems/renderer/sample-renderer-system.js | src/systems/renderer/sample-renderer-system.js | "use strict";
var point, angle, opposite, adjacent, distance;
var collidables, vp, vs, vc, op, os, oc, i, image, size = { "width": 20, "height": 45 };
var radius, type;
var viewPort = 5;
module.exports = function(ecs, game) { // eslint-disable-line no-unused-vars
game.entities.registerSearch("linesToCollidablesSea... | JavaScript | 0.000001 | @@ -129,26 +129,30 @@
h%22:
-20, %22height%22: 45 %7D
+45 %7D, constant = 21150
;%0Ava
@@ -2377,32 +2377,366 @@
.rotate(angle);%0A
+ // Law of inverse variation:%0A // Constant = 21150 so width = 45 at the radar radius%0A // @see http://www.regentsprep.org/re... |
e1b17c8ca8872b11f90d7df7a9ef838a8f131969 | use minimal output | scripts/karma.config.sauce.js | scripts/karma.config.sauce.js | const baseConfig = require('./karma.config.base');
const {
CIRCLE_BRANCH,
CIRCLE_BUILD_NUM,
FORCE_MOBILE_TEST,
} = process.env;
const customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: 'latest',
},
sl_firefox: {
base: 'SauceLabs',... | JavaScript | 0.999337 | @@ -2157,22 +2157,75 @@
m%7D%60,%0A %7D,%0A
+ mochaReporter: %7B%0A output: 'minimal',%0A %7D,%0A
%7D));%0A%7D;%0A
|
dc89576790420ed1024c2b7f289a0864dbd214ce | remove debug messages | commands.js | commands.js | exports.handle = handle;
exports.replyMention = replyMention;
exports.greet = greet;
function handle(data)
{
for (var i=0;i<commands.length;i++)
{
if (data.message.slice(0,commands[i].name.length) === commands[i].name) {
//missing permission level check
console.log("x");
... | JavaScript | 0.000001 | @@ -280,38 +280,8 @@
eck%0A
- console.log(%22x%22);%0A
@@ -1006,42 +1006,8 @@
a)%7B%0A
- console.log(%22test help%22);%0A
|
5bdcba9fdda4028a32c07fd383f09707e5c85f53 | Fix chart js copy/paste error | app/assets/javascripts/charts/mcas_scaled_chart.js | app/assets/javascripts/charts/mcas_scaled_chart.js | (function(root) {
var McasScaledChart = function initializeMcasScaledChart (series) {
this.title = 'MCAS score';
this.series = series;
};
McasScaledChart.fromChartData = function mcasScaledChartFromChartData(chartData) {
var datums = [];
var math_scaled_data = chartData.data('mcas-series-math-sc... | JavaScript | 0.000001 | @@ -708,36 +708,35 @@
datums.push(
-math
+ela
_scaled);%0A %7D%0A
|
3475b4d518addfc4820683a11a8791fbe14a6ae4 | Tweak asset picker so it doesn't include black entries from a select. | app/assets/javascripts/islay/admin/asset_picker.js | app/assets/javascripts/islay/admin/asset_picker.js | /* -------------------------------------------------------------------------- */
/* ASSET PICKER
/* This mostly leans on the asset dialog and acts as a convenience for
/* initalizing it.
/* -------------------------------------------------------------------------- */
(function($){
var Picker = function(input, type) ... | JavaScript | 0 | @@ -900,16 +900,55 @@
ts%5Bi%5D);%0A
+ if (!_.isEmpty($opt.text())) %7B%0A
th
@@ -1013,16 +1013,24 @@
$opt);%0A
+ %7D%0A
%7D;%0A%0A
|
a684418a1fa4c4df893dbebb2b2e7c0d4510532a | return artwork | app/assets/javascripts/services/ArtworkServices.js | app/assets/javascripts/services/ArtworkServices.js | JavaScript | 0 | @@ -0,0 +1,162 @@
+function Artwork($resource) %7B%0A return $resource('http://localhost:8080/artworks/:id', %7Bid: '@_id'%7D)%0A%7D)%0A%0Aangular%0A .module('app')%0A .services('Artwork', Artwork)%0A
| |
82d3674ef2cc295a224a854c93ba0cab67fbbabc | remove c3 mock from snapshot tests (#2205) | app/assets/javascripts/test/enzyme/snapshot.e2e.js | app/assets/javascripts/test/enzyme/snapshot.e2e.js | // @flow
/* eslint import/no-extraneous-dependencies: ["error", {"peerDependencies": true}] */
/* eslint-disable import/first */
// This needs to be the very first import
import { createSnapshotable, debugWrapper, waitForAllRequests } from "./e2e-setup";
import { mount } from "enzyme";
import test from "ava";
import m... | JavaScript | 0 | @@ -981,79 +981,8 @@
/%3E);
-%0AmockRequire(%22c3%22, () =%3E %7B%7D);%0AmockRequire(%22react-c3js%22, () =%3E %3Cdiv /%3E);
%0A%0A//
|
5c441d54cc6f1d6f66cc84cf78e6b26b8cd00005 | Add a reference to `window` on our fake-browser emulator | app/assets/javascripts/tests/helpers/global-dom.js | app/assets/javascripts/tests/helpers/global-dom.js | /**
* This module is a helper in order to test modules that requires DOM access
* such as globally available `window` or `document`.
*
* You should use it wrapping it around your `DOM`-dependent module. Example:
*
* ```js
* it('test feature', function() {
* const cleanup = require('../helpers/global-dom')('... | JavaScript | 0 | @@ -1616,16 +1616,116 @@
ost%7D%60;%0A%0A
+ // Add circular reference to have %60window%60 as an alias to the %60global%60 object%0A window = global;%0A%0A
return
|
31f4d23389abfd8070965ab7bd1912bbf6a30fb4 | update link | test/client/scripts/public/titleCanvas.spec.js | test/client/scripts/public/titleCanvas.spec.js |
'use strict';
import { expect } from 'chai';
import titleCanvas from '../../../../client/scripts/public/modules/titleCanvas';
describe('ARCADE MODE Canvas animation', () => {
const canvasObject = titleCanvas();
before(() => {
document.body.innerHTML =
'<a href="//arcademode.herokuapp.com" class="am__am__li... | JavaScript | 0 | @@ -274,32 +274,42 @@
=%22//
-arcademode.herokuapp.com
+freecodecamp.github.io/arcade-mode
%22 cl
|
ce3c039d21e6e656eb14382be8724c4cb74b16db | Load config from ENV | app/instance-initializers/ember-ambitious-forms.js | app/instance-initializers/ember-ambitious-forms.js | export function initialize (appInstance) {
let emberAmbitiousForms = appInstance.lookup('service:ember-ambitious-forms')
emberAmbitiousForms.configure((config) => {
if (appInstance.hasRegistration('service:i18n')) {
config.fieldPlugins.push('i18n')
}
if (appInstance.hasRegistration('service:valida... | JavaScript | 0.000001 | @@ -1,12 +1,82 @@
+import Ember from 'ember'%0Aimport config from '../config/environment'%0A%0A
export funct
@@ -192,52 +192,278 @@
)%0A
-emberAmbitiousForms.configure((config
+if (config%5B'ember-ambitious-forms'%5D) %7B%0A emberAmbitiousForms.configure(config%5B'ember-ambitious-forms'%5D)%0A %7D%0A%0A if (!E... |
6da32069dc7de124ba05c266fdadab428c6e65c0 | fix bug initialisation situation.hasImmoblier | app/js/controllers/foyer/captureImmobilierModal.js | app/js/controllers/foyer/captureImmobilierModal.js | 'use strict';
angular.module('ddsApp').controller('FoyerCaptureImmobilierModalCtrl', function($scope, $modalInstance, situation, SituationService) {
$scope.situation = situation;
var conjointLabels = {
'mariage': 'conjoint',
'pacs': 'partenaire PACS',
'relation_libre': 'concubin',
... | JavaScript | 0.000003 | @@ -1040,16 +1040,26 @@
$scope.
+situation.
hasMobil
|
535ee9b4575d491f9f8727c6c7040b41b32b61e0 | use new course field for context cards | app/jsx/context_cards/GraphQLStudentContextTray.js | app/jsx/context_cards/GraphQLStudentContextTray.js | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | JavaScript | 0.000001 | @@ -992,77 +992,26 @@
urse
-: legacyNode(type: Course, _id: $courseId) %7B%0A ... on Course %7B%0A
+(id: $courseId) %7B%0A
@@ -1012,26 +1012,24 @@
%7B%0A _id%0A
-
name%0A
@@ -1033,18 +1033,16 @@
e%0A
-
permissi
@@ -1043,26 +1043,24 @@
rmissions %7B%0A
-
beco
@@ -1087,... |
7ea0f43fdfcac38c7dc8fa3ba826c2ebf98d80e6 | fix catch error in unit test | test/unit/specs/services/kuzzleWrapper.spec.js | test/unit/specs/services/kuzzleWrapper.spec.js | const kuzzleWrapperInjector = require('inject!../../../../src/services/kuzzleWrapper')
let sandbox = sinon.sandbox.create()
describe('Kuzzle wrapper service', () => {
describe('performSearch tests', () => {
let triggerError = true
let fakeResponse = {
total: 42,
documents: [{
content: {
... | JavaScript | 0.000001 | @@ -1808,32 +1808,41 @@
)%0A %7D)
+%0A
.catch((
) =%3E %7B%7D)%0A
@@ -1821,39 +1821,45 @@
.catch((
+e
) =%3E
-%7B%7D
+done(e)
)%0A %7D)%0A%0A it
|
519ecf682fcd5a3b862a6fa680492f93b79fe762 | Update main.js | data/main.js | data/main.js | /*@pjs preload="data/images/logo1.png";*/
var sketchProc=function(processingInstance){ with (processingInstance){
//Setup
var wi = window.innerWidth ||
document.documentElement.clientWidth ||
document.body.clientWidth;
var he = window.innerHeight ||
document.documentElement.clientHeight ||
... | JavaScript | 0.000001 | @@ -3398,26 +3398,8 @@
() %7B
-fcha= cha; fi= i;
disp
@@ -3410,15 +3410,20 @@
age(
-f
cha
-,fi
+p1,page-1
)%7D);
|
8d8ee0151e43096d7cce5ffb52d3cb4882d10d27 | Improve centering of map on Seattle. | seattle_example/center.js | seattle_example/center.js | var center = [47.610913, -122.330413];
| JavaScript | 0 | @@ -15,25 +15,24 @@
47.6
-10913,
+07181,
-122.33
-0413
+7226
%5D;%0A
|
891c6bfbea73d84d232254b06f63abe23abb0a05 | removed unneccesary semicolon | functions/attachBoundWindowListener/rendition1.js | functions/attachBoundWindowListener/rendition1.js | /*global attachBoundWindowListener:true,bind,attachWindowListener */
if(attachWindowListener && bind) {
attachBoundWindowListener = function(eventType, fn, thisObject) {
var listener = bind(fn, thisObject);
return attachWindowListener(eventType, listener);
};
}; | JavaScript | 0.998061 | @@ -260,9 +260,8 @@
);%0A%09%7D;%0A%7D
-;
|
4aee5e505cf421b751fb401c97b99b2fe9c78209 | allow updates | server/collectionRules.js | server/collectionRules.js | define('collectionRules', ['collections'], function(collections) {
'use strict';
var anyInsert = {
insert: function(userId, doc) {
return true;
}
}
// currently no restrictions on creating sessions or workItems
collections.sessions.allow(anyInsert);
collections.workItems.allow(anyInsert);
... | JavaScript | 0 | @@ -92,16 +92,24 @@
nyInsert
+OrUpdate
= %7B%0A
@@ -132,38 +132,84 @@
n(userId, doc) %7B
-%0A
+ return true; %7D,%0A update: function(userId, doc) %7B
return true;%0A
@@ -205,20 +205,16 @@
rn true;
-%0A
%7D%0A %7D%0A%0A
@@ -316,16 +316,24 @@
nyInsert
+OrUpdate
);%0A col
@@ -366,16 +366,24 @... |
69c5a6867154a9c4e334a306460a718e7f2ca714 | fix pretty printing | bin/gest.js | bin/gest.js | #! /usr/bin/env node
// Native
const path = require('path')
// Packages
const args = require('args')
const chalk = require('chalk')
const ora = require('ora')
// Ours
const gest = require('../src/index')
const REPL = require('../src/REPL')
const {
readFile,
checkPath,
flagsToOptions,
colorResponse,
colorize... | JavaScript | 0.000003 | @@ -2892,49 +2892,8 @@
e %7B%0A
- if (args.sub && args.sub.length) %7B%0A
@@ -2907,26 +2907,24 @@
gs.print) %7B%0A
-
const
@@ -2943,41 +2943,35 @@
%5B0%5D
-// only print first value
+%7C%7C flags.print
%0A
-
+return
wra
@@ -2980,34 +2980,32 @@
ogging(%0A
-
-
getQueryString... |
4d5d94f69a66faad61cb4c0e743204897bd5de59 | Update Plugwoot.js | Autowoot.js/Plugwoot.js | Autowoot.js/Plugwoot.js | /*
Copyright (c) 2012-2013 by Tawi Jordan - ๖ۣۜĐJ - ɴᴇᴏɴ - TFL
Permission to use this software for any purpose without fee is hereby granted, provided
that the above copyright notice and this permission notice appear in all copies.
Permission to copy and/or edit this software or parts of it for any purpose is p... | JavaScript | 0 | @@ -2356,19 +2356,9 @@
ge(%22
-PlugWoot V.
+v
%22+ p
|
ad6d1bd2c81640088e7f9cc3c627ae20e8e39073 | add MSMoment to flow globals | flow-typed/sketch.js | flow-typed/sketch.js | /* @flow */
declare var CGAffineTransformConcat: any;
declare var CGAffineTransformMakeRotation: any;
declare var CGAffineTransformMakeScale: any;
declare var CGAffineTransformMakeTranslation: any;
declare var CGSizeMake: any;
declare var COSAlertWindow: any;
declare var MSArtboardGroup: any
declare var MSAttributedSt... | JavaScript | 0 | @@ -436,32 +436,59 @@
ayerGroup: any;%0A
+declare var MSMoment: any;%0A
declare var MSOv
|
3b867589649972d9720a376e26c1a10bfea534ac | Fix load method response for csv time in columns reader | src/readers/csv-time_in_columns/csv-time_in_columns.js | src/readers/csv-time_in_columns/csv-time_in_columns.js | import CSVReader from 'readers/csv/csv';
import { isNumber } from 'base/utils';
const CSVTimeInColumnsReader = CSVReader.extend({
_name: 'csv-time_in_columns',
init(readerInfo) {
this._super(readerInfo);
},
load() {
return this._super()
.then(({ data, columns }) => {
const indicatorKey... | JavaScript | 0.000001 | @@ -348,20 +348,18 @@
-cons
+le
t concep
@@ -706,16 +706,40 @@
%5B%5D)
-.concat(
+;%0A concepts.splice(1, 0,
'tim
@@ -790,13 +790,9 @@
ice(
-1, -1
+2
);%0A
@@ -845,16 +845,63 @@
return
+ %7B%0A columns: concepts,%0A data:
data.re
@@ -926,32 +926,34 @@
=%3E %7B%0A ... |
310aa7a65e43345d7e27038314a2e21f6499dd0c | add typescript support | bin/lint.js | bin/lint.js | #!/usr/bin/env node
const yargs = require('yargs')
const execSync = require('child_process').execSync
const argv = yargs.usage('Usage: $0 [options]').option('fix', {
describe: 'auto-fix problems',
type: 'boolean',
}).argv
function exec(command) {
try {
execSync(command, {stdio: 'inherit'})
return true
... | JavaScript | 0 | @@ -14,16 +14,41 @@
v node%0A%0A
+const fs = require('fs')%0A
const ya
@@ -247,16 +247,153 @@
).argv%0A%0A
+const IS_TYPESCRIPT =%0A fs.existsSync('tsconfig.json') %7C%7C%0A fs.existsSync('../tsconfig.json') %7C%7C%0A fs.existsSync('../../tsconfig.json')%0A%0A
function
@@ -572,44 +572,206 @@
nst
-lintFixArg = ... |
2130c968aa223305ed3f95891c85fd71f6119eba | Update mailer.js | server/services/mailer.js | server/services/mailer.js | /*
Framework for building object relational database apps
Copyright (C) 2021 John Rogelstad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License... | JavaScript | 0.000001 | @@ -1188,20 +1188,16 @@
pass
-word
: resp.s
@@ -1211,12 +1211,8 @@
Pass
-word
,%0A
|
43a5a71abe563b80e4f3750d2f61dbc1ec145ed4 | Update consentVersionService.js | src/services/consent/services/consentVersionService.js | src/services/consent/services/consentVersionService.js | const { authenticate } = require('@feathersjs/authentication');
const { BadRequest } = require('@feathersjs/errors');
const {
iff,
isProvider,
disallow,
} = require('feathers-hooks-common');
const {
populateCurrentSchool,
restrictToCurrentSchool,
hasPermission,
} = require('../../../hooks');
const { modelServic... | JavaScript | 0 | @@ -1318,17 +1318,17 @@
%09%09%09%09file
-T
+t
ype: 'pd
|
a372a6631af06e415b907ba924555e2237daf21c | fix number of blocks | algorea_training/training-repeat-if-paint/task.js | algorea_training/training-repeat-if-paint/task.js | function initTask(subTask) {
var cellSide = 60;
subTask.gridInfos = {
hideSaveOrLoad: true,
cellSide: cellSide,
actionDelay: 200,
itemTypes: {
green_robot: { img: "green_robot.png", side: 80, nbStates: 9, isObstacle: true, offsetX: -14, category: "robot", team: 0, zOrder: 2 },
... | JavaScript | 0.000023 | @@ -621,18 +621,48 @@
ctions:
-10
+%7Beasy: 10, medium: 10, hard: 18%7D
,%0A
|
aac63669930a2f54b77321bad88a54bf3538660d | Improve file handling | src/ActionService.js | src/ActionService.js | const actions = {};
const MODULE_NAME_REGEXP = /^.\/(.*)\.js/;
const ActionService = {
registerFromRequireContext: function (ctx)
{
const modules = ctx.keys();
for (let i = 0; i < modules.length; i++)
{
const moduleName = modules[i];
let handler = ctx(moduleNa... | JavaScript | 0 | @@ -55,16 +55,17 @@
(.*)%5C.js
+$
/;%0A%0Acons
@@ -516,67 +516,86 @@
nst
-actionName = moduleName.replace(MODULE_NAME_REGEXP, %22$1%22);%0A
+m = MODULE_NAME_REGEXP.exec(moduleName);%0A if (m)%0A %7B%0A
@@ -625,26 +625,20 @@
egister(
-actionName
+m%5B1%5D
, handle
@@ -633,32 +633,46... |
2b07a395f51ca88f68002380bd87c228d86c2f2e | fix date picker: remove console log | modules/date-picker/js/date-picker_directive.js | modules/date-picker/js/date-picker_directive.js | /* global angular */
/* global moment */
/* global navigator */
'use strict'; // jshint ignore:line
angular.module('lumx.date-picker', [])
.controller('lxDatePickerController', ['$scope', '$timeout', '$window', function($scope, $timeout, $window)
{
var self = this,
activeLocale,
... | JavaScript | 0.000002 | @@ -4970,151 +4970,8 @@
');%0A
- console.log($activeYear, $yearSelector.scrollTop(), $activeYear.position().top, $yearSelector.height(), $activeYear.height());%0A
|
e8d4806b4581380178517f2920d9af77df79ca10 | combine export declaration assignments into variable declarations | lib/6to5/modules/common.js | lib/6to5/modules/common.js | module.exports = CommonJSFormatter;
var util = require("../util");
var t = require("../types");
function CommonJSFormatter(file) {
this.file = file;
}
CommonJSFormatter.prototype.import = function (node, nodes) {
// import "foo";
nodes.push(util.template("require", {
MODULE_NAME: node.source.raw
}, tr... | JavaScript | 0.000016 | @@ -1239,23 +1239,16 @@
var
-id = declar.id;
+assign;%0A
%0A
@@ -1293,18 +1293,24 @@
%7B%0A
-id
+var decl
= decla
@@ -1330,27 +1330,205 @@
s%5B0%5D
-.id;%0A %7D%0A%0A var
+%0A%0A if (decl.init) %7B%0A decl.init = util.template(%22exports-assign%22, %7B%0A VALUE: decl.init,%0A ... |
3b3c5a5ca1c3e117b13782cf3d08948c3821a960 | Change the flag name for the host option in the REPL | bin/repl.js | bin/repl.js | #!/usr/bin/env node
var repl = require('repl');
var util = require('util');
var program = require('commander');
var protocol = require('../lib/protocol.json');
var Chrome = require('../');
program
.option('-h, --host <host>', 'Remote Debugging Protocol host')
.option('-p, --port <port>', 'Remote Debugging Pro... | JavaScript | 0.000002 | @@ -206,17 +206,17 @@
ption('-
-h
+t
, --host
|
965fe9a74fb1d8849100262d6d506e9ad9c1e427 | Format dat diff properly, to include checkout | bin/diff.js | bin/diff.js | var pump = require('pump')
var ndjson = require('ndjson')
var openDat = require('../lib/open-dat.js')
var abort = require('../lib/abort.js')
var usage = require('../lib/usage.js')('diff.txt')
module.exports = {
name: 'diff',
command: handleDiff
}
function handleDiff (args) {
if (args.help) return usage()
if (... | JavaScript | 0 | @@ -20,16 +20,50 @@
'pump')%0A
+var through = require('through2')%0A
var ndjs
@@ -462,163 +462,802 @@
var
-diffs = db.createDiffStream(args._%5B0%5D, args._%5B1%5D)%0A pump(diffs, ndjson.serialize(), process.stdout, function done (err) %7B%0A if (err) throw err%0A %7D)
+headA = args._%5B0%5D%0A var he... |
8a4bb41c97170b1911c7016d2f67eeede57acb78 | revert #804, AM bug issue | server/static/js/staff.js | server/static/js/staff.js | // initialize datepicker
jQuery(document).ready(function($){
$('.datepicker').datetimepicker({format:'YYYY-MM-DD hh:mm:ss'});
});
| JavaScript | 0 | @@ -55,16 +55,19 @@
on($)%7B%0A
+ //
$('.dat
@@ -92,16 +92,23 @@
picker(%7B
+%0A // %09
format:'
@@ -127,16 +127,23 @@
h:mm:ss'
+,%0A //
%7D);%0A%7D);%0A
|
b148901db4b68926089593b1b7f0078121899ccd | use correct option name | bin/ytdl.js | bin/ytdl.js | #!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var ytdl = require('..');
var cliff = require('cliff');
require('colors');
var info = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '..', 'package.json')));
var opts = require('nomnom')
.option('version', {
abbr: 'v'
, fl... | JavaScript | 0.000051 | @@ -3350,21 +3350,21 @@
ons.
-begin
+start
= opts.
begi
@@ -3359,21 +3359,21 @@
= opts.
-begin
+start
;%0A%0A// Cr
|
5d0a12653c54846ed5380d5b9bd85d47cc8f9f0b | Add test cases for missing parameters | server/test/app.delete.js | server/test/app.delete.js | var assert = require('assert'),
mongoose = require('mongoose');
var config = require('./../config');
var appSv = require('./../service/app');
describe('app.update', function(){
var appObj = {};
var appInstance;
// Connect to Mongo DB
// Clean app database
// Create a test app
before(function(){
console.l... | JavaScript | 0.000003 | @@ -821,16 +821,389 @@
;%0A%09%7D);%0A%0A
+%09it('should return an error for undefined app parameter', function(done)%7B%0A%09%09var undefinedParameter;%0A%09%09appSv.delete(undefinedParameter, function(err, app)%7B%0A%09%09%09assert.notEqual(err, null);%0A%09%09%09done();%0A%09%09%7D);%0A%09%7D);%0A%0A%09it('should r... |
4acf88a0354a8a04364826ca76a0777bb6b58a32 | Fix stale getState on hot reloading (#90) | src/createDispatcher.js | src/createDispatcher.js | import composeMiddleware from './utils/composeMiddleware';
export default function createDispatcher(store, middlewares = []) {
return function dispatcher(initialState, setState) {
let state = setState(store(initialState, {}));
function dispatch(action) {
state = setState(store(state, action));
r... | JavaScript | 0 | @@ -395,12 +395,33 @@
-if (
+const finalMiddlewares =
type
@@ -449,19 +449,18 @@
unction'
-) %7B
+ ?
%0A m
@@ -473,39 +473,39 @@
ares
- = middlewares(getState);%0A %7D
+(getState) :%0A middlewares;
%0A%0A
@@ -534,17 +534,22 @@
ware(...
-m
+finalM
iddlewar
|
60b82eb955dd400adc22084b1d41e27d1a6a475a | Update sns_publishtotopic.js | javascript/example_code/sns/sns_publishtotopic.js | javascript/example_code/sns/sns_publishtotopic.js | // Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Licensed under the Apache-2.0 License on an "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND.
// ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
// https://docs.aws.amazon.com/sdk-for-ja... | JavaScript | 0.000002 | @@ -655,53 +655,17 @@
n: '
-arn:aws:sns:us-west-2:617985816162:FirstTopic
+TOPIC_ARN
',%0A%7D
|
cef6852f9c6ebe34847de990ce4ec53eefb558f4 | add example logging | services/default/index.js | services/default/index.js | /**
* default service pack
*/
'use strict';
const marked = require('marked');
const fs = require('fs');
require(_PATH_LIB + 'example');
APP.get('/', function (req, res) {
let file = _PATH_ROOT + 'README.md';
let opts = {
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
... | JavaScript | 0 | @@ -1460,16 +1460,40 @@
ction%5D;%0A
+ // log info example%0A
_log
@@ -1587,16 +1587,17 @@
%7D);%0A
+%0A
resp
@@ -1688,23 +1688,108 @@
%60);%0A
- %7D catch (e) %7B
+%0A // log success example%0A _log('EXAMPLE', 'success');%0A %7D catch (e) %7B%0A // log error example
%0A
@@ -1872,16 +... |
e051446e5b349e87ae6cca9efc92ced80e96776a | Increase zoom out when viewing individual poi | apps/poi/js/PoiMapView.js | apps/poi/js/PoiMapView.js | define(['jquery', 'backbone', 'chrome', 'apps/poi/js/PoiCollection', 'text!apps/poi/templates/poi-tpl.html', 'apps/poi/js/PoiTypeCollection', 'gmaps', 'locator'], function ($, Backbone, Chrome, PoiCollection, Templates, PoiTypeCollection, GMaps, Locator) {
'use strict';
Templates = $('<div>').html(Templates);
va... | JavaScript | 0 | @@ -2349,9 +2349,9 @@
om(1
-9
+5
);%0A
|
06cb6b3344b7e95f22fd0bc5f5e3a9a6e9c1982c | Convert `Bindable` to ES6. | bindable.js | bindable.js | function Path (path) {
this.family = 'unix'
this.path = path
}
Path.prototype.toString = function () {
return this.path
}
Path.prototype.options = function (connect) {
return { path: this.path, ...connect }
}
function Bindable (host, port) {
this.family = 'IPv4'
this.host = host
this.port... | JavaScript | 0.999999 | @@ -1,17 +1,32 @@
-function Path
+class Path %7B%0A constructor
(pa
@@ -27,32 +27,36 @@
or (path) %7B%0A
+
+
this.family = 'u
@@ -60,16 +60,20 @@
'unix'%0A
+
this
@@ -89,51 +89,37 @@
ath%0A
-%7D%0A%0APath.prototype.toString = function
+ %7D%0A%0A toString
() %7B%0A
+
@@ -139... |
26500cdfde46689ea17bece0f2b1fc22aa217c03 | 添加参数,使session的会话信息更完善 | blog/app.js | blog/app.js | var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
//导入配置文件
var setting... | JavaScript | 0 | @@ -1947,16 +1947,115 @@
ssion(%7B%0A
+ resave:false,//resave %E2%80%94%E2%80%94%E9%87%8D%E6%96%B0%E4%BF%9D%E5%AD%98%EF%BC%9A%E5%BC%BA%E5%88%B6%E4%BC%9A%E8%AF%9D%E4%BF%9D%E5%AD%98%E5%8D%B3%E4%BD%BF%E6%98%AF%E6%9C%AA%E4%BF%AE%E6%94%B9%E7%9A%84%EF%BC%8C%E9%BB%98%E8%AE%A4%E4%B8%BAtrue%0A saveUninitialized: true,//%E5%B... |
3927440c33d84ecb8d2d8834d912d64c080db8da | Add removeById function to remove an item from an array that matches a particular id. Assumes the object passed in and the array of objects all have id fields. | website/app/index/util.js | website/app/index/util.js | function isImage(mime) {
switch (mime) {
case "image/gif":
case "image/jpeg":
case "image/png":
case "image/tiff":
case "image/x-ms-bmp":
case "image/bmp":
return true;
default:
return false;
}
}
function numberWithCommas(n) {
n = n.toString();
var pattern = ... | JavaScript | 0 | @@ -1519,16 +1519,196 @@
%7D)%0A%7D%0A%0A
+function removeById(from, what) %7B%0A var i = _.indexOf(from, function(item) %7B%0A return item.id === what.id;%0A %7D);%0A%0A if (i !== -1) %7B%0A from.splice(i, 1);%0A %7D%0A%7D%0A%0A
String.p
|
61497313fb11666191f1b38232d527336855e624 | fix reward example | Example/index.js | Example/index.js | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Platform,
TouchableHighlight,
Button,
ScrollView,
} from 'react-native';
import {
AdMobBanner,
AdMobRewarded,
AdMobInterstitial,
PublisherBanner,
} from 'react-native-admob';
const BannerExample = ({ style,... | JavaScript | 0.000003 | @@ -909,28 +909,22 @@
%0A (
-type, amount
+reward
) =%3E con
@@ -966,20 +966,14 @@
r',
-type, amount
+reward
)%0A
|
a21089b71893b3ee00c547f35bab0fac794db35a | include clinician | myuw/static/js/card/accounts/hr_payroll_card.js | myuw/static/js/card/accounts/hr_payroll_card.js | var HRPayrollCard = {
name: 'HRPayrollCard',
dom_target: undefined,
render_init: function() {
var source = $("#hr_payroll_card").html();
var template = Handlebars.compile(source);
var compiled = template({
card_name: HRPayrollCard.name,
is_faculty: window.u... | JavaScript | 0.000433 | @@ -343,32 +343,33 @@
is_employee:
+(
window.user.empl
@@ -372,16 +372,42 @@
employee
+ %7C%7C window.user.clinician)
,%0A
|
0c8725c8a5c363b8465d5ef4e34dc4b1691df773 | fix modal | client/app/activity_detail/ad_participates_item.js | client/app/activity_detail/ad_participates_item.js | import React from 'React';
import {hashHistory} from 'react-router';
import {addFriend} from '../server';
import {hideElement} from '../util';
import {socket,getToken} from '../credentials';
var debug = require('react-debug');
export default class Ad_participates_item extends React.Component{
constructor(props){
... | JavaScript | 0.000001 | @@ -1818,32 +1818,36 @@
top%22%3E%0A
+%3Ch5%3E
%7Bthis.props.da
@@ -1863,11 +1863,11 @@
me%7D%3C
-br/
+/h5
%3E%0A
@@ -1868,24 +1868,30 @@
h5%3E%0A
+ %3Ch5%3E
%7Bthis.pr
@@ -1911,16 +1911,21 @@
ription%7D
+%3C/h5%3E
%0A
@@ -2005,16 +2005,28 @@
:%22right%22
+,width:'0px'
%7D%7D... |
d41435b7e64c7800b8e3a9b6ed317af5a666dc0b | 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
|
266ddafe744728ecd08dd8e20edb0d04fd0e3548 | fix lint | client/app/components/_topbar/topbar.controller.js | client/app/components/_topbar/topbar.controller.js | class TopbarController {
constructor(Authentication, SessionUser, $window, ScreenSize, $scope, $rootScope, $mdSidenav, $timeout) {
"ngInject";
Object.assign(this, {
Authentication,
SessionUser,
ScreenSize,
$mdSidenav,
$scope,
$rootScope,
$timeout,
reloadPage: (... | JavaScript | 0.000013 | @@ -1170,74 +1170,8 @@
() %7B
-%0A%0A console.log(window.localStorage.getItem(%22hidePreviewHint%22));
%0A
@@ -1261,77 +1261,11 @@
-
- console.log(window.localStorage.getItem(%22hidePreviewHint%22));%0A
%7D)
+;
%0A %7D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.