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 |
|---|---|---|---|---|---|---|---|
3f355ce10a4261a8ce07df2939d7c49337292f83 | Fix group size (#21896) | packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js | packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js | import * as React from 'react';
import PropTypes from 'prop-types';
import { isFragment } from 'react-is';
import clsx from 'clsx';
import { withStyles } from '@material-ui/core/styles';
import Avatar from '@material-ui/core/Avatar';
import { chainPropTypes } from '@material-ui/utils';
const SPACINGS = {
small: -16,... | JavaScript | 0 | @@ -604,16 +604,46 @@
ault%7D%60,%0A
+ boxSizing: 'content-box',%0A
marg
|
32db31b449737a0973a977501a31838132865491 | Load relevant content if the hash is specified and matches an existing fragment | docs/luga-docs.js | docs/luga-docs.js | luga.namespace("luga.docs");
(function(){
"use strict";
var Controller = function(){
var CONST = {
SELECTORS: {
CONTENT: "#content"
},
FRAGMENTS_PATH: "fragments/",
FRAGMENTS_SUFFIX: ".inc",
FRAGMENTS: {
INDEX: "index",
API: "/",
CLIENT_SIDE: ".inc",
SERVER_SIDE: ".inc"
}
... | JavaScript | 0 | @@ -343,16 +343,186 @@
tion()%7B%0A
+%09%09%09var currentHash = location.hash.substring(1);%0A%09%09%09if((currentHash !== %22%22) && (CONST.FRAGMENTS%5BcurrentHash%5D !== undefined))%7B%0A%09%09%09%09loadFragment(currentHash);%0A%09%09%09%7D else %7B%0A%09
%09%09%09loadF
@@ -553,16 +553,21 @@
INDEX);%0A
+%09%09%09%... |
cf74075defb57a24ddbb111222c4f4ff56d1cd40 | Remove unecessary eslint disable rule | scripts/jsonlint.js | scripts/jsonlint.js | /* eslint strict: ["error", "never"] */
const getJsonFiles = require('./lib/getJsonFiles');
const { execSync } = require('child_process');
const path = require('path');
// eslint-disable-next-line max-statements
const execJsonLint = function execJsonLint(jsonFiles) {
let throwError = false;
for (const file of jso... | JavaScript | 0.000001 | @@ -168,51 +168,8 @@
);%0A%0A
-// eslint-disable-next-line max-statements%0A
cons
|
b143802716392f8bc29a5cedeaa66356f28690f3 | Add better comment for plugin point | lib/plugins/linker.js | lib/plugins/linker.js | var _ = require('lodash'),
Async = require('async'),
ModuleDependency = require('webpack/lib/dependencies/ModuleDependency'),
NullFactory = require('webpack/lib/NullFactory'),
Path = require('path'),
RawSource = require('webpack-core/lib/RawSource'),
Client = require('../client');
module.expor... | JavaScript | 0 | @@ -4349,24 +4349,163 @@
);%0A %7D);%0A%0A
+ // Copy modules that we are linking to into the build directory, regardless of if the%0A // eventual use will be from the CDN or not.%0A
compilat
|
afc064243427e5a69e63cc896b01bca64aa9b62d | save onChange callback in useEffect (#6313) | packages/react/src/internal/Selection.js | packages/react/src/internal/Selection.js | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { useCallback, useEffect, useState, useRef } from 'react';
import PropTypes from 'prop-types';
import isEqual from 'lodash.iseq... | JavaScript | 0 | @@ -444,16 +444,58 @@
false);%0A
+ const savedOnChange = useRef(onChange);%0A
const
@@ -1249,24 +1249,101 @@
isabled%5D);%0A%0A
+ useEffect(() =%3E %7B%0A savedOnChange.current = onChange;%0A %7D, %5BonChange%5D);%0A%0A
useEffect(
@@ -1388,24 +1388,37 @@
true &&
-o
+savedO
nChange
+.current
) %7B%0A ... |
720ab27eed63064c6c6bec14df527a33b4feb4af | Add UUID prefix | packages/strapi-generate-new/lib/merge-template.js | packages/strapi-generate-new/lib/merge-template.js | 'use strict';
const path = require('path');
const fse = require('fs-extra');
const fetch = require('node-fetch');
const unzip = require('unzip-stream');
const _ = require('lodash');
// Specify all the files and directories a template can have
const allowChildren = '*';
const allowedTemplateTree = {
// Root template... | JavaScript | 0.999967 | @@ -3316,32 +3316,42 @@
th, templatePath
+, repoInfo
) %7B%0A // Import
@@ -3640,16 +3640,203 @@
eJSON);%0A
+%0A // Prefix Strapi UUID with starter info%0A const prefix = %60STARTER:$%7BrepoInfo.username%7D/$%7BrepoInfo.name%7D:%60;%0A mergedConfig.strapi = %7B%0A uuid: prefix + mergedConfig.strapi.uuid,%0A ... |
d38987d8369499711e594920756237dfee5d56e4 | fix children traverse in uniform environment | packages/uniform-environment/UniformEnvironment.js | packages/uniform-environment/UniformEnvironment.js | export default class UniformEnvironment {
constructor(children) {
this.children = children;
this.processes = new Map();
this.id = 0;
}
spawn(routine) {
const address = `ID${this.id++}`;
this.processes.set(address, routine);
setTimeout(routine, 0, this);
return address;
}
post(m... | JavaScript | 0 | @@ -352,32 +352,41 @@
of this.children
+.values()
) %7B%0A child.
|
aba3d71fd06496170bd7c017d847235b07178b3c | update markers | webmaps/js/rm10k.js | webmaps/js/rm10k.js | function main() {
var map = new L.Map('map', {
zoomControl: false,
center: [44.908, -75.83],
zoom: 15
});
L.tileLayer(
'http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}', {
... | JavaScript | 0.000001 | @@ -1061,11 +1061,13 @@
ml:
-'1'
+(i+1)
%0A
|
5ba080cdf14956799bfe5d8363da4600b60b2078 | refactor clipboard component to include remove method | res/js/transforms/clipboard.js | res/js/transforms/clipboard.js | import { remove } from 'luett'
import Clipboard from 'clipboard'
import browser from 'bowser'
import { success, danger } from '../util/notify'
const isUnsupported = browser.isUnsupportedBrowser({
msie: '9',
firefox: '41',
chrome: '42',
edge: '12',
opera: '29',
safari: '10'
}, window.navigator.userAgent)
e... | JavaScript | 0.000001 | @@ -391,16 +391,42 @@
return
+ %7B%0A remove() %7B%7D%0A %7D
%0A %7D%0A%0A
@@ -712,11 +712,96 @@
.')%0A %7D)
+%0A%0A return %7B%0A remove() %7B%0A clipboard.off()%0A clipboard.destroy()%0A %7D%0A %7D
%0A%7D%0A
|
bf003b244e62adef9d3aebbed5f96ff6e66ccf7a | remove random console log | src/app/orders/orderList/js/orders.controller.js | src/app/orders/orderList/js/orders.controller.js | angular.module('orderCloud')
.controller('OrdersCtrl', OrdersController)
;
function OrdersController($state, $filter, $ocMedia, ocParameters, ocOrders, ocReporting, OrderList, Parameters, GroupAssignments) {
var vm = this;
vm.list = OrderList;
vm.groups = GroupAssignments.Items;
vm.parameters = Par... | JavaScript | 0.000001 | @@ -3077,38 +3077,8 @@
%7D%0A%0A
- console.log('something')%0A%0A
|
ce1f2e2bd45a5969ec0b24b08ad350f837985b4d | fix broken unit test | services/clsi/test/unit/js/LatexRunnerTests.js | services/clsi/test/unit/js/LatexRunnerTests.js | /* eslint-disable
no-return-assign,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate... | JavaScript | 0.000001 | @@ -1655,10 +1655,98 @@
sArg
-(6
+With(6, null, %7B%0A stdout: 'this is stdout',%0A stderr: 'this is stderr'%0A %7D
))%0A
|
a3c04ada8c5b257425ec317f9cf5b2188cf21a03 | update markers | webmaps/js/rm10k.js | webmaps/js/rm10k.js | function main() {
var map = new L.Map('map', {
zoomControl: false,
center: [44.908, -75.83],
zoom: 15
});
L.tileLayer(
'http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}', {
... | JavaScript | 0.000001 | @@ -3279,32 +3279,39 @@
%7D);%0A%09%09%09%09%09
+%7D else
if (feature.prop
@@ -3323,32 +3323,32 @@
s.cng_Meters ==%0A
-
@@ -3494,32 +3494,39 @@
%7D);%0A%09%09%09%09%09
+%7D else
if (feature.prop
@@ -3709,32 +3709,39 @@
%7D);%0A%09%09%09%09%09
+%7D else
if (feature.prop
@... |
4ba3607dcbb6ad88a9ee6935504f2dadc91dd0de | Fix typo in Pet mongoose model (#16943) | examples/with-mongodb-mongoose/models/Pet.js | examples/with-mongodb-mongoose/models/Pet.js | import mongoose from 'mongoose'
/* PetSchema will correspond to a collection in your MongoDB database. */
const PetSchema = new mongoose.Schema({
name: {
/* The name of this pet */
type: String,
required: [true, 'Please provide a name for this pet.'],
maxlength: [20, 'Name cannot be more than 60 cha... | JavaScript | 0.000034 | @@ -960,16 +960,17 @@
applica
+b
le */%0A%0A
|
7a64e5f5e903a27f07dd84a12bdfb8d1b6de549c | remove file when saved to db | services/server/remotes/attachment/saveFile.js | services/server/remotes/attachment/saveFile.js | const Promise = require('bluebird');
const fs = require('fs-extra');
module.exports = function(Model, app) {
Model.__saveFile = function(options) {
console.log(options);
var props;
var relation = options.instance[options.prop];
return fs.readFile(options.file.path)
.then(function(content) {... | JavaScript | 0.000001 | @@ -502,16 +502,97 @@
%7D;%0A%0A
+ return fs.remove(options.file.path);%0A%0A %7D)%0A .then(function() %7B%0A%0A
|
6a614d941df19de4acf85d8385abcae51ffd8481 | Add JS for BS tooltips | webroot/js/local.js | webroot/js/local.js | var CrudView = {
bulkActionForm: function (selector) {
var bulkActionForm = $(selector);
if (bulkActionForm.length) {
bulkActionForm.submit(function (e) {
var action = $('.bulk-action-submit select', bulkActionForm).val();
if (!action) {
... | JavaScript | 0 | @@ -3349,24 +3349,107 @@
%7D)%0A %7D,%0A%0A
+ tooltip: function () %7B%0A $('%5Bdata-toggle=%22tooltip%22%5D').tooltip();%0A %7D,%0A%0A
initiali
@@ -3737,24 +3737,48 @@
dropdown();%0A
+ this.tooltip();%0A
%7D%0A%7D;%0A%0A$(
|
dede05038ccf38df29547ffc3c72233895d2b0b3 | add http:// prefix into the URL text input | scripts/validate.js | scripts/validate.js | $(document).ready(function () {
});
function validateFields() {
// Validate Project Name
if($("#proname").val() == "") {
$("#wproName").text("必填");
$("#proname").parent().addClass("has-error");
$("#proname").parent().removeClass("has-success");
return false;
}
else {
... | JavaScript | 0.000175 | @@ -29,9 +29,75 @@
) %7B%0A
-%09
+ $(%22#projsite%22).val('http://');%0A $(%22#reprou%22).val('http://');
%0A%7D);
|
25c5aad3dbeb8672411b30ee16c1fb6be0ad1392 | fix search | www/js/app.js | www/js/app.js | // (function(){
angular.module('profeSearchStarter', ['ionic'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
console.log(cordova.plugins.Keyboard)
}
... | JavaScript | 0.000014 | @@ -1474,24 +1474,26 @@
;%0A%0A %7D
+);
%0A %7D)%0A
@@ -1498,14 +1498,8 @@
-%0A%7D)%0A
.con
|
8eff1025ef9d14e2f2bf461c8d53e1c950da3fef | fix hardcode container name in ZTDockerClient.__isLinkUpInsideContainer | extension/vpnclient/docker/ZTDockerClient.js | extension/vpnclient/docker/ZTDockerClient.js | /* Copyright 2016 - 2021 Firewalla Inc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be use... | JavaScript | 0.99796 | @@ -3216,18 +3216,34 @@
xec
-vpn_hahaha
+$%7Bthis.getContainerName()%7D
zer
|
af3816f789e38989ec39c93307db2dc2c9b5a258 | Refactor js into a jQuery plugin | extensions/fieldtypes/ff_vz_url/ff_vz_url.js | extensions/fieldtypes/ff_vz_url/ff_vz_url.js | // Ajax link validator for VZ URL fieldtype
// by Eli Van Zoeren (http://elivz.com)
jQuery(document).ready(function() {
jQuery('.vz_url_field').blur(function() {
field = $(this);
jQuery.get(
FT_URL+'ff_vz_url/proxy.php',
{ path: field.val() },
function(response) {
if (response) {
field.next(... | JavaScript | 0 | @@ -1,10 +1,13 @@
/
-/
+*%0A *
Ajax li
@@ -40,18 +40,18 @@
eldtype%0A
-//
+ *
by Eli
@@ -80,16 +80,21 @@
vz.com)%0A
+ */%0A%0A
jQuery(d
@@ -150,12 +150,85 @@
d').
-blur
+vzCheckUrl();%0A%7D);%0A%0A%0A// jQuery plugin to check the url and display the result%0A
(fun
@@ -237,110 +237,145 @@
ion(
+$
) %7B%0A
-... |
e65ad58d2c9a09be9622f8cab5d5f619886d0a8b | Fix undefined filter value error (#8490) (#9603) | packages/strapi-utils/lib/build-query.js | packages/strapi-utils/lib/build-query.js | 'use strict';
//TODO: move to dbal
const _ = require('lodash');
const parseType = require('./parse-type');
const isAttribute = (model, field) =>
_.has(model.allAttributes, field) || model.primaryKey === field || field === 'id';
/**
* Returns the model, attribute name and association from a path of relation
* @p... | JavaScript | 0.000043 | @@ -3298,16 +3298,23 @@
ilter((%7B
+ field,
value %7D
@@ -3318,17 +3318,28 @@
e %7D) =%3E
-!
+%7B%0A if (
_.isNull
@@ -3350,57 +3350,45 @@
ue))
-%0A .map((%7B field, operator, value %7D) =%3E %7B%0A
+ %7B%0A return false;%0A %7D else
if
@@ -3424,41 +3424,24 @@
-const err = new E... |
410826a027ae373d029cc1fce2f0efe100287fb1 | Update googlemap.js | assets/googlemap.js | assets/googlemap.js | /**
* Google Map manager - renders map and put markers
* Address priority - House Number, Street Direction, Street Name, Street Suffix, City, State, Zip, Country
*/
yii.googleMapManager = (function ($) {
var pub = {
nextAddress: 0,
zeroResult: 0,
delay: 100,
bounds: [],
ge... | JavaScript | 0.000001 | @@ -1540,20 +1540,16 @@
-var
search =
|
efc18f028ee3937d60e10d00ab036778ed23ace4 | fix the captcha issue to ignore upper and lower characters | scripts/validate.js | scripts/validate.js | $(document).ready(function () {
});
function validateFields() {
// Validate Project Name
if($("#proname").val() == "") {
$("#wproName").text("必填");
$("#proname").parent().addClass("has-error");
$("#proname").parent().removeClass("has-success");
return false;
}
else {
... | JavaScript | 0.000074 | @@ -2190,27 +2190,39 @@
on Code%0A
-if(
+var vericode =
$(%22#vericode
@@ -2233,36 +2233,118 @@
al()
- != $(%22#captchavalue%22).val()
+.toLowerCase();%0A var captchavalue = $(%22#captchavalue%22).val().toLowerCase();%0A if(vericode != captchavalue
) %7B%0A
|
14523a374ee44bfa133f59a02f89b8f8035e93fa | Change display method to just calculate the compiled sources and emit an event instead of logging directly | packages/truffle-compile/legacy/index.js | packages/truffle-compile/legacy/index.js | const path = require("path");
const Profiler = require("../profiler");
const CompilerSupplier = require("../compilerSupplier");
const expect = require("truffle-expect");
const findContracts = require("truffle-contract-sources");
const Config = require("truffle-config");
const debug = require("debug")("compile"); // esl... | JavaScript | 0 | @@ -3087,23 +3087,40 @@
? self.
-display
+calculateCompiledSources
(require
@@ -3146,23 +3146,40 @@
: self.
-display
+calculateCompiledSources
(allSour
@@ -3312,15 +3312,32 @@
ile.
-display
+calculateCompiledSources
= f
@@ -3366,42 +3366,8 @@
) %7B%0A
- if (options.quiet !== true) %7B%0A
if
@@ -3390,24 ... |
46c7c3a9fe9d4717d033a0badee7186d532d5afc | Create login functionality in Ally framework | plugins/gui-core/gui-resources/scripts/js/views/auth.js | plugins/gui-core/gui-resources/scripts/js/views/auth.js | define
([
'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap',
'tmpl!auth',
],
function($, superdesk, dust, jsSHA)
{
var AuthLogin = function(username, password, logintoken){
var shaObj = new jsSHA(logintoken, "ASCII"),shaPassword = new jsSHA(password, "... | JavaScript | 0 | @@ -838,19 +838,304 @@
.EMail);
+%0A
%09%09%09
+$.restAuth.prototype.requestOptions.headers.Authorization = localStorage.getItem('superdesk.login.session');%0A%09%09%09superdesk.login = %7BId: localStorage.getItem('superdesk.login.id'), Name: localStorage.getItem('superdesk.login.name'), EMail: localStorage.getItem('... |
9882d6a5a973114cda553d4047f020c5ff859fbc | create report | lib/router/restful.js | lib/router/restful.js | const express = require('express');
const router = express.Router();
const select = require('../models-sqlite3/sql/select');
const deleteAll = require('../models-sqlite3/sql/delete');
const update = require('../models-sqlite3/sql/update');
const insert = require('../models-sqlite3/sql/insert');
const db = require('../m... | JavaScript | 0.000005 | @@ -3562,16 +3562,182 @@
s._tbl;%0A
+ if(data._tbl === 'tblReport') %7B%0A insert.createreport(db(), data).then((result)=%3E%7B%0A%0A %7D).catch((err)=%3E%7B%0A res.status(400).send(err);%0A %7D);%0A %7D else %7B%0A
insert
@@ -3779,24 +3779,26 @@
t)=%3E%7B%0A
+
//log an ins
@@ -3803,24... |
9c5329ef91729f2a70932df0c77d5589bed36971 | Create login functionality in Ally framework | plugins/gui-core/gui-resources/scripts/js/views/auth.js | plugins/gui-core/gui-resources/scripts/js/views/auth.js | define
([
'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap',
'tmpl!auth',
],
function($, superdesk, dust, jsSHA)
{
<<<<<<< HEAD
var AuthLogin = function(username, password, logintoken){
=======
var AuthDetails = function(username){
var authDetails ... | JavaScript | 0 | @@ -174,21 +174,8 @@
)%0A%7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
@@ -236,558 +236,8 @@
n)%7B%0A
-=======%0A var AuthDetails = function(username)%7B%0A%09%09var authDetails = new $.rest('Superdesk/User');%0A%09%09authDetails.resetData().xfilter('Name,Id,EMail').select(%7B name: username %7D).done(function(users... |
9f329556cfbb83f3fee630d9ade9184253a8d772 | Update app.js | www/js/app.js | www/js/app.js | "use strict";
angular.module('myApp', ['ionic','ngCordova','myApp.controllers'])
.run(function($ionicPlatform) {
document.addEventListener("deviceready", function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if(window.Sta... | JavaScript | 0.000002 | @@ -108,13 +108,32 @@
form
+, $cordovaStatusbar
) %7B%09%0A
-
@@ -182,24 +182,26 @@
unction() %7B%0A
+//
if(windo
@@ -244,24 +244,26 @@
Keyboard) %7B%0A
+//
cordov
@@ -313,22 +313,26 @@
(true);%0A
+//
%7D%0A
+//
if(w
@@ -350,16 +350,18 @@
sBar) %7B%0A
+//
St
@@ -384,22 +384,70 @... |
d22f785285267a612d5986f9e0bd8884c8efa688 | remove OneTouchUltra2 from the UI | lib/state/appState.js | lib/state/appState.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | JavaScript | 0 | @@ -1489,30 +1489,36 @@
// %7D%0A
+ //
%7B%0A
+ //
name: 'On
@@ -1550,26 +1550,29 @@
ent!)',%0A
+//
+
key: 'onetou
@@ -1581,24 +1581,27 @@
ultra2',%0A
+ //
source: %7B
@@ -1643,24 +1643,27 @@
Ultra2'%7D%0A
+ //
%7D%0A %5D;%0A%0A i
|
5c09f60d9e0f33863809196ea8579b01ad95fbdc | Correct warning for deprecated text/m-objects | lib/transform/html.js | lib/transform/html.js |
var rebase = require("../rebase");
var minifyJavaScript = require("../minify-javascript");
var jshint = require("../jshint").JSHINT;
var File = require("../file");
var transformCss = require("./css");
var domToHtml = require("jsdom/lib/jsdom/browser/domtohtml").domToHtml;
var Node = require("jsdom").level(1).Node;
var... | JavaScript | 0.000001 | @@ -4617,16 +4617,21 @@
Use
+text/
montage
-/
+-
seri
|
f6ba83db1af7dd0178177806c6dd59dd163ca3b0 | add qio.makeTree before rename | lib/utils/fs-utils.js | lib/utils/fs-utils.js | /**
* Created by elad.benedict on 1/18/2016.
*/
var logger = require('../../common/logger').getLogger('fs-utils');
var config = require('./../../common/Configuration');
var _ = require('underscore');
var qio = require('q-io/fs');
var Q = require('q');
var t = require('tmp');
var path = require('path');
var mkdirp = ... | JavaScript | 0 | @@ -1052,16 +1052,94 @@
ing());%0A
+ return qio.makeTree(renamedFolderName).then(function () %7B%0A
@@ -1196,16 +1196,35 @@
rName);%0A
+ %7D)%0A
|
087d7e55e20407f705d6481e72eacd3cb43b75d1 | Implement image formatting. | lib/writer/xelatex.js | lib/writer/xelatex.js | var assert = require('assert');
var wrap = require('../wrap');
module.exports = function formatText(text, options) {
assert(text.shift() == 'text');
var result = [];
text.forEach(function(block) {
result.push(formatBlock(block));
});
var output = result.join('\n\n') + '\n';
if (options.standalone)
... | JavaScript | 0 | @@ -1242,32 +1242,241 @@
nction(spans) %7B%0A
+ if (spans.length %3E 0 && spans%5B0%5D%5B0%5D === 'url') %7B%0A var url = spans%5B0%5D%5B1%5D;%0A var str =%0A'%5C%5Cbegin%7Bfigure%7D%5BH%5D%5Cn' +%0A'%5C%5Ccentering%5Cn' +%0A'%5C%5Cincludegraphics%7B' + url + '%7D%5Cn' +%0A'%5C%5Cend%7Bfigure%7D';%0A return ... |
b5a121aac35a0cbf95ef855a4ced4b6dbb69def6 | Improve rules error handling | src/rules-engine/Property.js | src/rules-engine/Property.js | /**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.*
*/
const assert = require('assert');
const AddonManager = require('../addon-manager');
const Constants = requir... | JavaScript | 0 | @@ -1462,24 +1462,36 @@
ync get() %7B%0A
+ try %7B%0A
return a
@@ -1537,24 +1537,90 @@
, this.id);%0A
+ %7D catch (e) %7B%0A console.warn('Rule get failed', e);%0A %7D%0A
%7D%0A%0A /**%0A
@@ -1678,123 +1678,327 @@
ves
-if property is set to
+when set is done%0A */%0A set(
value
+) %7B... |
71e5b4a0fcd7e710859f57c1c2a36c6cb6df093a | Fix hint counter | public/static/scripts/mixins.js | public/static/scripts/mixins.js | var Mixins = Mixins || {}
Mixins.commons = {
data: {
flipped: [],
fullscreened: false,
debug: false,
},
methods: {
select: function (index, e) {
if (!this.flipped[index])
return;
if (this.inarr(index, this.selected))
this.selected.splice(this.selected.indexOf(index), 1... | JavaScript | 0.000001 | @@ -3991,32 +3991,53 @@
rds: %5B%5D%0A %7D%0A
+ this.hints = 2%0A
this.deck
|
30f49220567753716075018b723710c88791461c | use linclark’s static-pages fork on or after launch day | services/corporate/methods/getPage.js | services/corporate/methods/getPage.js | var request = require('request');
var Joi = require('joi');
var marky = require('marky-markdown');
var fmt = require('util').format;
module.exports = {
static: getPage('static-pages'),
policy: getPage('policies')
};
function getPage (repo) {
return function (name, next) {
Joi.validate(name, Joi.string().r... | JavaScript | 0 | @@ -421,24 +421,143 @@
);%0A %7D%0A%0A
+ var org = (new Date() %3E new Date(%222015-04-13T03:30:00-07:00%22)) ? %22linclark%22 : %22npm%22;%0A var branch = %22master%22%0A
var ur
@@ -603,38 +603,42 @@
com/
-npm/' + repo + '/master/%25s.md'
+%25s/%25s/%25s/%25s.md', org, repo, branch
, va
|
af6f20c1f2183d095b227bc90117a684f2c6ed32 | fix it for good | client/app/common/user/auth.factory.js | client/app/common/user/auth.factory.js | 'use strict';
import 'angularfire';
import Firebase from 'firebase';
import { FIREBASEPATH } from '../common';
let AuthFactory = function ($firebaseAuth, $rootScope, $cookies, $location) {
let ref = new Firebase(FIREBASEPATH);
let fail = (err) => console.log(err);
let afterLogin = function (authData) {
... | JavaScript | 0.00229 | @@ -588,16 +588,64 @@
%7D%0A %7D;%0A%0A
+ /**%0A * Login%0A */%0A%0A let login = () =%3E %7B%0A
let au
@@ -669,16 +669,18 @@
h(ref);%0A
+
auth.$
@@ -706,51 +706,100 @@
%0A%0A
-/**%0A * Login%0A */%0A%0A let login = () =%3E %7B
+ // auth.$authWithOAuthPopup('facebook')%0A // .then(afterL... |
fe97cace3c3f03def6d25b5b0a7e4720fac63d61 | Set a URL in storybook | .storybook/config.js | .storybook/config.js | import { configure, addParameters } from '@storybook/vue';
// Option defaults:
addParameters({
options: {
name: 'Vue Visual',
}
})
// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /\.stories\.js$/);
function loadStories() {
req.keys().forEach(filename ... | JavaScript | 0.999959 | @@ -126,16 +126,64 @@
isual',%0A
+ url: 'https://github.com/BKWLD/vue-visual',%0A
%7D%0A%7D)%0A%0A
|
46dd549e8005d7d26b446cd68ce5e298216ea97a | change status indicator if value was changed | settings/js/federationsettingsview.js | settings/js/federationsettingsview.js | /* global OC, result, _ */
/**
* Copyright (c) 2016, Christoph Wurst <christoph@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/
(function(_, $, OC) {
'use strict';
var FederationSettingsView = OC.Backbone.View.extend({
_in... | JavaScript | 0 | @@ -3615,20 +3615,31 @@
'form %3E
-span
+.icon-checkmark
');%0A%09%09%09$
@@ -3719,16 +3719,562 @@
, 2000);
+%0A%0A%09%09%09if (field === 'twitter' %7C%7C field === 'webpage')%0A%09%09%09%7B%0A%09%09%09%09var verifyStatus = this.$('#' + field + 'form %3E .verify %3E #verify-' + field);%0A%09%09%09%09verifyStatus.at... |
9243c645f8836755ae8e46f3330c5eca4bf80fa7 | revert change to storybook stage component | .storybook/config.js | .storybook/config.js | import React from "react";
import { addDecorator, configure } from "@storybook/react";
import styled, { ThemeProvider } from "styled-components";
import { withKnobs, select } from "@storybook/addon-knobs";
import reset from "../src/reset";
import themes from "../src/themes";
import SystemFontStack from "../src/compone... | JavaScript | 0.000001 | @@ -560,10 +560,8 @@
e()%7D
- 0
;%60;%0A
|
b3801664445dc0805f0860eda5d6574e94c82c6d | fix header | src/client/components/Header/Header.component.js | src/client/components/Header/Header.component.js | 'use strict';
import React from 'react';
import ProfileStore from '../../stores/Profile.store.js';
export default class Header extends React.Component {
constructor() {
super();
this.state = ProfileStore.getState();
}
componentDidMount() {
this.unsubscribe = [
ProfileStore.listen(() => this... | JavaScript | 0.000001 | @@ -1010,16 +1010,35 @@
mall-17
+medium-18 large-18
columns%22
|
928b187464b4e8a1db37c958f6ff920ebbe9b6df | Implement functions to add and remove materials | client/app/services/materialService.js | client/app/services/materialService.js | import 'whatwg-fetch';
import h from '../helpers.js';
let services = {
addMaterialType,
getAllMaterials,
getMaterial,
getTypes,
modifyMaterial,
modifyType,
removeMaterialType
};
function addMaterialType(type) {
return fetch('/a/types/materials', {
method: 'post',
headers: h.headers,
body: ... | JavaScript | 0 | @@ -65,16 +65,31 @@
ces = %7B%0A
+ addMaterial,%0A
addMat
@@ -99,16 +99,16 @@
alType,%0A
-
getAll
@@ -177,16 +177,34 @@
fyType,%0A
+ removeMaterial,%0A
remove
@@ -220,12 +220,283 @@
ype%0A
-
%7D;%0A%0A
+function addMaterial(material) %7B%0A return fetch('/a/materials', %7B%0A method: 'post',%0A h... |
395de11d6a43a3d55022c375428642d964023684 | remove first 2 lines | client/components/LandingF/LandingF.js | client/components/LandingF/LandingF.js | import React from 'react'
import styles from './LandingF.scss'
import logoV from '../../images/logo-home-video-copy.png'
import c3nonprofit from '../../images/501-c-3-nonprofit.png'
class Footer extends React.Component {
render () {
return (
<div className={styles.container}>
<div className={styles... | JavaScript | 0.999999 | @@ -635,32 +635,1098 @@
ojects%3C/a%3E%3C/li%3E%0A
+import React, %7B Component %7D from 'react'%0Aimport styles from './LandingF.scss'%0Aimport logo from '../../images/logo-home.png'%0Aimport facebook from '../../images/facebook.png'%0Aimport linked-in from '../../images/linked-in.png'%0Aimport pininterest from '../.... |
35f0bbce7c6d8221d95b19f365ecb4cb86994fdb | Add break-word property to error messages of long hex strings | client/src/js/jobs/components/Error.js | client/src/js/jobs/components/Error.js | import React from "react";
import { map } from "lodash-es";
import { Alert } from "../../base";
const JobError = ({ error }) => {
if (!error) {
return null;
}
// Traceback from a Python exception.
const tracebackLines = map(error.traceback, (line, index) =>
<div key={index} className=... | JavaScript | 0.000001 | @@ -494,16 +494,83 @@
ngth
- ? %3Cspan
+%0A ? %3Cspan style=%7B%7Bdisplay: %22inline-block%22, wordBreak: %22break-word%22%7D%7D
%3E: %7B
@@ -590,16 +590,24 @@
%7D%3C/span%3E
+%0A
: null;
|
2007e9bd082f4aa8d9a891297de02e47b405df56 | pass test for whitespace phrase is not palindrome | server/02-palindrome/palindrome.spec.js | server/02-palindrome/palindrome.spec.js | describe('the palindrome canary test', () => {
it('shows the infrastructure works', () => {
true.should.equal(true);
});
const isPalindrome = phrase => {
if (phrase === '') return false;
return phrase.split('').reverse().join('') === phrase;
};
describe('palindrome should be', () => {
it('ye... | JavaScript | 0.999999 | @@ -172,16 +172,23 @@
(phrase
+.trim()
=== '')
@@ -797,16 +797,78 @@
phrase'
+, () =%3E %7B%0A isPalindrome(' ').should.equal(false);%0A %7D
);%0A %7D);
|
22e07859bf17f958e5fcb9331ce5f23651576899 | fix jsdoc | rest-on-couch/UserViewPrefs.js | rest-on-couch/UserViewPrefs.js | define(['../util/getViewInfo'], function (getViewInfo) {
class UserViewPrefs {
constructor(roc) {
this.roc = roc;
}
/**
* Retrieves user preferences related to the current view
* @param {*} prefID
* @return preferences
*/
async get(prefID) {
let record = await this.getR... | JavaScript | 0.000089 | @@ -234,16 +234,25 @@
@return
+ %7Bobject%7D
prefere
@@ -630,24 +630,33 @@
rstEntry = (
+%0A
await this.r
@@ -694,16 +694,18 @@
+
+
key: %5Bus
@@ -750,18 +750,27 @@
%5D%0A
-%7D)
+ %7D)%0A
)%5B0%5D;%0A
|
0c0c83a5240771cebb121199b1f18a89e26ae585 | fail mom is palindrome test | server/02-palindrome/palindrome.spec.js | server/02-palindrome/palindrome.spec.js | describe('the palindrome canary test', () => {
it('shows the infrastructure works', () => {
true.should.equal(true);
});
describe('palindrome should be', () => {
it('yes for mom');
it('yes for dad');
it('no for dude');
it('yes for mom mom');
it('no for mom dad');
it('no for empty phra... | JavaScript | 0.999989 | @@ -182,26 +182,88 @@
yes for mom'
-);
+, () =%3E %7B%0A isPalindrome('mom').should.equal(true);%0A %7D);%0A
%0A it('yes
|
18fb7e0e899090c3a69dfa567887b66494c1e0cb | Fix direct go to issue by url | frontend/app/js/containers/issues/details.js | frontend/app/js/containers/issues/details.js | import React from 'react'
import DetailsView from 'app/components/issues/details'
import rpc from 'app/rpc'
import Flash from 'app/flash'
import {parse_comment, update_issue_multi, update_issue} from './utils'
import {merge} from 'app/utils'
import Loading from 'app/components/loading'
import {i18n} from 'app/utils/i18... | JavaScript | 0 | @@ -1091,16 +1091,23 @@
.get%22, %5B
+Number(
this.sta
@@ -1117,16 +1117,17 @@
issue_id
+)
%5D).then(
|
94cc63154ff5c7d27205fc881eba03b164765d00 | Fix duration display in log | server/Prefs/FileScanner/FileScanner.js | server/Prefs/FileScanner/FileScanner.js | const path = require('path')
const debug = require('debug')
const log = debug('app:prefs:fileScanner')
const { promisify } = require('util')
const fs = require('fs')
const stat = promisify(fs.stat)
const musicMeta = require('music-metadata')
const mp4info = require('./lib/mp4info.js')
const getFiles = require('./getFil... | JavaScript | 0.000001 | @@ -5245,25 +5245,25 @@
%7D%0A%0A log(
-%60
+'
=%3E duratio
@@ -5265,18 +5265,30 @@
ration:
-$%7B
+%25s:%25s',%0A
Math.flo
@@ -5314,12 +5314,16 @@
60)
-%7D:$%7B
+,%0A
Math
@@ -5353,18 +5353,49 @@
60, 10)
-%7D%60
+.toString().padStart(2, '0')%0A
)%0A%0A /
|
47194f9bf7d3beb75dc1aa41c7308d5b1a725af6 | add tableName work in queryBuilderFormat | modules/utils/queryBuilderFormat.js | modules/utils/queryBuilderFormat.js | 'use strict';
import Immutable from 'immutable';
import uuid from "./uuid";
import isArray from 'lodash/isArray'
import {defaultValue} from "./stuff";
import {
getFieldConfig, getWidgetForFieldOp, getValueSourcesForFieldOp, getOperatorConfig, getFieldWidgetConfig,
getFieldPath, getFieldPathLabels, fieldWidgetD... | JavaScript | 0.00061 | @@ -1968,55 +1968,8 @@
) %7B%0A
- const field = properties.get('field');%0A
@@ -2072,24 +2072,69 @@
rOptions');%0A
+ let field = properties.get('field');%0A
let
@@ -3301,16 +3301,240 @@
%7C%7C %7B%7D;%0A%0A
+ //format field%0A if (fieldDefinition.tableName) %7B%0A ... |
d885ce126401cc7bc407bdd282f50e12b9111198 | Remove unneeded Text import from Subtitle | frontend/src/components/Subtitle/Subtitle.js | frontend/src/components/Subtitle/Subtitle.js | import React, { Component } from 'react'
import Radium from 'radium'
import colors from '../../styles/colors'
import { Text } from '../../components'
const styles = {
color: colors.gray,
fontStyle: 'italic',
}
class Subtitle extends Component {
render() {
return (
<p {...this.props} style={[styles,t... | JavaScript | 0.000001 | @@ -109,49 +109,8 @@
s'%0A%0A
-import %7B Text %7D from '../../components'%0A%0A
cons
|
71563ce540d2e61d266be4d188027249e587b94f | Update textnode view | src/dom_components/view/ComponentTextNodeView.js | src/dom_components/view/ComponentTextNodeView.js | import ComponentView from './ComponentView';
export default ComponentView.extend({
initialize() {
ComponentView.prototype.initialize.apply(this, arguments);
},
// Clear methods used on Nodes with attributes
_setAttributes() {},
renderAttributes() {},
setAttribute() {},
updateAttributes() {},
initC... | JavaScript | 0 | @@ -260,16 +260,59 @@
s() %7B%7D,%0A
+ updateStatus() %7B%7D,%0A updateClasses() %7B%7D,%0A
setAtt
|
0bb9d9e069e3ffa6da4c8a392bbeed1b3bbd5b9d | Refactor auth in redis connection. | server/config/middlewares/public_api.js | server/config/middlewares/public_api.js | var mongoose = require('mongoose')
, User = mongoose.model('User')
, Vendor = mongoose.model('Vendor')
, Throttle = require('redis-throttle')
, env = process.env.NODE_ENV || 'development'
, config = require('../config')[env]
;
/**
* Validate API key
* -----------------------------------------
* Validates ... | JavaScript | 0 | @@ -1184,16 +1184,46 @@
true%7D)%0A
+ .populate('programs')%0A
@@ -2535,549 +2535,88 @@
%0A%7D%0A%0A
-// workaround for the throttle module not properly authorizing client%0A// if a password is present, we'll save it locally and delete it from the options%0A// so that redis won't try to auth again.%... |
a2ae198ccbdb41760cbd863cca67a77895123bdc | Update AudioAPI to use ES6 imports. | cmd/tchaik/ui/js/src/utils/AudioAPI.js | cmd/tchaik/ui/js/src/utils/AudioAPI.js | "use strict";
var NowPlayingConstants = require("../constants/NowPlayingConstants.js");
var NowPlayingActions = require("../actions/NowPlayingActions.js");
var NowPlayingStore = require("../stores/NowPlayingStore.js");
var PlayingStatusStore = require("../stores/PlayingStatusStore.js");
var VolumeStore = require("..... | JavaScript | 0 | @@ -8,19 +8,22 @@
rict%22;%0A%0A
-var
+import
NowPlay
@@ -35,26 +35,21 @@
nstants
-= require(
+from
%22../cons
@@ -73,30 +73,32 @@
onstants.js%22
-)
;%0A
-var
+import
NowPlayingA
@@ -104,26 +104,21 @@
Actions
-= require(
+from
%22../acti
@@ -146,14 +146,16 @@
.js%22
-)
;%0A
-var
+import
Now
@@ -163,3... |
833d2a404645c074a7788847cb94c4792fb6f3f1 | Fix #174 by returning the promise to prevent warning | server/controllers/list/delete-lists.js | server/controllers/list/delete-lists.js | const List = require('../../models').list;
const ListSubscriber = require('../../models').listsubscriber;
module.exports = (req, res) => {
const userId = req.user.id;
const listIds = req.body.lists;
List.destroy({
where: { userId, id: listIds }
})
.then(() => {
res.send('Lists deleted');
// Del... | JavaScript | 0 | @@ -602,16 +602,23 @@
rId%0A
+return
ListSubs
|
e35fcf5bfc4310e9c9aa151547176d3d85cd6ea2 | Add passwordless mode back into update | plugins/kalabox-core/lib/tasks/update.js | plugins/kalabox-core/lib/tasks/update.js | 'use strict';
/**
* This contains all the core commands that kalabox can run on every machine
*/
module.exports = function(kbox) {
// Grab our installer
var installer = kbox.install;
kbox.tasks.add(function(task) {
task.path = ['update'];
task.description = 'Run this after you update your Kalabox co... | JavaScript | 0 | @@ -323,40 +323,321 @@
.';%0A
- task.func = function(done) %7B
+%0A // If on posix pass in a password options%0A if (process.platform !== 'win32') %7B%0A task.options.push(%7B%0A name: 'password',%0A kind: 'string',%0A description: 'Sudo password for admin commands.'%0A %7D);%0A... |
6df0720dae2cfb546d8722dc741efa4f8e81726e | improve js error message | web/js/index.js | web/js/index.js | function goLive(element) {
var $el = $(element);
var jobId = $el.data('jobId');
var moduleName = $el.data('jobTargetmodule');
var moduleVersion = $el.data('jobTargetversion');
var message = 'Are you sure you want to go live with [' + moduleName + '] version ' + moduleVersion + '?';
var answer ... | JavaScript | 0.000001 | @@ -720,37 +720,103 @@
alert(%22
+An
error
+ occurred, if you don't see the job deploying, please try again
%22);%0A
@@ -1589,21 +1589,90 @@
alert(%22
+An
error
+ occurred, if you don't see the job rolling back, please try again
%22);%0A
|
79da511b255f3f9e1681bff25a27a96d787785e3 | Fix the regression by #636 | src/server/models/Channel.js | src/server/models/Channel.js | /**
* @license MIT License
*
* Copyright (c) 2015 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
* Copyright (c) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | JavaScript | 0.002719 | @@ -1378,17 +1378,17 @@
ss Chann
-a
+e
l %7B%0A%0A
|
6af02847054a506a5b3c6887a4974ddbb95b3a50 | Enable source-maps. | src/server/webpack.config.js | src/server/webpack.config.js | /*
See:
https://github.com/webpack/webpack-dev-middleware
https://www.npmjs.com/package/webpack-hot-middleware
https://github.com/kriasoft/react-starter-kit/blob/master/webpack.config.js
*/
import webpack from 'webpack';
import fsPath from 'path';
export const PORT = 8080;
const NODE_MODULES_PATH = fsPa... | JavaScript | 0 | @@ -589,16 +589,17 @@
')%0A %5D,%0A
+%0A
output
@@ -702,16 +702,61 @@
%60%0A %7D,%0A%0A
+ devtool: '#cheap-module-eval-source-map',%0A%0A
plugin
|
aa0ce7097bccee3a0a8e2baf5359ddebceb8b269 | update string/case-paragraph adjust dependencies | src/string/case-paragraph.js | src/string/case-paragraph.js | var toString = require('../lang/toString')
var lowerCase = require('./case-lower')
var upperCase = require('./case-upper')
// UPPERCASE first cha of each sentence and lowercase other chars
function sentenceCase (str) {
str = toString(str)
// replace first char of each sentence (new line or after '.\s+') to
// ... | JavaScript | 0.000001 | @@ -1,20 +1,21 @@
var
-toS
+s
tring
+ify
= requi
@@ -23,23 +23,18 @@
e('.
-./lang/toS
+/s
tring
+ify
')%0Av
@@ -116,25 +116,23 @@
r')%0A%0A//
-UPPERCASE
+replace
first c
@@ -133,16 +133,17 @@
irst cha
+r
of each
@@ -152,16 +152,59 @@
entence
+(new line or after '.%5Cs+') to%0A// UPPERCASE
and lowe
@@... |
aa7a1543b2e48a2deed687d703b521dced4c495d | Remove app specific code. | src/text/simple_text_view.js | src/text/simple_text_view.js | "use strict";
var _ = require("underscore");
var Application = require("substance-application");
var $$ = Application.$$;
var NodeView = require("../node/node_view");
var Fragmenter = require("substance-util").Fragmenter;
var Annotator = require("substance-document").Annotator;
var SimpleTextView = function(node, vie... | JavaScript | 0 | @@ -1027,276 +1027,8 @@
%7D);%0A
-%0A var doc = this.node.document;%0A%0A if (entry.type === %22product_reference%22) %7B%0A var productRef = doc.get(entry.id);%0A var category_code = doc.external.getProductCategoryCode(productRef.product_id);%0A el.classList.add(%22category-%22+category_code);%0A... |
19a8015d1e7fe4185e233eff1edb96ca53b6a34c | fix merge conflicts | server/db/controllers/userController.js | server/db/controllers/userController.js | var models = require('../models');
var jwt = require('jwt-simple');
var helpers = require('../../config/helpers.js');
var sendGrid = require('../../email/sendGrid.js');
var data = require('../../data.js');
var _ = require('underscore');
module.exports = {
signup: function(req, res, next) {
var username = req.bod... | JavaScript | 0.000091 | @@ -202,39 +202,8 @@
s');
-%0Avar _ = require('underscore');
%0A%0Amo
@@ -1676,16 +1676,30 @@
+ var allData =
helpers
@@ -1719,53 +1719,10 @@
ser)
+;
%0A
- .then(function(result) %7B%0A
@@ -1731,17 +1731,16 @@
-
console.
@@ -1747,24 +1747,15 @@
log(
-result%5B0%5D.le... |
60175d78ce0e732274ac8e764a0d92277bf758ce | Add user._id to interest document. | server/interests/interestsController.js | server/interests/interestsController.js | var Interests = require('./interests.server.model.js');
var Q = require('q');
module.exports = {
add: function (req, res, next) {
var interest = {};
interest.id = req.body.id;
//interest.user = req.user._id;
var addInterest = Q.nbind(Interests.create, Interests);
addInterest(interest)
.t... | JavaScript | 0 | @@ -188,10 +188,8 @@
-//
inte
|
2938138bd8243ab7862029605e7a8ff60a169b24 | Add readByEmail function to PoetsRepository | server/repositories/poets_repository.js | server/repositories/poets_repository.js | var _ = require('underscore');
module.exports = function(dbConfig) {
var db = require('./poemlab_database')(dbConfig);
return {
create: function(user_data, callback) {
var params = _.values(_.pick(user_data, ["username", "email", "password"]));
db.query("insert into poets (name, email, password) values ($1,... | JavaScript | 0 | @@ -925,16 +925,232 @@
;%0A%09%09%7D,%0A%0A
+%09%09readByEmail: function(email, callback) %7B%0A%09%09%09db.query(%22select * from poets where email = $1%22, %5Bemail%5D, function(err, result) %7B%0A%09%09%09%09if (err) %7B return callback(err); %7D%0A%09%09%09%09callback(null, result.rows%5B0%5D);%0A%09%09%09%7D);%0A... |
f791ce3b55f6e7fdd2bd3a2edeb5674ccee103a3 | fix bug signup | server/data/user.js | server/data/user.js | var util = require("util"),
BaseData = require("./base"),
mongoose = require('mongoose'),
kits = require("../kits");
function UserData(schema) {
this.Schema = schema;
BaseData.call(this, mongoose.model("user", schema));
/**
* add user
* @param name
* @param email
* @param p... | JavaScript | 0 | @@ -740,16 +740,21 @@
le :
+kits.
constant
|
425e00ccac4a0d2bdd86fa99f3ad27b99d183be2 | Add typeahead suggestions based on repository names | web/static/js/pick.js | web/static/js/pick.js |
var bloodhound = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace,
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: repositories,
});
function matchWithDefaults(q, sync) {
if (q === '') {
sync(bloodhound.get(repositories));
} else {
bloodhound.search(q, sync);
}
... | JavaScript | 0 | @@ -1,8 +1,140 @@
+%0A%0Afunction customTokenizer(datum) %7B%0A var repository = datum.substring(datum.indexOf('/') + 1);%0A return %5Bdatum, repository%5D;%0A%7D%0A
%0Avar blo
@@ -184,44 +184,23 @@
er:
-Bloodhound.tokenizers.obj.whitespace
+customTokenizer
,%0A
@@ -281,16 +281,41 @@
s,%0A%7D);%0A%0A
+bloo... |
25860c27a8a2f059adf9c5371a24e5197afe8a4f | Add JFCustomWidget.sendData when list of files updated | widget/index.js | widget/index.js | /* global JFCustomWidget, uploadcare */
/**
* Resize JotForm widget frame
*
* @param width
* @param height
*/
function resize(width, height) {
JFCustomWidget.requestFrameResize({
width: width,
height: height,
})
}
function cropOption(mode, width, height) {
switch (mode) {
case 'free crop':
return 'fr... | JavaScript | 0 | @@ -2972,16 +2972,165 @@
%09%7D)%0A%09%09%7D%0A
+%09%09else %7B%0A%09%09%09JFCustomWidget.sendData(%7Bvalue: ''%7D)%0A%09%09%7D%0A%09%7D)%0A%0A%09widget.onUploadComplete(function() %7B%0A%09%09JFCustomWidget.sendData(%7Bvalue: files.join('%5Cn')%7D)%0A
%09%7D)%0A%0A%09JF
|
52f0afac2f844e1071123eb9eb7c7247ec9b4ad7 | test loading on heroku | webpack.dev.config.js | webpack.dev.config.js | var webpack = require('webpack'),
path = require('path'),
autoprefixer = require('autoprefixer'),
precss = require('precss');
module.exports = {
context: __dirname,
entry:[
'webpack-hot-middleware/client',
'./src/js/client.js'
],
output: {
path: '/',// must have some... | JavaScript | 0 | @@ -252,16 +252,17 @@
s/client
+2
.js'%0A
|
e57f6ca228de5d2a39a143975e38dfbc88bf2cc6 | remove unused context function | packages/d3fc-series/src/webgl/line.js | packages/d3fc-series/src/webgl/line.js | import xyBase from '../xyBase';
import { glLine, scaleMapper } from '@d3fc/d3fc-webgl';
import { rebindAll, exclude, rebind } from '@d3fc/d3fc-rebind';
export default () => {
const base = xyBase();
let context = null;
const draw = glLine();
const line = (data) => {
const xScale = scaleMapper(... | JavaScript | 0.000341 | @@ -199,32 +199,8 @@
e();
-%0A let context = null;
%0A%0A
@@ -1454,164 +1454,8 @@
%7D%0A%0A
- line.context = (...args) =%3E %7B%0A if (!args.length) %7B%0A return context;%0A %7D%0A context = args%5B0%5D;%0A return line;%0A %7D;%0A%0A
|
854f71cc5514793246e3d5eb3e3b3e3f7876c28e | Add client-side routing support to dev server | webpack.dev.config.js | webpack.dev.config.js | var path = require('path');
var webpack = require('webpack');
var config = require('./webpack.config');
config.output = {
path: './dist/',
publicPath: '/',
filename: '[name].bundle.js'
};
config.devServer = {
contentBase: 'dist'
};
config.plugins.push(
new webpack.HotModuleReplacementPlugin()
);
module.expo... | JavaScript | 0 | @@ -230,16 +230,44 @@
: 'dist'
+,%0A historyApiFallback: true
%0A%7D;%0Aconf
|
3048d032445c1a803221b589b959fd8334e096aa | change port to 8081 | webpack.dev.config.js | webpack.dev.config.js | var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ENV = process.env.ENV = process.env.NODE_ENV = 'development';
module.exports = {
context: path.join(__dirname, 'src'),
entry: [
'webpack-dev-server/client?http://0.0.0.0:8080',
'webpac... | JavaScript | 0.000025 | @@ -298,17 +298,17 @@
.0.0:808
-0
+1
',%0A '
@@ -1256,8 +1256,9 @@
%7D%0A %7D%0A%7D;
+%0A
|
f6dec0d1557877ba9f323d86b0eba9b862b062a6 | Add HTML/XML syntax highlighting | assets/js/application.js | assets/js/application.js | import hljs from 'highlight.js/lib/highlight'
import apache from 'highlight.js/lib/languages/apache'
import bash from 'highlight.js/lib/languages/bash'
import css from 'highlight.js/lib/languages/css'
import markdown from 'highlight.js/lib/languages/markdown'
import dockerfile from 'highlight.js/lib/languages/dockerfil... | JavaScript | 0.000002 | @@ -1008,16 +1008,65 @@
escript'
+%0Aimport xml from 'highlight.js/lib/languages/xml'
%0A%0Ahljs.r
@@ -1720,16 +1720,50 @@
escript)
+%0Ahljs.registerLanguage('xml', xml)
%0A%0Ahljs.i
|
8e18800e9cdb265af16feea42e9687da4f280322 | remove manifest | webpack.dev.config.js | webpack.dev.config.js | const webpack = require("webpack");
const config = require("./webpack.base.config");
config.module.rules.push(
{
enforce: "pre",
test: /\.jsx?$/,
use: ["eslint-loader"],
exclude: /node_modules/
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"],
... | JavaScript | 0.000006 | @@ -1,5 +1,4 @@
-%EF%BB%BF
cons
@@ -1016,23 +1016,8 @@
.js%22
-, %22manifest.js%22
%5D%0A
|
4f8c5e1d974224e84db5d02faca54971682143a5 | Implement it so it runs whenever the page loads. fixes #113 | assets/js/change-font.js | assets/js/change-font.js | var isDyslexic = false;
function fontCookieCheck() {
var infoInCookie = readCookie('178fontcookie');
isDyslexic = eval(infoInCookie);
if (!infoInCookie) {
fontAlert1();
} else {
if (isDyslexic == true) {
var font = "Open Dyslexic";
} else {
var font = "Open Sans";
}
s... | JavaScript | 0.000009 | @@ -3168,20 +3168,16 @@
%0A%7D%0A%0A
-/*
$(
-
window
-
).lo
@@ -3200,10 +3200,8 @@
ck);
-*/
//
|
841ebb6a92aeb8bc61169ae99e6d6d2fe04818c4 | change js | assets/js/editStudent.js | assets/js/editStudent.js | function saveStudent(studentId) {
var modal = $('#myModal-' + studentId);
modal.find('.errors').html('').removeClass('eroare-edit');
$.post( "/students/update",
$("#form-update-student-" + studentId).serialize()
)
.done(function( data ) {
response = JSON.parse(data);
if (response.status == 'succes... | JavaScript | 0.000003 | @@ -334,87 +334,20 @@
dal.
-on('hidden.bs.modal', function () %7B%0A%09%09%09 $(this).data('bs.modal', null);%0A%09%09%09%7D
+modal(%22hide%22
);%0A%09
|
b4f9a625f7184fa07397580c8bde3c305fb7dbee | Update jquery-main.js | assets/js/jquery-main.js | assets/js/jquery-main.js | $("document").ready(function() {
//Add interaction to navbar when mouse hover it's elements.
$(".nav").on({
mouseover: function () {
$("li:hover").addClass("active");
},
mouseout: function () {
$("li").removeClass("active");
}
});
//Smooth scroll
$(".navbar-collapse ul li a[href^=... | JavaScript | 0.000001 | @@ -734,33 +734,25 @@
rool to
-Back to Top butto
+arrwo dow
n%0A $(%22#
|
ec45da80b0134a8605a7c6404c4a48f792b9df77 | clear session state on session error action | web/static/js/reducers/app_reducer.js | web/static/js/reducers/app_reducer.js | import Constants from "../constants";
const initialState = {
request: {
isFetching: false,
lastUpdated: Date.now()
},
session: {
user: {},
jwt: ""
}
};
function appReducer (state = initialState, action) {
switch (action.type) {
case Constants.ACTIONS.NEW_SESSION_REQUEST:
return Obj... | JavaScript | 0 | @@ -905,23 +905,16 @@
msg:
-action.
msg,%0A
@@ -936,32 +936,100 @@
ted: Date.now()%0A
+ %7D,%0A session: %7B%0A user: %7B%7D,%0A jwt: %22%22%0A
%7D%0A
|
01488dc175727d5f83434a8919800a0735634096 | Update main.js | resources/app/main.js | resources/app/main.js | var app = require('app');
var BrowserWindow = require('browser-window');
var Menu = require('menu');
var MenuItem = require('menu-item');
var Tray = require('tray');
var ipc = require('ipc')
var globalShortcut = require('global-shortcut');
var shell = require('shell');
var path = require("path");
var fs = require("fs")... | JavaScript | 0.000001 | @@ -4496,32 +4496,34 @@
tion()%7B%0A
+//
showButton.enabl
@@ -4730,16 +4730,18 @@
+//
showButt
|
1eeb59e3837155f6eb2e1e07829616a00f292f18 | Update callback to work with azk and localhost | sample/express/routes/index.js | sample/express/routes/index.js | var Evernote = require('evernote').Evernote;
require('dotenv').load();
// Remember to set your APP_URL variable inside .env
var callbackUrl = process.env.APP_URL + '/oauth_callback';
// home page
exports.index = function(req, res) {
if (req.session.oauthAccessToken) {
var token = req.session.oauthAccessToken;
... | JavaScript | 0 | @@ -122,16 +122,81 @@
env%0Avar
+callbackUrl;%0Aif(process.env.APP_URL.indexOf(%22azk.io%22) != -1) %7B%0A
callback
@@ -222,16 +222,22 @@
PP_URL +
+ ':' +
'/oauth
@@ -247,16 +247,109 @@
llback';
+%0A%7D else %7B%0A callbackUrl = process.env.APP_URL + ':' + process.env.PORT + '/oauth_callback';%0A%7D
%0A%0A//... |
e7135e82b824c06a163bfccd1fa755920cecc5f5 | fix the roles | routes/users/users.js | routes/users/users.js | var express = require('express'),
saltHash = require('../../modules/saltHash.js'),
getSpecificData = require('../../modules/getSpecificData.js'),
insertData = require('../../modules/insertData.js'),
renderTemplate = require('../../modules/renderTemplate.js'),
paswordStrength = require('../../modules... | JavaScript | 0.999999 | @@ -1060,16 +1060,22 @@
lt, hash
+, role
FROM us
|
7ee4d0d57a3ac38a81776ffd5210c916e6e9a8f2 | Fix example test | example/test/test.js | example/test/test.js | var helper = require('./support/helper');
var external = require('../lib/external');
var deep = require('../lib/deep');
var npm = require('methods');
describe('this example', function() {
it('should import a helper module', function(){
expect(helper).toEqual('helper.js');
});
it('should import an external ... | JavaScript | 0.000096 | @@ -222,32 +222,33 @@
ule', function()
+
%7B %0A expect(he
@@ -325,32 +325,33 @@
ule', function()
+
%7B %0A expect(ex
@@ -455,32 +455,33 @@
ule', function()
+
%7B %0A expect(de
@@ -568,16 +568,17 @@
nction()
+
%7B %0A e
@@ -590,35 +590,30 @@
(npm
-%5B'propfind'%5D).not.toBe(null
+).toContain('p... |
5c48da97248b85be7592c7b97fe5e12a291c3d12 | fix flow | shared/chat/conversation/input/index.native.js | shared/chat/conversation/input/index.native.js | // @flow
/* eslint-env browser */
import ImagePicker from 'react-native-image-picker'
import React, {Component} from 'react'
import {Box, Icon, Input, Text} from '../../../common-adapters'
import {globalMargins, globalStyles, globalColors} from '../../../styles'
import {isIOS} from '../../../constants/platform'
import... | JavaScript | 0.000001 | @@ -34,16 +34,21 @@
%0Aimport
+%7Bshow
ImagePic
@@ -50,16 +50,17 @@
gePicker
+%7D
from 'r
@@ -1346,20 +1346,8 @@
-ImagePicker.
show
|
9a09535ccbcc26ec1f2fdb0446823545ff1e00de | Add cname to site config (#374) | website/siteConfig.js | website/siteConfig.js | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
const siteConfig = {
title: 'Redex'... | JavaScript | 0.000002 | @@ -431,16 +431,40 @@
rl: '/',
+%0A cname: 'fbredex.com',
%0A%0A // U
|
fccde38b3be75eedbc2c5e7744baf4b1cf2db51d | Fix spelling | react-github-battle/app/components/Results.js | react-github-battle/app/components/Results.js | import React, { PropTypes } from 'react'
import { space } from '../styles'
import { Link } from 'react-router'
import UserDetails from './UserDetails'
import UserDetailsWrapper from './UserDetailsWrapper'
import MainContainer from './MainContainer'
import Loading from './Loading'
function StartOver (){
return (
... | JavaScript | 0.999999 | @@ -1249,17 +1249,16 @@
cores%5Blo
-o
singInde
@@ -1281,17 +1281,16 @@
sInfo%5Blo
-o
singInde
|
b3e9d71375e615a0c3adc6833c36d955fe38d471 | Remove custom flatmap implementation | core/data/generateDictionaryEntries.js | core/data/generateDictionaryEntries.js | // @flow
import pluralize from 'pluralize';
import removeAccents from 'remove-accents';
import type { Card } from '../types';
/*
* Generate all entries to build a dictionary from
* a card list and aliases.
*/
function generateDictionaryEntries(
// The complete list of cards
cardList: Card[],
// All ali... | JavaScript | 0 | @@ -80,16 +80,47 @@
ccents';
+%0Aimport flatmap from 'flatmap';
%0A%0Aimport
@@ -1067,17 +1067,17 @@
urn flat
-M
+m
ap(varia
@@ -2442,105 +2442,8 @@
%0A%7D%0A%0A
-function flatMap(arr: *, fn: any) %7B%0A return arr.reduce((acc, x) =%3E acc.concat(fn(x)), %5B%5D);%0A%7D%0A%0A
expo
|
63af96b45e02e9aa64f8c2055075e9cfb087f6ac | Fix - Added missing semicolon | modules/tooltip/backbone.tooltip.js | modules/tooltip/backbone.tooltip.js | /* global Backbone */
/* global $ */
/* global _ */
(function() {
"use strict";
// private:
var tooltipTemplate =
'<div class="bb-tooltip-arrow <%= "bb-arrow-" + placement %>"></div>' +
'<div class="bb-tooltip-container"></div>';
var getOffset = function(options) {
var width = options.width;
... | JavaScript | 0 | @@ -1432,16 +1432,17 @@
= false
+;
%0A%0A
|
5877ce79417f6792fbcfe0a04433b610c8c6f0e6 | Rework buildEntries helper | build/helpers.js | build/helpers.js | const paths = require('./paths');
const glob = require('glob');
/**
* Determine base path of provided file path
*
* @param {string} path
* @returns {string}
*/
function getBasePath(path) {
return path.split('/')[0] === '.' ? paths.project : paths.scripts;
}
/**
* Find and return file path
*
* @param {string|... | JavaScript | 0 | @@ -758,24 +758,69 @@
(entries) %7B%0A
+%09const firstEntry = Object.keys(entries)%5B0%5D;%0A
%09let result
@@ -869,25 +869,29 @@
=%3E %7B%0A%09%09
-let paths
+result%5Bentry%5D
= getPa
@@ -915,138 +915,214 @@
%5D);%0A
-%0A%09%09// If single entry point, extract from array%0A%09%09if (paths.length === 1) %7B%0A... |
f9b512100a4acfbf8e0001ab065441f62c4499d1 | Normalize note | packages/size-limit/create-reporter.js | packages/size-limit/create-reporter.js | let {
bgGreen,
yellow,
bgRed,
black,
green,
bold,
gray,
red
} = require('picocolors')
let { join } = require('path')
let bytes = require('bytes-iec')
function createJsonReporter(process) {
function print(data) {
process.stdout.write(JSON.stringify(data, null, 2) + '\n')
}
return {
error(... | JavaScript | 0.000012 | @@ -3024,16 +3024,18 @@
d brotli
+ed
'%0A
|
9eb80ab969270e58b99a443184254d45916424f0 | Fix bug with sentry `dryRun` flag in prod build | build/plugins.js | build/plugins.js | import { exec } from 'child_process'
import { EnvironmentPlugin } from 'webpack'
import ForkTsPlugin from 'fork-ts-checker-webpack-plugin'
import CopyPlugin from 'copy-webpack-plugin'
import HtmlPlugin from 'html-webpack-plugin'
import HtmlIncAssetsPlugin from 'html-webpack-include-assets-plugin'
import HardSourcePlugi... | JavaScript | 0 | @@ -1450,17 +1450,16 @@
function
-
(%7B%0A w
@@ -2766,16 +2766,17 @@
dryRun:
+!
shouldPa
|
8e6b5f0a3df8fe67996914a7cca32fb14a044108 | upgrade build vendors scripts | build/vendors.js | build/vendors.js | #!/usr/bin/env node
'use strict'
const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const sh = require('shelljs')
const basename = path.basename
const dirname = path.dirname
const resolve = path.resolve
const normalize = path.normalize
const join... | JavaScript | 0 | @@ -2572,16 +2572,46 @@
)%5C)/ig)%0A
+ if (assets) %7B%0A
@@ -2640,24 +2640,26 @@
asset) =%3E %7B%0A
+
@@ -2727,24 +2727,26 @@
+
let subVendo
@@ -2760,32 +2760,34 @@
+
+
if (assetPath !=
@@ -2819,16 +2819,18 @@
+
// conso
@@ -... |
3ea8c1d0d9efd62dde3050c29bc06334c3629a2b | Update landline.stateline.js | public/javascripts/landline.stateline.js | public/javascripts/landline.stateline.js | (function() {
// Stateline puts default collections of Landline maps together for you
// Requires jQuery and Raphael
var MapCanvas = Landline.Stateline = function(container, locality) {
this.paper = {};
this.events = {};
this.attrs = {};
this.lookup = {};
this.locality = localit... | JavaScript | 0.000002 | @@ -1202,16 +1202,38 @@
%5Bfips%5D;%0A
+ if (path) %7B%0A
@@ -1276,32 +1276,34 @@
tr) %7B%0A
+
path.attr(attr%5B0
@@ -1319,28 +1319,40 @@
%5D);%0A
+
%7D);%0A
+ %7D%0A
%7D%0A
|
59750b605e8b8624ab757ae1c2dda8489415dc0a | Remove debugger. | static/app/app/controller.js | static/app/app/controller.js | //Dependencies
var $ = require('jquery');
var Backbone = require('backbone');
var Marionette = require('backbone.marionette');
var Radio = require('backbone.radio');
var _ = require('underscore');
var moment = require('moment');
//App
var channel = Radio.channel('global');
var Move = require('app/entities').Move;
var ... | JavaScript | 0.000001 | @@ -162,71 +162,8 @@
o');
-%0Avar _ = require('underscore');%0Avar moment = require('moment');
%0A%0A//
@@ -2259,24 +2259,8 @@
%7D);%0A
- debugger
%0A
|
c999425adeb3c656d4429f79133e4db14321e780 | Change language for lua nginx module | static/javascripts/script.js | static/javascripts/script.js | (function ($, undefined) {
var featured = ['lua-nginx-module', 'stapxx', 'SortaSQL'],
exclude = ['circus', 'fpm', 'phantomjs', 'zendesk', 'raven-php', 'go-raft', 'jas', 'twemcache', 'CloudFlare-UI', 'cloudflarejs','cloudflare.github.io'],
customRepos = [{
name : 'stapxx',
html_url : 'http://github.com/agentz... | JavaScript | 0.000001 | @@ -740,36 +740,33 @@
%0A%09%09%09language : '
-Perl
+C
',%0A%09%09%09descriptio
|
7a4dadb2de8061ac5950dec1ceb4e5c67cc4edac | Fix conflicting addon status enabled (#1107) | static/js/installed-addon.js | static/js/installed-addon.js | /**
* InstalledAddon.
*
* Represents an existing, installed add-on.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
const API = require('./ap... | JavaScript | 0 | @@ -6072,29 +6072,30 @@
e.target;%0A
-this.
+const
enabled = !t
@@ -6140,21 +6140,16 @@
s.name,
-this.
enabled)
@@ -6163,24 +6163,152 @@
hen(() =%3E %7B%0A
+ this.enabled = enabled;%0A const addon = this.installedAddonsMap.get(this.name);%0A addon.moziot.enabled = enabled;%0A
if (th
|
af46b356bc9ffa45deed6fe709b7e8fab198653d | Update playground.js | static/scripts/playground.js | static/scripts/playground.js | (function() {
String.prototype.escape = function() {
var tagsToReplace = {
'&': '&',
'<': '<',
'>': '>'
};
return this.replace(/[&<>]/g, function(tag) {
return tagsToReplace[tag] || tag;
});
};
var NatashaEndpoint = ... | JavaScript | 0.000001 | @@ -1200,21 +1200,22 @@
eturn b.
-match
+tokens
.length
@@ -1218,21 +1218,22 @@
gth - a.
-match
+tokens
.length;
@@ -1415,21 +1415,22 @@
ches%5Bi%5D.
-match
+tokens
;%0A
@@ -1469,17 +1469,17 @@
kens%5B0%5D%5B
-2
+1
%5D%5B0%5D, to
@@ -1502,17 +1502,17 @@
th - 1%5D%5B
-2
+1
%5D%5B1%5D%5D;%0A
|
9d99c3d7a6330d999bc953a14a5f4e88e686f12c | Fix module loading in timetable | app/scripts/timetable_builder/collections/TimetableModuleCollection.js | app/scripts/timetable_builder/collections/TimetableModuleCollection.js | define([
'underscore',
'backbone',
'common/collections/ModuleCollection',
'../models/LessonModel',
'../collections/LessonCollection'
],
function(_, Backbone, ModuleCollection, LessonModel, LessonCollection) {
'use strict';
return ModuleCollection.extend({
initialize: function (models, options... | JavaScript | 0 | @@ -582,18 +582,25 @@
module.
-id
+get('id')
;%0A%0A
|
e462c1bc333d8a83d3322be07b19716338c1578e | Allow multiple connection with strapi-bookshelf connector | packages/strapi-bookshelf/lib/index.js | packages/strapi-bookshelf/lib/index.js | 'use strict';
/**
* Module dependencies
*/
// Public node modules.
const _ = require('lodash');
const bookshelf = require('bookshelf');
const pluralize = require('pluralize');
// Local helpers.
const utils = require('./utils/');
// Strapi helpers for models.
const utilsModels = require('strapi-utils').models;
/*... | JavaScript | 0 | @@ -1266,26 +1266,36 @@
-_.forEach(
+const connections =
_.pickBy
@@ -1354,16 +1354,135 @@
shelf'%7D)
+;%0A%0A const done = _.after(_.size(connections), () =%3E %7B%0A cb();%0A %7D);%0A%0A _.forEach(connections
, (conne
@@ -1939,34 +1939,36 @@
%3E %7B%0A
-cb
+don... |
2533a7ababce0f2b0e6a7a8a771088c1654d592c | Fix the suspicious knob | www/assets/admin.js | www/assets/admin.js | $(document).ready(function() {
// Wire up is_suspicious toggle.
// =============================
$('.is-suspicious-label input').change(function() {
var username = $(this).attr('data-username');
jQuery.ajax({
url: '/' + username + '/toggle-is-suspicious.json',
type: ... | JavaScript | 0 | @@ -250,16 +250,17 @@
url: '/
+~
' + user
|
63e606aa152ce3baaea7f5638ee331c27f971039 | Fix javascript errors resulting from SAK-29356 | assignment/assignment-tool/tool/src/webapp/js/studentViewSubmission.js | assignment/assignment-tool/tool/src/webapp/js/studentViewSubmission.js | var ASN_SVS = {};
/* For the cancel button - if the user made progress, we need them to confirm that they want to discard their progress */
ASN_SVS.confirmDiscardOrSubmit = function(attachmentsModified)
{
var inlineProgress = false;
var ckEditor = CKEDITOR.instances["$name_submission_text"];
if (ckEditor)
{
inli... | JavaScript | 0 | @@ -730,16 +730,25 @@
lse%0A%09%7B%0A%09
+%09ASN_SVS.
cancelPr
|
4947ec2f63b2edc29fdee3cd6c0e45f3122c939d | Change API to prod | www/js/constants.js | www/js/constants.js | (function() {
// var API_BASE_URL = "http://www.probebe.org.br/api";
var API_BASE_URL = "http://192.168.0.103:3000/api";
angular.module("proBebe.constants", []).constant("Constants", Object.freeze({
API_BASE_URL: API_BASE_URL,
CHILDREN_URL: API_BASE_URL + "/children",
CREDENTIALS_URL: API_BASE_URL + "... | JavaScript | 0 | @@ -12,11 +12,8 @@
%7B%0A
- //
var
@@ -62,16 +62,19 @@
/api%22;%0A
+ //
var API
|
0fd7673abbc4dc525a8d70fb9ebb2b2ef966f409 | Read the file as text on the directive | www/js/directive.js | www/js/directive.js | //global directives go here
angular.module('omniwallet').directive('d3PieChart', function() {
return {
template: '<svg></svg>',
controller: function($scope, $element, $attrs) {
$scope.chart = {
width: 300,
height: 300
}
$scope.radius = Math.min($scope.chart.... | JavaScript | 0.000011 | @@ -5731,15 +5731,12 @@
adAs
-DataURL
+Text
(cha
|
f14ee8b8dcc2e1e13a4a8dcb7f7bbb30b8757133 | Fix bad default filename | www/Hazelnut.js | www/Hazelnut.js | var process = function (filename, url, successCallback, errorCallback) {
if(!filename) {
filename = url.split('.').pop();
}
return cordova.exec(successCallback, errorCallback, 'Hazelnut', 'Open', [{
url: url,
filename: filename
}]);
};
window.hazelnut = {
open: process
};
if(module && module.... | JavaScript | 0.000332 | @@ -29,17 +29,17 @@
name, ur
-l
+i
, succes
@@ -105,17 +105,17 @@
= ur
-l
+i
.split('
.').
@@ -110,17 +110,17 @@
.split('
-.
+/
').pop()
@@ -215,14 +215,14 @@
ur
-l
+i
: ur
-l
+i
,%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.