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 |
|---|---|---|---|---|---|---|---|
b54012553db3d39a72b8ea3babd606de92b49fc2 | Remove babel-polyfill | local_modules/peercast-yp-channels-parser/webpack.config.js | local_modules/peercast-yp-channels-parser/webpack.config.js | const webpack = require("webpack");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const failPlugin = require("webpack-fail-plugin");
const uglifySaveLicense = require("uglify-save-license");
const isProduction = process.env.NODE_ENV === "production";
function tsModule(targets) {
return {
rules... | JavaScript | 0.000001 | @@ -1318,35 +1318,16 @@
index:
- %5B%22babel-polyfill%22,
%22./src/
@@ -1335,17 +1335,16 @@
ndex.ts%22
-%5D
,%0A
|
8a9fc816325a7a70548e916a110c748bfaa54928 | Adding location question | src/RecruiterQuestions.js | src/RecruiterQuestions.js | import React, { Component } from 'react';
import './style/recruiter.css';
var questions = [
{
question: "Are you willing to relocate?",
answer: "I have grown roots in the Dallas/Fort Worth metroplex and will not move my family. I am not interested in opportunities that involve relocation at this time."
}... | JavaScript | 0.999902 | @@ -87,16 +87,292 @@
ns = %5B%0A%0A
+ %7B%0A question: %22Where are you located?%22,%0A answer: %22I live in northeast Fort Worth near North Richland Hills in the 76118 zip code. For my commute, portions of Dallas are more accessible than southwest Fort Worth. Please see my commute page for my commute range.%... |
dda27746b180d1f427ef4894ec54189977ae0885 | Fix emitter | src/behaviours/DamageEmitter.js | src/behaviours/DamageEmitter.js | import Phaser from 'phaser';
import Behaviour from './Behaviour';
const SMOKE_LIFETIME = 500; // milliseconds
export default class extends Behaviour {
constructor(game, owner) {
super(game, owner);
this.smokeEmitter = game.add.emitter(-7, -12, 10);
// Make particles fade out after 1000ms
this.sm... | JavaScript | 0.000003 | @@ -767,43 +767,8 @@
0);%0A
- this.smokeEmitter.on = true;%0A
|
6b61da7f9731b0014b3e3ced95b88d9054639fdb | Update header.client.controller.js | modules/core/client/controllers/header.client.controller.js | modules/core/client/controllers/header.client.controller.js | (function () {
'use strict';
angular
.module('core')
.controller('HeaderController', HeaderController);
HeaderController.$inject = ['$scope', '$state', 'Authentication', 'menuService'];
function HeaderController($scope, $state, Authentication, menuService) {
var vm = this;
vm.accountMenu = m... | JavaScript | 0 | @@ -465,16 +465,173 @@
opbar');
+%0A %0A function consentpage() %7B%0A if (document.URL.contains(%22consent-form%22)) %7B%0A return false;%0A %7D else %7B%0A return true;%0A %7D%0A %7D
%0A%0A $s
|
824c220f299c935dbbf5e410f6e3446c970daf7d | add onClick test to Candidate component | src/components/CandidateList/Candidate.spec.js | src/components/CandidateList/Candidate.spec.js | /* eslint-env mocha */
var React = require('react');
var expect = require('expect');
var enzyme = require('enzyme');
var Candidate = require('./Candidate');
var mockDetals = {
name: 'Test Candidate',
birthDate: '1990-03-08'
};
var mockExperience = [
{
company: 'RobCo Industries Inc.',
position: 'Busines... | JavaScript | 0 | @@ -1317,13 +1317,231 @@
);%0A %7D);
+%0A%0A it('shows candidate details when candidate name is clicked', function () %7B%0A wrapper.find('.candidate__name').simulate('click');%0A expect(wrapper.find('.candidate__details').prop('open')).toBe(undefined);%0A %7D);
%0A%7D);%0A
|
ce168556771417414e2cec2d54493a6493bb0509 | Enable links on trackerdash dashboard page to the dataset items | src/ResultTablePane.js | src/ResultTablePane.js | trackerdash.views.ResultTablePane = Backbone.View.extend({
el: '.result-table-pane',
initialize: function (settings) {
this.results = settings.percentErrorByDataset;
this.datasetMap = settings.datasetMap;
this.trajectoryMap = settings.trajectoryMap;
if (this.results === undefine... | JavaScript | 0 | @@ -221,16 +221,22 @@
tasetMap
+ %7C%7C %7B%7D
;%0A
@@ -280,16 +280,22 @@
ctoryMap
+ %7C%7C %7B%7D
;%0A
|
b2aab80eb7f2cd48776c790e13dd1333ee241b4f | Change to use Angular $document. | src/angular-no-captcha.js | src/angular-no-captcha.js | 'use strict';
angular.module('noCAPTCHA', [])
.service('googleGrecaptcha', ['$q', '$window', function GoogleGrecaptchaService($q, $window) {
var deferred = $q.defer();
$window.recaptchaOnloadCallback = function () {
deferred.resolve();
};
var s = document.createElement('script');
s.src = ... | JavaScript | 0 | @@ -88,16 +88,29 @@
window',
+ '$document',
functio
@@ -146,16 +146,27 @@
$window
+, $document
) %7B%0A
@@ -291,16 +291,17 @@
var s =
+$
document
@@ -428,20 +428,21 @@
licit';%0A
-
+$
document
|
9d54f181edbd2bb4fea3b3b6de6a73b8f52a9a34 | add default values to duration, options for click guard | common/components/utils/guard.js | common/components/utils/guard.js | // @ flow
// helpers to guard against accidental/unwanted repeatedly submitted actions, etc
import _ from 'lodash';
class Guard {
static click(func: string, duration: number, options: object): string {
return _.debounce(func, duration, options)
}
}
export default Guard;
| JavaScript | 0 | @@ -161,16 +161,23 @@
duration
+ = 1000
: number
@@ -185,16 +185,36 @@
options
+ = %7B'leading': true%7D
: object
|
aaa915c5211fdbfca302df1ccb6410f227e0bd24 | use match in client rendering to wait for async route | src/client.js | src/client.js | import React from 'react';
import ReactDOM from 'react-dom';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
import { Router, browserHistory, useRouterHistory } from 'react-router';
import getRoutes from './routes';
import createBrowserHistory from 'history/lib/createBrowserHistory';
const createScrol... | JavaScript | 0 | @@ -127,16 +127,23 @@
import %7B
+ match,
Router,
@@ -561,16 +561,187 @@
TE__);%0A%0A
+const routes = getRoutes(store);%0Aconst %7B pathname, search, hash %7D = window.location;%0Aconst location = %60$%7Bpathname%7D$%7Bsearch%7D$%7Bhash%7D%60;%0A%0Amatch(%7B routes, location %7D, () =%3E %7B%0A%09
ReactDOM
@@ -749... |
5e62b2ce3836120117ee1feae7e19eafdaef073b | Implement delete function for azure adapter | api/src/lib/storage-adapter/azure.js | api/src/lib/storage-adapter/azure.js | const { BlobServiceClient, StorageSharedKeyCredential } = require('@azure/storage-blob');
const sharedKeyCredential = new StorageSharedKeyCredential(
process.env.AZURE_STORAGE_ACCOUNT,
process.env.AZURE_STORAGE_ACCESS_KEY
);
const blobServiceClient = new BlobServiceClient(
`https://${process.env.AZURE_STORAGE_AC... | JavaScript | 0.000001 | @@ -1946,20 +1946,341 @@
delete(
-) %7B%0A
+pathToBlob) %7B%0A const blobName = pathToBlob.replace(%60$%7Bprocess.env.OIDC_AZURE_STORAGE_CONTAINER%7D/%60, '');%0A const containerClient = blobServiceClient.getContainerClient(process.env.OIDC_AZURE_STORAGE_CONTAINER);%0A const blockBlobClient = containerClient... |
9d94e4c35f4f038eb10c6139aa78e8fb4d69f0d5 | Update src | src/client.js | src/client.js | import feathers from 'feathers/client';
import socketio from 'feathers-socketio/client';
import primus from 'feathers-primus/client';
import rest from 'feathers-rest/client';
import authentication from 'feathers-authentication/client';
import hooks from 'feathers-hooks';
Object.assign(feathers, { socketio, primus, res... | JavaScript | 0 | @@ -164,24 +164,60 @@
st/client';%0A
+import hooks from 'feathers-hooks';%0A
import authe
@@ -268,44 +268,8 @@
nt';
-%0Aimport hooks from 'feathers-hooks';
%0A%0AOb
|
f57b317defcfd829d10d98f510789b1ba7ec9426 | Fix serializer | src/client.js | src/client.js | var EventEmitter = require('events').EventEmitter;
var debug = require('./debug');
var createSerializer = require("./transforms/serializer").createSerializer;
var createDeserializer = require("./transforms/serializer").createDeserializer;
class Client extends EventEmitter {
serializer;
deserializer;
isServer;
... | JavaScript | 0.000039 | @@ -445,34 +445,24 @@
eSerializer(
-isServer:
this.isServe
@@ -512,18 +512,8 @@
zer(
-isServer:
this
|
18e8f3ab9e6a60034707dee4053e54a5726bb3ac | Fix syntax error. | grade/edit/tree/functions.js | grade/edit/tree/functions.js | /**
* Toggles the selection checkboxes of all grade items children of the given eid (a category id)
*/
function togglecheckboxes(eid, value) {
var rows = YAHOO.util.Dom.getElementsByClassName(eid);
for (var i = 0; i < rows.length; i++) {
var element = new YAHOO.util.Element(rows[i]);
var chec... | JavaScript | 0.000004 | @@ -1346,24 +1346,34 @@
eturn true;%0A
+ %7D%0A
%7D%0A do
|
15bff37b02e6ce650ac8acecdcde977528b6c05e | Use utf8 encoding when reading files | src/commands/analyse-project.js | src/commands/analyse-project.js | "use strict";
const fs = require("fs");
const vscode = require("vscode");
const minimatch = require("minimatch");
const analyser = require("../complexity-analyzer");
const config = require("../config");
const utils = require("../utils");
const FileAnalysis = require("../models/file-analysis.js");... | JavaScript | 0.000001 | @@ -1923,16 +1923,24 @@
.fsPath,
+ %22utf8%22,
(error,
|
0eca9f819a1ed1bbeb22294fbc96ca4c21cc1b12 | Create email button | src/components/Sidebar/index.js | src/components/Sidebar/index.js | import React from 'react';
// import LazyLoad from 'react-lazyload';
import Link from 'gatsby-link';
import PropTypes from 'prop-types';
import config from '../../../data/config';
import Information from './Information';
import './index.scss';
const Icon = ({ href, name, content }) => (
<a
target="_blank"
... | JavaScript | 0.000006 | @@ -1333,32 +1333,120 @@
ithub%22%0A /%3E%0A
+ %3CIcon%0A href=%7B%60mailto:$%7Bconfig.email%7D%60%7D%0A name=%22fa-envelope%22%0A /%3E%0A
%3CInformati
|
6da017cbb14cbc3ffb2e1b9f8a208459c99b4358 | increase legibility | src/components/TestInterface.js | src/components/TestInterface.js | import React from 'react'
import { render } from 'react-dom';
import { connect } from 'react-redux'
import ace from 'brace';
import AceEditor from 'react-ace';
import 'brace/mode/ruby';
import 'brace/theme/monokai';
import { asyncSubmitCode } from '../redux/modules/userTester'
const TestInterface = (props) => {
con... | JavaScript | 0.000014 | @@ -749,25 +749,70 @@
-name=%7BeditorName%7D
+fontSize=%7B18%7D%0A name=%7BeditorName%7D%0A width=%221200px%22
%0A
|
c6cb0a819ebfb6de8a1670c3f223ab2e1c082b6d | comment cleanup | src/components/form/Dropdown.js | src/components/form/Dropdown.js | // dependencies
//
import React from 'react';
import uniqueId from 'lodash/uniqueId';
import classnames from 'classnames';
/**
* The Dropdown component
*/
class Dropdown extends React.Component {
/**
* Construct the component instance
* @param {Object} props The component props
*/
constructor... | JavaScript | 0 | @@ -2988,24 +2988,163 @@
);%0A%0A
+ // do we have columns for this component? if so, wrap the select element%0A // in a div to implement those columns%0A //%0A
if (
@@ -3168,24 +3168,24 @@
lColumns) %7B%0A
-
@@ -3489,24 +3489,25 @@
;%0A %7D%0A
+%0A
... |
8d0cbdc3ec1bc79d770abcfa5098b9632a6f2aef | Check for android before adding the click handler. | src/components/navbar/Navbar.js | src/components/navbar/Navbar.js | import React, { PropTypes } from 'react'
import classNames from 'classnames'
import { NavbarLabel } from './NavbarLabel'
import { NavbarLayoutTool } from './NavbarLayoutTool'
import { NavbarLink } from './NavbarLink'
import { NavbarMark } from './NavbarMark'
import { NavbarMorePostsButton } from './NavbarMorePostsButto... | JavaScript | 0 | @@ -70,16 +70,67 @@
snames'%0A
+import %7B isElloAndroid %7D from '../../vendor/jello'%0A
import %7B
@@ -3845,16 +3845,35 @@
nClick=%7B
+isElloAndroid() %7C%7C
deviceSi
@@ -3867,33 +3867,33 @@
) %7C%7C deviceSize
-!
+=
== 'mobile' ? on
@@ -3889,16 +3889,23 @@
obile' ?
+ null :
onClick
@@ -3916,23 +3916,16 @@... |
779c291ec8af2e33cc24805b25c2fdbe3d84d742 | Make number component not default to 0, but rather empty string. | src/components/number/Number.js | src/components/number/Number.js | import maskInput from 'vanilla-text-mask';
import _ from 'lodash';
import {createNumberMask} from 'text-mask-addons';
import BaseComponent from '../base/Base';
import {getNumberSeparators, getNumberDecimalLimit} from '../../utils/utils';
export default class NumberComponent extends BaseComponent {
static schema(...e... | JavaScript | 0.000001 | @@ -1966,17 +1966,18 @@
return
-0
+''
;%0A %7D%0A%0A
|
1bfd27a95211db6d42ee59ceca6cab7696eff83c | use -f options instead of -m when commiting | src/commit.js | src/commit.js | /* eslint no-console: 'off' */
import argv from 'minimist-argv';
import { readFileSync, unlinkSync } from 'fs';
import { execSync, spawnSync } from 'child_process';
import prepareCommitMessage from './prepare-commit-msg';
import notification from './notifications';
export default function () {
['p', 'C', 'c', 'm', '... | JavaScript | 0 | @@ -70,22 +70,8 @@
rt %7B
- readFileSync,
unl
@@ -857,146 +857,8 @@
);%0A%0A
- const commitMsg = readFileSync(argv.path);%0A if (!commitMsg) %7B%0A throw new Error('The commit message is empty');%0A %7D%0A%0A
@@ -902,16 +902,34 @@
'commit'
+, %60-F$%7Bargv.path%7D%60
%5D.concat
@@ -955... |
08587fdf198a9a8d6364341e39123f78ac17475b | Update iot-hub.js | IoThub/iot-hub.js | IoThub/iot-hub.js | /*
* IoT Gateway BLE Script - Microsoft Sample Code - Copyright (c) 2016 - Licensed MIT
*/
'use strict';
var EventHubClient = require('azure-event-hubs').Client;
// Close connection to IoT Hub.
IoTHubReaderClient.prototype.stopReadMessage = function() {
this.iotHubClient.close();
}
// Read device-to-... | JavaScript | 0 | @@ -1449,16 +1449,17 @@
ubClient
+1
= Event
|
fa808c07f2d7471c27e618387cd67f613f185f7f | Fix windows name pipeline issue | src/common.js | src/common.js | 'use strict';
const path = require('path');
const os = require('os');
exports.toNumber = function(x) { return (x = Number(x)) >= 0 ? x : false; };
exports.getSocketPath = function(channel)
{
let pipePath = path.resolve(os.tmpdir(), `.fast.mq.${channel}`);
// use windows named pipe
if (process.platform ===... | JavaScript | 0.000001 | @@ -341,32 +341,36 @@
pipePath = p
+ipeP
ath.replace(/%5E%5C/
@@ -393,24 +393,28 @@
pipePath = p
+ipeP
ath.replace(
|
fb86cdf1de61c603c5793c306045934e65d992ed | fix some for rn | components/list/demo/basic.rn.js | components/list/demo/basic.rn.js | import React from 'react';
import { Image, ScrollView } from 'react-native';
import List from '../index.ios';
import Button from '../../button/index.ios';
export default class BasicListExample extends React.Component {
render() {
return (
<ScrollView>
{/* 基本用法 Demo */}
<List>
<Lis... | JavaScript | 0.000018 | @@ -1398,33 +1398,41 @@
=%7B%3CImage source=
-%22
+%7B%7B uri: '
https://os.alipa
@@ -1465,33 +1465,36 @@
PurdIfmcuqtr.png
-%22
+' %7D%7D
width=%2228%22 heig
@@ -4850,17 +4850,25 @@
source=
-%22
+%7B%7B uri: '
https://
@@ -4917,17 +4917,20 @@
uqtr.png
-%22
+' %7D%7D
width=%22
|
9c2e04ce16383458576c773dc9fd7e2110a2bc10 | Add markdown support | src/config.js | src/config.js |
/**
* Configuration module
*/
var path = require('path');
var fs = require('fs');
var lodash = require('lodash');
var jsonlint = require('json-lint');
var print = require('./print.js');
module.exports = {
read: read
};
var defaultConfig = {
'source': './',
'destination': ... | JavaScript | 0.000001 | @@ -397,16 +397,39 @@
%0A %5D,%0A
+ 'markdown': false,%0A
'por
|
88c55ac3cbd1ebd11c67192cd9734b8ae2e77825 | Add pin logging management in config | src/config.js | src/config.js | import path from 'path';
let secret = 'NgWlfDWCbX4mPuxau1FmG3TPLHm7iglEA3mp1f8nrlT7zKDn8ZZAwWQOqUArvQBFfMEbFSAMnUHzgQW1FkczTiZYjPZWqdseNtk2';
let rootPath = path.normalize(__dirname);
let env = process.env.NODE_ENV || 'development';
let rightsManagement = {
all: ['admin', 'seller'],
seller: {
r... | JavaScript | 0.000001 | @@ -1037,16 +1037,53 @@
%7D%0A%7D;%0A%0A
+let pinLoggingAllowed = %5B'seller'%5D;%0A%0A
let conf
@@ -1085,24 +1085,24 @@
config = %7B%0A
-
developm
@@ -1192,32 +1192,74 @@
ghtsManagement,%0A
+ pinManagement: pinLoggingAllowed,%0A
app: %7B%0A
@@ -1518,32 +1518,74 @@
ghtsManagement,%0A
+ ... |
119df8188802d70ac5c6671b6c45e6e6c8027c01 | rename fastExit to bails | src/config.js | src/config.js | import { assign, getPath } from './utils';
const DEFAULT_CONFIG = {
locale: 'en',
delay: 0,
errorBagName: 'errors',
dictionary: null,
fieldsBagName: 'fields',
classes: false,
classNames: {
touched: 'touched', // the control has been blurred
untouched: 'untouched', // the control hasn't been blurr... | JavaScript | 0.000044 | @@ -565,16 +565,13 @@
,%0A
-fastExit
+bails
: tr
|
08cb82e255e997a9f0e6ea9bade70b9a617be6b5 | Update copyright a year later | src/config.js | src/config.js | const appConfig = require('application-config')('WebTorrent')
const path = require('path')
const electron = require('electron')
const arch = require('arch')
const APP_NAME = 'WebTorrent'
const APP_TEAM = 'WebTorrent, LLC'
const APP_VERSION = require('../package.json').version
const IS_TEST = isTest()
const PORTABLE_P... | JavaScript | 0 | @@ -930,9 +930,9 @@
-201
-7
+8
' +
|
e59a71d34e95353fc0785f363e3d5a438a08e8e7 | update bkmlt | src/crunch.js | src/crunch.js | javascript:(function()%7Bfunction%20Boom()%7Bvar%20t%3Dwindow.prompt(%22Boom%3A%20Which%20One%22)%2Ce%3D%7Bplex%3A%22javascript%3A%2520var%2520s%3Ddocument.createElement(%2522script%2522)%3Bs.type%3D%2522text%2Fjavascript%2522%3Bs.src%3D%2522https%3A%2F%2Fmy.plexapp.com%2Fqueue%2Fbookmarklet_payload%3Fuid%3D819f10b9768... | JavaScript | 0.000001 | @@ -1285,24 +1285,113 @@
3Dt%25
-26%2526alert(o)%252C
+3Falert(%2522The%2520available%2520bookmarklets%2520for%2520this%2520version%2520are%253A%255Cn%2522%252Bo.join(%2522%255Cn%2522))%253A
o.co
@@ -1404,14 +1404,10 @@
(t)%25
-26%2526(
+3F
wind
@@ -1428,16 +1428,56 @@
e%255Bt%255D
+%253Aalert(%2522Bookmarklet%252... |
424006534710cccffffc9337ba93e55eca6f7bc0 | Fix #7 - cursor.set polymorphism | src/cursor.js | src/cursor.js | /**
* Baobab Cursor Abstraction
* ==========================
*
* Nested selection into a baobab tree.
*/
var EventEmitter = require('emmett'),
mixins = require('./mixins.js'),
helpers = require('./helpers.js'),
types = require('./typology.js');
/**
* Main Class
*/
function Cursor(root, path) {
var... | JavaScript | 0.000001 | @@ -2777,32 +2777,37 @@
.set = function(
+key,
value) %7B%0A retur
@@ -2805,42 +2805,169 @@
%7B%0A
-return this.update(%7B$set: value%7D);
+if (arguments.length %3C 2) %7B%0A return this.update(%7B$set: key%7D);%0A %7D%0A else %7B%0A var spec = %7B%7D;%0A spec%5Bkey%5D = %7B$set: value%7D;%0A retur... |
d06dfb451e598baab24a23c50b855ab6e395cf50 | Fix payment view import | solution/app/scripts/modules/app.js | solution/app/scripts/modules/app.js | /*
Copyright 2016 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, software
dis... | JavaScript | 0.000003 | @@ -735,17 +735,17 @@
w from '
-P
+p
ayment-v
|
6fd4c1e995ac6d90ae6f9b62fc84825a9a2d5143 | Fix crash in timeline on broken logs with missing events | src/interface/report/Results/Timeline/Buffs.js | src/interface/report/Results/Timeline/Buffs.js | import React from 'react';
import PropTypes from 'prop-types';
import { formatDuration } from 'common/format';
import Icon from 'common/Icon';
import SpellLink from 'common/SpellLink';
import BuffsModule from 'parser/core/modules/Buffs';
import Tooltip from 'common/Tooltip';
import './Buffs.scss';
class Buffs extend... | JavaScript | 0.000001 | @@ -2588,24 +2588,156 @@
lity.guid%5D;%0A
+ if (!applied) %7B%0A // This may occur for broken logs with missing events due to range/logger issues%0A return null;%0A %7D%0A
const le
|
84ad8b3823b1f57e48c4af2dd312ecd5596e005b | change locale namespace | src/jquery.continuous-calendar/date-locales.js | src/jquery.continuous-calendar/date-locales.js | var DATE_LOCALE_FI = {
init: function() {
Date.monthNames = [
'tammikuu',
'helmikuu',
'maaliskuu',
'huhtikuu',
'toukokuu',
'kesäkuu',
'heinäkuu',
'elokuu',
'syyskuu',
'lokakuu',
'marraskuu',
'joulukuu'];
Date.dayNames = ['Su','Ma','Ti','K... | JavaScript | 0.000004 | @@ -1,24 +1,27 @@
-var
+window.
DATE_LOCALE_FI = %7B%0A
@@ -666,12 +666,15 @@
%0A%7D;%0A
-var
+window.
DATE
|
6299c36f1d690b5707f2fd5331039df62d6fd6af | edit render | app/assets/javascripts/categories.js | app/assets/javascripts/categories.js | class Artwork {
constructor(title, year, artist, id, museum_id) {
this.title = title
this.year = year
this.artist = artist
this.id = id
this.museum_id = museum_id
}
render() {
let li = document.createElement('li')
console.log(this.museum_id)
li.innerHTML = `<a href="/museums/${thi... | JavaScript | 0.000001 | @@ -204,96 +204,32 @@
-let li = document.createElement('li')%0A console.log(this.museum_id)%0A li.innerHTML =
+var artworkLi = %22%3Cli%3E%22 +
%60%3Ca
@@ -342,16 +342,21 @@
+ %22%3C/a%3E
+%3C/li%3E
%22%0A re
@@ -364,20 +364,17 @@
urn
-li.innerHTML
+artworkLi
%0A %7D
@@ -553,24 +553,85 @@
ion(d... |
61ab5976b6d6438d50c55c1f2d3bce0e19aef13f | move dash to previous line | app/assets/javascripts/categories.js | app/assets/javascripts/categories.js | pages.categories.mobileCategories = function(){
$('.categories-select').on('change', function(){
var category = $(this).find('option:selected').text().toLowerCase();
var url = '/categories/' +
$(this).val() +
'-' +
category.split(' ').join('-');
if (url) {
window.location.replace(u... | JavaScript | 0.000001 | @@ -217,22 +217,16 @@
.val() +
-%0A
'-' +%0A
|
5188b9b0ea4cca9b91cab902b06802e669b39fc6 | tweak appearance of data dictionary table | app/assets/javascripts/dictionary.js | app/assets/javascripts/dictionary.js | $(function() {
$("#jsGrid").jsGrid({
height: "160vh",
width: "90%",
filtering: true,
inserting: false,
editing: false,
sorting: true,
paging: true,
autoload: true,
noDataContent: "...Loading...",
searchButtonTooltip: "Search",
cl... | JavaScript | 0 | @@ -78,9 +78,10 @@
h: %22
-9
+10
0%25%22,
@@ -1068,78 +1068,8 @@
%7D,%0A
- %7B name: 'source', type: %22text%22, width: 260 %7D,%0A
@@ -1128,17 +1128,17 @@
width: 3
-6
+5
0 %7D,%0A
@@ -1285,17 +1285,87 @@
width: 2
-8
+50 %7D,%0A %7B name: 'source', type: %22... |
80fd029cf9b0c01136642355e548e80f669086a2 | add comments to the key zoomIn function block | app/assets/javascripts/percolator.js | app/assets/javascripts/percolator.js | var isZooming = false;
var solutionNumber;
var isLoaded = false;
// GTG
jQuery.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
})
$(document).on("ajax:success", "#solution-form", function(){
$("#solution-form").find("input[type=text], textarea").val("");
$("#sol... | JavaScript | 0 | @@ -1575,165 +1575,18 @@
-sendIdAjax();%0A Menu.init();%0A%7D%0A%0Afunction sendIdAjax() %7B%0A $.ajax(%7B%0A type: %22POST%22,%0A url: '/improvements',%0A data: solutionNumber%0A %7D
+Menu.init(
);%0A%7D
@@ -1939,24 +1939,60 @@
f (target) %7B
+// if the click target is a solution
... |
2fa759c3c6ed264cbbf45db1883445e04854a58b | Update staging url | app/assets/scripts/config/staging.js | app/assets/scripts/config/staging.js | /*
* App config overrides for staging.
*/
// set staging-specific options here.
module.exports = {
environment: 'staging',
OAMUploaderApi: 'http://52.91.218.109/',
googleClient: '36015894456-3d5ka80qtpaqcjhco3lsl38s1fj0dr71.apps.googleusercontent.com',
googleDeveloperKey: ''
};
// copy over any production s... | JavaScript | 0.000001 | @@ -151,21 +151,45 @@
p://
-52.91.218.109
+upload-api-staging.openaerialmap.org/
/',%0A
|
8f2bcb143373195fe4654f2b0843c473edab0c78 | handle missing home variable | app/components/application-header.js | app/components/application-header.js | import Ember from 'ember';
import ENV from 'bracco/config/environment';
export default Ember.Component.extend({
default: false,
type: 'transparent',
title: null,
home: '/',
sandbox: null,
data: {},
// init: function () {
// this._super();
//
// if (!this.get('default')) {
// Ember.run.sc... | JavaScript | 0.000015 | @@ -868,16 +868,26 @@
%7D else
+ if (home)
%7B%0A
@@ -918,32 +918,75 @@
: home %7D);%0A %7D
+ else %7B%0A this.set('home', null);%0A %7D
%0A%0A let sandbo
|
6a8133064f5cdcbc8ac8ed7e1ff29f51c743ac4c | Set timeout for closing all notis | Themes/default/js/breezeNoti.js | Themes/default/js/breezeNoti.js | /**
* breezeNoti.js
*
* The purpose of this file is to fetch notifications for the current user and display them.
* @package Breeze mod
* @version 1.0
* @author Jessica Gonzlez <suki@missallsunday.com>
* @copyright Copyright (c) 2011, 2014 Jessica Gonzlez
* @license http://www.mozilla.org/MPL/MPL-1.1.html
*/
... | JavaScript | 0 | @@ -3962,17 +3962,93 @@
All()%22,
-5
+((breeze.currentSettings.clear_noti) ? breeze.currentSettings.clear_noti : 5)
* 1000
|
e97d29c2f6e454c019890182ccceb3eee81c0fd0 | Set a default for localstorage data, just in case. | Trump-To-Butt/content_script.js | Trump-To-Butt/content_script.js | walk(document.body);
var rpl = "butt";
function loadRpl() {
var rpl = localStorage["rpl"];
return rpl;
}
function walk(node)
{
// I stole this function from here:
// http://is.gd/mwZp7E
var child, next;
switch ( node.nodeType )
{
case 1: // Element
case 9: // Document
case 11: // Document fragm... | JavaScript | 0 | @@ -593,16 +593,125 @@
dRpl();%0A
+ // LocalStorage isn't working as I'd expect, so set a default.%0A if ( rpl == undefined ) %7B rpl = %22Butt%22; %7D%0A
%09v = v.r
|
d657c2d9f324bb659217798c4bdd6288819a1652 | fix conflicts | packages/articles/public/tests/articles.spec.js | packages/articles/public/tests/articles.spec.js | 'use strict';
(function() {
// Articles Controller Spec
describe('MEAN controllers', function() {
describe('ArticlesController', function() {
// The $resource service augments the response object with methods for updating and deleting the resource.
// If we were to use the standard toEqual matcher,... | JavaScript | 0.000112 | @@ -4481,36 +4481,32 @@
.path()).toBe('/
-api/
articles/' + res
@@ -5913,12 +5913,8 @@
e('/
-api/
arti
|
17fc53c5327d0a916845167573a5fa071f83dfd3 | Set __filename and __dirname to true | packages/backpack-core/config/webpack.config.js | packages/backpack-core/config/webpack.config.js | const fs = require('fs')
const webpack = require('webpack')
const nodeExternals = require('webpack-node-externals')
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin')
const config = require('./paths')
const path = require('path')
const babelPreset = require('../babel')
// This is the Webpack... | JavaScript | 0.999999 | @@ -2498,20 +2498,19 @@
lename:
-fals
+tru
e,%0A
@@ -2521,20 +2521,19 @@
irname:
-fals
+tru
e%0A %7D,
@@ -4294,24 +4294,50 @@
raw: true,%0A
+ entryOnly: false,%0A
bann
|
5f3b393be7166a7864ce089bab791b7a6f8d09e7 | Fix #491 - Disabled ------------ as country | packages/components/containers/payments/Card.js | packages/components/containers/payments/Card.js | import React from 'react';
import { c } from 'ttag';
import PropTypes from 'prop-types';
import { Block, Input, Select } from 'react-components';
import { getFullList } from '../../helpers/countries';
import ExpInput from './ExpInput';
import CardNumberInput from './CardNumberInput';
const Card = ({ card, errors, onC... | JavaScript | 0.000002 | @@ -405,16 +405,26 @@
el: text
+, disabled
%7D) =%3E (
@@ -436,16 +436,26 @@
ue, text
+, disabled
%7D));%0A
|
78019a55d01e77044b11d8dda072bd12c88c5430 | implement update() and destroy() API | VisComponent/mixin/VegaChart.js | VisComponent/mixin/VegaChart.js | import vega from '../../util/vega';
let VegaChart = (Base, spec) => class extends Base {
constructor (...args) {
super(...args);
this.options = args[1];
this.chart = vega.parseChart(spec, this.el, this.options);
}
render () {
this.chart.then(chart => {
if (this.width) {
chart = cha... | JavaScript | 0 | @@ -456,16 +456,533 @@
);%0A %7D%0A%0A
+ update (options) %7B%0A let promise = this.chart;%0A%0A Object.assign(this.options, options);%0A%0A if (this.options.data) %7B%0A promise = promise.then(chart =%3E %7B%0A chart.data('data')%0A .remove(() =%3E true)%0A .insert(this.option... |
cfebcc162c37d5aba9a24ddfa8b9e41975c63852 | Update messages.js | app/assets/javascripts/messages.js | app/assets/javascripts/messages.js | // @flow
export default {
"save.failed_simultaneous_tracing": `It seems that you edited the tracing simultaneously in different windows.
Editing should be done in a single window only.
In order to restore the current window, a reload is necessary.`,
"save.failed_client_error": `We've encountered a permanent error ... | JavaScript | 0.000001 | @@ -2870,32 +2870,34 @@
input your
-password
+first name
!%22,%0A %22auth.
@@ -2941,32 +2941,33 @@
input your
-password
+last name
!%22,%0A %22auth.
|
7973165887eed7f77def85fd92d4e7e417186636 | fix minimizer settings (#14795) | packages/gatsby-plugin-netlify-cms/src/gatsby-node.js | packages/gatsby-plugin-netlify-cms/src/gatsby-node.js | import path from "path"
import { get, mapValues, isPlainObject, trim } from "lodash"
import webpack from "webpack"
import HtmlWebpackPlugin from "html-webpack-plugin"
import HtmlWebpackExcludeAssetsPlugin from "html-webpack-exclude-assets-plugin"
import MiniCssExtractPlugin from "mini-css-extract-plugin"
// TODO: swap ... | JavaScript | 0 | @@ -4989,16 +4989,43 @@
nimizer:
+ stage === %60develop%60 ? %5B%5D :
gatsbyC
|
fda17b5e200538826ff4501ef429f56b2839c958 | fix package.json template | packages/gluestick/src/generator/templates/package.js | packages/gluestick/src/generator/templates/package.js | /* @flow */
import type { CreateTemplate } from '../../types';
const version = require('../../../package.json').version;
module.exports = (createTemplate: CreateTemplate) => createTemplate`
{
"name": "${(args) => args.appName}",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"s... | JavaScript | 0.000002 | @@ -115,16 +115,115 @@
version;
+%0Aconst path = require('path');%0A%0A/**%0A * TODO: include also other packages if dev flag was passed%0A */
%0A%0Amodule
@@ -909,10 +909,59 @@
dev
-%7C%7C
+? path.join('..', args.dev, 'packages/gluestick') :
ver
|
28720548ef3393d169be59acc66f4fa54c6e1f45 | fix spacing | UWPWebBrowser/js/appBarColor.js | UWPWebBrowser/js/appBarColor.js | /*
This function expects two hexStrings and relies on hexStrToRGBA to convert
to a JSON object that represents RGBA for the underlying Windows API to
understand.
Examples of valid values:
setAppBarColors('#FFFFFF','#000000');
setAppBarColors('#FFF','#000');
setAppBarColors('FFFFFF','0000... | JavaScript | 0.000054 | @@ -1954,16 +1954,17 @@
trToRGBA
+
(hexStr)
@@ -1962,24 +1962,24 @@
(hexStr) %7B%0A
-
// RGBA
@@ -2057,17 +2057,17 @@
%0A //
-r
+R
emove ha
@@ -2389,32 +2389,36 @@
xFF', 16);%0A %7D
+%0A
else if (hexStr
@@ -2684,24 +2684,28 @@
, 16);%0A %7D
+%0A
else if (he
@@ -3026,21 +3026,25 @@
l,... |
08c9c2c01c371cb712bdde3899d591317be50158 | remove redundant code | app/controllers/user.controller.js | app/controllers/user.controller.js | var jwt = require('jsonwebtoken');
var User = require('../models/user.model');
// var Document = require('../models/document.model');
var config = require('../../config/config');
// this method creates a new document
exports.createUser = function(req, res) {
var user = new User();
user.username = req.body.username... | JavaScript | 0.000231 | @@ -76,63 +76,8 @@
');%0A
-// var Document = require('../models/document.model');%0A
var
@@ -1243,22 +1243,33 @@
e: '
-User Created.'
+Welcome ' + user.username
,%0A
@@ -2092,25 +2092,33 @@
e: '
-Token generated.'
+Welcome ' + user.username
,%0A
@@ -3835,20 +3835,23 @@
ssage: '
-User
+Account
Updated
@@ -... |
2d7605905267334b0dcffe4e12c930c5b8c8b1ba | refactor urls as variables in tweetFactory | app/js/core/services/TweetFactory.js | app/js/core/services/TweetFactory.js | 'use strict';
app.factory('TweetFactory', ['$rootScope', function($rootScope) {
var tweets = {};
var url = "/1.1/statuses/user_timeline.json";
tweets.getTweets = function() {
return $rootScope.twitterOAuthResult.get(url)
// .success(function(response) {
// $rootScope.tweets = response;
// // show the... | JavaScript | 0.001322 | @@ -97,21 +97,67 @@
%7B%7D;%0A
+%09var postUrl = '/1.1/statuses/update.json';
%0A%09var
-u
+getU
rl =
-%22
+'
/1.1
@@ -188,10 +188,12 @@
json
-%22;
+';%0A%09
%0A%09tw
@@ -269,180 +269,16 @@
get(
-url)%0A%09%09%09// .success(function(response) %7B%0A%09%09%09// %09$rootScope.tweets = response;%0A%09%09%09// %09... |
fcb92d70a111c538d5c657009903bad9abaf1187 | Fix user feed selection | app/routes/users/UserProfileRoute.js | app/routes/users/UserProfileRoute.js | // @flow
import { compose } from 'redux';
import { connect } from 'react-redux';
import UserProfile from './components/UserProfile';
import { fetchUser } from 'app/actions/UserActions';
import { fetchUserFeed } from 'app/actions/FeedActions';
import {
selectFeedById,
selectFeedActivitesByFeedId,
feedIdByUserId
}... | JavaScript | 0.000004 | @@ -1076,34 +1076,28 @@
dIdByUserId(
-state.auth
+user
.id) %7D);%0A c
@@ -1177,26 +1177,20 @@
yUserId(
-state.auth
+user
.id)%0A %7D
|
43437ab9ec8b6fafbff09a918e6d8fa0175e2278 | fix bug that kepy size from properly incrementing | app/services/database/mapConcepts.js | app/services/database/mapConcepts.js | "use strict"
const mongoose = require('mongoose'),
Q = require('q'),
Article = require('../../models/Article'),
Concept = require('../../models/Concept');
module.exports = () => {
console.log('mapping articles to concepts')
Article.find()
.exec((err, collection) => {
collection.forEac... | JavaScript | 0 | @@ -640,32 +640,33 @@
r, concept)=%3E%7B%0A%0A
+%0A
@@ -682,17 +682,16 @@
ept) %7B%0A%0A
-%0A
@@ -1212,16 +1212,89 @@
oncept)%0A
+ // console.log('updating', articleConcept.concept.label)%0A
@@ -1409,19 +1409,16 @@
le._id)%0A
-%0A
@@ -1431,34 +1431,18... |
9aaa665d2ae3a29c19a46a30c6bc3e4d0aafd2f8 | Simplify removing of last stackitem | app/src/js/widgets/buic/buicStack.js | app/src/js/widgets/buic/buicStack.js | /**
* @param {Object} $ - Global jQuery object
* @param {Object} bolt - The Bolt module
*/
(function ($, bolt) {
'use strict';
/**
* BUIC stack widget.
*
* @license http://opensource.org/licenses/mit-license.php MIT License
* @author rarila
*
* @class buicStack
* @memberOf... | JavaScript | 0.000044 | @@ -1916,20 +1916,16 @@
-if (
$('.stac
@@ -1933,82 +1933,21 @@
item
-.item-8', this._ui.holder).is('*')) %7B%0A $('.stackitem.item-8
+:nth-child(7)
', t
@@ -1971,30 +1971,16 @@
emove();
-%0A %7D
%0A%0A
|
4233b0a54c651b83ead9dd1c6b1c50f71bb9d445 | add a test | __tests__/request-validation.js | __tests__/request-validation.js | const request = require('supertest')
const app = require('../examples/stranger-things')
test('successful POST /characters', () => {
return request(app)
.post('/characters')
.send({name: 'Nancy Wheeler'})
.expect(201)
})
test('invalid POST /characters', () => {
return request(app)
.post('/character... | JavaScript | 0.000109 | @@ -333,12 +333,146 @@
ect(400)%0A%7D)%0A
+%0Atest('invalid POST /characters (2)', () =%3E %7B%0A return request(app)%0A .post('/characters')%0A .send(%7Bname: 1%7D)%0A .expect(400)%0A%7D)%0A
|
1a9466bd892907fdf2bcb1ffe65e4582433c4325 | Update index.js | Paramour/index.js | Paramour/index.js | var
paramours = $(".compile-paramour"),
javascripts = $(".compile-javascript"),
paramour_textarea = $(".edit-paramour")[0],
javascript_textarea = $(".edit-javascript")[0],
poptions = {
mode: "paramour",
lineNumbers: false,
styleActiveLine: true,
matchBrackets: true,
indentUnit: 2,
tabsize: 2,
... | JavaScript | 0.000002 | @@ -980,21 +980,30 @@
%5D.value,
+ %7Bembed:
true
+%7D
);%0A Cod
@@ -1224,21 +1224,30 @@
a.value,
+ %7Bembed:
true
+%7D
);%0AJedit
|
281c93b0794d2dd35a216ef355791640ae7ef0c6 | Update jiveCommentHandler.js | GitHub4Jive-Addon/services/jive/backend/webhooks/jiveCommentHandler.js | GitHub4Jive-Addon/services/jive/backend/webhooks/jiveCommentHandler.js | /*
* Copyright 2014 Jive Software
*
* 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 l... | JavaScript | 0 | @@ -1797,24 +1797,24 @@
nction (
-commentp
+messageP
rops) %7B%0A
@@ -1833,16 +1833,16 @@
if (
-commentp
+messageP
rops
|
20f9cf537d47b63330756006450009a97d5906b5 | apply the app nav color to the SFViewControllers too | source/views/components/open-url.js | source/views/components/open-url.js | // @flow
import {Platform, Linking, StatusBar} from 'react-native'
import {tracker} from '../../analytics'
import SafariView from 'react-native-safari-view'
import {CustomTabs} from 'react-native-custom-tabs'
const iosOnShowListener = () => StatusBar.setBarStyle('dark-content')
const iosOnDismissListener = () => Sta... | JavaScript | 0 | @@ -62,16 +62,46 @@
ative'%0A%0A
+import * as c from './colors'%0A
import %7B
@@ -239,650 +239,162 @@
s'%0A%0A
-const iosOnShowListener = () =%3E StatusBar.setBarStyle('dark-content')%0Aconst iosOnDismissListener = () =%3E StatusBar.setBarStyle('light-content')%0Aexport function startStatusBarColorChanger() %7B%0A%0... |
0459d1f5dbb9431e098b3cc2f23a633e2f299dcf | Update xform.js | jive-sdk-service/generator/examples/simple-stream/extension_src/data/xform.js | jive-sdk-service/generator/examples/simple-stream/extension_src/data/xform.js | function transform(body, headers, options, callback) {
/*
* TO DO: Parse 'body' arg based on incoming event from 3rd party system.
* TO DO: Replace the sample code below with your own transformation code.
*/
// Build activity object.
var activityInfo = { actor: {}, object:{}, jive:{} };
// Optional name of acto... | JavaScript | 0 | @@ -1105,435 +1105,8 @@
rue;
-%0A%0A/*** TEMPORARY WORKAROUND NEEDED FOR REFERENCING STRUCTURES IN body, headers, options RATHER THAN INDIVIDUALLY TRAVERSING EACH KEY ***/%0Afunction clone(obj) %7B if (null == obj %7C%7C %22object%22 != typeof obj) return obj; var copy = %7B%7D; for (var attr in obj) %7B copy%5Ba... |
0a945db928c7c5bde63c62bd5f859e0f761c9c08 | Create saveSurvey thunk | app/javascript/app/components/modal-download/modal-download-actions.js | app/javascript/app/components/modal-download/modal-download-actions.js | import { createAction } from 'redux-actions';
const setModalDownloadParams = createAction('setModalDownloadParams');
const toggleModalDownload = createAction('toggleModalDownload');
export default {
setModalDownloadParams,
toggleModalDownload
};
| JavaScript | 0 | @@ -43,142 +43,679 @@
s';%0A
-%0Aconst setModalDownloadParams = createAction('setModalDownloadParams');%0Aconst toggleModalDownload = createAction('toggleModalDownload'
+import %7B createThunkAction %7D from 'utils/redux';%0Aimport %7B USER_SURVEY_SPREADSHEET_URL %7D from 'data/constants';%0A%0Aconst setModalDownloadP... |
55bd4bf8c3e7e84f09b85e3b5019978d541f6720 | Add cations like redux strucure | src/actions/actions.js | src/actions/actions.js | import fetch from 'isomorphic-fetch'
export const REQUEST_BUS_STOPS = 'REQUEST_BUS_STOPS'
export const RECEIVE_BUS_STOPS = 'RECEIVE_BUS_STOPS'
function requestBusStops(meters, coors) {
return {
type: REQUEST_POSTS
}
}
function receiveBusStops(received) {
return {
type: RECEIVE_POSTS
}
}
| JavaScript | 0.999954 | @@ -31,16 +31,40 @@
fetch'%0A%0A
+//%0A// action types%0A//%0A%0A
export c
@@ -81,24 +81,34 @@
ST_BUS_STOPS
+_AROUND_ME
= 'REQUEST_
@@ -116,16 +116,26 @@
US_STOPS
+_AROUND_ME
'%0Aexport
@@ -158,16 +158,26 @@
US_STOPS
+_AROUND_ME
= 'RECE
@@ -189,19 +189,63 @@
US_STOPS
-'%0A%0A
+_AROUND_ME'%0A%0A//%0A// acti... |
7ba9386b3c8bff96739435f715ce20f07924fe2d | Add async timer actions | src/actions/actions.js | src/actions/actions.js | const ADD_TABLE_ROW = "ADD_TABLE_ROW"
const TOGGLE_EDIT_TABLE_ROW = "TOGGLE_EDIT_TABLE_ROW"
const SAVE_TABLE_ROW = "SAVE_TABLE_ROW"
const START_TIMER = "START_TIMER"
const STOP_TIMER = "STOP_TIMER"
const RESET_TIMER = "RESET_TIMER"
const CREATE_TIMER = "CREATE_TIMER"
const UPDATE_TIMER = "UPDATE_TIMER"
const CREATE_REM... | JavaScript | 0.000001 | @@ -1310,16 +1310,1883 @@
%0A %7D%0A%7D%0A%0A
+//Async actions%0A%0Aexport const requestCreateRemoteTimer = minutes =%3E %7B%0A return dispatch =%3E %7B%0A dispatch(createTimer(minutes))%0A fetch('http://localhost:3001/timers/new', %7B%0A body: JSON.stringify(%7BinitialMinutes: minutes%7D),%0A header... |
4da355656889a5e1d27e6905acab44c83b38137f | fix typo | src/actions/scheme4.js | src/actions/scheme4.js | import {WEAVE_ON, WEAVE_OFF, THREADING_ON, THREADING_OFF} from '../constans';
export function weaveOn(r, c) {
return {type: WEAVE_ON, row: r, col: c};
}
export function weaveOff(r, c) {
return {type: WEAVE_OFF, row: r, col: c};
}
export function threadingOn(r) {
return {type: THREADING_ON, row: r};
}
export ... | JavaScript | 0.999991 | @@ -67,16 +67,17 @@
/constan
+t
s';%0A%0Aexp
|
fd9a2ca6eaf95035586abec025b56ed58ad55991 | fix incorrectly misconfigured association | src/app/models/game.js | src/app/models/game.js | import Model, { transaction } from "./base"
import { REVISION_TYPES } from "~/share/constants"
import User from "./user"
import Position from "./position"
import Revision from "./revision"
export const RESULTS = {
WHITE: "1-0",
BLACK: "0-1",
DRAW: "½-½"
}
export default class Game extends Model {
constructo... | JavaScript | 0.000001 | @@ -662,27 +662,33 @@
return this.
-has
+belongsTo
Many(Positio
@@ -710,25 +710,8 @@
sion
-, %22id%22, %22game_id%22
)%0A
|
5da8da7b6540be6660d48ca4fd0e9838afe36f84 | update naming scheme for private functions | src/client/bughouse.js | src/client/bughouse.js | import Board from 'alekhine'
import Display from './display'
import Socket from './socket'
import logger from "./logger"
const display = Display()
const socket = new Socket()
export default function() {
// flipped with respect to fen
let mkBoardState = flipped => {
return {
flipped,
gid: null,
... | JavaScript | 0 | @@ -3493,18 +3493,17 @@
register
-_m
+M
ove(from
@@ -4180,30 +4180,26 @@
get
-_l
+L
ocation
-_from_p
+FromP
iece
-_d
+D
iv(%7B
|
2bb2c86c27b1fc585cc01f6ba0ce6621a834d25d | add script | static/inject/injector.js | static/inject/injector.js | (function () {
var inject = function () {
console.info("[RS] Injecting controller...");
$("body").append("<div id='remoteSlideOverlayHtmlContainer'></div>");
$("#remoteSlideOverlayHtmlContainer").load("https://remote-sli.de/inject/controller/overlay.html");
$.getScript("https://remo... | JavaScript | 0.000001 | @@ -448,16 +448,104 @@
%0A %7D;%0A
+ $.getScript(%22https://cdn.rawgit.com/meetselva/attrchange/master/js/attrchange.js%22);%0A
if (
|
65de37dc582aa3e62fdd5979de7644604a0d3701 | Add log logic in client module for postSequences event | client/main.js | client/main.js | /**
* @module client/main
*/
'use strict';
require('./app');
require('angular');
/**
* Each 'index' generated via grunt process dynamically includes all browserify common-js modules
* in js bundle
*/
require('./controllers/index');
require('./services/index');
var io = require('./lib/socket.io');
var socket = i... | JavaScript | 0 | @@ -428,16 +428,104 @@
);%0A%7D);%0A%0A
+socket.on('postSequence', function (data) %7B%0A console.log('postSequence: ', data);%0A%7D);%0A%0A
//requir
|
005f834e5ce1b2437a865af6747406de45a625fd | Remove debug logging | static/js/page/api/api.js | static/js/page/api/api.js | import $ from 'jquery'
import Dropdown from '../../com/dropdown'
import NavTree from '../../com/nav-tree'
import './api.scss'
const DEFAULT_VERSION = '1.3';
const LOCAL_STORAGE_KEY = 'targetApi';
const PLATFORM_AVAILABILITY = {
'jvm': '1.0',
'common': '1.1',
'js': '1.1',
'native': '1.3'
};
function ... | JavaScript | 0.000002 | @@ -2077,36 +2077,8 @@
t);%0A
- console.log(element);%0A
@@ -5159,63 +5159,8 @@
%7D%0A
- console.log(platform);%0A console.log(state);%0A
|
dcfc2e10b82aa8620397f0eaeeeb88e76ceed119 | Fix broken anchor link scrolling in documentation pages. | static/js/portico/help.js | static/js/portico/help.js | /* eslint indent: "off" */
import PerfectScrollbar from 'perfect-scrollbar';
function registerCodeSection($codeSection) {
const $li = $codeSection.find("ul.nav li");
const $blocks = $codeSection.find(".blocks div");
$li.click(function () {
const language = this.dataset.language;
$li.remov... | JavaScript | 0 | @@ -4979,16 +4979,38 @@
d%0A $(
+document).on('click',
'.markdo
@@ -5070,28 +5070,16 @@
tent h3'
-).on('click'
, functi
@@ -5094,23 +5094,16 @@
-window.
location
@@ -5108,61 +5108,13 @@
on.h
-ref = window.location.href.replace(/#.*/, '') + '#' +
+ash =
$(t
|
7c7f9f28af6f17d1b9b8f6c0843424cf174e01f8 | Return Proxy if FBTrace is used before the console is ready | extension/modules/firebug-trace-service.js | extension/modules/firebug-trace-service.js | /* See license.txt for terms of usage */
// ************************************************************************************************
// Constants
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;
const Cu = Components.utils;
var EXPORTED_SYMBOLS = ["traceConsoleS... | JavaScript | 0 | @@ -127,27 +127,27 @@
************
-***
+ //
%0A// Constant
@@ -420,19 +420,19 @@
********
-***
+ //
%0A// Serv
@@ -570,16 +570,42 @@
service
+ as soon as it's available
.%0A */%0Atr
@@ -767,32 +767,223 @@
main)%0A %7B%0A
+ // Will be initialized as soon as FBTrace console is available.%0A ... |
41013729856be966ca0768521cf9556b89476bd0 | Fix typo in project grid event registration | static/js/project-grid.js | static/js/project-grid.js | (function() {
var grid, projectItems;
// setup grid
{
grid = $('.project-grid');
grid.isotope({
itemSelector: '.project-item',
percentPosition: true,
masonry: {
columnWidth: '.project-grid-sizer'
},
sortBy: 'sortIndex',
getSortData: {
sortIndex: '[dat... | JavaScript | 0.000004 | @@ -723,17 +723,16 @@
('mouseo
-o
ut touch
|
2f620cf87d677d79478b4b8b5e54e6ce010df06f | test depends on remote call, so just skeping for while | legacy/spec/components/root/thank-you.spec.js | legacy/spec/components/root/thank-you.spec.js | import mq from 'mithril-query';
import thankYou from '../../../src/root/thank-you'
import prop from 'mithril/stream';
describe('ThankYou', () => {
let $slip, $cc;
let test = (payment) => {
return {
contribution: ContributionAttrMockery(null, payment)
};
};
beforeAll(() => {... | JavaScript | 0 | @@ -1228,32 +1228,35 @@
() =%3E %7B%0A
+ //
expect($cc.find
@@ -1348,32 +1348,51 @@
th).toEqual(0);%0A
+ pending();%0A
%7D);%0A%0A it(
|
549bfced984366d4cd04a4c671ef7b36939a6a48 | Fix #322 | src/commands/status.js | src/commands/status.js | 'use strict';
const _ = require('lodash');
const Bacon = require('baconjs');
const colors = require('colors/safe');
const AppConfig = require('../models/app_configuration.js');
const Application = require('../models/application.js');
const handleCommandStream = require('../command-stream-handler');
const Logger = req... | JavaScript | 0 | @@ -1830,33 +1830,33 @@
(minFlavor.name
-=
+!
== maxFlavor.nam
@@ -1871,33 +1871,33 @@
%7C (minInstances
-=
+!
== maxInstances)
|
55d999b4ed5c06b4b4dda42dcb414b23505c97f9 | Update quickdraw.js | routes/quickdraw.js | routes/quickdraw.js | var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
// res.render('index', { title: 'Express' });
res.send('quickdraw');
});
router.post('/', function(req, res, next) {
// res.render('index', { title: 'Express' });
//console.log(req.body... | JavaScript | 0.000001 | @@ -690,16 +690,18 @@
;%0A//%7D);%0A
+//
fs.write
|
3159720c7ced241bd210f5124fd28399317a9e33 | rename local variables | src/compile/binning.js | src/compile/binning.js | var globals = require('../globals'),
util = require('../util');
module.exports = binning;
function binning(spec, encoding, opt) {
opt = opt || {};
var bins = {};
if (opt.preaggregatedData) {
return;
}
if (!spec.transform) spec.transform = [];
encoding.forEach(function(vv, d) {
if (d.bin) {
... | JavaScript | 0.000058 | @@ -289,12 +289,21 @@
ion(
-vv,
+encType, fiel
d) %7B
@@ -311,16 +311,20 @@
if (
+fiel
d.bin) %7B
@@ -394,24 +394,28 @@
: 'data.' +
+fiel
d.name,%0A
@@ -440,16 +440,20 @@
bin_' +
+fiel
d.name,%0A
@@ -486,10 +486,15 @@
enc(
-vv
+encType
).ma
|
6482647cd0c5ad12ab48f49011216e6e5ee79b6a | revert if in publisher ur edges | portality/static/js/edges/publisher.update_requests.edge.js | portality/static/js/edges/publisher.update_requests.edge.js | $.extend(true, doaj, {
publisherUpdatesSearch : {
activeEdges : {},
publisherStatusMap: function(value) {
if (doaj.valueMaps.applicationStatus.hasOwnProperty(value)) {
return doaj.valueMaps.applicationStatus[value];
}
return value;
},
... | JavaScript | 0 | @@ -970,127 +970,8 @@
al;%0A
- if (resultobj.admin.current_journal !== null && resultobj.admin.current_journal.is_in_doaj())%7B%0A
@@ -1076,38 +1076,16 @@
span%3E';%0A
- %7D%0A
@@ -1230,32 +1230,32 @@
if (!params) %7B%0A
-
@@ -1265,16 +1265... |
122853d7aab9aab35c3ce6a9311b9b174c86ad77 | add Span, H1, H2, H3, H4, H5 styled-components | src/components/Text.js | src/components/Text.js | import styled from 'styled-components';
import {
color,
display,
fontFamily,
fontSize,
fontWeight,
lineHeight,
letterSpacing,
space,
style,
textAlign,
} from 'styled-system';
export const textTransform = style({
prop: 'textTransform',
});
export const whiteSpace = style({
prop: 'whiteSpace',
}... | JavaScript | 0.000295 | @@ -309,32 +309,235 @@
iteSpace',%0A%7D);%0A%0A
+export const Span = styled.span%60%0A $%7Bcolor%7D%0A $%7Bdisplay%7D%0A $%7BfontFamily%7D%0A $%7BfontSize%7D%0A $%7BfontWeight%7D%0A $%7BlineHeight%7D%0A $%7BletterSpacing%7D%0A $%7Bspace%7D%0A $%7BtextAlign%7D%0A $%7BtextTransform%7D%0A $%7BwhiteSpace%7D%0A%... |
12f3681e0e9e32fa980def3969a01d0f19090188 | Fix test and improve process sandboxing (#5027) | packages/jest-util/src/create_process_object.js | packages/jest-util/src/create_process_object.js | /**
* Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import deepCyclicCopy from './deep_cyclic_copy';
const BLACKLIST = new Set(['mainModule']);
export de... | JavaScript | 0 | @@ -299,16 +299,27 @@
nModule'
+, '_events'
%5D);%0A%0Aexp
|
b8a7f52d5827dbcd7a5a291d8ce0fb80bca6f7a3 | FIX logger reference | lib/core/src/server/manager/manager-config.js | lib/core/src/server/manager/manager-config.js | import path from 'path';
import fs from 'fs-extra';
import findUp from 'find-up';
import resolveFrom from 'resolve-from';
import logger from '@storybook/node-logger';
import loadPresets from '../presets';
import loadCustomPresets from '../common/custom-presets';
import { typeScriptDefaults } from '../config/defaults'... | JavaScript | 0 | @@ -122,23 +122,27 @@
%0A%0Aimport
+ %7B
logger
+ %7D
from '@
|
6a3cc0ab2fe8dbde1b1191f6e045d6a517cf1153 | fix author | lib/dependencies/CreateScriptUrlDependency.js | lib/dependencies/CreateScriptUrlDependency.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Ivan Kopeykin @vankop
*/
"use strict";
const RuntimeGlobals = require("../RuntimeGlobals");
const makeSerializable = require("../util/makeSerializable");
const NullDependency = require("./NullDependency");
/** @typedef {import("webpack-source... | JavaScript | 0.000189 | @@ -72,29 +72,29 @@
hor
-Ivan
+Tobias
Kop
-eykin @vankop
+pers @sokra
%0A*/%0A
|
d7decd9b6c83c923918ae464b4d88ea0c99b34c9 | update icon url | src/app/components/nav.js | src/app/components/nav.js | var React = require('react');
import Block from './Block';
require('../../css/nav.css');
function Navbar(props){
return(
<div className='pane'>
<nav className='navbar' id='navbarPage'>
<ul>
<li id='button'><Block handleClick={props.handleClick} task='' imgUR... | JavaScript | 0.000001 | @@ -322,13 +322,13 @@
='./
-image
+asset
s/ba
|
7f781a43146856083d10a60250ab51a8dd59c7f4 | Fix content loading | src/app/preloads/index.js | src/app/preloads/index.js | const loadContent = require('../../shared/utils/load-content');
if (window.location.href.startsWith('wexond://newtab')) {
loadContent('newtab');
}
| JavaScript | 0 | @@ -62,16 +62,19 @@
);%0A%0Aif (
+%0A
window.l
@@ -115,16 +115,91 @@
newtab')
+ %7C%7C%0A window.location.href.startsWith('http://localhost:8080/newtab.html')%0A
) %7B%0A lo
|
40b2a1ef08a0737e3843f2912e0f8f4ff33cc57f | add warning on store not set | src/app/utils/UserUtil.js | src/app/utils/UserUtil.js | /**
* This file replicates and extends the contents of User.js in branches new-url-scheme && notifications-ui.
* Additions here need to be added to ./User.js when those are merged. Imports should pull that file, and this one should be deleted.
*/
let store = false;
export const setStore = (theStore) => {
if(!... | JavaScript | 0.000001 | @@ -263,16 +263,62 @@
= false;
+%0Aconst MSG_STORE_NOT_SET = 'store is not set';
%0A%0Aexport
@@ -915,32 +915,86 @@
%7D%0A %7D%0A
+ %7D else %7B%0A console.warn(MSG_STORE_NOT_SET);%0A
%7D%0A return
@@ -1432,32 +1432,32 @@
;%0A %7D%0A
-
%7D%0A %7D%0A
@@ -1446,24 +1... |
dd5215eceb5a08f42cd46c9a9d586cee0fcfaa5c | fix search submit functionality | docs/app/src/search.js | docs/app/src/search.js | angular.module('search', [])
.controller('DocsSearchCtrl', ['$scope', '$location', 'docsSearch', function($scope, $location, docsSearch) {
function clearResults() {
$scope.results = [];
$scope.colClassName = null;
$scope.hasResults = false;
}
$scope.search = function(q) {
var MIN_SEARCH_LENGTH =... | JavaScript | 0.000004 | @@ -946,11 +946,12 @@
ult.
-url
+path
);%0A
|
858470f5afe3ef6e0707c43c8ce99390fd1d95b3 | delete useless code | app/js/component/ui/course_view.js | app/js/component/ui/course_view.js | define(function (require) {
var defineComponent = require('flight/lib/component');
var templates = require('js/templates'),
template = templates['course'];
var _ = require('lodash/lodash');
return defineComponent(course);
function course() {
this.defaultAttrs({
app: '#... | JavaScript | 0.000021 | @@ -1152,43 +1152,8 @@
_id;
-%0A console.log(courseId);
%0A%0A
|
b2b4c9b792902f6a6eef667ef871ca336da6799d | remove import for nonexistent file #618 | app/js/welcome/components/index.js | app/js/welcome/components/index.js | export PairBrowserView from './PairBrowserView'
export LandingView from './LandingView'
export RestoreView from './RestoreView'
export NewInternetView from './NewInternetView'
export DataControlView from './DataControlView'
export EnterPasswordView from './EnterPasswordView'
export CreateIdentityView from './CreateIden... | JavaScript | 0 | @@ -221,60 +221,8 @@
ew'%0A
-export EnterPasswordView from './EnterPasswordView'%0A
expo
|
7a3ebc83db8107958625908da03cf7ae68752bea | fix bug: check selection state on selectAll action | app/scripts/services/CustomGrid.js | app/scripts/services/CustomGrid.js | 'use strict';
angular.module('customApp')
.factory('CustomGrid', function (DefaultOptions) {
var CustomGrid = function (options) {
var that = this;
var _total = function () {
return that._data.length;
};
var _pristineTotal = function () {
return that._pristineData.length... | JavaScript | 0 | @@ -4095,27 +4095,130 @@
t.view,
-that.select
+function(dataItem) %7B%0A if(!dataItem.__selected) %7B%0A that.select(dataItem);%0A %7D%0A %7D
);%0A
|
adf5b0d13aa8cc8da9b920a773b5067a37ac7fa7 | use platform getPrBody | lib/workers/repository/onboarding/pr/index.js | lib/workers/repository/onboarding/pr/index.js | const is = require('@sindresorhus/is');
const { getConfigDesc } = require('./config-description');
const { getErrors, getWarnings } = require('./errors-warnings');
const { getBaseBranchDesc } = require('./base-branch');
const { getPrList } = require('./pr-list');
async function ensureOnboardingPr(config, packageFiles,... | JavaScript | 0 | @@ -2679,16 +2679,56 @@
Body);%0A%0A
+ prBody = platform.getPrBody(prBody);%0A%0A
// Che
|
9cb1f1571cfb4b2ce1b5fc9f282e36f28558a1c0 | Fix bugs | src/dbl-option.js | src/dbl-option.js | /*
Created by Samir Chaves
Git Repo https://github.com/samirbraga/Double-Option-Button---JQuery-Plugin/edit/master/README.md
*/
$.fn.dblOption = function(opts){
$(this).each(function(){
var self = $(this);
self[0].dblOptions = $.extend({}, $.fn.dblOption.defaults, opts);
opts = self[0].dblOptions;
self... | JavaScript | 0.000004 | @@ -2253,34 +2253,8 @@
) %7B%0A
- console.log('right');%0A
%7D,
@@ -2282,33 +2282,8 @@
) %7B%0A
- console.log('left');%0A
%7D%0A
|
459b8ec5b9d6996b29d73fdf7b34ac19aa5ad9f6 | teste gccbcv | spec/suites/testeJAsmine.js | spec/suites/testeJAsmine.js | describe('Exibicao da mensagem de boas-vindas', function(){
beforeEach(function(){
setFixtures('<div id="mensagem" />');
this.mensagem = $('#mensagem');
});
afterEach(function(){
this.horas = [];
});
it("Deve exibir 'Bom-dia!' entre 5:00 e 11:59", function(){
... | JavaScript | 0.000003 | @@ -45,37 +45,32 @@
s', function()%7B%0A
- %0A
beforeEach(f
|
54d0381174f622f69f1f5553c2d5ebd8ee3b610a | Update RivCrimeReport.js | Examples/js/RivCrimeReport.js | Examples/js/RivCrimeReport.js | (function() {
// Create the connector object
var myConnector = tableau.makeConnector();
// Define the schema
myConnector.getSchema = function(schemaCallback) {
var cols = [{
id: "npc",
alias: "npc",
dataType: tableau.dataTypeEnum.string
}];
... | JavaScript | 0 | @@ -420,15 +420,8 @@
ime
-Top 20
JSON
|
7dab8a806cabac86d399a36c94e792551f5a0979 | Change order of Risk level graph | app/assets/javascripts/roster.js | app/assets/javascripts/roster.js | $(function() {
if ($('body').hasClass('homerooms') && $('body').hasClass('show')) {
// Initialize table sort on roster table
var table = document.getElementById('roster-table');
new Tablesort(table, { descending: false });
// Initialize table sort on roster table
$('#homeroom-select').bind('cha... | JavaScript | 0.000001 | @@ -2942,18 +2942,18 @@
a: %5B
-5
+6, 2
, 2, 1
-, 4
%5D%0A
@@ -4179,17 +4179,49 @@
k level
-0
+3',%0A 'Risk level 2
',%0A
@@ -4279,41 +4279,9 @@
vel
-2',%0A 'Risk level 3
+0
',%0A
|
79583ad5f7caf7c3ff5bf69b89879893d2c7d86c | Remove commented code in movim_websocket | app/assets/js/movim_websocket.js | app/assets/js/movim_websocket.js | /**
* Movim Websocket
*
* This file define the websocket behaviour and handle its connection
*/
WebSocket.prototype.unregister = function() {
this.send(JSON.stringify({'func' : 'unregister'}));
};
WebSocket.prototype.register = function(host) {
this.send(JSON.stringify({'func' : 'register', 'host' : host}... | JavaScript | 0.000001 | @@ -1471,43 +1471,8 @@
) %7B%0A
- //console.log(e.data);%0A
@@ -1543,37 +1543,8 @@
%7D);
-%0A //data = e.data;
%0A%0A
@@ -3779,51 +3779,8 @@
) %7B%0A
- //var funcalls = JSON.parse(json);%0A
@@ -3904,48 +3904,8 @@
h%5D;%0A
- //console.log(funcall);%0A
... |
abe2429fe747222333d28c67613f1bc50b17d4d1 | make gravatars secure | app/components/gravatar-image.js | app/components/gravatar-image.js | import Ember from "ember";
/**
* Helper to make a gravatar from a md5 email hash
* Hash must be pre-generated
*/
export default Ember.Component.extend({
tagName: '',
hash: '',
size: 200,
gravatarUrl: function(){
var hash = this.get('hash');
var size = this.get('size');
return ... | JavaScript | 0 | @@ -318,16 +318,17 @@
rn %22http
+s
://www.g
|
6c4dda6d66ee6ae23a1283e0e33eac3a441e8006 | Add missing require main file for view. | app/dashboard/static/js/build.js | app/dashboard/static/js/build.js | ({
appDir: '../',
baseUrl: 'js',
dir: '/tmp/assets-build',
allowSourceOverwrites: true,
paths: {
'lib': './lib',
'app': './app',
'charts': './app/charts',
'utils': './app/utils',
'jquery': 'lib/jquery-2.1.4',
'bootstrap': 'lib/bootstrap-3.3.5',
... | JavaScript | 0 | @@ -4508,16 +4508,55 @@
bs-job'%7D
+,%0A %7Bname: 'kci-jobs-job-branch'%7D
%0A %5D%0A%7D
|
bf193ef29b45a59be3ebb69b16a194f420f2d7b9 | Set workshops, IT seats based on variant | amy/static/membership_create.js | amy/static/membership_create.js | jQuery(function() {
$('#id_main_organization').on('change.select2', (e) => {
// additional data is sent from the backend and it's stored in
// select2 `data` parameter
const fullname = $(e.target).select2("data")[0].fullname;
const id_name = $("#id_name");
// only write the ... | JavaScript | 0 | @@ -456,13 +456,860 @@
%0A %7D);
+%0A%0A $('#id_variant').on('change', (e) =%3E %7B%0A const parameters = %7B%0A bronze: %7B%0A it_seats_public: 0,%0A workshops: 2%0A %7D,%0A silver: %7B%0A it_seats_public: 6,%0A ... |
c30cef74bef57697d8f1418164c178acb25393cc | fix IE 6 nifty arguments JS error | WebRoot/js/lib/niftyLayout.js | WebRoot/js/lib/niftyLayout.js | /*nifty corners layout*/
window.onload=function(){
Nifty("div#menu a","small transparent top");
Nifty("ul#intro li","same-height");
Nifty("div.date");
Nifty("div#content,div#side","same-height");
Nifty("div.comments div");
Nifty("div#footer");
Nifty("div#container","bottom");
} | JavaScript | 0 | @@ -23,18 +23,14 @@
*/%0A%0A
-window.onl
+NiftyL
oad=
@@ -41,16 +41,23 @@
tion()%7B%0A
+try%09%7B%0A%09
Nifty(%22d
@@ -89,24 +89,25 @@
rent top%22);%0A
+%09
Nifty(%22ul#in
@@ -122,32 +122,35 @@
%22same-height%22);%0A
+%09%0A%09
Nifty(%22div.date%22
@@ -148,24 +148,28 @@
div.date%22);%0A
+%0A//%09
Nifty(%22div... |
aa624267087de9a87889cdf6ee49517fc04e4a24 | Fix maximum length for messages | app/js/arethusa.core/notifier.js | app/js/arethusa.core/notifier.js | 'use strict';
angular.module('arethusa.core').service('notifier', function () {
var self = this;
this.messages = [];
function Message(type, message, description) {
this.type = type;
this.message = message;
this.description = description;
}
this.success = function (message) {
self.messages.un... | JavaScript | 0.999831 | @@ -306,39 +306,19 @@
elf.
-m
+addM
essage
-s.unshift(%7B%0A type:
+(
'suc
@@ -323,30 +323,24 @@
uccess',
-%0A
message
: messag
@@ -327,39 +327,24 @@
ss', message
-: message%0A %7D
);%0A %7D;%0A th
@@ -388,47 +388,27 @@
elf.
-m
+addM
essage
-s.unshift(%7B%0A type:
+(
'error',
%0A
@... |
2ec2139777e67694f911364278a2d6bb5c833c44 | fix double touch on mobile | app/js/src/screens/MainScreen.js | app/js/src/screens/MainScreen.js | import screensManager from '../managers/screensManager';
import dataManager from '../managers/dataManager';
import Background from '../display/Background';
import Hero from '../display/Hero';
import Spike from '../display/Spike';
import ShadowOverlay from '../display/ShadowOverlay';
const GROUND_HEIGHT = 82;
export d... | JavaScript | 0 | @@ -2374,215 +2374,62 @@
%7D;%0A
- this.onTouchStart = e =%3E %7B%0A e.preventDefault();%0A this.handleAction();%0A %7D;%0A%0A window.addEventListener('keydown', this.onKeyDown);%0A window.addEventListener('touchstart', this.onTouchStart
+%0A window.addEventListener('keydown', this.onKeyDown
... |
61003a945be6696baccd403a14f7dba4242bbc57 | Load carto lib for torque | app/assets/javascripts/table.js | app/assets/javascripts/table.js | //= require codemirror
//= require show-hint
//= require anyword-hint
//= require custom-list-hint
//= require select2.min
//= require jquery.faviconNotify
//= require rgbcolor
//= require crossfilter
//= require_tree ../../../vendor/assets/javascripts/jquery-ui
//= require jquery.caret
//= require ZeroClipboard
//= re... | JavaScript | 0 | @@ -521,16 +521,31 @@
require
+cdb/vendor/mod/
carto%0A//
@@ -1844,12 +1844,13 @@
hboard/views
+%0A
|
e3c651004fa6d96d8cb0e9c811acbafb57d4135e | Remove useless button value change in users/form | app/assets/javascripts/users.js | app/assets/javascripts/users.js | //generate token button
$(function() {
$("#generate-token").live("click", function(e) {
$(this).html("Génération...");
$(this).disabled = true;
$.ajax({
type: "GET",
url: "/users/random_token",
//data: $(this).val(),
//dataType: "script",
callback: null
});
$(this).ht... | JavaScript | 0.000001 | @@ -87,43 +87,8 @@
) %7B%0A
- $(this).html(%22G%C3%A9n%C3%A9ration...%22);%0A
@@ -268,37 +268,8 @@
%7D);%0A
- $(this).html(%22G%C3%A9n%C3%A9rer%22);%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.