code
stringlengths
2
1.05M
import "./styles.css"; import React from "react"; import { TransitionGroup, CSSTransition } from "react-transition-group"; import { BrowserRouter as Router, Switch, Route, Link, Redirect, useLocation, useParams } from "react-router-dom"; export default function AnimationExample() { return ( <Router> <Switch> <Route exact path="/"> <Redirect to="/hsl/10/90/50" /> </Route> <Route path="*"> <AnimationApp /> </Route> </Switch> </Router> ); } function AnimationApp() { let location = useLocation(); return ( <div style={styles.fill}> <ul style={styles.nav}> <NavLink to="/hsl/10/90/50">Red</NavLink> <NavLink to="/hsl/120/100/40">Green</NavLink> <NavLink to="/rgb/33/150/243">Blue</NavLink> <NavLink to="/rgb/240/98/146">Pink</NavLink> </ul> <div style={styles.content}> <TransitionGroup> {/* This is no different than other usage of <CSSTransition>, just make sure to pass `location` to `Switch` so it can match the old location as it animates out. */} <CSSTransition key={location.key} classNames="fade" timeout={300} > <Switch location={location}> <Route path="/hsl/:h/:s/:l" children={<HSL />} /> <Route path="/rgb/:r/:g/:b" children={<RGB />} /> </Switch> </CSSTransition> </TransitionGroup> </div> </div> ); } function NavLink(props) { return ( <li style={styles.navItem}> <Link {...props} style={{ color: "inherit" }} /> </li> ); } function HSL() { let { h, s, l } = useParams(); return ( <div style={{ ...styles.fill, ...styles.hsl, background: `hsl(${h}, ${s}%, ${l}%)` }} > hsl({h}, {s}%, {l}%) </div> ); } function RGB() { let { r, g, b } = useParams(); return ( <div style={{ ...styles.fill, ...styles.rgb, background: `rgb(${r}, ${g}, ${b})` }} > rgb({r}, {g}, {b}) </div> ); } const styles = {}; styles.fill = { position: "absolute", left: 0, right: 0, top: 0, bottom: 0 }; styles.content = { ...styles.fill, top: "40px", textAlign: "center" }; styles.nav = { padding: 0, margin: 0, position: "absolute", top: 0, height: "40px", width: "100%", display: "flex" }; styles.navItem = { textAlign: "center", flex: 1, listStyleType: "none", padding: "10px" }; styles.hsl = { ...styles.fill, color: "white", paddingTop: "20px", fontSize: "30px" }; styles.rgb = { ...styles.fill, color: "white", paddingTop: "20px", fontSize: "30px" };
let webpack = require('webpack'); let HtmlWebpackPlugin = require('html-webpack-plugin'); // var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: { 'app': './src/main.ts', 'lazy-load': './src/modules/lazy-load/app.module.ts' }, resolve: { extensions: ['', '.js', '.ts'] }, externals: { '@angular/common' : 'ng.common', '@angular/compiler' : 'ng.compiler', '@angular/core' : 'ng.core', '@angular/http' : 'ng.http', '@angular/platform-browser' : 'ng.platformBrowser', '@angular/platform-browser-dynamic' : 'ng.platformBrowserDynamic', '@angular/router' : 'ng.router', '@angular/forms' : 'ng.forms', 'rxjs' : 'Rx' }, module: { loaders: [ { test: /\.ts$/, loaders: ['awesome-typescript-loader', 'angular2-template-loader'] }, { test: /\.html$/, loader: 'raw' }, { test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/, loader: 'file?name=assets/[name].[hash].[ext]' }, // { // test: /\.css$/, // exclude: helpers.root('src', 'app'), // loader: ExtractTextPlugin.extract('style', 'css?sourceMap') // }, // { // test: /\.css$/, // include: helpers.root('src', 'app'), // loader: 'raw' // } ] } };
import Avatar from './avatar' import Date from './date' import CoverImage from './cover-image' import Link from 'next/link' export default function HeroPost({ title, coverImage, date, excerpt, author, slug, }) { return ( <section> <div className="mb-8 md:mb-16"> <CoverImage title={title} responsiveImage={coverImage.responsiveImage} slug={slug} /> </div> <div className="md:grid md:grid-cols-2 md:col-gap-16 lg:col-gap-8 mb-20 md:mb-28"> <div> <h3 className="mb-4 text-4xl lg:text-6xl leading-tight"> <Link href={`/posts/${slug}`}> <a className="hover:underline">{title}</a> </Link> </h3> <div className="mb-4 md:mb-0 text-lg"> <Date dateString={date} /> </div> </div> <div> <p className="text-lg leading-relaxed mb-4">{excerpt}</p> <Avatar name={author.name} picture={author.picture} /> </div> </div> </section> ) }
'use strict'; angular.module('healthApp') .factory('Modal', function($rootScope, $modal) { /** * Opens a modal * @param {Object} scope - an object to be merged with modal's scope * @param {String} modalClass - (optional) class(es) to be applied to the modal * @return {Object} - the instance $modal.open() returns */ function openModal(scope = {}, modalClass = 'modal-default') { var modalScope = $rootScope.$new(); angular.extend(modalScope, scope); return $modal.open({ templateUrl: 'components/modal/modal.html', windowClass: modalClass, scope: modalScope }); } // Public API here return { /* Confirmation modals */ confirm: { /** * Create a function to open a delete confirmation modal (ex. ng-click='myModalFn(name, arg1, arg2...)') * @param {Function} del - callback, ran when delete is confirmed * @return {Function} - the function to open the modal (ex. myModalFn) */ delete(del = angular.noop) { /** * Open a delete confirmation modal * @param {String} name - name or info to show on modal * @param {All} - any additional args are passed straight to del callback */ return function() { var args = Array.prototype.slice.call(arguments), name = args.shift(), deleteModal; deleteModal = openModal({ modal: { dismissable: true, title: 'Confirm Delete', html: '<p>Are you sure you want to delete <strong>' + name + '</strong> ?</p>', buttons: [{ classes: 'btn-danger', text: 'Delete', click: function(e) { deleteModal.close(e); } }, { classes: 'btn-default', text: 'Cancel', click: function(e) { deleteModal.dismiss(e); } }] } }, 'modal-danger'); deleteModal.result.then(function(event) { del.apply(event, args); }); }; } } }; });
function (doc, req) { // some show function }
// Karma configuration // Generated on 2016-04-02 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // base path, that will be used to resolve files and exclude basePath: '../', // testing framework to use (jasmine/mocha/qunit/...) // as well as any additional frameworks (requirejs/chai/sinon/...) frameworks: [ 'jasmine' ], // list of files / patterns to load in the browser files: [ // bower:js 'bower_components/jquery/dist/jquery.js', 'bower_components/angular/angular.js', 'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js', 'bower_components/angular-animate/angular-animate.js', 'bower_components/angular-aria/angular-aria.js', 'bower_components/angular-cookies/angular-cookies.js', 'bower_components/angular-messages/angular-messages.js', 'bower_components/angular-resource/angular-resource.js', 'bower_components/angular-route/angular-route.js', 'bower_components/angular-sanitize/angular-sanitize.js', 'bower_components/angular-touch/angular-touch.js', 'bower_components/angular-mocks/angular-mocks.js', // endbower 'app/scripts/**/*.js', 'test/mock/**/*.js', 'test/spec/**/*.js' ], // list of files / patterns to exclude exclude: [ ], // web server port port: 8080, // Start these browsers, currently available: // - Chrome // - ChromeCanary // - Firefox // - Opera // - Safari (only Mac) // - PhantomJS // - IE (only Windows) browsers: [ 'PhantomJS' ], // Which plugins to enable plugins: [ 'karma-phantomjs-launcher', 'karma-jasmine' ], // Continuous Integration mode // if true, it capture browsers, run tests and exit singleRun: false, colors: true, // level of logging // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG logLevel: config.LOG_INFO, // Uncomment the following lines if you are using grunt's server to run the tests // proxies: { // '/': 'http://localhost:9000/' // }, // URL root prevent conflicts with the site root // urlRoot: '_karma_' }); };
pm.payments.list().then(function(pmlist) { console.log(pmlist.items.length + " payments from total of " + pmlist.count); }, function(error) { console.log("couldnt list payments:" + error); });
// TODO import BigInteger from 'bigi' // TODO import Point from 'ecurve' // For now, I just copy-paste the definition from there // ---------- copypasta start ---- declare class $npm$bigi$BigInteger { constructor(input: string | Array<number>, base?: number): void; static (input: string | Array<number>, base?: number): $npm$bigi$BigInteger; toString(base?: number): string; toByteArray(): Array<number>; bitLength(): number; byteLength(): number; add(o: $npm$bigi$BigInteger): $npm$bigi$BigInteger; subtract(o: $npm$bigi$BigInteger): $npm$bigi$BigInteger; multiply(o: $npm$bigi$BigInteger): $npm$bigi$BigInteger; divide(o: $npm$bigi$BigInteger): $npm$bigi$BigInteger; mod(o: $npm$bigi$BigInteger): $npm$bigi$BigInteger; modInverse(o: $npm$bigi$BigInteger): $npm$bigi$BigInteger; shiftLeft(o: number): $npm$bigi$BigInteger; shiftRight(o: number): $npm$bigi$BigInteger; isProbablePrime(): boolean; static fromByteArrayUnsigned(array: Array<number>): $npm$bigi$BigInteger; static fromBuffer(buffer: Buffer): $npm$bigi$BigInteger; static fromDERInteger(buffer: Buffer): $npm$bigi$BigInteger; static fromHex(hex: string): $npm$bigi$BigInteger; toByteArrayUnsigned(): Array<number>; toBuffer(): Buffer; toDERInteger(): Buffer; toHex(): string; } declare module "bigi" { declare module.exports: typeof $npm$bigi$BigInteger; } declare class $npm$ecurve$Curve { p: $npm$bigi$BigInteger; a: $npm$bigi$BigInteger; b: $npm$bigi$BigInteger; G: $npm$ecurve$Point; n: $npm$bigi$BigInteger; h: $npm$bigi$BigInteger; constructor( p: $npm$bigi$BigInteger, a: $npm$bigi$BigInteger, b: $npm$bigi$BigInteger, Gx: $npm$bigi$BigInteger, Gy: $npm$bigi$BigInteger, n: $npm$bigi$BigInteger, h: $npm$bigi$BigInteger ): void; infinity: $npm$ecurve$Point; isInfinity(point: $npm$ecurve$Point): boolean; validate(a: $npm$ecurve$Point): boolean; isOnCurve(a: $npm$ecurve$Point): boolean; pointFromX(odd: boolean, x: $npm$ecurve$Point): $npm$ecurve$Point; } declare class $npm$ecurve$Point { constructor( curve: $npm$ecurve$Curve, x: $npm$bigi$BigInteger, y: $npm$bigi$BigInteger, z: $npm$bigi$BigInteger ): void; x: $npm$bigi$BigInteger; y: $npm$bigi$BigInteger; z: $npm$bigi$BigInteger; zInv: $npm$bigi$BigInteger; affineX: $npm$bigi$BigInteger; affineY: $npm$bigi$BigInteger; static fromAffine( curve: $npm$ecurve$Curve, x: $npm$bigi$BigInteger, y: $npm$bigi$BigInteger ): $npm$ecurve$Point; equals(other: $npm$ecurve$Point): boolean; negate(): $npm$ecurve$Point; add(other: $npm$ecurve$Point): $npm$ecurve$Point; twice(): $npm$ecurve$Point; multiply(k: $npm$bigi$BigInteger): $npm$ecurve$Point; multiplyTwo( j: $npm$bigi$BigInteger, x: $npm$ecurve$Point, k: $npm$bigi$BigInteger ): $npm$ecurve$Point; static decodeFrom( curve: $npm$ecurve$Curve, buffer: Buffer ): $npm$ecurve$Point; getEncoded(compressed: boolean): Buffer; toString(): string; } declare module "ecurve" { declare var Point: typeof $npm$ecurve$Point; declare var Curve: typeof $npm$ecurve$Curve; declare function getCurveByName(name: string): ?Curve; } // ---------- copypasta end ---- declare module "bitcoinjs-lib" { declare type Network = { messagePrefix: string, bip32: { public: number, private: number, ... }, pubKeyHash: number, scriptHash: number, wif: number, dustThreshold: number, ... }; declare type Output = { script: Buffer, value: number, ... }; declare type Input = { script: Buffer, hash: Buffer, index: number, sequence: number, ... }; declare var address: { fromBase58Check(address: string): { hash: Buffer, version: number, ... }, fromOutputScript(script: Buffer, network?: Network): string, toBase58Check(hash: Buffer, version: number): string, toOutputScipt(network?: Network): Buffer, ... }; declare var script: { fromAddress(address: string, network?: Network): Buffer, scriptHashOutput(sho: Buffer): Buffer, compile(chunks: Buffer | Array<Buffer | number>): Buffer, decompile(buffer: Buffer | Array<Buffer | number>): Array<Buffer | number>, fromASM(asm: string): Buffer, toASM(string: Buffer): string, number: { decode: (buf: Buffer, maxLength: number, minimal: boolean) => number, encode: (n: number) => Buffer, ... }, isCanonicalPubKey(buffer: Buffer): boolean, isCanonicalSignature(buffer: Buffer): boolean, isDefinedHashType(type: number): boolean, isPubKeyHashInput(script: Array<Buffer | number> | Buffer): boolean, isPubKeyHashOutput(script: Array<Buffer | number> | Buffer): boolean, isPubKeyInput(script: Array<Buffer | number> | Buffer): boolean, isPubKeyOutput(script: Array<Buffer | number> | Buffer): boolean, isScriptHashInput( script: Array<Buffer | number> | Buffer, allowIncomplete?: boolean ): boolean, isScriptHashOutput(script: Array<Buffer | number> | Buffer): boolean, isWitnessPubKeyHashOutput(script: Array<Buffer | number> | Buffer): boolean, isWitnessScriptHashOutput(script: Array<Buffer | number> | Buffer): boolean, isMultisigInput( script: Array<Buffer | number> | Buffer, allowIncomplete?: boolean ): boolean, isMultisigOutput(script: Array<Buffer | number> | Buffer): boolean, isNullDataOutput(script: Array<Buffer | number> | Buffer): boolean, classifyOutput(script: Array<Buffer | number> | Buffer): string, classifyInput(script: Array<Buffer | number> | Buffer): string, pubKeyOutput(pubKey: Buffer): Buffer, pubKeyHashOutput(pubKeyHash: Buffer): Buffer, scriptHashOutput(scriptHash: Buffer): Buffer, witnessPubKeyHashOutput(pubKeyHash: Buffer): Buffer, witnessScriptHashInput( scriptSig: Array<Buffer | number> | Buffer, scriptPubKey: Array<Buffer | number> | Buffer ): Buffer, witnessScriptHashOutput(scriptHash: Buffer): Buffer, multisigOutput(m: number, pubKeys: Array<Buffer>): Buffer, pubKeyInput(signature: Buffer): Buffer, pubKeyHashInput(signature: Buffer, pubKey: Buffer): Buffer, scriptHashInput( scriptSig: Array<Buffer | number> | Buffer, scriptPubKey: Array<Buffer | number> | Buffer ): Buffer, multisigInput( signatures: Array<Buffer>, scriptPubKey?: Array<Buffer | number> | Buffer ): Buffer, nullDataOutput(data: Buffer): Buffer, ... }; declare var crypto: { sha1(buffer: Buffer): Buffer, sha256(buffer: Buffer): Buffer, hash256(buffer: Buffer): Buffer, hash160(buffer: Buffer): Buffer, ripemd160(buffer: Buffer): Buffer, ... }; declare class ECPair { d: ?$npm$bigi$BigInteger; Q: $npm$ecurve$Point; compressed: boolean; network: Network; getNetwork(): Network; constructor(d: ?$npm$bigi$BigInteger, Q: ?$npm$ecurve$Point): void; getAddress(): string; getPublicKeyBuffer(): Buffer; static fromPublicKeyBuffer(buffer: Buffer): ECPair; verify: (hash: Buffer, signature: ECSignature) => boolean; sign(hash: Buffer): Buffer; toWIF(): string; static fromWIF(string: string, network: Network): ECPair; static makeRandom(): ECPair; } declare class HDNode { depth: number; parentFingerprint: number; index: number; keyPair: ECPair; chainCode: Buffer; static fromBase58( str: string, networks: ?(Array<Network> | Network) ): HDNode; derive(index: number): HDNode; deriveHardened(index: number): HDNode; derivePath(path: string): HDNode; toBase58(): string; getAddress(): string; getFingerprint(): Buffer; getIdentifier(): Buffer; getNetwork(): Network; constructor(keyPair: ECPair, chainCode: Buffer): void; static fromBase58( base: string, network?: ?(Network | Array<Network>) ): HDNode; static fromSeedHex(seed: string, network?: ?Network): HDNode; static fromSeedBuffer(seed: Buffer, network?: ?Network): HDNode; getPublicKeyBuffer(): Buffer; sign(): ECSignature; verify(hash: Buffer, signature: ECSignature): Buffer; neutered(): HDNode; isNeutered(): boolean; constructor(keyPair: ECPair, chainCode: Buffer): void; static HIGHEST_BIT: number; } declare class Transaction { version: number; locktime: number; ins: Array<Input>; outs: Array<Output>; constructor(): void; static fromHex(hex: string): Transaction; static fromBuffer(buffer: Buffer): Transaction; toHex(): string; addInput( hash: Buffer, index: number, sequence?: ?number, scriptSig?: Buffer ): void; addOutput(scriptPubKey: Buffer, value: number): void; getHash(): Buffer; toBuffer(): Buffer; toHex(): string; getId(): string; static isCoinbaseHash(buffer: Buffer): boolean; isCoinbase(): boolean; byteLength(): number; clone(): Transaction; hashForSignature( inIndex: number, prevOutScript: Buffer, hashType: number ): Buffer; setInputScript(index: number, scriptSig: Buffer): void; } declare class TransactionBuilder { network: Network; inputs: Array<Input>; tx: Transaction; setLockTime(locktime: number): void; setVersion(version: number): void; addInput( txhash: string | Transaction | Buffer, vout: number, sequence?: number, prevOutScript?: Buffer ): void; addOutput(scriptPubKey: string | Buffer, value: number): void; build(): Transaction; buildIncomplete(): Transaction; sign( index: number, keyPair: ECPair, redeemScript: Buffer, hashType: number ): void; static fromTransaction( transaction: Transaction, network: ?Network ): TransactionBuilder; } declare var networks: { [key: string]: Network, ... }; declare var opcodes: { [key: string]: number, ... }; declare class ECSignature { r: $npm$bigi$BigInteger; s: $npm$bigi$BigInteger; constructor(r: $npm$bigi$BigInteger, s: $npm$bigi$BigInteger): void; static parseCompact( buffer: Buffer ): { compressed: boolean, i: number, signature: Buffer, ... }; static fromDER(buffer: Buffer): ECSignature; static parseScriptSignature( buffer: Buffer ): { signature: ECSignature, hashType: number, ... }; toCompact(i: number, compressed: boolean): Buffer; toDER(): Buffer; toScriptSignature(hashType: number): Buffer; } declare class Block { version: number; prevHash: Buffer; merkleRoot: Buffer; timestamp: number; bits: number; nonce: number; getHash(): Buffer; getId(): string; getUTCDate(): Date; toBuffer(headersOnly?: boolean): Buffer; toHex(headersOnly?: boolean): string; calculateTarget(bits: number): Buffer; checkProofOfWork(): boolean; static fromBuffer(buffer: Buffer): Block; static fromHex(hex: string): Block; } declare var bufferutils: { equal(a: Buffer, b: Buffer): boolean, pushDataSize(i: number): number, readPushDataInt( buffer: Buffer, offset: number ): { opcode: number, number: number, size: number, ... }, readUInt64LE(buffer: Buffer, offset: number): number, readVarInt( buffer: Buffer, offset: number ): { number: number, size: number, ... }, varIntBuffer(i: number): Buffer, varIntSize(i: number): number, writePushDataInt(buffer: Buffer, number: number, offset: number): number, writeUInt64LE(buffer: Buffer, value: number, offset: number): void, writeVarInt(buffer: Buffer, number: number, offset: number): number, ... }; declare var message: { magicHash(message: Buffer | string, network: Network): Buffer, sign(pair: ECPair, message: Buffer | string, network: Network): Buffer, verify( address: string, signature: Buffer, message: Buffer | string, network: Network ): boolean, ... }; }
BasicGame.Game = function (game) { }; BasicGame.Game.prototype = { /* Creates the game objects (ideally with already loaded assets) */ create: function () { // Phase One: //Phase Two: }, update: function () { // Phase One: //Phase Two }, render: function () { // Enable collision range display for debugging //this.game.debug.body(this.bullet); //this.game.debug.body(this.enemy); //this.game.debug.body(this.player); }, // // create() - related functions // setupAudio: function () { this.explosionSFX = this.add.audio('explosion'); this.playerExplosionSFX = this.add.audio('playerExplosion'); this.enemyFireSFX = this.add.audio('enemyFire'); this.playerFireSFX = this.add.audio('playerFire'); this.powerUpSFX = this.add.audio('powerUp'); }, setupBackground: function () { // Creates the sea background this.sea = this.add.tileSprite(0, 0, this.game.width, this.game.height, 'sea'); this.sea.autoScroll(0, BasicGame.SEA_SCROLL_SPEED); }, setupPlayer: function () { // Creates the player Sprite this.player = this.add.sprite(this.game.width / 2, this.game.height - 50, 'player'); this.player.anchor.setTo(0.5, 0.5); this.player.animations.add('fly', [0, 1, 2], 20, true); this.player.animations.add('ghost', [ 3, 0, 3, 1 ], 20, true); this.player.play('fly'); this.physics.enable(this.player, Phaser.Physics.ARCADE); // Player's default motion speed this.player.speed = BasicGame.PLAYER_SPEED; // Player is bound within game stage this.player.body.collideWorldBounds = true; // 20 x 20 pixel hitbox, centered a little bit higher than the center this.player.body.setSize(20, 20, 0, -5); this.weaponLevel = 0; }, setupEnemies: function () { // Creates the enemy sprite pool this.enemyPool = this.add.group(); this.enemyPool.enableBody = true; this.enemyPool.physicsBodyType = Phaser.Physics.ARCADE; this.enemyPool.createMultiple(50, 'greenEnemy'); this.enemyPool.setAll('anchor.x', 0.5); this.enemyPool.setAll('anchor.y', 0.5); this.enemyPool.setAll('outOfBoundsKill', true); this.enemyPool.setAll('checkWorldBounds', true); // Enemy points reward this.enemyPool.setAll('reward', BasicGame.ENEMY_REWARD, false, false, 0, true); this.enemyPool.setAll( 'dropRate', BasicGame.ENEMY_DROP_RATE, false, false, 0, true ); // Set the animation for each sprite in enemyPool this.enemyPool.forEach(function (enemy) { enemy.animations.add('fly', [ 0, 1, 2], 20, true); enemy.animations.add('hit', [ 3, 1, 3, 2], 20, false); enemy.events.onAnimationComplete.add( function(e) { e.play('fly'); }, this); }); // Set enemy spawn rate this.nextEnemyAt = 0; this.enemyDelay = BasicGame.SPAWN_ENEMY_DELAY; // Creates Shooter enemy sprite pool this.shooterPool = this.add.group(); this.shooterPool.enableBody = true; this.shooterPool.physicsBodyType = Phaser.Physics.ARCADE; this.shooterPool.createMultiple(20, 'whiteEnemy'); this.shooterPool.setAll('anchor.x', 0.5); this.shooterPool.setAll('anchor.y', 0.5); this.shooterPool.setAll('outOfBoundsKill', true); this.shooterPool.setAll('checkWorldBounds', true); // Enemy points reward this.shooterPool.setAll('reward', BasicGame.SHOOTER_REWARD, false, false, 0, true); this.shooterPool.setAll( 'dropRate', BasicGame.SHOOTER_DROP_RATE, false, false, 0 ,true ); // Set the animation for each sprite in enemyPool this.shooterPool.forEach(function (enemy) { enemy.animations.add('fly', [ 0, 1, 2], 20, true); enemy.animations.add('hit', [ 3, 1, 3, 2], 20, false); enemy.events.onAnimationComplete.add( function(e) { e.play('fly'); }, this); }); // Start Spawning Shooters 5 seconds after game starts this.nextShooterAt = this.time.now + Phaser.Timer.SECOND * 5; this.shooterDelay = BasicGame.SPAWN_SHOOTER_DELAY; }, setupBoss: function() { this.bossPool = this.add.group(); this.bossPool.enableBody = true; this.bossPool.physicsBodyType = Phaser.Physics.ARCADE; this.bossPool.createMultiple(1, 'boss'); this.bossPool.setAll('anchor.x', 0.5); this.bossPool.setAll('anchor.y', 0.5); this.bossPool.setAll('outOfBoundsKill', true); this.bossPool.setAll('reward', BasicGame.BOSS_REWARD, false, false, 0, true); this.bossPool.setAll( 'dropRate', BasicGame.BOSS_DROP_RATE, false, false, 0, true ); this.bossPool.forEach(function (enemy) { enemy.animations.add('fly', [0, 1, 2 ], 20, true); enemy.animations.add('hit', [ 3, 1, 3, 2 ], 20, false); enemy.events.onAnimationComplete.add( function (e) { e.play('fly'); }, this); }); this.boss = this.bossPool.getTop(); this.bossApproaching = false; }, setupBullets: function () { this.enemyBulletPool = this.add.group(); this.enemyBulletPool.enableBody = true; this.enemyBulletPool.physicsBodyType = Phaser.Physics.ARCADE; this.enemyBulletPool.createMultiple(100, 'enemyBullet'); this.enemyBulletPool.setAll('anchor.x', 0.5); this.enemyBulletPool.setAll('anchor.y', 0.5); this.enemyBulletPool.setAll('outOfBoundsKill', true); this.enemyBulletPool.setAll('checkWorldBounds', true); this.enemyBulletPool.setAll('reward', 0, false, false, 0, true); // Creates the bullets sprite group this.bulletPool = this.add.group(); // Enable physics to the whole sprite group this.bulletPool.enableBody = true; this.bulletPool.physicsBodyType = Phaser.Physics.ARCADE; // Add 100 'bullet' sprites in the group. // By default this uses the first frame of the sprite sheet and // sets the initial state as non-existing (i.e. killed/dead) this.bulletPool.createMultiple(100, 'bullet'); // Sets anchors of all bullet sprites this.bulletPool.setAll('anchor.x', 0.5); this.bulletPool.setAll('anchor.y', 0.5); // Automatically kill the bullet sprites when they go out of bounds this.bulletPool.setAll('outOfBoundsKill', true); this.bulletPool.setAll('checkWorldBounds', true); // Set firing rate this.nextShotAt = 0; this.shotDelay = BasicGame.SHOT_DELAY; }, setupExplosions: function () { //Turn explosions into a pool for better performance this.explosionPool = this.add.group(); this.explosionPool.enableBody = true; this.explosionPool.physicsBodyType = Phaser.Physics.ARCADE; this.explosionPool.createMultiple(100, 'explosion'); this.explosionPool.setAll('anchor.x', 0.5); this.explosionPool.setAll('anchor.y', 0.5); this.explosionPool.forEach(function (explosion) { explosion.animations.add('boom'); }); }, setupPlayerIcons: function () { this.powerUpPool = this.add.group(); this.powerUpPool.enableBody = true; this.powerUpPool.physicsBodyType = Phaser.Physics.ARCARDE; this.powerUpPool.createMultiple(5, 'powerup1'); this.powerUpPool.setAll('anchor.x', 0.5); this.powerUpPool.setAll('anchor.y', 0.5); this.powerUpPool.setAll('outOfBoundsKill', true); this.powerUpPool.setAll('checkWorldBounds', true); this.powerUpPool.setAll( 'reward', BasicGame.POWERUP_REWARD, false, false, 0, true ); this.lives = this.add.group(); // Calculate location of first life icon var firstLifeIconX = this.game.width - 10 - (BasicGame.PLAYER_EXTRA_LIVES * 30); for (var i = 0; i < BasicGame.PLAYER_EXTRA_LIVES; i++) { var life = this.lives.create(firstLifeIconX + (30 * i), 30, 'player'); life.scale.setTo(0.5, 0.5); life.anchor.setTo(0.5, 0.5); }; }, setupText: function () { // Creates a help message with instructions this.instructions = this.add.text( this.game.width / 2, this.game.height - 100, 'Use Arrow Keys to Move, Press Z to Fire\n' + 'Tapping/clicking does both', { font: '20px monospace', fill: '#fff', align: 'center' }); this.instructions.anchor.setTo(0.5, 0.5); this.instExpire = this.time.now + BasicGame.INSTRUCTION_EXPIRE; this.score = 0; this.scoreText = this.add.text( this.game.width / 2, 30, '' + this.score, {font: '20px monospace', fill: '#fff', align: 'center' } ); this.scoreText.anchor.setTo(0.5, 0.5); }, // // update() - related functions // checkCollisions: function () { // Collision handling between enemy and bullet this.physics.arcade.overlap( this.bulletPool, this.enemyPool, this.enemyHit, null, this ); this.physics.arcade.overlap( this.player, this.powerUpPool, this.playerPowerUp, null, this ); if (this.bossApproaching === false) { this.physics.arcade.overlap( this.bulletPool, this.bossPool, this.enemyHit, null, this ); this.physics.arcade.overlap( this.player, this.bossPool, this.playerHit, null, this ); } // Collision between shooter and bullet this.physics.arcade.overlap( this.bulletPool, this.shooterPool, this.enemyHit, null, this ); // Collision detection between player and enemy this.physics.arcade.overlap( this.player, this.enemyPool, this.playerHit, null, this ); this.physics.arcade.overlap( this.player, this.shooterPool, this.playerHit, null, this ); this.physics.arcade.overlap( this.player, this.enemyBulletPool, this.playerHit, null, this ); }, spawnEnemies: function () { if (this.nextEnemyAt < this.time.now && this.enemyPool.countDead() > 0){ this.nextEnemyAt = this.time.now + this.enemyDelay; var enemy = this.enemyPool.getFirstExists(false); // Spawn at a random location top of the screen enemy.reset( this.rnd.integerInRange(20, this.game.width - 20), 0, BasicGame.ENEMY_HEALTH // same as enemy.health = ); // Also randomise speed enemy.body.velocity.y = this.rnd.integerInRange( BasicGame.ENEMY_MIN_Y_VELOCITY, BasicGame.ENEMY_MAX_Y_VELOCITY ); enemy.play('fly'); } if (this.nextShooterAt < this.time.now && this.shooterPool.countDead() > 0) { // if ( this.bossPool.countDead() === 0) { // //Won't spawn shooters if the boss is alive // return; // }; this.nextShooterAt = this.time.now + this.shooterDelay; var shooter = this.shooterPool.getFirstExists(false); // Spawn at a random location at the top shooter.reset( this.rnd.integerInRange(20, this.game.width - 20), 0, BasicGame.SHOOTER_HEALTH ); // choose a random target location at the bottom var target = this.rnd.integerInRange(20, this.game.width - 20); // Move to target and rotate the sprite accordingly shooter.rotation = this.physics.arcade.moveToXY( shooter, target, this.game.height, this.rnd.integerInRange( BasicGame.SHOOTER_MIN_VELOCITY, BasicGame.SHOOTER_MAX_VELOCITY ) ) - Math.PI / 2; shooter.play('fly'); // Each shooter should have its own timer shooter.nextShotAt = 0; } }, spawnBoss: function () { this.bossApproaching = true; this.boss.reset(this.game.width / 2, 0, BasicGame.BOSS_HEALTH); this.physics.enable(this.boss, Phaser.Physics.ARCADE); this.boss.body.velocity.y = BasicGame.BOSS_Y_VELOCITY; this.boss.play('fly'); }, enemyFire: function () { this.shooterPool.forEachAlive(function (enemy) { if (this.time.now > enemy.nextShotAt && this.enemyBulletPool.countDead() > 0) { var bullet = this.enemyBulletPool.getFirstExists(false); bullet.reset(enemy.x, enemy.y); this.physics.arcade.moveToObject( bullet, this.player, BasicGame.ENEMY_BULLET_VELOCITY ); enemy.nextShotAt = this.time.now + BasicGame.SHOOTER_SHOT_DELAY; // this.enemyFireSFX.play(); } }, this); }, bossFire: function() { if (this.bossApproaching === false && this.boss.alive && this.boss.nextShotAt < this.time.now && this.enemyBulletPool.countDead() >= 10) { this.boss.nextShotAt = this.time.now + BasicGame.BOSS_SHOT_DELAY; // this.enemyFireSFX.play(); for (var i = 0; i < 5; i++) { // Process 2 bullets at a time var leftBullet = this.enemyBulletPool.getFirstExists(false); leftBullet.reset (this.boss.x - 10 - i * 10, this.boss.y + 20); var rightBullet = this.enemyBulletPool.getFirstExists(false); rightBullet.reset(this.boss.x + 10 + i * 10, this.boss.y + 20); if (this.boss.health > BasicGame.BOSS_HEALTH / 2) { // Aim directly at the player this.physics.arcade.moveToObject( leftBullet, this.player, BasicGame.ENEMY_BULLET_VELOCITY ); this.physics.arcade.moveToObject( rightBullet, this.player, BasicGame.ENEMY_BULLET_VELOCITY ); } else { this.physics.arcade.moveToXY( leftBullet, this.player.x - i * 100, this.player.y, BasicGame.ENEMY_BULLET_VELOCITY ); this.physics.arcade.moveToXY( rightBullet, this.player.x + i * 100, this.player.y, BasicGame.ENEMY_BULLET_VELOCITY ); } }; } }, processPlayerInput: function () { // Defines Player Motion engine this.player.body.velocity.x = 0; this.player.body.velocity.y = 0; // Horizontal Move Arrows if (this.cursors.left.isDown) { this.player.body.velocity.x = -this.player.speed; } else if (this.cursors.right.isDown) { this.player.body.velocity.x = this.player.speed; } // Vertical Move Arrows if (this.cursors.up.isDown) { this.player.body.velocity.y = -this.player.speed; } else if (this.cursors.down.isDown) { this.player.body.velocity.y = this.player.speed; } // Implement Mouse and Touch movement if (this.input.activePointer.isDown && this.physics.arcade.distanceToPointer(this.player) > 15) { //Fixes trembling sprite caused by movement overshoot this.physics.arcade.moveToPointer(this.player, this.player.speed); } if ((this.input.keyboard.isDown(Phaser.Keyboard.Z) || this.input.activePointer.isDown) || (this.input.keyboard.isDown(Phaser.Keyboard.K))) { if (this.returnText && this.returnText.exists) { this.quitGame(); } else { this.fire(); } } }, processDelayedEffects: function () { if (this.instructions.exists && this.time.now > this.instExpire) { this.instructions.destroy(); } if (this.ghostUntil && this.ghostUntil < this.time.now) { this.ghostUntil = null; this.player.play('fly'); } if (this.showReturn && this.time.now > this.showReturn) { this.returnText = this.add.text( this.game.width / 2, this.game.height / 2 + 20, 'Press Z or Tap Game to go back to Main Menu', { font: '16px sans-serif', fill: '#fff'} ); this.returnText.anchor.setTo(0.5, 0.5); this.showReturn = false; } // if (this.bossApproaching && this.boss.y > 80) { // this.bossApproaching = false; // this.boss.nextShotAt = 0; // this.boss.body.velocity.y = 0; // this.boss.body.velocity.x = BasicGame.BOSS_X_VELOCITY; // // Allow bouncing off world bounds // this.boss.body.bounce.x = 1; // this.boss.body.collideWorldBounds = true; // }; }, // // Other Functions // // Function to define behaviour when enemy is hit enemyHit: function (bullet, enemy) { bullet.kill(); this.damageEnemy(enemy, BasicGame.BULLET_DAMAGE); }, // Function to define behaviour when player is hit playerHit: function (player, enemy) { // Check first if this.ghostUntil is not undefined or null if (this.ghostUntil && this.ghostUntil > this.time.now) { return; } // this.playerExplosionSFX.play(); // Crashing into an enemy only deals 5 damage this.damageEnemy(enemy, BasicGame.CRASH_DAMAGE); var life = this.lives.getFirstAlive(); if (life !== null) { life.kill(); this.weaponLevel = 0; this.ghostUntil = this.time.now + BasicGame.PLAYER_GHOST_TIME; this.player.play('ghost'); } else { this.explode(player); player.kill(); this.displayEnd(false); } }, // Calculates Enemy Damage damageEnemy: function (enemy, damage) { enemy.damage(damage); if (enemy.alive) { enemy.play('hit'); } else { this.explode(enemy); // this.explosionSFX.play(); this.spawnPowerUp(enemy); this.addToScore(enemy.reward); // We check the sprite key (e.g. 'greenEnemy') to see if the sprite is a boss // For full games, it would be better to set flags on the sprites themselves if (enemy.key === 'boss') { this.enemyPool.destroy(); this.shooterPool.destroy(); this.bossPool.destroy(); this.enemyBulletPool.destroy(); this.displayEnd(true); } } }, spawnPowerUp: function (enemy) { if (this.powerUpPool.countDead() === 0 || this.weaponLevel === 5) { return; } if (this.rnd.frac() < enemy.dropRate) { var powerUp = this.powerUpPool.getFirstExists(false); powerUp.reset(enemy.x, enemy.y); powerUp.body.velocity.y = BasicGame.POWERUP_VELOCITY; } }, playerPowerUp: function (player, powerUp) { this.addToScore(powerUp.reward); powerUp.kill(); // this.powerUpSFX.play(); if (this.weaponLevel < 5) { this.weaponLevel++; } }, addToScore: function (score) { this.score += score; this.scoreText.text = this.score; // if (this.score >= BasicGame.BOSS_TRIGGER_SCORE && this.bossPool.countDead() == 1) { // this.spawnBoss(); // } }, // Manage player's bullets being fired fire: function () { if (!this.player.alive || this.nextShotAt > this.time.now) { return; } this.nextShotAt = this.time.now + this.shotDelay; // this.playerFireSFX.play(); var bullet; if (this.weaponLevel === 0) { if (this.bulletPool.countDead() === 0) { return; } bullet = this.bulletPool.getFirstExists(false); bullet.reset(this.player.x, this.player.y - 20); bullet.body.velocity.y = -BasicGame.BULLET_VELOCITY; } else { if (this.bulletPool.countDead() < this.weaponLevel * 2) { return; } for (var i = 0; i < this.weaponLevel; i++) { bullet = this.bulletPool.getFirstExists(false); // Spawn left bullet slightly left off center bullet.reset(this.player.x - (10 + i * 6), this.player.y - 20); // The left bullets spread from -95 to -135 degrees this.physics.arcade.velocityFromAngle( -95 - i * 10, BasicGame.BULLET_VELOCITY, bullet.body.velocity ); bullet = this.bulletPool.getFirstExists(false); // Spawn right bullets slightly right off center bullet.reset(this.player.x + (10 + i * 6), this.player.y - 20); // The right bullets spread from -85 degrees to -45 this.physics.arcade.velocityFromAngle( -85 + i * 10, BasicGame.BULLET_VELOCITY, bullet.body.velocity ); } } }, // Manages Explosions explode: function (sprite) { if (this.explosionPool.countDead() === 0) { return; } var explosion = this.explosionPool.getFirstExists(false); explosion.reset(sprite.x, sprite.y); explosion.play('boom', 15, false, true); // add the original sprite's velocity to the explosion explosion.body.velocity.x = sprite.body.velocity.x; explosion.body.velocity.y = sprite.body.velocity.y; }, // Manage end game displayEnd: function(win) { //you can't win and lose at the same time if (this.endText && this.endText.exists) { return; } var msg = win ? 'You Win!!!' : 'Game Over'; this.endText = this.add.text( this.game.width / 2, this.game.height / 2 - 60, msg, { font: '72px serif', fill: '#fff'} ); this.endText.anchor.setTo(0.5, 0); this.showReturn = this.time.now + BasicGame.RETURN_MESSAGE_DELAY; }, quitGame: function (pointer) { this.sea.destroy(); this.player.destroy(); this.enemyPool.destroy(); this.bulletPool.destroy(); this.explosionPool.destroy(); this.shooterPool.destroy(); this.enemyBulletPool.destroy(); this.powerUpPool.destroy(); this.bossPool.destroy(); this.instructions.destroy(); this.scoreText.destroy(); this.endText.destroy(); this.returnText.destroy(); // Then let's go back to the main menu. this.state.start('MainMenu'); } };
'use strict'; angular.module('treasuremapApp') .factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) { var currentUser = {}; if($cookieStore.get('token')) { currentUser = User.me(); } return { /** * Authenticate user and save token * * @param {Object} user - login info * @param {Function} callback - optional * @return {Promise} */ login: function(user, callback) { var cb = callback || angular.noop; var deferred = $q.defer(); $http.post('/auth/local', { email: user.email, password: user.password }). success(function(data) { $cookieStore.put('token', data.token); currentUser = User.me(); deferred.resolve(data); return cb(); }). error(function(err) { this.logout(); deferred.reject(err); return cb(err); }.bind(this)); return deferred.promise; }, /** * Delete access token and user info * * @param {Function} */ logout: function() { $cookieStore.remove('token'); currentUser = {}; }, /** * Create a new user * * @param {Object} user - user info * @param {Function} callback - optional * @return {Promise} */ createUser: function(user, callback) { var cb = callback || angular.noop; return User.save(user, function(data) { $cookieStore.put('token', data.token); currentUser = User.me(); return cb(user); }, function(err) { this.logout(); return cb(err); }.bind(this)).$promise; }, /** * Change password * * @param {String} oldPassword * @param {String} newPassword * @param {Function} callback - optional * @return {Promise} */ changePassword: function(oldPassword, newPassword, callback) { var cb = callback || angular.noop; return User.changePassword({ id: currentUser._id }, { oldPassword: oldPassword, newPassword: newPassword }, function(user) { return cb(user); }, function(err) { return cb(err); }).$promise; }, /** * Add Friend * * @param {String} friendId * @param {Function} callback - optional * @return {Promise} */ addFriend: function(friendId, callback) { var cb = callback || angular.noop; return User.addFriend({ id: currentUser._id }, { friendId: friendId }, function(user) { return cb(user); }, function(err) { return cb(err); }).$promise; }, /** * Check if user has friend * * @param {String} friendId * @return {boolean} */ isFriend: function(friendId) { // gets called 4x? //console.log(_.pluck(currentUser.friends, '_id').indexOf(friendId)); return _.pluck(currentUser.friends, '_id').indexOf(friendId) != -1; }, /** * Remove Friend * * @param {String} friendId * @param {Function} callback - optional * @return {Promise} */ removeFriend: function(friendId, callback) { var cb = callback || angular.noop; return User.removeFriend({ id: currentUser._id }, { friendId: friendId }, function(user) { return cb(user); }, function(err) { return cb(err); }).$promise; }, /** * Gets all available info on authenticated user * * @return {Object} user */ getCurrentUser: function() { return currentUser; }, /** * Check if a user is logged in * * @return {Boolean} */ isLoggedIn: function() { return currentUser.hasOwnProperty('role'); }, /** * Waits for currentUser to resolve before checking if user is logged in */ isLoggedInAsync: function(cb) { if(currentUser.hasOwnProperty('$promise')) { currentUser.$promise.then(function() { cb(true); }).catch(function() { cb(false); }); } else if(currentUser.hasOwnProperty('role')) { cb(true); } else { cb(false); } }, /** * Check if a user is an admin * * @return {Boolean} */ isAdmin: function() { return currentUser.role === 'admin'; }, /** * Get auth token */ getToken: function() { return $cookieStore.get('token'); } }; });
"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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var ts = require("typescript"); var index_1 = require("../../models/index"); var components_1 = require("../components"); var BindingArrayConverter = (function (_super) { __extends(BindingArrayConverter, _super); function BindingArrayConverter() { _super.apply(this, arguments); } BindingArrayConverter.prototype.supportsNode = function (context, node) { return node.kind === 168; }; BindingArrayConverter.prototype.convertNode = function (context, node) { var _this = this; var types = []; node.elements.forEach(function (element) { types.push(_this.owner.convertType(context, element)); }); return new index_1.TupleType(types); }; BindingArrayConverter = __decorate([ components_1.Component({ name: 'type:binding-array' }) ], BindingArrayConverter); return BindingArrayConverter; }(components_1.ConverterTypeComponent)); exports.BindingArrayConverter = BindingArrayConverter; //# sourceMappingURL=binding-array.js.map
'use babel'; export default function(editor) { const selection = editor.getSelectedText(); if(selection==''){ editor.insertText('~~S~~'); } else{ editor.insertText(`~~${selection}~~`); } }
import { Meteor } from 'meteor/meteor'; import { dbThreads } from '/db/dbThreads'; import { debug } from '/server/imports/utils/debug'; import { limitSubscription } from '/server/imports/utils/rateLimit'; Meteor.publish('onlinePeopleNumber', function() { debug.log('publish onlinePeopleNumber'); let onlinePeopleNumber = 0; dbThreads.find().forEach((threadData) => { onlinePeopleNumber += threadData.connections; }); this.added('variables', 'onlinePeopleNumber', { value: onlinePeopleNumber }); const intervalId = Meteor.setInterval(() => { countAndPublishOnlinePeopleNumber(this); }, 10000); this.ready(); this.onStop(() => { Meteor.clearInterval(intervalId); }); }); // 一分鐘最多重複訂閱5次 limitSubscription('onlinePeopleNumber', 5); function countAndPublishOnlinePeopleNumber(publisher) { debug.log('countAndPublishOnlinePeopleNumber'); let onlinePeopleNumber = 0; dbThreads.find().forEach((threadData) => { onlinePeopleNumber += threadData.connections; }); publisher.changed('variables', 'onlinePeopleNumber', { value: onlinePeopleNumber }); }
/*! * env.js - environment for decentraland * Copyright (c) 2014-2015, Fedor Indutny (MIT License). * Copyright (c) 2014-2016, Christopher Jeffrey (MIT License). * Copyright (c) 2016-2017, Manuel Araoz (MIT License). * https://github.com/decentraland/decentraland-node */ 'use strict'; var lazy = require('./utils/lazy'); /** * A Decentraland "environment" which is used for * bootstrapping the initial `decentraland` module. * It exposes all constructors for primitives, * the blockchain, mempool, wallet, etc. It * also sets the default network if there is * one. It exposes a global {@link TimeData} * object for adjusted time, as well as a * global worker pool. * * @exports Environment * @constructor * * @param {(Object|NetworkType)?} options - Options object or network type. * @param {(Network|NetworkType)?} options.network * @param {String} [options.prefix=~/.decentraland] - Prefix for filesystem. * @param {String} [options.db=leveldb] - Database backend. * @param {Boolean} [options.debug=false] - Whether to display debug output. * @param {String|Boolean} [options.debugFile=~/.debug.log] - A file to * pipe debug output to. * @param {Boolean} [options.profile=false] - Enable profiler. * @param {Boolean} [options.useWorkers=false] - Enable workers. * @param {Number} [options.maxWorkers=6] - Max size of * the worker pool. * @param {String} [options.workerUri=/decentraland-worker.js] Location of the decentraland * worker.js file for web workers. * @param {String} [options.proxyServer=localhost:8080] - * Websocket->tcp proxy server for browser. * @param {Object?} options.logger - Custom logger. * @property {Boolean} isBrowser * @property {NetworkType} networkType * * @property {Function} bn - Big number constructor * (see {@link https://github.com/indutny/bn.js} for docs). * @property {Object} utils - {@link module:utils}. * @property {Function} locker - {@link Locker} constructor. * @property {Function} reader - {@link BufferReader} constructor. * @property {Function} writer - {@link BufferWriter} constructor. * @property {Object} ec - {@link module:ec}. * @property {Function} lru - {@link LRU} constructor. * @property {Function} bloom - {@link Bloom} constructor. * @property {Function} rbt - {@link RBT} constructor. * @property {Function} lowlevelup - See {@link LowlevelUp}. * @property {Function} uri - See {@link module:uri}. * @property {Function} logger - {@link Logger} constructor. * * @property {Object} constants - See {@link module:constants}. * @property {Object} networks - See {@link module:network}. * @property {Object} errors * @property {Function} errors.VerifyError - {@link VerifyError} constructor. * @property {Function} errors.ScriptError - {@link ScriptError} constructor. * @property {Function} profiler - {@link module:profiler}. * @property {Function} ldb - See {@link module:ldb}. * @property {Function} script - {@link Script} constructor. * @property {Function} opcode - {@link Opcode} constructor. * @property {Function} stack - {@link Stack} constructor. * @property {Function} witness - {@link Witness} constructor. * @property {Function} input - {@link Input} constructor. * @property {Function} output - {@link Output} constructor. * @property {Function} coin - {@link Coin} constructor. * @property {Function} coins - {@link Coins} constructor. * @property {Function} coinview - {@link CoinView} constructor. * @property {Function} tx - {@link TX} constructor. * @property {Function} mtx - {@link MTX} constructor. * @property {Function} txdb - {@link TXDB} constructor. * @property {Function} abstractblock - {@link AbstractBlock} constructor. * @property {Function} memblock - {@link MemBlock} constructor. * @property {Function} block - {@link Block} constructor. * @property {Function} merkleblock - {@link MerkleBlock} constructor. * @property {Function} headers - {@link Headers} constructor. * @property {Function} node - {@link Node} constructor. * @property {Function} spvnode - {@link SPVNode} constructor. * @property {Function} fullnode - {@link Fullnode} constructor. * @property {Function} chainentry - {@link ChainEntry} constructor. * @property {Function} chaindb - {@link ChainDB} constructor. * @property {Function} chain - {@link Chain} constructor. * @property {Function} mempool - {@link Mempool} constructor. * @property {Function} mempoolentry - {@link MempoolEntry} constructor. * @property {Function} hd - {@link HD} constructor. * @property {Function} address - {@link Address} constructor. * @property {Function} wallet - {@link Wallet} constructor. * @property {Function} walletdb - {@link WalletDB} constructor. * @property {Function} peer - {@link Peer} constructor. * @property {Function} pool - {@link Pool} constructor. * @property {Function} miner - {@link Miner} constructor. * @property {Function} minerblock - {@link MinerBlock} constructor. * @property {Object} http * @property {Function} http.client - {@link HTTPClient} constructor. * @property {Function} http.http - {@link HTTPBase} constructor. * @property {Function} http.request - See {@link request}. * @property {Function} http.server - {@link HTTPServer} constructor. * @property {Object} workers - See {@link module:workers}. * @property {TimeData} time - For adjusted time. * @property {Workers?} workerPool - Default global worker pool. */ function Environment() { this.env = Environment; this.require = lazy(require, this); // BN this['bn'] = require('bn.js'); this['elliptic'] = require('elliptic'); // Blockchain this['blockchain'] = require('./blockchain'); this['chain'] = require('./blockchain/chain'); this['chaindb'] = require('./blockchain/chaindb'); this['chainentry'] = require('./blockchain/chainentry'); // BTC this['btc'] = require('./btc'); this['amount'] = require('./btc/amount'); this['errors'] = require('./btc/errors'); this['uri'] = require('./btc/uri'); // Coins this['coins'] = require('./coins'); this['coinview'] = require('./coins/coinview'); // Crypto this['crypto'] = require('./crypto'); this['ec'] = require('./crypto/ec'); this['pk'] = require('./crypto/pk'); this['schnorr'] = require('./crypto/schnorr'); // DB this['db'] = require('./db'); this['ldb'] = require('./db/ldb'); // HD this['hd'] = require('./hd'); // HTTP this['http'] = require('./http'); this['rpc'] = require('./http/rpc'); // Mempool this['txmempool'] = require('./mempool'); // -> txmempool? this['fees'] = require('./mempool/fees'); this['mempool'] = require('./mempool/mempool'); this['mempoolentry'] = require('./mempool/mempoolentry'); // Miner this['mining'] = require('./mining'); this['miner'] = require('./mining/miner'); this['minerblock'] = require('./mining/minerblock'); // Net this['net'] = require('./net'); this['bip150'] = require('./net/bip150'); this['bip151'] = require('./net/bip151'); this['bip152'] = require('./net/bip152'); this['packets'] = require('./net/packets'); this['peer'] = require('./net/peer'); this['pool'] = require('./net/pool'); this['tcp'] = require('./net/tcp'); // Node this['node'] = require('./node'); this['config'] = require('./node/config'); this['fullnode'] = require('./node/fullnode'); this['logger'] = require('./node/logger'); this['spvnode'] = require('./node/spvnode'); // Primitives this['primitives'] = require('./primitives'); this['address'] = require('./primitives/address'); this['block'] = require('./primitives/block'); this['coin'] = require('./primitives/coin'); this['headers'] = require('./primitives/headers'); this['input'] = require('./primitives/input'); this['invitem'] = require('./primitives/invitem'); this['keyring'] = require('./primitives/keyring'); this['merkleblock'] = require('./primitives/merkleblock'); this['mtx'] = require('./primitives/mtx'); this['netaddress'] = require('./primitives/netaddress'); this['outpoint'] = require('./primitives/outpoint'); this['output'] = require('./primitives/output'); this['tx'] = require('./primitives/tx'); // Protocol this['protocol'] = require('./protocol'); this['constants'] = require('./protocol/constants'); this['network'] = require('./protocol/network'); this['networks'] = require('./protocol/networks'); this['timedata'] = require('./protocol/timedata'); // Script this['scripting'] = require('./script'); // -> scripting? this['opcode'] = require('./script/opcode'); this['program'] = require('./script/program'); this['script'] = require('./script/script'); this['sigcache'] = require('./script/sigcache'); this['stack'] = require('./script/stack'); this['witness'] = require('./script/witness'); // Utils this['utils'] = require('./utils'); this['base58'] = require('./utils/base58'); this['co'] = require('./utils/co'); this['encoding'] = require('./utils/encoding'); this['reader'] = require('./utils/reader'); this['staticwriter'] = require('./utils/staticwriter'); this['util'] = require('./utils/util'); this['writer'] = require('./utils/writer'); // Wallet this['wallet'] = require('./wallet'); this['path'] = require('./wallet/path'); this['walletkey'] = require('./wallet/walletkey'); this['walletdb'] = require('./wallet/walletdb'); // Workers this['workers'] = require('./workers'); this['workerpool'] = require('./workers/workerpool'); } /** * Set the default network. * @param {String} options */ Environment.prototype.set = function set(options) { if (typeof options === 'string') options = { network: options }; if (!options) options = {}; if (options.network) this.network.set(options.network); this.workerpool.set(options); if (options.sigcacheSize != null) this.sigcache.resize(options.sigcacheSize); return this; }; /** * Get the adjusted time. * @returns {Number} Adjusted time. */ Environment.prototype.now = function now() { return this.network.primary.now(); }; /** * Cache all necessary modules. */ Environment.prototype.cache = function cache() { this.bip70; this.common; this.crypto; this.fullnode; this.http; this.spvnode; }; /* * Expose by converting `exports` to an * Environment. */ exports.cache = Environment.prototype.cache; exports.set = Environment.prototype.set; exports.now = Environment.prototype.now; Environment.call(exports);
/** * @module Derived repository for the Article entity */ define(['services/repository'], function (repository) { /** * Repository ctor * @constructor */ var ArticleRepository = (function () { var privatearticlerepository = function (entityManagerProvider, entityTypeName, resourceName, fetchStrategy) { repository.getCtor.call(this, entityManagerProvider, entityTypeName, resourceName, fetchStrategy); /** * Get all entities with its tags and ordered by date * @method * @return {promise} */ this.all = function () { var query = breeze.EntityQuery .from(resourceName) .orderBy("createdDate desc") .expand("tags"); return executeQuery(query); }; function executeQuery(query) { return entityManagerProvider.manager() .executeQuery(query.using(fetchStrategy || breeze.FetchStrategy.FromServer)) .then(function (data) { return data.results; }); } }; privatearticlerepository.prototype = repository.create(); return privatearticlerepository; })(); return { create: create }; /** * Create a new Repository * @method * @param {EntityManagerProvider} entityManagerProvider * @param {string} entityTypeName * @param {string} resourceName * @param {FetchStrategy} fetchStrategy * @return {Repository} */ function create(entityManagerProvider, entityTypeName, resourceName, fetchStrategy) { return new ArticleRepository(entityManagerProvider, entityTypeName, resourceName, fetchStrategy); } });
// flow-typed signature: 0fa3bf617dfc01c2baf8ecf5a41441a9 // flow-typed version: <<STUB>>/supertest_v^3.0.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: * * 'supertest' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * https://github.com/flowtype/flow-typed */ declare module 'supertest' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'supertest/lib/agent' { declare module.exports: any; } declare module 'supertest/lib/test' { declare module.exports: any; } declare module 'supertest/test/supertest' { declare module.exports: any; } // Filename aliases declare module 'supertest/index' { declare module.exports: $Exports<'supertest'>; } declare module 'supertest/index.js' { declare module.exports: $Exports<'supertest'>; } declare module 'supertest/lib/agent.js' { declare module.exports: $Exports<'supertest/lib/agent'>; } declare module 'supertest/lib/test.js' { declare module.exports: $Exports<'supertest/lib/test'>; } declare module 'supertest/test/supertest.js' { declare module.exports: $Exports<'supertest/test/supertest'>; }
// // HLF Tip Extension // ================= // [Styles](../css/tip.html) | [Tests](../../tests/js/tip.html) // // The `Tip` extension does several things. It does basic parsing of trigger // element attributes for the tip content. It can anchor itself to a trigger by // selecting the best direction. It can follow the cursor. It toggles its // appearance by fading in and out and resizing. It can display custom tip // content. It uses the `HLF.HoverIntent` extension to prevent over-queueing of // appearance handlers. The `snapTo` option allows the tip to snap to the // trigger element. And by default the tip locks into place. But turn on only // one axis of snapping, and the tip will follow the mouse only on the other // axis. For example, snapping to the x-axis will only allow the tip to shift // along the y-axis. The x will remain constant. // (function(root, attach) { if (typeof define === 'function' && define.amd) { define(['hlf/core', 'hlf/hover-intent'], attach); } else if (typeof exports === 'object') { module.exports = attach(require('hlf/core'), require('hlf/hover-intent')); } else { attach(HLF, HLF.HoverIntent); } })(this, function(HLF, HoverIntent) { 'use strict'; // // Tip // --- // // - __cursorHeight__ is the browser's cursor height. We need to know this to // properly offset the tip to avoid cases of cursor-tip-stem overlap. // // - __defaultDirection__ is used as a tie-breaker when selecting the best // direction. Note that the direction data structure must be an array of // string components, and conventionally with `'top'`/`'bottom'` first. // // - __hasListeners__ can allow events `hlftipawake` and `hlftipwaking`, // `hlftipasleep` and `hlftipsleeping` to be triggered from the trigger // elements. This is off by default to improve performance. // // - __hasStem__ can be turned off to omit rendering the stem and accounting // for it during layout. // // - __snapTo__ when set allows the tip to first snap to or along the trigger // before mouse tracking. Null by default. Values can also be `'x'`, // `'y'`, `'trigger'`. // // - __template__ should return interpolated HTML. Its context is the // extension instance. // // - __toggleDelay__ delays the tip's waking or sleeping under normal cases. // It defaults to 0.7 seconds. // // - __triggerContent__ can be the name of the trigger element's attribute // or a function providing custom content when given the trigger element. // // - __viewportElement__ is the element in which the tip must fit. It is // _not_ the context element, which by convention contains the triggers. // // - Note: the majority of presentation state logic is in the extension // stylesheet. We update the presentation state by using __className__. // // To summarize the implementation, given existing `elements` in a // `contextElement`, a tip `element` is created and configured via // `_renderElement` and attached to `viewportElement`. The extension will // initially `_updateTriggerElements`, which effectively // `_updateTriggerAnchoring` and `_updateTriggerContent`. // // `HoverIntent` event listeners are added to `element` via // `_toggleElementEventListeners` with the `_onContentElementMouseEnter` and // `_onContentElementMouseLeave` handlers, and to `contextElement` via // `_toggleTriggerElementEventListeners` with the // `_onTriggerElementMouseEnter`, `_onTriggerElementMouseLeave`, and // `_onTriggerElementMouseMove` handlers. Aside from // `_onTriggerElementMouseMove` mostly wrapping `_updateElementPosition`, // the handlers mostly wrap `wake` and `sleep`, which `_toggleElement` in a // locking and delayed approach per `_updateState`, `_toggleCountdown`, // `toggleDelay` to avoid the tip having short lifespans or thrashing its // CSS-animated appearance. // // `_updateCurrentTriggerElement` calls are also typical during these actions // and involve updating tip anchoring and size (via `_getElementSize`). And // the `_contextObserver` is manually set up with the `_onContextMutation` // handler that `_updateTriggerElements` and also updates `elements` lists. // // `wake` will also `_updateElementPosition`, which holds the majority of the // tip positioning logic but offloads to `_getStemSize` and // `_getTriggerOffset` (and thereby `_withStealthRender`) as needed. The // current positioning implementation uses `offset(Height|Width|Left|Top)`, // `getBoundingClientRect`, `getComputedStyle`, etc. to simply calculate the // offset, factoring in `snapTo`. The offset is applied to the tip as a CSS // translate transform. // class Tip { static get defaults() { return { cursorHeight: 12, defaultDirection: ['bottom', 'right'], hasListeners: false, hasStem: true, repositionToFit: true, snapTo: null, template() { let stemHtml = this.hasStem ? `<div class="${this.className('stem')}"></div>` : ''; return ( `<div class="${this.className('inner')}"> ${stemHtml} <div class="${this.className('content')}"></div> </div>` ); }, toggleDelay: 700, triggerContent: null, viewportElement: document.body, }; } static toPrefix(context) { switch (context) { case 'event': return 'hlftip'; case 'data': return 'hlf-tip'; case 'class': return 'tips'; case 'var': return 'tip'; default: return 'hlf-tip'; } } constructor(elements, options, contextElement) { this.elementHoverIntent = null; this.hoverIntent = null; this._currentTriggerElement = null; this._sleepingPosition = null; this._state = null; this._stemSize = null; this._toggleCountdown = null; } init() { this.element = document.createElement('div'); this._updateState('asleep'); this._renderElement(); this._toggleContextMutationObserver(true); this._toggleElementEventListeners(true); this._toggleTriggerElementEventListeners(true); this._updateTriggerElements(); } deinit() { this.element.parentNode.removeChild(this.element); this._toggleContextMutationObserver(false); this._toggleElementEventListeners(false); this._toggleTriggerElementEventListeners(false); } get isAsleep() { return this._state === 'asleep'; } get isSleeping() { return this._state === 'sleeping'; } get isAwake() { return this._state === 'awake'; } get isWaking() { return this._state === 'waking'; } get snapToTrigger() { return this.snapTo === 'trigger'; } get snapToXAxis() { return this.snapTo === 'x'; } get snapToYAxis() { return this.snapTo === 'y'; } sleep({ triggerElement, event }) { if (this.isAsleep || this.isSleeping) { return; } this._updateState('sleeping', { event }); this.setTimeout('_toggleCountdown', this.toggleDelay, () => { this._toggleElement(false, () => { this._updateState('asleep', { event }); }); }); } wake({ triggerElement, event }) { this._updateCurrentTriggerElement(triggerElement); if (this.isAwake || this.isWaking) { return; } let delayed = !this.isSleeping; if (!delayed) { this.debugLog('staying awake'); } this._updateState('waking', { event }); this.setTimeout('_toggleCountdown', (!delayed ? 0 : this.toggleDelay), () => { this._toggleElement(true, () => { this._updateState('awake', { event }); }); if (event.target !== this._contentElement) { this._updateElementPosition(triggerElement, event); } }); } // // `_getElementSize` does a stealth render via `_withStealthRender` to find // tip size. It returns saved data if possible before doing a measure. The // measures, used by `_updateTriggerAnchoring`, are stored on the trigger // as namespaced, `width` and `height` data-attributes. If on, // `contentOnly` will factor in content padding into the size value for the // current size. // // `_getStemSize` does a stealth render via `_withStealthRender` to find // stem size. The stem layout styles will add offset to the tip content // based on the tip direction. Knowing the size helps operations like // overall tip positioning. // // `_isTriggerDirection` deduces if `element` has the given // `directionComponent`, which is true if it has the classes or if there is // no `triggerElement` or saved direction value, and `directionComponent` // is part of `defaultDirection`. // // `_updateTriggerContent` comes with a very simple base implementation // that supports the common `title` and `alt` meta content for an element. // Support is also provided for the `triggerContent` option. We take that // content and store it into a namespaced `content` data-attribute on the // trigger. // _getElementSize(triggerElement, { contentOnly } = {}) { let size = { height: triggerElement.getAttribute(this.attrName('height')), width: triggerElement.getAttribute(this.attrName('width')), }; if (!size.height || !size.width) { this._updateElementContent(triggerElement); this._withStealthRender(() => { triggerElement.setAttribute(this.attrName('height'), (size.height = this.element.offsetHeight)); triggerElement.setAttribute(this.attrName('width'), (size.width = this.element.offsetWidth)); }); } if (contentOnly) { const { paddingTop, paddingLeft, paddingBottom, paddingRight } = getComputedStyle(this._contentElement); size.height -= parseFloat(paddingTop) + parseFloat(paddingBottom); size.width -= parseFloat(paddingLeft) + parseFloat(paddingRight); } return size; } _getStemSize() { let size = this._stemSize; if (size != null) { return size; } let stemElement = this.selectByClass('stem', this.element); if (!stemElement) { size = 0; } else { this._withStealthRender(() => { let margin = getComputedStyle(stemElement).margin.replace(/0px/g, ''); size = Math.abs(parseInt(margin)); }); } this._stemSize = size; return size; } _getTriggerOffset(triggerElement) { const { position } = getComputedStyle(triggerElement); if (position === 'fixed' || position === 'absolute') { const triggerRect = triggerElement.getBoundingClientRect(); const viewportRect = this.viewportElement.getBoundingClientRect(); return { left: triggerRect.left - viewportRect.left, top: triggerRect.top - viewportRect.top, }; } else { return { left: triggerElement.offsetLeft, top: triggerElement.offsetTop }; } } _isTriggerDirection(directionComponent, triggerElement) { if (this.element.classList.contains(this.className(directionComponent))) { return true; } if ( (!triggerElement || !triggerElement.hasAttribute(this.attrName('direction'))) && this.defaultDirection.indexOf(directionComponent) !== -1 ) { return true; } return false; } _onContextMutation(mutations) { let newTriggerElements = []; const allTriggerElements = [...this.querySelector(this.contextElement)]; mutations.forEach((mutation) => { let triggerElements = [...mutation.addedNodes] .filter(n => n instanceof HTMLElement) .map((n) => { let result = this.querySelector(n); return result.length ? result[0] : n; }) .filter(n => allTriggerElements.indexOf(n) !== -1); newTriggerElements = newTriggerElements.concat(triggerElements); }); this._updateTriggerElements(newTriggerElements); this.elements = this.elements.concat(newTriggerElements); this.hoverIntent.elements = this.elements; } _onContentElementMouseEnter(event) { this.debugLog('enter tip'); let triggerElement = this._currentTriggerElement; if (!triggerElement) { return; } this.wake({ triggerElement, event }); } _onContentElementMouseLeave(event) { this.debugLog('leave tip'); let triggerElement = this._currentTriggerElement; if (!triggerElement) { return; } this.sleep({ triggerElement, event }); } _onTriggerElementMouseEnter(event) { this.wake({ triggerElement: event.target, event }); } _onTriggerElementMouseLeave(event) { this.sleep({ triggerElement: event.target, event }); } _onTriggerElementMouseMove(event) { const { target } = event; if (target.classList.contains(this.className('trigger'))) { this._updateCurrentTriggerElement(target); } if ( this.isAsleep || !this._currentTriggerElement || ( target !== this._currentTriggerElement && target !== this._currentTriggerElement.parentElement && !this._currentTriggerElement.contains(target) ) ) { return; } this._updateElementPosition(this._currentTriggerElement, event); } _renderElement() { if (this.element.innerHTML.length) { return; } this.element.innerHTML = this.template(); this.element.classList.add( this.className('tip'), this.className('follow'), this.className('hidden'), ...(this.defaultDirection.map(this.className)) ); this._contentElement = this.selectByClass('content', this.element); this.viewportElement.insertBefore(this.element, this.viewportElement.firstChild); if (this.snapTo) { this.element.classList.add(this.className((() => { if (this.snapToTrigger) { return 'snap-trigger'; } else if (this.snapToXAxis) { return 'snap-x-side'; } else if (this.snapToYAxis) { return 'snap-y-side'; } })())); } } _toggleContextMutationObserver(on) { if (!this.querySelector) { return; } if (!this._contextObserver) { this._contextObserver = new MutationObserver(this._onContextMutation); } if (on) { const options = { childList: true, subtree: true }; this._contextObserver.observe(this.contextElement, options); } else { this._contextObserver.disconnect(); } } _toggleElement(visible, completion) { if (this._toggleAnimation) { return; } const duration = this.cssVariableDuration('toggle-duration', this.element); let { classList, style } = this.element; classList.toggle(this.className('visible'), visible); if (visible) { classList.remove(this.className('hidden')); } this.setTimeout('_toggleAnimation', duration, () => { if (!visible) { classList.add(this.className('hidden')); style.transform = 'none'; } completion(); }); } _toggleElementEventListeners(on) { if (this.elementHoverIntent || !on) { this.elementHoverIntent.remove(); this.elementHoverIntent = null; } if (on) { this.elementHoverIntent = HoverIntent.extend(this._contentElement); } const { eventName } = HoverIntent; let listeners = {}; listeners[eventName('enter')] = this._onContentElementMouseEnter; listeners[eventName('leave')] = this._onContentElementMouseLeave; this.toggleEventListeners(on, listeners, this._contentElement); } _toggleTriggerElementEventListeners(on) { if (this.hoverIntent || !on) { this.hoverIntent.remove(); this.hoverIntent = null; } if (on) { const { contextElement } = this; this.hoverIntent = HoverIntent.extend(this.elements, { contextElement }); } const { eventName } = HoverIntent; let listeners = {}; listeners[eventName('enter')] = this._onTriggerElementMouseEnter; listeners[eventName('leave')] = this._onTriggerElementMouseLeave; listeners[eventName('track')] = this._onTriggerElementMouseMove; this.toggleEventListeners(on, listeners, this.contextElement); } _updateCurrentTriggerElement(triggerElement) { if (triggerElement == this._currentTriggerElement) { return; } this._updateElementContent(triggerElement); let contentSize = this._getElementSize(triggerElement, { contentOnly: true }); this._contentElement.style.height = `${contentSize.height}px`; this._contentElement.style.width = `${contentSize.width + 1}px`; // Give some buffer. let { classList } = this.element; let compoundDirection = triggerElement.hasAttribute(this.attrName('direction')) ? triggerElement.getAttribute(this.attrName('direction')).split(' ') : this.defaultDirection; let directionClassNames = compoundDirection.map(this.className); if (!directionClassNames.reduce((memo, className) => { return memo && classList.contains(className); }, true)) { this.debugLog('update direction class', compoundDirection); classList.remove(...(['top', 'bottom', 'right', 'left'].map(this.className))); classList.add(...directionClassNames); } this._currentTriggerElement = triggerElement; } _updateElementContent(triggerElement) { const content = triggerElement.getAttribute(this.attrName('content')); if (content.indexOf('<') !== -1) { this._contentElement.innerHTML = content; } else { this._contentElement.textContent = content; } } _updateElementPosition(triggerElement, event) { let cursorHeight = this.snapTo ? 0 : this.cursorHeight; let offset = { left: event.detail.pageX, top: event.detail.pageY }; if (this.snapTo) { // Note vertical directions already account for stem-size. let triggerOffset = this._getTriggerOffset(triggerElement); if (this.snapToXAxis || this.snapToTrigger) { offset.top = triggerOffset.top; if (this._isTriggerDirection('bottom', triggerElement)) { offset.top += triggerElement.offsetHeight; } if (!this.snapToTrigger) { offset.left -= this.element.offsetWidth / 2; } } if (this.snapToYAxis || this.snapToTrigger) { offset.left = triggerOffset.left; if (!this.snapToTrigger) { if (this._isTriggerDirection('right', triggerElement)) { offset.left += triggerElement.offsetWidth + this._getStemSize(); } else if (this._isTriggerDirection('left', triggerElement)) { offset.left -= this._getStemSize(); } offset.top -= this.element.offsetHeight / 2 + this._getStemSize(); } } } if (this._isTriggerDirection('top', triggerElement)) { offset.top -= this.element.offsetHeight + this._getStemSize(); } else if (this._isTriggerDirection('bottom', triggerElement)) { offset.top += cursorHeight * 2 + this._getStemSize(); } if (this._isTriggerDirection('left', triggerElement)) { offset.left -= this.element.offsetWidth; if (this.element.offsetWidth > triggerElement.offsetWidth) { offset.left += triggerElement.offsetWidth; } } this.element.style.transform = `translate(${offset.left}px, ${offset.top}px)`; } _updateState(state, { event } = {}) { if (state === this._state) { return; } if (this._state) { if (state === 'asleep' && !this.isAsleep) { return; } if (state === 'awake' && !this.isWaking) { return; } } this._state = state; this.debugLog(state); if (this.hasListeners && this._currentTriggerElement) { this._currentTriggerElement.dispatchEvent( this.createCustomEvent(this._state) ); } if (this.isAsleep || this.isAwake) { if (this._currentTriggerElement) { this._currentTriggerElement.setAttribute( this.attrName('has-tip-focus'), this.isAwake ); } if (this.hoverIntent) { this.hoverIntent.configure({ interval: this.isAwake ? 100 : 'default', sensitivity: this.isAwake ? 1 : 'default', }); } } else if (this.isSleeping) { this._sleepingPosition = { x: event.detail.pageX, y: event.detail.pageY }; } else if (this.isWaking) { this._sleepingPosition = null; } } _updateTriggerAnchoring(triggerElement) { let offset = this._getTriggerOffset(triggerElement); let height = triggerElement.offsetHeight; let width = triggerElement.offsetWidth; let tip = this._getElementSize(triggerElement); this.debugLog({ offset, height, width, tip }); const viewportRect = this.viewportElement.getBoundingClientRect(); let newDirection = this.defaultDirection.map((d) => { let edge, fits; if (d === 'bottom') { fits = (edge = offset.top + height + tip.height) && edge <= viewportRect.height; } else if (d === 'right') { fits = (edge = offset.left + tip.width) && edge <= viewportRect.width; } else if (d === 'top') { fits = (edge = offset.top - tip.height) && edge >= 0; } else if (d === 'left') { fits = (edge = offset.left - tips.width) && edge >= 0; } else { fits = true; } this.debugLog('check-direction-component', { d, edge }); if (!fits && this.repositionToFit) { if (d === 'bottom') { return 'top'; } if (d === 'right') { return 'left'; } if (d === 'top') { return 'bottom'; } if (d === 'left') { return 'right'; } } return d; }); triggerElement.setAttribute(this.attrName('direction'), newDirection.join(' ')); } _updateTriggerContent(triggerElement) { const { triggerContent } = this; let content; if (typeof triggerContent === 'function') { content = triggerContent(triggerElement); } else { let contentAttribute; let shouldRemoveAttribute = true; if (triggerElement.hasAttribute(triggerContent)) { contentAttribute = triggerContent; } else if (triggerElement.hasAttribute('title')) { contentAttribute = 'title'; } else if (triggerElement.hasAttribute('alt')) { contentAttribute = 'alt'; shouldRemoveAttribute = false; } else { return console.error('Unsupported trigger.'); } content = triggerElement.getAttribute(contentAttribute); if (shouldRemoveAttribute) { triggerElement.removeAttribute(contentAttribute); } } triggerElement.setAttribute(this.attrName('content'), content); } _updateTriggerElements(triggerElements) { if (!triggerElements) { triggerElements = this.elements; } triggerElements.forEach((triggerElement) => { triggerElement.classList.add(this.className('trigger')); this._updateTriggerContent(triggerElement); this._updateTriggerAnchoring(triggerElement); }); } _withStealthRender(fn) { if (getComputedStyle(this.element).display !== 'none') { return fn(); } this.swapClasses('hidden', 'visible', this.element); this.element.style.visibility = 'hidden'; let result = fn(); this.swapClasses('visible', 'hidden', this.element); this.element.style.visibility = 'visible'; return result; } } Tip.debug = false; HLF.buildExtension(Tip, { autoBind: true, compactOptions: true, mixinNames: ['css', 'event', 'selection'], }); Object.assign(HLF, { Tip }); return Tip; });
define('data/progressbars', function () { /** * A module representing a progressbars dataset. * @exports data/progressbars * @type {{title: string}} */ var progresssbarsData = { title: 'Progress Bars' }; return progresssbarsData; });
import { Meteor } from 'meteor/meteor'; export function formatDateTimeText(date) { if (! date) { return '????/??/?? ??:??:??'; } return ( `${date.getFullYear()}/${padZero(date.getMonth() + 1)}/${padZero(date.getDate())} ${padZero(date.getHours())}:${padZero(date.getMinutes())}:${padZero(date.getSeconds())}` ); } export function formatShortDateTimeText(date) { if (! date) { return '??/?? ??:??'; } return ( `${padZero(date.getMonth() + 1)}/${padZero(date.getDate())} ${padZero(date.getHours())}:${padZero(date.getMinutes())}` ); } export function formatShortDurationTimeText(time) { const timeBase = 1000 * 60; if (! time) { return '??:??'; } time = Math.floor(time / timeBase); return ( `${padZero(Math.floor(time / 60))}:${padZero(time % 60)}` ); } export function formatLongDurationTimeText(time) { if (! time) { return '不明'; } const secondBase = 1000; const minuteBase = 60 * secondBase; const hourBase = 60 * minuteBase; const dayBase = 24 * hourBase; let remainingTime = time; const days = Math.floor(remainingTime / dayBase); remainingTime -= days * dayBase; const hours = Math.floor(remainingTime / hourBase); remainingTime -= hours * hourBase; const minutes = Math.floor(remainingTime / minuteBase); remainingTime -= minutes * minuteBase; const seconds = Math.floor(remainingTime / secondBase); remainingTime -= seconds * secondBase; return [ time >= dayBase ? `${days} 天` : '', time >= hourBase ? `${hours} 時` : '', time >= minuteBase ? `${minutes} 分` : '', time >= secondBase ? `${seconds} 秒` : '' ].join(' ').trim(); } export function padZero(n) { return n < 10 ? `0${n}` : `${n}`; } /** * 到指定的時區 * @param {Date} date 要轉換的時間 * @param {Number} [timezone] 時區,如 UTC+8 為 8,預設用config中的 websiteInfo.timezone * @returns {Date} 轉換時區後的時間 */ export function toCustomTimezone(date, timezone) { if (typeof timezone !== 'number') { timezone = Meteor.settings.public.websiteInfo.timezone; } return new Date(date.getTime() + date.getTimezoneOffset() * 60000 + timezone * 3600000); }
var ExtractTextPlugin = require("../../../"); module.exports = { entry: "./index", plugins: [ new ExtractTextPlugin("file.css") ] };
var expect = require('expect.js'); var EventEmitter = require('events').EventEmitter; var Job = require('../').Job; describe('Job', function () { var job; describe('with no plugins', function () { beforeEach(function () { job = new Job( { _id: 'man', project: { display_name: 'testing' }, trigger: { type: 'manual' }, ref: { branch: 'master' } }, { fetch: function (dest, userConfig, config, done) { done(null); } }, [], { io: new EventEmitter() }); }); it('should fail', function (done) { this.timeout(30); job.run(function (err) { expect(err.message).to.match(/plugin/); done(); }); }); }); });
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 120910005, "Date": "03\/31\/2012", "Time": "12:47 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.120071, -87.956176 ], "Address": "5638 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956176360782692, 43.120070968636384 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 1, "Incident Number": 120910019, "Date": "03\/31\/2012", "Time": "01:44 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.128422, -87.967313 ], "Address": "6096 N HOPKINS ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 3, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.967312599026627, 43.128422409905973 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 2, "Incident Number": 120900049, "Date": "03\/30\/2012", "Time": "12:11 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.107186, -87.961244 ], "Address": "4937 N HOPKINS ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.961244326785732, 43.107185876666854 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 3, "Incident Number": 120890122, "Date": "03\/29\/2012", "Time": "07:32 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.128232, -87.952170 ], "Address": "6111 N TEUTONIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.952170491924292, 43.128231776775976 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 4, "Incident Number": 120880142, "Date": "03\/28\/2012", "Time": "09:08 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.118379, -87.956290 ], "Address": "5541 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956290175861028, 43.118378528449426 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 5, "Incident Number": 120870161, "Date": "03\/27\/2012", "Time": "09:05 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104713, -87.968611 ], "Address": "4422 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.968610974464767, 43.104713467684107 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 6, "Incident Number": 120860017, "Date": "03\/26\/2012", "Time": "03:57 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.111964, -87.958804 ], "Address": "5200 N 37TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.958804118006839, 43.111963790337192 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 7, "Incident Number": 120860023, "Date": "03\/26\/2012", "Time": "07:06 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.097288, -87.946984 ], "Address": "2700 W ATKINSON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.946984436396306, 43.097288120297797 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 8, "Incident Number": 120850128, "Date": "03\/25\/2012", "Time": "06:38 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104914, -87.935285 ], "Address": "4822 N 19TH PL", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.935284893531275, 43.104914465722203 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 9, "Incident Number": 120840100, "Date": "03\/24\/2012", "Time": "04:53 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.096879, -87.946831 ], "Address": "4375 N 27TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.94683063589909, 43.096878922009353 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 10, "Incident Number": 120820085, "Date": "03\/22\/2012", "Time": "12:33 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.093997, -87.933509 ], "Address": "1801 W OLIVE ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933508918229776, 43.093996773675023 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 11, "Incident Number": 120820166, "Date": "03\/22\/2012", "Time": "09:32 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.111855, -87.968680 ], "Address": "4475 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.968679973472035, 43.111854962876329 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 12, "Incident Number": 120810010, "Date": "03\/21\/2012", "Time": "01:33 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.108767, -87.945299 ], "Address": "5015 N 26TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 0, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.945298624790581, 43.108767419095159 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 13, "Incident Number": 120810092, "Date": "03\/21\/2012", "Time": "01:39 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.091276, -87.924800 ], "Address": "1110 W FIEBRANTZ AV", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.924800200386642, 43.091275514859404 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 14, "Incident Number": 120810156, "Date": "03\/21\/2012", "Time": "08:19 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104450, -87.931429 ], "Address": "4803 N GREEN BAY AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.931428959041725, 43.104450306068159 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 15, "Incident Number": 120800078, "Date": "03\/20\/2012", "Time": "01:56 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.107497, -87.933982 ], "Address": "4946 N 19TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933982360782693, 43.107497413266771 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 16, "Incident Number": 120790009, "Date": "03\/19\/2012", "Time": "12:17 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.109313, -87.962184 ], "Address": "5065 N HOPKINS ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.962184249264041, 43.10931278351319 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 17, "Incident Number": 120790057, "Date": "03\/19\/2012", "Time": "11:05 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.094925, -87.933099 ], "Address": "4243 N 18TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933098606468718, 43.09492545045876 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 18, "Incident Number": 120790184, "Date": "03\/19\/2012", "Time": "09:31 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.123576, -87.951447 ], "Address": "5839 N TEUTONIA AV #8", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.951446940215632, 43.123576075768938 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 19, "Incident Number": 120780068, "Date": "03\/18\/2012", "Time": "09:21 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112584, -87.956454 ], "Address": "5237 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956454320160745, 43.112584087008912 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 20, "Incident Number": 120770001, "Date": "03\/17\/2012", "Time": "12:40 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.100126, -87.946672 ], "Address": "4550 N 27TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.946672444601717, 43.100125826533571 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 21, "Incident Number": 120750037, "Date": "03\/15\/2012", "Time": "09:03 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.107373, -87.975172 ], "Address": "4937 N 50TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.975171657539178, 43.107372754371283 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 22, "Incident Number": 120710105, "Date": "03\/11\/2012", "Time": "06:10 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104634, -87.951749 ], "Address": "3100 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.951749004971788, 43.104634489003132 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 23, "Incident Number": 120720007, "Date": "03\/11\/2012", "Time": "11:31 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.089590, -87.932552 ], "Address": "1710 W CAPITOL DR #REAR", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.932551971550581, 43.089590460470738 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 24, "Incident Number": 120700073, "Date": "03\/10\/2012", "Time": "01:25 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.093007, -87.930596 ], "Address": "4168 N 16TH ST #REAR", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.930596411853131, 43.093006826533554 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 25, "Incident Number": 120700088, "Date": "03\/10\/2012", "Time": "02:52 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.114278, -87.933826 ], "Address": "5345 N GREEN BAY AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 0, "g_clusterK10": 2, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933825921864184, 43.114277837382275 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 26, "Incident Number": 120690031, "Date": "03\/09\/2012", "Time": "09:53 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.117676, -87.964624 ], "Address": "5504 N 42ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 4, "e_clusterK8": 1, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.96462435356932, 43.117676413266793 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 27, "Incident Number": 120680010, "Date": "03\/08\/2012", "Time": "12:47 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.128422, -87.967313 ], "Address": "6096 N HOPKINS ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 3, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.967312599026627, 43.128422409905973 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 28, "Incident Number": 120680040, "Date": "03\/08\/2012", "Time": "07:23 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.092901, -87.939378 ], "Address": "4139 N 22ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.939378055398265, 43.092901424923554 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 29, "Incident Number": 120680065, "Date": "03\/08\/2012", "Time": "11:28 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.152247, -87.957994 ], "Address": "7409 N TEUTONIA AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 3, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.957994377488433, 43.152246691644088 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 30, "Incident Number": 120660026, "Date": "03\/06\/2012", "Time": "08:38 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.094511, -87.945552 ], "Address": "4284 N 26TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.945552400744646, 43.094510968636399 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 31, "Incident Number": 120660146, "Date": "03\/05\/2012", "Time": "10:21 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104450, -87.931429 ], "Address": "4803 N GREEN BAY AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 4, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.931428959041725, 43.104450306068159 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 32, "Incident Number": 120640112, "Date": "03\/04\/2012", "Time": "08:40 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.111784, -87.955247 ], "Address": "5195 N 34TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.955247423948791, 43.111783834022873 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 33, "Incident Number": 120630052, "Date": "03\/03\/2012", "Time": "01:46 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.113987, -87.947688 ], "Address": "5309 N 28TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.947688124790588, 43.113987282820716 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 34, "Incident Number": 120610032, "Date": "03\/01\/2012", "Time": "07:57 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.118695, -87.925922 ], "Address": "1221 W SILVER SPRING DR", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 0, "g_clusterK10": 2, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.92592198848746, 43.118694546742631 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 35, "Incident Number": 120890020, "Date": "03\/29\/2012", "Time": "07:58 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.034688, -87.991015 ], "Address": "334 N 63RD ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.991015444601729, 43.034688419095176 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 36, "Incident Number": 120880113, "Date": "03\/28\/2012", "Time": "05:48 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.081858, -87.985782 ], "Address": "3445 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.985781515436329, 43.081857701915851 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 37, "Incident Number": 120840080, "Date": "03\/24\/2012", "Time": "01:31 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.034875, -87.957811 ], "Address": "3500 W ST PAUL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.957811095762267, 43.034874749602587 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 38, "Incident Number": 120830116, "Date": "03\/23\/2012", "Time": "07:14 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.068046, -87.983514 ], "Address": "5600 W CENTER ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.983513748542904, 43.068045518754566 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 39, "Incident Number": 120790186, "Date": "03\/19\/2012", "Time": "09:50 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.028420, -88.001403 ], "Address": "7115 W ADLER ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -88.001402809740895, 43.028419506780686 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 40, "Incident Number": 120780178, "Date": "03\/18\/2012", "Time": "10:02 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.031726, -88.027502 ], "Address": "127 N 92ND ST", "e_clusterK2": 1, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -88.027501555398274, 43.031725658895482 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 41, "Incident Number": 120770091, "Date": "03\/17\/2012", "Time": "02:47 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.026687, -87.994855 ], "Address": "510 S 66TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.994855437388352, 43.026687167638073 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 42, "Incident Number": 120740065, "Date": "03\/14\/2012", "Time": "12:18 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.075462, -88.002610 ], "Address": "7222 W BURLEIGH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 9, "g_clusterK10": 3, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.002610019179642, 43.07546189620124 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 43, "Incident Number": 120730041, "Date": "03\/13\/2012", "Time": "10:57 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.037600, -87.957794 ], "Address": "3500 W MICHIGAN ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.957794360240527, 43.037600488758088 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 44, "Incident Number": 120730051, "Date": "03\/13\/2012", "Time": "12:07 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.070941, -87.982108 ], "Address": "2851 N 55TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.982108106468729, 43.070940586733229 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 45, "Incident Number": 120730114, "Date": "03\/13\/2012", "Time": "05:20 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.073056, -87.980919 ], "Address": "2969 N 54TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.980918635322169, 43.073055586733233 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 46, "Incident Number": 120710057, "Date": "03\/11\/2012", "Time": "12:28 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.088234, -88.002597 ], "Address": "7284 W APPLETON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.00259736522608, 43.088234164319857 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 47, "Incident Number": 120710069, "Date": "03\/11\/2012", "Time": "01:50 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.074850, -87.986241 ], "Address": "3049 N 59TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.986240639794218, 43.074850400773308 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 48, "Incident Number": 120690110, "Date": "03\/09\/2012", "Time": "05:20 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.081858, -87.985782 ], "Address": "3445 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.985781515436329, 43.081857701915851 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 49, "Incident Number": 120680179, "Date": "03\/08\/2012", "Time": "10:11 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.075415, -88.002244 ], "Address": "7170 W BURLEIGH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 9, "g_clusterK10": 3, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.002243518321862, 43.075414507646052 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 50, "Incident Number": 120650003, "Date": "03\/05\/2012", "Time": "02:39 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.028388, -87.996095 ], "Address": "314 S 67TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.99609488631792, 43.028387832361943 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 51, "Incident Number": 120650017, "Date": "03\/05\/2012", "Time": "08:02 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.029814, -87.996083 ], "Address": "172 S 67TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.996083419066494, 43.029814043857087 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 52, "Incident Number": 120650029, "Date": "03\/05\/2012", "Time": "08:56 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.029565, -87.995804 ], "Address": "6633 W DIXON ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.995803919095152, 43.029564517889185 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 53, "Incident Number": 120640131, "Date": "03\/04\/2012", "Time": "11:18 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.025111, -87.998632 ], "Address": "638 S 69TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.998632451815084, 43.025111497085817 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 54, "Incident Number": 120630029, "Date": "03\/03\/2012", "Time": "11:10 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.067493, -87.978599 ], "Address": "2674 N 52ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.978598997979134, 43.06749321915823 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 55, "Incident Number": 120620034, "Date": "03\/02\/2012", "Time": "10:58 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038314, -88.030570 ], "Address": "9409 W WISCONSIN AV", "e_clusterK2": 1, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 2, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -88.030570379133209, 43.038314488458809 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 56, "Incident Number": 120620114, "Date": "03\/02\/2012", "Time": "06:57 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.082053, -87.983350 ], "Address": "3455 N 56TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.983349588146865, 43.082053323619363 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 57, "Incident Number": 120810090, "Date": "03\/21\/2012", "Time": "01:17 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.984778, -87.992703 ], "Address": "6424 W OHIO AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.992703, 42.984777518754562 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 58, "Incident Number": 120790167, "Date": "03\/19\/2012", "Time": "08:25 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.976889, -88.014065 ], "Address": "3746 S 81ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -88.014065221349085, 42.976888786617288 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 59, "Incident Number": 120740107, "Date": "03\/14\/2012", "Time": "04:31 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.974281, -87.991864 ], "Address": "6313 W FOREST HOME AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.991864219678391, 42.974281172037976 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 60, "Incident Number": 120660017, "Date": "03\/06\/2012", "Time": "05:04 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.983287, -87.942249 ], "Address": "3367 S 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.94224898032266, 42.983286795176291 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 61, "Incident Number": 120620086, "Date": "03\/02\/2012", "Time": "01:41 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.978831, -87.991709 ], "Address": "6215 W WARNIMONT AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 7, "e_clusterK9": 8, "g_clusterK9": 8, "m_clusterK9": 8, "e_clusterK10": 1, "g_clusterK10": 1, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.991708597380381, 42.978830719286371 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 62, "Incident Number": 120890118, "Date": "03\/29\/2012", "Time": "07:22 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.020060, -87.915943 ], "Address": "417 W WASHINGTON ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 1, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.915943142102833, 43.02005950288553 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 63, "Incident Number": 120880095, "Date": "03\/28\/2012", "Time": "03:57 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.027386, -87.917381 ], "Address": "500 W FLORIDA ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 6, "m_clusterK7": 1, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.917381025535221, 43.027386463788964 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 64, "Incident Number": 120870111, "Date": "03\/27\/2012", "Time": "05:07 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.022995, -87.933993 ], "Address": "1630 W NATIONAL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.933992924923544, 43.022995457152518 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 65, "Incident Number": 120860010, "Date": "03\/26\/2012", "Time": "02:42 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.998734, -87.926141 ], "Address": "2519 S 11TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.926140548184918, 42.99873417346646 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 66, "Incident Number": 120860071, "Date": "03\/26\/2012", "Time": "12:55 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.019134, -87.918319 ], "Address": "600 W SCOTT ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.918319184654024, 43.019133623441405 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 67, "Incident Number": 120860135, "Date": "03\/26\/2012", "Time": "06:15 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.023274, -87.918511 ], "Address": "600 W NATIONAL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 1, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.9185115, 43.023273525967923 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 68, "Incident Number": 120800031, "Date": "03\/20\/2012", "Time": "08:26 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.029223, -87.909609 ], "Address": "212 S BARCLAY ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 2, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.909608625084743, 43.029223268191906 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 69, "Incident Number": 120800045, "Date": "03\/20\/2012", "Time": "10:27 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.023327, -87.925351 ], "Address": "1100 W NATIONAL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.9253515, 43.023327161979928 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 70, "Incident Number": 120790106, "Date": "03\/19\/2012", "Time": "02:21 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.999206, -87.926274 ], "Address": "1100 W ARTHUR AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.926274, 42.999206467684118 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 71, "Incident Number": 120790155, "Date": "03\/19\/2012", "Time": "06:58 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.010305, -87.928134 ], "Address": "1828 S 13TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.92813350288553, 43.010304904524219 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 72, "Incident Number": 120780173, "Date": "03\/18\/2012", "Time": "09:45 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.017056, -87.922714 ], "Address": "900 W GREENFIELD AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.922713525535229, 43.017055500432704 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 73, "Incident Number": 120750090, "Date": "03\/15\/2012", "Time": "12:41 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.025129, -87.916806 ], "Address": "600 S 5TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 1, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 1, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.91680594460172, 43.025129413266768 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 74, "Incident Number": 120740086, "Date": "03\/14\/2012", "Time": "02:58 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.009138, -87.933506 ], "Address": "1605 W FOREST HOME AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.933506386058113, 43.009137693288864 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 75, "Incident Number": 120740104, "Date": "03\/14\/2012", "Time": "04:27 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.010469, -87.927018 ], "Address": "1821 S 12TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.92701804818492, 43.010469419095159 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 76, "Incident Number": 120720043, "Date": "03\/12\/2012", "Time": "07:34 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.998984, -87.926066 ], "Address": "2506 S 11TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.926065970136946, 42.998983826533561 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 77, "Incident Number": 120710156, "Date": "03\/11\/2012", "Time": "11:56 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.006576, -87.933443 ], "Address": "1600 W BECHER ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.933443223007671, 43.006575518754552 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 78, "Incident Number": 120680144, "Date": "03\/08\/2012", "Time": "07:08 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.004779, -87.934478 ], "Address": "1700 W GRANT ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.934478447509207, 43.004778818261606 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 79, "Incident Number": 120650032, "Date": "03\/05\/2012", "Time": "10:36 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.000227, -87.919975 ], "Address": "2444 S 7TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.919975437388359, 43.000227220093478 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 80, "Incident Number": 120610101, "Date": "03\/01\/2012", "Time": "05:37 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.013179, -87.919892 ], "Address": "1643-A S 7TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.919891540971548, 43.013178701915876 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 81, "Incident Number": 120850048, "Date": "03\/25\/2012", "Time": "09:51 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.967665, -87.904328 ], "Address": "4225 S GRIFFIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.904328073720137, 42.967665 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 82, "Incident Number": 120790066, "Date": "03\/19\/2012", "Time": "11:21 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.967683, -87.938972 ], "Address": "4255 S 20TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.938971540971551, 42.967683167638057 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 83, "Incident Number": 120720053, "Date": "03\/12\/2012", "Time": "11:16 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.997467, -87.937436 ], "Address": "1921 W HARRISON AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.937436209258223, 42.997466870606338 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 84, "Incident Number": 120690029, "Date": "03\/09\/2012", "Time": "08:54 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.960518, -87.916975 ], "Address": "4620 S 5TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.916974960615903, 42.960518413266783 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 85, "Incident Number": 120640048, "Date": "03\/04\/2012", "Time": "12:58 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.000048, -87.935610 ], "Address": "2453 S 18TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.935609522649685, 43.000048257285471 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 86, "Incident Number": 120890110, "Date": "03\/29\/2012", "Time": "06:17 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.994822, -87.911510 ], "Address": "2701 S CHASE AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.911510050636821, 42.994822497605412 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 87, "Incident Number": 120840047, "Date": "03\/24\/2012", "Time": "10:19 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.978340, -87.907261 ], "Address": "306 E WILBUR AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.907261416180972, 42.978340486005976 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 88, "Incident Number": 120750051, "Date": "03\/15\/2012", "Time": "11:35 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.002226, -87.904788 ], "Address": "2325 S HOWELL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.904787570401908, 43.002225586733232 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 89, "Incident Number": 120720017, "Date": "03\/12\/2012", "Time": "03:20 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.987240, -87.930094 ], "Address": "3142 S 14TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.930094444601721, 42.987239580904856 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 90, "Incident Number": 120720050, "Date": "03\/12\/2012", "Time": "10:56 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.997668, -87.916488 ], "Address": "450 W HARRISON AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.916488122196228, 42.997668129450688 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 91, "Incident Number": 120680099, "Date": "03\/08\/2012", "Time": "03:41 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.991525, -87.883345 ], "Address": "2892 S DELAWARE AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.883345304830783, 42.991524966124949 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 92, "Incident Number": 120670040, "Date": "03\/07\/2012", "Time": "09:51 AM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.000731, -87.902369 ], "Address": "2416 S KINNICKINNIC AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.902368918229783, 43.000730820445384 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 93, "Incident Number": 120660053, "Date": "03\/06\/2012", "Time": "12:10 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.992695, -87.921429 ], "Address": "2841 S 8TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.921429048184919, 42.992694586733222 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 94, "Incident Number": 120640079, "Date": "03\/04\/2012", "Time": "04:54 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.988608, -87.928766 ], "Address": "3068 S 13TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.92876642627985, 42.988607717179292 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 95, "Incident Number": 120910037, "Date": "03\/31\/2012", "Time": "06:27 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.066441, -87.938657 ], "Address": "2624 N 21ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 5, "g_clusterK7": 1, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.938656621167695, 43.066440879345443 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 96, "Incident Number": 120910168, "Date": "03\/31\/2012", "Time": "11:46 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.051557, -87.961293 ], "Address": "3748 W GALENA ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.961292664723871, 43.051557456575608 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 97, "Incident Number": 120900119, "Date": "03\/30\/2012", "Time": "06:42 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.068077, -87.964495 ], "Address": "2708 N 41ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.964494933493214, 43.068076994171633 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 98, "Incident Number": 120880025, "Date": "03\/28\/2012", "Time": "08:10 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.068338, -87.959754 ], "Address": "2718 N 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.959753944601729, 43.068337994171628 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 99, "Incident Number": 120880027, "Date": "03\/28\/2012", "Time": "07:24 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.055658, -87.946349 ], "Address": "1937 N 26TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.946349095360219, 43.055657528449416 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 100, "Incident Number": 120880071, "Date": "03\/28\/2012", "Time": "01:24 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.065504, -87.947003 ], "Address": "2646 W MEDFORD AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 3, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.94700321285147, 43.065503830717155 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 101, "Incident Number": 120880158, "Date": "03\/28\/2012", "Time": "10:30 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.069505, -87.932605 ], "Address": "1545 W HADLEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 5, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.932604510127547, 43.069505481245464 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 102, "Incident Number": 120880172, "Date": "03\/28\/2012", "Time": "11:31 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.056282, -87.945162 ], "Address": "2501 W BROWN ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.945162204019866, 43.056281795980141 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 103, "Incident Number": 120870066, "Date": "03\/27\/2012", "Time": "01:09 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.057405, -87.965554 ], "Address": "4125 W LLOYD ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.965553981678141, 43.057405477927226 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 104, "Incident Number": 120870126, "Date": "03\/27\/2012", "Time": "06:31 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.059455, -87.929999 ], "Address": "2200 N 14TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 3, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.929998661063053, 43.059455237929257 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 105, "Incident Number": 120860012, "Date": "03\/26\/2012", "Time": "02:22 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.063226, -87.929945 ], "Address": "2450 N 14TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.929944907957989, 43.063226497085822 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 106, "Incident Number": 120860143, "Date": "03\/26\/2012", "Time": "06:39 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.064730, -87.970019 ], "Address": "2519 N 45TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.970019073720138, 43.06473 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 107, "Incident Number": 120850093, "Date": "03\/25\/2012", "Time": "03:20 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.063165, -87.949968 ], "Address": "2433 N 29TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.949968132003946, 43.063164586733222 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 108, "Incident Number": 120830049, "Date": "03\/23\/2012", "Time": "11:15 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.060489, -87.928097 ], "Address": "1300 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 3, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.928097093414621, 43.060489296083603 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 109, "Incident Number": 120830091, "Date": "03\/23\/2012", "Time": "04:30 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.059610, -87.965795 ], "Address": "2212 N 42ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.965794893531267, 43.059610005828375 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 110, "Incident Number": 120820039, "Date": "03\/22\/2012", "Time": "08:06 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.057536, -87.958833 ], "Address": "3600 W LLOYD ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.958833205415189, 43.05753620541519 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 111, "Incident Number": 120810034, "Date": "03\/21\/2012", "Time": "06:35 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.070408, -87.953879 ], "Address": "2836 N 32ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 3, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.953879271161895, 43.070407767451911 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 112, "Incident Number": 120810135, "Date": "03\/21\/2012", "Time": "06:38 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.069659, -87.950157 ], "Address": "2900 W FOND DU LAC AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.950157145289936, 43.069658920169573 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 113, "Incident Number": 120760137, "Date": "03\/16\/2012", "Time": "07:11 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.060453, -87.930463 ], "Address": "1400 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 3, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.930462525535219, 43.06045250432782 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 114, "Incident Number": 120750029, "Date": "03\/15\/2012", "Time": "07:37 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.070822, -87.939930 ], "Address": "2855 N 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 1, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.939930124790578, 43.070822276992317 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 115, "Incident Number": 120750036, "Date": "03\/15\/2012", "Time": "07:53 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.062408, -87.940006 ], "Address": "2402 N 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.940006389636139, 43.06240830391252 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 116, "Incident Number": 120740156, "Date": "03\/14\/2012", "Time": "09:09 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.052714, -87.934541 ], "Address": "1700 W WALNUT ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.934540667638061, 43.05271445325738 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 117, "Incident Number": 120740171, "Date": "03\/14\/2012", "Time": "09:51 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.060687, -87.975184 ], "Address": "4900 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.975183525535229, 43.06068652596791 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 118, "Incident Number": 120730095, "Date": "03\/13\/2012", "Time": "04:16 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.065271, -87.962241 ], "Address": "2547 N 39TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.962240606468725, 43.065270754371284 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 119, "Incident Number": 120700110, "Date": "03\/10\/2012", "Time": "05:54 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": "THEFT FROM MOTOR VEHICLE", "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.067620, -87.947692 ], "Address": "2727 W FOND DU LAC AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.947692457700782, 43.067620479023752 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 120, "Incident Number": 120680033, "Date": "03\/08\/2012", "Time": "08:15 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.057954, -87.961161 ], "Address": "2119 N 38TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.961160606468724, 43.05795358673322 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 121, "Incident Number": 120660160, "Date": "03\/07\/2012", "Time": "12:30 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.057065, -87.955224 ], "Address": "2043 N 33RD ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.955223700640445, 43.057065223395888 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 122, "Incident Number": 120660019, "Date": "03\/06\/2012", "Time": "07:25 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.060104, -87.968889 ], "Address": "2239 N 44TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 6, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.968889139217296, 43.060104251457091 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 123, "Incident Number": 120670004, "Date": "03\/06\/2012", "Time": "11:27 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.055271, -87.937731 ], "Address": "1917 N 20TH ST #REAR", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.937731139217306, 43.055270528449427 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 124, "Incident Number": 120650061, "Date": "03\/05\/2012", "Time": "02:13 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.058943, -87.959894 ], "Address": "2168 N 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.959894419066501, 43.058942580904841 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 125, "Incident Number": 120640035, "Date": "03\/04\/2012", "Time": "10:01 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.067995, -87.957491 ], "Address": "3500 W CENTER ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.95749101714415, 43.067995386902432 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 126, "Incident Number": 120630123, "Date": "03\/03\/2012", "Time": "11:55 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.056927, -87.964635 ], "Address": "2018 N 41ST ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.964635386317923, 43.056927 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 127, "Incident Number": 120910034, "Date": "03\/31\/2012", "Time": "05:19 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.125723, -87.993376 ], "Address": "5936 N 66TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.993375828034104, 43.125723136274473 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 128, "Incident Number": 120910059, "Date": "03\/31\/2012", "Time": "10:15 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.093979, -87.975726 ], "Address": "4218 N 50TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 2, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.97572585356933, 43.093979245628731 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 129, "Incident Number": 120910129, "Date": "03\/31\/2012", "Time": "07:14 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112204, -88.011981 ], "Address": "8101 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.011981, 43.112204488458815 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 130, "Incident Number": 120910155, "Date": "03\/31\/2012", "Time": "09:35 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.093609, -87.991981 ], "Address": "4141 N 64TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.991980517743997, 43.09360902997863 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 131, "Incident Number": 120900033, "Date": "03\/30\/2012", "Time": "10:15 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.116812, -88.013379 ], "Address": "8132 W GLEN AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.013379487390949, 43.116811741618015 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 132, "Incident Number": 120900116, "Date": "03\/30\/2012", "Time": "06:16 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.095718, -87.991948 ], "Address": "4309 N 64TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.99194757372014, 43.095717754371293 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 133, "Incident Number": 120870020, "Date": "03\/27\/2012", "Time": "06:50 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.111148, -88.021536 ], "Address": "5151 N 87TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.021536033456329, 43.111147641120247 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 134, "Incident Number": 120860053, "Date": "03\/26\/2012", "Time": "11:30 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112231, -88.007832 ], "Address": "7711 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.007831916180962, 43.112230535634119 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 135, "Incident Number": 120860107, "Date": "03\/26\/2012", "Time": "04:05 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.126918, -88.006150 ], "Address": "7600 W FLORIST AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.006150165298848, 43.126917912934154 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 136, "Incident Number": 120850036, "Date": "03\/25\/2012", "Time": "05:37 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.098245, -87.988720 ], "Address": "6129 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.988719739396302, 43.098245173177986 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 137, "Incident Number": 120840032, "Date": "03\/24\/2012", "Time": "07:37 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.114879, -87.984950 ], "Address": "5345 N 58TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.984950157539174, 43.114878502914195 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 138, "Incident Number": 120810015, "Date": "03\/21\/2012", "Time": "12:10 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112214, -87.982500 ], "Address": "5201 N 56TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 2, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.982500124790576, 43.112214335276121 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 139, "Incident Number": 120810070, "Date": "03\/21\/2012", "Time": "10:51 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112894, -88.007550 ], "Address": "7721 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.007549513907122, 43.112893935051098 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 140, "Incident Number": 120800048, "Date": "03\/20\/2012", "Time": "11:31 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.096743, -87.986908 ], "Address": "4357 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.986907573720146, 43.096743031363616 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 141, "Incident Number": 120800098, "Date": "03\/20\/2012", "Time": "04:14 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.094268, -87.973363 ], "Address": "4234 N 48TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 2, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.973363353569326, 43.094268136274451 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 142, "Incident Number": 120780036, "Date": "03\/18\/2012", "Time": "04:26 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.096393, -87.972231 ], "Address": "4351 N 47TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 2, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.972230606468727, 43.096392670552262 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 143, "Incident Number": 120780076, "Date": "03\/18\/2012", "Time": "10:59 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.094735, -87.996913 ], "Address": "4250 N 68TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.996913367996044, 43.09473541326679 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 144, "Incident Number": 120750025, "Date": "03\/15\/2012", "Time": "06:20 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.117846, -88.005894 ], "Address": "5506 N 76TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 0, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.005893875209409, 43.117845991632791 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 145, "Incident Number": 120750066, "Date": "03\/15\/2012", "Time": "11:41 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.120468, -87.992320 ], "Address": "5643 N 65TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.992320099255352, 43.120468005828371 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 146, "Incident Number": 120750160, "Date": "03\/15\/2012", "Time": "09:26 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.091839, -87.977028 ], "Address": "4103 N 51ST BL", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.977027606468724, 43.091838754371281 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 147, "Incident Number": 120730077, "Date": "03\/13\/2012", "Time": "12:38 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.123266, -88.027091 ], "Address": "5801 N 92ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 4, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.027091164752534, 43.123266251457096 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 148, "Incident Number": 120720013, "Date": "03\/12\/2012", "Time": "02:19 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.128647, -88.024506 ], "Address": "9000 W KAUL AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 4, "g_clusterK8": 0, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 7, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 9, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.024505867332223, 43.128647140717867 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 149, "Incident Number": 120720081, "Date": "03\/12\/2012", "Time": "01:33 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.090149, -87.987096 ], "Address": "6000 W CAPITOL DR", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 9, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.987096092183037, 43.090149194569726 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 150, "Incident Number": 120720160, "Date": "03\/12\/2012", "Time": "08:48 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.113270, -88.015814 ], "Address": "5293 N 84TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.015813556258479, 43.113270272544376 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 151, "Incident Number": 120710015, "Date": "03\/11\/2012", "Time": "04:09 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.105089, -88.010064 ], "Address": "7830 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.010063916180968, 43.105089456575598 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 152, "Incident Number": 120690112, "Date": "03\/09\/2012", "Time": "05:33 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.108786, -88.015874 ], "Address": "5000 N 84TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.01587433524746, 43.108785555369622 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 153, "Incident Number": 120690152, "Date": "03\/09\/2012", "Time": "10:13 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.111089, -87.987471 ], "Address": "5157 N 61ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.987471132003947, 43.11108877990651 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 154, "Incident Number": 120680079, "Date": "03\/08\/2012", "Time": "12:56 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.091396, -87.973426 ], "Address": "4066 N 48TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.973426437388355, 43.091395742714525 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 155, "Incident Number": 120670011, "Date": "03\/07\/2012", "Time": "03:38 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.114122, -87.982479 ], "Address": "5311 N 56TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.98247868307439, 43.114122335276136 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 156, "Incident Number": 120650116, "Date": "03\/05\/2012", "Time": "07:28 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.106778, -87.986371 ], "Address": "4907 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.986370580933496, 43.106778115182635 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 157, "Incident Number": 120640054, "Date": "03\/04\/2012", "Time": "02:08 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.101833, -87.993135 ], "Address": "6502 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.993134640140937, 43.101832786860079 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 158, "Incident Number": 120640102, "Date": "03\/04\/2012", "Time": "06:43 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112132, -87.998732 ], "Address": "7003 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.998732025535219, 43.112131513994029 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 159, "Incident Number": 120630030, "Date": "03\/03\/2012", "Time": "10:30 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112222, -88.010230 ], "Address": "7923 W VILLARD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.01023041618096, 43.112222488458826 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 160, "Incident Number": 120620010, "Date": "03\/02\/2012", "Time": "02:12 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.122285, -87.999701 ], "Address": "5739 N 71ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.999700617577233, 43.122285 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 161, "Incident Number": 120610005, "Date": "03\/01\/2012", "Time": "12:37 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112781, -88.015724 ], "Address": "5226 N 84TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.015724364100905, 43.112781471550591 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 162, "Incident Number": 120840096, "Date": "03\/24\/2012", "Time": "03:02 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.061405, -87.885409 ], "Address": "2010 E THOMAS AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.885409264223526, 43.061404866608505 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 163, "Incident Number": 120790105, "Date": "03\/19\/2012", "Time": "02:06 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.053015, -87.894897 ], "Address": "1700 N ARLINGTON PL", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.894896652052594, 43.053015347947394 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 164, "Incident Number": 120780032, "Date": "03\/18\/2012", "Time": "03:58 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.061406, -87.885529 ], "Address": "2000 E THOMAS AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.885528762797975, 43.061405676768331 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 165, "Incident Number": 120780069, "Date": "03\/18\/2012", "Time": "10:06 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.060084, -87.887667 ], "Address": "1800 E KENILWORTH PL", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.887667132451071, 43.060083569379138 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 166, "Incident Number": 120760043, "Date": "03\/16\/2012", "Time": "09:36 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.064953, -87.885081 ], "Address": "2010 E WEBSTER PL", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.885081167638063, 43.064952525967911 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 167, "Incident Number": 120750007, "Date": "03\/15\/2012", "Time": "01:15 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.070635, -87.901559 ], "Address": "2863 N FRATNEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.90155854097155, 43.070634618096818 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 168, "Incident Number": 120750167, "Date": "03\/15\/2012", "Time": "09:28 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.058976, -87.884936 ], "Address": "2211 N PROSPECT AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.884935573431676, 43.058976033873755 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 169, "Incident Number": 120740053, "Date": "03\/14\/2012", "Time": "10:16 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.052579, -87.899586 ], "Address": "1686 N ASTOR ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.899585875209411, 43.052579245628721 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 170, "Incident Number": 120720075, "Date": "03\/12\/2012", "Time": "09:53 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.067970, -87.900431 ], "Address": "2721 N BREMEN ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.900430639217305, 43.067970167638066 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 171, "Incident Number": 120720117, "Date": "03\/12\/2012", "Time": "04:55 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.048114, -87.896801 ], "Address": "1400 N FARWELL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.896800565585423, 43.048114476484997 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 172, "Incident Number": 120690083, "Date": "03\/09\/2012", "Time": "02:25 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.079840, -87.901354 ], "Address": "3404 N FRATNEY ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.901354002885526, 43.079840130446087 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 173, "Incident Number": 120680059, "Date": "03\/08\/2012", "Time": "10:44 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.066855, -87.889260 ], "Address": "2633 N BARTLETT AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.889260084251717, 43.066854586733228 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 174, "Incident Number": 120910065, "Date": "03\/31\/2012", "Time": "09:49 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038780, -87.918461 ], "Address": "509 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.918460922817403, 43.038780480091603 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 175, "Incident Number": 120910122, "Date": "03\/31\/2012", "Time": "05:58 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.033642, -87.908835 ], "Address": "207 E BUFFALO ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.908835150331896, 43.033642068124529 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 176, "Incident Number": 120900055, "Date": "03\/30\/2012", "Time": "12:50 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.042492, -87.930200 ], "Address": "955 N 14TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.930200492465715, 43.042492394253891 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 177, "Incident Number": 120860093, "Date": "03\/26\/2012", "Time": "02:43 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038976, -87.947655 ], "Address": "714 N 27TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.94765465190757, 43.038976060763027 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 178, "Incident Number": 120850106, "Date": "03\/25\/2012", "Time": "04:47 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.043063, -87.923802 ], "Address": "955 W STATE ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.923801974005002, 43.043062525761833 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 179, "Incident Number": 120850156, "Date": "03\/25\/2012", "Time": "08:03 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.047196, -87.939252 ], "Address": "2105 W MC KINLEY AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.93925161226845, 43.047195539529262 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 180, "Incident Number": 120830079, "Date": "03\/23\/2012", "Time": "02:38 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.045845, -87.947401 ], "Address": "2635 W JUNEAU AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.947401332361935, 43.045845477350312 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 181, "Incident Number": 120830113, "Date": "03\/23\/2012", "Time": "06:09 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.042824, -87.923098 ], "Address": "949 N 9TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.923097638359366, 43.042824459449619 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 182, "Incident Number": 120800038, "Date": "03\/20\/2012", "Time": "09:09 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038615, -87.944504 ], "Address": "2455 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.944503751457091, 43.038614517312254 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 183, "Incident Number": 120790064, "Date": "03\/19\/2012", "Time": "11:21 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.048639, -87.945610 ], "Address": "2506 W VLIET ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.945610248542906, 43.048639486005982 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 184, "Incident Number": 120760128, "Date": "03\/16\/2012", "Time": "06:52 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038976, -87.947655 ], "Address": "714 N 27TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.94765465190757, 43.038976060763027 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 185, "Incident Number": 120740106, "Date": "03\/14\/2012", "Time": "04:11 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038825, -87.943002 ], "Address": "2400 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.943002181648325, 43.038825181648335 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 186, "Incident Number": 120740125, "Date": "03\/14\/2012", "Time": "06:11 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038649, -87.952383 ], "Address": "3035 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.952383, 43.03864852784384 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 187, "Incident Number": 120750004, "Date": "03\/14\/2012", "Time": "11:22 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.040320, -87.954800 ], "Address": "3210 W WELLS ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.954799803912522, 43.040319504327833 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 188, "Incident Number": 120730024, "Date": "03\/13\/2012", "Time": "09:24 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.040852, -87.940560 ], "Address": "825 N 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.940560062611638, 43.040852497085808 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 189, "Incident Number": 120720184, "Date": "03\/12\/2012", "Time": "11:48 PM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.047629, -87.945301 ], "Address": "1313 N 25TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.945300595360223, 43.047629497085808 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 190, "Incident Number": 120710022, "Date": "03\/11\/2012", "Time": "04:14 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.037656, -87.908923 ], "Address": "618 N WATER ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.908923152418154, 43.037656493330331 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 191, "Incident Number": 120700051, "Date": "03\/10\/2012", "Time": "11:18 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.038605, -87.944021 ], "Address": "2435 W WISCONSIN AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.944021276992316, 43.03860454284748 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 192, "Incident Number": 120620055, "Date": "03\/02\/2012", "Time": "10:17 AM", "Police District": 3.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.045880, -87.935952 ], "Address": "1818 W JUNEAU AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.935952326533553, 43.045880486582895 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 193, "Incident Number": 120620073, "Date": "03\/02\/2012", "Time": "01:37 PM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.044464, -87.914400 ], "Address": "1110 N OLD WORLD THIRD ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.914400269366695, 43.044463590365083 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 194, "Incident Number": 120900087, "Date": "03\/30\/2012", "Time": "04:08 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104905, -88.017641 ], "Address": "8401 W HAMPTON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.017641025535227, 43.104905488458826 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 195, "Incident Number": 120900127, "Date": "03\/30\/2012", "Time": "05:04 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.089635, -88.024100 ], "Address": "8901 W CAPITOL DR", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.02409980391252, 43.089635484997281 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 196, "Incident Number": 120860059, "Date": "03\/26\/2012", "Time": "11:48 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.097544, -88.009996 ], "Address": "7824 W APPLETON AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.009996189842767, 43.097544247561537 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 197, "Incident Number": 120820015, "Date": "03\/22\/2012", "Time": "01:20 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.093083, -88.008426 ], "Address": "4150 N 77TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 1, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 2, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.008425823734939, 43.093083300305835 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 198, "Incident Number": 120730046, "Date": "03\/13\/2012", "Time": "11:42 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.107588, -88.022140 ], "Address": "4935 N 88TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.022140106468726, 43.107587832361929 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 199, "Incident Number": 120720128, "Date": "03\/12\/2012", "Time": "05:39 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.137512, -88.038778 ], "Address": "6622 N BOURBON ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.038777732414076, 43.137511986092889 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 200, "Incident Number": 120700118, "Date": "03\/10\/2012", "Time": "07:42 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.104356, -88.010543 ], "Address": "4756 N 79TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.010543411853135, 43.104356245628708 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 201, "Incident Number": 120680184, "Date": "03\/08\/2012", "Time": "10:53 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.134919, -88.039100 ], "Address": "10144 W JONEN ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.039100075480491, 43.134919049973938 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 202, "Incident Number": 120650043, "Date": "03\/05\/2012", "Time": "12:06 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.075496, -88.008682 ], "Address": "3105 N 77TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 3, "e_clusterK9": 7, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 9, "g_clusterK10": 3, "m_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -88.008682049890695, 43.075495973899343 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 203, "Incident Number": 120910061, "Date": "03\/31\/2012", "Time": "10:03 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.077961, -87.923680 ], "Address": "3261 N 10TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 5, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.923679650325809, 43.077960586733212 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 204, "Incident Number": 120860057, "Date": "03\/26\/2012", "Time": "11:40 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.054832, -87.906103 ], "Address": "1858 N COMMERCE ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.90610335204012, 43.054832318858864 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 205, "Incident Number": 120850015, "Date": "03\/25\/2012", "Time": "03:12 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.087823, -87.936152 ], "Address": "1963 W MELVINA ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.936152254371279, 43.087822513994041 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 206, "Incident Number": 120830072, "Date": "03\/23\/2012", "Time": "01:57 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.080931, -87.937268 ], "Address": "3391 N 20TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.937268073720148, 43.080930838190312 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 207, "Incident Number": 120830121, "Date": "03\/23\/2012", "Time": "06:05 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.078777, -87.905058 ], "Address": "3320 N HOLTON ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.905058201498193, 43.078777002144534 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 208, "Incident Number": 120820044, "Date": "03\/22\/2012", "Time": "09:36 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.060307, -87.911442 ], "Address": "102 W NORTH AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.91144183236193, 43.060307467684098 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 209, "Incident Number": 120820090, "Date": "03\/22\/2012", "Time": "01:25 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.063542, -87.912619 ], "Address": "2471 N 2ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.912619106468725, 43.063542167638076 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 210, "Incident Number": 120820125, "Date": "03\/22\/2012", "Time": "04:12 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.078691, -87.937804 ], "Address": "2014 W CONCORDIA AV", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.937803723007676, 43.078691482110827 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 211, "Incident Number": 120800094, "Date": "03\/20\/2012", "Time": "03:55 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.078003, -87.941213 ], "Address": "3249 N 23RD ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.941213495441019, 43.078002558428025 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 212, "Incident Number": 120780025, "Date": "03\/18\/2012", "Time": "02:49 AM", "Police District": 1.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.047684, -87.915892 ], "Address": "1303 N 4TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 5, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.91589164311246, 43.047684251457099 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 213, "Incident Number": 120770059, "Date": "03\/17\/2012", "Time": "11:06 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.084840, -87.935490 ], "Address": "1930 W NASH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.935489580904843, 43.084840493219339 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 214, "Incident Number": 120760033, "Date": "03\/16\/2012", "Time": "08:18 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.087804, -87.932129 ], "Address": "1700 W ATKINSON AV", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.932129052492783, 43.087803695601465 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 215, "Incident Number": 120740031, "Date": "03\/14\/2012", "Time": "08:31 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.086726, -87.933312 ], "Address": "3833 N 18TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933311599255362, 43.086725528449421 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 216, "Incident Number": 120740064, "Date": "03\/14\/2012", "Time": "12:11 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.085007, -87.897456 ], "Address": "3750 N HUMBOLDT BL", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.897455882422776, 43.085007052455438 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 217, "Incident Number": 120710091, "Date": "03\/11\/2012", "Time": "04:09 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.086222, -87.933246 ], "Address": "3810 N 18TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933245853569318, 43.086221580904834 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 218, "Incident Number": 120700025, "Date": "03\/10\/2012", "Time": "07:03 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.080733, -87.927311 ], "Address": "3423 N 13TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.927311066506775, 43.080733173466456 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 219, "Incident Number": 120700132, "Date": "03\/10\/2012", "Time": "09:41 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.089455, -87.933735 ], "Address": "1811 W CAPITOL DR", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933734779906516, 43.089455495672162 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 220, "Incident Number": 120700138, "Date": "03\/10\/2012", "Time": "10:50 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.075167, -87.937441 ], "Address": "2000 W BURLEIGH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.93744075, 43.075167227831116 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 221, "Incident Number": 120690062, "Date": "03\/09\/2012", "Time": "12:54 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.081262, -87.909342 ], "Address": "3446 N PALMER ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 3, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.909342371891199, 43.081262245628722 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 222, "Incident Number": 120690137, "Date": "03\/09\/2012", "Time": "07:49 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.078204, -87.921258 ], "Address": "3273 N 8TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.921258132003956, 43.078203754371287 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 223, "Incident Number": 120670068, "Date": "03\/07\/2012", "Time": "12:15 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.074323, -87.922466 ], "Address": "3056 N 9TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 6, "g_clusterK8": 5, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.922465886317923, 43.074322994171609 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 224, "Incident Number": 120650046, "Date": "03\/05\/2012", "Time": "12:09 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.066663, -87.909504 ], "Address": "2644 N PALMER ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "m_clusterK6": 1, "e_clusterK7": 1, "g_clusterK7": 1, "m_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "m_clusterK8": 5, "e_clusterK9": 0, "g_clusterK9": 0, "m_clusterK9": 0, "e_clusterK10": 5, "g_clusterK10": 5, "m_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.909503853569319, 43.066663051070456 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 225, "Incident Number": 120610002, "Date": "03\/01\/2012", "Time": "01:08 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.090767, -87.919629 ], "Address": "4063 N 7TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 1, "m_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.919628613682079, 43.090767199001675 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 226, "Incident Number": 120910052, "Date": "03\/31\/2012", "Time": "09:47 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.079760, -87.963432 ], "Address": "4001 W FOND DU LAC AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.96343203900966, 43.079760063823727 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 227, "Incident Number": 120910057, "Date": "03\/31\/2012", "Time": "09:45 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.095767, -87.972139 ], "Address": "4332 N 47TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 2, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.972139262975219, 43.095766653527136 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 228, "Incident Number": 120910124, "Date": "03\/31\/2012", "Time": "06:41 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.098758, -87.967040 ], "Address": "4475 N SHERMAN BL", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.967039639217305, 43.098758444630391 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 229, "Incident Number": 120900046, "Date": "03\/30\/2012", "Time": "10:56 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.068986, -87.947293 ], "Address": "2758 N 27TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.947293401321559, 43.068986413266771 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 230, "Incident Number": 120900006, "Date": "03\/29\/2012", "Time": "11:49 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.084916, -87.971654 ], "Address": "4642 W MEDFORD AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 6, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.971654023573322, 43.084915710254393 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 231, "Incident Number": 120880032, "Date": "03\/28\/2012", "Time": "09:26 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.079336, -87.950856 ], "Address": "3306 N 30TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 0, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.950855930174995, 43.079336077990661 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 232, "Incident Number": 120880086, "Date": "03\/28\/2012", "Time": "06:45 PM", "Police District": 5.0, "Offense 1": "THEFT FROM BUILDING", "Offense 2": "MOTOR VEHICLE THEFT", "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.076362, -87.951010 ], "Address": "3165 N 30TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 0, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.951009977503105, 43.076362069612074 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 233, "Incident Number": 120860054, "Date": "03\/26\/2012", "Time": "11:34 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.091776, -87.963101 ], "Address": "4103 N 40TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.963101080933498, 43.091775586733235 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 234, "Incident Number": 120860186, "Date": "03\/26\/2012", "Time": "10:23 PM", "Police District": 7.0, "Offense 1": "STOLEN PROPERTY OFFENSES", "Offense 2": "MOTOR VEHICLE THEFT", "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.075396, -87.967481 ], "Address": "3111 N SHERMAN BL", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.967481095360213, 43.075396005828395 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 235, "Incident Number": 120850009, "Date": "03\/24\/2012", "Time": "11:31 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.081379, -87.963125 ], "Address": "3410 N 40TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 6, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.963124879104555, 43.081378994171615 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 236, "Incident Number": 120830033, "Date": "03\/23\/2012", "Time": "09:17 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.086637, -87.958429 ], "Address": "3829 N 36TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 2, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.958429106468728, 43.086636586733221 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 237, "Incident Number": 120810016, "Date": "03\/21\/2012", "Time": "01:33 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.103132, -87.970466 ], "Address": "4726 N 46TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.970466411853124, 43.10313232944776 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 238, "Incident Number": 120800037, "Date": "03\/20\/2012", "Time": "09:05 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.088589, -87.964201 ], "Address": "3925 N 41ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.96420065753918, 43.08858933527614 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 239, "Incident Number": 120800100, "Date": "03\/20\/2012", "Time": "04:28 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.077285, -87.957329 ], "Address": "3209 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 2, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.957328639217309, 43.07728494754457 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 240, "Incident Number": 120790136, "Date": "03\/19\/2012", "Time": "05:25 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.101782, -87.980703 ], "Address": "4646 N 54TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.980703352992407, 43.101782497085821 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 241, "Incident Number": 120780067, "Date": "03\/18\/2012", "Time": "09:58 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.071372, -87.974880 ], "Address": "2879 N 49TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 0, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 7, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.974880153644023, 43.071372335276124 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 242, "Incident Number": 120760034, "Date": "03\/16\/2012", "Time": "08:21 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.079490, -87.968598 ], "Address": "3313 N 44TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 2, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 6, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.968598132003947, 43.07949 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 243, "Incident Number": 120760119, "Date": "03\/16\/2012", "Time": "05:54 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.096320, -87.956949 ], "Address": "4349 N 35TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 0, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956949040971551, 43.096320450458762 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 244, "Incident Number": 120750023, "Date": "03\/15\/2012", "Time": "05:43 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.090543, -87.965338 ], "Address": "4029 N 42ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.965338077615272, 43.090543089647412 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 245, "Incident Number": 120740042, "Date": "03\/14\/2012", "Time": "09:43 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.099181, -87.963885 ], "Address": "4506 N 41ST ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.963885379104553, 43.099181161809696 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 246, "Incident Number": 120740117, "Date": "03\/14\/2012", "Time": "03:05 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.089093, -87.950692 ], "Address": "3973 N 30TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.950691657539181, 43.08909341909515 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 247, "Incident Number": 120730009, "Date": "03\/13\/2012", "Time": "03:26 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.082353, -87.968515 ], "Address": "3456 N 44TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 6, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.968515360782689, 43.082352723007688 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 248, "Incident Number": 120730117, "Date": "03\/13\/2012", "Time": "05:42 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.093425, -87.959763 ], "Address": "3711 W HOPE AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 2, "m_clusterK9": 4, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.9597627485429, 43.093424536211039 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 249, "Incident Number": 120720025, "Date": "03\/12\/2012", "Time": "05:42 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.078868, -87.943425 ], "Address": "3288 N 24TH PL", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.943424853569326, 43.078868497085807 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 250, "Incident Number": 120690131, "Date": "03\/09\/2012", "Time": "07:20 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.091776, -87.963101 ], "Address": "4103 N 40TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 1, "m_clusterK8": 0, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.963101080933498, 43.091775586733235 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 251, "Incident Number": 120650075, "Date": "03\/05\/2012", "Time": "03:38 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.075272, -87.945168 ], "Address": "2530 W BURLEIGH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 3, "m_clusterK4": 3, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "m_clusterK6": 5, "e_clusterK7": 5, "g_clusterK7": 5, "m_clusterK7": 5, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "m_clusterK9": 3, "e_clusterK10": 0, "g_clusterK10": 0, "m_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.945168016217991, 43.07527216390335 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 252, "Incident Number": 120630099, "Date": "03\/03\/2012", "Time": "08:30 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.072632, -87.958493 ], "Address": "2948 N 36TH ST", "e_clusterK2": 0, "g_clusterK2": 1, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 1, "m_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "m_clusterK5": 1, "e_clusterK6": 2, "g_clusterK6": 2, "m_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 2, "m_clusterK7": 0, "e_clusterK8": 6, "g_clusterK8": 6, "m_clusterK8": 6, "e_clusterK9": 2, "g_clusterK9": 2, "m_clusterK9": 2, "e_clusterK10": 3, "g_clusterK10": 3, "m_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -87.958492886317913, 43.072631832361935 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 253, "Incident Number": 120910082, "Date": "03\/31\/2012", "Time": "12:12 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.988502, -87.957671 ], "Address": "3434 W OKLAHOMA AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.95767091909515, 42.988502460470762 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 254, "Incident Number": 120850014, "Date": "03\/25\/2012", "Time": "01:29 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.023069, -87.940776 ], "Address": "750 S 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 7, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 6, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.940776448496862, 43.023069 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 255, "Incident Number": 120820115, "Date": "03\/22\/2012", "Time": "04:01 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.010776, -87.960388 ], "Address": "1815 S 37TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 7, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.960387559293423, 43.010776173466439 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 256, "Incident Number": 120810059, "Date": "03\/21\/2012", "Time": "07:00 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.018407, -87.940825 ], "Address": "1228 S 22ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.940824933493218, 43.018406664723869 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 257, "Incident Number": 120770082, "Date": "03\/17\/2012", "Time": "12:45 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": "STOLEN PROPERTY OFFENSES", "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.001526, -87.954166 ], "Address": "2370 S 32ND ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.954165919066497, 43.001525504299174 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 258, "Incident Number": 120780013, "Date": "03\/17\/2012", "Time": "11:45 PM", "Police District": 6.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 42.988538, -87.958463 ], "Address": "3508 W OKLAHOMA AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.958463429852571, 42.98853760761672 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 259, "Incident Number": 120750041, "Date": "03\/15\/2012", "Time": "08:17 AM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.021687, -87.957085 ], "Address": "3430 W NATIONAL AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 6, "m_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.957084603670097, 43.021687493219339 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 260, "Incident Number": 120750136, "Date": "03\/15\/2012", "Time": "07:06 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.005347, -87.946486 ], "Address": "2162 S 26TH ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.946486451815076, 43.005347413266776 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 261, "Incident Number": 120750185, "Date": "03\/15\/2012", "Time": "11:40 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.004977, -87.948167 ], "Address": "2700 W GRANT ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.948166929122266, 43.004977314521412 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 262, "Incident Number": 120710112, "Date": "03\/11\/2012", "Time": "07:13 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.023832, -87.952803 ], "Address": "3100 W PIERCE ST", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 6, "m_clusterK7": 0, "e_clusterK8": 2, "g_clusterK8": 7, "m_clusterK8": 6, "e_clusterK9": 6, "g_clusterK9": 6, "m_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 8, "m_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.95280278864908, 43.023832457152537 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 263, "Incident Number": 120690122, "Date": "03\/09\/2012", "Time": "06:51 PM", "Police District": 2.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.005890, -87.942591 ], "Address": "2134 S MUSKEGO AV", "e_clusterK2": 0, "g_clusterK2": 0, "m_clusterK2": 0, "e_clusterK3": 2, "g_clusterK3": 2, "m_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "m_clusterK4": 2, "e_clusterK5": 2, "g_clusterK5": 2, "m_clusterK5": 2, "e_clusterK6": 0, "g_clusterK6": 0, "m_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "m_clusterK7": 6, "e_clusterK8": 2, "g_clusterK8": 2, "m_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "m_clusterK9": 1, "e_clusterK10": 7, "g_clusterK10": 7, "m_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -87.942590745051803, 43.005890179843092 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 264, "Incident Number": 120910128, "Date": "03\/31\/2012", "Time": "07:19 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.113662, -87.973752 ], "Address": "5276 N 49TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.973752386317912, 43.113662413266781 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 265, "Incident Number": 120900060, "Date": "03\/30\/2012", "Time": "01:13 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.158895, -88.043065 ], "Address": "10518 W FOUNTAIN AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.043064593316245, 43.158894778610303 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 266, "Incident Number": 120900097, "Date": "03\/30\/2012", "Time": "05:07 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.144110, -87.985608 ], "Address": "6925 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.985608110363856, 43.144110282820691 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 267, "Incident Number": 120910006, "Date": "03\/30\/2012", "Time": "11:10 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.157564, -88.039382 ], "Address": "10000 W FOUNTAIN AV #1908", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.039382459258647, 43.157563693403489 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 268, "Incident Number": 120890052, "Date": "03\/29\/2012", "Time": "10:51 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.136940, -88.005562 ], "Address": "6550 N 76TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 7, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.005562376219956, 43.13694042576028 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 269, "Incident Number": 120890087, "Date": "03\/29\/2012", "Time": "04:03 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.136044, -87.978242 ], "Address": "6502 N 53RD ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 4, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.978242411853131, 43.136043600611686 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 270, "Incident Number": 120890120, "Date": "03\/29\/2012", "Time": "07:34 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.178867, -88.024344 ], "Address": "8871-F N SWAN RD", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.024343615015042, 43.178866970755337 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 271, "Incident Number": 120890132, "Date": "03\/29\/2012", "Time": "08:32 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.136703, -88.010536 ], "Address": "6540 N 80TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.010536363523997, 43.136703220093494 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 272, "Incident Number": 120890135, "Date": "03\/29\/2012", "Time": "07:57 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.161059, -87.989234 ], "Address": "7848 N 64TH CT", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.98923355553336, 43.161059434907806 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 273, "Incident Number": 120880126, "Date": "03\/28\/2012", "Time": "06:36 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.112286, -87.976256 ], "Address": "5200 N 51ST BL", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "m_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 1, "m_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 2, "g_clusterK7": 4, "m_clusterK7": 2, "e_clusterK8": 1, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "m_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.97625633524747, 43.112286303912526 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 274, "Incident Number": 120770013, "Date": "03\/17\/2012", "Time": "12:18 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.127587, -87.988241 ], "Address": "6037 N 62ND ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.988240632003951, 43.127586502914198 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 275, "Incident Number": 120770140, "Date": "03\/17\/2012", "Time": "10:53 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.187460, -88.009961 ], "Address": "8002 W GLENBROOK RD", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.009961210542855, 43.18745984514387 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 276, "Incident Number": 120750019, "Date": "03\/15\/2012", "Time": "03:07 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.178698, -88.024328 ], "Address": "8835 N SWAN RD", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.024328099832289, 43.178697577557969 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 277, "Incident Number": 120740019, "Date": "03\/14\/2012", "Time": "02:52 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.158648, -87.988767 ], "Address": "6152 W PORT AV", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.988767310260499, 43.158647993652011 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 278, "Incident Number": 120700119, "Date": "03\/10\/2012", "Time": "02:17 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.163232, -88.031473 ], "Address": "9646 W BRADLEY RD", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.031473374261921, 43.163232340100897 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 279, "Incident Number": 120690091, "Date": "03\/09\/2012", "Time": "03:54 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.187295, -88.002731 ], "Address": "9217 N 75TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 4, "g_clusterK8": 4, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.00273116694683, 43.187294836764423 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 280, "Incident Number": 120640052, "Date": "03\/04\/2012", "Time": "01:15 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.144255, -87.993761 ], "Address": "6617 W HUSTIS ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "m_clusterK5": 3, "e_clusterK6": 4, "g_clusterK6": 4, "m_clusterK6": 4, "e_clusterK7": 3, "g_clusterK7": 3, "m_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 4, "e_clusterK9": 5, "g_clusterK9": 5, "m_clusterK9": 5, "e_clusterK10": 4, "g_clusterK10": 4, "m_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.993761030786686, 43.144255289745587 ] } }, { "type": "Feature", "properties": { "Unnamed: 0": 281, "Incident Number": 120610051, "Date": "03\/01\/2012", "Time": "12:03 PM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": [ 43.124347, -87.986059 ], "Address": "5865 N 60TH ST", "e_clusterK2": 1, "g_clusterK2": 1, "m_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "m_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 0, "m_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "m_clusterK5": 3, "e_clusterK6": 3, "g_clusterK6": 3, "m_clusterK6": 3, "e_clusterK7": 4, "g_clusterK7": 4, "m_clusterK7": 4, "e_clusterK8": 0, "g_clusterK8": 0, "m_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 7, "m_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2, "m_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.98605910646873, 43.124347089647415 ] } } ] }
const { environment } = require("@rails/webpacker"); module.exports = environment;
import React from 'react'; import PropTypes from 'prop-types'; import { duration } from './filters'; export default class Duration extends React.Component { static propTypes = { startTime: PropTypes.instanceOf(Date), endTime: PropTypes.instanceOf(Date), }; constructor(props) { super(props); if (!this.props.endTime) { this.interval = setInterval(() => { this.forceUpdate(); }, 1000); } } componentWillUnmount() { clearInterval(this.interval); } render() { return ( <span> {duration( this.props.startTime, this.props.endTime, !this.props.endTime, )} </span> ); } }
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M5 17c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7V1H5v4H1v2h4v10zm14-2V7c0-1.1-.9-2-2-2H9v2h8v8h2z" }), 'CropTwoTone');
// ========================================================================== // Project: SproutCore Handlebar Views // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== require("sproutcore-views/views/view"); require("sproutcore-handlebars/ext"); var set = SC.set, get = SC.get; // TODO: Be explicit in the class documentation that you // *MUST* set the value of a checkbox through SproutCore. // Updating the value of a checkbox directly via jQuery objects // will not work. SC.Checkbox = SC.View.extend({ title: null, value: false, classNames: ['sc-checkbox'], defaultTemplate: SC.Handlebars.compile('<label><input type="checkbox" {{bindAttr checked="value"}}>{{title}}</label>'), change: function() { SC.run.once(this, this._updateElementValue); // returning false will cause IE to not change checkbox state }, _updateElementValue: function() { var input = this.$('input:checkbox'); set(this, 'value', input.prop('checked')); } });
// https://github.com/bbecquet/Leaflet.PolylineDecorator/blob/master/src/L.RotatedMarker.js L.RotatedMarker = L.Marker.extend({ options: { angle: 0 }, statics: { TRANSFORM_ORIGIN: L.DomUtil.testProp( ['transformOrigin', 'WebkitTransformOrigin', 'OTransformOrigin', 'MozTransformOrigin', 'msTransformOrigin']) }, _initIcon: function() { L.Marker.prototype._initIcon.call(this); this._icon.style[L.RotatedMarker.TRANSFORM_ORIGIN] = this._getTransformOrigin(); }, _getTransformOrigin: function() { var iconAnchor = this.options.icon.options.iconAnchor; if (!iconAnchor) { return '50% 50%'; } return iconAnchor[0] + 'px ' + iconAnchor[1] + 'px'; }, _setPos: function(pos) { L.Marker.prototype._setPos.call(this, pos); if (L.DomUtil.TRANSFORM) { // use the CSS transform rule if available this._icon.style[L.DomUtil.TRANSFORM] += ' rotate(' + this.options.angle + 'deg)'; } else if (L.Browser.ie) { // fallback for IE6, IE7, IE8 var rad = this.options.angle * (Math.PI / 180), costheta = Math.cos(rad), sintheta = Math.sin(rad); this._icon.style.filter += ' progid:DXImageTransform.Microsoft.Matrix(sizingMethod=\'auto expand\', M11=' + costheta + ', M12=' + (-sintheta) + ', M21=' + sintheta + ', M22=' + costheta + ')'; } }, setAngle: function(ang) { this.options.angle = ang; } }); L.rotatedMarker = function(pos, options) { return new L.RotatedMarker(pos, options); };
exports.index = function(req, res){ res.render('index.html'); }; exports.partials = function (req, res) { var name = req.params.name; res.render('partials/' + name); };
System.register(['aurelia-dependency-injection', 'aurelia-templating', '../common/widget-base', '../common/decorators', '../common/constants'], function (_export, _context) { "use strict"; var inject, customAttribute, WidgetBase, generateBindables, constants, _dec, _dec2, _dec3, _class, Tooltip; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } return { setters: [function (_aureliaDependencyInjection) { inject = _aureliaDependencyInjection.inject; }, function (_aureliaTemplating) { customAttribute = _aureliaTemplating.customAttribute; }, function (_commonWidgetBase) { WidgetBase = _commonWidgetBase.WidgetBase; }, function (_commonDecorators) { generateBindables = _commonDecorators.generateBindables; }, function (_commonConstants) { constants = _commonConstants.constants; }], execute: function () { _export('Tooltip', Tooltip = (_dec = customAttribute(constants.attributePrefix + 'tooltip'), _dec2 = generateBindables('kendoTooltip'), _dec3 = inject(Element, WidgetBase), _dec(_class = _dec2(_class = _dec3(_class = function () { function Tooltip(element, widgetBase) { _classCallCheck(this, Tooltip); this.element = element; this.widgetBase = widgetBase.control('kendoTooltip').useElement(this.element).linkViewModel(this); } Tooltip.prototype.subscribe = function subscribe(event, callback) { return this.widgetBase.subscribe(event, callback); }; Tooltip.prototype.bind = function bind(ctx, overrideCtx) { this.widgetBase.useParentCtx(overrideCtx); }; Tooltip.prototype.attached = function attached() { if (!this.kNoInit) { this.recreate(); } }; Tooltip.prototype.recreate = function recreate() { this.kWidget = this.widgetBase.recreate(); }; Tooltip.prototype.destroy = function destroy() { this.widgetBase.destroy(this.kWidget); }; Tooltip.prototype.detached = function detached() { this.destroy(); }; return Tooltip; }()) || _class) || _class) || _class)); _export('Tooltip', Tooltip); } }; });
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.sd'); goog.require('Blockly.Msg'); Blockly.Msg["ADD_COMMENT"] = "تاثرات ڏيو"; Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'"; // untranslated Blockly.Msg["CHANGE_VALUE_TITLE"] = "قدر بدلايو"; Blockly.Msg["CLEAN_UP"] = "بندشون هٽايو"; Blockly.Msg["COLLAPSE_ALL"] = "بلاڪَ ڍڪيو"; Blockly.Msg["COLLAPSE_BLOCK"] = "بلاڪ ڍڪيو"; Blockly.Msg["COLOUR_BLEND_COLOUR1"] = "رنگ 1"; Blockly.Msg["COLOUR_BLEND_COLOUR2"] = "رنگ 2"; Blockly.Msg["COLOUR_BLEND_HELPURL"] = "http://meyerweb.com/eric/tools/color-blend/"; // untranslated Blockly.Msg["COLOUR_BLEND_RATIO"] = "تناسب"; Blockly.Msg["COLOUR_BLEND_TITLE"] = "blend"; // untranslated Blockly.Msg["COLOUR_BLEND_TOOLTIP"] = "ڄاڻايل تناسب سان ٻہ رنگ پاڻ ۾ ملايو (0.0-1.0)."; Blockly.Msg["COLOUR_PICKER_HELPURL"] = "https://en.wikipedia.org/wiki/Color"; Blockly.Msg["COLOUR_PICKER_TOOLTIP"] = "رنگ دٻيءَ مان رنگ چونڊيو."; Blockly.Msg["COLOUR_RANDOM_HELPURL"] = "http://randomcolour.com"; // untranslated Blockly.Msg["COLOUR_RANDOM_TITLE"] = "بلا ترتيب رنگ"; Blockly.Msg["COLOUR_RANDOM_TOOLTIP"] = "ڪو بہ ‌ڃڳ چونڊيو."; Blockly.Msg["COLOUR_RGB_BLUE"] = "نيرو"; Blockly.Msg["COLOUR_RGB_GREEN"] = "سائو"; Blockly.Msg["COLOUR_RGB_HELPURL"] = "http://www.december.com/html/spec/colorper.html"; // untranslated Blockly.Msg["COLOUR_RGB_RED"] = "ڳاڙهو"; Blockly.Msg["COLOUR_RGB_TITLE"] = "سان رڱيو"; Blockly.Msg["COLOUR_RGB_TOOLTIP"] = "ڳاڙهي، سائي، ۽ نيري جو مقدار ڄاڻائي گھربل رنگ ٺاهيو. سمورا قدر 0 ۽ 100 جي وچ ۾ هجن."; Blockly.Msg["CONTROLS_FLOW_STATEMENTS_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#loop-termination-blocks"; // untranslated Blockly.Msg["CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK"] = "چڪر مان ٻاهر نڪرو"; Blockly.Msg["CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE"] = "چڪر جاري رکندر نئين ڦيري پايو"; Blockly.Msg["CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK"] = "Break out of the containing loop."; // untranslated Blockly.Msg["CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE"] = "Skip the rest of this loop, and continue with the next iteration."; // untranslated Blockly.Msg["CONTROLS_FLOW_STATEMENTS_WARNING"] = "Warning: This block may only be used within a loop."; // untranslated Blockly.Msg["CONTROLS_FOREACH_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#for-each"; // untranslated Blockly.Msg["CONTROLS_FOREACH_TITLE"] = "for each item %1 in list %2"; // untranslated Blockly.Msg["CONTROLS_FOREACH_TOOLTIP"] = "For each item in a list, set the variable '%1' to the item, and then do some statements."; // untranslated Blockly.Msg["CONTROLS_FOR_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#count-with"; // untranslated Blockly.Msg["CONTROLS_FOR_TITLE"] = "count with %1 from %2 to %3 by %4"; // untranslated Blockly.Msg["CONTROLS_FOR_TOOLTIP"] = "Have the variable '%1' take on the values from the start number to the end number, counting by the specified interval, and do the specified blocks."; // untranslated Blockly.Msg["CONTROLS_IF_ELSEIF_TOOLTIP"] = "Add a condition to the if block."; // untranslated Blockly.Msg["CONTROLS_IF_ELSE_TOOLTIP"] = "Add a final, catch-all condition to the if block."; // untranslated Blockly.Msg["CONTROLS_IF_HELPURL"] = "https://github.com/google/blockly/wiki/IfElse"; // untranslated Blockly.Msg["CONTROLS_IF_IF_TOOLTIP"] = "Add, remove, or reorder sections to reconfigure this if block."; // untranslated Blockly.Msg["CONTROLS_IF_MSG_ELSE"] = "نہ تہ"; Blockly.Msg["CONTROLS_IF_MSG_ELSEIF"] = "نہ تہ جي"; Blockly.Msg["CONTROLS_IF_MSG_IF"] = "جيڪڏهن"; Blockly.Msg["CONTROLS_IF_TOOLTIP_1"] = "If a value is true, then do some statements."; // untranslated Blockly.Msg["CONTROLS_IF_TOOLTIP_2"] = "If a value is true, then do the first block of statements. Otherwise, do the second block of statements."; // untranslated Blockly.Msg["CONTROLS_IF_TOOLTIP_3"] = "If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements."; // untranslated Blockly.Msg["CONTROLS_IF_TOOLTIP_4"] = "If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements. If none of the values are true, do the last block of statements."; // untranslated Blockly.Msg["CONTROLS_REPEAT_HELPURL"] = "https://en.wikipedia.org/wiki/For_loop"; Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"] = "ڪريو"; Blockly.Msg["CONTROLS_REPEAT_TITLE"] = "1٪ ڀيرا ورجايو"; Blockly.Msg["CONTROLS_REPEAT_TOOLTIP"] = "Do some statements several times."; // untranslated Blockly.Msg["CONTROLS_WHILEUNTIL_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#repeat"; // untranslated Blockly.Msg["CONTROLS_WHILEUNTIL_OPERATOR_UNTIL"] = "ورجايو جيستائين"; Blockly.Msg["CONTROLS_WHILEUNTIL_OPERATOR_WHILE"] = "ورجايو جڏهن"; Blockly.Msg["CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL"] = "While a value is false, then do some statements."; // untranslated Blockly.Msg["CONTROLS_WHILEUNTIL_TOOLTIP_WHILE"] = "While a value is true, then do some statements."; // untranslated Blockly.Msg["DELETE_ALL_BLOCKS"] = "Delete all %1 blocks?"; // untranslated Blockly.Msg["DELETE_BLOCK"] = "بلاڪ ڊاهيو"; Blockly.Msg["DELETE_VARIABLE"] = "Delete the '%1' variable"; // untranslated Blockly.Msg["DELETE_VARIABLE_CONFIRMATION"] = "Delete %1 uses of the '%2' variable?"; // untranslated Blockly.Msg["DELETE_X_BLOCKS"] = "1٪ بلاڪ ڊاهيو"; Blockly.Msg["DISABLE_BLOCK"] = "بلاڪ کي غيرفعال بڻايو"; Blockly.Msg["DUPLICATE_BLOCK"] = "نقل"; Blockly.Msg["ENABLE_BLOCK"] = "بلاڪ کي فعال بڻايو"; Blockly.Msg["EXPAND_ALL"] = "بلاڪَ نمايو"; Blockly.Msg["EXPAND_BLOCK"] = "بلاڪ نمايو"; Blockly.Msg["EXTERNAL_INPUTS"] = "خارجي ڄاڻ"; Blockly.Msg["HELP"] = "مدد"; Blockly.Msg["INLINE_INPUTS"] = "Inline Inputs"; // untranslated Blockly.Msg["IOS_CANCEL"] = "Cancel"; // untranslated Blockly.Msg["IOS_ERROR"] = "Error"; // untranslated Blockly.Msg["IOS_OK"] = "OK"; // untranslated Blockly.Msg["IOS_PROCEDURES_ADD_INPUT"] = "+ Add Input"; // untranslated Blockly.Msg["IOS_PROCEDURES_ALLOW_STATEMENTS"] = "Allow statements"; // untranslated Blockly.Msg["IOS_PROCEDURES_DUPLICATE_INPUTS_ERROR"] = "This function has duplicate inputs."; // untranslated Blockly.Msg["IOS_PROCEDURES_INPUTS"] = "INPUTS"; // untranslated Blockly.Msg["IOS_VARIABLES_ADD_BUTTON"] = "Add"; // untranslated Blockly.Msg["IOS_VARIABLES_ADD_VARIABLE"] = "+ Add Variable"; // untranslated Blockly.Msg["IOS_VARIABLES_DELETE_BUTTON"] = "Delete"; // untranslated Blockly.Msg["IOS_VARIABLES_EMPTY_NAME_ERROR"] = "You can't use an empty variable name."; // untranslated Blockly.Msg["IOS_VARIABLES_RENAME_BUTTON"] = "Rename"; // untranslated Blockly.Msg["IOS_VARIABLES_VARIABLE_NAME"] = "Variable name"; // untranslated Blockly.Msg["LISTS_CREATE_EMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-empty-list"; // untranslated Blockly.Msg["LISTS_CREATE_EMPTY_TITLE"] = "خالي فهرست تخليق ڪريو"; Blockly.Msg["LISTS_CREATE_EMPTY_TOOLTIP"] = "Returns a list, of length 0, containing no data records"; // untranslated Blockly.Msg["LISTS_CREATE_WITH_CONTAINER_TITLE_ADD"] = "لسٽ"; Blockly.Msg["LISTS_CREATE_WITH_CONTAINER_TOOLTIP"] = "Add, remove, or reorder sections to reconfigure this list block."; // untranslated Blockly.Msg["LISTS_CREATE_WITH_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg["LISTS_CREATE_WITH_INPUT_WITH"] = "create list with"; // untranslated Blockly.Msg["LISTS_CREATE_WITH_ITEM_TOOLTIP"] = "فهرست ۾ ڪا شي شامل ڪريو."; Blockly.Msg["LISTS_CREATE_WITH_TOOLTIP"] = "Create a list with any number of items."; // untranslated Blockly.Msg["LISTS_GET_INDEX_FIRST"] = "پهريون"; Blockly.Msg["LISTS_GET_INDEX_FROM_END"] = "# آخر کان"; Blockly.Msg["LISTS_GET_INDEX_FROM_START"] = "#"; // untranslated Blockly.Msg["LISTS_GET_INDEX_GET"] = "get"; // untranslated Blockly.Msg["LISTS_GET_INDEX_GET_REMOVE"] = "get and remove"; // untranslated Blockly.Msg["LISTS_GET_INDEX_LAST"] = "آخري"; Blockly.Msg["LISTS_GET_INDEX_RANDOM"] = "بي ترتيب"; Blockly.Msg["LISTS_GET_INDEX_REMOVE"] = "هٽايو"; Blockly.Msg["LISTS_GET_INDEX_TAIL"] = ""; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_FIRST"] = "Returns the first item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_FROM"] = "Returns the item at the specified position in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_LAST"] = "Returns the last item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_RANDOM"] = "Returns a random item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST"] = "Removes and returns the first item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM"] = "Removes and returns the item at the specified position in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST"] = "Removes and returns the last item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM"] = "Removes and returns a random item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST"] = "Removes the first item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM"] = "Removes the item at the specified position in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST"] = "Removes the last item in a list."; // untranslated Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM"] = "Removes a random item in a list."; // untranslated Blockly.Msg["LISTS_GET_SUBLIST_END_FROM_END"] = "ڏانهن # آخر کان"; Blockly.Msg["LISTS_GET_SUBLIST_END_FROM_START"] = "ڏانهن #"; Blockly.Msg["LISTS_GET_SUBLIST_END_LAST"] = "آخري ڏانهن"; Blockly.Msg["LISTS_GET_SUBLIST_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-a-sublist"; // untranslated Blockly.Msg["LISTS_GET_SUBLIST_START_FIRST"] = "get sub-list from first"; // untranslated Blockly.Msg["LISTS_GET_SUBLIST_START_FROM_END"] = "get sub-list from # from end"; // untranslated Blockly.Msg["LISTS_GET_SUBLIST_START_FROM_START"] = "get sub-list from #"; // untranslated Blockly.Msg["LISTS_GET_SUBLIST_TAIL"] = ""; // untranslated Blockly.Msg["LISTS_GET_SUBLIST_TOOLTIP"] = "Creates a copy of the specified portion of a list."; // untranslated Blockly.Msg["LISTS_INDEX_FROM_END_TOOLTIP"] = "%1 is the last item."; // untranslated Blockly.Msg["LISTS_INDEX_FROM_START_TOOLTIP"] = "%1 is the first item."; // untranslated Blockly.Msg["LISTS_INDEX_OF_FIRST"] = "find first occurrence of item"; // untranslated Blockly.Msg["LISTS_INDEX_OF_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated Blockly.Msg["LISTS_INDEX_OF_LAST"] = "find last occurrence of item"; // untranslated Blockly.Msg["LISTS_INDEX_OF_TOOLTIP"] = "Returns the index of the first/last occurrence of the item in the list. Returns %1 if item is not found."; // untranslated Blockly.Msg["LISTS_INLIST"] = "فهرست ۾"; Blockly.Msg["LISTS_ISEMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#is-empty"; // untranslated Blockly.Msg["LISTS_ISEMPTY_TITLE"] = "%1 is empty"; // untranslated Blockly.Msg["LISTS_ISEMPTY_TOOLTIP"] = "Returns true if the list is empty."; // untranslated Blockly.Msg["LISTS_LENGTH_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#length-of"; // untranslated Blockly.Msg["LISTS_LENGTH_TITLE"] = "length of %1"; // untranslated Blockly.Msg["LISTS_LENGTH_TOOLTIP"] = "Returns the length of a list."; // untranslated Blockly.Msg["LISTS_REPEAT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg["LISTS_REPEAT_TITLE"] = "create list with item %1 repeated %2 times"; // untranslated Blockly.Msg["LISTS_REPEAT_TOOLTIP"] = "Creates a list consisting of the given value repeated the specified number of times."; // untranslated Blockly.Msg["LISTS_REVERSE_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#reversing-a-list"; // untranslated Blockly.Msg["LISTS_REVERSE_MESSAGE0"] = "reverse %1"; // untranslated Blockly.Msg["LISTS_REVERSE_TOOLTIP"] = "Reverse a copy of a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#in-list--set"; // untranslated Blockly.Msg["LISTS_SET_INDEX_INPUT_TO"] = "جيان"; Blockly.Msg["LISTS_SET_INDEX_INSERT"] = "تي داخل ڪريو"; Blockly.Msg["LISTS_SET_INDEX_SET"] = "ميڙ"; Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST"] = "Inserts the item at the start of a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_INSERT_FROM"] = "Inserts the item at the specified position in a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_INSERT_LAST"] = "Append the item to the end of a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM"] = "Inserts the item randomly in a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_FIRST"] = "Sets the first item in a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_FROM"] = "Sets the item at the specified position in a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_LAST"] = "Sets the last item in a list."; // untranslated Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_RANDOM"] = "Sets a random item in a list."; // untranslated Blockly.Msg["LISTS_SORT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#sorting-a-list"; // untranslated Blockly.Msg["LISTS_SORT_ORDER_ASCENDING"] = "ascending"; // untranslated Blockly.Msg["LISTS_SORT_ORDER_DESCENDING"] = "descending"; // untranslated Blockly.Msg["LISTS_SORT_TITLE"] = "sort %1 %2 %3"; // untranslated Blockly.Msg["LISTS_SORT_TOOLTIP"] = "Sort a copy of a list."; // untranslated Blockly.Msg["LISTS_SORT_TYPE_IGNORECASE"] = "alphabetic, ignore case"; // untranslated Blockly.Msg["LISTS_SORT_TYPE_NUMERIC"] = "numeric"; // untranslated Blockly.Msg["LISTS_SORT_TYPE_TEXT"] = "alphabetic"; // untranslated Blockly.Msg["LISTS_SPLIT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists"; // untranslated Blockly.Msg["LISTS_SPLIT_LIST_FROM_TEXT"] = "make list from text"; // untranslated Blockly.Msg["LISTS_SPLIT_TEXT_FROM_LIST"] = "make text from list"; // untranslated Blockly.Msg["LISTS_SPLIT_TOOLTIP_JOIN"] = "Join a list of texts into one text, separated by a delimiter."; // untranslated Blockly.Msg["LISTS_SPLIT_TOOLTIP_SPLIT"] = "Split text into a list of texts, breaking at each delimiter."; // untranslated Blockly.Msg["LISTS_SPLIT_WITH_DELIMITER"] = "with delimiter"; // untranslated Blockly.Msg["LOGIC_BOOLEAN_FALSE"] = "ڪُوڙ"; Blockly.Msg["LOGIC_BOOLEAN_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#values"; // untranslated Blockly.Msg["LOGIC_BOOLEAN_TOOLTIP"] = "درست يا غير درست وراڻي ٿو."; Blockly.Msg["LOGIC_BOOLEAN_TRUE"] = "سچ"; Blockly.Msg["LOGIC_COMPARE_HELPURL"] = "https://en.wikipedia.org/wiki/Inequality_(mathematics)"; Blockly.Msg["LOGIC_COMPARE_TOOLTIP_EQ"] = "جيڪڏهن ٻئي ان پُٽس برابر آهن تہ درست وراڻيو"; Blockly.Msg["LOGIC_COMPARE_TOOLTIP_GT"] = "جيڪڏهن پهريون ان پُٽ ٻين ان پُٽ کان وڏو آهي تہ درست وراڻيو."; Blockly.Msg["LOGIC_COMPARE_TOOLTIP_GTE"] = "جيڪڏهن پهريون ان پُٽ ٻين ان پُٽ کان وڏو آهي يا ٻئي برابر آهن تہ درست وراڻيو."; Blockly.Msg["LOGIC_COMPARE_TOOLTIP_LT"] = "جيڪڏهن پهريون ان پُٽ ٻين ان پُٽ کان ننڍو آهي تہ درست وراڻيو"; Blockly.Msg["LOGIC_COMPARE_TOOLTIP_LTE"] = "جيڪڏهن پهريون ان پُٽ ٻين ان پُٽ کان ننڍو آهي يا ٻئي برابر آهن تہ درست وراڻيو"; Blockly.Msg["LOGIC_COMPARE_TOOLTIP_NEQ"] = "جيڪڏهن ٻئي ان پُٽس اڻ برابر آهن تہ درست وراڻيو"; Blockly.Msg["LOGIC_NEGATE_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#not"; // untranslated Blockly.Msg["LOGIC_NEGATE_TITLE"] = "نڪي %1"; Blockly.Msg["LOGIC_NEGATE_TOOLTIP"] = "ان پُٽ غير درست آهي تہ درست وراڻيو. ان پُٽ درست آهي تہ غير درست وراڻيو."; Blockly.Msg["LOGIC_NULL"] = "null"; // untranslated Blockly.Msg["LOGIC_NULL_HELPURL"] = "https://en.wikipedia.org/wiki/Nullable_type"; // untranslated Blockly.Msg["LOGIC_NULL_TOOLTIP"] = "Returns null."; // untranslated Blockly.Msg["LOGIC_OPERATION_AND"] = "۽"; Blockly.Msg["LOGIC_OPERATION_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#logical-operations"; // untranslated Blockly.Msg["LOGIC_OPERATION_OR"] = "يا"; Blockly.Msg["LOGIC_OPERATION_TOOLTIP_AND"] = "جيڪڏهن ٻئي ان پُٽ درست آهن تہ درست وراڻيو."; Blockly.Msg["LOGIC_OPERATION_TOOLTIP_OR"] = "جيڪڏهن ٻنهي ان پُٽس مان ڪو هڪ بہ درست آهي تہ درست وراڻيو."; Blockly.Msg["LOGIC_TERNARY_CONDITION"] = "test"; // untranslated Blockly.Msg["LOGIC_TERNARY_HELPURL"] = "https://en.wikipedia.org/wiki/%3F:"; // untranslated Blockly.Msg["LOGIC_TERNARY_IF_FALSE"] = "جيڪڏهن ڪوڙو"; Blockly.Msg["LOGIC_TERNARY_IF_TRUE"] = "جيڪڏهن سچو"; Blockly.Msg["LOGIC_TERNARY_TOOLTIP"] = "Check the condition in 'test'. If the condition is true, returns the 'if true' value; otherwise returns the 'if false' value."; // untranslated Blockly.Msg["MATH_ADDITION_SYMBOL"] = "+"; // untranslated Blockly.Msg["MATH_ARITHMETIC_HELPURL"] = "https://en.wikipedia.org/wiki/Arithmetic"; Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_ADD"] = "ٻن انگن جي جوڙ اپت ڏيو."; Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_DIVIDE"] = "ٻنهي انگن جي ونڊ ڏيو."; Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_MINUS"] = "ٻنهي انگن جو تفاوت ڏيو."; Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_MULTIPLY"] = "ٻنهي انگن جي ضرب اُپت ڏيو."; Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_POWER"] = "Return the first number raised to the power of the second number."; // untranslated Blockly.Msg["MATH_CHANGE_HELPURL"] = "https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter"; // untranslated Blockly.Msg["MATH_CHANGE_TITLE"] = "%1 کي %2 سان مَٽايو"; Blockly.Msg["MATH_CHANGE_TOOLTIP"] = "Add a number to variable '%1'."; // untranslated Blockly.Msg["MATH_CONSTANT_HELPURL"] = "https://en.wikipedia.org/wiki/رياضياتي استقلال"; Blockly.Msg["MATH_CONSTANT_TOOLTIP"] = "Return one of the common constants: π (3.141…), e (2.718…), φ (1.618…), sqrt(2) (1.414…), sqrt(½) (0.707…), or ∞ (infinity)."; // untranslated Blockly.Msg["MATH_CONSTRAIN_HELPURL"] = "https://en.wikipedia.org/wiki/Clamping_(graphics)"; // untranslated Blockly.Msg["MATH_CONSTRAIN_TITLE"] = "constrain %1 low %2 high %3"; // untranslated Blockly.Msg["MATH_CONSTRAIN_TOOLTIP"] = "Constrain a number to be between the specified limits (inclusive)."; // untranslated Blockly.Msg["MATH_DIVISION_SYMBOL"] = "÷"; // untranslated Blockly.Msg["MATH_IS_DIVISIBLE_BY"] = "سان ونڊجندڙ آهي"; Blockly.Msg["MATH_IS_EVEN"] = "ٻڌي آهي"; Blockly.Msg["MATH_IS_NEGATIVE"] = "ڪاٽو آهي"; Blockly.Msg["MATH_IS_ODD"] = "اِڪي آهي"; Blockly.Msg["MATH_IS_POSITIVE"] = "واڌو آهي"; Blockly.Msg["MATH_IS_PRIME"] = "مفرد آهي"; Blockly.Msg["MATH_IS_TOOLTIP"] = "Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false."; // untranslated Blockly.Msg["MATH_IS_WHOLE"] = "سڄو آهي"; Blockly.Msg["MATH_MODULO_HELPURL"] = "https://en.wikipedia.org/wiki/Modulo_operation"; // untranslated Blockly.Msg["MATH_MODULO_TITLE"] = "remainder of %1 ÷ %2"; // untranslated Blockly.Msg["MATH_MODULO_TOOLTIP"] = "Return the remainder from dividing the two numbers."; // untranslated Blockly.Msg["MATH_MULTIPLICATION_SYMBOL"] = "×"; // untranslated Blockly.Msg["MATH_NUMBER_HELPURL"] = "https://en.wikipedia.org/wiki/Number"; // untranslated Blockly.Msg["MATH_NUMBER_TOOLTIP"] = "ڪو انگ."; Blockly.Msg["MATH_ONLIST_HELPURL"] = ""; // untranslated Blockly.Msg["MATH_ONLIST_OPERATOR_AVERAGE"] = "لسٽ جي سراسري"; Blockly.Msg["MATH_ONLIST_OPERATOR_MAX"] = "لسٽ جو وڏي ۾ وڏو قدر"; Blockly.Msg["MATH_ONLIST_OPERATOR_MEDIAN"] = "لسٽ جو مڌيان"; Blockly.Msg["MATH_ONLIST_OPERATOR_MIN"] = "لسٽ جو ننڍي ۾ ننڍو قدر"; Blockly.Msg["MATH_ONLIST_OPERATOR_MODE"] = "modes of list"; // untranslated Blockly.Msg["MATH_ONLIST_OPERATOR_RANDOM"] = "random item of list"; // untranslated Blockly.Msg["MATH_ONLIST_OPERATOR_STD_DEV"] = "standard deviation of list"; // untranslated Blockly.Msg["MATH_ONLIST_OPERATOR_SUM"] = "فهرست جو وچور"; Blockly.Msg["MATH_ONLIST_TOOLTIP_AVERAGE"] = "Return the average (arithmetic mean) of the numeric values in the list."; // untranslated Blockly.Msg["MATH_ONLIST_TOOLTIP_MAX"] = "لسٽ ۾ وڏي کان وڏو قدر ڄاڻايو."; Blockly.Msg["MATH_ONLIST_TOOLTIP_MEDIAN"] = "لسٽ جو مڌيان انگ ڄاڻايو."; Blockly.Msg["MATH_ONLIST_TOOLTIP_MIN"] = "لسٽ ۾ ننڍي کان ننڍو قدر ڄاڻايو."; Blockly.Msg["MATH_ONLIST_TOOLTIP_MODE"] = "Return a list of the most common item(s) in the list."; // untranslated Blockly.Msg["MATH_ONLIST_TOOLTIP_RANDOM"] = "Return a random element from the list."; // untranslated Blockly.Msg["MATH_ONLIST_TOOLTIP_STD_DEV"] = "Return the standard deviation of the list."; // untranslated Blockly.Msg["MATH_ONLIST_TOOLTIP_SUM"] = "Return the sum of all the numbers in the list."; // untranslated Blockly.Msg["MATH_POWER_SYMBOL"] = "^"; // untranslated Blockly.Msg["MATH_RANDOM_FLOAT_HELPURL"] = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated Blockly.Msg["MATH_RANDOM_FLOAT_TITLE_RANDOM"] = "random fraction"; // untranslated Blockly.Msg["MATH_RANDOM_FLOAT_TOOLTIP"] = "Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive)."; // untranslated Blockly.Msg["MATH_RANDOM_INT_HELPURL"] = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated Blockly.Msg["MATH_RANDOM_INT_TITLE"] = "random integer from %1 to %2"; // untranslated Blockly.Msg["MATH_RANDOM_INT_TOOLTIP"] = "Return a random integer between the two specified limits, inclusive."; // untranslated Blockly.Msg["MATH_ROUND_HELPURL"] = "https://en.wikipedia.org/wiki/Rounding"; // untranslated Blockly.Msg["MATH_ROUND_OPERATOR_ROUND"] = "round"; // untranslated Blockly.Msg["MATH_ROUND_OPERATOR_ROUNDDOWN"] = "هيٺ ڦيرايو (رائونڊ ڊائون)"; Blockly.Msg["MATH_ROUND_OPERATOR_ROUNDUP"] = "ويڙهيو (رائونڊ اَپ)"; Blockly.Msg["MATH_ROUND_TOOLTIP"] = "Round a number up or down."; // untranslated Blockly.Msg["MATH_SINGLE_HELPURL"] = "https://en.wikipedia.org/wiki/ٻيون مول"; Blockly.Msg["MATH_SINGLE_OP_ABSOLUTE"] = "ٺپ"; Blockly.Msg["MATH_SINGLE_OP_ROOT"] = "ٻيون مول"; Blockly.Msg["MATH_SINGLE_TOOLTIP_ABS"] = "Return the absolute value of a number."; // untranslated Blockly.Msg["MATH_SINGLE_TOOLTIP_EXP"] = "Return e to the power of a number."; // untranslated Blockly.Msg["MATH_SINGLE_TOOLTIP_LN"] = "ڪنهن انگ جو قدرتي لاگ ڄاڻايو."; Blockly.Msg["MATH_SINGLE_TOOLTIP_LOG10"] = "ڪنهن انگ جو 10 بنيادي لاگ ڄاڻايو."; Blockly.Msg["MATH_SINGLE_TOOLTIP_NEG"] = "ڪنهن انگ جو ڪاٽو ڄاڻايو."; Blockly.Msg["MATH_SINGLE_TOOLTIP_POW10"] = "Return 10 to the power of a number."; // untranslated Blockly.Msg["MATH_SINGLE_TOOLTIP_ROOT"] = "ڪنهن انگ جو ٻيون مول ڄاڻايو."; Blockly.Msg["MATH_SUBTRACTION_SYMBOL"] = "-"; // untranslated Blockly.Msg["MATH_TRIG_ACOS"] = "acos"; // untranslated Blockly.Msg["MATH_TRIG_ASIN"] = "asin"; // untranslated Blockly.Msg["MATH_TRIG_ATAN"] = "atan"; // untranslated Blockly.Msg["MATH_TRIG_COS"] = "cos"; // untranslated Blockly.Msg["MATH_TRIG_HELPURL"] = "https://en.wikipedia.org/wiki/ٽڪنڊور ڪاڄ"; Blockly.Msg["MATH_TRIG_SIN"] = "sin"; // untranslated Blockly.Msg["MATH_TRIG_TAN"] = "tan"; // untranslated Blockly.Msg["MATH_TRIG_TOOLTIP_ACOS"] = "Return the arccosine of a number."; // untranslated Blockly.Msg["MATH_TRIG_TOOLTIP_ASIN"] = "Return the arcsine of a number."; // untranslated Blockly.Msg["MATH_TRIG_TOOLTIP_ATAN"] = "Return the arctangent of a number."; // untranslated Blockly.Msg["MATH_TRIG_TOOLTIP_COS"] = "Return the cosine of a degree (not radian)."; // untranslated Blockly.Msg["MATH_TRIG_TOOLTIP_SIN"] = "Return the sine of a degree (not radian)."; // untranslated Blockly.Msg["MATH_TRIG_TOOLTIP_TAN"] = "Return the tangent of a degree (not radian)."; // untranslated Blockly.Msg["NEW_VARIABLE"] = "نئون ڦرڻو..."; Blockly.Msg["NEW_VARIABLE_TITLE"] = "ڦرڻي جو نئون نالو:"; Blockly.Msg["ORDINAL_NUMBER_SUFFIX"] = ""; // untranslated Blockly.Msg["PROCEDURES_ALLOW_STATEMENTS"] = "allow statements"; // untranslated Blockly.Msg["PROCEDURES_BEFORE_PARAMS"] = "سان:"; Blockly.Msg["PROCEDURES_CALLNORETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated Blockly.Msg["PROCEDURES_CALLNORETURN_TOOLTIP"] = "Run the user-defined function '%1'."; // untranslated Blockly.Msg["PROCEDURES_CALLRETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated Blockly.Msg["PROCEDURES_CALLRETURN_TOOLTIP"] = "Run the user-defined function '%1' and use its output."; // untranslated Blockly.Msg["PROCEDURES_CALL_BEFORE_PARAMS"] = "سان:"; Blockly.Msg["PROCEDURES_CREATE_DO"] = "تخليق ڪريو '%1'"; Blockly.Msg["PROCEDURES_DEFNORETURN_COMMENT"] = "Describe this function..."; // untranslated Blockly.Msg["PROCEDURES_DEFNORETURN_DO"] = ""; // untranslated Blockly.Msg["PROCEDURES_DEFNORETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated Blockly.Msg["PROCEDURES_DEFNORETURN_PROCEDURE"] = "ڪجھ ڪريو"; Blockly.Msg["PROCEDURES_DEFNORETURN_TITLE"] = "ڏانهن"; Blockly.Msg["PROCEDURES_DEFNORETURN_TOOLTIP"] = "Creates a function with no output."; // untranslated Blockly.Msg["PROCEDURES_DEFRETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated Blockly.Msg["PROCEDURES_DEFRETURN_RETURN"] = "واپس ورو"; Blockly.Msg["PROCEDURES_DEFRETURN_TOOLTIP"] = "Creates a function with an output."; // untranslated Blockly.Msg["PROCEDURES_DEF_DUPLICATE_WARNING"] = "Warning: This function has duplicate parameters."; // untranslated Blockly.Msg["PROCEDURES_HIGHLIGHT_DEF"] = "Highlight function definition"; // untranslated Blockly.Msg["PROCEDURES_IFRETURN_HELPURL"] = "http://c2.com/cgi/wiki?GuardClause"; // untranslated Blockly.Msg["PROCEDURES_IFRETURN_TOOLTIP"] = "If a value is true, then return a second value."; // untranslated Blockly.Msg["PROCEDURES_IFRETURN_WARNING"] = "Warning: This block may be used only within a function definition."; // untranslated Blockly.Msg["PROCEDURES_MUTATORARG_TITLE"] = "input name:"; // untranslated Blockly.Msg["PROCEDURES_MUTATORARG_TOOLTIP"] = "Add an input to the function."; // untranslated Blockly.Msg["PROCEDURES_MUTATORCONTAINER_TITLE"] = "ان پُٽس"; Blockly.Msg["PROCEDURES_MUTATORCONTAINER_TOOLTIP"] = "Add, remove, or reorder inputs to this function."; // untranslated Blockly.Msg["PROCEDURE_ALREADY_EXISTS"] = "A procedure named '%1' already exists."; // untranslated Blockly.Msg["REDO"] = "ٻيهر ڪريو"; Blockly.Msg["REMOVE_COMMENT"] = "تاثرات مِٽايو"; Blockly.Msg["RENAME_VARIABLE"] = "ڦرڻي کي نئون نالو ڏيو..."; Blockly.Msg["RENAME_VARIABLE_TITLE"] = "Rename all '%1' variables to:"; // untranslated Blockly.Msg["TEXT_APPEND_HELPURL"] = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg["TEXT_APPEND_TITLE"] = "to %1 append text %2"; // untranslated Blockly.Msg["TEXT_APPEND_TOOLTIP"] = "Append some text to variable '%1'."; // untranslated Blockly.Msg["TEXT_CHANGECASE_HELPURL"] = "https://github.com/google/blockly/wiki/Text#adjusting-text-case"; // untranslated Blockly.Msg["TEXT_CHANGECASE_OPERATOR_LOWERCASE"] = "ننڍن اکر ڏانهن"; Blockly.Msg["TEXT_CHANGECASE_OPERATOR_TITLECASE"] = "to Title Case"; // untranslated Blockly.Msg["TEXT_CHANGECASE_OPERATOR_UPPERCASE"] = "وڏن اکرن ڏانهن"; Blockly.Msg["TEXT_CHANGECASE_TOOLTIP"] = "Return a copy of the text in a different case."; // untranslated Blockly.Msg["TEXT_CHARAT_FIRST"] = "get first letter"; // untranslated Blockly.Msg["TEXT_CHARAT_FROM_END"] = "get letter # from end"; // untranslated Blockly.Msg["TEXT_CHARAT_FROM_START"] = "get letter #"; // untranslated Blockly.Msg["TEXT_CHARAT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#extracting-text"; // untranslated Blockly.Msg["TEXT_CHARAT_LAST"] = "get last letter"; // untranslated Blockly.Msg["TEXT_CHARAT_RANDOM"] = "get random letter"; // untranslated Blockly.Msg["TEXT_CHARAT_TAIL"] = ""; // untranslated Blockly.Msg["TEXT_CHARAT_TITLE"] = "in text %1 %2"; // untranslated Blockly.Msg["TEXT_CHARAT_TOOLTIP"] = "Returns the letter at the specified position."; // untranslated Blockly.Msg["TEXT_COUNT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#counting-substrings"; // untranslated Blockly.Msg["TEXT_COUNT_MESSAGE0"] = "count %1 in %2"; // untranslated Blockly.Msg["TEXT_COUNT_TOOLTIP"] = "Count how many times some text occurs within some other text."; // untranslated Blockly.Msg["TEXT_CREATE_JOIN_ITEM_TOOLTIP"] = "Add an item to the text."; // untranslated Blockly.Msg["TEXT_CREATE_JOIN_TITLE_JOIN"] = "شامل ٿيو"; Blockly.Msg["TEXT_CREATE_JOIN_TOOLTIP"] = "Add, remove, or reorder sections to reconfigure this text block."; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_END_FROM_END"] = "to letter # from end"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_END_FROM_START"] = "to letter #"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_END_LAST"] = "to last letter"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_HELPURL"] = "https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_INPUT_IN_TEXT"] = "متن ۾"; Blockly.Msg["TEXT_GET_SUBSTRING_START_FIRST"] = "get substring from first letter"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_START_FROM_END"] = "get substring from letter # from end"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_START_FROM_START"] = "get substring from letter #"; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_TAIL"] = ""; // untranslated Blockly.Msg["TEXT_GET_SUBSTRING_TOOLTIP"] = "Returns a specified portion of the text."; // untranslated Blockly.Msg["TEXT_INDEXOF_HELPURL"] = "https://github.com/google/blockly/wiki/Text#finding-text"; // untranslated Blockly.Msg["TEXT_INDEXOF_OPERATOR_FIRST"] = "find first occurrence of text"; // untranslated Blockly.Msg["TEXT_INDEXOF_OPERATOR_LAST"] = "find last occurrence of text"; // untranslated Blockly.Msg["TEXT_INDEXOF_TITLE"] = "in text %1 %2 %3"; // untranslated Blockly.Msg["TEXT_INDEXOF_TOOLTIP"] = "Returns the index of the first/last occurrence of the first text in the second text. Returns %1 if text is not found."; // untranslated Blockly.Msg["TEXT_ISEMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Text#checking-for-empty-text"; // untranslated Blockly.Msg["TEXT_ISEMPTY_TITLE"] = "%1 is empty"; // untranslated Blockly.Msg["TEXT_ISEMPTY_TOOLTIP"] = "Returns true if the provided text is empty."; // untranslated Blockly.Msg["TEXT_JOIN_HELPURL"] = "https://github.com/google/blockly/wiki/Text#text-creation"; // untranslated Blockly.Msg["TEXT_JOIN_TITLE_CREATEWITH"] = "create text with"; // untranslated Blockly.Msg["TEXT_JOIN_TOOLTIP"] = "Create a piece of text by joining together any number of items."; // untranslated Blockly.Msg["TEXT_LENGTH_HELPURL"] = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg["TEXT_LENGTH_TITLE"] = "length of %1"; // untranslated Blockly.Msg["TEXT_LENGTH_TOOLTIP"] = "Returns the number of letters (including spaces) in the provided text."; // untranslated Blockly.Msg["TEXT_PRINT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#printing-text"; // untranslated Blockly.Msg["TEXT_PRINT_TITLE"] = "ڇاپيو %1"; Blockly.Msg["TEXT_PRINT_TOOLTIP"] = "ڄاڻايل تحرير، انگ يا ڪو ٻيو قدر ڇاپيو."; Blockly.Msg["TEXT_PROMPT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#getting-input-from-the-user"; // untranslated Blockly.Msg["TEXT_PROMPT_TOOLTIP_NUMBER"] = "Prompt for user for a number."; // untranslated Blockly.Msg["TEXT_PROMPT_TOOLTIP_TEXT"] = "Prompt for user for some text."; // untranslated Blockly.Msg["TEXT_PROMPT_TYPE_NUMBER"] = "prompt for number with message"; // untranslated Blockly.Msg["TEXT_PROMPT_TYPE_TEXT"] = "prompt for text with message"; // untranslated Blockly.Msg["TEXT_REPLACE_HELPURL"] = "https://github.com/google/blockly/wiki/Text#replacing-substrings"; // untranslated Blockly.Msg["TEXT_REPLACE_MESSAGE0"] = "replace %1 with %2 in %3"; // untranslated Blockly.Msg["TEXT_REPLACE_TOOLTIP"] = "Replace all occurances of some text within some other text."; // untranslated Blockly.Msg["TEXT_REVERSE_HELPURL"] = "https://github.com/google/blockly/wiki/Text#reversing-text"; // untranslated Blockly.Msg["TEXT_REVERSE_MESSAGE0"] = "reverse %1"; // untranslated Blockly.Msg["TEXT_REVERSE_TOOLTIP"] = "Reverses the order of the characters in the text."; // untranslated Blockly.Msg["TEXT_TEXT_HELPURL"] = "https://en.wikipedia.org/wiki/String_(computer_science)"; // untranslated Blockly.Msg["TEXT_TEXT_TOOLTIP"] = "A letter, word, or line of text."; // untranslated Blockly.Msg["TEXT_TRIM_HELPURL"] = "https://github.com/google/blockly/wiki/Text#trimming-removing-spaces"; // untranslated Blockly.Msg["TEXT_TRIM_OPERATOR_BOTH"] = "trim spaces from both sides of"; // untranslated Blockly.Msg["TEXT_TRIM_OPERATOR_LEFT"] = "trim spaces from left side of"; // untranslated Blockly.Msg["TEXT_TRIM_OPERATOR_RIGHT"] = "trim spaces from right side of"; // untranslated Blockly.Msg["TEXT_TRIM_TOOLTIP"] = "Return a copy of the text with spaces removed from one or both ends."; // untranslated Blockly.Msg["TODAY"] = "اڄ"; Blockly.Msg["UNDO"] = "Undo"; // untranslated Blockly.Msg["VARIABLES_DEFAULT_NAME"] = "اسم"; Blockly.Msg["VARIABLES_GET_CREATE_SET"] = "Create 'set %1'"; // untranslated Blockly.Msg["VARIABLES_GET_HELPURL"] = "https://github.com/google/blockly/wiki/Variables#get"; // untranslated Blockly.Msg["VARIABLES_GET_TOOLTIP"] = "Returns the value of this variable."; // untranslated Blockly.Msg["VARIABLES_SET"] = "set %1 to %2"; // untranslated Blockly.Msg["VARIABLES_SET_CREATE_GET"] = "Create 'get %1'"; // untranslated Blockly.Msg["VARIABLES_SET_HELPURL"] = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated Blockly.Msg["VARIABLES_SET_TOOLTIP"] = "Sets this variable to be equal to the input."; // untranslated Blockly.Msg["VARIABLE_ALREADY_EXISTS"] = "A variable named '%1' already exists."; // untranslated Blockly.Msg["VARIABLE_ALREADY_EXISTS_FOR_ANOTHER_TYPE"] = "A variable named '%1' already exists for another variable of type '%2'."; // untranslated Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE; Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = Blockly.Msg.CONTROLS_IF_MSG_IF; Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.CONTROLS_IF_MSG_THEN = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = Blockly.Msg.CONTROLS_IF_MSG_ELSE; Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE; Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.MATH_CHANGE_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO; Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = Blockly.Msg.CONTROLS_IF_MSG_ELSEIF; Blockly.Msg.LISTS_GET_INDEX_HELPURL = Blockly.Msg.LISTS_INDEX_OF_HELPURL; Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.CONTROLS_FOR_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TEXT_APPEND_VARIABLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT = Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT; Blockly.Msg["MATH_HUE"] = "230"; Blockly.Msg["LOOPS_HUE"] = "120"; Blockly.Msg["LISTS_HUE"] = "260"; Blockly.Msg["LOGIC_HUE"] = "210"; Blockly.Msg["VARIABLES_HUE"] = "330"; Blockly.Msg["TEXTS_HUE"] = "160"; Blockly.Msg["PROCEDURES_HUE"] = "290"; Blockly.Msg["COLOUR_HUE"] = "20";
"use strict"; /** * Exports object that contains names of arguments as a key and their configuration objects as a value * * @example * module.exports = { * argumentName: { * desc: 'Description for the argument', * required: false, * optional: true, * type: String || Number || Array || Object, * defaults: 'Default value for this argument', * banner: 'String to show on usage notes' * } * }; */ module.exports = { 'policy-name': { required: true, type: String } };
/** * Module dependencies. */ var Socket = require('./socket') , EventEmitter = process.EventEmitter , parser = require('./parser') , util = require('./util'); /** * Exports the constructor. */ exports = module.exports = SocketNamespace; /** * Constructor. * * @api public. */ function SocketNamespace (mgr, name) { this.manager = mgr; this.name = name || ''; this.sockets = {}; this.auth = false; this.setFlags(); }; /** * Inherits from EventEmitter. */ SocketNamespace.prototype.__proto__ = EventEmitter.prototype; /** * Copies emit since we override it * * @api private */ SocketNamespace.prototype.$emit = EventEmitter.prototype.emit; /** * Retrieves all clients as Socket instances as an array. * * @api public */ SocketNamespace.prototype.clients = function (room) { var room = this.name + (room !== undefined ? (this.name !== '' ? '/' : '') + room : ''); if (!this.manager.rooms[room]) { return []; } return this.manager.rooms[room].map(function (id) { return this.socket(id); }, this); }; /** * Access logger interface. * * @api public */ SocketNamespace.prototype.__defineGetter__('log', function () { return this.manager.log; }); /** * Access store. * * @api public */ SocketNamespace.prototype.__defineGetter__('store', function () { return this.manager.store; }); /** * JSON message flag. * * @api public */ SocketNamespace.prototype.__defineGetter__('json', function () { this.flags.json = true; return this; }); /** * Volatile message flag. * * @api public */ SocketNamespace.prototype.__defineGetter__('volatile', function () { this.flags.volatile = true; return this; }); /** * Overrides the room to relay messages to (flag) * * @api public */ SocketNamespace.prototype.in = function (room) { this.flags.endpoint = (this.name === '' ? '' : (this.name + '/')) + room; return this; }; /** * Adds a session id we should prevent relaying messages to (flag) * * @api public */ SocketNamespace.prototype.except = function (id) { this.flags.exceptions.push(id); return this; }; /** * Sets the default flags. * * @api private */ SocketNamespace.prototype.setFlags = function () { this.flags = { endpoint: this.name , exceptions: [] }; return this; }; /** * Sends out a packet * * @api private */ SocketNamespace.prototype.packet = function (packet) { packet.endpoint = this.name; var store = this.store , log = this.log , volatile = this.flags.volatile , exceptions = this.flags.exceptions , packet = parser.encodePacket(packet); this.manager.onDispatch(this.flags.endpoint, packet, volatile, exceptions); this.store.publish('dispatch', this.flags.endpoint, packet, volatile, exceptions); this.setFlags(); return this; }; /** * Sends to everyone. * * @api public */ SocketNamespace.prototype.send = function (data) { return this.packet({ type: this.flags.json ? 'json' : 'message' , data: data }); }; /** * Emits to everyone (override) * * @api private */ SocketNamespace.prototype.emit = function (name) { if (name == 'connection' || name == 'newListener') { return this.$emit.apply(this, arguments); } return this.packet({ type: 'event' , name: name , args: util.toArray(arguments).slice(1) }); }; /** * Retrieves or creates a write-only socket for a client, unless specified. * * @param {Boolean} whether the socket will be readable when initialized * @api private */ SocketNamespace.prototype.socket = function (sid, readable) { if (!this.sockets[sid]) { this.sockets[sid] = new Socket(this.manager, sid, this, readable); } return this.sockets[sid]; }; /** * Sets authorization for this namespace * * @api public */ SocketNamespace.prototype.authorization = function (fn) { this.auth = fn; return this; }; /** * Called when a socket disconnects entirely. * * @api private */ SocketNamespace.prototype.handleDisconnect = function (sid, reason) { if (this.sockets[sid] && this.sockets[sid].readable) { this.sockets[sid].onDisconnect(reason); } }; /** * Performs authentication. * * @param Object client request data * @api private */ SocketNamespace.prototype.authorize = function (data, fn) { if (this.auth) { var self = this; this.auth.call(this, data, function (err, authorized) { self.log.debug('client ' + (authorized ? '' : 'un') + 'authorized for ' + self.name); fn(err, authorized); }); } else { this.log.debug('client authorized for ' + this.name); fn(null, true); } return this; }; /** * Handles a packet. * * @api private */ SocketNamespace.prototype.handlePacket = function (sessid, packet) { var socket = this.socket(sessid) , dataAck = packet.ack == 'data' , self = this; function ack () { self.log.debug('sending data ack packet'); socket.packet({ type: 'ack' , args: util.toArray(arguments) , ackId: packet.id }); }; function error (err) { self.log.warn('handshake error ' + err + ' for ' + self.name); socket.packet({ type: 'error', reason: err }); }; function connect () { self.manager.onJoin(sessid, self.name); self.store.publish('join', sessid, self.name); // packet echo socket.packet({ type: 'connect' }); // emit connection event self.emit('connection', socket); }; switch (packet.type) { case 'connect': if (packet.endpoint == '') { connect(); } else { var manager = this.manager , handshakeData = manager.handshaken[sessid]; this.authorize(handshakeData, function (err, authorized, newData) { if (err) return error(err); if (authorized) { manager.onHandshake(sessid, newData || handshakeData); self.store.publish('handshake', sessid, newData || handshakeData); connect(); } else { error('unauthorized'); } }); } break; case 'ack': if (socket.acks[packet.ackId]) { socket.acks[packet.ackId].apply(socket, packet.args); } else { this.log.info('unknown ack packet'); } break; case 'event': var params = [packet.name].concat(packet.args); if (dataAck) params.push(ack); socket.$emit.apply(socket, params); break; case 'disconnect': this.manager.onLeave(sessid, this.name); this.store.publish('leave', sessid, this.name); socket.emit('disconnect', packet.reason || 'packet'); break; case 'json': case 'message': var params = ['message', packet.data]; if (dataAck) params.push(ack); socket.emit.apply(socket, params); }; };
/* @flow */ import type VueRouter from '../index' import { History } from './base' export class AbstractHistory extends History { index: number; stack: Array<Route>; constructor (router: VueRouter, base: ?string) { super(router, base) this.stack = [] this.index = -1 } push (location: RawLocation) { this.transitionTo(location, route => { this.stack = this.stack.slice(0, this.index + 1).concat(route) this.index++ }) } replace (location: RawLocation) { this.transitionTo(location, route => { this.stack = this.stack.slice(0, this.index).concat(route) }) } go (n: number) { const targetIndex = this.index + n if (targetIndex < 0 || targetIndex >= this.stack.length) { return } const route = this.stack[targetIndex] this.confirmTransition(route, () => { this.index = targetIndex this.updateRoute(route) }) } ensureURL () { // noop } }
/* eslint-disable import/prefer-default-export */ import courseAPI from 'api/course'; import actionTypes from './constants'; export function fetchNotification() { return (dispatch) => { dispatch({ type: actionTypes.FETCH_NOTIFICATION_REQUEST }); return courseAPI.userNotifications.fetch() .then((response) => { dispatch({ type: actionTypes.FETCH_NOTIFICATION_SUCCESS, nextNotification: response.data, }); }) .catch(() => { dispatch({ type: actionTypes.FETCH_NOTIFICATION_FAILURE }); }); }; } export function markAsRead(userNotificationId) { return (dispatch) => { dispatch({ type: actionTypes.MARK_AS_READ_REQUEST }); return courseAPI.userNotifications.markAsRead(userNotificationId) .then((response) => { dispatch({ type: actionTypes.MARK_AS_READ_SUCCESS, nextNotification: response.data, }); }) .catch(() => { dispatch({ type: actionTypes.MARK_AS_READ_FAILURE }); }); }; }
"use strict"; /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const mockery = require("mockery"); function setupUnhandledRejectionListener() { process.addListener('unhandledRejection', unhandledRejectionListener); } exports.setupUnhandledRejectionListener = setupUnhandledRejectionListener; function removeUnhandledRejectionListener() { process.removeListener('unhandledRejection', unhandledRejectionListener); } exports.removeUnhandledRejectionListener = removeUnhandledRejectionListener; function unhandledRejectionListener(reason, p) { console.log('*'); console.log('**'); console.log('***'); console.log('****'); console.log('*****'); console.log(`ERROR!! Unhandled promise rejection, a previous test may have failed but reported success.`); console.log(reason.toString()); console.log('*****'); console.log('****'); console.log('***'); console.log('**'); console.log('*'); } /** * path.resolve + fixing the drive letter to match what VS Code does. Basically tests can use this when they * want to force a path to native slashes and the correct letter case, but maybe can't use un-mocked utils. */ function pathResolve(...segments) { let aPath = path.resolve.apply(null, segments); if (aPath.match(/^[A-Za-z]:/)) { aPath = aPath[0].toLowerCase() + aPath.substr(1); } return aPath; } exports.pathResolve = pathResolve; function registerLocMocks() { mockery.registerMock('vscode-nls', { config: () => () => dummyLocalize, loadMessageBundle: () => dummyLocalize }); } exports.registerLocMocks = registerLocMocks; function dummyLocalize(id, englishString) { return englishString; } //# sourceMappingURL=testUtils.js.map
var connect = require("connect"), cookieSession = require("connect-cookie-session"); connect( connect.cookieParser(), // cookieSession needs cookieParser cookieSession({ // You should use your own secret key (and keep it secret!) secret : "d3b07384d113edec49eaa6238ad5ff00" }), function(req, res) { var accessCount = (req.session.accessCount || 0); req.session.accessCount = accessCount + 1; res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('You have accessed this site ' + accessCount + ' times'); } ).listen(8080);
/* global describe, it */ import React from 'react'; import { shallow } from 'enzyme'; import { assert } from 'chai'; import Row from '../src/Row'; let wrapper = shallow( <Row /> ); describe('<Row />', () => { it('should render', () => { assert(wrapper.find('.row').length, 'a row'); }); });
'use strict'; module.exports = function doAvg(size, counts) { var nMax = size.length; var total = 0; for(var i = 0; i < nMax; i++) { if(counts[i]) { size[i] /= counts[i]; total += size[i]; } else size[i] = null; } return total; };
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' angular.module('ebApp', ['ionic', 'angular-growl', 'ebApp.services', 'ebApp.controllers']) .run(function ($ionicPlatform) { $ionicPlatform.ready(function () { // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard // for form inputs) if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); } if (window.StatusBar) { StatusBar.styleDefault(); } }); }) .config(function ($stateProvider, $urlRouterProvider, $ionicConfigProvider) { $stateProvider .state( 'sendOrder', { url: '/sendOrder', templateUrl: 'templates/send-order.html', controller: 'SendOrderCtrl' }) .state( 'chooseLocation', { url: '/chooseLocation', templateUrl: 'templates/choose-location.html', controller: 'ChooseLocationCtrl' }) .state( 'pickTime', { url: '/pickTime', templateUrl: 'templates/pick-time.html', controller: 'PickTimeCtrl' }) .state( 'confirmOrder', { url: '/confirmOrder', templateUrl: 'templates/confirm-order.html', controller: 'ConfirmOrderCtrl' }) .state( 'payOrder', { url: '/payOrder', templateUrl: 'templates/pay-order.html', controller: 'PayOrderCtrl' }) .state( 'myOrder', { url: '/myOrder', cache: false, templateUrl: 'templates/my-order.html', controller: 'MyOrderCtrl' }) .state( 'orderDetail', { url: '/orderDetail/:orderId', cache: false, templateUrl: 'templates/order-detail.html', controller: 'OrderDetailCtrl' }) .state( 'menuDetail', { url: '/menuDetail/:menuId', templateUrl: 'templates/menu-detail.html', controller: 'MenuDetailCtrl' }); // if none of the above states are matched, use this as the fallback $urlRouterProvider.otherwise('/sendOrder'); $ionicConfigProvider.views.maxCache(20); $ionicConfigProvider.views.forwardCache(true); $ionicConfigProvider.navBar.alignTitle('center'); $ionicConfigProvider.templates.maxPrefetch(0); $ionicConfigProvider.tabs.style('ios'); //even if you're on android $ionicConfigProvider.tabs.position('ios'); //even if you're on android });
'use strict'; var _ = require('lodash'); //helper functions function extractNames (v) { return v.name; } function get_get (roles,v) { return v.get(roles); } function remove_nulls (v) { return v; } //MenuItem class function MenuItem (options) { options = _.assign ({name: null, title:null, link:null, roles:null}, options); options.name = options.name || (options.link ? options.link.replace('/','_') : undefined) || options.title; this.name = options.name; this.title = options.title; this.link = options.link; this.roles = options.roles; this.icon = options.icon; this.submenus = options.submenus || []; } function mapDoStrip (v) { return v ? v.strip() : undefined; } MenuItem.prototype.strip = function () { return { name: this.name, title:this.title, link: this.link, roles:this.roles, icon: this.icon, submenus: this.submenus.map(mapDoStrip) }; }; MenuItem.hasRole = function (role, roles) { return (roles.indexOf(role) > -1); }; MenuItem.prototype.props = function () { return { name: this.name, title:this.title, link:this.link, icon: this.icon, roles:this.roles }; }; MenuItem.prototype.findOrCreate = function (path) { if (!path.length) return this; var p = path.shift(); var index = this.list().indexOf(p); if (index > -1) return this.submenus[index].findOrCreate(path); var n = new MenuItem(); n.name = p; this.submenus.push (n); return n.findOrCreate(path); }; MenuItem.prototype.list = function () { return this.submenus.map(extractNames); }; MenuItem.prototype.get = function (roles, path) { roles = roles ? roles.slice() : []; if (roles.indexOf('anonymous') < 0 && roles.indexOf('authenticated') < 0) { roles.push ('authenticated'); } if (roles.indexOf('all') < 0) roles.push('all'); var list = this.list(); if (path) { if (!path.length) return this; var n = path.shift(); var index = list.indexOf (n); return this.submenus[index] ? this.submenus[index].get(roles,path) : undefined; } if(!MenuItem.hasRole('admin', roles)) { if (this.roles) { if (!_.intersection(this.roles, roles).length) return undefined; } } return new MenuItem ({ roles: this.roles || null, link : this.link || null, title:this.title || null, name : this.name || null, icon : this.icon || null, submenus : this.submenus.map(get_get.bind(null, roles)).filter(remove_nulls), }); }; MenuItem.prototype.add = function (mi) { var index = this.list().indexOf(mi.name); var itm; if (index > -1) { var ts = mi.props(); itm = this.submenus[index]; for (var i in ts) itm[i] = ts[i]; }else{ itm = mi; this.submenus.push (itm); } return itm; }; var allMenus = new MenuItem (), _ = require('lodash'); function Menus() { } function arguments_menu_items_processor (instance, item) { Menus.prototype.add.call(instance, item); } function supportMenus(Meanio){ Menus.prototype.add = function(options) { if (arguments.length === 0) return this; if (options instanceof Array) { options.forEach( Menus.prototype.add.bind(this) ); return this; } if (arguments.length > 1) { Array.prototype.forEach.call(arguments, arguments_menu_items_processor.bind(null, this)); return this; } //fixes scaffolding: menu=path if(options.menu !== undefined) { options.path = options.menu; } options = _.assign({ path : 'main', roles: ['anonymous'], }, options); options.path = options.path.replace(/^\//, ''); var item = allMenus.findOrCreate(options.path.split('/')); item.add(new MenuItem(options)); return this; }; Menus.prototype.get = function(options) { options = options || {}; options.menu = options.menu || 'main'; options.roles = options.roles || ['anonymous']; options.defaultMenu = options.defaultMenu || []; var sm = allMenus.get(options.roles, options.menu.split('/')); if (!sm) { //no menu at all return options.defaultMenu; } var ret = sm.get(options.roles); return ret ? options.defaultMenu.concat(ret.submenus.map(mapDoStrip)) : options.defaultMenu; }; Meanio.prototype.Menus = Menus; } module.exports = supportMenus;
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* globals Cmd, ColorSpace, Dict, MozBlobBuilder, Name, PDFJS, Ref, URL */ 'use strict'; //MQZ. Oct.10.2012. Moved globalScope definition to lib/pdf.js //var globalScope = (typeof window === 'undefined') ? this : window; var isWorker = (typeof window == 'undefined'); var ERRORS = 0, WARNINGS = 1, INFOS = 5; var verbosity = WARNINGS; var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; var TextRenderingMode = { FILL: 0, STROKE: 1, FILL_STROKE: 2, INVISIBLE: 3, FILL_ADD_TO_PATH: 4, STROKE_ADD_TO_PATH: 5, FILL_STROKE_ADD_TO_PATH: 6, ADD_TO_PATH: 7, FILL_STROKE_MASK: 3, ADD_TO_PATH_FLAG: 4 }; // The global PDFJS object exposes the API // In production, it will be declared outside a global wrapper // In development, it will be declared here if (!globalScope.PDFJS) { globalScope.PDFJS = {}; } globalScope.PDFJS.pdfBug = false; // All the possible operations for an operator list. var OPS = PDFJS.OPS = { // Intentionally start from 1 so it is easy to spot bad operators that will be // 0's. dependency: 1, setLineWidth: 2, setLineCap: 3, setLineJoin: 4, setMiterLimit: 5, setDash: 6, setRenderingIntent: 7, setFlatness: 8, setGState: 9, save: 10, restore: 11, transform: 12, moveTo: 13, lineTo: 14, curveTo: 15, curveTo2: 16, curveTo3: 17, closePath: 18, rectangle: 19, stroke: 20, closeStroke: 21, fill: 22, eoFill: 23, fillStroke: 24, eoFillStroke: 25, closeFillStroke: 26, closeEOFillStroke: 27, endPath: 28, clip: 29, eoClip: 30, beginText: 31, endText: 32, setCharSpacing: 33, setWordSpacing: 34, setHScale: 35, setLeading: 36, setFont: 37, setTextRenderingMode: 38, setTextRise: 39, moveText: 40, setLeadingMoveText: 41, setTextMatrix: 42, nextLine: 43, showText: 44, showSpacedText: 45, nextLineShowText: 46, nextLineSetSpacingShowText: 47, setCharWidth: 48, setCharWidthAndBounds: 49, setStrokeColorSpace: 50, setFillColorSpace: 51, setStrokeColor: 52, setStrokeColorN: 53, setFillColor: 54, setFillColorN: 55, setStrokeGray: 56, setFillGray: 57, setStrokeRGBColor: 58, setFillRGBColor: 59, setStrokeCMYKColor: 60, setFillCMYKColor: 61, shadingFill: 62, beginInlineImage: 63, beginImageData: 64, endInlineImage: 65, paintXObject: 66, markPoint: 67, markPointProps: 68, beginMarkedContent: 69, beginMarkedContentProps: 70, endMarkedContent: 71, beginCompat: 72, endCompat: 73, paintFormXObjectBegin: 74, paintFormXObjectEnd: 75, beginGroup: 76, endGroup: 77, beginAnnotations: 78, endAnnotations: 79, beginAnnotation: 80, endAnnotation: 81, paintJpegXObject: 82, paintImageMaskXObject: 83, paintImageMaskXObjectGroup: 84, paintImageXObject: 85, paintInlineImageXObject: 86, paintInlineImageXObjectGroup: 87 }; //MQZ.Mar.22 Disabled Operators (to prevent image painting & annotation default appearance) //paintJpegXObject, paintImageMaskXObject, paintImageMaskXObjectGroup, paintImageXObject, paintInlineImageXObject, paintInlineImageXObjectGroup var NO_OPS = PDFJS.NO_OPS = [82, 83, 84, 85, 86, 87]; var NO_OPS_RANGE = PDFJS.NO_OPS_RANGE = [78, 79, 80, 81]; //range pairs, all ops with each pair will be skipped. !important! // Use only for debugging purposes. This should not be used in any code that is // in mozilla master. var log = (function() { if ('console' in globalScope && 'log' in globalScope['console']) { return globalScope['console']['log'].bind(globalScope['console']); } else { return function nop() { }; } })(); // A notice for devs that will not trigger the fallback UI. These are good // for things that are helpful to devs, such as warning that Workers were // disabled, which is important to devs but not end users. function info(msg) { if (verbosity >= INFOS) { log('Info: ' + msg); PDFJS.LogManager.notify('info', msg); } } // Non-fatal warnings that should trigger the fallback UI. function warn(msg) { if (verbosity >= WARNINGS) { log('Warning: ' + msg); PDFJS.LogManager.notify('warn', msg); } } // Fatal errors that should trigger the fallback UI and halt execution by // throwing an exception. function error(msg) { // If multiple arguments were passed, pass them all to the log function. if (arguments.length > 1) { var logArguments = ['Error:']; logArguments.push.apply(logArguments, arguments); log.apply(null, logArguments); // Join the arguments into a single string for the lines below. msg = [].join.call(arguments, ' '); } else { //log('Error: ' + msg); } //log(backtrace()); //PDFJS.LogManager.notify('error', msg); throw new Error(msg); } // Missing features that should trigger the fallback UI. function TODO(what) { warn('TODO: ' + what); } function backtrace() { try { throw new Error(); } catch (e) { return e.stack ? e.stack.split('\n').slice(2).join('\n') : ''; } } function assert(cond, msg) { if (!cond) error(msg); } // Combines two URLs. The baseUrl shall be absolute URL. If the url is an // absolute URL, it will be returned as is. function combineUrl(baseUrl, url) { if (!url) return baseUrl; if (url.indexOf(':') >= 0) return url; if (url.charAt(0) == '/') { // absolute path var i = baseUrl.indexOf('://'); i = baseUrl.indexOf('/', i + 3); return baseUrl.substring(0, i) + url; } else { // relative path var pathLength = baseUrl.length, i; i = baseUrl.lastIndexOf('#'); pathLength = i >= 0 ? i : pathLength; i = baseUrl.lastIndexOf('?', pathLength); pathLength = i >= 0 ? i : pathLength; var prefixLength = baseUrl.lastIndexOf('/', pathLength); return baseUrl.substring(0, prefixLength + 1) + url; } } // Validates if URL is safe and allowed, e.g. to avoid XSS. function isValidUrl(url, allowRelative) { if (!url) { return false; } var colon = url.indexOf(':'); if (colon < 0) { return allowRelative; } var protocol = url.substr(0, colon); switch (protocol) { case 'http': case 'https': case 'ftp': case 'mailto': return true; default: return false; } } PDFJS.isValidUrl = isValidUrl; // In a well-formed PDF, |cond| holds. If it doesn't, subsequent // behavior is undefined. function assertWellFormed(cond, msg) { if (!cond) error(msg); } var LogManager = PDFJS.LogManager = (function LogManagerClosure() { var loggers = []; return { addLogger: function logManager_addLogger(logger) { loggers.push(logger); }, notify: function(type, message) { for (var i = 0, ii = loggers.length; i < ii; i++) { var logger = loggers[i]; if (logger[type]) logger[type](message); } } }; })(); function shadow(obj, prop, value) { Object.defineProperty(obj, prop, { value: value, enumerable: true, configurable: true, writable: false }); return value; } var PasswordResponses = PDFJS.PasswordResponses = { NEED_PASSWORD: 1, INCORRECT_PASSWORD: 2 }; var PasswordException = (function PasswordExceptionClosure() { function PasswordException(msg, code) { this.name = 'PasswordException'; this.message = msg; this.code = code; } PasswordException.prototype = new Error(); PasswordException.constructor = PasswordException; return PasswordException; })(); var UnknownErrorException = (function UnknownErrorExceptionClosure() { function UnknownErrorException(msg, details) { this.name = 'UnknownErrorException'; this.message = msg; this.details = details; } UnknownErrorException.prototype = new Error(); UnknownErrorException.constructor = UnknownErrorException; return UnknownErrorException; })(); var InvalidPDFException = (function InvalidPDFExceptionClosure() { function InvalidPDFException(msg) { this.name = 'InvalidPDFException'; this.message = msg; } InvalidPDFException.prototype = new Error(); InvalidPDFException.constructor = InvalidPDFException; return InvalidPDFException; })(); var MissingPDFException = (function MissingPDFExceptionClosure() { function MissingPDFException(msg) { this.name = 'MissingPDFException'; this.message = msg; } MissingPDFException.prototype = new Error(); MissingPDFException.constructor = MissingPDFException; return MissingPDFException; })(); var NotImplementedException = (function NotImplementedExceptionClosure() { function NotImplementedException(msg) { this.message = msg; } NotImplementedException.prototype = new Error(); NotImplementedException.prototype.name = 'NotImplementedException'; NotImplementedException.constructor = NotImplementedException; return NotImplementedException; })(); var MissingDataException = (function MissingDataExceptionClosure() { function MissingDataException(begin, end) { this.begin = begin; this.end = end; this.message = 'Missing data [' + begin + ', ' + end + ')'; } MissingDataException.prototype = new Error(); MissingDataException.prototype.name = 'MissingDataException'; MissingDataException.constructor = MissingDataException; return MissingDataException; })(); var XRefParseException = (function XRefParseExceptionClosure() { function XRefParseException(msg) { this.message = msg; } XRefParseException.prototype = new Error(); XRefParseException.prototype.name = 'XRefParseException'; XRefParseException.constructor = XRefParseException; return XRefParseException; })(); function bytesToString(bytes) { var str = ''; var length = bytes.length; for (var n = 0; n < length; ++n) str += String.fromCharCode(bytes[n]); return str; } function stringToBytes(str) { var length = str.length; var bytes = new Uint8Array(length); for (var n = 0; n < length; ++n) bytes[n] = str.charCodeAt(n) & 0xFF; return bytes; } var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; var Util = PDFJS.Util = (function UtilClosure() { function Util() {} Util.makeCssRgb = function Util_makeCssRgb(rgb) { return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')'; }; Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) { var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0); return Util.makeCssRgb(rgb); }; // Concatenates two transformation matrices together and returns the result. Util.transform = function Util_transform(m1, m2) { return [ m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5] ]; }; // For 2d affine transforms Util.applyTransform = function Util_applyTransform(p, m) { var xt = p[0] * m[0] + p[1] * m[2] + m[4]; var yt = p[0] * m[1] + p[1] * m[3] + m[5]; return [xt, yt]; }; Util.applyInverseTransform = function Util_applyInverseTransform(p, m) { var d = m[0] * m[3] - m[1] * m[2]; var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d; var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d; return [xt, yt]; }; // Applies the transform to the rectangle and finds the minimum axially // aligned bounding box. Util.getAxialAlignedBoundingBox = function Util_getAxialAlignedBoundingBox(r, m) { var p1 = Util.applyTransform(r, m); var p2 = Util.applyTransform(r.slice(2, 4), m); var p3 = Util.applyTransform([r[0], r[3]], m); var p4 = Util.applyTransform([r[2], r[1]], m); return [ Math.min(p1[0], p2[0], p3[0], p4[0]), Math.min(p1[1], p2[1], p3[1], p4[1]), Math.max(p1[0], p2[0], p3[0], p4[0]), Math.max(p1[1], p2[1], p3[1], p4[1]) ]; }; Util.inverseTransform = function Util_inverseTransform(m) { var d = m[0] * m[3] - m[1] * m[2]; return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d, (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d]; }; // Apply a generic 3d matrix M on a 3-vector v: // | a b c | | X | // | d e f | x | Y | // | g h i | | Z | // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i], // with v as [X,Y,Z] Util.apply3dTransform = function Util_apply3dTransform(m, v) { return [ m[0] * v[0] + m[1] * v[1] + m[2] * v[2], m[3] * v[0] + m[4] * v[1] + m[5] * v[2], m[6] * v[0] + m[7] * v[1] + m[8] * v[2] ]; }; // This calculation uses Singular Value Decomposition. // The SVD can be represented with formula A = USV. We are interested in the // matrix S here because it represents the scale values. Util.singularValueDecompose2dScale = function Util_singularValueDecompose2dScale(m) { var transpose = [m[0], m[2], m[1], m[3]]; // Multiply matrix m with its transpose. var a = m[0] * transpose[0] + m[1] * transpose[2]; var b = m[0] * transpose[1] + m[1] * transpose[3]; var c = m[2] * transpose[0] + m[3] * transpose[2]; var d = m[2] * transpose[1] + m[3] * transpose[3]; // Solve the second degree polynomial to get roots. var first = (a + d) / 2; var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2; var sx = first + second || 1; var sy = first - second || 1; // Scale values are the square roots of the eigenvalues. return [Math.sqrt(sx), Math.sqrt(sy)]; }; // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2) // For coordinate systems whose origin lies in the bottom-left, this // means normalization to (BL,TR) ordering. For systems with origin in the // top-left, this means (TL,BR) ordering. Util.normalizeRect = function Util_normalizeRect(rect) { var r = rect.slice(0); // clone rect if (rect[0] > rect[2]) { r[0] = rect[2]; r[2] = rect[0]; } if (rect[1] > rect[3]) { r[1] = rect[3]; r[3] = rect[1]; } return r; }; // Returns a rectangle [x1, y1, x2, y2] corresponding to the // intersection of rect1 and rect2. If no intersection, returns 'false' // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2] Util.intersect = function Util_intersect(rect1, rect2) { function compare(a, b) { return a - b; } // Order points along the axes var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare), orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare), result = []; rect1 = Util.normalizeRect(rect1); rect2 = Util.normalizeRect(rect2); // X: first and second points belong to different rectangles? if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) || (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) { // Intersection must be between second and third points result[0] = orderedX[1]; result[2] = orderedX[2]; } else { return false; } // Y: first and second points belong to different rectangles? if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) || (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) { // Intersection must be between second and third points result[1] = orderedY[1]; result[3] = orderedY[2]; } else { return false; } return result; }; Util.sign = function Util_sign(num) { return num < 0 ? -1 : 1; }; // TODO(mack): Rename appendToArray Util.concatenateToArray = function concatenateToArray(arr1, arr2) { Array.prototype.push.apply(arr1, arr2); }; Util.prependToArray = function concatenateToArray(arr1, arr2) { Array.prototype.unshift.apply(arr1, arr2); }; Util.extendObj = function extendObj(obj1, obj2) { for (var key in obj2) { obj1[key] = obj2[key]; } }; Util.getInheritableProperty = function Util_getInheritableProperty(dict, name) { while (dict && !dict.has(name)) { dict = dict.get('Parent'); } if (!dict) { return null; } return dict.get(name); }; Util.inherit = function Util_inherit(sub, base, prototype) { sub.prototype = Object.create(base.prototype); sub.prototype.constructor = sub; for (var prop in prototype) { sub.prototype[prop] = prototype[prop]; } }; Util.loadScript = function Util_loadScript(src, callback) { var script = document.createElement('script'); var loaded = false; script.setAttribute('src', src); if (callback) { script.onload = function() { if (!loaded) { callback(); } loaded = true; }; } document.getElementsByTagName('head')[0].appendChild(script); }; return Util; })(); var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() { function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) { this.viewBox = viewBox; this.scale = scale; this.rotation = rotation; this.offsetX = offsetX; this.offsetY = offsetY; // creating transform to convert pdf coordinate system to the normal // canvas like coordinates taking in account scale and rotation var centerX = (viewBox[2] + viewBox[0]) / 2; var centerY = (viewBox[3] + viewBox[1]) / 2; var rotateA, rotateB, rotateC, rotateD; rotation = rotation % 360; rotation = rotation < 0 ? rotation + 360 : rotation; switch (rotation) { case 180: rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1; break; case 90: rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0; break; case 270: rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0; break; //case 0: default: rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1; break; } if (dontFlip) { rotateC = -rotateC; rotateD = -rotateD; } var offsetCanvasX, offsetCanvasY; var width, height; if (rotateA === 0) { offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX; offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY; width = Math.abs(viewBox[3] - viewBox[1]) * scale; height = Math.abs(viewBox[2] - viewBox[0]) * scale; } else { offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX; offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY; width = Math.abs(viewBox[2] - viewBox[0]) * scale; height = Math.abs(viewBox[3] - viewBox[1]) * scale; } // creating transform for the following operations: // translate(-centerX, -centerY), rotate and flip vertically, // scale, and translate(offsetCanvasX, offsetCanvasY) this.transform = [ rotateA * scale, rotateB * scale, rotateC * scale, rotateD * scale, offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY, offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY ]; this.width = width; this.height = height; this.fontScale = scale; } PageViewport.prototype = { clone: function PageViewPort_clone(args) { args = args || {}; var scale = 'scale' in args ? args.scale : this.scale; var rotation = 'rotation' in args ? args.rotation : this.rotation; return new PageViewport(this.viewBox.slice(), scale, rotation, this.offsetX, this.offsetY, args.dontFlip); }, convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) { return Util.applyTransform([x, y], this.transform); }, convertToViewportRectangle: function PageViewport_convertToViewportRectangle(rect) { var tl = Util.applyTransform([rect[0], rect[1]], this.transform); var br = Util.applyTransform([rect[2], rect[3]], this.transform); return [tl[0], tl[1], br[0], br[1]]; }, convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) { return Util.applyInverseTransform([x, y], this.transform); } }; return PageViewport; })(); var PDFStringTranslateTable = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C, 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160, 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC ]; function stringToPDFString(str) { var i, n = str.length, str2 = ''; if (str[0] === '\xFE' && str[1] === '\xFF') { // UTF16BE BOM for (i = 2; i < n; i += 2) str2 += String.fromCharCode( (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)); } else { for (i = 0; i < n; ++i) { var code = PDFStringTranslateTable[str.charCodeAt(i)]; str2 += code ? String.fromCharCode(code) : str.charAt(i); } } return str2; } function stringToUTF8String(str) { return decodeURIComponent(escape(str)); } function isEmptyObj(obj) { for (var key in obj) { return false; } return true; } function isBool(v) { return typeof v == 'boolean'; } function isInt(v) { return typeof v == 'number' && ((v | 0) == v); } function isNum(v) { return typeof v == 'number'; } function isString(v) { return typeof v == 'string'; } function isNull(v) { return v === null; } function isName(v) { return v instanceof Name; } function isCmd(v, cmd) { return v instanceof Cmd && (!cmd || v.cmd == cmd); } function isDict(v, type) { if (!(v instanceof Dict)) { return false; } if (!type) { return true; } var dictType = v.get('Type'); return isName(dictType) && dictType.name == type; } function isArray(v) { return v instanceof Array; } function isStream(v) { return typeof v == 'object' && v !== null && v !== undefined && ('getBytes' in v); } function isArrayBuffer(v) { return typeof v == 'object' && v !== null && v !== undefined && ('byteLength' in v); } function isRef(v) { return v instanceof Ref; } function isPDFFunction(v) { var fnDict; if (typeof v != 'object') return false; else if (isDict(v)) fnDict = v; else if (isStream(v)) fnDict = v.dict; else return false; return fnDict.has('FunctionType'); } /** * The following promise implementation tries to generally implment the * Promise/A+ spec. Some notable differences from other promise libaries are: * - There currently isn't a seperate deferred and promise object. * - Unhandled rejections eventually show an error if they aren't handled. * * Based off of the work in: * https://bugzilla.mozilla.org/show_bug.cgi?id=810490 */ var Promise = PDFJS.Promise = (function PromiseClosure() { var STATUS_PENDING = 0; var STATUS_RESOLVED = 1; var STATUS_REJECTED = 2; // In an attempt to avoid silent exceptions, unhandled rejections are // tracked and if they aren't handled in a certain amount of time an // error is logged. var REJECTION_TIMEOUT = 500; var HandlerManager = { handlers: [], running: false, unhandledRejections: [], pendingRejectionCheck: false, scheduleHandlers: function scheduleHandlers(promise) { if (promise._status == STATUS_PENDING) { return; } this.handlers = this.handlers.concat(promise._handlers); promise._handlers = []; if (this.running) { return; } this.running = true; setTimeout(this.runHandlers.bind(this), 0); }, runHandlers: function runHandlers() { while (this.handlers.length > 0) { var handler = this.handlers.shift(); var nextStatus = handler.thisPromise._status; var nextValue = handler.thisPromise._value; try { if (nextStatus === STATUS_RESOLVED) { if (typeof(handler.onResolve) == 'function') { nextValue = handler.onResolve(nextValue); } } else if (typeof(handler.onReject) === 'function') { nextValue = handler.onReject(nextValue); nextStatus = STATUS_RESOLVED; if (handler.thisPromise._unhandledRejection) { this.removeUnhandeledRejection(handler.thisPromise); } } } catch (ex) { nextStatus = STATUS_REJECTED; nextValue = ex; } handler.nextPromise._updateStatus(nextStatus, nextValue); } this.running = false; }, addUnhandledRejection: function addUnhandledRejection(promise) { this.unhandledRejections.push({ promise: promise, time: Date.now() }); this.scheduleRejectionCheck(); }, removeUnhandeledRejection: function removeUnhandeledRejection(promise) { promise._unhandledRejection = false; for (var i = 0; i < this.unhandledRejections.length; i++) { if (this.unhandledRejections[i].promise === promise) { this.unhandledRejections.splice(i); i--; } } }, scheduleRejectionCheck: function scheduleRejectionCheck() { if (this.pendingRejectionCheck) { return; } this.pendingRejectionCheck = true; setTimeout(function rejectionCheck() { this.pendingRejectionCheck = false; var now = Date.now(); for (var i = 0; i < this.unhandledRejections.length; i++) { if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) { var unhandled = this.unhandledRejections[i].promise._value; var msg = 'Unhandled rejection: ' + unhandled; if (unhandled.stack) { msg += '\n' + unhandled.stack; } warn(msg); this.unhandledRejections.splice(i); i--; } } if (this.unhandledRejections.length) { this.scheduleRejectionCheck(); } }.bind(this), REJECTION_TIMEOUT); } }; function Promise() { this._status = STATUS_PENDING; this._handlers = []; } /** * Builds a promise that is resolved when all the passed in promises are * resolved. * @param {array} array of data and/or promises to wait for. * @return {Promise} New dependant promise. */ Promise.all = function Promise_all(promises) { var deferred = new Promise(); var unresolved = promises.length; var results = []; if (unresolved === 0) { deferred.resolve(results); return deferred; } function reject(reason) { if (deferred._status === STATUS_REJECTED) { return; } results = []; deferred.reject(reason); } for (var i = 0, ii = promises.length; i < ii; ++i) { var promise = promises[i]; var resolve = (function(i) { return function(value) { if (deferred._status === STATUS_REJECTED) { return; } results[i] = value; unresolved--; if (unresolved === 0) deferred.resolve(results); }; })(i); if (Promise.isPromise(promise)) { promise.then(resolve, reject); } else { resolve(promise); } } return deferred; }; /** * Checks if the value is likely a promise (has a 'then' function). * @return {boolean} true if x is thenable */ Promise.isPromise = function Promise_isPromise(value) { return value && typeof value.then === 'function'; }; Promise.prototype = { _status: null, _value: null, _handlers: null, _unhandledRejection: null, _updateStatus: function Promise__updateStatus(status, value) { if (this._status === STATUS_RESOLVED || this._status === STATUS_REJECTED) { return; } if (status == STATUS_RESOLVED && Promise.isPromise(value)) { value.then(this._updateStatus.bind(this, STATUS_RESOLVED), this._updateStatus.bind(this, STATUS_REJECTED)); return; } this._status = status; this._value = value; if (status === STATUS_REJECTED && this._handlers.length === 0) { this._unhandledRejection = true; HandlerManager.addUnhandledRejection(this); } HandlerManager.scheduleHandlers(this); }, get isResolved() { return this._status === STATUS_RESOLVED; }, get isRejected() { return this._status === STATUS_REJECTED; }, resolve: function Promise_resolve(value) { this._updateStatus(STATUS_RESOLVED, value); }, reject: function Promise_reject(reason) { this._updateStatus(STATUS_REJECTED, reason); }, then: function Promise_then(onResolve, onReject) { var nextPromise = new Promise(); this._handlers.push({ thisPromise: this, onResolve: onResolve, onReject: onReject, nextPromise: nextPromise }); HandlerManager.scheduleHandlers(this); return nextPromise; } }; return Promise; })(); var StatTimer = (function StatTimerClosure() { function rpad(str, pad, length) { while (str.length < length) str += pad; return str; } function StatTimer() { this.started = {}; this.times = []; this.enabled = true; } StatTimer.prototype = { time: function StatTimer_time(name) { if (!this.enabled) return; if (name in this.started) warn('Timer is already running for ' + name); this.started[name] = Date.now(); }, timeEnd: function StatTimer_timeEnd(name) { if (!this.enabled) return; if (!(name in this.started)) warn('Timer has not been started for ' + name); this.times.push({ 'name': name, 'start': this.started[name], 'end': Date.now() }); // Remove timer from started so it can be called again. delete this.started[name]; }, toString: function StatTimer_toString() { var times = this.times; var out = ''; // Find the longest name for padding purposes. var longest = 0; for (var i = 0, ii = times.length; i < ii; ++i) { var name = times[i]['name']; if (name.length > longest) longest = name.length; } for (var i = 0, ii = times.length; i < ii; ++i) { var span = times[i]; var duration = span.end - span.start; out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n'; } return out; } }; return StatTimer; })(); PDFJS.createBlob = function createBlob(data, contentType) { if (typeof Blob === 'function') return new Blob([data], { type: contentType }); // Blob builder is deprecated in FF14 and removed in FF18. var bb = new MozBlobBuilder(); bb.append(data); return bb.getBlob(contentType); }; PDFJS.createObjectURL = (function createObjectURLClosure() { if (typeof URL !== 'undefined' && URL.createObjectURL) { return function createObjectURL(data, contentType) { var blob = PDFJS.createBlob(data, contentType); return URL.createObjectURL(blob); }; } // Blob/createObjectURL is not available, falling back to data schema. var digits = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; return function createObjectURL(data, contentType) { var buffer = 'data:' + contentType + ';base64,'; for (var i = 0, ii = data.length; i < ii; i += 3) { var b1 = data[i] & 0xFF; var b2 = data[i + 1] & 0xFF; var b3 = data[i + 2] & 0xFF; var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4); var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64; var d4 = i + 2 < ii ? (b3 & 0x3F) : 64; buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4]; } return buffer; }; })(); function MessageHandler(name, comObj) { this.name = name; this.comObj = comObj; this.callbackIndex = 1; this.postMessageTransfers = true; var callbacks = this.callbacks = {}; var ah = this.actionHandler = {}; ah['console_log'] = [function ahConsoleLog(data) { log.apply(null, data); }]; // If there's no console available, console_error in the // action handler will do nothing. if ('console' in globalScope) { ah['console_error'] = [function ahConsoleError(data) { globalScope['console'].error.apply(null, data); }]; } else { ah['console_error'] = [function ahConsoleError(data) { log.apply(null, data); }]; } ah['_warn'] = [function ah_Warn(data) { warn(data); }]; comObj.onmessage = function messageHandlerComObjOnMessage(event) { var data = event.data; if (data.isReply) { var callbackId = data.callbackId; if (data.callbackId in callbacks) { var callback = callbacks[callbackId]; delete callbacks[callbackId]; callback(data.data); } else { error('Cannot resolve callback ' + callbackId); } } else if (data.action in ah) { var action = ah[data.action]; if (data.callbackId) { var promise = new Promise(); promise.then(function(resolvedData) { comObj.postMessage({ isReply: true, callbackId: data.callbackId, data: resolvedData }); }); action[0].call(action[1], data.data, promise); } else { action[0].call(action[1], data.data); } } else { error('Unkown action from worker: ' + data.action); } }; } MessageHandler.prototype = { on: function messageHandlerOn(actionName, handler, scope) { var ah = this.actionHandler; if (ah[actionName]) { error('There is already an actionName called "' + actionName + '"'); } ah[actionName] = [handler, scope]; }, /** * Sends a message to the comObj to invoke the action with the supplied data. * @param {String} actionName Action to call. * @param {JSON} data JSON data to send. * @param {function} [callback] Optional callback that will handle a reply. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers */ send: function messageHandlerSend(actionName, data, callback, transfers) { var message = { action: actionName, data: data }; if (callback) { var callbackId = this.callbackIndex++; this.callbacks[callbackId] = callback; message.callbackId = callbackId; } if (transfers && this.postMessageTransfers) { this.comObj.postMessage(message, transfers); } else { this.comObj.postMessage(message); } } }; function loadJpegStream(id, imageUrl, objs) { var img = new Image(); img.onload = (function loadJpegStream_onloadClosure() { objs.resolve(id, img); }); // img.src = imageUrl; //MQZ. Apr.09.2013 calls windows.btoa safely img.src = 'data:image/jpeg;base64,' + img.btoa(imageUrl); } //MQZ Oct.18.2013 expose util methods var nodeUtil = require("util"); nodeUtil.p2jlog = log; nodeUtil.p2jinfo = info; nodeUtil.p2jwarn = warn; nodeUtil.p2jerror = error; nodeUtil.verbosity = function(verbo) { if (!isNaN(verbo)) { if (verbo <= ERRORS) { verbo = ERRORS; } else if (verbo >= INFOS) { verbo = INFOS; } verbosity = verbo; } else { verbosity = ERRORS; } }; nodeUtil.verbosity();
var assert = require("assert"); var path = require("path"); var local = path.join.bind(path, __dirname); describe("Patch", function() { var NodeGit = require("../../"); var Repository = NodeGit.Repository; var reposPath = local("../repos/workdir"); var oid = "fce88902e66c72b5b93e75bdb5ae717038b221f6"; beforeEach(function() { var test = this; return Repository.open(reposPath).then(function(repository) { test.repository = repository; return repository.refreshIndex(); }) .then(function(index) { test.index = index; return test.repository.getBranchCommit("master"); }) .then(function(masterCommit) { return masterCommit.getTree(); }) .then(function(tree) { test.masterCommitTree = tree; return test.repository.getCommit(oid); }) .then(function(commit) { test.commit = commit; return commit.getDiff(); }) .then(function(diff) { test.diff = diff; return diff[0].patches(); }) .catch(function(e) { return Promise.reject(e); }); }); it("retrieve the line stats of a patch", function() { return this.diff[0].patches() .then(function(patches) { var patch = patches[0]; var lineStats = patch.lineStats(); assert.equal(patch.oldFile().path(), "README.md"); assert.equal(patch.newFile().path(), "README.md"); assert.equal(patch.size(), 1); assert.ok(patch.isModified()); assert.equal(lineStats.total_context, 3); assert.equal(lineStats.total_additions, 1); assert.equal(lineStats.total_deletions, 1); }); }); it("can generate patch from blobs", function() { // Generates a patch for README.md from commit // fce88902e66c72b5b93e75bdb5ae717038b221f6 const file = "README.md"; return NodeGit.Blob.lookup( this.repository, "b252f396b17661462372f78b7bcfc403b8731aaa" ).then(blob => { return NodeGit.Blob.lookup( this.repository, "b8d014998072c3f9e4b7eba8486011e80d8de98a" ).then(oldBlob => { return NodeGit.Patch.fromBlobs(oldBlob, file, blob, file) .then(patch => { assert.strictEqual(patch.size(0, 0, 0), 254); }); }); }); }); it("can generate patch from blobs without 'old_blob'", function() { // Generates a patch for README.md from commit // fce88902e66c72b5b93e75bdb5ae717038b221f6 without // old_blob. Should show all lines as additions. const file = "README.md"; return NodeGit.Blob.lookup( this.repository, "b252f396b17661462372f78b7bcfc403b8731aaa" ).then(blob => { return NodeGit.Patch.fromBlobs(null, file, blob, file) .then(patch => { assert.strictEqual(patch.size(0, 0, 0), 8905); }); }); }); it("can generate patch from blobs without arguments", function() { return NodeGit.Patch.fromBlobs() .then(patch => { assert.strictEqual(patch.size(0, 0, 0), 0); }); }); });
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. JavaScript code in this file should be added after the last require_* statement. // // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. //= require Chart.bundle //= require chartkick //= require jquery //= require jquery_ujs/ //= require_tree .
function makeRequest(url) { httpRequest = new XMLHttpRequest(); if (!httpRequest) { alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } httpRequest.onreadystatechange = function() { if (httpRequest.readyState === XMLHttpRequest.DONE) { if (httpRequest.status === 200) { alert(httpRequest.responseText); } else { alert('There was a problem with the request.'); } } }; httpRequest.open('GET', url); httpRequest.send(); }
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"2":"C p x J L N I"},C:{"1":"1 2 3 4 5 6 8 9 b c d e f g h i j k l m n o M q r s t u v w y","2":"0 ZB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z XB RB"},D:{"1":"1 2 3 4 5 6 8 9 k l m n o M q r s t u v w y LB GB FB bB a HB IB JB","2":"F K H D G E A B C p x J L N I O P Q R S T U V W X","194":"0 Y Z b c d e f g h i j"},E:{"2":"F K H D KB CB MB NB","260":"G E A B C OB PB QB z SB"},F:{"1":"0 Y Z b c d e f g h i j k l m n o M q r s t u v w","2":"7 E B C J L N I O P Q R S T U V W X TB UB VB WB z AB YB"},G:{"2":"CB aB DB cB dB eB","260":"G fB gB hB iB jB kB lB"},H:{"2":"mB"},I:{"1":"a","2":"BB F nB oB pB qB DB rB sB"},J:{"2":"D A"},K:{"1":"M","2":"7 A B C z AB"},L:{"1":"a"},M:{"1":"y"},N:{"2":"A B"},O:{"1":"tB"},P:{"1":"K uB vB","2":"F"},Q:{"1":"wB"},R:{"1":"xB"}},B:4,C:"Blending of HTML/SVG elements"};
define( //begin v1.x content { "field-sat-relative+0": "w tę sobotę", "field-sat-relative+1": "w przyszłą sobotę", "field-dayperiod": "rano / po południu / wieczorem", "field-sun-relative+-1": "w zeszłą niedzielę", "field-mon-relative+-1": "w zeszły poniedziałek", "field-minute": "minuta", "field-day-relative+-1": "wczoraj", "field-weekday": "dzień tygodnia", "field-day-relative+-2": "przedwczoraj", "field-era": "era", "field-hour": "godzina", "field-sun-relative+0": "w tę niedzielę", "field-sun-relative+1": "w przyszłą niedzielę", "months-standAlone-abbr": [ "Tout", "Baba", "Hator", "Kiahk", "Toba", "Amshir", "Baramhat", "Baramouda", "Bashans", "Paona", "Epep", "Mesra", "Nasie" ], "field-wed-relative+-1": "w zeszłą środę", "field-day-relative+0": "dzisiaj", "field-day-relative+1": "jutro", "field-day-relative+2": "pojutrze", "field-tue-relative+0": "w ten wtorek", "field-zone": "strefa czasowa", "field-tue-relative+1": "w przyszły wtorek", "field-week-relative+-1": "w zeszłym tygodniu", "field-year-relative+0": "w tym roku", "field-year-relative+1": "w przyszłym roku", "field-sat-relative+-1": "w zeszłą sobotę", "field-year-relative+-1": "w zeszłym roku", "field-year": "rok", "field-fri-relative+0": "w ten piątek", "field-fri-relative+1": "w przyszły piątek", "months-standAlone-wide": [ "Tout", "Baba", "Hator", "Kiahk", "Toba", "Amshir", "Baramhat", "Baramouda", "Bashans", "Paona", "Epep", "Mesra", "Nasie" ], "field-week": "tydzień", "field-week-relative+0": "w tym tygodniu", "field-week-relative+1": "w przyszłym tygodniu", "months-format-abbr": [ "Tout", "Baba", "Hator", "Kiahk", "Toba", "Amshir", "Baramhat", "Baramouda", "Bashans", "Paona", "Epep", "Mesra", "Nasie" ], "field-month-relative+0": "w tym miesiącu", "field-month": "miesiąc", "field-month-relative+1": "w przyszłym miesiącu", "field-fri-relative+-1": "w zeszły piątek", "field-second": "sekunda", "field-tue-relative+-1": "w zeszły wtorek", "field-day": "dzień", "months-format-narrow": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], "field-mon-relative+0": "w ten poniedziałek", "field-mon-relative+1": "w przyszły poniedziałek", "field-thu-relative+0": "w ten czwartek", "field-second-relative+0": "teraz", "field-thu-relative+1": "w przyszły czwartek", "field-wed-relative+0": "w tę środę", "field-wed-relative+1": "w przyszłą środę", "field-month-relative+-1": "w zeszłym miesiącu", "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content );
module.exports={"title":"CSS3","hex":"1572B6","source":"http://www.w3.org/html/logo/","svg":"<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>CSS3 icon</title><path d=\"M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438L1.5 0zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.24 2.573h6.182l-.366 3.523-2.91.804-2.956-.81-.188-2.11h-2.61l.29 3.855L12 19.288l5.373-1.53L18.59 4.414z\"/></svg>","path":"M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438L1.5 0zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.24 2.573h6.182l-.366 3.523-2.91.804-2.956-.81-.188-2.11h-2.61l.29 3.855L12 19.288l5.373-1.53L18.59 4.414z"};
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define('sap/ui/test/TestUtils', ['jquery.sap.global', 'sap/ui/core/Core'], function(jQuery/*, Core*/) { "use strict"; /*global QUnit, sinon */ // Note: The dependency to Sinon.js has been omitted deliberately. Most test files load it via // <script> anyway and declaring the dependency would cause it to be loaded twice. var mMessageForPath = {}; // a cache for files, see useFakeServer /** * Checks that the actual value deeply contains the expected value, ignoring additional * properties. * * @param {object} oActual * the actual value to be tested * @param {object} oExpected * the expected value which needs to be contained structurally (as a subset) within the * actual value * @param {string} sPath * path to the values under investigation * @throws {Error} * in case the actual value does not deeply contain the expected value; the error message * provides a proof of this */ function deeplyContains(oActual, oExpected, sPath) { var sActualType = QUnit.objectType(oActual), sExpectedType = QUnit.objectType(oExpected), sName; if (sActualType !== sExpectedType) { throw new Error(sPath + ": actual type " + sActualType + " does not match expected type " + sExpectedType); } if (sActualType === "array") { if (oActual.length < oExpected.length) { throw new Error(sPath + ": array length: " + oActual.length + " < " + oExpected.length); } } if (sActualType === "array" || sActualType === "object") { for (sName in oExpected) { deeplyContains(oActual[sName], oExpected[sName], sPath === "/" ? sPath + sName : sPath + "/" + sName); } } else if (oActual !== oExpected) { throw new Error(sPath + ": actual value " + oActual + " does not match expected value " + oExpected); } } /** * Pushes a QUnit test which succeeds if and only if a call to {@link deeplyContains} succeeds * as indicated via <code>bExpectSuccess</code>. * * @param {object} oActual * the actual value to be tested * @param {object} oExpected * the expected value which needs to be contained structurally (as a subset) within the * actual value * @param {string} sMessage * message text * @param {boolean} bExpectSuccess * whether {@link deeplyContains} is expected to succeed */ function pushDeeplyContains(oActual, oExpected, sMessage, bExpectSuccess) { try { deeplyContains(oActual, oExpected, "/"); QUnit.push(bExpectSuccess, oActual, oExpected, sMessage); } catch (ex) { QUnit.push(!bExpectSuccess, oActual, oExpected, (sMessage || "") + " failed because of " + ex.message); } } /** * @classdesc * A collection of functions that support QUnit testing. * * @namespace sap.ui.test.TestUtils * @public * @since 1.27.1 */ return /** @lends sap.ui.test.TestUtils */ { /** * Companion to <code>QUnit.deepEqual</code> which only tests for the existence of expected * properties, not the absence of others. * * <b>BEWARE:</b> We assume both values to be JS object literals, basically! * * @param {object} oActual * the actual value to be tested * @param {object} oExpected * the expected value which needs to be contained structurally (as a subset) within the * actual value * @param {string} [sMessage] * message text */ deepContains : function (oActual, oExpected, sMessage) { pushDeeplyContains(oActual, oExpected, sMessage, true); }, /** * Companion to <code>QUnit.notDeepEqual</code> and {@link #deepContains}. * * @param {object} oActual * the actual value to be tested * @param {object} oExpected * the expected value which needs to be NOT contained structurally (as a subset) within * the actual value * @param {string} [sMessage] * message text */ notDeepContains : function (oActual, oExpected, sMessage) { pushDeeplyContains(oActual, oExpected, sMessage, false); }, /** * Activates a sinon fakeserver in the given sandbox. The fake server responds only to * those GET requests given in the fixture. It is automatically restored when the sandbox * is restored. * * The function uses <a href="http://sinonjs.org/docs/">Sinon.js</a> and expects that it * has been loaded. * * @param {object} oSandbox * a Sinon sandbox as created using <code>sinon.sandbox.create()</code> * @param {string} sBase * The base path for <code>source</code> values in the fixture. The path must be relative * to the <code>test</code> folder of the <code>sap.ui.core</code> project, typically it * should start with "sap". It must not end with '/'. * Example: <code>"sap/ui/core/qunit/model"</code> * @param {map} mFixture * The fixture. Each key represents a URL to respond to. The value is an object that may * have the following properties: * <ul> * <li>{number} <code>code</code>: The response code (<code>200</code> if not given) * <li>{map} <code>headers</code>: A list of headers to set in the response * <li>{string} <code>message</code>: The response message * <li>{string} <code>source</code>: The path of a file relative to <code>sBase</code> to * be used for the response message. It will be read synchronously in advance. In this * case the header <code>Content-Type</code> is determined from the source name's * extension. * </ul> */ useFakeServer : function (oSandbox, sBase, mFixture) { var oHeaders, sMessage, sPath, oResponse, fnRestore, oResult, oServer, sUrl, mUrls = {}; function contentType(sName) { if (/\.xml$/.test(sName)) { return "application/xml"; } if (/\.json$/.test(sName)) { return "application/json"; } return "application/x-octet-stream"; } sBase = "/" + window.location.pathname.split("/")[1] + "/test-resources/" + sBase + "/"; for (sUrl in mFixture) { oResponse = mFixture[sUrl]; oHeaders = oResponse.headers || {}; if (oResponse.source) { sPath = sBase + oResponse.source; if (!mMessageForPath[sPath]) { oResult = jQuery.sap.sjax({ url: sPath, dataType: "text" }); if (!oResult.success) { throw new Error(sPath + ": resource not found"); } mMessageForPath[sPath] = oResult.data; } sMessage = mMessageForPath[sPath]; oHeaders["Content-Type"] = oHeaders["Content-Type"] || contentType(sPath); } else { sMessage = oResponse.message || ""; } mUrls[sUrl] = [oResponse.code || 200, oHeaders, sMessage]; } //TODO remove this workaround in IE9 for // https://github.com/cjohansen/Sinon.JS/commit/e8de34b5ec92b622ef76267a6dce12674fee6a73 sinon.xhr.supportsCORS = true; // set up the fake server oServer = oSandbox.useFakeServer(); for (sUrl in mUrls) { oServer.respondWith(sUrl, mUrls[sUrl]); } oServer.autoRespond = true; // set up a filter so that other requests (e.g. from jQuery.sap.require) go through sinon.FakeXMLHttpRequest.useFilters = true; sinon.FakeXMLHttpRequest.addFilter(function (sMethod, sUrl, bAsync) { return !(sUrl in mFixture); // do not fake if URL is unknown }); // wrap oServer.restore to also clear the filter fnRestore = oServer.restore; oServer.restore = function () { sinon.FakeXMLHttpRequest.filters = []; // no API to clear the filter fnRestore.apply(this, arguments); // call the original restore }; }, /** * If a test is wrapped by this function, you can test that locale-dependent texts are * created as expected, but avoid checking against the real message text. The function * ensures that every message retrieved using * <code>sap.ui.getCore().getLibraryResourceBundle().getText()</code> consists of the key * followed by all parameters referenced in the bundle's text in order of their numbers. * * The function uses <a href="http://sinonjs.org/docs/">Sinon.js</a> and expects that it * has been loaded. It creates a <a href="http://sinonjs.org/docs/#sandbox">Sinon * sandbox</a> which is available as <code>this</code> in the code under test. * * <b>Example</b>: * * In the message bundle a message looks like this: * <pre> * EnterNumber=Enter a number with scale {1} and precision {0}. * </pre> * This leads to the following results: * <table> * <tr><th>Call</th><th>Result</th></tr> * <tr><td><code>getText("EnterNumber", [10])</code></td> * <td>EnterNumber 10 {1}</td></tr> * <tr><td><code>getText("EnterNumber", [10, 3])</code></td> * <td>EnterNumber 10 3</td></tr> * <tr><td><code>getText("EnterNumber", [10, 3, "foo"])</code></td> * <td>EnterNumber 10 3</td></tr> * </table> * * <b>Usage</b>: * <pre> * test("parse error", function () { * sap.ui.test.TestUtils.withNormalizedMessages(function () { * var oType = new sap.ui.model.odata.type.Decimal({}, * {constraints: {precision: 10, scale: 3}); * * throws(function () { * oType.parseValue("-123.4567", "string"); * }, /EnterNumber 10 3/); * }); * }); * </pre> * @param {function} fnCodeUnderTest * the code under test * @public * @since 1.27.1 */ withNormalizedMessages: function (fnCodeUnderTest) { sinon.test(function () { var oCore = sap.ui.getCore(), fnGetBundle = oCore.getLibraryResourceBundle; this.stub(oCore, "getLibraryResourceBundle").returns({ getText: function (sKey, aArgs) { var sResult = sKey, sText = fnGetBundle.call(oCore).getText(sKey), i; for (i = 0; i < 10; i += 1) { if (sText.indexOf("{" + i + "}") >= 0) { sResult += " " + (i >= aArgs.length ? "{" + i + "}" : aArgs[i]); } } return sResult; } }); fnCodeUnderTest.apply(this); }).apply({}); // give Sinon a "this" to enrich } }; }, /* bExport= */ true);
'use strict'; angular.module('scHelper').factory('Rect', function() { function Rect() { var limit = this.limit = {}; this.width = 0; this.height = 0; this.x = 0; this.y = 0; this.left = function() { return this.x; }; this.right = function() { return this.x + this.width; }; this.top = function() { return this.y; }; this.bottom = function() { return this.y + this.height; }; this.limitTo = function(limit) { this.limit.left = limit.left; this.limit.top = limit.top; this.limit.right = limit.right; this.limit.bottom = limit.bottom; }; this.onResize = function() {}; this.resize = function(width, height) { width = Math.round(width); height = Math.round(height); if (width === this.width && height === this.height) { return; } this.width = width; this.height = height; if (this.onResize) { this.onResize(width, height) } }; this.onMove = function() {}; this.moveTo = function(x, y) { x = Math.round(x); y = Math.round(y); if (x === this.x && y === this.y) { return; } if (limit.left !== undefined) { x = Math.max(x, limit.left); } if (limit.top !== undefined) { y = Math.max(y, limit.top); } if (limit.right !== undefined) { x = Math.min(x, limit.right - this.width); } if (limit.bottom !== undefined) { y = Math.min(y, limit.bottom - this.height); } this.x = x; this.y = y; if (this.onMove) { this.onMove(x, y) } }; //* 根据当前长宽把矩形中心点定位于(x, y) this.centerTo = function(x, y) { this.moveTo(x - this.width / 2, y - this.height / 2) }; } return Rect; });
'use strict'; exports.__esModule = true; var _browser = require('../utils/browser.js'); var browser = _interopRequireWildcard(_browser); var _document = require('global/document'); var _document2 = _interopRequireDefault(_document); var _eventTarget = require('../event-target'); var _eventTarget2 = _interopRequireDefault(_eventTarget); var _textTrack = require('../tracks/text-track'); var _textTrack2 = _interopRequireDefault(_textTrack); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** * @file html-track-element.js */ /** * @typedef {HTMLTrackElement~ReadyState} * @enum {number} */ var NONE = 0; var LOADING = 1; var LOADED = 2; var ERROR = 3; /** * A single track represented in the DOM. * * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement} * @extends EventTarget */ var HTMLTrackElement = function (_EventTarget) { _inherits(HTMLTrackElement, _EventTarget); /** * Create an instance of this class. * * @param {Object} options={} * Object of option names and values * * @param {Tech} options.tech * A reference to the tech that owns this HTMLTrackElement. * * @param {TextTrack~Kind} [options.kind='subtitles'] * A valid text track kind. * * @param {TextTrack~Mode} [options.mode='disabled'] * A valid text track mode. * * @param {string} [options.id='vjs_track_' + Guid.newGUID()] * A unique id for this TextTrack. * * @param {string} [options.label=''] * The menu label for this track. * * @param {string} [options.language=''] * A valid two character language code. * * @param {string} [options.srclang=''] * A valid two character language code. An alternative, but deprioritized * vesion of `options.language` * * @param {string} [options.src] * A url to TextTrack cues. * * @param {boolean} [options.default] * If this track should default to on or off. */ function HTMLTrackElement() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _classCallCheck(this, HTMLTrackElement); var _this = _possibleConstructorReturn(this, _EventTarget.call(this)); var readyState = void 0; var trackElement = _this; // eslint-disable-line if (browser.IS_IE8) { trackElement = _document2['default'].createElement('custom'); for (var prop in HTMLTrackElement.prototype) { if (prop !== 'constructor') { trackElement[prop] = HTMLTrackElement.prototype[prop]; } } } var track = new _textTrack2['default'](options); trackElement.kind = track.kind; trackElement.src = track.src; trackElement.srclang = track.language; trackElement.label = track.label; trackElement['default'] = track['default']; /** * @member {HTMLTrackElement~ReadyState} readyState * The current ready state of the track element. */ Object.defineProperty(trackElement, 'readyState', { get: function get() { return readyState; } }); /** * @member {TextTrack} track * The underlying TextTrack object. */ Object.defineProperty(trackElement, 'track', { get: function get() { return track; } }); readyState = NONE; /** * @listens TextTrack#loadeddata * @fires HTMLTrackElement#load */ track.addEventListener('loadeddata', function () { readyState = LOADED; trackElement.trigger({ type: 'load', target: trackElement }); }); if (browser.IS_IE8) { var _ret; return _ret = trackElement, _possibleConstructorReturn(_this, _ret); } return _this; } return HTMLTrackElement; }(_eventTarget2['default']); HTMLTrackElement.prototype.allowedEvents_ = { load: 'load' }; HTMLTrackElement.NONE = NONE; HTMLTrackElement.LOADING = LOADING; HTMLTrackElement.LOADED = LOADED; HTMLTrackElement.ERROR = ERROR; exports['default'] = HTMLTrackElement;
/*! * froala_editor v4.0.8 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2021 Froala Labs */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) : typeof define === 'function' && define.amd ? define(['froala-editor'], factory) : (factory(global.FroalaEditor)); }(this, (function (FE) { 'use strict'; FE = FE && FE.hasOwnProperty('default') ? FE['default'] : FE; /** * Danish */ FE.LANGUAGE['da'] = { translation: { // Place holder 'Type something': 'Skriv her', // Basic formatting 'Bold': 'Fed', 'Italic': 'Kursiv', 'Underline': 'Understreget', 'Strikethrough': 'Gennemstreget', // Main buttons 'Insert': 'Indsæt', 'Delete': 'Slet', 'Cancel': 'Fortryd', 'OK': 'Ok', 'Back': 'Tilbage', 'Remove': 'Fjern', 'More': 'Mere', 'Update': 'Opdater', 'Style': 'Udseende', // Font 'Font Family': 'Skrifttype', 'Font Size': 'Skriftstørrelse', // Colors 'Colors': 'Farver', 'Background': 'Baggrund', 'Text': 'Tekst', 'HEX Color': 'Hex farve', // Paragraphs 'Paragraph Format': 'Typografi', 'Normal': 'Normal', 'Code': 'Kode', 'Heading 1': 'Overskrift 1', 'Heading 2': 'Overskrift 2', 'Heading 3': 'Overskrift 3', 'Heading 4': 'Overskrift 4', // Style 'Paragraph Style': 'Afsnit', 'Inline Style': 'På linje', // Alignment 'Align': 'Tilpasning', 'Align Left': 'Venstrejusteret', 'Align Center': 'Centreret', 'Align Right': 'Højrejusteret', 'Align Justify': 'Justeret', 'None': 'Ingen', // Lists 'Ordered List': 'Punktopstilling', 'Unordered List': 'Punktopstilling med tal', // Indent 'Decrease Indent': 'Formindsk indrykning', 'Increase Indent': 'Forøg indrykning', // Links 'Insert Link': 'Indsæt link', 'Open in new tab': 'Åbn i ny fane', 'Open Link': 'Åbn link', 'Edit Link': 'Rediger link', 'Unlink': 'Fjern link', 'Choose Link': 'Vælg link', // Images 'Insert Image': 'Indsæt billede', 'Upload Image': 'Upload billede', 'By URL': 'Fra URL', 'Browse': 'Gennemse', 'Drop image': 'Træk billedet herind', 'or click': 'eller klik', 'Manage Images': 'Administrer billeder', 'Loading': 'Henter', 'Deleting': 'Sletter', 'Tags': 'Tags', 'Are you sure? Image will be deleted.': 'Er du sikker? Billedet vil blive slettet.', 'Replace': 'Udskift', 'Uploading': 'Uploader', 'Loading image': 'Henter billede', 'Display': 'Layout', 'Inline': 'På linje', 'Break Text': 'Ombryd tekst', 'Alternative Text': 'Supplerende tekst', 'Change Size': 'Tilpas størrelse', 'Width': 'Bredde', 'Height': 'Højde', 'Something went wrong. Please try again.': 'Noget gik galt. Prøv igen.', 'Image Caption': 'Billedtekst', 'Advanced Edit': 'Avanceret redigering', // Video 'Insert Video': 'Indsæt video', 'Embedded Code': 'Indlejret kode', 'Paste in a video URL': 'Indsæt en video via URL', 'Drop video': 'Træk videoen herind', 'Your browser does not support HTML5 video.': 'Din browser understøtter ikke HTML5 video.', 'Upload Video': 'Upload video', // Tables 'Insert Table': 'Indsæt tabel', 'Table Header': 'Tabeloverskrift', 'Remove Table': 'Fjern tabel', 'Table Style': 'Tabeludseende', 'Horizontal Align': 'Vandret tilpasning', 'Row': 'Række', 'Insert row above': 'Indsæt række over', 'Insert row below': 'Indsæt række under', 'Delete row': 'Slet række', 'Column': 'Kolonne', 'Insert column before': 'Indsæt kolonne før', 'Insert column after': 'Indsæt kolonne efter', 'Delete column': 'Slet kolonne', 'Cell': 'Celle', 'Merge cells': 'Flet celler', 'Horizontal split': 'Vandret split', 'Vertical split': 'Lodret split', 'Cell Background': 'Cellebaggrund', 'Vertical Align': 'Lodret tilpasning', 'Top': 'Top', 'Middle': 'Midte', 'Bottom': 'Bund', 'Align Top': 'Tilpas i top', 'Align Middle': 'Tilpas i midte', 'Align Bottom': 'Tilpas i bund', 'Cell Style': 'Celleudseende', // Files 'Upload File': 'Upload fil', 'Drop file': 'Træk filen herind', // Emoticons 'Emoticons': 'Humørikoner', 'Grinning face': 'Grinende ansigt', 'Grinning face with smiling eyes': 'Grinende ansigt med smilende øjne', 'Face with tears of joy': 'Ansigt med glædestårer', 'Smiling face with open mouth': 'Smilende ansigt med åben mund', 'Smiling face with open mouth and smiling eyes': 'Smilende ansigt med åben mund og smilende øjne', 'Smiling face with open mouth and cold sweat': 'Smilende ansigt med åben mund og koldsved', 'Smiling face with open mouth and tightly-closed eyes': 'Smilende ansigt med åben mund og stramtlukkede øjne', 'Smiling face with halo': 'Smilende ansigt med glorie', 'Smiling face with horns': 'Smilende ansigt med horn', 'Winking face': 'Blinkede ansigt', 'Smiling face with smiling eyes': 'Smilende ansigt med smilende øjne', 'Face savoring delicious food': 'Ansigt der savler over lækker mad', 'Relieved face': 'Lettet ansigt', 'Smiling face with heart-shaped eyes': 'Smilende ansigt med hjerteformede øjne', 'Smiling face with sunglasses': 'Smilende ansigt med solbriller', 'Smirking face': 'Smilende ansigt', 'Neutral face': 'Neutralt ansigt', 'Expressionless face': 'Udtryksløst ansigt', 'Unamused face': 'Utilfredst ansigt', 'Face with cold sweat': 'Ansigt med koldsved', 'Pensive face': 'Eftertænksomt ansigt', 'Confused face': 'Forvirret ansigt', 'Confounded face': 'Irriteret ansigt', 'Kissing face': 'Kyssende ansigt', 'Face throwing a kiss': 'Ansigt der luftkysser', 'Kissing face with smiling eyes': 'Kyssende ansigt med smilende øjne', 'Kissing face with closed eyes': 'Kyssende ansigt med lukkede øjne', 'Face with stuck out tongue': 'Ansigt med tungen ud af munden', 'Face with stuck out tongue and winking eye': 'Ansigt med tungen ud af munden og blinkede øje', 'Face with stuck out tongue and tightly-closed eyes': 'Ansigt med tungen ud af munden og stramt lukkede øjne', 'Disappointed face': 'Skuffet ansigt', 'Worried face': 'Bekymret ansigt', 'Angry face': 'Vredt ansigt', 'Pouting face': 'Surmulende ansigt', 'Crying face': 'Grædende ansigt', 'Persevering face': 'Vedholdende ansigt', 'Face with look of triumph': 'Hoverende ansigt', 'Disappointed but relieved face': 'Skuffet, men lettet ansigt', 'Frowning face with open mouth': 'Ansigt med åben mund og rynket pande', 'Anguished face': 'Forpintt ansigt', 'Fearful face': 'Angst ansigt', 'Weary face': 'Udmattet ansigt', 'Sleepy face': 'Søvnigt ansigt', 'Tired face': 'Træt ansigt', 'Grimacing face': 'Ansigt der laver en grimasse', 'Loudly crying face': 'Vrælende ansigt', 'Face with open mouth': 'Ansigt med åben mund', 'Hushed face': 'Tyst ansigt', 'Face with open mouth and cold sweat': 'Ansigt med åben mund og koldsved', 'Face screaming in fear': 'Ansigt der skriger i frygt', 'Astonished face': 'Forbløffet ansigt', 'Flushed face': 'Blussende ansigt', 'Sleeping face': 'Sovende ansigt', 'Dizzy face': 'Svimmelt ansigt', 'Face without mouth': 'Ansigt uden mund', 'Face with medical mask': 'Ansigt med mundbind', // Line breaker 'Break': 'Linjeskift', // Math 'Subscript': 'Sænket skrift', 'Superscript': 'Hævet skrift', // Full screen 'Fullscreen': 'Fuldskærm', // Horizontal line 'Insert Horizontal Line': 'Indsæt vandret linie', // Clear formatting 'Clear Formatting': 'Fjern formatering', // Undo, redo 'Undo': 'Fortryd', 'Redo': 'Annuller fortryd', // Select all 'Select All': 'Vælg alt', // Code view 'Code View': 'Kodevisning', // Quote 'Quote': 'Citat', 'Increase': 'Forøg', 'Decrease': 'Formindsk', // Quick Insert 'Quick Insert': 'Kvik-indsæt', // Spcial Characters 'Special Characters': 'Specialtegn', 'Latin': 'Latin', 'Greek': 'Græsk', 'Cyrillic': 'Kyrillisk', 'Punctuation': 'Tegnsætning', 'Currency': 'Valuta', 'Arrows': 'Pile', 'Math': 'Matematik', 'Misc': 'Diverse', // Print. 'Print': 'Print', // Spell Checker. 'Spell Checker': 'Stavekontrol', // Help 'Help': 'Hjælp', 'Shortcuts': 'Genveje', 'Inline Editor': 'Indlejret editor', 'Show the editor': 'Vis editor', 'Common actions': 'Almindelige handlinger', 'Copy': 'Kopier', 'Cut': 'Klip', 'Paste': 'Sæt ind', 'Basic Formatting': 'Grundlæggende formatering', 'Increase quote level': 'Hæv citatniveau', 'Decrease quote level': 'Sænk citatniveau', 'Image / Video': 'Billede / video', 'Resize larger': 'Ændre til større', 'Resize smaller': 'Ændre til mindre', 'Table': 'Tabel', 'Select table cell': 'Vælg tabelcelle', 'Extend selection one cell': 'Udvid markeringen med én celle', 'Extend selection one row': 'Udvid markeringen med én række', 'Navigation': 'Navigation', 'Focus popup / toolbar': 'Fokuser popup / værktøjslinje', 'Return focus to previous position': 'Skift fokus tilbage til tidligere position', // Embed.ly 'Embed URL': 'Integrer URL', 'Paste in a URL to embed': 'Indsæt en URL for at indlejre', // Word Paste. 'The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?': 'Det indsatte indhold kommer fra et Microsoft Word-dokument. Vil du beholde formateringen eller fjerne den?', 'Keep': 'Behold', 'Clean': 'Fjern', 'Word Paste Detected': 'Indsættelse fra Word opdaget', // Character Counter 'Characters': 'tegn', // More Buttons 'More Text': 'Mere tekst', 'More Paragraph': 'Mere afsnit', 'More Rich': 'Mere rig', 'More Misc': 'Mere Diverse' }, direction: 'ltr' }; }))); //# sourceMappingURL=da.js.map
/* */ "format global"; /** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ (function(f, define){ define([], f); })(function(){ (function( window, undefined ) { var kendo = window.kendo || (window.kendo = { cultures: {} }); kendo.cultures["dv-MV"] = { name: "dv-MV", numberFormat: { pattern: ["-n"], decimals: 2, ",": ",", ".": ".", groupSize: [3], percent: { pattern: ["-n %","n %"], decimals: 2, ",": ",", ".": ".", groupSize: [3], symbol: "%" }, currency: { pattern: ["n $-","n $"], decimals: 2, ",": ",", ".": ".", groupSize: [3], symbol: "ރ." } }, calendars: { standard: { days: { names: ["އާދީއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"], namesAbbr: ["އާދީއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"], namesShort: ["އާ","ހޯ","އަ","ބު","ބު","ހު","ހޮ"] }, months: { names: ["ޖަނަވަރީ","ފެބްރުއަރީ","މާރޗް","އޭޕްރިލް","މެއި","ޖޫން","ޖުލައި","އޮގަސްޓް","ސެޕްޓެމްބަރ","އޮކްޓޯބަރ","ނޮވެމްބަރ","ޑިސެމްބަރ"], namesAbbr: ["ޖަނަވަރީ","ފެބްރުއަރީ","މާރޗް","އޭޕްރިލް","މެއި","ޖޫން","ޖުލައި","އޮގަސްޓް","ސެޕްޓެމްބަރ","އޮކްޓޯބަރ","ނޮވެމްބަރ","ޑިސެމްބަރ"] }, AM: ["މކ","މކ","މކ"], PM: ["މފ","މފ","މފ"], patterns: { d: "dd/MM/yy", D: "ddd, yyyy MMMM dd", F: "ddd, yyyy MMMM dd HH:mm:ss", g: "dd/MM/yy HH:mm", G: "dd/MM/yy HH:mm:ss", m: "MMMM dd", M: "MMMM dd", s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", t: "HH:mm", T: "HH:mm:ss", u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", y: "yyyy, MMMM", Y: "yyyy, MMMM" }, "/": "/", ":": ":", firstDay: 0 } } } })(this); return window.kendo; }, typeof define == 'function' && define.amd ? define : function(_, f){ f(); });
"use strict"; const fs = require('fs'); const path = require('path'); var watsonKeysPath = ""; if(window.ENV_ELECTRON){ const electron = require('electron'); const currentWindow = electron.remote.getCurrentWindow(); watsonKeysPath = path.join(currentWindow.dataPath , 'wttskeys.json'); } if(window.ENV_CEP){ // https://forums.adobe.com/thread/1956086 window.__adobe_cep__.evalScript(`$._PPP.get_user_data_path()`, function (adobeDataPath){ watsonKeysPath = path.join(adobeDataPath, 'wttskeys.json'); }) } var watsonKeys = {username: "", password: "", url:""}; // var watsonKeysSet = false; // load keys on startup window.document.addEventListener('DOMContentLoaded', function() { if (areWatsonAPIkeysSet()) { watsonKeys = getWatsonAPIkeys(); } }); //helper funciton to check/validate the keys function keysAreValid(tempKeys){ //if hte object has the required attributes if (tempKeys.username.length > 0 && tempKeys.password.length > 0) { return true; }else{ return false; } } // get function getWatsonAPIkeys(){ if (fs.existsSync(watsonKeysPath)) { watsonKeys = JSON.parse(fs.readFileSync(watsonKeysPath).toString()); return watsonKeys; }else{ return watsonKeys; } } //set function setWatsonAPIkeys(keys){ if(keysAreValid(keys)){ fs.writeFileSync(watsonKeysPath, JSON.stringify(keys)); }else{ // not setting keys. should add some error handling it, but // at the moment validation check is handled in view } } //check if they are set function areWatsonAPIkeysSet(){ // fs.writeFileSync(watsonKeysPath, JSON.stringify(tempKeys)); if (fs.existsSync(watsonKeysPath)) { // TODO: add some more validation that values actually make sense watsonKeys = JSON.parse(fs.readFileSync(watsonKeysPath).toString()); var result = keysAreValid(watsonKeys); // watsonKeysSet = true; return result; } else { // watsonKeysSet = false2; return false; } } module.exports = { areWatsonAPIkeysSet: areWatsonAPIkeysSet, setWatsonAPIkeys: setWatsonAPIkeys, getWatsonAPIkeys: getWatsonAPIkeys };
'use strict'; /** * @ngdoc service * @name $cacheFactory * * @description * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to * them. * * ```js * * var cache = $cacheFactory('cacheId'); * expect($cacheFactory.get('cacheId')).toBe(cache); * expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined(); * * cache.put("key", "value"); * cache.put("another key", "another value"); * * // We've specified no options on creation * expect(cache.info()).toEqual({id: 'cacheId', size: 2}); * * ``` * * * @param {string} cacheId Name or id of the newly created cache. * @param {object=} options Options object that specifies the cache behavior. Properties: * * - `{number=}` `capacity` — turns the cache into LRU cache. * * @returns {object} Newly created cache object with the following set of methods: * * - `{object}` `info()` — Returns id, size, and options of cache. * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns * it. * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss. * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache. * - `{void}` `removeAll()` — Removes all cached values. * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory. * * @example <example module="cacheExampleApp" name="cache-factory"> <file name="index.html"> <div ng-controller="CacheController"> <input ng-model="newCacheKey" placeholder="Key"> <input ng-model="newCacheValue" placeholder="Value"> <button ng-click="put(newCacheKey, newCacheValue)">Cache</button> <p ng-if="keys.length">Cached Values</p> <div ng-repeat="key in keys"> <span ng-bind="key"></span> <span>: </span> <b ng-bind="cache.get(key)"></b> </div> <p>Cache Info</p> <div ng-repeat="(key, value) in cache.info()"> <span ng-bind="key"></span> <span>: </span> <b ng-bind="value"></b> </div> </div> </file> <file name="script.js"> angular.module('cacheExampleApp', []). controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) { $scope.keys = []; $scope.cache = $cacheFactory('cacheId'); $scope.put = function(key, value) { if (angular.isUndefined($scope.cache.get(key))) { $scope.keys.push(key); } $scope.cache.put(key, angular.isUndefined(value) ? null : value); }; }]); </file> <file name="style.css"> p { margin: 10px 0 3px; } </file> </example> */ function $CacheFactoryProvider() { this.$get = function() { var caches = {}; function cacheFactory(cacheId, options) { if (cacheId in caches) { throw minErr('$cacheFactory')('iid', "CacheId '{0}' is already taken!", cacheId); } var size = 0, stats = extend({}, options, {id: cacheId}), data = createMap(), capacity = (options && options.capacity) || Number.MAX_VALUE, lruHash = createMap(), freshEnd = null, staleEnd = null; /** * @ngdoc type * @name $cacheFactory.Cache * * @description * A cache object used to store and retrieve data, primarily used by * {@link $http $http} and the {@link ng.directive:script script} directive to cache * templates and other data. * * ```js * angular.module('superCache') * .factory('superCache', ['$cacheFactory', function($cacheFactory) { * return $cacheFactory('super-cache'); * }]); * ``` * * Example test: * * ```js * it('should behave like a cache', inject(function(superCache) { * superCache.put('key', 'value'); * superCache.put('another key', 'another value'); * * expect(superCache.info()).toEqual({ * id: 'super-cache', * size: 2 * }); * * superCache.remove('another key'); * expect(superCache.get('another key')).toBeUndefined(); * * superCache.removeAll(); * expect(superCache.info()).toEqual({ * id: 'super-cache', * size: 0 * }); * })); * ``` */ return caches[cacheId] = { /** * @ngdoc method * @name $cacheFactory.Cache#put * @kind function * * @description * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be * retrieved later, and incrementing the size of the cache if the key was not already * present in the cache. If behaving like an LRU cache, it will also remove stale * entries from the set. * * It will not insert undefined values into the cache. * * @param {string} key the key under which the cached data is stored. * @param {*} value the value to store alongside the key. If it is undefined, the key * will not be stored. * @returns {*} the value stored. */ put: function(key, value) { if (isUndefined(value)) return; if (capacity < Number.MAX_VALUE) { var lruEntry = lruHash[key] || (lruHash[key] = {key: key}); refresh(lruEntry); } if (!(key in data)) size++; data[key] = value; if (size > capacity) { this.remove(staleEnd.key); } return value; }, /** * @ngdoc method * @name $cacheFactory.Cache#get * @kind function * * @description * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object. * * @param {string} key the key of the data to be retrieved * @returns {*} the value stored. */ get: function(key) { if (capacity < Number.MAX_VALUE) { var lruEntry = lruHash[key]; if (!lruEntry) return; refresh(lruEntry); } return data[key]; }, /** * @ngdoc method * @name $cacheFactory.Cache#remove * @kind function * * @description * Removes an entry from the {@link $cacheFactory.Cache Cache} object. * * @param {string} key the key of the entry to be removed */ remove: function(key) { if (capacity < Number.MAX_VALUE) { var lruEntry = lruHash[key]; if (!lruEntry) return; if (lruEntry === freshEnd) freshEnd = lruEntry.p; if (lruEntry === staleEnd) staleEnd = lruEntry.n; link(lruEntry.n,lruEntry.p); delete lruHash[key]; } if (!(key in data)) return; delete data[key]; size--; }, /** * @ngdoc method * @name $cacheFactory.Cache#removeAll * @kind function * * @description * Clears the cache object of any entries. */ removeAll: function() { data = createMap(); size = 0; lruHash = createMap(); freshEnd = staleEnd = null; }, /** * @ngdoc method * @name $cacheFactory.Cache#destroy * @kind function * * @description * Destroys the {@link $cacheFactory.Cache Cache} object entirely, * removing it from the {@link $cacheFactory $cacheFactory} set. */ destroy: function() { data = null; stats = null; lruHash = null; delete caches[cacheId]; }, /** * @ngdoc method * @name $cacheFactory.Cache#info * @kind function * * @description * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}. * * @returns {object} an object with the following properties: * <ul> * <li>**id**: the id of the cache instance</li> * <li>**size**: the number of entries kept in the cache instance</li> * <li>**...**: any additional properties from the options object when creating the * cache.</li> * </ul> */ info: function() { return extend({}, stats, {size: size}); } }; /** * makes the `entry` the freshEnd of the LRU linked list */ function refresh(entry) { if (entry !== freshEnd) { if (!staleEnd) { staleEnd = entry; } else if (staleEnd === entry) { staleEnd = entry.n; } link(entry.n, entry.p); link(entry, freshEnd); freshEnd = entry; freshEnd.n = null; } } /** * bidirectionally links two entries of the LRU linked list */ function link(nextEntry, prevEntry) { if (nextEntry !== prevEntry) { if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify } } } /** * @ngdoc method * @name $cacheFactory#info * * @description * Get information about all the caches that have been created * * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info` */ cacheFactory.info = function() { var info = {}; forEach(caches, function(cache, cacheId) { info[cacheId] = cache.info(); }); return info; }; /** * @ngdoc method * @name $cacheFactory#get * * @description * Get access to a cache object by the `cacheId` used when it was created. * * @param {string} cacheId Name or id of a cache to access. * @returns {object} Cache object identified by the cacheId or undefined if no such cache. */ cacheFactory.get = function(cacheId) { return caches[cacheId]; }; return cacheFactory; }; } /** * @ngdoc service * @name $templateCache * * @description * The first time a template is used, it is loaded in the template cache for quick retrieval. You * can load templates directly into the cache in a `script` tag, or by consuming the * `$templateCache` service directly. * * Adding via the `script` tag: * * ```html * <script type="text/ng-template" id="templateId.html"> * <p>This is the content of the template</p> * </script> * ``` * * **Note:** the `script` tag containing the template does not need to be included in the `head` of * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE, * element with ng-app attribute), otherwise the template will be ignored. * * Adding via the `$templateCache` service: * * ```js * var myApp = angular.module('myApp', []); * myApp.run(function($templateCache) { * $templateCache.put('templateId.html', 'This is the content of the template'); * }); * ``` * * To retrieve the template later, simply use it in your HTML: * ```html * <div ng-include=" 'templateId.html' "></div> * ``` * * or get it via Javascript: * ```js * $templateCache.get('templateId.html') * ``` * * See {@link ng.$cacheFactory $cacheFactory}. * */ function $TemplateCacheProvider() { this.$get = ['$cacheFactory', function($cacheFactory) { return $cacheFactory('templates'); }]; }
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/ReplaySubject'), require('@ngrx/effects')) : typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'rxjs/ReplaySubject', '@ngrx/effects'], factory) : (factory((global.ngrx = global.ngrx || {}, global.ngrx.effects = global.ngrx.effects || {}, global.ngrx.effects.testing = global.ngrx.effects.testing || {}),global.ng.core,global.Rx,global.ngrx.effects)); }(this, (function (exports,_angular_core,rxjs_ReplaySubject,_ngrx_effects) { 'use strict'; var __extends = (undefined && undefined.__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 EffectsRunner = (function (_super) { __extends(EffectsRunner, _super); function EffectsRunner() { _super.call(this); } EffectsRunner.prototype.queue = function (action) { this.next(action); }; EffectsRunner.decorators = [ { type: _angular_core.Injectable }, ]; /** @nocollapse */ EffectsRunner.ctorParameters = []; return EffectsRunner; }(rxjs_ReplaySubject.ReplaySubject)); function _createActions(runner) { return new _ngrx_effects.Actions(runner); } var EffectsTestingModule = (function () { function EffectsTestingModule() { } EffectsTestingModule.decorators = [ { type: _angular_core.NgModule, args: [{ providers: [ EffectsRunner, { provide: _ngrx_effects.Actions, deps: [EffectsRunner], useFactory: _createActions } ] },] }, ]; /** @nocollapse */ EffectsTestingModule.ctorParameters = []; return EffectsTestingModule; }()); exports.EffectsRunner = EffectsRunner; exports._createActions = _createActions; exports.EffectsTestingModule = EffectsTestingModule; Object.defineProperty(exports, '__esModule', { value: true }); })));
/** * Module Dependencies */ var rrep = /(\$(`|&|'|\d+))/g; var slice = [].slice; var noop = function(m) { return m[0]; } /** * Expose `tokens` */ module.exports = tokens; /** * Create a tokenizer * * @param {Regex} regex * @param {String|Function} rep * @return {Function} */ function tokens(regex, rep) { rep = rep || noop; rep = 'function' == typeof rep ? rep : compile(rep); return function(str) { var toks = []; str.replace(regex, function() { var args = slice.call(arguments); var tok = rep(args); tok && toks.push(tok); }); return toks; }; } /** * Compile the replacer * * @param {String} str * @return {String} */ function compile(str) { var expr = str.replace(rrep, function(m) { var out = '\' + ($['; out += '&' == m[1] ? 0 : m[1]; out += '] || \'\') + \''; return out; }) expr = '\'' + expr + '\''; return new Function('$', 'return ' + expr); }
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github.com/rafaelaznar/ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ 'use strict'; moduloTipousuario.controller('TipousuarioRemoveController', ['$scope', '$routeParams', '$location', 'serverService', 'tipousuarioService', function ($scope, $routeParams, $location, serverService, tipousuarioService) { $scope.fields = tipousuarioService.getFields(); $scope.obtitle = tipousuarioService.getObTitle(); $scope.icon = tipousuarioService.getIcon(); $scope.ob = tipousuarioService.getTitle(); $scope.title = "Borrado de " + $scope.obtitle; $scope.id = $routeParams.id; $scope.status = null; $scope.debugging = serverService.debugging(); serverService.promise_getOne($scope.ob, $scope.id).then(function (response) { if (response.status == 200) { if (response.data.status == 200) { $scope.status = null; $scope.bean = response.data.message; } else { $scope.status = "Error en la recepción de datos del servidor"; } } else { $scope.status = "Error en la recepción de datos del servidor"; } }).catch(function (data) { $scope.status = "Error en la recepción de datos del servidor"; }); $scope.remove = function () { serverService.promise_removeOne($scope.ob, $scope.id).then(function (response) { if (response.status == 200) { if (response.data.status == 200) { if (response.data.message == 1) { $scope.status = "El registro " + $scope.obtitle + " se ha eliminado."; } else { $scope.status = "Error en el borrado de datos del servidor"; } } else { $scope.status = "Error en la recepción de datos del servidor"; } } else { $scope.status = "Error en la recepción de datos del servidor"; } }).catch(function (data) { $scope.status = "Error en la recepción de datos del servidor"; }); } $scope.back = function () { window.history.back(); }; $scope.close = function () { $location.path('/home'); }; }]);
'use strict'; /** * @ngdoc function * @name flightNodeApp.controller:ForagingStep4Controller * @description * # ForagingStep4Controller * Controller for rookery foraging census form, step 4 (disturbances). */ angular.module('flightNodeApp') .controller('ForagingStep4Controller', ['$scope', 'authService', 'config', 'messenger', 'foragingSurveyProxy', '$filter', '$location', '$log', 'locationProxy', 'enumsProxy', '$route', '$uibModal', function($scope, authService, config, messenger, foragingSurveyProxy, $filter, $location, $log, locationProxy, enumsProxy, $route, $uibModal) { if (!(authService.isAuthorized())) { $log.warn('not authorized to access this path'); $location.path('/'); return; } // // Helper functions // var modelKey = 'foragingSurveyModel'; var locationNameKey = 'locationName'; var saveToSession = function(data, key) { key = key || modelKey; sessionStorage.setItem(key, JSON.stringify(data)); }; var pullFromSession = function(key) { key = key || modelKey; var stored = sessionStorage.getItem(key); stored = stored === 'undefined' ? undefined : stored; if (stored) { return JSON.parse(stored || {}); } return null; }; var prepareDisturbances = function() { // The view binds to an altered form of disturbances - create that from enums $scope.disturbances = _.keyBy($scope.enums.disturbanceTypeInfo, function(dt) { return dt.id; }); // Load previously recorded disturbance data from the survey // into scope _.each($scope.foragingSurvey.disturbances, function(disturbed) { var item = $scope.disturbances[disturbed.disturbanceTypeId]; item.quantity = disturbed.quantity; item.durationMinutes = disturbed.durationMinutes; item.behavior = disturbed.behavior; }); }; var loadEnums = function(next) { // TODO: look into caching this cleanly if (!$scope.enums) { enumsProxy.getForForagingSurvey($scope, function(data) { $scope.enums = data; next(); }); } }; var syncDisturbancesIntoForagingSurvey = function() { // Because the disturbance form is bound to $scope.disturbances, instead // of $scope.foragingSurvey.disturbances, we now need to replace the disturbances // array with the contents from the $scope $scope.foragingSurvey.disturbances = _($scope.disturbances) .omitBy(function(item) { // ignore entries with no data return item.quantity === undefined; }) .values() .map(function(item) { return { disturbanceId: item.disturbanceId, disturbanceTypeId: item.id, quantity: item.quantity, durationMinutes: item.durationMinutes, behavior: item.behavior }; }) .value(); }; var saveAndMoveTo = function(nextPath) { $scope.loading = true; syncDisturbancesIntoForagingSurvey(); foragingSurveyProxy.update($scope, $scope.foragingSurvey, function(data) { saveToSession(data); $scope.loading = false; $location.path(nextPath + data.surveyIdentifier); }); }; $scope.validateDisturbance = function(disturbanceId) { var disturbance = $scope.disturbances[disturbanceId]; disturbance.invalid = ( // when any column is set (disturbance.quantity > 0 || disturbance.durationMinutes > 0 || disturbance.behavior) && // then all of them are needed !(disturbance.quantity > 0 && disturbance.durationMinutes > 0 && disturbance.behavior) ); $scope.invalid = _.some($scope.disturbances, 'invalid'); }; // // Configure button actions // $scope.next = function() { // need to pass the survey identifier on to step 3 saveAndMoveTo('/foraging/step5/'); }; $scope.save = function() { $scope.loading = true; foragingSurveyProxy.update($scope, $scope.foragingSurvey, function() { $scope.loading = false; }); }; $scope.back = function() { // need to pass the survey identifier on to step 1 saveAndMoveTo('/foraging/step3/'); }; $scope.reset = function() { var modal = $uibModal.open({ animation: true, templateUrl: '/app/views/confirmResetForm.html', backdrop: true, size: 'sm' }); modal.result.then(function success() { saveToSession(null); // Reload the first page $location.path('/foraging/step1'); }, function dismissed() { // do nothing }); }; // // Main program flow // $scope.loading = true; // TODO // These two items must be in this order for now $scope.foragingSurvey = pullFromSession(); $scope.locationName = pullFromSession(locationNameKey).locationName; loadEnums(prepareDisturbances); $scope.step = 4; // Configure shared 'bottomBar' components $scope.canGoBack = true; $scope.canSaveForLater = true; $scope.loading = false; } ]);
require('../../styles/main.css'); require('../../styles/btn/btn'); require('../../styles/dropdown-menu/dropdown-menu'); require('../../styles/input-group/input-group'); require('../../styles/modal/modal'); require('../../styles/navbar/navbar'); require('../../styles/tab-content/tab-content'); require('../../styles/tabs/tabs'); require('../../styles/avatar/avatar'); require('./head_arrow.png'); const formValidation = require('../../../libs/clientScripts/form-validation'); const search = document.getElementById('search'); search.addEventListener('submit', function (event) { event.preventDefault(); const searchString = document.getElementById('searchString').value; window.location.href = '/quests?type=string&string=' + searchString; }); function success(form, $formMessage, $btnPrimary, res) { if (form.action.endsWith('/signin') || form.action.endsWith('/signup')) { if (window.location.href.includes('/password-reset') || window.location.href.includes('/register-verification')) { window.location.href = '/'; } else { window.location.reload(); } } else if (form.action.endsWith('/password-reset')) { $formMessage.html(res).addClass('success').removeClass('error'); $(form).remove(); } $btnPrimary.prop('disabled', false); } $('.tabs__link').on('click', function () { $('.auth-form-message').html(''); }); formValidation(success, '.auth-form');
import Session from 'flarum/Session'; /** * The `preload` initializer creates the application session and preloads it * with data that has been set on the application's `preload` property. It also * preloads any data on the application's `preload` property into the store. * Finally, it sets the application's `forum` instance to the one that was * preloaded. * * `app.preload.session` should be the same as the response from the /api/token * endpoint: it should contain `token` and `userId` keys. * * @param {App} app */ export default function preload(app) { app.store.pushPayload({data: app.preload.data}); app.forum = app.store.getById('forums', 1); app.session = new Session( app.store.getById('users', app.preload.session.userId), app.preload.session.csrfToken ); }
'use strict'; var Reflux = require('reflux'), Im = require('immutable'), { isInBag } = require('../utils/StoreUtils'), PostsActions = require('../../actions/posts/PostsActions'); var PostStore = Reflux.createStore({ listenables: PostsActions, init: function() { this._posts = Im.Map({}); }, get: function(id) { return this._posts.get(id); }, contains(id, fields) { return isInBag(this._posts, id, fields); }, /* Listen PostsActions ===============================*/ setPosts: function(postsArray) { var postsLength = postsArray.length; for (var i = 0; i < postsLength; i++) { this._posts = this._posts.set(postsArray[i].id,postsArray[i]); } }, set: function(post) { this._posts = this._posts.set(post.id, post); }, onGetPostsCompleted: function(response) { this.setPosts(response.body.results); PostsActions.thenGetPostsCompleted(response); }, onGetUserPostsCompleted: function(response) { this.setPosts(response.body.results); PostsActions.thenGetUserPostsCompleted(response); }, onGetPostCompleted: function(response) { this.set(response.body); this.trigger(); }, onSubmitPostCompleted: function(response) { this.set(response.body); PostsActions.nextSubmitPostCompleted(response); }, onUpvotePostCompleted: function(response) { this.set(response.body); this.trigger(); }, onCancelUpvotePostCompleted: function(response) { this.set(response.body); this.trigger(); }, onDeletePostCompleted: function(response) { var urlArray = response.req.url.split('/'); var postId = Number(urlArray[urlArray.length - 2]); var deletedPost = { isDeleted: true, id: postId }; this.set(deletedPost); this.trigger(); }, clearPostStore: function(callback) { this.init(); if(typeof callback !== 'undefined') { callback(); } } }); module.exports = PostStore;
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'link', { init : function( editor ) { // Add the link and unlink buttons. editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) ); editor.addCommand( 'anchor', new CKEDITOR.dialogCommand( 'anchor' ) ); editor.addCommand( 'unlink', new CKEDITOR.unlinkCommand() ); editor.addCommand( 'removeAnchor', new CKEDITOR.removeAnchorCommand() ); editor.ui.addButton( 'Link', { label : editor.lang.link.toolbar, command : 'link' } ); editor.ui.addButton( 'Unlink', { label : editor.lang.unlink, command : 'unlink' } ); editor.ui.addButton( 'Anchor', { label : editor.lang.anchor.toolbar, command : 'anchor' } ); CKEDITOR.dialog.add( 'link', this.path + 'dialogs/link.js' ); CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' ); // Add the CSS styles for anchor placeholders. var side = ( editor.lang.dir == 'rtl' ? 'right' : 'left' ); var basicCss = 'background:url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ') no-repeat ' + side + ' center;' + 'border:1px dotted #00f;'; editor.addCss( 'a.cke_anchor,a.cke_anchor_empty' + // IE6 breaks with the following selectors. ( ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) ? '' : ',a[name],a[data-cke-saved-name]' ) + '{' + basicCss + 'padding-' + side + ':18px;' + // Show the arrow cursor for the anchor image (FF at least). 'cursor:auto;' + '}' + ( CKEDITOR.env.ie ? ( 'a.cke_anchor_empty' + '{' + // Make empty anchor selectable on IE. 'display:inline-block;' + '}' ) : '' ) + 'img.cke_anchor' + '{' + basicCss + 'width:16px;' + 'min-height:15px;' + // The default line-height on IE. 'height:1.15em;' + // Opera works better with "middle" (even if not perfect) 'vertical-align:' + ( CKEDITOR.env.opera ? 'middle' : 'text-bottom' ) + ';' + '}'); // Register selection change handler for the unlink button. editor.on( 'selectionChange', function( evt ) { if ( editor.readOnly ) return; /* * Despite our initial hope, document.queryCommandEnabled() does not work * for this in Firefox. So we must detect the state by element paths. */ var command = editor.getCommand( 'unlink' ), element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true ); if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) && element.getChildCount() ) command.setState( CKEDITOR.TRISTATE_OFF ); else command.setState( CKEDITOR.TRISTATE_DISABLED ); } ); editor.on( 'doubleclick', function( evt ) { var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element; if ( !element.isReadOnly() ) { if ( element.is( 'a' ) ) { evt.data.dialog = ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ? 'anchor' : 'link'; editor.getSelection().selectElement( element ); } else if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) ) evt.data.dialog = 'anchor'; } }); // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { editor.addMenuItems( { anchor : { label : editor.lang.anchor.menu, command : 'anchor', group : 'anchor', order : 1 }, removeAnchor : { label : editor.lang.anchor.remove, command : 'removeAnchor', group : 'anchor', order : 5 }, link : { label : editor.lang.link.menu, command : 'link', group : 'link', order : 1 }, unlink : { label : editor.lang.unlink, command : 'unlink', group : 'link', order : 5 } }); } // If the "contextmenu" plugin is loaded, register the listeners. if ( editor.contextMenu ) { editor.contextMenu.addListener( function( element, selection ) { if ( !element || element.isReadOnly() ) return null; var anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ); if ( !anchor && !( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) ) return null; var menu = {}; if ( anchor.getAttribute( 'href' ) && anchor.getChildCount() ) menu = { link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF }; if ( anchor && anchor.hasAttribute( 'name' ) ) menu.anchor = menu.removeAnchor = CKEDITOR.TRISTATE_OFF; return menu; }); } }, afterInit : function( editor ) { // Register a filter to displaying placeholders after mode change. var dataProcessor = editor.dataProcessor, dataFilter = dataProcessor && dataProcessor.dataFilter, htmlFilter = dataProcessor && dataProcessor.htmlFilter, pathFilters = editor._.elementsPath && editor._.elementsPath.filters; if ( dataFilter ) { dataFilter.addRules( { elements : { a : function( element ) { var attributes = element.attributes; if ( !attributes.name ) return null; var isEmpty = !element.children.length; if ( CKEDITOR.plugins.link.synAnchorSelector ) { // IE needs a specific class name to be applied // to the anchors, for appropriate styling. var ieClass = isEmpty ? 'cke_anchor_empty' : 'cke_anchor'; var cls = attributes[ 'class' ]; if ( attributes.name && ( !cls || cls.indexOf( ieClass ) < 0 ) ) attributes[ 'class' ] = ( cls || '' ) + ' ' + ieClass; if ( isEmpty && CKEDITOR.plugins.link.emptyAnchorFix ) { attributes.contenteditable = 'false'; attributes[ 'data-cke-editable' ] = 1; } } else if ( CKEDITOR.plugins.link.fakeAnchor && isEmpty ) return editor.createFakeParserElement( element, 'cke_anchor', 'anchor' ); return null; } } }); } if ( CKEDITOR.plugins.link.emptyAnchorFix && htmlFilter ) { htmlFilter.addRules( { elements : { a : function( element ) { delete element.attributes.contenteditable; } } }); } if ( pathFilters ) { pathFilters.push( function( element, name ) { if ( name == 'a' ) { if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) || ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ) { return 'anchor'; } } }); } }, requires : [ 'fakeobjects' ] } ); CKEDITOR.plugins.link = { /** * Get the surrounding link element of current selection. * @param editor * @example CKEDITOR.plugins.link.getSelectedLink( editor ); * @since 3.2.1 * The following selection will all return the link element. * <pre> * <a href="#">li^nk</a> * <a href="#">[link]</a> * text[<a href="#">link]</a> * <a href="#">li[nk</a>] * [<b><a href="#">li]nk</a></b>] * [<a href="#"><b>li]nk</b></a> * </pre> */ getSelectedLink : function( editor ) { try { var selection = editor.getSelection(); if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT ) { var selectedElement = selection.getSelectedElement(); if ( selectedElement.is( 'a' ) ) return selectedElement; } var range = selection.getRanges( true )[ 0 ]; range.shrink( CKEDITOR.SHRINK_TEXT ); var root = range.getCommonAncestor(); return root.getAscendant( 'a', true ); } catch( e ) { return null; } }, // Opera and WebKit don't make it possible to select empty anchors. Fake // elements must be used for them. fakeAnchor : CKEDITOR.env.opera || CKEDITOR.env.webkit, // For browsers that don't support CSS3 a[name]:empty(), note IE9 is included because of #7783. synAnchorSelector : CKEDITOR.env.ie, // For browsers that have editing issue with empty anchor. emptyAnchorFix : CKEDITOR.env.ie && CKEDITOR.env.version < 8, tryRestoreFakeAnchor : function( editor, element ) { if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'anchor' ) { var link = editor.restoreRealElement( element ); if ( link.data( 'cke-saved-name' ) ) return link; } } }; CKEDITOR.unlinkCommand = function(){}; CKEDITOR.unlinkCommand.prototype = { /** @ignore */ exec : function( editor ) { /* * execCommand( 'unlink', ... ) in Firefox leaves behind <span> tags at where * the <a> was, so again we have to remove the link ourselves. (See #430) * * TODO: Use the style system when it's complete. Let's use execCommand() * as a stopgap solution for now. */ var selection = editor.getSelection(), bookmarks = selection.createBookmarks(), ranges = selection.getRanges(), rangeRoot, element; for ( var i = 0 ; i < ranges.length ; i++ ) { rangeRoot = ranges[i].getCommonAncestor( true ); element = rangeRoot.getAscendant( 'a', true ); if ( !element ) continue; ranges[i].selectNodeContents( element ); } selection.selectRanges( ranges ); editor.document.$.execCommand( 'unlink', false, null ); selection.selectBookmarks( bookmarks ); }, startDisabled : true }; CKEDITOR.removeAnchorCommand = function(){}; CKEDITOR.removeAnchorCommand.prototype = { /** @ignore */ exec : function( editor ) { var sel = editor.getSelection(), bms = sel.createBookmarks(), anchor; if ( sel && ( anchor = sel.getSelectedElement() ) && ( CKEDITOR.plugins.link.fakeAnchor && !anchor.getChildCount() ? CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, anchor ) : anchor.is( 'a' ) ) ) anchor.remove( 1 ); else { if ( ( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) ) { if ( anchor.hasAttribute( 'href' ) ) { anchor.removeAttributes( { name : 1, 'data-cke-saved-name' : 1 } ); anchor.removeClass( 'cke_anchor' ); } else anchor.remove( 1 ); } } sel.selectBookmarks( bms ); } }; CKEDITOR.tools.extend( CKEDITOR.config, { linkShowAdvancedTab : true, linkShowTargetTab : true } );
let mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel application. By default, we are compiling the Sass | file for the application as well as bundling up all the JS files. | */ mix.js('resources/assets/js/app.js', 'public/js');
(function (view) { "use strict"; view.URL = view.URL || view.webkitURL; if (view.Blob && view.URL) { try { new Blob; return; } catch (e) {} } // Internally we use a BlobBuilder implementation to base Blob off of // in order to support older browsers that only have BlobBuilder var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) { var get_class = function(object) { return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1]; } , FakeBlobBuilder = function BlobBuilder() { this.data = []; } , FakeBlob = function Blob(data, type, encoding) { this.data = data; this.size = data.length; this.type = type; this.encoding = encoding; } , FBB_proto = FakeBlobBuilder.prototype , FB_proto = FakeBlob.prototype , FileReaderSync = view.FileReaderSync , FileException = function(type) { this.code = this[this.name = type]; } , file_ex_codes = ( "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR " + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR" ).split(" ") , file_ex_code = file_ex_codes.length , real_URL = view.URL || view.webkitURL || view , real_create_object_URL = real_URL.createObjectURL , real_revoke_object_URL = real_URL.revokeObjectURL , URL = real_URL , btoa = view.btoa , atob = view.atob , ArrayBuffer = view.ArrayBuffer , Uint8Array = view.Uint8Array , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/ ; FakeBlob.fake = FB_proto.fake = true; while (file_ex_code--) { FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1; } // Polyfill URL if (!real_URL.createObjectURL) { URL = view.URL = function(uri) { var uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a") , uri_origin ; uri_info.href = uri; if (!("origin" in uri_info)) { if (uri_info.protocol.toLowerCase() === "data:") { uri_info.origin = null; } else { uri_origin = uri.match(origin); uri_info.origin = uri_origin && uri_origin[1]; } } return uri_info; }; } URL.createObjectURL = function(blob) { var type = blob.type , data_URI_header ; if (type === null) { type = "application/octet-stream"; } if (blob instanceof FakeBlob) { data_URI_header = "data:" + type; if (blob.encoding === "base64") { return data_URI_header + ";base64," + blob.data; } else if (blob.encoding === "URI") { return data_URI_header + "," + decodeURIComponent(blob.data); } if (btoa) { return data_URI_header + ";base64," + btoa(blob.data); } else { return data_URI_header + "," + encodeURIComponent(blob.data); } } else if (real_create_object_URL) { return real_create_object_URL.call(real_URL, blob); } }; URL.revokeObjectURL = function(object_URL) { if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) { real_revoke_object_URL.call(real_URL, object_URL); } }; FBB_proto.append = function(data/*, endings*/) { var bb = this.data; // decode data to a binary string if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) { var str = "" , buf = new Uint8Array(data) , i = 0 , buf_len = buf.length ; for (; i < buf_len; i++) { str += String.fromCharCode(buf[i]); } bb.push(str); } else if (get_class(data) === "Blob" || get_class(data) === "File") { if (FileReaderSync) { var fr = new FileReaderSync; bb.push(fr.readAsBinaryString(data)); } else { // async FileReader won't work as BlobBuilder is sync throw new FileException("NOT_READABLE_ERR"); } } else if (data instanceof FakeBlob) { if (data.encoding === "base64" && atob) { bb.push(atob(data.data)); } else if (data.encoding === "URI") { bb.push(decodeURIComponent(data.data)); } else if (data.encoding === "raw") { bb.push(data.data); } } else { if (typeof data !== "string") { data += ""; // convert unsupported types to strings } // decode UTF-16 to binary string bb.push(unescape(encodeURIComponent(data))); } }; FBB_proto.getBlob = function(type) { if (!arguments.length) { type = null; } return new FakeBlob(this.data.join(""), type, "raw"); }; FBB_proto.toString = function() { return "[object BlobBuilder]"; }; FB_proto.slice = function(start, end, type) { var args = arguments.length; if (args < 3) { type = null; } return new FakeBlob( this.data.slice(start, args > 1 ? end : this.data.length) , type , this.encoding ); }; FB_proto.toString = function() { return "[object Blob]"; }; FB_proto.close = function() { this.size = 0; delete this.data; }; return FakeBlobBuilder; }(view)); view.Blob = function(blobParts, options) { var type = options ? (options.type || "") : ""; var builder = new BlobBuilder(); if (blobParts) { for (var i = 0, len = blobParts.length; i < len; i++) { builder.append(blobParts[i]); } } return builder.getBlob(type); }; }(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this));
var test = require("tape") var webpack = require("webpack") var assign = require("object-assign") var conf = require("./utils/conf") test("eslint-loader can return warning", function(t) { webpack(assign({}, conf, { entry: "./test/fixtures/warn.js", } ), function(err, stats) { if (err) { throw err } // console.log(stats.compilation.warnings) t.ok( stats.hasWarnings(), "a file that contains eslint warning should return warning" ) // console.log(stats.compilation.errors) t.notOk( stats.hasErrors(), "a bad file should return no error if it contains only warning by default" ) t.end() }) })
window.onload = function() { // References to elements on the page var serverField = document.getElementById('server'); var channelField = document.getElementById('channel'); var idField = document.getElementById('idNum'); var results = document.getElementById('results'); var details = document.getElementById('details'); var subscriptionList = document.getElementById('subscriptions'); var connectBtn = document.getElementById('connect'); var disconnectBtn = document.getElementById('disconnect'); var subscribeBtn = document.getElementById('subscribe'); var pauseBtn = document.getElementById('pause'); var resumeBtn = document.getElementById('resume'); var unsubscribeBtn = document.getElementById('unsubscribe'); var clearBtn = document.getElementById('clear'); var filterBtn = document.getElementById('filter'); var showAllBtn = document.getElementById('showAll'); var socket; var selectedEvent; var selectedId; var filter = 'none'; var events = [[], [], []]; // [eventDisplay, id, selected (bool)] var eventDetails = []; var eventDetailsFiltered = []; serverField.value = document.location.protocol.replace("http", "ws") + "//" + document.location.host + "/" + document.location.pathname.split("/")[1] + "/socket"; function addNewSubscription(channel, id) { var newChannel = document.createElement('option'); subscriptionList.appendChild(newChannel); newChannel.appendChild(document.createTextNode('id: ' + id + ', channel: ' + channel)); eventDetailsFiltered.push([]); } function addEventDetails(event) { eventDetails.unshift('<div><pre>' + JSON.stringify(event, null, ' ') + '</pre></div>'); eventDetailsFiltered[event.id].unshift('<div><pre>' + JSON.stringify(event, null, ' ') + '</pre></div>'); } function displayEvent(eventDisplay, event) { var scrollVal = results.scrollTop; var newEvent = document.createElement('option'); results.insertBefore(newEvent, results.childNodes[0]); newEvent.appendChild(document.createTextNode(eventDisplay)); var attId = document.createAttribute('eventId'); attId.value = event.id; newEvent.setAttributeNode(attId); if (scrollVal == 0) { results.scrollTop = 0; } else { results.scrollTop = scrollVal + 17; // Height of an option elt added } } function getEventDisplay(event) { if (event.type == 'error') { // Error return 'Error'; } else if (event.type == 'connection') { // New subscription subscriptionList.children[event.id].className = 'open'; return 'Successful subscription'; } else if (event.value.type.name == 'VTable') { // Table return 'Table'; } else if (event.type == 'value') { // New value return event.value.value; } } function newMessage(event) { var eventDisplay = getEventDisplay(event); addEventDetails(event); events[0].unshift(eventDisplay); events[1].unshift(event.id); events[2].unshift(false); if (event.id == filter || filter == 'none') { displayEvent(eventDisplay, event); } } function displayDetails(index) { if (filter == 'none') { details.innerHTML = eventDetails[index]; } else { details.innerHTML = eventDetailsFiltered[filter][index]; } } connectBtn.onclick = function() { socket = new Client(serverField.value); idField.value = 0; } disconnectBtn.onclick = function() { socket.close(); } subscribeBtn.onclick = function() { var channel = channelField.value; var id = idField.value; socket.subscribeChannel(channel, newMessage); addNewSubscription(channel, id); subscriptionList.selectedIndex = id; selectedId = id; id++; idField.value = id; } pauseBtn.onclick = function() { var channel = socket.getChannel(selectedId); channel.pause(); subscriptionList.children[selectedId].className = 'closed'; } resumeBtn.onclick = function() { var channel = socket.getChannel(selectedId); channel.resume(); if (channel.isConnected()) { subscriptionList.children[selectedId].className = 'open'; } } unsubscribeBtn.onclick = function() { var channel = socket.getChannel(selectedId); channel.unsubscribe(); subscriptionList.children[selectedId].className = 'unsubscribed'; } results.onchange = function() { selectedEvent = results.selectedIndex; for (var i = 0; i < events[2].length; i++) { // Sets all events to be unselected - this can probabl be more efficient events[2][i] = false; } events[2][selectedEvent] = true; displayDetails(selectedEvent); } subscriptionList.onchange = function() { selectedId = subscriptionList.selectedIndex; } clearBtn.onclick = function() { clearDisplay(); } function clearDisplay() { var node = document.getElementById('results'); while (node.firstChild) { node.removeChild(node.firstChild); } } function resetEventDisplay() { clearDisplay(); for (var i = 0; i < events[0].length; i++) { var newEvent = document.createElement('option'); results.appendChild(newEvent); newEvent.selected = events[2][i]; newEvent.appendChild(document.createTextNode(events[0][i])); var attId = document.createAttribute('eventId'); attId.value = events[1][i]; newEvent.setAttributeNode(attId); } } filterBtn.onclick = function() { if (selectedId != filter) { filter = selectedId; resetEventDisplay(); var children = results.children; for (var i = 0; i < children.length; i++) { if (children[i].getAttribute('eventId') != filter) { results.removeChild(children[i]); i--; } } } } showAllBtn.onclick = function() { if (filter != 'none') { resetEventDisplay(); } filter = 'none'; } }
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Incident number": 62440120, "Date": "9\/1\/2006", "Time": "03:38 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4534 N TEUTONIA AV", "Location": [ 43.099646, -87.944083 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.944083190086218, 43.099645787408335 ] } }, { "type": "Feature", "properties": { "Incident number": 62430167, "Date": "9\/1\/2006", "Time": "01:45 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Address": "6410 W CUSTER AV", "Location": [ 43.116291, -87.991197 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.991196914041467, 43.116291466271669 ] } }, { "type": "Feature", "properties": { "Incident number": 62440048, "Date": "9\/1\/2006", "Time": "06:51 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5238 N LOVERS LANE RD #1", "Location": [ 43.112889, -88.055571 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.055570569765763, 43.112888559560574 ] } }, { "type": "Feature", "properties": { "Incident number": 62440188, "Date": "9\/1\/2006", "Time": "11:05 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3229 W MADISON ST", "Location": [ 43.017719, -87.954840 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.954840167638054, 43.017718506780682 ] } }, { "type": "Feature", "properties": { "Incident number": 62440028, "Date": "9\/1\/2006", "Time": "07:30 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7800 W BROWN DEER RD", "Location": [ 43.177989, -88.007443 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.007443302527548, 43.177989491631863 ] } }, { "type": "Feature", "properties": { "Incident number": 62440157, "Date": "9\/1\/2006", "Time": "06:47 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6037 W SHERIDAN AV", "Location": [ 43.118173, -87.988066 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.98806647156988, 43.118173465164574 ] } }, { "type": "Feature", "properties": { "Incident number": 62440159, "Date": "9\/1\/2006", "Time": "06:51 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7225 N 86TH ST #201", "Location": [ 43.149451, -88.018046 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.018046231519108, 43.14945077295296 ] } }, { "type": "Feature", "properties": { "Incident number": 62440106, "Date": "9\/1\/2006", "Time": "02:14 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "713 W BRUCE ST", "Location": [ 43.025289, -87.920253 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.920253, 43.025288502885552 ] } }, { "type": "Feature", "properties": { "Incident number": 62440019, "Date": "9\/1\/2006", "Time": "02:12 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2469 N 38TH ST", "Location": [ 43.063956, -87.961090 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.961089580933489, 43.063956167638047 ] } }, { "type": "Feature", "properties": { "Incident number": 62440054, "Date": "9\/1\/2006", "Time": "07:46 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1335 N 37TH PL #A", "Location": [ 43.047900, -87.960401 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.960401080933494, 43.047900167638062 ] } }, { "type": "Feature", "properties": { "Incident number": 62720014, "Date": "9\/29\/2006", "Time": "01:20 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3514 W SILVER SPRING DR", "Location": [ 43.119251, -87.956851 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.956850562582986, 43.119250500432699 ] } }, { "type": "Feature", "properties": { "Incident number": 62720255, "Date": "9\/29\/2006", "Time": "11:10 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4126 N TEUTONIA AV", "Location": [ 43.092068, -87.940039 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 8, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.940039340787408, 43.092067842605054 ] } }, { "type": "Feature", "properties": { "Incident number": 62680067, "Date": "9\/25\/2006", "Time": "08:56 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Address": "6925 N DARIEN ST", "Location": [ 43.143557, -87.958129 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.958128822667078, 43.143557407698204 ] } }, { "type": "Feature", "properties": { "Incident number": 62680080, "Date": "9\/25\/2006", "Time": "08:18 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5312 N 36TH ST", "Location": [ 43.114094, -87.957543 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.957543386317923, 43.11409441326677 ] } }, { "type": "Feature", "properties": { "Incident number": 62680240, "Date": "9\/25\/2006", "Time": "06:05 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5051 N 48TH ST", "Location": [ 43.109461, -87.972649 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.972648650325809, 43.109460502914203 ] } }, { "type": "Feature", "properties": { "Incident number": 62690009, "Date": "9\/25\/2006", "Time": "11:18 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5128 N 23RD ST", "Location": [ 43.110516, -87.940257 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.940257439883354, 43.11051582499384 ] } }, { "type": "Feature", "properties": { "Incident number": 62670136, "Date": "9\/24\/2006", "Time": "01:34 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Address": "1901 W VILLARD AV", "Location": [ 43.111553, -87.934770 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.934770251457095, 43.11155250678069 ] } }, { "type": "Feature", "properties": { "Incident number": 62660061, "Date": "9\/23\/2006", "Time": "07:45 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2041 W ATKINSON AVE", "Location": [ 43.090944, -87.937907 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.937907110767881, 43.090943513157299 ] } }, { "type": "Feature", "properties": { "Incident number": 62640128, "Date": "9\/21\/2006", "Time": "04:10 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4245 N 27TH ST #7", "Location": [ 43.093611, -87.946909 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.946909106468709, 43.093610863725566 ] } }, { "type": "Feature", "properties": { "Incident number": 62630124, "Date": "9\/20\/2006", "Time": "03:29 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1030 W FIEBRANTZ AV #2", "Location": [ 43.091369, -87.924394 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.924394183189946, 43.091369024438706 ] } }, { "type": "Feature", "properties": { "Incident number": 62630216, "Date": "9\/20\/2006", "Time": "10:42 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4950 N 21ST ST", "Location": [ 43.107624, -87.937985 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.937985328034102, 43.107624303912537 ] } }, { "type": "Feature", "properties": { "Incident number": 62620024, "Date": "9\/19\/2006", "Time": "03:05 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3632 W GOOD HOPE RD", "Location": [ 43.148646, -87.957453 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.957452690835993, 43.148645515436336 ] } }, { "type": "Feature", "properties": { "Incident number": 62620165, "Date": "9\/19\/2006", "Time": "03:30 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4320 W EGGERT PL #3", "Location": [ 43.110873, -87.967143 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.96714308381901, 43.110872515436355 ] } }, { "type": "Feature", "properties": { "Incident number": 62620245, "Date": "9\/19\/2006", "Time": "08:03 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3101 W GLENDALE AV", "Location": [ 43.100782, -87.951951 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.951951167638057, 43.100781539529258 ] } }, { "type": "Feature", "properties": { "Incident number": 62610169, "Date": "9\/18\/2006", "Time": "03:17 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4200 W HAMPTON AV", "Location": [ 43.104719, -87.965099 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.965098923589267, 43.104718877742826 ] } }, { "type": "Feature", "properties": { "Incident number": 62590016, "Date": "9\/16\/2006", "Time": "01:22 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4952 N 25TH ST", "Location": [ 43.107741, -87.944014 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.94401435356933, 43.107741136274456 ] } }, { "type": "Feature", "properties": { "Incident number": 62590076, "Date": "9\/16\/2006", "Time": "10:18 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2316 W RUBY AV", "Location": [ 43.098901, -87.941102 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.941101919095161, 43.09890052596792 ] } }, { "type": "Feature", "properties": { "Incident number": 62590220, "Date": "9\/16\/2006", "Time": "11:06 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4861 N 52ND ST", "Location": [ 43.105943, -87.977701 ], "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": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.977701380546833, 43.105943378296502 ] } }, { "type": "Feature", "properties": { "Incident number": 62580047, "Date": "9\/15\/2006", "Time": "07:25 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4857 N 49TH ST", "Location": [ 43.105941, -87.973941 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.973941124790571, 43.105940612268455 ] } }, { "type": "Feature", "properties": { "Incident number": 62580119, "Date": "9\/15\/2006", "Time": "01:57 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4972-A W FAIRMOUNT AV", "Location": [ 43.108375, -87.974740 ], "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": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.974739993574261, 43.108374613297464 ] } }, { "type": "Feature", "properties": { "Incident number": 62580197, "Date": "9\/15\/2006", "Time": "09:07 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5713 N 38TH ST", "Location": [ 43.121790, -87.959868 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.959868132003962, 43.121790031363624 ] } }, { "type": "Feature", "properties": { "Incident number": 62580199, "Date": "9\/15\/2006", "Time": "08:56 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DISORDERLY CONDUCT", "Address": "5862 N 38TH ST", "Location": [ 43.124282, -87.959732 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.959732419066512, 43.124282077990635 ] } }, { "type": "Feature", "properties": { "Incident number": 62580210, "Date": "9\/15\/2006", "Time": "09:32 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2701 W FAIRMOUNT AV", "Location": [ 43.108097, -87.946763 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.946762667638055, 43.108097481245458 ] } }, { "type": "Feature", "properties": { "Incident number": 62570015, "Date": "9\/14\/2006", "Time": "01:57 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7373 N TEUTONIA AV #9", "Location": [ 43.151928, -87.957885 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.957884841421617, 43.151927647786991 ] } }, { "type": "Feature", "properties": { "Incident number": 62570080, "Date": "9\/14\/2006", "Time": "10:21 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5314 N TEUTONIA AV #4", "Location": [ 43.114097, -87.950105 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.950104557274202, 43.114096959201326 ] } }, { "type": "Feature", "properties": { "Incident number": 62570093, "Date": "9\/14\/2006", "Time": "11:43 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4841-A N 39TH ST", "Location": [ 43.105519, -87.961560 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.961560132003953, 43.105518838190314 ] } }, { "type": "Feature", "properties": { "Incident number": 62560091, "Date": "9\/13\/2006", "Time": "11:38 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4625 N 24TH ST", "Location": [ 43.101208, -87.941730 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.941729628108789, 43.10120767055227 ] } }, { "type": "Feature", "properties": { "Incident number": 62550109, "Date": "9\/12\/2006", "Time": "12:54 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1432 W CAPITOL DR", "Location": [ 43.089524, -87.929351 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.929351329447726, 43.089524453257383 ] } }, { "type": "Feature", "properties": { "Incident number": 62550186, "Date": "9\/12\/2006", "Time": "06:55 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7477 N TEUTONIA AV #7", "Location": [ 43.153682, -87.958478 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 1, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.95847772095884, 43.153682480148923 ] } }, { "type": "Feature", "properties": { "Incident number": 62550209, "Date": "9\/12\/2006", "Time": "09:47 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4970 N 47TH ST #UPPER", "Location": [ 43.108002, -87.971356 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.97135635356932, 43.108001664723865 ] } }, { "type": "Feature", "properties": { "Incident number": 62530160, "Date": "9\/10\/2006", "Time": "05:39 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "SHOPLIFTING", "Address": "3519 W VILLARD AV", "Location": [ 43.111868, -87.957131 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 2, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.95713091909515, 43.111868481245459 ] } }, { "type": "Feature", "properties": { "Incident number": 62530180, "Date": "9\/10\/2006", "Time": "07:27 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Address": "5826 N 42ND ST", "Location": [ 43.123581, -87.964625 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.964624893531266, 43.123581052455428 ] } }, { "type": "Feature", "properties": { "Incident number": 62520088, "Date": "9\/9\/2006", "Time": "10:55 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5471 N 35TH ST", "Location": [ 43.117110, -87.956312 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.956311617577228, 43.117110282820704 ] } }, { "type": "Feature", "properties": { "Incident number": 62520182, "Date": "9\/9\/2006", "Time": "06:31 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3505 W KILEY AV #APT1", "Location": [ 43.144856, -87.955840 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.955839593482864, 43.144856441467972 ] } }, { "type": "Feature", "properties": { "Incident number": 62510006, "Date": "9\/8\/2006", "Time": "12:25 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5366 N 38TH ST", "Location": [ 43.115138, -87.959946 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.959945889636117, 43.115138245628721 ] } }, { "type": "Feature", "properties": { "Incident number": 62500203, "Date": "9\/7\/2006", "Time": "10:06 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4723 N 30TH ST", "Location": [ 43.103033, -87.950430 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.950429661434313, 43.103033193173296 ] } }, { "type": "Feature", "properties": { "Incident number": 62500204, "Date": "9\/7\/2006", "Time": "10:46 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2029 W COLFAX PL", "Location": [ 43.109025, -87.938361 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.938360539246446, 43.109025318703701 ] } }, { "type": "Feature", "properties": { "Incident number": 62490057, "Date": "9\/6\/2006", "Time": "09:41 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6046 N 40TH ST", "Location": [ 43.127648, -87.962396 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.962396356887552, 43.127648413266776 ] } }, { "type": "Feature", "properties": { "Incident number": 62490209, "Date": "9\/6\/2006", "Time": "09:51 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4857 N 19TH ST #A", "Location": [ 43.105600, -87.934108 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.934108099255354, 43.105600257285488 ] } }, { "type": "Feature", "properties": { "Incident number": 62490222, "Date": "9\/6\/2006", "Time": "11:19 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4135 N 10TH ST #A", "Location": [ 43.092276, -87.923297 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.92329670609945, 43.09227603497029 ] } }, { "type": "Feature", "properties": { "Incident number": 62470011, "Date": "9\/4\/2006", "Time": "02:03 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2901 W ATKINSON AV #APT7", "Location": [ 43.098831, -87.949486 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.949486376507494, 43.098830697183992 ] } }, { "type": "Feature", "properties": { "Incident number": 62470094, "Date": "9\/4\/2006", "Time": "12:51 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4522 W HAMPTON AV", "Location": [ 43.104724, -87.969780 ], "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": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.969779832361951, 43.104723525967906 ] } }, { "type": "Feature", "properties": { "Incident number": 62480003, "Date": "9\/4\/2006", "Time": "11:46 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6985 N DARIEN ST", "Location": [ 43.144479, -87.959272 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.959272031940515, 43.14447939855161 ] } }, { "type": "Feature", "properties": { "Incident number": 62450098, "Date": "9\/2\/2006", "Time": "11:26 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4578 N 29TH ST", "Location": [ 43.100666, -87.949086 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.949085853569329, 43.100665994171635 ] } }, { "type": "Feature", "properties": { "Incident number": 62450208, "Date": "9\/2\/2006", "Time": "10:31 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4657 N 19TH PL", "Location": [ 43.101795, -87.935390 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 0, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.935389975474422, 43.101795248398687 ] } }, { "type": "Feature", "properties": { "Incident number": 62440120, "Date": "9\/1\/2006", "Time": "03:38 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4534 N TEUTONIA AV", "Location": [ 43.099646, -87.944083 ], "e_clusterK2": 0, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.944083190086218, 43.099645787408335 ] } }, { "type": "Feature", "properties": { "Incident number": 62730044, "Date": "9\/30\/2006", "Time": "06:36 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5759 N 91ST ST", "Location": [ 43.122646, -88.025908 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.025907580933477, 43.122646005828393 ] } }, { "type": "Feature", "properties": { "Incident number": 62730068, "Date": "9\/30\/2006", "Time": "09:39 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8924 W CARMEN AV #2", "Location": [ 43.123480, -88.023960 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.023959748542893, 43.123480478792594 ] } }, { "type": "Feature", "properties": { "Incident number": 62740001, "Date": "9\/30\/2006", "Time": "11:39 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5773 N 94TH ST #3", "Location": [ 43.122916, -88.029498 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.029498124790578, 43.122915586733228 ] } }, { "type": "Feature", "properties": { "Incident number": 62700012, "Date": "9\/27\/2006", "Time": "01:22 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5720 N 94TH ST #UPR", "Location": [ 43.121744, -88.029446 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.029446356887547, 43.121744413266782 ] } }, { "type": "Feature", "properties": { "Incident number": 62680253, "Date": "9\/25\/2006", "Time": "06:57 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "9404 W SILVER SPRING DR", "Location": [ 43.119607, -88.029784 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.029784393559936, 43.119607493219327 ] } }, { "type": "Feature", "properties": { "Incident number": 62670038, "Date": "9\/24\/2006", "Time": "05:05 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7620 W HAMPTON AV", "Location": [ 43.105146, -88.007012 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.007011966570417, 43.105146265992886 ] } }, { "type": "Feature", "properties": { "Incident number": 62660032, "Date": "9\/23\/2006", "Time": "04:30 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "8812 W APPLETON AV", "Location": [ 43.109839, -88.022036 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.022035677763469, 43.109838678142992 ] } }, { "type": "Feature", "properties": { "Incident number": 62660054, "Date": "9\/23\/2006", "Time": "07:45 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5668-A N 95TH ST", "Location": [ 43.121087, -88.030785 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.030784867996047, 43.121086742714539 ] } }, { "type": "Feature", "properties": { "Incident number": 62670007, "Date": "9\/23\/2006", "Time": "11:24 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4155 N 48TH ST", "Location": [ 43.092901, -87.973472 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.97347163200395, 43.092900586733244 ] } }, { "type": "Feature", "properties": { "Incident number": 62640092, "Date": "9\/21\/2006", "Time": "12:52 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7046 W MEDFORD AV", "Location": [ 43.107514, -88.000302 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -88.000301830400034, 43.107513651970606 ] } }, { "type": "Feature", "properties": { "Incident number": 62620155, "Date": "9\/19\/2006", "Time": "02:59 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "9314 W SHERIDAN AV #1", "Location": [ 43.118513, -88.028972 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.028972193173288, 43.118513453257378 ] } }, { "type": "Feature", "properties": { "Incident number": 62600191, "Date": "9\/17\/2006", "Time": "07:08 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6701 W FLORIST AV #LOWER", "Location": [ 43.126706, -87.994863 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.994863167638059, 43.126705521207391 ] } }, { "type": "Feature", "properties": { "Incident number": 62580122, "Date": "9\/15\/2006", "Time": "12:01 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5662 N 97TH ST", "Location": [ 43.120763, -88.033246 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.033246389636119, 43.120763381903174 ] } }, { "type": "Feature", "properties": { "Incident number": 62560068, "Date": "9\/13\/2006", "Time": "09:45 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7550 W PERKINS PL", "Location": [ 43.090904, -88.006651 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.006651488314574, 43.090904479369534 ] } }, { "type": "Feature", "properties": { "Incident number": 62550008, "Date": "9\/12\/2006", "Time": "12:35 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6449 W FOND DU LAC AV", "Location": [ 43.102462, -87.992400 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.992399972893978, 43.102461794100037 ] } }, { "type": "Feature", "properties": { "Incident number": 62550022, "Date": "9\/12\/2006", "Time": "04:47 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5410 N 67TH ST", "Location": [ 43.116485, -87.994387 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 5, "e_clusterK8": 2, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.994386728409367, 43.116484534686172 ] } }, { "type": "Feature", "properties": { "Incident number": 62550188, "Date": "9\/12\/2006", "Time": "07:05 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "9341 W SILVER SPRING DR #3", "Location": [ 43.119407, -88.029532 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.02953232514858, 43.119406521207402 ] } }, { "type": "Feature", "properties": { "Incident number": 62530157, "Date": "9\/10\/2006", "Time": "04:56 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Offense 3": "TRESPASSING", "Offense 4": "ALL OTHER OFFENSES", "Address": "8718 W CARMEN AV #APT2", "Location": [ 43.123479, -88.020937 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.020936717871777, 43.123479001413642 ] } }, { "type": "Feature", "properties": { "Incident number": 62530162, "Date": "9\/10\/2006", "Time": "05:42 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8415 W MILL RD #2", "Location": [ 43.133881, -88.016233 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.0162335, 43.133880532315899 ] } }, { "type": "Feature", "properties": { "Incident number": 62530221, "Date": "9\/10\/2006", "Time": "10:07 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7000 W FLORIST AV", "Location": [ 43.126796, -87.998440 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.998440080904842, 43.126796482110827 ] } }, { "type": "Feature", "properties": { "Incident number": 62520030, "Date": "9\/9\/2006", "Time": "03:15 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6372 N 89TH ST #6", "Location": [ 43.133589, -88.022926 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.022925835247463, 43.133589 ] } }, { "type": "Feature", "properties": { "Incident number": 62520071, "Date": "9\/9\/2006", "Time": "08:31 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4903 N 85TH ST #4", "Location": [ 43.106898, -88.016865 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.016864762680399, 43.106898348001181 ] } }, { "type": "Feature", "properties": { "Incident number": 62510337, "Date": "9\/8\/2006", "Time": "02:22 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5725 N 93RD ST", "Location": [ 43.121925, -88.028309 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.028308632003956, 43.121925450458775 ] } }, { "type": "Feature", "properties": { "Incident number": 62470007, "Date": "9\/4\/2006", "Time": "12:57 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5908 N 68TH ST", "Location": [ 43.125182, -87.995874 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.995873867996039, 43.125182413266771 ] } }, { "type": "Feature", "properties": { "Incident number": 62460004, "Date": "9\/3\/2006", "Time": "12:36 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8215 W MEDFORD AV #1", "Location": [ 43.117636, -88.014222 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.014222, 43.117635532315902 ] } }, { "type": "Feature", "properties": { "Incident number": 62430167, "Date": "9\/1\/2006", "Time": "01:45 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Address": "6410 W CUSTER AV", "Location": [ 43.116291, -87.991197 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.991196914041467, 43.116291466271669 ] } }, { "type": "Feature", "properties": { "Incident number": 62730113, "Date": "9\/30\/2006", "Time": "01:59 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "523 E CLARKE ST", "Location": [ 43.065646, -87.904620 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.904620419095153, 43.065645517889173 ] } }, { "type": "Feature", "properties": { "Incident number": 62720177, "Date": "9\/29\/2006", "Time": "04:13 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2069 N CAMBRIDGE AV #108", "Location": [ 43.058620, -87.892001 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.89200055987034, 43.058619838190317 ] } }, { "type": "Feature", "properties": { "Incident number": 62660087, "Date": "9\/23\/2006", "Time": "09:15 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2214 N FARWELL AV", "Location": [ 43.059492, -87.886017 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.886017467511209, 43.059492210369967 ] } }, { "type": "Feature", "properties": { "Incident number": 62640193, "Date": "9\/21\/2006", "Time": "09:09 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1040 E KNAPP ST #313", "Location": [ 43.046940, -87.898361 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.898361390645746, 43.046939522649708 ] } }, { "type": "Feature", "properties": { "Incident number": 62600183, "Date": "9\/17\/2006", "Time": "05:46 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1300 E KANE PL #1504", "Location": [ 43.056107, -87.894701 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.89470148167814, 43.056106519331465 ] } }, { "type": "Feature", "properties": { "Incident number": 62600212, "Date": "9\/17\/2006", "Time": "09:15 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3436 N DOUSMAN ST", "Location": [ 43.080867, -87.896294 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.896294382999685, 43.080867 ] } }, { "type": "Feature", "properties": { "Incident number": 62580071, "Date": "9\/15\/2006", "Time": "09:03 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2539 N BREMEN ST", "Location": [ 43.064694, -87.900458 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.900457639217322, 43.064694167638073 ] } }, { "type": "Feature", "properties": { "Incident number": 62570226, "Date": "9\/14\/2006", "Time": "07:24 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2444 N WEIL ST", "Location": [ 43.062836, -87.899154 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.899153652148911, 43.062835933454181 ] } }, { "type": "Feature", "properties": { "Incident number": 62530150, "Date": "9\/10\/2006", "Time": "04:10 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2424N DOUSMAN ST", "Location": [ 43.062473, -87.896602 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.896601952943797, 43.062472501184729 ] } }, { "type": "Feature", "properties": { "Incident number": 62530170, "Date": "9\/10\/2006", "Time": "05:58 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "2546 N PIERCE ST #LOWER", "Location": [ 43.064919, -87.902826 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.90282587520943, 43.064919 ] } }, { "type": "Feature", "properties": { "Incident number": 62520028, "Date": "9\/9\/2006", "Time": "02:38 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2965 N STOWELL AV", "Location": [ 43.072363, -87.879280 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.879279580933499, 43.072363005828379 ] } }, { "type": "Feature", "properties": { "Incident number": 62510021, "Date": "9\/7\/2006", "Time": "02:19 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1655 N FARWELL AV", "Location": [ 43.052381, -87.892911 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.892910946193624, 43.052381174250279 ] } }, { "type": "Feature", "properties": { "Incident number": 62490153, "Date": "9\/6\/2006", "Time": "05:35 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2571-A N DOUSMAN ST", "Location": [ 43.065314, -87.896661 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.896660613682059, 43.065314444630395 ] } }, { "type": "Feature", "properties": { "Incident number": 62480008, "Date": "9\/5\/2006", "Time": "01:21 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "721 E CENTER ST", "Location": [ 43.067438, -87.902113 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.902112776992325, 43.067438488458812 ] } }, { "type": "Feature", "properties": { "Incident number": 62470023, "Date": "9\/4\/2006", "Time": "04:24 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1327 E KANE PL", "Location": [ 43.056056, -87.894040 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.894040164723876, 43.056056474032097 ] } }, { "type": "Feature", "properties": { "Incident number": 62470074, "Date": "9\/4\/2006", "Time": "11:45 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2958 N BOOTH ST", "Location": [ 43.072379, -87.903953 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.903952886317924, 43.072379413266795 ] } }, { "type": "Feature", "properties": { "Incident number": 62450018, "Date": "9\/2\/2006", "Time": "02:00 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1614 E LOCUST ST", "Location": [ 43.071050, -87.889851 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.88985058090482, 43.071050482110827 ] } }, { "type": "Feature", "properties": { "Incident number": 62720219, "Date": "9\/29\/2006", "Time": "07:29 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2919 W WISCONSIN AV", "Location": [ 43.038636, -87.950970 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.950970335276125, 43.038635502885533 ] } }, { "type": "Feature", "properties": { "Incident number": 62710080, "Date": "9\/28\/2006", "Time": "10:40 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1925 W JUNEAU AV #614", "Location": [ 43.045828, -87.936881 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.936880971550579, 43.045828492353934 ] } }, { "type": "Feature", "properties": { "Incident number": 62710159, "Date": "9\/28\/2006", "Time": "05:06 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2414 W HIGHLAND AV", "Location": [ 43.044445, -87.943392 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.943392, 43.044445486005962 ] } }, { "type": "Feature", "properties": { "Incident number": 62690207, "Date": "9\/26\/2006", "Time": "04:50 PM", "Police District": 1.0, "Offense 1": "SIMPLE ASSAULT", "Address": "231 W WISCONSIN AV #1101", "Location": [ 43.038702, -87.913542 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 3, "g_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.913542351893497, 43.038701711361043 ] } }, { "type": "Feature", "properties": { "Incident number": 62690001, "Date": "9\/25\/2006", "Time": "10:54 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2820 W WELLS ST #301", "Location": [ 43.040305, -87.949750 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.949750416180947, 43.040305464365886 ] } }, { "type": "Feature", "properties": { "Incident number": 62670033, "Date": "9\/24\/2006", "Time": "02:57 AM", "Police District": 1.0, "Offense 1": "SIMPLE ASSAULT", "Address": "625 N MILWAUKEE ST", "Location": [ 43.037981, -87.906428 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 0, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 3, "g_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.906427724017291, 43.037981235356952 ] } }, { "type": "Feature", "properties": { "Incident number": 62670091, "Date": "9\/24\/2006", "Time": "11:54 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2434 W WELLS ST #208", "Location": [ 43.040315, -87.943712 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.943712002914182, 43.040315460470737 ] } }, { "type": "Feature", "properties": { "Incident number": 62670132, "Date": "9\/24\/2006", "Time": "02:54 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3022 W MC KINLEY BL", "Location": [ 43.047356, -87.951883 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.95188308090485, 43.047356467684104 ] } }, { "type": "Feature", "properties": { "Incident number": 62660004, "Date": "9\/23\/2006", "Time": "10:00 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1333 N 32ND ST #LWR", "Location": [ 43.048088, -87.953668 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.953668084828649, 43.048088025535243 ] } }, { "type": "Feature", "properties": { "Incident number": 62670001, "Date": "9\/23\/2006", "Time": "11:38 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "546 N 25TH ST", "Location": [ 43.037053, -87.944956 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.944956044242133, 43.037053277135847 ] } }, { "type": "Feature", "properties": { "Incident number": 62670001, "Date": "9\/23\/2006", "Time": "11:38 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "546 N 25TH ST", "Location": [ 43.037053, -87.944956 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.944956044242133, 43.037053277135847 ] } }, { "type": "Feature", "properties": { "Incident number": 62650230, "Date": "9\/22\/2006", "Time": "10:40 PM", "Police District": 1.0, "Offense 1": "SIMPLE ASSAULT", "Address": "332 N MILWAUKEE ST", "Location": [ 43.034672, -87.906004 ], "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": 2, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 7, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.906003812626437, 43.03467190674592 ] } }, { "type": "Feature", "properties": { "Incident number": 62660002, "Date": "9\/22\/2006", "Time": "11:44 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1552 N 35TH ST", "Location": [ 43.051176, -87.957592 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.957592389636119, 43.051175748542903 ] } }, { "type": "Feature", "properties": { "Incident number": 62630005, "Date": "9\/20\/2006", "Time": "12:01 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "605 N 30TH ST #5", "Location": [ 43.037677, -87.951568 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.95156760257359, 43.037676922009361 ] } }, { "type": "Feature", "properties": { "Incident number": 62630206, "Date": "9\/20\/2006", "Time": "09:52 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1118 N 26TH ST #L", "Location": [ 43.044931, -87.946245 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.946245400744644, 43.04493050291417 ] } }, { "type": "Feature", "properties": { "Incident number": 62620204, "Date": "9\/19\/2006", "Time": "04:51 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2841 W HIGHLAND BL #106", "Location": [ 43.044452, -87.950243 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.950242948929542, 43.044451535634117 ] } }, { "type": "Feature", "properties": { "Incident number": 62620230, "Date": "9\/19\/2006", "Time": "07:53 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2919 W WISCONSIN AV", "Location": [ 43.038636, -87.950970 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.950970335276125, 43.038635502885533 ] } }, { "type": "Feature", "properties": { "Incident number": 62590018, "Date": "9\/16\/2006", "Time": "02:22 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1431 N 33RD ST", "Location": [ 43.049438, -87.955342 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.955341588146879, 43.049438360811365 ] } }, { "type": "Feature", "properties": { "Incident number": 62580020, "Date": "9\/15\/2006", "Time": "12:57 AM", "Police District": 1.0, "Offense 1": "SIMPLE ASSAULT", "Address": "756 N MILWAUKEE ST", "Location": [ 43.040167, -87.906568 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 0, "g_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.906568016772894, 43.040167317331168 ] } }, { "type": "Feature", "properties": { "Incident number": 62580092, "Date": "9\/15\/2006", "Time": "11:07 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1901 W CHERRY ST", "Location": [ 43.050360, -87.936740 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.936739916585012, 43.050359589214715 ] } }, { "type": "Feature", "properties": { "Incident number": 62550148, "Date": "9\/12\/2006", "Time": "04:44 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1925 W JUNEAU AV #614", "Location": [ 43.045828, -87.936881 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.936880971550579, 43.045828492353934 ] } }, { "type": "Feature", "properties": { "Incident number": 62510357, "Date": "9\/8\/2006", "Time": "04:49 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "618 N 30TH ST", "Location": [ 43.037954, -87.951482 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.95148246956002, 43.037954077990655 ] } }, { "type": "Feature", "properties": { "Incident number": 62510362, "Date": "9\/8\/2006", "Time": "05:38 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1407 N 22ND ST", "Location": [ 43.048732, -87.940307 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.940307481832249, 43.048731846943149 ] } }, { "type": "Feature", "properties": { "Incident number": 62500163, "Date": "9\/7\/2006", "Time": "06:02 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1222 N 21ST ST", "Location": [ 43.046298, -87.938976 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.93897588963614, 43.04629822009349 ] } }, { "type": "Feature", "properties": { "Incident number": 62490179, "Date": "9\/6\/2006", "Time": "07:55 PM", "Police District": 1.0, "Offense 1": "SIMPLE ASSAULT", "Address": "700 W STATE ST", "Location": [ 43.043007, -87.920883 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.920882800998328, 43.043007494373157 ] } }, { "type": "Feature", "properties": { "Incident number": 62480214, "Date": "9\/5\/2006", "Time": "07:26 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "1432-A N 33RD ST", "Location": [ 43.049484, -87.955256 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.955255893531259, 43.049483748542912 ] } }, { "type": "Feature", "properties": { "Incident number": 62470081, "Date": "9\/4\/2006", "Time": "12:10 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1032 N 27TH ST #104", "Location": [ 43.044000, -87.947583 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.947583002308619, 43.043999971694824 ] } }, { "type": "Feature", "properties": { "Incident number": 62460033, "Date": "9\/3\/2006", "Time": "04:11 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2041 W WELLS ST #2", "Location": [ 43.040256, -87.939153 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.939153456142918, 43.04025647735029 ] } }, { "type": "Feature", "properties": { "Incident number": 62450039, "Date": "9\/2\/2006", "Time": "05:09 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "835 N 23RD ST #211", "Location": [ 43.041042, -87.941611 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.941610573720155, 43.0410422514571 ] } }, { "type": "Feature", "properties": { "Incident number": 62450134, "Date": "9\/2\/2006", "Time": "03:02 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "301 N 29TH ST", "Location": [ 43.033788, -87.950469 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 0, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.950468606468718, 43.033788 ] } }, { "type": "Feature", "properties": { "Incident number": 62740003, "Date": "9\/30\/2006", "Time": "11:15 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7921 W CONGRESS ST #2", "Location": [ 43.097111, -88.011491 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.011490803912508, 43.097111488458815 ] } }, { "type": "Feature", "properties": { "Incident number": 62660142, "Date": "9\/23\/2006", "Time": "02:20 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8600 W OLIVE ST", "Location": [ 43.093775, -88.020545 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.020544867187994, 43.09377506301567 ] } }, { "type": "Feature", "properties": { "Incident number": 62650208, "Date": "9\/22\/2006", "Time": "06:13 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "10221 W CONGRESS ST", "Location": [ 43.096753, -88.040201 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.040200667638061, 43.096752546742614 ] } }, { "type": "Feature", "properties": { "Incident number": 62630024, "Date": "9\/20\/2006", "Time": "04:38 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3935 N 76TH ST #2", "Location": [ 43.088715, -88.007412 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.007411707945991, 43.088715431993869 ] } }, { "type": "Feature", "properties": { "Incident number": 62630157, "Date": "9\/20\/2006", "Time": "05:35 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6450 N 106TH ST", "Location": [ 43.135250, -88.043837 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.043836540014055, 43.135250496607078 ] } }, { "type": "Feature", "properties": { "Incident number": 62600162, "Date": "9\/17\/2006", "Time": "05:09 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5166 N LOVERS LANE RD #B7", "Location": [ 43.110855, -88.055595 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.055594500173839, 43.110855062033799 ] } }, { "type": "Feature", "properties": { "Incident number": 62590068, "Date": "9\/16\/2006", "Time": "08:59 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "10211 W FOND DU LAC AV", "Location": [ 43.139004, -88.039209 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.039209323917291, 43.139004324764912 ] } }, { "type": "Feature", "properties": { "Incident number": 62540006, "Date": "9\/11\/2006", "Time": "12:04 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3713 N 87TH ST", "Location": [ 43.084629, -88.021360 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.021359657539193, 43.08462916763807 ] } }, { "type": "Feature", "properties": { "Incident number": 62520103, "Date": "9\/9\/2006", "Time": "11:08 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8325 W MELVINA ST", "Location": [ 43.088821, -88.017102 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.017101832361945, 43.088820539529245 ] } }, { "type": "Feature", "properties": { "Incident number": 62490204, "Date": "9\/6\/2006", "Time": "08:44 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DISORDERLY CONDUCT", "Address": "3801 N 88TH ST", "Location": [ 43.086018, -88.022674 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 1, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.022673710554201, 43.086018078916815 ] } }, { "type": "Feature", "properties": { "Incident number": 62440048, "Date": "9\/1\/2006", "Time": "06:51 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5238 N LOVERS LANE RD #1", "Location": [ 43.112889, -88.055571 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.055570569765763, 43.112888559560574 ] } }, { "type": "Feature", "properties": { "Incident number": 62730037, "Date": "9\/30\/2006", "Time": "05:18 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2956-B N PALMER ST", "Location": [ 43.072416, -87.909415 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.909415389636138, 43.072416136274455 ] } }, { "type": "Feature", "properties": { "Incident number": 62730111, "Date": "9\/30\/2006", "Time": "02:34 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2470 N MARTIN L KING JR DR", "Location": [ 43.063633, -87.914015 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.914015426279846, 43.063632555369615 ] } }, { "type": "Feature", "properties": { "Incident number": 62730134, "Date": "9\/30\/2006", "Time": "04:54 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2971 N 6TH ST", "Location": [ 43.072766, -87.918371 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.918371102573587, 43.072766276992333 ] } }, { "type": "Feature", "properties": { "Incident number": 62730159, "Date": "9\/30\/2006", "Time": "06:35 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "123 W NORTH AV", "Location": [ 43.060261, -87.912081 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.91208116763805, 43.060260532315894 ] } }, { "type": "Feature", "properties": { "Incident number": 62730002, "Date": "9\/29\/2006", "Time": "11:10 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2506 N MARTIN L KING JR DR #4", "Location": [ 43.064080, -87.913993 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.913993048425695, 43.06407995491449 ] } }, { "type": "Feature", "properties": { "Incident number": 62710017, "Date": "9\/28\/2006", "Time": "02:19 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "2351 N HUBBARD ST #A", "Location": [ 43.061364, -87.908720 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.908720095360223, 43.061364167638061 ] } }, { "type": "Feature", "properties": { "Incident number": 62710136, "Date": "9\/28\/2006", "Time": "03:23 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3245 N 23RD ST", "Location": [ 43.077959, -87.941228 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.941227577038362, 43.07795899417161 ] } }, { "type": "Feature", "properties": { "Incident number": 62710165, "Date": "9\/28\/2006", "Time": "05:48 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2229 N HUBBARD ST #A", "Location": [ 43.059790, -87.908309 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.908308562611637, 43.059789586733217 ] } }, { "type": "Feature", "properties": { "Incident number": 62700169, "Date": "9\/27\/2006", "Time": "06:14 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2724 N 5TH ST", "Location": [ 43.068167, -87.916909 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.916909036931827, 43.068167107489728 ] } }, { "type": "Feature", "properties": { "Incident number": 62700229, "Date": "9\/27\/2006", "Time": "10:25 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2314 N BUFFUM ST", "Location": [ 43.060679, -87.906502 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.90650243738834, 43.060679161809681 ] } }, { "type": "Feature", "properties": { "Incident number": 62710005, "Date": "9\/27\/2006", "Time": "11:30 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2950 N 17TH ST", "Location": [ 43.072535, -87.934334 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.934333857464466, 43.072535085204017 ] } }, { "type": "Feature", "properties": { "Incident number": 62690176, "Date": "9\/26\/2006", "Time": "04:05 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3833-A N 23RD ST", "Location": [ 43.086808, -87.940992 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 5, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.940991606468728, 43.086807754371279 ] } }, { "type": "Feature", "properties": { "Incident number": 62680047, "Date": "9\/25\/2006", "Time": "07:32 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2948 N BUFFUM ST", "Location": [ 43.072084, -87.906445 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.906445389636119, 43.072083723007701 ] } }, { "type": "Feature", "properties": { "Incident number": 62680277, "Date": "9\/25\/2006", "Time": "09:57 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1309 W COTTAGE PL", "Location": [ 43.072672, -87.927814 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.927813586733222, 43.072671510675832 ] } }, { "type": "Feature", "properties": { "Incident number": 62720213, "Date": "9\/25\/2006", "Time": "09:04 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2603 N RICHARDS ST", "Location": [ 43.065809, -87.907790 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.907789632003954, 43.065809276992333 ] } }, { "type": "Feature", "properties": { "Incident number": 62670161, "Date": "9\/24\/2006", "Time": "05:52 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "522 E BURLEIGH ST", "Location": [ 43.074776, -87.904440 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.904439832361945, 43.074776460470744 ] } }, { "type": "Feature", "properties": { "Incident number": 62670195, "Date": "9\/24\/2006", "Time": "08:39 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2815 N PALMER ST", "Location": [ 43.069725, -87.909528 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.909528103150507, 43.069725167638076 ] } }, { "type": "Feature", "properties": { "Incident number": 62660150, "Date": "9\/23\/2006", "Time": "03:08 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3465 N 1ST ST", "Location": [ 43.081641, -87.910818 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.910818048184936, 43.08164136663973 ] } }, { "type": "Feature", "properties": { "Incident number": 62650066, "Date": "9\/22\/2006", "Time": "08:51 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Address": "3518 N 14TH ST", "Location": [ 43.082136, -87.928425 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.928425379104539, 43.082136303912534 ] } }, { "type": "Feature", "properties": { "Incident number": 62650121, "Date": "9\/22\/2006", "Time": "01:26 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2830-A N 4TH ST", "Location": [ 43.070112, -87.915424 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.915424422961635, 43.070112136274481 ] } }, { "type": "Feature", "properties": { "Incident number": 62640043, "Date": "9\/21\/2006", "Time": "09:06 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3533 N 11TH ST #A", "Location": [ 43.082424, -87.924801 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.924801124790577, 43.082423863725545 ] } }, { "type": "Feature", "properties": { "Incident number": 62640157, "Date": "9\/21\/2006", "Time": "06:26 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "114 W TOWNSEND ST", "Location": [ 43.080353, -87.911104 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.91110402645414, 43.080352821692458 ] } }, { "type": "Feature", "properties": { "Incident number": 62650184, "Date": "9\/21\/2006", "Time": "08:36 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3866 N PORT WASHINGTON AV #6", "Location": [ 43.087356, -87.917185 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.9171849190665, 43.087355968636388 ] } }, { "type": "Feature", "properties": { "Incident number": 62630022, "Date": "9\/20\/2006", "Time": "03:45 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3245 N 23RD ST", "Location": [ 43.077959, -87.941228 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.941227577038362, 43.07795899417161 ] } }, { "type": "Feature", "properties": { "Incident number": 62630193, "Date": "9\/20\/2006", "Time": "07:38 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3605 N 19TH ST", "Location": [ 43.083730, -87.934568 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.934568073720143, 43.083729838190315 ] } }, { "type": "Feature", "properties": { "Incident number": 62620119, "Date": "9\/19\/2006", "Time": "10:40 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2366 N 5TH ST", "Location": [ 43.061768, -87.917005 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.917005375209413, 43.061768161809681 ] } }, { "type": "Feature", "properties": { "Incident number": 62600125, "Date": "9\/17\/2006", "Time": "02:36 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2926 N 1ST ST", "Location": [ 43.071795, -87.910955 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.910954907957986, 43.071794832361945 ] } }, { "type": "Feature", "properties": { "Incident number": 62590143, "Date": "9\/16\/2006", "Time": "03:28 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3051 N 11TH ST #A", "Location": [ 43.074225, -87.925282 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.925281588146859, 43.074225115182628 ] } }, { "type": "Feature", "properties": { "Incident number": 62590199, "Date": "9\/16\/2006", "Time": "07:11 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3051-A N 11TH ST", "Location": [ 43.074225, -87.925282 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.925281588146859, 43.074225115182628 ] } }, { "type": "Feature", "properties": { "Incident number": 62590213, "Date": "9\/16\/2006", "Time": "09:35 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3606 N 11TH ST", "Location": [ 43.083512, -87.924702 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.924702407957994, 43.08351199417163 ] } }, { "type": "Feature", "properties": { "Incident number": 62580016, "Date": "9\/15\/2006", "Time": "01:47 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3363 N 20TH ST", "Location": [ 43.080121, -87.937289 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.937289102573587, 43.080120838190318 ] } }, { "type": "Feature", "properties": { "Incident number": 62580162, "Date": "9\/15\/2006", "Time": "06:09 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "3876 N PORT WASHINGTON AV", "Location": [ 43.087553, -87.917185 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.9171849190665, 43.087553077990655 ] } }, { "type": "Feature", "properties": { "Incident number": 62550021, "Date": "9\/12\/2006", "Time": "04:39 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3609 N MARTIN L KING JR DR #7", "Location": [ 43.083299, -87.919284 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.919284318184992, 43.083298535282843 ] } }, { "type": "Feature", "properties": { "Incident number": 62550088, "Date": "9\/12\/2006", "Time": "11:07 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4045 N PORT WASHINGTON RD", "Location": [ 43.090343, -87.917220 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.917220139217306, 43.090342973079785 ] } }, { "type": "Feature", "properties": { "Incident number": 62550146, "Date": "9\/12\/2006", "Time": "03:00 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2737 N BUFFUM ST", "Location": [ 43.068340, -87.906569 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.906569073720149, 43.068339586733224 ] } }, { "type": "Feature", "properties": { "Incident number": 62550150, "Date": "9\/12\/2006", "Time": "04:40 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3766 N 10TH ST #UPR", "Location": [ 43.085798, -87.923393 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.923392907957989, 43.085798381903174 ] } }, { "type": "Feature", "properties": { "Incident number": 62540180, "Date": "9\/11\/2006", "Time": "05:26 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3739 N 17TH ST", "Location": [ 43.085577, -87.932199 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.932199078019309, 43.085576828755258 ] } }, { "type": "Feature", "properties": { "Incident number": 62540189, "Date": "9\/11\/2006", "Time": "05:46 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "401 E CAPITOL DR #1", "Location": [ 43.089169, -87.906000 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.906000069392306, 43.089168518899719 ] } }, { "type": "Feature", "properties": { "Incident number": 62530134, "Date": "9\/10\/2006", "Time": "02:12 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2534 N 4TH ST", "Location": [ 43.064648, -87.915493 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.915493396849484, 43.064648413266781 ] } }, { "type": "Feature", "properties": { "Incident number": 62530147, "Date": "9\/10\/2006", "Time": "02:59 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3105 N 9TH ST #2", "Location": [ 43.075002, -87.922536 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.922535526714796, 43.075002466339143 ] } }, { "type": "Feature", "properties": { "Incident number": 62520043, "Date": "9\/9\/2006", "Time": "05:51 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1515 W ATKINSON AV #13", "Location": [ 43.086751, -87.929952 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.929952269374922, 43.086750654711892 ] } }, { "type": "Feature", "properties": { "Incident number": 62520210, "Date": "9\/9\/2006", "Time": "09:17 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3847 N 18TH ST", "Location": [ 43.086879, -87.933310 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933310128108786, 43.086878528449432 ] } }, { "type": "Feature", "properties": { "Incident number": 62520216, "Date": "9\/9\/2006", "Time": "09:12 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2901 N 16TH ST", "Location": [ 43.071489, -87.933228 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933228132003961, 43.071489335276134 ] } }, { "type": "Feature", "properties": { "Incident number": 62520219, "Date": "9\/9\/2006", "Time": "10:54 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1500 W BURLEIGH ST", "Location": [ 43.074992, -87.930103 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.930102661809698, 43.07499150764604 ] } }, { "type": "Feature", "properties": { "Incident number": 62510383, "Date": "9\/8\/2006", "Time": "07:20 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2430 W HOPKINS ST", "Location": [ 43.080171, -87.942834 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.942833556321901, 43.080170761324865 ] } }, { "type": "Feature", "properties": { "Incident number": 62500030, "Date": "9\/7\/2006", "Time": "07:20 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3211 N BUFFUM ST", "Location": [ 43.076908, -87.906419 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.906418540971544, 43.076908424923545 ] } }, { "type": "Feature", "properties": { "Incident number": 62500131, "Date": "9\/7\/2006", "Time": "03:52 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1431 W CHAMBERS ST", "Location": [ 43.073179, -87.930172 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.930171502914177, 43.073179492353951 ] } }, { "type": "Feature", "properties": { "Incident number": 62500137, "Date": "9\/7\/2006", "Time": "04:37 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3574 N 19TH ST", "Location": [ 43.083333, -87.934492 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.93449235356934, 43.083332748542922 ] } }, { "type": "Feature", "properties": { "Incident number": 62500150, "Date": "9\/7\/2006", "Time": "04:06 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "4045 N PORT WASHINGTON AV", "Location": [ 43.090343, -87.917220 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.917220139217306, 43.090342973079785 ] } }, { "type": "Feature", "properties": { "Incident number": 62500194, "Date": "9\/7\/2006", "Time": "09:12 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DISORDERLY CONDUCT", "Address": "3042 N PALMER ST #APT3", "Location": [ 43.073892, -87.909406 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.909406389636118, 43.073892 ] } }, { "type": "Feature", "properties": { "Incident number": 62490093, "Date": "9\/6\/2006", "Time": "01:00 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "401 E BURLEIGH ST", "Location": [ 43.074725, -87.906240 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.90624, 43.074725481245444 ] } }, { "type": "Feature", "properties": { "Incident number": 62490143, "Date": "9\/6\/2006", "Time": "05:08 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "621 W GALENA ST", "Location": [ 43.051186, -87.919074 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 0, "g_clusterK9": 7, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.919074127750278, 43.051185668279736 ] } }, { "type": "Feature", "properties": { "Incident number": 62490151, "Date": "9\/6\/2006", "Time": "04:31 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3053 N HOLTON ST", "Location": [ 43.074117, -87.905289 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.90528860646873, 43.074117419095153 ] } }, { "type": "Feature", "properties": { "Incident number": 62490170, "Date": "9\/6\/2006", "Time": "06:04 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3234 N 6TH ST", "Location": [ 43.077078, -87.918556 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.918556404062841, 43.077078251457088 ] } }, { "type": "Feature", "properties": { "Incident number": 62470089, "Date": "9\/4\/2006", "Time": "01:12 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1805 N 2ND ST #LWR", "Location": [ 43.054013, -87.912831 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 9, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.912830811154549, 43.054013210658432 ] } }, { "type": "Feature", "properties": { "Incident number": 62470195, "Date": "9\/4\/2006", "Time": "10:54 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3424 N 9TH ST", "Location": [ 43.080696, -87.922303 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.922302911853123, 43.080695884817374 ] } }, { "type": "Feature", "properties": { "Incident number": 62470197, "Date": "9\/4\/2006", "Time": "09:19 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3010 N TEUTONIA AV", "Location": [ 43.073627, -87.931110 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.931110074974995, 43.073627102906649 ] } }, { "type": "Feature", "properties": { "Incident number": 62460056, "Date": "9\/3\/2006", "Time": "08:12 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3649 N 12TH ST", "Location": [ 43.084476, -87.926000 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.926000073720147, 43.084476199001678 ] } }, { "type": "Feature", "properties": { "Incident number": 62460140, "Date": "9\/3\/2006", "Time": "04:15 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1103 W ATKINSON AV #3", "Location": [ 43.084462, -87.924831 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.924830962389606, 43.084462037411157 ] } }, { "type": "Feature", "properties": { "Incident number": 62460155, "Date": "9\/3\/2006", "Time": "04:52 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3271 N 14TH ST", "Location": [ 43.078429, -87.928642 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.928641573720157, 43.078428869553932 ] } }, { "type": "Feature", "properties": { "Incident number": 62460190, "Date": "9\/3\/2006", "Time": "09:19 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3612 N 20TH ST #UPPER", "Location": [ 43.083620, -87.937165 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.937165396849494, 43.083620298084156 ] } }, { "type": "Feature", "properties": { "Incident number": 62450116, "Date": "9\/2\/2006", "Time": "01:32 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3787 N 12TH ST", "Location": [ 43.086420, -87.925941 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.925940599255355, 43.086420199001687 ] } }, { "type": "Feature", "properties": { "Incident number": 62450201, "Date": "9\/2\/2006", "Time": "09:25 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3206 N 12TH ST", "Location": [ 43.076717, -87.926163 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.926163393531269, 43.076717245628721 ] } }, { "type": "Feature", "properties": { "Incident number": 62730016, "Date": "9\/30\/2006", "Time": "03:00 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2905 W CAPITOL DR #4", "Location": [ 43.089752, -87.949700 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.949700025535222, 43.08975249567218 ] } }, { "type": "Feature", "properties": { "Incident number": 62730045, "Date": "9\/30\/2006", "Time": "07:00 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4560 N 37TH ST", "Location": [ 43.100288, -87.959164 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.959164360782694, 43.100288413266782 ] } }, { "type": "Feature", "properties": { "Incident number": 62730109, "Date": "9\/30\/2006", "Time": "02:10 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3051-A N 24TH ST", "Location": [ 43.074433, -87.942369 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.942368606468719, 43.074432754371287 ] } }, { "type": "Feature", "properties": { "Incident number": 62730138, "Date": "9\/30\/2006", "Time": "05:03 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3257 N 25TH ST", "Location": [ 43.078240, -87.944741 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.944740624790569, 43.078239670552257 ] } }, { "type": "Feature", "properties": { "Incident number": 62720241, "Date": "9\/29\/2006", "Time": "09:31 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4930 N 58TH ST", "Location": [ 43.107192, -87.985006 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.98500636799605, 43.107192136274449 ] } }, { "type": "Feature", "properties": { "Incident number": 62700052, "Date": "9\/27\/2006", "Time": "08:44 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "LIQUOR LAW VIOLATIONS", "Address": "3516 N 40TH ST", "Location": [ 43.082963, -87.963082 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.963082346355989, 43.082963245628719 ] } }, { "type": "Feature", "properties": { "Incident number": 62690264, "Date": "9\/26\/2006", "Time": "09:17 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2749 N 49TH ST", "Location": [ 43.069087, -87.974918 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.974917624790578, 43.069087005828379 ] } }, { "type": "Feature", "properties": { "Incident number": 62680281, "Date": "9\/25\/2006", "Time": "08:32 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4614 N 41ST ST", "Location": [ 43.101153, -87.963855 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.96385485356933, 43.101152664723891 ] } }, { "type": "Feature", "properties": { "Incident number": 63180102, "Date": "9\/25\/2006", "Time": "01:00 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3149 N 28TH ST", "Location": [ 43.076206, -87.948549 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.948549077038365, 43.076205586733245 ] } }, { "type": "Feature", "properties": { "Incident number": 62670028, "Date": "9\/24\/2006", "Time": "03:33 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4850 N 55TH ST", "Location": [ 43.105842, -87.981306 ], "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": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.98130639353127, 43.105841664723862 ] } }, { "type": "Feature", "properties": { "Incident number": 62650207, "Date": "9\/22\/2006", "Time": "08:44 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3632 N 40TH ST", "Location": [ 43.083926, -87.963064 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.963064346355949, 43.083926245628732 ] } }, { "type": "Feature", "properties": { "Incident number": 62640057, "Date": "9\/21\/2006", "Time": "09:14 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2525 N SHERMAN BL", "Location": [ 43.066053, -87.967618 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.967618125367508, 43.066052863725567 ] } }, { "type": "Feature", "properties": { "Incident number": 62640120, "Date": "9\/21\/2006", "Time": "03:47 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "2923 N 21ST ST", "Location": [ 43.071957, -87.938680 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.93868009925535, 43.071957167638061 ] } }, { "type": "Feature", "properties": { "Incident number": 62640211, "Date": "9\/21\/2006", "Time": "10:18 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3057 N 26TH ST", "Location": [ 43.074603, -87.946050 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.94605012479056, 43.074603335276116 ] } }, { "type": "Feature", "properties": { "Incident number": 62620164, "Date": "9\/19\/2006", "Time": "02:28 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3501 W BURLEIGH ST", "Location": [ 43.075168, -87.957652 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.957652279906526, 43.075167539529275 ] } }, { "type": "Feature", "properties": { "Incident number": 62600032, "Date": "9\/17\/2006", "Time": "04:17 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2531 W MONROE ST", "Location": [ 43.067408, -87.945821 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.94582091384369, 43.067408439061786 ] } }, { "type": "Feature", "properties": { "Incident number": 62600086, "Date": "9\/17\/2006", "Time": "11:15 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3509 N 41ST ST", "Location": [ 43.082747, -87.964309 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.964308657539192, 43.082747444630392 ] } }, { "type": "Feature", "properties": { "Incident number": 62600133, "Date": "9\/17\/2006", "Time": "03:10 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3010 N 23RD ST", "Location": [ 43.073567, -87.941076 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.94107639353129, 43.073567077990646 ] } }, { "type": "Feature", "properties": { "Incident number": 62590013, "Date": "9\/16\/2006", "Time": "12:53 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2533 W AUER AV", "Location": [ 43.076957, -87.945832 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.945831974464767, 43.076957481245472 ] } }, { "type": "Feature", "properties": { "Incident number": 62590181, "Date": "9\/16\/2006", "Time": "06:04 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4209 N 40TH ST", "Location": [ 43.093720, -87.962942 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.962941632003961, 43.093720005828374 ] } }, { "type": "Feature", "properties": { "Incident number": 62590198, "Date": "9\/16\/2006", "Time": "07:27 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3049 N 35TH ST", "Location": [ 43.074192, -87.957386 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.95738610092809, 43.074191626733942 ] } }, { "type": "Feature", "properties": { "Incident number": 62590211, "Date": "9\/16\/2006", "Time": "05:56 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3154 N 45TH ST", "Location": [ 43.076440, -87.969804 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.969804393531291, 43.076439723007695 ] } }, { "type": "Feature", "properties": { "Incident number": 62580053, "Date": "9\/15\/2006", "Time": "08:33 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3770 N 55TH ST", "Location": [ 43.085987, -87.982054 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.982053911853129, 43.085986575076475 ] } }, { "type": "Feature", "properties": { "Incident number": 62580203, "Date": "9\/15\/2006", "Time": "09:32 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2879 N 45TH ST", "Location": [ 43.071344, -87.969941 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.969941102573586, 43.071344444630391 ] } }, { "type": "Feature", "properties": { "Incident number": 62560005, "Date": "9\/13\/2006", "Time": "12:35 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4367 N SHERMAN BL", "Location": [ 43.096605, -87.967114 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 8, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.967113597751975, 43.096605236844937 ] } }, { "type": "Feature", "properties": { "Incident number": 62560167, "Date": "9\/13\/2006", "Time": "05:13 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3626 W FOND DU LAC AV", "Location": [ 43.076929, -87.959440 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.959440458480188, 43.076929451583958 ] } }, { "type": "Feature", "properties": { "Incident number": 62530027, "Date": "9\/10\/2006", "Time": "04:03 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3500 N 51ST BL", "Location": [ 43.082711, -87.977184 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.977184415171379, 43.082711298084142 ] } }, { "type": "Feature", "properties": { "Incident number": 62530143, "Date": "9\/10\/2006", "Time": "03:22 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3284 N SHERMAN BL", "Location": [ 43.078868, -87.967164 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.967164407957995, 43.078867522621039 ] } }, { "type": "Feature", "properties": { "Incident number": 62530191, "Date": "9\/10\/2006", "Time": "08:19 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2934 N 41ST ST", "Location": [ 43.072335, -87.964395 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.964394853569317, 43.072334832361946 ] } }, { "type": "Feature", "properties": { "Incident number": 62530196, "Date": "9\/10\/2006", "Time": "08:52 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2029 W BURLEIGH ST", "Location": [ 43.075067, -87.938312 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.938312002914188, 43.075066506780665 ] } }, { "type": "Feature", "properties": { "Incident number": 62510318, "Date": "9\/8\/2006", "Time": "12:35 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2525 N SHERMAN BL", "Location": [ 43.066053, -87.967618 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.967618125367508, 43.066052863725567 ] } }, { "type": "Feature", "properties": { "Incident number": 62510375, "Date": "9\/8\/2006", "Time": "06:11 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3444 N 37TH ST", "Location": [ 43.082029, -87.959595 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 5, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.959595429598082, 43.082028869553938 ] } }, { "type": "Feature", "properties": { "Incident number": 62490009, "Date": "9\/6\/2006", "Time": "12:54 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4840 N 54TH ST", "Location": [ 43.105607, -87.980063 ], "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": 5, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 8 }, "geometry": { "type": "Point", "coordinates": [ -87.980063419066511, 43.105607329447736 ] } }, { "type": "Feature", "properties": { "Incident number": 62480193, "Date": "9\/5\/2006", "Time": "06:14 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3761 N 27TH ST", "Location": [ 43.086061, -87.947089 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.94708865032581, 43.086060502914194 ] } }, { "type": "Feature", "properties": { "Incident number": 62470104, "Date": "9\/4\/2006", "Time": "02:28 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2955 N 23RD ST #UPPER", "Location": [ 43.072633, -87.941171 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.94117063200396, 43.072632586733221 ] } }, { "type": "Feature", "properties": { "Incident number": 62450025, "Date": "9\/2\/2006", "Time": "01:21 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3955 N 26TH ST", "Location": [ 43.089236, -87.945771 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 5, "g_clusterK6": 5, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 8, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.945771124790568, 43.089236276992324 ] } }, { "type": "Feature", "properties": { "Incident number": 62730122, "Date": "9\/30\/2006", "Time": "03:36 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1561 S 21ST ST", "Location": [ 43.014609, -87.939501 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.939500613682057, 43.014609167638071 ] } }, { "type": "Feature", "properties": { "Incident number": 62690172, "Date": "9\/26\/2006", "Time": "03:38 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1565 S 35TH ST", "Location": [ 43.014529, -87.957639 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.957639055398275, 43.01452883819033 ] } }, { "type": "Feature", "properties": { "Incident number": 62690226, "Date": "9\/26\/2006", "Time": "06:20 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1618 S 23RD ST #LWRFR", "Location": [ 43.013575, -87.942224 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.942224455133299, 43.013574502914203 ] } }, { "type": "Feature", "properties": { "Incident number": 62680260, "Date": "9\/25\/2006", "Time": "07:47 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2029 W ROGERS ST", "Location": [ 43.008436, -87.939022 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.939022279906524, 43.008435546742618 ] } }, { "type": "Feature", "properties": { "Incident number": 62690193, "Date": "9\/25\/2006", "Time": "04:33 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2031 W LAPHAM ST", "Location": [ 43.014137, -87.938982 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.938982335276123, 43.014136528420771 ] } }, { "type": "Feature", "properties": { "Incident number": 62670012, "Date": "9\/24\/2006", "Time": "01:14 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2121 W MITCHELL ST", "Location": [ 43.012376, -87.940274 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.94027383527613, 43.012376488458813 ] } }, { "type": "Feature", "properties": { "Incident number": 62670014, "Date": "9\/24\/2006", "Time": "01:06 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1261 S 36TH ST", "Location": [ 43.017668, -87.958862 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.95886154097154, 43.0176679103526 ] } }, { "type": "Feature", "properties": { "Incident number": 62670024, "Date": "9\/24\/2006", "Time": "02:24 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3515 W FOREST HOME AV", "Location": [ 42.994336, -87.958760 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.95876030817243, 42.994336033434564 ] } }, { "type": "Feature", "properties": { "Incident number": 62660129, "Date": "9\/23\/2006", "Time": "12:49 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "743 S 24TH ST #3", "Location": [ 43.023178, -87.943609 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.943608552080036, 43.023177974464772 ] } }, { "type": "Feature", "properties": { "Incident number": 62660215, "Date": "9\/23\/2006", "Time": "11:02 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2112 W ORCHARD ST", "Location": [ 43.016011, -87.940021 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.940021332361951, 43.016010504327852 ] } }, { "type": "Feature", "properties": { "Incident number": 62660218, "Date": "9\/23\/2006", "Time": "11:10 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2330 W MINERAL ST", "Location": [ 43.021079, -87.943203 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.94320316763806, 43.021079453257379 ] } }, { "type": "Feature", "properties": { "Incident number": 62640190, "Date": "9\/21\/2006", "Time": "09:29 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "LIQUOR LAW VIOLATIONS", "Address": "2021 W MITCHELL ST", "Location": [ 43.012358, -87.938942 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.938941919095157, 43.012357513994033 ] } }, { "type": "Feature", "properties": { "Incident number": 62630176, "Date": "9\/20\/2006", "Time": "04:33 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2522 W LEGION ST", "Location": [ 43.009306, -87.945880 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.945880332361952, 43.009305504327841 ] } }, { "type": "Feature", "properties": { "Incident number": 62620203, "Date": "9\/19\/2006", "Time": "03:33 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2148 S 34TH ST", "Location": [ 43.005563, -87.956656 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.956656451815064, 43.005562857897161 ] } }, { "type": "Feature", "properties": { "Incident number": 62610014, "Date": "9\/18\/2006", "Time": "04:10 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2411 W MITCHELL ST", "Location": [ 43.012430, -87.944153 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.944153086733223, 43.012430488458826 ] } }, { "type": "Feature", "properties": { "Incident number": 62590019, "Date": "9\/16\/2006", "Time": "02:09 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3119 S 31ST ST", "Location": [ 42.987933, -87.953469 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.953468529863059, 42.987933167638062 ] } }, { "type": "Feature", "properties": { "Incident number": 62580051, "Date": "9\/15\/2006", "Time": "07:16 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1129 S 25TH ST", "Location": [ 43.019469, -87.945028 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.94502808482865, 43.019469335276135 ] } }, { "type": "Feature", "properties": { "Incident number": 62580001, "Date": "9\/14\/2006", "Time": "11:48 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2020 W LINCOLN AV", "Location": [ 43.003060, -87.938990 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.938990497085825, 43.003059525967906 ] } }, { "type": "Feature", "properties": { "Incident number": 62540198, "Date": "9\/11\/2006", "Time": "04:46 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "POCKET PICKING", "Address": "3500 W OKLAHOMA AV", "Location": [ 42.988498, -87.958361 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.958361430203666, 42.988497504327853 ] } }, { "type": "Feature", "properties": { "Incident number": 62510016, "Date": "9\/8\/2006", "Time": "12:59 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3709 W NATIONAL AV", "Location": [ 43.021436, -87.960442 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 1, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 7, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.960441965722197, 43.021435528420753 ] } }, { "type": "Feature", "properties": { "Incident number": 62500016, "Date": "9\/7\/2006", "Time": "03:08 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2021-B W MITCHELL ST", "Location": [ 43.012358, -87.938942 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.938941919095157, 43.012357513994033 ] } }, { "type": "Feature", "properties": { "Incident number": 62480020, "Date": "9\/5\/2006", "Time": "03:59 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1006 S 28TH ST", "Location": [ 43.020783, -87.949036 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.94903594070658, 43.020782832361924 ] } }, { "type": "Feature", "properties": { "Incident number": 62440188, "Date": "9\/1\/2006", "Time": "11:05 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3229 W MADISON ST", "Location": [ 43.017719, -87.954840 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.954840167638054, 43.017718506780682 ] } }, { "type": "Feature", "properties": { "Incident number": 62730183, "Date": "9\/30\/2006", "Time": "10:03 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8960 N MICHELE ST #107", "Location": [ 43.181234, -88.030132 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.030131848018087, 43.181234227188476 ] } }, { "type": "Feature", "properties": { "Incident number": 62720179, "Date": "9\/29\/2006", "Time": "04:15 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8700 W FAIRY CHASM DR", "Location": [ 43.185050, -88.018114 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.018114028449418, 43.185050453257389 ] } }, { "type": "Feature", "properties": { "Incident number": 62730005, "Date": "9\/29\/2006", "Time": "11:57 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "9051-F N 95TH ST", "Location": [ 43.181389, -88.028682 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.028681551503141, 43.181389121011016 ] } }, { "type": "Feature", "properties": { "Incident number": 62710098, "Date": "9\/28\/2006", "Time": "12:06 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6427 W FLORIST AV #1", "Location": [ 43.126670, -87.991920 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.991920167638057, 43.126669521207397 ] } }, { "type": "Feature", "properties": { "Incident number": 62710139, "Date": "9\/28\/2006", "Time": "10:38 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6677 N 81ST ST", "Location": [ 43.139466, -88.011671 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 1, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.0116710953602, 43.139466366639738 ] } }, { "type": "Feature", "properties": { "Incident number": 62710148, "Date": "9\/28\/2006", "Time": "03:40 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7501 N GRANVILLE RD", "Location": [ 43.154411, -88.028731 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.028731455104804, 43.154410603420885 ] } }, { "type": "Feature", "properties": { "Incident number": 62710158, "Date": "9\/28\/2006", "Time": "04:54 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6216 W CUSTER AV", "Location": [ 43.116273, -87.989422 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.989422265095044, 43.116272882272064 ] } }, { "type": "Feature", "properties": { "Incident number": 62670168, "Date": "9\/24\/2006", "Time": "05:47 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6552 N 55TH ST", "Location": [ 43.136882, -87.980724 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.980724338565693, 43.136882161809694 ] } }, { "type": "Feature", "properties": { "Incident number": 62670217, "Date": "9\/24\/2006", "Time": "11:06 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5659 N 60TH ST", "Location": [ 43.120684, -87.986179 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.986179051503143, 43.12068361809682 ] } }, { "type": "Feature", "properties": { "Incident number": 62660214, "Date": "9\/23\/2006", "Time": "11:24 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7018 W LIMA ST", "Location": [ 43.138013, -87.998332 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 1, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.998331940590987, 43.138013017225333 ] } }, { "type": "Feature", "properties": { "Incident number": 62640136, "Date": "9\/21\/2006", "Time": "04:52 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7731 N MARINERS ST", "Location": [ 43.159097, -88.035535 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.035534579515399, 43.159097486645727 ] } }, { "type": "Feature", "properties": { "Incident number": 62630036, "Date": "9\/20\/2006", "Time": "07:25 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6509 N 55TH ST", "Location": [ 43.135984, -87.980828 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.980828117000314, 43.135983838190327 ] } }, { "type": "Feature", "properties": { "Incident number": 62630054, "Date": "9\/20\/2006", "Time": "09:10 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "9104 N 85TH ST", "Location": [ 43.183431, -88.015476 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.015475951815077, 43.183430518177644 ] } }, { "type": "Feature", "properties": { "Incident number": 62620176, "Date": "9\/19\/2006", "Time": "03:12 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6672 N 53RD ST", "Location": [ 43.139091, -87.978166 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.97816643640742, 43.139090912574289 ] } }, { "type": "Feature", "properties": { "Incident number": 62610076, "Date": "9\/18\/2006", "Time": "08:40 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5800 W CUSTER AV", "Location": [ 43.115690, -87.985091 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.985091174707179, 43.115690460470752 ] } }, { "type": "Feature", "properties": { "Incident number": 62600229, "Date": "9\/17\/2006", "Time": "11:17 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8301 N 76TH ST", "Location": [ 43.168616, -88.004728 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.004728148738351, 43.168615973079788 ] } }, { "type": "Feature", "properties": { "Incident number": 62590026, "Date": "9\/16\/2006", "Time": "02:28 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6626 N 77TH ST #3", "Location": [ 43.138431, -88.006495 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 1, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -88.00649484246081, 43.138430968636392 ] } }, { "type": "Feature", "properties": { "Incident number": 62570122, "Date": "9\/14\/2006", "Time": "01:03 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5822 W CUSTER AV", "Location": [ 43.115781, -87.985482 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.985482067430397, 43.115780680564242 ] } }, { "type": "Feature", "properties": { "Incident number": 62560168, "Date": "9\/13\/2006", "Time": "03:53 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6100 W SILVER SPRING DR", "Location": [ 43.119494, -87.987429 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.987428522916204, 43.119494430041783 ] } }, { "type": "Feature", "properties": { "Incident number": 62560199, "Date": "9\/13\/2006", "Time": "06:59 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8115 N JOSEPH AV", "Location": [ 43.165630, -88.041250 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.041250175861052, 43.165629670552256 ] } }, { "type": "Feature", "properties": { "Incident number": 62560243, "Date": "9\/13\/2006", "Time": "11:15 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "9410 W BROWN DEER RD #0", "Location": [ 43.177825, -88.027731 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.027731251457098, 43.177825464365867 ] } }, { "type": "Feature", "properties": { "Incident number": 62550219, "Date": "9\/12\/2006", "Time": "11:00 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5506 N 61ST ST", "Location": [ 43.118120, -87.987606 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.987605872430436, 43.118119711478499 ] } }, { "type": "Feature", "properties": { "Incident number": 62540011, "Date": "9\/11\/2006", "Time": "12:14 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5903 N 60TH ST #UPPER", "Location": [ 43.124878, -87.986040 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.98603955150314, 43.124877785734903 ] } }, { "type": "Feature", "properties": { "Incident number": 62540173, "Date": "9\/11\/2006", "Time": "05:08 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5903 N 60TH ST", "Location": [ 43.124878, -87.986040 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.98603955150314, 43.124877785734903 ] } }, { "type": "Feature", "properties": { "Incident number": 62530011, "Date": "9\/10\/2006", "Time": "12:46 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5758 N 62ND ST", "Location": [ 43.122491, -87.988295 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.988295328034098, 43.122491329447747 ] } }, { "type": "Feature", "properties": { "Incident number": 62520014, "Date": "9\/9\/2006", "Time": "01:41 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7668 W WABASH CT", "Location": [ 43.172781, -88.006874 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.006873798494212, 43.172780580742291 ] } }, { "type": "Feature", "properties": { "Incident number": 62520026, "Date": "9\/9\/2006", "Time": "02:27 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8878 N 95TH ST", "Location": [ 43.178507, -88.028373 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.028373343037757, 43.178507077990645 ] } }, { "type": "Feature", "properties": { "Incident number": 62500209, "Date": "9\/7\/2006", "Time": "10:44 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "7404 N 87TH ST", "Location": [ 43.152389, -88.020024 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.020024309712241, 43.152389245628711 ] } }, { "type": "Feature", "properties": { "Incident number": 62490027, "Date": "9\/6\/2006", "Time": "06:00 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5201 W MILL RD", "Location": [ 43.133846, -87.977331 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.977331, 43.133846481245449 ] } }, { "type": "Feature", "properties": { "Incident number": 62480187, "Date": "9\/5\/2006", "Time": "05:58 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6704 N 55TH ST", "Location": [ 43.139429, -87.980666 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 1, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.980665838565699, 43.139428994171617 ] } }, { "type": "Feature", "properties": { "Incident number": 62470112, "Date": "9\/4\/2006", "Time": "02:18 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5625 N 57TH ST", "Location": [ 43.119966, -87.983768 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.983767743147197, 43.119966489035733 ] } }, { "type": "Feature", "properties": { "Incident number": 62470166, "Date": "9\/4\/2006", "Time": "08:29 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5434 W SHERIDAN AV", "Location": [ 43.117517, -87.980832 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.980832, 43.117516507646044 ] } }, { "type": "Feature", "properties": { "Incident number": 62460062, "Date": "9\/3\/2006", "Time": "07:27 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6572 N 90TH ST", "Location": [ 43.137540, -88.024005 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 4, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 3, "g_clusterK10": 3 }, "geometry": { "type": "Point", "coordinates": [ -88.024004860782696, 43.13754 ] } }, { "type": "Feature", "properties": { "Incident number": 62460180, "Date": "9\/3\/2006", "Time": "08:29 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7648 W WABASH CT", "Location": [ 43.172816, -88.006732 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.006731679068622, 43.172816110598667 ] } }, { "type": "Feature", "properties": { "Incident number": 62460207, "Date": "9\/3\/2006", "Time": "10:11 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6216 W BIRCH AV", "Location": [ 43.117325, -87.988756 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.988756076507798, 43.117325459678192 ] } }, { "type": "Feature", "properties": { "Incident number": 62470003, "Date": "9\/3\/2006", "Time": "08:49 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8561 N 106TH ST", "Location": [ 43.173175, -88.042799 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.042798920508801, 43.173174949766292 ] } }, { "type": "Feature", "properties": { "Incident number": 62450187, "Date": "9\/2\/2006", "Time": "07:37 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "9221-A W ALLYN ST", "Location": [ 43.182551, -88.025158 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.02515819400999, 43.18255098084142 ] } }, { "type": "Feature", "properties": { "Incident number": 62440028, "Date": "9\/1\/2006", "Time": "07:30 AM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7800 W BROWN DEER RD", "Location": [ 43.177989, -88.007443 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.007443302527548, 43.177989491631863 ] } }, { "type": "Feature", "properties": { "Incident number": 62440157, "Date": "9\/1\/2006", "Time": "06:47 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6037 W SHERIDAN AV", "Location": [ 43.118173, -87.988066 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 4, "e_clusterK7": 2, "g_clusterK7": 2, "e_clusterK8": 2, "g_clusterK8": 2, "e_clusterK9": 1, "g_clusterK9": 1, "e_clusterK10": 6, "g_clusterK10": 6 }, "geometry": { "type": "Point", "coordinates": [ -87.98806647156988, 43.118173465164574 ] } }, { "type": "Feature", "properties": { "Incident number": 62440159, "Date": "9\/1\/2006", "Time": "06:51 PM", "Police District": 4.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7225 N 86TH ST #201", "Location": [ 43.149451, -88.018046 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 2, "e_clusterK4": 2, "g_clusterK4": 2, "e_clusterK5": 1, "g_clusterK5": 1, "e_clusterK6": 3, "g_clusterK6": 3, "e_clusterK7": 1, "g_clusterK7": 1, "e_clusterK8": 5, "g_clusterK8": 5, "e_clusterK9": 5, "g_clusterK9": 5, "e_clusterK10": 7, "g_clusterK10": 7 }, "geometry": { "type": "Point", "coordinates": [ -88.018046231519108, 43.14945077295296 ] } }, { "type": "Feature", "properties": { "Incident number": 62720007, "Date": "9\/28\/2006", "Time": "11:44 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2664 N 55TH ST", "Location": [ 43.067519, -87.982104 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.9821043863179, 43.067519245628716 ] } }, { "type": "Feature", "properties": { "Incident number": 62910164, "Date": "9\/26\/2006", "Time": "03:07 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3500 W MT VERNON AV", "Location": [ 43.033794, -87.957812 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 0, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.957811675261823, 43.033794175261811 ] } }, { "type": "Feature", "properties": { "Incident number": 62670067, "Date": "9\/24\/2006", "Time": "09:24 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2929 N 72ND ST", "Location": [ 43.072389, -88.002408 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 1, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.002407606468722, 43.072389 ] } }, { "type": "Feature", "properties": { "Incident number": 62630038, "Date": "9\/20\/2006", "Time": "07:54 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4715 W WELLS ST #2", "Location": [ 43.039700, -87.973352 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.97335202553522, 43.039700488458813 ] } }, { "type": "Feature", "properties": { "Incident number": 62610188, "Date": "9\/18\/2006", "Time": "05:09 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2851 N 56TH ST", "Location": [ 43.070922, -87.983311 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.983311120895465, 43.070922 ] } }, { "type": "Feature", "properties": { "Incident number": 62610249, "Date": "9\/18\/2006", "Time": "08:56 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1746 N 51ST ST", "Location": [ 43.053947, -87.977516 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.977516356887548, 43.053947497085801 ] } }, { "type": "Feature", "properties": { "Incident number": 62600150, "Date": "9\/17\/2006", "Time": "02:27 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3715 W MICHIGAN ST", "Location": [ 43.037235, -87.960124 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.96012367055225, 43.037235484563659 ] } }, { "type": "Feature", "properties": { "Incident number": 62570027, "Date": "9\/14\/2006", "Time": "03:42 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5010 W CENTER ST #3", "Location": [ 43.068057, -87.976568 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.976568356242183, 43.068057218789093 ] } }, { "type": "Feature", "properties": { "Incident number": 62570239, "Date": "9\/14\/2006", "Time": "10:58 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2976 N 61ST ST", "Location": [ 43.073306, -87.988474 ], "e_clusterK2": 1, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.988473856887552, 43.073306161809683 ] } }, { "type": "Feature", "properties": { "Incident number": 62560187, "Date": "9\/13\/2006", "Time": "05:49 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3129 N 49TH ST", "Location": [ 43.075927, -87.974871 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.974871132003955, 43.0759265029142 ] } }, { "type": "Feature", "properties": { "Incident number": 62550012, "Date": "9\/12\/2006", "Time": "01:20 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "539 S HAWLEY RD", "Location": [ 43.026101, -87.985707 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.985707341825645, 43.026101088262436 ] } }, { "type": "Feature", "properties": { "Incident number": 62550007, "Date": "9\/11\/2006", "Time": "11:51 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "309 N 95TH ST #211", "Location": [ 43.033479, -88.031187 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.031186563049786, 43.033479079146346 ] } }, { "type": "Feature", "properties": { "Incident number": 62530021, "Date": "9\/10\/2006", "Time": "02:29 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2158 N 55TH ST", "Location": [ 43.058430, -87.981903 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.981902860782697, 43.05843 ] } }, { "type": "Feature", "properties": { "Incident number": 62530125, "Date": "9\/10\/2006", "Time": "01:35 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7141 W BURLEIGH ST #1", "Location": [ 43.075308, -88.001807 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 1, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.001806967983057, 43.075307771791103 ] } }, { "type": "Feature", "properties": { "Incident number": 62520067, "Date": "9\/9\/2006", "Time": "09:18 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "5816 W APPLETON AV", "Location": [ 43.068566, -87.985614 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -87.98561355785111, 43.068565812106826 ] } }, { "type": "Feature", "properties": { "Incident number": 62520131, "Date": "9\/9\/2006", "Time": "01:27 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "455 S 75TH ST", "Location": [ 43.027308, -88.006008 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 4, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -88.006007606468728, 43.027308167638076 ] } }, { "type": "Feature", "properties": { "Incident number": 62500095, "Date": "9\/7\/2006", "Time": "09:31 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DISORDERLY CONDUCT", "Address": "151 S 84TH ST", "Location": [ 43.030430, -88.017368 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 1, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.01736804111485, 43.030429643286283 ] } }, { "type": "Feature", "properties": { "Incident number": 62500113, "Date": "9\/7\/2006", "Time": "02:31 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "7109 W CAPITOL DR", "Location": [ 43.089859, -88.000991 ], "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": 4, "e_clusterK7": 5, "g_clusterK7": 5, "e_clusterK8": 3, "g_clusterK8": 4, "e_clusterK9": 6, "g_clusterK9": 6, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.000991329447729, 43.089858546742619 ] } }, { "type": "Feature", "properties": { "Incident number": 62480105, "Date": "9\/5\/2006", "Time": "12:12 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER LARCENY", "Offense 3": "TRESPASSING", "Address": "3074 N 73RD ST #3", "Location": [ 43.075134, -88.003505 ], "e_clusterK2": 1, "g_clusterK2": 1, "e_clusterK3": 2, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 4, "e_clusterK6": 4, "g_clusterK6": 1, "e_clusterK7": 5, "g_clusterK7": 0, "e_clusterK8": 3, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 4, "g_clusterK10": 4 }, "geometry": { "type": "Point", "coordinates": [ -88.00350539021305, 43.075134 ] } }, { "type": "Feature", "properties": { "Incident number": 62470164, "Date": "9\/4\/2006", "Time": "08:51 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "329 S 67TH ST", "Location": [ 43.028073, -87.996169 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 3, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.996168573720155, 43.02807316763807 ] } }, { "type": "Feature", "properties": { "Incident number": 62710102, "Date": "9\/28\/2006", "Time": "11:15 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "6506 W WARNIMONT AV #1", "Location": [ 42.978816, -87.994903 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "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": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.994902693173287, 42.978816487159811 ] } }, { "type": "Feature", "properties": { "Incident number": 62670031, "Date": "9\/24\/2006", "Time": "01:31 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2653 S 71ST ST", "Location": [ 42.996223, -88.001350 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -88.001350022649689, 42.996223005828398 ] } }, { "type": "Feature", "properties": { "Incident number": 62600029, "Date": "9\/17\/2006", "Time": "03:52 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2307 S 33RD ST #2", "Location": [ 43.002918, -87.955485 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.955484879610978, 43.002918459511406 ] } }, { "type": "Feature", "properties": { "Incident number": 62570028, "Date": "9\/14\/2006", "Time": "02:26 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "8307 W OKLAHOMA AV #10", "Location": [ 42.988152, -88.016503 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -88.0165035, 42.98815153895233 ] } }, { "type": "Feature", "properties": { "Incident number": 62570224, "Date": "9\/14\/2006", "Time": "08:12 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3162 S 84TH ST", "Location": [ 42.986771, -88.017515 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "e_clusterK6": 1, "g_clusterK6": 0, "e_clusterK7": 3, "g_clusterK7": 3, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 4, "g_clusterK9": 4, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -88.017514907957988, 42.98677141326678 ] } }, { "type": "Feature", "properties": { "Incident number": 62550003, "Date": "9\/11\/2006", "Time": "11:36 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2716 W HOWARD AV #6", "Location": [ 42.974016, -87.948715 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.948715064676691, 42.974016099503707 ] } }, { "type": "Feature", "properties": { "Incident number": 62560039, "Date": "9\/8\/2006", "Time": "10:30 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3201 S 60TH ST", "Location": [ 42.986657, -87.987950 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 2, "g_clusterK5": 2, "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": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.98794954097157, 42.986656812655106 ] } }, { "type": "Feature", "properties": { "Incident number": 62730017, "Date": "9\/30\/2006", "Time": "02:25 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "650 S 5TH ST", "Location": [ 43.024732, -87.916794 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.916793820577752, 43.024731857628346 ] } }, { "type": "Feature", "properties": { "Incident number": 62730144, "Date": "9\/30\/2006", "Time": "05:57 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1622 W BECHER ST", "Location": [ 43.006585, -87.934033 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.934032723007675, 43.006585493219326 ] } }, { "type": "Feature", "properties": { "Incident number": 62720003, "Date": "9\/29\/2006", "Time": "12:01 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "511 W MAPLE ST", "Location": [ 43.010999, -87.917220 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.917219748542905, 43.010998513994025 ] } }, { "type": "Feature", "properties": { "Incident number": 62710103, "Date": "9\/28\/2006", "Time": "10:47 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1077 W WINDLAKE AV", "Location": [ 43.006860, -87.925630 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.925630208004051, 43.006859865370323 ] } }, { "type": "Feature", "properties": { "Incident number": 62700203, "Date": "9\/27\/2006", "Time": "08:36 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1749 W SCOTT ST", "Location": [ 43.018968, -87.934906 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.934906453925578, 43.018967698620969 ] } }, { "type": "Feature", "properties": { "Incident number": 62670004, "Date": "9\/24\/2006", "Time": "12:33 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1327 S 17TH ST", "Location": [ 43.017444, -87.934349 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.934348548184914, 43.017444 ] } }, { "type": "Feature", "properties": { "Incident number": 62670023, "Date": "9\/24\/2006", "Time": "02:58 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1946 S CONGO AV", "Location": [ 43.009285, -87.936058 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.936058311385693, 43.009285388856725 ] } }, { "type": "Feature", "properties": { "Incident number": 62670063, "Date": "9\/24\/2006", "Time": "09:41 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2485 S 9TH PL", "Location": [ 42.999399, -87.923711 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.923710548184914, 42.999398779906528 ] } }, { "type": "Feature", "properties": { "Incident number": 62660201, "Date": "9\/23\/2006", "Time": "09:14 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1915 S 5TH ST #A", "Location": [ 43.009749, -87.916782 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.916781606468717, 43.009749 ] } }, { "type": "Feature", "properties": { "Incident number": 62640161, "Date": "9\/21\/2006", "Time": "06:26 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "508 W MAPLE ST", "Location": [ 43.011064, -87.917130 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.917130251457095, 43.011064486005971 ] } }, { "type": "Feature", "properties": { "Incident number": 62640180, "Date": "9\/21\/2006", "Time": "04:43 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1600 W LAPHAM ST", "Location": [ 43.014058, -87.933111 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.933110515304051, 43.014057775715507 ] } }, { "type": "Feature", "properties": { "Incident number": 62630210, "Date": "9\/20\/2006", "Time": "10:08 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1025 W LINCOLN AV", "Location": [ 43.002827, -87.925651 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.925651019706834, 43.002827488458827 ] } }, { "type": "Feature", "properties": { "Incident number": 62620091, "Date": "9\/19\/2006", "Time": "10:49 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1107 S 17TH ST #LOWER", "Location": [ 43.019929, -87.934321 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.934320595360219, 43.019929005828374 ] } }, { "type": "Feature", "properties": { "Incident number": 62620229, "Date": "9\/19\/2006", "Time": "04:50 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1747 S 17TH ST", "Location": [ 43.011189, -87.934259 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.934258548184914, 43.011189167638072 ] } }, { "type": "Feature", "properties": { "Incident number": 62620248, "Date": "9\/19\/2006", "Time": "09:09 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "820 W MADISON ST #UPPER", "Location": [ 43.018081, -87.921864 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.921864, 43.01808050432782 ] } }, { "type": "Feature", "properties": { "Incident number": 62600231, "Date": "9\/17\/2006", "Time": "06:06 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2016 W SCOTT ST", "Location": [ 43.019060, -87.938631 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.938630832361952, 43.019060467684099 ] } }, { "type": "Feature", "properties": { "Incident number": 62590177, "Date": "9\/16\/2006", "Time": "06:01 PM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2018 W GREENFIELD AV", "Location": [ 43.017056, -87.938672 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.938671667638047, 43.01705647489748 ] } }, { "type": "Feature", "properties": { "Incident number": 62590214, "Date": "9\/16\/2006", "Time": "09:41 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2353 S 12TH ST", "Location": [ 43.001676, -87.927278 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.927278073720146, 43.001676167638074 ] } }, { "type": "Feature", "properties": { "Incident number": 62580194, "Date": "9\/15\/2006", "Time": "07:05 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "215 W MITCHELL ST #UPR", "Location": [ 43.012276, -87.913161 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.913161, 43.012275539529256 ] } }, { "type": "Feature", "properties": { "Incident number": 62570013, "Date": "9\/14\/2006", "Time": "01:55 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1700 W NATIONAL AV #315", "Location": [ 43.022976, -87.934411 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.934411089647412, 43.022976482687739 ] } }, { "type": "Feature", "properties": { "Incident number": 62570150, "Date": "9\/14\/2006", "Time": "04:10 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "920-A W WINDLAKE AV", "Location": [ 43.009038, -87.923211 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.923210536643708, 43.009038261728868 ] } }, { "type": "Feature", "properties": { "Incident number": 62550016, "Date": "9\/12\/2006", "Time": "12:47 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1324 S 21ST ST", "Location": [ 43.017534, -87.939416 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.939415955710245, 43.017534 ] } }, { "type": "Feature", "properties": { "Incident number": 62550033, "Date": "9\/12\/2006", "Time": "07:29 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "1724 S 7TH ST", "Location": [ 43.011728, -87.919865 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.919864907957987, 43.011728077990654 ] } }, { "type": "Feature", "properties": { "Incident number": 62550133, "Date": "9\/12\/2006", "Time": "03:31 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1512 W MINERAL ST", "Location": [ 43.021185, -87.930990 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.93099, 43.021184529863049 ] } }, { "type": "Feature", "properties": { "Incident number": 62540004, "Date": "9\/11\/2006", "Time": "12:11 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1635 S 1ST ST", "Location": [ 43.013642, -87.911174 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.911173956460033, 43.013641778233072 ] } }, { "type": "Feature", "properties": { "Incident number": 62540095, "Date": "9\/11\/2006", "Time": "09:34 AM", "Police District": 6.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1411 S COMSTOCK AV", "Location": [ 43.016667, -87.936332 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 0, "g_clusterK8": 0, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 2, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.93633180171949, 43.016666646142212 ] } }, { "type": "Feature", "properties": { "Incident number": 62520192, "Date": "9\/9\/2006", "Time": "07:25 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1546 S 7TH ST", "Location": [ 43.014924, -87.919754 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.919754462346646, 43.014923633360269 ] } }, { "type": "Feature", "properties": { "Incident number": 62500200, "Date": "9\/7\/2006", "Time": "09:34 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2362 S 9TH ST #A", "Location": [ 43.001448, -87.922373 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.922373419066503, 43.001448380518205 ] } }, { "type": "Feature", "properties": { "Incident number": 62480121, "Date": "9\/5\/2006", "Time": "11:16 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "700 W BRUCE ST", "Location": [ 43.025402, -87.919685 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.91968460851848, 43.025402117262423 ] } }, { "type": "Feature", "properties": { "Incident number": 62460150, "Date": "9\/3\/2006", "Time": "04:36 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2059 S 15TH PL", "Location": [ 43.007060, -87.932321 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.932320500432681, 43.007059760199674 ] } }, { "type": "Feature", "properties": { "Incident number": 62450097, "Date": "9\/2\/2006", "Time": "12:18 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2517 S 10TH ST", "Location": [ 42.998734, -87.924930 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.924930048184933, 42.998733922009365 ] } }, { "type": "Feature", "properties": { "Incident number": 62450118, "Date": "9\/2\/2006", "Time": "01:50 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1220 S 12TH ST", "Location": [ 43.018812, -87.926696 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.92669561642056, 43.018812106194652 ] } }, { "type": "Feature", "properties": { "Incident number": 62450119, "Date": "9\/2\/2006", "Time": "02:05 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1223 S 9TH ST", "Location": [ 43.018452, -87.922542 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.922541544289757, 43.018452 ] } }, { "type": "Feature", "properties": { "Incident number": 62440106, "Date": "9\/1\/2006", "Time": "02:14 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "713 W BRUCE ST", "Location": [ 43.025289, -87.920253 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 2 }, "geometry": { "type": "Point", "coordinates": [ -87.920253, 43.025288502885552 ] } }, { "type": "Feature", "properties": { "Incident number": 62630086, "Date": "9\/20\/2006", "Time": "12:42 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4352 S QUINCY AV", "Location": [ 42.965190, -87.902075 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.90207497735031, 42.965189832361936 ] } }, { "type": "Feature", "properties": { "Incident number": 62580023, "Date": "9\/15\/2006", "Time": "12:10 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "5881 S HOWELL AV", "Location": [ 42.937579, -87.909718 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.909717998238719, 42.937578690547547 ] } }, { "type": "Feature", "properties": { "Incident number": 62580157, "Date": "9\/15\/2006", "Time": "05:22 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "523-A E ARMOUR AV", "Location": [ 42.961755, -87.902713 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.902712555369618, 42.961754517312244 ] } }, { "type": "Feature", "properties": { "Incident number": 62580213, "Date": "9\/15\/2006", "Time": "10:31 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3672 S 5TH ST", "Location": [ 42.977654, -87.916745 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.916744955710243, 42.977653910352586 ] } }, { "type": "Feature", "properties": { "Incident number": 62560184, "Date": "9\/13\/2006", "Time": "06:18 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "4588 S 20TH ST #2", "Location": [ 42.960961, -87.938837 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.938836847293814, 42.96096108266569 ] } }, { "type": "Feature", "properties": { "Incident number": 62730040, "Date": "9\/30\/2006", "Time": "04:07 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3279 S KINNICKINNIC AV #4", "Location": [ 42.985140, -87.881812 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.881812299786247, 42.985139658607032 ] } }, { "type": "Feature", "properties": { "Incident number": 62670086, "Date": "9\/24\/2006", "Time": "11:32 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2245-A S LENOX ST", "Location": [ 43.003631, -87.897888 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.89788751543631, 43.003631483207357 ] } }, { "type": "Feature", "properties": { "Incident number": 62650169, "Date": "9\/22\/2006", "Time": "05:37 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3264 S AUSTIN ST", "Location": [ 42.985026, -87.906734 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.906734404639778, 42.985026335276139 ] } }, { "type": "Feature", "properties": { "Incident number": 62630027, "Date": "9\/20\/2006", "Time": "05:16 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "245 W LINCOLN AV", "Location": [ 43.002832, -87.913584 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.913584, 43.002832487881896 ] } }, { "type": "Feature", "properties": { "Incident number": 62620033, "Date": "9\/19\/2006", "Time": "06:30 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3134 S CALIFORNIA ST", "Location": [ 42.987365, -87.893026 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.89302591185313, 42.987365245628716 ] } }, { "type": "Feature", "properties": { "Incident number": 62600015, "Date": "9\/17\/2006", "Time": "12:04 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2401 S HOWELL AV", "Location": [ 43.000858, -87.904810 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.904809573720144, 43.000857670552257 ] } }, { "type": "Feature", "properties": { "Incident number": 62590219, "Date": "9\/16\/2006", "Time": "10:20 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3338 S WHITNALL AV #4", "Location": [ 42.983791, -87.905383 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.905382582809423, 42.983791292255773 ] } }, { "type": "Feature", "properties": { "Incident number": 62580156, "Date": "9\/15\/2006", "Time": "05:14 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2753 S 14TH ST", "Location": [ 42.994785, -87.930014 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.930013881762392, 42.994784533164548 ] } }, { "type": "Feature", "properties": { "Incident number": 62540221, "Date": "9\/11\/2006", "Time": "08:04 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2867 S KINNICKINNIC AV #322", "Location": [ 42.992418, -87.889246 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.889246207340207, 42.992417582232505 ] } }, { "type": "Feature", "properties": { "Incident number": 62530031, "Date": "9\/10\/2006", "Time": "05:01 AM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "575 W BECHER ST", "Location": [ 43.006430, -87.918264 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 3, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.918264, 43.00643049567217 ] } }, { "type": "Feature", "properties": { "Incident number": 62530197, "Date": "9\/10\/2006", "Time": "08:58 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2871 S 7TH ST", "Location": [ 42.992137, -87.920218 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.920217573720151, 42.992136922009365 ] } }, { "type": "Feature", "properties": { "Incident number": 62530223, "Date": "9\/10\/2006", "Time": "09:53 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3446 S 11TH ST", "Location": [ 42.981794, -87.926424 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.92642393738835, 42.981794413266783 ] } }, { "type": "Feature", "properties": { "Incident number": 62490100, "Date": "9\/6\/2006", "Time": "01:37 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2868 S 8TH ST", "Location": [ 42.992135, -87.921362 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 2, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.921362411853124, 42.992135413266794 ] } }, { "type": "Feature", "properties": { "Incident number": 62460127, "Date": "9\/3\/2006", "Time": "02:44 PM", "Police District": 2.0, "Offense 1": "SIMPLE ASSAULT", "Address": "396 E BECHER ST", "Location": [ 43.006811, -87.904390 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 0, "e_clusterK5": 0, "g_clusterK5": 0, "e_clusterK6": 0, "g_clusterK6": 0, "e_clusterK7": 6, "g_clusterK7": 6, "e_clusterK8": 1, "g_clusterK8": 1, "e_clusterK9": 2, "g_clusterK9": 3, "e_clusterK10": 1, "g_clusterK10": 1 }, "geometry": { "type": "Point", "coordinates": [ -87.904390416180959, 43.006811489324186 ] } }, { "type": "Feature", "properties": { "Incident number": 62730080, "Date": "9\/30\/2006", "Time": "11:22 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1338 W FOND DU LAC AV #101", "Location": [ 43.053996, -87.929600 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.929599578089352, 43.053995994120037 ] } }, { "type": "Feature", "properties": { "Incident number": 62730114, "Date": "9\/30\/2006", "Time": "02:56 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3821 W LOCUST ST", "Location": [ 43.071505, -87.961630 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.961630332361949, 43.071504539529251 ] } }, { "type": "Feature", "properties": { "Incident number": 62730176, "Date": "9\/30\/2006", "Time": "08:50 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2029 N 23RD ST", "Location": [ 43.057045, -87.941378 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.941378066506772, 43.057044502914181 ] } }, { "type": "Feature", "properties": { "Incident number": 62720037, "Date": "9\/29\/2006", "Time": "07:34 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1818 N 14TH ST", "Location": [ 43.054829, -87.930369 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.930368515377879, 43.054828865665108 ] } }, { "type": "Feature", "properties": { "Incident number": 62700238, "Date": "9\/27\/2006", "Time": "11:33 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1800 N 36TH ST", "Location": [ 43.053321, -87.958763 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.9587634884588, 43.053321447400329 ] } }, { "type": "Feature", "properties": { "Incident number": 62690161, "Date": "9\/26\/2006", "Time": "03:22 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DESTRUCTION\/DAMAGE\/VANDALISM OF PROPERTY", "Address": "2550 N 37TH ST", "Location": [ 43.065386, -87.959775 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.959775386317915, 43.06538624562873 ] } }, { "type": "Feature", "properties": { "Incident number": 62690236, "Date": "9\/26\/2006", "Time": "07:25 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2735 N 41ST ST", "Location": [ 43.068700, -87.964550 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.964550080933478, 43.06870000582839 ] } }, { "type": "Feature", "properties": { "Incident number": 62680014, "Date": "9\/25\/2006", "Time": "01:42 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2473 N 34TH ST", "Location": [ 43.064038, -87.956300 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.956299632003962, 43.064037754371299 ] } }, { "type": "Feature", "properties": { "Incident number": 62660206, "Date": "9\/23\/2006", "Time": "08:59 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2330 N 44TH ST", "Location": [ 43.061364, -87.968815 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.968814911853116, 43.061363832361934 ] } }, { "type": "Feature", "properties": { "Incident number": 62650204, "Date": "9\/22\/2006", "Time": "08:46 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2500 N 17TH ST", "Location": [ 43.064120, -87.933753 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933753303919318, 43.064120492780759 ] } }, { "type": "Feature", "properties": { "Incident number": 62640022, "Date": "9\/21\/2006", "Time": "01:47 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "BURGLARY\/BREAKING AND ENTERING", "Address": "2449 N 21ST ST", "Location": [ 43.063444, -87.938800 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 0, "g_clusterK7": 4, "e_clusterK8": 7, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.938799566506773, 43.063443586733229 ] } }, { "type": "Feature", "properties": { "Incident number": 62640024, "Date": "9\/21\/2006", "Time": "03:50 AM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "928 W MEINECKE AV #2", "Location": [ 43.062173, -87.923763 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.923762832361945, 43.062172500432681 ] } }, { "type": "Feature", "properties": { "Incident number": 62630102, "Date": "9\/20\/2006", "Time": "02:04 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2146 N 35TH ST #LWR", "Location": [ 43.058537, -87.957525 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.957524867996042, 43.058537497085808 ] } }, { "type": "Feature", "properties": { "Incident number": 62630113, "Date": "9\/20\/2006", "Time": "02:21 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4236 W LISBON AV #1", "Location": [ 43.057530, -87.967120 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.967120213139935, 43.05752957980831 ] } }, { "type": "Feature", "properties": { "Incident number": 62620035, "Date": "9\/19\/2006", "Time": "06:15 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4028 W LISBON AV", "Location": [ 43.056193, -87.964487 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.964486822494209, 43.056192645305494 ] } }, { "type": "Feature", "properties": { "Incident number": 62620167, "Date": "9\/19\/2006", "Time": "02:48 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2133 N SHERMAN BLVD", "Location": [ 43.058180, -87.967733 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.967732642443522, 43.058179735373571 ] } }, { "type": "Feature", "properties": { "Incident number": 62620227, "Date": "9\/19\/2006", "Time": "07:30 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1821 N 28TH ST", "Location": [ 43.053921, -87.948814 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.94881369678366, 43.053921393919509 ] } }, { "type": "Feature", "properties": { "Incident number": 62610033, "Date": "9\/18\/2006", "Time": "01:00 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2424 N 34TH ST", "Location": [ 43.063046, -87.956253 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.956253379104538, 43.063046245628726 ] } }, { "type": "Feature", "properties": { "Incident number": 62610216, "Date": "9\/18\/2006", "Time": "07:10 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2502 N 39TH ST", "Location": [ 43.064306, -87.962186 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.962185915171361, 43.064306245628728 ] } }, { "type": "Feature", "properties": { "Incident number": 62610239, "Date": "9\/18\/2006", "Time": "08:33 PM", "Police District": 3.0, "Offense 1": "DISORDERLY CONDUCT", "Offense 2": "SIMPLE ASSAULT", "Address": "2658 N 51ST ST", "Location": [ 43.067295, -87.977436 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 4, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.977435896849485, 43.067295167638072 ] } }, { "type": "Feature", "properties": { "Incident number": 62600117, "Date": "9\/17\/2006", "Time": "11:09 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2702 N 40TH ST", "Location": [ 43.068032, -87.963313 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.963312904639778, 43.068032413266792 ] } }, { "type": "Feature", "properties": { "Incident number": 62600145, "Date": "9\/17\/2006", "Time": "03:09 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2456 N 9TH ST", "Location": [ 43.063578, -87.922636 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.922635911853121, 43.063578 ] } }, { "type": "Feature", "properties": { "Incident number": 62600155, "Date": "9\/17\/2006", "Time": "04:55 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1817 N 14TH ST", "Location": [ 43.054992, -87.930300 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.930299640025368, 43.054991653903826 ] } }, { "type": "Feature", "properties": { "Incident number": 62600188, "Date": "9\/17\/2006", "Time": "07:23 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2912 W GALENA ST", "Location": [ 43.051445, -87.950290 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.95029008090485, 43.051445474897491 ] } }, { "type": "Feature", "properties": { "Incident number": 62590012, "Date": "9\/16\/2006", "Time": "12:44 AM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2877 N 27TH ST", "Location": [ 43.071273, -87.947349 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.947349153644026, 43.071273167638047 ] } }, { "type": "Feature", "properties": { "Incident number": 62590161, "Date": "9\/16\/2006", "Time": "04:29 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2561 N 15TH ST", "Location": [ 43.065396, -87.931338 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.931337592042013, 43.065396167638056 ] } }, { "type": "Feature", "properties": { "Incident number": 62580014, "Date": "9\/15\/2006", "Time": "12:45 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2557 N 40TH ST", "Location": [ 43.065414, -87.963408 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.96340807703838, 43.065414335276138 ] } }, { "type": "Feature", "properties": { "Incident number": 62560012, "Date": "9\/13\/2006", "Time": "01:24 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1800 N 36TH ST", "Location": [ 43.053321, -87.958763 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.9587634884588, 43.053321447400329 ] } }, { "type": "Feature", "properties": { "Incident number": 62560205, "Date": "9\/13\/2006", "Time": "07:25 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1329 W CENTER ST", "Location": [ 43.067647, -87.928492 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.92849211226843, 43.067647499567315 ] } }, { "type": "Feature", "properties": { "Incident number": 62560236, "Date": "9\/13\/2006", "Time": "10:50 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2453 N 17TH ST #9", "Location": [ 43.063479, -87.933851 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.93385062479058, 43.063479167638064 ] } }, { "type": "Feature", "properties": { "Incident number": 62550149, "Date": "9\/12\/2006", "Time": "05:05 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3620 W KILBOURN AV #1", "Location": [ 43.041712, -87.959223 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 1, "g_clusterK3": 1, "e_clusterK4": 0, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 2, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.959223083819026, 43.04171249321935 ] } }, { "type": "Feature", "properties": { "Incident number": 62540013, "Date": "9\/11\/2006", "Time": "01:01 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "ALL OTHER OFFENSES", "Address": "4950 W LISBON AV", "Location": [ 43.062011, -87.975606 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.975605818269841, 43.062011033889071 ] } }, { "type": "Feature", "properties": { "Incident number": 62530089, "Date": "9\/10\/2006", "Time": "10:28 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2141 N 44TH ST", "Location": [ 43.058043, -87.968890 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.968890113682079, 43.058042748542903 ] } }, { "type": "Feature", "properties": { "Incident number": 62520198, "Date": "9\/9\/2006", "Time": "04:31 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4012 W LISBON AV", "Location": [ 43.055934, -87.964011 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.964010843730236, 43.055933740233009 ] } }, { "type": "Feature", "properties": { "Incident number": 62520214, "Date": "9\/9\/2006", "Time": "07:43 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2353 N 17TH ST", "Location": [ 43.061393, -87.933899 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 7, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.933899311354537, 43.061392890026454 ] } }, { "type": "Feature", "properties": { "Incident number": 62510060, "Date": "9\/8\/2006", "Time": "08:31 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2607 N 48TH ST", "Location": [ 43.066314, -87.973741 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.97374057372015, 43.066314167638076 ] } }, { "type": "Feature", "properties": { "Incident number": 62510388, "Date": "9\/8\/2006", "Time": "07:34 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2502 N 38TH ST #LWR", "Location": [ 43.064379, -87.961015 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.9610149190665, 43.064378664723883 ] } }, { "type": "Feature", "properties": { "Incident number": 62500082, "Date": "9\/7\/2006", "Time": "12:00 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Offense 2": "DISORDERLY CONDUCT", "Address": "2504 W LLOYD ST", "Location": [ 43.057810, -87.945310 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.945309723007682, 43.057810486005963 ] } }, { "type": "Feature", "properties": { "Incident number": 62500173, "Date": "9\/7\/2006", "Time": "07:12 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2554 N 19TH ST", "Location": [ 43.065368, -87.936213 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.936213386317917, 43.065368413266782 ] } }, { "type": "Feature", "properties": { "Incident number": 62480043, "Date": "9\/5\/2006", "Time": "06:28 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "3307 W WALNUT ST", "Location": [ 43.052840, -87.955601 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.955600919095147, 43.052840488458827 ] } }, { "type": "Feature", "properties": { "Incident number": 62480160, "Date": "9\/5\/2006", "Time": "04:18 PM", "Police District": 5.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1345 W HADLEY ST #UPR", "Location": [ 43.069492, -87.928902 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 6, "e_clusterK9": 0, "g_clusterK9": 0, "e_clusterK10": 0, "g_clusterK10": 0 }, "geometry": { "type": "Point", "coordinates": [ -87.928902335276121, 43.069491525102542 ] } }, { "type": "Feature", "properties": { "Incident number": 62470167, "Date": "9\/4\/2006", "Time": "08:16 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2120 N 15TH ST", "Location": [ 43.058403, -87.931385 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 2, "g_clusterK6": 2, "e_clusterK7": 4, "g_clusterK7": 4, "e_clusterK8": 6, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 0, "g_clusterK10": 9 }, "geometry": { "type": "Point", "coordinates": [ -87.931385447919936, 43.058403220093481 ] } }, { "type": "Feature", "properties": { "Incident number": 62470184, "Date": "9\/4\/2006", "Time": "09:45 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2506 N 46TH ST", "Location": [ 43.064505, -87.971154 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.971153853569319, 43.064505335276138 ] } }, { "type": "Feature", "properties": { "Incident number": 62480004, "Date": "9\/4\/2006", "Time": "11:53 PM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2423 W LISBON AV", "Location": [ 43.052769, -87.943340 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 3, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.943340230653746, 43.052768991372993 ] } }, { "type": "Feature", "properties": { "Incident number": 62460108, "Date": "9\/3\/2006", "Time": "01:23 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2709 N 40TH ST #A", "Location": [ 43.068151, -87.963390 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.963389620895441, 43.068150586733225 ] } }, { "type": "Feature", "properties": { "Incident number": 62440019, "Date": "9\/1\/2006", "Time": "02:12 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "2469 N 38TH ST", "Location": [ 43.063956, -87.961090 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 1, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 3, "e_clusterK9": 8, "g_clusterK9": 8, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.961089580933489, 43.063956167638047 ] } }, { "type": "Feature", "properties": { "Incident number": 62440054, "Date": "9\/1\/2006", "Time": "07:46 AM", "Police District": 3.0, "Offense 1": "SIMPLE ASSAULT", "Address": "1335 N 37TH PL #A", "Location": [ 43.047900, -87.960401 ], "e_clusterK2": 0, "g_clusterK2": 0, "e_clusterK3": 0, "g_clusterK3": 0, "e_clusterK4": 1, "g_clusterK4": 3, "e_clusterK5": 3, "g_clusterK5": 3, "e_clusterK6": 1, "g_clusterK6": 1, "e_clusterK7": 0, "g_clusterK7": 0, "e_clusterK8": 7, "g_clusterK8": 7, "e_clusterK9": 7, "g_clusterK9": 7, "e_clusterK10": 5, "g_clusterK10": 5 }, "geometry": { "type": "Point", "coordinates": [ -87.960401080933494, 43.047900167638062 ] } } ] }
var exp = Math.exp; var pow = Math.pow; var E = Math.E; function squared(n) { return Math.pow(n, 2); } exports = module.exports = function MovingAverage(timespan) { if (typeof timespan != 'number') throw new Error('must provide a timespan to the moving average constructor'); if (timespan <= 0) throw new Error('must provide a timespan > 0 to the moving average constructor'); var ma; // moving average var v = 0; // variance var nSamples = 0; var previousTime; var ret = {}; function alpha(t, pt) { return 1 - (exp(- (t - pt) / timespan)); } ret.push = function push(time, value) { nSamples++; if (previousTime) { // calculate moving average var a = alpha(time, previousTime); var previousMa = ma; ma = a * value + (1 - a) * ma; // calculate variance v = v + (value - previousMa) * (value - ma); } else { ma = value; } previousTime = time; }; // Exponential Moving Average ret.movingAverage = function movingAverage() { return ma; }; // Variance ret.variance = function variance() { return v / nSamples; }; return ret; };
/* * Globalize Culture te * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need to be fixed in the generator */ (function( window, undefined ) { var Globalize; if ( typeof require !== "undefined" && typeof exports !== "undefined" && typeof module !== "undefined" ) { // Assume CommonJS Globalize = require( "globalize" ); } else { // Global variable Globalize = window.Globalize; } Globalize.addCultureInfo( "te", "default", { name: "te", englishName: "Telugu", nativeName: "తెలుగు", language: "te", numberFormat: { groupSizes: [3,2], percent: { groupSizes: [3,2] }, currency: { pattern: ["$ -n","$ n"], groupSizes: [3,2], symbol: "రూ" } }, calendars: { standard: { "/": "-", firstDay: 1, days: { names: ["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"], namesAbbr: ["ఆది.","సోమ.","మంగళ.","బుధ.","గురు.","శుక్ర.","శని."], namesShort: ["ఆ","సో","మం","బు","గు","శు","శ"] }, months: { names: ["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""], namesAbbr: ["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""] }, AM: ["పూర్వాహ్న","పూర్వాహ్న","పూర్వాహ్న"], PM: ["అపరాహ్న","అపరాహ్న","అపరాహ్న"], patterns: { d: "dd-MM-yy", D: "dd MMMM yyyy", t: "HH:mm", T: "HH:mm:ss", f: "dd MMMM yyyy HH:mm", F: "dd MMMM yyyy HH:mm:ss", M: "dd MMMM" } } } }); }( this ));
//if we are providing a global variables we need to get them out of use-strict-function pattern var puzzles; (function () { // This prevents problems when concatenating scripts that aren't strict. 'use strict'; /** * @description * ## Info * This namespace contains all puzzles that are added on the top of core of CollaboFramework * @namespace puzzles */ if(typeof puzzles == 'undefined') puzzles = {}; }()); // end of 'use strict';
define(['start/controllers/home'], function() {});
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; const models = require('./index'); /** * Defines the application health policy map used to evaluate the health of an * application or one of its children entities. * * */ class ApplicationHealthPolicies { /** * Create a ApplicationHealthPolicies. * @member {array} [applicationHealthPolicyMap] */ constructor() { } /** * Defines the metadata of ApplicationHealthPolicies * * @returns {object} metadata of ApplicationHealthPolicies * */ mapper() { return { required: false, serializedName: 'ApplicationHealthPolicies', type: { name: 'Composite', className: 'ApplicationHealthPolicies', modelProperties: { applicationHealthPolicyMap: { required: false, serializedName: 'ApplicationHealthPolicyMap', type: { name: 'Sequence', element: { required: false, serializedName: 'ApplicationHealthPolicyMapItemElementType', type: { name: 'Composite', className: 'ApplicationHealthPolicyMapItem' } } } } } } }; } } module.exports = ApplicationHealthPolicies;
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; const models = require('./index'); /** * Backup resource vault config details. * * @extends models['Resource'] */ class BackupResourceVaultConfigResource extends models['Resource'] { /** * Create a BackupResourceVaultConfigResource. * @member {object} [properties] BackupResourceVaultConfigResource properties * @member {string} [properties.storageType] Storage type. Possible values * include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' * @member {string} [properties.storageTypeState] Locked or Unlocked. Once a * machine is registered against a resource, the storageTypeState is always * Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' * @member {string} [properties.enhancedSecurityState] Enabled or Disabled. * Possible values include: 'Invalid', 'Enabled', 'Disabled' */ constructor() { super(); } /** * Defines the metadata of BackupResourceVaultConfigResource * * @returns {object} metadata of BackupResourceVaultConfigResource * */ mapper() { return { required: false, serializedName: 'BackupResourceVaultConfigResource', type: { name: 'Composite', className: 'BackupResourceVaultConfigResource', modelProperties: { id: { required: false, readOnly: true, serializedName: 'id', type: { name: 'String' } }, name: { required: false, readOnly: true, serializedName: 'name', type: { name: 'String' } }, type: { required: false, readOnly: true, serializedName: 'type', type: { name: 'String' } }, location: { required: false, serializedName: 'location', type: { name: 'String' } }, tags: { required: false, serializedName: 'tags', type: { name: 'Dictionary', value: { required: false, serializedName: 'StringElementType', type: { name: 'String' } } } }, eTag: { required: false, serializedName: 'eTag', type: { name: 'String' } }, properties: { required: false, serializedName: 'properties', type: { name: 'Composite', className: 'BackupResourceVaultConfig' } } } } }; } } module.exports = BackupResourceVaultConfigResource;
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { ATTRIBUTE_NAME_CHAR, ATTRIBUTE_NAME_START_CHAR, ID_ATTRIBUTE_NAME, ROOT_ATTRIBUTE_NAME, getPropertyInfo, shouldSetAttribute, } from '../shared/DOMProperty'; import warning from 'fbjs/lib/warning'; // isAttributeNameSafe() is currently duplicated in DOMMarkupOperations. // TODO: Find a better place for this. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp( '^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$', ); var illegalAttributeNameCache = {}; var validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { return true; } if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { return false; } if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { validatedAttributeNameCache[attributeName] = true; return true; } illegalAttributeNameCache[attributeName] = true; if (__DEV__) { warning(false, 'Invalid attribute name: `%s`', attributeName); } return false; } // shouldIgnoreValue() is currently duplicated in DOMMarkupOperations. // TODO: Find a better place for this. function shouldIgnoreValue(propertyInfo, value) { return ( value == null || (propertyInfo.hasBooleanValue && !value) || (propertyInfo.hasNumericValue && isNaN(value)) || (propertyInfo.hasPositiveNumericValue && value < 1) || (propertyInfo.hasOverloadedBooleanValue && value === false) ); } /** * Operations for dealing with DOM properties. */ export function setAttributeForID(node, id) { node.setAttribute(ID_ATTRIBUTE_NAME, id); } export function setAttributeForRoot(node) { node.setAttribute(ROOT_ATTRIBUTE_NAME, ''); } /** * Get the value for a property on a node. Only used in DEV for SSR validation. * The "expected" argument is used as a hint of what the expected value is. * Some properties have multiple equivalent values. */ export function getValueForProperty(node, name, expected) { if (__DEV__) { var propertyInfo = getPropertyInfo(name); if (propertyInfo) { var mutationMethod = propertyInfo.mutationMethod; if (mutationMethod || propertyInfo.mustUseProperty) { return node[propertyInfo.propertyName]; } else { var attributeName = propertyInfo.attributeName; var stringValue = null; if (propertyInfo.hasOverloadedBooleanValue) { if (node.hasAttribute(attributeName)) { var value = node.getAttribute(attributeName); if (value === '') { return true; } if (shouldIgnoreValue(propertyInfo, expected)) { return value; } if (value === '' + expected) { return expected; } return value; } } else if (node.hasAttribute(attributeName)) { if (shouldIgnoreValue(propertyInfo, expected)) { // We had an attribute but shouldn't have had one, so read it // for the error message. return node.getAttribute(attributeName); } if (propertyInfo.hasBooleanValue) { // If this was a boolean, it doesn't matter what the value is // the fact that we have it is the same as the expected. return expected; } // Even if this property uses a namespace we use getAttribute // because we assume its namespaced name is the same as our config. // To use getAttributeNS we need the local name which we don't have // in our config atm. stringValue = node.getAttribute(attributeName); } if (shouldIgnoreValue(propertyInfo, expected)) { return stringValue === null ? expected : stringValue; } else if (stringValue === '' + expected) { return expected; } else { return stringValue; } } } } } /** * Get the value for a attribute on a node. Only used in DEV for SSR validation. * The third argument is used as a hint of what the expected value is. Some * attributes have multiple equivalent values. */ export function getValueForAttribute(node, name, expected) { if (__DEV__) { if (!isAttributeNameSafe(name)) { return; } if (!node.hasAttribute(name)) { return expected === undefined ? undefined : null; } var value = node.getAttribute(name); if (value === '' + expected) { return expected; } return value; } } /** * Sets the value for a property on a node. * * @param {DOMElement} node * @param {string} name * @param {*} value */ export function setValueForProperty(node, name, value) { var propertyInfo = getPropertyInfo(name); if (propertyInfo && shouldSetAttribute(name, value)) { var mutationMethod = propertyInfo.mutationMethod; if (mutationMethod) { mutationMethod(node, value); } else if (shouldIgnoreValue(propertyInfo, value)) { deleteValueForProperty(node, name); return; } else if (propertyInfo.mustUseProperty) { // Contrary to `setAttribute`, object properties are properly // `toString`ed by IE8/9. node[propertyInfo.propertyName] = value; } else { var attributeName = propertyInfo.attributeName; var namespace = propertyInfo.attributeNamespace; // `setAttribute` with objects becomes only `[object]` in IE8/9, // ('' + value) makes it output the correct toString()-value. if (namespace) { node.setAttributeNS(namespace, attributeName, '' + value); } else if ( propertyInfo.hasBooleanValue || (propertyInfo.hasOverloadedBooleanValue && value === true) ) { node.setAttribute(attributeName, ''); } else { node.setAttribute(attributeName, '' + value); } } } else { setValueForAttribute( node, name, shouldSetAttribute(name, value) ? value : null, ); return; } if (__DEV__) { var payload = {}; payload[name] = value; } } export function setValueForAttribute(node, name, value) { if (!isAttributeNameSafe(name)) { return; } if (value == null) { node.removeAttribute(name); } else { node.setAttribute(name, '' + value); } if (__DEV__) { var payload = {}; payload[name] = value; } } /** * Deletes an attributes from a node. * * @param {DOMElement} node * @param {string} name */ export function deleteValueForAttribute(node, name) { node.removeAttribute(name); } /** * Deletes the value for a property on a node. * * @param {DOMElement} node * @param {string} name */ export function deleteValueForProperty(node, name) { var propertyInfo = getPropertyInfo(name); if (propertyInfo) { var mutationMethod = propertyInfo.mutationMethod; if (mutationMethod) { mutationMethod(node, undefined); } else if (propertyInfo.mustUseProperty) { var propName = propertyInfo.propertyName; if (propertyInfo.hasBooleanValue) { node[propName] = false; } else { node[propName] = ''; } } else { node.removeAttribute(propertyInfo.attributeName); } } else { node.removeAttribute(name); } }
'use strict'; cApp.controller('loginController',function($scope,DecentralStorage,$location,$rootScope,WalletManager,Session,Encryption){ /**********login init***********/ $scope.pageClass = 'page-login'; var storage= DecentralStorage; var password,passphrase; $scope.page = 1; $scope.form = {}; /**********login init end***********/ $scope.nextPage = function() { $scope.page++; }; $scope.previousPage = function() { $scope.page--; }; Session.isAuthenticated(); $scope.login=function(password1,password2) { if(password1 && password2 && password1 === password2) { DecentralStorage.get("password", function(database) { if(database) { var hash = database["password"]["password"]; console.log(hash + hash.length); if(hash == Encryption.hash(password1)) { Session.initialize(); } else { alert("incorrect password"); } } else { console.log("failed to retrieve"); } }); } }; $scope.submit=function(password1,password2) { console.log(password1 + " " + password2); if(password1 && password2 && password1 === password2) { password = password1; $scope.nextPage(); var mnemonic = new Mnemonic(128); console.log(mnemonic.toWords().join(' ')); $scope.mnemonic = mnemonic.toWords().join(' '); passphrase = $scope.mnemonic; } }; $scope.wordsSubmit = function() { DecentralStorage.save("password","password",Encryption.hash(password)); DecentralStorage.save("passphrase","passphrase",Encryption.hash(passphrase)); Session.initialize(); }; });//end login controller
/** @Name : layui.laytpl 模板引擎 @Author:贤心 @License:LGPL */ layui.define(function(exports){ "use strict"; var config = { open: '{{', close: '}}' }; var tool = { exp: function(str){ return new RegExp(str, 'g'); }, //匹配满足规则内容 query: function(type, _, __){ var types = [ '#([\\s\\S])+?', //js语句 '([^{#}])*?' //普通字段 ][type || 0]; return exp((_||'') + config.open + types + config.close + (__||'')); }, escape: function(html){ return String(html||'').replace(/&(?!#?[a-zA-Z0-9]+;)/g, '&amp;') .replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/'/g, '&#39;').replace(/"/g, '&quot;'); }, error: function(e, tplog){ var error = 'Laytpl Error:'; typeof console === 'object' && console.error(error + e + '\n'+ (tplog || '')); return error + e; } }; var exp = tool.exp, Tpl = function(tpl){ this.tpl = tpl; }; Tpl.pt = Tpl.prototype; window.errors = 0; //编译模版 Tpl.pt.parse = function(tpl, data){ var that = this, tplog = tpl; var jss = exp('^'+config.open+'#', ''), jsse = exp(config.close+'$', ''); tpl = tpl.replace(/\s+|\r|\t|\n/g, ' ').replace(exp(config.open+'#'), config.open+'# ') .replace(exp(config.close+'}'), '} '+config.close).replace(/\\/g, '\\\\') .replace(/(?="|')/g, '\\').replace(tool.query(), function(str){ str = str.replace(jss, '').replace(jsse, ''); return '";' + str.replace(/\\/g, '') + ';view+="'; }) .replace(tool.query(1), function(str){ var start = '"+('; if(str.replace(/\s/g, '') === config.open+config.close){ return ''; } str = str.replace(exp(config.open+'|'+config.close), ''); if(/^=/.test(str)){ str = str.replace(/^=/, ''); start = '"+_escape_('; } return start + str.replace(/\\/g, '') + ')+"'; }); tpl = '"use strict";var view = "' + tpl + '";return view;'; try{ that.cache = tpl = new Function('d, _escape_', tpl); return tpl(data, tool.escape); } catch(e){ delete that.cache; return tool.error(e, tplog); } }; Tpl.pt.render = function(data, callback){ var that = this, tpl; if(!data) return tool.error('no data'); tpl = that.cache ? that.cache(data, tool.escape) : that.parse(that.tpl, data); console.log() if(!callback) return tpl; callback(tpl); }; var laytpl = function(tpl){ if(typeof tpl !== 'string') return tool.error('Template not found'); return new Tpl(tpl); }; laytpl.config = function(options){ options = options || {}; for(var i in options){ config[i] = options[i]; } }; laytpl.v = '1.2.0'; exports('laytpl', laytpl); });
var LazyWrapper = require('./_LazyWrapper'), getData = require('./_getData'), getFuncName = require('./_getFuncName'), lodash = require('./wrapperLodash'); /** * Checks if `func` has a lazy counterpart. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`. */ function isLaziable(func) { var funcName = getFuncName(func), other = lodash[funcName]; if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { return false; } if (func === other) { return true; } var data = getData(other); return !!data && func === data[0]; } module.exports = isLaziable;
'use strict'; const express = require('express'); const router = express.Router(); // eslint-disable-line new-cap router.post('/commands/:commandName/execute', require('./executeCommand')); router.get('/commands/:commandName/execute', require('./executeCommand')); router.get('/commands', require('./getCommandsRoute')); module.exports = router;
import Workers from './Workers'; export default Workers;
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); var _cloneChildren = require('../utils/cloneChildren'); var _cloneChildren2 = _interopRequireDefault(_cloneChildren); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var Section = function Section(props) { var className = props.className, logo = props.logo, size = props.size, type = props.type, children = props.children, otherProps = _objectWithoutProperties(props, ['className', 'logo', 'size', 'type', 'children']); var classes = (0, _classnames2.default)(_defineProperty({}, 'mdl-' + size + '-footer__' + type + '-section', true), className); return _react2.default.createElement( 'div', _extends({ className: classes }, otherProps), logo ? _react2.default.createElement( 'div', { className: 'mdl-logo' }, logo ) : null, (0, _cloneChildren2.default)(children, { size: size }) ); }; Section.propTypes = { className: _react.PropTypes.string, logo: _react.PropTypes.node, size: _react.PropTypes.oneOf(['mini', 'mega']), type: _react.PropTypes.oneOf(['top', 'middle', 'bottom', 'left', 'right']) }; Section.defaultProps = { size: 'mega', type: 'left' }; exports.default = Section;
export const TAG_NAMES = { META: "meta", LINK: "link" }; export const TAG_PROPERTIES = { NAME: "name", CHARSET: "charset", HTTPEQUIV: "http-equiv", REL: "rel", HREF: "href", PROPERTY: "property" };
var select = require('xml-crypto').xpath.SelectNodes , dom = require('xmldom').DOMParser , SignedXml = require('xml-crypto').SignedXml , FileKeyInfo = require('xml-crypto').FileKeyInfo , fs = require('fs') function signXml(xml, xpath, key, dest) { var sig = new SignedXml() sig.signingKey = fs.readFileSync(key) sig.addReference(xpath) sig.computeSignature(xml) fs.writeFileSync(dest, sig.getSignedXml()) } function validateXml(xml, key) { var doc = new dom().parseFromString(xml) var signature = select(doc, "/*/*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0] var sig = new SignedXml() sig.keyInfoProvider = new FileKeyInfo(key) sig.loadSignature(signature.toString()) var res = sig.checkSignature(xml) if (!res) console.log(sig.validationErrors) return res; } var xml = "<library>" + "<book>" + "<name>Harry Potter</name>" + "</book>" "</library>" //sign an xml document signXml(xml, "//*[local-name(.)='book']", "client.pem", "result.xml") console.log("xml signed succesfully") var signedXml = fs.readFileSync("result.xml").toString() console.log("validating signature...") //validate an xml document if (validateXml(signedXml, "client_public.pem")) console.log("signature is valid") else console.log("signature not valid")
module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: [ 'Chrome' ], launch_in_dev: [ ], browser_args: { Chrome: { mode: 'ci', args: [ '--disable-gpu', '--headless', '--remote-debugging-port=0', '--window-size=1440,900', '--no-sandbox' ] } } };
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var Compiler = require("./Compiler"); var MultiCompiler = require("./MultiCompiler"); var NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin"); var WebpackOptionsApply = require("./WebpackOptionsApply"); var WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter"); function webpack(options, callback) { var compiler; if(Array.isArray(options)) { compiler = new MultiCompiler(options.map(function(options) { return webpack(options); })); } else if(typeof options === "object") { new WebpackOptionsDefaulter().process(options); compiler = new Compiler(); compiler.options = options; compiler.options = new WebpackOptionsApply().process(options, compiler); new NodeEnvironmentPlugin().apply(compiler); compiler.applyPlugins("environment"); compiler.applyPlugins("after-environment"); } else { throw new Error("Invalid argument: options"); } if(callback) { if(typeof callback !== "function") throw new Error("Invalid argument: callback"); if(options.watch === true) { var watchOptions = (!Array.isArray(options) ? options : options[0]).watchOptions || {}; // TODO remove this in next major version var watchDelay = (!Array.isArray(options) ? options : options[0]).watchDelay; if(watchDelay) { console.warn("options.watchDelay is deprecated: Use 'options.watchOptions.aggregateTimeout' instead"); watchOptions.aggregateTimeout = watchDelay; } return compiler.watch(watchOptions, callback); } compiler.run(callback); } return compiler; } exports = module.exports = webpack; webpack.WebpackOptionsDefaulter = WebpackOptionsDefaulter; webpack.WebpackOptionsApply = WebpackOptionsApply; webpack.Compiler = Compiler; webpack.MultiCompiler = MultiCompiler; webpack.NodeEnvironmentPlugin = NodeEnvironmentPlugin; function exportPlugins(exports, path, plugins) { plugins.forEach(function(name) { Object.defineProperty(exports, name, { configurable: false, enumerable: true, get: function() { return require(path + "/" + name); } }); }); } exportPlugins(exports, ".", [ "DefinePlugin", "NormalModuleReplacementPlugin", "ContextReplacementPlugin", "IgnorePlugin", "WatchIgnorePlugin", "BannerPlugin", "PrefetchPlugin", "AutomaticPrefetchPlugin", "ProvidePlugin", "HotModuleReplacementPlugin", "ResolverPlugin", "SourceMapDevToolPlugin", "EvalSourceMapDevToolPlugin", "EvalDevToolModulePlugin", "CachePlugin", "ExtendedAPIPlugin", "ExternalsPlugin", "JsonpTemplatePlugin", "LibraryTemplatePlugin", "LoaderTargetPlugin", "MemoryOutputFileSystem", "ProgressPlugin", "SetVarMainTemplatePlugin", "UmdMainTemplatePlugin", "NoErrorsPlugin", "NewWatchingPlugin", "OldWatchingPlugin", "EnvironmentPlugin", "DllPlugin", "DllReferencePlugin" ]); exportPlugins(exports.optimize = {}, "./optimize", [ "AggressiveMergingPlugin", "CommonsChunkPlugin", "DedupePlugin", "LimitChunkCountPlugin", "MinChunkSizePlugin", "OccurenceOrderPlugin", "OccurrenceOrderPlugin", "UglifyJsPlugin" ]); exportPlugins(exports.dependencies = {}, "./dependencies", [ "LabeledModulesPlugin" ]);
setInterval(function() { console.log('ok'); }, 100); setInterval(function() { console.error('thisnok'); }, 100);
/* */ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', './collection-strategy'], function (exports, _aureliaDependencyInjection, _aureliaBinding, _collectionStrategy) { 'use strict'; exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MapCollectionStrategy = (function (_CollectionStrategy) { _inherits(MapCollectionStrategy, _CollectionStrategy); function MapCollectionStrategy(observerLocator) { _classCallCheck(this, _MapCollectionStrategy); _CollectionStrategy.call(this); this.observerLocator = observerLocator; } MapCollectionStrategy.prototype.getCollectionObserver = function getCollectionObserver(items) { return this.observerLocator.getMapObserver(items); }; MapCollectionStrategy.prototype.processItems = function processItems(items) { var _this = this; var viewFactory = this.viewFactory; var viewSlot = this.viewSlot; var index = 0; var overrideContext = undefined; var view = undefined; items.forEach(function (value, key) { overrideContext = _this.createFullOverrideContext(value, index, items.size, key); view = viewFactory.create(); view.bind(overrideContext.bindingContext, overrideContext); viewSlot.add(view); ++index; }); }; MapCollectionStrategy.prototype.handleChanges = function handleChanges(map, records) { var _this2 = this; var viewSlot = this.viewSlot; var key = undefined; var i = undefined; var ii = undefined; var view = undefined; var overrideContext = undefined; var removeIndex = undefined; var record = undefined; var rmPromises = []; var viewOrPromise = undefined; for (i = 0, ii = records.length; i < ii; ++i) { record = records[i]; key = record.key; switch (record.type) { case 'update': removeIndex = this._getViewIndexByKey(key); viewOrPromise = viewSlot.removeAt(removeIndex, true); if (viewOrPromise instanceof Promise) { rmPromises.push(viewOrPromise); } overrideContext = this.createFullOverrideContext(map.get(key), removeIndex, map.size, key); view = this.viewFactory.create(); view.bind(overrideContext.bindingContext, overrideContext); viewSlot.insert(removeIndex, view); break; case 'add': overrideContext = this.createFullOverrideContext(map.get(key), map.size - 1, map.size, key); view = this.viewFactory.create(); view.bind(overrideContext.bindingContext, overrideContext); viewSlot.insert(map.size - 1, view); break; case 'delete': if (record.oldValue === undefined) { return; } removeIndex = this._getViewIndexByKey(key); viewOrPromise = viewSlot.removeAt(removeIndex, true); if (viewOrPromise instanceof Promise) { rmPromises.push(viewOrPromise); } break; case 'clear': viewSlot.removeAll(true); break; default: continue; } } if (rmPromises.length > 0) { Promise.all(rmPromises).then(function () { _this2.updateOverrideContexts(0); }); } else { this.updateOverrideContexts(0); } }; MapCollectionStrategy.prototype._getViewIndexByKey = function _getViewIndexByKey(key) { var viewSlot = this.viewSlot; var i = undefined; var ii = undefined; var child = undefined; for (i = 0, ii = viewSlot.children.length; i < ii; ++i) { child = viewSlot.children[i]; if (child.overrideContext[this.key] === key) { return i; } } }; var _MapCollectionStrategy = MapCollectionStrategy; MapCollectionStrategy = _aureliaDependencyInjection.inject(_aureliaBinding.ObserverLocator)(MapCollectionStrategy) || MapCollectionStrategy; return MapCollectionStrategy; })(_collectionStrategy.CollectionStrategy); exports.MapCollectionStrategy = MapCollectionStrategy; });
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; define(['ojs/ojcore', 'jquery', 'ojs/ojcomponentcore'], function(oj, $) { /** * Copyright (c) 2014, Oracle and/or its affiliates. * All rights reserved. */ /* ** Important: ** - This file is designed to be shared verbatim among the ADFui products. ** - Do not add framework-specific dependencies in this file (it must be self-contained). ** - Do not change this file without testing it in other ADFui products (ADF Faces, JET, etc.). */ /** * Constructor. * @param {Object} elem DOM element associated with the conveyor * @param {string} orientation Direction of scrolling, either horizontal or vertical * @param {Object} contentParent DOM element whose children are the items to scroll * @param {boolean} bRtl True if the reading direction is right-to-left, otherwise false * @param {Object} buttonInfo Map of properties for the following button information: * - prevButtonId: Id to use for the scroll previous button, * - nextButtonId: Id to use for the scroll next button, * - prevButtonStyleClass: Style class name to use for the scroll previous button, * - nextButtonStyleClass: Style class name to use for the scroll next button, * - prevButtonIcon: Icon element to use for the scroll previous button, * - nextButtonIcon: Icon element to use for the scroll next button, * @param {Object} callbackInfo Map of properties for the following callback information: * - scrollFunc: Callback function to animate scrolling a DOM element, * - firstVisibleItemChangedFunc: Callback function to notify when the first visible item changes, * - addResizeListener: Callback function to add a resize listener for a DOM element * - removeResizeListener: Callback function to remove a resize listener for a DOM element * - callbackObj: Optional object on which the callback functions are defined * has changed * @constructor * @ignore */ function ConveyorBeltCommon( elem, orientation, contentParent, bRtl, buttonInfo, callbackInfo) { this._elem = elem; this._orientation = orientation; this._contentParent = contentParent; this._bRtl = bRtl; if (buttonInfo) { //need to check for existence of properties on buttonInfo before assigning //them to vars because advanced closure compiler will otherwise complain if //they're not defined if (buttonInfo.prevButtonId) this._prevButtonId = buttonInfo.prevButtonId; if (buttonInfo.nextButtonId) this._nextButtonId = buttonInfo.nextButtonId; if (buttonInfo.prevButtonStyleClass) this._prevButtonStyleClass = buttonInfo.prevButtonStyleClass; if (buttonInfo.nextButtonStyleClass) this._nextButtonStyleClass = buttonInfo.nextButtonStyleClass; if (buttonInfo.prevButtonIcon) this._prevButtonIcon = buttonInfo.prevButtonIcon; if (buttonInfo.nextButtonIcon) this._nextButtonIcon = buttonInfo.nextButtonIcon; } if (callbackInfo) { //need to check for existence of properties on callbackInfo before assigning //them to vars because advanced closure compiler will otherwise complain if //they're not defined if (callbackInfo.scrollFunc) this._scrollFunc = callbackInfo.scrollFunc; if (callbackInfo.firstVisibleItemChangedFunc) this._firstVisibleItemChangedFunc = callbackInfo.firstVisibleItemChangedFunc; if (callbackInfo.callbackObj) this._callbackObj = callbackInfo.callbackObj; if (callbackInfo.addResizeListener) this._addResizeListenerFunc = callbackInfo.addResizeListener; if (callbackInfo.removeResizeListener) this._removeResizeListenerFunc = callbackInfo.removeResizeListener; } this._bExternalScroll = true; this._firstVisibleItemIndex = 0; //copied basic checks from AdfAgent var navUserAgent = navigator.userAgent; var agentName = navUserAgent.toLowerCase(); if (agentName.indexOf("gecko/") !== -1) { this._bAgentGecko = true; } else if (agentName.indexOf("opera") !== -1) { this._bAgentOpera = true; } else if (agentName.indexOf("applewebkit") !== -1 || agentName.indexOf("safari") !== -1) { this._bAgentWebkit = true; } }; /** * Setup the conveyor belt. * @param {boolean} bInit True for initialization, false for refresh */ ConveyorBeltCommon.prototype.setup = function(bInit) { var self = this; var cbcClass = ConveyorBeltCommon; if (bInit) { //create the content and overflow containers this._createInnerContainers(); //create the next/prev buttons this._createPrevButton(this._prevButtonId, this._prevButtonStyleClass, this._prevButtonIcon); this._createNextButton(this._nextButtonId, this._nextButtonStyleClass, this._nextButtonIcon); var nextButton = this._nextButton; var tableCellDivNextButton = this._tableCellDivNextButton; if (tableCellDivNextButton) { //use the width of the div containing the button because it will include //any margins specified in the button style class this._buttonWidth = tableCellDivNextButton.offsetWidth; this._buttonHeight = nextButton.offsetHeight; } else { var vertDivNextButton = this._vertDivNextButton; this._buttonWidth = nextButton.offsetWidth; //use the height of the div containing the button because it will include //any margins specified in the button style class this._buttonHeight = vertDivNextButton.offsetHeight; } //hide the buttons until we know we need them this._hidePrevButton(); this._hideNextButton(); //handle the mouse wheel on the whole conveyor this._mouseWheelListener = function (event) {self._handleMouseWheel(event);}; cbcClass._addBubbleEventListener(this._elem, "mousewheel", this._mouseWheelListener); cbcClass._addBubbleEventListener(this._elem, "wheel", this._mouseWheelListener); //handle swipe gestures on the overflow container, which excludes the next/prev buttons this._touchStartListener = function (event) {self._handleTouchStart(event);}; cbcClass._addBubbleEventListener(this._overflowContainer, "touchstart", this._touchStartListener); this._touchMoveListener = function (event) {self._handleTouchMove(event);}; cbcClass._addBubbleEventListener(this._overflowContainer, "touchmove", this._touchMoveListener); this._touchEndListener = function (event) {self._handleTouchEnd(event);}; cbcClass._addBubbleEventListener(this._overflowContainer, "touchend", this._touchEndListener); cbcClass._addBubbleEventListener(this._overflowContainer, "touchcancel", this._touchEndListener); this._origScroll = 0; } else { //need to restore inner DOM to its initial state before we can accurately //calculate sizes this._reinitializeInnerDom(); } //clear any old sizes so that new sizes will be calculated this._clearCachedSizes(); //adjust overflow size this._adjustOverflowSize(bInit); //handle an initial resize this._handleResize(true); if (bInit && this._addResizeListenerFunc) { this._handleResizeFunc = function(width, height) {self._handleResize(false);}; //listen for resizes on both the conveyor itself and on its content this._addResizeListenerFunc.call(this._callbackObj, this._elem, this._handleResizeFunc); this._addResizeListenerFunc.call(this._callbackObj, this._contentContainer, this._handleResizeFunc); } }; /** * Destroy the conveyor belt. */ ConveyorBeltCommon.prototype.destroy = function() { var elem = this._elem; var cbcClass = ConveyorBeltCommon; cbcClass._removeBubbleEventListener(elem, "mousewheel", this._mouseWheelListener); cbcClass._removeBubbleEventListener(elem, "wheel", this._mouseWheelListener); cbcClass._removeBubbleEventListener(this._overflowContainer, "touchstart", this._touchStartListener); cbcClass._removeBubbleEventListener(this._overflowContainer, "touchmove", this._touchMoveListener); cbcClass._removeBubbleEventListener(this._overflowContainer, "touchend", this._touchEndListener); cbcClass._removeBubbleEventListener(this._overflowContainer, "touchcancel", this._touchEndListener); this._mouseWheelListener = null; this._touchStartListener = null; this._touchMoveListener = null; this._touchEndListener = null; //remove listeners before reparenting original children and clearing member //variables if (this._removeResizeListenerFunc && this._handleResizeFunc) { this._removeResizeListenerFunc.call(this._callbackObj, elem, this._handleResizeFunc); this._removeResizeListenerFunc.call(this._callbackObj, this._contentContainer, this._handleResizeFunc); } this._handleResizeFunc = null; //move the original content children from the _contentTableDiv back to the //original DOM element cbcClass._reparentChildrenFromTable(this._contentTableDiv, elem, this._isHorizontal()); //clear the stored array of content elements this._arContentElements = null; if (this._tableDiv) { //the overflow, content, and buttons are all children of the table div elem.removeChild(this._tableDiv); } else { //the _contentContainer is a child of the _overflowContainer, so will be removed with it elem.removeChild(this._overflowContainer); elem.removeChild(this._vertDivNextButton); elem.removeChild(this._vertDivPrevButton); } this._nextButton = null; this._prevButton = null; this._contentContainer = null; this._overflowContainer = null; this._contentTableDiv = null; this._tableDiv = null; this._tableCellDivPrevButton = null; this._tableCellDivNextButton = null; this._prevButtonWrapper = null; this._nextButtonWrapper = null; this._vertDivPrevButton = null; this._vertDivNextButton = null; this._clearCachedSizes(); this._elem = null; this._scrollFunc = null; this._firstVisibleItemChangedFunc = null; this._addResizeListenerFunc = null; this._removeResizeListenerFunc = null; this._callbackObj = null; this._contentParent = null; }; /** * Set the id of the item to make first visible. * @param {string} id id of the item to make first visible */ ConveyorBeltCommon.prototype.setFirstVisibleItem = function(id) { var sizes = this._getSizes(); for (var i = 0; i < sizes.length; i++) { var sizeObj = sizes[i]; if (sizeObj.id === id) { this._setCurrScroll(sizeObj.start, true); break; } } }; /** * Reparent the DOM child nodes from their old parent node to a new parent table * node. * @param {Object} fromNode Old parent DOM node * @param {Object} toTable New parent table DOM node * @param {boolean} bHoriz True to make the table horizontal, false for vertical * @return {Array} Array of child elements reparented to the table */ ConveyorBeltCommon._reparentChildrenToTable = function(fromNode, toTable, bHoriz) { var cbcClass = ConveyorBeltCommon; var tableRow = null; if (bHoriz) { tableRow = cbcClass._createTableRowDiv(); toTable.appendChild(tableRow); // @HtmlUpdateOK } var arElements = null; var fromNodeChildren = fromNode.childNodes; while (fromNodeChildren.length > 0) { if (!arElements) arElements = []; var child = fromNodeChildren[0]; if (child.nodeType === 1) { if (!bHoriz) { tableRow = cbcClass._createTableRowDiv(); toTable.appendChild(tableRow); // @HtmlUpdateOK } var tableCell = cbcClass._createTableCellDiv(); tableCell.appendChild(child); // @HtmlUpdateOK tableRow.appendChild(tableCell); // @HtmlUpdateOK arElements.push(child); } else { //if child is not an element node, simply append it to the table or //tableRow without wrapping it in a tableCell if (bHoriz) { tableRow.appendChild(child); // @HtmlUpdateOK } else { toTable.appendChild(child); // @HtmlUpdateOK } } } return arElements; }; /** * Reparent the DOM child nodes from a table to a new parent node. * @param {Object} fromTable Old parent table DOM node * @param {Object} toNode New parent DOM node * @param {boolean} bHoriz True if the table is horizontal, false if vertical */ ConveyorBeltCommon._reparentChildrenFromTable = function(fromTable, toNode, bHoriz) { if (!fromTable) return; var tableRows = fromTable.childNodes; while (tableRows.length > 0) { var tableRow = tableRows[0]; if (tableRow.nodeType === 1) { var tableCells = tableRow.childNodes; while (tableCells.length > 0) { var tableCell = tableCells[0]; if (tableCell.nodeType === 1) { var cellContent = tableCell.firstChild; toNode.appendChild(cellContent); // @HtmlUpdateOK //only reparented child of tableCell, so still need to remove //tableCell itself tableRow.removeChild(tableCell); } else { //if child is not an element node, simply append it to the new parent toNode.appendChild(tableCell); // @HtmlUpdateOK } } //need to remove row from table fromTable.removeChild(tableRow); } else { //if child is not an element node, simply append it to the new parent toNode.appendChild(tableRow); // @HtmlUpdateOK } } }; /** * Get the computed style of the given DOM element. * @param {Object} elem DOM element * @return {Object} Computed style for the element */ ConveyorBeltCommon._getComputedStyle = function(elem) { var elemOwnerDoc = elem.ownerDocument; var defView = elemOwnerDoc.defaultView; var computedStyle = null; if (defView) { //this line copied from AdfAgent.getComputedStyle() computedStyle = defView.getComputedStyle(elem, null); } else { //this line copied from AdfIEAgent.getComputedStyle() computedStyle = elem.currentStyle; } return computedStyle; }; /** * Get the inner width of the given DOM element (inside borders and padding). * @param {Object} elem DOM element * @return {number} Width of element */ ConveyorBeltCommon._getElemInnerWidth = function(elem) { var cbcClass = ConveyorBeltCommon; var computedStyle = cbcClass._getComputedStyle(elem); //the computedStyle width is the inner width of the elem return cbcClass._getCSSLengthAsInt(computedStyle.width); }; /** * Get the inner height of the given DOM element (inside borders and padding). * @param {Object} elem DOM element * @return {number} Height of element */ ConveyorBeltCommon._getElemInnerHeight = function(elem) { var cbcClass = ConveyorBeltCommon; var computedStyle = cbcClass._getComputedStyle(elem); //the computedStyle height is the inner height of the elem return cbcClass._getCSSLengthAsInt(computedStyle.height); }; /** * Get the int value of a CSS length. * @param {string} cssLength cssLength as a String * @return {number} cssLength as an int */ ConveyorBeltCommon._getCSSLengthAsInt = function(cssLength) { //this function copied from AdfAgent.getCSSLengthAsInt if ((cssLength.length) > 0 && (cssLength != 'auto')) { var intLength = parseInt(cssLength, 10); if (isNaN(intLength)) intLength = 0; return intLength; } return 0; }; /** * Add a bubble event listener to the given DOM node. * @param {Object} node DOM node * @param {string} type Event type * @param {Function} listener Listener function */ ConveyorBeltCommon._addBubbleEventListener = function(node, type, listener) { if (node.addEventListener) { node.addEventListener(type, listener, false); } else if (node.attachEvent) { node.attachEvent("on" + type, listener); } }; /** * Remove a bubble event listener from the given DOM node. * @param {Object} node DOM node * @param {string} type Event type * @param {Function} listener Listener function */ ConveyorBeltCommon._removeBubbleEventListener = function(node, type, listener) { if (node.removeEventListener) { node.removeEventListener(type, listener, false); } else if (node.detachEvent) { node.detachEvent("on" + type, listener); } }; /** * Get the wheel delta from a mousewheel event. * @param {Object} event Event object * @return {number} Wheel delta */ ConveyorBeltCommon._getWheelDelta = function(event) { var wheelDelta = 0; if (event.wheelDelta != null) { wheelDelta = event.wheelDelta; } //use bracket notation to avoid compilation warning in JET else if (event["deltaY"] != null) { wheelDelta = -event["deltaY"]; } else { wheelDelta = -event.detail; } return wheelDelta; }; /** * Create a div styled like a table. * @return {Node} div styled like a table row */ ConveyorBeltCommon._createTableDiv = function() { var tableDiv = document.createElement("div"); var style = tableDiv.style; style.display = "table"; return tableDiv; }; /** * Create a div styled like a table row. * @return {Node} div styled like a table row */ ConveyorBeltCommon._createTableRowDiv = function() { var tableRowDiv = document.createElement("div"); var style = tableRowDiv.style; style.display = "table-row"; return tableRowDiv; }; /** * Create a div styled like a table cell. * @return {Node} div styled like a table cell */ ConveyorBeltCommon._createTableCellDiv = function() { var tableCellDiv = document.createElement("div"); var style = tableCellDiv.style; style.display = "table-cell"; return tableCellDiv; }; /** * Wrap the given element in an inline-block div and append it to the given * parent element. Restrict the max size of the wrapper div to be its reported * offset size. This helps prevent off-by-one pixel errors when the size of the * element is really a float instead of an int, as reported by the offset size. * @param {Node} elem DOM element to wrap * @param {Node} parentElem Parent DOM element to append child to * @param {boolean} bWidth True to restrict the element's width, false otherwise * @param {boolean} bHeight True to restrict the element's height, false otherwise * @return {Node} The wrapper div element */ ConveyorBeltCommon._wrapAndRestrictSize = function( elem, parentElem, bWidth, bHeight) { var wrapperDiv = document.createElement("div"); var wrapperDivStyle = wrapperDiv.style; //make sure the wrapper div fits its content wrapperDivStyle.display = "inline-block"; //need to add everything to the DOM before getting sizes wrapperDiv.appendChild(elem); // @HtmlUpdateOK parentElem.appendChild(wrapperDiv); // @HtmlUpdateOK //restrict the size of the wrapper div so that it's an integer value if (bWidth) { wrapperDivStyle.maxWidth = wrapperDiv.offsetWidth + "px"; } if (bHeight) { wrapperDivStyle.maxHeight = wrapperDiv.offsetHeight + "px"; } return wrapperDiv; }; /** * Determine if this conveyor belt is horizontal or vertical. * @return {boolean} True if the conveyor belt is horizontal, false if vertical */ ConveyorBeltCommon.prototype._isHorizontal = function() { return (this._orientation === "horizontal"); }; /** * Determine if this conveyor belt is empty. * @return {boolean} True if the conveyor belt is empty, false if not */ ConveyorBeltCommon.prototype._isEmpty = function() { var contentParent = this._getContentParent(); return !contentParent.hasChildNodes(); }; /** * Restore inner DOM to its initial state before sizes were calculated. */ ConveyorBeltCommon.prototype._reinitializeInnerDom = function() { //restore inner DOM to initial state in order to accurately calculate new sizes //save original scroll value for use in _adjustOverflowSize() this._origScroll = this._getCurrScroll(); this._clearOverflowMaxSize(); this._setOverflowScroll(0); //hide the buttons until we know we need them this._hidePrevButton(); this._hideNextButton(); }; /** * Clear cached sizes. */ ConveyorBeltCommon.prototype._clearCachedSizes = function() { this._totalSize = null; this._sizes = null; }; /** * Handle a component resize. * @param {boolean} bSetup True when called from setup, false otherwise */ ConveyorBeltCommon.prototype._handleResize = function(bSetup) { //if this is not the first call, need to reinitialize the inner DOM before //we can accurately calculate new sizes (if this is the first call, DOM //is already in initial state) if (!bSetup) { this._reinitializeInnerDom(); } this._clearCachedSizes(); if (!this._totalSize || !this._sizes) { //measure content size this._totalSize = this._measureContents(); } //if this is not the first call, need to adjust the overflow size (if this //is the first call, the overflow size was already adjusted in setup) if (!bSetup) { this._adjustOverflowSize(false); } //center buttons orthogonal to conveyor orientation var totalSize = this._totalSize; this._alignButtons(totalSize.w, totalSize.h); }; /** * Center the overflow buttons orthogonal to the conveyor orientation. * @param {number} w Width to align inside * @param {number} h Height to align inside */ ConveyorBeltCommon.prototype._alignButtons = function(w, h) { var nextButton = this._nextButton; var prevButton = this._prevButton; var nextButtonStyle = nextButton.style; var prevButtonStyle = prevButton.style; if (this._isHorizontal()) { var vOffset = .5 * (h - this._buttonHeight); nextButtonStyle.top = vOffset + "px"; prevButtonStyle.top = vOffset + "px"; } else { var hOffset = .5 * (w - this._buttonWidth); if (!this._bRtl) { nextButtonStyle.left = hOffset + "px"; prevButtonStyle.left = hOffset + "px"; } else { nextButtonStyle.left = -hOffset + "px"; prevButtonStyle.left = -hOffset + "px"; } } }; /** * Adjust the overflow size. * @param {boolean} bInit True for initialization, false for refresh */ ConveyorBeltCommon.prototype._adjustOverflowSize = function(bInit) { var contentContainer = this._contentContainer; var bHoriz = this._isHorizontal(); var cbcClass = ConveyorBeltCommon; var elemInnerSize = bHoriz ? cbcClass._getElemInnerWidth(this._elem) : cbcClass._getElemInnerHeight(this._elem); //constrain the max overflow size if necessary if ((bHoriz ? contentContainer.offsetWidth : contentContainer.offsetHeight) > elemInnerSize) { this._setOverflowMaxSize(elemInnerSize); } this._minScroll = 0; //take the button size into account for max scroll position this._maxScroll = bHoriz ? contentContainer.offsetWidth - elemInnerSize + this._buttonWidth : contentContainer.offsetHeight - elemInnerSize + this._buttonHeight; //constrain max scroll if (this._maxScroll < 0) { this._maxScroll = 0; } //hide buttons AFTER calculating sizes above, but BEFORE updating scroll position below this._hidePrevButton(); this._hideNextButton(); //refresh current scroll position AFTER calculating sizes above this._setCurrScroll(bInit ? this._minScroll : this._origScroll, true); this._origScroll = 0; }; /** * Create the inner overflow and content containers. */ ConveyorBeltCommon.prototype._createInnerContainers = function() { //the original children of the conveyor elem will be reparented to the contentContainer; //the conveyor elem will contain the overflowContainer, which will contain the contentContainer, which //will contain the original children var self = this; var bHoriz = this._isHorizontal(); var overflowContainer = document.createElement("div"); this._overflowContainer = overflowContainer; var overflowContainerStyle = overflowContainer.style; overflowContainerStyle.overflow = "hidden"; overflowContainerStyle.display = this._getCssDisplay(); overflowContainerStyle.position = "relative"; //ojTabs: verticalAlign top is needed so there's no gap between the tab bar and the tab content in Jet Tabs if (bHoriz) { overflowContainerStyle.verticalAlign = "top"; } var elem = this._elem; var cbcClass = ConveyorBeltCommon; var contentContainer = document.createElement("div"); this._contentContainer = contentContainer; var contentContainerStyle = contentContainer.style; contentContainerStyle.position = "relative"; if (bHoriz) { //ojTabs: set display of content container to inline-block so that its size //will be driven by its children contentContainerStyle.display = "inline-block"; } overflowContainer.appendChild(contentContainer); // @HtmlUpdateOK var tableDiv = null; if (bHoriz) { //layout the buttons and overflow container in divs styled like table cells //in a single row in order to guarantee that they don't accidentally wrap //(don't want to specify white-space:nowrap because that would get inherited //by the content and either conveyor or the app would potentially have to //restore the initial value) tableDiv = cbcClass._createTableDiv(); this._tableDiv = tableDiv; var tableRowDiv = cbcClass._createTableRowDiv(); var tableCellDivPrevButton = cbcClass._createTableCellDiv(); this._tableCellDivPrevButton = tableCellDivPrevButton; var tableCellDivOverflow = cbcClass._createTableCellDiv(); var tableCellDivNextButton = cbcClass._createTableCellDiv(); this._tableCellDivNextButton = tableCellDivNextButton; //FIX : in IE, the table cell divs wrapping the buttons must //specify vertical-align:top in order for the buttons to start out top //aligned var tableCellDivPrevButtonStyle = tableCellDivPrevButton.style; var tableCellDivNextButtonStyle = tableCellDivNextButton.style; tableCellDivPrevButtonStyle.verticalAlign = "top"; tableCellDivNextButtonStyle.verticalAlign = "top"; tableCellDivOverflow.appendChild(overflowContainer); // @HtmlUpdateOK tableRowDiv.appendChild(tableCellDivPrevButton); // @HtmlUpdateOK tableRowDiv.appendChild(tableCellDivOverflow); // @HtmlUpdateOK tableRowDiv.appendChild(tableCellDivNextButton); // @HtmlUpdateOK tableDiv.appendChild(tableRowDiv); // @HtmlUpdateOK } //reparent children from elem to contentContainer before adding overflow and //content containers to elem; //create table to hold content items to enforce either single column or single //row layout var contentTableDiv = cbcClass._createTableDiv(); var arContentElements = cbcClass._reparentChildrenToTable(elem, contentTableDiv, bHoriz); //if there is a nested contentParent, then we need to put its children into //arContentElements instead of the children of the elem if (this._contentParent) { arContentElements = []; var contentParent = this._contentParent; var contentChildren = contentParent.children; var numContentChildren = contentChildren.length; for (var i = 0; i < numContentChildren; i++) { var child = contentChildren[i]; if (child.nodeType === 1) { arContentElements.push(child); } } } //save the content elements so we can walk through them in _measureContents //instead of walking through the table div itself this._arContentElements = arContentElements; //only need to save the content table and add it to the content container if //there is actual content (this also helps _isEmpty() to function correctly) if (arContentElements && arContentElements.length > 0) { this._contentTableDiv = contentTableDiv; contentContainer.appendChild(contentTableDiv); // @HtmlUpdateOK } if (tableDiv) { elem.appendChild(tableDiv); // @HtmlUpdateOK } else { var vertDivPrevButton = document.createElement("div"); this._vertDivPrevButton = vertDivPrevButton; var vertDivNextButton = document.createElement("div"); this._vertDivNextButton = vertDivNextButton; elem.appendChild(vertDivPrevButton); // @HtmlUpdateOK elem.appendChild(overflowContainer); // @HtmlUpdateOK elem.appendChild(vertDivNextButton); // @HtmlUpdateOK } if (bHoriz) { //the overflow container is sometimes taller than the content container, //apparently because the content container is an inline-block, so we //compensate for that extra, artificial vertical space by reducing the //bottom margin of the overflow container var overflowHeight = overflowContainer.offsetHeight; var contentHeight = contentContainer.offsetHeight; if (overflowHeight > contentHeight) { overflowContainerStyle.marginBottom = (contentHeight - overflowHeight) + "px"; } } //the overflow container listens to DOM scroll events in case the scroll was triggered externally, //for example when the user tabs through the child content cbcClass._addBubbleEventListener(overflowContainer, "scroll", function (event) {self._handleScroll(event);}); }; /** * Get the value to use for the CSS display attribute. * @return {string} Value to use for CSS display attribute */ ConveyorBeltCommon.prototype._getCssDisplay = function() { return this._isHorizontal() ? "inline-block" : "block"; }; /** * Create the prev button. * @param {string} buttonId Id to use for the button * @param {string} buttonStyleClass Style class to use for the button * @param {Node} icon Button icon element */ ConveyorBeltCommon.prototype._createPrevButton = function( buttonId, buttonStyleClass, icon) { var self = this; var prevButton = document.createElement("div"); this._prevButton = prevButton; if (buttonId) { prevButton.setAttribute("id", buttonId); } prevButton.setAttribute("class", buttonStyleClass); //hide the button from screen readers because it is not keyboard accessible prevButton.setAttribute("aria-hidden", "true"); var prevButtonStyle = prevButton.style; prevButtonStyle.display = this._getCssDisplay(); prevButtonStyle.position = "relative"; var bHoriz = this._isHorizontal(); if (bHoriz) { prevButtonStyle.verticalAlign = "top"; } var cbcClass = ConveyorBeltCommon; cbcClass._addBubbleEventListener(prevButton, "click", function (event) {self._scrollPrev();}); if (this._tableCellDivPrevButton) { //the button belongs to the table cell var tableCell = this._tableCellDivPrevButton; //wrap the button in another div that we can use to get the size, because //the table cell div seems to be one pixel bigger (maybe when the button //size is really a float?); //then the wrapper div size will be restricted to be the actual reported //size of the button, which results in the table cell div being the same size this._prevButtonWrapper = cbcClass._wrapAndRestrictSize(prevButton, tableCell, bHoriz, !bHoriz); } else { //make the prev button the first child var elem = this._vertDivPrevButton; elem.appendChild(prevButton); // @HtmlUpdateOK } if (icon) { prevButton.appendChild(icon); // @HtmlUpdateOK } }; /** * Create the next button. * @param {string} buttonId Id to use for the button * @param {string} buttonStyleClass Style class to use for the button * @param {Node} icon Button icon element */ ConveyorBeltCommon.prototype._createNextButton = function( buttonId, buttonStyleClass, icon) { var self = this; var nextButton = document.createElement("div"); this._nextButton = nextButton; if (buttonId) { nextButton.setAttribute("id", buttonId); } nextButton.setAttribute("class", buttonStyleClass); //hide the button from screen readers because it is not keyboard accessible nextButton.setAttribute("aria-hidden", "true"); var nextButtonStyle = nextButton.style; nextButtonStyle.display = this._getCssDisplay(); nextButtonStyle.position = "relative"; var bHoriz = this._isHorizontal(); if (bHoriz) { nextButtonStyle.verticalAlign = "top"; } var cbcClass = ConveyorBeltCommon; cbcClass._addBubbleEventListener(nextButton, "click", function (event) {self._scrollNext();}); if (this._tableCellDivNextButton) { //the button belongs to the table cell var tableCell = this._tableCellDivNextButton; //wrap the button in another div that we can use to get the size, because //the table cell div seems to be one pixel bigger (maybe when the button //size is really a float?); //then the wrapper div size will be restricted to be the actual reported //size of the button, which results in the table cell div being the same size this._nextButtonWrapper = cbcClass._wrapAndRestrictSize(nextButton, tableCell, bHoriz, !bHoriz); } else { //make the next button the last child var elem = this._vertDivNextButton; elem.appendChild(nextButton); // @HtmlUpdateOK } if (icon) { nextButton.appendChild(icon); // @HtmlUpdateOK } }; /** * Get the content parent. * @return {Object} parent DOM element of the content */ ConveyorBeltCommon.prototype._getContentParent = function() { //if an explicit content parent was not specified, it will be the _contentContainer var contentParent = this._contentParent; if (!contentParent) { contentParent = this._contentContainer; } return contentParent; }; /** * Measure the contents of the conveyor. * @return {Object} Total size of the contents */ ConveyorBeltCommon.prototype._measureContents = function() { var contentParent = this._getContentParent(); var contentTableDiv = this._contentTableDiv; var arContentElements = this._arContentElements; var totalSize = {w: 0, h: 0}; var sizes = []; if (contentParent.hasChildNodes() && contentTableDiv && arContentElements && arContentElements.length > 0) { var children = arContentElements; var bHoriz = this._isHorizontal(); var contentWidth = 0; //get the width of the contentContainer, not the contentParent, because //in JET, if the children are in a buttonset, for example, the offsetLeft //of the children is relative to the contentContainer, not the //contentParent var contentContainer = this._contentContainer; contentWidth = contentContainer.offsetWidth; var startOffset = 0; var prevSizeObj = null; for (var i = 0; i < children.length; i++) { var child = children[i]; if (child.nodeType === 1) { var ww = child.offsetWidth; var hh = child.offsetHeight; var childId = child.id; var sizeObj = {w: ww, h: hh, id: childId}; //calculating the start assumes that the browser has done the appropriate layout; //subtract 1 from the end so it's the last pixel of this child, not the start of the next child if (bHoriz) { //FIX : in IE, the conveyor items all report offsetLeft=0, //so we need to get the offset from the parent wrapping table cell div //instead var offLeft = child.offsetLeft; if (!this._contentParent && offLeft === 0) { var childParent = child.parentNode; offLeft = childParent.offsetLeft; } //if RTL, still want to save the start coords in logical, ascending order beginning with 0 if (this._bRtl) { sizeObj.start = contentWidth - (offLeft + ww); } else { sizeObj.start = offLeft; } //Offset each item's start coord by the first item's offset to handle cases like text-align:right, //where the items may be right-aligned within the content container. We still want our logical //coords to start at 0. if (i === 0) startOffset = sizeObj.start; sizeObj.start -= startOffset; totalSize.w = sizeObj.start + ww; totalSize.h = Math.max(totalSize.h, hh); sizeObj.end = totalSize.w - 1; } else { //FIX : in IE, the conveyor items all report offsetTop=0, //so we need to get the offset from the parent wrapping table cell div //instead var offTop = child.offsetTop; if (!this._contentParent && offTop === 0) { var childParent = child.parentNode; offTop = childParent.offsetTop; } sizeObj.start = offTop; totalSize.w = Math.max(totalSize.w, ww); totalSize.h = sizeObj.start + hh; sizeObj.end = totalSize.h - 1; } //if this item overlaps the previous item, adjust the previous item to //end just before this item (can happen, for example, with horizontal //JET buttonsets) if (prevSizeObj) { if (prevSizeObj.end >= sizeObj.start) { var overlap = prevSizeObj.end - (sizeObj.start - 1); prevSizeObj.end -= overlap; if (bHoriz) { prevSizeObj.w -= overlap; } else { prevSizeObj.h -= overlap; } } } sizes.push(sizeObj); prevSizeObj = sizeObj; } } } this._sizes = sizes; return totalSize; }; /** * Get the array of content sizes. * @return {Array} Array of content sizes */ ConveyorBeltCommon.prototype._getSizes = function() { //only calculate sizes if they haven't been calculated already if (!this._sizes) { var totalSize = this._measureContents(); //only save the total size if it hasn't already been saved if (!this._totalSize) { this._totalSize = totalSize; } } return this._sizes; }; /** * Get the DOM element to use to show or hide the next button. * @return {Node} DOM element to use to show or hide the next button */ ConveyorBeltCommon.prototype._getNextButtonDisplayElem = function() { return this._nextButtonWrapper ? this._nextButtonWrapper : this._nextButton; }; /** * Get the DOM element to use to show or hide the prev button. * @return {Node} DOM element to use to show or hide the prev button */ ConveyorBeltCommon.prototype._getPrevButtonDisplayElem = function() { return this._prevButtonWrapper ? this._prevButtonWrapper : this._prevButton; }; /** * Show the next button. */ ConveyorBeltCommon.prototype._showNextButton = function() { var elem = this._getNextButtonDisplayElem(); var style = elem.style; style.display = this._getCssDisplay(); }; /** * Show the prev button. */ ConveyorBeltCommon.prototype._showPrevButton = function() { var elem = this._getPrevButtonDisplayElem(); var style = elem.style; style.display = this._getCssDisplay(); }; /** * Hide the next button. */ ConveyorBeltCommon.prototype._hideNextButton = function() { var elem = this._getNextButtonDisplayElem(); var style = elem.style; style.display = "none"; }; /** * Hide the prev button. */ ConveyorBeltCommon.prototype._hidePrevButton = function() { var elem = this._getPrevButtonDisplayElem(); var style = elem.style; style.display = "none"; }; /** * Determine if the next button is shown. * @return {boolean} true if shown, false if hidden */ ConveyorBeltCommon.prototype._isNextButtonShown = function() { var elem = this._getNextButtonDisplayElem(); var style = elem.style; return style.display !== "none"; }; /** * Determine if the prev button is shown. * @return {boolean} True if shown, false if hidden */ ConveyorBeltCommon.prototype._isPrevButtonShown = function() { var elem = this._getPrevButtonDisplayElem(); var style = elem.style; return style.display !== "none"; }; /** * Get the size of a next/prev button along the direction of conveyor orientation. * @return {number} Size of a button */ ConveyorBeltCommon.prototype._getButtonSize = function() { return this._isHorizontal() ? this._buttonWidth : this._buttonHeight; }; /** * Update visibility of the next/prev buttons and adjust scroll position accordingly. * @param {number} scroll Desired scroll position */ ConveyorBeltCommon.prototype._updateButtonVisibility = function(scroll) { var buttonSize = this._getButtonSize(); var ovScroll = this._getCurrScroll(); var ovSize = this._getCurrViewportSize(); var bNeedsScroll = this._needsScroll(); //if scrolling to the start, hide the prev button and reclaim its space if (scroll <= this._minScroll) { if (this._isPrevButtonShown()) { ovSize += buttonSize; ovScroll -= buttonSize; } this._hidePrevButton(); } //if not at the start, show the prev button and allocate space for it else if (bNeedsScroll) { if (!this._isPrevButtonShown()) { ovSize -= buttonSize; ovScroll += buttonSize; } this._showPrevButton(); } //if scrolling to the end, hide the next button and reclaim its space if (scroll >= this._maxScroll) { if (this._isNextButtonShown()) { ovSize += buttonSize; } this._hideNextButton(); } //if not at the end, show the next button and allocate space for it else if (bNeedsScroll) { if (!this._isNextButtonShown()) { ovSize -= buttonSize; } this._showNextButton(); } //update the overflow container this._setOverflowScroll(ovScroll); if (bNeedsScroll) { this._setOverflowMaxSize(ovSize); } else { this._clearOverflowMaxSize(); } }; /** * Set the max size of the overflow container. * @param {number} size Overflow max size */ ConveyorBeltCommon.prototype._setOverflowMaxSize = function(size) { var overflowContainer = this._overflowContainer; var overflowContainerStyle = overflowContainer.style; var s = size + "px"; if (this._isHorizontal()) { overflowContainerStyle.maxWidth = s; } else { overflowContainerStyle.maxHeight = s; } }; /** * Clear the max size of the overflow container. */ ConveyorBeltCommon.prototype._clearOverflowMaxSize = function() { var overflowContainer = this._overflowContainer; var overflowContainerStyle = overflowContainer.style; if (this._isHorizontal()) { overflowContainerStyle.maxWidth = ""; } else { overflowContainerStyle.maxHeight = ""; } }; /** * Set the overflow scroll position. * @param {number} scroll Overflow logical scroll position */ ConveyorBeltCommon.prototype._setOverflowScroll = function(scroll) { var overflowContainer = this._overflowContainer; if (this._isHorizontal()) { overflowContainer.scrollLeft = this._convertScrollLogicalToBrowser(scroll); } else { overflowContainer.scrollTop = scroll; } }; /** * Get the current overflow viewport size. * @return {number} Overflow viewport size */ ConveyorBeltCommon.prototype._getCurrViewportSize = function() { var overflowContainer = this._overflowContainer; return this._isHorizontal() ? overflowContainer.offsetWidth : overflowContainer.offsetHeight; }; /** * Set the scroll position. * @param {number} scroll Desired scroll position * @param {boolean} bImmediate True to make the change immediately, false to animate it */ ConveyorBeltCommon.prototype._setCurrScroll = function(scroll, bImmediate) { //don't do anything if we're already in the middle of scrolling if (!this._bScrolling) { //if this function is called, the conveyor internally initiated the scroll, so turn off the //flag for an externally triggered scroll this._bExternalScroll = false; this._setCurrScrollHelper(scroll, bImmediate); } }; /** * Helper function to set scroll position. * @param {number} scroll Desired scroll position * @param {boolean} bImmediate True to make the change immediately, false to animate it */ ConveyorBeltCommon.prototype._setCurrScrollHelper = function(scroll, bImmediate) { if (this._isEmpty()) return; this._bScrolling = true; scroll = this._constrainScroll(scroll); //update button visibility before scrolling this._updateButtonVisibility(scroll); var scrollFunc = this._scrollFunc; //if making the change immediately, simply call the anim end function if (bImmediate || !scrollFunc || scroll === this._getCurrScroll()) { //FIX : if this is an external scroll, set the current scroll //value again because it may be different from the passed in scroll value //due to showing/hiding scroll buttons (Note that for an external scroll, //the scroll has already happened before this function was called) this._onScrollAnimEnd(this._bExternalScroll ? this._getCurrScroll() : scroll); } //if animating the change, call out to the provided callback else { var cbcClass = ConveyorBeltCommon; // 1.1 px/ms is the desired animation speed, so calculate the duration based on the distance to scroll var duration = Math.abs(this._getCurrScroll() - scroll) / cbcClass._SCROLL_SPEED; var self = this; var onEndFunc = function () {self._onScrollAnimEnd(scroll);}; //need to convert the logical scroll to the browser value for animating scrollFunc.call(this._callbackObj, this._overflowContainer, this._convertScrollLogicalToBrowser(scroll), duration, onEndFunc); } }; /** * Get the current scroll position. * @return {number} Logical scroll position */ ConveyorBeltCommon.prototype._getCurrScroll = function() { var overflowContainer = this._overflowContainer; return this._isHorizontal() ? this._convertScrollBrowserToLogical(overflowContainer.scrollLeft) : overflowContainer.scrollTop; }; /** * Determine if the conveyor needs to show scroll buttons. * @return {boolean} True if scrolling is needed, false if not */ ConveyorBeltCommon.prototype._needsScroll = function() { var contentContainer = this._contentContainer; var overflowContainer = this._overflowContainer; return this._isHorizontal() ? contentContainer.offsetWidth > overflowContainer.offsetWidth : contentContainer.offsetHeight > overflowContainer.offsetHeight; }; /** * Constrain the scroll position. * @param {number} scroll Desired scroll position * @return {number} Constrained scroll position */ ConveyorBeltCommon.prototype._constrainScroll = function(scroll) { if (!this._needsScroll() || scroll < this._minScroll) { scroll = this._minScroll; } else if (scroll > this._maxScroll) { scroll = this._maxScroll; } return scroll; }; /** * Handle a mousewheel event. * @param {Object} event Event object */ ConveyorBeltCommon.prototype._handleMouseWheel = function(event) { //if we're already scrolling, just consume the event var bConsumeEvent = this._bScrolling; if (this._needsScroll() && !this._bScrolling) { var cbcClass = ConveyorBeltCommon; var wheelDelta = cbcClass._getWheelDelta(event); if (wheelDelta < 0 && this._isNextButtonShown()) { bConsumeEvent = true; this._scrollNext(); } else if (wheelDelta > 0 && this._isPrevButtonShown()) { bConsumeEvent = true; this._scrollPrev(); } } if (bConsumeEvent) { event.preventDefault(); event.stopPropagation(); } }; /** * Handle a touchstart event. * @param {Object} event Event object */ ConveyorBeltCommon.prototype._handleTouchStart = function(event) { var eventTouches = event.touches; if (this._needsScroll() && !this._bScrolling && eventTouches.length === 1) { this._bTouch = true; //save off some initial information at the start of a swipe var firstTouch = eventTouches[0]; this._touchStartCoord = this._isHorizontal() ? firstTouch.pageX : firstTouch.pageY; this._touchStartScroll = this._getCurrScroll(); this._touchStartNextScroll = this._calcNextScroll(); this._touchStartPrevScroll = this._calcPrevScroll(); //FIX : save the initial button state this._touchStartNextButtonShown = this._isNextButtonShown(); this._touchStartPrevButtonShown = this._isPrevButtonShown(); } }; /** * Handle a touchmove event. * @param {Object} event Event object */ ConveyorBeltCommon.prototype._handleTouchMove = function(event) { var bHoriz = this._isHorizontal(); var eventTouches = event.touches; var firstTouch = eventTouches[0]; var touchCoord = bHoriz ? firstTouch.pageX : firstTouch.pageY; var diff = touchCoord - this._touchStartCoord; //in non-RTL, if swiping left or up, scroll next; otherwise scroll prev //in RTL, if swiping right or up, scroll next; otherwise scroll prev var bNext = (bHoriz && this._bRtl) ? (diff > 0) : (diff < 0); //determine whether the conveyor can be scrolled in the direction of the swipe var canScrollInSwipeDirection = (bNext && this._touchStartNextButtonShown) || (!bNext && this._touchStartPrevButtonShown); //only need to do something if we also received the touchstart and if we can //scroll in the swipe direction if (this._bTouch && canScrollInSwipeDirection) { //only scroll next/prev if the swipe is longer than the threshold; if it's //less, then just drag the items with the swipe var cbcClass = ConveyorBeltCommon; var overflowContainer = this._overflowContainer; var threshold = cbcClass._SWIPE_THRESHOLD * (bHoriz ? overflowContainer.offsetWidth : overflowContainer.offsetHeight); //if swiping under the threshold, just move the conveyor with the swipe if (Math.abs(diff) < threshold) { this._setCurrScroll(this._touchStartScroll - diff, true); //if we're under the threshold, but we've already scrolled to the end, //then we don't need to continue trying to scroll and we don't need to //reset the scroll position at the end of the touch if ((this._touchStartNextButtonShown && !this._isNextButtonShown()) || (this._touchStartPrevButtonShown && !this._isPrevButtonShown())) { this._bTouch = false; } } //if swiping beyond the threshold, scroll to the next/prev set of items else { this._setCurrScroll(bNext ? this._touchStartNextScroll : this._touchStartPrevScroll, false); //don't scroll again for this same swipe this._bTouch = false; } //FIX : set a flag indicating we've scrolled for this touch event this._scrolledForThisTouch = true; } //FIX : if we've scrolled for this touch event, consume the event //so that the page doesn't also scroll if (this._scrolledForThisTouch) { event.preventDefault(); event.stopPropagation(); } }; /** * Handle a touchend event. * @param {Object} event Event object */ ConveyorBeltCommon.prototype._handleTouchEnd = function(event) { //if a full page swipe hasn't happened, scroll back to the original position if (this._bTouch) { this._setCurrScroll(this._touchStartScroll, false); } this._bTouch = false; //FIX : reset the flag indicating if we've scrolled for this touch //event this._scrolledForThisTouch = false; }; /** * Handle a DOM scroll event. * @param {Object} event Event object */ ConveyorBeltCommon.prototype._handleScroll = function(event) { //if the scroll was triggered externally, for example by tabbing through //child items, then update the visual state of the conveyor to match the //new scroll state if (this._bExternalScroll && !this._bScrolling) { this._setCurrScrollHelper(this._getCurrScroll(), true); } }; /** * Function called after a scroll finishes. * @param {number} scroll Scroll position */ ConveyorBeltCommon.prototype._onScrollAnimEnd = function(scroll) { //set the desired value after the animation to make sure that the final value is exactly what was intended, //in case the animation introduced interpolation errors this._setOverflowScroll(scroll); //toggle the externalScroll flag in a timeout so that it happens after any current processing finishes this._setExternalScrollTimeout(); this._bScrolling = false; //if there is a callback to notify about a change of first visible item, call it now if (this._firstVisibleItemChangedFunc) { this._firstVisibleItemIndex = this._calcFirstVisibleItemIndex(); //if there is more than one item visible, and the first item is only //partially visible, then save the second item as the actual first visible //item for state purposes (if the last navigation had been prev, //we would want the last visible item to remain visible) var lastVisIndex = this._calcLastVisibleItemIndex(); var sizes = this._getSizes(); var sizeObj = sizes[this._firstVisibleItemIndex]; if (this._firstVisibleItemIndex !== lastVisIndex && this._getCurrScroll() > sizeObj.start && this._firstVisibleItemIndex < sizes.length - 2) { this._firstVisibleItemIndex++; sizeObj = sizes[this._firstVisibleItemIndex]; } this._firstVisibleItemId = sizeObj.id; var firstVisibleItemChangedFunc = this._firstVisibleItemChangedFunc; firstVisibleItemChangedFunc.call(this._callbackObj, this._firstVisibleItemId); } }; /** * Set a timout to reset the externalScroll flag. */ ConveyorBeltCommon.prototype._setExternalScrollTimeout = function() { var self = this; var f = function () {if (self) self._bExternalScroll = true;}; window.setTimeout(f, 0); // @HtmlUpdateOK }; /** * Scroll to the next set of items. */ ConveyorBeltCommon.prototype._scrollNext = function() { if (!this._bScrolling) this._setCurrScroll(this._calcNextScroll(), false); }; /** * Scroll to the previous set of items. */ ConveyorBeltCommon.prototype._scrollPrev = function() { if (!this._bScrolling) this._setCurrScroll(this._calcPrevScroll(), false); }; /** * Calculate the scroll position for the next set of items. * @return {number} Next scroll position */ ConveyorBeltCommon.prototype._calcNextScroll = function() { var nextIndex = this._calcNextVisibleItemIndex(); var scroll = 0; //if single item is bigger than viewport, then scroll by viewport size if (nextIndex === this._calcFirstVisibleItemIndex()) { scroll = this._getCurrScroll() + this._getCurrViewportSize(); } else { scroll = this._calcStartScroll(nextIndex); } return scroll; }; /** * Calculate the scroll position for the previous set of items. * @return {number} Previous scroll position */ ConveyorBeltCommon.prototype._calcPrevScroll = function() { var prevIndex = this._calcPrevVisibleItemIndex(); var scroll = 0; //if single item is bigger than viewport, then scroll by viewport size if (prevIndex === this._calcLastVisibleItemIndex()) { scroll = this._getCurrScroll() - this._getCurrViewportSize(); } else { scroll = this._calcEndScroll(prevIndex); } //if at the end and scrolling prev, anticipate the next button becoming //visible and adjust the scroll position if (!this._isNextButtonShown()) { scroll += this._getButtonSize(); } //if scrolling prev and the scroll position is less than the size of the prev button, just //scroll to the very beginning because the prev button should get hidden if (scroll < this._getButtonSize()) { scroll = this._minScroll; } return scroll; }; /** * Calculate the scroll position for the start of the specified item. * @param {number} index Index of the item to scroll to * @return {number} Scroll position */ ConveyorBeltCommon.prototype._calcStartScroll = function(index) { var sizes = this._getSizes(); var sizeObj = sizes[index]; return sizeObj.start; }; /** * Calculate the scroll position for the end of the specified item. * @param {number} index Index of the item to scroll to * @return {number} Scroll position */ ConveyorBeltCommon.prototype._calcEndScroll = function(index) { var sizes = this._getSizes(); var sizeObj = sizes[index]; return sizeObj.end - this._getCurrViewportSize() + 1; }; /** * Calculate the index of the first visible item. * @return {number} Index of first visible item */ ConveyorBeltCommon.prototype._calcFirstVisibleItemIndex = function() { var currScroll = this._getCurrScroll(); var i = this._calcItemIndex(currScroll); return (i < 0) ? 0 : i; }; /** * Calculate the index of the last visible item. * @return {number} Index of last visible item */ ConveyorBeltCommon.prototype._calcLastVisibleItemIndex = function() { var elemSize = this._getCurrViewportSize(); var currScroll = this._getCurrScroll() + elemSize - 1; var i = this._calcItemIndex(currScroll); var sizes = this._getSizes(); return (i < 0) ? sizes.length - 1 : i; }; /** * Calculate the index of the previous visible item. * @return {number} Index of previous visible item */ ConveyorBeltCommon.prototype._calcPrevVisibleItemIndex = function() { var currScroll = this._getCurrScroll() - 1; var i = this._calcItemIndex(currScroll); return (i < 0) ? 0 : i; }; /** * Calculate the index of the next visible item. * @return {number} Index of next visible item */ ConveyorBeltCommon.prototype._calcNextVisibleItemIndex = function() { var elemSize = this._getCurrViewportSize(); var currScroll = this._getCurrScroll() + elemSize; var i = this._calcItemIndex(currScroll); var sizes = this._getSizes(); return (i < 0) ? sizes.length - 1 : i; }; /** * Calculate the index of the item at the given scroll position. * @param {number} scroll Scroll position * @return {number} Index of item at given scroll position */ ConveyorBeltCommon.prototype._calcItemIndex = function(scroll) { var sizes = this._getSizes(); for (var i = 0; i < sizes.length; i++) { var sizeObj = sizes[i]; if (scroll <= sizeObj.end) return i; } return -1; }; /** * Convert a logical scroll position to its corresponding browser value. * @param {number} scroll logical scroll position * @return {number} browser scroll position */ ConveyorBeltCommon.prototype._convertScrollLogicalToBrowser = function(scroll) { //(comment mostly copied from AdfConveyorBeltSupport) //If this is LTR or RTL mode in IE, then we want the default positive new scroll value. //If FF in RTL, then get the negative scroll value //If Webkit in RTL, to scroll to a position, we resolve this equation: // contentContainerWidth - browserScroll = overflowContainerWidth + logicalScroll var newScroll = scroll; if (this._bRtl && this._isHorizontal()) { if (this._bAgentGecko) { newScroll = -scroll; } else if (this._bAgentWebkit || this._bAgentOpera) { var contentContainer = this._contentContainer; var overflowContainer = this._overflowContainer; newScroll = contentContainer.offsetWidth - overflowContainer.offsetWidth - scroll; } } return newScroll; }; /** * Convert a browser scroll position to its corresponding logical value. * @param {number} scroll browser scroll position * @return {number} logical scroll position */ ConveyorBeltCommon.prototype._convertScrollBrowserToLogical = function(scroll) { //(comment mostly copied from AdfConveyorBeltSupport) //If this is LTR or RTL mode in IE, then we want the default positive new scroll value. //If FF in RTL, then get the negative scroll value //If Webkit in RTL, to scroll to a position, we resolve this equation: // contentContainerWidth - browserScroll = overflowContainerWidth + logicalScroll //because the equations are the same whether converting from browser -> logical or logical -> browser, //simply call _convertScrollLogicalToBrowser from here //(NOTE: want to leave _convertScrollBrowserToLogical as a separate function so that it's clear from the //calling code which conversion direction is used, and in case the conversion impls ever need to be changed) return this._convertScrollLogicalToBrowser(scroll); }; /** * Scroll animation speed (px/ms). */ ConveyorBeltCommon._SCROLL_SPEED = 1.1; /** * Touch swipe threshold (percentage of conveyor size). */ ConveyorBeltCommon._SWIPE_THRESHOLD = .33; /** * Copyright (c) 2014, Oracle and/or its affiliates. * All rights reserved. */ /** * @ojcomponent oj.ojConveyorBelt * @augments oj.baseComponent * @since 0.6 * * @classdesc * <h3 id="conveyorBeltOverview-section"> * JET ConveyorBelt Component * <a class="bookmarkable-link" title="Bookmarkable Link" href="#conveyorBeltOverview-section"></a> * </h3> * * <p>Description: Container component that manages overflow for its child * components and allows scrolling among them. * * <p>A JET ConveyorBelt can be created from any * <code class="prettyprint">&lt;div></code> element that contains * multiple child elements at the same level to scroll among. The root must be * a <code class="prettyprint">&lt;div></code> element because the ConveyorBelt * will create additional DOM elements between the root and the scrollable child * elements. * <p>The size of the ConveyorBelt must somehow be constrained in order for * there to be overflow to manage, for example by specifying CSS * <code class="prettyprint">max-width</code> or * <code class="prettyprint">max-height</code>. * <p>If the elements to be scrolled among are direct children of the * ConveyorBelt, then ConveyorBelt will ensure that they are laid out * appropriately for its orientation. However, if the elements to be scrolled * among are contained by a single nested descendant element, the * <code class="prettyprint">contentParent</code>, then it is up to calling code * to ensure that the elements are laid out appropriately. For example, * elements can be forced horizontal by using CSS * <code class="prettyprint">white-space:nowrap</code>, or vertical by using * <code class="prettyprint">display:block</code>, before creating the * ConveyorBelt. * * <pre class="prettyprint"> * <code> * &lt;div id="conveyorBelt" style="max-width:100px;" * data-bind="ojComponent: {component: 'ojConveyorBelt'}"> * &lt;button id="button1">Alpha&lt;/button> * &lt;button id="button2">Beta&lt;/button> * &lt;button id="button3">Gamma&lt;/button> * &lt;button id="button4">Delta&lt;/button> * &lt;button id="button5">Epsilon&lt;/button> * &lt;button id="button6">Zeta&lt;/button> * &lt;/div> * </code></pre> * * * <h3 id="touch-section"> * Touch End User Information * <a class="bookmarkable-link" title="Bookmarkable Link" href="#touch-section"></a> * </h3> * * {@ojinclude "name":"touchDoc"} * * * <h3 id="keyboard-section"> * Keyboard End User Information * <a class="bookmarkable-link" title="Bookmarkable Link" href="#keyboard-section"></a> * </h3> * * {@ojinclude "name":"keyboardDoc"} * * * <h3 id="keyboard-appdev-section"> * Keyboard Application Developer Information * <a class="bookmarkable-link" title="Bookmarkable Link" href="#keyboard-appdev-section"></a> * </h3> * * <p>Providing keyboard support for the items in the conveyor belt is the * responsibility of the application developer, if the items do not already * support keyboard interaction. This could be done, for example, by specifying * <code class="prettyprint">tabindex</code> on each item to enable tab * navigation. Alternatively, this could be done by adding a keyboard listener * and responding to key events, like pressing the arrow keys. * * * <h3 id="accessibility-section"> * Accessibility * <a class="bookmarkable-link" title="Bookmarkable Link" href="#accessibility-section"></a> * </h3> * * <p>ConveyorBelt itself does nothing special for accessibility. * It is the responsibility of the application developer to make the items in * the conveyor accessible. Sighted keyboard-only users need to be able to * access the items in the conveyor just by using the keyboard. * It is up to the child items of the ConveyorBelt to support keyboard * navigation. If child items support tab navigation, the browser may scroll * them into view when they receive focus. If child items support other forms * of keyboard navigation, for example by using the arrow keys, it is up to the * child items to scroll themselves into view. This may be done, for example, * by calling the DOM function <code class="prettyprint">focus()</code> or * <code class="prettyprint">scrollIntoView()</code> on the item. * ConveyorBelt will be aware of tab based or programmatic scrolling and will * honor it, updating itself to toggle visibility of the overflow indicators as * needed. * * * <h3 id="rtl-section"> * Reading direction * <a class="bookmarkable-link" title="Bookmarkable Link" href="#rtl-section"></a> * </h3> * * <p>As with any JET component, in the unusual case that the directionality * (LTR or RTL) changes post-init, the conveyorBelt must be * <code class="prettyprint">refresh()</code>ed. * * * <h3 id="pseudos-section"> * Pseudo-selectors * <a class="bookmarkable-link" title="Bookmarkable Link" href="#pseudos-section"></a> * </h3> * * <p>The <code class="prettyprint">:oj-conveyorbelt</code> pseudo-selector can * be used in jQuery expressions to select JET ConveyorBelt. For example: * * <pre class="prettyprint"> * <code>$( ":oj-conveyorbelt" ) // selects all JET ConveyorBelts on the page * $myEventTarget.closest( ":oj-conveyorbelt" ) // selects the closest ancestor that is a JET ConveyorBelt * </code></pre> * * * <h3 id="jqui2jet-section"> * JET for jQuery UI developers * <a class="bookmarkable-link" title="Bookmarkable Link" href="#jqui2jet-section"></a> * </h3> * * <p>Event names for all JET components are prefixed with "oj", instead of * component-specific prefixes like "conveyorBelt". * * <!-- - - - - Above this point, the tags are for the class. * Below this point, the tags are for the constructor (initializer). - - - - - - --> * * @desc Creates a JET ConveyorBelt. * @example <caption>Initialize the conveyorBelt with no options specified:</caption> * $( ".selector" ).ojConveyorBelt(); * * @example <caption>Initialize the conveyorBelt with some options specified:</caption> * $( ".selector" ).ojConveyorBelt( { "orientation": "vertical" } ); * * @example <caption>Initialize the conveyorBelt via the JET * <code class="prettyprint">ojComponent</code> binding:</caption> * &lt;div id="conveyorBelt" data-bind="ojComponent: { component: 'ojConveyorBelt', orientation: 'vertical'}"> */ (function() { oj.__registerWidget("oj.ojConveyorBelt", $['oj']['baseComponent'], { defaultElement: "<div>", widgetEventPrefix: "oj", options: { /** * Specify the orientation of the conveyorBelt. * * @expose * @memberof! oj.ojConveyorBelt * @instance * @type {string} * @ojvalue {string} "horizontal" Orient the conveyorBelt horizontally. * @ojvalue {string} "vertical" Orient the conveyorBelt vertically. * @default <code class="prettyprint">"horizontal"</code> * * @example <caption>Initialize the conveyorBelt with the * <code class="prettyprint">orientation</code> option specified:</caption> * $( ".selector" ).ojConveyorBelt( { "orientation": "vertical" } ); * * @example <caption>Get or set the <code class="prettyprint">orientation</code> * option after initialization:</caption> * // getter * var orientation = $( ".selector" ).ojConveyorBelt( "option", "orientation" ); * * // setter * $( ".selector" ).ojConveyorBelt( "option", "orientation", "vertical" ); */ orientation: "horizontal", /** * Specify the selector of the descendant DOM element in the conveyorBelt * that directly contains the items to scroll among. * * <p>This option is <code class="prettyprint">null</code> by default, * meaning that the items to scroll among are direct children of the * conveyorBelt DOM element. In some cases, the items to scroll among * are not direct children of the conveyorBelt DOM element, but are instead * nested in a descendant DOM element. In such cases, this option should be * specified to point to the descendant DOM element whose direct children * are the items to scroll among. For example, if the items to scroll * among are buttons in a buttonset, the buttons are direct children of * the DOM element representing the buttonset. The buttonset would be * the direct child of the conveyorBelt. If the * <code class="prettyprint">id</code> of the buttonset DOM element were * <code class="prettyprint">'myContentDiv'</code>, then contentParent * would be specified as <code class="prettyprint">'#myContentDiv'</code>. * * <p><b>WARNING:</b> The selector specified for this option should match * only a single descendant DOM element. If multiple elements are matched, * then only the first one will be used. Applications should not depend on * this behavior because we reserve the right to change it in the future in * order to allow and use multiple matching elements. * * @expose * @memberof! oj.ojConveyorBelt * @instance * @type {?string} * @default <code class="prettyprint">null</code> * * @example <caption>Initialize the conveyorBelt with the * <code class="prettyprint">contentParent</code> option specified:</caption> * // HTML * &lt;div> // conveyorBelt DOM element * &lt;div id="myContentDiv"> // contentParent DOM element * &lt;button>Item 1&lt;/button> // items to scroll among... * &lt;button>Item 2&lt;/button> * &lt;button>Item 3&lt;/button> * &lt;button>Item 4&lt;/button> * &lt;button>Item 5&lt;/button> * &lt;/div> * &lt;/div> * * // JS * $( ".selector" ).ojConveyorBelt( { "contentParent": "#myContentDiv" } ); * * @example <caption>Get or set the <code class="prettyprint">contentParent</code> * option after initialization:</caption> * // getter * var contentParent = $( ".selector" ).ojConveyorBelt( "option", "contentParent" ); * * // setter * $( ".selector" ).ojConveyorBelt( "option", "contentParent", "#myContentDiv" ); */ contentParent: null /** * To avoid tight coupling between a ConveyorBelt and its contents, JET * ConveyorBelt does not support the <code class="prettyprint">disabled</code> * option. * * <p><b>WARNING:</b> Applications should not depend on this behavior * because we reserve the right to change it in the future in order to * support <code class="prettyprint">disabled</code> and propagate it to * child components of ConveyorBelt. * * @member * @name disabled * @memberof oj.ojConveyorBelt * @instance * @type {boolean} * @default <code class="prettyprint">false</code> */ // disabled option declared in superclass, but we still want the above API doc // Events /** * Triggered when the conveyorBelt is created. * * @event * @name create * @memberof oj.ojConveyorBelt * @instance * @property {Event} event <code class="prettyprint">jQuery</code> event object * @property {Object} ui Currently empty * * @example <caption>Initialize the conveyorBelt with the <code class="prettyprint">create</code> callback specified:</caption> * $( ".selector" ).ojConveyorBelt({ * "create": function( event, ui ) {} * }); * * @example <caption>Bind an event listener to the <code class="prettyprint">ojcreate</code> event:</caption> * $( ".selector" ).on( "ojcreate", function( event, ui ) {} ); */ // create event declared in superclass, but we still want the above API doc }, /** * After _ComponentCreate and _AfterCreate, * the widget should be 100% set up. this._super should be called first. * @override * @protected * @instance * @memberof! oj.ojConveyorBelt */ _ComponentCreate : function () // Override of protected base class method. { //call superclass first this._super(); var elem = this.element; elem.addClass("oj-conveyorbelt oj-component"); //FIX : log warning message when "disabled" option set var options = this.options; if (options.disabled) { oj.Logger.warn(_WARNING_DISABLED_OPTION); } //FIX : remove override of _init() and call _setup() from here this._setup(true); }, // This method currently runs at create, init, and refresh time (since refresh() is called by _init()). /** * Refreshes the visual state of the conveyorBelt. JET components require a * <code class="prettyprint">refresh()</code> or re-init after the DOM is * programmatically changed underneath the component. * * <p>This method does not accept any arguments. * * @expose * @memberof! oj.ojConveyorBelt * @instance * * @example <caption>Invoke the <code class="prettyprint">refresh</code> method:</caption> * $( ".selector" ).ojConveyorBelt( "refresh" ); */ refresh: function() // Override of public base class method. { this._super(); //if RTL has changed, just destroy and recreate the ConveyorBeltCommon var bRTL = (this._GetReadingDirection() === "rtl"); var bRecreate = (bRTL !== this._bRTL); if (bRecreate) { this._destroyCBCommon(); } this._setup(bRecreate); }, /** * Notifies the component that its subtree has been made visible * programmatically after the component has been created. * @memberof! oj.ojConveyorBelt * @instance * @protected * @override */ _NotifyShown: function() { this._super(); //FIX : perform a deferred layout if (this._needsSetup) { this._setup(this._needsSetup[0]); } }, /** * Notifies the component that its subtree has been connected to the document * programmatically after the component has been created. * @memberof! oj.ojConveyorBelt * @instance * @protected * @override */ _NotifyAttached: function() { this._super(); //FIX : perform a deferred layout if (this._needsSetup) { this._setup(this._needsSetup[0]); } }, // isInit is true for init (create and re-init), false for refresh /** * Setup the conveyorBelt. * @param {boolean} isInit true if _setup is called from _init(), false * if called from refresh() * @memberof! oj.ojConveyorBelt * @instance * @private */ _setup: function(isInit) // Private, not an override (not in base class). { //FIX : if conveyor is detached or hidden, we can't layout //correctly, so defer layout until conveyor is attached or shown if (!this._canCalculateSizes()) { //want a true value of isInit to take precedence over a false value var oldIsInit = false; if (this._needsSetup) { oldIsInit = this._needsSetup[0]; } this._needsSetup = [isInit || oldIsInit]; return; } this._needsSetup = null; this._bRTL = (this._GetReadingDirection() === "rtl"); var elem = this.element; var options = this.options; if (isInit) { if (!this._cbCommon) { var orientation = options.orientation; var prevStyleClass = null; var nextStyleClass = null; var prevIcon = null; var nextIcon = null; var animateScrollFunc = null; if (orientation !== "vertical") { prevStyleClass = "oj-enabled oj-conveyorbelt-overflow-indicator oj-start oj-default"; nextStyleClass = "oj-enabled oj-conveyorbelt-overflow-indicator oj-end oj-default"; prevIcon = this._createIcon("oj-conveyorbelt-overflow-icon oj-start"); nextIcon = this._createIcon("oj-conveyorbelt-overflow-icon oj-end"); animateScrollFunc = this._animateScrollLeft; } else { prevStyleClass = "oj-enabled oj-conveyorbelt-overflow-indicator oj-top oj-default"; nextStyleClass = "oj-enabled oj-conveyorbelt-overflow-indicator oj-bottom oj-default"; prevIcon = this._createIcon("oj-conveyorbelt-overflow-icon oj-top"); nextIcon = this._createIcon("oj-conveyorbelt-overflow-icon oj-bottom"); animateScrollFunc = this._animateScrollTop; } var buttonInfo = {}; buttonInfo.prevButtonStyleClass = prevStyleClass; buttonInfo.nextButtonStyleClass = nextStyleClass; buttonInfo.prevButtonIcon = prevIcon; buttonInfo.nextButtonIcon = nextIcon; var callbackInfo = {}; callbackInfo.addResizeListener = oj.DomUtils.addResizeListener; callbackInfo.removeResizeListener = oj.DomUtils.removeResizeListener; //disable scroll animation during testing if (oj.Config.getAutomationMode() !== "enabled") { callbackInfo.scrollFunc = animateScrollFunc; } var contentParentElem = null; if (options.contentParent) { //only use the first result returned from the contentParent selector contentParentElem = $(options.contentParent)[0]; } this._cbCommon = new ConveyorBeltCommon( elem[0], orientation, contentParentElem, this._bRTL, buttonInfo, callbackInfo); } } var cbCommon = this._cbCommon; cbCommon.setup(isInit); if (isInit) { var children = elem.find(".oj-conveyorbelt-overflow-indicator"); this._setupButtonMouseStyles(children); } }, /** * Destroy the conveyorBelt. * @memberof! oj.ojConveyorBelt * @instance * @override * @protected */ _destroy: function() // Override of protected base class method. { this._destroyCBCommon(); var elem = this.element; elem.removeClass("oj-conveyorbelt oj-component"); //call superclass last this._super(); }, /** * Set an option on the conveyorBelt. * @memberof! oj.ojConveyorBelt * @instance * @override * @protected */ _setOption: function(key, value, flags) // Override of protected base class method. // Method name needn't be quoted since is in externs.js. { var bRecreate = false; switch (key) { //when changing containerParent or orientation, just destroy and recreate //the ConveyorBeltCommon case "containerParent": case "orientation": bRecreate = true; break; case "disabled": //FIX : log warning message when "disabled" option set oj.Logger.warn(_WARNING_DISABLED_OPTION); break; } //if recreating, destroy the ConveyorBeltCommon before calling superclass //_setOption if (bRecreate) { this._destroyCBCommon(); } this._super(key, value, flags); //if recreating, setup the new ConveyorBeltCommon after calling superclass //_setOption if (bRecreate) { this._setup(true); } }, /** * Destroy the ConveyorBeltCommon. * @memberof! oj.ojConveyorBelt * @instance * @private */ _destroyCBCommon: function() { var cbCommon = this._cbCommon; if (cbCommon) { //FIX : detach mouse listeners from overflow indicators //before destroying cbCommon in order to avoid memory leaks var elem = this.element; var children = elem.find(".oj-conveyorbelt-overflow-indicator"); children.off(this.eventNamespace); cbCommon.destroy(); } this._cbCommon = null; }, /** * Determine whether the conveyorBelt can calculate sizes (when it is * attached to the page DOM and not hidden). * @returns {boolean} true if sizes can be calculated, false if not * @memberof! oj.ojConveyorBelt * @instance * @private */ _canCalculateSizes: function() { var div = document.createElement("div"); var style = div.style; style.width = "10px"; style.height = "10px"; var elem = this.element[0]; elem.appendChild(div); // @HtmlUpdateOK var bCanCalcSizes = false; try { bCanCalcSizes = div.offsetWidth > 0 && div.offsetHeight > 0; } catch (e) { //do nothing } elem.removeChild(div); return bCanCalcSizes; }, /** * Setup mouse listeners to change button styles. * @param {Object} element jQuery element to affect * @memberof! oj.ojConveyorBelt * @private */ _setupButtonMouseStyles: function(element) { element .on("mousedown" + this.eventNamespace, function( event ) { var currTarget = event.currentTarget; $(currTarget).addClass("oj-active"); }) .on("mouseup" + this.eventNamespace, function( event ) { var currTarget = event.currentTarget; $(currTarget).removeClass("oj-active"); }) .on("mouseenter" + this.eventNamespace, function( event ) { var currTarget = event.currentTarget; $(currTarget).addClass("oj-hover"); $(currTarget).removeClass("oj-default"); }) .on("mouseleave" + this.eventNamespace, function( event ) { var currTarget = event.currentTarget; $(currTarget).removeClass("oj-hover"); $(currTarget).removeClass("oj-active"); $(currTarget).addClass("oj-default"); }); }, /** * Create a DOM element for an icon. * @param {string} iconStyleClass Style class for the icon * @memberof! oj.ojConveyorBelt * @private */ _createIcon: function(iconStyleClass) { var span = document.createElement("span"); span.setAttribute("class", "oj-component-icon " + iconStyleClass); return span; }, /** * Animate setting the scrollLeft DOM property. * @param {Element} elem DOM element to scroll * @param {number} value Scroll value * @param {number} duration Duration of animation, in ms * @param {function()} onEndFunc Function to call when the animation ends * @memberof! oj.ojConveyorBelt * @private */ _animateScrollLeft: function(elem, value, duration, onEndFunc) { var props = {}; props["scrollLeft"] = value; //use swing instead of easeInOutCubic because easeInOutCubic isn't found //when running in the cookbook $(elem).animate(props, duration, "swing", onEndFunc); }, /** * Animate setting the scrollTop DOM property. * @param {Element} elem DOM element to scroll * @param {number} value Scroll value * @param {number} duration Duration of animation, in ms * @param {function()} onEndFunc Function to call when the animation ends * @memberof! oj.ojConveyorBelt * @private */ _animateScrollTop: function(elem, value, duration, onEndFunc) { var props = {}; props["scrollTop"] = value; //use swing instead of easeInOutCubic because easeInOutCubic isn't found //when running in the cookbook $(elem).animate(props, duration, "swing", onEndFunc); }, //** @inheritdoc */ getNodeBySubId: function(locator) { if (locator == null) { return this.element ? this.element[0] : null; } var subId = locator['subId']; if (subId === "oj-conveyorbelt-start-overflow-indicator") { return this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-start")[0]; } if (subId === "oj-conveyorbelt-end-overflow-indicator") { return this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-end")[0]; } if (subId === "oj-conveyorbelt-top-overflow-indicator") { return this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-top")[0]; } if (subId === "oj-conveyorbelt-bottom-overflow-indicator") { return this.widget().find(".oj-conveyorbelt-overflow-indicator.oj-bottom")[0]; } // Non-null locators have to be handled by the component subclasses return null; }, //** @inheritdoc */ getSubIdByNode: function(node) { var startIndicator = this.getNodeBySubId({'subId':'oj-conveyorbelt-start-overflow-indicator'}); var endIndicator = this.getNodeBySubId({'subId':'oj-conveyorbelt-end-overflow-indicator'}); var topIndicator = this.getNodeBySubId({'subId':'oj-conveyorbelt-top-overflow-indicator'}); var bottomIndicator = this.getNodeBySubId({'subId':'oj-conveyorbelt-bottom-overflow-indicator'}); var currentNode = node; var elem = this.element[0]; while (currentNode && currentNode != elem) { if (currentNode === startIndicator) return {'subId':'oj-conveyorbelt-start-overflow-indicator'}; else if (currentNode === endIndicator) return {'subId':'oj-conveyorbelt-end-overflow-indicator'}; else if (currentNode === topIndicator) return {'subId':'oj-conveyorbelt-top-overflow-indicator'}; else if (currentNode === bottomIndicator) return {'subId':'oj-conveyorbelt-bottom-overflow-indicator'}; currentNode = currentNode.parentElement; } return null; } // start jsdoc fragments ///////////////////////////////////////////////////// /** * <p>Sub-ID for the start overflow indicator of a horizontal ConveyorBelt.</p> * * @ojsubid oj-conveyorbelt-start-overflow-indicator * @memberof oj.ojConveyorBelt * * @example <caption>Get the start overflow indicator:</caption> * var node = $( ".selector" ).ojConveyorBelt( "getNodeBySubId", {'subId': 'oj-conveyorbelt-start-overflow-indicator'} ); */ /** * <p>Sub-ID for the end overflow indicator of a horizontal ConveyorBelt.</p> * * @ojsubid oj-conveyorbelt-end-overflow-indicator * @memberof oj.ojConveyorBelt * * @example <caption>Get the end overflow indicator:</caption> * var node = $( ".selector" ).ojConveyorBelt( "getNodeBySubId", {'subId': 'oj-conveyorbelt-end-overflow-indicator'} ); */ /** * <p>Sub-ID for the top overflow indicator of a vertical ConveyorBelt.</p> * * @ojsubid oj-conveyorbelt-top-overflow-indicator * @memberof oj.ojConveyorBelt * * @example <caption>Get the top overflow indicator:</caption> * var node = $( ".selector" ).ojConveyorBelt( "getNodeBySubId", {'subId': 'oj-conveyorbelt-top-overflow-indicator'} ); */ /** * <p>Sub-ID for the bottom overflow indicator of a vertical ConveyorBelt.</p> * * @ojsubid oj-conveyorbelt-bottom-overflow-indicator * @memberof oj.ojConveyorBelt * * @example <caption>Get the bottom overflow indicator:</caption> * var node = $( ".selector" ).ojConveyorBelt( "getNodeBySubId", {'subId': 'oj-conveyorbelt-bottom-overflow-indicator'} ); */ /** * <table class="keyboard-table"> * <thead> * <tr> * <th>Target</th> * <th>Gesture</th> * <th>Action</th> * </tr> * </thead> * <tbody> * <tr> * <td>ConveyorBelt</td> * <td><kbd>Swipe</kbd></td> * <td>Transition to an adjacent logical page of child items.</td> * </tr> * <tr> * <td>Navigation Arrow</td> * <td><kbd>Tap</kbd></td> * <td>Transition to an adjacent logical page of child items.</td> * </tr> * </tbody> * </table> * * @ojfragment touchDoc - Used in touch gesture section of classdesc, and standalone gesture doc * @memberof oj.ojConveyorBelt */ /** * <p>ConveyorBelt is for layout only and does not directly support keyboard * interaction. It is up to the application to provide keyboard support. * * @ojfragment keyboardDoc - Used in keyboard section of classdesc, and standalone gesture doc * @memberof oj.ojConveyorBelt */ // end jsdoc fragments /////////////////////////////////////////////////////// }); // end of oj.__registerWidget // start static members and functions ////////////////////////////////////////// //FIX : log warning message when "disabled" option set var _WARNING_DISABLED_OPTION = "JET ConveyorBelt: 'disabled' option not supported"; // end static members and functions //////////////////////////////////////////// }()); // end of ConveyorBelt wrapper function });
'use strict'; const get = require('../get'); /*! * Like `schema.path()`, except with a document, because impossible to * determine path type without knowing the embedded discriminator key. */ module.exports = function getEmbeddedDiscriminatorPath(doc, path, options) { options = options || {}; const typeOnly = options.typeOnly; const parts = path.split('.'); let schema = null; let type = 'adhocOrUndefined'; for (let i = 0; i < parts.length; ++i) { const subpath = parts.slice(0, i + 1).join('.'); schema = doc.schema.path(subpath); if (schema == null) { type = 'adhocOrUndefined'; continue; } if (schema.instance === 'Mixed') { return typeOnly ? 'real' : schema; } type = doc.schema.pathType(subpath); if ((schema.$isSingleNested || schema.$isMongooseDocumentArrayElement) && schema.schema.discriminators != null) { const discriminators = schema.schema.discriminators; const discriminatorKey = doc.get(subpath + '.' + get(schema, 'schema.options.discriminatorKey')); if (discriminatorKey == null || discriminators[discriminatorKey] == null) { continue; } const rest = parts.slice(i + 1).join('.'); return getEmbeddedDiscriminatorPath(doc.get(subpath), rest, options); } } // Are we getting the whole schema or just the type, 'real', 'nested', etc. return typeOnly ? type : schema; };
;(function ( w, doc, undefined ) { // enable strict mode 'use strict'; /** * Local object for method references * and define script meta-data */ var ARIAswitch = {}; w.ARIAswitch = ARIAswitch; ARIAswitch.NS = 'ARIAswitch'; ARIAswitch.AUTHOR = 'Scott O\'Hara'; ARIAswitch.VERION = '0.2.0'; ARIAswitch.LICENSE = 'https://github.com/scottaohara/accessible-components/blob/master/LICENSE.md'; /** * Global Create * * This function validates that the minimum * required markup is present to create the * ARIA widget(s). Any additional markup elements * or attributes that do not exist in the found * required markup patterns will be generated * via this function. */ ARIAswitch.create = function () { // hooks var widget = doc.querySelectorAll('[data-action="aria-switch"]'); var self; var i; // define error message here, rather than in the weeds of the code var ariaLabelError = 'An attribute of "data-missing-label" has been added to a switch/switches that are missing aria-labelledby or aria-label attributes! Please add unique labels to the appropriate components!'; // if widgets exist, loop through all instances // and set up appropriate attributes for ( i = 0; i < widget.length; i++ ) { // set this specific widget self = widget[i]; // give each instance the role of switch if the role hasn't been set // or if it was set to something else in error if ( !self.hasAttribute('role') || self.getAttribute('role') !== 'switch' ) { self.setAttribute('role', 'switch'); } // since these sorts of buttons won't work if // JavaScript is disabled, (hopefully) a disabled // attribute is set to them by default. When JavaScript // is on, we should remove the disabled attributes EXCEPT // if a switch button is meant to be disabled by default, // in which case, look for the data-keep-disabled attribute // and DON'T remove that disabled attribute... if ( !self.hasAttribute('data-keep-disabled') ) { self.removeAttribute('disabled'); } // if an instance doesn't have a set aria-checked attribute, // then it must not be checked, so populate an aria-checked='false' if ( !self.hasAttribute('aria-checked') ) { self.setAttribute('aria-checked', 'false'); } // log an error if an aria-label or labelledby attribute // is not found on a switch. also add a 'data-missing-label' attribute // to further call out what instance(s) are without appropriate labeling. if ( !self.hasAttribute('aria-label') && !self.hasAttribute('aria-labelledby') ) { console.warn(ariaLabelError); } self.addEventListener('click', ARIAswitch.actions); } // for(widget.length) }; // ARIAswitch.create() // primary actions function ARIAswitch.actions = function ( e ) { e.preventDefault(); this.setAttribute('aria-checked', e.target.getAttribute('aria-checked') === 'true' ? 'false' : 'true'); }; // ARIAswitch.events() // init function to run start-up functions. // if expanding this script, place any other // initialize functions within here. ARIAswitch.init = function () { ARIAswitch.create(); }; // ARIAswitch.init() ARIAswitch.init(); })( window, document );
var util = require("util"); var choreography = require("temboo/core/choreography"); /* AddFavoriteFood Adds a specified food to a user's favorite food list. */ var AddFavoriteFood = function(session) { /* Create a new instance of the AddFavoriteFood Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/AddFavoriteFood" AddFavoriteFood.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new AddFavoriteFoodResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new AddFavoriteFoodInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the AddFavoriteFood Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var AddFavoriteFoodInputSet = function() { AddFavoriteFoodInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the FoodID input for this Choreo. ((required, integer) The id of the food you want to make a favorite.) */ this.set_FoodID = function(value) { this.setInput("FoodID", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the AddFavoriteFood Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var AddFavoriteFoodResultSet = function(resultStream) { AddFavoriteFoodResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(AddFavoriteFood, choreography.Choreography); util.inherits(AddFavoriteFoodInputSet, choreography.InputSet); util.inherits(AddFavoriteFoodResultSet, choreography.ResultSet); exports.AddFavoriteFood = AddFavoriteFood; /* CreateFood Create new private food for a user. */ var CreateFood = function(session) { /* Create a new instance of the CreateFood Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/CreateFood" CreateFood.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new CreateFoodResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new CreateFoodInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the CreateFood Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var CreateFoodInputSet = function() { CreateFoodInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the Calories input for this Choreo. ((required, integer) The number of calories per serving size.) */ this.set_Calories = function(value) { this.setInput("Calories", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Description input for this Choreo. ((optional, string) A description for the food entry.) */ this.set_Description = function(value) { this.setInput("Description", value); } /* Set the value of the FormType input for this Choreo. ((optional, string) Form type; (LIQUID or DRY).) */ this.set_FormType = function(value) { this.setInput("FormType", value); } /* Set the value of the MeasurementUnitID input for this Choreo. ((required, integer) The default measurement unit.) */ this.set_MeasurementUnitID = function(value) { this.setInput("MeasurementUnitID", value); } /* Set the value of the Name input for this Choreo. ((required, string) The name of the food.) */ this.set_Name = function(value) { this.setInput("Name", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the ServingSize input for this Choreo. ((required, integer) The default serving size.) */ this.set_ServingSize = function(value) { this.setInput("ServingSize", value); } } /* A ResultSet with methods tailored to the values returned by the CreateFood Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var CreateFoodResultSet = function(resultStream) { CreateFoodResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(CreateFood, choreography.Choreography); util.inherits(CreateFoodInputSet, choreography.InputSet); util.inherits(CreateFoodResultSet, choreography.ResultSet); exports.CreateFood = CreateFood; /* DeleteFavoriteFood Deletes a specified food from a user's favorite foods list. */ var DeleteFavoriteFood = function(session) { /* Create a new instance of the DeleteFavoriteFood Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/DeleteFavoriteFood" DeleteFavoriteFood.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new DeleteFavoriteFoodResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new DeleteFavoriteFoodInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the DeleteFavoriteFood Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var DeleteFavoriteFoodInputSet = function() { DeleteFavoriteFoodInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the FoodID input for this Choreo. ((required, integer) The id of the food to delete from you favorites list.) */ this.set_FoodID = function(value) { this.setInput("FoodID", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the DeleteFavoriteFood Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var DeleteFavoriteFoodResultSet = function(resultStream) { DeleteFavoriteFoodResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(DeleteFavoriteFood, choreography.Choreography); util.inherits(DeleteFavoriteFoodInputSet, choreography.InputSet); util.inherits(DeleteFavoriteFoodResultSet, choreography.ResultSet); exports.DeleteFavoriteFood = DeleteFavoriteFood; /* DeleteFoodLog Deletes a specified food log entry. */ var DeleteFoodLog = function(session) { /* Create a new instance of the DeleteFoodLog Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/DeleteFoodLog" DeleteFoodLog.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new DeleteFoodLogResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new DeleteFoodLogInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the DeleteFoodLog Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var DeleteFoodLogInputSet = function() { DeleteFoodLogInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the FoodLogID input for this Choreo. ((required, integer) The id of the food log you want to delete. The Id is returned in the LogFood response.) */ this.set_FoodLogID = function(value) { this.setInput("FoodLogID", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the DeleteFoodLog Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var DeleteFoodLogResultSet = function(resultStream) { DeleteFoodLogResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(DeleteFoodLog, choreography.Choreography); util.inherits(DeleteFoodLogInputSet, choreography.InputSet); util.inherits(DeleteFoodLogResultSet, choreography.ResultSet); exports.DeleteFoodLog = DeleteFoodLog; /* DeleteWaterLog Deletes a specified water log entry. */ var DeleteWaterLog = function(session) { /* Create a new instance of the DeleteWaterLog Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/DeleteWaterLog" DeleteWaterLog.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new DeleteWaterLogResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new DeleteWaterLogInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the DeleteWaterLog Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var DeleteWaterLogInputSet = function() { DeleteWaterLogInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } /* Set the value of the WaterLogID input for this Choreo. ((required, integer) The id of the water log you want to delete. The Id is returned in the LogWater response.) */ this.set_WaterLogID = function(value) { this.setInput("WaterLogID", value); } } /* A ResultSet with methods tailored to the values returned by the DeleteWaterLog Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var DeleteWaterLogResultSet = function(resultStream) { DeleteWaterLogResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(DeleteWaterLog, choreography.Choreography); util.inherits(DeleteWaterLogInputSet, choreography.InputSet); util.inherits(DeleteWaterLogResultSet, choreography.ResultSet); exports.DeleteWaterLog = DeleteWaterLog; /* GetFavoriteFoods Gets a list of a user's favorite foods. */ var GetFavoriteFoods = function(session) { /* Create a new instance of the GetFavoriteFoods Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetFavoriteFoods" GetFavoriteFoods.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetFavoriteFoodsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetFavoriteFoodsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetFavoriteFoods Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetFavoriteFoodsInputSet = function() { GetFavoriteFoodsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetFavoriteFoods Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetFavoriteFoodsResultSet = function(resultStream) { GetFavoriteFoodsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetFavoriteFoods, choreography.Choreography); util.inherits(GetFavoriteFoodsInputSet, choreography.InputSet); util.inherits(GetFavoriteFoodsResultSet, choreography.ResultSet); exports.GetFavoriteFoods = GetFavoriteFoods; /* GetFood Gets the details of a specific food in the Fitbit food database. */ var GetFood = function(session) { /* Create a new instance of the GetFood Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetFood" GetFood.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetFoodResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetFoodInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetFood Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetFoodInputSet = function() { GetFoodInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the FoodID input for this Choreo. ((required, integer) The ID of the food to retrieve.) */ this.set_FoodID = function(value) { this.setInput("FoodID", value); } } /* A ResultSet with methods tailored to the values returned by the GetFood Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetFoodResultSet = function(resultStream) { GetFoodResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetFood, choreography.Choreography); util.inherits(GetFoodInputSet, choreography.InputSet); util.inherits(GetFoodResultSet, choreography.ResultSet); exports.GetFood = GetFood; /* GetFoodGoal Gets a user's current daily calorie consumption goal. */ var GetFoodGoal = function(session) { /* Create a new instance of the GetFoodGoal Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetFoodGoal" GetFoodGoal.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetFoodGoalResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetFoodGoalInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetFoodGoal Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetFoodGoalInputSet = function() { GetFoodGoalInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetFoodGoal Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetFoodGoalResultSet = function(resultStream) { GetFoodGoalResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetFoodGoal, choreography.Choreography); util.inherits(GetFoodGoalInputSet, choreography.InputSet); util.inherits(GetFoodGoalResultSet, choreography.ResultSet); exports.GetFoodGoal = GetFoodGoal; /* GetFoodUnits Get a list of all valid Fitbit food units. */ var GetFoodUnits = function(session) { /* Create a new instance of the GetFoodUnits Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetFoodUnits" GetFoodUnits.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetFoodUnitsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetFoodUnitsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetFoodUnits Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetFoodUnitsInputSet = function() { GetFoodUnitsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((optional, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((optional, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } } /* A ResultSet with methods tailored to the values returned by the GetFoodUnits Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetFoodUnitsResultSet = function(resultStream) { GetFoodUnitsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetFoodUnits, choreography.Choreography); util.inherits(GetFoodUnitsInputSet, choreography.InputSet); util.inherits(GetFoodUnitsResultSet, choreography.ResultSet); exports.GetFoodUnits = GetFoodUnits; /* GetFoods Gets a summary and list of a user's food log entries for a specified date. */ var GetFoods = function(session) { /* Create a new instance of the GetFoods Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetFoods" GetFoods.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetFoodsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetFoodsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetFoods Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetFoodsInputSet = function() { GetFoodsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Date input for this Choreo. ((required, date) The date that corresponds with the log entry you want to retrieve (in the format yyyy-MM-dd).) */ this.set_Date = function(value) { this.setInput("Date", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetFoods Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetFoodsResultSet = function(resultStream) { GetFoodsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetFoods, choreography.Choreography); util.inherits(GetFoodsInputSet, choreography.InputSet); util.inherits(GetFoodsResultSet, choreography.ResultSet); exports.GetFoods = GetFoods; /* GetFrequentFoods Gets a list of a user's frequent foods. */ var GetFrequentFoods = function(session) { /* Create a new instance of the GetFrequentFoods Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetFrequentFoods" GetFrequentFoods.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetFrequentFoodsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetFrequentFoodsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetFrequentFoods Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetFrequentFoodsInputSet = function() { GetFrequentFoodsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetFrequentFoods Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetFrequentFoodsResultSet = function(resultStream) { GetFrequentFoodsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetFrequentFoods, choreography.Choreography); util.inherits(GetFrequentFoodsInputSet, choreography.InputSet); util.inherits(GetFrequentFoodsResultSet, choreography.ResultSet); exports.GetFrequentFoods = GetFrequentFoods; /* GetMeals Get a list of meals that a user has created in his or her food log. */ var GetMeals = function(session) { /* Create a new instance of the GetMeals Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetMeals" GetMeals.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetMealsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetMealsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetMeals Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetMealsInputSet = function() { GetMealsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetMeals Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetMealsResultSet = function(resultStream) { GetMealsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetMeals, choreography.Choreography); util.inherits(GetMealsInputSet, choreography.InputSet); util.inherits(GetMealsResultSet, choreography.ResultSet); exports.GetMeals = GetMeals; /* GetRecentFoods Gets a list of a user's recent foods. */ var GetRecentFoods = function(session) { /* Create a new instance of the GetRecentFoods Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetRecentFoods" GetRecentFoods.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetRecentFoodsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetRecentFoodsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetRecentFoods Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetRecentFoodsInputSet = function() { GetRecentFoodsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetRecentFoods Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetRecentFoodsResultSet = function(resultStream) { GetRecentFoodsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetRecentFoods, choreography.Choreography); util.inherits(GetRecentFoodsInputSet, choreography.InputSet); util.inherits(GetRecentFoodsResultSet, choreography.ResultSet); exports.GetRecentFoods = GetRecentFoods; /* GetWater Gets a summary and list of a user's water log entries for a given day. */ var GetWater = function(session) { /* Create a new instance of the GetWater Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetWater" GetWater.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetWaterResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetWaterInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetWater Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetWaterInputSet = function() { GetWaterInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Date input for this Choreo. ((required, date) The date that corresponds with the log entry you want to retrieve (in the format yyyy-MM-dd).) */ this.set_Date = function(value) { this.setInput("Date", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetWater Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetWaterResultSet = function(resultStream) { GetWaterResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetWater, choreography.Choreography); util.inherits(GetWaterInputSet, choreography.InputSet); util.inherits(GetWaterResultSet, choreography.ResultSet); exports.GetWater = GetWater; /* GetWaterGoal Get a user's current water goal. */ var GetWaterGoal = function(session) { /* Create a new instance of the GetWaterGoal Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/GetWaterGoal" GetWaterGoal.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new GetWaterGoalResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new GetWaterGoalInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the GetWaterGoal Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var GetWaterGoalInputSet = function() { GetWaterGoalInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the GetWaterGoal Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var GetWaterGoalResultSet = function(resultStream) { GetWaterGoalResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(GetWaterGoal, choreography.Choreography); util.inherits(GetWaterGoalInputSet, choreography.InputSet); util.inherits(GetWaterGoalResultSet, choreography.ResultSet); exports.GetWaterGoal = GetWaterGoal; /* LogFood Log a new food entry for a particular date. */ var LogFood = function(session) { /* Create a new instance of the LogFood Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/LogFood" LogFood.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new LogFoodResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new LogFoodInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the LogFood Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var LogFoodInputSet = function() { LogFoodInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the Amount input for this Choreo. ((required, integer) The amount of food consumed formatted like X.XX. Note that this input corresponds with the UnitId input.) */ this.set_Amount = function(value) { this.setInput("Amount", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Date input for this Choreo. ((required, date) The date that corresponds with the new log entry (in the format yyyy-MM-dd).) */ this.set_Date = function(value) { this.setInput("Date", value); } /* Set the value of the Favorite input for this Choreo. ((optional, boolean) Set to 1 to add food to favorites after creating log entry. Defaults to 0 for false.) */ this.set_Favorite = function(value) { this.setInput("Favorite", value); } /* Set the value of the FoodID input for this Choreo. ((required, integer) The id of the food to create a log entry for.) */ this.set_FoodID = function(value) { this.setInput("FoodID", value); } /* Set the value of the MealType input for this Choreo. ((required, string) The type of meal. Valid values: Breakfast, Morning Snack, Lunch, Afternoon Snack, Dinner, Anytime.) */ this.set_MealType = function(value) { this.setInput("MealType", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UnitID input for this Choreo. ((required, integer) This id can be retrieved through other calls such as: Get Foods (Recent, Frequent, Favorite), Search Foods or Get Food Units.) */ this.set_UnitID = function(value) { this.setInput("UnitID", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the LogFood Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var LogFoodResultSet = function(resultStream) { LogFoodResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(LogFood, choreography.Choreography); util.inherits(LogFoodInputSet, choreography.InputSet); util.inherits(LogFoodResultSet, choreography.ResultSet); exports.LogFood = LogFood; /* LogWater Log a new water entry for a particular date. */ var LogWater = function(session) { /* Create a new instance of the LogWater Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/LogWater" LogWater.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new LogWaterResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new LogWaterInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the LogWater Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var LogWaterInputSet = function() { LogWaterInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the Amount input for this Choreo. ((required, decimal) The amount of water consumed. Corresponds to the Unit input.) */ this.set_Amount = function(value) { this.setInput("Amount", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Date input for this Choreo. ((required, date) The date that corresponds with the new log entry (in the format yyyy-MM-dd).) */ this.set_Date = function(value) { this.setInput("Date", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the Unit input for this Choreo. ((required, string) Unit of measurement for the water entry. Valid values: 'ml', 'fl oz', or 'cup'.) */ this.set_Unit = function(value) { this.setInput("Unit", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the LogWater Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var LogWaterResultSet = function(resultStream) { LogWaterResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(LogWater, choreography.Choreography); util.inherits(LogWaterInputSet, choreography.InputSet); util.inherits(LogWaterResultSet, choreography.ResultSet); exports.LogWater = LogWater; /* SearchFoods Search public foods in the Fibit database and private user created foods by keyword search. */ var SearchFoods = function(session) { /* Create a new instance of the SearchFoods Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/SearchFoods" SearchFoods.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new SearchFoodsResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new SearchFoodsInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the SearchFoods Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var SearchFoodsInputSet = function() { SearchFoodsInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Query input for this Choreo. ((required, string) The search query (i.e. artichoke).) */ this.set_Query = function(value) { this.setInput("Query", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the SearchFoods Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var SearchFoodsResultSet = function(resultStream) { SearchFoodsResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(SearchFoods, choreography.Choreography); util.inherits(SearchFoodsInputSet, choreography.InputSet); util.inherits(SearchFoodsResultSet, choreography.ResultSet); exports.SearchFoods = SearchFoods; /* UpdateFoodGoal Create or updates a user's current daily calorie consumption goal or Food Plan. */ var UpdateFoodGoal = function(session) { /* Create a new instance of the UpdateFoodGoal Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/UpdateFoodGoal" UpdateFoodGoal.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new UpdateFoodGoalResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new UpdateFoodGoalInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the UpdateFoodGoal Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var UpdateFoodGoalInputSet = function() { UpdateFoodGoalInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the Calories input for this Choreo. ((conditional, integer) The calorie consumption goal; either calories or intensity should be provided.) */ this.set_Calories = function(value) { this.setInput("Calories", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the Intensity input for this Choreo. ((conditional, string) Food Plan intensity; (MAINTENANCE, EASIER, MEDIUM, KINDAHARD, HARDER); either calories or intensity should be provided.) */ this.set_Intensity = function(value) { this.setInput("Intensity", value); } /* Set the value of the Personalized input for this Choreo. ((optional, boolean) Food Plan type; true or false.) */ this.set_Personalized = function(value) { this.setInput("Personalized", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the UpdateFoodGoal Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var UpdateFoodGoalResultSet = function(resultStream) { UpdateFoodGoalResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(UpdateFoodGoal, choreography.Choreography); util.inherits(UpdateFoodGoalInputSet, choreography.InputSet); util.inherits(UpdateFoodGoalResultSet, choreography.ResultSet); exports.UpdateFoodGoal = UpdateFoodGoal; /* UpdateWaterGoal Create or updates a user's water goal. */ var UpdateWaterGoal = function(session) { /* Create a new instance of the UpdateWaterGoal Choreo. A TembooSession object, containing a valid set of Temboo credentials, must be supplied. */ var location = "/Library/Fitbit/Foods/UpdateWaterGoal" UpdateWaterGoal.super_.call(this, session, location); /* Define a callback that will be used to appropriately format the results of this Choreo. */ var newResultSet = function(resultStream) { return new UpdateWaterGoalResultSet(resultStream); } /* Obtain a new InputSet object, used to specify the input values for an execution of this Choreo. */ this.newInputSet = function() { return new UpdateWaterGoalInputSet(); } /* Execute this Choreo with the specified inputs, calling the specified callback upon success, and the specified errorCallback upon error. */ this.execute = function(inputs, callback, errorCallback) { this._execute(inputs, newResultSet, callback, errorCallback); } } /* An InputSet with methods appropriate for specifying the inputs to the UpdateWaterGoal Choreo. The InputSet object is used to specify input parameters when executing this Choreo. */ var UpdateWaterGoalInputSet = function() { UpdateWaterGoalInputSet.super_.call(this); /* Set the value of the AccessTokenSecret input for this Choreo. ((required, string) The Access Token Secret retrieved during the OAuth process.) */ this.set_AccessTokenSecret = function(value) { this.setInput("AccessTokenSecret", value); } /* Set the value of the AccessToken input for this Choreo. ((required, string) The Access Token retrieved during the OAuth process.) */ this.set_AccessToken = function(value) { this.setInput("AccessToken", value); } /* Set the value of the ConsumerKey input for this Choreo. ((required, string) The Consumer Key provided by Fitbit.) */ this.set_ConsumerKey = function(value) { this.setInput("ConsumerKey", value); } /* Set the value of the ConsumerSecret input for this Choreo. ((required, string) The Consumer Secret provided by Fitbit.) */ this.set_ConsumerSecret = function(value) { this.setInput("ConsumerSecret", value); } /* Set the value of the ResponseFormat input for this Choreo. ((optional, string) The format that you want the response to be in: xml or json. Defaults to json.) */ this.set_ResponseFormat = function(value) { this.setInput("ResponseFormat", value); } /* Set the value of the Target input for this Choreo. ((conditional, decimal) The target water goal. Note that a water goal is created in units based on locale (fl. oz. for US and milliliters elsewhere). ) */ this.set_Target = function(value) { this.setInput("Target", value); } /* Set the value of the UserID input for this Choreo. ((optional, string) The user's encoded id. Defaults to "-" (dash) which will return data for the user associated with the token credentials provided.) */ this.set_UserID = function(value) { this.setInput("UserID", value); } } /* A ResultSet with methods tailored to the values returned by the UpdateWaterGoal Choreo. The ResultSet object is used to retrieve the results of a Choreo execution. */ var UpdateWaterGoalResultSet = function(resultStream) { UpdateWaterGoalResultSet.super_.call(this, resultStream); /* Retrieve the value for the "Response" output from this Choreo execution. (The response from Fitbit.) */ this.get_Response = function() { return this.getResult("Response"); } } util.inherits(UpdateWaterGoal, choreography.Choreography); util.inherits(UpdateWaterGoalInputSet, choreography.InputSet); util.inherits(UpdateWaterGoalResultSet, choreography.ResultSet); exports.UpdateWaterGoal = UpdateWaterGoal;
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var levelup = _interopDefault(require('levelup')); var sublevel = _interopDefault(require('sublevel-pouchdb')); var through2 = require('through2'); var getArguments = _interopDefault(require('argsarray')); var pouchdbCollections = require('pouchdb-collections'); var Deque = _interopDefault(require('double-ended-queue')); var lie = _interopDefault(require('lie')); var debug = _interopDefault(require('debug')); var events = require('events'); var inherits = _interopDefault(require('inherits')); var Md5 = _interopDefault(require('spark-md5')); var vuvuzela = _interopDefault(require('vuvuzela')); var jsExtend = require('js-extend'); var fruitdown = _interopDefault(require('fruitdown')); // in the browser, LevelAlt doesn't need the // pre-2.2.0 LevelDB-specific migrations var toSublevel = function (name, db, callback) { process.nextTick(function () { callback(); }); }; var localAndMetaStores = function (db, stores, callback) { process.nextTick(function () { callback(); }); }; var migrate = { toSublevel: toSublevel, localAndMetaStores: localAndMetaStores }; /* istanbul ignore next */ var PouchPromise = typeof Promise === 'function' ? Promise : lie; function isBinaryObject(object) { return object instanceof ArrayBuffer || (typeof Blob !== 'undefined' && object instanceof Blob); } function cloneArrayBuffer(buff) { if (typeof buff.slice === 'function') { return buff.slice(0); } // IE10-11 slice() polyfill var target = new ArrayBuffer(buff.byteLength); var targetArray = new Uint8Array(target); var sourceArray = new Uint8Array(buff); targetArray.set(sourceArray); return target; } function cloneBinaryObject(object) { if (object instanceof ArrayBuffer) { return cloneArrayBuffer(object); } var size = object.size; var type = object.type; // Blob if (typeof object.slice === 'function') { return object.slice(0, size, type); } // PhantomJS slice() replacement return object.webkitSlice(0, size, type); } // most of this is borrowed from lodash.isPlainObject: // https://github.com/fis-components/lodash.isplainobject/ // blob/29c358140a74f252aeb08c9eb28bef86f2217d4a/index.js var funcToString = Function.prototype.toString; var objectCtorString = funcToString.call(Object); function isPlainObject(value) { var proto = Object.getPrototypeOf(value); /* istanbul ignore if */ if (proto === null) { // not sure when this happens, but I guess it can return true; } var Ctor = proto.constructor; return (typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); } function clone(object) { var newObject; var i; var len; if (!object || typeof object !== 'object') { return object; } if (Array.isArray(object)) { newObject = []; for (i = 0, len = object.length; i < len; i++) { newObject[i] = clone(object[i]); } return newObject; } // special case: to avoid inconsistencies between IndexedDB // and other backends, we automatically stringify Dates if (object instanceof Date) { return object.toISOString(); } if (isBinaryObject(object)) { return cloneBinaryObject(object); } if (!isPlainObject(object)) { return object; // don't clone objects like Workers } newObject = {}; for (i in object) { if (Object.prototype.hasOwnProperty.call(object, i)) { var value = clone(object[i]); if (typeof value !== 'undefined') { newObject[i] = value; } } } return newObject; } var log = debug('pouchdb:api'); // like underscore/lodash _.pick() function pick(obj, arr) { var res = {}; for (var i = 0, len = arr.length; i < len; i++) { var prop = arr[i]; if (prop in obj) { res[prop] = obj[prop]; } } return res; } function isChromeApp() { return (typeof chrome !== "undefined" && typeof chrome.storage !== "undefined" && typeof chrome.storage.local !== "undefined"); } var hasLocal; if (isChromeApp()) { hasLocal = false; } else { try { localStorage.setItem('_pouch_check_localstorage', 1); hasLocal = !!localStorage.getItem('_pouch_check_localstorage'); } catch (e) { hasLocal = false; } } function hasLocalStorage() { return hasLocal; } inherits(Changes, events.EventEmitter); /* istanbul ignore next */ function attachBrowserEvents(self) { if (isChromeApp()) { chrome.storage.onChanged.addListener(function (e) { // make sure it's event addressed to us if (e.db_name != null) { //object only has oldValue, newValue members self.emit(e.dbName.newValue); } }); } else if (hasLocalStorage()) { if (typeof addEventListener !== 'undefined') { addEventListener("storage", function (e) { self.emit(e.key); }); } else { // old IE window.attachEvent("storage", function (e) { self.emit(e.key); }); } } } function Changes() { events.EventEmitter.call(this); this._listeners = {}; attachBrowserEvents(this); } Changes.prototype.addListener = function (dbName, id, db, opts) { /* istanbul ignore if */ if (this._listeners[id]) { return; } var self = this; var inprogress = false; function eventFunction() { /* istanbul ignore if */ if (!self._listeners[id]) { return; } if (inprogress) { inprogress = 'waiting'; return; } inprogress = true; var changesOpts = pick(opts, [ 'style', 'include_docs', 'attachments', 'conflicts', 'filter', 'doc_ids', 'view', 'since', 'query_params', 'binary' ]); /* istanbul ignore next */ function onError() { inprogress = false; } db.changes(changesOpts).on('change', function (c) { if (c.seq > opts.since && !opts.cancelled) { opts.since = c.seq; opts.onChange(c); } }).on('complete', function () { if (inprogress === 'waiting') { setTimeout(function (){ eventFunction(); },0); } inprogress = false; }).on('error', onError); } this._listeners[id] = eventFunction; this.on(dbName, eventFunction); }; Changes.prototype.removeListener = function (dbName, id) { /* istanbul ignore if */ if (!(id in this._listeners)) { return; } events.EventEmitter.prototype.removeListener.call(this, dbName, this._listeners[id]); }; /* istanbul ignore next */ Changes.prototype.notifyLocalWindows = function (dbName) { //do a useless change on a storage thing //in order to get other windows's listeners to activate if (isChromeApp()) { chrome.storage.local.set({dbName: dbName}); } else if (hasLocalStorage()) { localStorage[dbName] = (localStorage[dbName] === "a") ? "b" : "a"; } }; Changes.prototype.notify = function (dbName) { this.emit(dbName); this.notifyLocalWindows(dbName); }; function guardedConsole(method) { if (console !== 'undefined' && method in console) { var args = Array.prototype.slice.call(arguments, 1); console[method].apply(console, args); } } inherits(PouchError, Error); function PouchError(opts) { Error.call(this, opts.reason); this.status = opts.status; this.name = opts.error; this.message = opts.reason; this.error = true; } PouchError.prototype.toString = function () { return JSON.stringify({ status: this.status, name: this.name, message: this.message, reason: this.reason }); }; var UNAUTHORIZED = new PouchError({ status: 401, error: 'unauthorized', reason: "Name or password is incorrect." }); var MISSING_BULK_DOCS = new PouchError({ status: 400, error: 'bad_request', reason: "Missing JSON list of 'docs'" }); var MISSING_DOC = new PouchError({ status: 404, error: 'not_found', reason: 'missing' }); var REV_CONFLICT = new PouchError({ status: 409, error: 'conflict', reason: 'Document update conflict' }); var INVALID_ID = new PouchError({ status: 400, error: 'bad_request', reason: '_id field must contain a string' }); var MISSING_ID = new PouchError({ status: 412, error: 'missing_id', reason: '_id is required for puts' }); var RESERVED_ID = new PouchError({ status: 400, error: 'bad_request', reason: 'Only reserved document ids may start with underscore.' }); var NOT_OPEN = new PouchError({ status: 412, error: 'precondition_failed', reason: 'Database not open' }); var UNKNOWN_ERROR = new PouchError({ status: 500, error: 'unknown_error', reason: 'Database encountered an unknown error' }); var BAD_ARG = new PouchError({ status: 500, error: 'badarg', reason: 'Some query argument is invalid' }); var INVALID_REQUEST = new PouchError({ status: 400, error: 'invalid_request', reason: 'Request was invalid' }); var QUERY_PARSE_ERROR = new PouchError({ status: 400, error: 'query_parse_error', reason: 'Some query parameter is invalid' }); var DOC_VALIDATION = new PouchError({ status: 500, error: 'doc_validation', reason: 'Bad special document member' }); var BAD_REQUEST = new PouchError({ status: 400, error: 'bad_request', reason: 'Something wrong with the request' }); var NOT_AN_OBJECT = new PouchError({ status: 400, error: 'bad_request', reason: 'Document must be a JSON object' }); var DB_MISSING = new PouchError({ status: 404, error: 'not_found', reason: 'Database not found' }); var IDB_ERROR = new PouchError({ status: 500, error: 'indexed_db_went_bad', reason: 'unknown' }); var WSQ_ERROR = new PouchError({ status: 500, error: 'web_sql_went_bad', reason: 'unknown' }); var LDB_ERROR = new PouchError({ status: 500, error: 'levelDB_went_went_bad', reason: 'unknown' }); var FORBIDDEN = new PouchError({ status: 403, error: 'forbidden', reason: 'Forbidden by design doc validate_doc_update function' }); var INVALID_REV = new PouchError({ status: 400, error: 'bad_request', reason: 'Invalid rev format' }); var FILE_EXISTS = new PouchError({ status: 412, error: 'file_exists', reason: 'The database could not be created, the file already exists.' }); var MISSING_STUB = new PouchError({ status: 412, error: 'missing_stub' }); var INVALID_URL = new PouchError({ status: 413, error: 'invalid_url', reason: 'Provided URL is invalid' }); function createError(error, reason) { function CustomPouchError(reason) { // inherit error properties from our parent error manually // so as to allow proper JSON parsing. /* jshint ignore:start */ for (var p in error) { if (typeof error[p] !== 'function') { this[p] = error[p]; } } /* jshint ignore:end */ if (reason !== undefined) { this.reason = reason; } } CustomPouchError.prototype = PouchError.prototype; return new CustomPouchError(reason); } function tryFilter(filter, doc, req) { try { return !filter(doc, req); } catch (err) { var msg = 'Filter function threw: ' + err.toString(); return createError(BAD_REQUEST, msg); } } function filterChange(opts) { var req = {}; var hasFilter = opts.filter && typeof opts.filter === 'function'; req.query = opts.query_params; return function filter(change) { if (!change.doc) { // CSG sends events on the changes feed that don't have documents, // this hack makes a whole lot of existing code robust. change.doc = {}; } var filterReturn = hasFilter && tryFilter(opts.filter, change.doc, req); if (typeof filterReturn === 'object') { return filterReturn; } if (filterReturn) { return false; } if (!opts.include_docs) { delete change.doc; } else if (!opts.attachments) { for (var att in change.doc._attachments) { /* istanbul ignore else */ if (change.doc._attachments.hasOwnProperty(att)) { change.doc._attachments[att].stub = true; } } } return true; }; } // shim for Function.prototype.name, // for browsers that don't support it like IE /* istanbul ignore next */ function f() {} var hasName = f.name; var res; // We dont run coverage in IE /* istanbul ignore else */ if (hasName) { res = function (fun) { return fun.name; }; } else { res = function (fun) { return fun.toString().match(/^\s*function\s*(\S*)\s*\(/)[1]; }; } var functionName = res; // Determine id an ID is valid // - invalid IDs begin with an underescore that does not begin '_design' or // '_local' // - any other string value is a valid id // Returns the specific error object for each case function invalidIdError(id) { var err; if (!id) { err = createError(MISSING_ID); } else if (typeof id !== 'string') { err = createError(INVALID_ID); } else if (/^_/.test(id) && !(/^_(design|local)/).test(id)) { err = createError(RESERVED_ID); } if (err) { throw err; } } // BEGIN Math.uuid.js /*! Math.uuid.js (v1.4) http://www.broofa.com mailto:robert@broofa.com Copyright (c) 2010 Robert Kieffer Dual licensed under the MIT and GPL licenses. */ /* * Generate a random uuid. * * USAGE: Math.uuid(length, radix) * length - the desired number of characters * radix - the number of allowable values for each character. * * EXAMPLES: * // No arguments - returns RFC4122, version 4 ID * >>> Math.uuid() * "92329D39-6F5C-4520-ABFC-AAB64544E172" * * // One argument - returns ID of the specified length * >>> Math.uuid(15) // 15 character ID (default base=62) * "VcydxgltxrVZSTV" * * // Two arguments - returns ID of the specified length, and radix. * // (Radix must be <= 62) * >>> Math.uuid(8, 2) // 8 character ID (base=2) * "01001010" * >>> Math.uuid(8, 10) // 8 character ID (base=10) * "47473046" * >>> Math.uuid(8, 16) // 8 character ID (base=16) * "098F4D35" */ var chars = ( '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' + 'abcdefghijklmnopqrstuvwxyz' ).split(''); function getValue(radix) { return 0 | Math.random() * radix; } function uuid(len, radix) { radix = radix || chars.length; var out = ''; var i = -1; if (len) { // Compact form while (++i < len) { out += chars[getValue(radix)]; } return out; } // rfc4122, version 4 form // Fill in random data. At i==19 set the high bits of clock sequence as // per rfc4122, sec. 4.1.5 while (++i < 36) { switch (i) { case 8: case 13: case 18: case 23: out += '-'; break; case 19: out += chars[(getValue(16) & 0x3) | 0x8]; break; default: out += chars[getValue(16)]; } } return out; } function toObject(array) { return array.reduce(function (obj, item) { obj[item] = true; return obj; }, {}); } // List of top level reserved words for doc var reservedWords = toObject([ '_id', '_rev', '_attachments', '_deleted', '_revisions', '_revs_info', '_conflicts', '_deleted_conflicts', '_local_seq', '_rev_tree', //replication documents '_replication_id', '_replication_state', '_replication_state_time', '_replication_state_reason', '_replication_stats', // Specific to Couchbase Sync Gateway '_removed' ]); // List of reserved words that should end up the document var dataWords = toObject([ '_attachments', //replication documents '_replication_id', '_replication_state', '_replication_state_time', '_replication_state_reason', '_replication_stats' ]); function parseRevisionInfo(rev) { if (!/^\d+\-./.test(rev)) { return createError(INVALID_REV); } var idx = rev.indexOf('-'); var left = rev.substring(0, idx); var right = rev.substring(idx + 1); return { prefix: parseInt(left, 10), id: right }; } function makeRevTreeFromRevisions(revisions, opts) { var pos = revisions.start - revisions.ids.length + 1; var revisionIds = revisions.ids; var ids = [revisionIds[0], opts, []]; for (var i = 1, len = revisionIds.length; i < len; i++) { ids = [revisionIds[i], {status: 'missing'}, [ids]]; } return [{ pos: pos, ids: ids }]; } // Preprocess documents, parse their revisions, assign an id and a // revision for new writes that are missing them, etc function parseDoc(doc, newEdits) { var nRevNum; var newRevId; var revInfo; var opts = {status: 'available'}; if (doc._deleted) { opts.deleted = true; } if (newEdits) { if (!doc._id) { doc._id = uuid(); } newRevId = uuid(32, 16).toLowerCase(); if (doc._rev) { revInfo = parseRevisionInfo(doc._rev); if (revInfo.error) { return revInfo; } doc._rev_tree = [{ pos: revInfo.prefix, ids: [revInfo.id, {status: 'missing'}, [[newRevId, opts, []]]] }]; nRevNum = revInfo.prefix + 1; } else { doc._rev_tree = [{ pos: 1, ids : [newRevId, opts, []] }]; nRevNum = 1; } } else { if (doc._revisions) { doc._rev_tree = makeRevTreeFromRevisions(doc._revisions, opts); nRevNum = doc._revisions.start; newRevId = doc._revisions.ids[0]; } if (!doc._rev_tree) { revInfo = parseRevisionInfo(doc._rev); if (revInfo.error) { return revInfo; } nRevNum = revInfo.prefix; newRevId = revInfo.id; doc._rev_tree = [{ pos: nRevNum, ids: [newRevId, opts, []] }]; } } invalidIdError(doc._id); doc._rev = nRevNum + '-' + newRevId; var result = {metadata : {}, data : {}}; for (var key in doc) { /* istanbul ignore else */ if (Object.prototype.hasOwnProperty.call(doc, key)) { var specialKey = key[0] === '_'; if (specialKey && !reservedWords[key]) { var error = createError(DOC_VALIDATION, key); error.message = DOC_VALIDATION.message + ': ' + key; throw error; } else if (specialKey && !dataWords[key]) { result.metadata[key.slice(1)] = doc[key]; } else { result.data[key] = doc[key]; } } } return result; } // We fetch all leafs of the revision tree, and sort them based on tree length // and whether they were deleted, undeleted documents with the longest revision // tree (most edits) win // The final sort algorithm is slightly documented in a sidebar here: // http://guide.couchdb.org/draft/conflicts.html function winningRev(metadata) { var winningId; var winningPos; var winningDeleted; var toVisit = metadata.rev_tree.slice(); var node; while ((node = toVisit.pop())) { var tree = node.ids; var branches = tree[2]; var pos = node.pos; if (branches.length) { // non-leaf for (var i = 0, len = branches.length; i < len; i++) { toVisit.push({pos: pos + 1, ids: branches[i]}); } continue; } var deleted = !!tree[1].deleted; var id = tree[0]; // sort by deleted, then pos, then id if (!winningId || (winningDeleted !== deleted ? winningDeleted : winningPos !== pos ? winningPos < pos : winningId < id)) { winningId = id; winningPos = pos; winningDeleted = deleted; } } return winningPos + '-' + winningId; } // Pretty much all below can be combined into a higher order function to // traverse revisions // The return value from the callback will be passed as context to all // children of that node function traverseRevTree(revs, callback) { var toVisit = revs.slice(); var node; while ((node = toVisit.pop())) { var pos = node.pos; var tree = node.ids; var branches = tree[2]; var newCtx = callback(branches.length === 0, pos, tree[0], node.ctx, tree[1]); for (var i = 0, len = branches.length; i < len; i++) { toVisit.push({pos: pos + 1, ids: branches[i], ctx: newCtx}); } } } function sortByPos(a, b) { return a.pos - b.pos; } function collectLeaves(revs) { var leaves = []; traverseRevTree(revs, function (isLeaf, pos, id, acc, opts) { if (isLeaf) { leaves.push({rev: pos + "-" + id, pos: pos, opts: opts}); } }); leaves.sort(sortByPos).reverse(); for (var i = 0, len = leaves.length; i < len; i++) { delete leaves[i].pos; } return leaves; } // returns revs of all conflicts that is leaves such that // 1. are not deleted and // 2. are different than winning revision function collectConflicts(metadata) { var win = winningRev(metadata); var leaves = collectLeaves(metadata.rev_tree); var conflicts = []; for (var i = 0, len = leaves.length; i < len; i++) { var leaf = leaves[i]; if (leaf.rev !== win && !leaf.opts.deleted) { conflicts.push(leaf.rev); } } return conflicts; } // compact a tree by marking its non-leafs as missing, // and return a list of revs to delete function compactTree(metadata) { var revs = []; traverseRevTree(metadata.rev_tree, function (isLeaf, pos, revHash, ctx, opts) { if (opts.status === 'available' && !isLeaf) { revs.push(pos + '-' + revHash); opts.status = 'missing'; } }); return revs; } // build up a list of all the paths to the leafs in this revision tree function rootToLeaf(revs) { var paths = []; var toVisit = revs.slice(); var node; while ((node = toVisit.pop())) { var pos = node.pos; var tree = node.ids; var id = tree[0]; var opts = tree[1]; var branches = tree[2]; var isLeaf = branches.length === 0; var history = node.history ? node.history.slice() : []; history.push({id: id, opts: opts}); if (isLeaf) { paths.push({pos: (pos + 1 - history.length), ids: history}); } for (var i = 0, len = branches.length; i < len; i++) { toVisit.push({pos: pos + 1, ids: branches[i], history: history}); } } return paths.reverse(); } function sortByPos$1(a, b) { return a.pos - b.pos; } // classic binary search function binarySearch(arr, item, comparator) { var low = 0; var high = arr.length; var mid; while (low < high) { mid = (low + high) >>> 1; if (comparator(arr[mid], item) < 0) { low = mid + 1; } else { high = mid; } } return low; } // assuming the arr is sorted, insert the item in the proper place function insertSorted(arr, item, comparator) { var idx = binarySearch(arr, item, comparator); arr.splice(idx, 0, item); } // Turn a path as a flat array into a tree with a single branch. // If any should be stemmed from the beginning of the array, that's passed // in as the second argument function pathToTree(path, numStemmed) { var root; var leaf; for (var i = numStemmed, len = path.length; i < len; i++) { var node = path[i]; var currentLeaf = [node.id, node.opts, []]; if (leaf) { leaf[2].push(currentLeaf); leaf = currentLeaf; } else { root = leaf = currentLeaf; } } return root; } // compare the IDs of two trees function compareTree(a, b) { return a[0] < b[0] ? -1 : 1; } // Merge two trees together // The roots of tree1 and tree2 must be the same revision function mergeTree(in_tree1, in_tree2) { var queue = [{tree1: in_tree1, tree2: in_tree2}]; var conflicts = false; while (queue.length > 0) { var item = queue.pop(); var tree1 = item.tree1; var tree2 = item.tree2; if (tree1[1].status || tree2[1].status) { tree1[1].status = (tree1[1].status === 'available' || tree2[1].status === 'available') ? 'available' : 'missing'; } for (var i = 0; i < tree2[2].length; i++) { if (!tree1[2][0]) { conflicts = 'new_leaf'; tree1[2][0] = tree2[2][i]; continue; } var merged = false; for (var j = 0; j < tree1[2].length; j++) { if (tree1[2][j][0] === tree2[2][i][0]) { queue.push({tree1: tree1[2][j], tree2: tree2[2][i]}); merged = true; } } if (!merged) { conflicts = 'new_branch'; insertSorted(tree1[2], tree2[2][i], compareTree); } } } return {conflicts: conflicts, tree: in_tree1}; } function doMerge(tree, path, dontExpand) { var restree = []; var conflicts = false; var merged = false; var res; if (!tree.length) { return {tree: [path], conflicts: 'new_leaf'}; } for (var i = 0, len = tree.length; i < len; i++) { var branch = tree[i]; if (branch.pos === path.pos && branch.ids[0] === path.ids[0]) { // Paths start at the same position and have the same root, so they need // merged res = mergeTree(branch.ids, path.ids); restree.push({pos: branch.pos, ids: res.tree}); conflicts = conflicts || res.conflicts; merged = true; } else if (dontExpand !== true) { // The paths start at a different position, take the earliest path and // traverse up until it as at the same point from root as the path we // want to merge. If the keys match we return the longer path with the // other merged After stemming we dont want to expand the trees var t1 = branch.pos < path.pos ? branch : path; var t2 = branch.pos < path.pos ? path : branch; var diff = t2.pos - t1.pos; var candidateParents = []; var trees = []; trees.push({ids: t1.ids, diff: diff, parent: null, parentIdx: null}); while (trees.length > 0) { var item = trees.pop(); if (item.diff === 0) { if (item.ids[0] === t2.ids[0]) { candidateParents.push(item); } continue; } var elements = item.ids[2]; for (var j = 0, elementsLen = elements.length; j < elementsLen; j++) { trees.push({ ids: elements[j], diff: item.diff - 1, parent: item.ids, parentIdx: j }); } } var el = candidateParents[0]; if (!el) { restree.push(branch); } else { res = mergeTree(el.ids, t2.ids); el.parent[2][el.parentIdx] = res.tree; restree.push({pos: t1.pos, ids: t1.ids}); conflicts = conflicts || res.conflicts; merged = true; } } else { restree.push(branch); } } // We didnt find if (!merged) { restree.push(path); } restree.sort(sortByPos$1); return { tree: restree, conflicts: conflicts || 'internal_node' }; } // To ensure we dont grow the revision tree infinitely, we stem old revisions function stem(tree, depth) { // First we break out the tree into a complete list of root to leaf paths var paths = rootToLeaf(tree); var maybeStem = {}; var result; for (var i = 0, len = paths.length; i < len; i++) { // Then for each path, we cut off the start of the path based on the // `depth` to stem to, and generate a new set of flat trees var path = paths[i]; var stemmed = path.ids; var numStemmed = Math.max(0, stemmed.length - depth); var stemmedNode = { pos: path.pos + numStemmed, ids: pathToTree(stemmed, numStemmed) }; for (var s = 0; s < numStemmed; s++) { var rev = (path.pos + s) + '-' + stemmed[s].id; maybeStem[rev] = true; } // Then we remerge all those flat trees together, ensuring that we dont // connect trees that would go beyond the depth limit if (result) { result = doMerge(result, stemmedNode, true).tree; } else { result = [stemmedNode]; } } traverseRevTree(result, function (isLeaf, pos, revHash) { // some revisions may have been removed in a branch but not in another delete maybeStem[pos + '-' + revHash]; }); return { tree: result, revs: Object.keys(maybeStem) }; } function merge(tree, path, depth) { var newTree = doMerge(tree, path); var stemmed = stem(newTree.tree, depth); return { tree: stemmed.tree, stemmedRevs: stemmed.revs, conflicts: newTree.conflicts }; } // return true if a rev exists in the rev tree, false otherwise function revExists(revs, rev) { var toVisit = revs.slice(); var splitRev = rev.split('-'); var targetPos = parseInt(splitRev[0], 10); var targetId = splitRev[1]; var node; while ((node = toVisit.pop())) { if (node.pos === targetPos && node.ids[0] === targetId) { return true; } var branches = node.ids[2]; for (var i = 0, len = branches.length; i < len; i++) { toVisit.push({pos: node.pos + 1, ids: branches[i]}); } } return false; } function getTrees(node) { return node.ids; } // check if a specific revision of a doc has been deleted // - metadata: the metadata object from the doc store // - rev: (optional) the revision to check. defaults to winning revision function isDeleted(metadata, rev) { if (!rev) { rev = winningRev(metadata); } var id = rev.substring(rev.indexOf('-') + 1); var toVisit = metadata.rev_tree.map(getTrees); var tree; while ((tree = toVisit.pop())) { if (tree[0] === id) { return !!tree[1].deleted; } toVisit = toVisit.concat(tree[2]); } } function isLocalId(id) { return (/^_local/).test(id); } var atob$1 = function (str) { return atob(str); }; var btoa$1 = function (str) { return btoa(str); }; // Abstracts constructing a Blob object, so it also works in older // browsers that don't support the native Blob constructor (e.g. // old QtWebKit versions, Android < 4.4). function createBlob(parts, properties) { /* global BlobBuilder,MSBlobBuilder,MozBlobBuilder,WebKitBlobBuilder */ parts = parts || []; properties = properties || {}; try { return new Blob(parts, properties); } catch (e) { if (e.name !== "TypeError") { throw e; } var Builder = typeof BlobBuilder !== 'undefined' ? BlobBuilder : typeof MSBlobBuilder !== 'undefined' ? MSBlobBuilder : typeof MozBlobBuilder !== 'undefined' ? MozBlobBuilder : WebKitBlobBuilder; var builder = new Builder(); for (var i = 0; i < parts.length; i += 1) { builder.append(parts[i]); } return builder.getBlob(properties.type); } } // From http://stackoverflow.com/questions/14967647/ (continues on next line) // encode-decode-image-with-base64-breaks-image (2013-04-21) function binaryStringToArrayBuffer(bin) { var length = bin.length; var buf = new ArrayBuffer(length); var arr = new Uint8Array(buf); for (var i = 0; i < length; i++) { arr[i] = bin.charCodeAt(i); } return buf; } function binStringToBluffer(binString, type) { return createBlob([binaryStringToArrayBuffer(binString)], {type: type}); } //Can't find original post, but this is close //http://stackoverflow.com/questions/6965107/ (continues on next line) //converting-between-strings-and-arraybuffers function arrayBufferToBinaryString(buffer) { var binary = ''; var bytes = new Uint8Array(buffer); var length = bytes.byteLength; for (var i = 0; i < length; i++) { binary += String.fromCharCode(bytes[i]); } return binary; } // shim for browsers that don't support it function readAsBinaryString(blob, callback) { if (typeof FileReader === 'undefined') { // fix for Firefox in a web worker // https://bugzilla.mozilla.org/show_bug.cgi?id=901097 return callback(arrayBufferToBinaryString( new FileReaderSync().readAsArrayBuffer(blob))); } var reader = new FileReader(); var hasBinaryString = typeof reader.readAsBinaryString === 'function'; reader.onloadend = function (e) { var result = e.target.result || ''; if (hasBinaryString) { return callback(result); } callback(arrayBufferToBinaryString(result)); }; if (hasBinaryString) { reader.readAsBinaryString(blob); } else { reader.readAsArrayBuffer(blob); } } // simplified API. universal browser support is assumed function readAsArrayBuffer(blob, callback) { if (typeof FileReader === 'undefined') { // fix for Firefox in a web worker: // https://bugzilla.mozilla.org/show_bug.cgi?id=901097 return callback(new FileReaderSync().readAsArrayBuffer(blob)); } var reader = new FileReader(); reader.onloadend = function (e) { var result = e.target.result || new ArrayBuffer(0); callback(result); }; reader.readAsArrayBuffer(blob); } var setImmediateShim = global.setImmediate || global.setTimeout; var MD5_CHUNK_SIZE = 32768; function rawToBase64(raw) { return btoa$1(raw); } function sliceBlob(blob, start, end) { if (blob.webkitSlice) { return blob.webkitSlice(start, end); } return blob.slice(start, end); } function appendBlob(buffer, blob, start, end, callback) { if (start > 0 || end < blob.size) { // only slice blob if we really need to blob = sliceBlob(blob, start, end); } readAsArrayBuffer(blob, function (arrayBuffer) { buffer.append(arrayBuffer); callback(); }); } function appendString(buffer, string, start, end, callback) { if (start > 0 || end < string.length) { // only create a substring if we really need to string = string.substring(start, end); } buffer.appendBinary(string); callback(); } function binaryMd5(data, callback) { var inputIsString = typeof data === 'string'; var len = inputIsString ? data.length : data.size; var chunkSize = Math.min(MD5_CHUNK_SIZE, len); var chunks = Math.ceil(len / chunkSize); var currentChunk = 0; var buffer = inputIsString ? new Md5() : new Md5.ArrayBuffer(); var append = inputIsString ? appendString : appendBlob; function next() { setImmediateShim(loadNextChunk); } function done() { var raw = buffer.end(true); var base64 = rawToBase64(raw); callback(base64); buffer.destroy(); } function loadNextChunk() { var start = currentChunk * chunkSize; var end = start + chunkSize; currentChunk++; if (currentChunk < chunks) { append(buffer, data, start, end, next); } else { append(buffer, data, start, end, done); } } loadNextChunk(); } function updateDoc(revLimit, prev, docInfo, results, i, cb, writeDoc, newEdits) { if (revExists(prev.rev_tree, docInfo.metadata.rev)) { results[i] = docInfo; return cb(); } // sometimes this is pre-calculated. historically not always var previousWinningRev = prev.winningRev || winningRev(prev); var previouslyDeleted = 'deleted' in prev ? prev.deleted : isDeleted(prev, previousWinningRev); var deleted = 'deleted' in docInfo.metadata ? docInfo.metadata.deleted : isDeleted(docInfo.metadata); var isRoot = /^1-/.test(docInfo.metadata.rev); if (previouslyDeleted && !deleted && newEdits && isRoot) { var newDoc = docInfo.data; newDoc._rev = previousWinningRev; newDoc._id = docInfo.metadata.id; docInfo = parseDoc(newDoc, newEdits); } var merged = merge(prev.rev_tree, docInfo.metadata.rev_tree[0], revLimit); var inConflict = newEdits && (((previouslyDeleted && deleted) || (!previouslyDeleted && merged.conflicts !== 'new_leaf') || (previouslyDeleted && !deleted && merged.conflicts === 'new_branch'))); if (inConflict) { var err = createError(REV_CONFLICT); results[i] = err; return cb(); } var newRev = docInfo.metadata.rev; docInfo.metadata.rev_tree = merged.tree; docInfo.stemmedRevs = merged.stemmedRevs || []; /* istanbul ignore else */ if (prev.rev_map) { docInfo.metadata.rev_map = prev.rev_map; // used only by leveldb } // recalculate var winningRev$$ = winningRev(docInfo.metadata); var winningRevIsDeleted = isDeleted(docInfo.metadata, winningRev$$); // calculate the total number of documents that were added/removed, // from the perspective of total_rows/doc_count var delta = (previouslyDeleted === winningRevIsDeleted) ? 0 : previouslyDeleted < winningRevIsDeleted ? -1 : 1; var newRevIsDeleted; if (newRev === winningRev$$) { // if the new rev is the same as the winning rev, we can reuse that value newRevIsDeleted = winningRevIsDeleted; } else { // if they're not the same, then we need to recalculate newRevIsDeleted = isDeleted(docInfo.metadata, newRev); } writeDoc(docInfo, winningRev$$, winningRevIsDeleted, newRevIsDeleted, true, delta, i, cb); } function rootIsMissing(docInfo) { return docInfo.metadata.rev_tree[0].ids[1].status === 'missing'; } function processDocs(revLimit, docInfos, api, fetchedDocs, tx, results, writeDoc, opts, overallCallback) { // Default to 1000 locally revLimit = revLimit || 1000; function insertDoc(docInfo, resultsIdx, callback) { // Cant insert new deleted documents var winningRev$$ = winningRev(docInfo.metadata); var deleted = isDeleted(docInfo.metadata, winningRev$$); if ('was_delete' in opts && deleted) { results[resultsIdx] = createError(MISSING_DOC, 'deleted'); return callback(); } // 4712 - detect whether a new document was inserted with a _rev var inConflict = newEdits && rootIsMissing(docInfo); if (inConflict) { var err = createError(REV_CONFLICT); results[resultsIdx] = err; return callback(); } var delta = deleted ? 0 : 1; writeDoc(docInfo, winningRev$$, deleted, deleted, false, delta, resultsIdx, callback); } var newEdits = opts.new_edits; var idsToDocs = new pouchdbCollections.Map(); var docsDone = 0; var docsToDo = docInfos.length; function checkAllDocsDone() { if (++docsDone === docsToDo && overallCallback) { overallCallback(); } } docInfos.forEach(function (currentDoc, resultsIdx) { if (currentDoc._id && isLocalId(currentDoc._id)) { var fun = currentDoc._deleted ? '_removeLocal' : '_putLocal'; api[fun](currentDoc, {ctx: tx}, function (err, res) { results[resultsIdx] = err || res; checkAllDocsDone(); }); return; } var id = currentDoc.metadata.id; if (idsToDocs.has(id)) { docsToDo--; // duplicate idsToDocs.get(id).push([currentDoc, resultsIdx]); } else { idsToDocs.set(id, [[currentDoc, resultsIdx]]); } }); // in the case of new_edits, the user can provide multiple docs // with the same id. these need to be processed sequentially idsToDocs.forEach(function (docs, id) { var numDone = 0; function docWritten() { if (++numDone < docs.length) { nextDoc(); } else { checkAllDocsDone(); } } function nextDoc() { var value = docs[numDone]; var currentDoc = value[0]; var resultsIdx = value[1]; if (fetchedDocs.has(id)) { updateDoc(revLimit, fetchedDocs.get(id), currentDoc, results, resultsIdx, docWritten, writeDoc, newEdits); } else { // Ensure stemming applies to new writes as well var merged = merge([], currentDoc.metadata.rev_tree[0], revLimit); currentDoc.metadata.rev_tree = merged.tree; currentDoc.stemmedRevs = merged.stemmedRevs || []; insertDoc(currentDoc, resultsIdx, docWritten); } } nextDoc(); }); } function slowJsonParse(str) { try { return JSON.parse(str); } catch (e) { /* istanbul ignore next */ return vuvuzela.parse(str); } } function safeJsonParse(str) { // try/catch is deoptimized in V8, leading to slower // times than we'd like to have. Most documents are _not_ // huge, and do not require a slower code path just to parse them. // We can be pretty sure that a document under 50000 characters // will not be so deeply nested as to throw a stack overflow error // (depends on the engine and available memory, though, so this is // just a hunch). 50000 was chosen based on the average length // of this string in our test suite, to try to find a number that covers // most of our test cases (26 over this size, 26378 under it). if (str.length < 50000) { return JSON.parse(str); } return slowJsonParse(str); } function safeJsonStringify(json) { try { return JSON.stringify(json); } catch (e) { /* istanbul ignore next */ return vuvuzela.stringify(json); } } function readAsBlobOrBuffer(storedObject, type) { // In the browser, we've stored a binary string. This now comes back as a // browserified Node-style Buffer (implemented as a typed array), // but we want a Blob instead. var byteArray = new Uint8Array(storedObject); return createBlob([byteArray], {type: type}); } // In the browser, we store a binary string function prepareAttachmentForStorage(attData, cb) { readAsBinaryString(attData, cb); } function createEmptyBlobOrBuffer(type) { return createBlob([''], {type: type}); } function getCacheFor(transaction, store) { var prefix = store.prefix()[0]; var cache = transaction._cache; var subCache = cache.get(prefix); if (!subCache) { subCache = new pouchdbCollections.Map(); cache.set(prefix, subCache); } return subCache; } function LevelTransaction() { this._batch = []; this._cache = new pouchdbCollections.Map(); } LevelTransaction.prototype.get = function (store, key, callback) { var cache = getCacheFor(this, store); var exists = cache.get(key); if (exists) { return process.nextTick(function () { callback(null, exists); }); } else if (exists === null) { // deleted marker /* istanbul ignore next */ return process.nextTick(function () { callback({name: 'NotFoundError'}); }); } store.get(key, function (err, res) { if (err) { /* istanbul ignore else */ if (err.name === 'NotFoundError') { cache.set(key, null); } return callback(err); } cache.set(key, res); callback(null, res); }); }; LevelTransaction.prototype.batch = function (batch) { for (var i = 0, len = batch.length; i < len; i++) { var operation = batch[i]; var cache = getCacheFor(this, operation.prefix); if (operation.type === 'put') { cache.set(operation.key, operation.value); } else { cache.set(operation.key, null); } } this._batch = this._batch.concat(batch); }; LevelTransaction.prototype.execute = function (db, callback) { var keys = new pouchdbCollections.Set(); var uniqBatches = []; // remove duplicates; last one wins for (var i = this._batch.length - 1; i >= 0; i--) { var operation = this._batch[i]; var lookupKey = operation.prefix.prefix()[0] + '\xff' + operation.key; if (keys.has(lookupKey)) { continue; } keys.add(lookupKey); uniqBatches.push(operation); } db.batch(uniqBatches, callback); }; var DOC_STORE = 'document-store'; var BY_SEQ_STORE = 'by-sequence'; var ATTACHMENT_STORE = 'attach-store'; var BINARY_STORE = 'attach-binary-store'; var LOCAL_STORE = 'local-store'; var META_STORE = 'meta-store'; // leveldb barks if we try to open a db multiple times // so we cache opened connections here for initstore() var dbStores = new pouchdbCollections.Map(); // store the value of update_seq in the by-sequence store the key name will // never conflict, since the keys in the by-sequence store are integers var UPDATE_SEQ_KEY = '_local_last_update_seq'; var DOC_COUNT_KEY = '_local_doc_count'; var UUID_KEY = '_local_uuid'; var MD5_PREFIX = 'md5-'; var safeJsonEncoding = { encode: safeJsonStringify, decode: safeJsonParse, buffer: false, type: 'cheap-json' }; var levelChanges = new Changes(); // winningRev and deleted are performance-killers, but // in newer versions of PouchDB, they are cached on the metadata function getWinningRev(metadata) { return 'winningRev' in metadata ? metadata.winningRev : winningRev(metadata); } function getIsDeleted(metadata, winningRev) { return 'deleted' in metadata ? metadata.deleted : isDeleted(metadata, winningRev); } function fetchAttachment(att, stores, opts) { var type = att.content_type; return new PouchPromise(function (resolve, reject) { stores.binaryStore.get(att.digest, function (err, buffer) { var data; if (err) { /* istanbul ignore if */ if (err.name !== 'NotFoundError') { return reject(err); } else { // empty if (!opts.binary) { data = ''; } else { data = binStringToBluffer('', type); } } } else { // non-empty if (opts.binary) { data = readAsBlobOrBuffer(buffer, type); } else { data = buffer.toString('base64'); } } delete att.stub; delete att.length; att.data = data; resolve(); }); }); } function fetchAttachments(results, stores, opts) { var atts = []; results.forEach(function (row) { if (!(row.doc && row.doc._attachments)) { return; } var attNames = Object.keys(row.doc._attachments); attNames.forEach(function (attName) { var att = row.doc._attachments[attName]; if (!('data' in att)) { atts.push(att); } }); }); return PouchPromise.all(atts.map(function (att) { return fetchAttachment(att, stores, opts); })); } function LevelPouch(opts, callback) { opts = clone(opts); var api = this; var instanceId; var stores = {}; var revLimit = opts.revs_limit; var db; var name = opts.name; // TODO: this is undocumented and unused probably /* istanbul ignore else */ if (typeof opts.createIfMissing === 'undefined') { opts.createIfMissing = true; } var leveldown = opts.db; var dbStore; var leveldownName = functionName(leveldown); if (dbStores.has(leveldownName)) { dbStore = dbStores.get(leveldownName); } else { dbStore = new pouchdbCollections.Map(); dbStores.set(leveldownName, dbStore); } if (dbStore.has(name)) { db = dbStore.get(name); afterDBCreated(); } else { dbStore.set(name, sublevel(levelup(name, opts, function (err) { /* istanbul ignore if */ if (err) { dbStore.delete(name); return callback(err); } db = dbStore.get(name); db._docCount = -1; db._queue = new Deque(); /* istanbul ignore else */ if (opts.migrate) { // migration for leveldown migrate.toSublevel(name, db, afterDBCreated); } else { afterDBCreated(); } }))); } function afterDBCreated() { stores.docStore = db.sublevel(DOC_STORE, {valueEncoding: safeJsonEncoding}); stores.bySeqStore = db.sublevel(BY_SEQ_STORE, {valueEncoding: 'json'}); stores.attachmentStore = db.sublevel(ATTACHMENT_STORE, {valueEncoding: 'json'}); stores.binaryStore = db.sublevel(BINARY_STORE, {valueEncoding: 'binary'}); stores.localStore = db.sublevel(LOCAL_STORE, {valueEncoding: 'json'}); stores.metaStore = db.sublevel(META_STORE, {valueEncoding: 'json'}); migrate.localAndMetaStores(db, stores, function () { stores.metaStore.get(UPDATE_SEQ_KEY, function (err, value) { if (typeof db._updateSeq === 'undefined') { db._updateSeq = value || 0; } stores.metaStore.get(DOC_COUNT_KEY, function (err, value) { db._docCount = !err ? value : 0; stores.metaStore.get(UUID_KEY, function (err, value) { instanceId = !err ? value : uuid(); stores.metaStore.put(UUID_KEY, instanceId, function () { process.nextTick(function () { callback(null, api); }); }); }); }); }); }); } function countDocs(callback) { /* istanbul ignore if */ if (db.isClosed()) { return callback(new Error('database is closed')); } return callback(null, db._docCount); // use cached value } api.type = function () { return 'leveldb'; }; api._id = function (callback) { callback(null, instanceId); }; api._info = function (callback) { var res = { doc_count: db._docCount, update_seq: db._updateSeq, backend_adapter: functionName(leveldown) }; return process.nextTick(function () { callback(null, res); }); }; function tryCode(fun, args) { try { fun.apply(null, args); } catch (err) { args[args.length - 1](err); } } function executeNext() { var firstTask = db._queue.peekFront(); if (firstTask.type === 'read') { runReadOperation(firstTask); } else { // write, only do one at a time runWriteOperation(firstTask); } } function runReadOperation(firstTask) { // do multiple reads at once simultaneously, because it's safe var readTasks = [firstTask]; var i = 1; var nextTask = db._queue.get(i); while (typeof nextTask !== 'undefined' && nextTask.type === 'read') { readTasks.push(nextTask); i++; nextTask = db._queue.get(i); } var numDone = 0; readTasks.forEach(function (readTask) { var args = readTask.args; var callback = args[args.length - 1]; args[args.length - 1] = getArguments(function (cbArgs) { callback.apply(null, cbArgs); if (++numDone === readTasks.length) { process.nextTick(function () { // all read tasks have finished readTasks.forEach(function () { db._queue.shift(); }); if (db._queue.length) { executeNext(); } }); } }); tryCode(readTask.fun, args); }); } function runWriteOperation(firstTask) { var args = firstTask.args; var callback = args[args.length - 1]; args[args.length - 1] = getArguments(function (cbArgs) { callback.apply(null, cbArgs); process.nextTick(function () { db._queue.shift(); if (db._queue.length) { executeNext(); } }); }); tryCode(firstTask.fun, args); } // all read/write operations to the database are done in a queue, // similar to how websql/idb works. this avoids problems such // as e.g. compaction needing to have a lock on the database while // it updates stuff. in the future we can revisit this. function writeLock(fun) { return getArguments(function (args) { db._queue.push({ fun: fun, args: args, type: 'write' }); if (db._queue.length === 1) { process.nextTick(executeNext); } }); } // same as the writelock, but multiple can run at once function readLock(fun) { return getArguments(function (args) { db._queue.push({ fun: fun, args: args, type: 'read' }); if (db._queue.length === 1) { process.nextTick(executeNext); } }); } function formatSeq(n) { return ('0000000000000000' + n).slice(-16); } function parseSeq(s) { return parseInt(s, 10); } api._get = readLock(function (id, opts, callback) { opts = clone(opts); stores.docStore.get(id, function (err, metadata) { if (err || !metadata) { return callback(createError(MISSING_DOC, 'missing')); } var rev = getWinningRev(metadata); var deleted = getIsDeleted(metadata, rev); if (deleted && !opts.rev) { return callback(createError(MISSING_DOC, "deleted")); } rev = opts.rev ? opts.rev : rev; var seq = metadata.rev_map[rev]; stores.bySeqStore.get(formatSeq(seq), function (err, doc) { if (!doc) { return callback(createError(MISSING_DOC)); } /* istanbul ignore if */ if ('_id' in doc && doc._id !== metadata.id) { // this failing implies something very wrong return callback(new Error('wrong doc returned')); } doc._id = metadata.id; if ('_rev' in doc) { /* istanbul ignore if */ if (doc._rev !== rev) { // this failing implies something very wrong return callback(new Error('wrong doc returned')); } } else { // we didn't always store this doc._rev = rev; } return callback(null, {doc: doc, metadata: metadata}); }); }); }); // not technically part of the spec, but if putAttachment has its own // method... api._getAttachment = function (docId, attachId, attachment, opts, callback) { var digest = attachment.digest; var type = attachment.content_type; stores.binaryStore.get(digest, function (err, attach) { if (err) { /* istanbul ignore if */ if (err.name !== 'NotFoundError') { return callback(err); } // Empty attachment return callback(null, opts.binary ? createEmptyBlobOrBuffer(type) : ''); } if (opts.binary) { callback(null, readAsBlobOrBuffer(attach, type)); } else { callback(null, attach.toString('base64')); } }); }; api._bulkDocs = writeLock(function (req, opts, callback) { var newEdits = opts.new_edits; var results = new Array(req.docs.length); var fetchedDocs = new pouchdbCollections.Map(); var stemmedRevs = new pouchdbCollections.Map(); var txn = new LevelTransaction(); var docCountDelta = 0; var newUpdateSeq = db._updateSeq; // parse the docs and give each a sequence number var userDocs = req.docs; var docInfos = userDocs.map(function (doc) { if (doc._id && isLocalId(doc._id)) { return doc; } var newDoc = parseDoc(doc, newEdits); if (newDoc.metadata && !newDoc.metadata.rev_map) { newDoc.metadata.rev_map = {}; } return newDoc; }); var infoErrors = docInfos.filter(function (doc) { return doc.error; }); if (infoErrors.length) { return callback(infoErrors[0]); } // verify any stub attachments as a precondition test function verifyAttachment(digest, callback) { txn.get(stores.attachmentStore, digest, function (levelErr) { if (levelErr) { var err = createError(MISSING_STUB, 'unknown stub attachment with digest ' + digest); callback(err); } else { callback(); } }); } function verifyAttachments(finish) { var digests = []; userDocs.forEach(function (doc) { if (doc && doc._attachments) { Object.keys(doc._attachments).forEach(function (filename) { var att = doc._attachments[filename]; if (att.stub) { digests.push(att.digest); } }); } }); if (!digests.length) { return finish(); } var numDone = 0; var err; digests.forEach(function (digest) { verifyAttachment(digest, function (attErr) { if (attErr && !err) { err = attErr; } if (++numDone === digests.length) { finish(err); } }); }); } function fetchExistingDocs(finish) { var numDone = 0; var overallErr; function checkDone() { if (++numDone === userDocs.length) { return finish(overallErr); } } userDocs.forEach(function (doc) { if (doc._id && isLocalId(doc._id)) { // skip local docs return checkDone(); } txn.get(stores.docStore, doc._id, function (err, info) { if (err) { /* istanbul ignore if */ if (err.name !== 'NotFoundError') { overallErr = err; } } else { fetchedDocs.set(doc._id, info); } checkDone(); }); }); } function compact(revsMap, callback) { var promise = PouchPromise.resolve(); revsMap.forEach(function (revs, docId) { // TODO: parallelize, for now need to be sequential to // pass orphaned attachment tests promise = promise.then(function () { return new PouchPromise(function (resolve, reject) { api._doCompactionNoLock(docId, revs, {ctx: txn}, function (err) { /* istanbul ignore if */ if (err) { return reject(err); } resolve(); }); }); }); }); promise.then(function () { callback(); }, callback); } function autoCompact(callback) { var revsMap = new pouchdbCollections.Map(); fetchedDocs.forEach(function (metadata, docId) { revsMap.set(docId, compactTree(metadata)); }); compact(revsMap, callback); } function finish() { compact(stemmedRevs, function (error) { /* istanbul ignore if */ if (error) { complete(error); } if (api.auto_compaction) { return autoCompact(complete); } complete(); }); } function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, isUpdate, delta, resultsIdx, callback2) { docCountDelta += delta; var err = null; var recv = 0; docInfo.metadata.winningRev = winningRev; docInfo.metadata.deleted = winningRevIsDeleted; docInfo.data._id = docInfo.metadata.id; docInfo.data._rev = docInfo.metadata.rev; if (newRevIsDeleted) { docInfo.data._deleted = true; } if (docInfo.stemmedRevs.length) { stemmedRevs.set(docInfo.metadata.id, docInfo.stemmedRevs); } var attachments = docInfo.data._attachments ? Object.keys(docInfo.data._attachments) : []; function attachmentSaved(attachmentErr) { recv++; if (!err) { /* istanbul ignore if */ if (attachmentErr) { err = attachmentErr; callback2(err); } else if (recv === attachments.length) { finish(); } } } function onMD5Load(doc, key, data, attachmentSaved) { return function (result) { saveAttachment(doc, MD5_PREFIX + result, key, data, attachmentSaved); }; } function doMD5(doc, key, attachmentSaved) { return function (data) { binaryMd5(data, onMD5Load(doc, key, data, attachmentSaved)); }; } for (var i = 0; i < attachments.length; i++) { var key = attachments[i]; var att = docInfo.data._attachments[key]; if (att.stub) { // still need to update the refs mapping var id = docInfo.data._id; var rev = docInfo.data._rev; saveAttachmentRefs(id, rev, att.digest, attachmentSaved); continue; } var data; if (typeof att.data === 'string') { // input is assumed to be a base64 string try { data = atob$1(att.data); } catch (e) { callback(createError(BAD_ARG, 'Attachment is not a valid base64 string')); return; } doMD5(docInfo, key, attachmentSaved)(data); } else { prepareAttachmentForStorage(att.data, doMD5(docInfo, key, attachmentSaved)); } } function finish() { var seq = docInfo.metadata.rev_map[docInfo.metadata.rev]; /* istanbul ignore if */ if (seq) { // check that there aren't any existing revisions with the same // revision id, else we shouldn't do anything return callback2(); } seq = ++newUpdateSeq; docInfo.metadata.rev_map[docInfo.metadata.rev] = docInfo.metadata.seq = seq; var seqKey = formatSeq(seq); var batch = [{ key: seqKey, value: docInfo.data, prefix: stores.bySeqStore, type: 'put' }, { key: docInfo.metadata.id, value: docInfo.metadata, prefix: stores.docStore, type: 'put' }]; txn.batch(batch); results[resultsIdx] = { ok: true, id: docInfo.metadata.id, rev: winningRev }; fetchedDocs.set(docInfo.metadata.id, docInfo.metadata); callback2(); } if (!attachments.length) { finish(); } } // attachments are queued per-digest, otherwise the refs could be // overwritten by concurrent writes in the same bulkDocs session var attachmentQueues = {}; function saveAttachmentRefs(id, rev, digest, callback) { function fetchAtt() { return new PouchPromise(function (resolve, reject) { txn.get(stores.attachmentStore, digest, function (err, oldAtt) { /* istanbul ignore if */ if (err && err.name !== 'NotFoundError') { return reject(err); } resolve(oldAtt); }); }); } function saveAtt(oldAtt) { var ref = [id, rev].join('@'); var newAtt = {}; if (oldAtt) { if (oldAtt.refs) { // only update references if this attachment already has them // since we cannot migrate old style attachments here without // doing a full db scan for references newAtt.refs = oldAtt.refs; newAtt.refs[ref] = true; } } else { newAtt.refs = {}; newAtt.refs[ref] = true; } return new PouchPromise(function (resolve) { txn.batch([{ type: 'put', prefix: stores.attachmentStore, key: digest, value: newAtt }]); resolve(!oldAtt); }); } // put attachments in a per-digest queue, to avoid two docs with the same // attachment overwriting each other var queue = attachmentQueues[digest] || PouchPromise.resolve(); attachmentQueues[digest] = queue.then(function () { return fetchAtt().then(saveAtt).then(function (isNewAttachment) { callback(null, isNewAttachment); }, callback); }); } function saveAttachment(docInfo, digest, key, data, callback) { var att = docInfo.data._attachments[key]; delete att.data; att.digest = digest; att.length = data.length; var id = docInfo.metadata.id; var rev = docInfo.metadata.rev; att.revpos = parseInt(rev, 10); saveAttachmentRefs(id, rev, digest, function (err, isNewAttachment) { /* istanbul ignore if */ if (err) { return callback(err); } // do not try to store empty attachments if (data.length === 0) { return callback(err); } if (!isNewAttachment) { // small optimization - don't bother writing it again return callback(err); } txn.batch([{ type: 'put', prefix: stores.binaryStore, key: digest, value: new Buffer(data, 'binary') }]); callback(); }); } function complete(err) { /* istanbul ignore if */ if (err) { return process.nextTick(function () { callback(err); }); } txn.batch([ { prefix: stores.metaStore, type: 'put', key: UPDATE_SEQ_KEY, value: newUpdateSeq }, { prefix: stores.metaStore, type: 'put', key: DOC_COUNT_KEY, value: db._docCount + docCountDelta } ]); txn.execute(db, function (err) { /* istanbul ignore if */ if (err) { return callback(err); } db._docCount += docCountDelta; db._updateSeq = newUpdateSeq; levelChanges.notify(name); process.nextTick(function () { callback(null, results); }); }); } if (!docInfos.length) { return callback(null, []); } verifyAttachments(function (err) { if (err) { return callback(err); } fetchExistingDocs(function (err) { /* istanbul ignore if */ if (err) { return callback(err); } processDocs(revLimit, docInfos, api, fetchedDocs, txn, results, writeDoc, opts, finish); }); }); }); api._allDocs = readLock(function (opts, callback) { opts = clone(opts); countDocs(function (err, docCount) { /* istanbul ignore if */ if (err) { return callback(err); } var readstreamOpts = {}; var skip = opts.skip || 0; if (opts.startkey) { readstreamOpts.gte = opts.startkey; } if (opts.endkey) { readstreamOpts.lte = opts.endkey; } if (opts.key) { readstreamOpts.gte = readstreamOpts.lte = opts.key; } if (opts.descending) { readstreamOpts.reverse = true; // switch start and ends var tmp = readstreamOpts.lte; readstreamOpts.lte = readstreamOpts.gte; readstreamOpts.gte = tmp; } var limit; if (typeof opts.limit === 'number') { limit = opts.limit; } if (limit === 0 || ('start' in readstreamOpts && 'end' in readstreamOpts && readstreamOpts.start > readstreamOpts.end)) { // should return 0 results when start is greater than end. // normally level would "fix" this for us by reversing the order, // so short-circuit instead return callback(null, { total_rows: docCount, offset: opts.skip, rows: [] }); } var results = []; var docstream = stores.docStore.readStream(readstreamOpts); var throughStream = through2.obj(function (entry, _, next) { var metadata = entry.value; // winningRev and deleted are performance-killers, but // in newer versions of PouchDB, they are cached on the metadata var winningRev = getWinningRev(metadata); var deleted = getIsDeleted(metadata, winningRev); if (!deleted) { if (skip-- > 0) { next(); return; } else if (typeof limit === 'number' && limit-- <= 0) { docstream.unpipe(); docstream.destroy(); next(); return; } } else if (opts.deleted !== 'ok') { next(); return; } function allDocsInner(data) { var doc = { id: metadata.id, key: metadata.id, value: { rev: winningRev } }; if (opts.include_docs) { doc.doc = data; doc.doc._rev = doc.value.rev; if (opts.conflicts) { doc.doc._conflicts = collectConflicts(metadata); } for (var att in doc.doc._attachments) { if (doc.doc._attachments.hasOwnProperty(att)) { doc.doc._attachments[att].stub = true; } } } if (opts.inclusive_end === false && metadata.id === opts.endkey) { return next(); } else if (deleted) { if (opts.deleted === 'ok') { doc.value.deleted = true; doc.doc = null; } else { /* istanbul ignore next */ return next(); } } results.push(doc); next(); } if (opts.include_docs) { var seq = metadata.rev_map[winningRev]; stores.bySeqStore.get(formatSeq(seq), function (err, data) { allDocsInner(data); }); } else { allDocsInner(); } }, function (next) { PouchPromise.resolve().then(function () { if (opts.include_docs && opts.attachments) { return fetchAttachments(results, stores, opts); } }).then(function () { callback(null, { total_rows: docCount, offset: opts.skip, rows: results }); }, callback); next(); }).on('unpipe', function () { throughStream.end(); }); docstream.on('error', callback); docstream.pipe(throughStream); }); }); api._changes = function (opts) { opts = clone(opts); if (opts.continuous) { var id = name + ':' + uuid(); levelChanges.addListener(name, id, api, opts); levelChanges.notify(name); return { cancel: function () { levelChanges.removeListener(name, id); } }; } var descending = opts.descending; var results = []; var lastSeq = opts.since || 0; var called = 0; var streamOpts = { reverse: descending }; var limit; if ('limit' in opts && opts.limit > 0) { limit = opts.limit; } if (!streamOpts.reverse) { streamOpts.start = formatSeq(opts.since || 0); } var docIds = opts.doc_ids && new pouchdbCollections.Set(opts.doc_ids); var filter = filterChange(opts); var docIdsToMetadata = new pouchdbCollections.Map(); var returnDocs; if ('return_docs' in opts) { returnDocs = opts.return_docs; } else if ('returnDocs' in opts) { // TODO: Remove 'returnDocs' in favor of 'return_docs' in a future release returnDocs = opts.returnDocs; } else { returnDocs = true; } function complete() { opts.done = true; if (returnDocs && opts.limit) { /* istanbul ignore if */ if (opts.limit < results.length) { results.length = opts.limit; } } changeStream.unpipe(throughStream); changeStream.destroy(); if (!opts.continuous && !opts.cancelled) { if (opts.include_docs && opts.attachments) { fetchAttachments(results, stores, opts).then(function () { opts.complete(null, {results: results, last_seq: lastSeq}); }); } else { opts.complete(null, {results: results, last_seq: lastSeq}); } } } var changeStream = stores.bySeqStore.readStream(streamOpts); var throughStream = through2.obj(function (data, _, next) { if (limit && called >= limit) { complete(); return next(); } if (opts.cancelled || opts.done) { return next(); } var seq = parseSeq(data.key); var doc = data.value; if (seq === opts.since && !descending) { // couchdb ignores `since` if descending=true return next(); } if (docIds && !docIds.has(doc._id)) { return next(); } var metadata; function onGetMetadata(metadata) { var winningRev = getWinningRev(metadata); function onGetWinningDoc(winningDoc) { var change = opts.processChange(winningDoc, metadata, opts); change.seq = metadata.seq; var filtered = filter(change); if (typeof filtered === 'object') { return opts.complete(filtered); } if (filtered) { called++; if (opts.attachments && opts.include_docs) { // fetch attachment immediately for the benefit // of live listeners fetchAttachments([change], stores, opts).then(function () { opts.onChange(change); }); } else { opts.onChange(change); } if (returnDocs) { results.push(change); } } next(); } if (metadata.seq !== seq) { // some other seq is later return next(); } lastSeq = seq; if (winningRev === doc._rev) { return onGetWinningDoc(doc); } // fetch the winner var winningSeq = metadata.rev_map[winningRev]; stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { onGetWinningDoc(doc); }); } metadata = docIdsToMetadata.get(doc._id); if (metadata) { // cached return onGetMetadata(metadata); } // metadata not cached, have to go fetch it stores.docStore.get(doc._id, function (err, metadata) { /* istanbul ignore if */ if (opts.cancelled || opts.done || db.isClosed() || isLocalId(metadata.id)) { return next(); } docIdsToMetadata.set(doc._id, metadata); onGetMetadata(metadata); }); }, function (next) { if (opts.cancelled) { return next(); } if (returnDocs && opts.limit) { /* istanbul ignore if */ if (opts.limit < results.length) { results.length = opts.limit; } } next(); }).on('unpipe', function () { throughStream.end(); complete(); }); changeStream.pipe(throughStream); return { cancel: function () { opts.cancelled = true; complete(); } }; }; api._close = function (callback) { /* istanbul ignore if */ if (db.isClosed()) { return callback(createError(NOT_OPEN)); } db.close(function (err) { /* istanbul ignore if */ if (err) { callback(err); } else { dbStore.delete(name); callback(); } }); }; api._getRevisionTree = function (docId, callback) { stores.docStore.get(docId, function (err, metadata) { if (err) { callback(createError(MISSING_DOC)); } else { callback(null, metadata.rev_tree); } }); }; api._doCompaction = writeLock(function (docId, revs, opts, callback) { api._doCompactionNoLock(docId, revs, opts, callback); }); // the NoLock version is for use by bulkDocs api._doCompactionNoLock = function (docId, revs, opts, callback) { if (typeof opts === 'function') { callback = opts; opts = {}; } if (!revs.length) { return callback(); } var txn = opts.ctx || new LevelTransaction(); txn.get(stores.docStore, docId, function (err, metadata) { /* istanbul ignore if */ if (err) { return callback(err); } var seqs = revs.map(function (rev) { var seq = metadata.rev_map[rev]; delete metadata.rev_map[rev]; return seq; }); traverseRevTree(metadata.rev_tree, function (isLeaf, pos, revHash, ctx, opts) { var rev = pos + '-' + revHash; if (revs.indexOf(rev) !== -1) { opts.status = 'missing'; } }); var batch = []; batch.push({ key: metadata.id, value: metadata, type: 'put', prefix: stores.docStore }); var digestMap = {}; var numDone = 0; var overallErr; function checkDone(err) { /* istanbul ignore if */ if (err) { overallErr = err; } if (++numDone === revs.length) { // done /* istanbul ignore if */ if (overallErr) { return callback(overallErr); } deleteOrphanedAttachments(); } } function finish(err) { /* istanbul ignore if */ if (err) { return callback(err); } txn.batch(batch); if (opts.ctx) { // don't execute immediately return callback(); } txn.execute(db, callback); } function deleteOrphanedAttachments() { var possiblyOrphanedAttachments = Object.keys(digestMap); if (!possiblyOrphanedAttachments.length) { return finish(); } var numDone = 0; var overallErr; function checkDone(err) { /* istanbul ignore if */ if (err) { overallErr = err; } if (++numDone === possiblyOrphanedAttachments.length) { finish(overallErr); } } var refsToDelete = new pouchdbCollections.Map(); revs.forEach(function (rev) { refsToDelete.set(docId + '@' + rev, true); }); possiblyOrphanedAttachments.forEach(function (digest) { txn.get(stores.attachmentStore, digest, function (err, attData) { /* istanbul ignore if */ if (err) { if (err.name === 'NotFoundError') { return checkDone(); } else { return checkDone(err); } } var refs = Object.keys(attData.refs || {}).filter(function (ref) { return !refsToDelete.has(ref); }); var newRefs = {}; refs.forEach(function (ref) { newRefs[ref] = true; }); if (refs.length) { // not orphaned batch.push({ key: digest, type: 'put', value: {refs: newRefs}, prefix: stores.attachmentStore }); } else { // orphaned, can safely delete batch = batch.concat([{ key: digest, type: 'del', prefix: stores.attachmentStore }, { key: digest, type: 'del', prefix: stores.binaryStore }]); } checkDone(); }); }); } seqs.forEach(function (seq) { batch.push({ key: formatSeq(seq), type: 'del', prefix: stores.bySeqStore }); txn.get(stores.bySeqStore, formatSeq(seq), function (err, doc) { /* istanbul ignore if */ if (err) { if (err.name === 'NotFoundError') { return checkDone(); } else { return checkDone(err); } } var atts = Object.keys(doc._attachments || {}); atts.forEach(function (attName) { var digest = doc._attachments[attName].digest; digestMap[digest] = true; }); checkDone(); }); }); }); }; api._getLocal = function (id, callback) { stores.localStore.get(id, function (err, doc) { if (err) { callback(createError(MISSING_DOC)); } else { callback(null, doc); } }); }; api._putLocal = function (doc, opts, callback) { if (typeof opts === 'function') { callback = opts; opts = {}; } if (opts.ctx) { api._putLocalNoLock(doc, opts, callback); } else { api._putLocalWithLock(doc, opts, callback); } }; api._putLocalWithLock = writeLock(function (doc, opts, callback) { api._putLocalNoLock(doc, opts, callback); }); // the NoLock version is for use by bulkDocs api._putLocalNoLock = function (doc, opts, callback) { delete doc._revisions; // ignore this, trust the rev var oldRev = doc._rev; var id = doc._id; var txn = opts.ctx || new LevelTransaction(); txn.get(stores.localStore, id, function (err, resp) { if (err && oldRev) { return callback(createError(REV_CONFLICT)); } if (resp && resp._rev !== oldRev) { return callback(createError(REV_CONFLICT)); } doc._rev = oldRev ? '0-' + (parseInt(oldRev.split('-')[1], 10) + 1) : '0-1'; var batch = [ { type: 'put', prefix: stores.localStore, key: id, value: doc } ]; txn.batch(batch); var ret = {ok: true, id: doc._id, rev: doc._rev}; if (opts.ctx) { // don't execute immediately return callback(null, ret); } txn.execute(db, function (err) { /* istanbul ignore if */ if (err) { return callback(err); } callback(null, ret); }); }); }; api._removeLocal = function (doc, opts, callback) { if (typeof opts === 'function') { callback = opts; opts = {}; } if (opts.ctx) { api._removeLocalNoLock(doc, opts, callback); } else { api._removeLocalWithLock(doc, opts, callback); } }; api._removeLocalWithLock = writeLock(function (doc, opts, callback) { api._removeLocalNoLock(doc, opts, callback); }); // the NoLock version is for use by bulkDocs api._removeLocalNoLock = function (doc, opts, callback) { var txn = opts.ctx || new LevelTransaction(); txn.get(stores.localStore, doc._id, function (err, resp) { if (err) { /* istanbul ignore if */ if (err.name !== 'NotFoundError') { return callback(err); } else { return callback(createError(MISSING_DOC)); } } if (resp._rev !== doc._rev) { return callback(createError(REV_CONFLICT)); } txn.batch([{ prefix: stores.localStore, type: 'del', key: doc._id }]); var ret = {ok: true, id: doc._id, rev: '0-0'}; if (opts.ctx) { // don't execute immediately return callback(null, ret); } txn.execute(db, function (err) { /* istanbul ignore if */ if (err) { return callback(err); } callback(null, ret); }); }); }; // close and delete open leveldb stores api._destroy = function (opts, callback) { var dbStore; var leveldownName = functionName(leveldown); /* istanbul ignore else */ if (dbStores.has(leveldownName)) { dbStore = dbStores.get(leveldownName); } else { return callDestroy(name, callback); } /* istanbul ignore else */ if (dbStore.has(name)) { levelChanges.removeAllListeners(name); dbStore.get(name).close(function () { dbStore.delete(name); callDestroy(name, callback); }); } else { callDestroy(name, callback); } }; function callDestroy(name, cb) { leveldown.destroy(name, cb); } } function FruitDownPouch(opts, callback) { var _opts = jsExtend.extend({ db: fruitdown }, opts); LevelPouch.call(this, _opts, callback); } // overrides for normal LevelDB behavior on Node FruitDownPouch.valid = function () { return !!global.indexedDB; }; FruitDownPouch.use_prefix = true; function FruitdownPouchPlugin (PouchDB) { PouchDB.adapter('fruitdown', FruitDownPouch, true); } var PDB = (typeof PouchDB !== 'undefined') ? PouchDB : require('pouchdb'); if (!PDB) { guardedConsole('error', 'fruitdown adapter plugin error: ' + 'Cannot find global "PouchDB" object! ' + 'Did you remember to include pouchdb.js?'); } else { FruitdownPouchPlugin(PDB); }
// Browser Events Responder // ------------------------ // Takes incoming event message types and converts them into a format suitable for sending over the websocket 'use strict'; var fs = require('fs'); module.exports = function(responderId, config, ss) { var code, name; name = config && config.name || 'events'; // Serve client code code = fs.readFileSync(__dirname + '/client.js', 'utf8'); ss.client.send('mod', 'events-responder', code, {}); ss.client.send('code', 'init', 'require(\'events-responder\')(' + responderId + ', {}, require(\'socketstream\').send(' + responderId + '));'); // Return API return { name: name, interfaces: function(middleware) { return { websocket: function(msg, meta, send) { return send(JSON.stringify(msg)); } }; } }; };
/** * @namespace basis.router */ var namespace = 'basis.router'; // // main part // var location = global.location; var document = global.document; var eventUtils = require('basis.dom.event'); var Value = require('basis.data').Value; var parsePath = require('./router/ast.js').parsePath; var stringify = require('./router/ast.js').stringify; // documentMode logic from YUI to filter out IE8 Compat Mode which false positives var docMode = document.documentMode; var eventSupport = 'onhashchange' in global && (docMode === undefined || docMode > 7); var CHECK_INTERVAL = 50; var arrayFrom = basis.array.from; var allRoutes = []; var plainRoutesByPath = {}; var started = false; var currentPath; var timer; var routeHistory = []; var checkDelayTimer; // // debug // /** @cut */ var log = []; /** @cut */ var flushLog = function(message){ /** @cut */ var entries = log.splice(0); /** @cut */ if (module.exports.debug) /** @cut */ basis.dev.info.apply(basis.dev, [message].concat(entries.length ? entries : '\n<no actions>')); /** @cut */ }; // // apply route changes // var ROUTE_ENTER = 1; var ROUTE_MATCH = 2; var ROUTE_LEAVE = 4; function routeEnter(route, nonInitedOnly){ var callbacks = arrayFrom(route.callbacks_); for (var i = 0, item; item = callbacks[i]; i++) if ((!nonInitedOnly || !item.enterInited) && item.callback.enter) { item.enterInited = true; item.callback.enter.call(item.context); /** @cut */ log.push('\n', { type: 'enter', path: route.path, cb: item, route: route }); } } function routeLeave(route){ var callbacks = arrayFrom(route.callbacks_); for (var i = 0, item; item = callbacks[i]; i++) if (item.callback.leave) { item.callback.leave.call(item.context); /** @cut */ log.push('\n', { type: 'leave', path: route.path, cb: item, route: route }); } } function routeMatch(route, nonInitedOnly){ var callbacks = arrayFrom(route.callbacks_); for (var i = 0, item; item = callbacks[i]; i++) if ((!nonInitedOnly || !item.matchInited) && item.callback.match) { item.matchInited = true; item.callback.match.apply(item.context, arrayFrom(route.value)); /** @cut */ log.push('\n', { type: 'match', path: route.path, cb: item, route: route, args: route.value }); } } var initSchedule = basis.asap.schedule(function(route){ if (route.value) { routeEnter(route, true); routeMatch(route, true); /** @cut */ flushLog(namespace + ': init callbacks for route `' + route.path + '`'); } }); var flushSchedule = basis.asap.schedule(function(route){ route.flush(true); }); /** * @class */ var Route = basis.Token.subclass({ className: namespace + '.Route', path: null, matched: null, ast_: null, names_: null, regexp_: null, params_: null, callbacks_: null, init: function(parseInfo){ var regexp = parseInfo.regexp; basis.Token.prototype.init.call(this, null); this.path = parseInfo.path; this.matched = this.as(Boolean); this.ast_ = parseInfo.ast; this.names_ = parseInfo.params; this.regexp_ = regexp; this.params_ = {}; this.callbacks_ = []; }, matches_: function(path){ return { pathMatch: path.match(this.regexp_), query: null }; }, processLocation_: function(newPath){ initSchedule.remove(this); var resultFlags = 0; var match = this.matches_(newPath); if (match.pathMatch) { if (!this.value) resultFlags |= ROUTE_ENTER; this.setMatch_(arrayFrom(match.pathMatch, 1), match.query); resultFlags |= ROUTE_MATCH; } else { if (this.value) { this.setMatch_(null); resultFlags |= ROUTE_LEAVE; } } return resultFlags; }, param: function(nameOrIdx){ var idx = typeof nameOrIdx == 'number' ? nameOrIdx : this.names_.indexOf(nameOrIdx); if (idx in this.params_ == false) this.params_[idx] = this.as(function(value){ return value && value[idx]; }); return this.params_[idx]; }, setMatch_: function(match){ if (match) { // make a copy of match, it also converts match to object (as match is array of matches) match = match.slice(0); // extend object with named values for (var key in match) if (key in this.names_) match[this.names_[key]] = match[key]; } this.set(match); }, add: function(callback, context){ return add(this, callback, context); }, remove: function(callback, context){ remove(this, callback, context); } }); var ParametrizedRoute = Route.subclass({ className: namespace + '.ParametrizedRoute', params: null, normalize: basis.fn.$undef, paramsConfig_: null, init: function(parseInfo, config){ Route.prototype.init.apply(this, arguments); this.paramsConfig_ = this.constructParamsConfig_(config.params); if (config.normalize) { if (typeof config.normalize === 'function') { this.normalize = config.normalize; } else { /** @cut */ basis.dev.warn(namespace + ': expected normalize to be function, but got ', config.normalize, ' - ignore'); } } this.constructParams_(); }, constructParamsConfig_: function(paramsConfig){ var result = {}; basis.object.iterate(paramsConfig, function(key, transform){ if (typeof transform === 'function') { var deserialize; var serialize; var defaultValue; if ('DEFAULT_VALUE' in transform) defaultValue = transform.DEFAULT_VALUE; else defaultValue = transform(); if ('deserialize' in transform) { if (typeof transform.deserialize === 'function') { deserialize = transform.deserialize; } else { /** @cut */ basis.dev.warn(namespace + ': expected deserialize to be a function, but got ', deserialize, ' - ignore'); deserialize = basis.fn.$self; } } else { deserialize = basis.fn.$self; } if ('serialize' in transform) { if (typeof transform.serialize === 'function') { serialize = transform.serialize; } else { /** @cut */ basis.dev.warn(namespace + ': expected serialize to be a function, but got ', serialize, ' - ignore'); serialize = basis.fn.$self; } } else { serialize = basis.fn.$self; } result[key] = { transform: transform, serialize: serialize, deserialize: deserialize, defaultValue: defaultValue, currentValue: defaultValue, nextValue: undefined }; } else { result[key] = { transform: basis.fn.$self, serialize: basis.fn.$self, deserialize: basis.fn.$self, defaultValue: undefined, currentValue: undefined, nextValue: undefined }; /** @cut */ basis.dev.warn(namespace + ': expected param ' + key + ' to be function, but got ', transform, ' using basis.fn.$self instead'); } }); return result; }, constructParams_: function(){ var route = this; route.params = {}; route.attach(function(values){ basis.object.iterate(route.paramsConfig_, function(key, paramConfig){ if (values && key in values) Value.prototype.set.call(route.params[key], values[key]); else Value.prototype.set.call(route.params[key], paramConfig.defaultValue); }); }); basis.object.iterate(route.paramsConfig_, function(key, paramConfig){ var paramValue = new Value({ value: paramConfig.defaultValue, set: function(value){ if (!route.value) { /** @cut */ basis.dev.warn(namespace + ': trying to set param ' + key + ' when route not matched - ignoring', { params: route.paramsConfig_ }); return; } flushSchedule.add(route); var newValue = paramConfig.transform(value, paramConfig.currentValue); paramConfig.nextValue = newValue; } }); route.params[key] = paramValue; }); }, calculateDelta_: function(nextValues){ var delta = null; basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ if (paramConfig.currentValue !== nextValues[key]) { delta = delta || {}; delta[key] = paramConfig.currentValue; } }); return delta; }, setMatch_: function(pathMatch, query){ var paramsFromQuery = queryToParams(query); if (!pathMatch) { this.set(null); return; } var paramsFromPath = this.paramsArrayToObject_(pathMatch); var values = {}; // preserve only params specified in config.params for (var paramName in this.params) if (paramName in paramsFromPath) values[paramName] = paramsFromPath[paramName]; else if (paramName in paramsFromQuery) values[paramName] = paramsFromQuery[paramName]; var nextParams = {}; // Run through params transforms in order to transform decoded values to typed values basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ var deserialize = paramConfig.deserialize; var transform = paramConfig.transform; if (key in values) { var parsedValue = deserialize(values[key]); nextParams[key] = transform(parsedValue, paramConfig.currentValue); } else { nextParams[key] = paramConfig.defaultValue; } }, this); var delta = this.calculateDelta_(nextParams); this.normalize(nextParams, delta); // Run through params transforms, because normalize may spoil some params basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ var newValue; if (key in nextParams) newValue = paramConfig.transform(nextParams[key], paramConfig.currentValue); else newValue = paramConfig.defaultValue; paramConfig.currentValue = newValue; paramConfig.nextValue = newValue; }, this); var newRouteValue = {}; basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ newRouteValue[key] = paramConfig.currentValue; }); this.set(newRouteValue); silentReplace(this.getCurrentPath_()); }, update: function(params, replace){ if (!this.value) { /** @cut */ basis.dev.warn(namespace + ': trying to update when route not matched - ignoring', { path: this.path, params: params }); return; } basis.object.iterate(params, function(key, newValue){ if (key in this.params) { this.params[key].set(newValue); } else { /** @cut */ basis.dev.warn(namespace + ': found param ' + key + ' not specified in config - ignoring', { params: this.paramsConfig_ }); } }, this); this.flush(replace); }, navigate: function(params, replace){ navigate(this.getPath(params), replace); }, getPath: function(specifiedParams){ var params = {}; specifiedParams = specifiedParams || {}; /** @cut */ for (var key in specifiedParams) /** @cut */ if (!(key in this.paramsConfig_)) /** @cut */ basis.dev.warn(namespace + ': found param ' + key + ' not specified in config - ignoring', { params: this.paramsConfig_ }); basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ if (key in specifiedParams) params[key] = paramConfig.transform(specifiedParams[key], paramConfig.defaultValue); else params[key] = paramConfig.defaultValue; }, this); var serialized = {}; basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ serialized[key] = paramConfig.serialize(params[key]); }); return stringify(this.ast_, serialized, this.areModified_(params)); }, flush: function(replace){ navigate(this.getCurrentPath_(), replace); }, getCurrentPath_: function(){ var paramsNextValues = {}; basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ paramsNextValues[key] = paramConfig.nextValue; }); return this.getPath(paramsNextValues); }, areModified_: function(params){ var result = {}; basis.object.iterate(this.paramsConfig_, function(key, paramConfig){ result[key] = params[key] !== paramConfig.defaultValue; }); return result; }, paramsArrayToObject_: function(arr){ var result = {}; for (var paramIdx in arr) if (paramIdx in this.names_) if (arr[paramIdx]) result[this.names_[paramIdx]] = decodeURIComponent(arr[paramIdx]); return result; }, matches_: function(newLocation){ var pathAndQuery = newLocation.split('?'); var newPath = pathAndQuery[0]; var newQuery = pathAndQuery[1]; return { pathMatch: newPath.match(this.regexp_), query: newQuery }; }, destroy: function(){ this.paramsConfig_ = null; this.params = null; flushSchedule.remove(this); basis.array.remove(allRoutes, this); Route.prototype.destroy.apply(this, arguments); } }); /** * Start router */ function start(){ if (!started) { // start watch for hash changes if (eventSupport) eventUtils.addHandler(global, 'hashchange', checkUrl); else timer = setInterval(checkUrl, CHECK_INTERVAL); /** @cut */ if (module.exports.debug) /** @cut */ basis.dev.log(namespace + ' started'); // mark as started and check current hash started = true; checkUrl(); } } /** * Stop router */ function stop(){ if (started) { started = false; // stop watch for hash changes if (eventSupport) eventUtils.removeHandler(global, 'hashchange', checkUrl); else clearInterval(timer); /** @cut */ if (module.exports.debug) /** @cut */ basis.dev.log(namespace + ' stopped'); } } function preventRecursion(path){ if (checkDelayTimer) return true; // filter too old entries var currentTime = Date.now(); routeHistory = routeHistory.filter(function(item){ return (currentTime - item.time) < 200; }); // search path in history // if more than two occurrence than delay checkUrl // one occurency is legal as we can go to url and then back for some reason var last = basis.array.lastSearch(routeHistory, path, 'path'); if (last && basis.array.lastSearch(routeHistory, path, 'path', routeHistory.lastSearchIndex)) { // set timer to delay url check checkDelayTimer = setTimeout(function(){ checkDelayTimer = null; checkUrl(); }, 200); return true; } routeHistory.push({ time: Date.now(), path: path }); } function queryToParams(query) { if (!query) return {}; var result = {}; var pairs = query.split('&'); for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split('='); var key = decodeURIComponent(pair[0]); var value = decodeURIComponent(pair[1]); result[key] = value; } return result; } /** * Process current location */ function checkUrl(){ var newPath = location.hash.substr(1) || ''; if (newPath != currentPath) { // check for recursion if (preventRecursion(newPath)) return; // save current path currentPath = newPath; var routesToLeave = []; var routesToEnter = []; var routesToMatch = []; allRoutes.forEach(function(route){ var flags = route.processLocation_(newPath); if (flags & ROUTE_LEAVE) routesToLeave.push(route); if (flags & ROUTE_ENTER) routesToEnter.push(route); if (flags & ROUTE_MATCH) routesToMatch.push(route); }); for (var i = 0; i < routesToLeave.length; i++) routeLeave(routesToLeave[i]); for (var i = 0; i < routesToEnter.length; i++) routeEnter(routesToEnter[i]); for (var i = 0; i < routesToMatch.length; i++) routeMatch(routesToMatch[i]); /** @cut */ flushLog(namespace + ': hash changed to "' + newPath + '"'); } else { allRoutes.forEach(function(route){ if (route.value) { routeEnter(route, true); routeMatch(route, true); } }); /** @cut */ flushLog(namespace + ': checkUrl()'); } } function createRoute(parseInfo, config) { if (config) return new ParametrizedRoute(parseInfo, config); else return new Route(parseInfo); } /** * Returns route descriptor */ function get(params){ var path = params.path; var config = params.config; if (path instanceof Route) return path; var route; // If there is no config specified - it should be a plain route, so we try to reuse it if (!config) route = plainRoutesByPath[path]; if (!route && params.autocreate) { var parseInfo = Object.prototype.toString.call(path) == '[object RegExp]' ? { path: path, regexp: path, ast: null, params: [] } : parsePath(path); route = createRoute(parseInfo, config); allRoutes.push(route); if (route instanceof ParametrizedRoute == false) plainRoutesByPath[path] = route; if (typeof currentPath == 'string') { var flags = route.processLocation_(currentPath); if (flags & ROUTE_ENTER) routeEnter(route); if (flags & ROUTE_MATCH) routeMatch(route); } } return route; } /** * Add path to be handled */ function add(path, callback, context){ var route = get({ path: path, autocreate: true }); route.callbacks_.push({ cb_: callback, context: context, callback: typeof callback != 'function' ? callback || {} : { match: callback } }); initSchedule.add(route); return route; } /** * Remove handler for path */ function remove(route, callback, context){ var route = get({ path: route }); if (!route) return; for (var i = 0, cb; cb = route.callbacks_[i]; i++) { if (cb.cb_ === callback && cb.context === context) { route.callbacks_.splice(i, 1); if (route.value && callback && callback.leave) { callback.leave.call(context); /** @cut */ if (module.exports.debug) /** @cut */ basis.dev.info( /** @cut */ namespace + ': add handler for route `' + path + '`\n', /** @cut */ { type: 'leave', path: route.path, cb: callback.leave, route: route } /** @cut */ ); } if (!route.callbacks_.length) { // check no attaches to route if ((!route.handler || !route.handler.handler) && !route.matched.handler) { basis.array.remove(allRoutes, route); if (!(route instanceof ParametrizedRoute)) delete plainRoutesByPath[route.path]; } } return; } } /** @cut */ basis.dev.warn(namespace + ': no callback removed', { callback: callback, context: context }); } /** * Navigate to specified path */ function navigate(path, replace){ if (replace) location.replace(location.pathname + '#' + path); else location.hash = path; if (started) checkUrl(); } function silentReplace(path) { currentPath = path; location.replace(location.pathname + '#' + path); } // start watch for location by default start(); // // export names // module.exports = { debug: false, start: start, stop: stop, checkUrl: checkUrl, navigate: navigate, add: add, remove: remove, route: function(path, config){ return get({ path: path, autocreate: true, config: config }); } };
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import './tpls/currency.tpl.html'; import './tpls/field.tpl.html'; import './tpls/fieldpicker.tpl.html'; import './tpls/registrationform.tpl.html'; import './tpls/section.tpl.html'; import './tpls/sectiontoolbar.tpl.html'; import './tpls/table.tpl.html'; import './tpls/toolbar.tpl.html'; import './tpls/dialogs/errors.tpl.html'; import './tpls/dialogs/sectioncreation.tpl.html'; import './tpls/dialogs/sectionmanagement.tpl.html'; import './tpls/fields/accommodation-config.tpl.html'; import './tpls/fields/accommodation-editionTable.tpl.html'; import './tpls/fields/accommodation.tpl.html'; import './tpls/fields/checkbox.tpl.html'; import './tpls/fields/country.tpl.html'; import './tpls/fields/date.tpl.html'; import './tpls/fields/dropdown.tpl.html'; import './tpls/fields/email.tpl.html'; import './tpls/fields/bool.tpl.html'; import './tpls/fields/file.tpl.html'; import './tpls/fields/label.tpl.html'; import './tpls/fields/multi_choice.tpl.html'; import './tpls/fields/number.tpl.html'; import './tpls/fields/phone.tpl.html'; import './tpls/fields/radio.tpl.html'; import './tpls/fields/radiogroup.tpl.html'; import './tpls/fields/text.tpl.html'; import './tpls/fields/textarea.tpl.html'; import './tpls/fields/dialogs/accomodationoptions.tpl.html'; import './tpls/fields/dialogs/base.tpl.html'; import './tpls/fields/dialogs/billable.tpl.html'; import './tpls/fields/dialogs/date.tpl.html'; import './tpls/fields/dialogs/defaultvalues.tpl.html'; import './tpls/fields/dialogs/inputtype.tpl.html'; import './tpls/fields/dialogs/itemtable.tpl.html'; import './tpls/fields/dialogs/number.tpl.html'; import './tpls/fields/dialogs/placeslimit.tpl.html'; import './tpls/fields/dialogs/rowsandcolumns.tpl.html'; import './tpls/fields/dialogs/size.tpl.html'; import './tpls/sections/dialogs/base.tpl.html'; import './tpls/sections/general.tpl.html'; import './tpls/sections/generalfield.tpl.html';
import url from 'url' import request from 'request' import merge from 'deepmerge' import { ERROR_CODES } from '../helpers/constants' import { RuntimeError } from './ErrorHandler' import pkg from '../../package.json' /** * RequestHandler */ class RequestHandler { constructor (options, eventHandler, logger) { this.sessionID = null this.startPath = options.path === '/' ? '' : options.path || '/wd/hub' this.gridApiStartPath = '/grid/api' this.eventHandler = eventHandler this.logger = logger this.defaultOptions = options /** * actually host is `hostname:port` but to keep config properties * short we abuse host as hostname */ if (options.host !== undefined) { options.hostname = options.host delete options.host } /** * set auth from user and password configs */ if (this.defaultOptions.user && this.defaultOptions.key) { this.auth = { user: this.defaultOptions.user, pass: this.defaultOptions.key } delete this.defaultOptions.user delete this.defaultOptions.key } } /** * merges default options with request options * * @param {Object} requestOptions request options */ createOptions (requestOptions, data) { let newOptions = {} /** * if we don't have a session id we set it here, unless we call commands that don't require session ids, for * example /sessions. The call to /sessions is not connected to a session itself and it therefore doesn't * require it */ if (requestOptions.path.match(/\:sessionId/) && !this.sessionID && requestOptions.requiresSession !== false) { // throw session id error throw new RuntimeError(101) } newOptions.uri = url.parse( this.defaultOptions.protocol + '://' + this.defaultOptions.hostname + ':' + this.defaultOptions.port + (requestOptions.gridCommand ? this.gridApiStartPath : this.startPath) + requestOptions.path.replace(':sessionId', this.sessionID || '')) // send authentication credentials only when creating new session if (requestOptions.path === '/session' && this.auth !== undefined) { newOptions.auth = this.auth } if (requestOptions.method) { newOptions.method = requestOptions.method } if (requestOptions.gridCommand) { newOptions.gridCommand = requestOptions.gridCommand } newOptions.json = true newOptions.followAllRedirects = true newOptions.headers = { 'Connection': 'keep-alive', 'Accept': 'application/json', 'User-Agent': 'webdriverio/webdriverio/' + pkg.version } if (Object.keys(data).length > 0) { let requestData = JSON.stringify(data) newOptions.body = requestData newOptions.method = 'POST' newOptions.headers = merge(newOptions.headers, { 'Content-Type': 'application/json; charset=UTF-8', 'Content-Length': Buffer.byteLength(requestData, 'UTF-8') }) } newOptions.timeout = this.defaultOptions.connectionRetryTimeout return newOptions } /** * creates a http request with its given options and send the protocol * command to the webdriver server * * @param {Object} requestOptions defines url, method and other request options * @param {Object} data contains request data */ create (requestOptions, data) { data = data || {} /** * allow to pass a string as shorthand argument */ if (typeof requestOptions === 'string') { requestOptions = { path: requestOptions } } let fullRequestOptions = this.createOptions(requestOptions, data) this.eventHandler.emit('command', { method: fullRequestOptions.method || 'GET', uri: fullRequestOptions.uri, data: data }) return this.request(fullRequestOptions, this.defaultOptions.connectionRetryCount).then(({body, response}) => { /** * if no session id was set before we've called the init command */ if (this.sessionID === null && requestOptions.requiresSession !== false) { this.sessionID = body.sessionId this.eventHandler.emit('init', { sessionID: this.sessionID, options: body.value, desiredCapabilities: data.desiredCapabilities }) this.eventHandler.emit('info', 'SET SESSION ID ' + this.sessionID) } if (body === undefined) { body = { status: 0, orgStatusMessage: ERROR_CODES[0].message } } this.eventHandler.emit('result', { requestData: data, requestOptions: fullRequestOptions, response: response, body: body }) return body }) } request (fullRequestOptions, totalRetryCount, retryCount = 0) { retryCount += 1 return new Promise((resolve, reject) => { request(fullRequestOptions, (err, response, body) => { /** * Resolve with a healthy response */ if (!err && body && body.status === 0) { return resolve({body, response}) } if (fullRequestOptions.gridCommand) { if (body.success) { return resolve({body, response}) } return reject(new RuntimeError({ status: 102, type: ERROR_CODES[102].id, message: ERROR_CODES[102].message, orgStatusMessage: body.msg || 'unknown' })) } /** * in Appium you find sometimes more exact error messages in origValue */ if (body && body.value && typeof body.value.origValue === 'string' && typeof body.value.message === 'string') { body.value.message += ' ' + body.value.origValue } if (body && typeof body === 'string') { reject(new RuntimeError(body)) return } if (body) { reject(new RuntimeError({ status: body.status, type: ERROR_CODES[body.status] ? ERROR_CODES[body.status].id : 'unknown', message: ERROR_CODES[body.status] ? ERROR_CODES[body.status].message : 'unknown', orgStatusMessage: body.value ? body.value.message : '', screenshot: body.value && body.value.screen || null })) return } if (retryCount === totalRetryCount) { let error = null if (err && err.message.indexOf('Nock') > -1) { // for better unit test error output error = err } else { error = new RuntimeError({ status: -1, type: 'ECONNREFUSED', message: 'Couldn\'t connect to selenium server', orgStatusMessage: 'Couldn\'t connect to selenium server' }) } reject(error) return } this.request(fullRequestOptions, totalRetryCount, retryCount) .then(resolve) .catch(reject) }) }) } } export default RequestHandler
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v21.2.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var agAbstractInputField_1 = require("./agAbstractInputField"); var AgInputTextArea = /** @class */ (function (_super) { __extends(AgInputTextArea, _super); function AgInputTextArea(config) { var _this = _super.call(this) || this; _this.className = 'ag-text-area'; _this.displayTag = 'textarea'; _this.inputType = ''; _this.setTemplate(_this.TEMPLATE.replace(/%displayField%/g, _this.displayTag)); if (config) { _this.config = config; } return _this; } AgInputTextArea.prototype.setValue = function (value, silent) { var ret = _super.prototype.setValue.call(this, value, silent); this.eInput.value = value; return ret; }; return AgInputTextArea; }(agAbstractInputField_1.AgAbstractInputField)); exports.AgInputTextArea = AgInputTextArea;
import { Suspense } from 'react' let result let promise function Data() { if (result) return result if (!promise) promise = new Promise((res) => { setTimeout(() => { result = 'next_streaming_data' res() }, 500) }) throw promise } export default function Page() { return ( <Suspense fallback="next_streaming_fallback"> <Data /> </Suspense> ) }
version https://git-lfs.github.com/spec/v1 oid sha256:e9637ae2c19e764acb5bd0b5112b9fdea0712a42dc60997fb9c57ccbfbf3f77d size 18994
/** * Wi-Fi chat-plugin. Only works in a room with id 'wifi' * Handles giveaways in the formats: question, lottery * Credits: Codelegend, SilverTactic, DanielCranham, bumbadadabum **/ 'use strict'; const BAN_DURATION = 7 * 24 * 60 * 60 * 1000; function checkPlural(variable, plural, singular) { if (!plural) plural = 's'; if (!singular) singular = ''; return ((variable.length || variable) > 1 ? plural : singular); } class Giveaway { constructor(host, giver, room, prize) { if (room.gaNumber) { room.gaNumber++; } else { room.gaNumber = 1; } this.host = host; this.giver = giver; this.room = room; this.prize = prize; this.phase = 'pending'; this.joined = {}; this.sprite = Giveaway.getSprite(prize); } send(content) { this.room.add(`|uhtml|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${content}</div>`); this.room.update(); } changeUhtml(content) { this.room.add(`|uhtmlchange|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${content}</div>`); this.room.update(); } clearTimer() { if (this.timer) { clearTimeout(this.timer); delete this.timer; } } checkJoined(user) { for (let ip in this.joined) { if (user.latestIp === ip) return ip; if (this.joined[ip] in user.prevNames) return this.joined[ip]; } return false; } kickUser(user) { for (let ip in this.joined) { if (user.latestIp === ip || this.joined[ip] in user.prevNames) { if (this.generateReminder) user.sendTo(this.room, `|uhtmlchange|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${this.generateReminder()}</div>`); delete this.joined[ip]; } } } checkExcluded(user) { if (Giveaway.checkBanned(this.room, user)) return true; if (user === this.giver || user.latestIp in this.giver.ips || toId(user) in this.giver.prevNames) return true; if (user === this.host || user.latestIp in this.host.ips || toId(user) in this.host.prevNames) return true; return false; } static checkBanned(room, user) { return Punishments.getRoomPunishType(room, toId(user)) === 'GIVEAWAY_BAN'; } static ban(room, user, reason) { if (reason) reason = `(${reason})`; let msg = `Giveaway banned${reason}`; Punishments.roomPunish(room, user, ['GIVEAWAY_BAN', toId(user), Date.now() + BAN_DURATION, msg]); } static unban(room, user) { Punishments.roomUnpunish(room, toId(user), 'GIVEAWAY_BAN'); } static getSprite(text) { text = text.toLowerCase(); let mons = new Map(); let output = ''; for (let i in Tools.data.Pokedex) { let regexp = new RegExp(`\\b${i}\\b`); if (regexp.test(text)) { let mon = Tools.getTemplate(i); mons.set(mon.baseSpecies, mon); } } // the previous regex doesn't match "nidoran-m" or "nidoran male" if (/\bnidoran\W{0,1}m(ale){0,1}\b/.test(text)) { mons.set('nidoranm', Tools.getTemplate('nidoranm')); } if (/\bnidoran\W{0,1}f(emale){0,1}\b/.test(text)) { mons.set('nidoranf', Tools.getTemplate('nidoranf')); } text = toId(text); if (mons.size) { mons.forEach(function (value, key) { let spriteid = value.spriteid; if (value.otherForms) { for (let i = 0; i < value.otherForms.length; i++) { if (text.includes(value.otherForms[i])) { spriteid += '-' + value.otherForms[i].substr(key.length); break; // We don't want to end up with deerling-summer-spring } } } if (value.otherFormes) { for (let i = 0; i < value.otherFormes.length; i++) { if (text.includes(value.otherFormes[i])) { spriteid += '-' + value.otherFormes[i].substr(key.length); break; // We don't want to end up with landorus-therian-therian } } } if (mons.size > 1) { let top = Math.floor(value.num / 12) * 30; let left = (value.num % 12) * 40; output += `<div style="display:inline-block;width:40px;height:30px;background:transparent url('/sprites/xyicons-sheet.png?a1') no-repeat scroll -${left}px -${top}px'"></div>`; } else { let shiny = (text.includes("shiny") && !text.includes("shinystone") ? '-shiny' : ''); output += `<img src="/sprites/xyani${shiny}/${spriteid}.gif">`; } }); } return output; } generateWindow(rightSide) { return `<p style="text-align:center;font-size:14pt;font-weight:bold;margin-bottom:2px;">It's giveaway time!</p>` + `<p style="text-align:center;font-size:7pt;">Giveaway started by ${Tools.escapeHTML(this.host.name)}</p>` + `<table style="margin-left:auto;margin-right:auto;"><tr><td style="text-align:center;width:45%">${this.sprite}<p style="font-weight:bold;">Giver: ${this.giver}</p>${Tools.escapeHTML(this.prize)}</td>` + `<td style="text-align:center;width:45%">${rightSide}</td></tr></table><p style="text-align:center;font-size:7pt;font-weight:bold;"><u>Note:</u> Please do not join if you don't have a 3DS and a copy of Pok&eacute;mon XY or ORAS.</p>`; } } class QuestionGiveaway extends Giveaway { constructor(host, giver, room, prize, question, answers) { super(host, giver, room, prize); this.type = 'question'; this.question = question; this.answers = QuestionGiveaway.sanitizeAnswers(answers); this.answered = {}; // userid: number of guesses this.send(this.generateWindow('The question will be displayed in one minute! Use /ga to answer.')); this.timer = setTimeout(() => this.start(), 1000 * 60); } generateQuestion() { return this.generateWindow(`<p style="text-align:center;font-size:13pt;">Giveaway Question: <b>${this.question}</b></p><p style="text-align:center;">use /ga to guess.</p>`); } start() { this.changeUhtml('<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway has started! Scroll down to see the question.</p>'); this.phase = 'started'; this.send(this.generateQuestion()); this.timer = setTimeout(() => this.end(), 1000 * 60 * 5); } guessAnswer(user, guess) { if (this.phase !== 'started') return user.sendTo(this.room, "The giveaway has not started yet."); if (this.checkJoined(user) && Object.values(this.joined).indexOf(user.userid) < 0) return user.sendTo(this.room, "You have already joined the giveaway."); if (this.checkExcluded(user)) return user.sendTo(this.room, "You are disallowed from entering the giveaway."); if (!this.answered[user.userid]) this.answered[user.userid] = 0; if (this.answered[user.userid] >= 3) return user.sendTo(this.room, "You have already guessed three times. You cannot guess anymore in this giveaway."); for (let i = 0; i < this.answers.length; i++) { if (toId(this.answers[i]) === toId(guess)) { this.winner = user; this.clearTimer(); return this.end(); } } this.joined[user.latestIp] = user.userid; this.answered[user.userid]++; if (this.answered[user.userid] >= 3) { user.sendTo(this.room, `Your guess '${guess}' is wrong. You have used up all of your guesses. Better luck next time!`); } else { user.sendTo(this.room, `Your guess '${guess}' is wrong. Try again!`); } } change(key, value, user) { if (user.userid !== this.host.userid) return user.sendTo(this.room, "Only the host can edit the giveaway."); if (this.phase !== 'pending') return user.sendTo(this.room, "You cannot change the question or answer once the giveaway has started."); if (key === 'question') { this.question = value; return user.sendTo(this.room, `The question has been changed to ${value}.`); } let ans = QuestionGiveaway.sanitizeAnswers(value); if (!ans.length) return user.sendTo(this.room, "You must specify at least one answer and it must not contain any special characters."); this.answers = ans; user.sendTo(this.room, `The answer${checkPlural(ans, "s have", "has")} been changed to ${ans.join(', ')}.`); } end(force) { if (force) { this.clearTimer(); this.changeUhtml('<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway was forcibly ended.</p>'); this.room.send("The giveaway was forcibly ended."); } else { if (!this.winner) { this.changeUhtml('<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway was forcibly ended.</p>'); this.room.send("The giveaway has been forcibly ended as no one has answered the question."); } else { this.changeUhtml('<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway has ended! Scroll down to see the answer.</p>'); this.phase = 'ended'; this.clearTimer(); this.room.modlog(`${this.winner.name} won ${this.giver.name}'s giveaway for a "${this.prize}"`); this.send(this.generateWindow(`<p style="text-align:center;font-size:12pt;"><b>${Tools.escapeHTML(this.winner.name)}</b> won the giveaway! Congratulations!</p>` + `<p style="text-align:center;">${this.question}<br/>Correct answer${checkPlural(this.answers)}: ${this.answers.join(', ')}</p>`)); if (this.winner.connected) this.winner.popup(`You have won the giveaway. PM **${Tools.escapeHTML(this.giver.name)}** to claim your prize!`); if (this.giver.connected) this.giver.popup(`${Tools.escapeHTML(this.winner.name)} has won your question giveaway!`); } } delete this.room.giveaway; } static sanitizeAnswers(target) { let ret = []; for (let ans of target.split(",")) { ans = ans.replace(/[^a-z0-9 .-]+/ig, "").trim(); if (!toId(ans)) continue; ret.push(ans); } return ret; } } class LotteryGiveaway extends Giveaway { constructor(host, giver, room, prize, winners) { super(host, giver, room, prize); this.type = 'lottery'; this.maxwinners = winners || 1; this.send(this.generateReminder(false)); this.timer = setTimeout(() => this.drawLottery(), 1000 * 60 * 2); } generateReminder(joined) { let cmd = (joined ? 'Leave' : 'Join'); let button = `<button style="margin:4px;" name="send" value="/giveaway ${toId(cmd)}lottery"><font size=1><b>${cmd}</b></font></button>`; return this.generateWindow(`The lottery drawing will occur in 2 minutes, and with ${this.maxwinners} winner${checkPlural(this.maxwinners)}!<br/>${button}</p>`); } display() { let joined = this.generateReminder(true); let notJoined = this.generateReminder(); for (let i in this.room.users) { let thisUser = this.room.users[i]; if (this.checkJoined(thisUser)) { thisUser.sendTo(this.room, `|uhtmlchange|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${joined}</div>`); } else { thisUser.sendTo(this.room, `|uhtmlchange|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${notJoined}</div>`); } } } addUser(user) { if (this.phase !== 'pending') return user.sendTo(this.room, "The join phase of the lottery giveaway has ended."); if (!user.named) return user.sendTo(this.room, "You need to choose a name before joining a lottery giveaway."); if (this.checkJoined(user)) return user.sendTo(this.room, "You have already joined the giveaway."); if (this.checkExcluded(user)) return user.sendTo(this.room, "You are disallowed from entering the giveaway."); this.joined[user.latestIp] = user.userid; user.sendTo(this.room, `|uhtmlchange|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${this.generateReminder(true)}</div>`); user.sendTo(this.room, "You have successfully joined the lottery giveaway."); } removeUser(user) { if (this.phase !== 'pending') return user.sendTo(this.room, "The join phase of the lottery giveaway has ended."); if (!this.checkJoined(user)) return user.sendTo(this.room, "You have not joined the lottery giveaway."); for (let ip in this.joined) { if (ip === user.latestIp || this.joined[ip] === user.userid) { delete this.joined[ip]; } } user.sendTo(this.room, `|uhtmlchange|giveaway${this.room.gaNumber}${this.phase}|<div class="broadcast-blue">${this.generateReminder(false)}</div>`); user.sendTo(this.room, "You have left the lottery giveaway."); } drawLottery() { this.clearTimer(); let userlist = Object.values(this.joined); if (userlist.length < this.maxwinners) { this.changeUhtml('<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway was forcibly ended.</p>'); delete this.room.giveaway; return this.room.send("The giveaway has been forcibly ended as there are not enough participants."); } this.winners = []; while (this.winners.length < this.maxwinners) { let winner = Users(userlist.splice(Math.floor(Math.random() * userlist.length), 1)[0]); if (!winner) continue; this.winners.push(winner); } this.end(); } end(force) { if (force) { this.clearTimer(); this.changeUhtml('<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway was forcibly ended.</p>'); this.room.send("The giveaway was forcibly ended."); } else { this.changeUhtml(`<p style="text-align:center;font-size:13pt;font-weight:bold;">The giveaway has ended! Scroll down to see the winner${checkPlural(this.winners)}.</p>`); this.phase = 'ended'; let winnerNames = this.winners.map(winner => winner.name).join(', '); this.room.modlog(`${winnerNames} won ${this.giver.name}'s giveaway for "${this.prize}"`); this.send(this.generateWindow(`<p style="text-align:center;font-size:10pt;font-weight:bold;">Lottery Draw</p><p style="text-align:center;">${Object.keys(this.joined).length} users joined the giveaway.<br/>Our lucky winner${checkPlural(this.winners)}: <b>${Tools.escapeHTML(winnerNames)}!</b> Congratulations!</p>`)); for (let i = 0; i < this.winners.length; i++) { if (this.winners[i].connected) this.winners[i].popup(`You have won the lottery giveaway! PM **${this.giver.name}** to claim your prize!`); } if (this.giver.connected) this.giver.popup(`The following users have won your lottery giveaway:\n${Tools.escapeHTML(winnerNames)}`); } delete this.room.giveaway; } } let commands = { // question giveaway. quiz: 'question', qg: 'question', question: function (target, room, user) { if (room.id !== 'wifi' || !target) return false; if (room.giveaway) return this.errorReply("There is already a giveaway going on!"); let params = target.split(target.includes('|') ? '|' : ',').map(param => param.trim()); if (params.length < 4) return this.errorReply("Invalid arguments specified - /question giver, prize, question, answer(s)"); let targetUser = Users(params[0]); if (!targetUser || !targetUser.connected) return this.errorReply(`User '${params[0]}' is not online.`); if (!this.can('warn', null, room) && !(this.can('broadcast', null, room) && user === targetUser)) return this.errorReply("Permission denied."); if (!targetUser.autoconfirmed) return this.errorReply(`User '${targetUser.name}' needs to be autoconfirmed to give something away.`); if (Giveaway.checkBanned(room, targetUser)) return this.errorReply(`User '${targetUser.name}' is giveaway banned.`); room.giveaway = new QuestionGiveaway(user, targetUser, room, params[1], params[2], params.slice(3).join(',')); this.privateModCommand(`(${user.name} started a question giveaway for ${targetUser.name})`); }, changeanswer: 'changequestion', changequestion: function (target, room, user, conn, cmd) { if (room.id !== 'wifi') return false; if (!room.giveaway) return this.errorReply("There is no giveaway going on at the moment."); if (room.giveaway.type !== 'question') return this.errorReply("This is not a question giveaway."); target = target.trim(); if (!target) return this.errorReply("You must include a question or an answer."); room.giveaway.change(cmd.substr(6), target, user); }, showanswer: 'viewanswer', viewanswer: function (target, room, user) { if (room.id !== 'wifi') return false; let giveaway = room.giveaway; if (!giveaway) return this.errorReply("There is no giveaway going on at the moment."); if (giveaway.type !== 'question') return this.errorReply("This is not a question giveaway."); if (user.userid !== giveaway.host.userid && user.userid !== giveaway.giver.userid) return; this.sendReply(`The giveaway question is ${giveaway.question}.\n` + `The answer${checkPlural(giveaway.answers, 's are', ' is')} ${giveaway.answers.join(', ')}.`); }, guessanswer: 'guess', guess: function (target, room, user) { if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); if (!this.canTalk()) return this.errorReply("You cannot do this while unable to talk."); if (!room.giveaway) return this.errorReply("There is no giveaway going on at the moment."); if (room.giveaway.type !== 'question') return this.errorReply("This is not a question giveaway."); room.giveaway.guessAnswer(user, target); }, // lottery giveaway. lg: 'lottery', lotto: 'lottery', lottery: function (target, room, user) { if (room.id !== 'wifi' || !target) return false; if (room.giveaway) return this.errorReply("There is already a giveaway going on!"); let params = target.split(target.includes('|') ? '|' : ',').map(param => param.trim()); if (params.length < 2) return this.errorReply("Invalid arguments specified - /lottery giver, prize [, maxwinners]"); let targetUser = Users(params[0]); if (!targetUser || !targetUser.connected) return this.errorReply(`User '${params[0]}' is not online.`); if (!this.can('warn', null, room) && !(this.can('broadcast', null, room) && user === targetUser)) return this.errorReply("Permission denied."); if (!targetUser.autoconfirmed) return this.errorReply(`User '${targetUser.name}' needs to be autoconfirmed to give something away.`); if (Giveaway.checkBanned(room, targetUser)) return this.errorReply(`User '${targetUser.name}' is giveaway banned.`); let numWinners = 1; if (params.length > 2) { numWinners = parseInt(params[2]); if (isNaN(numWinners) || numWinners < 1 || numWinners > 10) return this.errorReply("The lottery giveaway can have a minimum of 1 and a maximum of 10 winners."); } room.giveaway = new LotteryGiveaway(user, targetUser, room, params[1], numWinners); this.privateModCommand(`(${user.name} started a lottery giveaway for ${targetUser.name})`); }, leavelotto: 'join', leavelottery: 'join', leave: 'join', joinlotto: 'join', joinlottery: 'join', join: function (target, room, user, conn, cmd) { if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); if (!this.canTalk()) return this.errorReply("You cannot do this while unable to talk."); let giveaway = room.giveaway; if (!giveaway) return this.errorReply("There is no giveaway going on at the moment."); if (giveaway.type !== 'lottery') return this.errorReply("This is not a lottery giveaway."); switch (cmd) { case 'joinlottery': case 'join': case 'joinlotto': giveaway.addUser(user); break; case 'leavelottery': case 'leave': case 'leavelotto': giveaway.removeUser(user); break; } }, // general. ban: function (target, room, user) { if (!target) return false; if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); if (!this.can('warn', null, room)) return false; target = this.splitTarget(target); let targetUser = this.targetUser; if (!targetUser) return this.errorReply(`User '${this.targetUsername}' not found.`); if (target.length > 300) { return this.errorReply("The reason is too long. It cannot exceed 300 characters."); } if (Giveaway.checkBanned(room, targetUser)) return this.errorReply(`User '${this.targetUsername}' is already banned from entering giveaways.`); Giveaway.ban(room, targetUser, target); if (room.giveaway) room.giveaway.kickUser(targetUser); if (target) target = ` (${target})`; this.privateModCommand(`(${targetUser.name} was banned from entering giveaways by ${user.name}.${target})`); }, unban: function (target, room, user) { if (!target) return false; if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); if (!this.can('warn', null, room)) return false; this.splitTarget(target); let targetUser = this.targetUser; if (!targetUser) return this.errorReply(`User '${this.targetUsername}' not found.`); if (!Giveaway.checkBanned(room, targetUser)) return this.errorReply(`User '${this.targetUsername}' isn't banned from entering giveaways.`); Giveaway.unban(room, targetUser); this.privateModCommand(`${targetUser.name} was unbanned from entering giveaways by ${user.name}.`); }, stop: 'end', end: function (target, room, user) { if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); if (!room.giveaway) return this.errorReply("There is no giveaway going on at the moment."); if (!this.can('warn', null, room) && user.userid !== room.giveaway.host.userid) return false; if (target && target.length > 300) { return this.errorReply("The reason is too long. It cannot exceed 300 characters."); } room.giveaway.end(true); if (target) target = `: ${target}`; this.privateModCommand(`(The giveaway was forcibly ended by ${user.name}${target})`); }, rm: 'remind', remind: function (target, room, user) { if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); let giveaway = room.giveaway; if (!giveaway) return this.errorReply("There is no giveaway going on at the moment."); if (!this.runBroadcast()) return; if (giveaway.type === 'question') { if (giveaway.phase !== 'started') return this.errorReply("The giveaway has not started yet."); room.giveaway.send(room.giveaway.generateQuestion()); } else { room.giveaway.display(); } }, '': 'help', help: function (target, room, user) { if (room.id !== 'wifi') return this.errorReply("This command can only be used in the Wi-Fi room."); let reply = ''; switch (target) { case 'staff': if (!this.can('warn', null, room)) return; reply = '<strong>Staff commands:</strong><br />' + '- question or qg <em>User | Prize | Question | Answer[,Answer2,Answer3]</em> - Start a new question giveaway (voices can only host for themselves, staff can for all users) (Requires: + % @ * # & ~)<br />' + '- lottery or lg <em>User | Prize[| Number of Winners]</em> - Starts a lottery giveaway (voices can only host for themselves, staff can for all users) (Requires: + % @ * # & ~)<br />' + '- changequestion - Changes the question of a question giveaway (Requires: giveaway host)<br />' + '- changeanswer - Changes the answer of a question giveaway (Requires: giveaway host)<br />' + '- viewanswer - Shows the answer in a question giveaway (only to giveaway host/giver)<br />' + '- ban - Temporarily bans a user from entering giveaways (Requires: % @ * # & ~)<br />' + '- end - Forcibly ends the current giveaway (Requires: % @ * # & ~)<br />'; break; case 'game': case 'giveaway': case 'user': if (!this.runBroadcast()) return; reply = '<strong>Giveaway participation commands: </strong> (start with /giveaway, except for /ga) <br />' + '- guess or /ga <em>answer</em> - Guesses the answer for a question giveaway<br />' + '- viewanswer - Shows the answer in a question giveaway (only to host/giver)<br />' + '- remind - Shows the details of the current giveaway (can be broadcast)<br />' + '- join or joinlottery - Joins a lottery giveaway<br />' + '- leave or leavelottery - Leaves a lottery giveaway<br />'; break; default: if (!this.runBroadcast()) return; reply = '<b>Wi-Fi room Giveaway help and info</b><br />' + '- help user - shows list of participation commands<br />' + '- help staff - shows giveaway staff commands (Requires: % @ * # & ~)'; } this.sendReplyBox(reply); }, }; exports.commands = { 'giveaway': commands, 'ga': commands.guess, 'gh': commands.help, 'qg': commands.question, 'lg': commands.lottery, };
/** * @fileoverview Firebase Storage API. * Version: 3.5.1 * * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @externs */ /** * The namespace for all Firebase Storage functionality. * The returned service is initialized with a particular app which contains the * project's storage location, or uses the default app if none is provided. * * Usage (either): * * ``` * firebase.storage() * firebase.storage(app) * ``` * * @namespace * @param {!firebase.app.App=} app The app to create a storage service for. * If not passed, uses the default app. * @return {!firebase.storage.Storage} */ firebase.storage = function(app) {}; /** * Access the Storage service from an App instance. * * Usage: * * app.storage() * * @return {!firebase.storage.Storage} */ firebase.app.App.prototype.storage = function() {}; /** * A service for uploading and downloading large objects to/from Google Cloud * Storage. * @interface */ firebase.storage.Storage = function() {}; /** * The app associated with this service. * @type {!firebase.app.App} */ firebase.storage.Storage.prototype.app; /** * Returns a reference for the given path in the default bucket. * @param {string=} path A relative path to initialize the reference with, * for example `path/to/image.jpg`. If not passed, the returned reference * points to the bucket root. * @return {!firebase.storage.Reference} A reference for the given path. */ firebase.storage.Storage.prototype.ref = function(path) {}; /** * Returns a reference for the given absolute URL. * @param {string} url A URL in the form: <br /> * 1) a gs:// URL, for example `gs://bucket/files/image.png` <br /> * 2) a download URL taken from object metadata. <br /> * @see {@link firebase.storage.FullMetadata.prototype.downloadURLs} * @return {!firebase.storage.Reference} A reference for the given URL. */ firebase.storage.Storage.prototype.refFromURL = function(url) {}; /** * The maximum time to retry operations other than uploads or downloads in * milliseconds. * @type {number} */ firebase.storage.Storage.prototype.maxOperationRetryTime; /** * @param {number} time The new maximum operation retry time in milliseconds. * @see {@link firebase.storage.Storage.prototype.maxOperationRetryTime} */ firebase.storage.Storage.prototype.setMaxOperationRetryTime = function(time) {}; /** * The maximum time to retry uploads in milliseconds. * @type {number} */ firebase.storage.Storage.prototype.maxUploadRetryTime; /** * @param {number} time The new maximum upload retry time in milliseconds. * @see {@link firebase.storage.Storage.prototype.maxUploadRetryTime} */ firebase.storage.Storage.prototype.setMaxUploadRetryTime = function(time) {}; /** * Represents a reference to a Google Cloud Storage object. Developers can * upload, download, and delete objects, as well as get/set object metadata. * @interface */ firebase.storage.Reference = function() {}; /** * Returns a gs:// URL for this object in the form * `gs://<bucket>/<path>/<to>/<object>` * @return {string} The gs:// URL. */ firebase.storage.Reference.prototype.toString = function() {}; /** * Returns a reference to a relative path from this reference. * @param {string} path The relative path from this reference. * Leading, trailing, and consecutive slashes are removed. * @return {!firebase.storage.Reference} The reference a the given path. */ firebase.storage.Reference.prototype.child = function(path) {}; /** * Uploads data to this reference's location. * @param {!Blob|!Uint8Array|!ArrayBuffer} data The data to upload. * @param {!firebase.storage.UploadMetadata=} metadata Metadata for the newly * uploaded object. * @return {!firebase.storage.UploadTask} An object that can be used to monitor * and manage the upload. */ firebase.storage.Reference.prototype.put = function(data, metadata) {}; /** * @enum {string} * An enumeration of the possible string formats for upload. */ firebase.storage.StringFormat = { /** * Indicates the string should be interpreted "raw", that is, as normal text. * The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte * sequence. * Example: The string 'Hello! \ud83d\ude0a' becomes the byte sequence * 48 65 6c 6c 6f 21 20 f0 9f 98 8a */ RAW: 'raw', /** * Indicates the string should be interpreted as base64-encoded data. * Padding characters (trailing '='s) are optional. * Example: The string 'rWmO++E6t7/rlw==' becomes the byte sequence * ad 69 8e fb e1 3a b7 bf eb 97 */ BASE64: 'base64', /** * Indicates the string should be interpreted as base64url-encoded data. * Padding characters (trailing '='s) are optional. * Example: The string 'rWmO--E6t7_rlw==' becomes the byte sequence * ad 69 8e fb e1 3a b7 bf eb 97 */ BASE64URL: 'base64url', /** * Indicates the string is a data URL, such as one obtained from * canvas.toDataURL(). * Example: the string 'data:application/octet-stream;base64,aaaa' * becomes the byte sequence * 69 a6 9a * (the content-type "application/octet-stream" is also applied, but can * be overridden in the metadata object). */ DATA_URL: 'data_url' }; /** * Uploads string data to this reference's location. * @param {string} data The string to upload. * @param {!firebase.storage.StringFormat=} format The format of the string to * upload. * @param {!firebase.storage.UploadMetadata=} metadata Metadata for the newly * uploaded object. * @return {!firebase.storage.UploadTask} * @throws If the format is not an allowed format, or if the given string * doesn't conform to the specified format. */ firebase.storage.Reference.prototype.putString = function( data, format, metadata) {}; /** * Deletes the object at this reference's location. * @return {!Promise<void>} A promise that resolves if the deletion succeeded * and rejects if it failed, including if the object didn't exist. */ firebase.storage.Reference.prototype.delete = function() {}; /** * Fetches metadata for the object at this location, if one exists. * @return {!Promise<firebase.storage.FullMetadata>} A promise that resolves * with the metadata, or rejects if the fetch failed, including if the * object did not exist. */ firebase.storage.Reference.prototype.getMetadata = function() {}; /** * Updates the metadata for the object at this location, if one exists. * @param {!firebase.storage.SettableMetadata} metadata The new metadata. * Setting a property to 'null' removes it on the server, while leaving * a property as 'undefined' has no effect. * @return {!Promise<firebase.storage.FullMetadata>} A promise that resolves * with the full updated metadata or rejects if the updated failed, * including if the object did not exist. */ firebase.storage.Reference.prototype.updateMetadata = function(metadata) {}; /** * Fetches a long lived download URL for this object. * @return {!Promise<string>} A promise that resolves with the download URL or * rejects if the fetch failed, including if the object did not exist. */ firebase.storage.Reference.prototype.getDownloadURL = function() {}; /** * A reference pointing to the parent location of this reference, or null if * this reference is the root. * @type {?firebase.storage.Reference} */ firebase.storage.Reference.prototype.parent; /** * A reference to the root of this reference's bucket. * @type {!firebase.storage.Reference} */ firebase.storage.Reference.prototype.root; /** * The name of the bucket containing this reference's object. * @type {string} */ firebase.storage.Reference.prototype.bucket; /** * The full path of this object. * @type {string} */ firebase.storage.Reference.prototype.fullPath; /** * The short name of this object, which is the last component of the full path. * For example, if fullPath is 'full/path/image.png', name is 'image.png'. * @type {string} */ firebase.storage.Reference.prototype.name; /** * The storage service associated with this reference. * @type {!firebase.storage.Storage} */ firebase.storage.Reference.prototype.storage; /** * Object metadata that can be set at any time. * @interface */ firebase.storage.SettableMetadata = function() {}; /** * Served as the 'Cache-Control' header on object download. * @type {?string|undefined} */ firebase.storage.SettableMetadata.prototype.cacheControl; /** * Served as the 'Content-Disposition' header on object download. * @type {?string|undefined} */ firebase.storage.SettableMetadata.prototype.contentDisposition; /** * Served as the 'Content-Encoding' header on object download. * @type {?string|undefined} */ firebase.storage.SettableMetadata.prototype.contentEncoding; /** * Served as the 'Content-Language' header on object download. * @type {?string|undefined} */ firebase.storage.SettableMetadata.prototype.contentLanguage; /** * Served as the 'Content-Type' header on object download. * @type {?string|undefined} */ firebase.storage.SettableMetadata.prototype.contentType; /** * Additional user-defined custom metadata. * @type {?Object<string>|undefined} */ firebase.storage.SettableMetadata.prototype.customMetadata; /** * Object metadata that can be set at upload. * @interface * @extends {firebase.storage.SettableMetadata} */ firebase.storage.UploadMetadata = function() {}; /** * A Base64-encoded MD5 hash of the object being uploaded. * @type {?string|undefined} */ firebase.storage.UploadMetadata.prototype.md5Hash; /** * The full set of object metadata, including read-only properties. * @interface * @extends {firebase.storage.UploadMetadata} */ firebase.storage.FullMetadata = function() {}; /** * The bucket this object is contained in. * @type {string} */ firebase.storage.FullMetadata.prototype.bucket; /** * The object's generation. * @type {string} * @see {@link https://cloud.google.com/storage/docs/generations-preconditions} */ firebase.storage.FullMetadata.prototype.generation; /** * The object's metageneration. * @type {string} * @see {@link https://cloud.google.com/storage/docs/generations-preconditions} */ firebase.storage.FullMetadata.prototype.metageneration; /** * The full path of this object. * @type {string} */ firebase.storage.FullMetadata.prototype.fullPath; /** * The short name of this object, which is the last component of the full path. * For example, if fullPath is 'full/path/image.png', name is 'image.png'. * @type {string} */ firebase.storage.FullMetadata.prototype.name; /** * The size of this object, in bytes. * @type {number} */ firebase.storage.FullMetadata.prototype.size; /** * A date string representing when this object was created. * @type {string} */ firebase.storage.FullMetadata.prototype.timeCreated; /** * A date string representing when this object was last updated. * @type {string} */ firebase.storage.FullMetadata.prototype.updated; /** * An array of long-lived download URLs. Always contains at least one URL. * @type {!Array<string>} */ firebase.storage.FullMetadata.prototype.downloadURLs; /** * An event that is triggered on a task. * @enum {string} * @see {@link firebase.storage.UploadTask.prototype.on} */ firebase.storage.TaskEvent = { /** * For this event, * <ul> * <li>The `next` function is triggered on progress updates and when the * task is paused/resumed with a * {@link firebase.storage.UploadTaskSnapshot} as the first * argument.</li> * <li>The `error` function is triggered if the upload is canceled or fails * for another reason.</li> * <li>The `complete` function is triggered if the upload completes * successfully.</li> * </ul> */ STATE_CHANGED: 'state_changed' }; /** * Represents the current state of a running upload. * @enum {string} */ firebase.storage.TaskState = { /** Indicates that the task is still running and making progress. */ RUNNING: 'running', /** Indicates that the task is paused. */ PAUSED: 'paused', /** Indicates that the task completed successfully. */ SUCCESS: 'success', /** Indicates that the task was canceled. */ CANCELED: 'canceled', /** Indicates that the task failed for a reason other than being canceled. */ ERROR: 'error' }; /** * Represents the process of uploading an object. Allows you to monitor and * manage the upload. * @interface */ firebase.storage.UploadTask = function() {}; /** * This object behaves like a Promise, and resolves with its snapshot data when * the upload completes. * @param {(?function(!firebase.storage.UploadTaskSnapshot):*)=} onFulfilled * The fulfillment callback. Promise chaining works as normal. * @param {(?function(!Error):*)=} onRejected The rejection callback. * @return {!Promise} */ firebase.storage.UploadTask.prototype.then = function(onFulfilled, onRejected) { }; /** * Equivalent to calling `then(null, onRejected)`. * @param {!function(!Error):*} onRejected * @return {!Promise} */ firebase.storage.UploadTask.prototype.catch = function(onRejected) {}; /** * Listens for events on this task. * * Events have three callback functions (referred to as `next`, `error`, and * `complete`). * * If only the event is passed, a function that can be used to register the * callbacks is returned. Otherwise, the callbacks are passed after the event. * * Callbacks can be passed either as three separate arguments <em>or</em> as the * `next`, `error`, and `complete` properties of an object. Any of the three * callbacks is optional, as long as at least one is specified. In addition, * when you add your callbacks, you get a function back. You can call this * function to unregister the associated callbacks. * * @example <caption>Pass callbacks separately or in an object.</caption> * var next = function(snapshot) {}; * var error = function(error) {}; * var complete = function() {}; * * // The first example. * uploadTask.on( * firebase.storage.TaskEvent.STATE_CHANGED, * next, * error, * complete); * * // This is equivalent to the first example. * uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED, { * 'next': next, * 'error': error, * 'complete': complete * }); * * // This is equivalent to the first example. * var subscribe = uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED); * subscribe(next, error, complete); * * // This is equivalent to the first example. * var subscribe = uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED); * subscribe({ * 'next': next, * 'error': error, * 'complete': complete * }); * * @example <caption>Any callback is optional.</caption> * // Just listening for completion, this is legal. * uploadTask.on( * firebase.storage.TaskEvent.STATE_CHANGED, * null, * null, * function() { * console.log('upload complete!'); * }); * * // Just listening for progress/state changes, this is legal. * uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED, function(snapshot) { * var percent = snapshot.bytesTransferred / snapshot.totalBytes * 100; * console.log(percent + "% done"); * }); * * // This is also legal. * uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED, { * 'complete': function() { * console.log('upload complete!'); * } * }); * * @example <caption>Use the returned function to remove callbacks.</caption> * var unsubscribe = uploadTask.on( * firebase.storage.TaskEvent.STATE_CHANGED, * function(snapshot) { * var percent = snapshot.bytesTransferred / snapshot.totalBytes * 100; * console.log(percent + "% done"); * // Stop after receiving one update. * unsubscribe(); * }); * * // This code is equivalent to the above. * var handle = uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED); * unsubscribe = handle(function(snapshot) { * var percent = snapshot.bytesTransferred / snapshot.totalBytes * 100; * console.log(percent + "% done"); * // Stop after receiving one update. * unsubscribe(); * }); * * @param {!firebase.storage.TaskEvent} event The event to listen for. * @param {(?function(!Object)|!Object)=} nextOrObserver The `next` function, * which gets called for each item in the event stream, or an observer * object with some or all of these three properties (`next`, `error`, * `complete`). * @param {?function(!Error)=} error A function that gets called with an Error * if the event stream ends due to an error. * @param {?function()=} complete A function that gets called if the * event stream ends normally. * @return { * !function()| * !function(?function(!Object),?function(!Error)=,?function()=) * :!function()} * If only the event argument is passed, returns a function you can use to * add callbacks (see the examples above). If more than just the event * argument is passed, returns a function you can call to unregister the * callbacks. */ firebase.storage.UploadTask.prototype.on = function( event, nextOrObserver, error, complete) {}; /** * Resumes a paused task. Has no effect on a running or failed task. * @return {boolean} True if the resume had an effect. */ firebase.storage.UploadTask.prototype.resume = function() {}; /** * Pauses a running task. Has no effect on a paused or failed task. * @return {boolean} True if the pause had an effect. */ firebase.storage.UploadTask.prototype.pause = function() {}; /** * Cancels a running task. Has no effect on a complete or failed task. * @return {boolean} True if the cancel had an effect. */ firebase.storage.UploadTask.prototype.cancel = function() {}; /** * A snapshot of the current task state. * @type {!firebase.storage.UploadTaskSnapshot} */ firebase.storage.UploadTask.prototype.snapshot; /** * Holds data about the current state of the upload task. * @interface */ firebase.storage.UploadTaskSnapshot = function() {}; /** * The number of bytes that have been successfully uploaded so far. * @type {number} */ firebase.storage.UploadTaskSnapshot.prototype.bytesTransferred; /** * The total number of bytes to be uploaded. * @type {number} */ firebase.storage.UploadTaskSnapshot.prototype.totalBytes; /** * The current state of the task. * @type {firebase.storage.TaskState} */ firebase.storage.UploadTaskSnapshot.prototype.state; /** * Before the upload completes, contains the metadata sent to the server. * After the upload completes, contains the metadata sent back from the server. * @type {!firebase.storage.FullMetadata} */ firebase.storage.UploadTaskSnapshot.prototype.metadata; /** * After the upload completes, contains a long-lived download URL for the * object. Also accessible in metadata. * @type {?string} */ firebase.storage.UploadTaskSnapshot.prototype.downloadURL; /** * The task of which this is a snapshot. * @type {!firebase.storage.UploadTask} */ firebase.storage.UploadTaskSnapshot.prototype.task; /** * The reference that spawned this snapshot's upload task. * @type {!firebase.storage.Reference} */ firebase.storage.UploadTaskSnapshot.prototype.ref;