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 |
|---|---|---|---|---|---|---|---|
876547b1ea81a7cfc4afdb032acfa1d6ef4a78cc | Fix saving comments | js/id/ui/commit.js | js/id/ui/commit.js | iD.ui.Commit = function(context) {
var event = d3.dispatch('cancel', 'save', 'fix'),
presets = context.presets();
function zipSame(d) {
var c = {}, n = -1;
for (var i = 0; i < d.length; i++) {
var desc = {
name: d[i].tags.name || presets.match(d[i], context.g... | JavaScript | 0 | @@ -3048,16 +3048,178 @@
button')
+%0A .on('click.save', function() %7B%0A event.save(%7B%0A comment: commentField.node().value%0A %7D);%0A %7D)
;%0A%0A
|
970de9ffa183ad8c9dbd306aadd5c651c738bb0d | Please keep indentation simple: 4 spaces always | js/id/ui/commit.js | js/id/ui/commit.js | iD.ui.commit = function(map) {
var event = d3.dispatch('cancel', 'save', 'fix');
function zipSame(d) {
var c = [], n = -1;
for (var i = 0; i < d.length; i++) {
var desc = {
name: d[i].friendlyName(),
type: d[i].type,
count: 1,
... | JavaScript | 0.999652 | @@ -2146,32 +2146,24 @@
-
.attr('class
@@ -2191,32 +2191,24 @@
-
.append('div
@@ -2222,32 +2222,24 @@
-
-
.attr('class
@@ -2310,36 +2310,32 @@
rap%0A
-
.append('button'
@@ -2340,36 +2340,32 @@
n')%0A
-
-
.attr('clas... |
18521835638591ea234a48fb9bf2dd03f89b5ee7 | Update textbox text to hash | js/imgur-viewer.js | js/imgur-viewer.js | var imgurClient = {
$: null,
base_url: null,
client_id: null,
init: function($, base_url, client_id){
this.$ = $;
this.base_url = base_url;
this.client_id = client_id;
},
accountImages: function(account, page, done, fail, always){
this._ajaxRequest("account/" + account + "/images/" + page.... | JavaScript | 0.000001 | @@ -2032,24 +2032,57 @@
(/%5E#/, %22%22);%0A
+ this.$accountText.val(hash);%0A
if (! ha
|
3e2e6e6d8adeafe30caa97e8baa20df25874d2ee | choice two 4 digit primes | js/presentation.js | js/presentation.js | /*global Reveal, RSA, Sieve, document*/
(function (Reveal, RSA, Sieve) {
'use strict';
var p = new RSA.Number('3');
var q = new RSA.Number('5');
var N = new RSA.Product(p, q);
var model = new Sieve.Model(20);
Reveal.addEventListener('pq', function () {
var pInput = document.getElement... | JavaScript | 0.999999 | @@ -903,10 +903,14 @@
ber(
-37
+'3491'
);%0A%09
@@ -936,10 +936,14 @@
ber(
-53
+'6397'
);%0A%09
|
bb2230298742f47207fe8bb2bdfa907da6575409 | add moleculeViewer function and actually use width/height parameters. | js/schemeViewer.js | js/schemeViewer.js | function schemeViewer(rxn, height, width) {
var viewerName = 'viewer' + Math.round(Math.random() * 10000);
this[viewerName] = new ChemDoodle.ViewerCanvas(viewerName, 600, 200);
debugger;
this[viewerName].specs.atoms_displayTerminalCarbonLabels_2D = true;
// sets atom labels to be colored by JMol col... | JavaScript | 0 | @@ -33,24 +33,114 @@
t, width) %7B%0A
+ if(!height) %7B%0A height = 200;%0A %7D%0A if(!width) %7B%0A width = 600;%0A %7D%0A
var view
@@ -261,31 +261,22 @@
me,
-600, 200);%0A debugger
+width, height)
;%0A
@@ -1263,7 +1263,950 @@
%7D%0A
-%0A
%7D%0A
+%0Afunction moleculeViewer(m... |
6833d8012708df73a874ba348bfc5138f54cc2e5 | fix for https | js/viewport.min.js | js/viewport.min.js | /*! Viewport.info 12-04-2015 */
var ViewPortInfo={init:function(){$(window).on("beforeunload",function(){$(window).scrollTop(0)}),$("body").on("resize,orientationchange",function(){ViewPortInfo.updateViewportProperties(),ViewPortInfo.generateTextBox()}),$("#copyButton").on("click",function(a){ViewPortInfo.copyToClipboa... | JavaScript | 0 | @@ -594,21 +594,16 @@
etJSON(%22
-http:
//api.ip
@@ -2745,8 +2745,9 @@
.init();
+%0A
|
03c6cdb5ac49606a2ead460257081e75848b6210 | Update UDPefef | nga.js | nga.js | var dgram = require('dgram');
var structer = {
'v1' : {
"30" : {
'des' : 'Tìm xem vị trí hiện tại của xe trong chỉ định',
'type' : 'server',
'res' : '81',
'pro': 'udp/tcp'
},
"3D" : {
'des' : 'Tìm kiếm phiên bản tin của chiếc xe ... | JavaScript | 0 | @@ -2282,24 +2282,25 @@
ata',data);%0A
+%0A
var menh
@@ -2362,24 +2362,53 @@
menhlenh);%0A%0A
+ if(menhlenh === 80)%7B%0A
var obj
@@ -2439,32 +2439,36 @@
func(data);%0A
+
+
console.log(%22Du
@@ -2486,16 +2486,23 @@
, obj);%0A
+ %7D%0A%0A
%0A con
|
1cfa902e313e848732976ac6e538f3f72c135d90 | refactor scrollspy refresh method | js/scrollspy.js | js/scrollspy.js | /* ========================================================================
* Bootstrap: scrollspy.js v3.1.1
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/b... | JavaScript | 0 | @@ -1201,64 +1201,180 @@
d =
-this.$scrollElement%5B0%5D == window ? 'offset' : 'position'
+'offset'%0A var offsetBase = 0%0A%0A if (!$.isWindow(this.$scrollElement%5B0%5D)) %7B%0A offsetMethod = 'position'%0A offsetBase = this.$scrollElement.scrollTop()%0A %7D
%0A%0A
@@ -1799,84 +1799,18 @@... |
30907490166ebc07f5eefbb6da7ef2dfee36aba4 | Update scrollspy.js | js/scrollspy.js | js/scrollspy.js | $(document).ready(function(){
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a[href='#myPage']").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
... | JavaScript | 0.000001 | @@ -1263,17 +1263,17 @@
responsi
-c
+v
e%22%3E');%0Av
|
7081838f9ea2b336919ea4bdecce3e876b61b6fa | Update updatetab.js | js/updatetab.js | js/updatetab.js | function updatetab(url, pane) {
// http://docs.mathjax.org/en/latest/tex.html
// From http://stackoverflow.com/a/651735
var ext = url.split('.').pop().toLowerCase();
var ismd = true;
if ($.inArray(ext, ['md', 'markdown', 'mdown', 'mkdn', 'mkd', 'mdtxt', 'mdtext']) == -1) {
ismd = false;
}
... | JavaScript | 0.000001 | @@ -549,16 +549,45 @@
1454936%0A
+ console.log(data);%0A
|
2b1bb3fa45dda2c71287da0cb10b6eaf96e24d50 | Update updatetab.js | js/updatetab.js | js/updatetab.js | var Latexdown={
delay: 150, // delay after keystroke before updating
previewid: null,
eventtapid: null,
preview: null, // filled in by Init below
timeout: null, // store setTimout id
mjRunning: false, // true when MathJax is processing
oldText: null, // used to check if an update is ... | JavaScript | 0.000001 | @@ -1463,14 +1463,15 @@
rl)
-%7C%7C tru
+&& fals
e)%7B%0A
|
bf8734a775396d1d9d5542efcb55de27aedb4d0f | Update updatetab.js | js/updatetab.js | js/updatetab.js | var Latexdown={
delay: 150, // delay after keystroke before updating
previewid: null,
eventtapid: null,
preview: null, // filled in by Init below
timeout: null, // store setTimout id
mjRunning: false, // true when MathJax is processing
oldText: null, // used to check if an update is ... | JavaScript | 0.000001 | @@ -546,19 +546,8 @@
log(
-%22initial:%22+
init
|
35965e55b589f3bea84f5fc397d75d5794ee842d | Add on error method to exec node... (should have been there before :-) | nodes/core/core/75-exec.js | nodes/core/core/75-exec.js | /**
* Copyright 2013 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | JavaScript | 0 | @@ -2532,32 +2532,162 @@
%7D);%0A
+ ex.on('error', function (code) %7B%0A node.warn(code);%0A %7D);%0A
|
21dda652e66136db024ebf86e1c80ace13536552 | fix line comment bug. | s4l.js | s4l.js | /*
* Sort the CSS properties for LESS
* 2013/12/19
*/
var properties = require("./properties.js");
module.exports = (function(){
var s4l = function(str){
return restore(blocks(str));
};
var styles = s4l.styles = [];
var stack = s4l.stack = function(str, semicolon){
styles.push(str);
return "<" ... | JavaScript | 0 | @@ -47,10 +47,10 @@
/12/
+2
1
-9
%0A */
@@ -708,16 +708,20 @@
n stack(
+s4l.
sort(b),
@@ -1145,19 +1145,8 @@
;%0A%0A
- var sort =
s4l
@@ -1408,16 +1408,394 @@
%0A %7D;%0A
+%0A /* %22prop: value; // hoge%22 */%0A var rlc = /%5C/%5C/(.*)%5Cn.+:/;%0A%0A // Line Comment Only%0A var rlcOnly = /%5Cn%... |
14c82b3af12a8ab3851182492df39e65df7b4bc1 | fix sao error | sao.js | sao.js | module.exports = {
template: 'handlebars',
templateOptions: {
helpers: {
if_eq: function(a, b, opts) {
return a === b
? opts.fn(this)
: opts.inverse(this);
}
}
},
prompts: {
name: {
me... | JavaScript | 0.000001 | @@ -2913,16 +2913,25 @@
**/*': '
+redux &&
devtools
|
5eba0823aee7f1a96c278f49a553b61fe4ecbe2d | Update seed | migrations/seed.js | migrations/seed.js | var db = require('../helpers/models');
var settings = require('./data/settings.json');
var persist = function(list, model) {
for (var r in list){
if(list.hasOwnProperty(r)){
model.Insert(list[r]);
}
}
};
db.roles.DropDB(function(){
persist(settings, db.settings);
});
| JavaScript | 0.000001 | @@ -81,19 +81,24 @@
son');%0A%0A
-var
+function
persist
@@ -102,18 +102,8 @@
ist
-= function
(lis
@@ -216,34 +216,35 @@
%7D;%0A%0A
-db.roles.DropDB(function
+function updateSettings
()
+
%7B%0A
@@ -276,11 +276,55 @@
ings);%0A%7D
+%0A%0Adb.settings.DropCollection(updateSettings
);%0A
+%0A
|
b9ff523977fb123315edb4668bb2c99921a4fb26 | improve widgetsPath resolution | src/scripts/widget-content.js | src/scripts/widget-content.js | /*
* The MIT License
*
* Copyright (c) 2015, Sebastian Sdorra
*
* 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, ... | JavaScript | 0.000001 | @@ -1255,16 +1255,20 @@
teCache,
+%0A
$compil
@@ -1346,66 +1346,321 @@
-return url.replace('%7BwidgetsPath%7D', dashboard.widgetsPath)
+var parsedUrl = url;%0A if ( url.indexOf('%7BwidgetsPath%7D') %3E= 0 )%7B%0A parsedUrl = url.replace('%7BwidgetsPath%7D', dashboard.widgetsPath)%0A ... |
4f5dda7cb0581ed41e19d69a7182df55778683d2 | remove arbitrary 20 sermon limit | src/services/SermonService.js | src/services/SermonService.js |
class SermonService {
static findById(sermons, id) {
return sermons.find((sermon) => (
sermon.key === id
))
}
static getUnpublishedSermons(sermons, selectedCongregationBucketId) {
if (selectedCongregationBucketId === 'all') {
selectedCongregationBucketId = null;
}
var ... | JavaScript | 0.029353 | @@ -720,37 +720,24 @@
te)%0A ))
-.slice(0, 20)
;%0A %7D%0A%0A
@@ -2277,21 +2277,8 @@
))
-.slice(0, 20)
;%0A
|
0f11146e80080e300bd018fd18c47eec66dfbaf0 | Add languages | packages/request-maxdome/src/Asset.js | packages/request-maxdome/src/Asset.js | class Asset {
constructor(
data,
{ hostname: hostname = 'maxdome.de', protocol: protocol = 'http' } = {}
) {
this.id = data.id;
const types = {
assetvideofilm: 'movie',
assetvideofilmtvseries: 'episode',
multiassettvseriesseason: 'season',
multiassetbundletvseries: 'series',... | JavaScript | 0.999964 | @@ -1634,16 +1634,56 @@
value);%0A
+ this.languages = data.languageList;%0A
this
|
63da0825361e125722fb2f62dd5af3a23d437712 | Rename pullData->labelData in models/db_label.js | models/db_label.js | models/db_label.js | var _ = require('underscore'),
config = require('../config'),
db = require('../lib/db'),
Promise = require('promise');
// Builds an object representation of a row in the DB `pull_labels` table
// from the data returned by GitHub's API.
function DBLabel(label) {
this.data = {
number: label.data.nu... | JavaScript | 0 | @@ -431,35 +431,36 @@
tion() %7B%0A var
-pul
+labe
lData = this.dat
@@ -590,19 +590,20 @@
update,
-pul
+labe
lData, f
@@ -753,19 +753,20 @@
%0A var
-pul
+labe
lData =
@@ -956,19 +956,20 @@
pdate, %5B
-pul
+labe
lData.nu
@@ -974,19 +974,20 @@
number,
-pul
+labe
lData.ti
@@ -991,19 +991,20 @@
.title, ... |
dc6836b028d87e91427533e668ae7b8e9e2f0daa | Update table-report.js (#172) | src/bcf/report/js/table-report.js | src/bcf/report/js/table-report.js | // customize column_values to display the attributes of your choice to the sidebar
let column_values = ['id', 'position', 'reference', 'alternatives', 'type'];
// customize which parts of the annotation field to display at the sidebar
let ann_values = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25... | JavaScript | 0 | @@ -5312,77 +5312,8 @@
) %7B%0A
- let num = val.replace( /%5E%5CD+/g, '');%0A
@@ -5412,27 +5412,27 @@
earch?q=%22 +
-num
+val
+ %22'%3E%22 + va
|
23b8e178ffc15ca75db4860805d5144464d30476 | Remove a word from 0.9.1 upgrader | tools/upgraders.js | tools/upgraders.js | var _ = require('underscore');
var fs = require('fs');
var path = require('path');
var project = require('./project.js');
// This file implements "upgraders" --- functions which upgrade a Meteor app to
// a new version. Each upgrader has a name (registered in upgradersByName).
//
// You can test upgraders by running "... | JavaScript | 0.999999 | @@ -2549,13 +2549,8 @@
des
-many
chan
|
ef03d25859ecc117ce653e153a40ad4a3de934ec | Remove unused reference | src/botPage/view/Dialogs/Chart.js | src/botPage/view/Dialogs/Chart.js | import {
SmartChart,
setSmartChartsPublicPath,
ChartTypes,
StudyLegend,
Views,
Timeperiod,
DrawTools,
Share,
CrosshairToggle,
ChartSize,
} from '@binary-com/smartcharts';
import React, { PureComponent } from 'react';
import { translate } from '../../../common/i18n';
import Dialog... | JavaScript | 0.000001 | @@ -527,74 +527,8 @@
ng';
-%0Aimport %7B fieldGeneratorMapping %7D from '../blockly/blocks/shared';
%0A%0Ase
|
38c631e791da795b11584c69a5e4eebb86e50bce | fix comment deletion detection when using html format (and ckeditor) | src/cm/media/js/site/text_edit.js | src/cm/media/js/site/text_edit.js | function check_save(){
var newVersion = $('#id_new_version').attr('checked') ;
var commentsKept = $('#id_keep_comments').attr('checked') ;
var new_content = $('#id_content').val() ;
var new_format = $('#id_format').val() ;
var mess = gettext( 'Should these comments be detached (i.e. kept with no sc... | JavaScript | 0 | @@ -180,32 +180,122 @@
ntent').val() ;%0A
+ %0A var o=CKEDITOR.instances%5B'id_content'%5D;%0A if (o) new_content=o.getData();%0A %0A
var new_form
|
4a044e42ac7fea7f8efea4da7e90b4b4183b0fb7 | make restyle connector visible (true|false) work | src/traces/waterfall/style.js | src/traces/waterfall/style.js | /**
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var lineGroupStyle = require('../../components/drawing').lineGroupStyle;
var barStyle = ... | JavaScript | 0.000019 | @@ -630,19 +630,24 @@
onnector
+Line
=
+(
d%5B0%5D.tra
@@ -658,18 +658,31 @@
onnector
+.line %7C%7C %7B%7D)
;%0A
+%0A
@@ -736,26 +736,25 @@
connector
-.l
+L
ine.width,%0A
@@ -769,26 +769,25 @@
connector
-.l
+L
ine.color,%0A
@@ -806,18 +806,17 @@
onnector
-.l
+L
ine.dash
|
138ff97d04d37e8a83b72c55567b4f1be4586032 | update platform to inherit all platforms | src/commands/Settings/Platform.js | src/commands/Settings/Platform.js | 'use strict';
const Command = require('../../models/Command.js');
const { getChannel, captures, platforms } = require('../../CommonFunctions');
class Platform extends Command {
constructor(bot) {
super(bot, 'settings.platform', 'platform', 'Change a channel\'s platform');
this.usages = [
{ description... | JavaScript | 0.000001 | @@ -439,22 +439,30 @@
%5Cs+(
-pc%7Cps4%7Cxb1%7Cswi
+$%7Bplatforms.join('%7C')%7D
))?(
|
37a9eb79d3c1a4ebc4b64cecbdec39e6067df4f7 | add private channel setting | src/commands/Settings/Settings.js | src/commands/Settings/Settings.js | 'use strict';
const Command = require('../../Command.js');
const SettingsEmbed = require('../../embeds/SettingsEmbed.js');
function createGroupedArray(arr, chunkSize) {
const groups = [];
for (let i = 0; i < arr.length; i += chunkSize) {
groups.push(arr.slice(i, i + chunkSize));
}
return groups;
}
class ... | JavaScript | 0 | @@ -1632,32 +1632,287 @@
nline: true %7D);%0A
+ return this.bot.settings.getChannelSetting(message.channel, 'createPrivateChannel');%0A %7D)%0A .then((privChan) =%3E %7B%0A settings.push(%7B name: 'Allow creation of private channels', value: privChan === '1' ? 'yes' : 'no', inline: true %7D);%0... |
f127906a92615ddc6e207905662b58aab068d87a | add keepAlive | src/util/PubChemConnection.js | src/util/PubChemConnection.js | 'use strict';
const delay = require('delay');
const MongoClient = require('mongodb').MongoClient;
const config = require('./config');
function PubChemConnection() {}
PubChemConnection.prototype.close = function close() {
if (this.connection) return this.connection.close();
return undefined;
};
PubChemConnectio... | JavaScript | 0.000002 | @@ -1532,16 +1532,39 @@
: true,%0A
+ keepAlive: true,%0A
co
|
786ff41eb0c7e26ea396e4cde7ec3d3f9155f63f | Add escape listener to main activity input | src/components/AddActivityForm.js | src/components/AddActivityForm.js | import React, { Component, PropTypes } from 'react';
import { getDescriptionAndTags } from '../helpers';
class AddActivityForm extends Component {
createActivity(e) {
e.preventDefault();
const { description, tags } = getDescriptionAndTags(this.description.value);
const activity = {
description,
... | JavaScript | 0.000001 | @@ -142,16 +142,325 @@
onent %7B%0A
+%0A componentDidMount() %7B%0A this.description.addEventListener('keydown', this.escapeListener.bind(this));%0A %7D%0A%0A componentWillUnmount() %7B%0A this.description.removeEventListener('keydown', this.escapeListener)%0A %7D%0A%0A escapeListener(e) %7B%0A if (e.key... |
1c2b59f5c2206ffb2e8aafac6ddcb63f8c2de86c | Update text | src/components/CoRiskScoreForm.js | src/components/CoRiskScoreForm.js | import React, {Component} from 'react';
import {validateAge, validateNihssPoints, validateCopeptinLevel} from '../core/coRiskScore';
const INITIAL = Number.MAX_SAFE_INTEGER;
const checkSubmittable = (state) => {
if (state.ageFormHint || state.nihssFormHint || state.copeptinFormHint || state.age === INITIAL || stat... | JavaScript | 0.000001 | @@ -2559,15 +2559,23 @@
isk
-s
+S
core
-i
+calculate
s th
|
8f379505895f14f9c2ffd0135f0d57616b046db7 | remove autosize plugin | src/components/Tinymce/plugins.js | src/components/Tinymce/plugins.js | // Any plugins you want to use has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/
const plugins = ['advlist anchor autolink autoresize autosave code codesample colorpicker colorpicker contextmenu directionality emotic... | JavaScript | 0 | @@ -224,19 +224,8 @@
ink
-autoresize
auto
|
10be646783800e7d0d8fcde1c0c9a7d2cba70d0e | fix for #591 | src/components/forms/TextField.js | src/components/forms/TextField.js | import Input from '../../mixins/input'
export default {
name: 'text-field',
mixins: [Input],
data () {
return {
hasFocused: false,
inputHeight: null
}
},
props: {
autofocus: Boolean,
autoGrow: Boolean,
counter: Boolean,
fullWidth: Boolean,
id: String,
name: Stri... | JavaScript | 0 | @@ -4829,25 +4829,22 @@
this.i
-nputValue
+sDirty
) %7C%7C%0A
|
ac04b878519bd9163727fca5827cf8d12b093a20 | fix invalid paths | karma-docs.conf.js | karma-docs.conf.js | var sharedConfig = require('./karma-shared.conf');
module.exports = function(config) {
sharedConfig(config);
config.set({
files: [
'build/docs/components/jquery.js',
'test/jquery_remove.js',
'build/angular.js',
'build/angular-cookies.js',
'build/angular-mocks.js',
'build/a... | JavaScript | 0.000001 | @@ -468,20 +468,8 @@
nts/
-lib/lunr.js/
lunr
@@ -507,12 +507,8 @@
nts/
-lib/
goog
@@ -527,21 +527,8 @@
tify
-/src/prettify
.js'
|
551a8a44b3bf86501a0fbed88c3d7130c51c9a4c | Use published date or created date for URL params | src/web_modules/urlHelpers.js | src/web_modules/urlHelpers.js | const Immutable = require('immutable');
const moment = require('moment');
const padStart = require('lodash/padStart');
const rpath = require('ramda/src/path');
const utils = require('../scripts/utils.js');
function assemblePath(_obj) {
if (!Array.isArray(_obj.path) || !Array.isArray(_obj.filename)) {
throw new ... | JavaScript | 0 | @@ -1,12 +1,52 @@
+const find = require('ramda/src/find');%0A
const Immuta
@@ -155,49 +155,8 @@
t');
-%0Aconst rpath = require('ramda/src/path');
%0A%0Aco
@@ -1768,62 +1768,202 @@
nst
-created = moment(rpath(%5B'created', 'utc'%5D, article) %7C%7C
+dateFields = %5B'published', 'created'%5D;%0A const dateField = f... |
6cd520166b6472680ad4ecf26cb86fd030b2cd87 | allow config file overrides | plugins/data.rfc5322_header_checks.js | plugins/data.rfc5322_header_checks.js | // Enforce RFC 5322 Section 3.6
var required_headers = ['Date', 'From'];
var singular_headers = ['Date', 'From', 'Sender', 'Reply-To', 'To', 'Cc',
'Bcc', 'Message-Id', 'In-Reply-To', 'References',
'Subject'];
exports.hook_data_post = function (next, connection) {
... | JavaScript | 0.000001 | @@ -1,8 +1,9 @@
+%0A
// Enfor
@@ -25,17 +25,16 @@
tion 3.6
-
%0Avar req
@@ -89,17 +89,16 @@
eaders =
-
%5B'Date'
@@ -252,16 +252,568 @@
bject'%5D;
+%0Avar date_future_days = 2;%0Avar date_past_days = 15;%0A%0Aexports.register = function() %7B%0A var config = this.config.get('data.headers.ini');%0A%0A ... |
1730984364bf5397f0c014042a0ada0f6a72c9ec | Move throttling management to resize utility | src/components/popover/Popover.js | src/components/popover/Popover.js | import React, { PureComponent } from 'react';
import { createPortal } from 'react-dom';
import PropTypes from 'prop-types';
import cx from 'classnames';
import throttle from 'lodash.throttle';
import InjectOverlay from '../overlay';
import Transition from 'react-transition-group/Transition';
import ReactResizeDetector ... | JavaScript | 0 | @@ -812,17 +812,16 @@
rRoot);%0A
-%0A
even
@@ -846,44 +846,8 @@
ow(%7B
- resize: this.setPlacementThrottled,
scr
@@ -953,44 +953,8 @@
ow(%7B
- resize: this.setPlacementThrottled,
scr
@@ -989,17 +989,16 @@
led %7D);%0A
-%0A
docu
@@ -3660,71 +3660,256 @@
ctor
- handleHeight handleWidth onResize=%7Bthis... |
7a08cdfcbacafa50a7db8c0e8939d9c16a8140ce | Use SCSS CI color in log | kaba/shelf/scss.js | kaba/shelf/scss.js | /**
* @typedef {{
* input: string,
* output: string,
* browsers: string[],
* ignoreLintFor: Array.<(string|RegExp)>,
* outputFileName: function(string, string):string,
* debug: boolean,
* watch: boolean,
* lint: boolean,
* verbose: boolean,
* }} ScssTaskConfig
*/... | JavaScript | 0 | @@ -527,12 +527,15 @@
%22, %22
-blue
+magenta
%22);%0A
|
2ccef43614b8d77b42c1118db00eba4f98febd45 | update view primitive | src/components/primitives/View.js | src/components/primitives/View.js | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import styled from 'styled-components';
import { mediaQuerise } from '~utils';
// ───────────────────────────────────────────────────────────────... | JavaScript | 0 | @@ -562,24 +562,42 @@
mplateRows,%0A
+ gridAutoRows,%0A
gridColu
@@ -1104,24 +1104,44 @@
mplateRows,%0A
+ gridAutoRows,%0A
gridCo
|
cf89995f9416c3f9341fe216f52da5cf81fc4958 | Improve std{out,err} handling | src/components/routes/terminal.js | src/components/routes/terminal.js | import React from 'react';
import BaseWindow from '../BaseWindow';
import io from 'socket.io-client';
export default class TerminalPage extends React.Component {
constructor(props) {
super(props);
this.state = { bufferList: [], command: [] };
}
componentDidMount() {
this.socket = i... | JavaScript | 0.000028 | @@ -413,65 +413,351 @@
-this.setState(%7BbufferList: this.state.bufferList.concat(%5B
+if (!message %7C%7C message.length === 0) message = %22%5Cn%22;%0A this.setState(%7BbufferList: this.state.bufferList.concat(%5Bmessage%5D)%7D);%0A %7D);%0A this.socket.on('stderr', (message) =%3E %7B%0... |
a455fbb809ed439c7009aae2bd221a772606c2e2 | Fix function names | client/app/services/materialService.js | client/app/services/materialService.js | import 'whatwg-fetch';
import h from '../helpers.js';
let services = {
};
function getAllPieces() {
return fetch('/a/materials')
.then(h.checkStatus)
.then(h.parseJSON)
.then(data => data.materials)
.catch(error => {
console.log('Error fetching materials: ', error);
throw error;
});
... | JavaScript | 0.999963 | @@ -65,16 +65,79 @@
ces = %7B%0A
+ getAllMaterials,%0A getMaterial,%0A getTypes,%0A modifyMaterial%0A
%7D;%0A%0Afunc
@@ -147,21 +147,24 @@
n getAll
-Piece
+Material
s() %7B%0A
@@ -394,21 +394,24 @@
tion get
-Piece
+Material
(id) %7B%0A
@@ -903,13 +903,16 @@
dify
-Piece
+Material
(id,
|
9d971a89eb4c067cf015f33015de9b888ff14194 | reorder components alphabetically | client/assets/components/components.js | client/assets/components/components.js | angular.module('lucidworksView.components', [
'lucidworksView.components.document',
'lucidworksView.components.document_file',
'lucidworksView.components.document_jira',
'lucidworksView.components.document_slack',
'lucidworksView.components.document_twitter',
'lucidworksView.components.document_web',
'luc... | JavaScript | 0.002848 | @@ -467,24 +467,67 @@
nts.field',%0A
+ 'lucidworksView.components.landingpage',%0A
'lucidwork
@@ -636,51 +636,8 @@
x',%0A
- 'lucidworksView.components.landingpage',%0A
'l
|
c52b76399468e11a2a718a2b774de5489161771b | fix bug show message | client/scripts/controllers/userCtrl.js | client/scripts/controllers/userCtrl.js | (function () {
var UserCtrl;
UserCtrl = (function () {
function UserCtrl($scope, $rootScope, $log, $location, UserService, RoleService, toaster) {
this.$scope = $scope;
this.$rootScope = $rootScope;
this.$log = $log;
this.$location = $location;
this.UserService = UserService;
... | JavaScript | 0 | @@ -4607,20 +4607,21 @@
error',
-data
+error
.message
@@ -4622,36 +4622,37 @@
essage.summary,
-data
+error
.message.detail)
|
91f601b695c89fbab3d5655966d06ef4a4a85b9c | Remove duplicate App.Payment model. | static/global/js/app/order.js | static/global/js/app/order.js | /*
Models
*/
App.OrderItem = DS.Model.extend({
url: 'fund/orders/:order_id/items',
// Model fields
// FIXME Make the drf2 serializer use the id (or slug) to serialize DS.belongsTo.
// This will enable us to remove the project_slug field.
project: DS.belongsTo('App.Project'),
project_sl... | JavaScript | 0 | @@ -3001,172 +3001,8 @@
;%0A%0A%0A
-App.Payment = DS.Model.extend(%7B%0A url: 'fund/payments',%0A payment_method: DS.attr('number'),%0A amount: DS.attr('number'),%0A status: DS.attr('string')%0A%7D);%0A%0A%0A
App.
|
372235826aa724a812552e13ea45fe516d8da423 | Update dnevnik.operator.js | static/js/dnevnik.operator.js | static/js/dnevnik.operator.js | $(document).ready(function() {
$("#dnevnik-login").on("submit", function(a) {
a.preventDefault();
$.ajax({
headers: {
"X-CSRFToken": Cookies.get("csrftoken")
},
url: "/login",
type: "POST",
d... | JavaScript | 0 | @@ -404,33 +404,33 @@
timeout:
-1
+3
0000,%0D%0A
@@ -1186,9 +1186,9 @@
ut:
-1
+3
0000
@@ -1404,8 +1404,10 @@
;%0D%0A%0D%0A%7D);
+%0D%0A
|
d46171ba5adcddf80b6fffed9f055cd0713165d0 | add depth to torus | components/famous-demos/torus/torus.js | components/famous-demos/torus/torus.js | BEST.component('famous-demos:torus', {
tree: 'torus.html',
behaviors: {
'.my-mesh-container': {
'mount-point': function() {
return [0.5, 0.5]
},
'size': function(canvasSize) {
return canvasSize;
},
'position': fu... | JavaScript | 0 | @@ -965,16 +965,21 @@
e: %5B200,
+ 200,
200%5D,%0A
|
77d7912cac21558cc36523d35f19b7966d139e90 | add __UNI_ROUTER_BASE__ | src/core/service/plugins/index.js | src/core/service/plugins/index.js | import VueRouter from 'vue-router'
import {
isPage
} from 'uni-helpers/index'
import {
createAppMixin
} from './app'
import {
createPageMixin
} from './page'
import {
lifecycleMixin
} from './lifecycle'
import {
initPolyfill
} from './polyfill'
import {
getTabBarScrollPosition
... | JavaScript | 0 | @@ -1110,16 +1110,17 @@
= %7B%7D) %7B
+%0D
%0A if
@@ -1439,24 +1439,173 @@
Mixin(Vue)%0D%0A
+%0A /* eslint-disable no-undef */%0D%0A if (typeof __UNI_ROUTER_BASE__ !== 'undefined') %7B%0D%0A __uniConfig.router.base = __UNI_ROUTER_BASE__%0D%0A %7D
%0D%0A const
@@ -2522,24 +2522,26 @@
getHash(... |
f9f873b6645cc312188025f9d64513c4020a04e7 | delete checkbox scope changign | src/directives/schema-validate.js | src/directives/schema-validate.js | angular.module('schemaForm').directive('schemaValidate', ['sfValidator', function(sfValidator) {
return {
restrict: 'A',
scope: false,
require: 'ngModel',
link: function(scope, element, attrs, ngModel) {
var error = null;
if (attrs.type === 'radio' || attrs.type === 'checkbox') {
... | JavaScript | 0.000001 | @@ -277,37 +277,8 @@
dio'
- %7C%7C attrs.type === 'checkbox'
) %7B%0A
|
5c39648d8093e5f2cae99aaea7b5189e90f20f06 | FIX typo | cordova-device.js | cordova-device.js | 'use strict';
Polymer(
{
is: 'cordova-device',
properties: {
/**
* Return the version of Cordova running on the device.
*/
cordova: {
notify: true,
readOnly: true,
type: String
},
/**
* Return the device's manufacturer.
*/
ma... | JavaScript | 0.000695 | @@ -1619,16 +1619,17 @@
virtua
+l
: %7B%0A
@@ -1800,20 +1800,46 @@
veReady(
-) %7B%0A
+ready) %7B%0A if (ready) %7B%0A
co
@@ -1869,24 +1869,26 @@
ice;%0A%0A
+
+
this._setCor
@@ -1909,16 +1909,18 @@
rdova);%0A
+
th
@@ -1959,32 +1959,34 @@
acturer);%0A
+
+
this._setMod... |
88ebfb5e7c4bab8ef1307dedf256b35df18e2eba | Fix for empty selection prevents rewind. | d3-transrewind.js | d3-transrewind.js | /*
*
* By Spencer Hedger (spencer@spencerhedger.com)
* http://www.spencerhedger.com
* https://github.com/SpencerHedger/d3-transrewind
*/
var transRewind = function() {
function _handlestyle(scriptstep, d, rewinding) {
var step = scriptstep;
d = d.style(step.property, function(d, i) {
if(!rewinding) {
step.... | JavaScript | 0 | @@ -1645,24 +1645,143 @@
egin(o);%0A%09%09%0A
+%09%09var count = 0;%0A%09%09d.each(function() %7B count++; %7D);%0A%09%09%0A%09%09// Empty selection?%0A%09%09if(count == 0) %7B onEnd(o); return; %7D%0A%09%09%0A
%09%09if(!rewind
@@ -3226,16 +3226,17 @@
sCount++
+;
%0A%09%09%09%7D,%0A%09
|
0f7fc33023d5da4eb76c9c0c44d3e6a4164bc46b | Add tests for update method | package/reactive-obj-tests.js | package/reactive-obj-tests.js | Tinytest.add('Initialize a given object and get the root node', function (test) {
var obj = {a: 1};
var x = new ReactiveObj(obj);
test.equal(x.get(), obj);
test.equal(x.get([]), obj);
});
Tinytest.add('Get nested nodes', function (test) {
var obj = {a: 1, b: {c: 2}, d: [0, 42, {e: 13}]};
var x = new Reacti... | JavaScript | 0 | @@ -3103,12 +3103,439 @@
State);%0A%7D);%0A
+%0ATinytest.add('Update value if not set', function (test) %7B%0A var x = new ReactiveObj(%7Ba: 1%7D);%0A%0A x.update('b', 2, function () %7B%7D);%0A test.equal(x.get('b'), 2);%0A%7D);%0A%0ATinytest.add('Update existing value', function (test) %7B%0A var x = new Reactiv... |
685d3c15d6b6b8175a297285dd32eccc190387c6 | Remove console logs | packages/bemlinter/bin/cli.js | packages/bemlinter/bin/cli.js | #!/usr/bin/env node
const _ = require('lodash');
const fs = require('mz/fs');
const path = require('path');
const minimist = require('minimist');
const {lint, format} = require('./../src/bemlinter');
// Main
const argv = minimist(process.argv.slice(2));
new Promise(resolve => {
if (!argv.config) {
return resol... | JavaScript | 0.000002 | @@ -752,43 +752,8 @@
h);%0A
- console.log(config.sources);%0A
|
655fe4595fd8ab5fd426036dea4d0fe61e6e33bf | update error in user-task | gulpy/user-tasks/example-task.js | gulpy/user-tasks/example-task.js | // This is example of task function
var gulp = require('gulp'),
gulpif = require('gulp-if'),
notify = require('gulp-notify'),
projectConfig = require('../../projectConfig'),
notifyConfig = projectConfig.notifyConfig,
modifyDate = require('../helpers/modifyDateFormatter');
// Include browserSync... | JavaScript | 0.000001 | @@ -853,24 +853,41 @@
rn '
-Something is wro
+%5CnAn error occurred while somethi
ng.%5C
@@ -899,15 +899,31 @@
in
+the
console
+ for details
.%5Cn'
|
d6aae730d4f063bd7cb3342a35baa7244b2a40d6 | Handle searchNodeEverywhere returning null (#583) | packages/core/src/components/HotKey/Decorator.js | packages/core/src/components/HotKey/Decorator.js | /*
* This file is part of ORY Editor.
*
* ORY Editor is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ORY Editor is... | JavaScript | 0 | @@ -3491,32 +3491,38 @@
return%0A %7D%0A
+
%0A const %7B n
@@ -3522,19 +3522,17 @@
nst
-%7B node: n %7D
+maybeNode
= t
@@ -3561,32 +3561,116 @@
erywhere(focus)%0A
+ if (!maybeNode) %7B %0A return%0A %7D%0A const %7B node: n %7D = maybeNode%0A
hotKeyHand
|
2b9691a0387c124a3661404c3f68cfc0054e32b0 | Update HeaderBar tests | project/frontend/src/components/HeaderBar/HeaderBar.test.js | project/frontend/src/components/HeaderBar/HeaderBar.test.js | import React from "react";
import { configure, shallow } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import HeaderBar from "./HeaderBar";
import LoginButtonSet from "../UI/LoginButtonSet/LoginButtonSet";
import SignOutButton from "./SignOutButton/SignOutButton";
import { NavLink } from "react-router-... | JavaScript | 0 | @@ -605,16 +605,100 @@
ttonSet)
+.exists()).toBeTruthy();%0A expect(wrapper.find(SignOutButton).exists()).toBeFalsy(
);%0A %7D);
@@ -870,16 +870,101 @@
tButton)
+.exists()).toBeTruthy();%0A expect(wrapper.find(LoginButtonSet).exists()).toBeFalsy(
);%0A e
|
9bf39d2bc8349efee80277e9e31a014eec01e9fc | fix require capitalization. | polyball/client/hudbehaviors/LandingPageRenderer.js | polyball/client/hudbehaviors/LandingPageRenderer.js | /**
* Created by kdban on 4/8/2016.
*/
var $ = require('jquery');
var Logger = require('polyball/shared/logger');
var throttle = require('physicsjs').util.throttle;
/**
*
* @param {Object} config
* @property {string} config.prependTo - css selector for the element to prepend the renderer to
* @property {functio... | JavaScript | 0.00022 | @@ -100,17 +100,17 @@
/shared/
-l
+L
ogger');
|
3eabc966e5566baf930ed1aaac61e470089d98f1 | Update script.js | developer/script.js | developer/script.js | //todo write angular scripts for developer page.
var forumModule = angular.module('app', []).
controller("forumCtrl", function forumCtrl($scope, $window){
$scope.forum = {
threads: [{subject: "blah blah blah", posts: [{user: "user1", message: "hi how u doing"}, {user: "user2", message: "lol wassup"}]},
{... | JavaScript | 0.000002 | @@ -385,38 +385,32 @@
, message: %22
-hi how u doing
+asdfasdf
%22%7D, %7Buser: %22
@@ -423,34 +423,38 @@
, message: %22
-lol wassup
+j jajajajajajh
%22%7D%5D%7D%5D%0A%09%09%7D;%0A%09
|
491e5e10e04c58040f5f72ddf889b3872941e7f3 | Scale logo | layouts/Page.js | layouts/Page.js | import { Component } from 'react';
import NProgress from 'nprogress';
import Head from 'next/head';
import Link from 'next/link';
import Router from 'next/router';
import animatedAbakus from '../animatedAbakus';
import Content from '../components/Content';
import WideBackground from '../components/WideBackground';
impo... | JavaScript | 0.000001 | @@ -1275,16 +1275,44 @@
eft: -20
+, width: '100%25', padding: 20
%7D%7D /%3E%0A
|
accd39339f9aa4a3911b13795be5bbb6e1378909 | Fix import | powerauth-webflow/src/main/js/components/consent.js | powerauth-webflow/src/main/js/components/consent.js | /*
* Copyright 2019 Wultra s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | JavaScript | 0.000002 | @@ -749,24 +749,32 @@
nts%0Aimport %7B
+Button,
FormGroup, P
|
ad4fcd7c34bec45ec23d4b9872c7fe776972c8eb | Add margin | layouts/main.js | layouts/main.js | import React, { Component } from 'react'
import { connect } from 'react-redux'
import Link from 'next/link'
import Router from 'next/router'
import { withRouter } from 'next/router'
import NoSSR from 'react-no-ssr'
import fetch from 'isomorphic-fetch'
import debounce from 'lodash/debounce'
import Meta from '../compone... | JavaScript | 0.000004 | @@ -3988,24 +3988,58 @@
ow-y: auto;%0A
+ padding-bottom: 30px;%0A
%7D%0A
|
d4f17eb62e733b213200c0f09d2c3798035ab1bd | Modify current test data. | placeholders.js | placeholders.js | var placeholderProfile = {
user: {
name: 'Gordon Ramsay',
email: 'gramsay@gmail.com',
date: 'September 20, 2015',
image: 'http://www.trbimg.com/img-53c59dde/turbine/la-dd-jacques-pepin-gordon-ramsay-20140715 (376KB)',
other: 'BANANA'
},
recipes: [
{
name: "Filet Mignon",
sourceID: "Au... | JavaScript | 0 | @@ -556,16 +556,59 @@
'%0A %7D, %0A
+ cookTime: %7B%0A value: '60 minutes'%0A %7D,%0A
skillL
@@ -718,16 +718,327 @@
'%0A %7D%0A %7D
+, %0A followingList: %5B%0A %7B%0A username: 'Gordon Ramsay', %0A recipes: 2, %0A skillLevel: 98,%0A totalForks: 1214%0A %7D, %0A %7B%0A username: 'Bobby Fla... |
f3ebb21f4785cc05093967ac43e285873c035367 | Add console.log on build | hooks/beforePluginInstallHook.js | hooks/beforePluginInstallHook.js | /**
Hook is executed when plugin is added to the project.
It will check all necessary module dependencies and install the missing ones locally.
*/
var path = require('path');
var fs = require('fs');
var spawnSync = require('child_process').spawnSync;
var pluginNpmDependencies = require('../package.json').dependencies;... | JavaScript | 0 | @@ -1559,24 +1559,99 @@
bin/npm%22);%0A%0A
+ console.log(npm);%0A console.log(%22spawnSync%22);%0A console.log(spawnSync);%0A%0A
var result
|
8f01f37070614ceeed74ae94ef7eecbd89f8c56b | Add base test for containing any value | koans/AboutMaps.js | koans/AboutMaps.js | describe("About Maps", function () {
describe("Basic Usage", function () {
it("should understand they are key, value stores", function () {
var trooper = new Map();
trooper.set('name', 'Stormtrooper');
trooper.set('Droid you are looking for?', false);
trooper.set('hits target', function... | JavaScript | 0 | @@ -826,20 +826,99 @@
%0A %7D)%0A
+%0A
+it(%22should understand they can contain any value%22, function() %7B%0A %0A %7D)%0A
%0A %7D);%0A%7D
|
5f470b7dc5a1b399c143da348b3642a4a228578f | Add og:article to Post | layouts/post.js | layouts/post.js | import Page from "./page";
import PropTypes from "prop-types";
const Post = ({ title, children }) => (
<Page title={`writing about ${title}`}>
{children}
{/* TODO: Social media buttons */}
{/*<span>If you enjoyed this article, please share it below! If you have your own reasons for using one style over a... | JavaScript | 0 | @@ -4,25 +4,28 @@
ort
-Page
+Head
from %22
-./page
+next/head
%22;%0Ai
@@ -58,16 +58,43 @@
-types%22;
+%0Aimport Page from %22./page%22;
%0A%0Aconst
@@ -118,16 +118,31 @@
children
+, date, summary
%7D) =%3E (
@@ -184,16 +184,539 @@
tle%7D%60%7D%3E%0A
+ %3CHead%3E%0A %3Cmeta property=%22og:descriptio... |
2d6a964b661ca36f83e418aef66cd7f4ec823e52 | store hot search keywords within 7 days | src/models/search_keywords.js | src/models/search_keywords.js | import getDatabase from './database';
const saveSearchInfo = async (type, keyword) => {
const db = await getDatabase();
await db
.collection('search_keywords')
.update(
{ type, keyword },
{ $inc: { count: 1 }, $set: { updated_at: new Date() } },
{ upsert: true }
);
};
export default... | JavaScript | 0 | @@ -115,16 +115,42 @@
abase();
+%0A const now = new Date();
%0A%0A awai
@@ -276,25 +276,18 @@
ed_at: n
-ew Date()
+ow
%7D %7D,%0A
@@ -313,16 +313,124 @@
%7D%0A );
+%0A%0A await db.collection('hot_search_keywords').insertOne(%7B%0A keyword,%0A type,%0A created_at: now,%0A %7D);
%0A%7D;%0A%0Aexp
|
354b64051c1388ac57ca4060b30cedbb6db69a0b | Use copy of config | play.js | play.js | var _ = require('lodash')
var EventEmitter = require('eventemitter2').EventEmitter2
var State = require('./state.js')
var formatEvent = require('./util/events.js').formatEvent
module.exports = function (id, level, opts) {
opts = opts || {size: 700}
function load (level) {
var tmp
var maps = []
level.m... | JavaScript | 0 | @@ -500,16 +500,28 @@
onfig =
+_.cloneDeep(
level.co
@@ -524,16 +524,17 @@
l.config
+)
%0A con
|
592c75c538adb74b322547bc889d10e5d935b4ee | use meld instead of replaceMethod in Rollover Blurbs | src/modules/RolloverBlurbs.js | src/modules/RolloverBlurbs.js | define('extplug/modules/rollover-blurbs/main', function (require, exports, module) {
var Module = require('extplug/Module'),
fnUtils = require('extplug/util/function'),
rolloverView = require('plug/views/users/userRolloverView'),
UserFindAction = require('plug/actions/users/UserFindAction'),
$ = requ... | JavaScript | 0 | @@ -326,16 +326,44 @@
jquery')
+,%0A meld = require('meld')
;%0A%0A var
@@ -1008,36 +1008,44 @@
%0A%0A
-fnUtils.replaceMetho
+this.showAdvice = meld.aroun
d(rollov
@@ -1091,29 +1091,37 @@
-fnUtils.replaceMethod
+this.hideAdivce = meld.before
(rol
@@ -1224,143 +1224,63 @@
-fnUtils.unreplaceMet... |
02021354d7a05d8bbbf83b9efd63fc2eb41dae29 | bump MINIFIED distribution dist/snuggsi.min.js | dist/snuggsi.min.js | dist/snuggsi.min.js | var HTMLElement=function(t){function e(){}return e.prototype=window.HTMLElement.prototype,e}(),DOMTokenList=function(t){for(var e=this,n=function(t){return/{(\w+|#)}/.test(t.textContent)&&(t.text=t.textContent).match(/[^{]+(?=})/g).map(function(n){return(e[n]||(e[n]=[])).push(t)})},r=document.createNodeIterator(t,NodeF... | JavaScript | 0 | @@ -2833,23 +2833,16 @@
ion t()%7B
-window.
customEl
|
aa3b2e850299fcddf35683e77cde1efdfc4abee1 | Make ids unique between buttons | spark/components/buttons/vanilla/button.stories.js | spark/components/buttons/vanilla/button.stories.js |
export default {
title: 'Components|Buttons',
};
export const primary = () => (
`
<button class="sprk-c-Button" data-id="button-1">
Button
</button>
`
);
export const secondary = () => (
`
<button class="sprk-c-Button sprk-c-Button--secondary" type="button" data-id="button-1">
Button
... | JavaScript | 0.000587 | @@ -127,25 +127,31 @@
-id=%22button-
-1
+primary
%22%3E%0A But
@@ -294,33 +294,41 @@
data-id=%22button-
-1
+secondary
%22%3E%0A Button%0A
@@ -475,9 +475,16 @@
ton-
-2
+tertiary
%22%3E%0A
@@ -616,17 +616,24 @@
%22button-
-1
+disabled
%22 disabl
@@ -783,18 +783,16 @@
-spinner
--1
%22%3E%0A %3C
@@ ... |
0fdc1140dd3956e72c38b1bcee517eff7ff5de6c | Add `Database.getCount` function | js/modules/database.js | js/modules/database.js | /* global indexedDB */
// Module for interacting with IndexedDB without Backbone IndexedDB adapter
// and using promises. Revisit use of `idb` dependency as it might cover
// this functionality.
exports.open = (name, version) => {
const request = indexedDB.open(name, version);
return new Promise((resolve, reject)... | JavaScript | 0.000004 | @@ -190,16 +190,63 @@
ality.%0A%0A
+const isObject = require('lodash/isObject');%0A%0A%0A
exports.
@@ -1289,12 +1289,359 @@
version;%0A%7D;%0A
+%0Aexports.getCount = async (%7B store %7D = %7B%7D) =%3E %7B%0A if (!isObject(store)) %7B%0A throw new TypeError('%22store%22 is required');%0A %7D%0A%0A const reques... |
a7555b30a25b63157b30fc80656e55813d307c68 | Fix eslint | js/views/screenview.js | js/views/screenview.js | /* global Marionette */
/**
*
* @copyright Copyright (c) 2019, Daniel Calviño Sánchez (danxuliu@gmail.com)
*
* @license GNU AGPL version 3 or any later version
*
* 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 b... | JavaScript | 0.000001 | @@ -2050,16 +2050,17 @@
screen%22)
+;
%0A%09%09%09%7D%0A%0A%09
@@ -2184,16 +2184,17 @@
@param
+%7B
HTMLVide
@@ -2206,16 +2206,17 @@
ent%7Cnull
+%7D
videoEl
|
fdcca2d52ff0e105100856875f8e2338a97f221c | Add text input for all user attributes, working | simul/app/components/register.js | simul/app/components/register.js | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
TouchableHighlight,
} from 'react-native';
class Register extends Component{
constructor() {
super();
this.state = {
name: "",
username: "",
location: "",
bio: "",
preferred_contact... | JavaScript | 0 | @@ -616,16 +616,165 @@
Name%22%0A
+ /%3E%0A%0A %3CTextInput%0A onChangeText=%7B (val)=%3E this.setState(%7Busername: val%7D) %7D%0A style=%7Bstyles.input%7D placeholder=%22Username%22%0A
@@ -776,16 +776,17 @@
/%3E%0A
+%0A
@@ -794,54 +794,957 @@
Text
-%3E%0A ... |
2c96699aed5e10fb3bb31b152c4fc3ae8443f268 | convert timestamps to ISO 8601 date string (#2099) | packages/gatsby-source-medium/src/gatsby-node.js | packages/gatsby-source-medium/src/gatsby-node.js | const axios = require(`axios`)
const crypto = require(`crypto`)
const fetch = username => {
const url = `https://medium.com/${username}/latest?format=json`
return axios.get(url)
}
const prefix = `])}while(1);</x>`
const strip = payload => payload.replace(prefix, ``)
exports.sourceNodes = async ({ boundActionCre... | JavaScript | 0.000037 | @@ -214,16 +214,433 @@
;%3C/x%3E%60%0A%0A
+const convertTimestamps = (nextObj, prevObj, prevKey) =%3E %7B%0A if (typeof nextObj === 'object') %7B%0A Object.keys(nextObj).map(key =%3E convertTimestamps(nextObj%5Bkey%5D, nextObj, key));%0A %7D else %7B%0A if (typeof nextObj === 'number' && nextObj %3E%3E 0 !== n... |
2e454a9363b01cff1ee6e4ac59e17e473295e645 | fix language dropdown | imports/api/languages/service.js | imports/api/languages/service.js | import { Meteor } from 'meteor/meteor';
import Users from '/imports/api/users/Users';
import SystemLanguages from '/imports/framework/Constants/SystemLanguages';
Meteor.methods({
'language.get': () => {
return Meteor.user().profile.language;
},
'language.update': ({}, {}, language) => {
const profileLan... | JavaScript | 0.000072 | @@ -210,16 +210,34 @@
return
+ %7B%0A language:
Meteor.
@@ -255,24 +255,30 @@
ile.language
+%0A %7D
;%0A %7D,%0A 'la
|
ccde4a5a69aef61655b830d043bc553c3a718c4b | Fix key warning | redef/patron-client/src/frontend/components/Publications.js | redef/patron-client/src/frontend/components/Publications.js | import React, { PropTypes } from 'react'
import { defineMessages, FormattedMessage } from 'react-intl'
import Publication from './Publication'
import PublicationInfo from './PublicationInfo'
import { getId } from '../utils/uriParser'
export default React.createClass({
propTypes: {
publications: PropTypes.array.... | JavaScript | 0.000004 | @@ -881,32 +881,57 @@
er =%3E%0A %3Cdiv
+ key=%7B%60column-$%7Bnumber%7D%60%7D
className='col
@@ -939,16 +939,25 @@
ol-1-3'%3E
+%0A
%7Bnumber
@@ -1387,24 +1387,43 @@
put = %5B %3Cdiv
+ key=%7B%60row-$%7Brow%7D%60%7D
className='
@@ -2062,24 +2062,54 @@
ssName='row'
+ key=%7BshowMore.publication.i... |
2108a85301d981b4e5131af9554212f64cc0b5cd | Add a mount test | web/src/js/components/Dashboard/__tests__/NewUserTourComponent.test.js | web/src/js/components/Dashboard/__tests__/NewUserTourComponent.test.js | /* eslint-env jest */
import React from 'react'
import {
shallow
} from 'enzyme'
import { cloneDeep } from 'lodash/lang'
import Joyride from 'react-joyride'
import Dialog from '@material-ui/core/Dialog'
import DialogTitle from '@material-ui/core/DialogTitle'
import localStorageMgr from 'js/utils/localstorage-mgr'
im... | JavaScript | 0.000001 | @@ -51,16 +51,25 @@
mport %7B%0A
+ mount,%0A
shallo
@@ -938,24 +938,227 @@
)%0A %7D)%0A%0A
+ it('mounts without error', () =%3E %7B%0A const NewUserTourComponent = require('js/components/Dashboard/NewUserTourComponent').default%0A mount(%0A %3CNewUserTourComponent %7B...mockProps%7D /%3E%0A )%... |
b5267a0713ef57854be5f5999593d96119da7016 | verify permissions with dictybase resource | src/utils/apiClasses.js | src/utils/apiClasses.js | // @flow
export class JsonAPI {
json: Object
links: Object
relationships: Object
constructor(json: Object) {
this.json = json
}
getAttributes() {
return this.json.data.attributes
}
getId() {
return this.json.data.id
}
getRelationships() {
return this.json.data.relationships
}
}
ex... | JavaScript | 0 | @@ -2,16 +2,69 @@
/ @flow%0A
+import %7B MAIN_RESOURCE %7D from %22constants/resources%22%0A%0A
export c
@@ -2348,16 +2348,23 @@
missions
+.length
%3E 0) %7B%0A
@@ -2409,27 +2409,18 @@
ter(
-%0A
item =%3E
-%0A
+ %7B%0A
@@ -2565,23 +2565,133 @@
esource)
+ %7C%7C
%0A
+ (item.attributes.p... |
4f988130a0dca156e0438c0c65c59d7e58e6690e | Add TODOs | web/src/js/components/Settings/__tests__/SettingsPageComponent.test.js | web/src/js/components/Settings/__tests__/SettingsPageComponent.test.js | /* eslint-env jest */
import React from 'react'
import { shallow } from 'enzyme'
import { Route, Switch } from 'react-router-dom'
import SettingsPage from 'js/components/Settings/SettingsPageComponent'
// import AccountView from 'js/components/Settings/Account/AccountView'
// import BackgroundSettingsView from 'js/com... | JavaScript | 0.000001 | @@ -4268,16 +4268,317 @@
)%0A )%0A %7D)
+%0A%0A // TODO:%0A // - add tests for remaining route components%0A // - add tests for existence of the Redirect components%0A // - add tests for the showError prop functionality%0A // - pass authUser to WidgetsSettingsView and test for that prop; remove%0A // ... |
215fe3375442f81c74d76f345f5ddb30de0d793e | Use config option for footer | core/src/main/public/static/js/find/app/page/search/filters/parametric/parametric-field-view.js | core/src/main/public/static/js/find/app/page/search/filters/parametric/parametric-field-view.js | define([
'backbone',
'underscore',
'jquery',
'i18n!find/nls/bundle',
'js-whatever/js/list-view',
'find/app/util/collapsible',
'find/app/page/search/filters/parametric/parametric-select-modal',
'find/app/page/search/filters/parametric/parametric-value-view'
], function(Backbone, _, $, i18... | JavaScript | 0 | @@ -1544,32 +1544,100 @@
his.collection,%0A
+ footerHtml: this.seeAllButtonTemplate(%7Bi18n:i18n%7D),%0A
@@ -2000,85 +2000,8 @@
el);
-%0A%0A this.$('tbody').append(this.seeAllButtonTemplate(%7Bi18n:i18n%7D));
%0A
|
97652be6a9a2c06391dd1afaf240abc7ce5c419d | Fix module resolving in eslint for vue + more attr per element | packages/eslint-config/vue.js | packages/eslint-config/vue.js | // extra settings for Vue components
module.exports = {
extends: [
'@wearegenki/eslint-config',
'plugin:vue/recommended',
],
plugins: [
'vue',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 8,
sourceType: 'module',
ecmaFeatures: {
exp... | JavaScript | 0 | @@ -406,16 +406,139 @@
e,%0A %7D,%0A
+ settings: %7B%0A 'import/resolver': %7B%0A webpack: %7B%0A config: 'build/webpack.base.conf.js',%0A %7D,%0A %7D,%0A %7D,%0A
rules:
@@ -609,9 +609,9 @@
ne:
-5
+6
, //
|
a519b52819bb802b74eef817aec4d75ff516e90e | make lint free | src/grunt-alias-npm-submodules.js | src/grunt-alias-npm-submodules.js | 'use strict';
var
cwd = process.cwd(),
path = require('path'),
DIRECTORY_SEPARATOR = path.sep;
module.exports = function ( $grunt ) {
function _writeAliasFile ( $data ) {
var
_fileDest = $data.dir,
_fileSrc = $data.full,
_index,
_nesting = _fileDest.length,
_pr... | JavaScript | 0 | @@ -730,24 +730,21 @@
fileDest
-%5B'
+.
cyan
-'%5D
%0A
@@ -832,16 +832,13 @@
)
-%5B'
+.
cyan
-'%5D
%0A
@@ -3117,17 +3117,14 @@
nt )
-%5B'
+.
green
-'%5D
%0A
|
4d8e1767972c6097429042a51ed25ef756e70588 | change isFetching to consistently be boolean (#1570) | packages/netlify-cms-core/src/reducers/search.js | packages/netlify-cms-core/src/reducers/search.js | import { Map, List } from 'immutable';
import {
SEARCH_ENTRIES_REQUEST,
SEARCH_ENTRIES_SUCCESS,
QUERY_REQUEST,
QUERY_SUCCESS,
SEARCH_CLEAR,
} from 'Actions/search';
let loadedEntries;
let response;
let page;
let searchTerm;
const defaultState = Map({ isFetching: false, term: null, page: 0, entryIds: List([... | JavaScript | 0 | @@ -1488,16 +1488,31 @@
amespace
+ ? true : false
);%0A
|
39209dc5b5fbbc514c63d8f53e2aabc0536bcba8 | Update react-devtools-inline to embed react-debug-tools since it's not published yet | packages/react-devtools-inline/webpack.config.js | packages/react-devtools-inline/webpack.config.js | const {resolve} = require('path');
const {DefinePlugin} = require('webpack');
const {
getGitHubURL,
getVersionString,
} = require('react-devtools-extensions/utils');
const NODE_ENV = process.env.NODE_ENV;
if (!NODE_ENV) {
console.error('NODE_ENV not set');
process.exit(1);
}
const __DEV__ = true; // NODE_ENV ... | JavaScript | 0 | @@ -747,24 +747,92 @@
'react',%0A
+ // TODO: Once this package is published, remove the external%0A //
'react-debu
|
d0b604010569beb5cd2204faab44782b166062b5 | add display name for radiobutton in form story (#4588) | packages/react/src/components/Form/Form-story.js | packages/react/src/components/Form/Form-story.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 from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKno... | JavaScript | 0 | @@ -2973,16 +2973,58 @@
s',%0A%7D;%0A%0A
+RadioButton.displayName = 'RadioButton';%0A%0A
storiesO
|
e7d48d62032a4a6afc2ddc5027ae78dba1689415 | Fix TM compat | dry.js | dry.js | const dry = (function() {
"use strict";
const unique = function(a, key) {
if (key) {
return a.filter(function(e) {
e = key(e);
return !!e && (!this.has(e) && !!this.add(e));
}, new Set());
}
return a.filter(function(e) {
... | JavaScript | 0 | @@ -37,16 +37,76 @@
trict%22;%0A
+ const unsafeWindow = this.unsafeWindow %7C%7C this.window;%0A%0A
cons
@@ -2956,33 +2956,32 @@
%7D);%0A %7D%0A
-%0A
let exportOb
@@ -5603,32 +5603,54 @@
xts;%0A %7D,%0A
+ unsafeWindow,%0A
replaceE
|
e0a2982875a38b3601e019ee1e3ec4b9d0303d6d | fix config | dry.js | dry.js | const dry = (function() {
"use strict";
const unique = function(a, key) {
if (key) {
return a.filter(function(e) {
e = key(e);
return !!e && (!this.has(e) && !!this.add(e));
}, new Set());
}
return a.filter(function(e) {
... | JavaScript | 0.000006 | @@ -5110,21 +5110,130 @@
%7D;%0A%0A
-const
+let config = window.config %7C%7C unsafeWindow.config;%0A if (!config) %7B%0A bus.once(%22load%22, () =%3E %7B%0A
config
@@ -5271,16 +5271,34 @@
.config;
+%0A %7D);%0A %7D
%0A%0A re
@@ -5442,22 +5442,67 @@
+get
config
+(... |
dcee1a3b8899e13381bb116783c1e873e564e079 | remove fb copyright, because the code is modified a lot | src/utils/deepFreeze.js | src/utils/deepFreeze.js | /**
* Based on deepFreezeAndThrowOnMutationInDev from react-native package.
*/
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of pat... | JavaScript | 0 | @@ -79,383 +79,8 @@
*/%0A%0A
-/**%0A * Copyright (c) 2015-present, Facebook, Inc.%0A * All rights reserved.%0A *%0A * This source code is licensed under the BSD-style license found in the%0A * LICENSE file in the root directory of this source tree. An additional grant%0A * of patent rights can be found in the PATENTS ... |
e65b827ef7e8263211b83756482048c9dc24ce56 | Use less confusing names for `for in` | lib/Proclass.js | lib/Proclass.js | // Avoids running `_init()` unnecessarily
var _initializing = false;
// Empty constructor (overwritten in `extend()`)
var Proclass = function() { };
// Make it possible to extend the class
// Save function (as `Extend`) to inject protected variables later
Proclass.extend = function Extend(_self, _parent) {
// If `_... | JavaScript | 0.000002 | @@ -2062,24 +2062,23 @@
or (var
-all
+pro
Name
-s
in _pro
@@ -2098,24 +2098,23 @@
%09%09%09temp%5B
-all
+pro
Name
-s
%5D = this
@@ -2114,24 +2114,23 @@
= this%5B
-all
+pro
Name
-s
%5D;%0A%09%09%09%09%09
@@ -2135,24 +2135,23 @@
%09%09%09this%5B
-all
+pro
Name
-s
%5D = _pro
@@ -2161,16 +2161,15 @@
ted%5B
... |
80a92d75a35644f95f0c18b3d711a64b043cf381 | Response.setState and setView are fluent | lib/Response.js | lib/Response.js | var inherits = require('inherits');
var EventEmitter = require('EventEmitter2').EventEmitter2;
var Renderer = require('./Renderer');
var React = require('react');
/**
* The Response is used as the `this` value for route functions. It hosts
* methods for manipulating the server response and application state.
*/
fun... | JavaScript | 0.998771 | @@ -650,16 +650,31 @@
.state;%0A
+ return this;%0A
%7D;%0A%0AResp
@@ -776,16 +776,31 @@
r.view;%0A
+ return this;%0A
%7D;%0A%0A//%0A/
|
d34200b26515aed65c72cfc9b85d879111fa10d5 | Address ember 2.6 SafeString deprecation warnings (#321) | addon/components/md-loader.js | addon/components/md-loader.js | import Ember from 'ember';
import UsesSettings from '../mixins/uses-settings';
import layout from '../templates/components/md-loader';
const { Component, computed, computed: { oneWay } } = Ember;
export default Component.extend(UsesSettings, {
layout,
classNameBindings: ['isBarType:progress:preloader-wrapper', '... | JavaScript | 0 | @@ -825,37 +825,31 @@
w Ember.
-Handlebars.SafeString
+String.htmlSafe
(%60width:
@@ -930,29 +930,23 @@
ber.
-Handlebars.SafeString
+String.htmlSafe
('')
|
9ebd92b1153fd03b48002afffc40a535a15b9c34 | use set | addon/components/wrap-urls.js | addon/components/wrap-urls.js | /* eslint-disable no-cond-assign */
import Component from '@ember/component';
import layout from '../templates/components/wrap-urls';
const WrapUrlsComponent = Component.extend({
layout,
tagName: '',
parts: null,
didReceiveAttrs() {
this._super(...arguments);
this.set('parts', this._textToParts(this.... | JavaScript | 0.000002 | @@ -1,41 +1,4 @@
-/* eslint-disable no-cond-assign */%0A%0A
impo
@@ -90,16 +90,53 @@
p-urls';
+%0Aimport %7B set %7D from '@ember/object';
%0A%0Aconst
@@ -272,25 +272,26 @@
s);%0A
-this.set(
+set(this,
'parts',
@@ -330,17 +330,18 @@
-this.set(
+set(this,
'url
|
c4672774b45e6124cf26b15e7e02b7740738bc0f | Rename readOnlyCopy to serialize | lib/argument.js | lib/argument.js | var B = require("buster-core");
var when = require("when");
function validate(validator) {
try {
var val = validator(this.readOnlyCopy());
return when.isPromise(val) ? val : when(val);
} catch (e) {
var deferred = when.defer();
deferred.reject(e);
return deferred.promise... | JavaScript | 0 | @@ -128,28 +128,25 @@
or(this.
-readOnlyCopy
+serialize
());%0A
@@ -573,45 +573,14 @@
-var deferred = when.defer();%0A%0A
+return
whe
@@ -633,198 +633,31 @@
e)))
-.then(function () %7B%0A deferred.resolve()
;%0A
-
- %7D, function (errors) %7B%0A deferred.reject(errors)... |
5332b6d22c81cf0701b175735970651c1af9807e | Add trim to japanese check | modules/japanese.js | modules/japanese.js | /**
* The original intention of this module was to translate
* using the Google Translate API, but it's a paid service.
* Hence, this pale imitation.
*/
var jp = require( 'japanese' );
module.exports = {
events: {
message: function ( bot, nick, to, text ) {
// http://stackoverflow.com/a/15034560/1875784
i... | JavaScript | 0 | @@ -471,16 +471,24 @@
( romaji
+.trim()
) %7B%0A%09%09%09
|
e158a96b8e64b91e0f4e5c30d0c354e92cbea629 | Improve interceptor with correct redirect URL | lib/assets/javascripts/builder/data/backbone/network-interceptors/interceptors/forbidden-403.js | lib/assets/javascripts/builder/data/backbone/network-interceptors/interceptors/forbidden-403.js | /**
* 403 Forbidden Network Error Interceptor
*
* This interceptor redirects to login page when
* any 403 session expired error is returned in any of the
* network requests
*/
var LOGIN_ROUTE = '/login';
var SESSION_EXPIRED = 'session_expired';
module.exports = function (xhr, textStatus, errorThrown) {
if (xh... | JavaScript | 0.000001 | @@ -184,71 +184,190 @@
var
-LOGIN_ROUTE = '/login';%0Avar SESSION_EXPIRED = 'session_expired'
+PASSWORD_CHANGE_ROUTE = '/password_change/';%0Avar SESSION_EXPIRED = 'session_expired';%0A%0Avar organizationUsernameMatch = /%5C/(u%7Cuser)%5C/(.*)%5C//;%0Avar subdomainMatch = /https?:%5C/%5C/(%5B%5E.%5D+)/
;%0A%0Am
@@ -... |
d9c3d2baa531c5f06272c3ad00104cc449a98135 | Fix doc for Behalter#exec | lib/behalter.js | lib/behalter.js | 'use strict';
var _ = require('lodash');
/**
* Create a new behalter.
* @param {Behalter=} parent
* @constructor
*/
function Behalter(parent) {
this.__parent = parent;
this.__values = {};
this.__factories = {};
}
/**
* Set or get value.
*
* @param {(string|Object)} name
* @param {Object=} value
* @ret... | JavaScript | 0 | @@ -3843,16 +3843,17 @@
am %7B*...
+=
%7D params
@@ -3943,30 +3943,8 @@
s) %7B
- // jshint ignore:line
%0A%0A
@@ -4525,16 +4525,17 @@
am %7B*...
+=
%7D props%0A
|
e53f35c09aeeb9588479a054440f207c38e825a7 | Remove listener before | ejs.js | ejs.js | /**
* ejs
*
* @category ejs
* @author Vaibhav Mehta <vaibhav@decodingweb.com>
* @copyright Copyright (c) 2016 Vaibhav Mehta <https://github.com/i-break-codes>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 1.0.0 Beta
*/
'use strict';
var Error = function()... | JavaScript | 0 | @@ -315,24 +315,42 @@
tion() %7B%0A %0A
+ var setConfig;%0A%0A
function i
@@ -376,16 +376,19 @@
) %7B%0A
+%0A
// Defau
@@ -404,18 +404,16 @@
uration%0A
-
var co
@@ -621,28 +621,24 @@
%7D%0A %7D%0A
-
%0A // Over
@@ -663,20 +663,16 @@
fig%0A
-var
setConfi
@@ -725,71 +725,205 @@
... |
2250426ddf26e966864a4d0e7963152a3634c359 | Fix 'add cordova platforms' test | tools/tests/cordova-platforms.js | tools/tests/cordova-platforms.js | var selftest = require('../selftest.js');
var Sandbox = selftest.Sandbox;
var files = require('../files.js');
selftest.define("add cordova platforms", function () {
var s = new Sandbox();
var run;
// Starting a run
s.createApp("myapp", "package-tests");
s.cd("myapp");
s.set("METEOR_TEST_TMP", files.mkdtem... | JavaScript | 0.000082 | @@ -371,35 +371,67 @@
hErr(%22Pl
-atform is not added
+ease add the Android platform to your project first
%22);%0A ru
@@ -487,17 +487,17 @@
ectExit(
-1
+2
);%0A%0A //
@@ -1167,27 +1167,59 @@
(%22Pl
-atform is not added
+ease add the Android platform to your project first
%22);%0A
@@ -1283,9 +1283,9 @@
xit(
-1... |
b00fc0523f72031fdf3baafe50fda99b01e85c3f | Fix Typo in reporting when Cookie has been found | plugins/GUID.js | plugins/GUID.js | /*
Tag users with a unique GUID
*/
(function(w) {
var impl = {
expires: 604800,
cookieName: "GUID",
generate: function() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
};
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s... | JavaScript | 0 | @@ -997,16 +997,22 @@
+ BOOMR.
+utils.
getCooki
|
452bddcbb7e93071bb8a2926743b26817ccfc80b | Fix typo in observable name. | public/app/models/ListModeSwitcher.js | public/app/models/ListModeSwitcher.js | (function () {
'use strict';
define(
[
'lodash',
'knockout'
],
function (_, ko) {
var AVAILABLE_MODES = [ 'List', 'Thumbnails', 'Table' ];
return function (mode) {
this.mode = ko.observable(mode || AVAILABLE_MODES[0]);
... | JavaScript | 0.000055 | @@ -582,16 +582,9 @@
his.
-resultsM
+m
ode(
|
75d850f133b3497221c63d4139ab8bc960b5bc01 | Update disabled prop based on zero states for mobile. | assets/js/modules/analytics/components/dashboard/DashboardAllTrafficWidget/DimensionTabs.js | assets/js/modules/analytics/components/dashboard/DashboardAllTrafficWidget/DimensionTabs.js | /**
* DimensionTabs component
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*... | JavaScript | 0 | @@ -3763,17 +3763,23 @@
sabled=%7B
-
+%0A%09%09%09%09%09%09
gatherin
@@ -3784,16 +3784,64 @@
ingData
+%7C%7C ( zeroDataStatesEnabled && isZeroData )%0A%09%09%09%09%09
%7D%0A%09%09%09%09%3E%0A
|
f553051867776b517d8c7d1871d2a763001bcc70 | Fix basic view click handling | inspector/views/containerView.js | inspector/views/containerView.js | 'use strict';
import * as helper from '../helper.js';
export default class ContainerView {
constructor(inspectorContent, originalParent, originalElements, hierarchyLevel=undefined) {
this._inspectorContent = inspectorContent;
this._showedLevel = 0;
this._maxNestedLevel = 0;
this._create(originalPa... | JavaScript | 0.000348 | @@ -3617,16 +3617,49 @@
nt.id;%0A%0A
+ // Set elements content data%0A
// T
@@ -3884,16 +3884,21 @@
agName;%0A
+ %0A
pare
@@ -5560,24 +5560,48 @@
lElement) %7B%0A
+ e.stopPropagation()%0A
// Pass
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.