code
stringlengths
2
1.05M
var mongoose = require('mongoose'); var AppPropsMO = mongoose.model("AppProps"); function commonCB(cb) { return function(err, result) { if(err || !result) { cb(null); } else { cb(result.value); } }; } module.exports = { getCFG: function(name, cb) { AppPropsMO.findOne({ name: name }).select("value").exec(commonCB(cb)); }, setCFG: function(name, value, cb) { AppPropsMO.update({ name: name }, { name: name, value: value }, { upsert: true }, commonCB(cb)); }, getAll: function(cb) { AppPropsMO.find({}, function(err, result) { cb(err? {}: result); }); }, getFormatVer: function(cb) { this.getCFG("formatver", cb); }, setFormatVer: function(revision, cb) { this.setCFG("formatver", revision, cb); } };
var path = require('path') var webpack = require('webpack') var dotenv = require('dotenv') var VueLoaderPlugin = require('vue-loader/lib/plugin') dotenv.config() module.exports = { entry: './src/main.js', output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', filename: 'build.js' }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader' }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, options: { presets: [ '@babel/preset-env' ] } }, { test: /\.(png|jpg|gif|svg)$/, loader: 'file-loader', options: { name: '[name].[ext]?[hash]' } }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] } ] }, resolve: { alias: { 'vue$': 'vue/dist/vue.esm.js' } }, devServer: { historyApiFallback: true, noInfo: true }, performance: { hints: false }, devtool: '#eval-source-map', plugins: [ new VueLoaderPlugin(), new webpack.DefinePlugin({ 'ROLLBAR_CLIENT_TOKEN': JSON.stringify(process.env.ROLLBAR_CLIENT_TOKEN) }) ] }
module.exports = { list: require('./list') }
var _ = require("lodash"); module.exports = function(app, sailfishCollector) { app.get('/settings/repositories', function (req, res) { sailfishCollector.collectInformation(function(err, viewParameters) { app.get("model.Project").find({}, function(err, projects) { return res.render("repositories", _.extend(viewParameters, { view: "settings", projects: projects })); }); }); }); };
(function () { 'use strict'; angular .module('apollonApp') .constant('gatekeeper', { USE_TEST_FEATURE: true }); })();
import React, { Component } from 'react' import { Link } from 'react-router-dom' import Icon from 'utils/icons' import t from 'utils/types' import Page from 'containers/Page' import TitleBar from 'components/TitleBar' import getUserPermissions from 'utils/getUserPermissions' import './Settings.scss' export default class Settings extends Component { static propTypes = { plugins: t.plugins.isRequired } render () { const perms = getUserPermissions() const { plugins } = this.props.plugins const showSection = obj => obj && Object.keys(obj).some(v => obj[v]) const sections = { Content: [ { label: 'Sections', path: '/settings/sections', icon: 'stack', hidden: !showSection(perms.sections) }, { label: 'Fields', path: '/settings/fields', icon: 'pilcrow', hidden: !showSection(perms.fields) }, { label: 'Assets', path: '/settings/assets', icon: 'images', hidden: !showSection(perms.assets) }, { label: 'Pages', path: '/settings/pages', icon: 'fileText', hidden: !showSection(perms.pages) } ], Management: [ { label: 'User Groups', path: '/settings/usergroups', icon: 'users', hidden: !perms.usergroups.canViewUserGroups }, { label: 'Logs', path: '/settings/logs', icon: 'floppy' } ], General: [ { label: 'Site Settings', path: '/settings/general', icon: 'gear', hidden: !perms.site.canManageSite }, { label: 'Custom Styles', path: '/settings/styles', icon: 'paint', hidden: !perms.site.canCustomStyles }, { label: 'Plugins', path: '/settings/plugins', icon: 'plug', hidden: !perms.site.canManagePlugins || plugins.length === 0 } ] } return ( <Page name="settings"> <TitleBar title="Settings" /> <div className="content"> <div className="page__inner"> {Object.keys(sections).map((key) => { const sectionLinks = sections[key].filter(l => !l.hidden) if (sectionLinks.length === 0) return null return ( <section className="settings__section" key={key}> <h2 className="settings__section__title">{key}</h2> {sectionLinks.map(l => ( <Link className="settings__link" key={l.path} to={l.path}> <Icon icon={l.icon} width={48} height={48} /> {l.label} </Link>))} </section> ) })} </div> </div> </Page> ) } }
/* global afterEach:true, before:true, beforeEach:true, describe:true, expect:true, it:true, Promise:true, require:true */ var DRIVERS = [ localforage.INDEXEDDB, localforage.LOCALSTORAGE, localforage.WEBSQL ]; var driverApiMethods = [ 'getItem', 'setItem', 'clear', 'length', 'removeItem', 'key', 'keys' ]; var componentBuild = window.require && window.require.modules && window.require.modules.localforage && window.require.modules.localforage.component; describe('localForage API', function() { // If this test is failing, you are likely missing the Promises polyfill, // installed via bower. Read more here: // https://github.com/mozilla/localForage#working-on-localforage it('has Promises available', function() { if (componentBuild) { expect(require('promise')).to.be.a('function'); } else { expect(Promise).to.be.a('function'); } }); }); describe('localForage', function() { var appropriateDriver = (localforage.supports(localforage.INDEXEDDB) && localforage.INDEXEDDB) || (localforage.supports(localforage.WEBSQL) && localforage.WEBSQL) || (localforage.supports(localforage.LOCALSTORAGE) && localforage.LOCALSTORAGE); it('automatically selects the most appropriate driver (' + appropriateDriver + ')', function(done) { this.timeout(10000); localforage.ready().then(function() { expect(localforage.driver()).to.be(appropriateDriver); done(); }, function(error) { expect(error).to.be.an(Error); expect(error.message).to .be('No available storage method found.'); expect(localforage.driver()).to.be(null); done(); }); }); it('errors when a requested driver is not found [callback]', function(done) { localforage.getDriver('UnknownDriver', null, function(error) { expect(error).to.be.an(Error); expect(error.message).to .be('Driver not found.'); done(); }); }); it('errors when a requested driver is not found [promise]', function(done) { localforage.getDriver('UnknownDriver').then(null, function(error) { expect(error).to.be.an(Error); expect(error.message).to .be('Driver not found.'); done(); }); }); it('retrieves the serializer [callback]', function(done) { localforage.getSerializer(function(serializer) { expect(serializer).to.be.an('object'); done(); }); }); it('retrieves the serializer [promise]', function(done) { var serializerPromise = localforage.getSerializer(); expect(serializerPromise).to.be.an('object'); expect(serializerPromise.then).to.be.a('function'); serializerPromise.then(function(serializer) { expect(serializer).to.be.an('object'); done(); }); }); it('does not support object parameter to setDriver', function(done) { var driverPreferedOrder = { '0': localforage.INDEXEDDB, '1': localforage.WEBSQL, '2': localforage.LOCALSTORAGE, length: 3 }; localforage.setDriver(driverPreferedOrder).then(null, function(error) { expect(error).to.be.an(Error); expect(error.message).to .be('No available storage method found.'); done(); }); }); it('skips drivers that fail to initilize', function(done) { var failingStorageDriver = (function() { function driverDummyMethod() { return Promise.reject(new Error('Driver Method Failed.')); } return { _driver: 'failingStorageDriver', _initStorage: function _initStorage() { return Promise.reject(new Error('Driver Failed to Initialize.')); }, iterate: driverDummyMethod, getItem: driverDummyMethod, setItem: driverDummyMethod, removeItem: driverDummyMethod, clear: driverDummyMethod, length: driverDummyMethod, key: driverDummyMethod, keys: driverDummyMethod }; })(); var driverPreferedOrder = [ failingStorageDriver._driver, localforage.INDEXEDDB, localforage.WEBSQL, localforage.LOCALSTORAGE ]; localforage.defineDriver(failingStorageDriver).then(function() { return localforage.setDriver(driverPreferedOrder); }).then(function() { return localforage.ready(); }).then(function() { expect(localforage.driver()).to.be(appropriateDriver); done(); }); }); }); DRIVERS.forEach(function(driverName) { if ((!localforage.supports(localforage.INDEXEDDB) && driverName === localforage.INDEXEDDB) || (!localforage.supports(localforage.LOCALSTORAGE) && driverName === localforage.LOCALSTORAGE) || (!localforage.supports(localforage.WEBSQL) && driverName === localforage.WEBSQL)) { // Browser doesn't support this storage library, so we exit the API // tests. return; } describe(driverName + ' driver', function() { 'use strict'; this.timeout(30000); before(function(done) { localforage.setDriver(driverName).then(done); }); beforeEach(function(done) { localStorage.clear(); localforage.ready().then(function() { localforage.clear(done); }); }); it('has a localStorage API', function() { expect(localforage.getItem).to.be.a('function'); expect(localforage.setItem).to.be.a('function'); expect(localforage.clear).to.be.a('function'); expect(localforage.length).to.be.a('function'); expect(localforage.removeItem).to.be.a('function'); expect(localforage.key).to.be.a('function'); }); it('has the localForage API', function() { expect(localforage._initStorage).to.be.a('function'); expect(localforage.config).to.be.a('function'); expect(localforage.defineDriver).to.be.a('function'); expect(localforage.driver).to.be.a('function'); expect(localforage.supports).to.be.a('function'); expect(localforage.iterate).to.be.a('function'); expect(localforage.getItem).to.be.a('function'); expect(localforage.setItem).to.be.a('function'); expect(localforage.clear).to.be.a('function'); expect(localforage.length).to.be.a('function'); expect(localforage.removeItem).to.be.a('function'); expect(localforage.key).to.be.a('function'); expect(localforage.getDriver).to.be.a('function'); expect(localforage.setDriver).to.be.a('function'); expect(localforage.ready).to.be.a('function'); expect(localforage.createInstance).to.be.a('function'); expect(localforage.getSerializer).to.be.a('function'); }); // Make sure we don't support bogus drivers. it('supports ' + driverName + ' database driver', function() { expect(localforage.supports(driverName) === true); expect(localforage.supports('I am not a driver') === false); }); it('sets the right database driver', function() { expect(localforage.driver() === driverName); }); it('has an empty length by default', function(done) { localforage.length(function(err, length) { expect(length).to.be(0); done(); }); }); it('should iterate [callback]', function(done) { localforage.setItem('officeX', 'InitechX', function(err, setValue) { expect(setValue).to.be('InitechX'); localforage.getItem('officeX', function(err, value) { expect(value).to.be(setValue); localforage.setItem('officeY', 'InitechY', function(err, setValue) { expect(setValue).to.be('InitechY'); localforage.getItem('officeY', function(err, value) { expect(value).to.be(setValue); var accumulator = {}; var iterationNumbers = []; localforage.iterate(function(value, key, iterationNumber) { accumulator[key] = value; iterationNumbers.push(iterationNumber); }, function() { try { expect(accumulator.officeX).to.be('InitechX'); expect(accumulator.officeY).to.be('InitechY'); expect(iterationNumbers).to.eql([1, 2]); done(); } catch (e) { done(e); } }); }); }); }); }); }); it('should iterate [promise]', function(done) { var accumulator = {}; var iterationNumbers = []; return localforage.setItem('officeX', 'InitechX').then(function(setValue) { expect(setValue).to.be('InitechX'); return localforage.getItem('officeX'); }).then(function(value) { expect(value).to.be('InitechX'); return localforage.setItem('officeY', 'InitechY'); }).then(function(setValue) { expect(setValue).to.be('InitechY'); return localforage.getItem('officeY'); }).then(function(value) { expect(value).to.be('InitechY'); return localforage.iterate(function(value, key, iterationNumber) { accumulator[key] = value; iterationNumbers.push(iterationNumber); }); }).then(function() { expect(accumulator.officeX).to.be('InitechX'); expect(accumulator.officeY).to.be('InitechY'); expect(iterationNumbers).to.eql([1, 2]); done(); }); }); it('should break iteration with defined return value [callback]', function(done) { var breakCondition = 'Some value!'; localforage.setItem('officeX', 'InitechX', function(err, setValue) { expect(setValue).to.be('InitechX'); localforage.getItem('officeX', function(err, value) { expect(value).to.be(setValue); localforage.setItem('officeY', 'InitechY', function(err, setValue) { expect(setValue).to.be('InitechY'); localforage.getItem('officeY', function(err, value) { expect(value).to.be(setValue); // Loop is broken within first iteration. localforage.iterate(function() { // Returning defined value will break the cycle. return breakCondition; }, function(err, loopResult) { // The value that broken the cycle is returned // as a result. expect(loopResult).to.be(breakCondition); done(); }); }); }); }); }); }); it('should break iteration with defined return value [promise]', function(done) { var breakCondition = 'Some value!'; localforage.setItem('officeX', 'InitechX').then(function(setValue) { expect(setValue).to.be('InitechX'); return localforage.getItem('officeX'); }).then(function(value) { expect(value).to.be('InitechX'); return localforage.setItem('officeY', 'InitechY'); }).then(function(setValue) { expect(setValue).to.be('InitechY'); return localforage.getItem('officeY'); }).then(function(value) { expect(value).to.be('InitechY'); return localforage.iterate(function() { return breakCondition; }); }).then(function(result) { expect(result).to.be(breakCondition); done(); }); }); it('should iterate() through only its own keys/values', function(done) { localStorage.setItem('local', 'forage'); localforage.setItem('office', 'Initech').then(function() { return localforage.setItem('name', 'Bob'); }).then(function() { // Loop through all key/value pairs; {local: 'forage'} set // manually should not be returned. var numberOfItems = 0; var iterationNumberConcat = ''; localStorage.setItem('locals', 'forages'); localforage.iterate(function(value, key, iterationNumber) { expect(key).to.not.be('local'); expect(value).to.not.be('forage'); numberOfItems++; iterationNumberConcat += iterationNumber; }, function(err) { if (!err) { // While there are 4 items in localStorage, // only 2 items were set using localForage. expect(numberOfItems).to.be(2); // Only 2 items were set using localForage, // so we should get '12' and not '1234' expect(iterationNumberConcat).to.be('12'); done(); } }); }); }); // Test for https://github.com/mozilla/localForage/issues/175 it('nested getItem inside clear works [callback]', function(done) { localforage.setItem('hello', 'Hello World !', function() { localforage.clear(function() { localforage.getItem('hello', function(secondValue) { expect(secondValue).to.be(null); done(); }); }); }); }); it('nested getItem inside clear works [promise]', function(done) { localforage.setItem('hello', 'Hello World !').then(function() { return localforage.clear(); }).then(function() { return localforage.getItem('hello'); }).then(function(secondValue) { expect(secondValue).to.be(null); done(); }); }); // Because localStorage doesn't support saving the `undefined` type, we // always return `null` so that localForage is consistent across // browsers. // https://github.com/mozilla/localForage/pull/42 it('returns null for undefined key [callback]', function(done) { localforage.getItem('key', function(err, value) { expect(value).to.be(null); done(); }); }); it('returns null for undefined key [promise]', function(done) { localforage.getItem('key').then(function(value) { expect(value).to.be(null); done(); }); }); it('saves an item [callback]', function(done) { localforage.setItem('office', 'Initech', function(err, setValue) { expect(setValue).to.be('Initech'); localforage.getItem('office', function(err, value) { expect(value).to.be(setValue); done(); }); }); }); it('saves an item [promise]', function(done) { localforage.setItem('office', 'Initech').then(function(setValue) { expect(setValue).to.be('Initech'); return localforage.getItem('office'); }).then(function(value) { expect(value).to.be('Initech'); done(); }); }); it('saves an item over an existing key [callback]', function(done) { localforage.setItem('4th floor', 'Mozilla', function(err, setValue) { expect(setValue).to.be('Mozilla'); localforage.setItem('4th floor', 'Quora', function(err, newValue) { expect(newValue).to.not.be(setValue); expect(newValue).to.be('Quora'); localforage.getItem('4th floor', function(err, value) { expect(value).to.not.be(setValue); expect(value).to.be(newValue); done(); }); }); }); }); it('saves an item over an existing key [promise]', function(done) { localforage.setItem('4e', 'Mozilla').then(function(setValue) { expect(setValue).to.be('Mozilla'); return localforage.setItem('4e', 'Quora'); }).then(function(newValue) { expect(newValue).to.not.be('Mozilla'); expect(newValue).to.be('Quora'); return localforage.getItem('4e'); }).then(function(value) { expect(value).to.not.be('Mozilla'); expect(value).to.be('Quora'); done(); }); }); it('returns null when saving undefined [callback]', function(done) { localforage.setItem('undef', undefined, function(err, setValue) { expect(setValue).to.be(null); done(); }); }); it('returns null when saving undefined [promise]', function(done) { localforage.setItem('undef', undefined).then(function(setValue) { expect(setValue).to.be(null); done(); }); }); it('returns null for a non-existant key [callback]', function(done) { localforage.getItem('undef', function(err, value) { expect(value).to.be(null); done(); }); }); it('returns null for a non-existant key [promise]', function(done) { localforage.getItem('undef').then(function(value) { expect(value).to.be(null); done(); }); }); // github.com/mozilla/localforage/pull/24#discussion-diff-9389662R158 // localStorage's method API (`localStorage.getItem('foo')`) returns // `null` for undefined keys, even though its getter/setter API // (`localStorage.foo`) returns `undefined` for the same key. Gaia's // asyncStorage API, which is based on localStorage and upon which // localforage is based, ALSO returns `null`. BLARG! So for now, we // just return null, because there's no way to know from localStorage // if the key is ACTUALLY `null` or undefined but returning `null`. // And returning `undefined` here would break compatibility with // localStorage fallback. Maybe in the future we won't care... it('returns null from an undefined key [callback]', function(done) { localforage.key(0, function(err, key) { expect(key).to.be(null); done(); }); }); it('returns null from an undefined key [promise]', function(done) { localforage.key(0).then(function(key) { expect(key).to.be(null); done(); }); }); it('returns key name [callback]', function(done) { localforage.setItem('office', 'Initech').then(function() { localforage.key(0, function(err, key) { expect(key).to.be('office'); done(); }); }); }); it('returns key name [promise]', function(done) { localforage.setItem('office', 'Initech').then(function() { return localforage.key(0); }).then(function(key) { expect(key).to.be('office'); done(); }); }); it('removes an item [callback]', function(done) { localforage.setItem('office', 'Initech', function() { localforage.setItem('otherOffice', 'Initrode', function() { localforage.removeItem('office', function() { localforage.getItem('office', function(err, emptyValue) { expect(emptyValue).to.be(null); localforage.getItem('otherOffice', function(err, value) { expect(value).to.be('Initrode'); done(); }); }); }); }); }); }); it('removes an item [promise]', function(done) { localforage.setItem('office', 'Initech').then(function() { return localforage.setItem('otherOffice', 'Initrode'); }).then(function() { return localforage.removeItem('office'); }).then(function() { return localforage.getItem('office'); }).then(function(emptyValue) { expect(emptyValue).to.be(null); return localforage.getItem('otherOffice'); }).then(function(value) { expect(value).to.be('Initrode'); done(); }); }); it('removes all items [callback]', function(done) { localforage.setItem('office', 'Initech', function() { localforage.setItem('otherOffice', 'Initrode', function() { localforage.length(function(err, length) { expect(length).to.be(2); localforage.clear(function() { localforage.getItem('office', function(err, value) { expect(value).to.be(null); localforage.length(function(err, length) { expect(length).to.be(0); done(); }); }); }); }); }); }); }); it('removes all items [promise]', function(done) { localforage.setItem('office', 'Initech').then(function() { return localforage.setItem('otherOffice', 'Initrode'); }).then(function() { return localforage.length(); }).then(function(length) { expect(length).to.be(2); return localforage.clear(); }).then(function() { return localforage.getItem('office'); }).then(function(value) { expect(value).to.be(null); return localforage.length(); }).then(function(length) { expect(length).to.be(0); done(); }); }); if (driverName === localforage.LOCALSTORAGE) { it('removes only own items upon clear', function(done) { localStorage.setItem('local', 'forage'); localforage.setItem('office', 'Initech').then(function() { return localforage.clear(); }).then(function() { expect(localStorage.getItem('local')).to.be('forage'); localStorage.clear(); done(); }); }); it('returns only its own keys from keys()', function(done) { localStorage.setItem('local', 'forage'); localforage.setItem('office', 'Initech').then(function() { return localforage.keys(); }).then(function(keys) { expect(keys).to.eql(['office']); localStorage.clear(); done(); }); }); it('counts only its own items with length()', function(done) { localStorage.setItem('local', 'forage'); localStorage.setItem('another', 'value'); localforage.setItem('office', 'Initech').then(function() { return localforage.length(); }).then(function(length) { expect(length).to.be(1); localStorage.clear(); done(); }); }); } it('has a length after saving an item [callback]', function(done) { localforage.length(function(err, length) { expect(length).to.be(0); localforage.setItem('rapper', 'Black Thought', function() { localforage.length(function(err, length) { expect(length).to.be(1); done(); }); }); }); }); it('has a length after saving an item [promise]', function(done) { localforage.length().then(function(length) { expect(length).to.be(0); return localforage.setItem('lame rapper', 'Vanilla Ice'); }).then(function() { return localforage.length(); }).then(function(length) { expect(length).to.be(1); done(); }); }); // Deal with non-string keys, see issue #250 // https://github.com/mozilla/localForage/issues/250 it('casts an undefined key to a String', function(done) { localforage.setItem(undefined, 'goodness!').then(function(value) { expect(value).to.be('goodness!'); return localforage.getItem(undefined); }).then(function(value) { expect(value).to.be('goodness!'); return localforage.removeItem(undefined); }).then(function() { return localforage.length(); }).then(function(length) { expect(length).to.be(0); done(); }); }); it('casts a null key to a String', function(done) { localforage.setItem(null, 'goodness!').then(function(value) { expect(value).to.be('goodness!'); return localforage.getItem(null); }).then(function(value) { expect(value).to.be('goodness!'); return localforage.removeItem(null); }).then(function() { return localforage.length(); }).then(function(length) { expect(length).to.be(0); done(); }); }); it('casts a float key to a String', function(done) { localforage.setItem(537.35737, 'goodness!').then(function(value) { expect(value).to.be('goodness!'); return localforage.getItem(537.35737); }).then(function(value) { expect(value).to.be('goodness!'); return localforage.removeItem(537.35737); }).then(function() { return localforage.length(); }).then(function(length) { expect(length).to.be(0); done(); }); }); it('is retrieved by getDriver [callback]', function(done) { localforage.getDriver(driverName, function(driver) { expect(typeof driver).to.be('object'); driverApiMethods.concat('_initStorage').forEach(function(methodName) { expect(typeof driver[methodName]).to.be('function'); }); expect(driver._driver).to.be(driverName); done(); }); }); it('is retrieved by getDriver [promise]', function(done) { localforage.getDriver(driverName).then(function(driver) { expect(typeof driver).to.be('object'); driverApiMethods.concat('_initStorage').forEach(function(methodName) { expect(typeof driver[methodName]).to.be('function'); }); expect(driver._driver).to.be(driverName); done(); }); }); if (driverName === localforage.WEBSQL || driverName === localforage.LOCALSTORAGE) { it('exposes the serializer on the dbInfo object', function(done) { localforage.ready().then(function() { expect(localforage._dbInfo.serializer).to.be.an('object'); done(); }); }); } }); describe(driverName + ' driver multiple instances', function() { 'use strict'; var localforage2 = null; var localforage3 = null; var Promise; before(function(done) { Promise = window.Promise || require('promise'); localforage2 = localforage.createInstance({ name: 'storage2', // We need a small value here // otherwise local PhantomJS test // will fail with SECURITY_ERR. // TravisCI seem to work fine though. size: 1024, storeName: 'storagename2' }); // Same name, but different storeName localforage3 = localforage.createInstance({ name: 'storage2', // We need a small value here // otherwise local PhantomJS test // will fail with SECURITY_ERR. // TravisCI seem to work fine though. size: 1024, storeName: 'storagename3' }); Promise.all([ localforage.setDriver(driverName), localforage2.setDriver(driverName), localforage3.setDriver(driverName) ]) .then(function() { done(); }); }); beforeEach(function(done) { Promise.all([ localforage.clear(), localforage2.clear(), localforage3.clear() ]).then(function() { done(); }); }); it('is not be able to access values of other instances', function(done) { Promise.all([ localforage.setItem('key1', 'value1a'), localforage2.setItem('key2', 'value2a'), localforage3.setItem('key3', 'value3a') ]).then(function() { return Promise.all([ localforage.getItem('key2').then(function(value) { expect(value).to.be(null); }), localforage2.getItem('key1').then(function(value) { expect(value).to.be(null); }), localforage2.getItem('key3').then(function(value) { expect(value).to.be(null); }), localforage3.getItem('key2').then(function(value) { expect(value).to.be(null); }) ]); }).then(function() { done(); }, function(errors) { done(new Error(errors)); }); }); it('retrieves the proper value when using the same key with other instances', function(done) { Promise.all([ localforage.setItem('key', 'value1'), localforage2.setItem('key', 'value2'), localforage3.setItem('key', 'value3') ]).then(function() { return Promise.all([ localforage.getItem('key').then(function(value) { expect(value).to.be('value1'); }), localforage2.getItem('key').then(function(value) { expect(value).to.be('value2'); }), localforage3.getItem('key').then(function(value) { expect(value).to.be('value3'); }) ]); }).then(function() { done(); }, function(errors) { done(new Error(errors)); }); }); }); describe(driverName + ' driver', function() { 'use strict'; var driverPreferedOrder; before(function() { // add some unsupported drivers before // and after the target driver driverPreferedOrder = ['I am a not supported driver']; if (!localforage.supports(localforage.WEBSQL)) { driverPreferedOrder.push(localforage.WEBSQL); } if (!localforage.supports(localforage.INDEXEDDB)) { driverPreferedOrder.push(localforage.INDEXEDDB); } if (!localforage.supports(localforage.LOCALSTORAGE)) { driverPreferedOrder.push(localforage.localStorage); } driverPreferedOrder.push(driverName); driverPreferedOrder.push('I am another not supported driver'); }); it('is used according to setDriver preference order', function(done) { localforage.setDriver(driverPreferedOrder).then(function() { expect(localforage.driver()).to.be(driverName); done(); }); }); }); describe(driverName + ' driver when the callback throws an Error', function() { 'use strict'; var testObj = { throwFunc: function() { testObj.throwFuncCalls++; throw new Error('Thrown test error'); }, throwFuncCalls: 0 }; beforeEach(function(done) { testObj.throwFuncCalls = 0; done(); }); it('resolves the promise of getItem()', function(done) { localforage.getItem('key', testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); it('resolves the promise of setItem()', function(done) { localforage.setItem('key', 'test', testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); it('resolves the promise of clear()', function(done) { localforage.clear(testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); it('resolves the promise of length()', function(done) { localforage.length(testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); it('resolves the promise of removeItem()', function(done) { localforage.removeItem('key', testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); it('resolves the promise of key()', function(done) { localforage.key('key', testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); it('resolves the promise of keys()', function(done) { localforage.keys(testObj.throwFunc).then(function() { expect(testObj.throwFuncCalls).to.be(1); done(); }); }); }); describe(driverName + ' driver when ready() gets rejected', function() { 'use strict'; this.timeout(30000); var _oldReady; var Promise; before(function() { Promise = window.Promise || require('promise'); }); beforeEach(function(done) { _oldReady = localforage.ready; localforage.ready = function() { return Promise.reject(); }; done(); }); afterEach(function(done) { localforage.ready = _oldReady; _oldReady = null; done(); }); driverApiMethods.forEach(function(methodName) { it('rejects ' + methodName + '() promise', function(done) { localforage[methodName]().then(null, function(/*err*/) { done(); }); }); }); }); }); DRIVERS.forEach(function(driverName) { describe(driverName + ' driver instance', function() { it('creates a new instance and sets the driver', function(done) { var localforage2 = localforage.createInstance({ name: 'storage2', driver: driverName, // We need a small value here // otherwise local PhantomJS test // will fail with SECURITY_ERR. // TravisCI seem to work fine though. size: 1024, storeName: 'storagename2' }); // since config actually uses setDriver which is async, // and since driver() and supports() are not defered (are sync), // we have to wait till an async method returns localforage2.length().then(function() { expect(localforage2.driver()).to.be(driverName); done(); }, function() { expect(localforage2.driver()).to.be(null); done(); }); }); }); });
import React from "react"; import {observer} from "mobx-react"; import {getCategories} from "../../calls/category"; import {categoryStore} from "../../mobx/stores"; @observer export default class CmbCategoria extends React.Component{ componentDidUpdate(){ const { category } = this.refs; $(category).material_select(); $(category).prev().children("li").on("click",(e)=>{ let span = $(e.target).html(); categoryStore.category = span.toUpperCase(); }); } render(){ return( <div> <select class="icons" ref="category" id="cmbCategoria"> <option value="all">all</option> {categoryStore.categories.map( (category,i)=> <option key={i} value={category} data-icon={`../../../img/categories/${category}.png`} class="left circle responsive-img" >{category}</option> ) } </select> </div> ) } }
'use strict' const date = new Date() module.exports = { // Utility Functions for Bot.js /** * normalizes input from chat for grimoire card searches * - converts all characters to lowercase * - removes any colons found in chat input * - removes any spaces and replaces with slug "-" */ normalizeCardInput: function (msg) { return msg.toLowerCase() .replace(":", "") .replace(/\s+/g, "-") }, /** * Normalizes input from chat for item searches * - converts all characters to lower case * - removes any semi-colons * - removes any spaces and replaces with slug "-" */ normalizeItemInput: function (msg) { return msg.toLowerCase() .replace("'", "") .replace(/\s+/g, "-") }, /** * Reads array of quotes and picks one at random */ randomQuote: function (list) { return list[Math.round(Math.random()*(list.length-1))] }, // Returns the current day of the week curDay: function() { return date.getDate() }, // Returns the current of month of the year curMonth: function() { let month = date.getMonth() const months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] return months[month] }, esMonths: function(month) { switch (date.getMonth()) { case 0: return 'Morning Star' break; case 1: return "Sun's Dawn" break; case 2: return "First Seed" break; case 3: return "Rain's Hand" break; case 4: return 'Second Seed' break; case 5: return 'Mid Year' break; case 6: return "Sun's Height" break; case 7: return 'Last Seed' break; case 8: return 'Hearthfire' break; case 9: return 'Frostfall' break; case 10: return "Sun's Dusk" break; case 11: return 'Evening Star' break; default: "" break; } } }
{ firebase.initializeApp({ apiKey: "AIzaSyDSdVC2imDDwkIWqz6dZeE-QXjIrgO_BVI", authDomain: "movie-trivia-c65e7.firebaseapp.com", databaseURL: "https://movie-trivia-c65e7.firebaseio.com", storageBucket: "movie-trivia-c65e7.appspot.com", messagingSenderId: "887080651432" }); let db = firebase.database(); window.firebaseData = { games: db.ref("games"), players: db.ref("players") }; }
(google_async_config = window.google_async_config || {})['ca-pub-7688470879129516'] = {"sra_enabled":false}; try{window.localStorage.setItem('google_sra_enabled', '0');}catch(e){}
import { routerStateReducer as router } from "redux-router"; import { combineReducers } from "redux"; import * as ActionTypes from "../actions"; //import { normalize, Schema, arrayOf } from "normalizr"; import _ from "lodash"; // const Moment = new Schema("moments"); //const Transcript = new Schema("transcripts"); // const Mission = new Schema("missions"); // Moment.define({ // //transcripts: arrayOf(Transcript), //removed from moment // mission: Mission // }); const initialResourcesState = {resources: [], loading: true}; function resources(state = initialResourcesState, action = {}) { switch(action.type) { case ActionTypes.FETCH_RESOURCES: return Object.assign({}, state, {loading: true}); case ActionTypes.RECEIVE_RESOURCES: return Object.assign( {}, state, { loading: false, resources: action.resources }, _.omit({filters: action.filters}, _.isUndefined) ); default: return state; } } //TODO: figure this out // Transcripts.define({ // transcripts: arrayOf(Transcript) // }); // const initialMomentState = {entities: {}, result: null, loading: true}; // const initialTranscriptState = {transcripts: [], loading: true}; // const initialAudioState = {audio: null, time: 0}; // const initialStoryState = {momentList: [], loading: true}; // const initialStoriesState = {stories: [], loading: true}; // function moments(state = initialMomentState, action = {}) { // switch(action.type) { // case ActionTypes.FETCH_MOMENT: // return Object.assign({}, state, {loading: true}); // case ActionTypes.RECEIVE_MOMENT: // return Object.assign( // {}, // state, // {loading: false}, // normalize( // action.moments, // _.isArray(action.moments) ? arrayOf(Moment) : Moment // ) // ); // default: // return state; // } // } // function story(state = initialStoryState, action = {}) { // switch(action.type) { // case ActionTypes.FETCH_STORY: // return Object.assign({}, state, {loading: true}); // case ActionTypes.RECEIVE_STORY: // return Object.assign( // {}, // state, // { // loading: false // }, // action.story // ); // default: // return state; // } // } // function stories(state = initialStoriesState, action = {}) { // switch(action.type) { // case ActionTypes.FETCH_STORIES: // return Object.assign({}, state, {loading: true}); // case ActionTypes.RECEIVE_STORIES: // return Object.assign( // {}, // state, // { // loading: false, // stories: action.stories // } // ); // default: // return state; // } // } // function transcripts(state = initialTranscriptState, action = {}) { // switch(action.type) { // case ActionTypes.FETCH_TRANSCRIPTS: // return Object.assign({}, state, {loading: true}); // case ActionTypes.RECEIVE_TRANSCRIPTS: // return Object.assign( // {}, // state, // { // loading: false, // transcripts: action.transcripts // } // ); // default: // return state; // } // } // function audio(state = initialAudioState, action = {}) { // switch(action.type) { // case ActionTypes.FETCH_AUDIO: // return Object.assign({}, state); // case ActionTypes.RECEIVE_AUDIO: // return Object.assign( // {}, // state, // _.omit({ // loading: false, // audio: action.audio, // playing: action.playing, // time: action.time // }, _.isUndefined) // ); // default: // return state; // } // } const rootReducer = combineReducers({ // transcripts, // moments, // story, // audio, // stories, resources, router }); export default rootReducer;
'use strict'; var assert = require('chai').assert; var proxyquire = require('proxyquire'); var mockUtils = require('./mock_utils.js'); suite('webapp-manifest.js', function() { var app; var fileExists; var writingContent = null; var isExternalApp = false; var mockConfig; var mockWebapp; setup(function() { var fileExists = false; app = proxyquire.noCallThru().load( '../../webapp-manifests', { './utils': mockUtils }); mockUtils.getFileContent = function(file) { return file; }; mockUtils.getFileAsDataURI = function(file) { return file.path; }; mockUtils.ensureFolderExists = function(filePath) { return fileExists; }; mockUtils.writeContent = function(file, content) { writingContent = content; }; mockUtils.generateUUID = function() { return 'tewwtwuuid-1234'; }; mockUtils.getNewURI = function(origin) { return { host: origin + '_host', scheme: origin + '_scheme', prePath: origin }; }; mockUtils.isExternalApp = function(webapp) { return isExternalApp; }; mockUtils.gaia = { getInstance: function(config) { return config; } }; mockConfig = { GAIA_DIR: 'testGaiaDir', GAIA_DOMAIN: 'testGaiaDomain', GAIA_PORT: 'testGaiaPort', GAIA_SCHEME: 'testGaiaScheme', stageDir: 'testStageDir' }; mockWebapp = { url: 'mockWebappUrl', appStatus: 'mockWebappAppStatus', manifest: 'mockWebappManifest', pckManifest: { origin: 'pckManifestOrigin' }, metaData: { installOrigin: 'metaDataInstallOrigin', manifestURL: 'metaDataManifestURL', // origin: 'metaDataOrigin', removable: false, etag: 'metaDataEtag', packageEtag: 'metaDataPackageEtag' }, sourceDirectoryName: 'sourceDirectoryName', domain: 'domain' }; }); teardown(function() { fileExists = false; isExternalApp = false; writingContent = null; }); suite('setConfig, genStageWebappJSON, fillExternalAppManifest', function() { var webappManifest; setup(function() { webappManifest = new app.ManifestBuilder(); mockUtils.getFile = function(path) { return path; }; }); test('setConfig', function() { webappManifest.setConfig(mockConfig); assert.equal(webappManifest.id, 1); assert.equal(webappManifest.stageDir, 'testStageDir'); }); test('genStageWebappJSON ', function() { var testStageManifests = {test: 'test'}; var writingFilePath = null; webappManifest.stageManifests = testStageManifests; webappManifest.stageDir = { clone: function() { return { append: function(subFilePath) { writingFilePath = subFilePath; } }; } }; webappManifest.genStageWebappJSON(); assert.equal(writingContent, JSON.stringify(testStageManifests, null, 2) + '\n'); assert.equal(writingFilePath, 'webapps_stage.json'); }); test('fillExternalAppManifest', function() { var test_uuid = 'testuuid'; webappManifest.INSTALL_TIME = 'INSTALL_TIME'; webappManifest.UPDATE_TIME = 'UPDATE_TIME'; mockUtils.generateUUID = function() { return test_uuid; }; webappManifest.setConfig(mockConfig); webappManifest.fillExternalAppManifest(mockWebapp); assert.deepEqual(webappManifest.stageManifests, { 'sourceDirectoryName': { originalManifest: mockWebapp.manifest, origin: 'app://' + test_uuid, manifestURL: mockWebapp.metaData.manifestURL, installOrigin: mockWebapp.metaData.installOrigin, receipt: null, installTime: 'INSTALL_TIME', updateTime: 'UPDATE_TIME', removable: mockWebapp.metaData.removable, localId: 1, etag: mockWebapp.metaData.etag, packageEtag: mockWebapp.metaData.packageEtag, appStatus: mockWebapp.appStatus, webappTargetDirName: test_uuid } }); }); test('genManifest, when it is external webapp', function() { isExternalApp = false; webappManifest.INSTALL_TIME = 'INSTALL_TIME'; webappManifest.UPDATE_TIME = 'UPDATE_TIME'; webappManifest.setConfig(mockConfig); webappManifest.genManifest(mockWebapp); assert.deepEqual(webappManifest.stageManifests, { 'sourceDirectoryName': { originalManifest: mockWebapp.manifest, origin: mockWebapp.url, manifestURL: mockWebapp.url + '/manifest.webapp', installOrigin: mockWebapp.url, receipt: null, installTime: 'INSTALL_TIME', updateTime: 'UPDATE_TIME', localId: 1, appStatus: mockWebapp.appStatus, webappTargetDirName: mockWebapp.domain } }); }); test('genManifest, when it is not external webapp', function() { isExternalApp = false; webappManifest.INSTALL_TIME = 'INSTALL_TIME'; webappManifest.UPDATE_TIME = 'UPDATE_TIME'; webappManifest.setConfig(mockConfig); webappManifest.genManifest(mockWebapp); assert.deepEqual(webappManifest.stageManifests, { 'sourceDirectoryName': { originalManifest: mockWebapp.manifest, origin: mockWebapp.url, manifestURL: mockWebapp.url + '/manifest.webapp', installOrigin: mockWebapp.url, receipt: null, installTime: 'INSTALL_TIME', updateTime: 'UPDATE_TIME', localId: 1, appStatus: mockWebapp.appStatus, webappTargetDirName: mockWebapp.domain } }); }); }); });
import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import { authRequired } from '../utils/auth' import BaseLayout from './layouts/BaseLayout' import { Route } from 'react-router-dom' import CostDetail from './CostDetail' import moment from 'moment' import { Redirect } from 'react-router' class Costs extends PureComponent { render() { return ( <BaseLayout {...this.props}> <Route path="/costs" exact render={props => { return ( <Redirect to={`/costs/${moment() .startOf('month') .format('YYYY-MM')}-1`} /> ) }} /> <Route path="/costs/:date" render={props => <CostDetail {...{ ...this.props, ...{ router: props } }} />} /> </BaseLayout> ) } } Costs.propTypes = { router: PropTypes.shape({ history: PropTypes.shape({ push: PropTypes.func.isRequired }).isRequired }).isRequired, auth: PropTypes.object } export default authRequired(Costs)
var helpers = {} // Returns a random number between min (inclusive) and max (exclusive), from microsoft helpers.getRandomArbitrary = function(min, max){ return Math.random() * (max - min) + min; } // sort the population helpers.sortPopulation = function (population) { population.sort(function(a, b) { if(a.fitness < b.fitness) return 1; else if(a.fitness > b.fitness) return -1; else return 0; }); } // get the most fit individual helpers.getTheBest = function(sortedPopulation) { const best = sortedPopulation[0]; return best; } // get individuals who match the best in fitness helpers.getAllTheBests = function(sortedPopulation) { var bests = []; for (var i = 0; i < sortedPopulation.length; i++) { if(sortedPopulation[i].fitness == helpers.getTheBest(sortedPopulation).fitness){ bests.push(sortedPopulation[i]); } } return bests; } // gets all the individuals whose fitness are not 0; helpers.getAllValuables = function (sortedPopulation) { var valuables = []; for (var i = 0; i < sortedPopulation.length; i++) { if (sortedPopulation[i].fitness > 1) { valuables.push(sortedPopulation[i]); } } return valuables; } // add an index to each individual helpers.indexThePopulation = function(population) { for(var i= 0; i< population.length; i++) { population[i].index = i; } } module.exports = helpers;
/** * Store accountBank * * Copyright (C) 2013 Emay Komarudin * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * @author Emay Komarudin * * * **/ Ext.define('App.store.accountBank.saccountBank',{ extend : 'Ext.data.Store', model : 'App.model.accountBank.maccountBank', proxy: { type: 'rest', url: getApiUrl() +'/bankaccount', reader: { type: 'json', root: 'results', totalProperty: 'total' } } });
(function() { var localMode; // Keep the template variables private, to prevent external access var VARS = {}; $.tmpl = { DATA_ENSURE_LOOPS: 0, // Processors that act based on element attributes attr: { "data-ensure": function(elem, ensure) { // Returns a function in order to run after other templating and var assignment return function(elem) { // Return a boolean corresponding to the ensure's value // False means all templating will be run again, so new values will be chosen var result = !!(ensure && $.tmpl.getVAR(ensure)); if (!result) { if ($.tmpl.DATA_ENSURE_LOOPS++ > 10000 && localMode) { // Shucks, probably not possible. Just give up in order // to not hang the dev's browser. alert("unsatisfiable data-ensure?"); return true; } } return result; }; }, "data-if": function(elem, value) { var $elem = $(elem); value = value && $.tmpl.getVAR(value); // Save the result of this data-if in the next sibling for data-else-if and data-else // Only save the value if no previous value has been set var $nextElem = $elem.next(); if ($nextElem.data("lastCond") === undefined) { $nextElem.data("lastCond", value); } if (!value) { // Delete the element if the data-if evaluated to false return []; } }, "data-else-if": function(elem, value) { var $elem = $(elem); var lastCond = $elem.data("lastCond"); // Show this element iff the preceding element was hidden AND this data-if returns truthily value = !lastCond && value && $.tmpl.getVAR(value); // Succeeding elements care about the visibility of both me and my preceding siblings // Only save the value if no previous value has been set var $nextElem = $elem.next(); if ($nextElem.data("lastCond") === undefined) { $nextElem.data("lastCond", lastCond || value); } if (!value) { // Delete the element if appropriate return []; } }, "data-else": function(elem) { var $elem = $(elem); if ($elem.data("lastCond")) { // Delete the element if the data-if of the preceding element was true return []; } }, "data-each": function(elem, value) { var match; // Remove the data-each attribute so it doesn't end up in the generated elements $(elem).removeAttr("data-each"); // HINT_COUNT times // HINT_COUNT times as INDEX if ((match = /^(.+) times(?: as (\w+))?$/.exec(value))) { var times = $.tmpl.getVAR(match[1]); return { items: $.map(new Array(times), function(e, i) { return i; }), value: match[2], oldValue: VARS[match[2]] }; // Extract the 1, 2, or 3 parts of the data-each attribute, which could be // - items // - items as value // - items as pos, value } else if ((match = /^(.*?)(?: as (?:(\w+), )?(\w+))?$/.exec(value))) { // See "if (ret.items)" in traverse() for the other half of the data-each code return { // The collection which we'll iterate through items: $.tmpl.getVAR(match[1]), // "value" and "pos" as strings value: match[3], pos: match[2], // Save the values of the iterator variables so we don't permanently overwrite them oldValue: VARS[match[3]], oldPos: VARS[match[2]] }; } }, "data-unwrap": function(elem) { return $(elem).contents(); }, "data-video-hint": function(elem) { var youtubeIds = $(elem).data("youtube-id"); if (!youtubeIds) { return; } youtubeIds = youtubeIds.split(/,\s*/); var author = $(elem).data("video-hint-author") || "Sal"; var msg = $._("Watch %(author)s work through a very similar " + "problem:", {author: author}); var preface = $("<p>").text(msg); var wrapper = $("<div>", { "class": "video-hint" }); wrapper.append(preface); _.each(youtubeIds, function(youtubeId) { var href = "http://www.khanacademy.org/embed_video?v=" + youtubeId; var iframe = $("<iframe>").attr({ "frameborder": "0", "scrolling": "no", "width": "100%", "height": "360px", "src": href }); wrapper.append(iframe); }); return wrapper; } }, // Processors that act based on tag names type: { "var": function(elem, value) { // When called by process(), value is undefined // If the <var> has any child elements, run later with the innerHTML // Use $ instead of getElementsByTagName to exclude comment nodes in IE if (!value && $(elem).children().length > 0) { return function(elem) { return $.tmpl.type["var"](elem, elem.innerHTML); }; } // Evaluate the contents of the <var> as a JS string value = value || $.tmpl.getVAR(elem); // If an ID was specified then we're going to save the value var name = elem.id; if (name) { // Utility function for VARS[name] = value, warning if the name overshadows a KhanUtil property var setVAR = function(name, value) { if (KhanUtil[name]) { Khan.error("Defining variable '" + name + "' overwrites utility property of same name."); } VARS[name] = value; }; // Destructure the array if appropriate if (name.indexOf(",") !== -1) { // Nested arrays are not supported var parts = name.split(/\s*,\s*/); $.each(parts, function(i, part) { // Ignore empty parts if (part.length > 0) { setVAR(part, value[i]); } }); // Just a normal assignment } else { setVAR(name, value); } // No value was specified so we replace it with a text node of the value } else { if (value == null) { // Don't show anything return []; } else { // Convert the value to a string and replace with those elements and text nodes // Add a space so that it can end with a "<" in Safari var div = $("<div>"); var html = div.append(value + " ").html(); return div.html(html.slice(0, -1)).contents(); } } } }, // Eval a string in the context of Math, KhanUtil, VARS, and optionally another passed context getVAR: function(elem, ctx) { // We need to compute the value var code = elem.nodeName ? $(elem).text() : elem; // Make sure any HTML formatting is stripped code = $.trim($.tmpl.cleanHTML(code)); // If no extra context was passed, use an empty object if (ctx == null) { ctx = {}; } function doEval() { // Use the methods from JavaScript's built-in Math methods with (Math) { // And the methods provided by the library with (KhanUtil) { // And the passed-in context with (ctx) { // And all the computed variables with (VARS) { return eval("(function() { return (" + code + "); })()"); } } } } } if (Khan.query.debug != null) { // Skip try-catch in debug mode so that the script panel works return doEval(); } else { try { return doEval(); } catch (e) { var info; if (elem.nodeName) { info = elem.nodeName.toLowerCase(); if (elem.id != null && elem.id.length > 0) { info += "#" + elem.id; } } else { info = JSON.stringify(code); } Khan.error("Error while evaluating " + info, e); } } }, /** * Get a hash of the problem variables for duplication detection purposes. */ // TODO(david): Allow exercise developers to specify which variables are not // important for duplicate determination purposes. // TODO(david): Just a possibility, but allow exercise developers to specify // their own variable hash function, so that, eg. for addition 1, 2 + 3 // could hash to the same value as 3 + 2. getVarsHash: function() { // maybe TODO(david): Can base-64 encode the crc32 integer if we want to // save a few bytes, since localStorage stores strings only. // Just convert top-level values to strings instead of recursively // stringifying, due to issues with circular references. return KhanUtil.crc32(JSON.stringify($.map(VARS, function(value, key) { return [key, String(value)]; }))); }, // Make sure any HTML formatting is stripped cleanHTML: function(text) { return ("" + text).replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&amp;/g, "&"); } }; if (typeof KhanUtil !== "undefined") { KhanUtil.tmpl = $.tmpl; } // Reinitialize VARS for each problem $.fn.tmplLoad = function(problem, info) { VARS = {}; $.tmpl.DATA_ENSURE_LOOPS = 0; localMode = info.localMode; // Expose the variables if we're in local mode if (localMode) { $.tmpl.VARS = VARS; } }; $.fn.tmpl = function() { // Call traverse() for each element in the $ object for (var i = 0, l = this.length; i < l; i++) { traverse(this[i]); } return this; // Walk through the element and its descendants, process()-ing each one using the processors defined above function traverse(elem) { // Array of functions to run after doing the rest of the processing var post = [], // Live NodeList of child nodes to traverse if we don't remove/replace this element child = elem.childNodes, // Result of running the attribute and tag processors on the element ret = process(elem, post); // If false, rerun all templating (like data-ensure) if (ret === false) { return traverse(elem); // If undefined, do nothing } else if (ret === undefined) { ; // If a (possibly-empty) array of nodes, replace this one with those // The type of ret is checked to ensure it is not a function } else if (typeof ret === "object" && typeof ret.length !== "undefined") { if (elem.parentNode) { // All nodes must be inserted before any are traversed $.each(ret, function(i, rep) { if (rep.nodeType) { elem.parentNode.insertBefore(rep, elem); } }); $.each(ret, function(i, rep) { traverse(rep); }); elem.parentNode.removeChild(elem); } return null; // If { items: ... }, this is a data-each loop } else if (ret.items) { // We need these references to insert the elements in the appropriate places var origParent = elem.parentNode, origNext = elem.nextSibling; // Loop though the given array $.each(ret.items, function(pos, value) { // Set the value if appropriate if (ret.value) { VARS[ret.value] = value; } // Set the position if appropriate if (ret.pos) { VARS[ret.pos] = pos; } // Do a deep clone (including event handlers and data) of the element var clone = $(elem).clone(true) .removeAttr("data-each").removeData("each")[0]; // Prepend all conditional statements with a declaration of ret.value // and ret.post and an assignment of their current values so that // the conditional will still make sense even when outside of the // data-each context var conditionals = ["data-if", "data-else-if", "data-else"]; var declarations = ""; declarations += (ret.pos) ? "var " + ret.pos + " = " + JSON.stringify(pos) + ";" : ""; declarations += (ret.value) ? "var " + ret.value + " = " + JSON.stringify(value) + ";" : ""; for (var i = 0; i < conditionals.length; i++) { var conditional = conditionals[i]; $(clone).find("[" + conditional + "]").each(function() { var code = $(this).attr(conditional); code = "(function() { " + declarations + " return " + code + " })()"; $(this).attr(conditional, code); }); } // Do the same for graphie code $(clone).find(".graphie").addBack().filter(".graphie").each(function() { var code = $(this).text(); $(this).text(declarations + code); }); // Insert in the proper place (depends on whether the loops is the last of its siblings) if (origNext) { origParent.insertBefore(clone, origNext); } else { origParent.appendChild(clone); } // Run all templating on the new element traverse(clone); }); // Restore the old value of the value variable, if it had one if (ret.value) { VARS[ret.value] = ret.oldValue; } // Restore the old value of the position variable, if it had one if (ret.pos) { VARS[ret.pos] = ret.oldPos; } // Remove the loop element and its handlers now that we've processed it $(elem).remove(); // Say that the element was removed so that child traversal doesn't skip anything return null; } // Loop through the element's children if it was not removed for (var i = 0; i < child.length; i++) { // Traverse the child; decrement the counter if the child was removed if (child[i].nodeType === 1 && traverse(child[i]) === null) { i--; } } // Run through each post-processing function for (var i = 0, l = post.length; i < l; i++) { // If false, rerun all templating (for data-ensure and <code> math) if (post[i](elem) === false) { return traverse(elem); } } return elem; } // Run through the attr and type processors, return as soon as one of them is decisive about a plan of action function process(elem, post) { var ret, newElem, $elem = $(elem); // Look through each of the attr processors, see if our element has the matching attribute for (var attr in $.tmpl.attr) { var value; if ((/^data-/).test(attr)) { value = $elem.data(attr.replace(/^data-/, "")); } else { value = $elem.attr(attr); } if (value !== undefined) { ret = $.tmpl.attr[attr](elem, value); // If a function, run after all of the other templating if (typeof ret === "function") { post.push(ret); // Return anything else (boolean, array of nodes for replacement, object for data-each) } else if (ret !== undefined) { return ret; } } } // Look up the processor based on the tag name var type = elem.nodeName.toLowerCase(); if ($.tmpl.type[type] != null) { ret = $.tmpl.type[type](elem); // If a function, run after all of the other templating if (typeof ret === "function") { post.push(ret); } } return ret; } }; $.extend($.expr[":"], { inherited: function(el) { return $(el).data("inherited"); } }); $.fn.extend({ tmplApply: function(options) { options = options || {}; // Get the attribute which we'll be checking, defaults to "id" // but "class" is sometimes used var attribute = options.attribute || "id", // Figure out the way in which the application will occur defaultApply = options.defaultApply || "replace", // Store for elements to be used later parent = {}; return this.each(function() { var $this = $(this), name = $this.attr(attribute), hint = $this.data("apply") && !$this.data("apply").indexOf("hint"); // Only operate on the element if it has the attribute that we're using if (name) { // The inheritance only works if we've seen an element already // that matches the particular name and we're not looking at hint // templating if (name in parent && !hint) { // Get the method through which we'll be doing the application // You can specify an application style directly on the sub-element parent[name] = $.tmplApplyMethods[$this.data("apply") || defaultApply] // Call it with the context of the parent and the sub-element itself .call(parent[name], this); if (parent[name] == null) { delete parent[name]; } // Store the parent element for later use if it was inherited from somewhere else } else if ($this.closest(":inherited").length > 0) { parent[name] = this; } } }); } }); $.extend({ // These methods should be called with context being the parent // and first argument being the child. tmplApplyMethods: { // Removes both the parent and the child remove: function(elem) { $(this).remove(); $(elem).remove(); }, // Replaces the parent with the child replace: function(elem) { $(this).replaceWith(elem); return elem; }, // Replaces the parent with the child's content. Useful when // needed to replace an element without introducing additional // wrappers. splice: function(elem) { $(this).replaceWith($(elem).contents()); }, // Appends the child element to the parent element append: function(elem) { $(this).append(elem); return this; }, // Appends the child element's contents to the parent element. appendContents: function(elem) { $(this).append($(elem).contents()); $(elem).remove(); return this; }, // Prepends the child element to the parent. prepend: function(elem) { $(this).prepend(elem); return this; }, // Prepends the child element's contents to the parent element. prependContents: function(elem) { $(this).prepend($(elem).contents()); $(elem).remove(); return this; }, // Insert child before the parent. before: function(elem) { $(this).before(elem); return this; }, // Insert child's contents before the parent. beforeContents: function(elem) { $(this).before($(elem).contents()); $(elem).remove(); return this; }, // Insert child after the parent. after: function(elem) { $(this).after(elem); return this; }, // Insert child's contents after the parent. afterContents: function(elem) { $(this).after($(elem).contents()); $(elem).remove(); return this; }, // Like appendContents but also merges the data-ensures appendVars: function(elem) { var parentEnsure = $(this).data("ensure") || "1"; var childEnsure = $(elem).data("ensure") || "1"; $(this).data("ensure", "(" + parentEnsure + ") && (" + childEnsure + ")"); return $.tmplApplyMethods.appendContents.call(this, elem); }, // Like prependContents but also merges the data-ensures prependVars: function(elem) { var parentEnsure = $(this).data("ensure") || "1"; var childEnsure = $(elem).data("ensure") || "1"; $(this).data("ensure", "(" + childEnsure + ") && (" + parentEnsure + ")"); return $.tmplApplyMethods.prependContents.call(this, elem); } } }); })();
var $ = require("jquery"); $(function() { alert("it works"); }) console.log(require("html!./test.html"))
import React from 'react' import InlineEdit from '../src/components/InlineEdit/InlineEdit' import Icon from '../src/components/Icon/Icon' describe('InlineEdit', () => { // TODO: May need to refactor the component for this test to work // currently the component compares local state to and private value to determine whether to fire the changeCallback // no good way to mock _textValue since node is deprecated it.skip('should trigger the callback function', () => { const changeCallback = sinon.spy() const wrapper = mount(<InlineEdit name='test' isEditing={true} changeCallback={changeCallback} value='testValue' />) const trigger = wrapper.find('.inline-button-wrapper').at(0).childAt(0) wrapper.find('.inline-text-overflow-wrapper').at(0).childAt(0).node.innerHTML = 'test value' trigger.simulate('click') expect(changeCallback.calledWithExactly({ target: { name: 'test', value: 'test value' }})).to.be.true }) it('should show the placeholder when the value is empty', () => { const wrapper = mount(<InlineEdit name='test' value='' />) expect(wrapper.find('.placeholder')).to.have.length(1) expect(wrapper.childAt(0).childAt(0).text()).to.equal('Click to edit') wrapper.setProps({ isEditing: true }) expect(wrapper.childAt(0).childAt(0).text()).to.equal('') }) it('should show the placeholder when the value is null', () => { const value = null const wrapper = mount(<InlineEdit name='test' value={value} />) expect(wrapper.find('.placeholder')).to.have.length(1) expect(wrapper.childAt(0).childAt(0).text()).to.equal('Click to edit') wrapper.setProps({ isEditing: true }) expect(wrapper.childAt(0).childAt(0).text()).to.equal('') }) it('should have a loader', () => { const wrapper = mount(<InlineEdit name='test' value='test value' />) expect(wrapper.find('Spinner').at(0).props().loading).to.be.false wrapper.setProps({ loading: true }) expect(wrapper.find('Spinner').at(0).props().loading).to.be.true }) it('should have an error', () => { const wrapper = mount(<InlineEdit name='test' value='test value' />) expect(wrapper.state().error).to.equal('') wrapper.setProps({ error: 'This is an error' }) expect(wrapper.find('.error')).to.have.length(1) expect(wrapper.state().error).to.equal('This is an error') expect(wrapper.state().isEditing).to.be.true expect(wrapper.find('.error-text')).to.have.length(1) expect(wrapper.find('.error-text').at(0).text()).to.equal('This is an error') }) it.skip('should revert back to the previously saved value if there is an error and the change is canceled', () => { const changeCallback = sinon.spy() const wrapper = mount(<InlineEdit name='test' isEditing={true} changeCallback={changeCallback} value='testValue' />) wrapper.find('.inline-text-wrapper').at(0).node.innerHTML = 'test value' let saveTrigger = wrapper.find('.inline-button-wrapper').at(0).childAt(0) saveTrigger.simulate('click') expect(wrapper.state().value).to.equal('test value') wrapper.setProps({ error: 'This is an error' }) expect(wrapper.state().error).to.equal('This is an error') expect(wrapper.state().isEditing).to.be.true saveTrigger = wrapper.find('.inline-button-wrapper').at(0).childAt(0) saveTrigger.simulate('click') expect(wrapper.state().error).to.equal('This is an error') expect(wrapper.state().isEditing).to.be.true const cancelTrigger = wrapper.find('.inline-button-wrapper').at(0).childAt(1) cancelTrigger.simulate('click') expect(wrapper.state().error).to.equal('') expect(wrapper.state().isEditing).to.be.false expect(wrapper.state().value).to.equal('testValue') }) it.skip('should trigger the callback function if there was an error and the change was canceled', () => { const changeCallback = sinon.spy() const wrapper = mount(<InlineEdit name='test' isEditing={true} changeCallback={changeCallback} value='testValue' />) wrapper.find('.inline-text-wrapper').at(0).node.innerHTML = 'test value' let saveTrigger = wrapper.find('.inline-button-wrapper').at(0).childAt(0) saveTrigger.simulate('click') expect(changeCallback.calledWithExactly({ target: { name: 'test', value: 'test value' }})).to.be.true wrapper.setProps({ error: 'This is an error' }) expect(wrapper.state().error).to.equal('This is an error') expect(wrapper.state().isEditing).to.be.true const cancelTrigger = wrapper.find('.inline-button-wrapper').at(0).childAt(1) cancelTrigger.simulate('click') expect(changeCallback.calledWithExactly({ target: { name: 'test', value: 'testValue', canceled: true }})).to.be.true }) it('should have a copy to clipboard icon', done => { const wrapper = mount(<InlineEdit name='test' value='test value' copyToClipboard />) expect(wrapper.find('.copy-icon Icon')).to.have.length(1) expect(wrapper.find('.copy-icon').hasClass('copied')).to.be.false wrapper.instance().handleCopy() wrapper.update() expect(wrapper.find('.copy-icon Icon')).to.have.length(0) expect(wrapper.find('.copy-icon').hasClass('copied'), 'has class "copied"').to.be.true expect(wrapper.find('.copy-icon').at(0).text()).to.equal('copied!') setTimeout(() => { wrapper.update() expect(wrapper.find('.copy-icon Icon'), 'has an icon after copying').to.have.length(1) expect(wrapper.find('.copy-icon').hasClass('copied'), 'doesn\'t have class "copied"').to.be.false done() }, 1900) }) it('should have a tooltip', () => { const wrapper = mount(<InlineEdit name='test' value='test value' tooltipText='test tooltip' tooltipPlacement='top' tooltipClass='test-class' />) expect(wrapper.find('Tooltip')).to.have.length(1) expect(wrapper.find('Tooltip').props().content).to.equal('test tooltip') expect(wrapper.find('Tooltip').props().tooltipPlacement).to.equal('top') expect(wrapper.find('Tooltip').props().optClass).to.equal('test-class') }) it('should attach key listeners', () => { const wrapper = mount(<InlineEdit name='test' value='test value' />) const addEventListenerSpy = sinon.spy(wrapper.instance()._textValue, 'addEventListener') wrapper.instance().attachKeyListeners() expect(addEventListenerSpy.calledWithExactly('keypress', wrapper.instance().handleKeyPress)).to.be.true expect(addEventListenerSpy.calledWithExactly('keyup', wrapper.instance().handleKeyUp)).to.be.true }) it('should handle keyPress events', () => { const wrapper = mount(<InlineEdit name='test' value='test value' />) const saveStub = sinon.stub(wrapper.instance(), 'handleSave') let event = { keyCode: 13, preventDefault: sinon.spy() } wrapper.instance().handleKeyPress(event) expect(event.preventDefault.called).to.be.true expect(saveStub.calledOnce).to.be.true event = { which: 13, preventDefault: sinon.spy() } wrapper.instance().handleKeyPress(event) expect(event.preventDefault.called).to.be.true expect(saveStub.calledTwice).to.be.true event = { keyCode: 40, preventDefault: sinon.spy() } wrapper.instance().handleKeyPress(event) expect(event.preventDefault.called).to.be.false expect(saveStub.calledThrice).to.be.false }) it('should handle keyUp events', () => { const wrapper = mount(<InlineEdit name='test' value='test value' />) const cancelStub = sinon.stub(wrapper.instance(), 'handleCancel') let event = { keyCode: 27, preventDefault: sinon.spy() } wrapper.instance().handleKeyUp(event) expect(event.preventDefault.called).to.be.true expect(cancelStub.calledOnce).to.be.true event = { which: 27, preventDefault: sinon.spy() } wrapper.instance().handleKeyUp(event) expect(event.preventDefault.called).to.be.true expect(cancelStub.calledTwice).to.be.true event = { keyCode: 40, preventDefault: sinon.spy() } wrapper.instance().handleKeyUp(event) expect(event.preventDefault.called).to.be.false expect(cancelStub.calledThrice).to.be.false }) })
#!/usr/bin/env node // Remove all Node warnings before doing anything else process.removeAllListeners('warning'); const prettyCLI = require('@tryghost/pretty-cli'); const ui = require('@tryghost/pretty-cli').ui; const _ = require('lodash'); const chalk = require('chalk'); const gscan = require('../lib'); const ghostVersions = require('../lib/utils').versions; const levels = { error: chalk.red, warning: chalk.yellow, recommendation: chalk.yellow, feature: chalk.green }; const cliOptions = { format: 'cli' }; prettyCLI .configure({ name: 'gscan' }) .groupOrder([ 'Sources:', 'Utilities:', 'Commands:', 'Arguments:', 'Required Options:', 'Options:', 'Global Options:' ]) .positional('<themePath>', { paramsDesc: 'Theme folder or .zip file path', mustExist: true }) .boolean('-z, --zip', { desc: 'Theme path points to a zip file' }) .boolean('-1, --v1', { desc: 'Check theme for Ghost 1.0 compatibility' }) .boolean('-2, --v2', { desc: 'Check theme for Ghost 2.0 compatibility' }) .boolean('-3, --v3', { desc: 'Check theme for Ghost 3.0 compatibility' }) .boolean('-4, --v4', { desc: 'Check theme for Ghost 4.0 compatibility' }) .boolean('-c, --canary', { desc: 'Check theme for upcoming Ghost version compatibility' }) .boolean('-f, --fatal', { desc: 'Only show fatal errors that prevent upgrading Ghost' }) .boolean('--verbose', { desc: 'Output check details' }) .array('--labs', { desc: 'a list of labs flags' }) .parseAndExit() .then((argv) => { if (argv.v1) { cliOptions.checkVersion = 'v1'; } else if (argv.v2) { cliOptions.checkVersion = 'v2'; } else if (argv.v3) { cliOptions.checkVersion = 'v3'; } else if (argv.v4) { cliOptions.checkVersion = 'v4'; } else if (argv.canary) { cliOptions.checkVersion = 'canary'; } else { cliOptions.checkVersion = ghostVersions.default; } cliOptions.verbose = argv.verbose; cliOptions.onlyFatalErrors = argv.fatal; if (argv.labs) { cliOptions.labs = {}; argv.labs.forEach((flag) => { cliOptions.labs[flag] = true; }); } if (cliOptions.onlyFatalErrors) { ui.log(chalk.bold('\nChecking theme compatibility (fatal issues only)...')); } else { ui.log(chalk.bold('\nChecking theme compatibility...')); } if (argv.zip) { gscan.checkZip(argv.themePath, cliOptions) .then(theme => outputResults(theme, cliOptions)) .catch((error) => { ui.log(error); }); } else { gscan.check(argv.themePath, cliOptions) .then(theme => outputResults(theme, cliOptions)) .catch(function ENOTDIRPredicate(err) { return err.code === 'ENOTDIR'; }, function (err) { ui.log(err.message); ui.log('Did you mean to add the -z flag to read a zip file?'); }); } }); function outputResult(result, options) { ui.log(levels[result.level](`- ${_.capitalize(result.level)}:`), result.rule); if (options.verbose) { ui.log(`${chalk.bold('\nDetails:')} ${result.details}`); } if (result.failures && result.failures.length) { if (options.verbose) { ui.log(''); // extra line-break ui.log(`${chalk.bold('Files:')}`); result.failures.forEach((failure) => { ui.log(`${failure.ref} - ${failure.message}`); }); } else { ui.log(`${chalk.bold('Files:')} ${_.map(result.failures, 'ref')}`); } } ui.log(''); // extra line-break } function getSummary(theme, options) { let summaryText = ''; const errorCount = theme.results.error.length; const warnCount = theme.results.warning.length; const pluralize = require('pluralize'); const checkSymbol = '\u2713'; if (errorCount === 0 && warnCount === 0) { if (options.onlyFatalErrors) { summaryText = `${chalk.green(checkSymbol)} Your theme has no fatal compatibility issues with Ghost ${theme.checkedVersion}`; } else { summaryText = `${chalk.green(checkSymbol)} Your theme is compatible with Ghost ${theme.checkedVersion}`; } } else { summaryText = `Your theme has`; if (!_.isEmpty(theme.results.error)) { summaryText += chalk.red.bold(` ${pluralize('error', theme.results.error.length, true)}`); } if (!_.isEmpty(theme.results.error) && !_.isEmpty(theme.results.warning)) { summaryText += ' and'; } if (!_.isEmpty(theme.results.warning)) { summaryText += chalk.yellow.bold(` ${pluralize('warning', theme.results.warning.length, true)}`); } summaryText += '!'; // NOTE: had to subtract the number of 'invisible' formating symbols // needs update if formatting above changes const hiddenSymbols = 38; summaryText += '\n' + _.repeat('-', (summaryText.length - hiddenSymbols)); } return summaryText; } function outputResults(theme, options) { try { theme = gscan.format(theme, options); } catch (err) { ui.log.error('Error formating result, some results may be missing.'); ui.log.error(err); } let errorCount = theme.results.error.length; ui.log('\n' + getSummary(theme, options)); if (!_.isEmpty(theme.results.error)) { ui.log(chalk.red.bold('\nErrors')); ui.log(chalk.red.bold('------')); ui.log(chalk.red('Important to fix, functionality may be degraded.\n')); _.each(theme.results.error, rule => outputResult(rule, options)); } if (!_.isEmpty(theme.results.warning)) { ui.log(chalk.yellow.bold('\nWarnings')); ui.log(chalk.yellow.bold('--------')); _.each(theme.results.warning, rule => outputResult(rule, options)); } if (!_.isEmpty(theme.results.recommendation)) { ui.log(chalk.yellow.bold('\nRecommendations')); ui.log(chalk.yellow.bold('---------------')); _.each(theme.results.recommendation, rule => outputResult(rule, options)); } ui.log(`\nGet more help at ${chalk.cyan.underline('https://ghost.org/docs/api/handlebars-themes/')}`); ui.log(`You can also check theme compatibility at ${chalk.cyan.underline('https://gscan.ghost.org/')}`); // The CLI feature is mainly used to run gscan programatically in tests within themes. // Exiting with error code for warnings, causes the test to fail, even tho a theme // upload via Ghost Admin would be possible without showing errors/warning. // See also here: https://github.com/TryGhost/Blog/pull/41#issuecomment-484525754 // TODO: make failing for warnings configurable by e. g. passing an option, so we can // disable it for the usage with tests if (errorCount > 0) { process.exit(1); } else { process.exit(0); } }
import React from 'react'; import {Path} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class IconMarker extends React.Component { constructor(props){ super(props); } render(){ const color = this.props.color || AppStyles.color; return ( <SvgIcon {...this.props}> <Path fill={color} d="M52.35 21q0-8.45-6-14.45Q40.45.6 32 .6T17.55 6.55q-5.95 6-5.95 14.45 0 6.516 3.55 11.55l16.9 31.05 16.7-31.1q.026-.012.05-.05 3.55-4.996 3.55-11.45m-15.2-2.3q2.2 2.2 2.2 5.3 0 3.1-2.2 5.25-2.15 2.2-5.25 2.2t-5.3-2.2Q24.45 27.1 24.45 24t2.15-5.3q2.2-2.15 5.3-2.15 3.1 0 5.25 2.15z"/> </SvgIcon> ); } }
(function() { 'use strict'; angular .module('bibalDenisApp') .factory('authExpiredInterceptor', authExpiredInterceptor); authExpiredInterceptor.$inject = ['$rootScope', '$q', '$injector', '$document']; function authExpiredInterceptor($rootScope, $q, $injector, $document) { var service = { responseError: responseError }; return service; function responseError(response) { // If we have an unauthorized request we redirect to the login page // Don't do this check on the account API to avoid infinite loop if (response.status === 401 && angular.isDefined(response.data.path) && response.data.path.indexOf('/api/account') === -1) { var Auth = $injector.get('Auth'); var to = $rootScope.toState; var params = $rootScope.toStateParams; Auth.logout(); if (to.name !== 'accessdenied') { Auth.storePreviousState(to.name, params); } var LoginService = $injector.get('LoginService'); LoginService.open(); } else if (response.status === 403 && response.config.method !== 'GET' && getCSRF() === '') { // If the CSRF token expired, then try to get a new CSRF token and retry the old request var $http = $injector.get('$http'); return $http.get('/').finally(function() { return afterCSRFRenewed(response); }); } return $q.reject(response); } function getCSRF() { var doc = $document[0]; if (doc) { var name = 'CSRF-TOKEN='; var ca = doc.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') {c = c.substring(1);} if (c.indexOf(name) !== -1) { return c.substring(name.length, c.length); } } } return ''; } function afterCSRFRenewed(oldResponse) { if (getCSRF() !== '') { // retry the old request after the new CSRF-TOKEN is obtained var $http = $injector.get('$http'); return $http(oldResponse.config); } else { // unlikely get here but reject with the old response any way and avoid infinite loop return $q.reject(oldResponse); } } } })();
import React from 'react'; import { expect } from 'chai'; import { mount } from 'enzyme'; import HeaderAmount from 'molecules/HeaderAmount'; describe('<HeaderAmount />', () => { it('renders', () => { const wrapper = mount(<HeaderAmount />); expect(wrapper.type()).to.equal(HeaderAmount); }); });
import styled from 'styled-components' import { mixin as text } from 'v2/components/UI/Text' export default styled.pre.attrs({ font: 'mono', })` all: initial; ${text} white-space: pre; `
GAME.LEVEL = (function () { 'use strict'; /* * Global variables and constants */ var ROWS = 11; var COLS_PER_SCREEN = 20; // buffers and their contexts var screenBuffers, screenContexts, renderedSlices; // images var image; // tile properties (these should be set for each level) var tileProperties; // tile base properties var tileBaseProp = { "empty": { color: "#EEEEEE", solid: false }, "solid": { color: "#111111", solid: true, }, "slippery": { color: "#AABBEE", solid: true, slippery: true }, "bouncy": { color: "#EE9966", solid: true, bounce: 1 }, "slope": { color: "#998877", solid: false, slope: 1 }, "boostfwd": { color: "#77aa77", solid: false, boost: true, boostX: 1, boostY: 0 }, "spike": { color: "#ff0000", solid: true, bounce: 1, hurt: true } }; // levels var levelsURL = [ "level/0.json", "level/cave.json", "level/nice_mountain.json", "level/rock_castle.json" ]; /* * public constructor(id) * * creates a level * sets up buffers if needed * */ var level = function (id) { // Create a new level structure createNewLevel(id, this); this.id = id; // Create screenbuffers if this is the first time a level is being instantiated if (screenBuffers === undefined) createScreenBuffers(); renderedSlices = [-1, -1]; // initiate as NOT loaded this.loaded = false; this.loadWait = 0; }; /* * public void .render(context, scrollX) * * draws the level on the provided canvas context, shifted according to the scroll x value * */ level.prototype.render = function (context, scrollX) { // We want to wait until level and image are loaded before rendering the actual level if (this.loaded && image.complete) { // Determine which slices to render and offset var firstSlice = Math.floor(scrollX / (32 * COLS_PER_SCREEN)); var xOffset = 2 * Math.floor((scrollX % (32 * COLS_PER_SCREEN)) / 2); // Have these slices been prerendered? Do so if needed if (renderedSlices.indexOf(firstSlice) === -1) prerenderSliceToBuffer(firstSlice, this.tiles); if (renderedSlices.indexOf(firstSlice + 1) === -1) prerenderSliceToBuffer(firstSlice + 1, this.tiles); // Get which buffer corresponds to which slice var firstBuffer = renderedSlices.indexOf(firstSlice); var secondBuffer = renderedSlices.indexOf(firstSlice + 1); // Draw buffers to "main" canvas context with the right offset context.drawImage(screenBuffers[firstBuffer], 0 - xOffset, 0); context.drawImage(screenBuffers[secondBuffer], (COLS_PER_SCREEN * 32) - xOffset, 0); /* * the way this works is we have two buffers we move one in front of eachother as the screen scrolls * each "slice" is a 20x11 tilemap * initially there will always be [0, 1] slices drawn * then as the screen scroll enough, slice 2 will be prerendered instead of slice 0 * and it will be drawn in front of slice 1 * and so on */ /* context.fillText(firstSlice.toString() + ", " + (firstSlice + 1).toString(), 0, 64); context.fillText(firstBuffer.toString() + ", " + secondBuffer.toString(), 0, 80); */ } else { this.loadWait++; }; context.fillStyle = "#8899CC"; // Draw checkpoints if they exist and are visible if (this.checkpoints) { for (var i = 0; i < this.checkpoints.length; i++) { //console.log("checkpoint line visible " + (this.checkpoints[i].distance).toString()); var linePosition = (this.checkpoints[i].distance * 32) - scrollX + 31; if ((linePosition > 0) && (linePosition < 640)) { context.fillRect(linePosition - 1, 0, 2, 352); } } } // Draw goal if visible on screen var goalPosition = (this.goal * 32) - scrollX + 31; if ((goalPosition > 0) && (goalPosition < 640)) { context.fillRect(goalPosition - 1, 0, 2, 352); } /* context.fillStyle = "#889988"; context.fillText(scrollX.toString(), 0, 112); */ }; /* * public tileProperties .tileAt(yacopu, xoffset, yoffset) * * returns the tile corresponding to yacopu's current position, shifted by x and y offsets * */ level.prototype.tileAt = function (yacopu, xoffset, yoffset) { var tilex = Math.floor((yacopu.x + xoffset) / 32); var tiley = Math.floor((yacopu.y + yoffset) / 32); // If the tiles are outside the level boundaries, return a default solid tile if ((tilex < 0) || (tiley < 0) || (tilex >= this.tiles.length) || (tiley >= ROWS)) { return tileBaseProp.solid; } var tileId = this.tiles[tilex][tiley]; return tileProperties[tileId]; }; /* * private void createNewLevel(id, instance) * * creates and returns a new level based on the id properties, used on the level constructor * */ function createNewLevel(id, instance) { // load level from json instance.url = levelsURL[id]; if (!instance.url) instance.url = "level/1.json"; // set request var xhr = new XMLHttpRequest(); // this one line breaks cocoon - so lets not have it //xhr.overrideMimeType("application/json"); xhr.open('GET', instance.url, true); xhr.responseType = 'json'; xhr.onload = function () { var status = xhr.status; var response = xhr.response; if (status === 200) { levelLoadCallback(null, response); } else { levelLoadCallback(status, response); } }; // send request -- have a safe trip, lil request! xhr.send(); // callback function once level has been loaded function levelLoadCallback(err, data) { // if there is an error, fail catastrophically if (err !== null) return null; // get parameters from json instance.name = data.name; instance.author = data.author; instance.creationDate = data.creationDate; // tileset image = new Image(); image.src = data.tileset; // goal and checkpoints instance.goal = data.goal; instance.checkpoints = data.checkpoints; instance.initialTime = data.initialTime; // particle generator instance.particleGenerator = data.particleGenerator; // tile properties tileProperties = []; for (var i = 0, l = data.tileProperties.length; i < l; i++) { tileProperties.push(tileBaseProp[data.tileProperties[i]]); }; // and the actual level instance.tiles = []; // load method depends on layoutStyle property if (data.layoutStyle === "columns") { // columns -- array of columns that are placed on the level for (var i = 0, l = data.level.length; i < l; i++) { instance.tiles.push(data.columns[data.level[i]]); }; } else { // no layoutStyle -- just load level as it is instance.tiles = data.level; }; // Calculate rightmost bound, to prevent scrolling past this point instance.rightBound = (instance.tiles.length - COLS_PER_SCREEN) * 32 - 2; // level has been loaded instance.loaded = true; } }; /* * private void createScreenBuffers() * * initializes two screen buffers used in the level pre-rendering * */ function createScreenBuffers() { var buffer1 = document.createElement("canvas"); var buffer2 = document.createElement("canvas"); buffer1.width = COLS_PER_SCREEN * 32; buffer2.width = COLS_PER_SCREEN * 32; buffer1.height = ROWS * 32; buffer2.height = ROWS * 32; screenBuffers = [buffer1, buffer2]; screenContexts = [ screenBuffers[0].getContext('2d'), screenBuffers[1].getContext('2d') ]; }; /* * public void prerenderSliceToBuffer(slice, tiles) * * pre-renders a "slice" of the level to a buffer * */ function prerenderSliceToBuffer(slice, tiles) { // To keep things in order we will organize slices in even and odd var bufferToRenderTo = slice % 2; var context = screenContexts[bufferToRenderTo]; // Where this slice starts within the level var colsOffset = slice * COLS_PER_SCREEN; // Render loop for (var x = 0; x < COLS_PER_SCREEN; x++) { for (var y = 0; y < ROWS; y++) { var tileId = 0; if ((x + colsOffset) < tiles.length) tileId = tiles[x + colsOffset][y]; // Draw color //context.fillStyle = tileProperties[tileId].color; //context.fillRect(x * 32, y * 32, 32, 32); // Draw image //var tilePos = this.animation.frame * 32; context.drawImage(image, tileId * 32, 0, 32, 32, x * 32, y * 32, 32, 32); //context.fillStyle = "#888888"; //context.fillText(x.toString() + "," + y.toString(), x * 32, y * 32 + 16); } } // Keep track of rendered slices to buffers renderedSlices[bufferToRenderTo] = slice; }; // Return object to global namespace return level; }());
import { EventEmitter } from "events"; const SERVO_INTERVAL = 100; let debug = require("debug")("gps"); export default class GPS extends EventEmitter { constructor({ arduino, bounds = { minX: 0, minY: 0, maxX: 1000, maxY: 1000 }}) { super(); this.ino = arduino; this.ino.on("serial data", data => this.handleDataUpdate(data)); this.bounds = bounds; this.tileSize = 10; this.orientation = -1; this.rotation = null; this.rotationDelta = 0; this.targetAngle = 0; this.lastServoAngle = 0; this.lastServoAngleTimestamp = Date.now() + 200; } fake() { this.handleDataUpdate({ x: 40, y: 40, orientation: 70 }); } handleDataUpdate({ x, y, orientation }) { debug("data update", { x, y, orientation }); orientation = parseInt(orientation); x = parseInt(x); y = parseInt(y); if(Number.isNaN(x + y + orientation)) { return; }; if(this.lastServoAngleTimestamp + SERVO_INTERVAL >= Date.now()) { return; } orientation = (this.rotationDelta - orientation + 360) % 360; this.doRotationUpdate(orientation); this.handleEchoUpdate({ captX: x, captY: y, orientation }); } handleEchoUpdate({ captX, captY }) { let { x, y } = this.calcPosition({ x: captX, y: captY, orientation: this.orientation }); if(x < this.bounds.minX || x > this.bounds.maxX || y < this.bounds.minY || y > this.bounds.maxY) { console.warn("out of bound !"); } this.x = Math.max(this.bounds.minX, Math.min(this.bounds.maxX, x)); this.y = Math.max(this.bounds.minY, Math.min(this.bounds.maxY, y)); debug("updated position: x=%s, y=%s", x, y); this.emit("position update", this.position); } doRotationUpdate(rotation) { let newOrientation = this.calcTargetOrientation(rotation, this.orientation); this.orientation = newOrientation; this.rotation = rotation; this.sendServoAngle(this.calcServoAngle(rotation, newOrientation)); } calcPosition({ x, y, orientation }) { if(orientation == 0) { return { x: this.bounds.minX + x, y: this.bounds.minY + y }; } else if(orientation == 1) { return { x: this.bounds.maxX - y, y: this.bounds.minY + x }; } else if(orientation == 2) { return { x: this.bounds.maxX - x, y: this.bounds.maxY - y }; } else if(orientation == 3) { return { x: this.bounds.minX + y, y: this.bounds.maxY - x }; } } calcTargetOrientation(deviceRotation, lastOrientation) { let targetAngle = lastOrientation * 90; let angleDelta = deviceRotation - targetAngle; if(angleDelta > 180) angleDelta -= 360; if(angleDelta >= -50 && angleDelta <= 50 && lastOrientation !== -1) return lastOrientation; return (Math.round(deviceRotation / 90) + 4) % 4; } calcServoAngle(deviceRotation, targetOrientation) { let targetAngle = targetOrientation * 90; let angleDelta = deviceRotation - targetAngle; if(angleDelta > 180) angleDelta -= 360; debug({ targetAngle, angleDelta, deviceRotation }); if(angleDelta <= -90 || angleDelta > 90) throw new RangeError("targetOrientation not reachable"); return angleDelta + 90; // Angle: [-90, 90] -> [0, 180] } sendServoAngle(angle) { debug("sending angle", angle) this.ino.sendData({ servo: angle }); this.lastServoAngle = angle; this.lastServoAngleTimestamp = Date.now(); } set bounds({ minX, minY, maxX, maxY }) { if(minX > maxX) { console.warn("minX > maxX !"); [ minX, maxX ] = [ maxX, minX ]; } if(minY > maxY) { console.warn("minY > maxY !"); [ minY, maxY ] = [ maxY, minY ]; } this._bounds = { minX, minY, maxX, maxY }; debug("grid bounds:", this._bounds); } get bounds() { return this._bounds; } get position() { return { tile: { x: Math.floor(this.x / this.tileSize), y: Math.floor(this.y / this.tileSize) }, real: { x: this.x, y: this.y }, rotation: this.rotation }; } }
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import GalleryByReactApp from './components/Main'; // Render the main component into the dom ReactDOM.render(<GalleryByReactApp />, document.getElementById('app'));
import as from '../awesome-string'; import { expect } from 'chai'; import { PRINTABLE_ASCII } from '../const'; describe('replaceAll', function() { it('should return the replace result with a string pattern', function() { expect(as.replaceAll('duck', 'duck', 'swan')).to.be.equal('swan'); expect(as.replaceAll('duck duck', 'duck', 'swan')).to.be.equal('swan swan'); expect(as.replaceAll('duck', 'duck', '')).to.be.equal(''); expect(as.replaceAll('dduucckk', 'd', 'dd')).to.be.equal('dddduucckk'); expect(as.replaceAll('duck', 'd', '')).to.be.equal('uck'); expect(as.replaceAll('duck duck duc', 'duck', function() { return 'swan'; })).to.be.equal('swan swan duc'); expect(as.replaceAll('duck', 'u', function() { return 'a'; })).to.be.equal('dack'); expect(as.replaceAll('[a-b] [a-c][a-b]', '[a-b]', '[ab]')).to.be.equal('[ab] [a-c][ab]'); expect(as.replaceAll('*.*.', '*.', '*')).to.be.equal('**'); expect(as.replaceAll('\u0061 \u0061 b \u0061', '\u0061', '\u0062')).to.be.equal('b b b b'); expect(as.replaceAll('', '', '')).to.be.equal(''); expect(as.replaceAll('duck', '', '')).to.be.equal('duck'); expect(as.replaceAll(PRINTABLE_ASCII, PRINTABLE_ASCII, PRINTABLE_ASCII)).to.be.equal(PRINTABLE_ASCII); expect(as.replaceAll(PRINTABLE_ASCII, PRINTABLE_ASCII, 'duck')).to.be.equal('duck'); }); it('should return the replace result with a RegExp pattern', function() { expect(as.replaceAll('duck duck', /duck/, 'swan')).to.be.equal('swan swan'); expect(as.replaceAll('duck DUCK', /duck/, 'swan')).to.be.equal('swan DUCK'); expect(as.replaceAll('duck DUCK', /DUCK/i, 'swan')).to.be.equal('swan swan'); expect(as.replaceAll('duck', /duck/, '')).to.be.equal(''); expect(as.replaceAll('duck', /d/, '')).to.be.equal('uck'); expect(as.replaceAll('duck duck', /u/, function() { return 'a'; })).to.be.equal('dack dack'); expect(as.replaceAll('hello world', /(hello)\s(world)/, function(match, hello, world) { return world + ', ' + hello; })).to.be.equal('world, hello'); }); it('should return the replace result from a string representation of an object', function() { expect(as.replaceAll(['duck'], 'duck', 'swan')).to.be.equal('swan'); expect(as.replaceAll({ toString: function() { return 'mandarin duck'; } }, /mandarin\s/, '')).to.be.equal('duck'); }); it('should return the replace result from a number', function() { expect(as.replaceAll(1500, '0', '1')).to.be.equal('1511'); expect(as.replaceAll(6475, /\d/g, '*')).to.be.equal('****'); expect(as.replaceAll(6475, /\d/, '*')).to.be.equal('****'); }); it('should return the original string on failed match', function() { expect(as.replaceAll('duck', 'dack', 'swan')).to.be.equal('duck'); expect(as.replaceAll('duck', /dack/, '')).to.be.equal('duck'); }); it('should return the an empty string for an undefined or null', function() { expect(as.replaceAll(undefined, /./, '1')).to.be.equal(''); expect(as.replaceAll(null, /./, '1')).to.be.equal(''); }); });
//////////////////// // Event resource // //////////////////// 'use strict'; pay.factory('Event', ['$Resource', function ($resource) { return $resource('api/events/:id'); }]);
/* istanbul ignore next */ import mkdirp from 'mkdirp' import {dirname} from '../utils/path' /** * Asynchronously create directories along a given file path. Delegates to [mkdirp](http://npmjs.org/package/mkdirp) module. If the last element in your file path is also a folder, it must end in `/` or else it will be interpreted as a file and not created. * * @function makeDirectories * @param {String} outPath The path to a file * @param {Function} callback The function to do once this is done. Has signature of `(err)` * * @example * io.makeDirectories('path/to/create/to/data.tsv', function (err) { * console.log(err) // null * }) * * // Must end in `/` for the last item to be interpreted as a folder as well. * io.makeDirectories('path/to/create/to/another-folder/', function (err) { * console.log(err) // null * }) * */ export default function makeDirectories (outPath, cb) { mkdirp(dirname(outPath), function (err) { cb(err) }) }
import {waterfall} from 'async' import debugThe from 'debug' import partial from 'lodash/partial' import transform from 'lodash/transform' import assign from 'lodash/assign' import geohashMap from './geohashMap' import fillOptions from './fillOptions' import getCoordinates from './getCoordinates' const debug = debugThe('geohash:main') const toGeoHash = (options = {}, cb) => { if (typeof options === 'function') { cb = options options = {} } const {key} = options const filledOptions = partial(fillOptions, options) waterfall([filledOptions, getCoordinates], (err, results) => { if (err) return cb(err) const {byDate, graticule, location} = results const milesFromLoc = (geo) => { return {distance: location.milesFrom(geo)} } debug(`Location: ${location}`) debug(`Graticule: ${graticule}`) const dates = transform(byDate, (result, hashes, date) => { const {global, geohashes} = hashes debug(`Global: ${global}`) debug(`Geohashes: ${geohashes}`) const map = geohashMap({ key, location, geohashes, center: graticule.graticuleCenter().join(','), drawGraticulePaths: true, zoom: 7 }) const globalMap = geohashMap({ key, location, geohashes: [global], center: location.toString(), drawGraticulePaths: false, zoom: null }) result[date] = { map, globalMap, global: assign(milesFromLoc(global), global.toJSON()), geohashes: geohashes.map((hash) => assign(milesFromLoc(hash), hash.toJSON())) } }) cb(null, {dates, location: location.toJSON()}) }) } export default toGeoHash
document.querySelector(".pesquisa").classList.add("translate"); document.querySelector(".result").classList.add("show");
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 2.5c-2.03 0-3.8 1.11-4.75 2.75-.19.33.06.75.44.75h8.62c.38 0 .63-.42.44-.75-.95-1.64-2.72-2.75-4.75-2.75z" }), 'MoodBadRounded');
export default { key: 'Bb', suffix: 'add9', positions: [ { frets: 'x10311', fingers: '010423' }, { frets: 'xx8768', fingers: '003214' }, { frets: 'xx87x8', fingers: '002103' }, { frets: 'xdcada', fingers: '032141', barres: 10, capo: true } ] };
// DataStore is mostly recommended for use in the browser import { DataStore, Schema, utils } from 'js-data' import HttpAdapter from 'js-data-http' const schemas = require('../../../_shared/schemas')(Schema) import * as relations from '../../../_shared/relations' const convertToDate = function (record) { if (typeof record.created_at === 'string') { record.created_at = new Date(record.created_at) } if (typeof record.updated_at === 'string') { record.updated_at = new Date(record.updated_at) } } export const adapter = new HttpAdapter({ // Our API sits behind the /api path basePath: '/api' }) export const store = new DataStore({ mapperDefaults: { // Override the original to make sure the date properties are actually Date // objects createRecord (props, opts) { const result = this.constructor.prototype.createRecord.call(this, props, opts) if (Array.isArray(result)) { result.forEach(convertToDate) } else if (this.is(result)) { convertToDate(result) } return result } } }) store.registerAdapter('http', adapter, { default: true }) // The User Resource store.defineMapper('user', { // Our API endpoints use plural form in the path endpoint: 'users', schema: schemas.user, relations: relations.user, getLoggedInUser () { if (this.loggedInUser) { return utils.resolve(this.loggedInUser) } return store.getAdapter('http').GET('/api/users/loggedInUser') .then((response) => { const user = this.loggedInUser = response.data if (user) { this.loggedInUser = store.add('user', user) } return this.loggedInUser }) } }) // The Post Resource store.defineMapper('post', { // Our API endpoints use plural form in the path endpoint: 'posts', schema: schemas.post, relations: relations.post, // "GET /posts" doesn't return data as JSData expects, so we override the // default "wrap" method and add some extra logic to make sure that the // correct data gets turned into Record instances wrap (data, opts) { if (opts.op === 'afterFindAll') { data.data = this.createRecord(data.data) return data } else { return this.createRecord(data) } } }) // The Comment Resource store.defineMapper('comment', { // Our API endpoints use plural form in the path endpoint: 'comments', schema: schemas.comment, relations: relations.comment })
// establish string variables var fizz = "fizz"; /* 3 */ var buzz = "buzz"; /* 5 */ var fizzBuzz = "Fizzbuzz"; /* 3 & 5 */ var sixer = "sixer"; /* 6 */ var nixer = "nixer"; /* 9 */ var sixerNixer = "sixerNixer"; /* 6 & 9 */ // function creates a random integer function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } // declaritive function to check randomInt function integerChecker() { if (i % 3 === 0 && i % 5 === 0) { console.log(fizzBuzz); document.getElementById("number").innerHTML = fizzBuzz; } else if (i % 3 === 0) { console.log(fizz); document.getElementById("number").innerHTML = fizz; } else if (i % 5 === 0) { console.log(buzz); document.getElementById("number").innerHTML = buzz; } else { console.log(integer); document.getElementById("number").innerHTML = integer; } }; // calls getRandomInt and pushes through fizzBuzzer var i = getRandomInt(1, 145); console.log(i); document.getElementById("computer-number").innerHTML = i; integerChecker();
$(function() { $('form').submit(function (e) { e.preventDefault(); e.returnValue = false; // Get the serial number value and trim it var sn = $('#ach_pomanagerbundle_rmatype_serialNumF').val(); // Check if polite or not if (sn === 'merde') { alert('Pas de gros mots!'); return false; } else { // alert(sn); var $form = $(this); // this is the important part. you want to submit // the form but only after the ajax call is completed $.ajax({ type: 'get', url: '../search/sn/number/'+sn+'?return=json&match=exact', context: $form, // context will be "this" in your handlers success: function(result) { // your success handler //alert('json get request successfull: '); if(jQuery.isEmptyObject(result)) { alert('S/N entry does not match any recorded units. Make sure you enter complete serial number such as \'IP1-SYS D1515050\''); } else { // alert('il y a quelque chose'); // make sure that you are no longer handling the submit event; clear handler this.off('submit'); // actually submit the form this.submit(); } }, error: function() { // your error handler alert('Error searching database for S/N'); }, complete: function() { } }); // /*$.each( data, function( key, val ) { // text += key + ' - ' + val ; // });*/ } }); });
"use strict"; var createDirectmail = require("directmail"); // Expose to the world module.exports = DirectTransport; /** * <p>Generates a Transport object for DirectMail</p> * * <p>Possible options can be the following:</p> * * <ul> * <li><b>debug</b> - If true, logs output to console</li> * </ul> * * @constructor * @param {Object} options Options object for the DirectMail transport */ function DirectTransport(options){ this.directmail = createDirectmail(options); } // Setup version info for the transport DirectTransport.prototype.version = createDirectmail.version; /** * <p>Compiles a mailcomposer message and forwards it to handler that sends it.</p> * * @param {Object} emailMessage MailComposer object * @param {Function} callback Callback function to run when the sending is completed */ DirectTransport.prototype.sendMail = function(emailMessage, callback) { this.generateMessage(emailMessage, (function(err, email){ if(err){ return typeof callback == "function" && callback(err); } this.handleMessage(emailMessage, email, callback); }).bind(this)); }; /** * <p>Compiles and sends the request to SMTP with e-mail data</p> * * @param {Object} emailMessage MailComposer object * @param {String} email Compiled raw e-mail as a string * @param {Function} callback Callback function to run once the message has been sent */ DirectTransport.prototype.handleMessage = function(emailMessage, email, callback) { var statusHandler, envelope = emailMessage.getEnvelope(); try{ statusHandler = this.directmail.send({ from: envelope.from, recipients: envelope.to, message: email }); }catch(E){ if(typeof callback == "function"){ callback(E); } return; } if(typeof callback == "function"){ callback(null, { message: "Message Queued", messageId: emailMessage._messageId, statusHandler: statusHandler }); } }; /** * <p>Compiles the messagecomposer object to a string.</p> * * @param {Object} emailMessage MailComposer object * @param {Function} callback Callback function to run once the message has been compiled */ DirectTransport.prototype.generateMessage = function(emailMessage, callback) { var email = ""; emailMessage.on("data", function(chunk){ email += (chunk || "").toString("utf-8"); }); emailMessage.on("end", function(chunk){ email += (chunk || "").toString("utf-8"); callback(null, email); }); emailMessage.streamMessage(); };
var functionWithTimeout = require('../') var test = require('tape') test('function never gets called manually', function (t) { t.plan(1) var d = Date.now() function myFn () { var elapsed = Date.now() - d t.ok(elapsed >= 1000) } functionWithTimeout(myFn) }) test('function gets called before timeout', function (t) { t.plan(2) var d = Date.now() function myFn () { var elapsed = Date.now() - d t.ok(elapsed >= 100) t.ok(elapsed < 1000) } var fn = functionWithTimeout(myFn) setTimeout(fn, 100) }) test('function gets called after timeout', function (t) { t.plan(2) var d = Date.now() function myFn () { var elapsed = Date.now() - d t.ok(elapsed >= 1000) t.ok(elapsed < 1500) } var fn = functionWithTimeout(myFn) setTimeout(fn, 1500) }) test('function gets called before timeout (custom timeout)', function (t) { t.plan(2) var d = Date.now() function myFn () { var elapsed = Date.now() - d t.ok(elapsed >= 100) t.ok(elapsed < 200) } var fn = functionWithTimeout(myFn, 200) setTimeout(fn, 100) }) test('function gets called after timeout (custom timeout)', function (t) { t.plan(2) var d = Date.now() function myFn () { var elapsed = Date.now() - d t.ok(elapsed >= 500) t.ok(elapsed < 20 * 1000) } var fn = functionWithTimeout(myFn, 500) setTimeout(fn, 1000) })
import styled from 'styled-components'; const Wrapper = styled.header` margin: 0 auto; max-width: 650px; padding: 0 50px 50px; text-align: center; `; export default Wrapper;
$('#login').click(function(){ var g = G$('John', 'Doe', $('#lang').val()); $('#logindiv').hide(); g.HTMLGreeting($('#greeting'), true).log(); })
const buttonActions = { M: () => { const toolbar = document.getElementById('ccm-toolbar'); if (toolbar && (toolbar.style.display === 'block' || !toolbar.style.display)) { toolbar.style.display = 'none'; return; } toolbar.style.display = 'block'; return; }, }; /** * Let hitting 'm' make the menu pop up */ export default function initKeyEvents() { // Init keyboard shortcuts if (window.toolbar) { window.addEventListener('keyup', ({ key, keyCode, target: { tagName } }) => { const keyPressed = String(key || (keyCode && String.fromCharCode(keyCode))).toUpperCase(); /* Don't capture inputs going into a form */ if (tagName !== 'INPUT' && keyPressed in buttonActions) { buttonActions[keyPressed](); } }); } }
'use strict'; module.exports = function (app) { // User Routes var users = require('../controllers/users.server.controller'); // Setting up the users profile api app.route('/api/users/me').get(users.me); app.route('/api/users').put(users.update); app.route('/api/users/accounts').delete(users.removeOAuthProvider); app.route('/api/users/password').post(users.changePassword); app.route('/api/users/picture').post(users.changeProfilePicture); app.route('/api/users/myPoints').get(users.showPoints); // Finish by binding the user middleware app.param('userId', users.userByID); };
'use strict'; angular.module('riplive') /** * Load all application's songs. * Songs data are divided by alphabetical letters. * * @param {Object} $scope * @param {Object} $routeParams * @param {Object} songsService * @param {Object} genresService * @param {Object} generalService */ .controller('SongsCtrl', function SongsCtrl($scope, $location, songsService, genresService, generalService) { var pages = 0; var params = { page: 1, divide: true }; genresService.getSongsGenres(function(data) { $scope.songsGenres = data.genres; }); songsService.getSongs(params, function(data) { pages = data.pages; $scope.title = 'Songs'; $scope.songs = data.songs; }); $scope.loading = true; $scope.$watch('currentGenre', function(newValue, oldValue) { if (newValue) { $location.path('/songs/genre/' + newValue.slug); } }); $scope.loadData = function() { if (params['page'] >= pages) { $scope.loading = false; return false; } params['page'] += 1; songsService.getSongs(params, function(data) { generalService.pushToLetters(data.songs, $scope.songs); }); }; });
jest.autoMockOff(); var cx = require('../cx'); describe('cx', () => { it('should construct the string accordingly', () => { var str = cx({ciro: true, costa: false}); expect(str).toEqual('ciro'); }); it('return empty string if only falsy fields', () => { var str = cx({ciro: false, costa: false}); expect(str).toEqual(''); }); });
var MultiPart = require("./../src/JSss.js")("ohByBucket","MyAccessKey","mySecret","folde/theFileName.zip",{ endPoint:"secondary.s3.com",useSSL:false,dataIntegrityEnabled:false,rrsEnabled:false }); MultiPart.on("jsss-end",function () { console.log("end"); }); MultiPart.on("jsss-error",function (err) { console.log(err); // //DO NOT ABORT HERE !! - SINCE ABORT CAN RESULT IN ERROR EVENT // MultiPart.abortUpload(); }); //Upload successeded or finished MultiPart.on("jsss-upload-notice",function (partNumber,status) { partFinished++; if (partFinished == partCount) { MultiPart.finishUpload(); } }); //Must be registered to MultiPart API start MultiPart.on("jsss-ready",function () { console.log("ready"); partFinished = 0; partCount = 2; //All datas need to be 5MB> MultiPart.uploadChunk("the big data",1); MultiPart.uploadChunk("the big data2",2); });
var staticModule = require('static-module') var path = require('path') var through = require('through2') var bulk = require('bulk-require') var concat = require('concat-stream') global.BrowserifyRequiredBulks = [] module.exports = function (file, opts) { if (/\.json$/.test(file)) return through() if (!opts) opts = {} var filedir = path.dirname(file) var vars = opts.vars || { __filename: file, __dirname: filedir } const Requires = [] function bulkRequire (dir, globs, opts) { var stream = through() var res = bulk(dir, globs, { index: opts && opts.index, require: function (x) { if (!file) return path.resolve(x) var r = path.relative(filedir, x) return /^\./.test(r) ? r : './' + r } }) stream.push(walk(res, opts)) stream.push(null) BrowserifyRequiredBulks.push({ file: file, path: path.normalize(dir) + globs }) return stream } var sm = staticModule( { 'bulk-require': bulkRequire }, { vars: vars, varModules: { path: path } } ) return through(function (buf, enc, next) { sm.write(buf) sm.end() sm.pipe(concat(function (output) { next(null, output) })) }) } function walk (obj, opts) { if (!opts) opts = {} opts.index = opts.index === false ? false : true if (typeof obj === 'string') { return 'require(' + JSON.stringify(obj) + ')' } else if (obj && typeof obj === 'object' && obj.index && opts.index) { return '(function () {' + 'var f = ' + walk(obj.index) + ';' + Object.keys(obj).map(function (key) { return 'f[' + JSON.stringify(key) + ']=' + walk(obj[key], opts) + ';' }).join('') + 'return f;' + '})()' } else if (obj && typeof obj === 'object') { return '({' + Object.keys(obj).map(function (key) { return JSON.stringify(key) + ':' + walk(obj[key], opts) }).join(',') + '})' } else throw new Error('unexpected object in bulk-require result: ' + obj) }
/* * ninit - node module bootstrapper * * Copyright(c) 2014 André König <andre.koenig@posteo.de> * MIT Licensed * */ /** * @author André König <andre.koenig@posteo.de> * */ 'use strict'; exports.Generator = require('./generator'); exports.Utilities = require('./utilities');
'use strict'; module.exports = function(grunt) { grunt.initConfig({ plum: { test: { options: { src: 'test/fixtures', dest: 'test/tmp', stylesheets: ['compiled.css'] } } } }); grunt.loadTasks('tasks'); grunt.registerTask('default', ['plum']); };
(function() { var Adapter, Q, _; Q = require('q'); _ = require('lodash'); module.exports = Adapter = (function() { function Adapter(api) { this.api = api; } Adapter.prototype.config = function(options) { return this.api.config(Adapter.adapt(options)); }; Adapter.prototype.get_forecasts = function(location, count) { return Q.allSettled([this.api.get_current(location), this.api.get_forecasts(location)]).then((function(_this) { return function(response) { return Adapter.mask(response); }; })(this)); }; Adapter.adapt = function(options) { return { appid: options.api_key ? options.api_key : void 0, unit: options.unit != null ? options.unit : void 0, cnt: options.count != null ? options.count : void 0 }; }; Adapter.mask = function(response) { var current, current_raw, forecasts, forecasts_raw; current_raw = response[0].value; forecasts_raw = response[1].value; forecasts_raw = forecasts_raw.list != null ? forecasts_raw.list : forecasts_raw.List; if (current_raw instanceof Error) { return current_raw; } if (forecasts_raw instanceof Error) { return forecasts_raw; } current = { location: current_raw.coord, timestamp: current_raw.dt, temp: current_raw.main.temp, brief: current_raw.weather[0].main, description: current_raw.weather[0].description, icon: current_raw.weather[0].icon }; forecasts = _.map(forecasts_raw, function(raw) { return { timestamp: raw.dt, temp: raw.temp.day, brief: raw.weather[0].main, description: raw.weather[0].description, icon: raw.weather[0].icon }; }); return _.union([current], forecasts); }; return Adapter; })(); }).call(this);
/* A set of validators for common color formats such as {r, g, b}, {h, s, v}, {h, s, l} and [ r, g, b ] */ import { rgbObject, hslObject, rgbArray } from './validators' import Colr from 'colr' let withAlpha = (color, a) => a !== undefined ? { a, ...color } : color let normalizeRGB = c => ({ r: c.r * 255, g: c.g * 255, b: c.b * 255}) let deNormalizeRGB = c => ({ r: c.r / 255, g: c.g / 255, b: c.b / 255}) export let rgb2Hsv = c => withAlpha(Colr.fromRgbObject(normalizeRGB(c)).toRawHsvObject(), c.a) export let rgbArr2Hsv = c => withAlpha(Colr.fromRgbArray(c.map(channel => channel * 255)).toRawHsvObject(), c[3]) export let hsv2Hsv = c => c rgb2Hsv.invert = c => withAlpha(deNormalizeRGB(Colr.fromHsvObject(c).toRawRgbObject()), c.a) rgbArr2Hsv.invert = c => Colr.fromHsvObject(c).toRawRgbArray().map(channel => channel / 255).concat([ c.a ]) hsv2Hsv.invert = c => c export default value => { let converter = hsv2Hsv if (rgbObject(value)) converter = rgb2Hsv else if (rgbArray(value)) converter = rgbArr2Hsv return converter }
'use strict' const Ioc = require('adonis-fold').Ioc const ServiceProvider = require('adonis-fold').ServiceProvider class ParseProvider extends ServiceProvider { * register () { this._bindParse() this._bindAuth() this._bindMiddleware() } _bindParse () { this.app.singleton('Codedigest/Src/Parse', (app) => { const Parse = require('../src/Parse') // initialize parse with config from config/parseSdk.js const Config = app.use('Adonis/Src/Config') const appId = Config.get('parseSdk.appId') const javaScriptKey = Config.get('parseSdk.javaScriptKey') const masterKey = Config.get('parseSdk.masterKey') const serverUrl = Config.get('parseSdk.serverUrl') return Parse.initialize(appId, serverUrl, javaScriptKey, masterKey) }) } _bindAuth () { this.app.bind('Codedigest/Src/Auth', (app) => { const Auth = require('../src/Auth') return new Auth() }) } _bindMiddleware () { this.app.bind('Codedigest/Middleware/SignedIn', function (app) { const SignedIn = require('../middleware/SignedIn') return new SignedIn() }) } * boot () { // Create Alias to Parse Ioc.alias('Parse', 'Codedigest/Src/Parse') Ioc.alias('Auth', 'Codedigest/Src/Auth') // add named middleware this._addNamedMiddleware() // add global middleware this._addGlobalMiddleware() } _addGlobalMiddleware () { const Middleware = this.app.use('Adonis/Src/Middleware') } _addNamedMiddleware () { const Middleware = this.app.use('Adonis/Src/Middleware') Middleware.register('SignedIn', 'Codedigest/Middleware/SignedIn') } } module.exports = ParseProvider
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 103650053, "Date": "12\/31\/2010", "Time": "09:39 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092324, -87.929385 ], "Address": "4140 N 15TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.929384937388349, 43.09232363336028 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 1, "Incident Number": 103650074, "Date": "12\/31\/2010", "Time": "11:32 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.095142, -87.926024 ], "Address": "4320 N GREEN BAY AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.926024106642544, 43.095142150729828 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 2, "Incident Number": 103640039, "Date": "12\/30\/2010", "Time": "10:16 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.146283, -87.956204 ], "Address": "7061 N TEUTONIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 0, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.956204435772236, 43.146282866495497 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 3, "Incident Number": 103640066, "Date": "12\/30\/2010", "Time": "01:26 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.096877, -87.932994 ], "Address": "1736 W CONGRESS ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.93299357369149, 43.096877453257378 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 4, "Incident Number": 103640099, "Date": "12\/30\/2010", "Time": "03:41 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.097083, -87.942864 ], "Address": "4377 N TEUTONIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.94286428380164, 43.097083157626081 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 5, "Incident Number": 103630009, "Date": "12\/29\/2010", "Time": "12:04 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.102935, -87.950355 ], "Address": "4716 N 30TH ST #UPR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.950354875209413, 43.102934832361939 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 6, "Incident Number": 103630111, "Date": "12\/29\/2010", "Time": "12:37 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.145139, -87.955848 ], "Address": "7005 N TEUTONIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 0, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.955848212764565, 43.145139394944927 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 7, "Incident Number": 103630147, "Date": "12\/29\/2010", "Time": "05:47 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104105, -87.950343 ], "Address": "4774 N 30TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.950343407957988, 43.104104832361941 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 8, "Incident Number": 103630152, "Date": "12\/29\/2010", "Time": "05:57 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.093826, -87.938102 ], "Address": "4188 N 21ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.938102411853123, 43.093826214265107 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 9, "Incident Number": 103620017, "Date": "12\/28\/2010", "Time": "07:40 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.102710, -87.950355 ], "Address": "4706 N 30TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.950354875209413, 43.102709832361938 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 10, "Incident Number": 103610001, "Date": "12\/27\/2010", "Time": "12:08 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.147330, -87.958979 ], "Address": "3731 W ROCHELLE AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 0, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.958978826533553, 43.14732953952926 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 11, "Incident Number": 103610018, "Date": "12\/27\/2010", "Time": "04:25 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.093449, -87.930650 ], "Address": "4187 N 16TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.930650066506772, 43.0934492828207 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 12, "Incident Number": 103610023, "Date": "12\/27\/2010", "Time": "06:35 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.112424, -87.949973 ], "Address": "5224 N TEUTONIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.949973396445458, 43.112423828755254 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 13, "Incident Number": 103610039, "Date": "12\/27\/2010", "Time": "09:28 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.091532, -87.943414 ], "Address": "4080 N 24TH PL", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.943413926279845, 43.091532220093484 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 14, "Incident Number": 103610079, "Date": "12\/27\/2010", "Time": "02:10 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092415, -87.943479 ], "Address": "4143 N 24TH PL", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.94347915364402, 43.092414754371276 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 15, "Incident Number": 103600121, "Date": "12\/26\/2010", "Time": "08:08 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.142692, -87.956732 ], "Address": "6864 N DARIEN ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 0, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.95673217897118, 43.14269243167027 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 16, "Incident Number": 103570101, "Date": "12\/23\/2010", "Time": "03:19 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.126584, -87.955125 ], "Address": "3414 W FLORIST AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.955125243258422, 43.126584293318423 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 17, "Incident Number": 103550091, "Date": "12\/21\/2010", "Time": "03:39 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.111896, -87.946522 ], "Address": "2700 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.946521822175924, 43.111895719767865 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 18, "Incident Number": 103540127, "Date": "12\/20\/2010", "Time": "05:57 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104403, -87.932542 ], "Address": "1738 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.93254216472387, 43.104402511541196 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 19, "Incident Number": 103540150, "Date": "12\/20\/2010", "Time": "07:39 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.126794, -87.956044 ], "Address": "6010 N 35TH ST #310", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.956044296519039, 43.12679365602056 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 20, "Incident Number": 103550007, "Date": "12\/20\/2010", "Time": "11:10 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.119955, -87.957499 ], "Address": "5631 N 36TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.957499099255358, 43.119955341104514 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 21, "Incident Number": 103510057, "Date": "12\/17\/2010", "Time": "12:48 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.110404, -87.961396 ], "Address": "5122 N 39TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.961396360782686, 43.110404497085824 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 22, "Incident Number": 103500051, "Date": "12\/16\/2010", "Time": "08:17 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092766, -87.923233 ], "Address": "4152 N 10TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 2, "g_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.923232919066493, 43.092765586733236 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 23, "Incident Number": 103500096, "Date": "12\/16\/2010", "Time": "02:11 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.103214, -87.951646 ], "Address": "4730 N 31ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.95164635356933, 43.103213664723881 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 24, "Incident Number": 103490041, "Date": "12\/15\/2010", "Time": "11:36 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.094637, -87.939319 ], "Address": "4219 N 22ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.939319120895448, 43.094637199001681 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 25, "Incident Number": 103490058, "Date": "12\/15\/2010", "Time": "01:20 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.103124, -87.952958 ], "Address": "4765 N 32ND ST #300", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.952957603150509, 43.10312403136362 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 26, "Incident Number": 103490067, "Date": "12\/15\/2010", "Time": "03:01 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.142588, -87.965212 ], "Address": "4224 W BOEHLKE AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 0, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.965212332361929, 43.142587500432697 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 27, "Incident Number": 103490129, "Date": "12\/15\/2010", "Time": "08:36 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.108470, -87.961413 ], "Address": "5004 N 39TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.961413386317915, 43.108469832361948 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 28, "Incident Number": 103480026, "Date": "12\/14\/2010", "Time": "10:36 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.116786, -87.958769 ], "Address": "5455 N 37TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.95876915753918, 43.116785863725539 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 29, "Incident Number": 103470056, "Date": "12\/13\/2010", "Time": "01:24 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.114168, -87.960039 ], "Address": "5317 N 38TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.960039132003956, 43.114167754371294 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 30, "Incident Number": 103470125, "Date": "12\/13\/2010", "Time": "07:45 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.134833, -87.955291 ], "Address": "3400 W MILL RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.955290761835144, 43.134833030317758 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 31, "Incident Number": 103440021, "Date": "12\/11\/2010", "Time": "08:36 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.113276, -87.956343 ], "Address": "5268 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.956343338565688, 43.113276136274465 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 32, "Incident Number": 103450039, "Date": "12\/11\/2010", "Time": "09:20 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.102178, -87.947883 ], "Address": "4660 N 28TH ST #A", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.947882860782698, 43.102178329447753 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 33, "Incident Number": 103450045, "Date": "12\/11\/2010", "Time": "10:41 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.102755, -87.949128 ], "Address": "4709 N 29TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.949128124790576, 43.102755 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 34, "Incident Number": 103440037, "Date": "12\/10\/2010", "Time": "10:55 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.106679, -87.975105 ], "Address": "4902 N 50TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.975105393531265, 43.106679136274465 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 35, "Incident Number": 103440043, "Date": "12\/10\/2010", "Time": "11:19 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.094601, -87.926939 ], "Address": "4243 N 13TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.926939102573584, 43.094601031363624 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 36, "Incident Number": 103440088, "Date": "12\/10\/2010", "Time": "03:11 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104381, -87.931126 ], "Address": "4800 N GREEN BAY AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.931126017543093, 43.104381212703487 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 37, "Incident Number": 103430092, "Date": "12\/09\/2010", "Time": "04:30 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.100899, -87.949198 ], "Address": "2900 W GLENDALE AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.949198219295695, 43.100898794995295 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 38, "Incident Number": 103410032, "Date": "12\/07\/2010", "Time": "08:25 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.100550, -87.933059 ], "Address": "1830 W GLENDALE AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.933059245628712, 43.100550449362252 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 39, "Incident Number": 103410045, "Date": "12\/07\/2010", "Time": "10:00 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.110596, -87.936938 ], "Address": "5141 N 20TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 0, "e_clusterK9": 0, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.936938399982253, 43.110595750872768 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 40, "Incident Number": 103400026, "Date": "12\/06\/2010", "Time": "06:36 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.107219, -87.971366 ], "Address": "4930 N 47TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.971366328034094, 43.107218664723888 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 41, "Incident Number": 103400052, "Date": "12\/06\/2010", "Time": "11:14 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.126073, -87.962105 ], "Address": "5956 N 40TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.962104893531276, 43.126073329447763 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 42, "Incident Number": 103390015, "Date": "12\/05\/2010", "Time": "12:32 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.125764, -87.966044 ], "Address": "5948 N SHERMAN BL #5", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.966044471596604, 43.125764176562456 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 43, "Incident Number": 103390035, "Date": "12\/05\/2010", "Time": "08:39 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.089938, -87.947051 ], "Address": "2700 W CAPITOL DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.947050773114796, 43.089937670213466 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 44, "Incident Number": 103390088, "Date": "12\/05\/2010", "Time": "04:03 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.093044, -87.940978 ], "Address": "2305 W ATKINSON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.940977646834696, 43.093043560909535 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 45, "Incident Number": 103380007, "Date": "12\/04\/2010", "Time": "12:43 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104757, -87.977341 ], "Address": "5130 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.977340723007671, 43.104756518754563 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 46, "Incident Number": 103380023, "Date": "12\/04\/2010", "Time": "02:42 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.109306, -87.956434 ], "Address": "5048 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.956433856887543, 43.109306077990652 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 47, "Incident Number": 103380042, "Date": "12\/04\/2010", "Time": "09:30 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.106778, -87.960185 ], "Address": "4912 N 38TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.960184886317919, 43.106777664723865 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 48, "Incident Number": 103380059, "Date": "12\/04\/2010", "Time": "10:41 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104086, -87.939253 ], "Address": "4780 N 22ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 0, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.939252875786337, 43.10408591035258 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 49, "Incident Number": 103360082, "Date": "12\/02\/2010", "Time": "03:53 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.095360, -87.938073 ], "Address": "4250 N 21ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.938072860782697, 43.095360122395995 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 50, "Incident Number": 103360126, "Date": "12\/02\/2010", "Time": "05:31 PM", "Police District": 7.0, "Offense 1": "THEFT OF MOTOR VEHICLE PARTS\/ACCESSORIES", "Offense 2": "MOTOR VEHICLE THEFT", "Location": [ 43.110798, -87.958836 ], "Address": "5140 N 37TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.9588360672589, 43.110798404861669 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 51, "Incident Number": 103650058, "Date": "12\/31\/2010", "Time": "10:17 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.068537, -87.985186 ], "Address": "2718 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.985185911853137, 43.06853705245544 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 52, "Incident Number": 103640021, "Date": "12\/30\/2010", "Time": "06:24 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.080826, -87.996636 ], "Address": "6780 W APPLETON AV #2", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.996636218247147, 43.080826335853033 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 53, "Incident Number": 103620147, "Date": "12\/28\/2010", "Time": "08:44 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.029504, -88.005955 ], "Address": "232 S 75TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -88.005955444601724, 43.029503748542908 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 54, "Incident Number": 103610157, "Date": "12\/27\/2010", "Time": "10:19 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.033680, -88.002374 ], "Address": "228 N 72ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -88.002374419066498, 43.033680335276131 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 55, "Incident Number": 103600034, "Date": "12\/26\/2010", "Time": "09:46 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.027743, -88.014321 ], "Address": "8134 W OCONNOR ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -88.014320863725544, 43.027743456575621 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 56, "Incident Number": 103600081, "Date": "12\/26\/2010", "Time": "03:50 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072201, -87.974870 ], "Address": "2925 N 49TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.97487007372014, 43.072200586733231 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 57, "Incident Number": 103600119, "Date": "12\/26\/2010", "Time": "05:43 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075411, -87.983138 ], "Address": "5602 W BURLEIGH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.98313791927005, 43.075411032018174 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 58, "Incident Number": 103590042, "Date": "12\/25\/2010", "Time": "12:46 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075134, -88.003505 ], "Address": "3074 N 73RD ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.00350539021305, 43.075134 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 59, "Incident Number": 103580057, "Date": "12\/24\/2010", "Time": "10:05 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.062000, -87.982987 ], "Address": "2374 N 56TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.982986505898523, 43.062000448501074 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 60, "Incident Number": 103580066, "Date": "12\/24\/2010", "Time": "11:28 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.065091, -87.979909 ], "Address": "2535 N 53RD ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.979908580933497, 43.065090754371283 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 61, "Incident Number": 103540006, "Date": "12\/20\/2010", "Time": "03:12 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.081585, -87.987271 ], "Address": "3425 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.987270564485698, 43.081584998615021 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 62, "Incident Number": 103540185, "Date": "12\/20\/2010", "Time": "09:02 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.067657, -87.984968 ], "Address": "5758 W APPLETON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.984967705782338, 43.067656675832367 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 63, "Incident Number": 103510019, "Date": "12\/17\/2010", "Time": "07:35 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.070940, -87.984281 ], "Address": "2851 N 57TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.984280653644021, 43.070939832361944 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 64, "Incident Number": 103500075, "Date": "12\/16\/2010", "Time": "01:35 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.056837, -87.985252 ], "Address": "2036 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.985252437388354, 43.056836580904843 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 65, "Incident Number": 103470076, "Date": "12\/13\/2010", "Time": "03:30 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071379, -87.987762 ], "Address": "6005 W APPLETON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.987762453401615, 43.071378664983669 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 66, "Incident Number": 103470097, "Date": "12\/13\/2010", "Time": "05:31 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.035279, -88.032178 ], "Address": "9525 W BLUE MOUND RD", "e_clusterK2": 1, "g_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -88.032178115875126, 43.035278673264898 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 67, "Incident Number": 103460044, "Date": "12\/12\/2010", "Time": "11:49 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.063388, -87.985280 ], "Address": "2441 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.985279632003952, 43.063388444630391 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 68, "Incident Number": 103450014, "Date": "12\/11\/2010", "Time": "12:57 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.082530, -87.995660 ], "Address": "6701 W KEEFE AVENUE PK", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.995660492815304, 43.08252997108923 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 69, "Incident Number": 103450030, "Date": "12\/11\/2010", "Time": "08:37 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.073928, -87.988550 ], "Address": "3021 N 61ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.988549660857387, 43.073928 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 70, "Incident Number": 103450077, "Date": "12\/11\/2010", "Time": "03:56 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.060758, -87.978804 ], "Address": "5200 W NORTH AV", "e_clusterK2": 1, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.978804209510102, 43.060758209510091 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 71, "Incident Number": 103420021, "Date": "12\/08\/2010", "Time": "08:46 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.046073, -87.970243 ], "Address": "1202 N 45TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.970242926279852, 43.04607266472388 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 72, "Incident Number": 103420135, "Date": "12\/08\/2010", "Time": "09:14 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.061562, -87.978672 ], "Address": "2360 N 52ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.978672360205778, 43.061561832361946 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 73, "Incident Number": 103400137, "Date": "12\/06\/2010", "Time": "05:20 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.063647, -87.978983 ], "Address": "5211 W LISBON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.978983426048714, 43.063647266980347 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 74, "Incident Number": 103400151, "Date": "12\/06\/2010", "Time": "08:27 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.045998, -87.965610 ], "Address": "4100 W MARTIN DR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.965610190756834, 43.045998190756848 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 75, "Incident Number": 103370102, "Date": "12\/03\/2010", "Time": "05:21 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.031439, -87.995258 ], "Address": "6636 W FAIRVIEW AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.995257804062703, 43.031438933041883 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 76, "Incident Number": 103350032, "Date": "12\/01\/2010", "Time": "08:32 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.068808, -87.979860 ], "Address": "2737 N 53RD ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.979860055398277, 43.06880783819031 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 77, "Incident Number": 103650061, "Date": "12\/31\/2010", "Time": "10:51 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.988321, -87.976201 ], "Address": "4925 W OKLAHOMA AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.976200525535219, 42.988320546742614 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 78, "Incident Number": 103650099, "Date": "12\/31\/2010", "Time": "02:33 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.003737, -87.955458 ], "Address": "2247 S 33RD ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.955458048184923, 43.003737167638064 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 79, "Incident Number": 103640171, "Date": "12\/30\/2010", "Time": "11:14 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.986923, -87.960526 ], "Address": "3164 S 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.960525561169334, 42.986922736886157 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 80, "Incident Number": 103620126, "Date": "12\/28\/2010", "Time": "07:15 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.982159, -87.942974 ], "Address": "2226 W VERONA CT", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.942974235651079, 42.982159127759189 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 81, "Incident Number": 103520067, "Date": "12\/18\/2010", "Time": "03:02 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.987844, -87.960583 ], "Address": "3125 S 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.960582921114948, 42.987844035087555 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 82, "Incident Number": 103460018, "Date": "12\/12\/2010", "Time": "04:13 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.982925, -87.944958 ], "Address": "2429 W HOLT AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.944957795264543, 42.982925246148682 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 83, "Incident Number": 103450099, "Date": "12\/11\/2010", "Time": "07:10 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.986852, -88.014981 ], "Address": "8201 W EUCLID AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.014981357897156, 42.986851513994026 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 84, "Incident Number": 103430006, "Date": "12\/09\/2010", "Time": "12:28 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.974016, -87.948704 ], "Address": "2712 W HOWARD AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.948704323383438, 42.974016099503707 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 85, "Incident Number": 103430071, "Date": "12\/09\/2010", "Time": "12:58 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.966918, -87.983735 ], "Address": "4266 S 55TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.983734941283501, 42.966917664723866 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 86, "Incident Number": 103430134, "Date": "12\/09\/2010", "Time": "10:14 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.981158, -87.966503 ], "Address": "4131 W MORGAN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.966502941716186, 42.981157542847484 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 87, "Incident Number": 103370047, "Date": "12\/03\/2010", "Time": "07:45 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.991582, -87.982651 ], "Address": "5446 W STACK DR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.982651315973314, 42.991581655029002 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 88, "Incident Number": 103630069, "Date": "12\/29\/2010", "Time": "11:15 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.023970, -87.933069 ], "Address": "709 S CESAR E CHAVEZ DR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.933068577615273, 43.023969838190311 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 89, "Incident Number": 103630165, "Date": "12\/29\/2010", "Time": "07:32 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.021162, -87.924843 ], "Address": "1032 W MINERAL ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.924843, 43.021162486005977 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 90, "Incident Number": 103620026, "Date": "12\/28\/2010", "Time": "09:34 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.999452, -87.932432 ], "Address": "2480 S 15TH PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.93243249567216, 42.999451910352605 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 91, "Incident Number": 103600012, "Date": "12\/26\/2010", "Time": "01:49 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.007363, -87.922111 ], "Address": "821 W ALMA ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.9221115, 43.007362513994025 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 92, "Incident Number": 103590044, "Date": "12\/25\/2010", "Time": "12:54 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.997519, -87.927652 ], "Address": "1223 W HARRISON AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.927651896720789, 42.997518550569424 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 93, "Incident Number": 103590046, "Date": "12\/25\/2010", "Time": "12:57 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.000479, -87.924815 ], "Address": "2432 S 10TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.92481497013695, 43.000479052455432 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 94, "Incident Number": 103560042, "Date": "12\/22\/2010", "Time": "10:58 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.011166, -87.920768 ], "Address": "736 W WINDLAKE AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.920767982116914, 43.011166088365556 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 95, "Incident Number": 103550166, "Date": "12\/21\/2010", "Time": "11:15 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.004917, -87.933341 ], "Address": "2175 S 16TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.933341088146861, 43.004917005828389 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 96, "Incident Number": 103540097, "Date": "12\/20\/2010", "Time": "03:43 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.009894, -87.918651 ], "Address": "1905 S 6TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.918650599255358, 43.009893586733227 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 97, "Incident Number": 103540174, "Date": "12\/20\/2010", "Time": "09:06 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.019316, -87.915430 ], "Address": "1135 S 4TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.915429573720147, 43.019315664723877 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 98, "Incident Number": 103530014, "Date": "12\/19\/2010", "Time": "02:43 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.027404, -87.911134 ], "Address": "100 W FLORIDA ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.911133625767789, 43.027403703471393 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 99, "Incident Number": 103510135, "Date": "12\/17\/2010", "Time": "10:00 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.004323, -87.932439 ], "Address": "2213 S 15TH PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.932438558716484, 43.004322586733224 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 100, "Incident Number": 103510137, "Date": "12\/17\/2010", "Time": "10:13 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.006534, -87.918792 ], "Address": "600 W BECHER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.918791600238151, 43.006533674289912 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 101, "Incident Number": 103490119, "Date": "12\/15\/2010", "Time": "07:43 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.009659, -87.928230 ], "Address": "1919 S 13TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.928230040971556, 43.00965894754458 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 102, "Incident Number": 103490122, "Date": "12\/15\/2010", "Time": "08:05 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.027288, -87.913152 ], "Address": "211 W FLORIDA ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.91315216763806, 43.027287517889164 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 103, "Incident Number": 103470019, "Date": "12\/13\/2010", "Time": "08:57 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.008136, -87.933153 ], "Address": "2004 S 16TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.933153470136943, 43.0081364074384 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 104, "Incident Number": 103460068, "Date": "12\/12\/2010", "Time": "03:12 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.999643, -87.927299 ], "Address": "2473 S 12TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.927298540971549, 42.999643341104502 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 105, "Incident Number": 103450109, "Date": "12\/11\/2010", "Time": "09:10 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.023318, -87.915489 ], "Address": "400 W NATIONAL AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.915489161968523, 43.023318161968533 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 106, "Incident Number": 103440002, "Date": "12\/10\/2010", "Time": "12:56 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.022219, -87.923142 ], "Address": "922 W WALKER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.923141612268452, 43.02221946768411 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 107, "Incident Number": 103440038, "Date": "12\/10\/2010", "Time": "10:58 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.010771, -87.924191 ], "Address": "1827 S 10TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.924191302575466, 43.010771246265229 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 108, "Incident Number": 103440152, "Date": "12\/10\/2010", "Time": "09:11 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.006583, -87.935243 ], "Address": "1726 W BECHER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.9352425, 43.006583460470758 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 109, "Incident Number": 103440168, "Date": "12\/10\/2010", "Time": "10:19 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.002616, -87.930472 ], "Address": "1439 W WINDLAKE AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.930471522044115, 43.002615993046454 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 110, "Incident Number": 103420034, "Date": "12\/08\/2010", "Time": "10:16 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.011746, -87.936474 ], "Address": "1724 S 19TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.936474035634106, 43.011745627531894 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 111, "Incident Number": 103410033, "Date": "12\/07\/2010", "Time": "08:26 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.003924, -87.920055 ], "Address": "2228 S 7TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.920054966241807, 43.003924323619373 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 112, "Incident Number": 103360144, "Date": "12\/02\/2010", "Time": "09:58 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.005995, -87.928314 ], "Address": "2116 S 13TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.928314477350298, 43.005994575076471 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 113, "Incident Number": 103640166, "Date": "12\/30\/2010", "Time": "10:31 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.959422, -87.936871 ], "Address": "1716 W LAYTON AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.9368715, 42.959422483264667 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 114, "Incident Number": 103620056, "Date": "12\/28\/2010", "Time": "12:27 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.000946, -87.935514 ], "Address": "2410 S 18TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.935514455710234, 43.000946329447743 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 115, "Incident Number": 103590025, "Date": "12\/25\/2010", "Time": "04:32 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.935778, -87.949106 ], "Address": "6010 S 27TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.949105951238167, 42.935778387731546 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 116, "Incident Number": 103590071, "Date": "12\/25\/2010", "Time": "04:56 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.967197, -87.941284 ], "Address": "4274 S 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.941284492353944, 42.967197387731545 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 117, "Incident Number": 103550154, "Date": "12\/21\/2010", "Time": "09:27 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.960515, -87.938831 ], "Address": "4610 S 20TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.938830815588034, 42.960514736438434 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 118, "Incident Number": 103490062, "Date": "12\/15\/2010", "Time": "02:34 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.988289, -87.936001 ], "Address": "3100 S 18TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.936000528248044, 42.988288781699012 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 119, "Incident Number": 103470118, "Date": "12\/13\/2010", "Time": "07:21 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.973725, -87.938984 ], "Address": "2001 W HOWARD AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.938983599332872, 42.973724900667129 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 120, "Incident Number": 103450096, "Date": "12\/11\/2010", "Time": "06:51 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.931584, -87.929681 ], "Address": "6237 S 13TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.929680989901115, 42.931584366639726 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 121, "Incident Number": 103390050, "Date": "12\/05\/2010", "Time": "11:18 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.952257, -87.909871 ], "Address": "5067 S HOWELL AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.909871015436323, 42.952257251457098 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 122, "Incident Number": 103360053, "Date": "12\/02\/2010", "Time": "12:30 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.991209, -87.932629 ], "Address": "2933 S 15TH PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.932629029863051, 42.991209419095156 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 123, "Incident Number": 103650027, "Date": "12\/31\/2010", "Time": "06:50 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.984541, -87.922790 ], "Address": "3301 S 9TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.92278954097155, 42.984540586733232 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 124, "Incident Number": 103640036, "Date": "12\/30\/2010", "Time": "09:19 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.996710, -87.905822 ], "Address": "339 E DEER PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.9058215, 42.996710474032099 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 125, "Incident Number": 103630031, "Date": "12\/29\/2010", "Time": "07:04 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.980023, -87.895740 ], "Address": "3541 S HERMAN ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.895739522649691, 42.980022670552245 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 126, "Incident Number": 103620125, "Date": "12\/28\/2010", "Time": "07:12 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.997042, -87.912540 ], "Address": "2600 S CHASE AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.91253986226269, 42.997041749555585 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 127, "Incident Number": 103600087, "Date": "12\/26\/2010", "Time": "04:20 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.000929, -87.899414 ], "Address": "2386 S WILLIAMS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.899414419066503, 43.000929251457109 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 128, "Incident Number": 103580137, "Date": "12\/24\/2010", "Time": "08:39 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.994881, -87.928688 ], "Address": "2727 S 13TH ST #31", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.928688085405568, 42.994880863725541 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 129, "Incident Number": 103520047, "Date": "12\/18\/2010", "Time": "12:17 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.979121, -87.906284 ], "Address": "355 E WARNIMONT AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.906284155305485, 42.979120894722712 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 130, "Incident Number": 103510146, "Date": "12\/17\/2010", "Time": "10:51 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.988260, -87.921030 ], "Address": "723 W OKLAHOMA AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.921030357897166, 42.988260470136943 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 131, "Incident Number": 103490091, "Date": "12\/15\/2010", "Time": "05:33 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.982494, -87.913590 ], "Address": "250 W HOLT AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.913590123797903, 42.982494110233937 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 132, "Incident Number": 103480116, "Date": "12\/14\/2010", "Time": "07:40 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.990911, -87.923815 ], "Address": "2944 S 9TH PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.923814911853128, 42.990911161809692 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 133, "Incident Number": 103480147, "Date": "12\/14\/2010", "Time": "11:02 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.990803, -87.921384 ], "Address": "2948 S 8TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.921383937388356, 42.990803413266775 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 134, "Incident Number": 103470012, "Date": "12\/13\/2010", "Time": "08:17 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.982338, -87.913937 ], "Address": "245 W HOLT AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.913937138074374, 42.982337889766065 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 135, "Incident Number": 103460059, "Date": "12\/12\/2010", "Time": "02:15 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.994116, -87.933606 ], "Address": "2762 S 16TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 3, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.93360647735031, 42.994115664723864 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 136, "Incident Number": 103450115, "Date": "12\/11\/2010", "Time": "10:06 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.004104, -87.906322 ], "Address": "2200 S ROBINSON AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.90632224770809, 43.004104449028226 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 137, "Incident Number": 103440027, "Date": "12\/10\/2010", "Time": "10:10 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.001745, -87.901060 ], "Address": "615 E LINUS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.901060080904841, 43.001744543424394 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 138, "Incident Number": 103440139, "Date": "12\/10\/2010", "Time": "07:17 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.988291, -87.894000 ], "Address": "1200 E OKLAHOMA AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.894, 42.988291478792597 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 139, "Incident Number": 103410107, "Date": "12\/07\/2010", "Time": "05:13 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.001775, -87.902874 ], "Address": "510 E LINUS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.902874419095156, 43.001774515436331 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 140, "Incident Number": 103390080, "Date": "12\/05\/2010", "Time": "03:45 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.998085, -87.918911 ], "Address": "2551 S 6TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.918911080933498, 42.998085419095162 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 141, "Incident Number": 103370090, "Date": "12\/03\/2010", "Time": "04:30 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.004206, -87.905335 ], "Address": "2211 S KINNICKINNIC AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.905335262854052, 43.004205660828738 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 142, "Incident Number": 103360009, "Date": "12\/02\/2010", "Time": "01:26 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.991579, -87.922651 ], "Address": "2913 S 9TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.92265101543633, 42.991579005828385 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 143, "Incident Number": 103650004, "Date": "12\/31\/2010", "Time": "03:17 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.061805, -87.964640 ], "Address": "2365 N 41ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.964639584251714, 43.061805419095151 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 144, "Incident Number": 103650096, "Date": "12\/31\/2010", "Time": "02:17 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.069950, -87.948563 ], "Address": "2806 N 28TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.948563419066502, 43.069949664723879 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 145, "Incident Number": 103640042, "Date": "12\/30\/2010", "Time": "10:27 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.065557, -87.959775 ], "Address": "2558 N 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.959775386317915, 43.065557245628725 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 146, "Incident Number": 103630197, "Date": "12\/29\/2010", "Time": "11:07 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.042806, -87.959586 ], "Address": "954 N 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.959585911276207, 43.042805549541242 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 147, "Incident Number": 103620111, "Date": "12\/28\/2010", "Time": "05:19 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.059391, -87.926843 ], "Address": "2214 N 12TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.92684347725222, 43.059390682236945 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 148, "Incident Number": 103610019, "Date": "12\/27\/2010", "Time": "05:04 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.047234, -87.960326 ], "Address": "1306 N 37TH PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.960325900744635, 43.04723383236194 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 149, "Incident Number": 103610108, "Date": "12\/27\/2010", "Time": "04:57 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.065713, -87.947263 ], "Address": "2658 W MEDFORD AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947262720064828, 43.065712863465748 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 150, "Incident Number": 103600032, "Date": "12\/26\/2010", "Time": "07:55 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.052769, -87.943340 ], "Address": "2423 W LISBON AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.943340230653732, 43.052768991373 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 151, "Incident Number": 103600045, "Date": "12\/26\/2010", "Time": "11:39 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.058376, -87.962274 ], "Address": "2138 N 39TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.962273860782688, 43.058375580904851 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 152, "Incident Number": 103600079, "Date": "12\/26\/2010", "Time": "03:26 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.047603, -87.963565 ], "Address": "1318 N 40TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.963565466241803, 43.047602884817366 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 153, "Incident Number": 103600139, "Date": "12\/26\/2010", "Time": "10:49 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.063388, -87.959812 ], "Address": "2442 N 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.959812360782692, 43.063388413266779 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 154, "Incident Number": 103580145, "Date": "12\/24\/2010", "Time": "09:26 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.059464, -87.932606 ], "Address": "2222 N 16TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 0, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.932606419066502, 43.059464413266795 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 155, "Incident Number": 103560098, "Date": "12\/22\/2010", "Time": "04:42 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038871, -87.957788 ], "Address": "3500 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.957788205570594, 43.038871135709854 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 156, "Incident Number": 103550010, "Date": "12\/21\/2010", "Time": "02:34 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.069505, -87.932605 ], "Address": "1545 W HADLEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.932604510127547, 43.069505481245464 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 157, "Incident Number": 103550047, "Date": "12\/21\/2010", "Time": "10:57 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.043891, -87.957775 ], "Address": "3500 W LINDEN PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.957775316945117, 43.043890536503277 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 158, "Incident Number": 103550131, "Date": "12\/21\/2010", "Time": "07:07 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.055740, -87.936429 ], "Address": "1943 N 19TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 0, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.936429040971547, 43.055740005828397 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 159, "Incident Number": 103530038, "Date": "12\/19\/2010", "Time": "07:38 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.057620, -87.965784 ], "Address": "2108 N 42ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.96578388242277, 43.057620335276141 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 160, "Incident Number": 103530081, "Date": "12\/19\/2010", "Time": "12:03 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.064496, -87.947383 ], "Address": "2514 N 27TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947383360782695, 43.064495580904833 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 161, "Incident Number": 103530084, "Date": "12\/19\/2010", "Time": "01:18 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.061631, -87.963479 ], "Address": "2357 N 40TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.963478847864025, 43.06163093363088 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 162, "Incident Number": 103530127, "Date": "12\/19\/2010", "Time": "06:23 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.059554, -87.958683 ], "Address": "2212 N 36TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.958682944601719, 43.059554245628732 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 163, "Incident Number": 103530149, "Date": "12\/19\/2010", "Time": "09:01 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071138, -87.937470 ], "Address": "2875 N 20TH LA", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 3, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.937470077038355, 43.071137863725539 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 164, "Incident Number": 103510064, "Date": "12\/17\/2010", "Time": "01:18 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.062185, -87.933141 ], "Address": "1619 W MEINECKE AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 2, "e_clusterK8": 4, "g_clusterK8": 2, "e_clusterK9": 0, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.933141167638055, 43.062184521207406 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 165, "Incident Number": 103500058, "Date": "12\/16\/2010", "Time": "11:47 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.060548, -87.956673 ], "Address": "3421 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956672760139639, 43.060547790558545 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 166, "Incident Number": 103500083, "Date": "12\/16\/2010", "Time": "02:21 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.047153, -87.960322 ], "Address": "1302 N 37TH PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.960322375209415, 43.047152832361945 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 167, "Incident Number": 103490069, "Date": "12\/15\/2010", "Time": "01:53 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.055616, -87.926074 ], "Address": "1121 W RESERVOIR AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.926074069225166, 43.055615796826451 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 168, "Incident Number": 103450064, "Date": "12\/11\/2010", "Time": "01:15 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.054317, -87.932789 ], "Address": "1821 N 16TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 0, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.932789080933503, 43.054316947544578 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 169, "Incident Number": 103440033, "Date": "12\/10\/2010", "Time": "10:40 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.064496, -87.956300 ], "Address": "2511 N 34TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956299632003947, 43.064496335276118 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 170, "Incident Number": 103440063, "Date": "12\/10\/2010", "Time": "12:49 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.066045, -87.947793 ], "Address": "2708 W CLARKE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947792832361941, 43.066045486005976 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 171, "Incident Number": 103440066, "Date": "12\/10\/2010", "Time": "01:00 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.063128, -87.946164 ], "Address": "2430 N 26TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.946163944601722, 43.063127717179299 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 172, "Incident Number": 103410167, "Date": "12\/07\/2010", "Time": "10:30 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.041692, -87.956222 ], "Address": "3330 W KILBOURN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956221667638061, 43.041692460470763 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 173, "Incident Number": 103400040, "Date": "12\/06\/2010", "Time": "09:36 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.055316, -87.954031 ], "Address": "1905 N 32ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.954030595360223, 43.0553162514571 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 174, "Incident Number": 103390055, "Date": "12\/05\/2010", "Time": "11:44 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.051510, -87.963052 ], "Address": "3935 W GALENA ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.963051525535221, 43.051509546742608 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 175, "Incident Number": 103390077, "Date": "12\/05\/2010", "Time": "02:18 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.065387, -87.923973 ], "Address": "2564 N 10TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.923973364677821, 43.065386664723889 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 176, "Incident Number": 103370074, "Date": "12\/03\/2010", "Time": "03:09 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.064378, -87.962184 ], "Address": "2500 N 39TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.962183944601719, 43.064378245628717 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 177, "Incident Number": 103350085, "Date": "12\/01\/2010", "Time": "02:38 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.051600, -87.963713 ], "Address": "4000 W GALENA ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.963712791175922, 43.051599867337089 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 178, "Incident Number": 103350107, "Date": "12\/01\/2010", "Time": "03:11 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.058537, -87.961076 ], "Address": "2148 N 38TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.961075886317914, 43.058537413266777 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 179, "Incident Number": 103350168, "Date": "12\/01\/2010", "Time": "09:18 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.060663, -87.970581 ], "Address": "4520 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.970581, 43.060663486005978 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 180, "Incident Number": 103350178, "Date": "12\/01\/2010", "Time": "11:32 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.053904, -87.950872 ], "Address": "2928 W LISBON AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.950872005828373, 43.053904486005962 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 181, "Incident Number": 103630135, "Date": "12\/29\/2010", "Time": "04:54 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092153, -87.987000 ], "Address": "4109 N 60TH ST #REAR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.986999606468729, 43.092153031363608 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 182, "Incident Number": 103630196, "Date": "12\/29\/2010", "Time": "11:03 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.132586, -88.014982 ], "Address": "8309 W BENDER AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.01498179837067, 43.132585898500935 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 183, "Incident Number": 103620019, "Date": "12\/28\/2010", "Time": "08:23 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.122356, -87.997193 ], "Address": "5744 N 69TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.997192886317919, 43.122355994171613 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 184, "Incident Number": 103620023, "Date": "12\/28\/2010", "Time": "08:01 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.119407, -88.029532 ], "Address": "9341 W SILVER SPRING DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.02953232514858, 43.119406521207402 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 185, "Incident Number": 103620080, "Date": "12\/28\/2010", "Time": "02:11 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.116295, -87.991384 ], "Address": "6434 W CUSTER AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.991383581759692, 43.116295315090603 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 186, "Incident Number": 103620086, "Date": "12\/28\/2010", "Time": "03:27 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.133095, -88.023280 ], "Address": "8906 W WINFIELD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023279692625024, 43.1330948370938 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 187, "Incident Number": 103620103, "Date": "12\/28\/2010", "Time": "04:34 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.117938, -88.027136 ], "Address": "5510 N 92ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.027135886317922, 43.117938419095168 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 188, "Incident Number": 103620106, "Date": "12\/28\/2010", "Time": "01:54 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.118214, -88.031259 ], "Address": "9521 W BECKETT AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.031258773125842, 43.118213994431429 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 189, "Incident Number": 103590018, "Date": "12\/25\/2010", "Time": "07:45 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.115119, -88.008757 ], "Address": "7809 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.008756819576192, 43.115119277144814 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 190, "Incident Number": 103580043, "Date": "12\/24\/2010", "Time": "05:30 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.091569, -87.987009 ], "Address": "4071 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.98700860646872, 43.091568922009344 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 191, "Incident Number": 103580061, "Date": "12\/24\/2010", "Time": "10:40 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.106966, -87.993674 ], "Address": "4896 N 66TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.993673886317922, 43.106965994171617 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 192, "Incident Number": 103570020, "Date": "12\/23\/2010", "Time": "06:03 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.112253, -88.018934 ], "Address": "8586 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.0189335, 43.112253456575615 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 193, "Incident Number": 103550169, "Date": "12\/22\/2010", "Time": "12:04 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.090660, -87.987041 ], "Address": "4025 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.987041080933494, 43.090659838190334 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 194, "Incident Number": 103560026, "Date": "12\/22\/2010", "Time": "07:38 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.111296, -88.016893 ], "Address": "5130 N 85TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.016893346355971, 43.111296 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 195, "Incident Number": 103560079, "Date": "12\/22\/2010", "Time": "02:49 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.100484, -87.989521 ], "Address": "6222 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.989520888683842, 43.100483677505814 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 196, "Incident Number": 103550040, "Date": "12\/21\/2010", "Time": "10:11 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.131609, -88.023878 ], "Address": "8927 W MONROVIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023878180160196, 43.131608520370676 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 197, "Incident Number": 103550061, "Date": "12\/21\/2010", "Time": "11:44 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.124642, -88.015754 ], "Address": "5864 N 84TH ST #3", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.015754349674182, 43.124642329447738 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 198, "Incident Number": 103540124, "Date": "12\/20\/2010", "Time": "05:16 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.090116, -87.989710 ], "Address": "6212 W CAPITOL DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.989710074154374, 43.090116246853093 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 199, "Incident Number": 103540126, "Date": "12\/20\/2010", "Time": "05:52 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.105081, -88.013002 ], "Address": "8100 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.01300152553523, 43.105080518754569 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 200, "Incident Number": 103530037, "Date": "12\/19\/2010", "Time": "06:19 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.108653, -88.007103 ], "Address": "7634 W PALMETTO AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.007103, 43.108652501009622 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 201, "Incident Number": 103530039, "Date": "12\/19\/2010", "Time": "06:25 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.107668, -88.000503 ], "Address": "7054 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.000503355935251, 43.107667710254418 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 202, "Incident Number": 103510153, "Date": "12\/18\/2010", "Time": "12:47 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.091861, -87.997932 ], "Address": "6834 W FIEBRANTZ AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.997932, 43.091860514859405 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 203, "Incident Number": 103520074, "Date": "12\/18\/2010", "Time": "03:01 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.117714, -88.028064 ], "Address": "9226 W BIRCH AV #2", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.028064, 43.117713511541183 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 204, "Incident Number": 103500129, "Date": "12\/16\/2010", "Time": "07:52 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.105912, -88.014343 ], "Address": "8222 W LUSCHER AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.014343332361932, 43.105912478792611 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 205, "Incident Number": 103490010, "Date": "12\/15\/2010", "Time": "07:54 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.112233, -88.023033 ], "Address": "8904 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023033335276125, 43.112233464365893 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 206, "Incident Number": 103490077, "Date": "12\/15\/2010", "Time": "04:05 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.129746, -88.019013 ], "Address": "8619 W LYNX AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.01901310644007, 43.129746484563661 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 207, "Incident Number": 103480078, "Date": "12\/14\/2010", "Time": "02:54 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.108227, -88.015948 ], "Address": "4977 N 84TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.015947650325813, 43.108226580904841 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 208, "Incident Number": 103480094, "Date": "12\/14\/2010", "Time": "05:12 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.117846, -88.005894 ], "Address": "5506 N 76TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.005893875209409, 43.117845991632791 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 209, "Incident Number": 103460041, "Date": "12\/12\/2010", "Time": "11:16 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.108652, -88.020574 ], "Address": "8710 W APPLETON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.020574314992359, 43.108651863465738 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 210, "Incident Number": 103410023, "Date": "12\/07\/2010", "Time": "06:23 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.107114, -87.998283 ], "Address": "6941 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.998282600351885, 43.10711443767682 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 211, "Incident Number": 103400005, "Date": "12\/06\/2010", "Time": "12:47 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092640, -87.980058 ], "Address": "5315 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.980057512981404, 43.092640148651725 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 212, "Incident Number": 103400088, "Date": "12\/06\/2010", "Time": "02:17 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.122916, -88.029498 ], "Address": "5773 N 94TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.029498124790578, 43.122915586733228 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 213, "Incident Number": 103400096, "Date": "12\/06\/2010", "Time": "03:10 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.107017, -87.999701 ], "Address": "7018 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.999700863148618, 43.107016703041033 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 214, "Incident Number": 103390020, "Date": "12\/05\/2010", "Time": "02:17 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.118489, -87.991303 ], "Address": "6418 W SHERIDAN AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.991302589612204, 43.11848859791457 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 215, "Incident Number": 103390031, "Date": "12\/05\/2010", "Time": "06:42 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.116545, -87.994320 ], "Address": "5414 N 67TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.994320219679011, 43.116544997168305 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 216, "Incident Number": 103390044, "Date": "12\/05\/2010", "Time": "10:04 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.122664, -88.018253 ], "Address": "8623 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.01825286707242, 43.122664205926583 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 217, "Incident Number": 103390063, "Date": "12\/05\/2010", "Time": "01:06 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092189, -87.975839 ], "Address": "4121 N 50TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.975838632003956, 43.092188863725539 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 218, "Incident Number": 103370022, "Date": "12\/03\/2010", "Time": "07:42 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.118371, -87.992245 ], "Address": "6502 W SHERIDAN AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.992244915852424, 43.118370631611441 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 219, "Incident Number": 103370043, "Date": "12\/03\/2010", "Time": "11:47 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.111296, -88.016893 ], "Address": "5130 N 85TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.016893346355971, 43.111296 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 220, "Incident Number": 103370069, "Date": "12\/03\/2010", "Time": "02:35 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.118137, -88.007471 ], "Address": "7703 W SHERIDAN AV #B", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.007471360811351, 43.118137477927228 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 221, "Incident Number": 103610013, "Date": "12\/27\/2010", "Time": "03:24 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.069263, -87.899490 ], "Address": "931 E HADLEY ST #3", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.899490419095159, 43.069262543424401 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 222, "Incident Number": 103610044, "Date": "12\/27\/2010", "Time": "10:30 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072219, -87.901503 ], "Address": "2950 N FRATNEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.901503393531272, 43.072219257285468 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 223, "Incident Number": 103610075, "Date": "12\/27\/2010", "Time": "10:07 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.069519, -87.905263 ], "Address": "2806 N HOLTON ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.905262926279846, 43.069518639188658 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 224, "Incident Number": 103610098, "Date": "12\/27\/2010", "Time": "03:39 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.076006, -87.902676 ], "Address": "3158 N PIERCE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.902676400744639, 43.076005994171624 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 225, "Incident Number": 103600070, "Date": "12\/26\/2010", "Time": "02:49 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.064361, -87.888072 ], "Address": "2523 N OAKLAND AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.888071606468728, 43.064360696087476 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 226, "Incident Number": 103600128, "Date": "12\/26\/2010", "Time": "08:37 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.066608, -87.879291 ], "Address": "2640 N STOWELL AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.879291404789939, 43.066608085596449 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 227, "Incident Number": 103600136, "Date": "12\/26\/2010", "Time": "10:32 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079791, -87.900940 ], "Address": "810 E TOWNSEND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.900939723007681, 43.079791493219325 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 228, "Incident Number": 103580033, "Date": "12\/24\/2010", "Time": "05:31 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.076395, -87.897788 ], "Address": "3177 N HUMBOLDT BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.897787624790581, 43.076394838190311 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 229, "Incident Number": 103580116, "Date": "12\/24\/2010", "Time": "05:18 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.056405, -87.893674 ], "Address": "1918 N WARREN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.893673955133295, 43.056405052455432 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 230, "Incident Number": 103560054, "Date": "12\/22\/2010", "Time": "11:49 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.067420, -87.898623 ], "Address": "1013 E CENTER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.898622505828385, 43.067419513994025 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 231, "Incident Number": 103560063, "Date": "12\/22\/2010", "Time": "12:10 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.068996, -87.904033 ], "Address": "2768 N BOOTH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.90403336799605, 43.068995664723872 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 232, "Incident Number": 103540008, "Date": "12\/20\/2010", "Time": "04:52 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079429, -87.890891 ], "Address": "1507 E NEWPORT AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.890890751457093, 43.079429474032096 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 233, "Incident Number": 103540010, "Date": "12\/20\/2010", "Time": "04:22 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.065486, -87.899163 ], "Address": "2578 N WEIL ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.899162875209413, 43.065485832361929 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 234, "Incident Number": 103540144, "Date": "12\/20\/2010", "Time": "07:36 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072956, -87.885469 ], "Address": "3001 N MURRAY AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.885468573720146, 43.072956167638068 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 235, "Incident Number": 103520043, "Date": "12\/18\/2010", "Time": "11:26 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.065298, -87.899165 ], "Address": "2572 N WEIL ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.899164929598086, 43.065297723007689 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 236, "Incident Number": 103510085, "Date": "12\/17\/2010", "Time": "04:51 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071086, -87.886643 ], "Address": "2900 N CRAMER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.8866427955424, 43.07108648412882 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 237, "Incident Number": 103510003, "Date": "12\/16\/2010", "Time": "10:57 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075169, -87.891493 ], "Address": "3118 N CAMBRIDGE AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.891492926279852, 43.075168742714538 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 238, "Incident Number": 103470047, "Date": "12\/13\/2010", "Time": "12:23 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.054532, -87.894933 ], "Address": "1800 N ARLINGTON PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.894932937388361, 43.05453241326677 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 239, "Incident Number": 103470100, "Date": "12\/13\/2010", "Time": "05:36 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077510, -87.901501 ], "Address": "3255 N FRATNEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.90150113979422, 43.077509863725538 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 240, "Incident Number": 103470152, "Date": "12\/13\/2010", "Time": "09:33 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.052957, -87.904242 ], "Address": "615 E BRADY ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.904241968636384, 43.052957488458816 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 241, "Incident Number": 103460031, "Date": "12\/12\/2010", "Time": "09:24 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.078433, -87.898902 ], "Address": "1000 E CONCORDIA AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.898901648398351, 43.078432547397426 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 242, "Incident Number": 103450072, "Date": "12\/11\/2010", "Time": "02:54 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072795, -87.885052 ], "Address": "2007 E LINNWOOD AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.885052423394313, 43.07279452510253 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 243, "Incident Number": 103430042, "Date": "12\/09\/2010", "Time": "11:07 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.050321, -87.894736 ], "Address": "1400 E ALBION ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.894735794661997, 43.050320904149892 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 244, "Incident Number": 103420026, "Date": "12\/08\/2010", "Time": "09:24 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.074794, -87.902685 ], "Address": "3100 N PIERCE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.90268460256037, 43.074793775165716 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 245, "Incident Number": 103410074, "Date": "12\/07\/2010", "Time": "01:24 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.063866, -87.879362 ], "Address": "2500 N STOWELL AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.879362419066496, 43.063865717179311 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 246, "Incident Number": 103410115, "Date": "12\/07\/2010", "Time": "05:46 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.074594, -87.901496 ], "Address": "3078 N FRATNEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.901496426279849, 43.074594303912534 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 247, "Incident Number": 103410165, "Date": "12\/07\/2010", "Time": "10:24 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.067313, -87.897802 ], "Address": "2676 N HUMBOLDT BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.897802382422768, 43.067313471550591 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 248, "Incident Number": 103400067, "Date": "12\/06\/2010", "Time": "09:35 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.061138, -87.904168 ], "Address": "2339 N BOOTH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.904168106468717, 43.061137774078134 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 249, "Incident Number": 103390059, "Date": "12\/05\/2010", "Time": "12:28 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.050222, -87.900863 ], "Address": "1538 N MARSHALL ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.900862879104551, 43.050222052455439 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 250, "Incident Number": 103390095, "Date": "12\/05\/2010", "Time": "06:05 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079310, -87.897710 ], "Address": "3343 N HUMBOLDT BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.897709632003952, 43.079309947544573 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 251, "Incident Number": 103390101, "Date": "12\/05\/2010", "Time": "06:26 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.066747, -87.897890 ], "Address": "2651 N HUMBOLDT BL #UPPER", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.897890088146866, 43.066747499019066 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 252, "Incident Number": 103380135, "Date": "12\/04\/2010", "Time": "11:34 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.063616, -87.876913 ], "Address": "2522 N LAKE DR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.876912696803828, 43.063615606525893 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 253, "Incident Number": 103350037, "Date": "12\/01\/2010", "Time": "09:48 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077268, -87.897579 ], "Address": "3240 N HUMBOLDT BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.897579038381835, 43.07726760456066 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 254, "Incident Number": 103640069, "Date": "12\/30\/2010", "Time": "12:52 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038871, -87.925418 ], "Address": "1000 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.925418358378735, 43.038871227623787 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 255, "Incident Number": 103640101, "Date": "12\/30\/2010", "Time": "03:43 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.042059, -87.946370 ], "Address": "917 N 26TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.946369562611636, 43.042059 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 256, "Incident Number": 103640110, "Date": "12\/30\/2010", "Time": "05:06 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.045105, -87.932336 ], "Address": "1145 N CALLAHAN PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.932336011277329, 43.045105168465533 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 257, "Incident Number": 103640132, "Date": "12\/30\/2010", "Time": "06:59 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.043194, -87.954132 ], "Address": "3151 W STATE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.95413249418101, 43.04319403094869 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 258, "Incident Number": 103630027, "Date": "12\/29\/2010", "Time": "06:47 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.040320, -87.954800 ], "Address": "3210 W WELLS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.954799803912522, 43.040319504327833 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 259, "Incident Number": 103620148, "Date": "12\/28\/2010", "Time": "08:42 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.035286, -87.947726 ], "Address": "418 N 27TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947725881845855, 43.035286285590658 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 260, "Incident Number": 103610086, "Date": "12\/27\/2010", "Time": "02:47 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.044446, -87.952301 ], "Address": "3017 W HIGHLAND BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.95230102553522, 43.044445542847484 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 261, "Incident Number": 103610116, "Date": "12\/27\/2010", "Time": "05:39 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038840, -87.923781 ], "Address": "900 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.923781, 43.038839519908393 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 262, "Incident Number": 103600021, "Date": "12\/26\/2010", "Time": "05:02 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.041714, -87.946896 ], "Address": "2640 W KILBOURN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.946895880976498, 43.041714185316486 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 263, "Incident Number": 103580013, "Date": "12\/24\/2010", "Time": "02:16 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038826, -87.940630 ], "Address": "2200 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.940629990309375, 43.038825861819276 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 264, "Incident Number": 103580027, "Date": "12\/24\/2010", "Time": "04:00 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038109, -87.952731 ], "Address": "650 N 31ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.952730570322785, 43.038108945943058 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 265, "Incident Number": 103580073, "Date": "12\/24\/2010", "Time": "01:00 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.044661, -87.956474 ], "Address": "3334 W HIGHLAND BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.9564735, 43.04466146436588 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 266, "Incident Number": 103580151, "Date": "12\/24\/2010", "Time": "10:41 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.044307, -87.902159 ], "Address": "1007 N CASS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.902158822263047, 43.044306621703498 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 267, "Incident Number": 103550012, "Date": "12\/21\/2010", "Time": "03:21 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.040305, -87.949750 ], "Address": "2820 W WELLS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.949750416180962, 43.040305464365879 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 268, "Incident Number": 103540070, "Date": "12\/20\/2010", "Time": "11:31 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.040493, -87.942876 ], "Address": "808 N 24TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.942875959028441, 43.040493115182642 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 269, "Incident Number": 103520035, "Date": "12\/18\/2010", "Time": "10:19 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.043723, -87.927198 ], "Address": "1017 N 12TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.927198123780045, 43.043723360811356 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 270, "Incident Number": 103510054, "Date": "12\/17\/2010", "Time": "12:27 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.043646, -87.915885 ], "Address": "1034 N 4TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 3, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.915884651955238, 43.043645844002626 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 271, "Incident Number": 103510121, "Date": "12\/17\/2010", "Time": "08:19 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.043280, -87.927239 ], "Address": "1200 W STATE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.927238687305035, 43.043280187305044 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 272, "Incident Number": 103480099, "Date": "12\/14\/2010", "Time": "02:53 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.040210, -87.939686 ], "Address": "2123 W WELLS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.939685739247182, 43.040210188929599 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 273, "Incident Number": 103450048, "Date": "12\/11\/2010", "Time": "10:53 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.040347, -87.945009 ], "Address": "2500 W WELLS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.945008681062134, 43.040346680175475 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 274, "Incident Number": 103450086, "Date": "12\/11\/2010", "Time": "05:12 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.040718, -87.930112 ], "Address": "816 N 14TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.930112382422763, 43.040718 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 275, "Incident Number": 103430048, "Date": "12\/09\/2010", "Time": "11:30 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.044260, -87.937361 ], "Address": "1925 W HIGHLAND AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.937361025535225, 43.044259528420767 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 276, "Incident Number": 103430082, "Date": "12\/09\/2010", "Time": "02:38 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.037480, -87.947051 ], "Address": "2621 W MICHIGAN ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947050667638067, 43.037479521207395 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 277, "Incident Number": 103410090, "Date": "12\/07\/2010", "Time": "04:36 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.044445, -87.941583 ], "Address": "2300 W HIGHLAND AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.941583, 43.044445461624591 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 278, "Incident Number": 103410119, "Date": "12\/07\/2010", "Time": "05:52 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.043314, -87.931423 ], "Address": "1002 N 15TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.931423151956082, 43.043313946082932 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 279, "Incident Number": 103410149, "Date": "12\/07\/2010", "Time": "08:45 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038804, -87.953463 ], "Address": "3100 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.953463335276126, 43.038804497114469 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 280, "Incident Number": 103370143, "Date": "12\/03\/2010", "Time": "09:30 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.038793, -87.935372 ], "Address": "700 N 18TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.935372124131931, 43.038793280980606 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 281, "Incident Number": 103610003, "Date": "12\/27\/2010", "Time": "12:26 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.138640, -88.038733 ], "Address": "10167 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.038733226995504, 43.138640294891061 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 282, "Incident Number": 103610122, "Date": "12\/27\/2010", "Time": "05:17 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.074684, -88.011044 ], "Address": "3056 N 79TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.011043886317921, 43.074683832361927 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 283, "Incident Number": 103600115, "Date": "12\/26\/2010", "Time": "07:21 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.124542, -88.060710 ], "Address": "11901 W BOBOLINK AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.060710441716196, 43.124541539529268 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 284, "Incident Number": 103580054, "Date": "12\/24\/2010", "Time": "09:50 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.098128, -88.027503 ], "Address": "4450 N 92ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.027503393531276, 43.098128329447746 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 285, "Incident Number": 103570048, "Date": "12\/23\/2010", "Time": "10:51 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.099154, -88.009844 ], "Address": "7800 W BECKETT AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.009843726239822, 43.099154492353776 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 286, "Incident Number": 103530073, "Date": "12\/19\/2010", "Time": "11:47 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104916, -88.013544 ], "Address": "8115 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.013544076605669, 43.104915546742632 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 287, "Incident Number": 103530134, "Date": "12\/19\/2010", "Time": "06:55 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.108758, -88.022877 ], "Address": "8858 W FAIRMOUNT AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.0228772760737, 43.108757699016628 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 288, "Incident Number": 103500019, "Date": "12\/16\/2010", "Time": "07:35 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.109704, -88.022331 ], "Address": "8847 W APPLETON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.022331179131811, 43.10970427445482 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 289, "Incident Number": 103500045, "Date": "12\/16\/2010", "Time": "11:14 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.082621, -88.007760 ], "Address": "7600 W KEEFE AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.00776, 43.082620500432697 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 290, "Incident Number": 103480093, "Date": "12\/14\/2010", "Time": "05:09 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.135777, -88.043911 ], "Address": "6469 N 106TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.043911044289771, 43.135776701915859 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 291, "Incident Number": 103450079, "Date": "12\/11\/2010", "Time": "04:11 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.095828, -88.010501 ], "Address": "7816 W POTOMAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.010501309019759, 43.09582821593856 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 292, "Incident Number": 103440155, "Date": "12\/10\/2010", "Time": "09:31 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.099757, -88.023635 ], "Address": "8871 W PALMETTO AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023635105321418, 43.099756902299525 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 293, "Incident Number": 103420042, "Date": "12\/08\/2010", "Time": "07:42 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.112109, -88.041924 ], "Address": "10339 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.041923916180963, 43.112108538952349 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 294, "Incident Number": 103410014, "Date": "12\/07\/2010", "Time": "01:12 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.131797, -88.029823 ], "Address": "9442 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.029823062554328, 43.131796980610282 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 295, "Incident Number": 103410007, "Date": "12\/06\/2010", "Time": "11:53 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.136785, -88.036269 ], "Address": "9981 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.03626940772962, 43.136784650352524 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 296, "Incident Number": 103360060, "Date": "12\/02\/2010", "Time": "01:17 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.119217, -88.046196 ], "Address": "10709 W SILVER SPRING DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.046195647288926, 43.119216737441235 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 297, "Incident Number": 103360138, "Date": "12\/02\/2010", "Time": "08:41 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.138640, -88.038733 ], "Address": "10167 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.038733226995504, 43.138640294891061 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 298, "Incident Number": 103350007, "Date": "12\/01\/2010", "Time": "12:01 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.096096, -88.021261 ], "Address": "4345 N 87TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.021260595360218, 43.096095586733213 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 299, "Incident Number": 103350153, "Date": "12\/01\/2010", "Time": "08:59 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": "THEFT FROM MOTOR VEHICLE", "Location": [ 43.119491, -88.043611 ], "Address": "10500 W SILVER SPRING DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.043610860811356, 43.119490512118126 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 300, "Incident Number": 103650039, "Date": "12\/31\/2010", "Time": "07:26 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.084717, -87.942169 ], "Address": "2400 W NASH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.942168789793698, 43.084717169180792 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 301, "Incident Number": 103650097, "Date": "12\/31\/2010", "Time": "02:24 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.087266, -87.918404 ], "Address": "3866 N 6TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.918404440706581, 43.087265717179292 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 302, "Incident Number": 103640013, "Date": "12\/30\/2010", "Time": "03:21 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077886, -87.924885 ], "Address": "3256 N 11TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.924884502885533, 43.077885904524209 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 303, "Incident Number": 103630054, "Date": "12\/29\/2010", "Time": "09:47 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.086879, -87.937075 ], "Address": "3838 N 20TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.937075375209417, 43.086879220093493 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 304, "Incident Number": 103630058, "Date": "12\/29\/2010", "Time": "10:36 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071354, -87.916958 ], "Address": "2901 N 5TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.916958143112453, 43.07135383236195 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 305, "Incident Number": 103630142, "Date": "12\/29\/2010", "Time": "03:53 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.051869, -87.924263 ], "Address": "1620 N 10TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.924263049554511, 43.051869012762879 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 306, "Incident Number": 103630201, "Date": "12\/29\/2010", "Time": "11:34 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.064819, -87.914078 ], "Address": "2537 N MARTIN L KING JR DR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.914077603150503, 43.064819444630388 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 307, "Incident Number": 103620058, "Date": "12\/28\/2010", "Time": "12:48 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077791, -87.924960 ], "Address": "3251 N 11TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.924959537076418, 43.077791095475789 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 308, "Incident Number": 103620092, "Date": "12\/28\/2010", "Time": "03:48 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.080553, -87.922286 ], "Address": "3422 N 9TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.922286395300731, 43.080553097204486 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 309, "Incident Number": 103620134, "Date": "12\/28\/2010", "Time": "08:19 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079958, -87.907569 ], "Address": "3371 N RICHARDS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.907568592041997, 43.079958115182649 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 310, "Incident Number": 103610164, "Date": "12\/27\/2010", "Time": "09:47 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.086689, -87.914762 ], "Address": "3842 N 4TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.914762404639774, 43.086689077990656 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 311, "Incident Number": 103600028, "Date": "12\/26\/2010", "Time": "07:54 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072996, -87.909300 ], "Address": "200 E CHAMBERS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.909299748542907, 43.072996493219343 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 312, "Incident Number": 103600144, "Date": "12\/26\/2010", "Time": "11:33 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.069771, -87.907760 ], "Address": "2817 N RICHARDS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.907759562611645, 43.069770838190323 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 313, "Incident Number": 103600147, "Date": "12\/26\/2010", "Time": "10:49 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": "THEFT FROM MOTOR VEHICLE", "Location": [ 43.071282, -87.906434 ], "Address": "2906 N BUFFUM ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.906433854898097, 43.071282452308395 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 314, "Incident Number": 103580079, "Date": "12\/24\/2010", "Time": "01:55 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.059072, -87.906191 ], "Address": "412 E GARFIELD AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.906190887731555, 43.05907245657562 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 315, "Incident Number": 103580123, "Date": "12\/24\/2010", "Time": "07:11 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.081885, -87.934547 ], "Address": "3500 N TEUTONIA AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.934547010629998, 43.081884861729343 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 316, "Incident Number": 103560051, "Date": "12\/22\/2010", "Time": "11:16 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077041, -87.941200 ], "Address": "3201 N 23RD ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.941200120895445, 43.077040994171625 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 317, "Incident Number": 103550014, "Date": "12\/21\/2010", "Time": "05:19 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.048001, -87.921857 ], "Address": "818 W ESSEX LA", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "e_clusterK9": 3, "g_clusterK9": 7, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.921856924197115, 43.048000624025917 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 318, "Incident Number": 103550159, "Date": "12\/21\/2010", "Time": "10:13 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.060513, -87.912545 ], "Address": "2310 N 2ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.912544505929944, 43.060513030647115 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 319, "Incident Number": 103540105, "Date": "12\/20\/2010", "Time": "04:48 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.086708, -87.924679 ], "Address": "3803 N 11TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.924678650325802, 43.086707696087473 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 320, "Incident Number": 103540133, "Date": "12\/20\/2010", "Time": "05:33 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.084917, -87.929659 ], "Address": "3709 N 15TH ST #LOWER", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 2, "g_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.929659092042002, 43.084917031363602 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 321, "Incident Number": 103530109, "Date": "12\/19\/2010", "Time": "04:41 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.082559, -87.934505 ], "Address": "3536 N 19TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.934504879104551, 43.082558748542908 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 322, "Incident Number": 103520052, "Date": "12\/18\/2010", "Time": "12:39 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.088014, -87.937964 ], "Address": "3900 N TEUTONIA AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.937963681083843, 43.08801419401 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 323, "Incident Number": 103500093, "Date": "12\/16\/2010", "Time": "04:16 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.087356, -87.940906 ], "Address": "3858 N 23RD ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.94090636799605, 43.087356136274451 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 324, "Incident Number": 103490071, "Date": "12\/15\/2010", "Time": "03:26 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104356, -87.914396 ], "Address": "4802 N MOHAWK AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.91439636857298, 43.104356077990644 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 325, "Incident Number": 103490078, "Date": "12\/15\/2010", "Time": "04:12 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.088769, -87.929560 ], "Address": "3949 N 15TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.929559573720141, 43.088768947544565 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 326, "Incident Number": 103490093, "Date": "12\/15\/2010", "Time": "05:48 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.060398, -87.915660 ], "Address": "400 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.915660209052518, 43.060398209052529 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 327, "Incident Number": 103490121, "Date": "12\/15\/2010", "Time": "08:03 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.088014, -87.937964 ], "Address": "3900 N TEUTONIA AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.937963681083843, 43.08801419401 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 328, "Incident Number": 103480048, "Date": "12\/14\/2010", "Time": "10:58 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.076889, -87.908798 ], "Address": "3221 N PALMER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.908797632003953, 43.076888863725543 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 329, "Incident Number": 103480052, "Date": "12\/14\/2010", "Time": "11:20 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.089169, -87.906000 ], "Address": "401 E CAPITOL DR", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 4, "e_clusterK9": 3, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.906000069392306, 43.089168518899719 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 330, "Incident Number": 103470011, "Date": "12\/13\/2010", "Time": "08:12 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.073486, -87.918369 ], "Address": "3019 N 6TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.918368592042, 43.073486276992327 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 331, "Incident Number": 103470063, "Date": "12\/13\/2010", "Time": "02:15 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.089169, -87.906000 ], "Address": "401 E CAPITOL DR", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 4, "e_clusterK9": 3, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.906000069392306, 43.089168518899719 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 332, "Incident Number": 103470127, "Date": "12\/13\/2010", "Time": "07:50 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.082560, -87.938371 ], "Address": "3512 N 21ST ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.938370764651424, 43.082559846619866 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 333, "Incident Number": 103460048, "Date": "12\/12\/2010", "Time": "12:14 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071185, -87.911943 ], "Address": "138 W LOCUST ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.911943076605681, 43.071184507646045 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 334, "Incident Number": 103460054, "Date": "12\/12\/2010", "Time": "09:52 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.084656, -87.897455 ], "Address": "3736 N HUMBOLDT BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.897454907957993, 43.084656052455415 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 335, "Incident Number": 103450006, "Date": "12\/11\/2010", "Time": "12:44 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071353, -87.916981 ], "Address": "2905 N 5TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.916980980702021, 43.071353111008577 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 336, "Incident Number": 103440035, "Date": "12\/10\/2010", "Time": "10:51 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.085273, -87.895101 ], "Address": "1200 E SINGER CR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.895100860667128, 43.085273038865417 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 337, "Incident Number": 103440085, "Date": "12\/10\/2010", "Time": "03:05 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.093529, -87.921060 ], "Address": "4155 N PORT WASHINGTON AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 2, "g_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.921060013128638, 43.093529346153488 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 338, "Incident Number": 103430012, "Date": "12\/09\/2010", "Time": "02:59 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071822, -87.927485 ], "Address": "2918-A N 13TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.927484857464478, 43.071822 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 339, "Incident Number": 103430088, "Date": "12\/09\/2010", "Time": "03:35 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.080641, -87.940986 ], "Address": "3384 N 23RD ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.940986415171366, 43.080641161809694 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 340, "Incident Number": 103420033, "Date": "12\/08\/2010", "Time": "10:16 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.087833, -87.923366 ], "Address": "3908 N 10TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.923365886317924, 43.087833083819021 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 341, "Incident Number": 103420048, "Date": "12\/08\/2010", "Time": "12:30 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.050893, -87.922862 ], "Address": "1556 N 9TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.922862022001823, 43.050893308660648 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 342, "Incident Number": 103410085, "Date": "12\/07\/2010", "Time": "02:03 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.074727, -87.908233 ], "Address": "239 E BURLEIGH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.9082335, 43.074726539529244 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 343, "Incident Number": 103400112, "Date": "12\/06\/2010", "Time": "04:43 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.078807, -87.917750 ], "Address": "535 W CONCORDIA AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 4, "e_clusterK9": 3, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.917750025535227, 43.078807480668516 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 344, "Incident Number": 103390042, "Date": "12\/05\/2010", "Time": "10:00 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077303, -87.931098 ], "Address": "3223 N 16TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.931098117577221, 43.077302528449422 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 345, "Incident Number": 103390062, "Date": "12\/05\/2010", "Time": "11:59 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.080794, -87.928466 ], "Address": "3428 N 14TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.928465962923582, 43.080793658895487 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 346, "Incident Number": 103390076, "Date": "12\/05\/2010", "Time": "02:17 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075056, -87.931035 ], "Address": "3100 N 16TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.931035453117872, 43.075055643936324 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 347, "Incident Number": 103380096, "Date": "12\/04\/2010", "Time": "01:19 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.053821, -87.912342 ], "Address": "141 W VINE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.912342, 43.053821488458823 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 348, "Incident Number": 103380104, "Date": "12\/04\/2010", "Time": "06:34 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.083837, -87.934583 ], "Address": "3619 N 19TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.934583074706524, 43.083836713834501 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 349, "Incident Number": 103390001, "Date": "12\/04\/2010", "Time": "11:38 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.054799, -87.920834 ], "Address": "740 W RESERVOIR AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.92083363206315, 43.054798997743028 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 350, "Incident Number": 103370054, "Date": "12\/03\/2010", "Time": "10:16 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104097, -87.912824 ], "Address": "222 W HAMPTON AV", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "e_clusterK5": 2, "g_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 7, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.9128235, 43.104096511541201 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 351, "Incident Number": 103360035, "Date": "12\/02\/2010", "Time": "10:43 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079697, -87.924805 ], "Address": "3332 N 11TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.92480491185313, 43.079696884817366 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 352, "Incident Number": 103360098, "Date": "12\/02\/2010", "Time": "05:29 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.055894, -87.920085 ], "Address": "1957 N 7TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.920084879286861, 43.05589434280882 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 353, "Incident Number": 103360127, "Date": "12\/02\/2010", "Time": "08:37 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.073284, -87.913947 ], "Address": "3008 N MARTIN L KING JR DR", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.91394659533421, 43.073284228428264 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 354, "Incident Number": 103360128, "Date": "12\/02\/2010", "Time": "08:38 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.055173, -87.912311 ], "Address": "130 W RESERVOIR AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.9123105, 43.055172511541201 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 355, "Incident Number": 103350055, "Date": "12\/01\/2010", "Time": "12:12 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.088337, -87.940961 ], "Address": "3915 N 23RD ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.940961080933491, 43.088336947544576 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 356, "Incident Number": 103650120, "Date": "12\/31\/2010", "Time": "10:54 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.074612, -87.948569 ], "Address": "3053 N 28TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.948568632003955, 43.074612167638065 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 357, "Incident Number": 103640030, "Date": "12\/30\/2010", "Time": "09:09 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072695, -87.969846 ], "Address": "2950 N 45TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.969846386317911, 43.072695387731557 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 358, "Incident Number": 103640115, "Date": "12\/30\/2010", "Time": "05:38 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071776, -87.948546 ], "Address": "2904 N 28TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.948546393531274, 43.071776245628712 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 359, "Incident Number": 103630041, "Date": "12\/29\/2010", "Time": "09:02 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092594, -87.968512 ], "Address": "4143 N 44TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.968511635899091, 43.092593832361928 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 360, "Incident Number": 103630043, "Date": "12\/29\/2010", "Time": "09:10 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.082563, -87.970351 ], "Address": "4516 W KEEFE AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.970351080904834, 43.08256251875455 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 361, "Incident Number": 103620087, "Date": "12\/28\/2010", "Time": "02:40 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.080255, -87.975960 ], "Address": "3353 N 50TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.975960153644024, 43.080255335276121 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 362, "Incident Number": 103610090, "Date": "12\/27\/2010", "Time": "03:05 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.088355, -87.945702 ], "Address": "3910 N 26TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.945702371891201, 43.088354832361944 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 363, "Incident Number": 103600057, "Date": "12\/26\/2010", "Time": "01:21 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079670, -87.978478 ], "Address": "3317 N 52ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.9784775809335, 43.07967 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 364, "Incident Number": 103600077, "Date": "12\/26\/2010", "Time": "03:12 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.081011, -87.947114 ], "Address": "3388 N 27TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.947114419066494, 43.081011220093501 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 365, "Incident Number": 103610005, "Date": "12\/26\/2010", "Time": "11:28 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.099921, -87.965131 ], "Address": "4545 N 42ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.965131099255359, 43.099921005828378 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 366, "Incident Number": 103580049, "Date": "12\/24\/2010", "Time": "09:11 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.094329, -87.961721 ], "Address": "4249 N 39TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.961720801171211, 43.094328568151575 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 367, "Incident Number": 103570033, "Date": "12\/23\/2010", "Time": "08:42 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.096267, -87.961701 ], "Address": "4347 N 39TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.961700606468725, 43.0962667543713 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 368, "Incident Number": 103560095, "Date": "12\/22\/2010", "Time": "04:19 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.104602, -87.964213 ], "Address": "4109 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.9642135, 43.104601521207407 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 369, "Incident Number": 103550038, "Date": "12\/21\/2010", "Time": "09:34 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.083904, -87.970492 ], "Address": "4539 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.97049244950648, 43.083903657770328 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 370, "Incident Number": 103550045, "Date": "12\/21\/2010", "Time": "10:46 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.089779, -87.972543 ], "Address": "4705 W CAPITOL DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.972543167638065, 43.089779495672168 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 371, "Incident Number": 103550143, "Date": "12\/21\/2010", "Time": "07:55 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.068003, -87.966175 ], "Address": "4224 W CENTER ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.966174943744079, 43.06800321872042 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 372, "Incident Number": 103550148, "Date": "12\/21\/2010", "Time": "08:45 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.097533, -87.959274 ], "Address": "4414 N 37TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.959274042847483, 43.097533459893839 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 373, "Incident Number": 103540122, "Date": "12\/20\/2010", "Time": "05:34 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.087749, -87.951179 ], "Address": "3040 W HOPKINS ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.951178568854687, 43.087749120860195 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 374, "Incident Number": 103540157, "Date": "12\/20\/2010", "Time": "08:28 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.102772, -87.966686 ], "Address": "4700 N SHERMAN BL", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.9666863280341, 43.102772497085823 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 375, "Incident Number": 103520062, "Date": "12\/18\/2010", "Time": "02:06 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.083765, -87.984413 ], "Address": "3626 N 57TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.984413312108032, 43.083765194335925 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 376, "Incident Number": 103510001, "Date": "12\/17\/2010", "Time": "12:12 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072192, -87.950985 ], "Address": "2930 N 30TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.95098541517136, 43.072191555369614 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 377, "Incident Number": 103510038, "Date": "12\/17\/2010", "Time": "10:16 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.091733, -87.959524 ], "Address": "4101 N MONTREAL ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.959523885942545, 43.091732673033746 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 378, "Incident Number": 103510056, "Date": "12\/17\/2010", "Time": "12:44 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077231, -87.979646 ], "Address": "3202 N 53RD ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 4, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.97964589353127, 43.077230549541241 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 379, "Incident Number": 103500056, "Date": "12\/16\/2010", "Time": "11:44 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092413, -87.966913 ], "Address": "4134 N SHERMAN BL", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.966912864100905, 43.092413497085801 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 380, "Incident Number": 103480025, "Date": "12\/14\/2010", "Time": "06:54 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.081254, -87.963135 ], "Address": "3402 N 40TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.963134937388361, 43.081253884817357 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 381, "Incident Number": 103480044, "Date": "12\/14\/2010", "Time": "10:43 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092550, -87.965288 ], "Address": "4143 N 42ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.9652876031505, 43.092549586733213 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 382, "Incident Number": 103470059, "Date": "12\/13\/2010", "Time": "01:52 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.092315, -87.968424 ], "Address": "4128 N 44TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.968424407957997, 43.092315167638077 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 383, "Incident Number": 103460056, "Date": "12\/12\/2010", "Time": "01:57 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075237, -87.959934 ], "Address": "3700 W BURLEIGH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.959933832361941, 43.07523749321934 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 384, "Incident Number": 103450067, "Date": "12\/11\/2010", "Time": "02:02 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.095623, -87.972141 ], "Address": "4322 N 47TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.972141184555824, 43.095622534980826 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 385, "Incident Number": 103440154, "Date": "12\/10\/2010", "Time": "09:22 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079071, -87.957214 ], "Address": "3282 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 0, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.957214422241421, 43.079071115211306 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 386, "Incident Number": 103440156, "Date": "12\/10\/2010", "Time": "09:35 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.087076, -87.962093 ], "Address": "3850 N 39TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.96209342627985, 43.087076161809676 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 387, "Incident Number": 103450016, "Date": "12\/10\/2010", "Time": "11:32 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.081225, -87.959647 ], "Address": "3407 N 37TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.959646862731461, 43.081225498073046 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 388, "Incident Number": 103430054, "Date": "12\/09\/2010", "Time": "12:02 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072596, -87.949820 ], "Address": "2945 N 29TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 1, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.949819632003951, 43.072596419095163 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 389, "Incident Number": 103420119, "Date": "12\/08\/2010", "Time": "07:55 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.087990, -87.973722 ], "Address": "4834 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.973721891598032, 43.087989896214324 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 390, "Incident Number": 103420127, "Date": "12\/08\/2010", "Time": "07:36 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.071613, -87.963351 ], "Address": "4000 W LOCUST ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.96335061020136, 43.071612827616299 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 391, "Incident Number": 103410049, "Date": "12\/07\/2010", "Time": "10:46 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.072092, -87.972368 ], "Address": "2925 N 47TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.972368095360224, 43.072092167638061 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 392, "Incident Number": 103400017, "Date": "12\/06\/2010", "Time": "04:11 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.085508, -87.972502 ], "Address": "4709 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.972501550118153, 43.085508078250442 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 393, "Incident Number": 103400141, "Date": "12\/06\/2010", "Time": "07:32 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075293, -87.963333 ], "Address": "4000 W BURLEIGH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.963333227991399, 43.075293227991409 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 394, "Incident Number": 103380020, "Date": "12\/04\/2010", "Time": "02:27 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.079298, -87.962521 ], "Address": "3910 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 5, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.962521453776986, 43.079297928962909 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 395, "Incident Number": 103380032, "Date": "12\/04\/2010", "Time": "04:30 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.089714, -87.961167 ], "Address": "3831 W CAPITOL DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 5, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.961167341496122, 43.089713800631834 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 396, "Incident Number": 103370048, "Date": "12\/03\/2010", "Time": "12:15 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.075302, -87.947322 ], "Address": "2700 W BURLEIGH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 3, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947322228002847, 43.075302228002833 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 397, "Incident Number": 103370095, "Date": "12\/03\/2010", "Time": "04:47 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077536, -87.950894 ], "Address": "3220 N 30TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 2, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.950894419066501, 43.077536329447753 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 398, "Incident Number": 103360157, "Date": "12\/02\/2010", "Time": "10:53 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.074244, -87.957358 ], "Address": "3039 N 35TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 2, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.957358106468718, 43.074243586733218 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 399, "Incident Number": 103350021, "Date": "12\/01\/2010", "Time": "03:34 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.077717, -87.968564 ], "Address": "3234 N 44TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 0, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.968563907958, 43.077716884817363 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 400, "Incident Number": 103650050, "Date": "12\/31\/2010", "Time": "09:41 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.014136, -87.953752 ], "Address": "3134 W LAPHAM ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.953751974464765, 43.014135518754564 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 401, "Incident Number": 103650131, "Date": "12\/31\/2010", "Time": "05:45 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.010263, -87.938980 ], "Address": "2117 W BURNHAM ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.938980197068418, 43.010262546742609 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 402, "Incident Number": 103640029, "Date": "12\/30\/2010", "Time": "08:47 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.024220, -87.939460 ], "Address": "2100 W PIERCE ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.939460430607681, 43.024219516590179 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 403, "Incident Number": 103640034, "Date": "12\/30\/2010", "Time": "09:14 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.019388, -87.958823 ], "Address": "1118 S 36TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.958823440706581, 43.019388 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 404, "Incident Number": 103640037, "Date": "12\/30\/2010", "Time": "09:07 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.006595, -87.940381 ], "Address": "2121 W BECHER ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.940380776992313, 43.006594506780679 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 405, "Incident Number": 103630084, "Date": "12\/29\/2010", "Time": "01:00 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.026138, -87.947858 ], "Address": "555 S LAYTON BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.947858125944421, 43.026138 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 406, "Incident Number": 103630114, "Date": "12\/29\/2010", "Time": "03:37 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.007408, -87.952824 ], "Address": "2048 S 31ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.952823944601718, 43.007407826533552 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 407, "Incident Number": 103610021, "Date": "12\/27\/2010", "Time": "07:16 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.021512, -87.940859 ], "Address": "911 S 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.94085861757722, 43.02151241909516 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 408, "Incident Number": 103610147, "Date": "12\/27\/2010", "Time": "09:12 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.995567, -87.975271 ], "Address": "4901 W CLEVELAND AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.975271054979501, 42.99556730868381 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 409, "Incident Number": 103600019, "Date": "12\/26\/2010", "Time": "01:42 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.026138, -87.947858 ], "Address": "555 S LAYTON BL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.947858125944421, 43.026138 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 410, "Incident Number": 103590053, "Date": "12\/25\/2010", "Time": "02:02 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.018737, -87.955192 ], "Address": "1217 S 33RD ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.955192348185989, 43.01873723625453 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 411, "Incident Number": 103570068, "Date": "12\/23\/2010", "Time": "11:42 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.012358, -87.938942 ], "Address": "2021 W MITCHELL ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.938941919095157, 43.012357513994033 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 412, "Incident Number": 103570093, "Date": "12\/23\/2010", "Time": "01:29 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.996564, -87.950588 ], "Address": "2649 S 29TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.950587533758195, 42.996564419095165 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 413, "Incident Number": 103560066, "Date": "12\/22\/2010", "Time": "09:48 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.006330, -87.956719 ], "Address": "2109 S 34TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.95671858814687, 43.006330142102854 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 414, "Incident Number": 103560077, "Date": "12\/22\/2010", "Time": "02:36 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.989265, -87.974033 ], "Address": "3042 S 48TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.974033419066501, 42.989265136274469 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 415, "Incident Number": 103540142, "Date": "12\/20\/2010", "Time": "07:08 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.993948, -87.951772 ], "Address": "3031 W MONTANA ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.951772262969627, 42.993947520053553 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 416, "Incident Number": 103540162, "Date": "12\/20\/2010", "Time": "08:43 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.988724, -87.960465 ], "Address": "3068 S 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.960464925702937, 42.988724077990668 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 417, "Incident Number": 103540170, "Date": "12\/20\/2010", "Time": "09:12 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.013205, -87.952775 ], "Address": "1655 S 31ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.952775049815813, 43.013204573862239 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 418, "Incident Number": 103540191, "Date": "12\/20\/2010", "Time": "11:53 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.017723, -87.951423 ], "Address": "1300 S 30TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.951423386317913, 43.017723335276116 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 419, "Incident Number": 103530069, "Date": "12\/19\/2010", "Time": "11:39 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.018957, -87.954184 ], "Address": "3205 W SCOTT ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.954183723007674, 43.018957499567321 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 420, "Incident Number": 103500048, "Date": "12\/16\/2010", "Time": "11:27 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.005736, -87.951718 ], "Address": "2141 S 30TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.951717573720146, 43.005736393559943 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 421, "Incident Number": 103490090, "Date": "12\/15\/2010", "Time": "05:25 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.012501, -87.942340 ], "Address": "2300 W MITCHELL ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.942339660213861, 43.012501113637008 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 422, "Incident Number": 103480001, "Date": "12\/14\/2010", "Time": "12:01 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.016020, -87.940363 ], "Address": "2124 W ORCHARD ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.94036333236194, 43.016020478792619 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 423, "Incident Number": 103460027, "Date": "12\/12\/2010", "Time": "03:46 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 42.987089, -87.950659 ], "Address": "3163 S 29TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.950659015436329, 42.987088561197993 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 424, "Incident Number": 103450049, "Date": "12\/11\/2010", "Time": "11:14 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.017728, -87.952752 ], "Address": "3101 W MADISON ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.952751664723877, 43.017728481245449 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 425, "Incident Number": 103440031, "Date": "12\/10\/2010", "Time": "10:39 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.008628, -87.950496 ], "Address": "2900 W ROGERS ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.950496301209483, 43.008628417412609 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 426, "Incident Number": 103420032, "Date": "12\/08\/2010", "Time": "10:12 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.004349, -87.949309 ], "Address": "2223 S 28TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.949308580933504, 43.004348832361927 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 427, "Incident Number": 103410068, "Date": "12\/07\/2010", "Time": "12:29 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.022539, -87.943659 ], "Address": "2400 W NATIONAL AV", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.943659412245012, 43.022538800995626 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 428, "Incident Number": 103410123, "Date": "12\/07\/2010", "Time": "06:07 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.018002, -87.944943 ], "Address": "1300 S 25TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.944943386317917, 43.018002335276122 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 429, "Incident Number": 103380060, "Date": "12\/04\/2010", "Time": "12:01 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.020918, -87.956334 ], "Address": "930 S 34TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.956333944601724, 43.020917916180963 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 430, "Incident Number": 103370020, "Date": "12\/03\/2010", "Time": "07:23 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.019034, -87.959460 ], "Address": "3650 W SCOTT ST", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.959459546238676, 43.019033980221216 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 431, "Incident Number": 103370036, "Date": "12\/03\/2010", "Time": "10:21 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.019872, -87.961616 ], "Address": "3798 W FREDERICA PL", "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 8, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.961615765830913, 43.019871576815902 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 432, "Incident Number": 103650102, "Date": "12\/31\/2010", "Time": "03:36 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.165957, -88.044544 ], "Address": "8149 N 107TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.04454351610319, 43.165956606069358 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 433, "Incident Number": 103630068, "Date": "12\/29\/2010", "Time": "11:13 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.134269, -88.005957 ], "Address": "6401 N 76TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.005957307231853, 43.134268865162376 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 434, "Incident Number": 103570024, "Date": "12\/23\/2010", "Time": "08:05 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.136585, -87.984442 ], "Address": "6534 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 5, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.984442356310623, 43.136584742714518 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 435, "Incident Number": 103560052, "Date": "12\/22\/2010", "Time": "11:47 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.147205, -87.985464 ], "Address": "7100 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.985463877950721, 43.147205245628726 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 436, "Incident Number": 103550056, "Date": "12\/21\/2010", "Time": "12:03 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.177660, -88.012287 ], "Address": "8247 W BROWN DEER RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.012286734444274, 43.177660061822003 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 437, "Incident Number": 103550058, "Date": "12\/21\/2010", "Time": "12:05 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.128080, -87.988841 ], "Address": "6220 W KAUL AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.988841413266769, 43.128080453257382 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 438, "Incident Number": 103540068, "Date": "12\/20\/2010", "Time": "12:30 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.158515, -87.988547 ], "Address": "6266 W PORT AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.98854682915929, 43.158515007501826 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 439, "Incident Number": 103520081, "Date": "12\/18\/2010", "Time": "04:39 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.177830, -88.026653 ], "Address": "9304 W BROWN DEER RD #6", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.026653284205679, 43.17782950822297 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 440, "Incident Number": 103510014, "Date": "12\/17\/2010", "Time": "06:02 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.172704, -88.008749 ], "Address": "8516 N SERVITE DR", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.00874880653825, 43.172704212908776 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 441, "Incident Number": 103510075, "Date": "12\/17\/2010", "Time": "03:10 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.156119, -88.004311 ], "Address": "7550 W CALUMET RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.004311156821259, 43.156119143325348 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 442, "Incident Number": 103490063, "Date": "12\/15\/2010", "Time": "02:39 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.134176, -88.000250 ], "Address": "7102 W MILL RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.000250223007683, 43.134176460470748 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 443, "Incident Number": 103470016, "Date": "12\/13\/2010", "Time": "08:07 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.158729, -87.985814 ], "Address": "6056 W PORT AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.985813835276119, 43.1587294565756 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 444, "Incident Number": 103440101, "Date": "12\/10\/2010", "Time": "04:07 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.177608, -88.023010 ], "Address": "8975 W BROWN DEER RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023010248542903, 43.177607531738985 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 445, "Incident Number": 103430055, "Date": "12\/09\/2010", "Time": "12:24 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.183477, -88.015552 ], "Address": "9089 N 85TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.015551544866696, 43.183477456287136 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 446, "Incident Number": 103420050, "Date": "12\/08\/2010", "Time": "12:36 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.177608, -88.023010 ], "Address": "8975 W BROWN DEER RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023010248542903, 43.177607531738985 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 447, "Incident Number": 103420051, "Date": "12\/08\/2010", "Time": "12:36 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.177608, -88.023010 ], "Address": "8975 W BROWN DEER RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.023010248542903, 43.177607531738985 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 448, "Incident Number": 103410006, "Date": "12\/07\/2010", "Time": "01:01 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.134972, -87.996442 ], "Address": "6805 W BRENTWOOD AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.996441693173281, 43.134971502885534 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 449, "Incident Number": 103410025, "Date": "12\/07\/2010", "Time": "07:06 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.138431, -88.006495 ], "Address": "6626 N 77TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.006494842460825, 43.138430968636385 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 450, "Incident Number": 103410154, "Date": "12\/07\/2010", "Time": "09:27 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.152638, -88.024662 ], "Address": "9009 W DOGWOOD ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.024662, 43.15263848124544 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 451, "Incident Number": 103390024, "Date": "12\/05\/2010", "Time": "04:55 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.150553, -88.018163 ], "Address": "7306 N 86TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.01816349679234, 43.150553106007223 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 452, "Incident Number": 103380014, "Date": "12\/04\/2010", "Time": "02:10 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.148832, -88.018023 ], "Address": "8604 W GOOD HOPE RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -88.018023326058611, 43.148832321708269 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 454, "Incident Number": 103350118, "Date": "12\/01\/2010", "Time": "06:08 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.117170, -87.988847 ], "Address": "6225 W BIRCH AV", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.988846623445156, 43.117169633600462 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 455, "Incident Number": 103350170, "Date": "12\/01\/2010", "Time": "10:27 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Location": [ 43.134146, -87.997063 ], "Address": "6902 W MILL RD", "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 4, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.997063416180964, 43.134145500432695 ] } } ] }
import concat from './concat' import empty from './empty' import foldRight from './uncurried/foldRight' import head from './head' import mempty from './internal/mempty' import prepend from './prepend' import pure from './internal/pure' import tail from './tail' /** * Calculates the subsequences of a list. * * @param {Array|String} as The list. * @returns {Array} A list that contains all the subsequences of the elements * in the list of `as`. * @example * * import { subsequences } from 'fkit' * subsequences([1, 2, 3]) // [[], [1], [2], [1, 2], [3], [1, 3], [2, 3], [1, 2, 3]] * subsequences('abc') // ['', 'a', 'b', 'ab', 'c', 'ac', 'bc', 'abc'] */ export default function subsequences (as) { const subsequences_ = bs => { const b = head(bs) const f = (ys, r) => concat(pure(ys), pure(prepend(b, ys)), r) if (empty(bs)) { return [] } else { return prepend(pure(b), foldRight(f, [], subsequences_(tail(bs)))) } } return prepend(mempty(as), subsequences_(as)) }
'use strict';var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var globalScope; if (typeof window === 'undefined') { if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) { // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492 globalScope = self; } else { globalScope = global; } } else { globalScope = window; } ; // Need to declare a new variable for global here since TypeScript // exports the original value of the symbol. var _global = globalScope; exports.global = _global; exports.Type = Function; function getTypeNameForDebugging(type) { return type['name']; } exports.getTypeNameForDebugging = getTypeNameForDebugging; exports.Math = _global.Math; exports.Date = _global.Date; function assertionsEnabled() { return false; } exports.assertionsEnabled = assertionsEnabled; // TODO: remove calls to assert in production environment // Note: Can't just export this and import in in other files // as `assert` is a reserved keyword in Dart _global.assert = function assert(condition) { // TODO: to be fixed properly via #2830, noop for now }; // This function is needed only to properly support Dart's const expressions // see https://github.com/angular/ts2dart/pull/151 for more info function CONST_EXPR(expr) { return expr; } exports.CONST_EXPR = CONST_EXPR; function CONST() { return function (target) { return target; }; } exports.CONST = CONST; function isPresent(obj) { return obj !== undefined && obj !== null; } exports.isPresent = isPresent; function isBlank(obj) { return obj === undefined || obj === null; } exports.isBlank = isBlank; function isString(obj) { return typeof obj === "string"; } exports.isString = isString; function isFunction(obj) { return typeof obj === "function"; } exports.isFunction = isFunction; function isType(obj) { return isFunction(obj); } exports.isType = isType; function isStringMap(obj) { return typeof obj === 'object' && obj !== null; } exports.isStringMap = isStringMap; function isPromise(obj) { return obj instanceof _global.Promise; } exports.isPromise = isPromise; function isArray(obj) { return Array.isArray(obj); } exports.isArray = isArray; function isNumber(obj) { return typeof obj === 'number'; } exports.isNumber = isNumber; function isDate(obj) { return obj instanceof exports.Date && !isNaN(obj.valueOf()); } exports.isDate = isDate; function stringify(token) { if (typeof token === 'string') { return token; } if (token === undefined || token === null) { return '' + token; } if (token.name) { return token.name; } var res = token.toString(); var newLineIndex = res.indexOf("\n"); return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); } exports.stringify = stringify; // serialize / deserialize enum exist only for consistency with dart API // enums in typescript don't need to be serialized function serializeEnum(val) { return val; } exports.serializeEnum = serializeEnum; function deserializeEnum(val, values) { return val; } exports.deserializeEnum = deserializeEnum; var StringWrapper = (function () { function StringWrapper() { } StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); }; StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); }; StringWrapper.split = function (s, regExp) { return s.split(regExp); }; StringWrapper.equals = function (s, s2) { return s === s2; }; StringWrapper.replace = function (s, from, replace) { return s.replace(from, replace); }; StringWrapper.replaceAll = function (s, from, replace) { return s.replace(from, replace); }; StringWrapper.slice = function (s, from, to) { if (from === void 0) { from = 0; } if (to === void 0) { to = null; } return s.slice(from, to === null ? undefined : to); }; StringWrapper.toUpperCase = function (s) { return s.toUpperCase(); }; StringWrapper.toLowerCase = function (s) { return s.toLowerCase(); }; StringWrapper.startsWith = function (s, start) { return s.startsWith(start); }; StringWrapper.substring = function (s, start, end) { if (end === void 0) { end = null; } return s.substring(start, end === null ? undefined : end); }; StringWrapper.replaceAllMapped = function (s, from, cb) { return s.replace(from, function () { var matches = []; for (var _i = 0; _i < arguments.length; _i++) { matches[_i - 0] = arguments[_i]; } // Remove offset & string from the result array matches.splice(-2, 2); // The callback receives match, p1, ..., pn return cb(matches); }); }; StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; }; StringWrapper.compare = function (a, b) { if (a < b) { return -1; } else if (a > b) { return 1; } else { return 0; } }; return StringWrapper; })(); exports.StringWrapper = StringWrapper; var StringJoiner = (function () { function StringJoiner(parts) { if (parts === void 0) { parts = []; } this.parts = parts; } StringJoiner.prototype.add = function (part) { this.parts.push(part); }; StringJoiner.prototype.toString = function () { return this.parts.join(""); }; return StringJoiner; })(); exports.StringJoiner = StringJoiner; var NumberParseError = (function (_super) { __extends(NumberParseError, _super); function NumberParseError(message) { _super.call(this); this.message = message; } NumberParseError.prototype.toString = function () { return this.message; }; return NumberParseError; })(Error); exports.NumberParseError = NumberParseError; var NumberWrapper = (function () { function NumberWrapper() { } NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); }; NumberWrapper.equal = function (a, b) { return a === b; }; NumberWrapper.parseIntAutoRadix = function (text) { var result = parseInt(text); if (isNaN(result)) { throw new NumberParseError("Invalid integer literal when parsing " + text); } return result; }; NumberWrapper.parseInt = function (text, radix) { if (radix == 10) { if (/^(\-|\+)?[0-9]+$/.test(text)) { return parseInt(text, radix); } } else if (radix == 16) { if (/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(text)) { return parseInt(text, radix); } } else { var result = parseInt(text, radix); if (!isNaN(result)) { return result; } } throw new NumberParseError("Invalid integer literal when parsing " + text + " in base " + radix); }; // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error. NumberWrapper.parseFloat = function (text) { return parseFloat(text); }; Object.defineProperty(NumberWrapper, "NaN", { get: function () { return NaN; }, enumerable: true, configurable: true }); NumberWrapper.isNaN = function (value) { return isNaN(value); }; NumberWrapper.isInteger = function (value) { return Number.isInteger(value); }; return NumberWrapper; })(); exports.NumberWrapper = NumberWrapper; exports.RegExp = _global.RegExp; var RegExpWrapper = (function () { function RegExpWrapper() { } RegExpWrapper.create = function (regExpStr, flags) { if (flags === void 0) { flags = ''; } flags = flags.replace(/g/g, ''); return new _global.RegExp(regExpStr, flags + 'g'); }; RegExpWrapper.firstMatch = function (regExp, input) { // Reset multimatch regex state regExp.lastIndex = 0; return regExp.exec(input); }; RegExpWrapper.test = function (regExp, input) { regExp.lastIndex = 0; return regExp.test(input); }; RegExpWrapper.matcher = function (regExp, input) { // Reset regex state for the case // someone did not loop over all matches // last time. regExp.lastIndex = 0; return { re: regExp, input: input }; }; return RegExpWrapper; })(); exports.RegExpWrapper = RegExpWrapper; var RegExpMatcherWrapper = (function () { function RegExpMatcherWrapper() { } RegExpMatcherWrapper.next = function (matcher) { return matcher.re.exec(matcher.input); }; return RegExpMatcherWrapper; })(); exports.RegExpMatcherWrapper = RegExpMatcherWrapper; var FunctionWrapper = (function () { function FunctionWrapper() { } FunctionWrapper.apply = function (fn, posArgs) { return fn.apply(null, posArgs); }; return FunctionWrapper; })(); exports.FunctionWrapper = FunctionWrapper; // JS has NaN !== NaN function looseIdentical(a, b) { return a === b || typeof a === "number" && typeof b === "number" && isNaN(a) && isNaN(b); } exports.looseIdentical = looseIdentical; // JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise) // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map function getMapKey(value) { return value; } exports.getMapKey = getMapKey; function normalizeBlank(obj) { return isBlank(obj) ? null : obj; } exports.normalizeBlank = normalizeBlank; function normalizeBool(obj) { return isBlank(obj) ? false : obj; } exports.normalizeBool = normalizeBool; function isJsObject(o) { return o !== null && (typeof o === "function" || typeof o === "object"); } exports.isJsObject = isJsObject; function print(obj) { console.log(obj); } exports.print = print; // Can't be all uppercase as our transpiler would think it is a special directive... var Json = (function () { function Json() { } Json.parse = function (s) { return _global.JSON.parse(s); }; Json.stringify = function (data) { // Dart doesn't take 3 arguments return _global.JSON.stringify(data, null, 2); }; return Json; })(); exports.Json = Json; var DateWrapper = (function () { function DateWrapper() { } DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) { if (month === void 0) { month = 1; } if (day === void 0) { day = 1; } if (hour === void 0) { hour = 0; } if (minutes === void 0) { minutes = 0; } if (seconds === void 0) { seconds = 0; } if (milliseconds === void 0) { milliseconds = 0; } return new exports.Date(year, month - 1, day, hour, minutes, seconds, milliseconds); }; DateWrapper.fromISOString = function (str) { return new exports.Date(str); }; DateWrapper.fromMillis = function (ms) { return new exports.Date(ms); }; DateWrapper.toMillis = function (date) { return date.getTime(); }; DateWrapper.now = function () { return new exports.Date(); }; DateWrapper.toJson = function (date) { return date.toJSON(); }; return DateWrapper; })(); exports.DateWrapper = DateWrapper; function setValueOnPath(global, path, value) { var parts = path.split('.'); var obj = global; while (parts.length > 1) { var name = parts.shift(); if (obj.hasOwnProperty(name)) { obj = obj[name]; } else { obj = obj[name] = {}; } } if (obj === undefined || obj === null) { obj = {}; } obj[parts.shift()] = value; } exports.setValueOnPath = setValueOnPath; var _symbolIterator = null; function getSymbolIterator() { if (isBlank(_symbolIterator)) { if (isPresent(Symbol) && isPresent(Symbol.iterator)) { _symbolIterator = Symbol.iterator; } else { // es6-shim specific logic var keys = Object.getOwnPropertyNames(Map.prototype); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; if (key !== 'entries' && key !== 'size' && Map.prototype[key] === Map.prototype['entries']) { _symbolIterator = key; } } } } return _symbolIterator; } exports.getSymbolIterator = getSymbolIterator; //# sourceMappingURL=lang.js.map
'use strict'; var _vue = require('vue'); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } //import App from './components/App.vue' //import Home from './components/Home.vue' //import Users from './components/Users.vue' //import VueRouter from 'vue-router' //import VueResource from 'vue-resource' //Vue.use(VueResource) //Vue.use(VueRouter) var router = new VueRouter(); // Pointing routes to the components they should use router.map({ '/home': { component: Home }, 'users': { component: Users } }); // Any invalid route will redirect to home router.redirect({ '*': '/home' }); router.start(App, '#app');
app.service('SortingService', function () { var registerSorted = false; var registerSwapped = false; var comparing = { block1: null, block2: null } var swapping = { block1: null, block2: null } var innerComplete = false; // takes in a register and returns a register sorted according to the accompanying arguments this.sort = function(register, params){ var sortedRegister = register; // console.log(params[1]); if(params){ var sortType = params[0]; var position = params[1]; var swapped = params[2]; var depth = params[3]; if(sortType == 'bubbleSort'){ sortedRegister = this.bubbleSort(register, position, swapped); } if(sortType == 'selectionSort'){ sortedRegister = this.selectionSort(register, position, depth ); } } return sortedRegister; }; this.bubbleSort = function(register, position, swapped, depth){ var swapped, position, register; do { this.setRegisterSwapped(false); for (var position=0; position < register.length-1; position++) { if (register[position] > register[position+1]) { var temp = register[position]; register[position] = register[position+1]; register[position+1] = temp; this.setRegisterSwapped(true); } } } while (this.getRegisterSwapped === true); return register; } this.selectionSort = function(register,position, depth){ function swap(items, firstIndex, secondIndex){ var mytemp = items[0].values[firstIndex]; items[0].values[firstIndex] = items[0].values[secondIndex]; items[0].values[secondIndex] = mytemp; return items[0]; } if(comparing.block1 === null ){ //first of a new pass var items = register; var len = items[0].values.length, min; for (i=position; i < len; i++){ //array is sorted if(i===(len-1)){ registerSorted = true; return; } //set minimum to this position min = i; } }else{ //check the rest of the array to see if anything is smaller for (j=i+1; j < len; j++){ if (items[0].values[j] < items[0].values[min]){ if(depth === 'full'){ this.setSwapping(null, null); this.setComparing(i, j); } min = j; return items; } } //if the minimum isn't in the position, swap it if (i != min){ if(depth === 'full'){ this.setComparing(null, null); this.setSwapping(i, min); } swap(items, i, min); this.setInnerComplete(true); this.setComparing(null, null); this.setSwapping(null, null); } return items; // return items; //return after each step } // items.sorted = true; // return items; } this.getRegisterSorted = function(){ return registerSorted; } this.resetRegisterSorted = function(){ registerSorted = false; } this.getRegisterSwapped = function(){ return registerSwapped; } this.setRegisterSwapped = function(value){ registerSwapped = value; } this.getComparing = function(){ return comparing; } this.setComparing = function(block1, block2){ comparing.block1 = block1; comparing.block2 = block2; } this.getSwapping = function(){ return comparing; } this.setSwapping = function(block1, block2){ comparing.block1 = block1; comparing.block2 = block2; } this.getInnerComplete = function(){ return innerComplete; } this.setInnerComplete = function(value){ innerComplete = value; } });
(function () { 'use strict'; angular.module('socialbook') .controller('friendsListController', ['friendsListService', controller]) .directive('friendsList', directive); function directive() { return { restrict: 'EA', templateUrl: 'app/friends-list/friends-list.tmpl.html', scope: {}, controller: 'friendsListController', controllerAs: 'friendsList' }; } function controller(friendsListService) { var vm = this; // Properties vm.friends = []; // Methods // Init init(); // Helpers function init() { friendsListService.getFriends() .then(function (response) { vm.friends = response.data; }); } } })();
var test = require('tape'); var util = require('../lib/util.js'); var fs = require('fs'); var _ = require('lodash'); test('it should test runCommands', (tape) => { test('it should create temp file', (assert) => { util.runCommands('touch /tmp/test', function(err) { if (err) { tape.fail(err); } fs.stat('/tmp/test', function(err, stat) { if (err) { tape.fail(err); } else if(stat.isFile()) { tape.pass(); } else tape.fail('file not created'); assert.end(); }); }); }); test('it should log command in console', (assert) => { util.runCommands('ls', (err) => { if (err) { assert.fail(err); } else assert.pass(); assert.end(); }) }); test('it should fail on bad command', (assert) => { util.runCommands('fake_crap', (err) => { if (err) { assert.pass('failed with error') } assert.end(); }); }); test('it should end it all', (assert) => { assert.pass('done all'); assert.end(); }); tape.end(); }); test('it should test runFile', (tape) => { test('it should run local file', (assert) => { util.runFile('tests/test.sh', function(err) { if (err) { assert.fail(err); } else assert.pass('file run successfully'); assert.end(); }) }); test('it should take not take incorrect path', (assert) => { util.runFile('tests/fake/test.sh', function(err) { if (err) { assert.pass('file failed for incorrect path'); } assert.end(); }) }); test('it should remove opening slash', (assert) => { util.runFile('/tests/test.sh', function(err) { if (err) { assert.fail(err); } assert.end(); }) }); test('it should not accept a directory', (assert) => { util.runFile('tests/', function(err) { if (err) { assert.pass('does not accept a directory'); } assert.end(); }); }); test('it should not run a file outside directory', (assert) => { util.runFile('/etc/vim/vimrc', function(err) { if (err) { assert.pass(err); } assert.end(); }); }); tape.end(); }); test('it should test readFolder', (tape) => { var gitFiles = ['branches', 'COMMIT_EDITMSG', 'config', 'description', 'FETCH_HEAD', 'HEAD', 'hooks', 'index', 'info', 'logs', 'objects', 'refs']; test('it should read all files within folder', (assert) => { util.readFolder('.git', function(err, files) { if (err) { assert.fail(err); } assert.equal(gitFiles.length, files.length, 'git folder length matches'); assert.end(); }); }); test('it should return correct types of file', (assert) => { util.readFolder('.git', function(err, files) { if (err) { assert.fail(err); } var branchFileObj = _.find(gitFiles, {name: 'branches'}); var fetchFileObj = _.find(gitFiles, {name: 'FETCH_HEAD'}); assert.doesNotEqual(branchFileObj, null, 'found branches folder'); assert.doesNotEqual(fetchFileObj, null, 'found fetch file folder'); if (branchFileObj && fetchFileObj) { assert.equal(branchFileObj.type, 'folder', 'branches folder type matches'); assert.equal(fetchFileObj.type, 'file', 'fetch file type matches'); } assert.end(); }); }); test('it should not allow viewing of folders by absolue path', (assert) => { util.readFolder('/var/www', function(err) { assert.ok(err, 'gives error on absolute path files'); assert.end(); }); }); tape.end(); }); test('it should test symlinkFile', (tape) => { test('it should should symlink a file', (assert) => { util.symlinkFile('package.json', '/tmp/.tmp', function(err) { if (err) { assert.fail(err); } fs.lstat('/tmp/.tmp', function(err, stats) { if (err) { assert.fail(err); } assert.ok(stats.isSymbolicLink(), 'creates symbolic link'); fs.unlinkSync('/tmp/.tmp'); assert.end(); }); }); }); test('it should not symlink files given by absolute path', (assert) => { util.symlinkFile('/tmp/tmp', '/tmp/.tmp', function(err) { assert.ok(err, 'successfully failed on absolute path symlink'); assert.end(); }); }); tape.end(); }); test('it should test readModuleFile', (tape) => { var utilTestFolder = 'tests/util-tests'; test('it should return empty object for fake path', (assert) => { var fakePath = utilTestFolder + '/module-fake.json'; util.readModuleFile(fakePath, function(err, moduleConfig) { if (err) { assert.fail(err); } else { assert.deepEqual(moduleConfig, {}); } assert.end(); }); }); test('it should return the json object for correct path', (assert) => { var realPath = utilTestFolder + '/module.json'; util.readModuleFile(realPath, function(err, moduleConfig) { if (err) { assert.fail(err); } else { assert.deepEqual(moduleConfig, { "install": "echo 'first'> /tmp/dotfiles/indexcycle.txt", "initialize": "echo 'second'> /tmp/dotfiles/indexcycle.txt", "configure": "echo 'third'> /tmp/dotfiles/indexcycle.txt", }); } assert.end(); }); }); tape.end(); });
'use strict'; var path = require('path'); var fs = require('fs'); var join = require('path').join; var format = require('util').format; var Package = require('father').SpmPackage; var glob = require('glob'); var semver = require('semver'); var util = module.exports = {}; util.template = function(format, data) { if (!format) return ''; return format.replace(/{{([a-z]*)}}/g, function(all, match) { return data[match] || ''; }); }; util.isRelative = function(filepath) { return filepath.charAt(0) === '.'; }; util.define = function(id, str) { if (!str) { str = id; id = ''; } id = id ? '\'' + id.replace(/\.js$/, '') + '\', ' : ''; return format('define(%sfunction(require, exports, module){\n%s\n});\n', id, String(str)); }; /** * getPkg with lastmodified cache. */ var pkgCache = {}; util.getPackage = function(root) { var file = join(root, 'package.json'); if (!fs.existsSync(file)) { return null; } var mtime = +new Date(fs.statSync(file).mtime); var data = pkgCache[root]; if (!data || data.mtime !== mtime) { var pkg; try { pkg = new Package(root, { moduleDir: getModuleDir(root) }); } catch(e) { console.log('pkg parse error: %s', e); return null; } data = pkgCache[root] = { mtime: mtime, pkg: pkg }; } return data.pkg; }; function getModuleDir(root) { return fs.existsSync(join(root, 'spm_modules')) ? 'spm_modules' : 'sea-modules'; } util.isCSSFile = function(file) { return ['.css', '.less', '.styl', '.sass', '.scss'] .indexOf(path.extname(file)) > -1; }; util.getModifiedTime = function getModifiedTime(file) { var ftime = mtime(file.path); var ptime = mtime(join(file.base, 'package.json')); return Math.max(ftime, ptime); function mtime(filepath) { if (fs.existsSync(filepath)) { return new Date(fs.statSync(filepath).mtime); } else { return 0; } } }; util.isModified = function(headers, modifiedTime) { if (!headers || !headers['if-modified-since']) { return true; } return modifiedTime > +new Date(+headers['if-modified-since']); }; util.isStandalone = function(file) { if (path.extname(file.path) !== '.js') { return false; } var pkg = file.pkg; var buildArgs = (pkg.origin.spm && pkg.origin.spm.buildArgs) || ''; if (['standalone', 'umd'].indexOf(buildArgs.include) === -1) { return false; } var entries = getEntries(pkg); return entries.indexOf(file.path) > -1; }; util.matchNameVersion = function(pathname) { var m = pathname.match(/^\/(.+?)\/(.+?)\/(.*)/); if (m && m[0] && semver.valid(m[2])) { return { name: m[1], version: m[2], file: m[3] }; } }; function getEntries(pkg) { var entries = []; // main entries.push(join(pkg.dest, pkg.main)); // outputs pkg.output.forEach(function(output) { var items = glob.sync(output, {cwd:pkg.dest}); items.forEach(function(item) { entries.push(join(pkg.dest, item)); }); }); // unique return entries.filter(function(item, index, arr) { return index === arr.indexOf(item); }); }
angular.module('myModule').controller('_LoginController', ['$scope', '$location', '_appUser', LoginController]); function LoginController($scope, $location, _appUser) { $scope.username = null; $scope.password = null; $scope.error = null; $scope.user = null; // Load user _appUser.get().then(function(user){ $scope.user = user; }); // User actions $scope.login = function() { console.log('login action called'); _appUser.login($scope.username, $scope.password).then( function(user){ $scope.username = null; $scope.password = null; $scope.error = null; if (user.homePage) { $location.path(user.homePage); } }, function(reason){ $scope.error = reason; } ); }; $scope.logout = function() { console.log('logout action called'); _appUser.logout($scope.username, $scope.password).then( function(value){ $scope.error = null; }, function(reason){ $scope.error = reason; } ); }; }
app.directive('TwoColumn', function () { return { restrict: "C", template: '<h3>Test Directive</h3>', replace: true, link: function (scope, element, attrs) {} }; })
'use strict'; recipesApp.controller('AllRecipesController', function AllRecipesController($scope, dataFetcher) { dataFetcher.getRecipes.all().then(function(data){ $scope.$apply(function () { $scope.recipes = data; $scope.information = data.length + " recipes"; }); }); $scope.information = ". . . loading"; $scope.sortBy = 'Id'; $scope.sortTypeText = 'Ascending'; $scope.sortByReverse = false; $scope.sortTypeClicked = function() { if ($scope.sortTypeText === 'Ascending') { $scope.sortTypeText = 'Descending'; } else { $scope.sortTypeText = 'Ascending'; } $scope.sortByReverse = !$scope.sortByReverse; } });
require('../setup') const rabbit = require('../../src/index.js') const config = require('./configuration') describe.skip('Direct Reply Queue (replyQueue: \'rabbit\')', function () { let messagesToSend let harness const replies = [] before(function (done) { this.timeout(10000) harness = harnessFactory(rabbit, () => {}, messagesToSend) rabbit.configure({ connection: config.directReplyQueue, exchanges: [ { name: 'noreply-ex.direct', type: 'direct', autoDelete: true } ], queues: [ { name: 'noreply-q.direct', autoDelete: true, subscribe: true } ], bindings: [ { exchange: 'noreply-ex.direct', target: 'noreply-q.direct', keys: '' } ] }).then(() => { messagesToSend = 3 harness.handle('no.replyQueue', (req) => { req.reply({ reply: req.body.message }) }) for (let i = 0; i < messagesToSend; i++) { rabbit.request('noreply-ex.direct', { connectionName: 'directReplyQueue', type: 'no.replyQueue', body: { message: i }, routingKey: '' }) .then( r => { replies.push(r.body.reply) r.ack() if (replies.length >= messagesToSend) { done() } else { console.log(`not yet: ${replies.length}`) } } ) } }) }) it('should receive all replies', function () { harness.received.length.should.equal(messagesToSend) replies.should.eql([0, 1, 2]) }) after(function () { return harness.clean('directReplyQueue') }) })
import React from 'react'; import { ScatterChart, Scatter, XAxis, YAxis, ZAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; const data01 = [ { x: 100, y: 200, z: 200 }, { x: 120, y: 100, z: 260 }, { x: 170, y: 300, z: 400 }, { x: 140, y: 250, z: 280 }, { x: 150, y: 400, z: 500 }, { x: 110, y: 280, z: 200 }, ]; const data02 = [ { x: 200, y: 260, z: 240 }, { x: 240, y: 290, z: 220 }, { x: 190, y: 290, z: 250 }, { x: 198, y: 250, z: 210 }, { x: 180, y: 280, z: 260 }, { x: 210, y: 220, z: 230 }, ]; const example = () => ( <ScatterChart width={730} height={250} margin={{ top: 20, right: 20, bottom: 10, left: 10, }} > <CartesianGrid strokeDasharray="3 3" /> <XAxis dataKey="x" type="number" name="stature" unit="cm" /> <YAxis dataKey="y" type="number" name="weight" unit="kg" /> <ZAxis dataKey="z" type="number" range={[64, 144]} name="score" unit="km" /> <Tooltip cursor={{ strokeDasharray: '3 3' }} /> <Legend /> <Scatter name="A school" data={data01} fill="#8884d8" /> <Scatter name="B school" data={data02} fill="#82ca9d" /> </ScatterChart> ); const exampleCode = ` <ScatterChart width={730} height={250} margin={{ top: 20, right: 20, bottom: 10, left: 10 }}> <CartesianGrid strokeDasharray="3 3" /> <XAxis dataKey="x" name="stature" unit="cm" /> <YAxis dataKey="y" name="weight" unit="kg" /> <ZAxis dataKey="z" range={[64, 144]} name="score" unit="km" /> <Tooltip cursor={{ strokeDasharray: '3 3' }} /> <Legend /> <Scatter name="A school" data={data01} fill="#8884d8" /> <Scatter name="B school" data={data02} fill="#82ca9d" /> </ScatterChart> `; export default [ { demo: example, code: exampleCode, dataCode: ` const data01 = ${JSON.stringify(data01, null, 2)}; const data02 = ${JSON.stringify(data02, null, 2)}; `, }, ];
import validator from './validator'; import * as constraint from '../constraint'; const emailValidator = ({ message }) => validator({ validate: constraint.emailConstraint, message }); const requiredValidator = ({ message }) => validator({ validate: constraint.requiredConstraint, message }); const passwordValidator = ({ message, ...config }) => validator({ validate: constraint.passwordConstraint(config), message }); export { validator, emailValidator, requiredValidator, passwordValidator };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deactivate = exports.activate = void 0; const gemfile = require("gemfile"); const vscode = require("vscode"); var cache = new Map(); class GemfileProvider { provideHover(document, position, token) { let gemRange = document.getWordRangeAtPosition(position, /([A-Za-z\/0-9_-]+)(\.[A-Za-z0-9]+)*/); if (!gemRange) { return; } console.log(`gemRange${gemRange.start.line}:${gemRange.end.line}`); let gem = document.getText(gemRange); let lineText = document.lineAt(position.line).text.trim(); if (lineText.startsWith("//") || lineText.startsWith("#") || lineText.startsWith("source")) { return; } if (!gem || [ "require", "true", "false", "group", "development", "test", "production", "do", "gem" ].indexOf(gem) !== -1) { return; } if (/^[^a-zA-Z]+$/.test(gem)) { console.log("no alphabet"); return; } var endpoint; let specs = cache.get(document.uri.fsPath); var str; if (gem in specs) { let version = specs[gem].version; endpoint = `${gem}/${version}`; } else { let src = lineText .split(",")[1] .replace(/["\s]/g, "") .replace(":", ".com"); let url = `https://${src}`; str = `View [${url}](${url})`; } if (endpoint) { str = `View online docs for [${endpoint}](https://www.rubydoc.info/gems/${endpoint})`; } let doc = new vscode.MarkdownString(str); let link = new vscode.Hover(doc, gemRange); return link; } } function activate(context) { const GemFile = { // language: "ruby", may not identical as ruby file so commented this pattern: "**/Gemfile", scheme: "file" }; var mine_uris = []; vscode.workspace .findFiles("**/Gemfile.lock") .then(uris => { mine_uris = uris.map(uri => uri.fsPath.substring(0, uri.fsPath.length - 5)); return Promise.all(uris.map(uri => gemfile.parse(uri.fsPath))); }) .then(infos => { for (let i in mine_uris) { cache.set(mine_uris[i], infos[i].GEM.specs); } }); let disposable = vscode.languages.registerHoverProvider(GemFile, new GemfileProvider()); let watcher = vscode.workspace.createFileSystemWatcher("**/Gemfile"); watcher.onDidChange((uri) => { let specs = gemfile.parseSync(uri.fsPath).GEM.specs; cache.set(uri.fsPath.substring(0, uri.fsPath.length - 5), specs); }); context.subscriptions.push(disposable); } exports.activate = activate; function deactivate() { cache = null; } exports.deactivate = deactivate; //# sourceMappingURL=extension.js.map
import React,{Component} from 'react' import {Scene} from 'react-native-router-flux'; import Login from './src/Page/Login' import InitialRoot from './src/Page/InitialRoot' module.exports = ( <Scene key="root" hideNavBar={true}> <Scene key='initialRoot' component={InitialRoot}/> <Scene key='loginIn' type='reset' initial={true} component={Login}/> {require('./src/Page/Project1/Scenes')} {require('./src/__test/scenesForTest')} </Scene> );
import Title from './Title'; import provideChart from '../ChartProvider'; export default provideChart(Title);
// Get all of our friend data var data = require('../clinicalgradsdata.json'); exports.view = function(req, res){ console.log(data); res.render('computationgrads', data); };
import * as util from "./util"; import LocalStrategy from "passport-local"; import { Strategy as BearerStrategy } from "passport-http-bearer-sl"; import ms from "ms"; export default function(config, passport, user) { // API token strategy passport.use(new BearerStrategy( async function(tokenPass, done) { // console.log(tokenPass); const token = tokenPass; try { const theuser = await user.confirmSession(token); done(null, theuser); } catch (err) { if (err instanceof Error && err.message !== "jwt expired") { done(err, false); } else { done(null, false, { message: err.message }); } } } )); // Use local strategy passport.use( new LocalStrategy({ usernameField: config.getItem("local.usernameField") || "username", passwordField: config.getItem("local.passwordField") || "password", session: false, passReqToCallback: true }, async function(req, username, password, done) { try { const theuser = await user.get(username); // console.log("Passport got user", Date.now()); if (theuser) { // Check if the account is locked if (theuser.local && theuser.local.lockedUntil && theuser.local.lockedUntil > Date.now()) { return done(null, false, { error: "Unauthorized", message: "Your account is currently locked. Please wait a few minutes and try again." }); } if (!theuser.local || !theuser.local.derived_key) { return done(null, false, { error: "Unauthorized", message: "Invalid username or password" }); } try { await util.verifyPassword(theuser.local, password); // console.log("Passport verified password", Date.now()); // Check if the email has been confirmed if it is required if (config.getItem("local.requireEmailConfirm") && !theuser.email) { return done(null, false, { error: "Unauthorized", message: "You must confirm your email address." }); } // Success!!! return done(null, theuser); } catch (err) { if (!err) { // Password didn't authenticate return handleFailedLogin(theuser, req, done); } else { // Hashing function threw an error return done(err); } } } else { // user not found return done(null, false, { error: "Unauthorized", message: "Invalid username or password" }); } } catch (err) { // Database threw an error return done(err); } } )); async function handleFailedLogin(userDoc, req, done) { const invalid = { error: "Unauthorized", message: "Invalid username or password" }; const locked = await user.handleFailedLogin(userDoc, req); if (locked) { let securityLockoutTime = config.getItem("security.lockoutTime"); securityLockoutTime = typeof securityLockoutTime === "string" ? ms(securityLockoutTime) : securityLockoutTime; invalid.message = "Maximum failed login attempts exceeded. Your account has been locked for " + ms(securityLockoutTime); } return done(null, false, invalid); } };
const BaseController = require('ascesis').BaseController; class PostsController extends BaseController { connectedCallback(){ super.connectedCallback(); console.log('posts ctrl'); } render(posts, append){ append || (this.innerHTML = ""); var fragment = document.createDocumentFragment(); posts.forEach((post) => { var post_item = document.createElement("post-item"); post_item.render(post); fragment.appendChild(post_item); }); this.appendChild(fragment); } } module.exports = customElements.define('posts-controller', PostsController);
module.exports = { output: { filename: '[name].[hash].js', chunkFilename: '[hash].js' } };
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built (function(m){m=function(){var k="undefined"===typeof global?window:global,q=k.isFinite,n;if(n=!!Object.defineProperty)try{Object.defineProperty({},"x",{}),n=!0}catch(a){n=!1}var m=n,u=Array.prototype.slice,v=String.prototype.indexOf,w=Object.prototype.toString,x=Object.prototype.hasOwnProperty,h=function(a,b){Object.keys(b).forEach(function(c){var d=b[c];c in a||(m?Object.defineProperty(a,c,{configurable:!0,enumerable:!1,writable:!0,value:d}):a[c]=d)})},l={ToInt32:function(a){return a>>0},ToUint32:function(a){return a>>> 0},toInteger:function(a){a=+a;return Number.isNaN(a)?0:0!==a&&Number.isFinite(a)?Math.sign(a)*Math.floor(Math.abs(a)):a}};h(String,{fromCodePoint:function(){for(var a=u.call(arguments,0),b=[],c,d=0,e=a.length;d<e;d++){c=Number(a[d]);if(!Object.is(c,l.toInteger(c))||0>c||1114111<c)throw new RangeError("Invalid code point "+c);65536>c?b.push(String.fromCharCode(c)):(c-=65536,b.push(String.fromCharCode((c>>10)+55296)),b.push(String.fromCharCode(c%1024+56320)))}return b.join("")},raw:function(){var a= arguments[0],b=u.call(arguments,1),a=Object(Object(a).raw),c=Object.keys(a).length,c=l.ToUint32(c);if(0===c)return"";for(var d=[],e=0,f,g;e<c;){f=String(e);g=a[f];g=String(g);d.push(g);if(e+1>=c)break;g=b[f];if(void 0===g)break;f=String(g);d.push(f);e++}return d.join("")}});h(String.prototype,{repeat:function(){var a=function(b,c){if(1>c)return"";if(c%2)return a(b,c-1)+b;b=a(b,c/2);return b+b};return function(b){b=l.toInteger(b);if(0>b||Infinity===b)throw new RangeError;return a(String(this),b)}}(), startsWith:function(a,b){if(null==this)throw new TypeError("Cannot call method 'startsWith' of "+this);var c=String(this);a=String(a);b=Math.max(l.toInteger(b),0);return c.slice(b,b+a.length)===a},endsWith:function(a,b){if(null==this)throw new TypeError("Cannot call method 'endsWith' of "+this);var c=String(this);a=String(a);var d=c.length;b=void 0===b?d:l.toInteger(b);d=Math.min(b,d);return c.slice(d-a.length,d)===a},contains:function(a,b){return-1!==v.call(this,a,b)},codePointAt:function(a){var b= String(this),c=l.toInteger(a),d=b.length;if(!(0>c||c>=d)){a=b.charCodeAt(c);if(55296>a||56319<a||c+1===d)return a;b=b.charCodeAt(c+1);return 56320>b||57343<b?a:1024*(a-55296)+(b-56320)+65536}}});h(Array,{from:function(a,b,c){if(void 0!==b&&"[object Function]"!==w.call(b))throw new TypeError("when provided, the second argument must be a function");a=Object(a);for(var d=l.ToUint32(a.length),e="function"===typeof this?Object(new this(d)):Array(d),f=0;f<d;f++){var g=a[f];e[f]=void 0!==b?c?b.call(c,g): b(g):g}e.length=d;return e},of:function(){return Array.from(arguments)}});h(k,{ArrayIterator:function(a,b){this.i=0;this.array=a;this.kind=b}});h(ArrayIterator.prototype,{next:function(){var a=this.i;this.i=a+1;var b=this.array;if(a>=b.length)throw Error();if(b.hasOwnProperty(a)){var c=this.kind,d;"key"===c&&(d=a);"value"===c&&(d=b[a]);"entry"===c&&(d=[a,b[a]])}else d=this.next();return d}});h(Array.prototype,{copyWithin:function(a,b){var c=Object(this),d=Math.max(l.toInteger(c.length),0),e=0>a?Math.max(d+ a,0):Math.min(a,d),f=0>b?Math.max(d+b,0):Math.min(b,d),g=2<arguments.length?arguments[2]:d,d=Math.min((0>g?Math.max(d+g,0):Math.min(g,d))-f,d-e),g=1;f<e&&e<f+d&&(g=-1,f+=d-1,e+=d-1);for(;0<d;)x.call(c,f)?c[e]=c[f]:delete c[f],f+=g,e+=g,--d;return c},fill:function(a){for(var b=this.length,c=1<arguments.length?l.toInteger(arguments[1]):0,d=2<arguments.length?l.toInteger(arguments[2]):b,c=0>c?Math.max(b+c,0):Math.min(c,b);c<b&&c<d;++c)this[c]=a;return this},find:function(a,b){var c=Object(this),d=l.ToUint32(c.length); if(0!==d){if("function"!==typeof a)throw new TypeError("Array#find: predicate must be a function");for(var e=0,f;e<d&&e in c;e++)if(f=c[e],a.call(b,f,e,c))return f}},findIndex:function(a,b){var c=Object(this),d=l.ToUint32(c.length);if(0===d)return-1;if("function"!==typeof a)throw new TypeError("Array#findIndex: predicate must be a function");for(var e=0,f;e<d&&e in c;e++)if(f=c[e],a.call(b,f,e,c))return e;return-1},keys:function(){return new ArrayIterator(this,"key")},values:function(){return new ArrayIterator(this, "value")},entries:function(){return new ArrayIterator(this,"entry")}});n=Math.pow(2,53)-1;h(Number,{MAX_SAFE_INTEGER:n,MIN_SAFE_INTEGER:-n,EPSILON:2.220446049250313E-16,parseInt:k.parseInt,parseFloat:k.parseFloat,isFinite:function(a){return"number"===typeof a&&q(a)},isSafeInteger:function(a){return"number"===typeof a&&!Number.isNaN(a)&&Number.isFinite(a)&&parseInt(a,10)===a&&Math.abs(a)<=Number.MAX_SAFE_INTEGER},isNaN:function(a){return a!==a}});h(Number.prototype,{clz:function(){var a=+this;if(!a|| !Number.isFinite(a))return 32;a=0>a?Math.ceil(a):Math.floor(a);a-=4294967296*Math.floor(a/4294967296);return 32-a.toString(2).length}});m&&h(Object,{getOwnPropertyDescriptors:function(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b},getPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);for(a=Object.getPrototypeOf(a);void 0===c&&null!==a;)c=Object.getOwnPropertyDescriptor(a,b),a=Object.getPrototypeOf(a);return c}, getPropertyNames:function(a){var b=Object.getOwnPropertyNames(a);a=Object.getPrototypeOf(a);for(var c=function(a){-1===b.indexOf(a)&&b.push(a)};null!==a;)Object.getOwnPropertyNames(a).forEach(c),a=Object.getPrototypeOf(a);return b},assign:function(a,b){return Object.keys(b).reduce(function(a,d){a[d]=b[d];return a},a)},mixin:function(a,b){return Object.getOwnPropertyNames(b).reduce(function(a,d){var c=Object.getOwnPropertyDescriptor(b,d);return Object.defineProperty(a,d,c)},a)}});h(Object,{getOwnPropertyKeys:function(a){return Object.keys(a)}, is:function(a,b){return a===b?0===a?1/a===1/b:!0:Number.isNaN(a)&&Number.isNaN(b)}});h(Math,{acosh:function(a){a=Number(a);return Number.isNaN(a)||1>a?NaN:1===a?0:Infinity===a?a:Math.log(a+Math.sqrt(a*a-1))},asinh:function(a){a=Number(a);return 0!==a&&q(a)?Math.log(a+Math.sqrt(a*a+1)):a},atanh:function(a){a=Number(a);return Number.isNaN(a)||-1>a||1<a?NaN:-1===a?-Infinity:1===a?Infinity:0===a?a:.5*Math.log((1+a)/(1-a))},cbrt:function(a){a=Number(a);if(0===a)return a;var b=0>a;b&&(a=-a);a=Math.pow(a, 1/3);return b?-a:a},cosh:function(a){a=Number(a);if(0===a)return 1;if(!q(a))return a;0>a&&(a=-a);return 21<a?Math.exp(a)/2:(Math.exp(a)+Math.exp(-a))/2},expm1:function(a){a=Number(a);if(-Infinity===a)return-1;if(!q(a)||0===a)return a;for(var b=0,c=1;50>c;c++){for(var d=2,e=1;d<=c;d++)e*=d;b+=Math.pow(a,c)/e}return b},hypot:function(a,b){var c=!1,d=!0,e=!1,f=[];Array.prototype.every.call(arguments,function(a){a=Number(a);Number.isNaN(a)?c=!0:Infinity===a||-Infinity===a?e=!0:0!==a&&(d=!1);if(e)return!1; c||f.push(Math.abs(a));return!0});if(e)return Infinity;if(c)return NaN;if(d)return 0;f.sort(function(a,c){return c-a});var g=f[0],y=f.map(function(a){return a/g}).reduce(function(a,c){return a+=c*c},0);return g*Math.sqrt(y)},log2:function(a){return Math.log(a)*Math.LOG2E},log10:function(a){return Math.log(a)*Math.LOG10E},log1p:function(a){a=Number(a);if(-1>a||Number.isNaN(a))return NaN;if(0===a||Infinity===a)return a;if(-1===a)return-Infinity;var b=0;if(0>a||1<a)return Math.log(1+a);for(var c=1;50> c;c++)b=0===c%2?b-Math.pow(a,c)/c:b+Math.pow(a,c)/c;return b},sign:function(a){a=+a;return 0===a||Number.isNaN(a)?a:0>a?-1:1},sinh:function(a){a=Number(a);return q(a)&&0!==a?(Math.exp(a)-Math.exp(-a))/2:a},tanh:function(a){a=Number(a);return Number.isNaN(a)||0===a?a:Infinity===a?1:-Infinity===a?-1:(Math.exp(a)-Math.exp(-a))/(Math.exp(a)+Math.exp(-a))},trunc:function(a){a=Number(a);return 0>a?-Math.floor(-a):Math.floor(a)},imul:function(a,b){var c=a&65535,d=b&65535;return c*d+((a>>>16&65535)*d+c*(b>>> 16&65535)<<16>>>0)|0}});if(m){var p=function(a){var b=typeof a;return"string"===b?"$"+a:"number"!==b||Object.is(a,-0)?null:a},r=function(){return Object.create?Object.create(null):{}},t={Map:function(){function a(a,c){this.key=a;this.value=c;this.prev=this.next=null}function b(a,c){this.head=a._head;this.i=this.head.next;this.kind=c}function c(){if(!(this instanceof c))throw new TypeError('Map must be called with "new"');var b=new a(null,null);b.next=b.prev=b;h(this,{_head:b,_storage:r(),_size:0})} var d={};a.prototype.isRemoved=function(){return this.key===d};b.prototype={next:function(){for(var a=this.i,c=this.kind,b=this.head;a!==b;){this.i=a.next;if(!a.isRemoved())return a="key"===c?a.key:"value"===c?a.value:[a.key,a.value],{value:a,done:!1};a=this.i}return{value:void 0,done:!0}}};Object.defineProperty(c.prototype,"size",{configurable:!0,enumerable:!1,get:function(){return this._size}});h(c.prototype,{get:function(a){var c=p(a);if(null!==c)return(a=this._storage[c])?a.value:void 0;for(var b= c=this._head;(b=b.next)!==c;)if(Object.is(b.key,a))return b.value},has:function(a){var c=p(a);if(null!==c)return c in this._storage;for(var b=c=this._head;(b=b.next)!==c;)if(Object.is(b.key,a))return!0;return!1},set:function(c,b){var d=this._head,e=d,f,h=p(c);if(null!==h){if(h in this._storage){this._storage[h].value=b;return}f=this._storage[h]=new a(c,b);e=d.prev}for(;(e=e.next)!==d;)if(Object.is(e.key,c)){e.value=b;return}f=f?f:new a(c,b);f.next=this._head;f.prev=this._head.prev;f.prev.next=f;f.next.prev= f;this._size+=1},"delete":function(a){var c=this._head,b=c,e=p(a);if(null!==e){if(!(e in this._storage))return!1;b=this._storage[e].prev;delete this._storage[e]}for(;(b=b.next)!==c;)if(Object.is(b.key,a))return b.key=b.value=d,b.prev.next=b.next,b.next.prev=b.prev,--this._size,!0;return!1},clear:function(){this._size=0;this._storage=r();for(var a=this._head,c,b=a.next;(c=b)!==a;)c.key=c.value=d,b=c.next,c.next=c.prev=a;a.next=a.prev=a},keys:function(){return new b(this,"key")},values:function(){return new b(this, "value")},entries:function(){return new b(this,"key+value")},forEach:function(a){for(var c=1<arguments.length?arguments[1]:null,b=this._head,d=b;(d=d.next)!==b;)d.isRemoved()||a.call(c,d.value,d.key,this)}});return c}(),Set:function(){var a=function(){if(!(this instanceof a))throw new TypeError('Set must be called with "new"');h(this,{"[[SetData]]":null,_storage:r()})},b=function(a){if(!a["[[SetData]]"]){var b=a["[[SetData]]"]=new t.Map;Object.keys(a._storage).forEach(function(a){a=36===a.charCodeAt(0)? a.substring(1):+a;b.set(a,a)});a._storage=null}};Object.defineProperty(a.prototype,"size",{configurable:!0,enumerable:!1,get:function(){b(this);return this["[[SetData]]"].size}});h(a.prototype,{has:function(a){var c;if(this._storage&&null!==(c=p(a)))return!!this._storage[c];b(this);return this["[[SetData]]"].has(a)},add:function(a){var c;if(this._storage&&null!==(c=p(a)))this._storage[c]=!0;else return b(this),this["[[SetData]]"].set(a,a)},"delete":function(a){var c;if(this._storage&&null!==(c=p(a)))delete this._storage[c]; else return b(this),this["[[SetData]]"]["delete"](a)},clear:function(){if(this._storage)this._storage=r();else return this["[[SetData]]"].clear()},keys:function(){b(this);return this["[[SetData]]"].keys()},values:function(){b(this);return this["[[SetData]]"].values()},entries:function(){b(this);return this["[[SetData]]"].entries()},forEach:function(a){var c=1<arguments.length?arguments[1]:null,e=this;b(this);this["[[SetData]]"].forEach(function(b,d){a.call(c,d,d,e)})}});return a}()};h(k,t);if(k.Map|| k.Set)if("function"!==typeof k.Map.prototype.clear||0!==(new k.Set).size||0!==(new k.Map).size||"function"!==typeof k.Set.prototype.keys||"function"!==typeof k.Map.prototype.forEach||"function"!==typeof k.Set.prototype.forEach)k.Map=t.Map,k.Set=t.Set}};"function"===typeof define&&"object"===typeof define.amd&&define.amd?define(m):m()})();
// npm packages import {Observable} from 'rxjs/Observable'; // our packages import * as ActionTypes from '../actionTypes'; import {signRequest} from '../../util/signRequest'; import * as Actions from '../actions'; export const getAllClassroom = action$ => action$ .ofType(ActionTypes.GET_ALL_CLASSROOM) .map(signRequest) .switchMap(({headers}) => Observable .ajax.get('http://localhost:8080/api/classroom', headers) .map(res => res.response) .map(classroom => ({ type: ActionTypes.GET_ALL_CLASSROOM_SUCCESS, payload: {classroom}, })) .catch(error => Observable.of({ type: ActionTypes.GET_ALL_CLASSROOM_ERROR, payload: {error}, })), ); export const getClassroomsByTeachedUser = action$ => action$ .ofType(ActionTypes.GET_USER_TEACHED_CLASSROOMS) .map(signRequest) .mergeMap(({headers, payload}) => Observable .ajax.get(`http://localhost:8080/api/classroom/teached/${payload.user}`, headers) .map(res => res.response) .map(userteachedclassrooms => ({ type: ActionTypes.GET_USER_TEACHED_CLASSROOMS_SUCCESS, payload: {userteachedclassrooms}, })) .catch(error => Observable.of({ type: ActionTypes.GET_USER_TEACHED_CLASSROOMS_ERROR, payload: {error}, })), ); export const getClassroomsByFollowedUser = action$ => action$ .ofType(ActionTypes.GET_USER_FOLLOWED_CLASSROOMS) .map(signRequest) .mergeMap(({headers, payload}) => Observable .ajax.get(`http://localhost:8080/api/classroom/followed/${payload.user}`, headers) .map(res => res.response) .map(userfollowedclassrooms => ({ type: ActionTypes.GET_USER_FOLLOWED_CLASSROOMS_SUCCESS, payload: {userfollowedclassrooms}, })) .catch(error => Observable.of({ type: ActionTypes.GET_USER_FOLLOWED_CLASSROOMS_ERROR, payload: {error}, })), ); export const getOneClassroom = action$ => action$ .ofType(ActionTypes.GET_ONE_CLASSROOM) .map(signRequest) .mergeMap(({headers, payload}) => Observable .ajax.get(`http://localhost:8080/api/classroom/${payload.id}`, headers) .map(res => res.response) .map(specificclassroom => ({ type: ActionTypes.GET_ONE_CLASSROOM_SUCCESS, payload: {specificclassroom}, })) .catch(error => Observable.of({ type: ActionTypes.GET_ONE_CLASSROOM_ERROR, payload: {error}, })), ); export const createClassroom = action$ => action$ .ofType(ActionTypes.CREATE_CLASSROOM) .map(signRequest) .switchMap(({headers, payload}) => Observable .ajax.post('http://localhost:8080/api/classroom/create', payload, headers) .map(res => res.response) .mergeMap(response => Observable.of( { type: ActionTypes.CREATE_CLASSROOM_SUCCESS, payload: response, }, Actions.addNotificationAction( {text: 'Classroom created correctly', alertType: 'success'}, ), )) .catch(error => Observable.of( { type: ActionTypes.CREATE_CLASSROOM_ERROR, payload: { error, }, }, Actions.addNotificationAction( {text: 'An error occurred during classroom creation', alertType: 'danger'}, ), )), ); export const deleteClassroomAction = action$ => action$ .ofType(ActionTypes.DELETE_CLASSROOM) .map(signRequest) .switchMap(({headers, payload}) => Observable .ajax.delete(`http://localhost:8080/api/classroom/${payload.id}`, headers) .map(res => res.response) .mergeMap(response => Observable.of( { type: ActionTypes.DELETE_CLASSROOM_SUCCESS, payload: response, }, Actions.addNotificationAction( {text: 'The Classroom has been successfully deleted', alertType: 'success'}, ), )) .catch(error => Observable.of( { type: ActionTypes.DELETE_CLASSROOM_ERROR, payload: { error, }, }, Actions.addNotificationAction( {text: 'An error occurred while deleting the Classroom', alertType: 'danger'}, ), )), ); export const updateClassroomAction = action$ => action$ .ofType(ActionTypes.UPDATE_CLASSROOM) .map(signRequest) .switchMap(({headers, payload}) => Observable .ajax.post(`http://localhost:8080/api/classroom/${payload.id}`, payload, headers) .map(res => res.response) .mergeMap(response => Observable.of( { type: ActionTypes.UPDATE_CLASSROOM_SUCCESS, payload: response, }, )) .catch(error => Observable.of( { type: ActionTypes.UPDATE_CLASSROOM_ERROR, payload: { error, }, }, )), );
'use strict'; const assert = require('assert'); var winston = require('winston'); var contactsEndpoints = require('../endpoints/contacts-v1.js'); /** * @class User * @description User is the parent class of all Curse users we'll find here * @property {Client} client [Client]{@link Client} object used to create this [User]{@link User} instance. * @property {number} ID Curse ID of the current user. */ class User { constructor(userid, client){ //We need the user to not exist already assert(client.users.has(userid) == false); client.users.set(userid, this); this.client = client; this.ID = userid; this._username = undefined; } /** * @description Get the name of the curse account for this user (asynchronously). * @param {Function} callback Callback: (errors, username) => {}. * * **errors** is null or undefined when function ends correctly. * * **username** is a **string** for the curse username of this [User]{@link User}. */ username(callback){ var self = this; if(this._username == undefined){ contactsEndpoints.user(this.ID, this.client.token, function(errors, data){ if(errors == null){ self._username = data.content['Username']; callback(null, self._username); } else { winston.log('error', 'User.username', 'Cannot get username'); winston.log('debug', 'User.username', errors); callback(errors, undefined); } }); } else { callback(null, this._username); } } } exports.User = User;
'use strict'; //Metrics service used to communicate Metrics REST endpoints angular.module('metrics').factory('Metrics', ['$http', function($http) { var Metrics = { // items : [], 'get' : getFn, update : update, delete : deleteFn, create: create, selected: {}, clone: {}, removeTag: removeTag }; return Metrics; function getFn(metricId){ return $http.get('/metrics/' + metricId); } function deleteFn(metricId){ return $http.delete('/metrics/' + metricId); } function create(metric){ return $http.post('/metrics', metric).success(function(metric){ }); } function update(metric){ return $http.put('/metrics/' + metric._id, metric).success(function(metric){ }); } function removeTag (metricId, removeTag){ var updatedTags = []; $http.get('/metrics/' + metricId).success(function(metric){ _.each(metric.tags, function(tag, i){ if (tag.text !== removeTag) updatedTags.push(tag); }) metric.tags = updatedTags; return $http.put('/metrics/' + metric._id, metric); }); } } ]);
export const LOAD_COURSE_SUCCESS = 'LOAD_COURSE_SUCCESS'; export const ADD_NUMBERS = 'ADD_NUMBERS'; export const BEGIN_AJAX_CALL = 'BEGIN_AJAX_CALL'; export const LOAD_AUTHORS_SUCCESS = 'LOAD_AUTHORS_SUCCESS'; export const AJAX_CALL_ERROR = 'AJAX_CALL_ERROR'; export const CREATE_COURSE_SUCCESS = 'CREATE_COURSE_SUCCESS'; export const UPDATE_COURSE_SUCCESS = 'UPDATE_COURSE_SUCCESS';
/**Upcoming matches table**/ function getUpcomingMatchesTable(){ log("making upcoming matches table...") UMTableCount +=1 try{ my_upcomingMatchesTable.destroy() } catch (err){ } my_OffsetTop = $("#upcomingMatchesTable").offset().top UnlistedMatchCount += 0 my_UMRows = [] //allUMdata = [] inTotCount_UM = 0 totUnavailable_UM = 0 inCount_UM = [] inReadyCount_UM = [] inPlayCount_UM = [] unavailable_UM = [] freeCourtsAtStartCount = 0 Playing = false inFirstCount_UM = 0 inSecondCount_UM = 0 expectedTimesArray = [] predictedTimesArray = [] totalTimesArray = [] playersPlayingExpectedTimesArray = [] smallestExpectedTimesArray = [] shiftStartTime = 0 upcomingMatchInfoObjectsShift = [] shift1upcomingMatchInfoObjects = [] shift1ppUpcomingMatchInfoObjects = [] tempshift1ppUpcomingMatchInfoObjects = [] ppUpcomingMatchInfoObjects = [] rtpUpcomingMatchInfoObjects = [] addIndex = 0 shift1ppCount = 0 altshift2count = 0 altshift2ppCount = 0 shift1rtp = 0 shift1pp = 0 nrOfCourts = availableLocationsCount freeCourtsAvailable = 0 assignedFreeCourts = 0 var UM_loopStartLog = [] var UM_loopStopLog = [] if(firstLoad === true){ arraycount = 1 firstLoad = false } else { //////log("after first", typeof arraycount) arraycount += 1 mycurrentLocalIDArray = [] } var mycurrentLocalIDArray = [] var my_currentStringsArray = [] var my_intermediatArray = [] var my_currentStringObjectsArray = [] var allStartArrays = [] for(pt = 0; pt < predictedTimeLeftArray.length; pt++){ if(predictedTimeLeftArray[pt].timeLeft === 0){ freeCourtsAvailable += 1 } } ////////log("available nr. of courts:", nrOfCourts) //////log("available nr. of free courts:", freeCourtsAvailable) var UM_playerNamesCurrentlyPlayingArray = [] var UM_playerNamesCurrentlyPlayingArray_ET = [] var UM_playerNamesCurrentlyUnavailableArray = [] var UM_playerNamesReadyToPlayArray = [] ////log(my_upcomingMatches) if(noUpcomingMatches === true){ } for (var um = 0; um < my_upcomingMatches.length; um++){ //////log("processing new match..", my_upcomingMatches.length) var singleUMData = {} var statusPlayers = []; var playerNamesCurrentlyPlayinginMatchArray = [] var playersPlayingObects = [] var predictedTimeLeftofPlayingPlayersArray = [] var my_UMrowNumber = um + 1 var my_PoolName = my_upcomingMatches[um].pool var poolPropertiesObject = findPoolProperties(my_PoolName) singleUMData.poolProperties = poolPropertiesObject if(poolPropertiesObject.altNames[0] === "Average Pool"){ var abbrPoolName = my_PoolName } else { var abbrPoolName = poolPropertiesObject.abbreviations[0] } //var abbrPoolName = getPoolNameAbbr(my_PoolName) var UMrow_id = "UMrow-" + my_UMrowNumber //tri = $('<tr id=' + UMrow_id + '/>'); // um nr //tri.append("<td class='vsColumn'>" + my_UMrowNumber + "</td>") singleUMData.UMNr = my_UMrowNumber singleUMData.matchNr = my_upcomingMatches[um].localId if(ifMobile === false){ singleUMData.poolName = my_PoolName } else { singleUMData.poolName = abbrPoolName } singleUMData.abbrPoolName = abbrPoolName //tri.append("<td>" + my_upcomingMatches[um].localId + "</td>"); //////////log("processing first team...") //Get Status players functions /*function getPlayingStatus(playerName, secondTd){ var TdInput = "<td class='playerColumn'"+ playerPlayingSpan + playerName + "</span></td>"+secondTd var playerStatus = "Player playing" statusPlayers.push(playerStatus) return TdInput } function getStatusNonReady(playerName, secondTd){ var TdInput = playerName + secondTd var playerStatus = "Player not ready" statusPlayers.push(playerStatus) return TdInput } function getReadyToStartStatus(playerName, secondTd){ var TdInput = "<td class='playerColumn'>" + playerName + secondTd var playerStatus = "Ready to start" statusPlayers.push(playerStatus) return TdInput }*/ //Put status in Table function getStatus(fullPlayerName, playerName, amountPlayers, playerCurrentlyPlaying, playerReady, TdInput, playerStatus){ if(playerCurrentlyPlaying === true){ playerNamesCurrentlyPlayinginMatchArray.push(playerName) UM_playerNamesCurrentlyPlayingArray.push(playerName); UM_playerNamesCurrentlyPlayingArray_ET.push(fullPlayerName) removeStringFromArray(UM_playerNamesCurrentlyUnavailableArray, playerName); removeStringFromArray(UM_playerNamesReadyToPlayArray, playerName); var playerStatus = "player playing" statusPlayers.push(playerStatus) return playerName } else { if(playerReady === false){ UM_playerNamesCurrentlyUnavailableArray.push(playerName) removeStringFromArray(UM_playerNamesReadyToPlayArray, playerName); removeStringFromArray(UM_playerNamesCurrentlyPlayingArray, playerName); removeStringFromArray(UM_playerNamesCurrentlyPlayingArray_ET, fullPlayerName) var playerStatus = "player not ready" //my_postponedPlayers.push(fullPlayerName) statusPlayers.push(playerStatus) return playerName } else { UM_playerNamesReadyToPlayArray.push(playerName); removeStringFromArray(UM_playerNamesCurrentlyPlayingArray, playerName); removeStringFromArray(UM_playerNamesCurrentlyUnavailableArray, playerName); removeStringFromArray(UM_playerNamesCurrentlyPlayingArray_ET, fullPlayerName); var playerStatus = "ready to start" statusPlayers.push(playerStatus) return playerName } } } //Name Team 1 column var my_T1count = 0 for (var t1 = 0; t1 < my_upcomingMatches[um].team1.players.length; t1++){ my_T1count +=1 var playerNickNameTeam1 = my_upcomingMatches[um].team1.players[t1].name var playerNameTeam1 = playerNickNameTeam1.replace(/".*"/, "").replace(" ", " ").replace(" ", " ").replace(" ", " ") var t1PlayerCurrentlyPlaying = my_upcomingMatches[um].team1.players[t1].currentlyPlaying //////////log(playerNameTeam1, "playing:", t1PlayerCurrentlyPlaying) var t1PlayerReady = my_upcomingMatches[um].team1.players[t1].ready //////////log(playerNameTeam1, "ready:", t1PlayerReady) var amountT1Players = my_upcomingMatches[um].team1.players.length var Td1Input, t1PlayerStatus var simplePlayerName_1 = getStatus(playerNickNameTeam1, playerNameTeam1, amountT1Players, t1PlayerCurrentlyPlaying, t1PlayerReady, Td1Input, t1PlayerStatus) var fullPlayerName_1 = playerNameTeam1 //tri.append(simplePlayerName_1) if(my_upcomingMatches[um].team1.players.length === 1){ singleUMData.teamOne1 = simplePlayerName_1; singleUMData.teamOne1FN = fullPlayerName_1; singleUMData.teamOne2 = ""; singleUMData.teamOne2FN = ""; } else if(my_upcomingMatches[um].team1.players.length > 1 && my_T1count === 1){ singleUMData.teamOne1 = simplePlayerName_1 singleUMData.teamOne2FN = fullPlayerName_1; } else if (my_upcomingMatches[um].team1.players.length > 1 && my_T1count === 2) { singleUMData.teamOne2 = simplePlayerName_1 singleUMData.teamOne2FN = fullPlayerName_1; } else if (my_upcomingMatches[um].team1.name === "-") { singleUMData.teamOne1 = "-" singleUMData.teamOne1FN = ""; singleUMData.teamOne2 = "" singleUMData.teamOne2FN = ""; } } if(my_upcomingMatches[um].team1.players.length === 0){ simplePlayerName_1 = "-" fullPlayerName_1 = "-" singleUMData.teamOne1 = "-" singleUMData.teamOne1FN = "-" singleUMData.teamOne2 = "" singleUMData.teamOne2FN = "-" } //vs column //tri.append("<td class='vsColumn'>" + "<b>vs.</b>" + "</td>"); singleUMData.vsColumn = "vs." //Name Team 2 Column var my_T2count = 0 for (var t2 = 0; t2 < my_upcomingMatches[um].team2.players.length; t2++){ my_T2count +=1 var playerNickNameTeam2 = my_upcomingMatches[um].team2.players[t2].name var playerNameTeam2 = playerNickNameTeam2.replace(/".*"/, "").replace(" ", " ").replace(" ", " ") var t2PlayerCurrentlyPlaying = my_upcomingMatches[um].team2.players[t2].currentlyPlaying //////////log(playerNameTeam2, "playing:", t2PlayerCurrentlyPlaying) var t2PlayerReady = my_upcomingMatches[um].team2.players[t2].ready //////////log(playerNameTeam2, "ready:", t2PlayerReady) var amountT2Players = my_upcomingMatches[um].team2.players.length var Td2Input, t2PlayerStatus var simplePlayerName_2 = getStatus(playerNickNameTeam2, playerNameTeam2, amountT2Players, t2PlayerCurrentlyPlaying, t2PlayerReady, Td2Input, t2PlayerStatus) var fullPlayerName_2 = playerNickNameTeam2 if (my_upcomingMatches[um].team2.name === "-") { log("empty") simplePlayerName_2 = "" } //tri.append(simplePlayerName_2); if(my_upcomingMatches[um].team2.players.length === 1){ singleUMData.teamTwo1 = simplePlayerName_2; singleUMData.teamTwo1FN = fullPlayerName_2; singleUMData.teamTwo2 = "" singleUMData.teamTwo2FN = "" } else if(my_upcomingMatches[um].team2.players.length > 1 && my_T2count === 1){ singleUMData.teamTwo1 = simplePlayerName_2 singleUMData.teamTwo1FN = fullPlayerName_2 } else if (my_upcomingMatches[um].team2.players.length > 1 && my_T2count === 2) { singleUMData.teamTwo2 = simplePlayerName_2; singleUMData.teamTwo2FN = fullPlayerName_2 } else if(my_upcomingMatches[um].team2.name === "-"){ singleUMData.teamTwo1 = "-" singleUMData.teamTwo1FN = "-" singleUMData.teamTwo2 = "" singleUMData.teamTwo2FN = "" } } if(my_upcomingMatches[um].team2.players.length === 0){ simplePlayerName_2 = "-" fullPlayerName_2 = "-" singleUMData.teamTwo1 = "-" singleUMData.teamTwo1FN = "-" singleUMData.teamTwo1 = "-" singleUMData.teamTwo1FN = "-" } //Status column singleUMData.priority = my_upcomingMatches[um].priority var playersPlaying = inArray("player playing", statusPlayers) var playersNotReady = inArray("player not ready", statusPlayers) if (playersNotReady === true){ singleUMData.unavailablePlayers = true; singleUMData.playersPlaying = false; singleUMData.readyToPlay = false; var my_statusText = playersUnavailable var my_status = my_statusText //////////log("unavailable:", my_status) } else if (playersPlaying === true){ singleUMData.unavailablePlayers = false; singleUMData.playersPlaying = true; singleUMData.readyToPlay = false; var my_statusText = playersCurrentlyPlaying var my_status = my_statusText } else { singleUMData.unavailablePlayers = false; singleUMData.playersPlaying = false; singleUMData.readyToPlay = true; var my_statusText = readyToPlay var my_status = my_statusText //////////log("ready:", my_status) } singleUMData.status = my_status /*if(showStatusPlayersColumn === true){ //tri.append("<td class='statusColumn'" + my_status + "</td>"); singleUMData.status = my_status } else { document.getElementById("playerStatusColumn").style.display = "none" }*/ //expected Times column singleUMData.noExpectedTime = ""; if (showExpectedTimeColumn === true) { var ET_returns = calculateExpectedTime(um, my_PoolName, poolPropertiesObject, singleUMData, nrOfCourts, my_statusText, playersNotReady, playersPlaying, UM_playerNamesCurrentlyPlayingArray_ET, playersPlayingObects, predictedTimeLeftofPlayingPlayersArray) log("ET returns:", ET_returns) var upcomingMatchInfo = ET_returns[0] singleUMData = ET_returns[1] } else { singleUMData.shiftNrExpectedTimeMinsStdDev = "" singleUMData.shiftNrExpectedTimeSecs = "" singleUMData.StdDevExpectedTime = "" singleUMData.namedExpectedTime = "" } allUMdata.push(singleUMData) //check expected Times //start log if (showExpectedTimeColumn === true && sendingDataToDatabase === true) { var my_currentStartSingleStringsObject = {} var my_startArray = [] var my_stopArray = [] //if(my_settingsVarsObject.showExpectedTimeColumn === true){ var start = "start" var my_matchLocalId = my_upcomingMatches[um].localId var processIDS = start + my_matchLocalId.toString() var processIDI = "" var tournamentName = my_tournamentName my_currentStartSingleStringsObject.tournamentName = tournamentName my_currentStartSingleStringsObject.matchId = my_matchLocalId my_currentStartSingleStringsObject.status = start my_currentStartSingleStringsObject.processID = processIDS my_currentStartSingleStringsObject.dataReloadCount = reloadDataCount my_currentStartSingleStringsObject.timeSinceLastRefresh = lastRefreshTimeLog var myPoolname = my_upcomingMatches[um].pool my_currentStartSingleStringsObject.pool = myPoolname upcomingMatchInfo.localId = my_matchLocalId var jsCurrentTimeS = new Date() my_currentStartSingleStringsObject.jsDate = jsCurrentTimeS var isoCurrentTimeS = jsToisoDate(jsCurrentTimeS) my_currentStartSingleStringsObject.isoDate = isoCurrentTimeS var firstExpectedTime = singleUMData.expectedTimeSecs //not upcomingMatchInfo object because singleUMData objects includes all numbers als oif unavailable or free court. my_currentStartSingleStringsObject.expectedTime = firstExpectedTime var ifReadytoPlayS = upcomingMatchInfo.readyToPlay my_currentStartSingleStringsObject.ifReadytoPlay = ifReadytoPlayS var ifPlayerPlayingS = upcomingMatchInfo.playersPlaying my_currentStartSingleStringsObject.ifPlayerPlaying = ifPlayerPlayingS var ifUnavailableS = upcomingMatchInfo.playersUnavailable my_currentStartSingleStringsObject.ifUnavailable = ifUnavailableS var expectedTimestartTimeDifferenceS = null var timeDifferenceSecsS = null my_currentStartSingleStringsObject.expectedTimeDifference = expectedTimestartTimeDifferenceS my_currentStartSingleStringsObject.timeDifferenceSecs = timeDifferenceSecsS my_currentStartSingleStringsObject.reloadDataTimeInterval = reloadDataTimeSecs if (ifUnavailableS === false) { my_startArray.push(/*tournament_ID,*/tournamentName, reloadDataCount, processIDS, start, my_matchLocalId, myPoolname, isoCurrentTimeS, firstExpectedTime, ifReadytoPlayS, ifPlayerPlayingS, ifUnavailableS, reloadDataTimeSecs, lastRefreshTimeLog, expectedTimestartTimeDifferenceS, timeDifferenceSecsS) my_currentStringObjectsArray.push(my_currentStartSingleStringsObject) mycurrentLocalIDArray.push(my_matchLocalId) //////log(mycurrentLocalIDArray[arraycount]) mycurrentLocalIDArray.sort(function (a, b) { return a - b }) } my_startInputString = my_startArray.join(";") //////log(my_startInputString) var inStartArray = inArray(my_matchLocalId, completeMatchIDArray) //////log(upcomingMatchInfo) if (inStartArray === false && ifUnavailableS === false) { mycurrentLocalIDArray.push(my_matchLocalId) completeMatchIDArray.push(my_matchLocalId) mycurrentLocalIDArray.sort(function (a, b) { return a - b }) completeMatchIDArray.sort(function (a, b) { return a - b }) completeStartObjects.push(my_currentStartSingleStringsObject) completeStartArray.push(my_startArray) my_currentStringsArray.push(my_startInputString) //my_currentStringsArray.push(my_startInputString) var my_Startinput = my_startInputString + ";" /* */ /** INPUT VALUE **/ /* */ //log(my_currentStartSingleStringsObject) //log(my_startArray) //log(my_startInputString) //objects //UM_startLog.push(my_currentStartSingleStringsObject) //UM_loopStartLog.push(my_currentStartSingleStringsObject) //arrays //UM_startLog.push(my_startArray) //UM_loopStartLog.push(my_startArray) //strings UM_startLog.push(my_startInputString) UM_loopStartLog.push(my_startInputString) } var ifAlreadyinStartLog = inArray(my_matchLocalId, completeMatchIDArray) my_intermediatArray = [] if (ifAlreadyinStartLog === true && ifUnavailableS === false && (um === 5 || um === 10 || um === 15 || um === 20 || um === 25 || um === 30 || um === 35 || um === 40 || um === 45 || um === 50) || um === 55 || um === 60) { //log("intermediate:", um) var umNrStr = um.toString() processIDI = "umNr" + umNrStr + "_" + my_matchLocalId my_intermediatArray.push(/*tournament_ID,*/ tournamentName, reloadDataCount, processIDI, "intermediate", my_matchLocalId, myPoolname, isoCurrentTimeS, firstExpectedTime, ifReadytoPlayS, ifPlayerPlayingS, ifUnavailableS, reloadDataTimeSecs, lastRefreshTimeLog, expectedTimestartTimeDifferenceS, timeDifferenceSecsS) var my_intermediatString = my_intermediatArray.join(";") //log(my_intermediatString) my_currentStringsArray.push(my_intermediatString) //log("new all strings", my_currentStringsArray) UM_startLog.push(my_intermediatString) UM_loopStartLog.push(my_intermediatString) //log(UM_loopStartLog) } if (allUpcomingMatchInfoObjects.length === 0) { allUpcomingMatchInfoObjects.push(upcomingMatchInfo) } else { var found = false; for (var umo = 0; umo < allUpcomingMatchInfoObjects.length; umo++) { if (allUpcomingMatchInfoObjects[umo].localId === my_matchLocalId) { found = true; break; } } if (found === false) { allUpcomingMatchInfoObjects.push(upcomingMatchInfo) } var nextum = um + 1 if (nextum === my_upcomingMatches.length) { window['load' + arraycount] = mycurrentLocalIDArray window['StringArray' + arraycount] = my_currentStringsArray } } } } /* */ /** end of for loop **/ /* */ log("CP:", UM_playerNamesCurrentlyPlayingArray); log("RTP:", UM_playerNamesReadyToPlayArray); //adjust ExpectedTime if(showExpectedTimeColumn === true && AET === true){ try{ var adjustedExpectedTimes = adjustExpectedTimes(allUpcomingMatchInfoObjects,allUMdata) allUMdata = adjustedExpectedTimes[1] } catch(err){ log(err) } } //append Table ////log("allUMdata", allUMdata) var UMremakeCount = 0 var my_lengthMenu = lengthMenu(false, allUMdata) //create whole table //////log(my_lengthMenu) function makeNoUpcomingMatchesTable(my_data, ifPaging, lengthMenu){ var tableInfoLocations = setTableInfoLocations(ifOrganizerViewPreset); /*if (showExpectedTimeColumn === false) { var my_NoExpectedTimeColumnName = expectedTimeColumnName(0); } else { var my_NoExpectedTimeColumnName = expectedTimeColumnName(0); //set expected time column name }*/ var my_noUMTable = $('#upcomingMatchesTable').DataTable({ data: my_data, paging: ifPaging, pagingType: "numbers", lengthChange: ifLengthChange(), searching: ifOrganizerViewPreset, lengthMenu: lengthMenu, ordering: false, responsive: false, dom: tableInfoLocations, //pageResize: true, //bAutoWidth: false, columns: [ { data: 'localId', autoWidth: false, fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('text-align', 'center') }, visible: expectedTimesDataTesting }, { data: 'poolName', function (nTd, sData, oData, iRow, iCol) { $(nTd).css('-webkit-column-span', 'all') $(nTd).css('column-span', 'all') } }, { data: 'teamOne1' }, { data: 'teamOne2' }, { data: 'vsColumn' }, { data: 'teamTwo1' }, { data: 'teamTwo2' }, { data: 'status', visible: showStatusPlayersColumn }, { data: my_expectedTimeColumnName, visible: showExpectedTimeColumn } ], }) return my_noUMTable} function makeUpcomingMatchesTable(my_data, ifPaging, lengthMenu){ //////log("making table", remakeCount, my_data, "lm:", lengthMenu) var tableInfoLocations = setTableInfoLocations(ifOrganizerViewPreset); /*if (showExpectedTimeColumn === false) { var my_expectedTimeColumnName = expectedTimeColumnName(0); } else { var my_expectedTimeColumnName = expectedTimeColumnName(0); //set expected time column name }*/ var my_UMTable = $('#upcomingMatchesTable').DataTable({ data: my_data, paging: ifPaging, pagingType: "numbers", lengthChange: ifLengthChange(), searching: ifOrganizerViewPreset, lengthMenu: lengthMenu, ordering: false, responsive: false, dom: tableInfoLocations, error: function (xhr, error, thrown) { alert(xhr, error, thrown) }, //pageResize: true, //bAutoWidth: false, columns: [ { data: 'UMNr', autoWidth: false, fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('text-align', 'center') }, visible: expectedTimesDataTesting }, { data: 'poolName', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { //$(nTd).css('border-left', '0.2vw solid #555555') $(nTd).css('border-left', '3px solid #555555') $(nTd).css('border-right', '0.2vw solid #555555') $(nTd).css('background-color', '#b3ccff') $(nTd).css('padding-left', '5px') $(nTd).css('padding-right', '5px') $(nTd).css('padding-top', '5px') $(nTd).css('padding-bottom', '5px') } }, { data: 'teamOne1', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('padding-left', '5px') $(nTd).css('text-align', 'left') //log(sData, oData) var inRTP = false; var inPl = false; var inUnav = false; var inRTP = getNewStatus("UM", "RTP", sData, oData)//inArray(sData, UM_playerNamesReadyToPlayArray) if (inRTP === false) { inPl = getNewStatus("UM", "PP", sData, oData)//inArray(sData, UM_playerNamesCurrentlyPlayingArray) if (inPl === false && inPl === false) { inUnav = getNewStatus("UM", "Unav", sData, oData)//inArray(sData, UM_playerNamesCurrentlyUnavailableArray) } } var testArray = []; if (inRTP === true) { //log("ready to play css", nTd) $(nTd).css('background-color', 'transparent') } else if (inPl === true){ //log("playing css", nTd); $(nTd).css('background-color', '#ffffb3') } else if (inUnav === true) { $(nTd).css('background-color', '#ff8080') } else { $(nTd).css('background-color', 'transparent') } } }, { data: 'teamOne2', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('padding-left', '5px') $(nTd).css('text-align', 'left') //////log(sData) var inRTP = false; var inPl = false; var inUnav = false; var inRTP = getNewStatus("UM", "RTP", sData, oData)//inArray(sData, UM_playerNamesReadyToPlayArray) if (inRTP === false) { inPl = getNewStatus("UM", "PP", sData, oData)//inArray(sData, UM_playerNamesCurrentlyPlayingArray) if (inPl === false && inPl === false) { inUnav = getNewStatus("UM", "Unav", sData, oData)//inArray(sData, UM_playerNamesCurrentlyUnavailableArray) } } var testArray = []; if (inRTP === true) { //log("ready to play css", nTd) $(nTd).css('background-color', 'transparent') } else if (inPl === true) { //log("playing css", nTd); $(nTd).css('background-color', '#ffffb3') } else if (inUnav === true) { $(nTd).css('background-color', '#ff8080') } else { $(nTd).css('background-color', 'transparent') } } }, { data: 'vsColumn', sWidth: '10px', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('font-weight', 'bold') } }, { data: 'teamTwo1', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('padding-left', '5px') $(nTd).css('text-align', 'left') //////log(sData) //log("rtp", UM_playerNamesReadyToPlayArray, "pp", UM_playerNamesCurrentlyPlayingArray, UM_playerNamesCurrentlyUnavailableArray) var inRTP = false; var inPl = false; var inUnav = false; var inRTP = getNewStatus("UM", "RTP", sData, oData)//inArray(sData, UM_playerNamesReadyToPlayArray) if (inRTP === false) { inPl = getNewStatus("UM", "PP", sData, oData)//inArray(sData, UM_playerNamesCurrentlyPlayingArray) if (inPl === false && inPl === false) { inUnav = getNewStatus("UM", "Unav", sData, oData)//inArray(sData, UM_playerNamesCurrentlyUnavailableArray) } } if (inRTP === true) { //log("ready to play css", nTd) $(nTd).css('background-color', 'transparent') } else if (inPl === true) { //log("playing css", nTd); $(nTd).css('background-color', '#ffffb3') } else if (inUnav === true) { $(nTd).css('background-color', '#ff8080') } else { $(nTd).css('background-color', 'transparent') } } }, { data: 'teamTwo2', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('padding-left', '5px') $(nTd).css('text-align', 'left') //////log(sData) //////log("arrays:", UM_playerNamesReadyToPlayArray, UM_playerNamesCurrentlyPlayingArray, UM_playerNamesCurrentlyUnavailableArray) var inRTP = false; var inPl = false; var inUnav = false; var inRTP = getNewStatus("UM", "RTP", sData, oData)//inArray(sData, UM_playerNamesReadyToPlayArray) if (inRTP === false) { inPl = getNewStatus("UM", "PP", sData, oData)//inArray(sData, UM_playerNamesCurrentlyPlayingArray) if (inPl === false && inPl === false) { inUnav = getNewStatus("UM", "Unav", sData, oData)//inArray(sData, UM_playerNamesCurrentlyUnavailableArray) } } if (inRTP === true) { //log("ready to play css", nTd) $(nTd).css('background-color', 'transparent') } else if (inPl === true) { //log("playing css", nTd); $(nTd).css('background-color', '#ffffb3') } else if (inUnav === true) { $(nTd).css('background-color', '#ff8080') } else { $(nTd).css('background-color', 'transparent') } }, }, { data: 'status', sWidth: '80px', fnCreatedCell: function (nTd, sData, oData, iRow, iCol) { $(nTd).css('border-left', '0.2vw solid #555555') if (showExpectedTimeColumn === false) { $(nTd).css('border-right', '3px solid #555555') } if(sData === "priority match" && oData.readyToPlay === true){ $(nTd).css('font-weight', 'bold') $(nTd).css('font-style', 'italic') $(nTd).css('background-color', '#71da71') } else if(sData === "priority match" && oData.playersPlaying === true){ $(nTd).css('font-weight', 'bold') $(nTd).css('font-style', 'italic') $(nTd).css('background-color', '#ffffb3') } else if(sData === "priority match" && oData.unavailablePlayers === true){ $(nTd).css('font-weight', 'bold') $(nTd).css('font-style', 'italic') $(nTd).css('background-color', '#ff8080') } else if (sData === readyToPlay) { $(nTd).css('background-color', '#71da71') } else if (sData === playersCurrentlyPlaying ) { $(nTd).css('background-color', '#ffffb3') } else if (sData === playersUnavailable ) { $(nTd).css('background-color', '#ff8080') } }, visible: showStatusPlayersColumn }, { data: my_expectedTimeColumnName /*'shiftNrExpectedTimeMinsStdDev'/*'shiftNrExpectedTimeSecs''StdDevExpectedTime''namedExpectedTimeMins'*/, fnCreatedCell: function (nTd, sData, oData, iRow, iCol){ $(nTd).css('border-right', '3px solid #555555') //$(nTd).css('width', '60px') }, visible: showExpectedTimeColumn } ], }) return my_UMTable } if(noUpcomingMatches === true){ //log("no UM") my_upcomingMatchesTable = makeNoUpcomingMatchesTable(allUMdata, ifPaging, my_lengthMenu) document.getElementById("UM_notes").style = "display: none"; } else { //try { my_upcomingMatchesTable = makeUpcomingMatchesTable(allUMdata, ifPaging, my_lengthMenu) /*} catch (err) { log(err) }*/ } //paging if(ifPaging === true){ function resizeUMTable(){ log("resizing UM") var countUMRows = paginationConfig('upcomingMatchesTable') ////log("countUMRows", countUMRows) my_upcomingMatchesTable.destroy() //////log("UM table destroyed") var my_newLengthMenu = lengthMenu(true, allUMdata, countUMRows) if(noUpcomingMatches === true){ my_upcomingMatchesTable = makeNoUpcomingMatchesTable(allUMdata, ifPaging, my_newLengthMenu) } else { //log("newLengthMenu", my_newLengthMenu) try{ my_upcomingMatchesTable = makeUpcomingMatchesTable(allUMdata, ifPaging, my_newLengthMenu) } catch (err){log(err)} } var my_UMDiv = document.getElementById('upcomingmatches-tab-content') var my_UMDivHeight = my_UMDiv.offsetHeight function checkOverflow(table, allUMdata, ifPaging, origRowscount, my_newLengthMenu, my_tableHeight, pageCount){ //log("overflowcount UM:", UMremakeCount) var my_UMDiv = document.getElementById('upcomingmatches-tab-content') var my_UMDivHeight = my_UMDiv.offsetHeight selectedUMTable = 1 if(my_UMDivHeight>= (availableUMTableHeight + my_paginationNavHeight + my_UMnotesHeight)) { ////log("overflow found in UM", my_UMDivHeight, availableUMTableHeight, UMremakeCount) table.destroy() UMremakeCount += 1 var newRowsCount = origRowscount - UMremakeCount //////log("UM table destroyed", UMremakeCount, origRowscount, newRowsCount) //////log("newRowsCount", newRowsCount) var my_newnewLengthMenu = lengthMenu(true, allUMdata, newRowsCount) UMPageCount = Math.ceil(allUMdata.length / newRowsCount) ////log("UM Page Count", UMPageCount) //////log(my_newnewLengthMenu) if(noUpcomingMatches === true){ my_upcomingMatchesTable = makeNoUpcomingMatchesTable(allUMdata, ifPaging, my_newLengthMenu) } else { try { my_upcomingMatchesTable = makeUpcomingMatchesTable(allUMdata, ifPaging, my_newLengthMenu) } catch (err) { log(err) } } selectedUMTable = 2 checkOverflow(my_upcomingMatchesTable, allUMdata, ifPaging, origRowscount, my_newnewLengthMenu, my_UMDivHeight) } else { var my_activeTab = $('.tab-content').find('.tab-pane.active').attr('id') //log("no more resizing in UM; ativeTab:", my_activeTab) if(my_activeTab === tabTableContents[1] && startTab === tabTableContents[1] && reloadedData === true){ //log("start tab UM") var UMstarttimeout = setTimeout(function(){getUMpageCount()}, 1000) refreshTimeInterval = setInterval(function(){ timeSinceLastRefreshTime += 1}, 1000) reloadedData = false } } } checkOverflow(my_upcomingMatchesTable, allUMdata, ifPaging, countUMRows, my_newLengthMenu, my_UMDivHeight, UMPageCount) } resizeUMTable() //page time config //on table change function getUMpageCount(){ UMremakeCount = 0 UMTimeout = setTimeout(function(){ resizeUMTable() ////log("Page count UM:", my_pageCount) //function pageTime(){ function pageConfig(table){ var tableInfo = table.page.info() UMPageCount = tableInfo.pages if(noUpcomingMatches === true){ upcomingMatchesTabTime = 5000 } else { upcomingMatchesTabTime = (document.getElementById("upcomingTime").value * 1000) - 4000 } pageTimeconfig(true, "UM", my_upcomingMatchesTable, UMPageCount,minPageTime, upcomingMatchesTabTime, allUMdata) } pageConfig(my_upcomingMatchesTable) }, 500) } $('#upcomingMatches-button').on('changeTable', function(e) { UMdetectChangeCount +=1 if (UMdetectChangeCount === 1){ UMclickChange += 1 //log("change table detected in UM with nr.:", UMclickChange, startTab) if(startTab === tabTableContents[1] && timeSinceLastRefreshTime >= reloadDataTimeSecs){ //log("start refresh tab UM") if(sampleData === false){ $.when(checkForAPIChange()) .then(function(){ if(ifAPIChangeDetected === true){ temprefreshTimeout = setTimeout(function(){ removeTables()}, 1000) } else { nextTablePage(true, "UM", my_upcomingMatchesTable, newUMPageTime, newUMTableTime) } }) } else { ifAPIChangeDetected = true temprefreshTimeout = setTimeout(function(){ removeTables()}, 1000) } //getAPIDataAndMakeTables()}, 1000) } else if(UMclickChange === 1 && startTab === tabTableContents[1]){ //log("second time in UM tab and UM start tab") nextTablePage(true, "UM", my_upcomingMatchesTable, newUMPageTime, newUMTableTime) } else if(UMclickChange === 1 && startTab != tabTableContents[1]){ //log("first time in UM tab and UM not start tab") getUMpageCount() } else if(UMclickChange > 1){ //log(">1 time in UM tab") nextTablePage(true, "UM", my_upcomingMatchesTable, newUMPageTime, newUMTableTime) } else { //log("error occured in UM change table detection", UMclickchange, startTab) } } }) $('#upcomingMatches').on('tab', function(e) { //alert("my alert"); }); } /*stop //log*/ try { if(logUpcomingMatch === true){ if(my_upcomingMatches.length === 0){ logUpcomingMatch = false } if(arraycount > 1){ //////log(allUpcomingMatchInfoObjects) //////log("\n ---------- \n new load") //////log("currentIDArray", mycurrentLocalIDArray) var prevArrayNr = arraycount - 1 var prevIDArray = window['load' + prevArrayNr] var prevStringArray = window['StringArray' + prevArrayNr] var currentIDArray = mycurrentLocalIDArray //////log("old array:", prevIDArray,"\nnew array:",currentIDArray) //////log("prev String array:", prevStringArray) var my_locaIDdifferenceArray = $(prevIDArray).not(currentIDArray).get() var uniqueIdsArray = []; $.each(my_locaIDdifferenceArray, function(i, el){ if($.inArray(el, uniqueIdsArray) === -1){ uniqueIdsArray.push(el); } }); //////log("difference", uniqueIdsArray) if(uniqueIdsArray.length > 0){ for(var dif = 0; dif < uniqueIdsArray.length; dif++){ var my_localID = uniqueIdsArray[dif] //////log(my_localID, my_locationsList) var matchObject = my_locationsList.find(x => x.localId === my_localID) //////log(matchObject) var InCompleteMatchIDArray = inArray(my_localID, completeMatchIDArray) if(InCompleteMatchIDArray === true){ //////log(true, "in CompleteIDArray") var inCurrent = inArray(my_localID, mycurrentLocalIDArray) if(inCurrent === false){ //////log("false") var my_currentFinishSingleStringsObject = {} var stop = "stop" var jsCurrentTimeF = new Date() //log(jsCurrentTimeF) var isoCurrentTimeF = jsToisoDate(jsCurrentTimeF) //////log("all um objects,", allUpcomingMatchInfoObjects) //find upcoming match object with lowest UMnr var filter = {localId: my_localID}; var matchIdUpcomingMatchesObjects = [] var _SmatchInfoObjects = allUpcomingMatchInfoObjects.filter(function(item) { for(var key in filter) { //log(filter) if(item[key] === my_localID){ //log("found filtered object:", item) matchIdUpcomingMatchesObjects.push(item) } } }); var filteredObjectsMatchNrs = [] for(var nr = 0 ; nr < matchIdUpcomingMatchesObjects.length; nr++){ var _umnr = matchIdUpcomingMatchesObjects[nr].UMNr //log(_umnr) filteredObjectsMatchNrs.push(_umnr) } filteredObjectsMatchNrs.sort(function(a, b){return a-b}) //log(filteredObjectsMatchNrs) var smallestUMNr = Math.min(filteredObjectsMatchNrs) if(isNaN(smallestUMNr) === true){ lengthObjects = matchIdUpcomingMatchesObjects.length var matchInfoObject = matchIdUpcomingMatchesObjects[lengthObjects - 1] var objectSelected = true //smallestUMNr = selectedmatchidObject.UMNr //log("selected latest obj of same UMNr:", matchInfoObject) } else {var objectSelected = false } //log("smallest:", objectSelected, smallestUMNr) if(objectSelected === false){ var matchInfoObject = matchIdUpcomingMatchesObjects.find(x => x.UMNr === smallestUMNr) } //log("found corresponding object", matchInfoObject) //corresping match id start object var startObject = completeStartObjects.find(x => x.matchId === my_localID) //stop info var processIDF = stop+my_localID.toString() var lastExpectedTime = matchInfoObject.expectedTime var ifReadytoPlayF = matchInfoObject.readyToPlay var ifPlayerPlayingF = matchInfoObject.playersPlaying var ifUnavailableF = matchInfoObject.playersUnavailable var poolnameF = matchInfoObject.pool var expectedTimeDifferenceF = startObject.expectedTime - lastExpectedTime var timeDifferenceSecsF = diff_secs(jsCurrentTimeF, startObject.jsDate); //log(startObject.jsDate) //log(timeDifferenceSecsF) my_currentFinishSingleStringsObject.status = stop my_currentFinishSingleStringsObject.reloadDataTimeInterval = reloadDataTimeSecs my_currentFinishSingleStringsObject.matchId = my_localID my_currentFinishSingleStringsObject.dataReloadCount = reloadDataCount my_currentFinishSingleStringsObject.timeSinceLastRefresh = lastRefreshTimeLog my_currentFinishSingleStringsObject.jsDate = jsCurrentTimeF my_currentFinishSingleStringsObject.isoDate = isoCurrentTimeF my_currentFinishSingleStringsObject.processID = processIDF my_currentFinishSingleStringsObject.expectedTime = lastExpectedTime my_currentFinishSingleStringsObject.ifReadytoPlay = ifReadytoPlayF my_currentFinishSingleStringsObject.ifPlayerPlaying = ifPlayerPlayingF my_currentFinishSingleStringsObject.ifUnavailable = ifUnavailableF my_currentFinishSingleStringsObject.pool = poolnameF my_currentFinishSingleStringsObject.expectedTimeDifference = expectedTimeDifferenceF my_currentFinishSingleStringsObject.timeDifferenceSecs = timeDifferenceSecsF my_stopArray.push(/*tournament_ID,*/ tournamentName, reloadDataCount, processIDF, stop, my_localID, poolnameF, isoCurrentTimeF, lastExpectedTime, ifReadytoPlayF, ifPlayerPlayingF, ifUnavailableF, reloadDataTimeSecs, lastRefreshTimeLog, expectedTimeDifferenceF, timeDifferenceSecsF) completeStopObjets.push(my_currentFinishSingleStringsObject) completeStopArray.push(my_stopArray) var my_stopOutputString = my_stopArray.join(";") var my_StopinputString = my_stopOutputString + ";" /* */ /** INPUT VALUE **/ /* */ //log(my_StopinputString) //objects //UM_stopLog.push(my_currentFinishSingleStringsObject) //UM_loopStopLog.push(my_currentFinishSingleStringsObject) //arrays //UM_stopLog.push(my_stopArray) //UM_loopStopLog.push(my_stopArray) //strings UM_stopLog.push(my_StopinputString) UM_loopStopLog.push(my_StopinputString) } } } } //////log("\n ---------- \n") } if((UM_loopStartLog.length > 0 || UM_loopStopLog.length > 0) && ifMobile === false){ //log(UM_loopStartLog, UM_loopStopLog) UM_loopLogStrings = [] UM_loopLogStrings = UM_loopStartLog.concat(UM_loopStopLog) //log(UM_loopLogStrings) $('#invisibleButton').trigger("click") } } } catch (err){ log(err) } document.getElementById("upcomingMatchesLoader").style.display = "none" if (ifMobile == true) { $("#creditsTextUpcoming").append(creditsTextAppendText) } }
#!/usr/bin/env node // // # Default Entry // // Our default entry point via package.json. *(Once compiled, that is.)* // // **Note:** that this file is in JavaScript because CoffeeScript is // currently unable to properly add hashbangs as this file has. // require('./node/bin').exec()
// https://stephensugden.com/middleware_guide private_urls = { '^/attention': ['coworker', 'girlfriend'], '^/bank_balance':['me'], } roles = { stephen: ['me'], erin: ['girlfriend'], judd: ['coworker'], bob: ['coworker'], } passwords = { me: 'doofus', erin: 'greatest', judd: 'daboss', bob: 'anachronistic discomBOBulation', } var connect = require('connect'); function uselessMiddleware(req, res, next) { next(); } function worseThanUselessMiddleware(req, res, next) { next("Hey are you busy?"); } //function authenticateUrls(urls) { // basicAuthArgs = Array.prototype.slice.call(arguments, 1); // basicAuth = connect.basicAuth('username', 'password'); // function authenticate(req, res, next) { // for (var pattern in urls) { // if (req.path.match(pattern)) { // basicAuth(req, res, next); // return; // } // } // next(); // } // return authenticate; //} function authorizeUrls(urls, roles) { function authorize(req, res, next) { for (var pattern in urls) { if (req.path.match(pattern)) { for (var role in urls[pattern]) { if (user[req.remoteUser].indexOf(role) < 0) { next(new Error("unauthorized")); return; } } } } next(); } return authorize; } nodemailer = require('nodemailer'); function emailErrorNotifier(generic_opts, escalate) { function notifyViaEmail(err, req, res, next) { if(err) { var transporter = nodemailer.createTransport('smtps://user%40gmail.com:pass@smtp.gmail.com') var mailOptions = { from: '"Fred Foo" <foo@blurdybloop.com>', to: 'bar@blurdybloop.com, baz@blurdybloop.com', subject: "ERROR: " + err.constructor.name, body: err.stack, text: 'hello world', html: '<b>Hello world</b>' } //opts.__proto__ = generic_opts; //nodemailer.send(opts, escalate); transport.sendMail(mailOptions, function(error, info){ if (error){ return console.log(error); } console.log('message sent: ' + info.response) ; }); } next(); } } function authCallback(name, password) { return passwords[name] === password; } var stephen = connect(); //stephen.use(authenticateUrls(private_urls, authCallback)); stephen.use(authorizeUrls(private_urls, roles)); stephen.use('/attention', worseThanUselessMiddleware); //stephen.use(emailErrorNotifier({to: 'stephen@betsmartmedia.com'})); stephen.use('/bank_balance', function(req, res, next) { res.end("Don't be Seb-ish"); }) stephen.use('/', function (req, res, next) { res.end("I'm out of coffee"); }); stephen.listen(3000);
result = {}; thegrid = {}; var grid_selector = "#grid-table"; var pager_selector = "#grid-pager"; var TempDeviceType = []; var TempSendType = []; jQuery(function ($) { var data = {}; data.obj = {}; data.obj.PageIndex = 0; data.obj.PageSize = 1000; jQuery.ajax({ type: "Post", method: "Post", url: "/WebService/SimCard.asmx/GetList", timeout: 1800000, async: true, cache: false, contentType: 'application/json; charset=utf-8', dataType: "json", data: JSON.stringify(data), success: function (d, s) { if (d != null) { for (i = 0; i < d.d.Rows.length; ++i) { $("#drpSim").append("<option value='" + d.d.Rows[i].SimID + "'>" + d.d.Rows[i].SimNumber + "</option>") } } } }); var data = {}; data.obj = {}; data.obj.PageIndex = 0; data.obj.PageSize = 1000; data.obj.Catalog = {}; data.obj.Catalog.CatalogTypeID = 4; jQuery.ajax({ type: "Post", method: "Post", url: "/WebService/Catalogs.asmx/GetList", timeout: 1800000, async: true, cache: false, contentType: 'application/json; charset=utf-8', dataType: "json", data: JSON.stringify(data), success: function (d, s) { if (d != null) { for (i = 0; i < d.d.Rows.length; ++i) { TempDeviceType[d.d.Rows[i].CatalogValue] = d.d.Rows[i].CatalogName; $("#drpDeviceType").append("<option value='" + d.d.Rows[i].CatalogValue + "'>" + d.d.Rows[i].CatalogName + "</option>") } } } }); var data = {}; data.obj = {}; data.obj.PageIndex = 0; data.obj.PageSize = 1000; data.obj.Catalog = {}; data.obj.Catalog.CatalogTypeID = 5; jQuery.ajax({ type: "Post", method: "Post", url: "/WebService/Catalogs.asmx/GetList", timeout: 1800000, async: true, cache: false, contentType: 'application/json; charset=utf-8', dataType: "json", data: JSON.stringify(data), success: function (d, s) { if (d != null) { for (i = 0; i < d.d.Rows.length; ++i) { TempSendType[d.d.Rows[i].CatalogValue] = d.d.Rows[i].CatalogName; $("#drpSendType").append("<option value='" + d.d.Rows[i].CatalogValue + "'>" + d.d.Rows[i].CatalogName + "</option>") } } } }); jQuery("#form1").validationEngine(); //resize to fit page size $(window).on('resize.jqGrid', function () { $(grid_selector).jqGrid('setGridWidth', $(".page-content").width()); }) //resize on sidebar collapse/expand var parent_column = $(grid_selector).closest('[class*="col-"]'); $(document).on('settings.ace.jqGrid', function (ev, event_name, collapsed) { if (event_name === 'sidebar_collapsed' || event_name === 'main_container_fixed') { //setTimeout is for webkit only to give time for DOM changes and then redraw!!! setTimeout(function () { $(grid_selector).jqGrid('setGridWidth', parent_column.width()); }, 0); } }) jQuery(grid_selector).jqGrid({ direction: "rtl", ajaxGridOptions: { url: ("/WebService/Device.asmx/GetList"), datatype: 'json', type: "POST", contentType: "application/json; charset=utf-8", complete: function (data, st) { if (st == "success" || st == 'parsererror') { data = JSON.parse(data.responseText); data = data.d; result.rows = []; for (i = 0; i < data.Rows.length; ++i) { result.rows[i] = {}; result.rows[i].id = data.Rows[i].DeviceID; result.rows[i].cell = [ data.Rows[i].DeviceID, data.Rows[i].SerialNum, TempDeviceType[data.Rows[i].DeviceTypeID], data.Rows[i].SimId, data.Rows[i].DeviceVersion, data.Rows[i].DeviceCode, TempSendType[data.Rows[i].SendType], data.Rows[i].SendValue, { DeviceID: data.Rows[i].DeviceID} ]; } var thegrid = $(grid_selector)[0]; result.records = data.RowCount; result.page = data.PageIndex + 1; result.total = Math.ceil(result.records / data.PageSize); //thegrid.addJSONData({"total":"1","page":"1","records":"15","rows":[{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":1,"cell":["BCN","adsf","asdfa"]},{"ID":12,"cell":["BCN1","adsf1","asdfa1"] }]}); thegrid.addJSONData(result); //addClassGrid(); } } }, onInitGrid:function(a){ var table = this; setTimeout(function () { styleCheckbox(table); updateActionIcons(table); updatePagerIcons(table); enableTooltips(table); }, 0); }, serializeGridData: function (postdata) { // mydata = {}; mydata = { obj: postdata }; mydata.obj.OrderBy = postdata.sidx; mydata.obj.Order = postdata.sord; mydata.obj.PageIndex = postdata.page - 1; mydata.obj.PageSize = postdata.rows; mydata.obj.Device = {}; //if (DefaultFilter != "") { // postdata.filters = DefaultFilter; // DefaultFilter = ''; //} //mydata.filter.UserDB.Deleted = false; if (postdata.filters != null && postdata.filters != '') { var rules = JSON.parse(postdata.filters).rules; for (i = 0; i < rules.length; ++i) { if (rules[i].field == 'RegisterDate') { if (rules[i].data != '' && rules[i].op == 'ge') { // >= mydata.filter.MinDate = PTG(rules[i].data); } } else if (rules[i].field == 'SerialNum' && rules[i].data != -1) mydata.obj.Device.SerialNum = rules[i].data; else if (rules[i].field == 'DeviceTypeID' && rules[i].data != -1) mydata.obj.Device.DeviceTypeID = rules[i].data; else if (rules[i].field == 'DeviceVersion' && rules[i].data != -1) mydata.obj.Device.DeviceVersion = rules[i].data; else if (rules[i].field == 'DeviceCode' && rules[i].data != -1) mydata.filter.Device.DeviceCode = rules[i].data; } } return JSON.stringify(mydata); }, //datatype: "local", height: 250, colNames: ['کد ', 'شماره سریال', 'نوع دستگاه', 'کد سیم کارت' ,'ورژن دستگاه','کد دستگاه','نوع ارسال','مقدار ارسال', ''], colModel: [ { name: 'DeviceID', index: 'DeviceID', width: 30, editable: false }, { name: 'SerialNum', index: 'SerialNum', width: 60, editable: true }, { name: 'DeviceTypeID', index: 'DeviceTypeID', width: 60, editable: true }, { name: 'SimId', index: 'SimId', width: 60, editable: true }, { name: 'DeviceVersion', index: 'DeviceVersion', width: 60, editable: true }, { name: 'DeviceCode', index: 'DeviceCode', width: 60, editable: true }, { name: 'SendType', index: 'SendType', width: 60, editable: true }, { name: 'SendValue', index: 'SendValue', width: 60, editable: true }, { name: 'EditDelete', index: 'EditDelete', width: 40,search:false , align: "center", editable: false, formatter: EditDelete } ], viewrecords: true, rowNum: 10, rowList: [10, 20, 30], pager: pager_selector, altRows: true, //toppager: true, // multiselect: true, //multikey: "ctrlKey", multiboxonly: true, loadComplete: function () { var table = this; setTimeout(function () { styleCheckbox(table); updateActionIcons(table); updatePagerIcons(table); enableTooltips(table); }, 0); }, // editurl: "/Handler1.ashx",//nothing is saved // editurl: "/handler1.ashx", caption: "لیست دستگاه ها" //,autowidth: true, /** , grouping:true, groupingView : { groupField : ['name'], groupDataSorted : true, plusicon : 'fa fa-chevron-down bigger-110', minusicon : 'fa fa-chevron-up bigger-110' }, caption: "Grouping" */ }); $(window).triggerHandler('resize.jqGrid');//trigger window resize to make the grid get the correct size // function EditDelete(o) { function EditDelete(cellvalue, options, rowObject) { return '<div data-toggle="modal" data-target="#modalform" class="ui-pg-div ui-inline-edit" onmouseout="jQuery(this).removeClass(' + "'" + 'ui-state-hover' + "'" + ');"' + 'onmouseover="jQuery(this).addClass(' + "'" + 'ui-state-hover' + "'" + ');" onclick="updaterow(' + "'" + rowObject + "'" + ');" ' + ' style="float:left;cursor:pointer;" title="Edit selected row"><span class="ui-icon ui-icon-pencil"></span></div>' + '<div class="ui-pg-div ui-inline-del" onmouseout="jQuery(this).removeClass(' + "'" + 'ui-state-hover' + "'" + ');"' + 'onmouseover="jQuery(this).addClass(' + "'" + 'ui-state-hover' + "'" + ');' + '" onclick="del(' + rowObject[0] + ');" style="float:left;margin-left:5px;" title="Delete selected row"><span class="ui-icon ui-icon-trash"></span></div>'; } ////'" onclick="alert(' + "'" + 'Can Call WS for Delete row with master ID = ' + rowObject + "'" + ');" style="float:left;margin-left:5px;" title="Delete selected row"><span class="ui-icon ui-icon-trash"></span></div>'; //enable search/filter toolbar //jQuery(grid_selector).jqGrid('filterToolbar',{defaultSearch:true,stringResult:true}) //jQuery(grid_selector).filterToolbar({}); //switch element when editing inline function aceSwitch(cellvalue, options, cell) { setTimeout(function () { $(cell).find('input[type=checkbox]') .addClass('ace ace-switch ace-switch-5') .after('<span class="lbl"></span>'); }, 0); } //enable datepicker function pickDate(cellvalue, options, cell) { setTimeout(function () { $(cell).find('input[type=text]') .datepicker({ format: 'yyyy-mm-dd', autoclose: true }); }, 0); } //navButtons jQuery(grid_selector).jqGrid('navGrid', pager_selector, { //navbar options edit: false, editicon: 'ace-icon fa fa-pencil blue', add: false, addicon: 'ace-icon fa fa-plus-circle purple', del: false, delicon: 'ace-icon fa fa-trash-o red', search: true, searchicon: 'ace-icon fa fa-search orange', refresh: true, refreshicon: 'ace-icon fa fa-refresh green', view: true, viewicon: 'ace-icon fa fa-search-plus grey', }, { //edit record form //closeAfterEdit: true, //width: 700, recreateForm: true, beforeShowForm: function (e) { var form = $(e[0]); form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar').wrapInner('<div class="widget-header" />') style_edit_form(form); } }, { //new record form //width: 700, closeAfterAdd: true, recreateForm: true, viewPagerButtons: false, beforeShowForm: function (e) { var form = $(e[0]); form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar') .wrapInner('<div class="widget-header" />') style_edit_form(form); } }, { //delete record form recreateForm: true, beforeShowForm: function (e) { var form = $(e[0]); if (form.data('styled')) return false; form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar').wrapInner('<div class="widget-header" />') style_delete_form(form); form.data('styled', true); }, onClick: function (e) { alert(1); } }, { //search form recreateForm: true, afterShowSearch: function (e) { var form = $(e[0]); form.closest('.ui-jqdialog').find('.ui-jqdialog-title').wrap('<div class="widget-header" />') style_search_form(form); }, afterRedraw: function () { style_search_filters($(this)); } , multipleSearch: true, /** multipleGroup:true, showQuery: true */ }, { //view record form recreateForm: true, beforeShowForm: function (e) { var form = $(e[0]); form.closest('.ui-jqdialog').find('.ui-jqdialog-title').wrap('<div class="widget-header" />') } } ) function style_edit_form(form) { //enable datepicker on "sdate" field and switches for "stock" field form.find('input[name=sdate]').datepicker({ format: 'yyyy-mm-dd', autoclose: true }) .end().find('input[name=stock]') .addClass('ace ace-switch ace-switch-5').after('<span class="lbl"></span>'); //don't wrap inside a label element, the checkbox value won't be submitted (POST'ed) //.addClass('ace ace-switch ace-switch-5').wrap('<label class="inline" />').after('<span class="lbl"></span>'); //update buttons classes var buttons = form.next().find('.EditButton .fm-button'); buttons.addClass('btn btn-sm').find('[class*="-icon"]').hide();//ui-icon, s-icon buttons.eq(0).addClass('btn-primary').prepend('<i class="ace-icon fa fa-check"></i>'); buttons.eq(1).prepend('<i class="ace-icon fa fa-times"></i>') buttons = form.next().find('.navButton a'); buttons.find('.ui-icon').hide(); buttons.eq(0).append('<i class="ace-icon fa fa-chevron-left"></i>'); buttons.eq(1).append('<i class="ace-icon fa fa-chevron-right"></i>'); } function style_delete_form(form) { var buttons = form.next().find('.EditButton .fm-button'); buttons.addClass('btn btn-sm btn-white btn-round').find('[class*="-icon"]').hide();//ui-icon, s-icon buttons.eq(0).addClass('btn-danger').prepend('<i class="ace-icon fa fa-trash-o"></i>'); buttons.eq(1).addClass('btn-default').prepend('<i class="ace-icon fa fa-times"></i>') } function style_search_filters(form) { form.find('.delete-rule').val('X'); form.find('.add-rule').addClass('btn btn-xs btn-primary'); form.find('.add-group').addClass('btn btn-xs btn-success'); form.find('.delete-group').addClass('btn btn-xs btn-danger'); } function style_search_form(form) { var dialog = form.closest('.ui-jqdialog'); var buttons = dialog.find('.EditTable') buttons.find('.EditButton a[id*="_reset"]').addClass('btn btn-sm btn-info').find('.ui-icon').attr('class', 'ace-icon fa fa-retweet'); buttons.find('.EditButton a[id*="_query"]').addClass('btn btn-sm btn-inverse').find('.ui-icon').attr('class', 'ace-icon fa fa-comment-o'); buttons.find('.EditButton a[id*="_search"]').addClass('btn btn-sm btn-purple').find('.ui-icon').attr('class', 'ace-icon fa fa-search'); } function beforeDeleteCallback(e) { var form = $(e[0]); if (form.data('styled')) return false; form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar').wrapInner('<div class="widget-header" />') style_delete_form(form); form.data('styled', true); } function beforeEditCallback(e) { var form = $(e[0]); form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar').wrapInner('<div class="widget-header" />') style_edit_form(form); } //it causes some flicker when reloading or navigating grid //it may be possible to have some custom formatter to do this as the grid is being created to prevent this //or go back to default browser checkbox styles for the grid function styleCheckbox(table) { /** $(table).find('input:checkbox').addClass('ace') .wrap('<label />') .after('<span class="lbl align-top" />') $('.ui-jqgrid-labels th[id*="_cb"]:first-child') .find('input.cbox[type=checkbox]').addClass('ace') .wrap('<label />').after('<span class="lbl align-top" />'); */ } //unlike navButtons icons, action icons in rows seem to be hard-coded //you can change them like this in here if you want function updateActionIcons(table) { /** var replacement = { 'ui-ace-icon fa fa-pencil' : 'ace-icon fa fa-pencil blue', 'ui-ace-icon fa fa-trash-o' : 'ace-icon fa fa-trash-o red', 'ui-icon-disk' : 'ace-icon fa fa-check green', 'ui-icon-cancel' : 'ace-icon fa fa-times red' }; $(table).find('.ui-pg-div span.ui-icon').each(function(){ var icon = $(this); var $class = $.trim(icon.attr('class').replace('ui-icon', '')); if($class in replacement) icon.attr('class', 'ui-icon '+replacement[$class]); }) */ } //replace icons with FontAwesome icons like above function updatePagerIcons(table) { var replacement = { 'ui-icon-seek-first': 'ace-icon fa fa-angle-double-left bigger-140', 'ui-icon-seek-prev': 'ace-icon fa fa-angle-left bigger-140', 'ui-icon-seek-next': 'ace-icon fa fa-angle-right bigger-140', 'ui-icon-seek-end': 'ace-icon fa fa-angle-double-right bigger-140' }; $('.ui-pg-table:not(.navtable) > tbody > tr > .ui-pg-button > .ui-icon').each(function () { var icon = $(this); var $class = $.trim(icon.attr('class').replace('ui-icon', '')); if ($class in replacement) icon.attr('class', 'ui-icon ' + replacement[$class]); }) } function enableTooltips(table) { $('.navtable .ui-pg-button').tooltip({ container: 'body' }); $(table).find('.ui-pg-div').tooltip({ container: 'body' }); } //var selr = jQuery(grid_selector).jqGrid('getGridParam','selrow'); $(document).on('ajaxloadstart', function (e) { $(grid_selector).jqGrid('GridUnload'); $('.ui-jqdialog').remove(); }); }); function GoServer(_datatype, _type, _url, datao, onsuccess, lid) { var datao = JSON.stringify(datao); // datao = datao.replace(/"/g, "'"); jQuery.ajax({ type: _type, url: GetUrlService(_url), contentType: 'application/json; charset=utf-8', dataType: _datatype, data: datao, success: function (d, s) { if (onsuccess != null) onsuccess(d, s); if (lid != null) lid.find('.loading').remove(); }, beforeSend: function () { if (lid != null) { l = $('<img class="loading" src="/images/loading.gif">'); lid.append(l); } }, error: function (xmlHttpRequest, status, err) { if (lid != null) lid.find(".loading").remove(); } }); } function GetUrlService(url) { var qs = document.location.search.split('?')[1]; return url; + "?" + qs; } function LoadService(path, datao, onsuccess, lid) { GoServer('json', 'post', path, datao, onsuccess, lid); }; function SendData(mod) { if ($("#form1").validationEngine('validate')) { //Order = "desc", OrderBy = "CaID", pageid = 1; data = {}; data.cl = {}; data.cl.DeviceID = $('#lblDeviceID').val(); data.cl.SerialNum = $('#txtSerialNum').val();; data.cl.DeviceTypeID = $('#drpDeviceType').val(); data.cl.SimId = $('#drpSim').val(); data.cl.DeviceVersion = $('#txtDeviceVersion').val(); data.cl.DeviceCode = $('#txtDeviceCode').val(); data.cl.SendType = $('#drpSendType').val(); data.cl.SendValue = $('#txtSendValue').val(); if (mod == 0) { method = "Save"; data.cl.DeviceID = -1; } else method = "Edit"; LoadService("/WebService/Device.asmx/" + method, data, function (data, status) { if (status == "success") { jQuery(grid_selector).trigger("reloadGrid"); $("#modalform").modal("hide"); } else alert('خطا در ثبت'); }, $('#Loading')); // document.getElementById('txtcaid').value = '0'; } } function del(id) { if (confirm("آیا مطمین هستید!") == true) { data = {}; data.cl = {}; data.cl.DeviceID = id; method = "Delete"; LoadService("/WebService/Device.asmx/" + method, data, function (data, status) { if (status == "success") { jQuery(grid_selector).trigger("reloadGrid"); } else alert('خطا در ثبت'); }, $('#Loading')); } } function updaterow(str) { // console.log(str); temp = new Array(); temp = str.split(',') //alert(obj); //data = {}; //data = JSON.parse(obj); //alert(data.pid); //data.cl={}; //data.cl.PersonalID=obj.PersonalID; $('#lblDeviceID').val(temp[0]); $('#txtSerialNum').val(temp[1]); $('#drpDeviceType').val(temp[2]); $('#drpSim').val(temp[3]); $('#txtDeviceVersion').val(temp[4]); $('#txtDeviceCode').val(temp[5]); $('#drpSendType').val(temp[6]); $('#txtSendValue').val(temp[7]); $("#btnEdit").show(); $("#btnsend").hide(); //alert(rowobj[0]); //console.log(rowobj); } function Cancel() { $('#lblDeviceID').val(); $('#txtSerialNum').val(); $('#drpDeviceType').val(); $('#drpSim').val(); $('#txtDeviceVersion').val(); $('#txtDeviceCode').val(); $('#drpSendType').val(); $('#txtSendValue').val(); } function AddButton() { Cancel(); $("#btnEdit").hide(); $("#btnsend").show(); }
import JobV2FallbackSerializer from 'travis/serializers/job_v2_fallback'; export default JobV2FallbackSerializer.extend({ attrs: { _finishedAt: { key: 'finished_at' }, _startedAt: { key: 'started_at' }, _config: { key: 'config' } } });
var snooze = require('snooze'); require('snooze-stdlib'); snooze.module('HelloServer', ['snooze-stdlib']) .libs(['controllers', 'services', 'validators', 'dtos', 'routes']) .setPort(8000); snooze.module('HelloServer').wakeup();
module.exports = (app, mydata, socketIO) => { socketIO .on('connection', function(socket) { socket.on('msg', function(msg) { chat.emit('msg', msg); }); }); }
'use strict' var test = require('tape') var telLink = require('./') test(function (t) { t.equal(telLink('411'), 'tel:411') t.throws(telLink) t.end() })
var dotnet = require('electron-dotnet'); //var hello = dotnet.func("./src/Capture/bin/Debug/Capture.dll"); var hello = dotnet.func("./src/Capture/Capture.cs"); //Make method externaly visible this will be referenced in the renderer.js file exports.sayHello = arg => { hello('Capture', function (error, result) { if (error) throw error; if (result) console.log(result); }); }
define(['marionette','config','i18n'], function(Marionette, config) { var Translater = Marionette.Object.extend({ initialize: function(options) { this.url = 'app/locales/__lng__/__ns__.json'; this.initi18n(); }, testInit: function() { this.initi18n(); }, initi18n: function() { if(window && window.app && window.app.user){ var lng = window.app.user.get('language') if (lng != null && lng !=undefined) { // console.log('lng', lng) i18n.init({ resGetPath: this.url, getAsync: true, lng:lng }); }else{ // console.log('2') i18n.init({ resGetPath: this.url, getAsync: true, lng: 'en' }) // lng: config.language || 'en' //navigator.language || navigator.userLanguagenavigator.language || navigator.userLanguage } }else{ // console.log('3') i18n.init({ resGetPath: this.url, getAsync: true, lng: 'en' }) } }, // getUserLanguage: function(){ // if(window && window.app && window.app.user) { // console.log('mescouilles') // return window.app.user.get('language'); // }else{ // console.log('defaultlanguage') // return 'en'; // } // // if(window && window.app && window.app.user) { // // var lng = window.app.user.get('language') // // if (lng != null && lng !=undefined) { // // i18n.init({ // // resGetPath: this.url, // // getAsync: true, // // lng:lng // // }); // // this.initi18n(); // // } // // } // }, getValueFromKey: function(key) { return $.t(key); } }); var translater = new Translater(); return { getTranslater: function(options) { return translater; }, setTranslater: function(options) { // console.log('this in translater', this); var url = 'app/locales/__lng__/__ns__.json'; // console.log('options translater', options) i18n.init({ resGetPath: url, getAsync: false, lng: options }); $(document).i18n(); return this; }, getUserLng: function(){ if(window && window.app && window.app.user) { return window.app.user.get('language'); }else{ return 'en'; } } }; });
// ==UserScript== // @name pageSpeak // @name:zh-CN 中英文语音合成选读 // @namespace tts@reverland.org // @description text to speech Service from responsivevoice.org to read aloud the page // @description:zh-CN 调用responsivevoice.org的语音合成服务朗读选中文本 // @include * // @version 1.1 // @grant GM_xmlhttpRequest // @grant GM_registerMenuCommand // ==/UserScript== window.document.body.addEventListener("keyup", toggleTTS, true); //window.document.body.addEventListener("mouseup", tts, false); GM_registerMenuCommand("start/stop tts", toggleTTS, "t"); var toggle = false; var progressBar = document.createElement('progress'); progressBar.style.position = "fixed"; progressBar.style.left = "0"; progressBar.style.bottom = "0"; progressBar.style.display = "none"; progressBar.style.zIndex = "99999"; document.body.appendChild(progressBar); // 播放状态 var playing = false; function toggleTTS(e) { if (e && e.which == 69 && e.ctrlKey || !e) {//ctrl-e if (toggle) { window.document.body.removeEventListener("mouseup", tts, false); console.log("pageSpeak Stop...") toggle = false; } else { window.document.body.addEventListener("mouseup", tts, false); console.log("pageSpeak Start...") toggle = true; } } } function tts(e) { var text = getText(e); if (!text) { return; } progressBar.style.display = "block"; //console.log("text to speech: ", text); play(text); } function getText(e) { var selectObj = document.getSelection(); // if #text node if (selectObj.anchorNode.nodeType == 3) { //GM_log(selectObj.anchorNode.nodeType.toString()); var word = selectObj.toString(); if (word == "") { return; } // merge multiple spaces word = word.replace(/\s+/g, ' '); // linebreak wordwrap, optimize for pdf.js word = word.replace('-\n',''); // multiline selection, optimize for pdf.js word = word.replace('\n', ' '); //console.log("word:", word); } return word } // split by 100 length function *split(text, maxLength) { var index = 0; var regZh = /[\u4E00-\u9FD5]+/g var step = maxLength; if (!regZh.test(text)) { // en-US断句在标点边界 var counter = 0; while (index < text.length && counter < 20) { step = maxLength; counter++; // search step; // dirty hack 10 is ok! for (let i =0; i < (((text.length - index) < 10)?(text.length - index):10); i++) { if (/^[\s.,?!]+$/m.test(text.substr(index + step, 1))) { step += 1 break; } else { step -= 1; } if (step == 0) { // 包括最后一个字符 step = maxLength + 1; break; } } yield text.slice(index, index + step); index += step; } } else { // chinese! var reg = /[a-zA-Z\s]+/g var counter = 0; while (index < text.length && counter < 20) { counter++; let result = reg.exec(text); if (result) { yield text.slice(index, result.index); yield result[0]; step = result.index - index + result[0].length; } else { yield text.slice(index, index + maxLength); step = maxLength; } index += step; } } } function play(text) { //console.log("[DEBUG] PLAYOUND") var context = new AudioContext(); var voices = []; //var reg = /[\u4E00-\u9FD5]+/g var reg = /[\u4E00-\u9FCC]+/g for (let s of split(text, 100)) { if (!s) { return; } if (!reg.test(s)) { LANG = 'en-US'; } else { LANG = 'zh-CN'; } //var soundUrl = `https://code.responsivevoice.org/getvoice.php?t=${s}&tl=${LANG}&sv=&vn=&pitch=0.5&rate=0.5&vol=1` var soundUrl = `https://code.responsivevoice.org/develop/getvoice.php?t=${s}&tl=${LANG}&sv=&vn=&pitch=0.5&rate=0.5&vol=1` var p = new Promise(function(resolve, reject) { // console.log("text parts: ", s); var ret = GM_xmlhttpRequest({ method: "GET", url: soundUrl, responseType: 'arraybuffer', onload: function(res) { try { // console.log("get data", res.statusText); resolve(res.response); progressBar.setAttribute('value', progressBar.getAttribute('value') + 1); } catch(e) { reject(e); } } }); }); voices.push(p); } progressBar.setAttribute('max', voices.length); progressBar.setAttribute('value', 0); Promise.all(voices).then(playSound, e=>console.log(e)); function playSound(bufferList) { // finish progressBar.style.display = "none"; var reader = new FileReader(); var blob = new Blob(bufferList, {type: 'application/octet-binary'}); reader.addEventListener("loadend", function() { var buffer = reader.result; //console.log("final ArrayBuffer:", buffer); context.decodeAudioData(buffer, function(buffer) { if (playing) { console.log('playing: ', playing); try { source.stop(); playing = false; } catch (e) { console.log(e); } } source = context.createBufferSource(); source.buffer = buffer; source.connect(context.destination); source.start(0); playing = true; source.onended = () => {playing = false;} }) }); reader.readAsArrayBuffer(blob); } }
/* INVOLT CONNECTION SETTINGS Ernest Warzocha 2016 involt.github.io */ //---------------------------------------------------------------------------------------------- /* CONNECTION TYPE Select connection type, only ONE can be defined at once. */ var isSerial = true; //Desktop var isBluetooth = false; //Desktop AND Mobile (BT 2.0) /* LOADING SCREEN Set loaderOnLaunch to false and skip loading screen on app launch. Remember to set default connection settings because it's not possible when app is running. */ var loaderOnLaunch = false; /* DEFAULT SERIAL PORT Choose default serial port to set the connection port when loader is not used. PERSISTENT SERIAL CONNECTION Use isPersistent to hold the connection after app shutdown. The session is returned when relaunching. It's set to false by default because it blocks Arduino sketch upload process. Changes from chrome apps to node-webkit made this currently not working (?). */ var defaultSerialPort = "/dev/cu.usbmodem14131"; var isPersistent = false; /* BLUETOOTH DEFAULT ADDRESS Bluetooth default address. Use when loader is not used. BLUETOOTH DISCOVERY DURATION In some cases it will take more time for some devices to find them. */ var defaultBtAddress = "98:D3:31:90:4C:66"; var discoveryDuration = 3000; /* CONNECTION UUID (Serial Port Profile) */ var uuid = "00001101-0000-1000-8000-00805f9b34fb"; /* BITRATE The bitrate should remain unchanged. If you have to lower the speed don't overload the port from arduino. Bitrate in software and hardware must be the same. */ var bitrate = 57600; /* RECEIVED VALUES UI UPDATE RATE Set update rate of read-only elements in miliseconds. Lower value improves response of UI elements but increases CPU usage. */ var updateRate = 50; /* DEBUG MODE Debug mode logs more information to console. */ var debugMode = false; //----------------------------------------------------------------------------------------------
// localstorage helper class export default class Storage { // define the key to be used here for the data constructor(key, init) { this._key = key /** * [if the storage object is not already present then create it with the default value] * @param {type} !this.dataExists [description] */ if(!this.dataExists) { this.data = init } } /** * [dataExists check if the data exists or not in the localstorage] * @return {Boolean} [true or false] */ get dataExists() { if(localStorage.getItem(this._key) === null) { return false } else { return true } } /** * [data getter for data] * @return {String} [data value from storage] */ get data() { const _data = localStorage.getItem(this._key) let finalData = '' try { finalData = JSON.parse(_data) } catch(e) { finalData = _data } finally { return finalData } } /** * [data setter for data] * @param {String} newdata [the new data to be updated] */ set data(newdata) { localStorage.setItem(this._key, JSON.stringify(newdata)) } /** * [toggleData toggle the value of key assuming it is boolean] */ toggleData() { this.data = !this.data } }
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this notice and otherwise comply with the Use Terms. /*--- es5id: 15.2.3.6-4-619 description: > ES5 Attributes - all attributes in Array.prototype.reduce are correct includes: [runTestCase.js] ---*/ function testcase() { var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce"); var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); var temp = Array.prototype.reduce; try { Array.prototype.reduce = "2010"; var isWritable = (Array.prototype.reduce === "2010"); var isEnumerable = false; for (var prop in Array.prototype) { if (prop === "reduce") { isEnumerable = true; } } delete Array.prototype.reduce; var isConfigurable = !Array.prototype.hasOwnProperty("reduce"); return propertyAreCorrect && isWritable && !isEnumerable && isConfigurable; } finally { Object.defineProperty(Array.prototype, "reduce", { value: temp, writable: true, enumerable: false, configurable: true }); } } runTestCase(testcase);
$(document).ready(function() { /* Datatables*/ $('#product_categories').DataTable({ 'responsive': true, 'ajax': '/catalogue/datatable_product_categories_data' }); /* to init events and plugins when datatable updates */ $(this).on( 'draw.dt', function () { events(); } ); }); /* save new product category */ function save_category(element) { $.ajax({ type: 'POST', url: '/catalogue/ajax_save_product_category', async: false, data: element.serialize(), success: function(data) { $('#myModal').modal('hide'); element[0].reset(); location.reload(); }, error: function() { alert('failure'); } }); } /* get available product categories */ function get_product_categories() { var categories; $.ajax({ type: 'POST', url: '/catalogue/editable_product_categories_data', async: false, success: function(response) { categories = JSON.parse(response); }, error: function() { alert('failure'); } }); return categories; } /* change product_category status enable or disable without deleting it*/ function change_status(element) { var product_category_record_id = element.parent().parent().siblings(":first").text(); var status = 'unchecked'; if ($(element).is(':checked')) { status = 'checked'; } $.ajax({ type: 'POST', url: '/catalogue/ajax_change_status', async: false, data: {'product_category_record_id' : product_category_record_id, 'status' : status}, success: function(data) { }, error: function() { alert('failure'); } }); } /* permanently delete product_category*/ function delete_product_category(element) { var product_category_record_id = element.parent().siblings(":first").text(); swal({ title: "Είστε σίγουροι?", text: "Η κατηγορία θα διαγραφή μόνιμα, και από όλες τις υποκατηγορίες της θα αφαιρεθεί η γονική κατηγορία.", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Διαγραφή", cancelButtonText: "Ακύρωση", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { $.ajax({ type: 'POST', url: '/catalogue/ajax_delete_product_category', async: false, data: {'product_category_record_id' : product_category_record_id}, success: function(data) { element.parent().parent().remove(); swal({ title: "Διεγράφη!", text: "Η κατηγορίας διεγράφη επιτυχώς.", type: "success", confirmButtonColor: "#22BAA0" }); }, error: function() { alert('failure'); } }); } else { swal({ title: "Ακύρωση!", text: "Η διαγραφή κατηγορίας ακυρώθηκέ.", type: "error", confirmButtonColor: "#22BAA0" }); } }); } /* initialize all needed event */ function events() { /* editables */ $.fn.editable.defaults.mode = 'inline'; /* update product_category data via editable */ $('a.category').each(function(){ var product_category_record_id = $(this).parent().siblings(":first").text(); var name = $(this).data('column_name'); $(this).editable({ url: '/catalogue/update_product_category', pk: product_category_record_id, type: 'select', name: name, source: function() {return get_product_categories();}, }); }); /* update product_category parent via editable */ $('#product_categories td a').each(function(){ var product_category_record_id = $(this).parent().siblings(":first").text(); var name = $(this).data('column_name'); $(this).editable({ url: '/catalogue/update_product_category', type: 'text', pk: product_category_record_id, name: name }); }); /* status checkbox type switchery */ var n = Array.prototype.slice.call(document.querySelectorAll(".js-switch")); n.forEach(function(e) { if(!$(e).next().hasClass('switchery')) { new Switchery(e, { color: "#449d44" }); } }); /* change product_category status event */ $(document).on('change','.js-switch', function(e){ e.stopImmediatePropagation(e); change_status($(this)); }); /* product_category delete event */ $(document).on('click','.delete-product-category', function(e){ e.stopImmediatePropagation(e); delete_product($(this)); }); }
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. (function() { 'use strict'; /** * T-Rex runner. * @param {string} outerContainerId Outer containing element id. * @param {Object} opt_config * @constructor * @export */ function Runner(outerContainerId, opt_config) { // Singleton if (Runner.instance_) { return Runner.instance_; } Runner.instance_ = this; this.outerContainerEl = document.querySelector(outerContainerId); this.containerEl = null; this.snackbarEl = null; this.config = opt_config || Runner.config; // Logical dimensions of the container. this.dimensions = Runner.defaultDimensions; this.canvas = null; this.canvasCtx = null; this.tRex = null; this.distanceMeter = null; this.distanceRan = 0; this.highestScore = 0; this.time = 0; this.runningTime = 0; this.msPerFrame = 1000 / FPS; this.currentSpeed = this.config.SPEED; this.obstacles = []; this.activated = false; // Whether the easter egg has been activated. this.playing = false; // Whether the game is currently in play state. this.crashed = false; this.paused = false; this.inverted = false; this.invertTimer = 0; this.resizeTimerId_ = null; this.bdayFlashTimer = null; this.playCount = 0; // Sound FX. this.audioBuffer = null; this.soundFx = {}; // Global web audio context for playing sounds. this.audioContext = null; // Images. this.images = {}; this.imagesLoaded = 0; if (this.isDisabled()) { this.setupDisabledRunner(); } else { this.loadImages(); } } window['Runner'] = Runner; /** * Default game width. * @const */ var DEFAULT_WIDTH = 600; /** * Frames per second. * @const */ var FPS = 60; /** @const */ var IS_HIDPI = window.devicePixelRatio > 1; /** @const */ var IS_IOS = /iPad|iPhone|iPod/.test(window.navigator.platform); /** @const */ var IS_MOBILE = /Android/.test(window.navigator.userAgent) || IS_IOS; /** @const */ var ARCADE_MODE_URL = 'chrome://dino/'; /** * Default game configuration. * @enum {number} */ Runner.config = { ACCELERATION: 0.001, BG_CLOUD_SPEED: 0.2, BOTTOM_PAD: 10, BOTTOM_PAD_BDAY: 26, BDAY_FLASH_DURATION: 1000, BDAY_Y_POS_ADJUST: 16, CLEAR_TIME: 3000, CLOUD_FREQUENCY: 0.5, GAMEOVER_CLEAR_TIME: 750, GAP_COEFFICIENT: 0.6, GRAVITY: 0.6, INITIAL_JUMP_VELOCITY: 12, INVERT_FADE_DURATION: 12000, INVERT_DISTANCE: 700, MAX_BLINK_COUNT: 3, MAX_CLOUDS: 6, MAX_OBSTACLE_LENGTH: 3, MAX_OBSTACLE_DUPLICATION: 2, MAX_SPEED: 13, MIN_JUMP_HEIGHT: 35, MOBILE_SPEED_COEFFICIENT: 1.2, RESOURCE_TEMPLATE_ID: 'audio-resources', SPEED: 6, SPEED_DROP_COEFFICIENT: 3, ARCADE_MODE_INITIAL_TOP_POSITION: 35, ARCADE_MODE_TOP_POSITION_PERCENT: 0.1 }; /** * Default dimensions. * @enum {string} */ Runner.defaultDimensions = { WIDTH: DEFAULT_WIDTH, HEIGHT: 150 }; /** * CSS class names. * @enum {string} */ Runner.classes = { ARCADE_MODE: 'arcade-mode', CANVAS: 'runner-canvas', CONTAINER: 'runner-container', CRASHED: 'crashed', ICON: 'icon-offline', INVERTED: 'inverted', SNACKBAR: 'snackbar', SNACKBAR_SHOW: 'snackbar-show', TOUCH_CONTROLLER: 'controller' }; /** * Sprite definition layout of the spritesheet. * @enum {Object} */ Runner.spriteDefinition = { LDPI: { BALLOON: {x: 417, y: 29}, CACTUS_LARGE: {x: 332, y: 2}, CACTUS_SMALL: {x: 228, y: 2}, CLOUD: {x: 86, y: 2}, HORIZON: {x: 2, y: 54}, MOON: {x: 484, y: 2}, PTERODACTYL: {x: 134, y: 2}, RESTART: {x: 2, y: 2}, TEXT_SPRITE: {x: 655, y: 2}, TREX: {x: 848, y: 2}, TREX_BDAY: {x: 0, y: 0}, SNACK: {x: 384, y: 22}, STAR: {x: 645, y: 2} }, HDPI: { BALLOON: {x: 834, y: 58}, CACTUS_LARGE: {x: 652, y: 2}, CACTUS_SMALL: {x: 446, y: 2}, CLOUD: {x: 166, y: 2}, HORIZON: {x: 2, y: 104}, MOON: {x: 954, y: 2}, PTERODACTYL: {x: 260, y: 2}, RESTART: {x: 2, y: 2}, TEXT_SPRITE: {x: 1294, y: 2}, TREX: {x: 1678, y: 2}, TREX_BDAY: {x: 0, y: 0}, SNACK: {x: 768, y: 44}, STAR: {x: 1276, y: 2} } }; /** * Sound FX. Reference to the ID of the audio tag on interstitial page. * @enum {string} */ Runner.sounds = { BUTTON_PRESS: 'offline-sound-press', HIT: 'offline-sound-hit', SCORE: 'offline-sound-reached' }; /** * Key code mapping. * @enum {Object} */ Runner.keycodes = { JUMP: {'38': 1, '32': 1}, // Up, spacebar DUCK: {'40': 1}, // Down RESTART: {'13': 1} // Enter }; /** * Runner event names. * @enum {string} */ Runner.events = { ANIM_END: 'webkitAnimationEnd', CLICK: 'click', KEYDOWN: 'keydown', KEYUP: 'keyup', POINTERDOWN: 'pointerdown', POINTERUP: 'pointerup', RESIZE: 'resize', TOUCHEND: 'touchend', TOUCHSTART: 'touchstart', VISIBILITY: 'visibilitychange', BLUR: 'blur', FOCUS: 'focus', LOAD: 'load' }; Runner.prototype = { /** * Whether the easter egg has been disabled. CrOS enterprise enrolled devices. * @return {boolean} */ isDisabled: function() { return loadTimeData && loadTimeData.valueExists('disabledEasterEgg'); }, /** * For disabled instances, set up a snackbar with the disabled message. */ setupDisabledRunner: function() { this.containerEl = document.createElement('div'); this.containerEl.className = Runner.classes.SNACKBAR; this.containerEl.textContent = loadTimeData.getValue('disabledEasterEgg'); this.outerContainerEl.appendChild(this.containerEl); // Show notification when the activation key is pressed. document.addEventListener(Runner.events.KEYDOWN, function(e) { if (Runner.keycodes.JUMP[e.keyCode]) { this.containerEl.classList.add(Runner.classes.SNACKBAR_SHOW); document.querySelector('.icon').classList.add('icon-disabled'); } }.bind(this)); }, /** * Setting individual settings for debugging. * @param {string} setting * @param {*} value */ updateConfigSetting: function(setting, value) { if (setting in this.config && value != undefined) { this.config[setting] = value; switch (setting) { case 'GRAVITY': case 'MIN_JUMP_HEIGHT': case 'SPEED_DROP_COEFFICIENT': this.tRex.config[setting] = value; break; case 'INITIAL_JUMP_VELOCITY': this.tRex.setJumpVelocity(value); break; case 'SPEED': this.setSpeed(value); break; } } }, /** * Cache the appropriate image sprite from the page and get the sprite sheet * definition. */ loadImages: function() { if (IS_HIDPI) { Runner.imageSprite = document.getElementById('offline-resources-2x'); Runner.bdayImageSprite = document.getElementById('offline-resources-bday-2x'); this.spriteDef = Runner.spriteDefinition.HDPI; } else { Runner.imageSprite = document.getElementById('offline-resources-1x'); Runner.bdayImageSprite = document.getElementById('offline-resources-bday-1x'); this.spriteDef = Runner.spriteDefinition.LDPI; } if (Runner.imageSprite.complete) { this.init(); } else { // If the images are not yet loaded, add a listener. Runner.imageSprite.addEventListener(Runner.events.LOAD, this.init.bind(this)); } }, /** * Load and decode base 64 encoded sounds. */ loadSounds: function() { if (!IS_IOS) { this.audioContext = new AudioContext(); var resourceTemplate = document.getElementById(this.config.RESOURCE_TEMPLATE_ID).content; for (var sound in Runner.sounds) { var soundSrc = resourceTemplate.getElementById(Runner.sounds[sound]).src; soundSrc = soundSrc.substr(soundSrc.indexOf(',') + 1); var buffer = decodeBase64ToArrayBuffer(soundSrc); // Async, so no guarantee of order in array. this.audioContext.decodeAudioData(buffer, function(index, audioData) { this.soundFx[index] = audioData; }.bind(this, sound)); } } }, /** * Sets the game speed. Adjust the speed accordingly if on a smaller screen. * @param {number} opt_speed */ setSpeed: function(opt_speed) { var speed = opt_speed || this.currentSpeed; // Reduce the speed on smaller mobile screens. if (this.dimensions.WIDTH < DEFAULT_WIDTH) { var mobileSpeed = speed * this.dimensions.WIDTH / DEFAULT_WIDTH * this.config.MOBILE_SPEED_COEFFICIENT; this.currentSpeed = mobileSpeed > speed ? speed : mobileSpeed; } else if (opt_speed) { this.currentSpeed = opt_speed; } }, /** * Game initialiser. */ init: function() { // Hide the static icon. document.querySelector('.' + Runner.classes.ICON).style.visibility = 'hidden'; this.adjustDimensions(); this.setSpeed(); this.containerEl = document.createElement('div'); this.containerEl.className = Runner.classes.CONTAINER; // Player canvas container. this.canvas = createCanvas(this.containerEl, this.dimensions.WIDTH, this.dimensions.HEIGHT, Runner.classes.PLAYER); this.canvasCtx = this.canvas.getContext('2d'); this.canvasCtx.fillStyle = '#f7f7f7'; this.canvasCtx.fill(); Runner.updateCanvasScaling(this.canvas); // Horizon contains clouds, obstacles and the ground. this.horizon = new Horizon(this.canvas, this.spriteDef, this.dimensions, this.config.GAP_COEFFICIENT); // Distance meter this.distanceMeter = new DistanceMeter(this.canvas, this.spriteDef.TEXT_SPRITE, this.dimensions.WIDTH); // Draw t-rex this.tRex = new Trex(this.canvas, this.spriteDef.TREX); this.outerContainerEl.appendChild(this.containerEl); this.startListening(); this.update(); window.addEventListener(Runner.events.RESIZE, this.debounceResize.bind(this)); }, /** * Create the touch controller. A div that covers whole screen. */ createTouchController: function() { this.touchController = document.createElement('div'); this.touchController.className = Runner.classes.TOUCH_CONTROLLER; this.touchController.addEventListener(Runner.events.TOUCHSTART, this); this.touchController.addEventListener(Runner.events.TOUCHEND, this); }, /** * Debounce the resize event. */ debounceResize: function() { if (!this.resizeTimerId_) { this.resizeTimerId_ = setInterval(this.adjustDimensions.bind(this), 250); } }, /** * Adjust game space dimensions on resize. */ adjustDimensions: function() { clearInterval(this.resizeTimerId_); this.resizeTimerId_ = null; var boxStyles = window.getComputedStyle(this.outerContainerEl); var padding = Number(boxStyles.paddingLeft.substr(0, boxStyles.paddingLeft.length - 2)); this.dimensions.WIDTH = this.outerContainerEl.offsetWidth - padding * 2; if (this.isArcadeMode()) { this.dimensions.WIDTH = Math.min(DEFAULT_WIDTH, this.dimensions.WIDTH); if (this.activated) { this.setArcadeModeContainerScale(); } } // Redraw the elements back onto the canvas. if (this.canvas) { this.canvas.width = this.dimensions.WIDTH; this.canvas.height = this.dimensions.HEIGHT; Runner.updateCanvasScaling(this.canvas); this.distanceMeter.calcXPos(this.dimensions.WIDTH); this.clearCanvas(); this.horizon.update(0, 0, true); this.tRex.update(0); // Outer container and distance meter. if (this.playing || this.crashed || this.paused) { this.containerEl.style.width = this.dimensions.WIDTH + 'px'; this.containerEl.style.height = this.dimensions.HEIGHT + 'px'; this.distanceMeter.update(0, Math.ceil(this.distanceRan)); this.stop(); } else { this.tRex.draw(0, 0); } // Game over panel. if (this.crashed && this.gameOverPanel) { this.gameOverPanel.updateDimensions(this.dimensions.WIDTH); this.gameOverPanel.draw(); } } }, /** * Play the game intro. * Canvas container width expands out to the full width. */ playIntro: function() { if (!this.activated && !this.crashed) { this.playingIntro = true; this.tRex.playingIntro = true; // CSS animation definition. var keyframes = '@-webkit-keyframes intro { ' + 'from { width:' + Trex.config.WIDTH + 'px }' + 'to { width: ' + this.dimensions.WIDTH + 'px }' + '}'; document.styleSheets[0].insertRule(keyframes, 0); this.containerEl.addEventListener(Runner.events.ANIM_END, this.startGame.bind(this)); this.containerEl.style.webkitAnimation = 'intro .4s ease-out 1 both'; this.containerEl.style.width = this.dimensions.WIDTH + 'px'; if (this.touchController) { this.outerContainerEl.appendChild(this.touchController); } this.playing = true; this.activated = true; } else if (this.crashed) { this.restart(); } }, /** * Update the game status to started. */ startGame: function() { if (this.isArcadeMode()) { this.setArcadeMode(); } this.runningTime = 0; this.playingIntro = false; this.tRex.playingIntro = false; this.containerEl.style.webkitAnimation = ''; this.playCount++; // Handle tabbing off the page. Pause the current game. document.addEventListener(Runner.events.VISIBILITY, this.onVisibilityChange.bind(this)); window.addEventListener(Runner.events.BLUR, this.onVisibilityChange.bind(this)); window.addEventListener(Runner.events.FOCUS, this.onVisibilityChange.bind(this)); }, clearCanvas: function() { this.canvasCtx.clearRect(0, 0, this.dimensions.WIDTH, this.dimensions.HEIGHT); }, /** * Update the game frame and schedules the next one. */ update: function() { this.updatePending = false; var now = getTimeStamp(); var deltaTime = now - (this.time || now); // Flashing. if (this.bdayFlashTimer != null) { if (this.bdayFlashTimer <= 0) { this.bdayFlashTimer = null; this.tRex.setFlashing(false); this.tRex.enableBdayMode(this.spriteDef.TREX_BDAY); } else { this.bdayFlashTimer -= deltaTime; this.tRex.update(deltaTime); deltaTime = 0; } } this.time = now; if (this.playing) { this.clearCanvas(); if (this.tRex.jumping) { this.tRex.updateJump(deltaTime); } this.runningTime += deltaTime; var hasObstacles = this.runningTime > this.config.CLEAR_TIME; // First jump triggers the intro. if (this.tRex.jumpCount == 1 && !this.playingIntro) { this.playIntro(); } // The horizon doesn't move until the intro is over. if (this.playingIntro) { this.horizon.update(0, this.currentSpeed, hasObstacles); } else { deltaTime = !this.activated ? 0 : deltaTime; this.horizon.update(deltaTime, this.currentSpeed, hasObstacles, this.inverted); } // Check for collisions. var collision = hasObstacles && checkForCollision(this.horizon.obstacles[0], this.tRex); // Ate snack. if (Runner.isBdayModeEnabled() && collision && this.horizon.obstacles[0].typeConfig.type == 'SNACK') { this.horizon.enableBdayMode(); this.tRex.setFlashing(true); collision = false; this.bdayFlashTimer = this.config.BDAY_FLASH_DURATION; } if (!collision) { this.distanceRan += this.currentSpeed * deltaTime / this.msPerFrame; if (this.currentSpeed < this.config.MAX_SPEED) { this.currentSpeed += this.config.ACCELERATION; } } else { this.gameOver(); } var playAchievementSound = this.distanceMeter.update(deltaTime, Math.ceil(this.distanceRan)); if (playAchievementSound) { this.playSound(this.soundFx.SCORE); } // Night mode. if (this.invertTimer > this.config.INVERT_FADE_DURATION) { this.invertTimer = 0; this.invertTrigger = false; this.invert(); } else if (this.invertTimer) { this.invertTimer += deltaTime; } else { var actualDistance = this.distanceMeter.getActualDistance(Math.ceil(this.distanceRan)); if (actualDistance > 0) { this.invertTrigger = !(actualDistance % this.config.INVERT_DISTANCE); if (this.invertTrigger && this.invertTimer === 0) { this.invertTimer += deltaTime; this.invert(); } } } } if (this.playing || (!this.activated && this.tRex.blinkCount < Runner.config.MAX_BLINK_COUNT)) { this.tRex.update(deltaTime); this.scheduleNextUpdate(); } }, /** * Event handler. */ handleEvent: function(e) { return (function(evtType, events) { switch (evtType) { case events.KEYDOWN: case events.TOUCHSTART: case events.POINTERDOWN: this.onKeyDown(e); break; case events.KEYUP: case events.TOUCHEND: case events.POINTERUP: this.onKeyUp(e); break; } }.bind(this))(e.type, Runner.events); }, /** * Bind relevant key / mouse / touch listeners. */ startListening: function() { // Keys. document.addEventListener(Runner.events.KEYDOWN, this); document.addEventListener(Runner.events.KEYUP, this); // Touch / pointer. this.containerEl.addEventListener(Runner.events.TOUCHSTART, this); document.addEventListener(Runner.events.POINTERDOWN, this); document.addEventListener(Runner.events.POINTERUP, this); }, /** * Remove all listeners. */ stopListening: function() { document.removeEventListener(Runner.events.KEYDOWN, this); document.removeEventListener(Runner.events.KEYUP, this); if (this.touchController) { this.touchController.removeEventListener(Runner.events.TOUCHSTART, this); this.touchController.removeEventListener(Runner.events.TOUCHEND, this); } this.containerEl.removeEventListener(Runner.events.TOUCHSTART, this); document.removeEventListener(Runner.events.POINTERDOWN, this); document.removeEventListener(Runner.events.POINTERUP, this); }, /** * Process keydown. * @param {Event} e */ onKeyDown: function(e) { // Prevent native page scrolling whilst tapping on mobile. if (IS_MOBILE && this.playing) { e.preventDefault(); } if (!this.crashed && !this.paused) { if (Runner.keycodes.JUMP[e.keyCode] || e.type == Runner.events.TOUCHSTART) { e.preventDefault(); // Starting the game for the first time. if (!this.playing) { // Started by touch so create a touch controller. if (!this.touchController && e.type == Runner.events.TOUCHSTART) { this.createTouchController(); } this.loadSounds(); this.playing = true; this.update(); if (window.errorPageController) { errorPageController.trackEasterEgg(); } } // Start jump. if (!this.tRex.jumping && !this.tRex.ducking) { this.playSound(this.soundFx.BUTTON_PRESS); this.tRex.startJump(this.currentSpeed); } } else if (this.playing && Runner.keycodes.DUCK[e.keyCode]) { e.preventDefault(); if (this.tRex.jumping) { // Speed drop, activated only when jump key is not pressed. this.tRex.setSpeedDrop(); } else if (!this.tRex.jumping && !this.tRex.ducking) { // Duck. this.tRex.setDuck(true); } } } else if (this.crashed && e.type == Runner.events.TOUCHSTART && e.currentTarget == this.containerEl) { this.restart(); } }, /** * Process key up. * @param {Event} e */ onKeyUp: function(e) { var keyCode = String(e.keyCode); var isjumpKey = Runner.keycodes.JUMP[keyCode] || e.type == Runner.events.TOUCHEND || e.type == Runner.events.POINTERUP; if (this.isRunning() && isjumpKey) { this.tRex.endJump(); } else if (Runner.keycodes.DUCK[keyCode]) { this.tRex.speedDrop = false; this.tRex.setDuck(false); } else if (this.crashed) { // Check that enough time has elapsed before allowing jump key to restart. var deltaTime = getTimeStamp() - this.time; if (Runner.keycodes.RESTART[keyCode] || this.isLeftClickOnCanvas(e) || (deltaTime >= this.config.GAMEOVER_CLEAR_TIME && Runner.keycodes.JUMP[keyCode])) { this.restart(); } } else if (this.paused && isjumpKey) { // Reset the jump state this.tRex.reset(); this.play(); } }, /** * Returns whether the event was a left click on canvas. * On Windows right click is registered as a click. * @param {Event} e * @return {boolean} */ isLeftClickOnCanvas: function(e) { return e.button != null && e.button < 2 && e.type == Runner.events.POINTERUP && e.target == this.canvas; }, /** * RequestAnimationFrame wrapper. */ scheduleNextUpdate: function() { if (!this.updatePending) { this.updatePending = true; this.raqId = requestAnimationFrame(this.update.bind(this)); } }, /** * Whether the game is running. * @return {boolean} */ isRunning: function() { return !!this.raqId; }, /** * Game over state. */ gameOver: function() { this.playSound(this.soundFx.HIT); vibrate(200); this.stop(); this.crashed = true; this.distanceMeter.achievement = false; this.tRex.update(100, Trex.status.CRASHED); // Game over panel. if (!this.gameOverPanel) { this.gameOverPanel = new GameOverPanel(this.canvas, this.spriteDef.TEXT_SPRITE, this.spriteDef.RESTART, this.dimensions); } else { this.gameOverPanel.draw(); } // Update the high score. if (this.distanceRan > this.highestScore) { this.highestScore = Math.ceil(this.distanceRan); this.distanceMeter.setHighScore(this.highestScore); } // Reset the time clock. this.time = getTimeStamp(); }, stop: function() { this.playing = false; this.paused = true; cancelAnimationFrame(this.raqId); this.raqId = 0; }, play: function() { if (!this.crashed) { this.playing = true; this.paused = false; this.tRex.update(0, Trex.status.RUNNING); this.time = getTimeStamp(); this.update(); } }, restart: function() { if (!this.raqId) { this.playCount++; this.runningTime = 0; this.playing = true; this.paused = false; this.crashed = false; this.distanceRan = 0; this.setSpeed(this.config.SPEED); this.time = getTimeStamp(); this.containerEl.classList.remove(Runner.classes.CRASHED); this.clearCanvas(); this.distanceMeter.reset(this.highestScore); this.horizon.reset(); this.tRex.reset(); this.playSound(this.soundFx.BUTTON_PRESS); this.invert(true); this.bdayFlashTimer = null; this.update(); } }, /** * Whether the game should go into arcade mode. * @return {boolean} */ isArcadeMode: function() { return document.title == ARCADE_MODE_URL; }, /** * Hides offline messaging for a fullscreen game only experience. */ setArcadeMode: function() { document.body.classList.add(Runner.classes.ARCADE_MODE); this.setArcadeModeContainerScale(); }, /** * Sets the scaling for arcade mode. */ setArcadeModeContainerScale: function() { var windowHeight = window.innerHeight; var scaleHeight = windowHeight / this.dimensions.HEIGHT; var scaleWidth = window.innerWidth / this.dimensions.WIDTH; var scale = Math.max(1, Math.min(scaleHeight, scaleWidth)); var scaledCanvasHeight = this.dimensions.HEIGHT * scale; // Positions the game container at 10% of the available vertical window // height minus the game container height. var translateY = Math.ceil(Math.max(0, (windowHeight - scaledCanvasHeight - Runner.config.ARCADE_MODE_INITIAL_TOP_POSITION) * Runner.config.ARCADE_MODE_TOP_POSITION_PERCENT)) * window.devicePixelRatio; this.containerEl.style.transform = 'scale(' + scale + ') translateY(' + translateY + 'px)'; }, /** * Pause the game if the tab is not in focus. */ onVisibilityChange: function(e) { if (document.hidden || document.webkitHidden || e.type == 'blur' || document.visibilityState != 'visible') { this.stop(); } else if (!this.crashed) { this.tRex.reset(); this.play(); } }, /** * Play a sound. * @param {SoundBuffer} soundBuffer */ playSound: function(soundBuffer) { if (soundBuffer) { var sourceNode = this.audioContext.createBufferSource(); sourceNode.buffer = soundBuffer; sourceNode.connect(this.audioContext.destination); sourceNode.start(0); } }, /** * Inverts the current page / canvas colors. * @param {boolean} Whether to reset colors. */ invert: function(reset) { if (reset) { document.body.classList.toggle(Runner.classes.INVERTED, false); this.invertTimer = 0; this.inverted = false; } else { this.inverted = document.body.classList.toggle(Runner.classes.INVERTED, this.invertTrigger); } } }; /** * Updates the canvas size taking into * account the backing store pixel ratio and * the device pixel ratio. * * See article by Paul Lewis: * http://www.html5rocks.com/en/tutorials/canvas/hidpi/ * * @param {HTMLCanvasElement} canvas * @param {number} opt_width * @param {number} opt_height * @return {boolean} Whether the canvas was scaled. */ Runner.updateCanvasScaling = function(canvas, opt_width, opt_height) { var context = canvas.getContext('2d'); // Query the various pixel ratios var devicePixelRatio = Math.floor(window.devicePixelRatio) || 1; var backingStoreRatio = Math.floor(context.webkitBackingStorePixelRatio) || 1; var ratio = devicePixelRatio / backingStoreRatio; // Upscale the canvas if the two ratios don't match if (devicePixelRatio !== backingStoreRatio) { var oldWidth = opt_width || canvas.width; var oldHeight = opt_height || canvas.height; canvas.width = oldWidth * ratio; canvas.height = oldHeight * ratio; canvas.style.width = oldWidth + 'px'; canvas.style.height = oldHeight + 'px'; // Scale the context to counter the fact that we've manually scaled // our canvas element. context.scale(ratio, ratio); return true; } else if (devicePixelRatio == 1) { // Reset the canvas width / height. Fixes scaling bug when the page is // zoomed and the devicePixelRatio changes accordingly. canvas.style.width = canvas.width + 'px'; canvas.style.height = canvas.height + 'px'; } return false; }; /** * Whether the bday mode is enabled. * @return {boolean} */ Runner.isBdayModeEnabled = function() { return loadTimeData && loadTimeData.valueExists('bdayMode'); } /** * Get random number. * @param {number} min * @param {number} max * @param {number} */ function getRandomNum(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } /** * Vibrate on mobile devices. * @param {number} duration Duration of the vibration in milliseconds. */ function vibrate(duration) { if (IS_MOBILE && window.navigator.vibrate) { window.navigator.vibrate(duration); } } /** * Create canvas element. * @param {HTMLElement} container Element to append canvas to. * @param {number} width * @param {number} height * @param {string} opt_classname * @return {HTMLCanvasElement} */ function createCanvas(container, width, height, opt_classname) { var canvas = document.createElement('canvas'); canvas.className = opt_classname ? Runner.classes.CANVAS + ' ' + opt_classname : Runner.classes.CANVAS; canvas.width = width; canvas.height = height; container.appendChild(canvas); return canvas; } /** * Decodes the base 64 audio to ArrayBuffer used by Web Audio. * @param {string} base64String */ function decodeBase64ToArrayBuffer(base64String) { var len = (base64String.length / 4) * 3; var str = atob(base64String); var arrayBuffer = new ArrayBuffer(len); var bytes = new Uint8Array(arrayBuffer); for (var i = 0; i < len; i++) { bytes[i] = str.charCodeAt(i); } return bytes.buffer; } /** * Return the current timestamp. * @return {number} */ function getTimeStamp() { return IS_IOS ? new Date().getTime() : performance.now(); } //****************************************************************************** /** * Game over panel. * @param {!HTMLCanvasElement} canvas * @param {Object} textImgPos * @param {Object} restartImgPos * @param {!Object} dimensions Canvas dimensions. * @constructor */ function GameOverPanel(canvas, textImgPos, restartImgPos, dimensions) { this.canvas = canvas; this.canvasCtx = canvas.getContext('2d'); this.canvasDimensions = dimensions; this.textImgPos = textImgPos; this.restartImgPos = restartImgPos; this.draw(); }; /** * Dimensions used in the panel. * @enum {number} */ GameOverPanel.dimensions = { TEXT_X: 0, TEXT_Y: 13, TEXT_WIDTH: 191, TEXT_HEIGHT: 11, RESTART_WIDTH: 36, RESTART_HEIGHT: 32 }; GameOverPanel.prototype = { /** * Update the panel dimensions. * @param {number} width New canvas width. * @param {number} opt_height Optional new canvas height. */ updateDimensions: function(width, opt_height) { this.canvasDimensions.WIDTH = width; if (opt_height) { this.canvasDimensions.HEIGHT = opt_height; } }, /** * Draw the panel. */ draw: function() { var dimensions = GameOverPanel.dimensions; var centerX = this.canvasDimensions.WIDTH / 2; // Game over text. var textSourceX = dimensions.TEXT_X; var textSourceY = dimensions.TEXT_Y; var textSourceWidth = dimensions.TEXT_WIDTH; var textSourceHeight = dimensions.TEXT_HEIGHT; var textTargetX = Math.round(centerX - (dimensions.TEXT_WIDTH / 2)); var textTargetY = Math.round((this.canvasDimensions.HEIGHT - 25) / 3); var textTargetWidth = dimensions.TEXT_WIDTH; var textTargetHeight = dimensions.TEXT_HEIGHT; var restartSourceWidth = dimensions.RESTART_WIDTH; var restartSourceHeight = dimensions.RESTART_HEIGHT; var restartTargetX = centerX - (dimensions.RESTART_WIDTH / 2); var restartTargetY = this.canvasDimensions.HEIGHT / 2; if (IS_HIDPI) { textSourceY *= 2; textSourceX *= 2; textSourceWidth *= 2; textSourceHeight *= 2; restartSourceWidth *= 2; restartSourceHeight *= 2; } textSourceX += this.textImgPos.x; textSourceY += this.textImgPos.y; // Game over text from sprite. this.canvasCtx.drawImage(Runner.imageSprite, textSourceX, textSourceY, textSourceWidth, textSourceHeight, textTargetX, textTargetY, textTargetWidth, textTargetHeight); // Restart button. this.canvasCtx.drawImage(Runner.imageSprite, this.restartImgPos.x, this.restartImgPos.y, restartSourceWidth, restartSourceHeight, restartTargetX, restartTargetY, dimensions.RESTART_WIDTH, dimensions.RESTART_HEIGHT); } }; //****************************************************************************** /** * Check for a collision. * @param {!Obstacle} obstacle * @param {!Trex} tRex T-rex object. * @param {HTMLCanvasContext} opt_canvasCtx Optional canvas context for drawing * collision boxes. * @return {Array<CollisionBox>} */ function checkForCollision(obstacle, tRex, opt_canvasCtx) { var obstacleBoxXPos = Runner.defaultDimensions.WIDTH + obstacle.xPos; // Adjustments are made to the bounding box as there is a 1 pixel white // border around the t-rex and obstacles. var tRexBox = new CollisionBox( tRex.xPos + 1, tRex.yPos + 1, tRex.config.WIDTH - 2, (tRex.bdayModeActive ? tRex.config.HEIGHT_BDAY : tRex.config.HEIGHT) - 2); var obstacleBox = new CollisionBox( obstacle.xPos + 1, obstacle.yPos + 1, obstacle.typeConfig.width * obstacle.size - 2, obstacle.typeConfig.height - 2); // Debug outer box if (opt_canvasCtx) { drawCollisionBoxes(opt_canvasCtx, tRexBox, obstacleBox); } // Simple outer bounds check. if (boxCompare(tRexBox, obstacleBox)) { var collisionBoxes = obstacle.collisionBoxes; var tRexCollisionBoxes = tRex.ducking ? Trex.collisionBoxes.DUCKING : Trex.collisionBoxes.RUNNING; // Detailed axis aligned box check. for (var t = 0; t < tRexCollisionBoxes.length; t++) { for (var i = 0; i < collisionBoxes.length; i++) { // Adjust the box to actual positions. var adjTrexBox = createAdjustedCollisionBox(tRexCollisionBoxes[t], tRexBox); var adjObstacleBox = createAdjustedCollisionBox(collisionBoxes[i], obstacleBox); var crashed = boxCompare(adjTrexBox, adjObstacleBox); if (tRex.bdayModeActive) { adjTrexBox.y += Runner.config.BDAY_Y_POS_ADJUST; } // Draw boxes for debug. if (opt_canvasCtx) { drawCollisionBoxes(opt_canvasCtx, adjTrexBox, adjObstacleBox); } if (crashed) { return [adjTrexBox, adjObstacleBox]; } } } } return false; }; /** * Adjust the collision box. * @param {!CollisionBox} box The original box. * @param {!CollisionBox} adjustment Adjustment box. * @return {CollisionBox} The adjusted collision box object. */ function createAdjustedCollisionBox(box, adjustment) { return new CollisionBox( box.x + adjustment.x, box.y + adjustment.y, box.width, box.height); }; /** * Draw the collision boxes for debug. */ function drawCollisionBoxes(canvasCtx, tRexBox, obstacleBox) { canvasCtx.save(); canvasCtx.strokeStyle = '#f00'; canvasCtx.strokeRect(tRexBox.x, tRexBox.y, tRexBox.width, tRexBox.height); canvasCtx.strokeStyle = '#0f0'; canvasCtx.strokeRect(obstacleBox.x, obstacleBox.y, obstacleBox.width, obstacleBox.height); canvasCtx.restore(); }; /** * Compare two collision boxes for a collision. * @param {CollisionBox} tRexBox * @param {CollisionBox} obstacleBox * @return {boolean} Whether the boxes intersected. */ function boxCompare(tRexBox, obstacleBox) { var crashed = false; var tRexBoxX = tRexBox.x; var tRexBoxY = tRexBox.y; var obstacleBoxX = obstacleBox.x; var obstacleBoxY = obstacleBox.y; // Axis-Aligned Bounding Box method. if (tRexBox.x < obstacleBoxX + obstacleBox.width && tRexBox.x + tRexBox.width > obstacleBoxX && tRexBox.y < obstacleBox.y + obstacleBox.height && tRexBox.height + tRexBox.y > obstacleBox.y) { crashed = true; } return crashed; }; //****************************************************************************** /** * Collision box object. * @param {number} x X position. * @param {number} y Y Position. * @param {number} w Width. * @param {number} h Height. */ function CollisionBox(x, y, w, h) { this.x = x; this.y = y; this.width = w; this.height = h; }; //****************************************************************************** /** * Obstacle. * @param {HTMLCanvasCtx} canvasCtx * @param {Obstacle.type} type * @param {Object} spritePos Obstacle position in sprite. * @param {Object} dimensions * @param {number} gapCoefficient Mutipler in determining the gap. * @param {number} speed * @param {number} opt_xOffset */ function Obstacle(canvasCtx, type, spriteImgPos, dimensions, gapCoefficient, speed, opt_xOffset) { this.canvasCtx = canvasCtx; this.spritePos = spriteImgPos; this.typeConfig = type; this.gapCoefficient = gapCoefficient; this.size = getRandomNum(1, Obstacle.MAX_OBSTACLE_LENGTH); this.dimensions = dimensions; this.remove = false; this.xPos = dimensions.WIDTH + (opt_xOffset || 0); this.yPos = 0; this.width = 0; this.collisionBoxes = []; this.gap = 0; this.speedOffset = 0; this.imageSprite = this.typeConfig.type == 'SNACK' ? Runner.bdayImageSprite : Runner.imageSprite; // For animated obstacles. this.currentFrame = 0; this.timer = 0; this.init(speed); }; /** * Coefficient for calculating the maximum gap. * @const */ Obstacle.MAX_GAP_COEFFICIENT = 1.5; /** * Maximum obstacle grouping count. * @const */ Obstacle.MAX_OBSTACLE_LENGTH = 3, Obstacle.prototype = { /** * Initialise the DOM for the obstacle. * @param {number} speed */ init: function(speed) { this.cloneCollisionBoxes(); // Only allow sizing if we're at the right speed. if (this.size > 1 && this.typeConfig.multipleSpeed > speed) { this.size = 1; } this.width = this.typeConfig.width * this.size; // Check if obstacle can be positioned at various heights. if (Array.isArray(this.typeConfig.yPos)) { var yPosConfig = IS_MOBILE ? this.typeConfig.yPosMobile : this.typeConfig.yPos; this.yPos = yPosConfig[getRandomNum(0, yPosConfig.length - 1)]; } else { this.yPos = this.typeConfig.yPos; } this.draw(); // Make collision box adjustments, // Central box is adjusted to the size as one box. // ____ ______ ________ // _| |-| _| |-| _| |-| // | |<->| | | |<--->| | | |<----->| | // | | 1 | | | | 2 | | | | 3 | | // |_|___|_| |_|_____|_| |_|_______|_| // if (this.size > 1) { this.collisionBoxes[1].width = this.width - this.collisionBoxes[0].width - this.collisionBoxes[2].width; this.collisionBoxes[2].x = this.width - this.collisionBoxes[2].width; } // For obstacles that go at a different speed from the horizon. if (this.typeConfig.speedOffset) { this.speedOffset = Math.random() > 0.5 ? this.typeConfig.speedOffset : -this.typeConfig.speedOffset; } this.gap = this.getGap(this.gapCoefficient, speed); }, /** * Draw and crop based on size. */ draw: function() { var sourceWidth = this.typeConfig.width; var sourceHeight = this.typeConfig.height; if (IS_HIDPI) { sourceWidth = sourceWidth * 2; sourceHeight = sourceHeight * 2; } // X position in sprite. var sourceX = (sourceWidth * this.size) * (0.5 * (this.size - 1)) + this.spritePos.x; // Animation frames. if (this.currentFrame > 0) { sourceX += sourceWidth * this.currentFrame; } this.canvasCtx.drawImage(this.imageSprite, sourceX, this.spritePos.y, sourceWidth * this.size, sourceHeight, this.xPos, this.yPos, this.typeConfig.width * this.size, this.typeConfig.height); }, /** * Obstacle frame update. * @param {number} deltaTime * @param {number} speed */ update: function(deltaTime, speed) { if (!this.remove) { if (this.typeConfig.speedOffset) { speed += this.speedOffset; } this.xPos -= Math.floor((speed * FPS / 1000) * deltaTime); // Update frame if (this.typeConfig.numFrames) { this.timer += deltaTime; if (this.timer >= this.typeConfig.frameRate) { this.currentFrame = this.currentFrame == this.typeConfig.numFrames - 1 ? 0 : this.currentFrame + 1; this.timer = 0; } } this.draw(); if (!this.isVisible()) { this.remove = true; } } }, /** * Calculate a random gap size. * - Minimum gap gets wider as speed increses * @param {number} gapCoefficient * @param {number} speed * @return {number} The gap size. */ getGap: function(gapCoefficient, speed) { var minGap = Math.round(this.width * speed + this.typeConfig.minGap * gapCoefficient); var maxGap = Math.round(minGap * Obstacle.MAX_GAP_COEFFICIENT); return getRandomNum(minGap, maxGap); }, /** * Check if obstacle is visible. * @return {boolean} Whether the obstacle is in the game area. */ isVisible: function() { return this.xPos + this.width > 0; }, /** * Make a copy of the collision boxes, since these will change based on * obstacle type and size. */ cloneCollisionBoxes: function() { var collisionBoxes = this.typeConfig.collisionBoxes; for (var i = collisionBoxes.length - 1; i >= 0; i--) { this.collisionBoxes[i] = new CollisionBox(collisionBoxes[i].x, collisionBoxes[i].y, collisionBoxes[i].width, collisionBoxes[i].height); } } }; /** * Obstacle definitions. * minGap: minimum pixel space betweeen obstacles. * multipleSpeed: Speed at which multiples are allowed. * speedOffset: speed faster / slower than the horizon. * minSpeed: Minimum speed which the obstacle can make an appearance. */ Obstacle.types = [ { type: 'CACTUS_SMALL', width: 17, height: 35, yPos: 105, multipleSpeed: 4, minGap: 120, minSpeed: 0, collisionBoxes: [ new CollisionBox(0, 7, 5, 27), new CollisionBox(4, 0, 6, 34), new CollisionBox(10, 4, 7, 14) ] }, { type: 'CACTUS_LARGE', width: 25, height: 50, yPos: 90, multipleSpeed: 7, minGap: 120, minSpeed: 0, collisionBoxes: [ new CollisionBox(0, 12, 7, 38), new CollisionBox(8, 0, 7, 49), new CollisionBox(13, 10, 10, 38) ] }, { type: 'PTERODACTYL', width: 46, height: 40, yPos: [ 100, 75, 50 ], // Variable height. yPosMobile: [ 100, 50 ], // Variable height mobile. multipleSpeed: 999, minSpeed: 8.5, minGap: 150, collisionBoxes: [ new CollisionBox(15, 15, 16, 5), new CollisionBox(18, 21, 24, 6), new CollisionBox(2, 14, 4, 3), new CollisionBox(6, 10, 4, 7), new CollisionBox(10, 8, 6, 9) ], numFrames: 2, frameRate: 1000/6, speedOffset: .8 }, { type: 'SNACK', width: 33, height: 42, yPos: 85, multipleSpeed: 999, minGap: 999, minSpeed: 0, collisionBoxes: [ new CollisionBox(0, 0, 40, 40) ] } ]; //****************************************************************************** /** * T-rex game character. * @param {HTMLCanvas} canvas * @param {Object} spritePos Positioning within image sprite. * @constructor */ function Trex(canvas, spritePos) { this.canvas = canvas; this.canvasCtx = canvas.getContext('2d'); this.imageSprite = Runner.imageSprite; this.spritePos = spritePos; this.xPos = 0; this.yPos = 0; // Position when on the ground. this.groundYPos = 0; this.currentFrame = 0; this.currentAnimFrames = []; this.blinkDelay = 0; this.blinkCount = 0; this.animStartTime = 0; this.timer = 0; this.msPerFrame = 1000 / FPS; this.config = Trex.config; // Current status. this.status = Trex.status.WAITING; this.jumping = false; this.ducking = false; this.jumpVelocity = 0; this.reachedMinHeight = false; this.speedDrop = false; this.jumpCount = 0; this.jumpspotX = 0; this.bdayModeActive = false; this.flashing = false; this.init(); }; /** * T-rex player config. * @enum {number} */ Trex.config = { DROP_VELOCITY: -5, FLASH_OFF: 175, FLASH_ON: 100, GRAVITY: 0.6, HEIGHT: 47, HEIGHT_BDAY: 63, HEIGHT_DUCK: 25, INIITAL_JUMP_VELOCITY: -10, INTRO_DURATION: 1500, MAX_JUMP_HEIGHT: 30, MIN_JUMP_HEIGHT: 30, SPEED_DROP_COEFFICIENT: 3, SPRITE_WIDTH: 262, START_X_POS: 50, WIDTH: 44, WIDTH_DUCK: 59 }; /** * Used in collision detection. * @type {Array<CollisionBox>} */ Trex.collisionBoxes = { DUCKING: [ new CollisionBox(1, 18, 55, 25) ], RUNNING: [ new CollisionBox(22, 0, 17, 16), new CollisionBox(1, 18, 30, 9), new CollisionBox(10, 35, 14, 8), new CollisionBox(1, 24, 29, 5), new CollisionBox(5, 30, 21, 4), new CollisionBox(9, 34, 15, 4) ] }; /** * Animation states. * @enum {string} */ Trex.status = { CRASHED: 'CRASHED', DUCKING: 'DUCKING', JUMPING: 'JUMPING', RUNNING: 'RUNNING', WAITING: 'WAITING' }; /** * Blinking coefficient. * @const */ Trex.BLINK_TIMING = 7000; /** * Animation config for different states. * @enum {Object} */ Trex.animFrames = { WAITING: { frames: [44, 0], msPerFrame: 1000 / 3 }, RUNNING: { frames: [88, 132], msPerFrame: 1000 / 12 }, CRASHED: { frames: [220], msPerFrame: 1000 / 60 }, JUMPING: { frames: [0], msPerFrame: 1000 / 60 }, DUCKING: { frames: [264, 323], msPerFrame: 1000 / 8 } }; Trex.prototype = { /** * T-rex player initaliser. * Sets the t-rex to blink at random intervals. */ init: function() { this.groundYPos = Runner.defaultDimensions.HEIGHT - this.config.HEIGHT - Runner.config.BOTTOM_PAD; this.yPos = this.groundYPos; this.minJumpHeight = this.groundYPos - this.config.MIN_JUMP_HEIGHT; this.draw(0, 0); this.update(0, Trex.status.WAITING); }, /** * @param {Object} spritePos New positioning within image sprite. */ enableBdayMode: function(spritePos) { this.bdayModeActive = true; this.spritePos = spritePos; this.imageSprite = Runner.bdayImageSprite; this.groundYPos = Runner.defaultDimensions.HEIGHT - this.config.HEIGHT - Runner.config.BOTTOM_PAD_BDAY; this.yPos -= Runner.config.BDAY_Y_POS_ADJUST; }, /** * @param {boolean} status Whether dino is flashing. */ setFlashing: function(status) { this.flashing = status; }, /** * Setter for the jump velocity. * The approriate drop velocity is also set. */ setJumpVelocity: function(setting) { this.config.INIITAL_JUMP_VELOCITY = -setting; this.config.DROP_VELOCITY = -setting / 2; }, /** * Set the animation status. * @param {!number} deltaTime * @param {Trex.status} status Optional status to switch to. */ update: function(deltaTime, opt_status) { this.timer += deltaTime; // Update the status. if (opt_status) { this.status = opt_status; this.currentFrame = 0; this.msPerFrame = Trex.animFrames[opt_status].msPerFrame; this.currentAnimFrames = Trex.animFrames[opt_status].frames; if (opt_status == Trex.status.WAITING) { this.animStartTime = getTimeStamp(); this.setBlinkDelay(); } } // Game intro animation, T-rex moves in from the left. if (this.playingIntro && this.xPos < this.config.START_X_POS) { this.xPos += Math.round((this.config.START_X_POS / this.config.INTRO_DURATION) * deltaTime); } if (this.status == Trex.status.WAITING) { this.blink(getTimeStamp()); } else { this.draw(this.currentAnimFrames[this.currentFrame], 0); } // Update the frame position. if (!this.flashing && this.timer >= this.msPerFrame) { this.currentFrame = this.currentFrame == this.currentAnimFrames.length - 1 ? 0 : this.currentFrame + 1; this.timer = 0; } // Speed drop becomes duck if the down key is still being pressed. if (this.speedDrop && this.yPos == this.groundYPos) { this.speedDrop = false; this.setDuck(true); } }, /** * Draw the t-rex to a particular position. * @param {number} x * @param {number} y */ draw: function(x, y) { var sourceX = x; var sourceY = y; var sourceWidth = this.ducking && this.status != Trex.status.CRASHED ? this.config.WIDTH_DUCK : this.config.WIDTH; var sourceHeight = this.bdayModeActive ? this.config.HEIGHT_BDAY : this.config.HEIGHT; var outputHeight = sourceHeight; if (IS_HIDPI) { sourceX *= 2; sourceY *= 2; sourceWidth *= 2; sourceHeight *= 2; } // Adjustments for sprite sheet position. sourceX += this.spritePos.x; sourceY += this.spritePos.y; // Flashing. if (this.flashing) { if (this.timer < this.config.FLASH_ON) { this.canvasCtx.globalAlpha = 0.5; } else if (this.timer > this.config.FLASH_OFF) { this.timer = 0; } } // Ducking. if (this.ducking && this.status != Trex.status.CRASHED) { this.canvasCtx.drawImage(this.imageSprite, sourceX, sourceY, sourceWidth, sourceHeight, this.xPos, this.yPos, this.config.WIDTH_DUCK, outputHeight); } else { // Crashed whilst ducking. Trex is standing up so needs adjustment. if (this.ducking && this.status == Trex.status.CRASHED) { this.xPos++; } // Standing / running this.canvasCtx.drawImage(this.imageSprite, sourceX, sourceY, sourceWidth, sourceHeight, this.xPos, this.yPos, this.config.WIDTH, outputHeight); } this.canvasCtx.globalAlpha = 1; }, /** * Sets a random time for the blink to happen. */ setBlinkDelay: function() { this.blinkDelay = Math.ceil(Math.random() * Trex.BLINK_TIMING); }, /** * Make t-rex blink at random intervals. * @param {number} time Current time in milliseconds. */ blink: function(time) { var deltaTime = time - this.animStartTime; if (deltaTime >= this.blinkDelay) { this.draw(this.currentAnimFrames[this.currentFrame], 0); if (this.currentFrame == 1) { // Set new random delay to blink. this.setBlinkDelay(); this.animStartTime = time; this.blinkCount++; } } }, /** * Initialise a jump. * @param {number} speed */ startJump: function(speed) { if (!this.jumping) { this.update(0, Trex.status.JUMPING); // Tweak the jump velocity based on the speed. this.jumpVelocity = this.config.INIITAL_JUMP_VELOCITY - (speed / 10); this.jumping = true; this.reachedMinHeight = false; this.speedDrop = false; } }, /** * Jump is complete, falling down. */ endJump: function() { if (this.reachedMinHeight && this.jumpVelocity < this.config.DROP_VELOCITY) { this.jumpVelocity = this.config.DROP_VELOCITY; } }, /** * Update frame for a jump. * @param {number} deltaTime * @param {number} speed */ updateJump: function(deltaTime, speed) { var msPerFrame = Trex.animFrames[this.status].msPerFrame; var framesElapsed = deltaTime / msPerFrame; // Speed drop makes Trex fall faster. if (this.speedDrop) { this.yPos += Math.round(this.jumpVelocity * this.config.SPEED_DROP_COEFFICIENT * framesElapsed); } else { this.yPos += Math.round(this.jumpVelocity * framesElapsed); } this.jumpVelocity += this.config.GRAVITY * framesElapsed; // Minimum height has been reached. if (this.yPos < this.minJumpHeight || this.speedDrop) { this.reachedMinHeight = true; } // Reached max height if (this.yPos < this.config.MAX_JUMP_HEIGHT || this.speedDrop) { this.endJump(); } // Back down at ground level. Jump completed. if (this.yPos > this.groundYPos) { this.reset(); this.jumpCount++; } }, /** * Set the speed drop. Immediately cancels the current jump. */ setSpeedDrop: function() { this.speedDrop = true; this.jumpVelocity = 1; }, /** * @param {boolean} isDucking. */ setDuck: function(isDucking) { if (isDucking && this.status != Trex.status.DUCKING) { this.update(0, Trex.status.DUCKING); this.ducking = true; } else if (this.status == Trex.status.DUCKING) { this.update(0, Trex.status.RUNNING); this.ducking = false; } }, /** * Reset the t-rex to running at start of game. */ reset: function() { this.yPos = this.groundYPos; this.jumpVelocity = 0; this.jumping = false; this.ducking = false; this.update(0, Trex.status.RUNNING); this.midair = false; this.speedDrop = false; this.jumpCount = 0; } }; //****************************************************************************** /** * Handles displaying the distance meter. * @param {!HTMLCanvasElement} canvas * @param {Object} spritePos Image position in sprite. * @param {number} canvasWidth * @constructor */ function DistanceMeter(canvas, spritePos, canvasWidth) { this.canvas = canvas; this.canvasCtx = canvas.getContext('2d'); this.image = Runner.imageSprite; this.spritePos = spritePos; this.x = 0; this.y = 5; this.currentDistance = 0; this.maxScore = 0; this.highScore = 0; this.container = null; this.digits = []; this.achievement = false; this.defaultString = ''; this.flashTimer = 0; this.flashIterations = 0; this.invertTrigger = false; this.config = DistanceMeter.config; this.maxScoreUnits = this.config.MAX_DISTANCE_UNITS; this.init(canvasWidth); }; /** * @enum {number} */ DistanceMeter.dimensions = { WIDTH: 10, HEIGHT: 13, DEST_WIDTH: 11 }; /** * Y positioning of the digits in the sprite sheet. * X position is always 0. * @type {Array<number>} */ DistanceMeter.yPos = [0, 13, 27, 40, 53, 67, 80, 93, 107, 120]; /** * Distance meter config. * @enum {number} */ DistanceMeter.config = { // Number of digits. MAX_DISTANCE_UNITS: 5, // Distance that causes achievement animation. ACHIEVEMENT_DISTANCE: 100, // Used for conversion from pixel distance to a scaled unit. COEFFICIENT: 0.025, // Flash duration in milliseconds. FLASH_DURATION: 1000 / 4, // Flash iterations for achievement animation. FLASH_ITERATIONS: 3 }; DistanceMeter.prototype = { /** * Initialise the distance meter to '00000'. * @param {number} width Canvas width in px. */ init: function(width) { var maxDistanceStr = ''; this.calcXPos(width); this.maxScore = this.maxScoreUnits; for (var i = 0; i < this.maxScoreUnits; i++) { this.draw(i, 0); this.defaultString += '0'; maxDistanceStr += '9'; } this.maxScore = parseInt(maxDistanceStr); }, /** * Calculate the xPos in the canvas. * @param {number} canvasWidth */ calcXPos: function(canvasWidth) { this.x = canvasWidth - (DistanceMeter.dimensions.DEST_WIDTH * (this.maxScoreUnits + 1)); }, /** * Draw a digit to canvas. * @param {number} digitPos Position of the digit. * @param {number} value Digit value 0-9. * @param {boolean} opt_highScore Whether drawing the high score. */ draw: function(digitPos, value, opt_highScore) { var sourceWidth = DistanceMeter.dimensions.WIDTH; var sourceHeight = DistanceMeter.dimensions.HEIGHT; var sourceX = DistanceMeter.dimensions.WIDTH * value; var sourceY = 0; var targetX = digitPos * DistanceMeter.dimensions.DEST_WIDTH; var targetY = this.y; var targetWidth = DistanceMeter.dimensions.WIDTH; var targetHeight = DistanceMeter.dimensions.HEIGHT; // For high DPI we 2x source values. if (IS_HIDPI) { sourceWidth *= 2; sourceHeight *= 2; sourceX *= 2; } sourceX += this.spritePos.x; sourceY += this.spritePos.y; this.canvasCtx.save(); if (opt_highScore) { // Left of the current score. var highScoreX = this.x - (this.maxScoreUnits * 2) * DistanceMeter.dimensions.WIDTH; this.canvasCtx.translate(highScoreX, this.y); } else { this.canvasCtx.translate(this.x, this.y); } this.canvasCtx.drawImage(this.image, sourceX, sourceY, sourceWidth, sourceHeight, targetX, targetY, targetWidth, targetHeight ); this.canvasCtx.restore(); }, /** * Covert pixel distance to a 'real' distance. * @param {number} distance Pixel distance ran. * @return {number} The 'real' distance ran. */ getActualDistance: function(distance) { return distance ? Math.round(distance * this.config.COEFFICIENT) : 0; }, /** * Update the distance meter. * @param {number} distance * @param {number} deltaTime * @return {boolean} Whether the acheivement sound fx should be played. */ update: function(deltaTime, distance) { var paint = true; var playSound = false; if (!this.achievement) { distance = this.getActualDistance(distance); // Score has gone beyond the initial digit count. if (distance > this.maxScore && this.maxScoreUnits == this.config.MAX_DISTANCE_UNITS) { this.maxScoreUnits++; this.maxScore = parseInt(this.maxScore + '9'); } else { this.distance = 0; } if (distance > 0) { // Acheivement unlocked if (distance % this.config.ACHIEVEMENT_DISTANCE == 0) { // Flash score and play sound. this.achievement = true; this.flashTimer = 0; playSound = true; } // Create a string representation of the distance with leading 0. var distanceStr = (this.defaultString + distance).substr(-this.maxScoreUnits); this.digits = distanceStr.split(''); } else { this.digits = this.defaultString.split(''); } } else { // Control flashing of the score on reaching acheivement. if (this.flashIterations <= this.config.FLASH_ITERATIONS) { this.flashTimer += deltaTime; if (this.flashTimer < this.config.FLASH_DURATION) { paint = false; } else if (this.flashTimer > this.config.FLASH_DURATION * 2) { this.flashTimer = 0; this.flashIterations++; } } else { this.achievement = false; this.flashIterations = 0; this.flashTimer = 0; } } // Draw the digits if not flashing. if (paint) { for (var i = this.digits.length - 1; i >= 0; i--) { this.draw(i, parseInt(this.digits[i])); } } this.drawHighScore(); return playSound; }, /** * Draw the high score. */ drawHighScore: function() { this.canvasCtx.save(); this.canvasCtx.globalAlpha = .8; for (var i = this.highScore.length - 1; i >= 0; i--) { this.draw(i, parseInt(this.highScore[i], 10), true); } this.canvasCtx.restore(); }, /** * Set the highscore as a array string. * Position of char in the sprite: H - 10, I - 11. * @param {number} distance Distance ran in pixels. */ setHighScore: function(distance) { distance = this.getActualDistance(distance); var highScoreStr = (this.defaultString + distance).substr(-this.maxScoreUnits); this.highScore = ['10', '11', ''].concat(highScoreStr.split('')); }, /** * Reset the distance meter back to '00000'. */ reset: function() { this.update(0); this.achievement = false; } }; //****************************************************************************** /** * Cloud background item. * Similar to an obstacle object but without collision boxes. * @param {HTMLCanvasElement} canvas Canvas element. * @param {Object} spritePos Position of image in sprite. * @param {boolean} isBalloon Switch Cloud to balloon. * @param {number} containerWidth */ function Cloud(canvas, spritePos, containerWidth, isBalloon) { this.canvas = canvas; this.canvasCtx = this.canvas.getContext('2d'); this.spritePos = spritePos; this.containerWidth = containerWidth; this.xPos = containerWidth; this.yPos = 0; this.remove = false; this.cloudGap = getRandomNum(Cloud.config.MIN_CLOUD_GAP, Cloud.config.MAX_CLOUD_GAP); this.isBalloon = isBalloon; this.imageSprite = isBalloon ? Runner.bdayImageSprite : Runner.imageSprite; this.init(); }; /** * Cloud object config. * @enum {number} */ Cloud.config = { HEIGHT: 14, HEIGHT_BALLOON: 34, MAX_CLOUD_GAP: 400, MAX_SKY_LEVEL: 30, MIN_CLOUD_GAP: 100, MIN_SKY_LEVEL: 71, WIDTH: 46, WIDTH_BALLOON: 16 }; Cloud.prototype = { /** * Initialise the cloud. Sets the Cloud height. */ init: function() { this.yPos = getRandomNum(Cloud.config.MAX_SKY_LEVEL, Cloud.config.MIN_SKY_LEVEL); this.draw(); }, /** * Draw the cloud. */ draw: function() { this.canvasCtx.save(); var sourceWidth = this.isBalloon ? Cloud.config.WIDTH_BALLOON : Cloud.config.WIDTH; var sourceHeight = this.isBalloon ? Cloud.config.HEIGHT_BALLOON : Cloud.config.HEIGHT; var outputWidth = sourceWidth; var outputHeight = sourceHeight; if (IS_HIDPI) { sourceWidth = sourceWidth * 2; sourceHeight = sourceHeight * 2; } this.canvasCtx.drawImage(this.imageSprite, this.spritePos.x, this.spritePos.y, sourceWidth, sourceHeight, this.xPos, this.yPos, outputWidth, outputHeight); this.canvasCtx.restore(); }, /** * Update the cloud position. * @param {number} speed */ update: function(speed) { if (!this.remove) { this.xPos -= Math.ceil(speed); this.draw(); // Mark as removeable if no longer in the canvas. if (!this.isVisible()) { this.remove = true; } } }, /** * Check if the cloud is visible on the stage. * @return {boolean} */ isVisible: function() { return this.xPos + Cloud.config.WIDTH > 0; } }; //****************************************************************************** /** * Nightmode shows a moon and stars on the horizon. */ function NightMode(canvas, spritePos, containerWidth) { this.spritePos = spritePos; this.canvas = canvas; this.canvasCtx = canvas.getContext('2d'); this.xPos = containerWidth - 50; this.yPos = 30; this.currentPhase = 0; this.opacity = 0; this.containerWidth = containerWidth; this.stars = []; this.drawStars = false; this.placeStars(); }; /** * @enum {number} */ NightMode.config = { FADE_SPEED: 0.035, HEIGHT: 40, MOON_SPEED: 0.25, NUM_STARS: 2, STAR_SIZE: 9, STAR_SPEED: 0.3, STAR_MAX_Y: 70, WIDTH: 20 }; NightMode.phases = [140, 120, 100, 60, 40, 20, 0]; NightMode.prototype = { /** * Update moving moon, changing phases. * @param {boolean} activated Whether night mode is activated. * @param {number} delta */ update: function(activated, delta) { // Moon phase. if (activated && this.opacity == 0) { this.currentPhase++; if (this.currentPhase >= NightMode.phases.length) { this.currentPhase = 0; } } // Fade in / out. if (activated && (this.opacity < 1 || this.opacity == 0)) { this.opacity += NightMode.config.FADE_SPEED; } else if (this.opacity > 0) { this.opacity -= NightMode.config.FADE_SPEED; } // Set moon positioning. if (this.opacity > 0) { this.xPos = this.updateXPos(this.xPos, NightMode.config.MOON_SPEED); // Update stars. if (this.drawStars) { for (var i = 0; i < NightMode.config.NUM_STARS; i++) { this.stars[i].x = this.updateXPos(this.stars[i].x, NightMode.config.STAR_SPEED); } } this.draw(); } else { this.opacity = 0; this.placeStars(); } this.drawStars = true; }, updateXPos: function(currentPos, speed) { if (currentPos < -NightMode.config.WIDTH) { currentPos = this.containerWidth; } else { currentPos -= speed; } return currentPos; }, draw: function() { var moonSourceWidth = this.currentPhase == 3 ? NightMode.config.WIDTH * 2 : NightMode.config.WIDTH; var moonSourceHeight = NightMode.config.HEIGHT; var moonSourceX = this.spritePos.x + NightMode.phases[this.currentPhase]; var moonOutputWidth = moonSourceWidth; var starSize = NightMode.config.STAR_SIZE; var starSourceX = Runner.spriteDefinition.LDPI.STAR.x; if (IS_HIDPI) { moonSourceWidth *= 2; moonSourceHeight *= 2; moonSourceX = this.spritePos.x + (NightMode.phases[this.currentPhase] * 2); starSize *= 2; starSourceX = Runner.spriteDefinition.HDPI.STAR.x; } this.canvasCtx.save(); this.canvasCtx.globalAlpha = this.opacity; // Stars. if (this.drawStars) { for (var i = 0; i < NightMode.config.NUM_STARS; i++) { this.canvasCtx.drawImage(Runner.imageSprite, starSourceX, this.stars[i].sourceY, starSize, starSize, Math.round(this.stars[i].x), this.stars[i].y, NightMode.config.STAR_SIZE, NightMode.config.STAR_SIZE); } } // Moon. this.canvasCtx.drawImage(Runner.imageSprite, moonSourceX, this.spritePos.y, moonSourceWidth, moonSourceHeight, Math.round(this.xPos), this.yPos, moonOutputWidth, NightMode.config.HEIGHT); this.canvasCtx.globalAlpha = 1; this.canvasCtx.restore(); }, // Do star placement. placeStars: function() { var segmentSize = Math.round(this.containerWidth / NightMode.config.NUM_STARS); for (var i = 0; i < NightMode.config.NUM_STARS; i++) { this.stars[i] = {}; this.stars[i].x = getRandomNum(segmentSize * i, segmentSize * (i + 1)); this.stars[i].y = getRandomNum(0, NightMode.config.STAR_MAX_Y); if (IS_HIDPI) { this.stars[i].sourceY = Runner.spriteDefinition.HDPI.STAR.y + NightMode.config.STAR_SIZE * 2 * i; } else { this.stars[i].sourceY = Runner.spriteDefinition.LDPI.STAR.y + NightMode.config.STAR_SIZE * i; } } }, reset: function() { this.currentPhase = 0; this.opacity = 0; this.update(false); } }; //****************************************************************************** /** * Horizon Line. * Consists of two connecting lines. Randomly assigns a flat / bumpy horizon. * @param {HTMLCanvasElement} canvas * @param {Object} spritePos Horizon position in sprite. * @constructor */ function HorizonLine(canvas, spritePos) { this.spritePos = spritePos; this.canvas = canvas; this.canvasCtx = canvas.getContext('2d'); this.sourceDimensions = {}; this.dimensions = HorizonLine.dimensions; this.sourceXPos = [this.spritePos.x, this.spritePos.x + this.dimensions.WIDTH]; this.xPos = []; this.yPos = 0; this.bumpThreshold = 0.5; this.setSourceDimensions(); this.draw(); }; /** * Horizon line dimensions. * @enum {number} */ HorizonLine.dimensions = { WIDTH: 600, HEIGHT: 12, YPOS: 127 }; HorizonLine.prototype = { /** * Set the source dimensions of the horizon line. */ setSourceDimensions: function() { for (var dimension in HorizonLine.dimensions) { if (IS_HIDPI) { if (dimension != 'YPOS') { this.sourceDimensions[dimension] = HorizonLine.dimensions[dimension] * 2; } } else { this.sourceDimensions[dimension] = HorizonLine.dimensions[dimension]; } this.dimensions[dimension] = HorizonLine.dimensions[dimension]; } this.xPos = [0, HorizonLine.dimensions.WIDTH]; this.yPos = HorizonLine.dimensions.YPOS; }, /** * Return the crop x position of a type. */ getRandomType: function() { return Math.random() > this.bumpThreshold ? this.dimensions.WIDTH : 0; }, /** * Draw the horizon line. */ draw: function() { this.canvasCtx.drawImage(Runner.imageSprite, this.sourceXPos[0], this.spritePos.y, this.sourceDimensions.WIDTH, this.sourceDimensions.HEIGHT, this.xPos[0], this.yPos, this.dimensions.WIDTH, this.dimensions.HEIGHT); this.canvasCtx.drawImage(Runner.imageSprite, this.sourceXPos[1], this.spritePos.y, this.sourceDimensions.WIDTH, this.sourceDimensions.HEIGHT, this.xPos[1], this.yPos, this.dimensions.WIDTH, this.dimensions.HEIGHT); }, /** * Update the x position of an indivdual piece of the line. * @param {number} pos Line position. * @param {number} increment */ updateXPos: function(pos, increment) { var line1 = pos; var line2 = pos == 0 ? 1 : 0; this.xPos[line1] -= increment; this.xPos[line2] = this.xPos[line1] + this.dimensions.WIDTH; if (this.xPos[line1] <= -this.dimensions.WIDTH) { this.xPos[line1] += this.dimensions.WIDTH * 2; this.xPos[line2] = this.xPos[line1] - this.dimensions.WIDTH; this.sourceXPos[line1] = this.getRandomType() + this.spritePos.x; } }, /** * Update the horizon line. * @param {number} deltaTime * @param {number} speed */ update: function(deltaTime, speed) { var increment = Math.floor(speed * (FPS / 1000) * deltaTime); if (this.xPos[0] <= 0) { this.updateXPos(0, increment); } else { this.updateXPos(1, increment); } this.draw(); }, /** * Reset horizon to the starting position. */ reset: function() { this.xPos[0] = 0; this.xPos[1] = HorizonLine.dimensions.WIDTH; } }; //****************************************************************************** /** * Horizon background class. * @param {HTMLCanvasElement} canvas * @param {Object} spritePos Sprite positioning. * @param {Object} dimensions Canvas dimensions. * @param {number} gapCoefficient * @constructor */ function Horizon(canvas, spritePos, dimensions, gapCoefficient) { this.canvas = canvas; this.canvasCtx = this.canvas.getContext('2d'); this.config = Horizon.config; this.dimensions = dimensions; this.gapCoefficient = gapCoefficient; this.obstacles = []; this.obstacleHistory = []; this.horizonOffsets = [0, 0]; this.cloudFrequency = this.config.CLOUD_FREQUENCY; this.spritePos = spritePos; this.nightMode = null; this.bdayModeActive = false; // Cloud this.clouds = []; this.cloudSpeed = this.config.BG_CLOUD_SPEED; // Horizon this.horizonLine = null; this.init(); }; /** * Horizon config. * @enum {number} */ Horizon.config = { BG_CLOUD_SPEED: 0.2, BUMPY_THRESHOLD: .3, CLOUD_FREQUENCY: .5, HORIZON_HEIGHT: 16, MAX_CLOUDS: 6 }; Horizon.prototype = { /** * Initialise the horizon. Just add the line and a cloud. No obstacles. */ init: function() { this.addCloud(); this.horizonLine = new HorizonLine(this.canvas, this.spritePos.HORIZON); this.nightMode = new NightMode(this.canvas, this.spritePos.MOON, this.dimensions.WIDTH); }, /** * Enable additional items. */ enableBdayMode: function() { this.bdayModeActive = true; this.removeFirstObstacle(); }, /** * @param {number} deltaTime * @param {number} currentSpeed * @param {boolean} updateObstacles Used as an override to prevent * the obstacles from being updated / added. This happens in the * ease in section. * @param {boolean} showNightMode Night mode activated. */ update: function(deltaTime, currentSpeed, updateObstacles, showNightMode) { this.runningTime += deltaTime; this.horizonLine.update(deltaTime, currentSpeed); this.nightMode.update(showNightMode); this.updateClouds(deltaTime, currentSpeed); if (updateObstacles) { this.updateObstacles(deltaTime, currentSpeed); } }, /** * Update the cloud positions. * @param {number} deltaTime * @param {number} currentSpeed */ updateClouds: function(deltaTime, speed) { var cloudSpeed = this.cloudSpeed / 1000 * deltaTime * speed; var numClouds = this.clouds.length; if (numClouds) { for (var i = numClouds - 1; i >= 0; i--) { this.clouds[i].update(cloudSpeed); } var lastCloud = this.clouds[numClouds - 1]; // Check for adding a new cloud. if (numClouds < this.config.MAX_CLOUDS && (this.dimensions.WIDTH - lastCloud.xPos) > lastCloud.cloudGap && this.cloudFrequency > Math.random()) { this.addCloud(); } // Remove expired clouds. this.clouds = this.clouds.filter(function(obj) { return !obj.remove; }); } else { this.addCloud(); } }, /** * Update the obstacle positions. * @param {number} deltaTime * @param {number} currentSpeed */ updateObstacles: function(deltaTime, currentSpeed) { // Obstacles, move to Horizon layer. var updatedObstacles = this.obstacles.slice(0); for (var i = 0; i < this.obstacles.length; i++) { var obstacle = this.obstacles[i]; obstacle.update(deltaTime, currentSpeed); // Clean up existing obstacles. if (obstacle.remove) { updatedObstacles.shift(); } } this.obstacles = updatedObstacles; if (this.obstacles.length > 0) { var lastObstacle = this.obstacles[this.obstacles.length - 1]; if (lastObstacle && !lastObstacle.followingObstacleCreated && lastObstacle.isVisible() && (lastObstacle.xPos + lastObstacle.width + lastObstacle.gap) < this.dimensions.WIDTH) { this.addNewObstacle(currentSpeed); lastObstacle.followingObstacleCreated = true; } } else { // Create new obstacles. this.addNewObstacle(currentSpeed); } }, removeFirstObstacle: function() { this.obstacles.shift(); }, /** * Add a new obstacle. * @param {number} currentSpeed */ addNewObstacle: function(currentSpeed) { var obstacleCount = Runner.isBdayModeEnabled() && !this.bdayModeActive ? Obstacle.types.length - 1 : Obstacle.types.length - 2; var obstacleTypeIndex = getRandomNum(0, obstacleCount); var obstacleType = Obstacle.types[obstacleTypeIndex]; // Check for multiples of the same type of obstacle. // Also check obstacle is available at current speed. if (this.duplicateObstacleCheck(obstacleType.type) || currentSpeed < obstacleType.minSpeed) { this.addNewObstacle(currentSpeed); } else { var obstacleSpritePos = this.spritePos[obstacleType.type]; this.obstacles.push(new Obstacle(this.canvasCtx, obstacleType, obstacleSpritePos, this.dimensions, this.gapCoefficient, currentSpeed, obstacleType.width)); this.obstacleHistory.unshift(obstacleType.type); if (this.obstacleHistory.length > 1) { this.obstacleHistory.splice(Runner.config.MAX_OBSTACLE_DUPLICATION); } } }, /** * Returns whether the previous two obstacles are the same as the next one. * Maximum duplication is set in config value MAX_OBSTACLE_DUPLICATION. * @return {boolean} */ duplicateObstacleCheck: function(nextObstacleType) { var duplicateCount = 0; for (var i = 0; i < this.obstacleHistory.length; i++) { duplicateCount = this.obstacleHistory[i] == nextObstacleType ? duplicateCount + 1 : 0; } return duplicateCount >= Runner.config.MAX_OBSTACLE_DUPLICATION; }, /** * Reset the horizon layer. * Remove existing obstacles and reposition the horizon line. */ reset: function() { this.obstacles = []; this.horizonLine.reset(); this.nightMode.reset(); }, /** * Update the canvas width and scaling. * @param {number} width Canvas width. * @param {number} height Canvas height. */ resize: function(width, height) { this.canvas.width = width; this.canvas.height = height; }, /** * Add a new cloud to the horizon. */ addCloud: function() { var cloudType = this.bdayModeActive && getRandomNum(0, 1) > 0 ? this.spritePos.BALLOON : this.spritePos.CLOUD; this.clouds.push(new Cloud(this.canvas, cloudType, this.dimensions.WIDTH, cloudType == this.spritePos.BALLOON)); } }; })();
function baz() { function bar() { if (a) console.log(a); } let a = 1; return bar; }
import {buildSyntax} from '../../parser/syntax' export class Porps { constructor(props, scope, element) { var attributes = [] var propAttributes = [] var events = [] var preMethods = [] var methods = scope.methods // var $data = scope.$data props.forEach((prop) => { var key = prop.key // 去掉头就是第一位啦!! var keyStr = key.substring(1, key.length) var value = prop.value // 属性绑定 if (key.startsWith(':')) { var result = buildSyntax(scope, value) scope.$data.on(value.split(/[\.\[\]]\.?/).join('.'), element) if (!result) { console.error('[method error] can`t find ', keyStr) return } // 以后value将会是一个函数,要使用scope代入 propAttributes.push({key: keyStr, value: result}) } else if (key.startsWith('@')) { // 方法绑定 if (!methods.hasOwnProperty(value)) { console.error('[method error] can`t find ', value) return } events.push({key: keyStr, value: methods[value].bind(scope)}) } else if (key.startsWith('i-')) { // TODO: 未来需要添加一些诸如 i-for,i-if等等的功能就在这里实现啦 } else { attributes.push({key, value}) } }) this.propAttributes = propAttributes this.attributes = attributes this.events = events this.preMethods = preMethods } bindProps(el) { this.propAttributes.forEach(_ => el.setAttribute(_.key, _.value())) this.attributes.forEach(_ => el.setAttribute(_.key, _.value)) this.events.forEach(_ => el.addEventListener(_.key, _.value)) } }
(function(global){ global.StorageType = { // // Implementation of set, using the keys of a hash // set: function() { var set = {}; return { add: function(k, v) { v = v ? v : true; set[k] = v }, get: function(k) { return set[k] }, remove: function(k) { delete set[k] }, contains: function(k) { return (k in set) } } }, // // Implementation of stack, using an array (LIFO) // stack: function(initialArray) { initialArray = initialArray ? initialArray : []; var stack = Array.prototype.slice.call(initialArray); return { length: function() { return stack.length }, pop: function(){ return stack.pop() }, push: function(val) { return stack.push(val) } } }, // // Implementation of queue, using an array (FIFO) // queue: function(initialArray) { initialArray = initialArray ? initialArray : []; var queue = Array.prototype.slice.call(initialArray); return { length: function() { return queue.length }, head: function() { return queue.shift() }, insert: function(val) { return queue.push(val) } } }, priorityQueue: function(initialArray) { initialArray = initialArray ? initialArray : []; var pq = {}; function push(i) { var rank = i.rank(); if (pq[rank] === undefined) { pq[rank] = [] } pq[rank].push(i); } function compareInts(a, b){ return parseInt(a) > parseInt(b); } initialArray.forEach(push); return { push: push, pop: function() { var key = Object.keys(pq).sort(compareInts).shift() , val = pq[key].shift() ; if (pq[key].length === 0) delete pq[key]; return val; }, length: function() { var total = 0; Object.keys(pq).forEach(function(k){ total += pq[k].length }); return total; } } } } })(typeof module !== 'undefined' && module.exports ? module.exports : this);
/** Smoothly scroll element to the given target (element.scrollTop) for the given duration Returns a promise that's fulfilled when done, or rejected if interrupted */ export default (element, target, duration, scrollEmmiter)=>{ if (element.scrollTop === target) { return Promise.resolve(); } target = Math.round(target); duration = Math.round(duration); if (duration < 0) { return Promise.reject("bad duration"); } if (duration === 0) { element.scrollTop = target; return Promise.resolve(); } const start_time = Date.now(); const end_time = start_time + duration; const start_top = element.scrollTop; const distance = target - start_top; // based on http://en.wikipedia.org/wiki/Smoothstep const smooth_step = (start, end, point)=> { if(point <= start) { return 0; } if(point >= end) { return 1; } const x = (point - start) / (end - start); // interpolation return x*x*(3 - 2*x); } return new Promise((resolve, reject)=>{ // This is to keep track of where the element's scrollTop is // supposed to be, based on what we're doing let previous_top = element.scrollTop; // This is like a think function from a game loop const scroll_frame = ()=> { if(scrollEmmiter){ scrollEmmiter.emit({}) } // set the scrollTop for this frame const now = Date.now(); const point = smooth_step(start_time, end_time, now); const frameTop = Math.round(start_top + (distance * point)); element.scrollTop = frameTop; // check if we're done! if(now >= end_time) { resolve(); return; } // If we were supposed to scroll but didn't, then we // probably hit the limit, so consider it done; not // interrupted. if(element.scrollTop === previous_top && element.scrollTop !== frameTop) { resolve(); return; } previous_top = element.scrollTop; // schedule next frame for execution setTimeout(scroll_frame, 0); } // boostrap the animation process setTimeout(scroll_frame, 0); }); }
module.exports = function(grunt) { 'use strict'; require('time-grunt')(grunt); grunt.loadNpmTasks('grunt-browserstacktunnel-wrapper'); var path = require('path'); require('load-grunt-config')(grunt, { configPath: path.join(process.cwd(), 'grunt', 'tasks'), init: true, data: { options: { }, paths: require(path.join(process.cwd(), 'grunt', 'options/') + 'paths.json') }, loadGruntTasks: { config: require('./package.json'), scope: 'devDependencies' }, postProcess: function() {} }); };
//custom (function(webim) { var path = _IMC.path; webim.extend(webim.setting.defaults.data, _IMC.setting); var cookie_key = "_webim_cookie_"; if( _IMC.is_visitor ) { cookie_key = "_webim_v_cookie_"; } if( _IMC.user != "" ) { cookie_key = cookie_key + _IMC.user.id; } webim.status.defaults.key = cookie_key; webim.route( { online: path + "/index.php?action=online", offline: path + "/index.php?action=offline", deactivate: path + "/index.php?action=refresh", message: path + "/index.php?action=message", presence: path + "/index.php?action=presence", status: path + "/index.php?action=status", setting: path + "/index.php?action=setting", history: path + "/index.php?action=history", clear: path + "/index.php?action=clear_history", download: path + "/index.php?action=download_history", buddies: path + "/index.php?action=buddies", //room actions invite: path + "/index.php?action=invite", join: path + "/index.php?action=join", leave: path + "/index.php?action=leave", block: path + "/index.php?action=block", unblock: path + "/index.php?action=unblock", members: path + "/index.php?action=members", //notifications notifications: path + "/index.php?action=notifications", //upload files upload: path + "/static/images/upload.php" } ); webim.ui.emot.init({"dir": path + "/static/images/emot/default"}); var soundUrls = { lib: path + "/static/assets/sound.swf", msg: path + "/static/assets/sound/msg.mp3" }; var ui = new webim.ui(document.body, { imOptions: { jsonp: _IMC.jsonp }, soundUrls: soundUrls, //layout: "layout.popup", layoutOptions: { unscalable: _IMC.is_visitor, detachable: true //true }, buddyChatOptions: { downloadHistory: !_IMC.is_visitor, //simple: _IMC.is_visitor, upload: _IMC.upload && !_IMC.is_visitor }, roomChatOptions: { downloadHistory: !_IMC.is_visitor, upload: _IMC.upload } }), im = ui.im; //全局化 window.webimUI = ui; if( _IMC.user ) im.setUser( _IMC.user ); if( _IMC.menu ) ui.addApp("menu", { "data": _IMC.menu } ); if( _IMC.enable_shortcut ) ui.layout.addShortcut( _IMC.menu ); ui.addApp("buddy", { showUnavailable: _IMC.show_unavailable, is_login: _IMC['is_login'], disable_login: true, collapse: false, //disable_user: _IMC.is_visitor, //simple: _IMC.is_visitor, loginOptions: _IMC['login_options'] }); if(!_IMC.is_visitor) { if( _IMC.enable_room )ui.addApp("room", { discussion: (_IMC.discussion && !_IMC.is_visitor) }); if(_IMC.enable_noti )ui.addApp("notification"); /* if( _IMC.enable_chatlink )ui.addApp("chatlink", { space_href: [/mod=space&uid=(\d+)/i, /space\-uid\-(\d+)\.html$/i], space_class: /xl\sxl2\scl/, space_id: null, link_wrap: document.getElementById("ct") }); */ } if(_IMC.enable_chatlink) ui.addApp("chatbtn"); ui.addApp("setting", {"data": webim.setting.defaults.data, "copyright": true}); //render ui.render(); //online _IMC['is_login'] && im.autoOnline() && im.online(); })(webim);