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 |
|---|---|---|---|---|---|---|---|
a24663bd9b42d20543f903bfb31ec5171fd32938 | update internal vars in setBio to use info | commands/info/setBio.js | commands/info/setBio.js | /**
* @file setBio command
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license GPL-3.0
*/
exports.exec = async (Bastion, message, args) => {
try {
if (args.length < 1) {
/**
* The command was ran with invalid parameters.
* @fires commandUsage
*/
return Bastion.emit('command... | JavaScript | 0 | @@ -409,18 +409,19 @@
let
-b
i
+nf
o = awai
@@ -467,18 +467,19 @@
if (
-b
i
+nf
o.length
@@ -1231,18 +1231,19 @@
info:
-b
i
+nf
o%0A %7D,
|
bc9e0b78a528787d917d97e728fa8fd70837e6a3 | Add getAllKeys support | src/app/store/storage.js | src/app/store/storage.js | let storage = chrome.storage.local;
storage._lastData = null; // Deal with Chrome issue https://code.google.com/p/chromium/issues/detail?id=361113
storage.getItem = (key, callback) => {
chrome.storage.local.get(key, obj => {
if (obj[key]) callback(null, obj[key]);
else callback(chrome.runtime.lastError, nul... | JavaScript | 0 | @@ -616,69 +616,91 @@
%7B%0A
-// Do not need this, use storage.clear() for purgeAll instead
+chrome.storage.local.get(null, obj =%3E %7B%0A callback(null, Object.keys(obj));%0A %7D);
%0A%7D;%0A
|
661d1afd4f316db590a7c9a3812d4637c701dc06 | update conversationHandler to use Bastion Cleverbot API | handlers/conversationHandler.js | handlers/conversationHandler.js | /**
* @file conversationHandler
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license GPL-3.0
*/
const CLEVERBOT = xrequire('cleverbot.js');
const CREDENTIALS = xrequire('./settings/credentials.json');
const BOT = new CLEVERBOT({
APIKey: CREDENTIALS.cleverbotAPIkey
});
/**
* Handles conversations with Basti... | JavaScript | 0 | @@ -108,67 +108,18 @@
nst
-CLEVERBOT = xrequire('cleverbot.js');%0Aconst CREDENTIALS
+request
=
-x
requ
@@ -127,106 +127,31 @@
re('
-./settings/credentials.json');%0Aconst BOT = new CLEVERBOT(%7B%0A APIKey: CREDENTIALS.cleverbotAPIkey%0A%7D
+request-promise-native'
);%0A%0A
@@ -606,24 +606,60 @@
eturn;%0A%0A
... |
4bc73dec9677cd0439fe836c8d47bd9148f05912 | Move some code from router to external file | BackofficeBundle/Resources/public/js/backboneRouter.js | BackofficeBundle/Resources/public/js/backboneRouter.js | var OrchestraBORouter = Backbone.Router.extend({
//========[ROUTES LIST]===============================//
routes: {
'node/show/:nodeId': 'showNode',
'template/show/:templateId': 'showTemplate',
'template/create': 'createTemplate',
'contents/list/:contentTypeId': 'listContents',
'websites/list': ... | JavaScript | 0 | @@ -744,29 +744,24 @@
deId) %7B%0A
-this.
showNodeForm
@@ -2372,432 +2372,8 @@
%7D,%0A%0A
-//========%5BINTERNAL FUNCTIONS%5D========================//%0A%0A initDisplayRouteChanges: function() %7B%0A var url = '#' + Backbone.history.fragment;%0A $('nav li.active').removeClass(%22active%22);%0A $('nav ... |
c4384bc0eb70db1dc53b48b087e1463551b6487e | Use the matchToken in common | common.notifications.js | common.notifications.js | // Notifications collection
Push.notifications = new Mongo.Collection('_raix_push_notifications');
// This is a general function to validate that the data added to notifications
// is in the correct format. If not this function will throw errors
var _validateDocument = function(notification) {
// Define how tokens s... | JavaScript | 0.000001 | @@ -292,114 +292,8 @@
n) %7B
-%0A // Define how tokens should look like%0A var matchToken = Match.OneOf(%7B apn: String %7D, %7B gcm: String %7D);
%0A%0A
@@ -485,16 +485,17 @@
ptional(
+_
matchTok
@@ -527,16 +527,17 @@
tional(%5B
+_
matchTok
|
14c3ee2a8b4112ac0cce7d9decaa84cd4f7b3e9e | Update http-event-collector.js | http-event-collector/http-event-collector.js | http-event-collector/http-event-collector.js | var bunyan = require("bunyan");
var splunkBunyan = require("splunk-bunyan-logger");
module.exports = function(RED) {
function HTTPEventCollector(config) {
RED.nodes.createNode(this,config);
var context = this.context();
var node = this;
var myMessage = null;
/**
... | JavaScript | 0 | @@ -2187,34 +2187,47 @@
d, %22
-Chicken coup looks stable.
+Data from Node-RED HTTP Event Collector
%22);%0A
|
eaa6cc1aca486e07771c198c0564f85b456cc221 | change for flashcard, arrows moving | public/vishEditor/js/VISH.Editor.Flashcard.js | public/vishEditor/js/VISH.Editor.Flashcard.js | VISH.Editor.Flashcard = (function(V,$,undefined){
var init = function(){
$(document).on("click", "#flashcard_button", _onFlashcardButtonClicked );
};
var _onFlashcardButtonClicked = function(){
//first action, set excursion type to "flashcard"
V.Editor.setExcursionType("flashcard");
//hide slides
V.E... | JavaScript | 0 | @@ -698,16 +698,20 @@
ard%0A%09%09//
+ALL
THIS ACT
@@ -713,16 +713,17 @@
S ACTION
+S
WILL HA
@@ -953,22 +953,238 @@
%22, %22
-auto
+visible%22);%0A%09%09$(%22#menubar%22).css(%22z-index%22, %222000
%22);%0A
+%09%09
%0A%09%09
-%0A%09%09
+//cuando se salva en el vish.editor.js puedo recorrer todos los poiX y ver... |
1f005908a4d989ad2b6984f1fda3b83d65f95b8f | Fix failing boilerplate tests (#23234) | aio/tools/examples/example-boilerplate.spec.js | aio/tools/examples/example-boilerplate.spec.js | const path = require('canonical-path');
const fs = require('fs-extra');
const glob = require('glob');
const shelljs = require('shelljs');
const exampleBoilerPlate = require('./example-boilerplate');
describe('example-boilerplate tool', () => {
describe('add', () => {
const sharedDir = path.resolve(__dirname, 's... | JavaScript | 0 | @@ -430,17 +430,17 @@
cli: 1
-8
+9
,%0A
@@ -4007,28 +4007,23 @@
'../cli/
-.
angular
--cli
.json');
|
e51acda37585cba3d7907a06a7b7c80aae6c81b9 | Implement low-level execution method. | lib/wepay.js | lib/wepay.js | /* WePay API for Node.js
* (c)2012 Matt Farmer
* Release without warranty under the terms of the
* Apache License. For more details, see the LICENSE
* file at the root of this project.
*/
restler = require('restler');
var WePay = (function() {
/**
* The release number of wepay-node, for internal use.
**/
... | JavaScript | 0.000004 | @@ -3284,36 +3284,739 @@
on,
-access_token) %7B%0A //TODO
+token_object, callback) %7B%0A // Callback is always the last param, so if it is undefined, and token_object%0A // is a function, then swap the two.%0A if (! callback && token_object instanceof Function) %7B%0A callback = token_obje... |
c9350a96beb4f36030a010bc442d0d4e14820253 | Refactor Store constructor to support dehydrate/rehydrate. | shared/Stores/Store.js | shared/Stores/Store.js | var EventEmitter = require('eventemitter').EventEmitter;
var Store = function (data) {
EventEmitter.call(this);
this._data = data;
this.size = 0;
};
Store.prototype = Object.create(EventEmitter.prototype);
Store.prototype.constructor = Store;
Store.prototype.emitChange = function () {
this.emit('CHANGE');
};... | JavaScript | 0 | @@ -69,28 +69,28 @@
= function (
-data
+name
) %7B%0A EventE
@@ -115,36 +115,54 @@
%0A this._data =
-data
+%7B%7D;%0A this.name = name
;%0A this.size =
@@ -225,16 +225,16 @@
otype);%0A
-
Store.pr
@@ -263,16 +263,180 @@
Store;%0A%0A
+Store.prototype.dehydrate = function () %7B%0A return %5Bthis.name. this.... |
5e75459883de97c6e5925ca5af0bb6cd84b78672 | Make HashList use console.error to provide stack traces on invalid operations | shared/lib/HashList.js | shared/lib/HashList.js | "use strict";
// Hash List Utility Class -----------------------------------------------------
function HashList(max) {
this.maximum = max || -1;
this.clear();
}
// Methods --------------------------------------------------------------------
HashList.prototype = {
// General Methods --------------------... | JavaScript | 0 | @@ -1666,36 +1666,37 @@
console.
-warn
+error
('(HashList) Add
@@ -2295,12 +2295,13 @@
ole.
-warn
+error
('(H
|
38073f0a811b68f90baf632680ef8d90d67bf4a5 | Fix stop video on modal close | app/components/Modal.js | app/components/Modal.js | import React from 'react';
import PropTypes from 'prop-types';
import YTPlayer from 'youtube-player';
import styles from './Modal.scss';
let player;
const Modal = ({ title, isGallery, trailerId, children, id }) => {
window.onclick = ({ target }) => {
if (target.id === id) closeModal();
};
const closeModal ... | JavaScript | 0.000001 | @@ -135,21 +135,8 @@
';%0A%0A
-let player;%0A%0A
cons
@@ -421,32 +421,46 @@
= 'none';%0A %7D;%0A%0A
+ let player;%0A
const stopVide
|
e435c7ed479346583dad1b7c32802334dc1b0c84 | Add chart key | app/components/Stats.js | app/components/Stats.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Immutable, { List } from 'immutable';
import { VictoryBar } from "victory-native";
import {
Button,
Navigator,
StyleSheet,
Text,
ScrollView,
View,
ActivityIndicator
} from 'react-native';
import { VictoryPie } from 'v... | JavaScript | 0.000001 | @@ -1577,32 +1577,366 @@
%0A /%3E %7D%0A
+ %3CText style=%7Bstyles.list%7D%3E%0A Fuel Types:%0A BD:%09Biodiesel (B20 and above)%0A CNG: Compressed Natural Gas%0A E85:%09Ethanol (E85)%0A ELEC:%09Electric%0A HY:%09Hydrogen%0A ... |
5ecd030f46958f5fe5692b17d951ecc8ef3d97aa | Handle undefined rendered version. | src/compile/compiler.js | src/compile/compiler.js | // FIX reconsider name, but compiler.compile.compiler.compile() method calls would rock.
compiler.compile.compiler = def(
[
compiler.meta.metalator,
compiler.tools.io,
compiler.tools.error,
ephox.bolt.kernel.module.analyser,
ephox.bolt.kernel.fp.functions,
ephox.bolt.kernel.fp.object
],
f... | JavaScript | 0 | @@ -1441,16 +1441,17 @@
'%5Cn' +
+(
rendered
@@ -1450,24 +1450,31 @@
rendered%5Bid%5D
+ %7C%7C %22%22)
;%0A %7D;%0A
|
a2bb34881ac1a8050a143119091e881c69695860 | disable dashboard form only if doc is standard | frappe/desk/doctype/dashboard/dashboard.js | frappe/desk/doctype/dashboard/dashboard.js | // Copyright (c) 2019, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Dashboard', {
refresh: function(frm) {
frm.add_custom_button(__("Show Dashboard"), () => frappe.set_route('dashboard', frm.doc.name));
if (!frappe.boot.developer_mode) {
frm.disabl... | JavaScript | 0 | @@ -296,16 +296,39 @@
per_mode
+ && frm.doc.is_standard
) %7B%0A%09%09%09f
|
e52674dadd9cff7341a65e39b8bb705adca61db5 | Fix icon of media upload button after failed upload via media list | wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js | wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js | /**
* Uploads media files.
*
* @author Matthias Schmidt
* @copyright 2001-2017 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Media/List/Upload
*/
define(
[
'Core', 'Dom/ChangeListener', 'Dom/Traverse', 'Dom/Util', 'Langu... | JavaScript | 0 | @@ -1654,24 +1654,63 @@
n, 'icon');%0A
+%09%09%09elData(icon, 'add-spinner', false);%0A
%09%09%09icon.clas
@@ -2528,39 +2528,38 @@
te/Core/Upload#_
-success
+upload
%0A%09%09 */%0A%09%09_upload
@@ -2753,39 +2753,121 @@
%0A%09%09%09
-window.setTimeout(function() %7B%0A
+elData(icon, 'add-spinner', true);%0A%09%09%0... |
563d7072db04bec4a2958488ab68a471eb3ec9fb | Handle case where there are no files. | website/app/global.services/select-items/select-items.service.js | website/app/global.services/select-items/select-items.service.js | (function(module) {
module.factory('selectItems', selectItemsService);
selectItemsService.$inject = ["$modal"];
function selectItemsService($modal) {
return {
open: function() {
var tabs = {
processes: false,
files: false,
... | JavaScript | 0 | @@ -3134,24 +3134,95 @@
edFiles() %7B%0A
+ if (!showFiles) %7B%0A return %5B%5D;%0A %7D%0A
|
458f889d12f2decda892f3ede5b19076904db5bc | Delete some console.logs | components/Card/Card.js | components/Card/Card.js | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, {PropTypes} from 'react';
import config from '../../config';
import moment from 'moment';
import BlockButton from '../buttons/BlockButton'
import Progress... | JavaScript | 0.000003 | @@ -1936,91 +1936,8 @@
dth%0A
- // let hslValue = %60hsl($%7Bhue%7D, 100%25, $%7BgetLightness(Math.abs(deltaXRatio))%7D%25)%60%0A
@@ -2116,67 +2116,8 @@
lue%0A
- // document.body.style.opacity = Math.abs(deltaXRatio)%0A
%7D%0A
@@ -2191,103 +2191,27 @@
'%0A
- // document.body.style.opacity = 1%0A %... |
672d47e1ed80e25ca84f3e92750f2227a31e0ae9 | Update ShareIcon.js content | components/ShareIcon.js | components/ShareIcon.js | import React from 'react';
import Icon from './Icon';
export default ({type, url, name, description}) => {
const caption = encodeURIComponent("Support the " + name + " collective");
const body = encodeURIComponent("Support the " + name + " collective: " + url + '\n\n' + description);
const url_encoded = encode... | JavaScript | 0 | @@ -133,39 +133,45 @@
deURIComponent(%22
-Support
+I just backed
the %22 + name +
@@ -163,33 +163,32 @@
the %22 + name + %22
-
collective%22);%0A
@@ -224,15 +224,21 @@
nt(%22
-Support
+I just backed
the
@@ -293,16 +293,46 @@
cription
+ %22Join me in supporting them!%22
);%0A con
|
0f9be6da28fed64b0dd047d6411c97fce9397bec | add notification for reset and put task name in notif | front/src/components/TaskDetailProvider.js | front/src/components/TaskDetailProvider.js | import React, { Component } from 'react';
import moment from 'moment';
import { axios, getErrorMessage } from '../axios';
import notification from '../notification';
const HOURS_12 = 12 * 60 * 60 * 1000;
export default class TaskDetailProvider extends Component {
constructor(props) {
super(props);
const to... | JavaScript | 0 | @@ -797,24 +797,68 @@
(type) =%3E %7B%0A
+ const params = this.props.match.params;%0A
const op
@@ -869,16 +869,16 @@
s = %7B%7D;%0A
-
if (
@@ -1088,32 +1088,47 @@
%60Trigger $%7Btype%7D
+ $%7Bparams.task%7D
%60,%0A des
@@ -1377,16 +1377,31 @@
$%7Btype%7D
+ $%7Bparams.task%7D
%60,%0A
@@... |
e586badf3bf51b47d821a8a8e623c2c8bb1c922b | Check logic | frappe/public/js/frappe/form/controls/attach.js | frappe/public/js/frappe/form/controls/attach.js | frappe.ui.form.ControlAttach = frappe.ui.form.ControlData.extend({
make_input: function() {
let me = this;
this.$input = $('<button class="btn btn-default btn-sm btn-attach">')
.html(__("Attach"))
.prependTo(me.input_area)
.on("click", function() {
me.on_attach_click();
});
this.$value = $(
`<... | JavaScript | 0.000012 | @@ -2468,9 +2468,8 @@
if (
-!
file
|
c158f563bb89788728d49953675e0bc376beba85 | remove space for readibility | libs/getFilesSync.js | libs/getFilesSync.js | var fs = require('fs')
module.exports.getFilesSync = function (dir, files_, filter){
files_ = files_ || []
var files = fs.readdirSync(dir)
for (var i in files){
var name = dir + '/' + files[i]
if (fs.statSync(name).isDirectory()){
module.exports.getFilesSync (name, fil... | JavaScript | 0.004861 | @@ -491,17 +491,16 @@
ter && !
-
(filter.
|
bd35a3c8112657a56e0241cb392f161cd48c2112 | fix interceptor can not get router param | libs/core.js | libs/core.js | const glob = require('glob');
const nunjucks = require('nunjucks');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const env = require('../utils/env');
const memoryCache = require('../utils/memory-cache');
const parseMultiName = require('../utils/parse-multi-name');
const pa... | JavaScript | 0.000001 | @@ -1762,16 +1762,29 @@
Request,
+ matchRouter,
handleI
@@ -1794,29 +1794,16 @@
rceptor,
- matchRouter,
%0A req
|
374d8df714872fd8f2c8e7e0b74ba9beeb0e380e | Make object-literatl/getter a kata. | katas/es6/language/object-literal/getter.js | katas/es6/language/object-literal/getter.js | // 66: object-literal - getter
// To do: make all tests pass, leave the assert lines unchanged!
describe('An object literal can also contain getters', () => {
it('just prefix the property with `get` and make it a function', function() {
const obj = {
get x() { return 'ax'; }
};
assert.equal(o... | JavaScript | 0.000045 | @@ -196,16 +196,17 @@
h %60get%60
+(
and make
@@ -219,16 +219,17 @@
function
+)
', funct
@@ -252,36 +252,32 @@
t obj = %7B%0A
-get
x() %7B return 'ax
@@ -392,38 +392,39 @@
t obj = %7B%0A
-get x(
+x(param
) %7B return 'ax';
@@ -501,32 +501,65 @@
omputed property
+ (an expression enclosed in %60%5B... |
a377d85dd633af5eddfed2713c7571791dcfe60f | remove entity useless UID and added name for easy debug | ecs/Entity.js | ecs/Entity.js | let lastUID = 0;
let entitiesSet = new Set();
let componentEntities = new Map();
export default class Entity {
static getEntities(ComponentClass) {
if (!ComponentClass) {
return entitiesSet;
}
let entities = componentEntities.get(ComponentClass);
if (!entities) {
entities = new Set();
... | JavaScript | 0 | @@ -1,21 +1,4 @@
-let lastUID = 0;%0A
let
@@ -398,37 +398,49 @@
tor(
-) %7B%0A this._UID = lastUID++
+%7Bname = %22%22%7D = %7B%7D) %7B%0A this._name = name
;%0A%0A
@@ -575,19 +575,20 @@
%0A%0A get
-UID
+name
() %7B%0A
@@ -605,11 +605,12 @@
is._
-UID
+name
;%0A
|
0bb7d15ce4e380ef949d7c23f3db32d84fca2d06 | Add feedback to edit button after successful save. | frontend/src/app/components/higherOrder/edit.js | frontend/src/app/components/higherOrder/edit.js | import React from "react";
import {Button, Modal} from "react-bootstrap";
import {List} from "immutable";
export default (Component) => {
class EditForm extends React.Component {
constructor(props) {
super(props);
this.state = {show: false};
}
componentWillReceiveP... | JavaScript | 0 | @@ -259,27 +259,96 @@
tate = %7B
-show: false
+%0A show: false,%0A saveSuccessful: false%0A
%7D;%0A
@@ -501,24 +501,25 @@
nextProps;%0A
+%0A
@@ -537,16 +537,37 @@
tState(%7B
+%0A
changeSe
@@ -602,16 +602,76 @@
.toJS())
+,%0A ... |
1373a04f05faa86226c6579a482ae6c4c87a640e | Update entry.js | javascript/es6/entry.js | javascript/es6/entry.js | /** import sections */
import Grid from './dev/grid';
/** attaching behaviors to global object */
window.SilverStripe.behaviors.Grid = new Grid(); | JavaScript | 0.000001 | @@ -46,16 +46,101 @@
v/grid';
+%0Aimport PageTransitions from './dev/page_transitions';%0Aimport Body from './dev/body';
%0A%0A/** at
@@ -225,8 +225,130 @@
Grid();
+%0Awindow.SilverStripe.behaviors.PageTransitions = new PageTransitions();%0Awindow.SilverStripe.behaviors.Body = new Body();%0A%0A
|
833a90177c8577730499b288bd04446e2e6bdc8e | add quotes to themes, fix #3 | src/js/editableThemes.js | src/js/editableThemes.js | /*
Editable themes:
- default
- bootstrap 2
- bootstrap 3
Note: in postrender() `this` is instance of editableController
*/
angular.module('xeditable').factory('editableThemes', function() {
var themes = {
//default
default: {
formTpl: '<form class="editable-wrap"></form>',
nofo... | JavaScript | 0 | @@ -231,23 +231,25 @@
lt%0D%0A
+'
default
+'
: %7B%0D%0A
@@ -775,19 +775,21 @@
s2%0D%0A
+'
bs2
+'
: %7B%0D%0A
@@ -1546,19 +1546,21 @@
s3%0D%0A
+'
bs3
+'
: %7B%0D%0A
|
3b86a2b62daade3103a8c2098aef018df1549be5 | appropriate filename | listen-to.js | listen-to.js | #!/usr/bin/env node
var del = require('del');
var fs = require('fs');
var Player = require('player');
var program = require('commander');
var request = require('superagent');
var youtubedl = require('youtube-dl');
function searchMusic(query, cb) {
superagent
.get('http://partysyncwith.me:3005/search/'+ query +'/1... | JavaScript | 0.999936 | @@ -1086,20 +1086,20 @@
Stream('
-song
+temp
.mp3'));
@@ -1133,20 +1133,20 @@
ayer('./
-song
+temp
.mp3');%0A
@@ -1216,32 +1216,33 @@
nd!');%0A %7D);
+q
%0A%0A del(%5B'so
@@ -1243,12 +1243,12 @@
l(%5B'
-song
+temp
.mp3
|
b819e51a025f78ddd10d994b7377995fbdfacdfa | fix moment | site/bisheng.config.js | site/bisheng.config.js | const path = require('path');
module.exports = {
port: 8001,
source: [
'./components',
'./docs',
'CHANGELOG.md', // TODO: fix it in bisheng
],
lazyLoad: true,
entry: {
index: {
theme: './site/theme',
htmlTemplate: './site/theme/static/template.html',
},
'kitchen-sink': {
... | JavaScript | 0.000006 | @@ -672,16 +672,59 @@
nfig) %7B%0A
+ config.module.noParse = %5B/moment.js/%5D;%0A
conf
|
5bcc7adf040230daaa488377a737a9c534ea2837 | add differentialCentrifugalSedimentation and hgPorosimetry | eln/jpaths.js | eln/jpaths.js | import Datas from 'src/main/datas';
import API from 'src/util/api';
const DataObject = Datas.DataObject;
const jpaths = {};
// general
jpaths.image = ['$content', 'image'];
jpaths.video = ['$content', 'video'];
jpaths.attachments = ['attachmentList'];
// For samples
jpaths.sampleCode = ['$id', 0];
jpaths.batchCode ... | JavaScript | 0 | @@ -2311,24 +2311,256 @@
tammetry'%5D;%0A
+jpaths.hgPorosimetry = %5B'$content', 'spectra', 'hgPorosimetry'%5D;%0Ajpaths.differentialCentrifugalSedimentation = %5B'$content', 'spectra', 'differentialCentrifugalSedimentation'%5D;%0Ajpaths.disc = %5B'$content', 'spectra', 'hgPorosimetry'%5D;%0A
jpaths.eleme
|
20fc024365638d8ea5516efddc0ccdf09470f576 | Use chai.assert in typeAssertionModule tests. | test/feature/TypeAssertions/resources/assert.js | test/feature/TypeAssertions/resources/assert.js | export var assert = this.assert;
assert.type = function (actual, type) {
if (type === $traceurRuntime.type.any) {
return actual;
}
if (type === $traceurRuntime.type.void) {
assert.isUndefined(actual);
return actual;
}
if ($traceurRuntime.type[type.name] === type) {
// chai.assert treats Num... | JavaScript | 0 | @@ -17,12 +17,12 @@
t =
-this
+chai
.ass
|
2dee01a23db8df87df7725c4e331eff02dfac8c4 | Generate specs dynamically | ssr-express/spec/lib/AmpSsrMiddlewareSpec.js | ssr-express/spec/lib/AmpSsrMiddlewareSpec.js | /**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | 0.999994 | @@ -2077,140 +2077,8 @@
);%0A%0A
- it('Skips Resource Requests', () =%3E %7B%0A const staticResources = %5B'/image.jpg', '/image.svg', '/script.js', '/style.css'%5D;%0A
@@ -2104,26 +2104,24 @@
= url =%3E %7B%0A
-
runMid
@@ -2155,26 +2155,24 @@
rl)%0A
-
-
.then(result
@@ -2169,34 ... |
ef020e254052cdaf7d0afc53379ec380270c0bd0 | remove some manual reflect metadata manipulation | generators/app/templates/gulp_tasks/systemjs.js | generators/app/templates/gulp_tasks/systemjs.js | const gulp = require('gulp');
const replace = require('gulp-replace');
<% if (framework === 'angular1' && js !== 'typescript') { -%>
const Builder = require('systemjs-builder');
<% } else if (framework === 'angular2') { -%>
const Builder = require('jspm').Builder;
const inlineNg2Template = require('gulp-inline-ng2-tem... | JavaScript | 0 | @@ -567,53 +567,8 @@
));%0A
-gulp.task('systemjs:html', updateIndexHtml);%0A
%3C%25 %7D
@@ -612,16 +612,25 @@
temjs);%0A
+%3C%25 %7D -%25%3E%0A
gulp.tas
@@ -665,25 +665,16 @@
exHtml);
-%0A%3C%25 %7D -%25%3E
%0A%0Afuncti
|
aea57e14badda691d7fc971b04619d5b103efcce | delete console | src/board/basic_block.js | src/board/basic_block.js | "use strict";
goog.require('Entry.STATIC');
Entry.block.run = {
skeleton: "basic",
color: "#3BBD70",
contents: [
"this is",
"basic block"
],
func: function() {
}
};
Entry.block.jr_start = {
skeleton: "pebble_event",
color: "#3BBD70",
contents: [
{
... | JavaScript | 0.000004 | @@ -508,38 +508,8 @@
) %7B%0A
- console.log('start');%0A
|
4fa9d210dae2bbb7a288cbd572e58a3ede64d97b | fix tz | js/application/action/api.js | js/application/action/api.js | if(App.namespace) { App.namespace('Action.Api', function(App) {
/**
* @namespace App.Action.Api
* @type {*}
*/
var api = {};
var Error = null;
/**
* @namespace App.Action.Api.init
* @param error
*/
api.init = function(error) {
Error = App.Action.Error;
};
... | JavaScript | 0.000003 | @@ -695,123 +695,8 @@
(),%0A
- visitortime = new Date(),%0A visitortimezone = %22GMT %22 + -visitortime.getTimezoneOffset()/60,%0A
@@ -1450,318 +1450,59 @@
-var tz = jstz.determine();%0A var date = new Date();%0A var hrs = date.toString().match(/(%5BA-Z%5D+%5B%5... |
7db1dc907a7e4b156ff5aebc8671758124afe3ca | revert generic.js | js/base/functions/generic.js | js/base/functions/generic.js | "use strict";
/* ------------------------------------------------------------------------ */
const { isObject, isNumber, isInteger, isDictionary, isArray } = require ('./type')
/* ------------------------------------------------------------------------ */
const keys = Object.keys
, values = x => !isArray (x)... | JavaScript | 0.000001 | @@ -120,19 +120,8 @@
ber,
- isInteger,
isD
@@ -2195,247 +2195,8 @@
%7D
-%0A%0A Array objects itself can be array too:%0A array = %5B%0A %5B7900.0, 10.0%5D,%0A %5B7901.0, 8.8%5D,%0A %5D%0A key = 0%0A%0A Returns:%0A %7B%0A 7900.0: %5B7900.0, 10.0%5D,%0A... |
5e71ceced825a8495725c24d3790fbe564de237a | Make 'height' property of wire-handle | js/components/wire-handle.js | js/components/wire-handle.js | (function(app) {
'use strict';
var jCore = require('jcore');
var dom = app.dom || require('../dom.js');
var WireHandle = jCore.Component.inherits(function(props) {
this.cx = this.prop(props.cx);
this.cy = this.prop(props.cy);
this.type = this.prop(props.type);
this.visible = this.prop(props.vi... | JavaScript | 0.00258 | @@ -406,16 +406,49 @@
op(24);%0A
+ this.height = this.prop(24);%0A
this
@@ -731,29 +731,30 @@
, cy - this.
-width
+height
() / 2);%0A
|
da1e58a7c5b6a722e64a8d92da757b7ed74014b0 | Handle case where no directory is resolved | src/lib/ModuleBundler.js | src/lib/ModuleBundler.js | import Promise from 'bluebird'
import path, { sep } from 'path'
import fs from 'fs-extra'
import resolvePackage from 'resolve-pkg'
import { walker, handleFile } from './utils'
import UglifyTransform from './transforms/Uglify'
Promise.promisifyAll(fs)
/**
* @class ModuleBundler
*
* Handles the inclusion of node_... | JavaScript | 0.000001 | @@ -3478,16 +3478,80 @@
geDir %7D)
+%0A%0A if ( ! resolvedDir ) continue%0A
%0A
|
87d5f4c8bc11c855b4d675954d6ca150cf7a484f | Use 'helper' from WebGLHelper in tests | test/spec/ol/renderer/webgl/pointslayer.test.js | test/spec/ol/renderer/webgl/pointslayer.test.js | import Feature from '../../../../../src/ol/Feature.js';
import Point from '../../../../../src/ol/geom/Point.js';
import VectorLayer from '../../../../../src/ol/layer/Vector.js';
import VectorSource from '../../../../../src/ol/source/Vector.js';
import WebGLPointsLayerRenderer from '../../../../../src/ol/renderer/webgl/... | JavaScript | 0.000004 | @@ -1896,17 +1896,16 @@
r.helper
-_
, 'prepa
|
711be69effacb9548a9e3d55f9571f2da316d44c | Allow alternate XMLHttpRequest in Client | proximal.js | proximal.js | /*
* proximal - minimal JSON RPC over HTTP with Proxy/Promise interface
* https://github.com/gavinhungry/proximal
*/
((global, props, factory) => {
(typeof define === 'function' && define.amd) ? define(props.name, factory) :
(typeof module === 'object' && module.exports) ? module.exports = factory() :
global[... | JavaScript | 0.000001 | @@ -537,16 +537,89 @@
ndpoint%0A
+ * @param %7BFunction%7D %5Bopts.xhr%5D - alternate XMLHttpRequest constructor%0A
*/%0A
@@ -762,32 +762,77 @@
red');%0A %7D%0A%0A
+ this.XHR = opts.xhr %7C%7C XMLHttpRequest;%0A
this.url =
@@ -1402,30 +1402,24 @@
r = new
-XMLHttpRequest
+this.XHR
();%0A ... |
7551ab2aadf2c73553299888a38e2c05c85c79a1 | use semantic commit message in bump command hint (#120) | src/cli/commands/bump.js | src/cli/commands/bump.js | /**
* Copyright 2018, Google, Inc.
* 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 i... | JavaScript | 0 | @@ -4523,16 +4523,23 @@
mit -m %22
+chore:
bump ver
|
76e97a6de35dafb1e6602a05857fde78c4e94799 | Fix expand / collapse | src/client/info-panel.js | src/client/info-panel.js | import React from 'react'
class InfoPanel extends React.Component {
constructor() {
super()
this.state = {
collapsed: true
}
}
render() {
if (this.state.collapsed) {
return <div id="side-info-panel-open" onClick={this.expand}><</div>
}
return <div className="side-info-pan... | JavaScript | 0.000004 | @@ -253,16 +253,27 @@
s.expand
+.bind(this)
%7D%3E<%3C/
@@ -386,16 +386,27 @@
collapse
+.bind(this)
%7D%3ESulje%3C
|
b7e4d112e0b908e718b7cf03a8acd5369f5c8dfa | Implement prompting | src/command-line-tool.js | src/command-line-tool.js |
const core = require('./core'),
nodeGetoptLong = require('node-getopt-long'),
P = require('bluebird'),
config = require('./config')
const commands = {
'list': list(),
'create': create(),
'run': run(),
'ensure-no-development-scripts': ensureNoDevelopmentScripts()
}
P.try(async function () {
const cmdL... | JavaScript | 0.000153 | @@ -131,16 +131,50 @@
config')
+,%0A readline = require('readline')
%0A%0Aconst
@@ -2450,79 +2450,251 @@
%7B%0A
-process.stdout.write(prompt + ': ')%0A throw new Error(%22TODO: implement%22)%0A%7D
+const readlineImpl = readline.createInterface(%7B%0A input: process.stdin,%0A output: process.stdout%0A %7D... |
61b0864ba829feefec7ead60e3d40fc1183efa2f | avoid showing content when show is false | src/comments/Comments.js | src/comments/Comments.js | import React, { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import CommentsList from './CommentsList';
import * as commentsActions from './commentsActions';
import { getCommentsFromState } from '../helpers/stateHelpers';
import Loading from '..... | JavaScript | 0.999766 | @@ -1414,16 +1414,22 @@
lassName
+, show
%7D = thi
@@ -1437,16 +1437,59 @@
.props;%0A
+ if (!show) %7B%0A return null;%0A %7D%0A%0A
cons
|
bd649ef0e5215cf83f92482ec5be2b50cf6e145a | fix role not being assigned | src/manage/room/spawn.js | src/manage/room/spawn.js | /*
* manage Spawn system
*
* handles spawning for all rooms
*
*/
var Spawn = function() {
// init
};
Spawn.prototype.doRoom = function(room) {
if (!room) { return -1; }
let energy = room.energyAvailable;
let maxEnergy = room.energyCapacityAvailable * C.SPAWN_ENERGY_MAX;
if (energy < C.ENERG... | JavaScript | 0 | @@ -1965,24 +1965,65 @@
= room.name;
+%0A args.role = records%5Br%5D.role;
%0A%0A
@@ -2438,25 +2438,8 @@
ody,
- records%5Br%5D.role,
arg
@@ -3331,14 +3331,8 @@
ody,
- role,
arg
@@ -3488,16 +3488,21 @@
getName(
+args.
role);%0A%0A
|
e920b754e7134c879f726f03a1aaa7db3eb5aac6 | Add method to request | src/common/api/client.js | src/common/api/client.js | import axios from 'axios';
import get from 'lodash/get';
import constants from '../../../app/constants/AppConstants';
import { getUrl, getHeaders } from './utils';
export class ApiClient {
baseUrl;
constructor(baseUrl) {
this.baseUrl = baseUrl;
}
request = async ({
method,
endpoint,
data = {... | JavaScript | 0 | @@ -470,24 +470,40 @@
.request(%7B%0A
+ method,%0A
url:
|
d8c2b5b5c4ca0cbf6fc5e2703b4dd3137286a4d1 | Fix post model default fields | src/common/model/post.js | src/common/model/post.js | 'use strict';
/**
* model
*/
export default class extends think.model.mongo {
init(...args) {
super.init(...args);
this.schema = {
authorId: {
type: 'string',
required: true
},
title: {
type: 'string',
required: true
},
content: {
t... | JavaScript | 0 | @@ -401,9 +401,45 @@
lt:
-0
+() =%3E %7B%0A return 0;%0A %7D
%0A
@@ -504,13 +504,49 @@
lt:
-false
+() =%3E %7B%0A return false;%0A %7D
%0A
|
afd57893475a8d91e2f8957d70c28231d549a1cb | Use IndexLink for abakus logo | src/components/Header.js | src/components/Header.js | import '../styles/Header.css';
import React, { PropTypes, Component } from 'react';
import { Link } from 'react-router';
import { Modal } from 'react-overlays';
import cx from 'classnames';
import LoginForm from './LoginForm';
import { ButtonTriggeredDropdown } from './ui';
const Search = ({ closeSearch }) => (
<di... | JavaScript | 0 | @@ -90,16 +90,27 @@
t %7B Link
+, IndexLink
%7D from
@@ -1795,32 +1795,37 @@
er'%3E%0A %3C
+Index
Link to='' class
@@ -1817,16 +1817,17 @@
ink to='
+/
' classN
@@ -1853,16 +1853,21 @@
Abakus%3C/
+Index
Link%3E%0A%0A
|
be215599108fc42ceea844229d55b80a3b6fd2eb | make brand clickable | src/components/Header.js | src/components/Header.js | import React from 'react';
import { connect } from 'react-redux';
import { Navbar, CollapsibleNav, Nav, NavItem, Glyphicon } from 'react-bootstrap';
import { PATH_COMMENT_NEW, PATH_COMMENT_LIST } from 'constants';
@connect(state => ({
dispatch: state
}))
export class Header extends React.Component {
static propTyp... | JavaScript | 0.000016 | @@ -206,16 +206,53 @@
stants';
+%0Aimport %7B Link %7D from 'react-router';
%0A%0A@conne
@@ -952,24 +952,108 @@
render () %7B%0A
+ const homeUrl = (%3CLink to=%22/%22%3E%3CGlyphicon glyph=%22leaf%22/%3E React-comments%3C/Link%3E);%0A
return (
@@ -1095,24 +1095,17 @@
and=
-%22React-Comments%22
+%7BhomeUrl%7D... |
091c854013791d331d089fc30d01b14bc3e3740b | Revert "Update Header.js" | src/components/Header.js | src/components/Header.js | import React from 'react';
import Reel from './Reel';
import particles from 'particles.js';
const Header = React.createClass({
getInitialState(){
return({
playing: false
})
},
componentDidMount(){
particlesJS.load('particles-js', 'assets/particles.json');
},
togglePlay(){
this.setState... | JavaScript | 0 | @@ -750,18 +750,28 @@
am a
- UX Engine
+n interaction design
er s
@@ -791,23 +791,16 @@
n motion
- design
, protot
|
1456fa7819d1f3f49de550bdcab9e9bafe54189e | update narrow links | src/components/Header.js | src/components/Header.js | import React from 'react';
import { Link } from 'gatsby';
import PropTypes from 'prop-types';
import {
SprkTextInput,
SprkLink,
SprkMasthead,
} from '@sparkdesignsystem/spark-react';
import SiteLogo from './site-logo';
import { useInstallingSparkData } from '../hooks/use-installing-spark';
import { useUsingSparkD... | JavaScript | 0 | @@ -2021,32 +2021,43 @@
: %60/using-spark/
+components/
$%7Bpage.node.pare
@@ -2059,32 +2059,32 @@
.parent.name%7D%60,%0A
-
element: L
@@ -2236,32 +2236,41 @@
: %60/using-spark/
+examples/
$%7Bpage.node.pare
@@ -2431,32 +2431,32 @@
ntmatter.title,%0A
-
to: %60/usin
@@ -2455,32 +2455,44 @@
: %60/usi... |
e6e7f942e2b38992f5834c77f257c26841d78903 | Convert to react-bootstrap buttons. | src/components/Recipe.js | src/components/Recipe.js | import React from 'react';
import PropTypes from 'prop-types';
const Recipe = ({ title, ingredients, removeRecipe }) => {
return (
<div className='recipe-container'>
<h4>{title}</h4>
<ul>{ingredients}</ul>
<button onClick={() => removeRecipe(title)} className="btn btn-danger">Delete</butt... | JavaScript | 0.004786 | @@ -55,16 +55,58 @@
-types';
+%0Aimport %7B Button %7D from 'react-bootstrap';
%0A%0Aconst
@@ -136,16 +136,32 @@
edients,
+ showEditRecipe,
removeR
@@ -289,17 +289,17 @@
%3C
-b
+B
utton on
@@ -311,22 +311,24 @@
=%7B() =%3E
-remove
+showEdit
Recipe(t
@@ -358,14 +358,98 @@
tn-d
-anger%22
+efault%22%3EE... |
b69f00d221eb721987c8ee7e895c77cca37824b2 | change message | src/components/Render.js | src/components/Render.js | import Block from './Block';
import BlockStyle from './Block.less';
import getChar from './Alphabet';
/** Parent Render Class */
export default class Render {
constructor(element) {
this.width = 20;
this.height = 5;
this.rows = 5;
this.cols = 5;
this.blocks = [];
this.element = element;
t... | JavaScript | 0.000001 | @@ -332,12 +332,21 @@
= '
-wxyz
+paul j karlik
';%0A
|
e3a4b9dbd14336dc2232c5e813e42d12f9be278e | 删除页面中iframe元素,大多情况下是广告 | removeAD.js | removeAD.js | for(var i=0;i<5;i++){
setTimeout(function(){
removeAD();
},1000*i);
}
function removeAD(){
if(/.*\.qq\.com.*/.test(location.href)){//qq.coms
$("div[bosszone='rightAD'],.l_qq_com").remove();
}
//$("iframe").remove();
$("[class]").each(function(){
var classArr= this.className.split(" ");
for(var i... | JavaScript | 0 | @@ -201,18 +201,16 @@
;%0A%09%7D%0A%09%0A%09
-//
$(%22ifram
@@ -700,17 +700,16 @@
%09
-
%22_ad$%22,%22
|
5e17745cf13a8126c0a956c4ac5b544b0538c93b | add API function stub | src/model/LocationApi.js | src/model/LocationApi.js | 'use strict';
/**
* Model layer API functions for the {@link Location} class (used by
* GSJS code). These functions are attached to `Location.prototype` at
* server startup.
*
* @mixin
*/
var LocationApi = module.exports = function LocationApi() {};
/**
* Puts the item into the location at the given position... | JavaScript | 0 | @@ -5426,12 +5426,275 @@
h(path);%0A%7D;%0A
+%0A%0ALocationApi.prototype.apiNotifyItemStateChanged =%0A%09function apiNotifyItemStateChanged(item) %7B%0A%09log.debug('%25s.apiNotifyItemStateChanged(%25s)', this, item);%0A%09//TODO implement&document me%0A%09log.warn('TODO Location.apiNotifyItemStateChanged not impleme... |
2fa869f19aea532c09e03916091baaca21b592cb | add loading icon for non-apple device | src/components/Weeper.js | src/components/Weeper.js | import React from 'react';
import Grid from '../containers/Grid';
import ControlBar from '../containers/ControlBar';
import ConfigBar from '../containers/ConfigBar';
import ConfigPanel from '../containers/ConfigPanel';
import { BlockRecord } from '../minesweeper';
import Radium from 'radium';
const style = {
base: {
... | JavaScript | 0.000001 | @@ -286,16 +286,61 @@
radium';
+%0Aimport hasFont from '../hasAppleColorEmoji';
%0A%0Aconst
@@ -1857,16 +1857,74 @@
(%0A%09%3Cspan
+ className=%7BhasFont() %7C%7C %22emoji s_hourglass_flowing_sand%22%7D
style=%7B
|
e4bca60752c777af40dd872f66a3a495c1392d84 | fix to re-resolve plugins when placeholder props change, closes #601 | src/components/editor.js | src/components/editor.js |
import Content from './content'
import Debug from 'debug'
import React from 'react'
import Stack from '../models/stack'
import State from '../models/state'
import noop from '../utils/noop'
/**
* Debug.
*
* @type {Function}
*/
const debug = Debug('slate:editor')
/**
* Event handlers to mix in to the editor.
*
... | JavaScript | 0 | @@ -589,16 +589,81 @@
NDLERS,%0A
+ 'placeholder',%0A 'placeholderClassName',%0A 'placeholderStyle',%0A
'plugi
|
6f5a66600b80112f7694b5bcb1f2b7f6e06c3fed | add selecting | wsgi/static/js/main.js | wsgi/static/js/main.js | //main.js
/*var flights = [[{dest: "Poland", price: "242", carrier: "Ryan Air"},
{dest: "Poland", price: "60", carrier: "British Airways"},
{dest: "Poland", price: "260", carrier: "Joe's Hardware"}],
[ {dest: "Bristol", price: "160", carrier: "British Airways"},
... | JavaScript | 0 | @@ -1221,24 +1221,118 @@
%7D%0A %7D);%0A%0A
+ $(%22.friendlist tr%22).on(%22click%22, function() %7B%0A $(this).toggleClass(%22active%22);%0A %7D%0A
$('#sear
|
023dbf44d6403d78ff97b7a12606652bae7eacfa | add comments to special handling | src/Main/ProgressBar.js | src/Main/ProgressBar.js | import React from 'react';
import PropTypes from 'prop-types';
const BACKGROUND_COLOR = '#fff';
const FILL_COLOR = '#fb6d35';
const FULL_FILL_COLOR = '#1d9c07';
const ProgressBar = props => {
const { width, height, percentage } = props;
const wrapperWidth = width + 2 * height;
const fillColor = percentage === 1... | JavaScript | 0 | @@ -234,16 +234,205 @@
props;%0A
+ // We use round stroke so there is additional width created by the border radius.%0A // Add the height(radius of the bar) to the wrapper's width to make sure the bars presented correctly.%0A
const
|
bdf75ef0932f136278e22159a33c935e2017edf1 | Remove people that left | config.notifications.js | config.notifications.js | 'use strict'
module.exports = [
{
user: '@michal.brasna',
services: ['tankovna', 'lokal-hamburk', 'globus']
},
{
user: '@jan.pavlovsky',
services: ['peters', 'meat-market', 'globus', 'u-sani', 'lokal-hamburk']
},
{
user: '@ottokovarik',
services: ['tankovna', 'lokal-hamburk', 'globus'... | JavaScript | 0 | @@ -911,268 +911,72 @@
: '@
-adamsobotka',%0A services: %5B'tankovna', 'lokal-hamburk', 'meat-market', 'globus'%5D%0A %7D,%0A %7B%0A user: '@tomasbauer',%0A services: %5B'tankovna', 'lokal-hamburk', 'globus'%5D%0A %7D,%0A %7B%0A user: '@navratj',%0A services: %5B'tankovna', 'lokal-hamburk', 'u-zabra... |
7bb941bfc106c9fd6501c963f6c8851f3c45e21d | add new build | jquery.instagram.min.js | jquery.instagram.min.js | (function($){"use strict";$.fn.instagram=function(options){var $this=this,settings={tag:null,client_id:null,proxy:null,display:5};for(var key in settings)options.hasOwnProperty(key)&&options[key]!==void 0&&(settings[key]=options[key]);$.ajax({url:settings.proxy,type:"GET",data:{client_id:settings.client_id,tag:settings... | JavaScript | 0 | @@ -266,16 +266,32 @@
e:%22GET%22,
+dataType:%22json%22,
data:%7Bcl
@@ -358,16 +358,34 @@
n(data)%7B
+console.log(data);
for(var
|
4dea9ba580380ad33ea8521c8335e42d15451901 | Remove redundant ref causing crash in React 16.1 (#643) | src/MessageContainer.js | src/MessageContainer.js | /* eslint
no-console: 0,
no-param-reassign: 0,
no-use-before-define: ["error", { "variables": false }],
no-return-assign: 0,
react/no-string-refs: 0
*/
import PropTypes from 'prop-types';
import React from 'react';
import { ListView, View, StyleSheet } from 'react-native';
import shallowequal fro... | JavaScript | 0 | @@ -4040,24 +4040,8 @@
View
- ref=%22container%22
sty
|
be890bdcdb55c225f29a0d57ffa40d47b71ed90f | fix again | www/js/impl/Content.js | www/js/impl/Content.js | var Content = function(jQueryL18n, cda){
this.jQueryL18n = jQueryL18n;
this.cda = cda;
};
Content.prototype = Object.create(IContent);
Content.prototype.initializeL18n = function(lang) {
this.jQueryL18n.properties(lang);
};
Content.prototype.loadMessages = function(withinDivId) {
var j = this.jQueryL18n;
$(with... | JavaScript | 0 | @@ -1151,20 +1151,24 @@
nDivId,
-this
+instance
);%0A%09%09%7D%0A%09
|
3c862e8187b93e4ec4e358b77d97527db7dfa64f | Clean view.js | core/view.js | core/view.js | "use strict";
// Работа с канвой, отрисовкой и масштабированием
function View(canvas, fast)
{
this.scale = 1.0;
this.offsetX = 0.0;
this.offsetY = 0.0;
this.canvas = fast ? fast : canvas;
var ctx = canvas.getContext('2d'), fctx = fast.getContext('2d');
/*var h = canvas.clientHeight, w = canvas.... | JavaScript | 0.000001 | @@ -91,20 +91,35 @@
)%0A%7B%0A
-this
+var v = this;%0A v
.scale =
@@ -124,28 +124,25 @@
= 1.0;%0A
-this
+v
.offsetX = 0
@@ -149,20 +149,17 @@
.0;%0A
-this
+v
.offsetY
@@ -171,20 +171,17 @@
0;%0A%0A
-this
+v
.canvas
@@ -277,174 +277,8 @@
');%0A
- /*var h = canvas.clientHeight, w = canvas... |
5fe313014b3155a3d9e2df01e165c92d06c8d5b5 | Hide time if type of input is date | src/components/Input.js | src/components/Input.js | import _ from 'lodash' // eslint-disable-line
import React, {PropTypes} from 'react'
import warning from 'warning'
import ReactDatetime from 'react-datetime'
import Inflection from 'inflection'
import ReactQuill from 'react-quill'
import Select from 'react-select'
import {FormGroup, Checkbox, ControlLabel, FormControl,... | JavaScript | 0.999847 | @@ -2345,16 +2345,75 @@
:00 AM'%0A
+ if (type === 'date') inputProps.timeFormat = false%0A
|
ee5916cf447c9134d9080e006540e70fee051f54 | add m.ls.copy menu | src/pages/debug/index.js | src/pages/debug/index.js | console.log('__DEBUG_MODE__')
const menu = require('chrome-console-debug-menu')
const { resetLocalStorage, serializeLocalStorage } = menu
global.m = menu.create('m', {
ls: {
description: 'localStorage controls',
methods: {
clear: {
description: 'Clear localStorage',
func () {
... | JavaScript | 0 | @@ -1,12 +1,31 @@
+/* global copy */%0A%0A
console.log(
@@ -563,24 +563,187 @@
%7D%0A %7D,%0A
+ copy: %7B%0A description: 'copy the data to clipboard',%0A func (message) %7B%0A return copy(serializeLocalStorage(message))%0A %7D%0A %7D,%0A
preset
|
5b321f903b7d32bf0fef4516bfc033450dfa6693 | remove incorrect margin styling | src/components/styles.js | src/components/styles.js | export var styles = {
errorBox: {
fontFamily: "sans-serif",
border: 1,
borderColor: "#FF3131",
borderStyle: "dashed",
padding: 3,
borderRadius: 3,
background: "#FFF2F2",
position: "relative",
top: 8,
left: 6,
},
logos: {
container: {
display: "flex",
height:... | JavaScript | 0.000002 | @@ -1289,37 +1289,16 @@
white%22,%0A
- marginLeft: 3,%0A
%7D,%0A
|
8837537a804a9b3740c546b5bbe990e4e2d816ee | rename heatCoolSlider to slider, https://github.com/phetsims/scenery-phet/issues/442 | js/HeaterCoolerFront.js | js/HeaterCoolerFront.js | // Copyright 2015-2018, University of Colorado Boulder
/**
* Front of the HeaterCoolerNode. It is independent from the HeaterCoolerBack so that one can easily layer objects
* inside of the HeaterCoolerNode. The HeaterCoolerFront contains the heater body, labels, and control slider.
*
* @author Siddhartha Chintha... | JavaScript | 0 | @@ -4737,33 +4737,25 @@
%0A this.
-heatCoolS
+s
lider = new
@@ -5942,33 +5942,25 @@
ed ) %7B this.
-heatCoolS
+s
lider.addMaj
@@ -5992,33 +5992,25 @@
%0A this.
-heatCoolS
+s
lider.addMin
@@ -6058,33 +6058,25 @@
ed ) %7B this.
-heatCoolS
+s
lider.addMaj
@@ -6167,17 +6167,9 @@
his.
-heatCoolS
+s
lide... |
edf23fc243cb89c11326008bc48298cd60ad3f5d | make selectRange undefined when clicking out of it | src/components/Score.js | src/components/Score.js | import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { setSelectRange } from '../actions/cursor';
import { scoreSelector } from '../util/selectors';
import Measure from '.... | JavaScript | 0 | @@ -3818,51 +3818,163 @@
%7D);%0A
- this.props.setSelectRange(selectRange);
+%0A if(Object.keys(selectRange).length %3E 0) %7B%0A this.props.setSelectRange(selectRange);%0A %7D else %7B%0A this.props.setSelectRange(undefined);%0A %7D
%0A%0A
|
c7436cae90ea76af38d9cc5d85ed1f86fa7bf8d5 | Update chart.js | src/components/chart.js | src/components/chart.js | import React from 'react'
import {Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'
import _ from 'lodash'
function average(data){
console.log('data--',data.length);
return _.round(_.sum(data)/data.length)
}
export default (props)=>{
return (
<div>
<Sparklines data={props... | JavaScript | 0.000001 | @@ -157,45 +157,8 @@
a)%7B%0A
- console.log('data--',data.length);%0A
re
|
aca6a373564ee381b0c401b7528c814a78e52768 | fix contaxt of select-option initial onChange call | src/pat/select-option.js | src/pat/select-option.js | /**
* Patterns checkedflag - Add checked flag to checkbox labels
*
* Copyright 2013 Simplon B.V. - Wichert Akkerman
* Copyright 2013 Florian Friesdorf
*/
define([
"jquery",
"../registry",
"../utils"
], function($, patterns, utils) {
var select_option = {
name: "select-option",
trigg... | JavaScript | 0 | @@ -472,17 +472,26 @@
onChange
-(
+.call(this
);%0A
|
eafc0d202e6a83a7c694b97d021b3229d5949169 | Add comment about #clockwise magic happening in #append*() methods. | src/path/CompoundPath.js | src/path/CompoundPath.js | /*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* Copyright (c) 2011, Juerg ... | JavaScript | 0 | @@ -1118,16 +1118,88 @@
fined).%0A
+%09%09%09// TODO: This should really be handled in appendTop / Bottom, right?%0A
%09%09%09if (p
|
a0b5f87465d0f21de97dc937e3cc6ac6ba0bdcf6 | Fix error in panel-link click handling. | src/patterns/carousel.js | src/patterns/carousel.js | /**
* @license
* Patterns @VERSION@ carousel
*
* Copyright 2012 Simplon B.V.
*/
define([
"jquery",
"../logging",
"../core/parser",
"../3rdparty/jquery.anythingslider"
], function($, logging, Parser) {
var log = logging.getLogger("carousel"),
parser = new Parser();
parser.add_argume... | JavaScript | 0 | @@ -2242,23 +2242,48 @@
, null,
+%7B
control
+: control, index: index%7D
, carous
@@ -2519,46 +2519,19 @@
-var control = event.data;%0A
+event.data.
cont
@@ -2543,16 +2543,27 @@
otoPage(
+event.data.
index, f
|
cbfd3db3b642f916659b90894818c94bbba4d842 | add removeTailPeriodFormatter | src/answer-formatter.js | src/answer-formatter.js | var toStringFormatter = function(answer){
return answer.toString();
};
var toLowerCaseFormatter = function(answer){
return answer.toLowerCase();
};
var stringFormUtils = require('string-form-utils');
var fullwidthFormatter = function(answer){
return stringFormUtils.transformToHalfwidth(answer);
};
var removeSpace... | JavaScript | 0.000032 | @@ -378,24 +378,119 @@
g, '');%0A%7D;%0A%0A
+var removeTailPeriodFormatter = function(answer)%7B%0A%09return answer.replace(/%5E(.+)%E3%80%82$/, '$1');%0A%7D;%0A%0A
var numberFo
@@ -675,16 +675,44 @@
matter,%0A
+%09removeTailPeriodFormatter,%0A
%09numberF
|
cf4e85dbe185852a03b979bf6f2d46a19eb70d0d | test a vdom injection export for preact smoke test | src/preact/index.test.js | src/preact/index.test.js | /* global describe, it, expect */
import { createStore } from "./index";
describe("preact/index", () => {
it("smoke test", () => {
expect(createStore).toBeTruthy();
});
});
| JavaScript | 0 | @@ -37,27 +37,25 @@
mport %7B
-createStore
+Container
%7D from
@@ -141,32 +141,41 @@
ect(
-createStore).toBeTruthy(
+typeof Container).toBe(%22function%22
);%0A
|
26f74d2f2e8857b8113e83e0f8b48152a95bc9bd | Correct code | js/variables_dynamic.js | js/variables_dynamic.js | var sentence = 2;
var sentence = "This is the sentence.";
console.log(sentence);
console.log(sentence); | JavaScript | 0.999882 | @@ -11,20 +11,16 @@
ce = 2;%0A
-var
sentence
|
6755a64bbf437a11cd9a505b1206c61cac75b9a9 | return changes of BertT which were lost by a git conflict | src/app/scripts/main.js | src/app/scripts/main.js | /*jslint browser: true*/
/*global L */
/*global GEOHEX */
var geohexcode = 'PO2670248';
var startZoomlevel = 12;
var user = "barack";
var satelliteImages = null;
var map = null;
var polygon = null;
var default_geohex_level = 7;
function getSatelliteImageByDate(date) {
for (var i = 0; i < satelliteImages.features.l... | JavaScript | 0 | @@ -4004,37 +4004,8 @@
) %7B%0A
- // alert(%22obs: %22 + req);%0A
@@ -4050,16 +4050,36 @@
rHTML =
+window.toStaticHTML(
'Yes ('
@@ -4089,24 +4089,25 @@
eq.yes + ')'
+)
;%0A docume
@@ -4145,16 +4145,36 @@
rHTML =
+window.toStaticHTML(
'No (' +
@@ -4182,24 +4182,25 @@
req.no + ')'
+)
;%0A docum... |
ffb736001eee16a1efea752dfc433e83aac0c8ed | 添加 audio clip 接口需求 | src/asset/audio-clip.js | src/asset/audio-clip.js | Fire.AudioClip = (function () {
var AudioClip = Fire.define("Fire.AudioClip", Fire.Asset, null);
AudioClip.prop('rawData', null, Fire.RawType('audio'));
return AudioClip;
})();
| JavaScript | 0 | @@ -153,24 +153,561 @@
'audio'));%0A%0A
+ AudioClip.get('buffer', function () %7B%0A return Fire.AudioContext.getClipBuffer(this);%0A %7D);%0A%0A AudioClip.get(%22length%22, function () %7B%0A return Fire.AudioContext.getClipLength(this);%0A %7D);%0A%0A AudioClip.get(%22samples%22, functio... |
1cba55f868458dfea2005050e75b825ac35287fb | Fix wrong parameter (#271) (#301) | src/auth/auth.action.js | src/auth/auth.action.js | import { AsyncStorage } from 'react-native';
import uniqby from 'lodash.uniqby';
import { delay, resetNavigationTo, configureLocale } from 'utils';
import { saveLanguage } from 'locale';
import {
fetchAccessToken,
fetchAuthUser,
fetchAuthUserOrgs,
fetchUserOrgs,
fetchUserEvents,
fetchStarCount,
} from 'ap... | JavaScript | 0.000001 | @@ -1851,12 +1851,13 @@
ser.
-name
+login
;%0A%0A
|
96af9d00403b35c27e704deaacf829a73654f149 | fix lint and reduce throttle | src/reducers/monitors.js | src/reducers/monitors.js | const UPDATE_MONITORS = 'scratch-gui/monitors/UPDATE_MONITORS';
const REMOVE_MONITORS = 'scratch-gui/monitors/REMOVE_MONITORS';
const initialState = [];
const reducer = function (state, action) {
if (typeof state === 'undefined') state = initialState;
let newState;
switch (action.type) {
// Adds or up... | JavaScript | 0 | @@ -550,32 +550,33 @@
onitors%5Bi%5D.id ==
+=
state%5Bj%5D.id) %7B%0A
@@ -1180,16 +1180,17 @@
i%5D.id ==
+=
state%5Bj
@@ -1543,10 +1543,9 @@
le:
-10
+3
0%0A
|
57a4ed30ca7257ca562d569eea1df35c602503dd | Revert "Fix function wrapping bug in JavaScript RTS" | jsrts/Runtime-common.js | jsrts/Runtime-common.js | /** @constructor */
var i$VM = function() {
this.valstack = [];
this.valstack_top = 0;
this.valstack_base = 0;
this.ret = null;
this.callstack = [];
}
var i$vm;
var i$valstack;
var i$valstack_top;
var i$valstack_base;
var i$ret;
var i$callstack;
var i$Int = {};
var i$String = {};
var i$Integer = {};
var i... | JavaScript | 0 | @@ -1330,24 +1330,63 @@
1); ++i) %7B%0A
+ while (res instanceof i$CON) %7B%0A
i$vals
@@ -1398,32 +1398,34 @@
top += 1;%0A
+
+
i$valstack%5Bi$val
@@ -1442,16 +1442,18 @@
= res;%0A
+
i$
@@ -1503,16 +1503,18 @@
;%0A
+
+
i$SLIDE(
@@ -1517,16 +1517,18 @@
IDE(2);%0A
+
... |
c8344ca8e047329b8c4fdf0b676c226aa6c71d41 | Update SauceLabs config (#119) | karma-saucelabs.conf.js | karma-saucelabs.conf.js | // Karma configuration
module.exports = function(config) {
var customLaunchers = {
'latest-chrome': {
base: 'SauceLabs',
browserName: 'chrome'
},
'latest-firefox': {
base: 'SauceLabs',
browserName: 'firefox'
},
'internet-explore... | JavaScript | 0 | @@ -93,21 +93,35 @@
'
-l
+L
atest
--c
+ C
hrome
+ on Windows 10
': %7B
@@ -144,32 +144,68 @@
e: 'SauceLabs',%0A
+ platform: 'Windows 10',%0A
brow
@@ -221,16 +221,47 @@
'chrome'
+,%0A version: 'latest'
%0A
@@ -277,22 +277,36 @@
'
-l
+L
atest
--f
+ F
irefox
+ on W... |
703505bb768714e4f8760300a27a69f6525bfbb3 | Add iOS 8 to SauceLabs test suite | karma.conf.saucelabs.js | karma.conf.saucelabs.js | // Config file used as example: https://github.com/angular/angular.js/blob/master/karma-shared.conf.js
var package = require('./package.json')
var debug = require('logdown')('Karma')
//
// SauceLabs conf
//
var sauceLabsConf = {
sauceLabs: {
testName: package.name,
username: process.env.SAUCELABS_USERNAME,... | JavaScript | 0 | @@ -1084,13 +1084,240 @@
ne 6
- Plus
+',%0A deviceOrientation: 'portrait'%0A %7D,%0A sl_ios_8: %7B%0A base: 'SauceLabs',%0A browserName: 'safari',%0A platform: 'OS X 10.11',%0A version: '8.4',%0A deviceName: 'iPhone 6',%0A deviceOrientation: 'portrait
'%0A
|
7c5fbf50d231dfa7cd37459db4a75e35e53fd546 | increase browserNoActivityTimeout for Karma | karma.conf.saucelabs.js | karma.conf.saucelabs.js | var karmaBaseConf = require('./karma.base.conf')
var browsers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10',
version: '50.0'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10',
version: '46.0'
},
sl_ie_11: {
... | JavaScript | 0.000002 | @@ -874,16 +874,65 @@
nce = 3%0A
+ karmaBaseConf.browserNoActivityTimeout = 20000%0A
karmaB
|
a3de0194a4bad64882f366cc173d20a1bc7b3d49 | Fix constructor of Path | unify/framework/source/class/unify/view/Path.js | unify/framework/source/class/unify/view/Path.js | /*
===============================================================================================
Unify Project
Homepage: unify-project.org
License: MIT + Apache (V2)
Copyright: 2009-2010 Deutsche Telekom AG, Germany, http://telekom.com
===============================================================... | JavaScript | 0.000002 | @@ -764,16 +764,115 @@
Path%22, %7B
+%0A construct : function(params) %7B%0A if (params) %7B%0A this.push(params);%0A %7D%0A %7D%0A
%7D);%0A un
|
ae319ca9385dd7f8ee3242f27d1945b3270c53b9 | Reverse order of catch() and then() calls on promises | src/discoverServices.js | src/discoverServices.js | /*
* This function probes Okapi to discover what versions of what
* interfaces are supported by the services that it is proxying
* for. This information can be used to configure the UI at run-time
* (e.g. not attempting to fetch loan information for a
* non-circulating library that doesn't provide the circ interfa... | JavaScript | 0.999691 | @@ -454,24 +454,121 @@
y.id%7D%60)%0A
+.catch((reason) =%3E %7B%0A store.dispatch(%7B type: 'DISCOVERY_FAILURE', message: reason %7D);%0A %7D)
.then((respo
@@ -837,32 +837,127 @@
;%0A %7D%0A %7D)
+;%0A%7D%0A%0Aexport function discoverServices(okapiUrl, store) %7B%0A fetch(%60$%7BokapiUrl%7D/_/pr... |
d40b0c06401eb5dd72cbb5b075e1e4b61a27b089 | Update example-main-2.js | Training-Session-3/Examples/Example2/example-main-2.js | Training-Session-3/Examples/Example2/example-main-2.js | (function() {
/*
The goal of this file is to provide the basic understanding
1. Create a View class.
2. Reference with DOM using el & this.$el
3. DOM events hash.
4. Scope of DOM event.
How to run this example.
1. Open Example-1.html in Google Chrome browser.
2. Press F12, go to console tab.
3. See ... | JavaScript | 0 | @@ -705,16 +705,17 @@
rkspace'
+,
%0A%0A%09%09/*%0A%09
|
5bddc321884bf5e3e3fde2ab52c2362f6be07064 | Tidy up | electron/index.js | electron/index.js | /* global require, process */
(function () {
'use strict';
var electron = require('electron');
var path = require('path');
var url = require('url');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
var wi... | JavaScript | 0.000027 | @@ -68,17 +68,17 @@
electron
-
+%09
= requir
@@ -101,17 +101,18 @@
var path
-
+%09%09
= requir
@@ -130,17 +130,19 @@
%09var url
-
+%09%09%09
= requir
@@ -320,16 +320,315 @@
r win;%0A%0A
+%09var app = electron.app;%0A%09app.on('ready', createWindow);%0A%09app.on('window-all-closed', close);%0A%09app.on('activa... |
7fc3582e1d5cba0ce64ff88434339d16afa339be | Fix condition that shows loading screen | src/engine/automatic.js | src/engine/automatic.js | import Base from '../index';
import Login from './automatic/login';
import SignUp from './automatic/sign_up_screen';
import ResetPassword from '../connection/database/reset_password';
import { renderSSOScreens } from '../core/sso/index';
import {
additionalSignUpFields,
authWithUsername,
defaultDatabaseConnection... | JavaScript | 0.000002 | @@ -3316,16 +3316,17 @@
%0A if
+(
(!isDone
@@ -3328,16 +3328,42 @@
sDone(m)
+ && !hasError(m, %5B%22sso%22%5D))
%7C%7C m.ge
|
32e21c94ce817c901669ca5665a98affa24968bc | load QRCode properly, add constructor | src/etheriumQRplugin.js | src/etheriumQRplugin.js | import DrawIcon from 'tokenIcon';
import {tokenSchemaEIP67, tokenSchemaBitcoin} from 'utils';
class etheriumQRplugin {
generate(config) {
this.parseRequest(config);
this.drawQrCodeContainer();
let generatedCode = this.schemaGenerator(this.tokenAdress, this.tokenName, this.tokenAmount);
... | JavaScript | 0 | @@ -15,16 +15,18 @@
n from '
+./
tokenIco
@@ -85,16 +85,18 @@
om '
+./
utils';%0A
%0Acla
@@ -95,55 +95,188 @@
s';%0A
-%0Aclass etheriumQRplugin %7B%0A%0A generate(config)
+import QRCode from 'qrcodejs2';%0A%0Aclass etheriumQRplugin %7B%0A%0A constructor(el)%7B%0A%0A if(!el) %7B%0A this.dra... |
84782a31505697d54c2f2cd9aad8a25dfe329286 | Fix failing AboutFunctions tests | koans/AboutFunctions.js | koans/AboutFunctions.js | describe("About Functions", function() {
it("should declare functions", function() {
function add(a, b) {
return a + b;
}
expect(add(1, 2)).toBe(FILL_ME_IN);
});
it("should know internal variables override outer variables", function () {
var message = "Outer";
function getMessage() ... | JavaScript | 0.000003 | @@ -157,34 +157,25 @@
1, 2)).toBe(
-FILL_ME_IN
+3
);%0A %7D);%0A%0A
@@ -452,34 +452,31 @@
age()).toBe(
-FILL_ME_IN
+%22Outer%22
);%0A expec
@@ -497,34 +497,31 @@
age()).toBe(
-FILL_ME_IN
+%22Inner%22
);%0A expec
@@ -532,34 +532,31 @@
ssage).toBe(
-FILL_ME_IN
+%22Outer%22
);%0A %7D);%0A%0A
@@ -829,34... |
4d53cc8d3003e41696246be699a86427e7f4663c | bump build number 580 | src/front/app.config.js | src/front/app.config.js | import * as dotenv from 'dotenv';
dotenv.config();
const baseBundleId = 'gov.dts.ugrc.utahwvcr';
const bundleIds = {
development: `${baseBundleId}.dev`,
staging: `${baseBundleId}.staging`,
production: baseBundleId,
};
const bundleId = bundleIds[process.env.ENVIRONMENT];
const names = {
development: 'Utah Roadk... | JavaScript | 0.000002 | @@ -552,10 +552,10 @@
= 5
-79
+80
;%0A%0Ae
|
705c01d2f4b303366f803620471d4921886647a2 | add imports | meteor/client/layout.js | meteor/client/layout.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/.
Copyright (c) 2014 Mozilla Corporation
*/
if (Meteor.isClient) {
//events that could fire in any sub template
Templ... | JavaScript | 0.000001 | @@ -230,16 +230,185 @@
ation%0A*/
+%0Aimport %7B Meteor %7D from 'meteor/meteor'%0Aimport %7B Template %7D from 'meteor/templating';%0Aimport %7B Session %7D from 'meteor/session';%0Aimport %7B Tracker %7D from 'meteor/tracker';
%0A%0Aif (Me
|
2612693aa051c72dbb7c384aba4b88674108f73b | add en-us date format | src/global/date/date.js | src/global/date/date.js | 'use strict';
var moment = require('moment');
var StringMask = require('string-mask');
function isISODateString(date) {
return /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}([-+][0-9]{2}:[0-9]{2}|Z)$/
.test(date.toString());
}
function DateMaskDirective($locale) {
var dateFormatMapByLocale = {... | JavaScript | 0 | @@ -314,16 +314,41 @@
ale = %7B%0A
+%09%09'en-us': 'MM/DD/YYYY',%0A
%09%09'pt-br
@@ -384,17 +384,16 @@
MM.YYYY'
-,
%0A%09%7D;%0A%0A%09v
|
478be34730bd852979ce9a2968f05e65a9def466 | move needle down | generators/app/templates/client/app/app.js | generators/app/templates/client/app/app.js | /**
* @ngdoc overview
* @name <%= scriptAppName %>
* @description
* Module definition for the <%= scriptAppName %> module.
*/
(function () {
'use strict';
angular
.module('<%= scriptAppName %>', [
// Add modules below<% angularModules.forEach(function(angularModule) { %>
'<%= angularModule %>... | JavaScript | 0.002398 | @@ -208,35 +208,8 @@
', %5B
-%0A // Add modules below
%3C%25 a
@@ -294,24 +294,51 @@
',%3C%25 %7D); %25%3E%0A
+ // Add modules below%0A
%5D)%0A .
|
9d3e65e73c326ca5d8b6c3ef62b06395e2d755fd | check if target is defined | tasks/grunt-appengine.js | tasks/grunt-appengine.js | 'use strict';
module.exports = function (grunt) {
var _ = grunt.util._;
var defaultOpts = {
root: '.',
manageScript: 'appcfg.py',
manageFlags: {
oauth2: true
},
runScript: 'dev_appserver.py',
runFlags: {
port: 8080
}
};
function spawned(done, cmd, args, opts) {
... | JavaScript | 0.000006 | @@ -1505,16 +1505,174 @@
gs%5B2%5D;%0A%0A
+ if (!grunt.config(%5Bname, target%5D)) %7B%0A grunt.log.error('Unable to run task: target %5C'' + target + '%5C' not found');%0A return false;%0A %7D%0A%0A
va
|
796acbcea59607a875ca158cb615c740ef1e74ba | Fix missing "new" statement | homedisplay/info_torrents/static/js/torrents.js | homedisplay/info_torrents/static/js/torrents.js | var Torrents = function() {
var update_interval;
function clearItems() {
$("#torrent-items tr").remove();
}
function processData(items) {
clearItems();
$.each(items, function() {
$("#torrent-items").append("<tr data-hash='"+this.hash+"'><td>"+this.filename+"</td><td>"+this.size+"</td><td>"+t... | JavaScript | 0.999999 | @@ -1896,16 +1896,20 @@
rrents =
+ new
Torrent
|
75dbd8fc0935528548128baece4887291075f97d | remove dead code | source/markup/templates/modules/topbar.js | source/markup/templates/modules/topbar.js | 'use strict'
//----------------------------------------------------------
// modules
//----------------------------------------------------------
// npm
const m = require('mithril')
//----------------------------------------------------------
// logic
//----------------------------------------------------------
const... | JavaScript | 0.999454 | @@ -633,410 +633,8 @@
)%0A%0A
-// function topbar(data) %7B%0A// const header =%0A// m('header'%0A// , %7B class: 'topbar'%0A// , role: 'heading'%0A// %7D%0A// , %5B content %5D)%0A%0A// const content =%0A// m('div'%0A// , %7B class: 'topbar__content' %7D%0A// , %5B... |
aeebf8d58b79d754bad66da7619a8decee4e6445 | update what's new | src/scenes/AboutScene.js | src/scenes/AboutScene.js | "use strict";
import React, {Component} from 'react';
import {
Linking,
StyleSheet,
View,
ScrollView,
Text,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import IconSocial from 'react-native-vector-icons/FontAwesome';
import CONFIG from './../config';
import _ ... | JavaScript | 0.000001 | @@ -5794,22 +5794,23 @@
-marg
+padd
in
+g
: 16,%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.