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 |
|---|---|---|---|---|---|---|---|
7237e675850296cd0671b49b453f8ff8680c8116 | remove jquery from test setup | test.config.js | test.config.js | require("@babel/register")({
extensions: [".ts", ".js", ".tsx", ".jsx"],
})
require("coffeescript/register")
require("@babel/polyfill")
require("raf/polyfill")
require("should")
require("./src/lib/jade_hook")
// FIXME: Do we need this?
// NOTE: Once we do AOT compilation we probably want to re-enable this on the se... | JavaScript | 0.000001 | @@ -538,36 +538,8 @@
data
-%0Aconst $ = require(%22jquery%22)
%0A%0A//
@@ -747,39 +747,8 @@
y %7B%0A
- global.$ = global.jQuery = $%0A
wi
|
3fe975a17a72489799c838adaf23ebbecdf95652 | clean useless tests | test/casper.js | test/casper.js | var googleSearch = 'Verify selectors in ' +
'Google search results';
var yahooSearch = 'Verify selectors in ' +
'Yahoo search results';
var bingSearch = 'Verify selectors in ' +
'Bing search results';
var wikiPage = 'Verify selectors in ' +
'Wikipedia pages';
var medlinePage = 'Verify selectors in ' +
'Medlin... | JavaScript | 0.000001 | @@ -363,33 +363,33 @@
n(googleSearch,
-3
+2
, function suite
@@ -670,80 +670,8 @@
) %7B%0A
- test.assertTitle('vidal - Recherche Google', 'google title is ok');%0A
@@ -841,9 +841,9 @@
ch,
-4
+3
, fu
@@ -1276,88 +1276,8 @@
) %7B%0A
- test.assertTitle('vidal - Yahoo Search - Actualit%C3%A9s', 'yahoo t... |
b8c6458c3f8abd871ea6b147389fe79ecc11cfa5 | Add html test coverage reporting | test/config.js | test/config.js | module.exports = function(config) {
config.set({
basePath: '../',
frameworks: ['jasmine'],
files: [
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'src/*.js',
'test/helpers/*.helper.js',
'test/specs/*.spec.js'
],
reporters: [... | JavaScript | 0 | @@ -465,12 +465,8 @@
lcov
-only
' %7D,
|
cf01d5d3972c1813a33860106c1640d0d775451f | Update config.js | test/config.js | test/config.js | module.exports = {
library: "/usr/lib/softhsm/libsofthsm.so",
name: "SoftHSM",
slot: 0,
sessionFlags: 4, // SERIAL_SESSION
pin: "6789"
}
| JavaScript | 0.000002 | @@ -36,16 +36,8 @@
lib/
-softhsm/
libs
|
460917bb1caee74399863a8b5f9d6e160348ef41 | Fix indentation in the text-fill directive. | public/modules/core/directives/textFill.js | public/modules/core/directives/textFill.js | /*global angular*/
(function () {
'use strict';
// min-font-size attribute = minimum font size in pixels
// max-font-size attribute = maximum font size in pixels
// Directive must be used on the parent of an element with the .text-fill class
angular.module('core').directive('textFill', ["$timeout",... | JavaScript | 0.000002 | @@ -340,28 +340,24 @@
) %7B%0A
-
return %7B%0A
@@ -353,20 +353,16 @@
eturn %7B%0A
-
@@ -426,28 +426,24 @@
-
if ($(elemen
@@ -492,36 +492,32 @@
-
-
return;%0A
@@ -520,35 +520,27 @@
- %7D%0A%0A
+%7D%0A%0A
... |
600ac91a7c25a05fc11a0ff56be8a1caf4667b36 | add failing test for encode w/ comment field | test/encode.js | test/encode.js | var fixtures = require('webtorrent-fixtures')
var parseTorrentFile = require('../')
var test = require('tape')
test('encode', function (t) {
var parsedTorrent = parseTorrentFile(fixtures.leaves.torrent)
var buf = parseTorrentFile.encode(parsedTorrent)
var doubleParsedTorrent = parseTorrentFile(buf)
t.deepEqua... | JavaScript | 0 | @@ -537,8 +537,336 @@
nd()%0A%7D)%0A
+%0Atest('encode w/ comment field', function (t) %7B%0A var parsedTorrent = parseTorrentFile(fixtures.leaves.torrent)%0A parsedTorrent.comment = 'hi there!'%0A%0A var buf = parseTorrentFile.encode(parsedTorrent)%0A var doubleParsedTorrent = parseTorrentFile(buf)%0A%0A t.equal(... |
2fbf926dfa65a8ced111dd2b56be16f484b2aab5 | add new topic button to channels #2 | public/scripts/app/views/Channel/Header.js | public/scripts/app/views/Channel/Header.js | define(function(require) {
'use strict';
var _ = require('underscore')
, Base = require('app/views/Base')
, log = require('app/utils/bows.min')('Views:Channel:Header')
, Avatar = require('app/models/Avatar')
return Base.extend({
template: _.template(require('text!tpl/Cha... | JavaScript | 0 | @@ -365,16 +365,94 @@
true,%0A%0A
+ events: %7B%0A 'click .js-newTopic': 'showNewTopicScreen',%0A %7D,%0A%0A
%09 ini
@@ -1055,16 +1055,129 @@
%0A %7D
+,%0A%0A showNewTopicScreen: function() %7B%0A this.router.showNewTopic(this.model.get('channelJid'))%0A %7D,
%0A%0A %7D... |
2a8d4c663a8824f8aad3d581413bff71aaabadf5 | refactor insert test for http-raw style array bufs | test/insert.js | test/insert.js | var test = require('tap').test;
var insertHeaders = require('../lib/insert_headers');
test('insert headers', function (t) {
t.plan(50 * 3);
var msg = [
'POST / HTTP/1.1',
'Host: beep',
'',
'sound=boop'
].join('\r\n');
for (var i = 0; i < 50; i++) {
var bufs ... | JavaScript | 0 | @@ -358,14 +358,82 @@
map(
-String
+function (b) %7B%0A return String(b%5B0%5D.slice(b%5B1%5D,b%5B2%5D));%0A %7D
).jo
@@ -998,16 +998,27 @@
var s =
+new Buffer(
msg.slic
@@ -1024,16 +1024,17 @@
ce(i, j)
+)
;%0A
@@ -1039,31 +1039,342 @@
-bufs.push(new Buffer(s)
+var start = Math.floo... |
5837f3b1529399a4c66774b504fb16f1501029ac | Remove unused vars | python/ecep/portal/static/js/cel/common.js | python/ecep/portal/static/js/cel/common.js | /* Main app file for CEL project
* Mostly stolen from requirejs examples: http://requirejs.org/docs/api.html
* See http://requirejs.org/docs/api.html for details
*/
define(['jquery', 'Leaflet', '../lib/response', 'Handlebars', 'slidepanel', 'bootstrap',
'Leaflet-google', 'jquery-ui', 'jquery-cookie', CEL.s... | JavaScript | 0.000001 | @@ -5916,37 +5916,8 @@
) %7B%0A
- var self = this;%0A
|
f9842912906fefba1bedad4b703604e9e7d123e9 | Change line series colour | src/components/candidatedetail/CandidateDetail.js | src/components/candidatedetail/CandidateDetail.js | import React from 'react';
import { Image } from 'react-bootstrap'
import styles from './candidatedetail.css'
import AniesImg from './../../static/img/anies-sandi.jpg'
import Chart from '../charts/Chart'
import MediaBreakdown from '../mediabreakdown/MediaBreakdown'
export default class CandidateDetail extends React.... | JavaScript | 0 | @@ -1150,32 +1150,64 @@
Positive News',%0A
+ color: '#00FF00',%0A
da
@@ -1270,16 +1270,16 @@
154175%5D%0A
-
@@ -1314,32 +1314,64 @@
Negative News',%0A
+ color: '#FF0000',%0A
da
@@ -1438,32 +1438,32 @@
%0A %7D, %7B%0A
-
na
@@ -... |
5558f7f8c88d0d318c8c93fe5ba4977bc0d3cb77 | Fix indicator picker value on highlight for property | src/components/indicatorpicker/indicatorpicker.js | src/components/indicatorpicker/indicatorpicker.js | import * as utils from 'base/utils';
import Component from 'base/component';
import {
question as iconQuestion
} from 'base/iconset';
/*!
* VIZABI INDICATOR PICKER
* Reusable indicator picker component
*/
var IndPicker = Component.extend({
/**
* Initializes the Indicator Picker.
* Executed once b... | JavaScript | 0 | @@ -2220,32 +2220,217 @@
frame) return;%0A%0A
+ // should be replaced by dimension of entity set for this hook (if use == property)%0A var dimension = _this.model.entities.getDimension();%0A
@@ -2488,32 +2488,41 @@
.getHighlighted(
+dimension
);%0A ... |
726e7fb7344a344206b2a846880b858dd7224b61 | Fix bug: Reset should be enabled when form invalid | src/containers/ProfileEditForm/ProfileEditForm.js | src/containers/ProfileEditForm/ProfileEditForm.js | /* @flow */
import React, { PropTypes, Component } from 'react';
import { Button, Input, Row, Col } from 'react-bootstrap';
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
import FormMessages, { generateValidation } from 'redux-form-validation';
import validations from './ProfileEditForm.validatio... | JavaScript | 0.000001 | @@ -1309,38 +1309,16 @@
pristine
- %7C%7C this.props.invalid
;%0A %7D%0A%0A
|
785eba6fbfb9f361cb31599d9db024178b5fc8d0 | Update to use new schema | resources/assets/components/InboxItem/index.js | resources/assets/components/InboxItem/index.js | import React from 'react';
import { calculateAge, getImageUrlFromProp } from '../../helpers';
import { remove, map, clone } from 'lodash';
import Tags from '../Tags';
import InboxTile from './InboxTile';
class InboxItem extends React.Component {
constructor () {
super();
this.state = {
status: 'pendin... | JavaScript | 0 | @@ -1777,16 +1777,23 @@
=%22button
+ -green
%22 onClic
@@ -1885,17 +1885,11 @@
on -
-secondary
+red
%22%3ERe
@@ -2132,17 +2132,8 @@
st%5B'
-postable_
id'%5D
|
1ba918e5ae54e7d3492eedcf4fbbdc82bbba0e40 | Remove unnecessary parens | src/lib/Twilio.js | src/lib/Twilio.js | require('dotenv').config()
const twilio = require('twilio')
const client = new twilio(process.env.SID, process.env.TOKEN)
const sendSMS = (message) => {
client.api.messages.create({
body: message,
to: process.env.TO_PHONE,
from: process.env.FROM_PHONE
})
.then((mes) => {
console.log(mes.sid)
... | JavaScript | 0.000065 | @@ -136,17 +136,15 @@
S =
-(
message
-)
=%3E
@@ -278,22 +278,14 @@
hen(
-(
mes
-)
=%3E
- %7B%0A
con
@@ -301,20 +301,16 @@
mes.sid)
-%0A %7D
)%0A .cat
@@ -316,22 +316,14 @@
tch(
-(
err
-)
=%3E
- %7B%0A
con
@@ -335,20 +335,16 @@
log(err)
-%0A %7D
)%0A%0A%7D%0A%0Amo
|
15411e207a87f0e3198635c254226b1ef15dbd1d | Fix error on displaying when no content | src/lib/format.js | src/lib/format.js | import moment from 'moment'
function display (content, format) {
if (format === 'Date') return moment(content).format('YYYY-MM-DD HH:mm:ss')
else if (format === 'GeoPoint') return `${content.longitude},${content.latitude}`
return content
}
function asFile (content, format) {
if (format === 'Date') return new D... | JavaScript | 0.000008 | @@ -56,32 +56,76 @@
format) %7B%0A if
+(content === undefined) return ''%0A else if
(format === 'Dat
@@ -321,24 +321,68 @@
mat) %7B%0A if
+(content === undefined) return ''%0A else if
(format ===
|
b37bf8f7084ab11df2af6a5d2de3b698de5c46a8 | Fix bug | src/lib/helper.js | src/lib/helper.js | /**
* Copyright 2015 creditease Inc. All rights reserved.
* @description command helper
* @author evan2x(evan2zaw@gmail.com/aiweizhang@creditease.cn)
* @date 2015/08/03
*/
/* eslint-disable no-console */
import path from 'path';
import fs from 'fs';
import url from 'url';
import os from 'os';
import zlib from '... | JavaScript | 0.000001 | @@ -4931,19 +4931,16 @@
list = %5B
-...
tables.h
@@ -5588,16 +5588,40 @@
%7D;%0A%0A
+ console.log(list);%0A%0A
list
|
cab17726e0b10413ef0851cc241fa251088dd3f4 | Fix try/catch on client-side performance metrics | src/Filters/HTML/PhastScriptsCompiler/phast-js-env.js | src/Filters/HTML/PhastScriptsCompiler/phast-js-env.js | phast.forEachSelectedElement = function (selector, callback) {
Array.prototype.forEach.call(
window.document.querySelectorAll(selector),
callback
);
};
phast.once = function (fn) {
var done = false;
return function () {
if (!done) {
done = true;
fn.apply(... | JavaScript | 0.000006 | @@ -379,18 +379,8 @@
%7D;%0A%0A
-try %7B%0A
docu
@@ -432,16 +432,47 @@
st.once(
+function() %7B%0A try %7B%0A
logTimin
@@ -477,25 +477,35 @@
ings
-)
+(
);%0A
+
%7D catch
+
(e) %7B%7D
+%0A%7D));
%0A%0Afu
|
787809d287ad025327f13bf98306d44bf32801f9 | Use AngularJS best practice naming conventions | src/directives/highchart.js | src/directives/highchart.js | 'use strict';
angular.module('chartsExample.directives',[])
.directive('chart', function () {
return {
restrict: 'E',
template: '<div></div>',
scope: {
chartData: "=value",
chartObj: "="
},
transclude:true,
replace: true,
link: function (scope, element, attrs) {
... | JavaScript | 0.000002 | @@ -54,13 +54,12 @@
es',
+
%5B%5D)
-%0A%0A
.dir
@@ -86,14 +86,15 @@
tion
-
() %7B%0A
+
re
@@ -104,16 +104,20 @@
n %7B%0A
+
+
restrict
@@ -123,16 +123,20 @@
t: 'E',%0A
+
temp
@@ -156,16 +156,20 @@
/div%3E',%0A
+
scop
@@ -173,16 +173,20 @@
cope: %7B%0A
+
@@ -210,24... |
7492ec422de5f034e24e8d1b73a91b7da43de19b | handle slow ok.js test run in test/runner.js | test/runner.js | test/runner.js | var t = require('../')
var spawn = require('child_process').spawn
var node = process.execPath
var run = require.resolve('../bin/run.js')
var ok = require.resolve('./test/ok.js')
var notok = require.resolve('./test/not-ok.js')
var colorRe = new RegExp('\u001b\\[[0-9;]+m')
var bailRe = new RegExp('^Bail out! # this is no... | JavaScript | 0.000001 | @@ -389,16 +389,30 @@
.+ 10/10
+( %5B0-9%5C.%5D+ms)?
$', 'm')
@@ -480,16 +480,30 @@
%5C%5C.+ 0/1
+( %5B0-9%5C.%5D+ms)?
$', 'm')
|
f97dac32c320f2534074a3b710b8dc1f00aba6b0 | Update GJS check in loadingbar.js | src/loadingbar.js | src/loadingbar.js | 'use strict';
if (window.GJS === undefined) {
window.GJS = {};
}
/**
* Loading bar.
* @param {Array.<Object>=} objectsToPoll Objects that contain loadedFraction()
* function that returns 1 when the object is fully loaded.
* @constructor
*/
var LoadingBar = function(objectsToPoll) {
if (objectsToPoll === ... | JavaScript | 0 | @@ -16,23 +16,23 @@
if (
-window.
+typeof
GJS ===
unde
@@ -23,24 +23,25 @@
eof GJS ===
+%22
undefined) %7B
@@ -37,24 +37,25 @@
ndefined
+%22
) %7B%0A
window.G
@@ -50,15 +50,12 @@
-window.
+var
GJS
|
014b6ca5d6f77dd592eb01a46c5d53e4418ce95e | change to es6 | test/serial.js | test/serial.js | import test from 'ava';
import delay from '../fixture/delay';
const numbers = [1, 2, 3, 4, 5];
function series(factories) {
var resolve = Promise.resolve();
factories.forEach(factory => {
resolve = resolve.then(number => {
return factory()
});
});
return resolve;
}
const factory = number => {
... | JavaScript | 0.010501 | @@ -94,24 +94,23 @@
%5D;%0A%0A
-function
+const
series
-(
+ =
fact
@@ -118,17 +118,19 @@
ries
-)
+ =%3E
%7B%0A
-var
+let
res
@@ -228,23 +228,8 @@
r =%3E
- %7B%0A return
fac
@@ -238,14 +238,8 @@
ry()
-%0A %7D
);%0A
@@ -294,37 +294,13 @@
=%3E
-%7B%0A return () =%3E %7B%0A return
+() =%3E
... |
a05da98fad809cc6066a79cddbe11b507383bbf8 | Change test cases | e2e-tests/scenarios.js | e2e-tests/scenarios.js | 'use strict';
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe('my app', function() {
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
browser.get('index.html');
expect(browser.getLocationAbsUrl()).toMatch("/view1");
});
desc... | JavaScript | 0.000001 | @@ -290,21 +290,26 @@
Match(%22/
-view1
+login.html
%22);%0A %7D)
@@ -406,21 +406,21 @@
.html#!/
-view1
+login
');%0A
@@ -447,21 +447,21 @@
render
-view1
+login
when us
@@ -477,21 +477,21 @@
tes to /
-view1
+login
', funct
@@ -599,135 +599,19 @@
for
-view 1/);%0A %7D);%0A%0A %7D);%0A%0A%0A descri... |
5adde210b4902fe0165244eb22c80eb4b3befa54 | make more use of chai asrt | test/simple.js | test/simple.js | /* global describe, it*/
/* jslint node: true, esnext: true */
"use strict";
const chai = require('chai');
const assert = chai.assert;
const expect = chai.expect;
const should = chai.should();
const expression = require('../index.js');
describe('expression', function () {
describe('plain', function () {
let... | JavaScript | 0.000014 | @@ -471,32 +471,38 @@
%7D;%0A%0A assert
+.equal
(context.expand(
@@ -508,19 +508,17 @@
(%22$%7Ba%7D%22)
- ==
+,
'1');%0A
@@ -520,32 +520,38 @@
');%0A assert
+.equal
(context.expand(
@@ -555,28 +555,25 @@
nd(%22A$%7Ba%7DC%22)
- ===
+,
'A1C');%0A
@@ -573,32 +573,38 @@
');%0A assert
+.equal
... |
42ea20988fb179a336e3b531c7e7cb16b1145de1 | Add changed parameter tests for session store | jest/util/redis-session-store.test.js | jest/util/redis-session-store.test.js | describe('util/rest', () => {
let app, store;
beforeEach(async () => {
const Ravel = require('../../lib/ravel');
app = new Ravel();
app.set('keygrip keys', ['abc']);
app.set('log level', app.$log.NONE);
await app.init();
store = new (require('../../lib/util/redis_session_store'))(app);
});... | JavaScript | 0 | @@ -3335,32 +3335,1048 @@
rror);%0A %7D);
+%0A%0A it('should only update the expire on unchanged session', async () =%3E %7B%0A const session = %7B 'username': 'smcintyre' %7D;%0A await expect(store.set('koa:sess:1234', session)).resolves;%0A%0A app.$kvstore.expire = jest.fn(function (ke... |
26c4bffa7950ed41c72abc34bce1a09de7ddd6ac | Upgrade Protobuf.js 6 code to work with 6.8 | src/protobuf_js_6_common.js | src/protobuf_js_6_common.js | /**
* @license
* Copyright 2017, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this lis... | JavaScript | 0 | @@ -2621,24 +2621,37 @@
%0A return
+cls.toObject(
cls.decode(a
@@ -2657,26 +2657,18 @@
arg_buf)
-.toObject(
+,
conversi
|
1de34a170af02dfde6711ca4be9642ce41554304 | Clear selection when shift click | addon/pods/components/frost-list-item/component.js | addon/pods/components/frost-list-item/component.js | import Ember from 'ember'
import _ from 'lodash/lodash'
import FrostList from '../frost-list/component'
export default Ember.Component.extend({
classNameBindings: ['isSelected', 'frost-list-item'],
initContext: Ember.on('init', function () {
this.set('_frostList', this.nearestOfType(FrostList))
}),
isSel... | JavaScript | 0 | @@ -1069,24 +1069,204 @@
%0A %7D)%0A
+ if (window.getSelection) %7B%0A window.getSelection().removeAllRanges()%0A %7D else if (document.selection) %7B // IE%0A document.selection.empty()%0A %7D%0A
%7D else
|
8f90ec1517a3a4c0eb34c75d4c2966e9fd4d9cea | Allow enable to attach dropzone | addon/components/dropzone-widget/component.js | addon/components/dropzone-widget/component.js | /* global Dropzone */
import Ember from 'ember';
import config from 'ember-get-config';
import layout from './template';
/**
* @module ember-osf
* @submodule components
*/
/**
* Support file uploads via dropzone.
* Accepts dropzone event listeners as parameters (e.g. success, error, addedfile)
*
* Sample usa... | JavaScript | 0 | @@ -714,93 +714,24 @@
-didInsertElement() %7B%0A if (!this.get('enable')) %7B%0A return;%0A %7D
+loadDropzone() %7B
%0A
@@ -2270,22 +2270,409 @@
%7D);%0A
+ %7D,%0A _wasEnabled: Ember.observer('enable', function() %7B%0A if (this.get('enable') && this.get('loaded'... |
16447e031398fda8c2ed9a5aba29c367c4bafea9 | Stop expiration code if no directories for tasks | expire-channels.js | expire-channels.js | var Fs = require("fs");
var Path = require("path");
var nThen = require("nthen");
var config;
try {
config = require('./config');
} catch (e) {
console.log("You can customize the configuration by copying config.example.js to config.js");
config = require('./config.example');
}
var FileStorage = require(c... | JavaScript | 0.000006 | @@ -1730,16 +1730,102 @@
= list;%0A
+ if (dirs.length === 0) %7B%0A w.abort();%0A return;%0A %7D%0A
%7D));
|
ca6efffa3cce7fbda26cea796f7b78bb11254285 | Fix bug when parent context gets removed and component is no longer in DOM | addon/components/highlight-terms/component.js | addon/components/highlight-terms/component.js | import Ember from 'ember';
import layout from './template';
const { run } = Ember;
const HighlightTerm = Ember.Component.extend({
layout,
classNames: ['highlight-terms'],
didReceiveAttrs() {
var term = this.get('term');
var options = this.getProperties('caseSensitive', 'wordsOnly');
run.scheduleOn... | JavaScript | 0.000001 | @@ -842,24 +842,62 @@
);%0A %7D%0A%0A
+ if (this._state == %22inDOM%22) %7B%0A
this.$
@@ -921,24 +921,32 @@
, options);%0A
+ %7D%0A
%7D%0A %7D,%0A%0A
@@ -959,24 +959,60 @@
ghlight() %7B%0A
+ if (this._state == %22inDOM%22) %7B%0A
this.$()
@@ -1027,16 +1027,22 @@
ight();%0A
+ ... |
2ce738d55c53e218510c450ef1a7830f254333de | Fix problem setting asset when old asset was deleted If a model component had an asset on it, which was then deleted, when you load the designer it has an empty asset slot, on setting a new asset there was a crash in the engine. I've fixed this. | src/framework/components/model/model_component.js | src/framework/components/model/model_component.js | pc.extend(pc.fw, function () {
/**
* @component
* @name pc.fw.ModelComponent
* @constructor Create a new ModelComponentSystem
* @class Enables an Entity to render a model. This Component attaches additional model geometry in to the scene graph below the Entity.
* @param {pc.fw.ModelCo... | JavaScript | 0.00073 | @@ -3062,32 +3062,66 @@
set(oldValue);%0D%0A
+ if (asset) %7B%0D%0A
@@ -3158,32 +3158,55 @@
etChange, this);
+ %0D%0A %7D
%0D%0A %7D%0D
|
a92f91e3173a957cc487ded01660813fb654b88e | Use nodelist-array submodule | src/gallery-nodelist-extras/js/nodelist-extras.js | src/gallery-nodelist-extras/js/nodelist-extras.js | /**
* An expanded collection of methods for Y.NodeList
*
* @module gallery-nodelist-extras
* @class NodeList
*/
var NodeList = Y.NodeList,
NodeListPrototype = NodeList.prototype,
_selectorFilter = NodeListPrototype.filter,
ISSTRING = Y.Lang.isString,
ISFUNCTION = Y.Lang.isFunction,
ISNUMBER = ... | JavaScript | 0.000001 | @@ -2815,33 +2815,11 @@
urn
-new Y.NodeList(this._node
+thi
s.sl
@@ -2831,17 +2831,16 @@
, first)
-)
;%0A %7D%0A
@@ -3619,33 +3619,11 @@
urn
-new Y.NodeList(this._node
+thi
s.sl
@@ -3632,17 +3632,16 @@
e(-last)
-)
;%0A %7D%0A
|
d8cc4868821f8182ad441d04423ca401057988b9 | Upgrade to Laravel 8: updating webpack.mix.js | webpack.mix.js | webpack.mix.js | const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... | JavaScript | 0.000001 | @@ -319,16 +319,17 @@
lication
+s
. By def
@@ -359,12 +359,11 @@
the
-Sass
+CSS
%0A %7C
@@ -486,11 +486,15 @@
%0A
-.sa
+ .postC
ss('
@@ -507,18 +507,16 @@
ces/
-sa
+c
ss/app.
-s
css'
@@ -529,11 +529,30 @@
lic/css'
+, %5B%0A //%0A %5D
);
-%0A
|
dbf144a5ec6645257218941d18f897710a16a48a | move creating history together | gatsby-browser.js | gatsby-browser.js | /* eslint-disable react/prop-types */
import React, { createElement } from 'react'
import { Router } from 'react-router-dom'
import { Provider } from 'react-redux'
import PageTransition, { getUserConfirmation } from 'components/PageTransition'
import createStore from './src/store'
import createHistory from 'history/cre... | JavaScript | 0.000001 | @@ -337,160 +337,8 @@
y'%0A%0A
-const history = createHistory(%7B getUserConfirmation %7D)%0A// block must return a string to conform%0Ahistory.block((location, action) =%3E location.pathname)%0A%0A
expo
@@ -733,16 +733,167 @@
pper%0A%7D%0A%0A
+const history = createHistory(%7B getUserConfirmation %7D)%0A// block mu... |
a794aea4b0c226f043aad32bb5730631335f574b | Set framework back to bc2 (as it broke tests) | app/demo/demo.js | app/demo/demo.js | 'use strict';
var myDemoApp = angular.module('myDemoApp', ['formsAngular']);
myDemoApp.config(['formRoutesProvider', function (formRoutes) {
formRoutes.setRoutes([
{route:'/index', options:{templateUrl: 'partials/landing-page.html'}},
{route:'/get-started', options:{templateUrl: 'parti... | JavaScript | 0 | @@ -1809,13 +1809,61 @@
:'bs
-3
+2
'%7D);
+ // Unit and e2e tests depend on this being bs2
%0A%7D%5D)
|
7541fbbf0cd08cd8870866beabe3749acd0308ef | remove tunnel option in browserSync task | grunt/tasks/browserSync.js | grunt/tasks/browserSync.js | /**
* The magical sync task executes the watch task
* after one of the specified file types change
* and reloads the browser
*
* https://npmjs.org/package/grunt-browser-sync
*/
var grunt = require('grunt');
module.exports = {
bsFiles: {
src: [
'<%= Config.PRIVATE_DIR %>/templates/_modules.html',
'<%= C... | JavaScript | 0.000001 | @@ -483,40 +483,8 @@
43,%0A
-%09%09tunnel: '%3C%25= Config.USER %25%3E',%0A
%09%09se
|
66a757300996804afb94f4fe9a766c22bca90ede | Remove pump integration | generators/app/templates/gulp-tasks/build/php.js | generators/app/templates/gulp-tasks/build/php.js | const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
const pump = require('pump');
const _ = require('lodash');
const Setup = require('setup/setup');
function getGlobals(pref, env) {
const key = 'php';
const globals = (pref.globals || {})[key] || {};
const overrides = ((pref[env] || {}).glob... | JavaScript | 0 | @@ -68,38 +68,8 @@
)();
-%0Aconst pump = require('pump');
%0A%0Aco
@@ -1043,19 +1043,8 @@
urn
-pump(%5B%0A
gulp
@@ -1076,22 +1076,27 @@
se.src%7D)
-,
%0A
+.pipe(
$.if(isP
@@ -1114,22 +1114,28 @@
$filter)
-,
+)
%0A
+.pipe(
$.if(isP
@@ -1174,22 +1174,28 @@
ssOpts))
-,
+)
%0A
+.pipe(
$.if(isP... |
9bf2398118ec561ea3b60172656416b4390bdf6d | Switch to hash routes to enable reload in prod (#1722) | app/src/index.js | app/src/index.js | // client entry point and application manifest
import React from 'react'
import ReactDom from 'react-dom'
import {Provider} from 'react-redux'
import {AppContainer} from 'react-hot-loader'
import {createStore, applyMiddleware, compose} from 'redux'
import thunk from 'redux-thunk'
import createHistory from 'history/crea... | JavaScript | 0 | @@ -319,15 +319,12 @@
eate
-Browser
+Hash
Hist
|
1cb4f1f5503aab186cfd8f0b0361ecbd60199d44 | remove only downloaded lecture capture from list | app/src/popup.js | app/src/popup.js | let mediaLessons = undefined;
const shouldDownload = true;
let downloadHD = false;
let courseName = null;
let downloadables = [];
let filtered = [];
let echo360Domain = '';
const GA_ACCOUNT_CODE = 'VUEtMTIxMzY2NDY1LTE='
// Google Analytics setup
var _gaq = _gaq || [];
_gaq.push(['_setAccount', atob(GA_ACCOUNT_CODE)])... | JavaScript | 0 | @@ -6447,16 +6447,60 @@
%7D)
+%0A%0A lectureSelect.removeChild(option);
%0A %7D
@@ -6655,24 +6655,77 @@
rseName %7D);%0A
+%0A if (lectureSelect.options.length === 0)%0A %7B%0A
download
@@ -6754,39 +6754,8 @@
;%0A
- $(%22#lectureSelect%22).empty();%0A
@@ -6779,16 +6779,22 @@
... |
e097246412ca26462d257662e3c389fa0ff2216c | Change tts api url | app/word/word.js | app/word/word.js | 'use strict';
angular.module('latinApp.word', [
'ngRoute',
'LocalStorageModule'
])
.config(['$routeProvider','localStorageServiceProvider',
function($routeProvider, localStorageServiceProvider) {
$routeProvider.when('/word', {
templateUrl: 'word/word.html',
controller: 'wordCtrl'
});
//local storage
... | JavaScript | 0 | @@ -1477,24 +1477,21 @@
p://
-54.92.94.180/api
+api.tarpan.us
/tts
|
ae0b56150bfbc69e39739a237f39e7eb50664736 | Customize LinearProgress color (#12883) | docs/src/pages/demos/progress/LinearIndeterminate.js | docs/src/pages/demos/progress/LinearIndeterminate.js | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import LinearProgress from '@material-ui/core/LinearProgress';
const styles = {
root: {
flexGrow: 1,
},
};
function LinearIndeterminate(props) {
const { classes } = props;
return (
<di... | JavaScript | 0 | @@ -224,16 +224,129 @@
1,%0A %7D,%0A
+ colorPrimary: %7B%0A backgroundColor: '#B2DFDB',%0A %7D,%0A barColorPrimary: %7B%0A backgroundColor: '#00695C',%0A %7D,%0A
%7D;%0A%0Afunc
@@ -531,24 +531,167 @@
condary%22 /%3E%0A
+ %3Cbr /%3E%0A %3CLinearProgress%0A classes=%7B%7B colorPrimary: clas... |
71d65593c00e15262b7bd1ef92d8ee17445dbb48 | remove superfluous import | document/static/js/es6_modules/exporter/html/base.js | document/static/js/es6_modules/exporter/html/base.js | import {obj2Node} from "../tools/json"
import {BaseDOMExporter} from "../tools/dom-export"
import {RenderCitations} from "../../citations/render"
import {docSchema} from "../../schema/document"
export class BaseHTMLExporter extends BaseDOMExporter {
joinDocumentParts(callback) {
let that = this
t... | JavaScript | 0.998454 | @@ -1,43 +1,4 @@
-import %7Bobj2Node%7D from %22../tools/json%22%0A
impo
|
002aa57d619cbf68b2ae389bba75819fc27da097 | add module.exports support - fixes #46 | src/screenfull.js | src/screenfull.js | /*global Element */
(function (window, document) {
'use strict';
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element, // IE6 throws without typeof check
fn = (function () {
var val, valLength;
var fnMap = [
[
'requestFullscreen',
'exitFullscreen',
'fu... | JavaScript | 0 | @@ -60,16 +60,83 @@
rict';%0A%0A
+%09var isCommonjs = typeof module !== 'undefined' && module.exports;%0A
%09var key
@@ -2368,16 +2368,75 @@
(!fn) %7B%0A
+%09%09if (isCommonjs) %7B%0A%09%09%09module.exports = false;%0A%09%09%7D else %7B%0A%09
%09%09window
@@ -2456,16 +2456,21 @@
false;%0A
+%09%09%7D%0A%0A
%09%09... |
d52e802a90acb0c2b8aee13a4c6e7a588f8f9624 | Tweak grunt-favicons options. | grunt/favicons.js | grunt/favicons.js | // Generate favicons from source file
module.exports = function(grunt) {
grunt.config('favicons', {
options: {
'trueColor': false,
'precomposed': true,
'appleTouchPadding': 0,
'windowsTile': false
},
deploy: {
src: 'favicon-source.... | JavaScript | 0 | @@ -166,26 +166,42 @@
'
-precomposed': true
+appleTouchBackgroundColor': %22auto%22
,%0A
|
a9a678bf5e72580664dbfd95e8f75fe78fb458e5 | fix path to unit tests for "gulp test" task [triage-skip] (#7) | gulp/tasks/dev.js | gulp/tasks/dev.js | /**
* Copyright 2017 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 in writing... | JavaScript | 0 | @@ -801,41 +801,30 @@
-%60$%7B
config.
-root%7D/
+paths.
test
-s/
+.
unit
-/**/*%60,
%0A %5D
|
839c374037504a4fcbb82eb9992fe45751e4e781 | Change Coverage thresholds | gulpfile.babel.js | gulpfile.babel.js | 'use strict';
import gulp from 'gulp';
import babel from 'gulp-babel';
import istanbul from 'gulp-istanbul';
import mocha from 'gulp-mocha';
gulp.task('pre-test', () => {
return gulp.src(['lib/index.js'])
// Covering files
.pipe(istanbul())
// Force `require` to return covered files
... | JavaScript | 0 | @@ -727,25 +727,25 @@
tatements: 9
-0
+5
,%0A
@@ -799,18 +799,18 @@
ctions:
-90
+85
,%0A
@@ -831,17 +831,17 @@
lines: 9
-0
+5
%0A
|
6437af7f533a0c541f2c4568310a8cb16198e0b9 | Add reference to Babel bug [ci skip] | gulpfile.babel.js | gulpfile.babel.js | import del from "del"
import gulp from "gulp"
import babel from "gulp-babel"
import eslint from "gulp-eslint"
import mocha from "gulp-mocha"
import filter from "gulp-filter"
import transform from "gulp-transform-js-ast"
import {reduce, sentinel} from "./scripts/reduce.js"
gulp.task("clean", () => del(["dist/**", "es6... | JavaScript | 0 | @@ -546,16 +546,60 @@
(c.f. #1
+, https://github.com/babel/babel/issues/3075
)%0Agulp.t
|
8990ee91f3f2f3aa6ceff4240c17795fd0b40344 | Fix bug with properties not working correctly | halpert.jquery.js | halpert.jquery.js | var parseProperties = function(properties) {
return _.reduce(properties, function(memo, property) {
var el = $(property),
name = el.attr('property'),
val = el.html();
memo[name] = val;
return memo;
}, {})
}
var embeddedLinks = function(el) {
el.find('[resource]').remove();
var self... | JavaScript | 0 | @@ -2262,17 +2262,26 @@
perties(
-$
+clone.find
('%5Bprope
|
d91ac818d7808089882aaf72a1a3131fef97c78d | revert console and test | handlers/route.js | handlers/route.js | /**
* Created by christopherfricke on 3/27/15.
*/
var express = require('express'),
ControllerFactory = require('../controllers/factory.js').ControllerFactory,
controllerFactory = new ControllerFactory(),
routeController = controllerFactory.getRouteController(),
settings = require('../settings').setti... | JavaScript | 0 | @@ -524,24 +524,35 @@
ar points =
+JSON.parse(
req.body.rou
@@ -559,16 +559,17 @@
tepoints
+)
;%0A va
@@ -584,16 +584,24 @@
ctions =
+ (typeof
req.bod
@@ -618,143 +618,35 @@
ions
-;%0A var routeType = 'pgRouteModel';%0A console.log(req.params, req.body, req.query);%0A res.json(%7B%0A points:... |
cc5e8512a03ee2bc4ada22efae419d1c3e013d71 | apply from some example code. | hangouts/index.js | hangouts/index.js | <?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2012 Google Inc. All Rights Reserved -->
<Module>
<ModulePrefs title="Face Movement" height="200" width="550">
<Require feature="dynamic-height"/>
<Require feature="rpc"/>
<Require feature="views" />
</Mo... | JavaScript | 0 | @@ -932,23 +932,90 @@
%7D%0A
-%09 var video_
+ var feed = gapi.hangout.layout.getDefaultVideoFeed();%0A var
canv
@@ -1054,45 +1054,164 @@
oCan
-a
v
+a
s();%0A
-%09 video_canvas.setWidth(320
+ canvas.setVideoFeed(feed);%0A canvas.setWidth(300);%0A canv... |
a80780fcd5efded75fd157274b8b1faa312c540d | print language code and name when invalid language arugment is passed | generators/languages/index.js | generators/languages/index.js | 'use strict';
var util = require('util'),
generators = require('yeoman-generator'),
chalk = require('chalk'),
_ = require('lodash'),
scriptBase = require('../generator-base');
const constants = require('../generator-constants'),
CLIENT_MAIN_SRC_DIR = constants.CLIENT_MAIN_SRC_DIR,
SERVER_MAIN_R... | JavaScript | 0.000002 | @@ -1490,16 +1490,22 @@
es: ' +
+_.map(
this.get
@@ -1528,18 +1528,146 @@
uage
-s(
+Options(), function(o)%7B%0A return '%5Cn ' + _.padRight(o.value, 5) + ' (' + o.name + ')'%0A %7D
).join('
, ')
@@ -1666,13 +1666,28 @@
in('
-,
'))
+%0A
);%0A
|
0b6a22f385fb334f2ccea9f01718ab61545a0d85 | Fix JavaOpts naming in WebConsole admin.js. | webconsole/admin/src/main/resources/res/ui/admin.js | webconsole/admin/src/main/resources/res/ui/admin.js | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | JavaScript | 0.998747 | @@ -3024,17 +3024,17 @@
var java
-P
+O
pts = do
|
a754e89cf304d1716702469cb0c460099f020b58 | Add more snippets for new syntax extensions (plus a useful warning for future snippeters) | website/addons/wiki/static/ace-markdown-snippets.js | website/addons/wiki/static/ace-markdown-snippets.js | ace.define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "# Markdown\n\
\n\
snippet font-italic\n\
*${1:text}*\n\
\n\
snippet font-bold\n\
**${1:text}**\n\
\n\
snippet math-inline\n\
\$${1:text}\$\n\
snippet heading-1\n\
\n\
# ${1:... | JavaScript | 0 | @@ -112,16 +112,131 @@
rict%22;%0A%0A
+// Important: In the body of each snippet, the white spaces is a tab, not a series of spaces, and is required.%0A%0A
exports.
@@ -1089,16 +1089,200 @@
%5Cn%5C%0A%5Cn%5C%0A
+snippet youtube-video%5Cn%5C%0A%09%5Cn%5C%0A%09@%5Byoutube%5D($%7B1:url%7D)%5Cn%5C%0A%5Cn%5C%0Asnippet... |
deb18c4ad601791f7ab784aaeec07d4f611b3275 | Fix screenshot demo | renderer-process/media/desktop-capturer.js | renderer-process/media/desktop-capturer.js | const {desktopCapturer, screen, shell} = require('electron')
const fs = require('fs')
const os = require('os')
const path = require('path')
const screenshot = document.getElementById('screen-shot')
const screenshotMsg = document.getElementById('screenshot-path')
screenshot.addEventListener('click', (event) => {
sc... | JavaScript | 0 | @@ -814,18 +814,18 @@
nail.toP
-ng
+NG
(), (err
|
b375b092484be8f51922886dd584733d0be9cd18 | Fix the use of runtimeCatalogueLocal | resources/factories/runtimeFactory.js | resources/factories/runtimeFactory.js | import SandboxBrowser from '../sandboxes/SandboxBrowser';
import AppSandboxBrowser from '../sandboxes/AppSandboxBrowser';
import Request from '../browser/Request';
import {RuntimeCatalogue, RuntimeCatalogueLocal} from 'service-framework/dist/RuntimeCatalogue';
import PersistenceManager from 'service-framework/dist/Pers... | JavaScript | 0.99974 | @@ -185,31 +185,8 @@
ogue
-, RuntimeCatalogueLocal
%7D fr
@@ -812,56 +812,8 @@
ue =
- development ? new RuntimeCatalogueLocal(this) :
new
|
88a0cd4ef1c776f2cd623a21cc2938b2a521fd96 | Update a427f694-0a21-11e5-a6c0-1697f925ec7b.js | routes/a427f694-0a21-11e5-a6c0-1697f925ec7b.js | routes/a427f694-0a21-11e5-a6c0-1697f925ec7b.js | var express = require("express"),
router = express.Router();
var locks = require('locks');
var mutex = locks.createMutex();
/*
This is the build route
Usage:
deploy.thisisimp.com/a427f694-0a21-11e5-a6c0-1697f925ec7b/:environment/:repository
environment - either "dev" or "prod"
repository - either "frontend" or "ap... | JavaScript | 0 | @@ -434,152 +434,11 @@
log(
-%22Body:%22);%0A console.log(req.body);%0A console.log(%22Cookies:%22);%0A console.log(req.cookies);%0A console.log(%22XHR:%22);%0A console.log(req.xhr
+req
);%0A
|
2c52d31c8e64159b72bd4eff8b3aefb50a0cf810 | Remove angular.copy. | website/src/app/project/services/project.service.js | website/src/app/project/services/project.service.js | angular.module('materialscommons').factory("project", projectService);
function projectService() {
var self = this;
self.project = {};
return {
set: function(proj) {
self.project = angular.copy(proj);
},
get: function() {
return self.project;
}
... | JavaScript | 0 | @@ -212,26 +212,12 @@
t =
-angular.copy(
proj
-)
;%0A
|
47622c933cb1f6a702e3ce31b27778c32f311285 | Add test to switch db | test/thinky.js | test/thinky.js | var thinky = require('../lib/index.js');
var should = require('should');
var r = require('rethinkdb');
//TODO Split test
//TODO Use something else than assert. should.js?
describe('Thinky', function(){
// Testing pool
describe('connect', function(){
it('should create a pool', function(){
t... | JavaScript | 0 | @@ -2855,32 +2855,474 @@
(previousPool);%0A
+ %7D)%0A it('should be able to change the db', function(done)%7B%0A var value = 'whateverDBThatDoesNotExist';%0A thinky.setOption('db', value);%0A Cat = thinky.createModel('Cat', %7B id: String, name: String %7D);%0A ... |
28214d32d6dff3122b521f38ae7e3b32ed16bd4b | Move ts-ignore | src/query/panelComponent.js | src/query/panelComponent.js | import angular from 'angular';
import ngeoQueryModeSelector from 'ngeo/query/ModeSelector.js';
/**
* @type {angular.IModule}
* @hidden
*/
const module = angular.module('ngeoQueryPanel', [
ngeoQueryModeSelector.name,
]);
module.run(
/**
* @ngInject
* @param {angular.ITemplateCacheService} $templateCache
... | JavaScript | 0.000001 | @@ -345,35 +345,8 @@
%3E %7B%0A
- // @ts-ignore: webpack%0A
@@ -404,16 +404,45 @@
onent',%0A
+ // @ts-ignore: webpack%0A
re
|
c62fa8f73319492e6c1c4a38616629476943a1f9 | Remove meaningless example from construction/index.js, see #2639 | src/expression/embeddedDocs/construction/index.js | src/expression/embeddedDocs/construction/index.js | export const indexDocs = {
name: 'index',
category: 'Construction',
syntax: [
'[start]',
'[start:end]',
'[start:step:end]',
'[start1, start 2, ...]',
'[start1:end1, start2:end2, ...]',
'[start1:step1:end1, start2:step2:end2, ...]'
],
description:
'Create an index to get or replac... | JavaScript | 0.000001 | @@ -356,18 +356,8 @@
: %5B%0A
- '%5B%5D',%0A
|
912d77d8bc497fc5d9171607049344045deeeba2 | Provide context for can.getObject | src/ggrc/assets/javascripts/plugins/ggrc_utils.js | src/ggrc/assets/javascripts/plugins/ggrc_utils.js | /*!
Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
Created By: ivan@reciprocitylabs.com
Maintained By: ivan@reciprocitylabs.com
*/
(function($, GGRC, moment, Permission) {
GGRC.Utils = {
firs... | JavaScript | 0.999987 | @@ -2757,23 +2757,16 @@
Object(%22
-target.
context.
@@ -2760,32 +2760,40 @@
ect(%22context.id%22
+, target
);%0A source_
@@ -2817,23 +2817,16 @@
Object(%22
-source.
context.
@@ -2828,16 +2828,24 @@
text.id%22
+, source
);%0A
@@ -2878,21 +2878,16 @@
Object(%22
-GGRC.
permissi
@@ -2919,16 +2919,22 @@... |
90434d5ef2521493305523d7b54a61dbe3233eef | Update contributors list | src/js/components/Settings/SettingsAbout.react.js | src/js/components/Settings/SettingsAbout.react.js | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import app from '../../utils/app';
import AppActions from '../../actions/AppActions';
const shell = electron.shell;
/*
|--------------------------------------------------------------------------
| Child - About
|----------------... | JavaScript | 0 | @@ -1484,16 +1484,33 @@
ature: '
+main process and
build im
|
e44de98adf6873a8c4bbd706cfea89efced30ad9 | Update bitfield.js | bin/bitfield.js | bin/bitfield.js | #!/usr/bin/env node
'use strict';
var lib = require('../lib'),
fs = require('fs-extra'),
yargs = require('yargs'),
onml = require('onml');
var argv = yargs.argv;
var fileName;
var options = {
vspace: argv.vspace || 80,
hspace: argv.hspace || 640,
lanes: argv.lanes || 2,
bits: argv.bit... | JavaScript | 0 | @@ -322,16 +322,38 @@
%7C%7C 32
+,%0A bigendian: false
%0A%7D;%0A%0Aif
|
29d662d187966ad9d8b1ca75c60bbdb21b6a0990 | add All to filter | www/Haxelib.js | www/Haxelib.js | /*jslint white: false, onevar: true, browser: true, evil: true, undef: true, eqeqeq: true, regexp: true, newcap: true, immed: true */
/*global $ window TrimPath*/
var Haxelib = (function() {
var filter = "All";
function url(u) {
return "repo.php?method="+u;
}
function safe(p) {
retu... | JavaScript | 0 | @@ -1740,16 +1740,93 @@
LOAD));%0A
+ $(%22ul%22,dst).prepend('%3Cli%3E%3Ca href=%22#%22 id=%22tag-All%22%3EAll%3C/a%3E%3C/li%3E');%0A
@@ -2054,17 +2054,16 @@
%0A %7D%0A%0A
-%0A
$().
|
f7a53449429818575489fcd19507742a2c1170c4 | Rename variable to a more fitting name and only match for details length | src/js/components/modals/ServiceScaleFormModal.js | src/js/components/modals/ServiceScaleFormModal.js | import mixin from 'reactjs-mixin';
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import {StoreMixin} from 'mesosphere-shared-reactjs';
import FormModal from '../FormModal';
import MarathonStore from '../../stores/MarathonStore';
const METHODS_TO_BIND = [
'handleSc... | JavaScript | 0 | @@ -1425,85 +1425,31 @@
let
-isErrorMsgToShort = errorMsg.toLowerCase() === 'object is not valid' &&%0A
+hasDetails = details &&
det
@@ -1480,25 +1480,18 @@
if (
-isErrorMsgToShort
+hasDetails
) %7B%0A
|
79d290ab829d5e80b54dc0ec54a62f20552d9700 | Remove debugging messages | html/js/webbox.js | html/js/webbox.js |
var wb_json_normalise = function(data){
var newdata = {};
console.debug("data", data);
var item_map = function(item){
var newitem = {};
if ("@id" in item){
$.each(item, function(key, val){
if (key == "@type"){
newitem["rdf:type"] = val;
... | JavaScript | 0.000002 | @@ -54,24 +54,26 @@
data = %7B%7D;%0A%0A
+//
console.
@@ -94,17 +94,16 @@
data);%0A%0A
-%0A
var
@@ -1193,24 +1193,26 @@
tem;%0A %7D%0A%0A
+//
console.
|
2cc1ae65f585f5e985cac267afb5ad63dc486a9a | add bot reporter | bin/bots/bot.js | bin/bots/bot.js | //
// Bot
//
var Node = require(__dirname + '/../../lib/node');
var SHA1 = require(__dirname + '/../../lib/util/crypto').digest.SHA1;
// KadOH.log.setLevel('error');
var Bot = exports.Bot = function(options) {
options = this._options = options || {
node : {},
delay : undefined,
name : 'b... | JavaScript | 0.000001 | @@ -126,16 +126,84 @@
st.SHA1;
+%0Avar Reporter = require(__dirname + '/../../lib/ext/cube/reporter');
%0A%0A// Kad
@@ -657,16 +657,60 @@
.node);%0A
+ this.reporter = new Reporter(this.kadoh);%0A
%7D;%0A%0ABot.
@@ -992,16 +992,43 @@
join();%0A
+ self.reporter.start();%0A
%7D);%0A%7D;
|
028c586537d70187ede850c9c19a2fe332fd0888 | Simplify condition to render SettingsViewComponent. | assets/js/components/settings/SettingsRenderer.js | assets/js/components/settings/SettingsRenderer.js | /**
* Settings Renderer 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... | JavaScript | 0 | @@ -2707,98 +2707,8 @@
/%3E;%0A
-%09%7D else if ( isEditing && ! SettingsEditComponent ) %7B%0A%09%09return %3CSettingsViewComponent /%3E;%0A
%09%7D e
|
ed51d5cd72f8521546da124d7141e8acb5259959 | Change date and time in hidden fields | src/containers/authenticated/exercise/ExerciseForm.js | src/containers/authenticated/exercise/ExerciseForm.js | import React, {Component, PropTypes} from 'react'
import {reduxForm} from 'redux-form'
import {FormField} from '../../../components/Field'
import {DatePicker} from '../../../components/DatePicker'
import {TimePicker} from '../../../components/TimePicker'
import {i18nRegister} from '../../../utils/Messages'
i18nRegiste... | JavaScript | 0 | @@ -60,16 +60,24 @@
eduxForm
+, change
%7D from '
@@ -724,178 +724,8 @@
nt %7B
-%0A constructor(props) %7B%0A super(props);%0A this.state = %7B%0A startDateValue: '',%0A startTimeValue: '',%0A endDateValue: '',%0A endTimeValue: '',%0A %7D%0A %7D
%0A%0A
@@ -774,54 +774,39 @@
his.
-s... |
848eced03cfb258fd7362b73c5df021ec1b8ef55 | change xml files location | javascript/cartoon-battle.js | javascript/cartoon-battle.js | /* global define */ /* global FuzzySet */ define(['cartoon-battle/config', 'cartoon-battle/CardCollection'], function (config, CardCollection) {
var cards;
function cartoonbattle__createDatalist(cards, include) {
var id = "cardlist_" + (include||["_default"]).join("_");
if (document.getElemen... | JavaScript | 0.000001 | @@ -3036,16 +3036,30 @@
fig.
-data_url
+images_cdn + %22assets/%22
+ f
|
4a1694b8701da2ac6b5b2c9147b75ad6ab7ea138 | Validate the data. | proxy/register.js | proxy/register.js | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | JavaScript | 0 | @@ -778,16 +778,1093 @@
null;%0A%0A
+// Takes an object with the fields of a handler, and converts it into a new%0A// Handler object. This sanitizes the object received from the host (which is%0A// untrusted). Throws an error if the object contains missing or invalid fields.%0Afunction processHandler(handler) %7B%0A ... |
cf0a9cce0572a84d357f8a42383ed2fa4a4d49ed | Use data for save instead of this | src/service-module/model.js | src/service-module/model.js | const defaults = {
idField: 'id',
preferUpdate: false,
instanceDefaults: {}
}
export default function (options) {
options = Object.assign({}, defaults, options)
const { idField, preferUpdate, instanceDefaults } = options
class FeathersVuexModel {
constructor (data, options = {}) {
if (options.is... | JavaScript | 0 | @@ -1339,20 +1339,20 @@
.create(
-this
+data
)%0A
|
1114ac4c3e89209ea298032cc797641066c04d21 | Fix tests for new API | tests/alert.js | tests/alert.js | QUnit.module('Alert');
let alert;
QUnit.testDone(function() {
if(!alert) return;
alert.destroy();
});
QUnit.test('Correct root classes are added', function(assert) {
alert = Bulma.create('alert');
assert.ok(document.body.querySelector('.alert'), 'The alert class has been added.');
assert.ok(docu... | JavaScript | 0.000002 | @@ -187,31 +187,60 @@
= Bulma
-.create('alert'
+().alert(%7B%0A title: 'Test alert'%0A %7D
);%0A%0A
@@ -512,33 +512,25 @@
= Bulma
-.create('
+().
alert
-',
+(
%7B%0A
@@ -881,33 +881,25 @@
= Bulma
-.create('
+().
alert
-',
+(
%7B%0A
@@ -1148,33 +1148,25 @@
= Bulma
-.create('
+().... |
12d3bf569c481e2fab22cfaca643d9ba6a3607e6 | set withCredentials if the requested domain differs from the one we're on | src/services/BaseService.js | src/services/BaseService.js | import React from 'react';
import utils from '../utils';
function makeHttpRequest(method, uri, body, headers, callback) {
var request = new XMLHttpRequest();
request.open(method.toUpperCase(), uri, true);
if (headers) {
for (var name in headers) {
var value = headers[name];
request.setRequestHe... | JavaScript | 0 | @@ -343,16 +343,268 @@
%7D%0A %7D%0A%0A
+ // If the URI is different than the URI of the domain we're on,%0A // then set withCredentials to true so that we enable CORS.%0A if (!utils.isRelativeUri(uri) && !utils.isSameHost(uri, window.location.href)) %7B%0A request.withCredentials = true;%0A %7D%0A%0A
requ... |
a97efc9231117ddf945c5a12732932ca67cbfa2e | Remove unused setForegroundContentRef | entry_types/scrolled/package/src/frontend/Section.js | entry_types/scrolled/package/src/frontend/Section.js | import React, {useRef, useMemo} from 'react';
import classNames from 'classnames';
import { SectionAtmo } from './SectionAtmo';
import {useSectionContentElements} from '../entryState';
import {Backdrop} from './Backdrop';
import Foreground from './Foreground';
import {Layout} from './layouts';
import {useMotifAreaSta... | JavaScript | 0 | @@ -2259,33 +2259,8 @@
aRef
-, setForegroundContentRef
%5D =
@@ -3803,63 +3803,8 @@
s)%7D%0A
- contentRef=%7BsetForegroundContentRef%7D%0A
|
e424da92fa17eee6b83d71e9a7daa0ec6efb9a07 | Fix cloning of SimulcastInfos (#1510) | erizo_controller/common/semanticSdp/SimulcastInfo.js | erizo_controller/common/semanticSdp/SimulcastInfo.js | const DirectionWay = require('./DirectionWay');
class SimulcastInfo {
constructor() {
this.send = [];
this.recv = [];
this.plainString = null;
}
clone() {
const cloned = new SimulcastInfo();
this.send.forEach((sendStreams) => {
const alternatives = [];
sendStreams.forEach((sendSt... | JavaScript | 0 | @@ -417,32 +417,51 @@
ernativeStreams(
+DirectionWay.SEND,
alternatives);%0A
@@ -684,16 +684,35 @@
Streams(
+DirectionWay.RECV,
alternat
|
eba3a81715d0d7a3d95d7c5bda1ab06717d5e7b2 | add test case for mouse over behavior. improve code coverage. | tests/index.js | tests/index.js | import React from 'react';
import TestUtils from 'react-dom/test-utils';
import expect from 'expect.js';
import Notification from '../src/';
require('../assets/index.less');
describe('rc-notification', () => {
it('works', (done) => {
const notification = Notification.newInstance();
notification.notice({
... | JavaScript | 0 | @@ -2154,16 +2154,1557 @@
.be(1);%0A
+ notification.destroy();%0A %7D);%0A%0A it('remove notify works', ()=%3E%7B%0A const notification = Notification.newInstance();%0A const key = Date.now();%0A notification.notice(%7B%0A content: %3Cp id=%22test%22 className=%22test%22%3E%3Cbutton id=%22closeButto... |
17ea32b5ecec6af4c5f17a6d34919a8eb43f7e1a | Set a bpm of 120 when writing into fixture file | tests/index.js | tests/index.js | 'use strict'
const fs = require('fs')
const taglib2 = require('../index')
const test = require('tape')
const mkdirp = require('mkdirp')
const rimraf = require('rimraf')
const TMP_PATH = __dirname + '/tmp'
const FIXTURES_PATH = __dirname + '/fixtures'
test('setup', assert => {
try { fs.statSync(TMP_PATH) }
catch(_... | JavaScript | 0 | @@ -1449,24 +1449,52 @@
oser' + rn,%0A
+ bpm: parseInt(120, 10),%0A
//mimety
|
777e6515ee91add673ebdb700c6ffb7e590d3289 | WOrk on app | public/app/app.js | public/app/app.js | angular.module('headcount', [
'headcount.services',
'headcount.events',
'headcount.accounts',
'headcount.auth',
'ngRoute'
])
.config(function($routeProvider, $httpProvider) {
$routeProvider
.when('/signin', {
templateUrl: 'app/auth/signin.html',
controller: 'AuthController'
})
.when(... | JavaScript | 0 | @@ -1099,35 +1099,36 @@
authenticate:
-tru
+fals
e,%0A %7D)%0A .o
|
4aba5640bfaf19f1ee40a58ea8149ca9d3fbeb55 | Fix the URLs of diagrams in the web site (#2868) | site/src/plugins/gatsby-remark-draw-patched.js | site/src/plugins/gatsby-remark-draw-patched.js | const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
/* eslint-disable import/no-extraneous-dependencies */
// Installed by gatsby-remark-draw
const urljoin = require('url-join');
const visit = require('unist-util-visit');
/* eslint-enable import/no-extraneous-dependencies */
// T... | JavaScript | 0.000011 | @@ -1718,21 +1718,8 @@
in(%0A
- '/',%0A
|
0d76bcfb9c7a7e8eb937a9c9d38e10aa22092b95 | Fix issue with TimeSelectorView not rendering | src/www/js/app/ui/navigation/TimeSelectorView.js | src/www/js/app/ui/navigation/TimeSelectorView.js | define(function(require) {
var BaseView = require('app/ui/BaseView'),
$ = require('$'),
router = require('lavaca/mvc/Router'),
PageMenuView = require('app/ui/navigation/PageMenuView'),
ModeMenuView = require('app/ui/navigation/ModeMenuView'),
stateModel = require('app/models/global/Stat... | JavaScript | 0 | @@ -523,32 +523,49 @@
.extend(function
+ TimeSelectorView
() %7B%0A BaseVie
@@ -1216,16 +1216,35 @@
(this);%0A
+ this.render();%0A
%7D, %7B%0A
|
fba863c4f1d85936cbe9546c3463e1855f1010c1 | Update 01_operatorprecedence.js | src/data/examples/ko/08_Math/01_operatorprecedence.js | src/data/examples/ko/08_Math/01_operatorprecedence.js | /*
* @name 연산자 우선 순위
* @description 연산자의 실행 순서를 명시하는 경우를 제외하고, 모든 선언문은 연산자 우선 순위에 따라
* 처리됩니다. 예를 들어, 수식 "4+2*8"는 2에 8을 먼저 곱하고, 그 결과값에 4를 더합니다.
* 이는 "*"이 "+"보다 연산 우선 순위를 갖기 때문입니다.
* 혼동을 방지하기 위해 "4+(2*8)"라 쓰는 편을 권장하기도 합니다.
* 이처럼, 코드 내에 괄호를 사용하여 처리 순서를 명시할 수 있습니다.
* 연산자 우선 순위는 다음과 같습니다.
*/
// 처리 순위가 높은 연산자는 목록 상단에... | JavaScript | 0 | @@ -1005,16 +1005,18 @@
i += 2)
+ %7B
%0A //
|
1ff9d63afd21d08455c43fba93c1465721985e0a | add bootstrap | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0.000002 | @@ -612,16 +612,38 @@
ery_ujs%0A
+//= require bootstrap%0A
//= requ
|
43a6e74c10b2f8ee33eb43fa8c58cfbe5d949570 | clean up code in dashboard tab javascript functions, add comments | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -1026,111 +1026,62 @@
er%0A%0A
-%0A
//
- l%0A// $(document).ready(function()%7B%0A// $('#sidenav a%5Bhref=%22#map-section%22%5D').tab('show');%0A// %7D);%0A
+add dashboard tab href to url in browser address bar
%0A$('
@@ -1151,29 +1151,8 @@
');%0A
- console.log(href);%0A
wi
|
a062a44a00ecbaa2fc967883b8233f18007fa091 | Update minified script | jquery.dim-background.min.js | jquery.dim-background.min.js | !function(a){"use strict";function b(a,b){return"function"==typeof a&&(b=a,a={}),"object"!=typeof a&&(a={}),"function"!=typeof b&&(b=function(){}),{options:a,callback:b}}var c=[];a.fn.dimBackground=function(d,e){var f=b(d,e);d=f.options,e=f.callback,d=a.extend({},a.fn.dimBackground.defaults,d);var g=a('<div class="dimb... | JavaScript | 0.000001 | @@ -1691,17 +1691,19 @@
unction(
-a
+d,e
)%7Bfuncti
@@ -1709,63 +1709,108 @@
ion
-b()%7Be++,e==f&&a()%7Da=%22function%22==typeof a?a:function()%7B%7D
+f()%7Bi++,i==j&&e()%7Dvar g=b(d,e);d=g.options,e=g.callback,d=a.extend(%7B%7D,a.fn.dimBackground.defaults,d)
;for
@@ -1814,17 +1814,17 @@
for(var
-d
+h
=c.slice
... |
4992f06f85ff7b2965a2844c2516d3eeed59b5dc | Fix JS error in fly-out nav | app/assets/javascripts/fly_out_nav.js | app/assets/javascripts/fly_out_nav.js | import bp from './breakpoints';
const HIDE_INTERVAL_TIMEOUT = 300;
const IS_OVER_CLASS = 'is-over';
const IS_ABOVE_CLASS = 'is-above';
const IS_SHOWING_FLY_OUT_CLASS = 'is-showing-fly-out';
let currentOpenMenu = null;
let menuCornerLocs;
let timeoutId;
let sidebar;
export const mousePos = [];
export const setSidebar... | JavaScript | 0.000003 | @@ -4314,16 +4314,33 @@
%0A%0A if (
+relatedTarget &&
!related
|
cfce2aad977e17cb017f6696fee93b72136dc802 | Fix jQuery Mobile styling bug | HTML/assets/startup.js | HTML/assets/startup.js | function setAccountPassword(pwd) {
// If you don't reset the selection range then focus() grabs the
// physical box.
window.getSelection().removeAllRanges();
$('#accountPassword').val(pwd).focus().select();
}
$(function() {
/* For smooth transitions between screens, don't use any. */
$.mobile.d... | JavaScript | 0.000001 | @@ -2092,16 +2092,31 @@
rap('%3Ca
+data-role=none
class=%22'
|
a7edec9b0c359ec5fd964844ad8cdbca3d321cda | make class name agree with new naming scheme https://phabricator.endlessm.com/T10053 | js/app/modules/layout/box.js | js/app/modules/layout/box.js | // Copyright 2016 Endless Mobile, Inc.
/* exported Box */
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Module = imports.app.interfaces.module;
/**
* Class: Box
* Layout widget that places an arbitrary number components next to each other
*
* This layout can put an arbitrary number of co... | JavaScript | 0 | @@ -646,25 +646,26 @@
Name: '
-Box
Layout
+.Box
',%0A C
|
875ba48f9fd6b2f93db5b7fa07745bd681932a80 | Fix new otb game | project/src/js/ui/otb/newOtbGame.js | project/src/js/ui/otb/newOtbGame.js | import * as m from 'mithril';
import i18n from '../../i18n';
import router from '../../router';
import settings from '../../settings';
import ViewOnlyBoard from '../shared/ViewOnlyBoard';
import formWidgets from '../shared/form';
import popupWidget from '../shared/popup';
import * as helper from '../helper';
import bac... | JavaScript | 0.000043 | @@ -954,18 +954,19 @@
ettings.
-ai
+otb
.availab
@@ -1211,34 +1211,35 @@
cludes(settings.
-ai
+otb
.variant())) %7B%0A
@@ -1250,34 +1250,35 @@
settings.
-ai
+otb
.variant('standa
@@ -1495,34 +1495,35 @@
iants, settings.
-ai
+otb
.variant)%7D%0A
@@ -2363,18 +2363,19 @@
ettings.
-ai
+otb
.variant
@... |
e343b05293a6e5c372b3f76d5de427d6d65fe3c8 | Modify the condition of updating module-port | js/components/module-port.js | js/components/module-port.js | (function(app) {
'use strict';
var jCore = require('jcore');
var helper = app.helper || require('../helper.js');
var dom = app.dom || require('../dom.js');
var ModulePort = helper.inherits(function(props) {
ModulePort.super_.call(this);
this.label = this.prop(props.label);
this.name = this.prop... | JavaScript | 0.000001 | @@ -2659,19 +2659,23 @@
if (
-top
+visible
!== cac
@@ -2681,22 +2681,425 @@
che.
-top &&
visible
+) %7B%0A if (visible) %7B%0A dom.remove(this.optionElement());%0A dom.append(this.parentListElement(), this.listItemElement());%0A %7D else %7B%0A dom.remove(this.listItemElement())... |
d746ba1b4adf0d71359628a7316fa87dd2bde006 | fix zh-TW browseLabel wording | js/fileinput_locale_zh-TW.js | js/fileinput_locale_zh-TW.js | /*!
* FileInput Chinese Traditional Translations
*
* This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or
* any HTML markup tags in the messages must not be converted or translated.
*
* @see http://github.com/kartik-v/bootstrap-fileinput
* @author kangqf <kangqingfei@gmail.com>
*
* NOTE: ... | JavaScript | 0.000001 | @@ -512,17 +512,17 @@
Label: '
-%E9%A0%90
+%E7%80%8F
%E8%A6%BD &helli
|
e2b84388654341a02aa7269cfc78aaf89c250489 | use asyncLoader instead of simLauncher, plus grunt update on accident, https://github.com/phetsims/joist/issues/687 | js/fractionMatcherStrings.js | js/fractionMatcherStrings.js | // Copyright 2020, University of Colorado Boulder
/**
* Auto-generated from modulify, DO NOT manually modify.
*/
import getStringModule from '../../chipper/js/getStringModule.js';
import fractionMatcher from './fractionMatcher.js';
const fractionMatcherStrings = getStringModule( 'FRACTION_MATCHER' );
fractionMatc... | JavaScript | 0 | @@ -9,17 +9,17 @@
ight 202
-0
+1
, Univer
|
7d3054f14f2d74b0361510d8f49c8cd4961f1420 | add support for magnet links | src/public/src/js/torrent.js | src/public/src/js/torrent.js | $torrentInput = $('.menu input[name="torrent-link"]')
$startTorrentBut = $('.menu input[name="torrent-start"]')
$searchTorrentBut = $('.menu input[name="torrent-search"]')
$currentSubmit = $searchTorrentBut
$searchResultTable = $('.menu .search-result')
$torrentInput.keyup(function () {
var value = $(this).val()
i... | JavaScript | 0 | @@ -376,16 +376,48 @@
://') !=
+ -1 %7C%7C value.search('magnet') !=
-1) %7B%0A
|
83d0365ff5789e6a840c723ee85587c96e20eeb8 | Correct name of functions for trace decoding | extension/lib/TraceDecoder.js | extension/lib/TraceDecoder.js | // Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2014 Google Inc. johnjbarton@google.com
function lineTextContainingOffset(source, offset) {
var eol = source.indexOf('\n', offset);
var bol = source.lastIndexOf('\n', offset);
return source.slice(bol + 1, eol);
}
function linesCon... | JavaScript | 0.00001 | @@ -1865,41 +1865,27 @@
ion
-linesNumbersContaining
+urlIndexWIth
Offset
-Range
+s
(url
@@ -1993,283 +1993,8 @@
et;%0A
- function delta(offset, elt) %7B%0A return offset - elt;%0A %7D%0A var enterLine = lineTable.indexOf(search(enterOffset, lineTable, delta)) + 1;%0A var callLine = lineTable.indexOf(search(... |
94a91e9cf32c1ca35219efa553513a9d6fe5e2ef | Fix don't send e-mails to empty addresses. | client/pages/hacker/hackerEditor.js | client/pages/hacker/hackerEditor.js |
// get the information of the hacker on the current page
// this session variable 'hacker' is setted in the router
var hackerId = function () { return Session.get('hackerId'); }
var hacker = function () { return Users.findOne(hackerId()); }
Template.hackerEditor.events({
"click [action='invite']": function(evt) {
... | JavaScript | 0 | @@ -2189,17 +2189,16 @@
return
-!
_.findWh
@@ -2250,27 +2250,28 @@
, verified:
-tru
+fals
e%7D);%0A %7D,%0A
|
b416357d21cc589d1867556bc17fb55903d12e83 | comment out unused lines; consolidate code | client/scripts/arcademode/runner.js | client/scripts/arcademode/runner.js |
/* eslint no-unused-vars: 0 */
/* eslint no-eval: 0 */
/* Contains code to run the challenges using eval, and also to evaluate the syntax. */
/* Some guidelines for the challenges:
* head: must contain only code that is needed to evaluate the user code
* tail: must contain only code required for running the ... | JavaScript | 0 | @@ -837,24 +837,27 @@
%7D;%0A %7D);%0A%0A
+ //
let headLen
@@ -931,16 +931,21 @@
in('');%0A
+ /*%0A
if (he
@@ -993,24 +993,28 @@
.length;%0A %7D
+%0A */
%0A%0A const ta
@@ -1433,16 +1433,19 @@
code:%0A
+ //
const u
@@ -1477,16 +1477,17 @@
%60$%7Bhead%7D
+;
$%7BuserCo
@@ -1503,16 +1503,81 @@
erCod... |
83bc6b8379de88649de20a50be6ba2a3527d7b73 | exclude specific spec folders | script/lib/include-path-in-packaged-app.js | script/lib/include-path-in-packaged-app.js | 'use strict';
const path = require('path');
const CONFIG = require('../config');
module.exports = function(filePath) {
return (
!EXCLUDED_PATHS_REGEXP.test(filePath) ||
INCLUDED_PATHS_REGEXP.test(filePath)
);
};
const EXCLUDE_REGEXPS_SOURCES = [
escapeRegExp('.DS_Store'),
escapeRegExp('.jshintrc'),
... | JavaScript | 0 | @@ -3579,16 +3579,713 @@
%5C.html$'
+,%0A%0A // specific spec folders hand-picked%0A 'node_modules' +%0A escapeRegExp(path.sep) +%0A '(oniguruma%7Cdev-live-reload%7Cdeprecation-cop%7Cone-dark-ui%7Cincompatible-packages%7Cgit-diff%7Cline-ending-selector%7Clink%7Cgrammar-selector%7Cjson-schema-traverse%7Cexcepti... |
b5a2a22ab469601d2aa40779c9356f74cd489e39 | remove cosole from app/assets/javascripts/master/grid_manager.js | app/assets/javascripts/master/grid_manager.js | app/assets/javascripts/master/grid_manager.js | (function($) {
function GridManager() {
var gridElementPrefix = "#grid_";
var gridElementSuffix = " .grid";
var pagerElementSuffix = " .pager";
var filterTriggerElementSuffix = " .grid-header .filter_toggle";
var deleteElementSuffix = ' .grid-header .delete_button';
var createElementSuffix = ' .grid-header... | JavaScript | 0.000001 | @@ -1284,33 +1284,8 @@
x);%0A
-%09%09%09console.log(columns);%0A
%09%09%09%0A
|
66d05759a79b3ff53ff416e89c4d22841d0baabe | Update base.js | public/js/base.js | public/js/base.js | /* 控制导航按钮动作 */
function nav_click(is_show) {
if (is_show) {
/* 显示左侧aside */
$('.aside')
.addClass('visible-md visible-lg')
.removeClass('hidden-md hidden-lg')
/* 调整右侧内容 */
$('.aside3')
.removeClass('col-md-13 col-lg-13')
.addClass('col-md-13 col-lg-13');
/* 调整文字内容格式 */
... | JavaScript | 0.000001 | @@ -1736,24 +1736,45 @@
%3C 992) */%0A
+ if(!is_nav_show)%0A
$('#na
|
1ab9360e3cc730f00b2b058089086f05079575dd | Add worflow validation to prevent user replacement assumptions | app/assets/javascripts/searchify/searchify.js | app/assets/javascripts/searchify/searchify.js | (function( $ ) {
$.fn.searchify = function() {
return this.each(function() {
$(this).autocomplete({
source: $(this).data("search-url"),
select: function (event, ui) {
if (select_url = $(this).data("select-url")) {
for (e... | JavaScript | 0 | @@ -859,44 +859,74 @@
is).
-data('value') != $(this).prev().val(
+prev().val() == '' %7C%7C $(this).prev().val() != $(this).data('value'
) )
|
0db46d84df13eeb6415112799958aa66f795e7f2 | fix the delete link | app/assets/javascripts/smithy/nested_forms.js | app/assets/javascripts/smithy/nested_forms.js | /*
Nested Forms
*/
$(function() {
$('form').on('click', 'a.add_nested_fields', function() {
// Setup
var assoc = $(this).attr('data-association'); // Name of child
var content = $('#' + assoc + '_fields_blueprint').html(); // Fields template
// Make the context correct by replacing new_... | JavaScript | 0.000002 | @@ -1748,24 +1748,8 @@
troy
- .controls label
').e
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.