answer
stringlengths
15
1.25M
# swio import "github.com/shipwire/swutil/swio" Package swio provides additional utilities on top of the standard io package. ## Usage go var DummyReader = newDummy(time.Now().Unix()) DummyReader is a reader of pseudo-random data. It is meant to be more efficient than cryptographically random data, but is useful only in limited cases such as testing other readers. # func ForkReader go func ForkReader(r io.Reader, n int) (head, tail io.Reader) ForkReader accepts a reader and forks it at a given point. It returns two readers, one that continues from the beginning of the original reader, and another that reads from the nth byte. Readers are a FIFO stream, so reads from the second reader can't actually jump ahead. To solve this problem, reads from the tail cause the entire remaining contents of the head to be transparently read into memory. # func NewReadCloser go func NewReadCloser(r io.Reader, c CloseFunc) io.ReadCloser NewReadCloser wraps r with CloseFunc c. # func SeekerPosition go func SeekerPosition(r io.Seeker) (int64, error) SekerPosition returns the current offset of an io.Seeker # func TeeReadCloser go func TeeReadCloser(r io.ReadCloser, w io.Writer) io.ReadCloser TeeReadCloser returns a ReadCloser that writes everything read from it to w. Its content is read from r. All writes must return before anything can be read. Any write error will be returned from Read. The Close method on the returned ReadCloser is called derived from r. # type CloseFunc go type CloseFunc func() error CloseFunc documents a function that satisfies io.Closer. # type ReadCounter go type ReadCounter interface { io.Reader BytesRead() int64 } ReadCounter is a reader that keeps track of the total number of bytes read. # func NewReadCounter go func NewReadCounter(r io.Reader) ReadCounter NewReadCounter wraps a Reader in a ReadCounter. # type ReadSeekerAt go type ReadSeekerAt interface { io.ReadSeeker io.ReaderAt } ReadSeekerAt is the interface that groups io.ReadSeeker and io.ReaderAt. # type ReadSeekerCloser go type ReadSeekerCloser interface { io.Reader io.Seeker io.Closer } ReadSeekerCloser wraps the io.Reader, io.Seeker, and io.Closer types. # func NewReadSeekerCloser go func NewReadSeekerCloser(r io.ReadSeeker, c CloseFunc) ReadSeekerCloser NewReadSeekerCloser wraps r with the close function c. # func NewSeekBufferCloser go func NewSeekBufferCloser(r io.ReadCloser, l int64) ReadSeekerCloser NewSeekBufferCloser creates a new SeekBuffer using ReadCloser r. l is the initial capacity of the internal buffer. The close method from r is forwarded to the returned ReadSeekerCloser. # func NopReadSeekerCloser go func NopReadSeekerCloser(r io.ReadSeeker) ReadSeekerCloser NopReadSeekerCloser wraps r with a no-op close function. # type SeekBuffer go type SeekBuffer struct { } SeekBuffer contains a reader where all data read from it is buffered, and thus both readable and seekable. It essentially augments bytes.Reader so that all data does not need to be read at once. # func NewSeekBuffer go func NewSeekBuffer(r io.Reader, l int64) *SeekBuffer NewSeekBuffer creates a new SeekBuffer using reader r. l is the initial capacity of the internal buffer. If r happens to be a ReadSeeker already, r is used directly without any additional copies of the data. # func (*SeekBuffer) Read go func (s *SeekBuffer) Read(b []byte) (int, error) Read reads from the internal buffer or source reader until b is filled or an error occurs. # func (*SeekBuffer) ReadAt go func (s *SeekBuffer) ReadAt(b []byte, off int64) (int, error) ReadAt implements io.ReaderAt for SeekBuffer. # func (*SeekBuffer) Seek go func (s *SeekBuffer) Seek(offset int64, whence int) (int64, error) Seek implements io.Seeker for SeekBuffer. If the new offset goes beyond what is buffered, SeekBuffer will read from the source reader until offset can be reached or an error is returned. If whence is 2, SeekBuffer will read until EOF or an error is reached. # type WriteCounter go type WriteCounter interface { io.Writer BytesWritten() int64 } WriteCounter is a writer that keeps track of the total number of bytes written. # func NewWriteCounter go func NewWriteCounter(w io.Writer) WriteCounter NewWriteCounter wraps a Writer in a WriteCounter
from rest_framework import serializers from django.contrib.auth.models import User from dixit.account.models import UserProfile class <API key>(serializers.ModelSerializer): class Meta: model = UserProfile fields = ('name', ) class UserSerializer(serializers.ModelSerializer): """ Serializes User objects """ profile = <API key>() class Meta: model = User fields = ('id', 'username', 'email', 'profile', )
# == Schema Information # Table name: tecnicos # id :integer not null, primary key # phone_number :string # health_post_id :integer # created_at :datetime not null # updated_at :datetime not null # name :string class Tecnico < ActiveRecord::Base include SendsMessages belongs_to :health_post has_many :messages <API key> :phone_number end
using System; using System.Collections.Generic; namespace Paladino.Drawing { <summary> The thumbnails class handles all thumbnails to different types of content embedded in the core. </summary> public static class Thumbnails { #region Members private static Dictionary<Guid, string> guidToThumb = null; private static Dictionary<string, string> typeToThumb = null; private static Dictionary<string, Guid> typeToGuid = null; private static object mutex = new object(); #endregion <summary> Gets whether the current thumbnail collection contains a thumbnail for the given mime-type. </summary> <param name="type">The mime-type</param> <returns>Whether the key exists</returns> public static bool ContainsKey(string type) { Ensure(); return typeToThumb.ContainsKey(type); } <summary> Gets whether the current thumbnail collection contains a thumbnail for the given thumbnail id. </summary> <param name="id">The id</param> <returns>Whether the key exists</returns> public static bool ContainsKey(Guid id) { Ensure(); return guidToThumb.ContainsKey(id); } <summary> Gets the resource path for the thumbnail with the given id. </summary> <param name="id">The id</param> <returns>The resource path</returns> public static string GetById(Guid id) { Ensure(); return guidToThumb[id]; } <summary> Gets the resource path fo the thumbnail with the given mime-type. </summary> <param name="type">The mime-type</param> <returns>The resource path</returns> public static string GetByType(string type) { Ensure(); if (!String.IsNullOrEmpty(type)) return typeToThumb[type]; return typeToThumb["default"]; } <summary> Gets the internal thumbnail id for the given mime-type. </summary> <param name="type">The mime-type</param> <returns>The thumbnail id</returns> public static Guid GetIdByType(string type) { Ensure(); if (!String.IsNullOrEmpty(type)) { if (ContainsKey(type)) return typeToGuid[type]; } return Guid.Empty; } #region Private methods <summary> Ensures that the thumbnail collection is created. </summary> private static void Ensure() { if (guidToThumb == null) { lock (mutex) { if (guidToThumb == null) { guidToThumb = new Dictionary<Guid, string>(); typeToThumb = new Dictionary<string, string>(); typeToGuid = new Dictionary<string, Guid>(); // Pdf Add(new Guid("<API key>"), "application/pdf", "Piranha.Areas.Manager.Content.Img.ico-pdf-64.png"); // Excel Add(new Guid("<API key>"), "application/vnd.ms-excel", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/msexcel", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/x-msexcel", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/x-ms-excel", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/x-excel", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/x-dos_ms_excel", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/xls", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/x-xls", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); Add(new Guid("<API key>"), "application/vnd.<API key>.spreadsheetml.sheet", "Piranha.Areas.Manager.Content.Img.ico-excel-64.png"); // Mp3 Add(new Guid("<API key>"), "audio/mpeg", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/x-mpeg", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/mp3", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/x-mp3", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/mpeg3", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/x-mpeg3", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/mpg", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/x-mpg", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/x-mpegaudio", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); // Wma Add(new Guid("<API key>"), "audio/x-ms-wma", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); // Flac Add(new Guid("<API key>"), "audio/flac", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); // Ogg Add(new Guid("<API key>"), "audio/ogg", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); // M4a Add(new Guid("<API key>"), "audio/mp4a-latm", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); Add(new Guid("<API key>"), "audio/mp4", "Piranha.Areas.Manager.Content.Img.ico-sound-64.png"); // Avi Add(new Guid("<API key>"), "video/avi", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "video/msvideo", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "video/x-msvideo", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "image/avi", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "video/xmpg2", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "application/x-troff-msvideo", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "audio/aiff", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "audio/avi", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); // Mpeg Add(new Guid("<API key>"), "video/mpeg", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "video/mp4", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); // Mov Add(new Guid("<API key>"), "video/quicktime", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "video/x-quicktime", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "image/mov", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "audio/x-midi", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "audio/x-wav", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); // Ppt Add(new Guid("<API key>"), "application/vnd.ms-powerpoint", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/mspowerpoint", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/ms-powerpoint", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/mspowerpnt", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/vnd-mspowerpoint", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/powerpoint", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/x-powerpoint", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); Add(new Guid("<API key>"), "application/x-m", "Piranha.Areas.Manager.Content.Img.ico-ppt-64.png"); // Zip Add(new Guid("<API key>"), "application/zip", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); Add(new Guid("<API key>"), "application/x-zip", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); Add(new Guid("<API key>"), "application/x-zip-compressed", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); Add(new Guid("<API key>"), "application/octet-stream", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); Add(new Guid("<API key>"), "application/x-compress", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); Add(new Guid("<API key>"), "application/x-compressed", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); Add(new Guid("<API key>"), "multipart/x-zip", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); // Rar Add(new Guid("<API key>"), "application/x-rar-compressed", "Piranha.Areas.Manager.Content.Img.ico-zip-64.png"); // Folder Add(new Guid("<API key>"), "folder", "Piranha.Areas.Manager.Content.Img.ico-folder-96.png"); Add(new Guid("<API key>"), "folder-small", "Piranha.Areas.Manager.Content.Img.ico-folder-32.png"); // Reference Add(new Guid("<API key>"), "youtube.com", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(new Guid("<API key>"), "vimeo.com", "Piranha.Areas.Manager.Content.Img.ico-movie-64.png"); Add(Guid.Empty, "reference", "Piranha.Areas.Manager.Content.Img.ico-doc-64.png"); // Default Add(Guid.Empty, "default", "Piranha.Areas.Manager.Content.Img.ico-doc-64.png"); } } } } <summary> Adds a thumbnail resource with the given id and mime-type. </summary> <param name="id">The thumbnail id</param> <param name="type">The mime-type</param> <param name="thumbnail">The resource path</param> private static void Add(Guid id, string type, string thumbnail) { if (!guidToThumb.ContainsKey(id)) guidToThumb.Add(id, thumbnail); if (!typeToThumb.ContainsKey(type)) typeToThumb.Add(type, thumbnail); if (!typeToGuid.ContainsKey(type)) typeToGuid.Add(type, id); } #endregion } }
using System.Linq; using UnityEditor; using UnityEditor.Animations; using UnityEngine; namespace Framework.Editor { [CustomActionEditor(typeof(ActionAnimParam))] public class <API key> : <API key> { public ActionAnimParam Node => (ActionAnimParam) ActionNode; public <API key>(ActionGraph graph, ActionGraphNode node, <API key> presenter) : base(graph, node, presenter) { } private void SetNewParam(<API key> param) { Undo.RecordObject(Node, "Changed anim param"); Node.AnimParam.Name = param.name; switch (param.type) { case <API key>.Trigger: Node.AnimParam = new Variant ( new SerializedType(typeof(bool), ActionAnimParam.TriggerMetadata) ); break; case <API key>.Bool: Node.AnimParam = new Variant ( typeof(bool) ); Node.AnimParam.SetAs(param.defaultBool); break; case <API key>.Float: Node.AnimParam = new Variant ( typeof(float) ); Node.AnimParam.SetAs(param.defaultFloat); break; case <API key>.Int: Node.AnimParam = new Variant ( typeof(int) ); Node.AnimParam.SetAs(param.defaultInt); break; } Node.AnimParam.Name = param.name; } protected override void DrawContent() { if (Node.Anim) { GUI.Box(drawRect, GUIContent.none, EditorStyles.helpBox); var controller = AssetDatabase.LoadAssetAtPath<AnimatorController>(AssetDatabase.GetAssetPath(Node.Anim)); if (controller == null) { Debug.LogErrorFormat("AnimatorController must not be null."); return; } int index = -1; var paramList = controller.parameters.ToList(); var param = paramList.FirstOrDefault(p => p.name == Node.AnimParam.Name); if (param != null) { index = paramList.IndexOf(param); } drawRect.x += ContentMargin; drawRect.width = drawRect.width - ContentMargin * 2; drawRect.height = VariantUtils.FieldHeight; int newIndex = EditorGUI.Popup(drawRect, index, paramList.Select(p => p.name).ToArray()); if (newIndex != index) { SetNewParam(paramList[newIndex]); } if (string.IsNullOrWhiteSpace(Node.AnimParam?.HoldType?.Metadata)) { drawRect.y += drawRect.height; VariantUtils.DrawParameter(drawRect, Node.AnimParam, false); } } else { EditorGUI.HelpBox(drawRect, "AnimController is required!", MessageType.Error); } } } }
/** * @author Vexatos */ @<API key> @<API key> package vexatos.backpacks.backpack; import mcp.<API key>; import javax.annotation.<API key>;
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "- <html xmlns="http: <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="" /> <title>Text comment permalinks</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">Text comment permalinks</td></tr> </thead><tbody> <tr> <td>setTimeout</td> <td>60000</td> <td></td> </tr> <tr> <td>open</td> <td>/logout</td> <td></td> </tr> <tr> <td>open</td> <td>/pages/32?text_comment_id=127</td> <td></td> </tr> <tr> <td>waitForTextPresent</td> <td>Ninth comment</td> <td></td> </tr> <tr> <td>open</td> <td>/pages/32?text_comment_id=130</td> <td></td> </tr> <tr> <td>waitForPageToLoad</td> <td>60000</td> <td></td> </tr> <tr> <td>waitForTextPresent</td> <td>Twelfth comment</td> <td></td> </tr> <!-- tab comment --> <tr> <td>open</td> <td>/pages/32?text_comment_id=108</td> <td></td> </tr> <tr> <td>verifyTextPresent</td> <td>Sorry, the page you have requested does not exist.</td> <td></td> </tr> <!-- image comment --> <tr> <td>open</td> <td>/pages/32?text_comment_id=109</td> <td></td> </tr> <tr> <td>verifyTextPresent</td> <td>Sorry, the page you have requested does not exist.</td> <td></td> </tr> <!-- not existed comment --> <tr> <td>open</td> <td>/pages/32?text_comment_id=25200000</td> <td></td> </tr> <tr> <td>verifyTextPresent</td> <td>Sorry, the page you have requested does not exist.</td> <td></td> </tr> </tbody></table> </body> </html>
//Actually I found this code from <API key> as well. All bundled in this utility class. Thanks guys ;) using UnityEngine; namespace FlightEdit.FlightEdit { public class InflightSave { public static string TemporarySaveVessel(Vessel VesselToSave) { string ShipName = VesselToSave.vesselName; ShipConstruct ConstructToSave = new ShipConstruct(ShipName, "", VesselToSave.parts[0]); Quaternion OriginalRotation = VesselToSave.vesselTransform.rotation; Vector3 OriginalPosition = VesselToSave.vesselTransform.position; VesselToSave.SetRotation(new Quaternion(0, 0, 0, 1)); Vector3 ShipSize = ShipConstruction.CalculateCraftSize(ConstructToSave); VesselToSave.SetPosition(new Vector3(0, ShipSize.y + 2, 0)); ConfigNode CN = new ConfigNode("ShipConstruct"); CN = ConstructToSave.SaveShip(); VesselToSave.SetRotation(OriginalRotation); VesselToSave.SetPosition(OriginalPosition); string filename = UrlDir.ApplicationRootPath + "GameData/FlightEdit/temp.craft"; CN.Save(filename); return filename; } } }
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Waste } from '../../entities/Waste'; import { Deferred } from '../../util/utils'; import NavLink from '../../components/NavLink'; import Progress from 'react-progress-2'; import { PageHeader, Row, Col, Panel, Label } from 'react-bootstrap'; import radio from 'backbone.radio'; const router = radio.channel('router'); export default class WasteShowRoute extends Route { breadcrumb({ params }) { const dfd = new Deferred; const waste = new Waste({ fid: params.wfid }); waste.forSubjectParam(params.fid); waste.fetch({ success: m => dfd.resolve(m.get('title')) }); return dfd.promise; } fetch({ params }) { this.companyFid = params.fid; this.waste = new Waste({ fid: params.wfid }); this.waste.forSubjectParam(params.fid).expandParam('subtype'); return this.waste.fetch(); } render() { const waste = this.waste.toJSON(); return ( <div> <Helmet title={waste.title} /> <PageHeader>{waste.title}</PageHeader> <Row> <Col md={12}> <ul className="nav menu-nav-pills"> <li> <NavLink to={`/companies/${this.companyFid}/waste/${waste.fid}/edit`} > <i className="fa fa-pencil-square-o" /> Редактировать </NavLink> </li> <li> <a href="javascript:;" onClick={() => { Progress.show(); this.waste.destroy({ success: () => { Progress.hide(); router.request('navigate', `companies/${this.companyFid}`); }, }); }} > <i className="fa fa-ban" aria-hidden="true" /> Удалить </a> </li> </ul> </Col> </Row> <Row> <Col md={12}> <Panel> <h4><Label>Название</Label>{' '} {waste.title} </h4> <h4><Label>Вид отходов</Label>{' '} <NavLink to={`/waste-types/${waste.subtype.fid}`}>{waste.subtype.title}</NavLink> </h4> <h4><Label>Количество</Label>{' '} {waste.amount} т </h4> </Panel> </Col> </Row> </div> ); } }
// JMColor.h // JMChartView #import <UIKit/UIKit.h> #define JMBlue [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1] #define JMCloudWhite [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1] struct Range { CGFloat max; CGFloat min; }; typedef struct Range JMRange; CG_INLINE JMRange JMRangeMake(CGFloat max, CGFloat min); CG_INLINE JMRange JMRangeMake(CGFloat max, CGFloat min){ JMRange p; p.max = max; p.min = min; return p; } static const JMRange JMRangeZero = {0,0}; @interface JMColor : NSObject @end
var basePaths = { src: 'public/', dest: 'public.dist/', bower: 'bower_components/' }; var paths = { images: { src: basePaths.src + 'images/', dest: basePaths.dest + 'images/min/' }, scripts: { src: basePaths.src + 'scripts/', dest: basePaths.dest + 'scripts/min/' }, styles: { src: basePaths.src + 'styles/', dest: basePaths.dest + 'styles/min/' }, sprite: { styles: paths.styles.src + '**/*.scss', /* .pipe(plugins.rubySass({ style: sassStyle, sourcemap: sourceMap, precision: 2 })) */ .pipe(plugins.sass()) .on('error', function(err) { new gutil.PluginError('CSS', err, {showStack: true}); }); return es.concat(gulp.src(vendorFiles.styles), sassFiles) .pipe(plugins.concat('style.min.css')) .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4', 'Firefox >= 4')) /* .pipe(isProduction ? plugins.combineMediaQueries({ log: true }) : gutil.noop()) */ .pipe(isProduction ? plugins.cssmin() : gutil.noop()) .pipe(plugins.size()) .pipe(gulp.dest(paths.styles.dest)) ; }); gulp.task('scripts', function() { gulp.src(vendorFiles.scripts.concat(appFiles.scripts)) .pipe(plugins.concat('app.js')) .pipe(isProduction ? plugins.uglify() : gutil.noop()) .pipe(plugins.size()) .pipe(gulp.dest(paths.scripts.dest)) ; }); // sprite generator gulp.task('sprite', function() { var spriteData = gulp.src(paths.sprite.src).pipe(plugins.spritesmith({ imgName: spriteConfig.imgName, cssName: spriteConfig.cssName, imgPath: spriteConfig.imgPath, cssOpts: { functions: false }, cssVarMap: function (sprite) { sprite.name = 'sprite-' + sprite.name; } })); spriteData.img.pipe(gulp.dest(paths.images.dest)); spriteData.css.pipe(gulp.dest(paths.styles.src)); }); gulp.task('watch', ['sprite', 'css', 'scripts'], function() { gulp.watch(appFiles.styles, ['css']).on('change', function(evt) { changeEvent(evt); }); gulp.watch(paths.scripts.src + '*.js', ['scripts']).on('change', function(evt) { changeEvent(evt); }); gulp.watch(paths.sprite.src, ['sprite']).on('change', function(evt) { changeEvent(evt); }); }); gulp.task('default', ['css', 'scripts']);
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <vector> #define GLM_FORCE_RADIANS #define <API key> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <vulkan/vulkan.h> #include "vulkanexamplebase.h" #define <API key> 0 #define ENABLE_VALIDATION false // Offscreen frame buffer properties #define FB_DIM 256 #define FB_COLOR_FORMAT <API key> // Vertex layout for this example std::vector<vkMeshLoader::VertexLayout> vertexLayout = { vkMeshLoader::<API key>, vkMeshLoader::VERTEX_LAYOUT_UV, vkMeshLoader::VERTEX_LAYOUT_COLOR, vkMeshLoader::<API key> }; class VulkanExample : public VulkanExampleBase { public: bool bloom = true; struct { vkTools::VulkanTexture cubemap; } textures; struct { vkMeshLoader::MeshBuffer ufo; vkMeshLoader::MeshBuffer ufoGlow; vkMeshLoader::MeshBuffer skyBox; vkMeshLoader::MeshBuffer quad; } meshes; struct { <API key> inputState; std::vector<<API key>> bindingDescriptions; std::vector<<API key>> <API key>; } vertices; struct { vkTools::UniformData vsScene; vkTools::UniformData vsFullScreen; vkTools::UniformData vsSkyBox; vkTools::UniformData fsVertBlur; vkTools::UniformData fsHorzBlur; } uniformData; struct UBO { glm::mat4 projection; glm::mat4 model; }; struct UBOBlur { float blurScale = 1.0f; float blurStrength = 1.5f; uint32_t horizontal; }; struct { UBO scene, fullscreen, skyBox; UBOBlur vertBlur, horzBlur; } ubos; struct { VkPipeline blurVert; VkPipeline blurHorz; VkPipeline glowPass; VkPipeline phongPass; VkPipeline skyBox; } pipelines; // Pipeline layout is shared amongst all descriptor sets VkPipelineLayout pipelineLayout; struct { VkDescriptorSet scene; VkDescriptorSet verticalBlur; VkDescriptorSet horizontalBlur; VkDescriptorSet skyBox; } descriptorSets; // Descriptor set layout is shared amongst all descriptor sets <API key> descriptorSetLayout; // Framebuffer for offscreen rendering struct <API key> { VkImage image; VkDeviceMemory mem; VkImageView view; }; struct FrameBuffer { VkFramebuffer framebuffer; <API key> color, depth; <API key> descriptor; }; struct OffscreenPass { int32_t width, height; VkRenderPass renderPass; VkSampler sampler; VkCommandBuffer commandBuffer = VK_NULL_HANDLE; // Semaphore used to synchronize between offscreen and final scene rendering VkSemaphore semaphore = VK_NULL_HANDLE; std::array<FrameBuffer, 2> framebuffers; } offscreenPass; VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) { zoom = -10.25f; rotation = { 7.5f, -343.0f, 0.0f }; timerSpeed *= 0.5f; enableTextOverlay = true; title = "Vulkan Example - Bloom"; } ~VulkanExample() { // Clean up used Vulkan resources // Note : Inherited destructor cleans up resources stored in base class vkDestroySampler(device, offscreenPass.sampler, nullptr); // Frame buffer for (auto& framebuffer : offscreenPass.framebuffers) { // Attachments vkDestroyImageView(device, framebuffer.color.view, nullptr); vkDestroyImage(device, framebuffer.color.image, nullptr); vkFreeMemory(device, framebuffer.color.mem, nullptr); vkDestroyImageView(device, framebuffer.depth.view, nullptr); vkDestroyImage(device, framebuffer.depth.image, nullptr); vkFreeMemory(device, framebuffer.depth.mem, nullptr); <API key>(device, framebuffer.framebuffer, nullptr); } vkDestroyRenderPass(device, offscreenPass.renderPass, nullptr); <API key>(device, cmdPool, 1, &offscreenPass.commandBuffer); vkDestroySemaphore(device, offscreenPass.semaphore, nullptr); vkDestroyPipeline(device, pipelines.blurHorz, nullptr); vkDestroyPipeline(device, pipelines.blurVert, nullptr); vkDestroyPipeline(device, pipelines.phongPass, nullptr); vkDestroyPipeline(device, pipelines.glowPass, nullptr); vkDestroyPipeline(device, pipelines.skyBox, nullptr); <API key>(device, pipelineLayout, nullptr); <API key>(device, descriptorSetLayout, nullptr); // Meshes vkMeshLoader::<API key>(device, &meshes.ufo); vkMeshLoader::<API key>(device, &meshes.ufoGlow); vkMeshLoader::<API key>(device, &meshes.skyBox); vkMeshLoader::<API key>(device, &meshes.quad); // Uniform buffers vkTools::destroyUniformData(device, &uniformData.vsScene); vkTools::destroyUniformData(device, &uniformData.vsFullScreen); vkTools::destroyUniformData(device, &uniformData.vsSkyBox); vkTools::destroyUniformData(device, &uniformData.fsVertBlur); vkTools::destroyUniformData(device, &uniformData.fsHorzBlur); textureLoader->destroyTexture(textures.cubemap); } // Setup the offscreen framebuffer for rendering the mirrored scene // The color attachment of this framebuffer will then be sampled from void <API key>(FrameBuffer *frameBuf, VkFormat colorFormat, VkFormat depthFormat) { // Color attachment VkImageCreateInfo image = vkTools::initializers::imageCreateInfo(); image.imageType = VK_IMAGE_TYPE_2D; image.format = colorFormat; image.extent.width = FB_DIM; image.extent.height = FB_DIM; image.extent.depth = 1; image.mipLevels = 1; image.arrayLayers = 1; image.samples = <API key>; image.tiling = <API key>; // We will sample directly from the color attachment image.usage = <API key> | <API key>; <API key> memAlloc = vkTools::initializers::memoryAllocateInfo(); <API key> memReqs; <API key> colorImageView = vkTools::initializers::imageViewCreateInfo(); colorImageView.viewType = <API key>; colorImageView.format = colorFormat; colorImageView.flags = 0; colorImageView.subresourceRange = {}; colorImageView.subresourceRange.aspectMask = <API key>; colorImageView.subresourceRange.baseMipLevel = 0; colorImageView.subresourceRange.levelCount = 1; colorImageView.subresourceRange.baseArrayLayer = 0; colorImageView.subresourceRange.layerCount = 1; VK_CHECK_RESULT(vkCreateImage(device, &image, nullptr, &frameBuf->color.image)); <API key>(device, frameBuf->color.image, &memReqs); memAlloc.allocationSize = memReqs.size; memAlloc.memoryTypeIndex = vulkanDevice->getMemoryType(memReqs.memoryTypeBits, <API key>); VK_CHECK_RESULT(vkAllocateMemory(device, &memAlloc, nullptr, &frameBuf->color.mem)); VK_CHECK_RESULT(vkBindImageMemory(device, frameBuf->color.image, frameBuf->color.mem, 0)); colorImageView.image = frameBuf->color.image; VK_CHECK_RESULT(vkCreateImageView(device, &colorImageView, nullptr, &frameBuf->color.view)); // Depth stencil attachment image.format = depthFormat; image.usage = <API key>; <API key> depthStencilView = vkTools::initializers::imageViewCreateInfo(); depthStencilView.viewType = <API key>; depthStencilView.format = depthFormat; depthStencilView.flags = 0; depthStencilView.subresourceRange = {}; depthStencilView.subresourceRange.aspectMask = <API key> | <API key>; depthStencilView.subresourceRange.baseMipLevel = 0; depthStencilView.subresourceRange.levelCount = 1; depthStencilView.subresourceRange.baseArrayLayer = 0; depthStencilView.subresourceRange.layerCount = 1; VK_CHECK_RESULT(vkCreateImage(device, &image, nullptr, &frameBuf->depth.image)); <API key>(device, frameBuf->depth.image, &memReqs); memAlloc.allocationSize = memReqs.size; memAlloc.memoryTypeIndex = vulkanDevice->getMemoryType(memReqs.memoryTypeBits, <API key>); VK_CHECK_RESULT(vkAllocateMemory(device, &memAlloc, nullptr, &frameBuf->depth.mem)); VK_CHECK_RESULT(vkBindImageMemory(device, frameBuf->depth.image, frameBuf->depth.mem, 0)); depthStencilView.image = frameBuf->depth.image; VK_CHECK_RESULT(vkCreateImageView(device, &depthStencilView, nullptr, &frameBuf->depth.view)); VkImageView attachments[2]; attachments[0] = frameBuf->color.view; attachments[1] = frameBuf->depth.view; <API key> fbufCreateInfo = vkTools::initializers::<API key>(); fbufCreateInfo.renderPass = offscreenPass.renderPass; fbufCreateInfo.attachmentCount = 2; fbufCreateInfo.pAttachments = attachments; fbufCreateInfo.width = FB_DIM; fbufCreateInfo.height = FB_DIM; fbufCreateInfo.layers = 1; VK_CHECK_RESULT(vkCreateFramebuffer(device, &fbufCreateInfo, nullptr, &frameBuf->framebuffer)); // Fill a descriptor for later use in a descriptor set frameBuf->descriptor.imageLayout = <API key>; frameBuf->descriptor.imageView = frameBuf->color.view; frameBuf->descriptor.sampler = offscreenPass.sampler; } // Prepare the offscreen framebuffers used for the vertical- and horizontal blur void prepareOffscreen() { offscreenPass.width = FB_DIM; offscreenPass.height = FB_DIM; // Find a suitable depth format VkFormat fbDepthFormat; VkBool32 validDepthFormat = vkTools::<API key>(physicalDevice, &fbDepthFormat); assert(validDepthFormat); // Create a separate render pass for the offscreen rendering as it may differ from the one used for scene rendering std::array<<API key>, 2> <API key> = {}; // Color attachment <API key>[0].format = FB_COLOR_FORMAT; <API key>[0].samples = <API key>; <API key>[0].loadOp = <API key>; <API key>[0].storeOp = <API key>; <API key>[0].stencilLoadOp = <API key>; <API key>[0].stencilStoreOp = <API key>; <API key>[0].initialLayout = <API key>; <API key>[0].finalLayout = <API key>; // Depth attachment <API key>[1].format = fbDepthFormat; <API key>[1].samples = <API key>; <API key>[1].loadOp = <API key>; <API key>[1].storeOp = <API key>; <API key>[1].stencilLoadOp = <API key>; <API key>[1].stencilStoreOp = <API key>; <API key>[1].initialLayout = <API key>; <API key>[1].finalLayout = <API key>; <API key> colorReference = { 0, <API key> }; <API key> depthReference = { 1, <API key> }; <API key> subpassDescription = {}; subpassDescription.pipelineBindPoint = <API key>; subpassDescription.<API key> = 1; subpassDescription.pColorAttachments = &colorReference; subpassDescription.<API key> = &depthReference; // Use subpass dependencies for layout transitions std::array<VkSubpassDependency, 2> dependencies; dependencies[0].srcSubpass = VK_SUBPASS_EXTERNAL; dependencies[0].dstSubpass = 0; dependencies[0].srcStageMask = <API key>; dependencies[0].dstStageMask = <API key>; dependencies[0].srcAccessMask = <API key>; dependencies[0].dstAccessMask = <API key> | <API key>; dependencies[0].dependencyFlags = <API key>; dependencies[1].srcSubpass = 0; dependencies[1].dstSubpass = VK_SUBPASS_EXTERNAL; dependencies[1].srcStageMask = <API key>; dependencies[1].dstStageMask = <API key>; dependencies[1].srcAccessMask = <API key> | <API key>; dependencies[1].dstAccessMask = <API key>; dependencies[1].dependencyFlags = <API key>; // Create the actual renderpass <API key> renderPassInfo = {}; renderPassInfo.sType = <API key>; renderPassInfo.attachmentCount = static_cast<uint32_t>(<API key>.size()); renderPassInfo.pAttachments = <API key>.data(); renderPassInfo.subpassCount = 1; renderPassInfo.pSubpasses = &subpassDescription; renderPassInfo.dependencyCount = static_cast<uint32_t>(dependencies.size()); renderPassInfo.pDependencies = dependencies.data(); VK_CHECK_RESULT(vkCreateRenderPass(device, &renderPassInfo, nullptr, &offscreenPass.renderPass)); // Create sampler to sample from the color attachments VkSamplerCreateInfo sampler = vkTools::initializers::samplerCreateInfo(); sampler.magFilter = VK_FILTER_LINEAR; sampler.minFilter = VK_FILTER_LINEAR; sampler.mipmapMode = <API key>; sampler.addressModeU = <API key>; sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; sampler.maxAnisotropy = 0; sampler.minLod = 0.0f; sampler.maxLod = 1.0f; sampler.borderColor = <API key>; VK_CHECK_RESULT(vkCreateSampler(device, &sampler, nullptr, &offscreenPass.sampler)); // Create two frame buffers <API key>(&offscreenPass.framebuffers[0], FB_COLOR_FORMAT, fbDepthFormat); <API key>(&offscreenPass.framebuffers[1], FB_COLOR_FORMAT, fbDepthFormat); } // Sets up the command buffer that renders the scene to the offscreen frame buffer // The blur method used in this example is multi pass and renders the vertical // blur first and then the horizontal one. // While it's possible to blur in one pass, this method is widely used as it // requires far less samples to generate the blur void <API key>() { if (offscreenPass.commandBuffer == VK_NULL_HANDLE) { offscreenPass.commandBuffer = VulkanExampleBase::createCommandBuffer(<API key>, false); } if (offscreenPass.semaphore == VK_NULL_HANDLE) { <API key> semaphoreCreateInfo = vkTools::initializers::semaphoreCreateInfo(); VK_CHECK_RESULT(vkCreateSemaphore(device, &semaphoreCreateInfo, nullptr, &offscreenPass.semaphore)); } <API key> cmdBufInfo = vkTools::initializers::<API key>(); // First pass: Render glow parts of the model (separate mesh) VkClearValue clearValues[2]; clearValues[0].color = { { 0.0f, 0.0f, 0.0f, 1.0f } }; clearValues[1].depthStencil = { 1.0f, 0 }; <API key> renderPassBeginInfo = vkTools::initializers::renderPassBeginInfo(); renderPassBeginInfo.renderPass = offscreenPass.renderPass; renderPassBeginInfo.framebuffer = offscreenPass.framebuffers[0].framebuffer; renderPassBeginInfo.renderArea.extent.width = offscreenPass.width; renderPassBeginInfo.renderArea.extent.height = offscreenPass.height; renderPassBeginInfo.clearValueCount = 2; renderPassBeginInfo.pClearValues = clearValues; VK_CHECK_RESULT(<API key>(offscreenPass.commandBuffer, &cmdBufInfo)); VkViewport viewport = vkTools::initializers::viewport((float)offscreenPass.width, (float)offscreenPass.height, 0.0f, 1.0f); vkCmdSetViewport(offscreenPass.commandBuffer, 0, 1, &viewport); VkRect2D scissor = vkTools::initializers::rect2D(offscreenPass.width, offscreenPass.height, 0, 0); vkCmdSetScissor(offscreenPass.commandBuffer, 0, 1, &scissor); <API key>(offscreenPass.commandBuffer, &renderPassBeginInfo, <API key>); <API key>(offscreenPass.commandBuffer, <API key>, pipelineLayout, 0, 1, &descriptorSets.scene, 0, NULL); vkCmdBindPipeline(offscreenPass.commandBuffer, <API key>, pipelines.glowPass); VkDeviceSize offsets[1] = { 0 }; <API key>(offscreenPass.commandBuffer, <API key>, 1, &meshes.ufoGlow.vertices.buf, offsets); <API key>(offscreenPass.commandBuffer, meshes.ufoGlow.indices.buf, 0, <API key>); vkCmdDrawIndexed(offscreenPass.commandBuffer, meshes.ufoGlow.indexCount, 1, 0, 0, 0); vkCmdEndRenderPass(offscreenPass.commandBuffer); // Second pass: Render contents of the first pass into second framebuffer and apply a vertical blur // This is the first blur pass, the horizontal blur is applied when rendering on top of the scene renderPassBeginInfo.framebuffer = offscreenPass.framebuffers[1].framebuffer; <API key>(offscreenPass.commandBuffer, &renderPassBeginInfo, <API key>); // Draw horizontally blurred texture <API key>(offscreenPass.commandBuffer, <API key>, pipelineLayout, 0, 1, &descriptorSets.verticalBlur, 0, NULL); vkCmdBindPipeline(offscreenPass.commandBuffer, <API key>, pipelines.blurVert); <API key>(offscreenPass.commandBuffer, <API key>, 1, &meshes.quad.vertices.buf, offsets); <API key>(offscreenPass.commandBuffer, meshes.quad.indices.buf, 0, <API key>); vkCmdDrawIndexed(offscreenPass.commandBuffer, meshes.quad.indexCount, 1, 0, 0, 0); vkCmdEndRenderPass(offscreenPass.commandBuffer); VK_CHECK_RESULT(vkEndCommandBuffer(offscreenPass.commandBuffer)); } void <API key>() { if (!checkCommandBuffers()) { <API key>(); <API key>(); } buildCommandBuffers(); } void buildCommandBuffers() { <API key> cmdBufInfo = vkTools::initializers::<API key>(); VkClearValue clearValues[2]; clearValues[0].color = defaultClearColor; clearValues[1].depthStencil = { 1.0f, 0 }; <API key> renderPassBeginInfo = vkTools::initializers::renderPassBeginInfo(); renderPassBeginInfo.renderPass = renderPass; renderPassBeginInfo.renderArea.offset.x = 0; renderPassBeginInfo.renderArea.offset.y = 0; renderPassBeginInfo.renderArea.extent.width = width; renderPassBeginInfo.renderArea.extent.height = height; renderPassBeginInfo.clearValueCount = 2; renderPassBeginInfo.pClearValues = clearValues; for (int32_t i = 0; i < drawCmdBuffers.size(); ++i) { // Set target frame buffer renderPassBeginInfo.framebuffer = frameBuffers[i]; VK_CHECK_RESULT(<API key>(drawCmdBuffers[i], &cmdBufInfo)); <API key>(drawCmdBuffers[i], &renderPassBeginInfo, <API key>); VkViewport viewport = vkTools::initializers::viewport((float)width, (float)height, 0.0f, 1.0f); vkCmdSetViewport(drawCmdBuffers[i], 0, 1, &viewport); VkRect2D scissor = vkTools::initializers::rect2D(width, height, 0, 0); vkCmdSetScissor(drawCmdBuffers[i], 0, 1, &scissor); VkDeviceSize offsets[1] = { 0 }; // Skybox <API key>(drawCmdBuffers[i], <API key>, pipelineLayout, 0, 1, &descriptorSets.skyBox, 0, NULL); vkCmdBindPipeline(drawCmdBuffers[i], <API key>, pipelines.skyBox); <API key>(drawCmdBuffers[i], <API key>, 1, &meshes.skyBox.vertices.buf, offsets); <API key>(drawCmdBuffers[i], meshes.skyBox.indices.buf, 0, <API key>); vkCmdDrawIndexed(drawCmdBuffers[i], meshes.skyBox.indexCount, 1, 0, 0, 0); // 3D scene <API key>(drawCmdBuffers[i], <API key>, pipelineLayout, 0, 1, &descriptorSets.scene, 0, NULL); vkCmdBindPipeline(drawCmdBuffers[i], <API key>, pipelines.phongPass); <API key>(drawCmdBuffers[i], <API key>, 1, &meshes.ufo.vertices.buf, offsets); <API key>(drawCmdBuffers[i], meshes.ufo.indices.buf, 0, <API key>); vkCmdDrawIndexed(drawCmdBuffers[i], meshes.ufo.indexCount, 1, 0, 0, 0); // Render vertical blurred scene applying a horizontal blur // Render the (vertically blurred) contents of the second framebuffer and apply a horizontal blur if (bloom) { <API key>(drawCmdBuffers[i], <API key>, pipelineLayout, 0, 1, &descriptorSets.horizontalBlur, 0, NULL); vkCmdBindPipeline(drawCmdBuffers[i], <API key>, pipelines.blurHorz); <API key>(drawCmdBuffers[i], <API key>, 1, &meshes.quad.vertices.buf, offsets); <API key>(drawCmdBuffers[i], meshes.quad.indices.buf, 0, <API key>); vkCmdDrawIndexed(drawCmdBuffers[i], meshes.quad.indexCount, 1, 0, 0, 0); } vkCmdEndRenderPass(drawCmdBuffers[i]); VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i])); } if (bloom) { <API key>(); } } void loadAssets() { loadMesh(getAssetPath() + "models/retroufo.dae", &meshes.ufo, vertexLayout, 0.05f); loadMesh(getAssetPath() + "models/retroufo_glow.dae", &meshes.ufoGlow, vertexLayout, 0.05f); loadMesh(getAssetPath() + "models/cube.obj", &meshes.skyBox, vertexLayout, 1.0f); textureLoader->loadCubemap(getAssetPath() + "textures/cubemap_space.ktx", <API key>, &textures.cubemap); } // Setup vertices for a single uv-mapped quad void generateQuad() { struct Vertex { float pos[3]; float uv[2]; float col[3]; float normal[3]; }; #define QUAD_COLOR_NORMAL { 1.0f, 1.0f, 1.0f }, { 0.0f, 0.0f, 1.0f } std::vector<Vertex> vertexBuffer = { { { 1.0f, 1.0f, 0.0f },{ 1.0f, 1.0f }, QUAD_COLOR_NORMAL }, { { 0.0f, 1.0f, 0.0f },{ 0.0f, 1.0f }, QUAD_COLOR_NORMAL }, { { 0.0f, 0.0f, 0.0f },{ 0.0f, 0.0f }, QUAD_COLOR_NORMAL }, { { 1.0f, 0.0f, 0.0f },{ 1.0f, 0.0f }, QUAD_COLOR_NORMAL } }; #undef QUAD_COLOR_NORMAL createBuffer( <API key>, vertexBuffer.size() * sizeof(Vertex), vertexBuffer.data(), &meshes.quad.vertices.buf, &meshes.quad.vertices.mem); // Setup indices std::vector<uint32_t> indexBuffer = { 0,1,2, 2,3,0 }; meshes.quad.indexCount = indexBuffer.size(); createBuffer( <API key>, indexBuffer.size() * sizeof(uint32_t), indexBuffer.data(), &meshes.quad.indices.buf, &meshes.quad.indices.mem); } void <API key>() { // Binding description // Same for all meshes used in this example vertices.bindingDescriptions.resize(1); vertices.bindingDescriptions[0] = vkTools::initializers::<API key>( <API key>, vkMeshLoader::vertexSize(vertexLayout), <API key>); // Attribute descriptions vertices.<API key>.resize(4); // Location 0 : Position vertices.<API key>[0] = vkTools::initializers::<API key>( <API key>, 0, <API key>, 0); // Location 1 : Texture coordinates vertices.<API key>[1] = vkTools::initializers::<API key>( <API key>, 1, <API key>, sizeof(float) * 3); // Location 2 : Color vertices.<API key>[2] = vkTools::initializers::<API key>( <API key>, 2, <API key>, sizeof(float) * 5); // Location 3 : Normal vertices.<API key>[3] = vkTools::initializers::<API key>( <API key>, 3, <API key>, sizeof(float) * 8); vertices.inputState = vkTools::initializers::<API key>(); vertices.inputState.<API key> = vertices.bindingDescriptions.size(); vertices.inputState.<API key> = vertices.bindingDescriptions.data(); vertices.inputState.<API key> = vertices.<API key>.size(); vertices.inputState.<API key> = vertices.<API key>.data(); } void setupDescriptorPool() { std::vector<<API key>> poolSizes = { vkTools::initializers::descriptorPoolSize(<API key>, 8), vkTools::initializers::descriptorPoolSize(<API key>, 6) }; <API key> descriptorPoolInfo = vkTools::initializers::<API key>( poolSizes.size(), poolSizes.data(), 5); VK_CHECK_RESULT(<API key>(device, &descriptorPoolInfo, nullptr, &descriptorPool)); } void <API key>() { // Textured quad pipeline layout std::vector<<API key>> setLayoutBindings = { // Binding 0 : Vertex shader uniform buffer vkTools::initializers::<API key>( <API key>, <API key>, 0), // Binding 1 : Fragment shader image sampler vkTools::initializers::<API key>( <API key>, <API key>, 1), // Binding 2 : Framgnet shader image sampler vkTools::initializers::<API key>( <API key>, <API key>, 2), }; <API key> descriptorLayout = vkTools::initializers::<API key>( setLayoutBindings.data(), setLayoutBindings.size()); VK_CHECK_RESULT(<API key>(device, &descriptorLayout, nullptr, &descriptorSetLayout)); <API key> <API key> = vkTools::initializers::<API key>( &descriptorSetLayout, 1); VK_CHECK_RESULT(<API key>(device, &<API key>, nullptr, &pipelineLayout)); } void setupDescriptorSet() { <API key> allocInfo = vkTools::initializers::<API key>( descriptorPool, &descriptorSetLayout, 1); std::vector<<API key>> writeDescriptorSets; // Full screen blur descriptor sets // Vertical blur VK_CHECK_RESULT(<API key>(device, &allocInfo, &descriptorSets.verticalBlur)); writeDescriptorSets = { // Binding 0: Vertex shader uniform buffer vkTools::initializers::writeDescriptorSet(descriptorSets.verticalBlur, <API key>, 0, &uniformData.vsScene.descriptor), // Binding 1: Fragment shader texture sampler vkTools::initializers::writeDescriptorSet(descriptorSets.verticalBlur, <API key>, 1, &offscreenPass.framebuffers[0].descriptor), // Binding 2: Fragment shader uniform buffer vkTools::initializers::writeDescriptorSet(descriptorSets.verticalBlur, <API key>, 2, &uniformData.fsVertBlur.descriptor) }; <API key>(device, writeDescriptorSets.size(), writeDescriptorSets.data(), 0, NULL); // Horizontal blur VK_CHECK_RESULT(<API key>(device, &allocInfo, &descriptorSets.horizontalBlur)); writeDescriptorSets = { // Binding 0: Vertex shader uniform buffer vkTools::initializers::writeDescriptorSet(descriptorSets.horizontalBlur, <API key>, 0, &uniformData.vsScene.descriptor), // Binding 1: Fragment shader texture sampler vkTools::initializers::writeDescriptorSet(descriptorSets.horizontalBlur, <API key>, 1, &offscreenPass.framebuffers[1].descriptor), // Binding 2: Fragment shader uniform buffer vkTools::initializers::writeDescriptorSet(descriptorSets.horizontalBlur, <API key>, 2, &uniformData.fsHorzBlur.descriptor) }; <API key>(device, writeDescriptorSets.size(), writeDescriptorSets.data(), 0, NULL); // 3D scene VK_CHECK_RESULT(<API key>(device, &allocInfo, &descriptorSets.scene)); writeDescriptorSets = { // Binding 0: Vertex shader uniform buffer vkTools::initializers::writeDescriptorSet(descriptorSets.scene, <API key>, 0, &uniformData.vsFullScreen.descriptor) }; <API key>(device, writeDescriptorSets.size(), writeDescriptorSets.data(), 0, NULL); // Skybox VK_CHECK_RESULT(<API key>(device, &allocInfo, &descriptorSets.skyBox)); writeDescriptorSets = { // Binding 0: Vertex shader uniform buffer vkTools::initializers::writeDescriptorSet(descriptorSets.skyBox, <API key>, 0, &uniformData.vsSkyBox.descriptor), // Binding 1: Fragment shader texture sampler vkTools::initializers::writeDescriptorSet(descriptorSets.skyBox, <API key>, 1, &textures.cubemap.descriptor), }; <API key>(device, writeDescriptorSets.size(), writeDescriptorSets.data(), 0, NULL); } void preparePipelines() { <API key> inputAssemblyState = vkTools::initializers::<API key>( <API key>, 0, VK_FALSE); <API key> rasterizationState = vkTools::initializers::<API key>( <API key>, VK_CULL_MODE_NONE, <API key>, 0); <API key> <API key> = vkTools::initializers::<API key>( 0xf, VK_FALSE); <API key> colorBlendState = vkTools::initializers::<API key>( 1, &<API key>); <API key> depthStencilState = vkTools::initializers::<API key>( VK_TRUE, VK_TRUE, <API key>); <API key> viewportState = vkTools::initializers::<API key>(1, 1, 0); <API key> multisampleState = vkTools::initializers::<API key>( <API key>, 0); std::vector<VkDynamicState> dynamicStateEnables = { <API key>, <API key> }; <API key> dynamicState = vkTools::initializers::<API key>( dynamicStateEnables.data(), dynamicStateEnables.size(), 0); std::array<<API key>, 2> shaderStages; // Vertical gauss blur // Load shaders shaderStages[0] = loadShader(getAssetPath() + "shaders/bloom/gaussblur.vert.spv", <API key>); shaderStages[1] = loadShader(getAssetPath() + "shaders/bloom/gaussblur.frag.spv", <API key>); <API key> pipelineCreateInfo = vkTools::initializers::pipelineCreateInfo( pipelineLayout, renderPass, 0); pipelineCreateInfo.pVertexInputState = &vertices.inputState; pipelineCreateInfo.pInputAssemblyState = &inputAssemblyState; pipelineCreateInfo.pRasterizationState = &rasterizationState; pipelineCreateInfo.pColorBlendState = &colorBlendState; pipelineCreateInfo.pMultisampleState = &multisampleState; pipelineCreateInfo.pViewportState = &viewportState; pipelineCreateInfo.pDepthStencilState = &depthStencilState; pipelineCreateInfo.pDynamicState = &dynamicState; pipelineCreateInfo.stageCount = shaderStages.size(); pipelineCreateInfo.pStages = shaderStages.data(); // Additive blending <API key>.colorWriteMask = 0xF; <API key>.blendEnable = VK_TRUE; <API key>.colorBlendOp = VK_BLEND_OP_ADD; <API key>.srcColorBlendFactor = VK_BLEND_FACTOR_ONE; <API key>.dstColorBlendFactor = VK_BLEND_FACTOR_ONE; <API key>.alphaBlendOp = VK_BLEND_OP_ADD; <API key>.srcAlphaBlendFactor = <API key>; <API key>.dstAlphaBlendFactor = <API key>; pipelineCreateInfo.renderPass = offscreenPass.renderPass; VK_CHECK_RESULT(<API key>(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.blurVert)); pipelineCreateInfo.renderPass = renderPass; VK_CHECK_RESULT(<API key>(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.blurHorz)); // Phong pass (3D model) shaderStages[0] = loadShader(getAssetPath() + "shaders/bloom/phongpass.vert.spv", <API key>); shaderStages[1] = loadShader(getAssetPath() + "shaders/bloom/phongpass.frag.spv", <API key>); <API key>.blendEnable = VK_FALSE; depthStencilState.depthWriteEnable = VK_TRUE; rasterizationState.cullMode = <API key>; pipelineCreateInfo.renderPass = renderPass; VK_CHECK_RESULT(<API key>(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.phongPass)); // Color only pass (offscreen blur base) shaderStages[0] = loadShader(getAssetPath() + "shaders/bloom/colorpass.vert.spv", <API key>); shaderStages[1] = loadShader(getAssetPath() + "shaders/bloom/colorpass.frag.spv", <API key>); pipelineCreateInfo.renderPass = offscreenPass.renderPass; VK_CHECK_RESULT(<API key>(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.glowPass)); // Skybox (cubemap) shaderStages[0] = loadShader(getAssetPath() + "shaders/bloom/skybox.vert.spv", <API key>); shaderStages[1] = loadShader(getAssetPath() + "shaders/bloom/skybox.frag.spv", <API key>); depthStencilState.depthWriteEnable = VK_FALSE; rasterizationState.cullMode = <API key>; pipelineCreateInfo.renderPass = renderPass; VK_CHECK_RESULT(<API key>(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.skyBox)); } // Prepare and initialize uniform buffer containing shader uniforms void <API key>() { // Phong and color pass vertex shader uniform buffer createBuffer( <API key>, <API key> | <API key>, sizeof(ubos.scene), &ubos.scene, &uniformData.vsScene.buffer, &uniformData.vsScene.memory, &uniformData.vsScene.descriptor); // Fullscreen quad display vertex shader uniform buffer createBuffer( <API key>, <API key> | <API key>, sizeof(ubos.fullscreen), &ubos.fullscreen, &uniformData.vsFullScreen.buffer, &uniformData.vsFullScreen.memory, &uniformData.vsFullScreen.descriptor); // Fullscreen quad fragment shader uniform buffers // Vertical blur createBuffer( <API key>, <API key> | <API key>, sizeof(ubos.vertBlur), &ubos.vertBlur, &uniformData.fsVertBlur.buffer, &uniformData.fsVertBlur.memory, &uniformData.fsVertBlur.descriptor); // Horizontal blur createBuffer( <API key>, <API key> | <API key>, sizeof(ubos.horzBlur), &ubos.horzBlur, &uniformData.fsHorzBlur.buffer, &uniformData.fsHorzBlur.memory, &uniformData.fsHorzBlur.descriptor); // Skybox createBuffer( <API key>, <API key> | <API key>, sizeof(ubos.skyBox), &ubos.skyBox, &uniformData.vsSkyBox.buffer, &uniformData.vsSkyBox.memory, &uniformData.vsSkyBox.descriptor); // Intialize uniform buffers <API key>(); <API key>(); } // Update uniform buffers for rendering the 3D scene void <API key>() { // UFO ubos.fullscreen.projection = glm::perspective(glm::radians(45.0f), (float)width / (float)height, 0.1f, 256.0f); glm::mat4 viewMatrix = glm::translate(glm::mat4(), glm::vec3(0.0f, -1.0f, zoom)); ubos.fullscreen.model = viewMatrix * glm::translate(glm::mat4(), glm::vec3(sin(glm::radians(timer * 360.0f)) * 0.25f, 0.0f, cos(glm::radians(timer * 360.0f)) * 0.25f) + cameraPos); ubos.fullscreen.model = glm::rotate(ubos.fullscreen.model, glm::radians(rotation.x), glm::vec3(1.0f, 0.0f, 0.0f)); ubos.fullscreen.model = glm::rotate(ubos.fullscreen.model, -sinf(glm::radians(timer * 360.0f)) * 0.15f, glm::vec3(1.0f, 0.0f, 0.0f)); ubos.fullscreen.model = glm::rotate(ubos.fullscreen.model, glm::radians(rotation.y), glm::vec3(0.0f, 1.0f, 0.0f)); ubos.fullscreen.model = glm::rotate(ubos.fullscreen.model, glm::radians(timer * 360.0f), glm::vec3(0.0f, 1.0f, 0.0f)); ubos.fullscreen.model = glm::rotate(ubos.fullscreen.model, glm::radians(rotation.z), glm::vec3(0.0f, 0.0f, 1.0f)); uint8_t *pData; VK_CHECK_RESULT(vkMapMemory(device, uniformData.vsFullScreen.memory, 0, sizeof(ubos.fullscreen), 0, (void **)&pData)); memcpy(pData, &ubos.fullscreen, sizeof(ubos.fullscreen)); vkUnmapMemory(device, uniformData.vsFullScreen.memory); // Skybox ubos.skyBox.projection = glm::perspective(glm::radians(45.0f), (float)width / (float)height, 0.1f, 256.0f); ubos.skyBox.model = glm::mat4(); ubos.skyBox.model = glm::rotate(ubos.skyBox.model, glm::radians(rotation.x), glm::vec3(1.0f, 0.0f, 0.0f)); ubos.skyBox.model = glm::rotate(ubos.skyBox.model, glm::radians(rotation.y), glm::vec3(0.0f, 1.0f, 0.0f)); ubos.skyBox.model = glm::rotate(ubos.skyBox.model, glm::radians(rotation.z), glm::vec3(0.0f, 0.0f, 1.0f)); VK_CHECK_RESULT(vkMapMemory(device, uniformData.vsSkyBox.memory, 0, sizeof(ubos.skyBox), 0, (void **)&pData)); memcpy(pData, &ubos.skyBox, sizeof(ubos.skyBox)); vkUnmapMemory(device, uniformData.vsSkyBox.memory); } // Update uniform buffers for the fullscreen quad void <API key>() { // Vertex shader ubos.scene.projection = glm::ortho(0.0f, 1.0f, 0.0f, 1.0f, -1.0f, 1.0f); ubos.scene.model = glm::mat4(); uint8_t *pData; VK_CHECK_RESULT(vkMapMemory(device, uniformData.vsScene.memory, 0, sizeof(ubos.scene), 0, (void **)&pData)); memcpy(pData, &ubos.scene, sizeof(ubos.scene)); vkUnmapMemory(device, uniformData.vsScene.memory); // Fragment shader // Vertical ubos.vertBlur.horizontal = 0; VK_CHECK_RESULT(vkMapMemory(device, uniformData.fsVertBlur.memory, 0, sizeof(ubos.vertBlur), 0, (void **)&pData)); memcpy(pData, &ubos.vertBlur, sizeof(ubos.vertBlur)); vkUnmapMemory(device, uniformData.fsVertBlur.memory); // Horizontal ubos.horzBlur.horizontal = 1; VK_CHECK_RESULT(vkMapMemory(device, uniformData.fsHorzBlur.memory, 0, sizeof(ubos.horzBlur), 0, (void **)&pData)); memcpy(pData, &ubos.horzBlur, sizeof(ubos.horzBlur)); vkUnmapMemory(device, uniformData.fsHorzBlur.memory); } void draw() { VulkanExampleBase::prepareFrame(); // The scene render command buffer has to wait for the offscreen rendering to be finished before we can use the framebuffer // color image for sampling during final rendering // To ensure this we use a dedicated offscreen synchronization semaphore that will be signaled when offscreen rendering has been finished // This is necessary as an implementation may start both command buffers at the same time, there is no guarantee // that command buffers will be executed in the order they have been submitted by the application // Offscreen rendering // Wait for swap chain presentation to finish submitInfo.pWaitSemaphores = &semaphores.presentComplete; // Signal ready with offscreen semaphore submitInfo.pSignalSemaphores = &offscreenPass.semaphore; // Submit work submitInfo.commandBufferCount = 1; submitInfo.pCommandBuffers = &offscreenPass.commandBuffer; VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE)); // Scene rendering // Wait for offscreen semaphore submitInfo.pWaitSemaphores = &offscreenPass.semaphore; // Signal ready with render complete semaphpre submitInfo.pSignalSemaphores = &semaphores.renderComplete; // Submit work submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer]; VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE)); VulkanExampleBase::submitFrame(); } void prepare() { VulkanExampleBase::prepare(); loadAssets(); generateQuad(); <API key>(); <API key>(); prepareOffscreen(); <API key>(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); prepared = true; } virtual void render() { if (!prepared) return; draw(); if (!paused) { <API key>(); } } virtual void viewChanged() { <API key>(); <API key>(); } virtual void keyPressed(uint32_t keyCode) { switch (keyCode) { case KEY_KPADD: case GAMEPAD_BUTTON_R1: changeBlurScale(0.25f); break; case KEY_KPSUB: case GAMEPAD_BUTTON_L1: changeBlurScale(-0.25f); break; case KEY_B: case GAMEPAD_BUTTON_A: toggleBloom(); break; } } virtual void getOverlayText(VulkanTextOverlay *textOverlay) { #if defined(__ANDROID__) textOverlay->addText("Press \"L1/R1\" to change blur scale", 5.0f, 85.0f, VulkanTextOverlay::alignLeft); textOverlay->addText("Press \"Button A\" to toggle bloom", 5.0f, 105.0f, VulkanTextOverlay::alignLeft); #else textOverlay->addText("Press \"NUMPAD +/-\" to change blur scale", 5.0f, 85.0f, VulkanTextOverlay::alignLeft); textOverlay->addText("Press \"B\" to toggle bloom", 5.0f, 105.0f, VulkanTextOverlay::alignLeft); #endif } void changeBlurScale(float delta) { ubos.vertBlur.blurScale += delta; ubos.horzBlur.blurScale += delta; <API key>(); } void toggleBloom() { bloom = !bloom; <API key>(); } }; VULKAN_EXAMPLE_MAIN()
package mcjty.deepresonance.jei.smelter; import mezz.jei.api.recipe.IRecipeWrapper; import javax.annotation.Nonnull; public class <API key> implements mezz.jei.api.recipe.IRecipeHandler<<API key>> { private final String id; public <API key>() { this.id = <API key>.ID; } @Nonnull @Override public Class<<API key>> getRecipeClass() { return <API key>.class; } @Nonnull @Override public IRecipeWrapper getRecipeWrapper(@Nonnull <API key> recipe) { return recipe; } @Override public String <API key>(<API key> recipe) { return id; } @Override public boolean isRecipeValid(<API key> recipe) { return true; } }
<?php class <API key> extends <API key> { public static function factory($attributes) { $instance = new self($attributes); return $instance; } // static methods redirecting to gateway public static function fetch($query, $ids) { return <API key>::gateway()-><API key>()->fetch($query, $ids); } public static function search($query) { return <API key>::gateway()-><API key>()->search($query); } }
var <API key> = null; var g_tabAssessments = null; var <API key> = false; var g_onRefresh = null; var g_lockedCount = 0; var g_btnSubmit = null; var <API key> = null; var <API key> = null; function createAssessment(content, to) { var assessmentJson = {}; assessmentJson["content"] = content; assessmentJson["to"] = to; return new Assessment(assessmentJson); } function <API key>(){ this.participantId = 0; this.name = ""; this.content = ""; this.lock = null; } function <API key>(){ this.switchAttendance = null; this.selectAll = null; this.editors = null; } function <API key>(par, participant, activity, batchEditor){ var singleEditor = new <API key>(); var row = $('<div>', { "class": "<API key>" }).appendTo(par); var avatar = $("<img>", { src: participant.avatar, "class": "assessment-avatar" }).click(function(evt) { evt.preventDefault(); window.location.hash = ("profile?" + g_keyVieweeId + "=" + participant.id.toString()); }).appendTo(row); var name = $('<a>', { href: " text: participant.name }).appendTo(row); name.click(function(evt) { evt.preventDefault(); window.location.hash = ("profile?" + g_keyVieweeId + "=" + participant.id.toString()); }); singleEditor.participantId = participant.id; singleEditor.name = participant.name; if ( activity.containsRelation() && ((activity.relation & assessed) == 0) ) <API key>(row, singleEditor, batchEditor); else <API key>(row, participant, activity); if(g_loggedInUser != null && g_loggedInUser.id == participant.id) row.hide(); return singleEditor; } function <API key>(par, activity, batchEditor) { par.empty(); var participants = activity.<API key>; var editors = new Array(); for(var i = 0; i < participants.length; i++){ var editor = <API key>(par, participants[i], activity, batchEditor); editors.push(editor); } return editors; } function <API key>(par, activity, batchEditor){ par.empty(); if(batchEditor.editors == null || batchEditor.editors.length <= 1) return; var row = $('<div>', { "class": "assessment-button" }).appendTo(par); var btnCheckAll = $("<button>", { text: TITLES["check_all"], "class": "gray assessment-button" }).appendTo(row); btnCheckAll.click(batchEditor, function(evt){ evt.preventDefault(); for(var i = 0; i < evt.data.editors.length; i++) { var editor = evt.data.editors[i]; editor.lock.prop("checked", true).change(); } }); var btnUncheckAll = $("<button>", { text: TITLES["uncheck_all"], "class": "gray assessment-button" }).appendTo(row); btnUncheckAll.click(batchEditor, function(evt){ evt.preventDefault(); for(var i = 0; i < evt.data.editors.length; i++) { var editor = evt.data.editors[i]; editor.lock.prop("checked", false).change(); } }); g_btnSubmit = $("<button>", { text: TITLES["submit"], "class": "assessment-button positive-button" }).appendTo(row); g_btnSubmit.click({editor: batchEditor, activity: activity}, function(evt){ evt.preventDefault(); if (g_loggedInUser == null) return; var aBatchEditor = evt.data.editor; var aActivity = evt.data.activity; var assessments = new Array(); for(var i = 0; i < aBatchEditor.editors.length; i++) { var editor = aBatchEditor.editors[i]; var content = editor.content; var to = editor.participantId; if(to == g_loggedInUser.id) continue; var assessment = createAssessment(content, to); assessments.push(assessment); } if (assessments.length == 0) return; var params = {}; var token = $.cookie(g_keyToken); params[g_keyToken] = token; params[g_keyActivityId] = aActivity.id; params[g_keyBundle] = JSON.stringify(assessments); var aButton = $(this); disableField(aButton); $.ajax({ type: "POST", url: "/assessment/submit", data: params, success: function(data, status, xhr){ enableField(aButton); if (isTokenExpired(data)) { logout(null); return; } alert(ALERTS["<API key>"]); aActivity.relation |= assessed; refreshBatchEditor(aActivity); }, error: function(xhr, status, err){ enableField(aButton); alert(ALERTS["<API key>"]); } }); }).appendTo(row); disableField(g_btnSubmit); } function <API key>(par, activity, onRefresh){ par.empty(); if(g_onRefresh == null) g_onRefresh = onRefresh; g_lockedCount = 0; // clear lock count on batch editor generated <API key> = new <API key>(); if(activity == null) return <API key>; var editors = []; var sectionAll = $('<div>', { "class": "<API key>" }).appendTo(par); var initVal = false; var disabled = false; // Determine attendance switch initial state based on <API key> if (g_loggedInUser != null && activity.host.id == g_loggedInUser.id) { // host cannot choose presence initVal = true; disabled = true; } else if((activity.relation & present) > 0) { // present participants initVal = true; } else if((activity.relation & selected) > 0 || (activity.relation & absent) > 0) { // selected but not present initVal = false; } else { disabled = true; } var attendanceSwitch = createBinarySwitch(sectionAll, disabled, initVal, TITLES["assessment_disabled"], TITLES["present"], TITLES["absent"], "switch-attendance"); <API key> = $('<div>', { style: "margin-top: 5pt" }).appendTo(sectionAll); <API key> = $('<div>', { style: "margin-top: 5pt" }).appendTo(sectionAll); if( g_loggedInUser != null && ( ((activity.relation & present) > 0) || (activity.containsRelation() == false) ) ) { /* * show list for logged-in users */ refreshBatchEditor(activity); } var onSuccess = function(data){ <API key> = false; // update activity.relation by returned value var relationJson = data; activity.relation = parseInt(relationJson[g_keyRelation]); <API key>.empty(); <API key>.empty(); var value = <API key>(attendanceSwitch); if(!value) return; // assessed participants cannot edit or re-submit assessments refreshBatchEditor(activity); }; var onError = function(err){ <API key> = false; // reset switch status if updating attendance fails var value = <API key>(attendanceSwitch); var resetVal = !value; setBinarySwitch(attendanceSwitch, resetVal); }; var onClick = function(evt){ evt.preventDefault(); if(activity.relation == invalid) return; if(!activity.hasBegun()) { alert(ALERTS["activity_not_begun"]); return; } var value = <API key>(attendanceSwitch); var newVal = !value; setBinarySwitch(attendanceSwitch, newVal); attendance = activity.relation; if(newVal) attendance = present; else attendance = absent; updateAttendance(activity.id, attendance, onSuccess, onError); }; <API key>(attendanceSwitch, onClick); return <API key>; } function updateAttendance(activityId, attendance, onSuccess, onError){ // prototypes: onSuccess(data), onError(err) if(<API key>) return; var token = $.cookie(g_keyToken); if(token == null) return; var params={}; params[g_keyRelation] = attendance; params[g_keyToken] = token; params[g_keyActivityId] = activityId; <API key> = true; $.ajax({ type: "PUT", url: "/activity/mark", data: params, success: function(data, status, xhr) { if (isTokenExpired(data)) { logout(null); return; } onSuccess(data); }, error: function(xhr, status, err) { onError(err); } }); } function <API key>(row, participant, activity) { var btnView = $('<span>', { text: TITLES["view_assessment"], style: "display: inline; color: blue; margin-left: 5pt; cursor: pointer" }).appendTo(row); btnView.click(function(evt){ evt.preventDefault(); <API key>(participant.id, activity.id); }); } function <API key>(row, singleEditor, batchEditor) { var lock = $('<input>', { type: "checkbox", "class": "left" }).appendTo(row); var contentInput = $('<input>', { type: 'text' }).appendTo(row); contentInput.on("input paste keyup", singleEditor, function(evt){ evt.data.content = $(this).val(); }); lock.change({input: contentInput, editor: batchEditor}, function(evt){ var aInput = evt.data.input; var aBatchEditor = evt.data.editor; evt.preventDefault(); var checked = isChecked($(this)); if(!checked) { enableField(aInput); --g_lockedCount; if(g_btnSubmit != null) disableField(g_btnSubmit); } else { disableField(aInput); ++g_lockedCount; if(g_lockedCount >= (aBatchEditor.editors.length - 1) && g_btnSubmit != null) enableField(g_btnSubmit); } }); singleEditor.lock = lock; } function refreshBatchEditor(activity) { if (!activity.hasBegun()) return; if(<API key> == null || <API key> == null || <API key> == null) return; var editors = <API key>(<API key>, activity, <API key>); <API key>.editors = editors; <API key>.empty(); if(!activity.containsRelation() || (activity.containsRelation() && (activity.relation & assessed) > 0) || <API key>.editors.length <= 1) return; <API key>(<API key>, activity, <API key>); }
<!DOCTYPE html PUBLIC "- <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="search.js"></script> </head> <body class="SRPage"> <div id="SRIndex"> <div class="SRStatus" id="Loading">Loading...</div> <div class="SRResult" id="SR_sa_5falarm"> <div class="SREntry"> <a id="Item0" onkeydown="return searchResults.Nav(event,0)" onkeypress="return searchResults.Nav(event,0)" onkeyup="return searchResults.Nav(event,0)" class="SRSymbol" href="../radiotftp_8c.html#<API key>" target="basefrm">sa_alarm</a> <span class="SRScope">radiotftp.c</span> </div> </div> <div class="SRResult" id="SR_sa_5fio"> <div class="SREntry"> <a id="Item1" onkeydown="return searchResults.Nav(event,1)" onkeypress="return searchResults.Nav(event,1)" onkeyup="return searchResults.Nav(event,1)" class="SRSymbol" href="../radiotftp_8c.html#<API key>" target="basefrm">sa_io</a> <span class="SRScope">radiotftp.c</span> </div> </div> <div class="SRResult" id="SR_serialportfd"> <div class="SREntry"> <a id="Item2" onkeydown="return searchResults.Nav(event,2)" onkeypress="return searchResults.Nav(event,2)" onkeyup="return searchResults.Nav(event,2)" class="SRSymbol" href="../radiotftp_8c.html#<API key>" target="basefrm">serialportFd</a> <span class="SRScope">radiotftp.c</span> </div> </div> <div class="SRResult" id="SR_signalcount"> <div class="SREntry"> <a id="Item3" onkeydown="return searchResults.Nav(event,3)" onkeypress="return searchResults.Nav(event,3)" onkeyup="return searchResults.Nav(event,3)" class="SRSymbol" href="../radiotftp_8c.html#<API key>" target="basefrm">signalCount</a> <span class="SRScope">radiotftp.c</span> </div> </div> <div class="SRResult" id="SR_src"> <div class="SREntry"> <a id="Item4" onkeydown="return searchResults.Nav(event,4)" onkeypress="return searchResults.Nav(event,4)" onkeyup="return searchResults.Nav(event,4)" class="SRSymbol" href="../structmessage__t.html#<API key>" target="basefrm">src</a> <span class="SRScope">message_t</span> </div> </div> <div class="SRResult" id="SR_src_5fport"> <div class="SREntry"> <a id="Item5" onkeydown="return searchResults.Nav(event,5)" onkeypress="return searchResults.Nav(event,5)" onkeyup="return searchResults.Nav(event,5)" class="SRSymbol" href="../structmessage__t.html#<API key>" target="basefrm">src_port</a> <span class="SRScope">message_t</span> </div> </div> <div class="SRResult" id="SR_syncword"> <div class="SREntry"> <a id="Item6" onkeydown="return searchResults.Nav(event,6)" onkeypress="return searchResults.Nav(event,6)" onkeyup="return searchResults.Nav(event,6)" class="SRSymbol" href="../radiotftp_8c.html#<API key>" target="basefrm">syncword</a> <span class="SRScope">radiotftp.c</span> </div> </div> <div class="SRStatus" id="Searching">Searching...</div> <div class="SRStatus" id="NoMatches">No Matches</div> <script type="text/javascript"><! document.getElementById("Loading").style.display="none"; document.getElementById("NoMatches").style.display="none"; var searchResults = new SearchResults("searchResults"); searchResults.Search(); --></script> </div> </body> </html>
fluency ==== An HTML, CSS, and Javascript framework for interactive video produced <a href="http://interactivedocs.com" target="_blank">Interactive Docs</a>. Check out the <a href="http://interactivedocs.com/fluency.html" target="_blank">documentation</a> on our website. To run locally [npm](https: <h3>Road map</h3> The first hackathon on October 18th was hugely successful! We now have the foundation for an interactive video framework. Feel free to submit pull-requests with additional features, but we're currently refactoring all the code that was merged into a more intuitive structure, restyling the components to match the visual style of Fluency, and adding additional functionality to the framework. We have an internal feature wish list that we'll share once we push this initial refactor to the repo. The subsequent feature set will include (but is not limited to!) screen transitions, parallax, and a wizard for webvtt. More hack days to come!
/* $Id: get_attachments.c,v 1.13 2015/07/20 10:35:53 tm Exp $ * * PDFlib TET sample application. * * PDF text extractor which also searches PDF file attachments. * The file attachments may be attached to the document or * to page-level annotations of type FileAttachment. The former construct * also covers PDF 1.7 packages (a.k.a. PDF collections). * * Nested attachments (file attachments within file attachments, * or nested PDF packages) all embedded files are processed recursively. */ #include <stdio.h> #include <string.h> #include "tetlib.h" /* global option list */ static const char *globaloptlist = "searchpath={{../data} " "{../../../resource/cmap}}"; /* document-specific option list */ static const char *docoptlist = ""; /* page-specific option list */ static const char *pageoptlist = "granularity=page"; /* separator to emit after each chunk of text. This depends on the * application's needs; for granularity=word a space character may be useful. */ #define SEPARATOR "\n" /* Extract text from a document for which a TET handle is already available */ static void extract_text(TET *tet, int doc, FILE *outfp) { int n_pages; volatile int pageno = 0; /* get number of pages in the document */ n_pages = (int) TET_pcos_get_number(tet, doc, "length:pages"); /* loop over all pages */ for (pageno = 1; pageno <= n_pages; ++pageno) { const char *text; int page; int len; page = TET_open_page(tet, doc, pageno, pageoptlist); if (page == -1) { fprintf(stderr, "Error %d in %s() on page %d: %s\n", TET_get_errnum(tet), TET_get_apiname(tet), pageno, TET_get_errmsg(tet)); continue; /* try next page */ } /* Retrieve all text fragments; This loop is actually not required * for granularity=page, but must be used for other granularities. */ while ((text = TET_get_text(tet, page, &len)) != 0) { fprintf(outfp, "%s", text); /* print the retrieved text */ /* print a separator between chunks of text */ fprintf(outfp, SEPARATOR); } if (TET_get_errnum(tet) != 0) { fprintf(stderr, "Error %d in %s() on page %d: %s\n", TET_get_errnum(tet), TET_get_apiname(tet), pageno, TET_get_errmsg(tet)); } TET_close_page(tet, page); } } /* Open a named physical or virtual file, extract the text from it, search for document or page attachments, and process these recursively. Either filename must be supplied for physical files, or data+length from which a virtual file will be created. The caller cannot create the PVF file since we create a new TET object here in case an exception happens with the embedded document - the caller can happily continue with his TET object even in case of an exception here. */ static int process_document(FILE *outfp, const char *filename, const char *realname, const unsigned char *data, int length) { TET *tet; if ((tet = TET_new()) == (TET *) 0) { fprintf(stderr, "extractor: out of memory\n"); return(4); } TET_TRY (tet) { const char *pvfname = "/pvf/attachment"; int doc; int file, filecount; int page, pagecount; const unsigned char *attdata; int attlength; int objtype; /* Construct a PVF file if data instead of a filename was provided */ if (!filename) { TET_create_pvf(tet, pvfname, 0, data, length, ""); filename = pvfname; } TET_set_option(tet, globaloptlist); doc = TET_open_document(tet, filename, 0, docoptlist); if (doc == -1) { fprintf(stderr, "Error %d in %s() (source: attachment '%s'): %s\n", TET_get_errnum(tet), TET_get_apiname(tet), realname, TET_get_errmsg(tet)); TET_EXIT_TRY(tet); TET_delete(tet); return(5); } extract_text(tet, doc, outfp); /* Get the number of document-level file attachments. */ filecount = (int) TET_pcos_get_number(tet, doc, "length:names/EmbeddedFiles"); for (file = 0; file < filecount; file++) { const char *attname; /* fetch the name of the file attachment; check for Unicode file * name (a PDF 1.7 feature) */ objtype = (int) TET_pcos_get_number(tet, doc, "type:names/EmbeddedFiles[%d]/UF", file); if (objtype == pcos_ot_string) { attname = TET_pcos_get_string(tet, doc, "names/EmbeddedFiles[%d]/UF", file); } else { /* fetch the name of the file attachment */ objtype = (int) TET_pcos_get_number(tet, doc, "type:names/EmbeddedFiles[%d]/F", file); if (objtype == pcos_ot_string) { attname = TET_pcos_get_string(tet, doc, "names/EmbeddedFiles[%d]/F", file); } else { attname = "(unnamed)"; } } fprintf(outfp, "\n /* fetch the contents of the file attachment and process it */ objtype = (int) TET_pcos_get_number(tet, doc, "type:names/EmbeddedFiles[%d]/EF/F", file); if (objtype == pcos_ot_stream) { attdata = TET_pcos_get_stream(tet, doc, &attlength, "", "names/EmbeddedFiles[%d]/EF/F", file); (void) process_document(outfp, 0, attname, attdata, attlength); } } pagecount = (int) TET_pcos_get_number(tet, doc, "length:pages"); /* Check all pages for annotations of type FileAttachment */ for (page = 0; page < pagecount; page++) { int annot, annotcount; annotcount = (int) TET_pcos_get_number(tet, doc, "length:pages[%d]/Annots", page); for (annot = 0; annot < annotcount; annot++) { const char *val; char attname[128]; val = TET_pcos_get_string(tet, doc, "pages[%d]/Annots[%d]/Subtype", page, annot); sprintf(attname, "page %d, annotation %d", page+1, annot+1); if (!strcmp(val, "FileAttachment")) { /* fetch the contents of the attachment and process it */ objtype = (int) TET_pcos_get_number(tet, doc, "type:pages[%d]/Annots[%d]/FS/EF/F", page, annot); if (objtype == pcos_ot_stream) { attdata = TET_pcos_get_stream(tet, doc, &attlength, "", "pages[%d]/Annots[%d]/FS/EF/F", page, annot); (void) process_document(outfp, 0, attname, attdata, attlength); } } } } TET_close_document(tet, doc); /* If there was no PVF file deleting it won't do any harm */ TET_delete_pvf(tet, pvfname, 0); } TET_CATCH (tet) { fprintf(stderr, "Error %d in %s() (source: attachment '%s'): %s\n", TET_get_errnum(tet), TET_get_apiname(tet), realname, TET_get_errmsg(tet)); } TET_delete(tet); return(0); } int main(int argc, char **argv) { FILE *outfp; int ret = 0; if (argc != 3) { fprintf(stderr, "usage: %s <infilename> <outfilename>\n", argv[0]); return(2); } if ((outfp = fopen(argv[2], "w")) == NULL) { fprintf(stderr, "Error: couldn't open output file '%s'\n", argv[2]); return(3); } ret = process_document(outfp, argv[1], argv[1], 0, 0); fclose(outfp); return ret; }
# -*- coding: utf-8 -*- require 'spec_helper' describe RailwayCompany do describe :import do let(:file_path) do tempfile = Tempfile.new('railway_companies.csv') tempfile << <<EOS company_cd,rr_cd,company_name,company_name_k,company_name_h,company_name_r,company_url,company_type,e_status,e_sort 1,11,JR,,,JR,http: 2,11,JR,,,JR,http: 3,11,JR,,,JR,http://jr-central.co.jp/,1,0,3 4,11,JR,,,JR,http: 5,11,JR,,,JR,http: 6,11,JR,,,JR,http: EOS tempfile.close return tempfile.path end before do RailwayCompany.import(file_path) end describe :imported_count do subject { RailwayCompany.pluck(:id) } it { should match_array [1, 2, 3] } end describe :first_company do subject { RailwayCompany.find(1) } its(:name) { should eq 'JR' } its(:railway_id) { should eq 11 } its(:kana_name) { should eq '' } its(:official_name) { should eq '' } its(:abbreviated_name) { should eq 'JR' } its(:url) { should eq 'http: its(:company_type) { should eq 1 } its(:sort) { should eq 1 } end end end
<?php namespace PHPSpec\Runner\Formatter; use \PHPSpec\Runner\Reporter; class Factory { /** * Available formatters * * @var array */ protected $_formatters = array( 'p' => 'Progress', 'd' => 'Documentation', 'h' => 'Html', 'j' => 'Junit' ); /** * Creates a formatter class, looks for built in and returns custom one if * one is not found * * @param string $formatter * @param \PHPSpec\Runner\Reporter $reporter * @return \PHPSpec\Runner\Formatter */ public function create($formatter, Reporter $reporter) { if (in_array($formatter, array_keys($this->_formatters)) || in_array(ucfirst($formatter), array_values($this->_formatters))) { $formatter = $this->_formatters[strtolower($formatter[0])]; $formatterClass = '\PHPSpec\Runner\Formatter\\' . $formatter; return new $formatterClass($reporter); } return new $formatter; } }
package framework.org.json; import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.Map; /** * A JSONArray is an ordered sequence of values. Its external text form is a * string wrapped in square brackets with commas separating the values. The * internal form is an object having <code>get</code> and <code>opt</code> * methods for accessing the values by index, and <code>put</code> methods for * adding or replacing values. The values can be any of these types: * <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>, * <code>Number</code>, <code>String</code>, or the * <code>JSONObject.NULL object</code>. * <p> * The constructor can convert a JSON text into a Java object. The * <code>toString</code> method converts to JSON text. * <p> * A <code>get</code> method returns a value if one can be found, and throws an * exception if one cannot be found. An <code>opt</code> method returns a * default value instead of throwing an exception, and so is useful for * obtaining optional values. * <p> * The generic <code>get()</code> and <code>opt()</code> methods return an * object which you can cast or query for type. There are also typed * <code>get</code> and <code>opt</code> methods that do type checking and type * coercion for you. * <p> * The texts produced by the <code>toString</code> methods strictly conform to * JSON syntax rules. The constructors are more forgiving in the texts they will * accept: * <ul> * <li>An extra <code>,</code>&nbsp;<small>(comma)</small> may appear just * before the closing bracket.</li> * <li>The <code>null</code> value will be inserted when there is <code>,</code> * &nbsp;<small>(comma)</small> elision.</li> * <li>Strings may be quoted with <code>'</code>&nbsp;<small>(single * quote)</small>.</li> * <li>Strings do not need to be quoted at all if they do not begin with a quote * or single quote, and if they do not contain leading or trailing spaces, and * if they do not contain any of these characters: * <code>{ } [ ] / \ : , #</code> and if they do not look like numbers and * if they are not the reserved words <code>true</code>, <code>false</code>, or * <code>null</code>.</li> * </ul> * * @author JSON.org * @version 2014-05-03 */ public class JSONArray { /** * The arrayList where the JSONArray's properties are kept. */ private final ArrayList<Object> myArrayList; /** * Construct an empty JSONArray. */ public JSONArray() { this.myArrayList = new ArrayList<Object>(); } /** * Construct a JSONArray from a JSONTokener. * * @param x * A JSONTokener * @throws JSONException * If there is a syntax error. */ public JSONArray(JSONTokener x) throws JSONException { this(); if (x.nextClean() != '[') { throw x.syntaxError("A JSONArray text must start with '['"); } if (x.nextClean() != ']') { x.back(); for (;;) { if (x.nextClean() == ',') { x.back(); this.myArrayList.add(JSONObject.NULL); } else { x.back(); this.myArrayList.add(x.nextValue()); } switch (x.nextClean()) { case ',': if (x.nextClean() == ']') { return; } x.back(); break; case ']': return; default: throw x.syntaxError("Expected a ',' or ']'"); } } } } /** * Construct a JSONArray from a source JSON text. * * @param source * A string that begins with <code>[</code>&nbsp;<small>(left * bracket)</small> and ends with <code>]</code> * &nbsp;<small>(right bracket)</small>. * @throws JSONException * If there is a syntax error. */ public JSONArray(String source) throws JSONException { this(new JSONTokener(source)); } /** * Construct a JSONArray from a Collection. * * @param collection * A Collection. */ public JSONArray(Collection<Object> collection) { this.myArrayList = new ArrayList<Object>(); if (collection != null) { Iterator<Object> iter = collection.iterator(); while (iter.hasNext()) { this.myArrayList.add(JSONObject.wrap(iter.next())); } } } /** * Construct a JSONArray from an array * * @throws JSONException * If not an array. */ public JSONArray(Object array) throws JSONException { this(); if (array.getClass().isArray()) { int length = Array.getLength(array); for (int i = 0; i < length; i += 1) { this.put(JSONObject.wrap(Array.get(array, i))); } } else { throw new JSONException( "JSONArray initial value should be a string or collection or array."); } } /** * Get the object value associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return An object value. * @throws JSONException * If there is no value for the index. */ public Object get(int index) throws JSONException { Object object = this.opt(index); if (object == null) { throw new JSONException("JSONArray[" + index + "] not found."); } return object; } /** * Get the boolean value associated with an index. The string values "true" * and "false" are converted to boolean. * * @param index * The index must be between 0 and length() - 1. * @return The truth. * @throws JSONException * If there is no value for the index or if the value is not * convertible to boolean. */ public boolean getBoolean(int index) throws JSONException { Object object = this.get(index); if (object.equals(Boolean.FALSE) || (object instanceof String && ((String) object) .equalsIgnoreCase("false"))) { return false; } else if (object.equals(Boolean.TRUE) || (object instanceof String && ((String) object) .equalsIgnoreCase("true"))) { return true; } throw new JSONException("JSONArray[" + index + "] is not a boolean."); } /** * Get the double value associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return The value. * @throws JSONException * If the key is not found or if the value cannot be converted * to a number. */ public double getDouble(int index) throws JSONException { Object object = this.get(index); try { return object instanceof Number ? ((Number) object).doubleValue() : Double.parseDouble((String) object); } catch (Exception e) { throw new JSONException("JSONArray[" + index + "] is not a number."); } } /** * Get the int value associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return The value. * @throws JSONException * If the key is not found or if the value is not a number. */ public int getInt(int index) throws JSONException { Object object = this.get(index); try { return object instanceof Number ? ((Number) object).intValue() : Integer.parseInt((String) object); } catch (Exception e) { throw new JSONException("JSONArray[" + index + "] is not a number."); } } /** * Get the JSONArray associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return A JSONArray value. * @throws JSONException * If there is no value for the index. or if the value is not a * JSONArray */ public JSONArray getJSONArray(int index) throws JSONException { Object object = this.get(index); if (object instanceof JSONArray) { return (JSONArray) object; } throw new JSONException("JSONArray[" + index + "] is not a JSONArray."); } /** * Get the JSONObject associated with an index. * * @param index * subscript * @return A JSONObject value. * @throws JSONException * If there is no value for the index or if the value is not a * JSONObject */ public JSONObject getJSONObject(int index) throws JSONException { Object object = this.get(index); if (object instanceof JSONObject) { return (JSONObject) object; } throw new JSONException("JSONArray[" + index + "] is not a JSONObject."); } /** * Get the long value associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return The value. * @throws JSONException * If the key is not found or if the value cannot be converted * to a number. */ public long getLong(int index) throws JSONException { Object object = this.get(index); try { return object instanceof Number ? ((Number) object).longValue() : Long.parseLong((String) object); } catch (Exception e) { throw new JSONException("JSONArray[" + index + "] is not a number."); } } /** * Get the string associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return A string value. * @throws JSONException * If there is no string value for the index. */ public String getString(int index) throws JSONException { Object object = this.get(index); if (object instanceof String) { return (String) object; } throw new JSONException("JSONArray[" + index + "] not a string."); } /** * Determine if the value is null. * * @param index * The index must be between 0 and length() - 1. * @return true if the value at the index is null, or if there is no value. */ public boolean isNull(int index) { return JSONObject.NULL.equals(this.opt(index)); } /** * Make a string from the contents of this JSONArray. The * <code>separator</code> string is inserted between each element. Warning: * This method assumes that the data structure is acyclical. * * @param separator * A string that will be inserted between the elements. * @return a string. * @throws JSONException * If the array contains an invalid number. */ public String join(String separator) throws JSONException { int len = this.length(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < len; i += 1) { if (i > 0) { sb.append(separator); } sb.append(JSONObject.valueToString(this.myArrayList.get(i))); } return sb.toString(); } /** * Get the number of elements in the JSONArray, included nulls. * * @return The length (or size). */ public int length() { return this.myArrayList.size(); } /** * Get the optional object value associated with an index. * * @param index * The index must be between 0 and length() - 1. * @return An object value, or null if there is no object at that index. */ public Object opt(int index) { return (index < 0 || index >= this.length()) ? null : this.myArrayList .get(index); } /** * Get the optional boolean value associated with an index. It returns false * if there is no value at that index, or if the value is not Boolean.TRUE * or the String "true". * * @param index * The index must be between 0 and length() - 1. * @return The truth. */ public boolean optBoolean(int index) { return this.optBoolean(index, false); } /** * Get the optional boolean value associated with an index. It returns the * defaultValue if there is no value at that index or if it is not a Boolean * or the String "true" or "false" (case insensitive). * * @param index * The index must be between 0 and length() - 1. * @param defaultValue * A boolean default. * @return The truth. */ public boolean optBoolean(int index, boolean defaultValue) { try { return this.getBoolean(index); } catch (Exception e) { return defaultValue; } } /** * Get the optional double value associated with an index. NaN is returned * if there is no value for the index, or if the value is not a number and * cannot be converted to a number. * * @param index * The index must be between 0 and length() - 1. * @return The value. */ public double optDouble(int index) { return this.optDouble(index, Double.NaN); } /** * Get the optional double value associated with an index. The defaultValue * is returned if there is no value for the index, or if the value is not a * number and cannot be converted to a number. * * @param index * subscript * @param defaultValue * The default value. * @return The value. */ public double optDouble(int index, double defaultValue) { try { return this.getDouble(index); } catch (Exception e) { return defaultValue; } } /** * Get the optional int value associated with an index. Zero is returned if * there is no value for the index, or if the value is not a number and * cannot be converted to a number. * * @param index * The index must be between 0 and length() - 1. * @return The value. */ public int optInt(int index) { return this.optInt(index, 0); } /** * Get the optional int value associated with an index. The defaultValue is * returned if there is no value for the index, or if the value is not a * number and cannot be converted to a number. * * @param index * The index must be between 0 and length() - 1. * @param defaultValue * The default value. * @return The value. */ public int optInt(int index, int defaultValue) { try { return this.getInt(index); } catch (Exception e) { return defaultValue; } } /** * Get the optional JSONArray associated with an index. * * @param index * subscript * @return A JSONArray value, or null if the index has no value, or if the * value is not a JSONArray. */ public JSONArray optJSONArray(int index) { Object o = this.opt(index); return o instanceof JSONArray ? (JSONArray) o : null; } /** * Get the optional JSONObject associated with an index. Null is returned if * the key is not found, or null if the index has no value, or if the value * is not a JSONObject. * * @param index * The index must be between 0 and length() - 1. * @return A JSONObject value. */ public JSONObject optJSONObject(int index) { Object o = this.opt(index); return o instanceof JSONObject ? (JSONObject) o : null; } /** * Get the optional long value associated with an index. Zero is returned if * there is no value for the index, or if the value is not a number and * cannot be converted to a number. * * @param index * The index must be between 0 and length() - 1. * @return The value. */ public long optLong(int index) { return this.optLong(index, 0); } /** * Get the optional long value associated with an index. The defaultValue is * returned if there is no value for the index, or if the value is not a * number and cannot be converted to a number. * * @param index * The index must be between 0 and length() - 1. * @param defaultValue * The default value. * @return The value. */ public long optLong(int index, long defaultValue) { try { return this.getLong(index); } catch (Exception e) { return defaultValue; } } /** * Get the optional string value associated with an index. It returns an * empty string if there is no value at that index. If the value is not a * string and is not null, then it is coverted to a string. * * @param index * The index must be between 0 and length() - 1. * @return A String value. */ public String optString(int index) { return this.optString(index, ""); } /** * Get the optional string associated with an index. The defaultValue is * returned if the key is not found. * * @param index * The index must be between 0 and length() - 1. * @param defaultValue * The default value. * @return A String value. */ public String optString(int index, String defaultValue) { Object object = this.opt(index); return JSONObject.NULL.equals(object) ? defaultValue : object .toString(); } /** * Append a boolean value. This increases the array's length by one. * * @param value * A boolean value. * @return this. */ public JSONArray put(boolean value) { this.put(value ? Boolean.TRUE : Boolean.FALSE); return this; } /** * Put a value in the JSONArray, where the value will be a JSONArray which * is produced from a Collection. * * @param value * A Collection value. * @return this. */ public JSONArray put(Collection<Object> value) { this.put(new JSONArray(value)); return this; } /** * Append a double value. This increases the array's length by one. * * @param value * A double value. * @throws JSONException * if the value is not finite. * @return this. */ public JSONArray put(double value) throws JSONException { Double d = new Double(value); JSONObject.testValidity(d); this.put(d); return this; } /** * Append an int value. This increases the array's length by one. * * @param value * An int value. * @return this. */ public JSONArray put(int value) { this.put(new Integer(value)); return this; } /** * Append an long value. This increases the array's length by one. * * @param value * A long value. * @return this. */ public JSONArray put(long value) { this.put(new Long(value)); return this; } /** * Put a value in the JSONArray, where the value will be a JSONObject which * is produced from a Map. * * @param value * A Map value. * @return this. */ public JSONArray put(Map<String, Object> value) { this.put(new JSONObject(value)); return this; } /** * Append an object value. This increases the array's length by one. * * @param value * An object value. The value should be a Boolean, Double, * Integer, JSONArray, JSONObject, Long, or String, or the * JSONObject.NULL object. * @return this. */ public JSONArray put(Object value) { this.myArrayList.add(value); return this; } /** * Put or replace a boolean value in the JSONArray. If the index is greater * than the length of the JSONArray, then null elements will be added as * necessary to pad it out. * * @param index * The subscript. * @param value * A boolean value. * @return this. * @throws JSONException * If the index is negative. */ public JSONArray put(int index, boolean value) throws JSONException { this.put(index, value ? Boolean.TRUE : Boolean.FALSE); return this; } /** * Put a value in the JSONArray, where the value will be a JSONArray which * is produced from a Collection. * * @param index * The subscript. * @param value * A Collection value. * @return this. * @throws JSONException * If the index is negative or if the value is not finite. */ public JSONArray put(int index, Collection<Object> value) throws JSONException { this.put(index, new JSONArray(value)); return this; } /** * Put or replace a double value. If the index is greater than the length of * the JSONArray, then null elements will be added as necessary to pad it * out. * * @param index * The subscript. * @param value * A double value. * @return this. * @throws JSONException * If the index is negative or if the value is not finite. */ public JSONArray put(int index, double value) throws JSONException { this.put(index, new Double(value)); return this; } /** * Put or replace an int value. If the index is greater than the length of * the JSONArray, then null elements will be added as necessary to pad it * out. * * @param index * The subscript. * @param value * An int value. * @return this. * @throws JSONException * If the index is negative. */ public JSONArray put(int index, int value) throws JSONException { this.put(index, new Integer(value)); return this; } /** * Put or replace a long value. If the index is greater than the length of * the JSONArray, then null elements will be added as necessary to pad it * out. * * @param index * The subscript. * @param value * A long value. * @return this. * @throws JSONException * If the index is negative. */ public JSONArray put(int index, long value) throws JSONException { this.put(index, new Long(value)); return this; } /** * Put a value in the JSONArray, where the value will be a JSONObject that * is produced from a Map. * * @param index * The subscript. * @param value * The Map value. * @return this. * @throws JSONException * If the index is negative or if the the value is an invalid * number. */ public JSONArray put(int index, Map<String, Object> value) throws JSONException { this.put(index, new JSONObject(value)); return this; } /** * Put or replace an object value in the JSONArray. If the index is greater * than the length of the JSONArray, then null elements will be added as * necessary to pad it out. * * @param index * The subscript. * @param value * The value to put into the array. The value should be a * Boolean, Double, Integer, JSONArray, JSONObject, Long, or * String, or the JSONObject.NULL object. * @return this. * @throws JSONException * If the index is negative or if the the value is an invalid * number. */ public JSONArray put(int index, Object value) throws JSONException { JSONObject.testValidity(value); if (index < 0) { throw new JSONException("JSONArray[" + index + "] not found."); } if (index < this.length()) { this.myArrayList.set(index, value); } else { while (index != this.length()) { this.put(JSONObject.NULL); } this.put(value); } return this; } /** * Remove an index and close the hole. * * @param index * The index of the element to be removed. * @return The value that was associated with the index, or null if there * was no value. */ public Object remove(int index) { return index >= 0 && index < this.length() ? this.myArrayList.remove(index) : null; } /** * Determine if two JSONArrays are similar. * They must contain similar sequences. * * @param other The other JSONArray * @return true if they are equal */ public boolean similar(Object other) { if (!(other instanceof JSONArray)) { return false; } int len = this.length(); if (len != ((JSONArray)other).length()) { return false; } for (int i = 0; i < len; i += 1) { Object valueThis = this.get(i); Object valueOther = ((JSONArray)other).get(i); if (valueThis instanceof JSONObject) { if (!((JSONObject)valueThis).similar(valueOther)) { return false; } } else if (valueThis instanceof JSONArray) { if (!((JSONArray)valueThis).similar(valueOther)) { return false; } } else if (!valueThis.equals(valueOther)) { return false; } } return true; } /** * Produce a JSONObject by combining a JSONArray of names with the values of * this JSONArray. * * @param names * A JSONArray containing a list of key strings. These will be * paired with the values. * @return A JSONObject, or null if there are no names or if this JSONArray * has no values. * @throws JSONException * If any of the names are null. */ public JSONObject toJSONObject(JSONArray names) throws JSONException { if (names == null || names.length() == 0 || this.length() == 0) { return null; } JSONObject jo = new JSONObject(); for (int i = 0; i < names.length(); i += 1) { jo.put(names.getString(i), this.opt(i)); } return jo; } /** * Make a JSON text of this JSONArray. For compactness, no unnecessary * whitespace is added. If it is not possible to produce a syntactically * correct JSON text then null will be returned instead. This could occur if * the array contains an invalid number. * <p> * Warning: This method assumes that the data structure is acyclical. * * @return a printable, displayable, transmittable representation of the * array. */ public String toString() { try { return this.toString(0); } catch (Exception e) { return null; } } /** * Make a prettyprinted JSON text of this JSONArray. Warning: This method * assumes that the data structure is acyclical. * * @param indentFactor * The number of spaces to add to each level of indentation. * @return a printable, displayable, transmittable representation of the * object, beginning with <code>[</code>&nbsp;<small>(left * bracket)</small> and ending with <code>]</code> * &nbsp;<small>(right bracket)</small>. * @throws JSONException */ public String toString(int indentFactor) throws JSONException { StringWriter sw = new StringWriter(); synchronized (sw.getBuffer()) { return this.write(sw, indentFactor, 0).toString(); } } /** * Write the contents of the JSONArray as JSON text to a writer. For * compactness, no whitespace is added. * <p> * Warning: This method assumes that the data structure is acyclical. * * @return The writer. * @throws JSONException */ public Writer write(Writer writer) throws JSONException { return this.write(writer, 0, 0); } /** * Write the contents of the JSONArray as JSON text to a writer. For * compactness, no whitespace is added. * <p> * Warning: This method assumes that the data structure is acyclical. * * @param indentFactor * The number of spaces to add to each level of indentation. * @param indent * The indention of the top level. * @return The writer. * @throws JSONException */ Writer write(Writer writer, int indentFactor, int indent) throws JSONException { try { boolean commanate = false; int length = this.length(); writer.write('['); if (length == 1) { JSONObject.writeValue(writer, this.myArrayList.get(0), indentFactor, indent); } else if (length != 0) { final int newindent = indent + indentFactor; for (int i = 0; i < length; i += 1) { if (commanate) { writer.write(','); } if (indentFactor > 0) { writer.write('\n'); } JSONObject.indent(writer, newindent); JSONObject.writeValue(writer, this.myArrayList.get(i), indentFactor, newindent); commanate = true; } if (indentFactor > 0) { writer.write('\n'); } JSONObject.indent(writer, indent); } writer.write(']'); return writer; } catch (IOException e) { throw new JSONException(e); } } }
#include "<API key>.h" using namespace json; json::<API key>::<API key>() {} std::map<std::string, std::function<json::<API key>*()> > json::<API key>::dictionary;
# -*- coding: utf-8 -*- import pack_command import pack_command_python import timeit import cProfile import pstats import pycallgraph def format_time(seconds): v = seconds if v * 1000 * 1000 * 1000 < 1000: scale = u'ns' v = int(round(v*1000*1000*1000)) elif v * 1000 * 1000 < 1000: scale = u'μs' v = int(round(v*1000*1000)) elif v * 1000 < 1000: scale = u'ms' v = round(v*1000, 4) else: scale = u'sec' v = int(v) return u'{} {}'.format(v, scale) # profiler size number = 100000 sample = 7 # profiler type profile = False graph = False timer = True def runit(): pack_command.pack_command("ZADD", "foo", 1369198341, 10000) def runitp(): pack_command_python.pack_command("ZADD", "foo", 1369198341, 10000) if profile: pr = cProfile.Profile() pr.enable() if graph: pycallgraph.start_trace() if timer: for name, t in (("Python", runitp), ("cython", runit)): res = timeit.Timer(t).repeat(sample, number) min_run = min(res) per_loop = min_run/number print u'{}'.format(name) print u'{} total run'.format(format_time(min_run)) print u'{} per/loop'.format(format_time(per_loop)) #print u'{} per/friend'.format(format_time(per_loop/friends_cnt)) else: for j in xrange(number): runit() if graph: pycallgraph.make_dot_graph('example.png') if profile: pr.disable() ps = pstats.Stats(pr) sort_by = 'cumulative' ps.strip_dirs().sort_stats(sort_by).print_stats(20)
namespace Catel { using IoC; using Runtime.Serialization.Json; <summary> Core module which allows the registration of default services in the service locator. </summary> public class <API key> : <API key> { #region Methods <summary> Initializes the specified service locator. </summary> <param name="serviceLocator">The service locator.</param> public void Initialize(IServiceLocator serviceLocator) { Argument.IsNotNull(() => serviceLocator); serviceLocator.RegisterType<IJsonSerializer, JsonSerializer>(); } #endregion } }
var fs = require('fs'); var mysql = require('mysql'); var qs = require('querystring'); var express = require('express'); var config = JSON.parse(fs.readFileSync(__dirname+'/config.json', 'UTF-8')); // Keep a persistant connection to the database (reconnect after an error or disconnect) if (typeof config.databaseConnection == 'undefined' || typeof config.databaseConnection.retryMinTimeout == 'undefined') config.databaseConnection = {retryMinTimeout: 2000, retryMaxTimeout: 60000}; var connection, retryTimeout = config.databaseConnection.retryMinTimeout; function <API key>(){ connection = mysql.createConnection(config.database); connection.connect( function (err){ if (err){ console.log('Error connecting to database: '+err.code); setTimeout(<API key>, retryTimeout); console.log('Retrying in '+(retryTimeout / 1000)+' seconds'); if (retryTimeout < config.databaseConnection.retryMaxTimeout) retryTimeout += 1000; } else{ retryTimeout = config.databaseConnection.retryMinTimeout; console.log('Connected to database'); } }); connection.on('error', function (err){ console.log('Database error: '+err.code); if (err.code === '<API key>') <API key>(); }); } //<API key>(); var app = express(); // Deliver the base template of SPA app.get('/', function (req, res){ res.send(loadTemplatePart('base.html', req)); }); app.get('/images/:id', function (req, res){ res.send(dataStore.images); }); // Deliver static assets app.use('/static/', express.static('static')); // Below this point are URIs that are accesible from outside, in REST API calls app.use(function(req, res, next){ res.header("<API key>", "*"); res.header("<API key>", "Origin, X-Requested-With, Content-Type, Accept"); next(); }); // API Endpoint to receive data var dataStore = {}; app.post('/api/put', function (req, res){ // Needs to authenticate the RPi module handlePost(req, function(data){ //console.log(data); for (var i = 0; i < 4; i++){ //var img = Buffer.from(, 'base64'); fs.writeFile('./static/images/'+data.id+'/'+i+'.png', 'data:image/png;base64,'+data.images[i], function(err){ if (err) console.log(err); } ); } //dataStore[data.id] = data; dataStore = data; res.send('ok'); }); }); app.listen(config.listenPort, function (){ console.log('RainCatcher server is listening on port '+config.listenPort); }); // Handler for multipart POST request/response body function handlePost(req, callback){ var body = ''; req.on('data', function (data){ body += data; if (body.length > 1e8) req.connection.destroy(); }); req.on('end', function (data){ var post = body; try{ post = JSON.parse(post); } catch(e){ try{ post = qs.parse(post); } catch(e){} } callback(post); }); } function loadTemplatePart(template, req){ try{ return fs.readFileSync('./templates/'+template, 'utf8'); } catch(e){ return '<h2>Page Not Found</h2>'; } } Date.prototype.sqlFormatted = function() { var yyyy = this.getFullYear().toString(); var mm = (this.getMonth()+1).toString(); var dd = this.getDate().toString(); return yyyy +'-'+ (mm[1]?mm:"0"+mm[0]) +'-'+ (dd[1]?dd:"0"+dd[0]); }; function isset(obj){ return typeof obj != 'undefined'; }
import SuccessPage from '../index'; import expect from 'expect'; import { shallow } from 'enzyme'; import React from 'react'; describe('<SuccessPage />', () => { });
/** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'lib/' }, // map tells the System loader where to look for things map: { // our app is within the app folder app: 'app', //Testing libraries //'@angular/core/testing': 'npm:@angular/core/bundles/core-testing.umd.js', //'@angular/common/testing': 'npm:@angular/common/bundles/common-testing.umd.js', //'@angular/compiler/testing': 'npm:@angular/compiler/bundles/compiler-testing.umd.js', //'@angular/platform-browser/testing': 'npm:@angular/platform-browser/bundles/<API key>.umd.js', //'@angular/<API key>/testing': 'npm:@angular/<API key>/bundles/<API key>.umd.js', //'@angular/http/testing': 'npm:@angular/http/bundles/http-testing.umd.js', //'@angular/router/testing': 'npm:@angular/router/bundles/router-testing.umd.js', //'@angular/forms/testing': 'npm:@angular/forms/bundles/forms-testing.umd.js', // angular bundles '@angular/core': 'npm:@angular/core/bundles/core.umd.js', '@angular/common': 'npm:@angular/common/bundles/common.umd.js', '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', '@angular/<API key>': 'npm:@angular/<API key>/bundles/<API key>.umd.js', '@angular/http': 'npm:@angular/http/bundles/http.umd.js', '@angular/router': 'npm:@angular/router/bundles/router.umd.js', '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', // other libraries 'rxjs': 'npm:rxjs', '<API key>': 'npm:<API key>/bundles/in-memory-web-api.umd.js' }, // packages tells the System loader how to load when no filename and/or no extension packages: { app: { main: './main.js', defaultExtension: 'js' }, rxjs: { defaultExtension: 'js' } } }); })(this);
# SSISCookbook SSIS cookbook for the hurried developer Check out [the book](./main.pdf)
body { padding-top: 50px; } .navbar { margin-bottom:0px; } #content { margin-top: 20px; } footer { font-size: .9em;} * { margin: 0; } html, body { height: 100%; } #body_wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -50px; /* the bottom margin is the negative value of the footer's height */ } footer, .push { height: 50px; /* .push must be the same height as .footer */ }
<?php namespace Application\Core; use \DateTime; /** * The LogHandler handles writing and clearing logs */ class LogHandler { public static function clear() { $files = App::logs()->files(); foreach ($files as $file) { $file->remove(); } } public static function clean() { $files = App::logs()->files(); sort($files); $files_to_remove = count($files) - App::logLimit(); if($files_to_remove>0) { $i=0; while($i<$files_to_remove) { $files[$i]->remove(); ++$i; } } } /** * Writes a log * * @param StatusCode $err * @param string $additional */ public static function write($err, $additional = '') { $dt = new DateTime(); $file=App::logs()->file('log_'.$dt->format('Y-m-d').'.log'); $log=$dt->format('H:i:s')."\t".$err->status()."\t$additional\r\n"; if($file->exists()) { $file->append($log); } else { $file->write($log); } self::clean(); } }
//import {HttpClient} from 'aurelia-http-client'; import {ProjectApi} from "../components/projectapi"; import {Vfstorage} from '../components/vfstorage'; //import {bindable} from 'aurelia-framework'; export class Modulecontrol{ // @bindable classin = "w3-card-4 w3-sand w3-padding w3-margin w3-round"; constructor () { this.client=new HttpClient(); this.url=window.location.href; this.baseurl=Vfstorage.getBaseUrl() this.enabled=false; this.client.configure(config=> { config.withHeader('Accept', 'application/json'); config.withHeader('Content-Type', 'application/json'); }); } attached(){ //console.log("attached() url:"+this.url); this.client.get(this.baseurl+this.url) .then(response => this.okcallback(response)) .catch(error => this.failcallback(error)) } okcallback(response){ //console.log("okcallback()"); var res= JSON.parse(response.response); //console.log(res.enabled); this.enabled= res.enabled; } failcallback(error){ this.enabled=false; console.log('Sorry, error when connecting backend web service at '+this.url+' error:'+error.response+" status:"+error.statusText); } enable(){ this.client.post(this.baseurl+this.url) .then(response => this.okcallback(response)) .catch(error => this.failcallback(error)) } }
namespace CSReader.Command { <summary> </summary> public class HelpCommand : ICommand { public const string COMMAND_NAME = "help"; <summary> </summary> <returns></returns> public string Execute() { return @"usage: csr [command_name] [command_args] ..."; } } }
//of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //copies of the Software, and to permit persons to whom the Software is //furnished to do so, subject to the following conditions: //copies or substantial portions of the Software. //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //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. using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace Sharpend.UAP.Controls.Buttons { [TemplatePart(Name = IconButton.PART_Symbol,Type = typeof(SymbolIcon))] public class IconButton : Button { public const string PART_Symbol = "PART_Symbol"; //Symbol public Symbol Symbol { get { return (Symbol)GetValue(SymbolProperty); } set { SetValue(SymbolProperty, value); } } public static readonly DependencyProperty SymbolProperty = DependencyProperty.Register("Symbol", typeof(Symbol), typeof(IconButton), new PropertyMetadata(0, SymbolChanged)); //IconWidth public double IconWidth { get { return (double)GetValue(IconWidthProperty); } set { SetValue(IconWidthProperty, value); } } // Using a DependencyProperty as the backing store for IconWidth. This enables animation, styling, binding, etc... public static readonly DependencyProperty IconWidthProperty = DependencyProperty.Register("IconWidth", typeof(double), typeof(IconButton), new PropertyMetadata(15)); //IconHeight public double IconHeight { get { return (double)GetValue(IconHeightProperty); } set { SetValue(IconHeightProperty, value); } } // Using a DependencyProperty as the backing store for IconHeight. This enables animation, styling, binding, etc... public static readonly DependencyProperty IconHeightProperty = DependencyProperty.Register("IconHeight", typeof(double), typeof(IconButton), new PropertyMetadata(15)); //IconPadding public Thickness IconPadding { get { return (Thickness)GetValue(IconPaddingProperty); } set { SetValue(IconPaddingProperty, value); } } // Using a DependencyProperty as the backing store for IconPadding. This enables animation, styling, binding, etc... public static readonly DependencyProperty IconPaddingProperty = DependencyProperty.Register("IconPadding", typeof(Thickness), typeof(IconButton), new PropertyMetadata(new Thickness(0))); public IconButton() { } private static void SymbolChanged(DependencyObject d, <API key> e) { var btn = d as IconButton; if ((btn != null) && (btn.Content != null)) { var symbolIcon = (btn.Content as SymbolIcon); if (symbolIcon != null) { symbolIcon.Symbol = btn.Symbol; } } else if (btn != null) { var symbolIcon = btn.GetTemplateChild("PART_Symbol") as SymbolIcon; if (symbolIcon != null) { symbolIcon.Symbol = btn.Symbol; } } } protected override void OnApplyTemplate() { base.OnApplyTemplate(); var symbolIcon = GetTemplateChild(PART_Symbol) as SymbolIcon; if (symbolIcon == null) { symbolIcon = new SymbolIcon(); this.Content = symbolIcon; } symbolIcon.Symbol = this.Symbol; } } }
.aquaIvory6, .hover_aquaIvory6:hover, .active_aquaIvory6:active { -webkit-box-shadow: 0 0.63em 0.75em rgba(255, 232, 28, .39), inset 0 -0.5em 0.9em 0 #ffe282, inset 0 -0.5em 0em 0.65em rgb(232, 213, 0), inset 0 0em 0.5em 2em rgb(232, 224, 127); -moz-box-shadow: 0 0.63em 0.75em rgba(255, 232, 28, .39), inset 0 -0.5em 0.9em 0 #ffe282, inset 0 -0.5em 0em 0.65em rgb(232, 213, 0), inset 0 0em 0.5em 2em rgb(232, 224, 127); box-shadow: 0 0.63em 0.75em rgba(255, 232, 28, .39), inset 0 -0.5em 0.9em 0 #ffe282, inset 0 -0.5em 0em 0.65em rgb(232, 213, 0), inset 0 0em 0.5em 2em rgb(232, 224, 127); } .aquaIvory6h, .hover_aquaIvory6h:hover, .active_aquaIvory6h:active { -webkit-box-shadow:0 0.63em 1em rgba(255, 235, 53, .55), inset 0 -0.5em 0.9em 0 #ffeeb5, inset 0 -0.5em 0em 0.65em #fff04f, inset 0 0em 0.5em 2em #fdf7b7; -moz-box-shadow:0 0.63em 1em rgba(255, 235, 53, .55), inset 0 -0.5em 0.9em 0 #ffeeb5, inset 0 -0.5em 0em 0.65em #fff04f, inset 0 0em 0.5em 2em #fdf7b7; box-shadow:0 0.63em 1em rgba(255, 235, 53, .55), inset 0 -0.5em 0.9em 0 #ffeeb5, inset 0 -0.5em 0em 0.65em #fff04f, inset 0 0em 0.5em 2em #fdf7b7; } .aquaIvory6a, .hover_aquaIvory6a:hover, .active_aquaIvory6a:active { /*background: #cece00;*/ -webkit-box-shadow:0 0.63em 1em rgba(232, 209, 0, .55), inset 0 -0.5em 0.9em 0 #ffe89b, inset 0 -0.5em 0em 0.65em #ffec17, inset 0 0em 0.5em 2em #fff268; -moz-box-shadow:0 0.63em 1em rgba(232, 209, 0, .55), inset 0 -0.5em 0.9em 0 #ffe89b, inset 0 -0.5em 0em 0.65em #ffec17, inset 0 0em 0.5em 2em #fff268; box-shadow:0 0.63em 1em rgba(232, 209, 0, .55), inset 0 -0.5em 0.9em 0 #ffe89b, inset 0 -0.5em 0em 0.65em #ffec17, inset 0 0em 0.5em 2em #fff268; } .color_aquaIvory6, .<API key>:hover, .<API key>:active { color: #282828; } .color_aquaIvory6h, .<API key>:hover, .<API key>:active { color: #c8c8c8; } .color_aquaIvory6a, .<API key>:hover, .<API key>:active { color: #c8c8c8; } .border_aquaIvory6, .<API key>:hover, .<API key>:active { border-color: #cece00 #cece00 #cece00 #cece00; } .border_aquaIvory6h, .<API key>:hover, .<API key>:active { border-color: #cece00 #cece00 #cece00 #cece00; } .border_aquaIvory6a, .<API key>:hover, .<API key>:active { border-color: #cece00 #cece00 #cece00 #cece00; }
Given /^I am in the "(.*?)" directory$/ do |dir| @dir = dir @project = RemoteTerminal::Project.find(@dir) end When /^I get the path from my location$/ do @path = @project.path_from(@dir) end Then /^I should see "(.*?)"$/ do |path| @path.should be == path end When /^I get the path to my location$/ do @path = @project.path_to(@dir) end
require "test_helper" class FHeapTest < ActiveSupport::TestCase def setup @heap = FHeap.new end def setup_sample_heap @node_1 = @heap.insert!(1) @node_2 = @heap.insert!(2) @node_6 = @heap.insert!(6) @node_5 = @node_2.add_child!(5) @node_3 = @node_1.add_child!(3) @node_4 = @node_1.add_child!(4) @node_7 = @node_1.add_child!(7) @node_8 = @node_7.add_child!(8) @node_9 = @node_8.add_child!(9) assert_equal 3, @heap.trees.length assert_equal 1, @heap.min_node.value end test "min_node with no trees" do assert_nil @heap.min_node end test "insert updates min_node" do @heap.insert!(1) assert_equal 1, @heap.min_node.value @heap.insert!(2) assert_equal 1, @heap.min_node.value @heap.insert!(0) assert_equal 0, @heap.min_node.value end test "extract minimum (nothing in the heap)" do assert_nil @heap.extract_minimum! end test "extract minimum (one item in heap)" do @heap.insert!(1) assert_equal 1, @heap.extract_minimum!.value end test "extract minimum (calling after extracting the last node)" do @heap.insert!(1) assert_equal 1, @heap.extract_minimum!.value assert_nil @heap.extract_minimum! end test "extract minimum (restructures correctly)" do setup_sample_heap assert_equal 1, @heap.extract_minimum!.value assert_equal 2, @heap.min_node.value assert_equal ["(2 (5), (3 (6)))", "(4)", "(7 (8 (9)))"], @heap.to_s assert @node_2.root? assert @node_4.root? assert @node_7.root? assert_equal @node_2, @node_5.root assert_equal @node_2, @node_3.root assert_equal @node_2, @node_6.root assert_equal @node_7, @node_8.root assert_equal @node_7, @node_9.root assert_equal @node_2, @node_2.parent assert_equal @node_4, @node_4.parent assert_equal @node_7, @node_7.parent assert_equal @node_2, @node_5.parent assert_equal @node_2, @node_3.parent assert_equal @node_3, @node_6.parent assert_equal @node_7, @node_8.parent assert_equal @node_8, @node_9.parent end test "decrease value (can't set higher than the existing value)" do setup_sample_heap assert_raises ArgumentError do @heap.decrease_value!(@node_9, 100) end end test "decrease value (doesn't do anything if you don't change the value)" do setup_sample_heap structure = @heap.to_s @heap.decrease_value!(@node_9, @node_9.value) assert_equal structure, @heap.to_s end test "decrease value (restructures correctly)" do setup_sample_heap @node_4.marked = true @node_7.marked = true @node_8.marked = true @heap.decrease_value!(@node_0 = @node_9, 0) assert_equal 0, @heap.min_node.value assert_equal ["(1 (3), (4))", "(2 (5))", "(6)", "(0)", "(8)", "(7)"], @heap.to_s assert ((0..8).to_a - [4]).all? { |number| !<API key>(:"@node_#{number}").marked } assert @node_4.marked assert @node_1.root? assert @node_2.root? assert @node_6.root? assert @node_0.root? assert @node_8.root? assert @node_7.root? assert_equal @node_1, @node_3.root assert_equal @node_1, @node_4.root assert_equal @node_2, @node_5.root assert_equal @node_1, @node_3.parent assert_equal @node_1, @node_4.parent assert_equal @node_2, @node_5.parent end test "delete" do setup_sample_heap assert_equal @node_9, @heap.delete(@node_9) assert_equal 1, @heap.min_node.value assert_equal ["(1 (3), (4), (7 (8)))", "(2 (5))", "(6)"], @heap.to_s assert ((1..9).to_a - [8]).all? { |number| !<API key>(:"@node_#{number}").marked } assert @node_8.marked assert @node_1.root? assert @node_2.root? assert @node_6.root? assert_equal @node_1, @node_3.root assert_equal @node_1, @node_4.root assert_equal @node_1, @node_7.root assert_equal @node_1, @node_8.root assert_equal @node_2, @node_5.root assert_equal @node_1, @node_3.parent assert_equal @node_1, @node_4.parent assert_equal @node_1, @node_7.parent assert_equal @node_7, @node_8.parent assert_equal @node_2, @node_5.parent end end
using SuperScript.Configuration; using SuperScript.Emitters; using SuperScript.Modifiers; using SuperScript.Modifiers.Converters; using SuperScript.Modifiers.Post; using SuperScript.Modifiers.Pre; using SuperScript.Modifiers.Writers; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; namespace SuperScript.ExtensionMethods { <summary> Contains extension methods which can be invoked upon the classes which are implemented in the web.config &lt;superScript&gt; section. </summary> public static class <API key> { <summary> Enumerates the <see cref="PropertyCollection"/> and populates the properties specified therein on the specified <see cref="host"/> object. </summary> <param name="propertyElmnts">A <see cref="PropertyCollection"/> object containing a collection of <see cref="PropertyElement"/> objects.</param> <param name="host">The object to which the value of each <see cref="PropertyElement"/> object should be transferred to. </param> public static void AssignProperties(this PropertyCollection propertyElmnts, object host) { if (propertyElmnts == null || propertyElmnts.Count == 0) { return; } foreach (PropertyElement propertyElmnt in propertyElmnts) { // a Type may be specified on the <property> element for the following reasons: // - to assign a derived type to the specified property // - if no value is specified on the <property> element then a new instance (using the default constructor) // will be created and assigned to the specified property. This branch will throw an exception if the // specified type is a value type or does not have a public default constructor. if (propertyElmnt.Type != null) { // enums have to be handled differently if (propertyElmnt.Type.IsEnum) { if (!Enum.IsDefined(propertyElmnt.Type, propertyElmnt.Value)) { throw new <API key>(propertyElmnt.Name); } var enumInfo = host.GetType().GetProperty(propertyElmnt.Name); if (enumInfo == null) { if (propertyElmnt.ExceptionIfMissing) { throw new <API key>(propertyElmnt.Name); } continue; } enumInfo.SetValue(host, Enum.Parse(propertyElmnt.Type, propertyElmnt.Value)); continue; } // in the following call, passing customProperty.Type might be more secure, but cannot be done in case // the target property has been specified using an interface. var propInfo = host.GetType().GetProperty(propertyElmnt.Name, propertyElmnt.Type); if (propInfo == null) { if (propertyElmnt.ExceptionIfMissing) { throw new <API key>(propertyElmnt.Name); } continue; } // if no value has been specified then assume that the intention is to assign a new instance of the // specified type to the specified property. if (String.IsNullOrWhiteSpace(propertyElmnt.Value) && !propertyElmnt.Type.IsValueType) { // check that the specified type has a public default (parameterless) constructor if (propertyElmnt.Type.GetConstructor(Type.EmptyTypes) != null) { propInfo.SetValue(host, Activator.CreateInstance(propertyElmnt.Type), null); } } else { // a Type and a value have been specified // if the Type is System.TimeSpan then this needs to be parsed in a specific manner if (propertyElmnt.Type == typeof (TimeSpan)) { TimeSpan ts; TimeSpan.TryParse(propertyElmnt.Value, out ts); propInfo.SetValue(host, ts, null); } else { propInfo.SetValue(host, Convert.ChangeType(propertyElmnt.Value, propertyElmnt.Type), null); } } } else { var propInfo = host.GetType().GetProperty(propertyElmnt.Name); if (propInfo == null) { if (propertyElmnt.ExceptionIfMissing) { throw new <API key>(propertyElmnt.Name); } continue; } propInfo.SetValue(host, Convert.ChangeType(propertyElmnt.Value, propInfo.PropertyType), null); } } } <summary> Compares the specified <see cref="EmitMode"/> enumeration with the current context. </summary> <param name="emitMode">Determines for which modes (i.e., debug, live, or forced on or off) a property should be emitted.</param> <returns><c>True</c> if the current context covers the specified <see cref="EmitMode"/>.</returns> public static bool <API key>(this EmitMode emitMode) { if (emitMode == EmitMode.Always) { return true; } if (emitMode == EmitMode.Never) { return false; } if (Settings.IsDebuggingEnabled) { return emitMode == EmitMode.DebugOnly; } return emitMode == EmitMode.LiveOnly; } <summary> Determines whether the specified <see cref="ModifierBase"/> should be implemented in the current emitting context. </summary> <param name="modifier">An instance of <see cref="ModifierBase"/> whose <see cref="EmitMode"/> property will be checked against the current emitting context.</param> <returns><c>true</c> if the specified instance of <see cref="ModifierBase"/> should be emitted in the current emitting context.</returns> public static bool <API key>(this ModifierBase modifier) { return modifier.EmitMode.<API key>(); } <summary> Converts the specified <see cref="<API key>"/> into an <see cref="ICollection{KeyValuePair}"/>. </summary> public static ICollection<KeyValuePair<string, string>> <API key>(this <API key> attributeElmnts) { var attrs = new Collection<KeyValuePair<string, string>>(); foreach (AttributeElement attrElmnt in attributeElmnts) { attrs.Add(new KeyValuePair<string, string>(attrElmnt.Name, attrElmnt.Value)); } return attrs; } <summary> Creates an instance of <see cref="EmitterBundle"/> from the specified <see cref="<API key>"/> object. </summary> <exception cref="<API key>">Thrown when a static or abstract type is referenced for the custom object.</exception> public static EmitterBundle ToEmitterBundle(this <API key> bundledEmitterElmnt) { // create the instance... var instance = new EmitterBundle(bundledEmitterElmnt.Key); // instantiate the CustomObject, if declared if (bundledEmitterElmnt.CustomObject != null && bundledEmitterElmnt.CustomObject.Type != null) { var coType = bundledEmitterElmnt.CustomObject.Type; // rule out abstract and static classes // - reason: static classes will cause problems when we try to call static properties on the arguments.CustomObject property. if (coType.IsAbstract) { throw new <API key>("Static or abstract types are not permitted for the custom object."); } var customObject = Activator.CreateInstance(coType); // if the developer has configured custom property values in the config then set them here bundledEmitterElmnt.CustomObject.CustomProperties.AssignProperties(customObject); instance.CustomObject = customObject; } var bundledKeys = new List<string>(bundledEmitterElmnt.BundleKeys.Count); bundledKeys.AddRange(bundledEmitterElmnt.BundleKeys.Cast<string>()); instance.EmitterKeys = bundledKeys; // instantiate the collection processors instance.PostModifiers = bundledEmitterElmnt.PostModifiers.ToModifiers<<API key>>(); instance.HtmlWriter = bundledEmitterElmnt.Writers.ToModifier<HtmlWriter>(required: true); return instance; } <summary> Creates an <see cref="ICollection{EmitterBundle}"/> containing the instances of <see cref="EmitterBundle"/> specified by the <see cref="<API key>"/>. </summary> public static IList<EmitterBundle> ToEmitterBundles(this <API key> <API key>) { var bundledEmitters = new Collection<EmitterBundle>(); foreach (<API key> bundledEmitterElmnt in <API key>) { // check that no existing BundledEmitters have the same key as we're about to assign if (bundledEmitters.Any(e => e.Key == bundledEmitterElmnt.Key)) { throw new <API key>("Multiple <emitter> elements have been declared with the same Key (" + bundledEmitterElmnt.Key + ")."); } bundledEmitters.Add(bundledEmitterElmnt.ToEmitterBundle()); } return bundledEmitters; } <summary> Creates an instance of <see cref="IEmitter"/> from the specified <see cref="EmitterElement"/> object. </summary> <exception cref="<API key>">Thrown when a static or abstract type is referenced for the custom object.</exception> public static IEmitter ToEmitter(this EmitterElement emitterElmnt) { // create the instance... var instance = emitterElmnt.ToInstance<IEmitter>(); instance.IsDefault = emitterElmnt.IsDefault; instance.Key = emitterElmnt.Key; // instantiate the CustomObject, if declared if (emitterElmnt.CustomObject != null && emitterElmnt.CustomObject.Type != null) { var coType = emitterElmnt.CustomObject.Type; // rule out abstract and static classes // - reason: static classes will cause problems when we try to call static properties on the arguments.CustomObject property. if (coType.IsAbstract) { throw new <API key>("Static or abstract types are not permitted for the custom object."); } var customObject = Activator.CreateInstance(coType); // if the developer has configured custom property values in the config then set them here emitterElmnt.CustomObject.CustomProperties.AssignProperties(customObject); instance.CustomObject = customObject; } // instantiate the collection processors instance.PreModifiers = emitterElmnt.PreModifiers.ToModifiers<<API key>>(); instance.Converter = emitterElmnt.Converters.ToModifier<CollectionConverter>(required: true); instance.PostModifiers = emitterElmnt.PostModifiers.ToModifiers<<API key>>(); instance.HtmlWriter = emitterElmnt.Writers.ToModifier<HtmlWriter>(); return instance; } <summary> Creates an <see cref="IList{IEmitter}"/> containing instances of the Emitters specified by the <see cref="EmittersCollection"/>. </summary> public static IList<IEmitter> ToEmitterCollection(this EmittersCollection emitterElmnts) { var emitters = new Collection<IEmitter>(); foreach (var emitterElmnt in from EmitterElement emitterElement in emitterElmnts select emitterElement.ToEmitter()) { // should we check if any other Emitters have been set to isDefault=true if (emitterElmnt.IsDefault && emitters.Any(e => e.IsDefault)) { throw new <API key>("Multiple <emitter> elements have been declared with 'isDefault' set to TRUE."); } // check that no existing emitters have the same key as we're about to assign if (emitters.Any(e => e.Key == emitterElmnt.Key)) { throw new <API key>("Multiple <emitter> elements have been declared with the same Key (" + emitterElmnt.Key + ")."); } emitters.Add(emitterElmnt); } return emitters; } <summary> Returns the first instance of T which is eligible for the context emit mode (i.e., <see cref="EmitMode.Always"/>, <see cref="EmitMode.DebugOnly"/>, etc.). </summary> <typeparam name="T">A type derived from <see cref="ModifierBase"/>.</typeparam> <param name="modifierElmnts">Contains a collection of instances of <see cref="ModifierBase"/>.</param> <param name="required">Indicates whether this method must return a <see cref="ModifierBase"/> or whether these are optional.</param> <exception cref="<API key>">Thrown if multiple declarations have been made for the context emit mode.</exception> <exception cref="<API key>">Thrown if no declarations have been made for the context emit mode.</exception> public static T ToModifier<T>(this ModifiersCollection modifierElmnts, bool required = false) where T : ModifierBase { T instanceToBeUsed = null; foreach (ModifierElement modifierElmnt in modifierElmnts) { var modInstance = modifierElmnt.ToInstance<T>(); modInstance.EmitMode = modifierElmnt.EmitMode; if (!modInstance.<API key>()) { continue; } if (instanceToBeUsed != null) { throw new <API key>("Only one instance of HtmlWriter (in a <writer> element) may be specified per context mode."); } modifierElmnt.ModifierProperties.AssignProperties(modInstance); var bundled = modInstance as IUseWhenBundled; if (bundled != null) { bundled.UseWhenBundled = modifierElmnt.UseWhenBundled; instanceToBeUsed = (T) bundled; } else { instanceToBeUsed = modInstance; } } if (required && instanceToBeUsed == null) { throw new <API key>("writer"); } return instanceToBeUsed; } <summary> Creates an <see cref="ICollection{T}"/> containing instances of objects specified in each <see cref="ModifierElement"/>. </summary> <typeparam name="T">A type derived from <see cref="ModifierBase"/>.</typeparam> <param name="modifierElmnts">Contains a collection of instances of <see cref="ModifierBase"/>.</param> public static ICollection<T> ToModifiers<T>(this ModifiersCollection modifierElmnts) where T : ModifierBase { var instances = new Collection<T>(); foreach (ModifierElement modifierElmnt in modifierElmnts) { var modInstance = modifierElmnt.ToInstance<T>(); modInstance.EmitMode = modifierElmnt.EmitMode; if (!modInstance.<API key>()) { continue; } modifierElmnt.ModifierProperties.AssignProperties(modInstance); var bundled = modInstance as IUseWhenBundled; if (bundled != null) { bundled.UseWhenBundled = modifierElmnt.UseWhenBundled; modInstance = (T) bundled; } instances.Add(modInstance); } return instances; } <summary> Returns the <see cref="Type"/> specified in the <see cref="IAssemblyElement"/>. </summary> public static T ToInstance<T>(this IAssemblyElement element) { return (T) Activator.CreateInstance(element.Type); } } }
using Cofoundry.Core; using Cofoundry.Domain; using System; using System.Collections.Generic; using System.Linq; namespace Cofoundry.Web.Admin { public class <API key> : <API key> { public const string RoutePrefix = "custom-entities"; private readonly AdminSettings _adminSettings; public <API key>(AdminSettings adminSettings) : base(adminSettings, RoutePrefix, RouteConstants.<API key>) { _adminSettings = adminSettings; } #region routes public string List(<API key> definition) { return <API key>(definition?.NamePlural); } public string List(<API key> definition) { return <API key>(definition?.NamePlural); } public string New(<API key> definition) { if (definition == null) return string.Empty; return List(definition) + "new"; } public string Details(<API key> definition, int id) { if (definition == null) return string.Empty; return List(definition) + id.ToString(); } private string <API key>(string namePlural, string route = null) { if (namePlural == null) return string.Empty; return "/" + _adminSettings.DirectoryName + "/" + SlugFormatter.ToSlug(namePlural) + "#/" + route; } #endregion } }
/* eslint-disable no-undef,<API key> */ const request = require('supertest') const expect = require('chai').expect const app = require('../../bin/www') const fixtures = require('../data/fixtures') describe('/api/mappings', () => { beforeEach(() => { this.Sample = require('../../models').Sample this.Instrument = require('../../models').Instrument this.InstrumentMapping = require('../../models').InstrumentMapping this.ValidationError = require('../../models').sequelize.ValidationError expect(this.Sample).to.exist expect(this.Instrument).to.exist expect(this.InstrumentMapping).to.exist expect(this.ValidationError).to.exist return require('../../models').sequelize .sync({force: true, logging: false}) .then(() => { console.log('db synced') return this.Sample .bulkCreate(fixtures.samples) }) .then(samples => { this.samples = samples return this.Instrument .bulkCreate(fixtures.instruments) }) .then(instruments => { return this.InstrumentMapping.bulkCreate(fixtures.instrumentMappings) }) .then(() => console.log('Fixtures loaded')) }) it('should return 200 on GET /api/instruments/:instrumentId/mappings', () => { return request(app) .get('/api/instruments/<API key>/mappings') .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(200) .then((res) => { expect(res.body, 'body should be an array').to.be.an('array') expect(res.body, 'body should contain 2 items').to.have.lengthOf(2) expect(res.body[0], 'item 0 should be an object').to.be.an('object') }) }) it('should return 201 on POST /api/instruments/:instrumentId/mappings', () => { return request(app) .post('/api/instruments/<API key>/mappings') .send({ lowerRank: 55, upperRank: 56, referenceRank: 55, sampleId: '<API key>' }) .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(201) .then(res => { expect(res.body, 'body should be an object') expect(res.body.lowerRank, 'lowerRank should equal 55').to.equal(55) expect(res.body.upperRank, 'upperRank should equal 56').to.equal(56) expect(res.body.referenceRank, 'referenceRank should equal 55').to.equal(55) expect(res.body.sampleId).to.equal('<API key>', 'sampleId should equal <API key>') expect(res.body.instrumentId).to.equal('<API key>', 'instrumentId should equal <API key>') }) }) it('should return 200 GET /api/mappings/:id', () => { return request(app) .get('/api/mappings/<API key>') .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(200) .then((res) => { expect(res.body, 'body should be an object').to.be.an('object') expect(res.body.id, 'id should equal <API key>').to.equal('<API key>') }) }) it('should return 200 on PUT /api/mappings/:id', () => { return request(app) .put('/api/mappings/<API key>') .send({ lowerRank: 45, upperRank: 46, referenceRank: 45, sampleId: '<API key>' }) .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(200) .then(res => { expect(res.body.lowerRank, 'lowerRank should equal 45').to.equal(45) expect(res.body.upperRank, 'upperRank should equal 46').to.equal(46) expect(res.body.referenceRank, 'referenceRank should equal 45').to.equal(45) expect(res.body.sampleId).to.equal('<API key>', 'sampleId should equal <API key>') }) }) it('should return 404 on PUT /api/mappings/:id when id is unknown', () => { return request(app) .put('/api/mappings/<API key>') .send({ sampleId: '<API key>' }) .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(404) .then((res) => { expect(res.body, 'body should be a object').to.be.an('object') expect(res.body).to.include({ msg: 'Failed to retrieve instrument mapping n°<API key>', name: 'DatabaseError' }) }) }) it('should return 204 on DELETE /api/mappings/:id', () => { return request(app) .delete('/api/mappings/<API key>') .expect(204) .then((res) => { expect(res.body, 'body should be empty').to.be.empty }) }) it('should return 404 on DELETE /api/mappings/:id when id is unknown', () => { return request(app) .delete('/api/mappings/<API key>') .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(404) .then((res) => { expect(res.body, 'body should be a object').to.be.an('object') expect(res.body).to.include({ msg: 'Failed to retrieve instrument mapping n°<API key>', name: 'DatabaseError' }) }) }) })
CKEDITOR.plugins.setLang("a11yhelp","es",{title:"Instrucciones de accesibilidad",contents:"Ayuda. Para cerrar presione ESC.",legend:[{name:"General",items:[{name:"Barra de herramientas del editor",legend:'Presiona ${toolbarFocus} para navegar por la barra de herramientas. Para moverse por los distintos grupos de herramientas usa las teclas TAB y MAY-TAB. Para moverse por las distintas herramientas usa FLECHA DERECHA o FECHA IZQUIERDA. Presiona "espacio" o "intro" para activar la herramienta.'},{name:"Editor de diálogo", legend:"Dentro de un cuadro de diálogo, presione la tecla TAB para desplazarse al campo siguiente del cuadro de diálogo, pulse SHIFT + TAB para desplazarse al campo anterior, pulse ENTER para presentar cuadro de diálogo, pulse la tecla ESC para cancelar el diálogo. Para los diálogos que tienen varias páginas, presione ALT + F10 para navegar a la pestaña de la lista. Luego pasar a la siguiente pestaña con TAB o FLECHA DERECHA. Para ir a la ficha anterior con SHIFT + TAB o FLECHA IZQUIERDA. Presione ESPACIO o ENTRAR para seleccionar la página de ficha."}, {name:"Editor del menú contextual",legend:"Presiona ${contextMenu} o TECLA MENÚ para abrir el menú contextual. Entonces muévete a la siguiente opción del menú con TAB o FLECHA ABAJO. Muévete a la opción previa con SHIFT + TAB o FLECHA ARRIBA. Presiona ESPACIO o ENTER para seleccionar la opción del menú. Abre el submenú de la opción actual con ESPACIO o ENTER o FLECHA DERECHA. Regresa al elemento padre del menú con ESC o FLECHA IZQUIERDA. Cierra el menú contextual con ESC."},{name:"Lista del Editor", legend:"Dentro de una lista, te mueves al siguiente elemento de la lista con TAB o FLECHA ABAJO. Te mueves al elemento previo de la lista con SHIFT + TAB o FLECHA ARRIBA. Presiona ESPACIO o ENTER para elegir la opción de la lista. Presiona ESC para cerrar la lista."},{name:"Barra de Ruta del Elemento en el Editor",legend:"Presiona ${elementsPathFocus} para navegar a los elementos de la barra de ruta. Te mueves al siguiente elemento botón con TAB o FLECHA DERECHA. Te mueves al botón previo con SHIFT + TAB o FLECHA IZQUIERDA. Presiona ESPACIO o ENTER para seleccionar el elemento en el editor."}]}, {name:"Comandos",items:[{name:"Comando deshacer",legend:"Presiona ${undo}"},{name:"Comando rehacer",legend:"Presiona ${redo}"},{name:"Comando negrita",legend:"Presiona ${bold}"},{name:"Comando itálica",legend:"Presiona ${italic}"},{name:"Comando subrayar",legend:"Presiona ${underline}"},{name:"Comando liga",legend:"Presiona ${liga}"},{name:"Comando colapsar barra de herramientas",legend:"Presiona ${toolbarCollapse}"},{name:"Comando accesar el anterior espacio de foco",legend:"Presiona ${accessPreviousSpace} para accesar el espacio de foco no disponible más cercano anterior al cursor, por ejemplo: dos elementos HR adyacentes. Repite la combinación de teclas para alcanzar espacios de foco distantes."}, {name:"Comando accesar el siguiente spacio de foco",legend:"Presiona ${accessNextSpace} para accesar el espacio de foco no disponible más cercano después del cursor, por ejemplo: dos elementos HR adyacentes. Repite la combinación de teclas para alcanzar espacios de foco distantes."},{name:"Ayuda de Accesibilidad",legend:"Presiona ${a11yHelp}"}]}]});
#include "<API key>.h" #include "compiler/Parser/Parser.h" #include "compiler/AST/Variables/VariableNode.h" #include <assert.h> namespace Three { <API key>* <API key>::parse(Parser& parser, ASTNode* receiver, ASTNode* firstArg) { assert(parser.helper()->peek().type() == Token::Type::<API key>); assert(receiver); <API key>* node = new <API key>(); node->setReceiver(receiver); if (!<API key>::parseArguments(parser, node)) { assert(0 && "Message: Unable to parse function arguments"); } return node; } std::string <API key>::nodeName() const { return "Function Call Operator"; } void <API key>::accept(ASTVisitor& visitor) { visitor.visit(*this); } }
{% extends 'base.html' %} {% block title %}Grow Buildbot{% endblock %} {% block body %} <h2>Recent builds</h2> <ul> {% for build in builds %} <li> <a href="{{ url_for('build', build_id=build.id)}}">build {{ build.id }}</a>: <strong class="status-{{ build.status }}">{{ build.status }}</strong> {{ build.git_url }} {{ build.ref }} {{ build.commit_sha }} </li> {% endfor %} <li><a href="{{ url_for('builds')}}">More &raquo;</a></li> </ul> <h2> Jobs ({{ jobs|length }}) [<a href="{{ url_for('sync_jobs') }}">sync jobs</a>] [<a href="{{ url_for('sync_forks') }}">sync forks</a>] </h2> {% for job in jobs %} <ul> <li> Job {{ job.id }}: {{ job.git_url }} (remote: {{ job.remote }}) [<a href="{{ url_for('sync_job', job_id=job.id) }}">sync job</a>] [<a href="{{ url_for('sync_fork', job_id=job.id) }}">sync fork</a>] </li> <ul> {% for ref in job.ref_map %} <li> [<a href="{{ url_for('run_job', job_id=job.id, ref=ref, commit_sha=job.ref_map[ref]['sha']) }}">build now</a>] [<a href="{{ url_for('job_browse_ref', job_id=job.id, ref=ref) }}">browse</a>] {{ ref }} ({{ job.ref_map[ref]['sha'][0:7] }}) </li> {% endfor %} </ul> </ul> {% endfor %} {% endblock %}
'use strict'; import '../../Series/DependencyWheel/<API key>.js';
( function ( OO ) { 'use strict'; OO.ui.ActionWidget = function OoUiActionWidget( config ) { // Configuration initialization config = $.extend( { framed: false }, config ); // Parent constructor OO.ui.ActionWidget.super.call( this, config ); // Mixin constructors OO.ui.mixin.PendingElement.call( this, config ); // Properties this.action = config.action || ''; this.modes = config.modes || []; this.width = 0; this.height = 0; // Initialization this.$element.addClass( 'oo-ui-actionWidget' ); }; /* Setup */ OO.inheritClass( OO.ui.ActionWidget, OO.ui.ButtonWidget ); OO.mixinClass( OO.ui.ActionWidget, OO.ui.mixin.PendingElement ); /* Methods */ /** * Check if the action is configured to be available in the specified `mode`. * * @param {string} mode Name of mode * @return {boolean} The action is configured with the mode */ OO.ui.ActionWidget.prototype.hasMode = function ( mode ) { return this.modes.indexOf( mode ) !== -1; }; OO.ui.ActionWidget.prototype.getAction = function () { return this.action; }; /** * Get the symbolic name of the mode or modes for which the action is configured to be available. * * The current mode is set with the action set's {@link OO.ui.ActionSet#setMode setMode} method. * Only actions that are configured to be available in the current mode will be visible. * All other actions are hidden. * * @return {string[]} */ OO.ui.ActionWidget.prototype.getModes = function () { return this.modes.slice(); }; /* eslint-disable no-unused-vars */ OO.ui.ActionSet = function OoUiActionSet( config ) { // Configuration initialization config = config || {}; // Mixin constructors OO.EventEmitter.call( this ); // Properties this.list = []; this.categories = { actions: 'getAction', flags: 'getFlags', modes: 'getModes' }; this.categorized = {}; this.special = {}; this.others = []; this.organized = false; this.changing = false; this.changed = false; }; /* eslint-enable no-unused-vars */ /* Setup */ OO.mixinClass( OO.ui.ActionSet, OO.EventEmitter ); /* Static Properties */ OO.ui.ActionSet.static.specialFlags = [ 'safe', 'primary' ]; /* Events */ /** * @event click * * A 'click' event is emitted when an action is clicked. * * @param {OO.ui.ActionWidget} action Action that was clicked */ /** * @event add * * An 'add' event is emitted when actions are {@link #method-add added} to the action set. * * @param {OO.ui.ActionWidget[]} added Actions added */ /** * @event remove * * A 'remove' event is emitted when actions are {@link #method-remove removed} * or {@link #clear cleared}. * * @param {OO.ui.ActionWidget[]} added Actions removed */ /** * @event change * * A 'change' event is emitted when actions are {@link #method-add added}, {@link #clear cleared}, * or {@link #method-remove removed} from the action set or when the {@link #setMode mode} * is changed. * */ /* Methods */ /** * Handle action change events. * * @private * @fires change */ OO.ui.ActionSet.prototype.onActionChange = function () { this.organized = false; if ( this.changing ) { this.changed = true; } else { this.emit( 'change' ); } }; /** * Check if an action is one of the special actions. * * @param {OO.ui.ActionWidget} action Action to check * @return {boolean} Action is special */ OO.ui.ActionSet.prototype.isSpecial = function ( action ) { var flag; for ( flag in this.special ) { if ( action === this.special[ flag ] ) { return true; } } return false; }; OO.ui.ActionSet.prototype.get = function ( filters ) { var i, len, list, category, actions, index, match, matches; if ( filters ) { this.organize(); // Collect category candidates matches = []; for ( category in this.categorized ) { list = filters[ category ]; if ( list ) { if ( !Array.isArray( list ) ) { list = [ list ]; } for ( i = 0, len = list.length; i < len; i++ ) { actions = this.categorized[ category ][ list[ i ] ]; if ( Array.isArray( actions ) ) { matches.push.apply( matches, actions ); } } } } // Remove by boolean filters for ( i = 0, len = matches.length; i < len; i++ ) { match = matches[ i ]; if ( ( filters.visible !== undefined && match.isVisible() !== filters.visible ) || ( filters.disabled !== undefined && match.isDisabled() !== filters.disabled ) ) { matches.splice( i, 1 ); len i } } // Remove duplicates for ( i = 0, len = matches.length; i < len; i++ ) { match = matches[ i ]; index = matches.lastIndexOf( match ); while ( index !== i ) { matches.splice( index, 1 ); len index = matches.lastIndexOf( match ); } } return matches; } return this.list.slice(); }; /** * Get 'special' actions. * * Special actions are the first visible action widgets with special flags, such as 'safe' and * 'primary'. * Special flags can be configured in subclasses by changing the static #specialFlags property. * * @return {OO.ui.ActionWidget[]|null} 'Special' action widgets. */ OO.ui.ActionSet.prototype.getSpecial = function () { this.organize(); return $.extend( {}, this.special ); }; /** * Get 'other' actions. * * Other actions include all non-special visible action widgets. * * @return {OO.ui.ActionWidget[]} 'Other' action widgets */ OO.ui.ActionSet.prototype.getOthers = function () { this.organize(); return this.others.slice(); }; OO.ui.ActionSet.prototype.setMode = function ( mode ) { var i, len, action; this.changing = true; for ( i = 0, len = this.list.length; i < len; i++ ) { action = this.list[ i ]; action.toggle( action.hasMode( mode ) ); } this.organized = false; this.changing = false; this.emit( 'change' ); return this; }; /** * Set the abilities of the specified actions. * * Action widgets that are configured with the specified actions will be enabled * or disabled based on the boolean values specified in the `actions` * parameter. * * @param {Object.<string,boolean>} actions A list keyed by action name with boolean * values that indicate whether or not the action should be enabled. * @chainable * @return {OO.ui.ActionSet} The widget, for chaining */ OO.ui.ActionSet.prototype.setAbilities = function ( actions ) { var i, len, action, item; for ( i = 0, len = this.list.length; i < len; i++ ) { item = this.list[ i ]; action = item.getAction(); if ( actions[ action ] !== undefined ) { item.setDisabled( !actions[ action ] ); } } return this; }; /** * Executes a function once per action. * * When making changes to multiple actions, use this method instead of iterating over the actions * manually to defer emitting a #change event until after all actions have been changed. * * @param {Object|null} filter Filters to use to determine which actions to iterate over; see #get * @param {Function} callback Callback to run for each action; callback is invoked with three * arguments: the action, the action's index, the list of actions being iterated over * @chainable * @return {OO.ui.ActionSet} The widget, for chaining */ OO.ui.ActionSet.prototype.forEach = function ( filter, callback ) { this.changed = false; this.changing = true; this.get( filter ).forEach( callback ); this.changing = false; if ( this.changed ) { this.emit( 'change' ); } return this; }; /** * Add action widgets to the action set. * * @param {OO.ui.ActionWidget[]} actions Action widgets to add * @chainable * @return {OO.ui.ActionSet} The widget, for chaining * @fires add * @fires change */ OO.ui.ActionSet.prototype.add = function ( actions ) { var i, len, action; this.changing = true; for ( i = 0, len = actions.length; i < len; i++ ) { action = actions[ i ]; action.connect( this, { click: [ 'emit', 'click', action ], toggle: [ 'onActionChange' ] } ); this.list.push( action ); } this.organized = false; this.emit( 'add', actions ); this.changing = false; this.emit( 'change' ); return this; }; /** * Remove action widgets from the set. * * To remove all actions, you may wish to use the #clear method instead. * * @param {OO.ui.ActionWidget[]} actions Action widgets to remove * @chainable * @return {OO.ui.ActionSet} The widget, for chaining * @fires remove * @fires change */ OO.ui.ActionSet.prototype.remove = function ( actions ) { var i, len, index, action; this.changing = true; for ( i = 0, len = actions.length; i < len; i++ ) { action = actions[ i ]; index = this.list.indexOf( action ); if ( index !== -1 ) { action.disconnect( this ); this.list.splice( index, 1 ); } } this.organized = false; this.emit( 'remove', actions ); this.changing = false; this.emit( 'change' ); return this; }; /** * Remove all action widgets from the set. * * To remove only specified actions, use the {@link #method-remove remove} method instead. * * @chainable * @return {OO.ui.ActionSet} The widget, for chaining * @fires remove * @fires change */ OO.ui.ActionSet.prototype.clear = function () { var i, len, action, removed = this.list.slice(); this.changing = true; for ( i = 0, len = this.list.length; i < len; i++ ) { action = this.list[ i ]; action.disconnect( this ); } this.list = []; this.organized = false; this.emit( 'remove', removed ); this.changing = false; this.emit( 'change' ); return this; }; /** * Organize actions. * * This is called whenever organized information is requested. It will only reorganize the actions * if something has changed since the last time it ran. * * @private * @chainable * @return {OO.ui.ActionSet} The widget, for chaining */ OO.ui.ActionSet.prototype.organize = function () { var i, iLen, j, jLen, flag, action, category, list, item, special, specialFlags = this.constructor.static.specialFlags; if ( !this.organized ) { this.categorized = {}; this.special = {}; this.others = []; for ( i = 0, iLen = this.list.length; i < iLen; i++ ) { action = this.list[ i ]; if ( action.isVisible() ) { // Populate categories for ( category in this.categories ) { if ( !this.categorized[ category ] ) { this.categorized[ category ] = {}; } list = action[ this.categories[ category ] ](); if ( !Array.isArray( list ) ) { list = [ list ]; } for ( j = 0, jLen = list.length; j < jLen; j++ ) { item = list[ j ]; if ( !this.categorized[ category ][ item ] ) { this.categorized[ category ][ item ] = []; } this.categorized[ category ][ item ].push( action ); } } // Populate special/others special = false; for ( j = 0, jLen = specialFlags.length; j < jLen; j++ ) { flag = specialFlags[ j ]; if ( !this.special[ flag ] && action.hasFlag( flag ) ) { this.special[ flag ] = action; special = true; break; } } if ( !special ) { this.others.push( action ); } } } this.organized = true; } return this; }; OO.ui.Error = function OoUiError( message, config ) { // Allow passing positional parameters inside the config object if ( OO.isPlainObject( message ) && config === undefined ) { config = message; message = config.message; } // Configuration initialization config = config || {}; // Properties this.message = message instanceof $ ? message : String( message ); this.recoverable = config.recoverable === undefined || !!config.recoverable; this.warning = !!config.warning; }; /* Setup */ OO.initClass( OO.ui.Error ); /* Methods */ /** * Check if the error is recoverable. * * If the error is recoverable, users are able to try the process again. * * @return {boolean} Error is recoverable */ OO.ui.Error.prototype.isRecoverable = function () { return this.recoverable; }; /** * Check if the error is a warning. * * If the error is a warning, the error interface will include a 'Dismiss' and a 'Continue' button. * * @return {boolean} Error is warning */ OO.ui.Error.prototype.isWarning = function () { return this.warning; }; /** * Get error message as DOM nodes. * * @return {jQuery} Error message in DOM nodes */ OO.ui.Error.prototype.getMessage = function () { return this.message instanceof $ ? this.message.clone() : $( '<div>' ).text( this.message ).contents(); }; /** * Get the error message text. * * @return {string} Error message */ OO.ui.Error.prototype.getMessageText = function () { return this.message instanceof $ ? this.message.text() : this.message; }; OO.ui.Process = function ( step, context ) { // Properties this.steps = []; // Initialization if ( step !== undefined ) { this.next( step, context ); } }; /* Setup */ OO.initClass( OO.ui.Process ); /* Methods */ /** * Start the process. * * @return {jQuery.Promise} Promise that is resolved when all steps have successfully completed. * If any of the steps return a promise that is rejected or a boolean false, this promise is * rejected and any remaining steps are not performed. */ OO.ui.Process.prototype.execute = function () { var i, len, promise; /** * Continue execution. * * @ignore * @param {Array} step A function and the context it should be called in * @return {Function} Function that continues the process */ function proceed( step ) { return function () { // Execute step in the correct context var deferred, result = step.callback.call( step.context ); if ( result === false ) { // Use rejected promise for boolean false results return $.Deferred().reject( [] ).promise(); } if ( typeof result === 'number' ) { if ( result < 0 ) { throw new Error( 'Cannot go back in time: flux capacitor is out of service' ); } // Use a delayed promise for numbers, expecting them to be in milliseconds deferred = $.Deferred(); setTimeout( deferred.resolve, result ); return deferred.promise(); } if ( result instanceof OO.ui.Error ) { // Use rejected promise for error return $.Deferred().reject( [ result ] ).promise(); } if ( Array.isArray( result ) && result.length && result[ 0 ] instanceof OO.ui.Error ) { // Use rejected promise for list of errors return $.Deferred().reject( result ).promise(); } // Duck-type the object to see if it can produce a promise if ( result && typeof result.then === 'function' ) { // Use a promise generated from the result return $.when( result ).promise(); } // Use resolved promise for other results return $.Deferred().resolve().promise(); }; } if ( this.steps.length ) { // Generate a chain reaction of promises promise = proceed( this.steps[ 0 ] )(); for ( i = 1, len = this.steps.length; i < len; i++ ) { promise = promise.then( proceed( this.steps[ i ] ) ); } } else { promise = $.Deferred().resolve().promise(); } return promise; }; /** * Create a process step. * * @private * @param {number|jQuery.Promise|Function} step * * - Number of milliseconds to wait before proceeding * - Promise that must be resolved before proceeding * - Function to execute * - If the function returns a boolean false the process will stop * - If the function returns a promise, the process will continue to the next * step when the promise is resolved or stop if the promise is rejected * - If the function returns a number, the process will wait for that number of * milliseconds before proceeding * @param {Object} [context=null] Execution context of the function. The context is * ignored if the step is a number or promise. * @return {Object} Step object, with `callback` and `context` properties */ OO.ui.Process.prototype.createStep = function ( step, context ) { if ( typeof step === 'number' || typeof step.then === 'function' ) { return { callback: function () { return step; }, context: null }; } if ( typeof step === 'function' ) { return { callback: step, context: context }; } throw new Error( 'Cannot create process step: number, promise or function expected' ); }; /** * Add step to the beginning of the process. * * @inheritdoc #createStep * @return {OO.ui.Process} this * @chainable */ OO.ui.Process.prototype.first = function ( step, context ) { this.steps.unshift( this.createStep( step, context ) ); return this; }; /** * Add step to the end of the process. * * @inheritdoc #createStep * @return {OO.ui.Process} this * @chainable */ OO.ui.Process.prototype.next = function ( step, context ) { this.steps.push( this.createStep( step, context ) ); return this; }; OO.ui.WindowInstance = function OoUiWindowInstance() { var deferreds = { opening: $.Deferred(), opened: $.Deferred(), closing: $.Deferred(), closed: $.Deferred() }; /** * @private * @property {Object} */ this.deferreds = deferreds; // Set these up as chained promises so that rejecting of // an earlier stage automatically rejects the subsequent // would-be stages as well. /** * @property {jQuery.Promise} */ this.opening = deferreds.opening.promise(); /** * @property {jQuery.Promise} */ this.opened = this.opening.then( function () { return deferreds.opened; } ); /** * @property {jQuery.Promise} */ this.closing = this.opened.then( function () { return deferreds.closing; } ); /** * @property {jQuery.Promise} */ this.closed = this.closing.then( function () { return deferreds.closed; } ); }; /* Setup */ OO.initClass( OO.ui.WindowInstance ); /** * Check if window is opening. * * @return {boolean} Window is opening */ OO.ui.WindowInstance.prototype.isOpening = function () { return this.deferreds.opened.state() === 'pending'; }; /** * Check if window is opened. * * @return {boolean} Window is opened */ OO.ui.WindowInstance.prototype.isOpened = function () { return this.deferreds.opened.state() === 'resolved' && this.deferreds.closing.state() === 'pending'; }; /** * Check if window is closing. * * @return {boolean} Window is closing */ OO.ui.WindowInstance.prototype.isClosing = function () { return this.deferreds.closing.state() === 'resolved' && this.deferreds.closed.state() === 'pending'; }; /** * Check if window is closed. * * @return {boolean} Window is closed */ OO.ui.WindowInstance.prototype.isClosed = function () { return this.deferreds.closed.state() === 'resolved'; }; OO.ui.WindowManager = function OoUiWindowManager( config ) { // Configuration initialization config = config || {}; // Parent constructor OO.ui.WindowManager.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); // Properties this.factory = config.factory; this.modal = config.modal === undefined || !!config.modal; this.windows = {}; // Deprecated placeholder promise given to compatOpening in openWindow() // that is resolved in closeWindow(). this.compatOpened = null; this.preparingToOpen = null; this.preparingToClose = null; this.currentWindow = null; this.globalEvents = false; this.$returnFocusTo = null; this.$ariaHidden = null; this.<API key> = null; this.<API key> = this.onWindowResize.bind( this ); this.<API key> = this.afterWindowResize.bind( this ); // Initialization this.$element .addClass( 'oo-ui-windowManager' ) .toggleClass( '<API key>', this.modal ); if ( this.modal ) { this.$element.attr( 'aria-hidden', true ); } }; /* Setup */ OO.inheritClass( OO.ui.WindowManager, OO.ui.Element ); OO.mixinClass( OO.ui.WindowManager, OO.EventEmitter ); /* Events */ /** * An 'opening' event is emitted when the window begins to be opened. * * @event opening * @param {OO.ui.Window} win Window that's being opened * @param {jQuery.Promise} opened A promise resolved with a value when the window is opened * successfully. This promise also emits `setup` and `ready` notifications. When this promise is * resolved, the first argument of the value is an 'closed' promise, the second argument is the * opening data. * @param {Object} data Window opening data */ /** * A 'closing' event is emitted when the window begins to be closed. * * @event closing * @param {OO.ui.Window} win Window that's being closed * @param {jQuery.Promise} closed A promise resolved with a value when the window is closed * successfully. This promise also emits `hold` and `teardown` notifications. When this promise is * resolved, the first argument of its value is the closing data. * @param {Object} data Window closing data */ /** * A 'resize' event is emitted when a window is resized. * * @event resize * @param {OO.ui.Window} win Window that was resized */ /* Static Properties */ /** * Map of the symbolic name of each window size and its CSS properties. * * @static * @inheritable * @property {Object} */ OO.ui.WindowManager.static.sizes = { small: { width: 300 }, medium: { width: 500 }, large: { width: 700 }, larger: { width: 900 }, full: { // These can be non-numeric because they are never used in calculations width: '100%', height: '100%' } }; /** * Symbolic name of the default window size. * * The default size is used if the window's requested size is not recognized. * * @static * @inheritable * @property {string} */ OO.ui.WindowManager.static.defaultSize = 'medium'; /* Methods */ /** * Handle window resize events. * * @private * @param {jQuery.Event} e Window resize event */ OO.ui.WindowManager.prototype.onWindowResize = function () { clearTimeout( this.<API key> ); this.<API key> = setTimeout( this.<API key>, 200 ); }; /** * Handle window resize events. * * @private * @param {jQuery.Event} e Window resize event */ OO.ui.WindowManager.prototype.afterWindowResize = function () { var <API key> = document.activeElement; if ( this.currentWindow ) { this.updateWindowSize( this.currentWindow ); // Restore focus to the original element if it has changed. // When a layout change is made on resize inputs lose focus // on Android (Chrome and Firefox), see T162127. if ( <API key> !== document.activeElement ) { <API key>.focus(); } } }; /** * Check if window is opening. * * @param {OO.ui.Window} win Window to check * @return {boolean} Window is opening */ OO.ui.WindowManager.prototype.isOpening = function ( win ) { return win === this.currentWindow && !!this.lifecycle && this.lifecycle.isOpening(); }; /** * Check if window is closing. * * @param {OO.ui.Window} win Window to check * @return {boolean} Window is closing */ OO.ui.WindowManager.prototype.isClosing = function ( win ) { return win === this.currentWindow && !!this.lifecycle && this.lifecycle.isClosing(); }; /** * Check if window is opened. * * @param {OO.ui.Window} win Window to check * @return {boolean} Window is opened */ OO.ui.WindowManager.prototype.isOpened = function ( win ) { return win === this.currentWindow && !!this.lifecycle && this.lifecycle.isOpened(); }; /** * Check if a window is being managed. * * @param {OO.ui.Window} win Window to check * @return {boolean} Window is being managed */ OO.ui.WindowManager.prototype.hasWindow = function ( win ) { var name; for ( name in this.windows ) { if ( this.windows[ name ] === win ) { return true; } } return false; }; OO.ui.WindowManager.prototype.getSetupDelay = function () { return 0; }; OO.ui.WindowManager.prototype.getReadyDelay = function () { return this.modal ? OO.ui.theme.<API key>() : 0; }; /** * Get the number of milliseconds to wait after closing has begun before executing the 'hold' * process. * * @param {OO.ui.Window} win Window being closed * @param {Object} [data] Window closing data * @return {number} Milliseconds to wait */ OO.ui.WindowManager.prototype.getHoldDelay = function () { return 0; }; OO.ui.WindowManager.prototype.getTeardownDelay = function () { return this.modal ? OO.ui.theme.<API key>() : 0; }; OO.ui.WindowManager.prototype.getWindow = function ( name ) { var deferred = $.Deferred(), win = this.windows[ name ]; if ( !( win instanceof OO.ui.Window ) ) { if ( this.factory ) { if ( !this.factory.lookup( name ) ) { deferred.reject( new OO.ui.Error( 'Cannot auto-instantiate window: symbolic name is unrecognized by the factory' ) ); } else { win = this.factory.create( name ); this.addWindows( [ win ] ); deferred.resolve( win ); } } else { deferred.reject( new OO.ui.Error( 'Cannot get unmanaged window: symbolic name unrecognized as a managed window' ) ); } } else { deferred.resolve( win ); } return deferred.promise(); }; /** * Get current window. * * @return {OO.ui.Window|null} Currently opening/opened/closing window */ OO.ui.WindowManager.prototype.getCurrentWindow = function () { return this.currentWindow; }; /** * Open a window. * * @param {OO.ui.Window|string} win Window object or symbolic name of window to open * @param {Object} [data] Window opening data * @param {jQuery|null} [data.$returnFocusTo] Element to which the window will return focus when * closed. Defaults the current activeElement. If set to null, focus isn't changed on close. * @param {OO.ui.WindowInstance} [lifecycle] Used internally * @param {jQuery.Deferred} [compatOpening] Used internally * @return {OO.ui.WindowInstance} A lifecycle object representing this particular * opening of the window. For <API key>, then object is also a Thenable that is * resolved when the window is done opening, with nested promise for when closing starts. This * behaviour is deprecated and is not compatible with jQuery 3, see T163510. * @fires opening */ OO.ui.WindowManager.prototype.openWindow = function ( win, data, lifecycle, compatOpening ) { var error, manager = this; data = data || {}; // Internal parameter 'lifecycle' allows this method to always return // a lifecycle even if the window still needs to be created // asynchronously when 'win' is a string. lifecycle = lifecycle || new OO.ui.WindowInstance(); compatOpening = compatOpening || $.Deferred(); // Turn lifecycle into a Thenable for <API key> with // the deprecated nested-promise behaviour, see T163510. [ 'state', 'always', 'catch', 'pipe', 'then', 'promise', 'progress', 'done', 'fail' ] .forEach( function ( method ) { lifecycle[ method ] = function () { OO.ui.warnDeprecation( 'Using the return value of openWindow as a promise is deprecated. ' + 'Use .openWindow( ... ).opening.' + method + '( ... ) instead.' ); return compatOpening[ method ].apply( this, arguments ); }; } ); // Argument handling if ( typeof win === 'string' ) { this.getWindow( win ).then( function ( w ) { manager.openWindow( w, data, lifecycle, compatOpening ); }, function ( err ) { lifecycle.deferreds.opening.reject( err ); } ); return lifecycle; } // Error handling if ( !this.hasWindow( win ) ) { error = 'Cannot open window: window is not attached to manager'; } else if ( this.lifecycle && this.lifecycle.isOpened() ) { error = 'Cannot open window: another window is open'; } else if ( this.preparingToOpen || ( this.lifecycle && this.lifecycle.isOpening() ) ) { error = 'Cannot open window: another window is opening'; } if ( error ) { compatOpening.reject( new OO.ui.Error( error ) ); lifecycle.deferreds.opening.reject( new OO.ui.Error( error ) ); return lifecycle; } // If a window is currently closing, wait for it to complete this.preparingToOpen = $.when( this.lifecycle && this.lifecycle.closed ); // Ensure handlers get called after preparingToOpen is set this.preparingToOpen.done( function () { if ( manager.modal ) { manager.toggleGlobalEvents( true ); manager.toggleAriaIsolation( true ); } manager.$returnFocusTo = data.$returnFocusTo !== undefined ? data.$returnFocusTo : $( document.activeElement ); manager.currentWindow = win; manager.lifecycle = lifecycle; manager.preparingToOpen = null; manager.emit( 'opening', win, compatOpening, data ); lifecycle.deferreds.opening.resolve( data ); setTimeout( function () { manager.compatOpened = $.Deferred(); win.setup( data ).then( function () { compatOpening.notify( { state: 'setup' } ); setTimeout( function () { win.ready( data ).then( function () { compatOpening.notify( { state: 'ready' } ); lifecycle.deferreds.opened.resolve( data ); compatOpening.resolve( manager.compatOpened.promise(), data ); manager.<API key>( true ); }, function ( dataOrErr ) { lifecycle.deferreds.opened.reject(); compatOpening.reject(); manager.closeWindow( win ); if ( dataOrErr instanceof Error ) { setTimeout( function () { throw dataOrErr; } ); } } ); }, manager.getReadyDelay() ); }, function ( dataOrErr ) { lifecycle.deferreds.opened.reject(); compatOpening.reject(); manager.closeWindow( win ); if ( dataOrErr instanceof Error ) { setTimeout( function () { throw dataOrErr; } ); } } ); }, manager.getSetupDelay() ); } ); return lifecycle; }; /** * Close a window. * * @param {OO.ui.Window|string} win Window object or symbolic name of window to close * @param {Object} [data] Window closing data * @return {OO.ui.WindowInstance} A lifecycle object representing this particular * opening of the window. For <API key>, the object is also a Thenable that is * resolved when the window is done closing, see T163510. * @fires closing */ OO.ui.WindowManager.prototype.closeWindow = function ( win, data ) { var error, manager = this, compatClosing = $.Deferred(), lifecycle = this.lifecycle, compatOpened; // Argument handling if ( typeof win === 'string' ) { win = this.windows[ win ]; } else if ( !this.hasWindow( win ) ) { win = null; } // Error handling if ( !lifecycle ) { error = 'Cannot close window: no window is currently open'; } else if ( !win ) { error = 'Cannot close window: window is not attached to manager'; } else if ( win !== this.currentWindow || this.lifecycle.isClosed() ) { error = 'Cannot close window: window already closed with different data'; } else if ( this.preparingToClose || this.lifecycle.isClosing() ) { error = 'Cannot close window: window already closing with different data'; } if ( error ) { // This function was called for the wrong window and we don't want to mess with the current // window's state. lifecycle = new OO.ui.WindowInstance(); // Pretend the window has been opened, so that we can pretend to fail to close it. lifecycle.deferreds.opening.resolve( {} ); lifecycle.deferreds.opened.resolve( {} ); } // Turn lifecycle into a Thenable for <API key> with // the deprecated nested-promise behaviour, see T163510. [ 'state', 'always', 'catch', 'pipe', 'then', 'promise', 'progress', 'done', 'fail' ] .forEach( function ( method ) { lifecycle[ method ] = function () { OO.ui.warnDeprecation( 'Using the return value of closeWindow as a promise is deprecated. ' + 'Use .closeWindow( ... ).closed.' + method + '( ... ) instead.' ); return compatClosing[ method ].apply( this, arguments ); }; } ); if ( error ) { compatClosing.reject( new OO.ui.Error( error ) ); lifecycle.deferreds.closing.reject( new OO.ui.Error( error ) ); return lifecycle; } // If the window is currently opening, close it when it's done this.preparingToClose = $.when( this.lifecycle.opened ); // Ensure handlers get called after preparingToClose is set this.preparingToClose.always( function () { manager.preparingToClose = null; manager.emit( 'closing', win, compatClosing, data ); lifecycle.deferreds.closing.resolve( data ); compatOpened = manager.compatOpened; manager.compatOpened = null; compatOpened.resolve( compatClosing.promise(), data ); manager.<API key>( false ); setTimeout( function () { win.hold( data ).then( function () { compatClosing.notify( { state: 'hold' } ); setTimeout( function () { win.teardown( data ).then( function () { compatClosing.notify( { state: 'teardown' } ); if ( manager.modal ) { manager.toggleGlobalEvents( false ); manager.toggleAriaIsolation( false ); } if ( manager.$returnFocusTo && manager.$returnFocusTo.length ) { manager.$returnFocusTo[ 0 ].focus(); } manager.currentWindow = null; manager.lifecycle = null; lifecycle.deferreds.closed.resolve( data ); compatClosing.resolve( data ); } ); }, manager.getTeardownDelay() ); } ); }, manager.getHoldDelay() ); } ); return lifecycle; }; OO.ui.WindowManager.prototype.addWindows = function ( windows ) { var i, len, win, name, list; if ( Array.isArray( windows ) ) { // Convert to map of windows by looking up symbolic names from static configuration list = {}; for ( i = 0, len = windows.length; i < len; i++ ) { name = windows[ i ].constructor.static.name; if ( !name ) { throw new Error( 'Windows must have a `name` static property defined.' ); } list[ name ] = windows[ i ]; } } else if ( OO.isPlainObject( windows ) ) { list = windows; } // Add windows for ( name in list ) { win = list[ name ]; this.windows[ name ] = win.toggle( false ); this.$element.append( win.$element ); win.setManager( this ); } }; /** * Remove the specified windows from the windows manager. * * Windows will be closed before they are removed. If you wish to remove all windows, you may wish * to use the #clearWindows method instead. If you no longer need the window manager and want to * ensure that it no longer listens to events, use the #destroy method. * * @param {string[]} names Symbolic names of windows to remove * @return {jQuery.Promise} Promise resolved when window is closed and removed * @throws {Error} An error is thrown if the named windows are not managed by the window manager. */ OO.ui.WindowManager.prototype.removeWindows = function ( names ) { var promises, manager = this; function cleanup( name, win ) { delete manager.windows[ name ]; win.$element.detach(); } promises = names.map( function ( name ) { var cleanupWindow, win = manager.windows[ name ]; if ( !win ) { throw new Error( 'Cannot remove window' ); } cleanupWindow = cleanup.bind( null, name, win ); return manager.closeWindow( name ).closed.then( cleanupWindow, cleanupWindow ); } ); return $.when.apply( $, promises ); }; /** * Remove all windows from the window manager. * * Windows will be closed before they are removed. Note that the window manager, though not in use, * will still listen to events. If the window manager will not be used again, you may wish to use * the #destroy method instead. To remove just a subset of windows, use the #removeWindows method. * * @return {jQuery.Promise} Promise resolved when all windows are closed and removed */ OO.ui.WindowManager.prototype.clearWindows = function () { return this.removeWindows( Object.keys( this.windows ) ); }; /** * Set dialog size. In general, this method should not be called directly. * * Fullscreen mode will be used if the dialog is too wide to fit in the screen. * * @param {OO.ui.Window} win Window to update, should be the current window * @chainable * @return {OO.ui.WindowManager} The manager, for chaining */ OO.ui.WindowManager.prototype.updateWindowSize = function ( win ) { var isFullscreen; // Bypass for non-current, and thus invisible, windows if ( win !== this.currentWindow ) { return; } isFullscreen = win.getSize() === 'full'; this.$element.toggleClass( '<API key>', isFullscreen ); this.$element.toggleClass( '<API key>', !isFullscreen ); win.setDimensions( win.getSizeProperties() ); this.emit( 'resize', win ); return this; }; /** * Prevent scrolling of the document on iOS devices that don't respect `body { overflow: hidden; }`. * * This function is called when the window is opened (ready), and so the background is covered up, * and the user won't see that we're doing weird things to the scroll position. * * @private * @param {boolean} on * @chainable * @return {OO.ui.WindowManager} The manager, for chaining */ OO.ui.WindowManager.prototype.<API key> = function ( on ) { var isIos = /ipad|iphone|ipod/i.test( navigator.userAgent ), $body = $( this.getElementDocument().body ), scrollableRoot = OO.ui.Element.static.<API key>( $body[ 0 ] ), stackDepth = $body.data( '<API key>' ) || 0; // Only if this is the first/last WindowManager (see #toggleGlobalEvents) if ( !isIos || stackDepth !== 1 ) { return this; } if ( on ) { // We can't apply this workaround for non-fullscreen dialogs, because the user would see the // Always remember the scroll position in case dialog is closed with different size. this.<API key> = scrollableRoot.scrollTop; if ( this.getCurrentWindow().getSize() === 'full' ) { $body.add( $body.parent() ).addClass( '<API key>' ); } } else { // Always restore ability to scroll in case dialog was opened with different size. $body.add( $body.parent() ).removeClass( '<API key>' ); if ( this.getCurrentWindow().getSize() === 'full' ) { scrollableRoot.scrollTop = this.<API key>; } } return this; }; /** * Bind or unbind global events for scrolling. * * @private * @param {boolean} [on] Bind global events * @chainable * @return {OO.ui.WindowManager} The manager, for chaining */ OO.ui.WindowManager.prototype.toggleGlobalEvents = function ( on ) { var scrollWidth, bodyMargin, $body = $( this.getElementDocument().body ), // We could have multiple window managers open so only modify // the body css at the bottom of the stack stackDepth = $body.data( '<API key>' ) || 0; on = on === undefined ? !!this.globalEvents : !!on; if ( on ) { if ( !this.globalEvents ) { $( this.getElementWindow() ).on( { // Start listening for top-level window dimension changes 'orientationchange resize': this.<API key> } ); if ( stackDepth === 0 ) { scrollWidth = window.innerWidth - document.documentElement.clientWidth; bodyMargin = parseFloat( $body.css( 'margin-right' ) ) || 0; $body.addClass( '<API key>' ); $body.css( 'margin-right', bodyMargin + scrollWidth ); } stackDepth++; this.globalEvents = true; } } else if ( this.globalEvents ) { $( this.getElementWindow() ).off( { // Stop listening for top-level window dimension changes 'orientationchange resize': this.<API key> } ); stackDepth if ( stackDepth === 0 ) { $body.removeClass( '<API key>' ); $body.css( 'margin-right', '' ); } this.globalEvents = false; } $body.data( '<API key>', stackDepth ); return this; }; /** * Toggle screen reader visibility of content other than the window manager. * * @private * @param {boolean} [isolate] Make only the window manager visible to screen readers * @chainable * @return {OO.ui.WindowManager} The manager, for chaining */ OO.ui.WindowManager.prototype.toggleAriaIsolation = function ( isolate ) { var $topLevelElement; isolate = isolate === undefined ? !this.$ariaHidden : !!isolate; if ( isolate ) { if ( !this.$ariaHidden ) { // Find the top level element containing the window manager or the // window manager's element itself in case its a direct child of body $topLevelElement = this.$element.parentsUntil( 'body' ).last(); $topLevelElement = $topLevelElement.length === 0 ? this.$element : $topLevelElement; // In case previously set by another window manager this.$element.removeAttr( 'aria-hidden' ); // Hide everything other than the window manager from screen readers this.$ariaHidden = $( document.body ) .children() .not( 'script' ) .not( $topLevelElement ) .attr( 'aria-hidden', true ); } } else if ( this.$ariaHidden ) { // Restore screen reader visibility this.$ariaHidden.removeAttr( 'aria-hidden' ); this.$ariaHidden = null; // and hide the window manager this.$element.attr( 'aria-hidden', true ); } return this; }; /** * Destroy the window manager. * * Destroying the window manager ensures that it will no longer listen to events. If you would like * to continue using the window manager, but wish to remove all windows from it, use the * #clearWindows method instead. */ OO.ui.WindowManager.prototype.destroy = function () { this.toggleGlobalEvents( false ); this.toggleAriaIsolation( false ); this.clearWindows(); this.$element.remove(); }; OO.ui.Window = function OoUiWindow( config ) { // Configuration initialization config = config || {}; // Parent constructor OO.ui.Window.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); // Properties this.manager = null; this.size = config.size || this.constructor.static.size; this.$frame = $( '<div>' ); this.$overlay = $( '<div>' ); this.$content = $( '<div>' ); this.$focusTrapBefore = $( '<div>' ).prop( 'tabIndex', 0 ); this.$focusTrapAfter = $( '<div>' ).prop( 'tabIndex', 0 ); this.$focusTraps = this.$focusTrapBefore.add( this.$focusTrapAfter ); // Initialization this.$overlay.addClass( '<API key>' ); this.$content .addClass( '<API key>' ) .attr( 'tabindex', -1 ); this.$frame .addClass( 'oo-ui-window-frame' ) .append( this.$focusTrapBefore, this.$content, this.$focusTrapAfter ); this.$element .addClass( 'oo-ui-window' ) .append( this.$frame, this.$overlay ); // Initially hidden - using #toggle may cause errors if subclasses override toggle with methods // that reference properties not initialized at that time of parent class construction // TODO: Find a better way to handle post-constructor setup this.visible = false; this.$element.addClass( '<API key>' ); }; /* Setup */ OO.inheritClass( OO.ui.Window, OO.ui.Element ); OO.mixinClass( OO.ui.Window, OO.EventEmitter ); /* Static Properties */ /** * Symbolic name of the window size: `small`, `medium`, `large`, `larger` or `full`. * * The static size is used if no #size is configured during construction. * * @static * @inheritable * @property {string} */ OO.ui.Window.static.size = 'medium'; /* Methods */ /** * Handle mouse down events. * * @private * @param {jQuery.Event} e Mouse down event * @return {OO.ui.Window} The window, for chaining */ OO.ui.Window.prototype.onMouseDown = function ( e ) { // Prevent clicking on the click-block from stealing focus if ( e.target === this.$element[ 0 ] ) { return false; } }; /** * Check if the window has been initialized. * * Initialization occurs when a window is added to a manager. * * @return {boolean} Window has been initialized */ OO.ui.Window.prototype.isInitialized = function () { return !!this.manager; }; /** * Check if the window is visible. * * @return {boolean} Window is visible */ OO.ui.Window.prototype.isVisible = function () { return this.visible; }; /** * Check if the window is opening. * * This method is a wrapper around the window manager's * {@link OO.ui.WindowManager#isOpening isOpening} method. * * @return {boolean} Window is opening */ OO.ui.Window.prototype.isOpening = function () { return this.manager.isOpening( this ); }; /** * Check if the window is closing. * * This method is a wrapper around the window manager's * {@link OO.ui.WindowManager#isClosing isClosing} method. * * @return {boolean} Window is closing */ OO.ui.Window.prototype.isClosing = function () { return this.manager.isClosing( this ); }; /** * Check if the window is opened. * * This method is a wrapper around the window manager's * {@link OO.ui.WindowManager#isOpened isOpened} method. * * @return {boolean} Window is opened */ OO.ui.Window.prototype.isOpened = function () { return this.manager.isOpened( this ); }; /** * Get the window manager. * * All windows must be attached to a window manager, which is used to open * and close the window and control its presentation. * * @return {OO.ui.WindowManager} Manager of window */ OO.ui.Window.prototype.getManager = function () { return this.manager; }; /** * Get the symbolic name of the window size (e.g., `small` or `medium`). * * @return {string} Symbolic name of the size: `small`, `medium`, `large`, `larger`, `full` */ OO.ui.Window.prototype.getSize = function () { var viewport = OO.ui.Element.static.getDimensions( this.getElementWindow() ), sizes = this.manager.constructor.static.sizes, size = this.size; if ( !sizes[ size ] ) { size = this.manager.constructor.static.defaultSize; } if ( size !== 'full' && viewport.rect.right - viewport.rect.left < sizes[ size ].width ) { size = 'full'; } return size; }; /** * Get the size properties associated with the current window size * * @return {Object} Size properties */ OO.ui.Window.prototype.getSizeProperties = function () { return this.manager.constructor.static.sizes[ this.getSize() ]; }; /** * Disable transitions on window's frame for the duration of the callback function, then enable them * back. * * @private * @param {Function} callback Function to call while transitions are disabled */ OO.ui.Window.prototype.<API key> = function ( callback ) { // Temporarily resize the frame so getBodyHeight() can use scrollHeight measurements. // Disable transitions first, otherwise we'll get values from when the window was animating. // We need to build the transition CSS properties using these specific properties since // Firefox doesn't return anything useful when asked just for 'transition'. var oldTransition = this.$frame.css( 'transition-property' ) + ' ' + this.$frame.css( 'transition-duration' ) + ' ' + this.$frame.css( '<API key>' ) + ' ' + this.$frame.css( 'transition-delay' ); this.$frame.css( 'transition', 'none' ); callback(); // Force reflow to make sure the style changes done inside callback // really are not transitioned this.$frame.height(); this.$frame.css( 'transition', oldTransition ); }; /** * Get the height of the full window contents (i.e., the window head, body and foot together). * * What constitutes the head, body, and foot varies depending on the window type. * A {@link OO.ui.MessageDialog message dialog} displays a title and message in its body, * and any actions in the foot. A {@link OO.ui.ProcessDialog process dialog} displays a title * and special actions in the head, and dialog content in the body. * * To get just the height of the dialog body, use the #getBodyHeight method. * * @return {number} The height of the window contents (the dialog head, body and foot) in pixels */ OO.ui.Window.prototype.getContentHeight = function () { var bodyHeight, win = this, bodyStyleObj = this.$body[ 0 ].style, frameStyleObj = this.$frame[ 0 ].style; // Temporarily resize the frame so getBodyHeight() can use scrollHeight measurements. // Disable transitions first, otherwise we'll get values from when the window was animating. this.<API key>( function () { var oldHeight = frameStyleObj.height, oldPosition = bodyStyleObj.position; frameStyleObj.height = '1px'; // Force body to resize to new width bodyStyleObj.position = 'relative'; bodyHeight = win.getBodyHeight(); frameStyleObj.height = oldHeight; bodyStyleObj.position = oldPosition; } ); return ( // Add buffer for border ( this.$frame.outerHeight() - this.$frame.innerHeight() ) + // Use combined heights of children ( this.$head.outerHeight( true ) + bodyHeight + this.$foot.outerHeight( true ) ) ); }; /** * Get the height of the window body. * * To get the height of the full window contents (the window body, head, and foot together), * use #getContentHeight. * * When this function is called, the window will temporarily have been resized * to height=1px, so .scrollHeight measurements can be taken accurately. * * @return {number} Height of the window body in pixels */ OO.ui.Window.prototype.getBodyHeight = function () { return this.$body[ 0 ].scrollHeight; }; /** * Get the directionality of the frame (right-to-left or left-to-right). * * @return {string} Directionality: `'ltr'` or `'rtl'` */ OO.ui.Window.prototype.getDir = function () { return OO.ui.Element.static.getDir( this.$content ) || 'ltr'; }; OO.ui.Window.prototype.getSetupProcess = function () { return new OO.ui.Process(); }; OO.ui.Window.prototype.getReadyProcess = function () { return new OO.ui.Process(); }; OO.ui.Window.prototype.getHoldProcess = function () { return new OO.ui.Process(); }; OO.ui.Window.prototype.getTeardownProcess = function () { return new OO.ui.Process(); }; /** * Set the window manager. * * This will cause the window to initialize. Calling it more than once will cause an error. * * @param {OO.ui.WindowManager} manager Manager for this window * @throws {Error} An error is thrown if the method is called more than once * @chainable * @return {OO.ui.Window} The window, for chaining */ OO.ui.Window.prototype.setManager = function ( manager ) { if ( this.manager ) { throw new Error( 'Cannot set window manager, window already has a manager' ); } this.manager = manager; this.initialize(); return this; }; /** * Set the window size by symbolic name (e.g., 'small' or 'medium') * * @param {string} size Symbolic name of size: `small`, `medium`, `large`, `larger` or * `full` * @chainable * @return {OO.ui.Window} The window, for chaining */ OO.ui.Window.prototype.setSize = function ( size ) { this.size = size; this.updateSize(); return this; }; /** * Update the window size. * * @throws {Error} An error is thrown if the window is not attached to a window manager * @chainable * @return {OO.ui.Window} The window, for chaining */ OO.ui.Window.prototype.updateSize = function () { if ( !this.manager ) { throw new Error( 'Cannot update window size, must be attached to a manager' ); } this.manager.updateWindowSize( this ); return this; }; /** * Set window dimensions. This method is called by the {@link OO.ui.WindowManager window manager} * when the window is opening. In general, setDimensions should not be called directly. * * To set the size of the window, use the #setSize method. * * @param {Object} dim CSS dimension properties * @param {string|number} [dim.width] Width * @param {string|number} [dim.minWidth] Minimum width * @param {string|number} [dim.maxWidth] Maximum width * @param {string|number} [dim.height] Height, omit to set based on height of contents * @param {string|number} [dim.minHeight] Minimum height * @param {string|number} [dim.maxHeight] Maximum height * @chainable * @return {OO.ui.Window} The window, for chaining */ OO.ui.Window.prototype.setDimensions = function ( dim ) { var height, win = this, styleObj = this.$frame[ 0 ].style; // Calculate the height we need to set using the correct width if ( dim.height === undefined ) { this.<API key>( function () { var oldWidth = styleObj.width; win.$frame.css( 'width', dim.width || '' ); height = win.getContentHeight(); styleObj.width = oldWidth; } ); } else { height = dim.height; } this.$frame.css( { width: dim.width || '', minWidth: dim.minWidth || '', maxWidth: dim.maxWidth || '', height: height || '', minHeight: dim.minHeight || '', maxHeight: dim.maxHeight || '' } ); return this; }; /** * Initialize window contents. * * Before the window is opened for the first time, #initialize is called so that content that * persists between openings can be added to the window. * * To set up a window with new content each time the window opens, use #getSetupProcess. * * @throws {Error} An error is thrown if the window is not attached to a window manager * @chainable * @return {OO.ui.Window} The window, for chaining */ OO.ui.Window.prototype.initialize = function () { if ( !this.manager ) { throw new Error( 'Cannot initialize window, must be attached to a manager' ); } // Properties this.$head = $( '<div>' ); this.$body = $( '<div>' ); this.$foot = $( '<div>' ); this.$document = $( this.getElementDocument() ); // Events this.$element.on( 'mousedown', this.onMouseDown.bind( this ) ); // Initialization this.$head.addClass( 'oo-ui-window-head' ); this.$body.addClass( 'oo-ui-window-body' ); this.$foot.addClass( 'oo-ui-window-foot' ); this.$content.append( this.$head, this.$body, this.$foot ); return this; }; /** * Called when someone tries to focus the hidden element at the end of the dialog. * Sends focus back to the start of the dialog. * * @param {jQuery.Event} event Focus event */ OO.ui.Window.prototype.onFocusTrapFocused = function ( event ) { var backwards = this.$focusTrapBefore.is( event.target ), element = OO.ui.findFocusable( this.$content, backwards ); if ( element ) { // There's a focusable element inside the content, at the front or // back depending on which focus trap we hit; select it. element.focus(); } else { // There's nothing focusable inside the content. As a fallback, // this.$content is focusable, and focusing it will keep our focus // properly trapped. It's not a *meaningful* focus, since it's just // the content-div for the Window, but it's better than letting focus // escape into the page. this.$content.trigger( 'focus' ); } }; OO.ui.Window.prototype.open = function ( data ) { if ( !this.manager ) { throw new Error( 'Cannot open window, must be attached to a manager' ); } return this.manager.openWindow( this, data ); }; OO.ui.Window.prototype.close = function ( data ) { if ( !this.manager ) { throw new Error( 'Cannot close window, must be attached to a manager' ); } return this.manager.closeWindow( this, data ); }; /** * Setup window. * * This is called by OO.ui.WindowManager during window opening (before the animation), and should * not be called directly by other systems. * * @param {Object} [data] Window opening data * @return {jQuery.Promise} Promise resolved when window is setup */ OO.ui.Window.prototype.setup = function ( data ) { var win = this; this.toggle( true ); this.focusTrapHandler = OO.ui.bind( this.onFocusTrapFocused, this ); this.$focusTraps.on( 'focus', this.focusTrapHandler ); return this.getSetupProcess( data ).execute().then( function () { win.updateSize(); // Force redraw by asking the browser to measure the elements' widths win.$element.addClass( 'oo-ui-window-active oo-ui-window-setup' ).width(); win.$content.addClass( '<API key>' ).width(); } ); }; /** * Ready window. * * This is called by OO.ui.WindowManager during window opening (after the animation), and should not * be called directly by other systems. * * @param {Object} [data] Window opening data * @return {jQuery.Promise} Promise resolved when window is ready */ OO.ui.Window.prototype.ready = function ( data ) { var win = this; this.$content.trigger( 'focus' ); return this.getReadyProcess( data ).execute().then( function () { // Force redraw by asking the browser to measure the elements' widths win.$element.addClass( 'oo-ui-window-ready' ).width(); win.$content.addClass( '<API key>' ).width(); } ); }; /** * Hold window. * * This is called by OO.ui.WindowManager during window closing (before the animation), and should * not be called directly by other systems. * * @param {Object} [data] Window closing data * @return {jQuery.Promise} Promise resolved when window is held */ OO.ui.Window.prototype.hold = function ( data ) { var win = this; return this.getHoldProcess( data ).execute().then( function () { // Get the focused element within the window's content var $focus = win.$content.find( OO.ui.Element.static.getDocument( win.$content ).activeElement ); // Blur the focused element if ( $focus.length ) { $focus[ 0 ].blur(); } // Force redraw by asking the browser to measure the elements' widths win.$element.removeClass( 'oo-ui-window-ready oo-ui-window-setup' ).width(); win.$content.removeClass( '<API key> <API key>' ).width(); } ); }; /** * Teardown window. * * This is called by OO.ui.WindowManager during window closing (after the animation), and should not * be called directly by other systems. * * @param {Object} [data] Window closing data * @return {jQuery.Promise} Promise resolved when window is torn down */ OO.ui.Window.prototype.teardown = function ( data ) { var win = this; return this.getTeardownProcess( data ).execute().then( function () { // Force redraw by asking the browser to measure the elements' widths win.$element.removeClass( 'oo-ui-window-active' ).width(); win.$focusTraps.off( 'focus', win.focusTrapHandler ); win.toggle( false ); } ); }; OO.ui.Dialog = function OoUiDialog( config ) { // Parent constructor OO.ui.Dialog.super.call( this, config ); // Mixin constructors OO.ui.mixin.PendingElement.call( this ); // Properties this.actions = new OO.ui.ActionSet(); this.attachedActions = []; this.currentAction = null; this.<API key> = this.onDialogKeyDown.bind( this ); // Events this.actions.connect( this, { click: 'onActionClick', change: 'onActionsChange' } ); // Initialization this.$element .addClass( 'oo-ui-dialog' ) .attr( 'role', 'dialog' ); }; /* Setup */ OO.inheritClass( OO.ui.Dialog, OO.ui.Window ); OO.mixinClass( OO.ui.Dialog, OO.ui.mixin.PendingElement ); /* Static Properties */ OO.ui.Dialog.static.name = ''; /** * The dialog title. * * The title can be specified as a plaintext string, a {@link OO.ui.mixin.LabelElement Label} node, * or a function that will produce a Label node or string. The title can also be specified with data * passed to the constructor (see #getSetupProcess). In this case, the static value will be * overridden. * * @abstract * @static * @inheritable * @property {jQuery|string|Function} */ OO.ui.Dialog.static.title = ''; OO.ui.Dialog.static.actions = []; /** * Close the dialog when the Escape key is pressed. * * @static * @abstract * @inheritable * @property {boolean} */ OO.ui.Dialog.static.escapable = true; /* Methods */ /** * Handle frame document key down events. * * @private * @param {jQuery.Event} e Key down event */ OO.ui.Dialog.prototype.onDialogKeyDown = function ( e ) { var actions; if ( e.which === OO.ui.Keys.ESCAPE && this.constructor.static.escapable ) { this.executeAction( '' ); e.preventDefault(); e.stopPropagation(); } else if ( e.which === OO.ui.Keys.ENTER && ( e.ctrlKey || e.metaKey ) ) { actions = this.actions.get( { flags: 'primary', visible: true, disabled: false } ); if ( actions.length > 0 ) { this.executeAction( actions[ 0 ].getAction() ); e.preventDefault(); e.stopPropagation(); } } }; /** * Handle action click events. * * @private * @param {OO.ui.ActionWidget} action Action that was clicked */ OO.ui.Dialog.prototype.onActionClick = function ( action ) { if ( !this.isPending() ) { this.executeAction( action.getAction() ); } }; /** * Handle actions change event. * * @private */ OO.ui.Dialog.prototype.onActionsChange = function () { this.detachActions(); if ( !this.isClosing() ) { this.attachActions(); if ( !this.isOpening() ) { // If the dialog is currently opening, this will be called automatically soon. this.updateSize(); } } }; /** * Get the set of actions used by the dialog. * * @return {OO.ui.ActionSet} */ OO.ui.Dialog.prototype.getActions = function () { return this.actions; }; /** * Get a process for taking action. * * When you override this method, you can create a new OO.ui.Process and return it, or add * additional accept steps to the process the parent method provides using the * {@link OO.ui.Process#first 'first'} and {@link OO.ui.Process#next 'next'} methods of * OO.ui.Process. * * @param {string} [action] Symbolic name of action * @return {OO.ui.Process} Action process */ OO.ui.Dialog.prototype.getActionProcess = function ( action ) { return new OO.ui.Process() .next( function () { if ( !action ) { // An empty action always closes the dialog without data, which should always be // safe and make no changes this.close(); } }, this ); }; /** * @inheritdoc * * @param {Object} [data] Dialog opening data * @param {jQuery|string|Function|null} [data.title] Dialog title, omit to use * the {@link #static-title static title} * @param {Object[]} [data.actions] List of configuration options for each * {@link OO.ui.ActionWidget action widget}, omit to use {@link #static-actions static actions}. */ OO.ui.Dialog.prototype.getSetupProcess = function ( data ) { data = data || {}; // Parent method return OO.ui.Dialog.super.prototype.getSetupProcess.call( this, data ) .next( function () { var config = this.constructor.static, actions = data.actions !== undefined ? data.actions : config.actions, title = data.title !== undefined ? data.title : config.title; this.title.setLabel( title ).setTitle( title ); this.actions.add( this.getActionWidgets( actions ) ); this.$element.on( 'keydown', this.<API key> ); }, this ); }; /** * @inheritdoc */ OO.ui.Dialog.prototype.getTeardownProcess = function ( data ) { // Parent method return OO.ui.Dialog.super.prototype.getTeardownProcess.call( this, data ) .first( function () { this.$element.off( 'keydown', this.<API key> ); this.actions.clear(); this.currentAction = null; }, this ); }; /** * @inheritdoc */ OO.ui.Dialog.prototype.initialize = function () { // Parent method OO.ui.Dialog.super.prototype.initialize.call( this ); // Properties this.title = new OO.ui.LabelWidget(); // Initialization this.$content.addClass( '<API key>' ); this.$element.attr( 'aria-labelledby', this.title.getElementId() ); this.setPendingElement( this.$head ); }; /** * Get action widgets from a list of configs * * @param {Object[]} actions Action widget configs * @return {OO.ui.ActionWidget[]} Action widgets */ OO.ui.Dialog.prototype.getActionWidgets = function ( actions ) { var i, len, widgets = []; for ( i = 0, len = actions.length; i < len; i++ ) { widgets.push( this.getActionWidget( actions[ i ] ) ); } return widgets; }; /** * Get action widget from config * * Override this method to change the action widget class used. * * @param {Object} config Action widget config * @return {OO.ui.ActionWidget} Action widget */ OO.ui.Dialog.prototype.getActionWidget = function ( config ) { return new OO.ui.ActionWidget( this.<API key>( config ) ); }; /** * Get action widget config * * Override this method to modify the action widget config * * @param {Object} config Initial action widget config * @return {Object} Action widget config */ OO.ui.Dialog.prototype.<API key> = function ( config ) { return config; }; /** * Attach action actions. * * @protected */ OO.ui.Dialog.prototype.attachActions = function () { // Remember the list of potentially attached actions this.attachedActions = this.actions.get(); }; /** * Detach action actions. * * @protected * @chainable * @return {OO.ui.Dialog} The dialog, for chaining */ OO.ui.Dialog.prototype.detachActions = function () { var i, len; // Detach all actions that may have been previously attached for ( i = 0, len = this.attachedActions.length; i < len; i++ ) { this.attachedActions[ i ].$element.detach(); } this.attachedActions = []; return this; }; /** * Execute an action. * * @param {string} action Symbolic name of action to execute * @return {jQuery.Promise} Promise resolved when action completes, rejected if it fails */ OO.ui.Dialog.prototype.executeAction = function ( action ) { this.pushPending(); this.currentAction = action; return this.getActionProcess( action ).execute() .always( this.popPending.bind( this ) ); }; OO.ui.MessageDialog = function OoUiMessageDialog( config ) { // Parent constructor OO.ui.MessageDialog.super.call( this, config ); // Properties this.<API key> = null; // Initialization this.$element.addClass( 'oo-ui-messageDialog' ); }; /* Setup */ OO.inheritClass( OO.ui.MessageDialog, OO.ui.Dialog ); /* Static Properties */ /** * @static * @inheritdoc */ OO.ui.MessageDialog.static.name = 'message'; /** * @static * @inheritdoc */ OO.ui.MessageDialog.static.size = 'small'; /** * Dialog title. * * The title of a confirmation dialog describes what a progressive action will do. The * title of an alert dialog describes which event occurred. * * @static * @inheritable * @property {jQuery|string|Function|null} */ OO.ui.MessageDialog.static.title = null; /** * The message displayed in the dialog body. * * A confirmation message describes the consequences of a progressive action. An alert * message describes why an event occurred. * * @static * @inheritable * @property {jQuery|string|Function|null} */ OO.ui.MessageDialog.static.message = null; /** * @static * @inheritdoc */ OO.ui.MessageDialog.static.actions = [ // Note that OO.ui.alert() and OO.ui.confirm() rely on these. { action: 'accept', label: OO.ui.deferMsg( '<API key>' ), flags: 'primary' }, { action: 'reject', label: OO.ui.deferMsg( '<API key>' ), flags: 'safe' } ]; /* Methods */ /** * Toggle action layout between vertical and horizontal. * * @private * @param {boolean} [value] Layout actions vertically, omit to toggle * @chainable * @return {OO.ui.MessageDialog} The dialog, for chaining */ OO.ui.MessageDialog.prototype.<API key> = function ( value ) { value = value === undefined ? !this.<API key> : !!value; if ( value !== this.<API key> ) { this.<API key> = value; this.$actions .toggleClass( '<API key>', value ) .toggleClass( '<API key>', !value ); } return this; }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.getActionProcess = function ( action ) { if ( action ) { return new OO.ui.Process( function () { this.close( { action: action } ); }, this ); } return OO.ui.MessageDialog.super.prototype.getActionProcess.call( this, action ); }; /** * @inheritdoc * * @param {Object} [data] Dialog opening data * @param {jQuery|string|Function|null} [data.title] Description of the action being confirmed * @param {jQuery|string|Function|null} [data.message] Description of the action's consequence * @param {string} [data.size] Symbolic name of the dialog size, see OO.ui.Window * @param {Object[]} [data.actions] List of OO.ui.ActionOptionWidget configuration options for each * action item */ OO.ui.MessageDialog.prototype.getSetupProcess = function ( data ) { data = data || {}; // Parent method return OO.ui.MessageDialog.super.prototype.getSetupProcess.call( this, data ) .next( function () { this.title.setLabel( data.title !== undefined ? data.title : this.constructor.static.title ); this.message.setLabel( data.message !== undefined ? data.message : this.constructor.static.message ); this.size = data.size !== undefined ? data.size : this.constructor.static.size; }, this ); }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.getReadyProcess = function ( data ) { data = data || {}; // Parent method return OO.ui.MessageDialog.super.prototype.getReadyProcess.call( this, data ) .next( function () { // Focus the primary action button var actions = this.actions.get(); actions = actions.filter( function ( action ) { return action.getFlags().indexOf( 'primary' ) > -1; } ); if ( actions.length > 0 ) { actions[ 0 ].focus(); } }, this ); }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.getBodyHeight = function () { var bodyHeight, oldOverflow, $scrollable = this.container.$element; oldOverflow = $scrollable[ 0 ].style.overflow; $scrollable[ 0 ].style.overflow = 'hidden'; OO.ui.Element.static.<API key>( $scrollable[ 0 ] ); bodyHeight = this.text.$element.outerHeight( true ); $scrollable[ 0 ].style.overflow = oldOverflow; return bodyHeight; }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.setDimensions = function ( dim ) { var dialog = this, $scrollable = this.container.$element; OO.ui.MessageDialog.super.prototype.setDimensions.call( this, dim ); // Twiddle the overflow property, otherwise an unnecessary scrollbar will be produced. // Need to do it after transition completes (250ms), add 50ms just in case. setTimeout( function () { var oldOverflow = $scrollable[ 0 ].style.overflow, activeElement = document.activeElement; $scrollable[ 0 ].style.overflow = 'hidden'; OO.ui.Element.static.<API key>( $scrollable[ 0 ] ); // Check <API key> didn't destroy our focus, as we // are doing this after the ready process. if ( activeElement && activeElement !== document.activeElement && activeElement.focus ) { activeElement.focus(); } $scrollable[ 0 ].style.overflow = oldOverflow; }, 300 ); dialog.fitActions(); // Wait for CSS transition to finish and do it again :( setTimeout( function () { dialog.fitActions(); }, 300 ); return this; }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.initialize = function () { // Parent method OO.ui.MessageDialog.super.prototype.initialize.call( this ); // Properties this.$actions = $( '<div>' ); this.container = new OO.ui.PanelLayout( { scrollable: true, classes: [ '<API key>' ] } ); this.text = new OO.ui.PanelLayout( { padded: true, expanded: false, classes: [ '<API key>' ] } ); this.message = new OO.ui.LabelWidget( { classes: [ '<API key>' ] } ); // Initialization this.title.$element.addClass( '<API key>' ); this.$content.addClass( '<API key>' ); this.container.$element.append( this.text.$element ); this.text.$element.append( this.title.$element, this.message.$element ); this.$body.append( this.container.$element ); this.$actions.addClass( '<API key>' ); this.$foot.append( this.$actions ); }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.<API key> = function ( config ) { // Force unframed return $.extend( {}, config, { framed: false } ); }; /** * @inheritdoc */ OO.ui.MessageDialog.prototype.attachActions = function () { var i, len, special, others; // Parent method OO.ui.MessageDialog.super.prototype.attachActions.call( this ); special = this.actions.getSpecial(); others = this.actions.getOthers(); if ( special.safe ) { this.$actions.append( special.safe.$element ); special.safe.toggleFramed( true ); } for ( i = 0, len = others.length; i < len; i++ ) { this.$actions.append( others[ i ].$element ); others[ i ].toggleFramed( true ); } if ( special.primary ) { this.$actions.append( special.primary.$element ); special.primary.toggleFramed( true ); } }; /** * Fit action actions into columns or rows. * * Columns will be used if all labels can fit without overflow, otherwise rows will be used. * * @private */ OO.ui.MessageDialog.prototype.fitActions = function () { var i, len, action, previous = this.<API key>, actions = this.actions.get(); // Detect clipping this.<API key>( false ); for ( i = 0, len = actions.length; i < len; i++ ) { action = actions[ i ]; if ( action.$element[ 0 ].scrollWidth > action.$element[ 0 ].clientWidth ) { this.<API key>( true ); break; } } // Move the body out of the way of the foot this.$body.css( 'bottom', this.$foot.outerHeight( true ) ); if ( this.<API key> !== previous ) { // We changed the layout, window height might need to be updated. this.updateSize(); } }; OO.ui.ProcessDialog = function OoUiProcessDialog( config ) { // Parent constructor OO.ui.ProcessDialog.super.call( this, config ); // Properties this.fitOnOpen = false; // Initialization this.$element.addClass( 'oo-ui-processDialog' ); if ( OO.ui.isMobile() ) { this.$element.addClass( 'oo-ui-isMobile' ); } }; /* Setup */ OO.inheritClass( OO.ui.ProcessDialog, OO.ui.Dialog ); /* Methods */ /** * Handle dismiss button click events. * * Hides errors. * * @private */ OO.ui.ProcessDialog.prototype.<API key> = function () { this.hideErrors(); }; /** * Handle retry button click events. * * Hides errors and then tries again. * * @private */ OO.ui.ProcessDialog.prototype.onRetryButtonClick = function () { this.hideErrors(); this.executeAction( this.currentAction ); }; /** * @inheritdoc */ OO.ui.ProcessDialog.prototype.initialize = function () { // Parent method OO.ui.ProcessDialog.super.prototype.initialize.call( this ); // Properties this.$navigation = $( '<div>' ); this.$location = $( '<div>' ); this.$safeActions = $( '<div>' ); this.$primaryActions = $( '<div>' ); this.$otherActions = $( '<div>' ); this.dismissButton = new OO.ui.ButtonWidget( { label: OO.ui.msg( '<API key>' ) } ); this.retryButton = new OO.ui.ButtonWidget(); this.$errors = $( '<div>' ); this.$errorsTitle = $( '<div>' ); // Events this.dismissButton.connect( this, { click: '<API key>' } ); this.retryButton.connect( this, { click: 'onRetryButtonClick' } ); this.title.connect( this, { labelChange: 'fitLabel' } ); // Initialization this.title.$element.addClass( '<API key>' ); this.$location .append( this.title.$element ) .addClass( '<API key>' ); this.$safeActions.addClass( '<API key>' ); this.$primaryActions.addClass( '<API key>' ); this.$otherActions.addClass( '<API key>' ); this.$errorsTitle .addClass( '<API key>' ) .text( OO.ui.msg( '<API key>' ) ); this.$errors .addClass( '<API key> <API key>' ) .append( this.$errorsTitle, $( '<div>' ).addClass( '<API key>' ).append( this.dismissButton.$element, this.retryButton.$element ) ); this.$content .addClass( '<API key>' ) .append( this.$errors ); this.$navigation .addClass( '<API key>' ) // Note: Order of appends below is important. These are in the order // we want tab to go through them. Display-order is handled entirely // by CSS <API key>. As such, primary actions like "done" // should go first. .append( this.$primaryActions, this.$location, this.$safeActions ); this.$head.append( this.$navigation ); this.$foot.append( this.$otherActions ); }; /** * @inheritdoc */ OO.ui.ProcessDialog.prototype.<API key> = function ( config ) { function checkFlag( flag ) { return config.flags === flag || ( Array.isArray( config.flags ) && config.flags.indexOf( flag ) !== -1 ); } config = $.extend( { framed: true }, config ); if ( checkFlag( 'close' ) ) { // Change close buttons to icon only. $.extend( config, { icon: 'close', invisibleLabel: true } ); } else if ( checkFlag( 'back' ) ) { // Change back buttons to icon only. $.extend( config, { icon: 'previous', invisibleLabel: true } ); } return config; }; /** * @inheritdoc */ OO.ui.ProcessDialog.prototype.attachActions = function () { var i, len, other, special, others; // Parent method OO.ui.ProcessDialog.super.prototype.attachActions.call( this ); special = this.actions.getSpecial(); others = this.actions.getOthers(); if ( special.primary ) { this.$primaryActions.append( special.primary.$element ); } for ( i = 0, len = others.length; i < len; i++ ) { other = others[ i ]; this.$otherActions.append( other.$element ); } if ( special.safe ) { this.$safeActions.append( special.safe.$element ); } }; /** * @inheritdoc */ OO.ui.ProcessDialog.prototype.executeAction = function ( action ) { var dialog = this; return OO.ui.ProcessDialog.super.prototype.executeAction.call( this, action ) .fail( function ( errors ) { dialog.showErrors( errors || [] ); } ); }; /** * @inheritdoc */ OO.ui.ProcessDialog.prototype.setDimensions = function () { var dialog = this; // Parent method OO.ui.ProcessDialog.super.prototype.setDimensions.apply( this, arguments ); this.fitLabel(); // If there are many actions, they might be shown on multiple lines. Their layout can change // when resizing the dialog and when changing the actions. Adjust the height of the footer to // fit them. dialog.$body.css( 'bottom', dialog.$foot.outerHeight( true ) ); // Wait for CSS transition to finish and do it again :( setTimeout( function () { dialog.$body.css( 'bottom', dialog.$foot.outerHeight( true ) ); }, 300 ); }; /** * Fit label between actions. * * @private * @chainable * @return {OO.ui.MessageDialog} The dialog, for chaining */ OO.ui.ProcessDialog.prototype.fitLabel = function () { var safeWidth, primaryWidth, biggerWidth, labelWidth, navigationWidth, leftWidth, rightWidth, size = this.getSizeProperties(); if ( typeof size.width !== 'number' ) { if ( this.isOpened() ) { navigationWidth = this.$head.width() - 20; } else if ( this.isOpening() ) { if ( !this.fitOnOpen ) { // Size is relative and the dialog isn't open yet, so wait. // FIXME: This should ideally be handled by setup somehow. this.manager.lifecycle.opened.done( this.fitLabel.bind( this ) ); this.fitOnOpen = true; } return; } else { return; } } else { navigationWidth = size.width - 20; } safeWidth = this.$safeActions.width(); primaryWidth = this.$primaryActions.width(); biggerWidth = Math.max( safeWidth, primaryWidth ); labelWidth = this.title.$element.width(); if ( !OO.ui.isMobile() && 2 * biggerWidth + labelWidth < navigationWidth ) { // We have enough space to center the label leftWidth = rightWidth = biggerWidth; } else { // Let's hope we at least have enough space not to overlap, because we can't wrap // the label. if ( this.getDir() === 'ltr' ) { leftWidth = safeWidth; rightWidth = primaryWidth; } else { leftWidth = primaryWidth; rightWidth = safeWidth; } } this.$location.css( { paddingLeft: leftWidth, paddingRight: rightWidth } ); return this; }; /** * Handle errors that occurred during accept or reject processes. * * @private * @param {OO.ui.Error[]|OO.ui.Error} errors Errors to be handled */ OO.ui.ProcessDialog.prototype.showErrors = function ( errors ) { var i, len, actions, items = [], abilities = {}, recoverable = true, warning = false; if ( errors instanceof OO.ui.Error ) { errors = [ errors ]; } for ( i = 0, len = errors.length; i < len; i++ ) { if ( !errors[ i ].isRecoverable() ) { recoverable = false; } if ( errors[ i ].isWarning() ) { warning = true; } items.push( new OO.ui.MessageWidget( { type: 'error', label: errors[ i ].getMessage() } ).$element[ 0 ] ); } this.$errorItems = $( items ); if ( recoverable ) { abilities[ this.currentAction ] = true; // Copy the flags from the first matching action. actions = this.actions.get( { actions: this.currentAction } ); if ( actions.length ) { this.retryButton.clearFlags().setFlags( actions[ 0 ].getFlags() ); } } else { abilities[ this.currentAction ] = false; this.actions.setAbilities( abilities ); } if ( warning ) { this.retryButton.setLabel( OO.ui.msg( '<API key>' ) ); } else { this.retryButton.setLabel( OO.ui.msg( '<API key>' ) ); } this.retryButton.toggle( recoverable ); this.$errorsTitle.after( this.$errorItems ); this.$errors.removeClass( '<API key>' ).scrollTop( 0 ); }; /** * Hide errors. * * @private */ OO.ui.ProcessDialog.prototype.hideErrors = function () { this.$errors.addClass( '<API key>' ); if ( this.$errorItems ) { this.$errorItems.remove(); this.$errorItems = null; } }; /** * @inheritdoc */ OO.ui.ProcessDialog.prototype.getTeardownProcess = function ( data ) { // Parent method return OO.ui.ProcessDialog.super.prototype.getTeardownProcess.call( this, data ) .first( function () { // Make sure to hide errors. this.hideErrors(); this.fitOnOpen = false; }, this ); }; /** * @class OO.ui */ /** * Lazy-initialize and return a global OO.ui.WindowManager instance, used by OO.ui.alert and * OO.ui.confirm. * * @private * @return {OO.ui.WindowManager} */ OO.ui.getWindowManager = function () { if ( !OO.ui.windowManager ) { OO.ui.windowManager = new OO.ui.WindowManager(); $( document.body ).append( OO.ui.windowManager.$element ); OO.ui.windowManager.addWindows( [ new OO.ui.MessageDialog() ] ); } return OO.ui.windowManager; }; /** * Display a quick modal alert dialog, using a OO.ui.MessageDialog. While the dialog is open, the * rest of the page will be dimmed out and the user won't be able to interact with it. The dialog * has only one action button, labelled "OK", clicking it will simply close the dialog. * * A window manager is created automatically when this function is called for the first time. * * @example * OO.ui.alert( 'Something happened!' ).done( function () { * console.log( 'User closed the dialog.' ); * } ); * * OO.ui.alert( 'Something larger happened!', { size: 'large' } ); * * @param {jQuery|string} text Message text to display * @param {Object} [options] Additional options, see OO.ui.MessageDialog#getSetupProcess * @return {jQuery.Promise} Promise resolved when the user closes the dialog */ OO.ui.alert = function ( text, options ) { return OO.ui.getWindowManager().openWindow( 'message', $.extend( { message: text, actions: [ OO.ui.MessageDialog.static.actions[ 0 ] ] }, options ) ).closed.then( function () { return undefined; } ); }; /** * Display a quick modal confirmation dialog, using a OO.ui.MessageDialog. While the dialog is open, * the rest of the page will be dimmed out and the user won't be able to interact with it. The * dialog has two action buttons, one to confirm an operation (labelled "OK") and one to cancel it * (labelled "Cancel"). * * A window manager is created automatically when this function is called for the first time. * * @example * OO.ui.confirm( 'Are you sure?' ).done( function ( confirmed ) { * if ( confirmed ) { * console.log( 'User clicked "OK"!' ); * } else { * console.log( 'User clicked "Cancel" or closed the dialog.' ); * } * } ); * * @param {jQuery|string} text Message text to display * @param {Object} [options] Additional options, see OO.ui.MessageDialog#getSetupProcess * @return {jQuery.Promise} Promise resolved when the user closes the dialog. If the user chose to * confirm, the promise will resolve to boolean `true`; otherwise, it will resolve to boolean * `false`. */ OO.ui.confirm = function ( text, options ) { return OO.ui.getWindowManager().openWindow( 'message', $.extend( { message: text }, options ) ).closed.then( function ( data ) { return !!( data && data.action === 'accept' ); } ); }; /** * Display a quick modal prompt dialog, using a OO.ui.MessageDialog. While the dialog is open, * the rest of the page will be dimmed out and the user won't be able to interact with it. The * dialog has a text input widget and two action buttons, one to confirm an operation * (labelled "OK") and one to cancel it (labelled "Cancel"). * * A window manager is created automatically when this function is called for the first time. * * @example * OO.ui.prompt( 'Choose a line to go to', { * textInput: { placeholder: 'Line number' } * } ).done( function ( result ) { * if ( result !== null ) { * console.log( 'User typed "' + result + '" then clicked "OK".' ); * } else { * console.log( 'User clicked "Cancel" or closed the dialog.' ); * } * } ); * * @param {jQuery|string} text Message text to display * @param {Object} [options] Additional options, see OO.ui.MessageDialog#getSetupProcess * @param {Object} [options.textInput] Additional options for text input widget, * see OO.ui.TextInputWidget * @return {jQuery.Promise} Promise resolved when the user closes the dialog. If the user chose to * confirm, the promise will resolve with the value of the text input widget; otherwise, it will * resolve to `null`. */ OO.ui.prompt = function ( text, options ) { var instance, manager = OO.ui.getWindowManager(), textInput = new OO.ui.TextInputWidget( ( options && options.textInput ) || {} ), textField = new OO.ui.FieldLayout( textInput, { align: 'top', label: text } ); instance = manager.openWindow( 'message', $.extend( { message: textField.$element }, options ) ); // TODO: This is a little hacky, and could be done by extending MessageDialog instead. instance.opened.then( function () { textInput.on( 'enter', function () { manager.getCurrentWindow().close( { action: 'accept' } ); } ); textInput.focus(); } ); return instance.closed.then( function ( data ) { return data && data.action === 'accept' ? textInput.getValue() : null; } ); }; }( OO ) ); //# sourceMappingURL=oojs-ui-windows.js.map.json
<?php namespace Report; use Illuminate\Support\Collection; class Datareport { protected static $instance = NULL; protected $id = NULL; protected $caption = NULL; protected $icon = NULL; // protected $rowSourceUrl = NULL; // server side row source url // protected $columns = NULL; // protected $displayStart = 0; // DT parameter // protected $displayLength = 10; // DT parameter // protected $dom = ''; // protected $defaultOrder = "0, 'asc'"; protected $styles = NULL; // page styles protected $scripts = NULL; // page scripts // protected $name = NULL; protected $custom_styles = NULL; protected $custom_scripts = NULL; public function __construct() { $this->styles = new Collection(); $this->scripts = new Collection(); } public static function make() { return self::$instance = new Datareport(); } public function addStyleFile($file) { $this->styles->push($file); return $this; } public function addScriptFile($file) { $this->scripts->push($file); return $this; } public function __call($method, $args) { if(! property_exists($this, $method)) { throw new \Exception('Method: ' . __METHOD__ . '. File: ' . __FILE__ . '. Message: Property "' . $method . '" unknown.'); } if( isset($args[0]) ) { $this->{$method} = $args[0]; return $this; } return $this->{$method}; } protected function addCustomStyles() { if( $this->custom_styles ) { foreach( explode(',', $this->custom_styles) as $i => $file) { $this->addStyleFile(trim($file)); } } } protected function addCustomScripts() { if( $this->custom_scripts ) { foreach( explode(',', $this->custom_scripts) as $i => $file) { $this->addScriptFile(trim($file)); } } } public function styles() { $this->addCustomStyles(); $result = ''; foreach($this->styles as $i => $file) { $result .= \HTML::style($file); } return $result; } public function scripts() { $this->addCustomScripts(); $result = ''; foreach($this->scripts as $i => $file) { $result .= \HTML::script($file); } return $result; } }
require 'simplecov' require 'coveralls' Coveralls.wear! SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter '/spec/' end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'llt/db_handler/stub' RSpec.configure do |config| config.<API key> = true config.<API key> = true config.filter_run :focus end
<?php namespace App\Support\Http\Routing; use App\Support\Facades\Request; use App\Support\Traits\ClassNameTrait; /** * Class Router * @package App\Support\Routing * @author Fruty <ed.fruty@gmail.com> */ class Router { use ClassNameTrait; /** * Registered routes * * @access protected * @var array */ protected $routes = []; /** * @var \Closure */ protected $action404; /** * Register route * * @access public * @param string $uri * @param mixed [string|\Closure] $action */ public function map($uri, $action) { $route = new Route(); $route->setUri($uri); $route->setAction($action); $this->routes[] = $route; } /** * @return mixed */ public function handle() { foreach ($this->routes as $route) { if ($this->matchRequest($route)) { /** @var Route $route */ return $route->dispatch(); } } return $this->show404(); } /** * @param $route * @return int */ protected function matchRequest(Route $route) { return preg_match($route->getRegex(), Request::getUri()); } /** * @param callable $closure * @return mixed */ public function show404(\Closure $closure = null) { if ($closure) { $this->action404 = $closure; } else { $closure = $this->action404; if (! is_callable($closure)) { throw new \<API key>("404 page handler not defined"); } return $closure(); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Dulcet.Twitter; using Inscribe.Common; using Inscribe.Configuration; using Inscribe.Util; using Inscribe.Subsystems; using Inscribe.ViewModels.PartBlocks.MainBlock.TimelineChild; using Livet; namespace Inscribe.Storage { <summary> </summary> public enum TweetExistState { Unreceived, EmptyExists, Exists, ServerDeleted, } <summary> (ViewModel) </summary> public static class TweetStorage { <summary> </summary> static <API key> lockWrap = new <API key>(LockRecursionPolicy.NoRecursion); <summary> </summary> static SortedDictionary<long, TweetViewModel> dictionary = new SortedDictionary<long, TweetViewModel>(); static <API key> vmLockWrap = new <API key>(LockRecursionPolicy.NoRecursion); <summary> ViewModel </summary> static List<TweetViewModel> viewmodels = new List<TweetViewModel>(); <summary> empties/deleteReserveds </summary> static <API key> elockWrap = new <API key>(LockRecursionPolicy.NoRecursion); <summary> </summary> static SortedDictionary<long, TweetViewModel> empties = new SortedDictionary<long, TweetViewModel>(); <summary> ID </summary> static LinkedList<long> deleteReserveds = new LinkedList<long>(); <summary> </summary> static QueueTaskDispatcher operationDispatcher; static TweetStorage() { operationDispatcher = new QueueTaskDispatcher(1); ThreadHelper.Halt += () => operationDispatcher.Dispose(); } <summary> </summary> public static TweetExistState Contains(long id) { using (lockWrap.GetReaderLock()) { if (dictionary.ContainsKey(id)) return TweetExistState.Exists; } using (elockWrap.GetReaderLock()) { if (deleteReserveds.Contains(id)) return TweetExistState.ServerDeleted; else if (empties.ContainsKey(id)) return TweetExistState.EmptyExists; else return TweetExistState.Unreceived; } } <summary> </summary> <param name="id">ID</param> <param name="createEmpty">ViewModel</param> public static TweetViewModel Get(long id, bool createEmpty = false) { TweetViewModel ret; using (lockWrap.GetReaderLock()) { if (dictionary.TryGetValue(id, out ret)) return ret; } using (createEmpty ? elockWrap.<API key>() : elockWrap.GetReaderLock()) { if (empties.TryGetValue(id, out ret)) return ret; if (createEmpty) { using (elockWrap.GetWriterLock()) { var nvm = new TweetViewModel(id); empties.Add(id, nvm); return nvm; } } else { return null; } } } <summary> </summary> <param name="predicate"></param> <returns></returns> public static IEnumerable<TweetViewModel> GetAll(Func<TweetViewModel, bool> predicate = null) { IEnumerable<TweetViewModel> tvms; using (vmLockWrap.GetReaderLock()) { tvms = viewmodels.ToArray(); } if (predicate == null) return tvms; else return tvms.AsParallel().Where(predicate); } private static volatile int _count; <summary> </summary> public static int Count() { return _count; } <summary> <para /> </summary> public static TweetViewModel Register(<TwitterConsumerkey> statusBase) { TweetViewModel robj; using (lockWrap.GetReaderLock()) { if (dictionary.TryGetValue(statusBase.Id, out robj)) return robj; } var status = statusBase as TwitterStatus; if (status != null) { return RegisterStatus(status); } else { var dmsg = statusBase as <TwitterConsumerkey>; if (dmsg != null) { return <API key>(dmsg); } else { throw new <API key>(": " + statusBase); } } } <summary> </summary> private static TweetViewModel RegisterStatus(TwitterStatus status) { if (status.RetweetedOriginal != null) { var vm = Register(status.RetweetedOriginal); var user = UserStorage.Get(status.User); var tuser = UserStorage.Get(status.RetweetedOriginal.User); if (vm.RegisterRetweeted(user)) { if (!vm.<API key>) vm.SetStatus(status.RetweetedOriginal); if (AccountStorage.Contains(status.RetweetedOriginal.User.ScreenName) || AccountStorage.Contains(user.TwitterUser.ScreenName)) EventStorage.OnRetweeted(vm, user); } } UserStorage.Register(status.User); var registered = RegisterCore(status); if (status.InReplyToStatusId != 0) { Get(status.InReplyToStatusId, true).<API key>(status.Id); } if (TwitterHelper.IsMentionOfMe(status)) { EventStorage.OnMention(registered); } return registered; } <summary> </summary> private static TweetViewModel <API key>(<TwitterConsumerkey> dmsg) { UserStorage.Register(dmsg.Sender); UserStorage.Register(dmsg.Recipient); var vm = RegisterCore(dmsg); EventStorage.OnDirectMessage(vm); return vm; } <summary> </summary> private static TweetViewModel RegisterCore(<TwitterConsumerkey> statusBase) { TweetViewModel viewModel; using (elockWrap.<API key>()) { if (empties.TryGetValue(statusBase.Id, out viewModel)) { // ViewModel if (!viewModel.<API key>) viewModel.SetStatus(statusBase); using (elockWrap.GetWriterLock()) { empties.Remove(statusBase.Id); } } else { viewModel = new TweetViewModel(statusBase); } } if (ValidateTweet(viewModel)) { PreProcess(statusBase); bool delr = false; using (elockWrap.GetReaderLock()) { delr = deleteReserveds.Contains(statusBase.Id); } if (!delr) { using (lockWrap.<API key>()) { if (dictionary.ContainsKey(statusBase.Id)) { return viewModel; // Krile } else { using (lockWrap.GetWriterLock()) { dictionary.Add(statusBase.Id, viewModel); } _count++; } } Task.Factory.StartNew(() => RaiseStatusAdded(viewModel)).ContinueWith(_ => { // delay add using (vmLockWrap.GetWriterLock()) { viewmodels.Add(viewModel); } }); } } return viewModel; } <summary> </summary> <returns></returns> public static bool ValidateTweet(TweetViewModel viewModel) { if (viewModel.Status == null || viewModel.Status.User == null || String.IsNullOrEmpty(viewModel.Status.User.ScreenName)) throw new ArgumentException(""); return true; } <summary> </summary> private static void PreProcess(<TwitterConsumerkey> status) { try { if (status.Entities != null) { // extracting t.co and official image new[] { status.Entities.GetChildNode("urls"), status.Entities.GetChildNode("media") } .Where(n => n != null) .SelectMany(n => n.GetChildNodes("item")) .Where(i => i.GetChildNode("indices") != null) .Where(i => i.GetChildNode("indices").GetChildValues("item") != null) .OrderByDescending(i => i.GetChildNode("indices").GetChildValues("item") .Select(s => int.Parse(s.Value)).First()) .ForEach(i => { String expand = null; if (i.GetChildValue("media_url") != null) expand = i.GetChildValue("media_url").Value; if (String.IsNullOrWhiteSpace(expand) && i.GetChildValue("expanded_url") != null) expand = i.GetChildValue("expanded_url").Value; if (String.IsNullOrWhiteSpace(expand) && i.GetChildValue("url") != null) expand = i.GetChildValue("url").Value; if (!String.IsNullOrWhiteSpace(expand)) { var indices = i.GetChildNode("indices").GetChildValues("item") .Select(v => int.Parse(v.Value)).OrderBy(v => v).ToArray(); if (indices.Length == 2) { //XmlParser.ParseString string orgtext = status.Text.Replace("&", "&amp;").Replace(">", "&gt;").Replace("<", "&lt;"); // Considering surrogate pairs and Combining Character. string text = <API key>(orgtext, 0, indices[0]) + expand + <API key>(orgtext, indices[1]); status.Text = text.Replace("&lt;", "<").Replace("&gt;", ">").Replace("&amp;", "&"); } } }); } } catch { } } private static string <API key>(string str, int startIndex, int length = -1) { var s = <API key>(str, startIndex, 0); if (length == -1) { return str.Substring(s); } var l = <API key>(str, length, s); return str.Substring(s, l); } private static int <API key>(string str, int len, int s) { var l = 0; for (int i = 0; i < len; i++) { if (char.IsHighSurrogate(str[l + s])) { l++; } l++; } return l; } <summary> </summary> <param name="id">ID</param> public static void Trim(long id) { TweetViewModel remobj = null; using (elockWrap.GetWriterLock()) { empties.Remove(id); } using (lockWrap.GetWriterLock()) { if (dictionary.TryGetValue(id, out remobj)) { dictionary.Remove(id); _count } } if (remobj != null) { using (vmLockWrap.GetWriterLock()) { viewmodels.Remove(remobj); } Task.Factory.StartNew(() => RaiseStatusRemoved(remobj)); } } <summary> </summary> <param name="id">ID</param> public static void Remove(long id) { TweetViewModel remobj = null; using (elockWrap.GetWriterLock()) { empties.Remove(id); } using (lockWrap.GetWriterLock()) { deleteReserveds.AddLast(id); if (dictionary.TryGetValue(id, out remobj)) { if (remobj.IsRemoved) { dictionary.Remove(id); _count } } } if (remobj != null) { using (vmLockWrap.GetWriterLock()) { if (remobj.IsRemoved) viewmodels.Remove(remobj); } Task.Factory.StartNew(() => RaiseStatusRemoved(remobj)); var status = remobj.Status as TwitterStatus; if (status != null && status.RetweetedOriginal != null) { var ros = TweetStorage.Get(status.RetweetedOriginal.Id); if (ros != null) ros.RemoveRetweeted(UserStorage.Get(status.User)); } } } <summary> <para /> (RT) </summary> public static void <API key>(TweetViewModel tweet) { Task.Factory.StartNew(() => <API key>(tweet)); } #region TweetStorageChanged public static event EventHandler<<API key>> TweetStorageChanged; private static Notificator<<API key>> <API key>; public static Notificator<<API key>> <API key> { get { if (<API key> == null) <API key> = new Notificator<<API key>>(); return <API key>; } set { <API key> = value; } } private static void <API key>(<API key> e) { var threadSafeHandler = Interlocked.CompareExchange(ref TweetStorageChanged, null, null); if (threadSafeHandler != null) threadSafeHandler(null, e); <API key>.Raise(e); } #endregion static void RaiseStatusAdded(TweetViewModel added) { // Mention // MentionRegister // Retweet // TweetRetweetRegister if ((!Setting.Instance.<API key>.NotifyMention || !TwitterHelper.IsMentionOfMe(added.Status)) && (!Setting.Instance.<API key>.NotifyRetweet || !(added.Status is TwitterStatus) || ((TwitterStatus)added.Status).RetweetedOriginal == null || !AccountStorage.Contains(((TwitterStatus)added.Status).RetweetedOriginal.User.ScreenName))) NotificationCore.RegisterNotify(added); <API key>(new <API key>(TweetActionKind.Added, added)); NotificationCore.DispatchNotify(added); } static void RaiseStatusRemoved(TweetViewModel removed) { <API key>(new <API key>(TweetActionKind.Removed, removed)); } static void <API key>(TweetViewModel changed) { <API key>(new <API key>(TweetActionKind.Changed, changed)); } static void RaiseRefreshTweets() { <API key>(new <API key>(TweetActionKind.Refresh)); } internal static void UpdateMute() { if (Setting.Instance.<API key>.MuteFilterCluster == null) return; GetAll(t => Setting.Instance.<API key>.MuteFilterCluster.Filter(t.Status)) .ForEach(t => { if (!AccountStorage.Contains(t.Status.User.ScreenName)) Remove(t.bindingId); }); } } public class <API key> : EventArgs { public <API key>(TweetActionKind act, TweetViewModel added = null) { this.ActionKind = act; this.Tweet = added; } public TweetViewModel Tweet { get; set; } public TweetActionKind ActionKind { get; set; } } public enum TweetActionKind { <summary> </summary> Added, <summary> </summary> Removed, <summary> </summary> Changed, <summary> </summary> Refresh, } }
'use strict'; /* global angular */ (function() { var aDashboard = angular.module('aDashboard'); aDashboard.controller('<API key>', function( $scope, $rootScope, tradelistFactory, $timeout) { $scope.subState = $scope.$parent; $scope.accountValue; $scope.avgWin; $scope.avgLoss; $scope.avgTradeSize; $scope.$on('tradeActionUpdated', function(event, args) { var tradelist = args.tradelist; calculateValue( tradelist ); $scope.avgWin = calculateAvgWin( tradelist ).avg; $scope.winCount = calculateAvgWin( tradelist ).count; $scope.avgLoss = calculateAvgLoss( tradelist ).avg; $scope.lossCount = calculateAvgLoss( tradelist ).count; <API key>( tradelist ); }); var getTradelist = function() { tradelistFactory.getTradelist() .then(function(tradelist) { }); }; getTradelist(); function calculateValue( tradelist ){ var sum = 0; tradelist.forEach(function(entry) { if( entry.tradeValue ){ sum += Number(entry.tradeValue); } }); $scope.accountValue = sum; }; function calculateAvgWin( tradelist ){ var sum = 0; var count = 0; tradelist.forEach(function(entry) { if( entry.tradeValue > 0 ){ ++count; sum += Number(entry.tradeValue); } }); return {avg: (sum / count).toFixed(2), count: count}; }; function calculateAvgLoss( tradelist ){ var sum = 0; var count = 0; tradelist.forEach(function(entry) { if( entry.tradeValue < 0 ){ ++count sum += Number(entry.tradeValue); } }); console.log('sum: ', sum); return {avg: (sum / count).toFixed(2), count: count}; }; function <API key>( tradelist ){ var actionCount = 0; var sum = 0; tradelist.forEach(function(entry) { var actions = entry.actions; actions.forEach(function(action) { if( action.price && action.quantity ){ ++actionCount; sum = sum + (Math.abs(action.price * action.quantity)); } }); }); if( actionCount == 0 ){ actionCount = 1; } $scope.avgTradeSize = (sum / actionCount).toFixed(2); }; }); })();
using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web; using System.Web.Http; using Microsoft.Dash.Server.Diagnostics; using Microsoft.Dash.Server.Handlers; using Microsoft.Dash.Server.Utils; namespace Microsoft.Dash.Server.Controllers { public class CommonController : ApiController { protected HttpRequestBase RequestFromContext(HttpContextBase context) { return context.Request; } protected HttpResponseMessage CreateResponse<T>(T result) { return CreateResponse(result, HttpStatusCode.OK); } protected HttpResponseMessage CreateResponse<T>(T result, HttpStatusCode status) { var response = this.Request.CreateResponse(status, result, GlobalConfiguration.Configuration.Formatters.XmlFormatter, "application/xml"); response.<API key>(this.Request.GetHeaders()); return response; } protected HttpResponseMessage CreateResponse(HttpStatusCode status, RequestHeaders requestHeaders) { var response = this.Request.CreateResponse(status); response.<API key>(requestHeaders ?? this.Request.GetHeaders()); return response; } protected async Task<HttpResponseMessage> DoHandlerAsync(string handlerName, Func<Task<HttpResponseMessage>> handler) { return await WebOperationRunner.DoActionAsync(handlerName, handler, (ex) => { return <API key>(HandlerResult.FromException(ex)); }); } protected HttpResponseMessage <API key>(HandlerResult result) { var response = new HttpResponseMessage(result.StatusCode); if (!String.IsNullOrWhiteSpace(result.ReasonPhrase)) { response.ReasonPhrase = result.ReasonPhrase; } if (result.Headers != null) { foreach (var header in result.Headers) { response.Headers.<API key>(header.Key, header); } } if (result.ErrorInformation != null && !String.IsNullOrWhiteSpace(result.ErrorInformation.ErrorCode)) { var error = new HttpError { { "Code", result.ErrorInformation.ErrorCode }, { "Message", result.ErrorInformation.ErrorMessage }, }; foreach (var msg in result.ErrorInformation.AdditionalDetails) { error.Add(msg.Key, msg.Value); } response.Content = new ObjectContent<HttpError>(error, GlobalConfiguration.Configuration.Formatters.XmlFormatter, "application/xml"); } return response; } } }
layout: page title: "" description: "" header-img: "img/orange.jpg" <ul class="listing"> {% for post in site.posts %} {% capture y %}{{post.date | date:"%Y"}}{% endcapture %} {% if year != y %} {% assign year = y %} <li class="listing-seperator">{{ y }}</li> {% endif %} <li class="listing-item"> <time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time> <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> </li> {% endfor %} </ul>
<!doctype html> <html> <head></head> <body> <!-- Multiple terms, single description --> <dl> <dt>Firefox</dt> <dt>Mozilla Firefox</dt> <dt>Fx</dt> <dd> A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers. </dd> </dl> </body> </html>
'use strict'; // MODULES // var isArrayLike = require( 'validate.io-array-like' ), isTypedArrayLike = require( 'validate.io-typed-array-like' ), deepSet = require( 'utils-deep-set' ).factory, deepGet = require( 'utils-deep-get' ).factory; // FUNCTIONS var POW = require( './number.js' ); // POWER // /** * FUNCTION: power( arr, y, path[, sep] ) * Computes an element-wise power or each element and deep sets the input array. * * @param {Array} arr - input array * @param {Number[]|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|Number} y - either an array of equal length or a scalar * @param {String} path - key path used when deep getting and setting * @param {String} [sep] - key path separator * @returns {Array} input array */ function power( x, y, path, sep ) { var len = x.length, opts = {}, dget, dset, v, i; if ( arguments.length > 3 ) { opts.sep = sep; } if ( len ) { dget = deepGet( path, opts ); dset = deepSet( path, opts ); if ( isTypedArrayLike( y ) ) { for ( i = 0; i < len; i++ ) { v = dget( x[ i ] ); if ( typeof v === 'number' ) { dset( x[ i ], POW( v, y[ i ] ) ); } else { dset( x[ i ], NaN ); } } } else if ( isArrayLike( y ) ) { for ( i = 0; i < len; i++ ) { v = dget( x[ i ] ); if ( typeof v === 'number' && typeof y[ i ] === 'number' ) { dset( x[ i ], POW( v, y[ i ] ) ); } else { dset( x[ i ], NaN ); } } } else { if ( typeof y === 'number' ) { for ( i = 0; i < len; i++ ) { v = dget( x[ i ] ); if ( typeof v === 'number' ) { dset( x[ i ], POW( v, y ) ); } else { dset( x[ i ], NaN ); } } } else { for ( i = 0; i < len; i++ ) { dset( x[ i ], NaN ); } } } } return x; } // end FUNCTION power() // EXPORTS // module.exports = power;
<?php namespace repositorio\estudianteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Sede * * @ORM\Table(name="sede") * @ORM\Entity */ class Sede { /** * @var string * * @ORM\Column(name="codigo_sede", type="string", length=5, nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $codigoSede; /** * @var string * * @ORM\Column(name="nombre_sede", type="string", length=50, nullable=false) */ private $nombreSede; /** * Get codigoSede * * @return string */ public function getCodigoSede() { return $this->codigoSede; } public function setCodigoSede($codigosede) { $this->codigosede = $codigosede; return $this; } /** * Set nombreSede * * @param string $nombreSede * @return Sede */ public function setNombreSede($nombreSede) { $this->nombreSede = $nombreSede; return $this; } /** * Get nombreSede * * @return string */ public function getNombreSede() { return $this->nombreSede; } }
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_14) on Sun Nov 04 20:19:08 CET 2012 --> <TITLE> <API key> (LWJGL API) </TITLE> <META NAME="date" CONTENT="2012-11-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="<API key> (LWJGL API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <A NAME="navbar_top"></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/<API key>.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../org/lwjgl/opengles/<API key>.html" title="class in org.lwjgl.opengles"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../org/lwjgl/opengles/OESDepth24.html" title="class in org.lwjgl.opengles"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/lwjgl/opengles/<API key>.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#<API key>.lang.Object">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;METHOD</FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <HR> <H2> <FONT SIZE="-1"> org.lwjgl.opengles</FONT> <BR> Class <API key></H2> <PRE> java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.lwjgl.opengles.<API key></B> </PRE> <HR> <DL> <DT><PRE>public final class <B><API key></B><DT>extends java.lang.Object</DL> </PRE> <P> <HR> <P> <A NAME="field_summary"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../org/lwjgl/opengles/<API key>.html#<API key>"><API key></A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepted by the &lt;internalformat&gt; paramter of <API key></TD> </TR> </TABLE> &nbsp; <A NAME="method_summary"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> </TABLE> &nbsp;<A NAME="<API key>.lang.Object"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="<API key>"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> &nbsp; <P> <A NAME="field_detail"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="<API key>"></A><H3> <API key></H3> <PRE> public static final int <B><API key></B></PRE> <DL> <DD>Accepted by the &lt;internalformat&gt; paramter of <API key> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lwjgl.opengles.<API key>.<API key>">Constant Field Values</A></DL> </DL> <HR> <A NAME="navbar_bottom"></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="<API key>"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/<API key>.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../org/lwjgl/opengles/<API key>.html" title="class in org.lwjgl.opengles"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../org/lwjgl/opengles/OESDepth24.html" title="class in org.lwjgl.opengles"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/lwjgl/opengles/<API key>.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#<API key>.lang.Object">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;METHOD</FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <HR> <i>Copyright & </BODY> </HTML>
public class SelectionSort { public int[] <API key>(int[] arr) { int temp, smallIdx; for(int i = 0; i < arr.length; i++) { smallIdx = i; for(int j = i; j < arr.length; j++) { if(arr[smallIdx] > arr[j]) { smallIdx = j; } } temp = arr[i]; arr[i] = arr[smallIdx]; arr[smallIdx] = temp; } return arr; } public int[] <API key>(int[] arr, int startIdx) { if(startIdx == arr.length) { return arr; } int temp, smallIdx; smallIdx = startIdx; for(int j = startIdx; j < arr.length; j++) { if(arr[smallIdx] > arr[j]) { smallIdx = j; } } temp = arr[startIdx]; arr[startIdx] = arr[smallIdx]; arr[smallIdx] = temp; return <API key>(arr, startIdx + 1); } public void printArray(int[] array) { for(int number: array) { System.out.print(String.valueOf(number) + " "); } } public static void main(String args[]) { SelectionSort ss = new SelectionSort(); int[] unsortedArray1 = {6,4,2,1,9,0}; System.out.print("Unsoreted Array Sorting: "); ss.printArray(ss.<API key>(unsortedArray1)); int[] unsortedArray2 = {1,2,3,4,5,6}; System.out.print("\nAlready Soreted Array Sorting: "); ss.printArray(ss.<API key>(unsortedArray2)); int[] unsortedArray3 = {6,5,4,3,2,1}; System.out.print("\nUnsoreted Array Sorting: "); ss.printArray(ss.<API key>(unsortedArray3)); int[] unsortedArray4 = {6,4,2,1,9,0}; System.out.print("\nUnsoreted Array Sorting: "); ss.printArray(ss.<API key>(unsortedArray4, 0)); int[] unsortedArray5 = {1,2,3,4,5,6}; System.out.print("\nAlready Soreted Array Sorting: "); ss.printArray(ss.<API key>(unsortedArray5, 0)); int[] unsortedArray6 = {6,5,4,3,2,1}; System.out.print("\nUnsoreted Array Sorting: "); ss.printArray(ss.<API key>(unsortedArray6, 0)); } }
'use strict'; function getReferenceMatrix (matrix, direction) { return matrix.unflatten().rows.sort((r1, r2) => { return (r1[1] > r2[1] ? 1 : r1[1] < r2[1] ? -1 : 0) * (direction === 'desc' ? -1 : 1); }); } function simpleSort (matrix, direction) { const referenceMatrix = getReferenceMatrix(matrix, direction); return matrix.clone({ axes: [ Object.assign({}, matrix.axes[0], {values: referenceMatrix.map(r => r[0])}) ], data: referenceMatrix.map(r => r[1]) }); } function complexSort () {//matrix, direction, strategy, dimension) { // const referenceMatrix = getReferenceMatrix(matrix.reduce(strategy, dimension), direction); } module.exports.ascending = function (strategy, dimension) { if (this.dimension === 1) { return simpleSort(this, 'asc'); } else if (this.dimension === 2) { throw new Error('Cannot sort tables of dimension greater than 1. It\'s on the todo list though!'); return complexSort(this, 'asc', strategy, dimension); } else { throw new Error('Cannot sort tables of dimesnion greater than 2'); } } module.exports.descending = function (strategy, dimension) { if (this.dimension === 1) { return simpleSort(this, 'desc'); } else if (this.dimension === 2) { throw new Error('Cannot sort tables of dimension greater than 1. It\'s on the todo list though!'); return complexSort(this, 'desc', strategy, dimension); } else { throw new Error('Cannot sort tables of dimesnion greater than 2'); } } function getReferenceMatrix (matrix, direction) { return matrix.unflatten().rows.sort((r1, r2) => { return (r1[1] > r2[1] ? 1 : r1[1] < r2[1] ? -1 : 0) * (direction === 'desc' ? -1 : 1); }); } function simpleSort (matrix, direction) { const referenceMatrix = getReferenceMatrix(matrix, direction); return matrix.clone({ axes: [ Object.assign({}, matrix.axes[0], {values: referenceMatrix.map(r => r[0])}) ], data: referenceMatrix.map(r => r[1]) }); } module.exports.property = function (prop) { const order = [].slice.call(arguments, 1); const dimension = this.getAxis(prop); if (dimension === -1) { throw new Error(`Attempting to do a custom sort on the property ${prop}, which doesn't exist`); } const originalValues = this.axes.find(a => a.property === prop).values; // this makes it easier to put the not found items last as the order // will go n = first, n-1 = second, ... , 0 = last, -1 = not found // we simply exchange 1 and -1 in the function below :o order.reverse(); const orderedValues = originalValues.slice().sort((v1, v2) => { const i1 = order.indexOf(v1); const i2 = order.indexOf(v2); return i1 > i2 ? -1 : i1 < i2 ? 1 : 0; }); const mapper = originalValues.map(v => orderedValues.indexOf(v)) const newAxes = this.axes.slice(); newAxes[dimension] = Object.assign({}, this.axes[dimension], { values: orderedValues }); return this.clone({ axes: newAxes, data: Object.keys(this.data).reduce((obj, k) => { const coords = k.split(','); coords[dimension] = mapper[coords[dimension]]; obj[coords.join(',')] = this.data[k]; return obj; }, {}) }); }
""" Initialize Flask app """ from flask import Flask import os from flask_debugtoolbar import <API key> from werkzeug.debug import DebuggedApplication app = Flask('application') if os.getenv('FLASK_CONF') == 'DEV': # Development settings app.config.from_object('application.settings.Development') # Flask-DebugToolbar toolbar = <API key>(app) # Google app engine mini profiler app.wsgi_app = DebuggedApplication(app.wsgi_app, evalex=True) from gae_mini_profiler import profiler, templatetags @app.context_processor def inject_profiler(): return dict(profiler_includes=templatetags.profiler_includes()) app.wsgi_app = profiler.<API key>(app.wsgi_app) elif os.getenv('FLASK_CONF') == 'TEST': app.config.from_object('application.settings.Testing') else: app.config.from_object('application.settings.Production') # Enable jinja2 loop controls extension app.jinja_env.add_extension('jinja2.ext.loopcontrols') # Pull in URL dispatch routes import urls
using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using Dapper; using MicroOrm.Dapper.Repositories.Extensions; namespace MicroOrm.Dapper.Repositories { <summary> Base Repository </summary> public partial class DapperRepository<TEntity> where TEntity : class { <inheritdoc /> public bool BulkUpdate(IEnumerable<TEntity> instances) { return BulkUpdate(instances, null); } <inheritdoc /> public bool BulkUpdate(IEnumerable<TEntity> instances, IDbTransaction transaction) { var queryResult = SqlGenerator.GetBulkUpdate(instances); var result = <API key>.ExecuteWithRetry(() => Connection.Execute(queryResult.GetSql(), queryResult.Param, transaction)) > 0; return result; } <inheritdoc /> public Task<bool> BulkUpdateAsync(IEnumerable<TEntity> instances) { return BulkUpdateAsync(instances, null); } <inheritdoc /> public async Task<bool> BulkUpdateAsync(IEnumerable<TEntity> instances, IDbTransaction transaction) { var queryResult = SqlGenerator.GetBulkUpdate(instances); var result = (await <API key>.<API key>(() => Connection.ExecuteAsync(queryResult.GetSql(), queryResult.Param, transaction))) > 0; return result; } } }
export joDict, joDictException struct joDictException <: Exception msg :: String end ## outer constructors """ julia> op = joDict(op1[,op2][,...];[weights=...,][name=...]) Dictionary (single block row) operator composed from different JOLI operators # Signature joDict(ops::<API key>...; weights::LocalVector{WDT}=zeros(0),name::String="joDict") where {WDT<:Number} # Arguments - `op#`: JOLI operators (subtypes of <API key>) - keywords - `weights`: vector of waights for each operator - `name`: custom name # Notes - all operators must have the same # of rows (M) - all given operators must have same domain/range types - the domain/range types of joDict are equal to domain/range types of the given operators # Example define operators a=rand(ComplexF64,4,4); A=joMatrix(a;DDT=ComplexF32,RDT=ComplexF64,name="A") b=rand(ComplexF64,4,8); B=joMatrix(b;DDT=ComplexF32,RDT=ComplexF64,name="B") c=rand(ComplexF64,4,6); C=joMatrix(c;DDT=ComplexF32,RDT=ComplexF64,name="C") define weights if needed w=rand(ComplexF64,3) basic dictionary in function syntax D=joDict(A,B,C) basic dictionary in [] syntax D=[A B C] weighted dictionary D=joDict(A,B,C;weights=w) """ function joDict(ops::<API key>...; weights::LocalVector{WDT}=zeros(0),name::String="joDict") where {WDT<:Number} isempty(ops) && throw(joDictException("empty argument list")) l=length(ops) for i=1:l ops[i].m==ops[1].m || throw(joDictException("size mismatch for $i operator")) deltype(ops[i])==deltype(ops[1]) || throw(joDictException("domain type mismatch for $i operator")) reltype(ops[i])==reltype(ops[1]) || throw(joDictException("range type mismatch for $i operator")) end (length(weights)==l || length(weights)==0) || throw(joDictException("lenght of weights vector does not match number of operators")) ws=Base.deepcopy(weights) ms=zeros(Int,l) ns=zeros(Int,l) mo=zeros(Int,l) no=zeros(Int,l) for i=1:l ms[i]=ops[1].m ns[i]=ops[i].n end for i=2:l no[i]=no[i-1]+ns[i-1] end m=ops[1].m n=sum(ns) weighted=(length(ws)==l) fops=Vector{<API key>}(undef,0) fops_T=Vector{<API key>}(undef,0) fops_A=Vector{<API key>}(undef,0) fops_C=Vector{<API key>}(undef,0) for i=1:l if weighted push!(fops,ws[i]*ops[i]) push!(fops_T,ws[i]*transpose(ops[i])) push!(fops_A,conj(ws[i])*adjoint(ops[i])) push!(fops_C,conj(ws[i])*conj(ops[i])) else push!(fops,ops[i]) push!(fops_T,transpose(ops[i])) push!(fops_A,adjoint(ops[i])) push!(fops_C,conj(ops[i])) end end return joCoreBlock{deltype(fops[1]),reltype(fops[1])}(name*"($l)",m,n,l,ms,ns,mo,no,ws, fops,fops_T,fops_A,fops_C,@joNF,@joNF,@joNF,@joNF) end """ julia> op = joDict(l,op;[weights=...,][name=...]) Dictionary operator composed from l-times replicated square JOLI operator # Signature joDict(l::Integer,op::<API key>; weights::LocalVector{WDT}=zeros(0),name::String="joDict") where {WDT<:Number} # Arguments - `l`: # of replcated blocks - `op`: JOLI operators (subtypes of <API key>) - keywords - `weights`: vector of waights for each operator - `name`: custom name # Notes - all operators must have the same # of rows (M) - all given operators must have same domain/range types - the domain/range types of joDict are equal to domain/range types of the given operators # Example a=rand(ComplexF64,4,4); A=joMatrix(a;DDT=ComplexF32,RDT=ComplexF64,name="A") define weights if needed w=rand(ComplexF64,3) basic dictionary D=joDict(3,A) weighted dictionary D=joDict(3,A;weights=w) """ function joDict(l::Integer,op::<API key>; weights::LocalVector{WDT}=zeros(0),name::String="joDict") where {WDT<:Number} (length(weights)==l || length(weights)==0) || throw(joDictException("lenght of weights vector does not match number of operators")) ws=Base.deepcopy(weights) ms=zeros(Int,l) ns=zeros(Int,l) mo=zeros(Int,l) no=zeros(Int,l) for i=1:l ms[i]=op.m ns[i]=op.n end for i=2:l no[i]=no[i-1]+ns[i-1] end m=op.m n=l*op.n weighted=(length(weights)==l) fops=Vector{<API key>}(undef,0) fops_T=Vector{<API key>}(undef,0) fops_A=Vector{<API key>}(undef,0) fops_C=Vector{<API key>}(undef,0) for i=1:l if weighted push!(fops,ws[i]*op) push!(fops_T,ws[i]*transpose(op)) push!(fops_A,conj(ws[i])*adjoint(op)) push!(fops_C,conj(ws[i])*conj(op)) else push!(fops,op) push!(fops_T,transpose(op)) push!(fops_A,adjoint(op)) push!(fops_C,conj(op)) end end return joCoreBlock{deltype(op),reltype(op)}(name*"($l)",m,n,l,ms,ns,mo,no,ws, fops,fops_T,fops_A,fops_C,@joNF,@joNF,@joNF,@joNF) end
import watch from 'gulp-watch'; import browserSync from 'browser-sync'; import path from 'path'; /** * Gulp task to watch files * @return {function} Function task */ export default function watchFilesTask() { const config = this.config; const runSequence = require('run-sequence').use(this.gulp); return () => { if (config.entryHTML) { watch( path.join( config.basePath, config.browsersync.server.baseDir, config.entryHTML ), () => { runSequence('build', browserSync.reload); } ); } if (config.postcss) { watch(path.join(config.sourcePath, '**/*.{css,scss,less}'), () => { runSequence('postcss'); }); } if (config.customWatch) { if (typeof config.customWatch === 'function') { config.customWatch(config, watch, browserSync); } else { watch(config.customWatch, () => { runSequence('build', browserSync.reload); }); } } }; }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>class DropboxApi::Endpoints::Sharing::RevokeSharedLink - RDoc Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "../../../"; var index_rel_prefix = "../../../"; </script> <script src="../../../js/jquery.js"></script> <script src="../../../js/darkfish.js"></script> <link href="../../../css/fonts.css" rel="stylesheet"> <link href="../../../css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="class"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="../../../index.html" rel="home">Home</a> </h2> <div id="<API key>"> <a href="../../../table_of_contents.html#pages">Pages</a> <a href="../../../table_of_contents.html#classes">Classes</a> <a href="../../../table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="<API key>"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div id="class-metadata"> <div id="<API key>" class="nav-section"> <h3>Parent</h3> <p class="link"><a href="../Rpc.html">DropboxApi::Endpoints::Rpc</a> </div> </div> </nav> <main role="main" aria-labelledby="class-DropboxApi::Endpoints::Sharing::RevokeSharedLink"> <h1 id="class-DropboxApi::Endpoints::Sharing::RevokeSharedLink" class="class"> class DropboxApi::Endpoints::Sharing::RevokeSharedLink </h1> <section class="description"> </section> <section id="5Buntitled-5D" class="<API key>"> <section class="constants-list"> <header> <h3>Constants</h3> </header> <dl> <dt id="ErrorType">ErrorType <dd> <dt id="Method">Method <dd> <dt id="Path">Path <dd> <dt id="ResultType">ResultType <dd> </dl> </section> </section> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="https://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1. <p>Based on <a href="http: </footer>
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D","388":"u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","2":"UB z F J K C G E B A D u Y I M H N O P Q SB RB"},D:{"1":"0 1 2 3 4 5 6 7 e f L h i j k l m n o p q r s t y v GB g DB VB EB","2":"F J K C G E B A D u Y I M H N O P Q R S T U","132":"V W X w Z a b c d"},E:{"1":"E B A KB LB MB","2":"F J K C FB AB HB","388":"G JB","514":"IB"},F:{"1":"R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t","2":"8 9 E A D NB OB PB QB TB x","132":"I M H N O P Q"},G:{"1":"A bB cB dB eB","2":"AB CB BB XB YB ZB","388":"G aB"},H:{"2":"fB"},I:{"1":"g kB lB","2":"z F gB hB iB jB BB"},J:{"2":"C B"},K:{"1":"L","2":"8 9 B A D x"},L:{"1":"g"},M:{"1":"v"},N:{"2":"B A"},O:{"1":"mB"},P:{"1":"F J"},Q:{"1":"nB"},R:{"1":"oB"}},B:1,C:"HTML templates"};
<?php namespace MiniGameMessageApp\Parser; use MiniGame\Entity\MiniGameId; use MiniGame\Entity\PlayerId; interface ParsingPlayer { /** * @return PlayerId */ public function getPlayerId(); /** * @return MiniGameId */ public function getGameId(); }
#include "shared-bindings/microcontroller/Pin.h" #include "shared-bindings/digitalio/DigitalInOut.h" #include "nrf_gpio.h" #include "py/mphal.h" #include "nrf/pins.h" #include "supervisor/shared/rgb_led_status.h" #ifdef MICROPY_HW_NEOPIXEL bool neopixel_in_use; #endif #ifdef <API key> bool apa102_sck_in_use; bool apa102_mosi_in_use; #endif #ifdef SPEAKER_ENABLE_PIN bool <API key>; #endif // Bit mask of claimed pins on each of up to two ports. nrf52832 has one port; nrf52840 has two. STATIC uint32_t claimed_pins[GPIO_COUNT]; STATIC uint32_t never_reset_pins[GPIO_COUNT]; STATIC void <API key>(void) { #ifdef SPEAKER_ENABLE_PIN <API key> = false; nrf_gpio_cfg(SPEAKER_ENABLE_PIN->number, <API key>, <API key>, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0H1, <API key>); nrf_gpio_pin_write(SPEAKER_ENABLE_PIN->number, false); #endif } void reset_all_pins(void) { for (size_t i = 0; i < GPIO_COUNT; i++) { claimed_pins[i] = never_reset_pins[i]; } for (uint32_t pin = 0; pin < NUMBER_OF_PINS; ++pin) { if ((never_reset_pins[nrf_pin_port(pin)] & (1 << <API key>(pin))) != 0) { continue; } <API key>(pin); } #ifdef MICROPY_HW_NEOPIXEL neopixel_in_use = false; #endif #ifdef <API key> apa102_sck_in_use = false; apa102_mosi_in_use = false; #endif // After configuring SWD because it may be shared. <API key>(); } // Mark pin as free and return it to a quiescent state. void reset_pin_number(uint8_t pin_number) { if (pin_number == NO_PIN) { return; } // Clear claimed bit. claimed_pins[nrf_pin_port(pin_number)] &= ~(1 << <API key>(pin_number)); #ifdef MICROPY_HW_NEOPIXEL if (pin_number == MICROPY_HW_NEOPIXEL->number) { neopixel_in_use = false; rgb_led_status_init(); return; } #endif #ifdef <API key> if (pin_number == <API key>->number || pin_number == <API key>->number) { apa102_mosi_in_use = apa102_mosi_in_use && pin_number != <API key>->number; apa102_sck_in_use = apa102_sck_in_use && pin_number != <API key>->number; if (!apa102_sck_in_use && !apa102_mosi_in_use) { rgb_led_status_init(); } return; } #endif #ifdef SPEAKER_ENABLE_PIN if (pin_number == SPEAKER_ENABLE_PIN->number) { <API key>(); } #endif } void <API key>(uint8_t pin_number) { never_reset_pins[nrf_pin_port(pin_number)] |= 1 << <API key>(pin_number); } void <API key>(const mcu_pin_obj_t* pin) { <API key>(pin->number); } void <API key>(const mcu_pin_obj_t* pin) { reset_pin_number(pin->number); } void claim_pin(const mcu_pin_obj_t* pin) { // Set bit in claimed_pins bitmask. claimed_pins[nrf_pin_port(pin->number)] |= 1 << <API key>(pin->number); #ifdef MICROPY_HW_NEOPIXEL if (pin == MICROPY_HW_NEOPIXEL) { neopixel_in_use = true; } #endif #ifdef <API key> if (pin == <API key>) { apa102_mosi_in_use = true; } if (pin == <API key>) { apa102_sck_in_use = true; } #endif #ifdef SPEAKER_ENABLE_PIN if (pin == SPEAKER_ENABLE_PIN) { <API key> = true; } #endif } bool pin_number_is_free(uint8_t pin_number) { return !(claimed_pins[nrf_pin_port(pin_number)] & (1 << <API key>(pin_number))); } bool <API key>(const mcu_pin_obj_t *pin) { #ifdef MICROPY_HW_NEOPIXEL if (pin == MICROPY_HW_NEOPIXEL) { return !neopixel_in_use; } #endif #ifdef <API key> if (pin == <API key>) { return !apa102_mosi_in_use; } if (pin == <API key>) { return !apa102_sck_in_use; } #endif #ifdef SPEAKER_ENABLE_PIN if (pin == SPEAKER_ENABLE_PIN) { return !<API key>; } #endif #ifdef NRF52840 // If NFC pins are enabled for NFC, don't allow them to be used for GPIO. if (((NRF_UICR->NFCPINS & <API key>) == (<API key> << <API key>)) && (pin->number == 9 || pin->number == 10)) { return false; } #endif return pin_number_is_free(pin->number); } uint8_t <API key>(const mcu_pin_obj_t* pin) { return pin->number; } void <API key>(const mcu_pin_obj_t* pin) { claim_pin(pin); } void <API key>(uint8_t pin_no) { reset_pin_number(pin_no); }
#include "../include/csl.h" void MultipleEscape ( ) { _MultipleEscape ( _Context_->Lexer0 ) ; } void CSL_Strlen ( ) { DataStack_Push ( (int64) Strlen ( (char*) DataStack_Pop ( ) ) ) ; } void CSL_Strcmp ( ) { DataStack_Push ( (int64) Strcmp ( (byte*) DataStack_Pop ( ), (byte*) DataStack_Pop ( ) ) ) ; } void CSL_Stricmp ( ) { DataStack_Push ( (int64) Stricmp ( (byte*) DataStack_Pop ( ), (byte*) DataStack_Pop ( ) ) ) ; } //char * strcat ( char * destination, const char * source ); void CSL_StrCat ( ) { //Buffer * b = Buffer_New ( BUFFER_SIZE ) ; byte * buffer = Buffer_Data ( _CSL_->StrCatBuffer ); byte *str ; char * src = (char*) DataStack_Pop ( ) ; char * dst = (char*) DataStack_Pop ( ) ; strcpy ( (char*) buffer, dst ) ; if (src) strcat ( (char *) buffer, src ) ; str = String_New ( buffer, TEMPORARY ) ; //String_New ( (byte*) buffer, DICTIONARY ) ; DataStack_Push ( (int64) str ) ; //Buffer_SetAsUnused ( b ) ; ; } void CSL_StrCpy ( ) { // !! nb. this cant really work !! what do we want here ?? DataStack_Push ( (int64) strcpy ( (char*) DataStack_Pop ( ), (char*) DataStack_Pop ( ) ) ) ; } void <API key> ( ) { DataStack_Push ( (int64) <API key> ( ) ) ; }
use cc; pub fn build_windows() { cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("LinearMath_EXPORTS", None) .define("NDEBUG", None) .opt_level(3) // ignoring OPT_LEVEL from the crate .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/src/LinearMath/btAlignedAllocator.cpp") .file("bullet3/src/LinearMath/btConvexHull.cpp") .file("bullet3/src/LinearMath/<API key>.cpp") .file("bullet3/src/LinearMath/btGeometryUtil.cpp") .file("bullet3/src/LinearMath/<API key>.cpp") .file("bullet3/src/LinearMath/btQuickprof.cpp") .file("bullet3/src/LinearMath/btSerializer.cpp") .file("bullet3/src/LinearMath/btSerializer64.cpp") .file("bullet3/src/LinearMath/btThreads.cpp") .file("bullet3/src/LinearMath/btVector3.cpp") .compile("LinearMath"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("<API key>", None) .define("NDEBUG", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/<API key>.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/btDbvt.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/btDispatcher.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/<API key>.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp") .file("bullet3/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/btCollisionObject.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/btGhostObject.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/btManifoldResult.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/btUnionFind.cpp") .file("bullet3/src/BulletCollision/CollisionDispatch/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btBoxShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btBox2dShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btCapsuleShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btCollisionShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btCompoundShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btConcaveShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btConeShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btConvexShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btCylinderShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btEmptyShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btShapeHull.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btSphereShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btTriangleCallback.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btTriangleMesh.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp") .file("bullet3/src/BulletCollision/CollisionShapes/<API key>.cpp") .file("bullet3/src/BulletCollision/Gimpact/btContactProcessing.cpp") .file("bullet3/src/BulletCollision/Gimpact/<API key>.cpp") .file("bullet3/src/BulletCollision/Gimpact/btGImpactBvh.cpp") .file("bullet3/src/BulletCollision/Gimpact/<API key>.cpp") .file("bullet3/src/BulletCollision/Gimpact/<API key>.cpp") .file("bullet3/src/BulletCollision/Gimpact/btGImpactShape.cpp") .file("bullet3/src/BulletCollision/Gimpact/btTriangleShapeEx.cpp") .file("bullet3/src/BulletCollision/Gimpact/gim_box_set.cpp") .file("bullet3/src/BulletCollision/Gimpact/gim_contact.cpp") .file("bullet3/src/BulletCollision/Gimpact/gim_memory.cpp") .file("bullet3/src/BulletCollision/Gimpact/gim_tri_collision.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .file("bullet3/src/BulletCollision/<API key>/btConvexCast.cpp") .file("bullet3/src/BulletCollision/<API key>/btGjkConvexCast.cpp") .file("bullet3/src/BulletCollision/<API key>/btGjkEpa2.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .file("bullet3/src/BulletCollision/<API key>/btGjkPairDetector.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .file("bullet3/src/BulletCollision/<API key>/btRaycastCallback.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .file("bullet3/src/BulletCollision/<API key>/<API key>.cpp") .compile("BulletCollision"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("<API key>", None) .define("NDEBUG", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/src/BulletDynamics/Character/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btFixedConstraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btGearConstraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp") .file("bullet3/src/BulletDynamics/ConstraintSolver/<API key>.cpp") .file("bullet3/src/BulletDynamics/Dynamics/<API key>.cpp") .file("bullet3/src/BulletDynamics/Dynamics/<API key>.cpp") .file("bullet3/src/BulletDynamics/Dynamics/<API key>.cpp") .file("bullet3/src/BulletDynamics/Dynamics/btRigidBody.cpp") .file("bullet3/src/BulletDynamics/Dynamics/<API key>.cpp") .file("bullet3/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp") .file("bullet3/src/BulletDynamics/Vehicle/btWheelInfo.cpp") .file("bullet3/src/BulletDynamics/Featherstone/btMultiBody.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/Featherstone/<API key>.cpp") .file("bullet3/src/BulletDynamics/MLCPSolvers/btDantzigLCP.cpp") .file("bullet3/src/BulletDynamics/MLCPSolvers/btMLCPSolver.cpp") .file("bullet3/src/BulletDynamics/MLCPSolvers/btLemkeAlgorithm.cpp") .compile("BulletDynamics"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("NDEBUG", None) .define("<API key>", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/src/Bullet3Common/b3AlignedAllocator.cpp") .file("bullet3/src/Bullet3Common/b3Vector3.cpp") .file("bullet3/src/Bullet3Common/b3Logging.cpp") .compile("Bullet3Common"); cc::Build::new() .include("bullet3/src") .define("BussIK_EXPORTS", None) .define("NDEBUG", None) .define("<API key>", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/examples/ThirdPartyLibs/BussIK/Jacobian.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/LinearR2.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/LinearR3.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/LinearR4.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/MatrixRmn.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/Misc.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/Node.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/Tree.cpp") .file("bullet3/examples/ThirdPartyLibs/BussIK/VectorRn.cpp") .compile("BussIK"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("<API key>", None) .define("NDEBUG", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/src/<API key>/IDMath.cpp") .file("bullet3/src/<API key>/MultiBodyTree.cpp") .file("bullet3/src/<API key>/details/<API key>.cpp") .file("bullet3/src/<API key>/details/MultiBodyTreeImpl.cpp") .compile("<API key>"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("<API key>", None) .define("NDEBUG", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/Extras/InverseDynamics/CloneTreeCreator.cpp") .file("bullet3/Extras/InverseDynamics/CoilCreator.cpp") .file("bullet3/Extras/InverseDynamics/<API key>.cpp") .file("bullet3/Extras/InverseDynamics/<API key>.cpp") .file("bullet3/Extras/InverseDynamics/DillCreator.cpp") .file("bullet3/Extras/InverseDynamics/<API key>.cpp") .file("bullet3/Extras/InverseDynamics/<API key>.cpp") .file("bullet3/Extras/InverseDynamics/IDRandomUtil.cpp") .file("bullet3/Extras/InverseDynamics/RandomTreeCreator.cpp") .file("bullet3/Extras/InverseDynamics/SimpleTreeCreator.cpp") .file("bullet3/Extras/InverseDynamics/MultiBodyNameMap.cpp") .file("bullet3/Extras/InverseDynamics/User2InternalIndex.cpp") .compile("<API key>"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("<API key>", None) .define("NDEBUG", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/Extras/Serialize/BulletFileLoader/bChunk.cpp") .file("bullet3/Extras/Serialize/BulletFileLoader/bDNA.cpp") .file("bullet3/Extras/Serialize/BulletFileLoader/bFile.cpp") .file("bullet3/Extras/Serialize/BulletFileLoader/btBulletFile.cpp") .compile("BulletFileLoaderr"); cc::Build::new() .include("bullet3/src") .define("<API key>", None) .define("<API key>", None) .define("NDEBUG", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/Extras/Serialize/BulletWorldImporter/<API key>.cpp") .file("bullet3/Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp") .compile("BulletWorldImporter"); cc::Build::new() .include("bullet3/src") .include("bullet3/examples/ThirdPartyLibs") .define("WIN32", None) .define("<API key>", None) .define("libpybullet_EXPORTS", None) .define("NDEBUG", None) .define("NO_VISUALISER", None) .opt_level(3) .cpp(true) .flag("-<API key>") .warnings(false) .file("bullet3/examples/Utils/b3Clock.cpp") .file("bullet3/examples/Utils/ChromeTraceUtil.cpp") .file("bullet3/examples/Utils/b3ResourcePath.cpp") .file("bullet3/examples/SharedMemory/IKTrajectoryHelper.cpp") .file("bullet3/examples/SharedMemory/InProcessMemory.cpp") .file("bullet3/examples/SharedMemory/PhysicsClient.cpp") .file("bullet3/examples/SharedMemory/PhysicsServer.cpp") .file("bullet3/examples/SharedMemory/<API key>.cpp") .file("bullet3/examples/SharedMemory/<API key>.cpp") .file("bullet3/examples/SharedMemory/PhysicsDirect.cpp") .file("bullet3/examples/SharedMemory/PhysicsDirectC_API.cpp") .file("bullet3/examples/SharedMemory/<API key>.cpp") .file("bullet3/examples/SharedMemory/b3PluginManager.cpp") .file("bullet3/examples/SharedMemory/<API key>.cpp") .file("bullet3/examples/SharedMemory/<API key>.cpp") .file("bullet3/examples/SharedMemory/PhysicsClientC_API.cpp") .file("bullet3/examples/SharedMemory/Win32SharedMemory.cpp") .file("bullet3/examples/SharedMemory/PosixSharedMemory.cpp") .file("bullet3/examples/Utils/b3ResourcePath.cpp") .file("bullet3/examples/Utils/RobotLoggingUtil.cpp") .file("bullet3/examples/ThirdPartyLibs/tinyxml/tinystr.cpp") .file("bullet3/examples/ThirdPartyLibs/tinyxml/tinyxml.cpp") .file("bullet3/examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp") .file("bullet3/examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp") .file("bullet3/examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp") .file("bullet3/examples/ThirdPartyLibs/stb_image/stb_image.cpp") .file("bullet3/examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp") .file("bullet3/examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp") .file("bullet3/examples/Importers/ImportObjDemo/<API key>.cpp") .file("bullet3/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp") .file("bullet3/examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp") .file("bullet3/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp") .file("bullet3/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp") .file("bullet3/examples/Importers/ImportURDFDemo/UrdfParser.cpp") .file("bullet3/examples/Importers/ImportURDFDemo/urdfStringSplit.cpp") .file("bullet3/examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp") .file("bullet3/examples/MultiThreading/<API key>.cpp") .file("bullet3/examples/MultiThreading/<API key>.cpp") .file("bullet3/examples/MultiThreading/<API key>.cpp") .compile("pybullet"); }
import { Editor, EditorState, RichUtils } from "draft-js" import { debounce } from "lodash" import React, { Component } from "react" import ReactDOM from "react-dom" import styled from "styled-components" import { TextInputUrl } from "../components/text_input_url" import { TextNav } from "../components/text_nav" import { decorators } from "../shared/decorators" import { confirmLink, <API key>, removeLink } from "../shared/links" import { handleReturn, insertPastedState, styleMapFromNodes, styleNamesFromMap, } from "../shared/shared" import { AllowedStyles, StyleMap, StyleNamesParagraph } from "../typings" import { convertDraftToHtml, convertHtmlToDraft } from "./utils/convert" import { <API key>, blockRenderMap, keyBindingFn, } from "./utils/utils" interface Props { allowedStyles?: AllowedStyles allowEmptyLines?: boolean // Users can insert br tags html?: string hasLinks: boolean onChange: (html: string) => void placeholder?: string stripLinebreaks: boolean // Return a single p block isDark?: boolean isReadOnly?: boolean } interface State { editorPosition: ClientRect | null editorState: EditorState html: string showNav: boolean showUrlInput: boolean urlValue: string } /** * Supports HTML with bold and italic styles in <p> blocks. * Allowed styles can be limited by passing allowedStyles. * Optionally supports links, and linebreak stripping. */ export class Paragraph extends Component<Props, State> { private editor private allowedStyles: StyleMap private debouncedOnChange static defaultProps = { allowEmptyLines: false, hasLinks: false, stripLinebreaks: false, } constructor(props: Props) { super(props) this.allowedStyles = styleMapFromNodes( props.allowedStyles || <API key> ) this.state = { editorPosition: null, editorState: this.setEditorState(), html: props.html || "", showNav: false, showUrlInput: false, urlValue: "", } this.debouncedOnChange = debounce((html: string) => { props.onChange(html) }, 250) } setEditorState = () => { const { hasLinks, html } = this.props if (html) { return this.editorStateFromHTML(html) } else { return EditorState.createEmpty(decorators(hasLinks)) } } editorStateToHTML = (editorState: EditorState) => { const { allowEmptyLines, stripLinebreaks } = this.props const currentContent = editorState.getCurrentContent() return convertDraftToHtml( currentContent, this.allowedStyles, stripLinebreaks, allowEmptyLines ) } editorStateFromHTML = (html: string) => { const { hasLinks, allowEmptyLines } = this.props const contentBlocks = convertHtmlToDraft( html, hasLinks, this.allowedStyles, allowEmptyLines ) return EditorState.createWithContent(contentBlocks, decorators(hasLinks)) } onChange = (editorState: EditorState) => { const html = this.editorStateToHTML(editorState) this.setState({ editorState, html }) if (html !== this.props.html) { // Return html if changed this.debouncedOnChange(html) } } focus = () => { this.editor.focus() this.checkSelection() } handleReturn = e => { const { editorState } = this.state const { stripLinebreaks, allowEmptyLines } = this.props if (stripLinebreaks) { // Do nothing if linebreaks are disallowed return "handled" } else if (allowEmptyLines) { return "not-handled" } else { // Maybe split-block, but don't create empty paragraphs return handleReturn(e, editorState) } } handleKeyCommand = (command: string) => { const { hasLinks } = this.props switch (command) { case "link-prompt": { if (hasLinks) { // Open link input if links are supported return this.promptForLink() } break } case "bold": case "italic": { return this.<API key>(command) } } // let draft defaults or browser handle return "not-handled" } <API key> = (command: "italic" | "bold") => { // Handle style changes from key command const { editorState } = this.state const styles = styleNamesFromMap(this.allowedStyles) if (styles.includes(command.toUpperCase())) { const newState = RichUtils.handleKeyCommand(editorState, command) // If an updated state is returned, command is handled if (newState) { this.onChange(newState) return "handled" } } else { return "not-handled" } } toggleInlineStyle = (command: StyleNamesParagraph) => { // Handle style changes from menu click const { editorState } = this.state const styles = styleNamesFromMap(this.allowedStyles) let newEditorState if (styles.includes(command)) { newEditorState = RichUtils.toggleInlineStyle(editorState, command) } if (newEditorState) { this.onChange(newEditorState) } } handlePastedText = (text: string, html?: string) => { const { editorState } = this.state if (!html) { // Wrap pasted plain text in html html = "<p>" + text + "</p>" } const <API key> = this.editorStateFromHTML(html) const stateWithPastedText = insertPastedState( <API key>, editorState ) this.onChange(stateWithPastedText) return true } promptForLink = () => { // Opens a popup link input populated with selection data if link is selected const { editorState } = this.state const linkData = <API key>(editorState) const urlValue = linkData ? linkData.url : "" const editor = ReactDOM.findDOMNode(this.editor) as Element const editorPosition: ClientRect = editor.<API key>() this.setState({ editorPosition, showUrlInput: true, showNav: false, urlValue, }) return "handled" } confirmLink = (url: string) => { const { editorState } = this.state const newEditorState = confirmLink(url, editorState) this.setState({ editorPosition: null, showNav: false, showUrlInput: false, urlValue: "", }) this.onChange(newEditorState) } removeLink = () => { const editorState = removeLink(this.state.editorState) if (editorState) { this.setState({ editorPosition: null, showUrlInput: false, urlValue: "", }) this.onChange(editorState) } } checkSelection = () => { let showNav = false let editorPosition: ClientRect | null = null const hasSelection = !window.getSelection().isCollapsed if (hasSelection) { showNav = true const editor = ReactDOM.findDOMNode(this.editor) as Element editorPosition = editor.<API key>() } this.setState({ showNav, editorPosition }) } render() { const { hasLinks, isDark, isReadOnly, placeholder } = this.props const { editorPosition, editorState, showNav, showUrlInput, urlValue, } = this.state const promptForLink = hasLinks ? this.promptForLink : undefined return ( <ParagraphContainer> {showNav && ( <TextNav allowedStyles={this.allowedStyles} editorPosition={editorPosition} onClickOff={() => this.setState({ showNav: false })} promptForLink={promptForLink} toggleStyle={this.toggleInlineStyle} /> )} {showUrlInput && ( <TextInputUrl backgroundColor={isDark ? "white" : undefined} editorPosition={editorPosition} onClickOff={() => this.setState({ showUrlInput: false })} onConfirmLink={this.confirmLink} onRemoveLink={this.removeLink} urlValue={urlValue} /> )} <div onClick={this.focus} onMouseUp={this.checkSelection} onKeyUp={this.checkSelection} > <Editor blockRenderMap={blockRenderMap as any} editorState={editorState} keyBindingFn={keyBindingFn} handleKeyCommand={this.handleKeyCommand as any} handlePastedText={this.handlePastedText as any} handleReturn={this.handleReturn} onChange={this.onChange} placeholder={placeholder || "Start typing..."} readOnly={isReadOnly} ref={ref => { this.editor = ref }} spellCheck /> </div> </ParagraphContainer> ) } } const ParagraphContainer = styled.div` position: relative; `
<?php namespace Demo\TaskBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { /* public function <API key>() { // Create a new client to browse the application $client = static::createClient(); // Create a new entry in the database $crawler = $client->request('GET', '/demo_taskcustomer/'); $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /demo_taskcustomer/"); $crawler = $client->click($crawler->selectLink('Create a new entry')->link()); // Fill in the form and submit it $form = $crawler->selectButton('Create')->form(array( '<API key>[field_name]' => 'Test', // ... other fields to fill )); $client->submit($form); $crawler = $client->followRedirect(); // Check data in the show view $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")'); // Edit the entity $crawler = $client->click($crawler->selectLink('Edit')->link()); $form = $crawler->selectButton('Edit')->form(array( '<API key>[field_name]' => 'Foo', // ... other fields to fill )); $client->submit($form); $crawler = $client->followRedirect(); // Check the element contains an attribute with value equals "Foo" $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]'); // Delete the entity $client->submit($crawler->selectButton('Delete')->form()); $crawler = $client->followRedirect(); // Check the entity has been delete on the list $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent()); } */ }
// load package date-util require('../libs/sugar-date') module.exports = (pluginContext) => { return { respondsTo: (query) => { return true }, search: (query = '', env = {}) => { // check if timestamp given let isTimestamp = !isNaN(parseFloat(query)) && isFinite(query); // default settings let outputFormat = env['outputFormat'] || '{full}'; let timestampUnit = 'seconds'; // override timestamp unit if (env['timestampUnit'] && env['timestampUnit'] == 'milliseconds') { timestampUnit = 'milliseconds'; } // check if string or timestamp is given if (!isTimestamp) { // handle timestamp unit if (timestampUnit == 'seconds') { // timestamp in seconds outputFormat = '{X}'; } else { // timestamp in milliseconds outputFormat = '{x}'; } } else { // parse query query = parseFloat(query); // convert given timestamp in seconds to milliseconds if (timestampUnit == 'seconds') { query *= 1000; } } // create Sugar Date var sugarDate = Sugar.Date.create(query); // check if valid date if (!Sugar.Date.isValid(sugarDate)) { return Promise.reject(); } // set result value const value = Sugar.Date.format(sugarDate, outputFormat); // set result subtitle const subtitle = `Select to copy ` + (isTimestamp ? `the formatted date` : `the timestamp in ${timestampUnit}`) + `.`; // return results return new Promise((resolve, reject) => { resolve([ { id: 'zazu-utime', icon: 'fa-clock-o', title: value, subtitle: subtitle, value: value, } ]) }) } } }
#pragma once #include <stddef.h> #include <sys/queue.h> #include "options.h" #include "util.h" struct window { struct window *parent; enum window_split_type { WINDOW_LEAF, <API key>, <API key> } split_type; // The size of the window. Only valid for the root window. size_t w; size_t h; struct { #define OPTION(name, type, _) type name; WINDOW_OPTIONS #undef OPTION } opt; union { struct { // The buffer being edited. struct buffer *buffer; char *alternate_path; // The coordinates of the top left cell visible on screen. size_t top; size_t left; // Window-local working directory if set (otherwise NULL). char *pwd; // The offset of the cursor. struct mark *cursor; // The incremental match if 'incsearch' is enabled. bool <API key>; struct region incsearch_match; // The visual mode selection. // NULL if not in visual mode. struct region *<API key>; TAILQ_HEAD(tag_list, tag_jump) tag_stack; struct tag_jump *tag; }; struct { struct window *first; struct window *second; size_t point; } split; }; }; struct window *window_create(struct buffer *buffer, size_t w, size_t h); void window_free(struct window *window); // Closes the current window and returns a pointer to the "next" window. // Caller should use window_free on passed-in window afterwards. struct window *window_close(struct window *window); enum <API key> { WINDOW_SPLIT_LEFT, WINDOW_SPLIT_RIGHT, WINDOW_SPLIT_ABOVE, WINDOW_SPLIT_BELOW }; struct window *window_split(struct window *window, enum <API key> direction); void window_resize(struct window *window, int dw, int dh); void window_equalize(struct window *window, enum window_split_type type); struct window *window_root(struct window *window); struct window *window_left(struct window *window); struct window *window_right(struct window *window); struct window *window_up(struct window *window); struct window *window_down(struct window *window); struct window *window_first_leaf(struct window *window); void window_set_buffer(struct window *window, struct buffer *buffer); size_t window_cursor(struct window *window); void window_set_cursor(struct window *window, size_t pos); void <API key>(struct window *window); size_t window_w(struct window *window); size_t window_h(struct window *window); size_t window_x(struct window *window); size_t window_y(struct window *window); void window_page_up(struct window *window); void window_page_down(struct window *window); void <API key>(struct window *window);
<?php /** * utility class to check values * @package jelix * @subpackage utils * @since 1.0b1 */ class jFilter { private function _construct() {} static public function usePhpFilter(){ return true; } /** * check if the given value is an integer * @param string $val the value * @param int $min minimum value (optional), null if no minimum * @param int $max maximum value (optional), null if no maximum * @return boolean true if it is valid */ static public function isInt ($val, $min=null, $max=null){ if(filter_var($val, FILTER_VALIDATE_INT) === false) return false; if($min !== null && intval($val) < $min) return false; if($max !== null && intval($val) > $max) return false; return true; } /** * check if the given value is an hexadecimal integer * @param string $val the value * @param int $min minimum value (optional), null if no minimum * @param int $max maximum value (optional), null if no maximum * @return boolean true if it is valid */ static public function isHexInt ($val, $min=null, $max=null){ if(filter_var($val, FILTER_VALIDATE_INT, <API key>) === false) return false; if($min !== null && intval($val,16) < $min) return false; if($max !== null && intval($val,16) > $max) return false; return true; } /** * check if the given value is a boolean * @param string $val the value * @return boolean true if it is valid */ static public function isBool ($val){ // we don't use filter_var because it return false when a boolean is "false" or "FALSE" etc.. //return filter_var($val, <API key>); return in_array($val, array('true','false','1','0','TRUE', 'FALSE','on','off')); } /** * check if the given value is a float * @param string $val the value * @param int $min minimum value (optional), null if no minimum * @param int $max maximum value (optional), null if no maximum * @return boolean true if it is valid */ static public function isFloat ($val, $min=null, $max=null){ if(filter_var($val, <API key>) === false) return false; if($min !== null && floatval($val) < $min) return false; if($max !== null && floatval($val) > $max) return false; return true; } /** * check if the given value is * @param string $url the url * @return boolean true if it is valid */ static public function isUrl ($url, $schemeRequired=false, $hostRequired=false, $pathRequired=false, $queryRequired=false ){ /* because of a bug in filter_var (error when no scheme even if there isn't <API key> flag), we don't use filter_var here $flag=0; if($schemeRequired) $flag |= <API key>; if($hostRequired) $flag |= <API key>; if($pathRequired) $flag |= <API key>; if($queryRequired) $flag |= <API key>; return filter_var($url, FILTER_VALIDATE_URL, $flag); */ // php filter use in fact parse_url, so we use the same function to have same result. // however, note that it doesn't validate all bad url... $res=@parse_url($url); if($res === false) return false; if($schemeRequired && !isset($res['scheme'])) return false; if($hostRequired && !isset($res['host'])) return false; if($pathRequired && !isset($res['path'])) return false; if($queryRequired && !isset($res['query'])) return false; return true; } /** * check if the given value is an IP version 4 * @param string $val the value * @return boolean true if it is valid */ static public function isIPv4 ($val){ return filter_var($val, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false; } /** * check if the given value is an IP version 6 * @param string $val the value * @return boolean true if it is valid */ static public function isIPv6 ($val){ return filter_var($val, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) !== false; } /** * check if the given value is an email * @param string $val the value * @return boolean true if it is valid */ static public function isEmail ($val){ return filter_var($val, <API key>) !== false; } const INVALID_HTML = 1; const BAD_SAVE_HTML = 2; /** * remove all javascript things in a html content * The html content should be a subtree of a body tag, not a whole document * @param string $html html content * @return string the cleaned html content * @since 1.1 */ static public function cleanHtml($html, $isXhtml = false) { global $gJConfig; $doc = new DOMDocument('1.0',$gJConfig->charset); $foot = '</body></html>'; if (strpos($html, "\r") !== false) { $html = str_replace("\r\n", "\n", $html); // removed \r $html = str_replace("\r", "\n", $html); // removed standalone \r } $head = '<html><head><meta http-equiv="Content-Type" content="text/html; charset='.$gJConfig->charset.'"/><title></title></head><body>'; if(!@$doc->loadHTML($head.$html.$foot)) { return jFilter::INVALID_HTML; } $items = $doc-><API key>('script'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('applet'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('base'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('basefont'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('frame'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('frameset'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('noframes'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('isindex'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('iframe'); foreach ($items as $item) { $item->parentNode->removeChild($item); } $items = $doc-><API key>('noscript'); foreach ($items as $item) { $item->parentNode->removeChild($item); } self::cleanAttr($doc-><API key>('body')->item(0)); $doc->formatOutput = true; if ($isXhtml) { $result = $doc->saveXML(); } else { $result = $doc->saveHTML(); } if(!preg_match('!<body>(.*)</body>!smU', $result, $m)) return jFilter::BAD_SAVE_HTML; return $m[1]; } static protected function cleanAttr($node) { $child=$node->firstChild; while($child) { if($child->nodeType == XML_ELEMENT_NODE) { $attrs = $child->attributes; foreach($attrs as $attr) { if(strtolower(substr($attr->localName,0,2)) == 'on') $child->removeAttributeNode($attr); else if(strtolower($attr->localName) == 'href') { if(preg_match("/^([a-z\-]+)\:.*/i",trim($attr->nodeValue), $m)) { if(!preg_match('/^http|https|mailto|ftp|irc|about|news/i', $m[1])) $child->removeAttributeNode($attr); } } } self::cleanAttr($child); } $child = $child->nextSibling; } } }
namespace KitchenPC.DB.Models { using System; using FluentNHibernate.Mapping; public class RecipeRatingsMap : ClassMap<RecipeRatings> { public RecipeRatingsMap() { this.Id(x => x.RatingId) .GeneratedBy.GuidComb() .UnsavedValue(Guid.Empty); this.Map(x => x.UserId).Not.Nullable().Index("<API key>").UniqueKey("UserRating"); this.Map(x => x.Rating).Not.Nullable(); this.References(x => x.Recipe).Not.Nullable().Index("<API key>").UniqueKey("UserRating"); } } }
<?php defined('SYSPATH') OR die('No direct access allowed.'); abstract class Ko<API key> extends Controller { protected $_oauth2_server; protected $<API key> = FALSE; /** * @var array Map of HTTP methods -> actions */ protected $_action_map = array ( Http_Request::POST => 'post', // Typically Create.. Http_Request::GET => 'get', Http_Request::PUT => 'put', // Typically Update.. Http_Request::DELETE => 'delete', ); public function before() { parent::before(); // Get the basic verb based action.. $action = $this->_action_map[$this->request->method()]; // If this is a custom action, lets make sure we use it. if ($this->request->action() != '_none') { $action .= '_'.$this->request->action(); } // Override the action $this->request->action($action); // Set up OAuth2 objects $this->_oauth2_server = new <API key>(); } public function after() { if (! $this-><API key>) { $this->_oauth2_server->processResponse($this->response); } } /** * Authorize Requests */ public function <API key>() { if (! ($params = $this->_oauth2_server-><API key>(<API key>::createFromRequest($this->request), new OAuth2_Response())) ) { return; } // Show authorize yes/no $this-><API key> = TRUE; $view = View::factory('oauth/authorize'); $view->scopes = explode(',', $params['scope']); $view->params = $params; $this->response->body($view->render()); } /** * Authorize Requests */ public function <API key>() { $authorized = (bool) $this->request->post('authorize'); $this->_oauth2_server-><API key>(<API key>::createFromRequest($this->request), new OAuth2_Response(), $authorized); } /** * Token Requests */ public function action_get_token() { $this->_oauth2_server->handleTokenRequest(<API key>::createFromRequest($this->request), new OAuth2_Response()); } /** * Token Requests */ public function action_post_token() { $this->_oauth2_server->handleTokenRequest(<API key>::createFromRequest($this->request), new OAuth2_Response()); } }
#!/usr/bin/env python import os import sys import django from django.conf import settings DEFAULT_SETTINGS = dict( INSTALLED_APPS=[ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sites", "pinax.pinax_hello", "pinax.pinax_hello.tests" ], MIDDLEWARE_CLASSES=[], DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", } }, SITE_ID=1, ROOT_URLCONF="pinax.pinax_hello.tests.urls", SECRET_KEY="notasecret", ) def runtests(*test_args): if not settings.configured: settings.configure(**DEFAULT_SETTINGS) django.setup() parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) try: from django.test.runner import DiscoverRunner runner_class = DiscoverRunner test_args = ["pinax.pinax_hello.tests"] except ImportError: from django.test.simple import <API key> runner_class = <API key> test_args = ["tests"] failures = runner_class(verbosity=1, interactive=True, failfast=False).run_tests(test_args) sys.exit(failures) if __name__ == "__main__": runtests(*sys.argv[1:])
package adasim.algorithm.routing; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Random; import java.util.Stack; import org.apache.log4j.Logger; import org.jdom.Element; import adasim.model.AdasimMap; import adasim.model.<API key>; import adasim.model.RoadSegment; import adasim.model.TrafficSimulator; import adasim.model.internal.FilterMap; import adasim.model.internal.SimulationXMLReader; import adasim.model.internal.VehicleManager; public class <API key> extends <API key> { private boolean finished = false; private final double alpha = 0.1; // Learning rate private final double gamma = 0.9; // Eagerness - 0 looks in the near future, 1 looks in the distant future private int statesCount ; private final int reward = 100; private final int penalty = -10; private int[][] R; // Reward lookup private double[][] Q; // Q learning private final int lookahead; private final int recompute; private int steps; private List<RoadSegment> path; RoadSegment currentSource =null; private final static Logger logger = Logger.getLogger(<API key>.class); public <API key>() { this(2,2); } public <API key>( int lookahead, int recomp ){ this.lookahead = lookahead; this.recompute = recomp; this.steps = 0; logger.info( "<API key>(" + lookahead + "," + recompute +")" ); } /* * Map Road segment to 2d array for q learninig to work on * * */ public void mapSegmentToArray(List<RoadSegment> listOfRoadSegment ) { Collections.sort(listOfRoadSegment); // Make sure we alwasy loading sorted Map //int dim = listOfRoadSegment.size() +1; // dimention of 2d array R = new int[statesCount][statesCount]; Q = new double[statesCount][statesCount]; // set all cells with -1 for the impossible transitions for(int i=0;i<statesCount ;i++) { for(int j=0;j<statesCount ;j++) { R[i][j]= -1; } } // set cells with 0 where agent could move for (RoadSegment roadSegment : listOfRoadSegment) { for (RoadSegment <API key> : roadSegment.getNeighbors()) { R[roadSegment.getID()][<API key>.getID()]= 0; // forword drive // R[<API key>.getID()][roadSegment.getID()]= 0; //backword drive // set reword for reaching the target if(<API key>.getID() == target.getID() ) { R[roadSegment.getID()][<API key>.getID()]= reward; } // if(roadSegment.getID() == target ) { // R[<API key>.getID()][roadSegment.getID()]= reward; } } // set reword for reaching goal //R[target][target]= reward; initializeQ(); } //Set Q values to R values void initializeQ() { for (int i = 0; i < statesCount; i++){ for(int j = 0; j < statesCount; j++){ Q[i][j] = (double)R[i][j]; } } } // Used for debug void printR() { System.out.printf("%25s", "States: "); for (int i = 0; i < statesCount; i++) { System.out.printf("%4s", i); } System.out.println(); for (int i = 0; i < statesCount; i++) { System.out.print("Possible states from " + i + " :["); for (int j = 0; j < statesCount; j++) { System.out.printf("%4s", R[i][j]); } System.out.println("]"); } } void calculateQ() { Random rand = new Random(); for (int i = 0; i < 1000; i++) { // Train cycles // Select random initial state int crtState = currentSource.getID();// set source base on input rand.nextInt(statesCount); while (!isFinalState(crtState)) { int[] <API key> = <API key>(crtState); // Pick a random action from the ones possible int index = rand.nextInt(<API key>.length); int nextState = <API key>[index]; // Q(state,action)= Q(state,action) + alpha * (R(state,action) + gamma * Max(next state, all actions) - Q(state,action)) double q = Q[crtState][nextState]; double maxQ = maxQ(nextState); int r = R[crtState][nextState]; double value = q + alpha * (r + gamma * maxQ - q); Q[crtState][nextState] = value; crtState = nextState; } } } boolean isFinalState(int state) { return state == target.getID(); } int[] <API key>(int state) { ArrayList<Integer> result = new ArrayList<>(); for (int i = 0; i < statesCount; i++) { if (R[state][i] != -1) { result.add(i); } } return result.stream().mapToInt(i -> i).toArray(); } double maxQ(int nextState) { int[] actionsFromState = <API key>(nextState); //the learning rate and eagerness will keep the W value above the lowest reward double maxValue = -10; for (int nextAction : actionsFromState) { double value = Q[nextState][nextAction]; if (value > maxValue) maxValue = value; } return maxValue; } void printPolicy() { System.out.println("\nPrint policy"); for (int i = 0; i < statesCount; i++) { System.out.println("From state " + i + " goto state " + getPolicyFromState(i)); } } int getPolicyFromState(int state) { int[] actionsFromState = <API key>(state); double maxValue = Double.MIN_VALUE; int policyGotoState = state; // Pick to move to the state that has the maximum Q value for (int nextState : actionsFromState) { double value = Q[state][nextState]; if (value > maxValue) { maxValue = value; policyGotoState = nextState; } } return policyGotoState; } void printQ() { System.out.println("\nQ matrix"); for (int i = 0; i < Q.length; i++) { System.out.print("From state " + i + ": "); for (int j = 0; j < Q[i].length; j++) { System.out.printf("%6.2f ", (Q[i][j])); } System.out.println(); } } @Override public List<RoadSegment> getPath(RoadSegment from, RoadSegment to) { currentSource = from; // get path List<RoadSegment> nodes = graph.getRoadSegments(); statesCount = nodes.size(); mapSegmentToArray(nodes); // convert segments to 2d array calculateQ(); // calculate q-learninig System.out.println("========================Source: " + currentSource.getID() +", Target: "+ target.getID() + "==============================="); printR(); printQ(); printPolicy(); List<RoadSegment> newListOfNodes = new ArrayList<RoadSegment>( ); // get path using stack Stack<Integer> st= new Stack<Integer>(); st.add(getPolicyFromState(from.getID())); while( !st.isEmpty()){ int currentState= st.pop(); newListOfNodes.add(nodes.get(currentState)); if(currentState == to.getID()) { break; } int nextSate = getPolicyFromState(currentState); st.add(nextSate); } System.out.println("\nRoadSegments: "); for (RoadSegment roadSegment : newListOfNodes) { System.out.println("\tSegment ID:"+roadSegment.getID()); System.out.println("\t \tNeighbors: "+ roadSegment.getNeighbors()); } System.out.println("======================================================="); if ( newListOfNodes == null ) { finished = true; } return newListOfNodes; } @Override public RoadSegment getNextNode() { if ( finished ) return null; if ( path == null ) { path = getPath(source); logger.info( pathLogMessage() ); } assert path != null || finished; if ( path == null || path.size() == 0 ) { finished = true; return null; } if ( ++steps == recompute ) { RoadSegment next = path.remove(0); path = getPath(next); logger.info( "UPDATE: " + pathLogMessage() ); steps = 0; return next; } else { return path.remove(0); } } /** * Computes a path to the configured target node starting from * the passed <code>start</code> node. * @param start */ private List<RoadSegment> getPath(RoadSegment start) { List<RoadSegment> p = getPath( start, target ); if ( p == null ) { finished = true; } return p; } private String pathLogMessage() { StringBuffer buf = new StringBuffer( "PATH: Vehicle: " ); buf.append( vehicle.getID() ); buf.append( " From: " ); buf.append( source.getID() ); buf.append( " To: " ); buf.append( target.getID() ); buf.append( " Path: " ); buf.append( path == null ? "[]" : path ); return buf.toString(); } }
package jobmanager.tests; import static alabno.testsuite.TestUtils.*; import alabno.testsuite.TestModule; import alabno.testsuite.TestStatistics; import jobmanager.MicroServiceInfo; public class <API key> implements TestModule { @Override public void run(TestStatistics statistics) { constructor_test(statistics); } private void constructor_test(TestStatistics statistics) { MicroServiceInfo the_info = new MicroServiceInfo("haskell", "java -jar proj/../haskellanalyzer/Main"); assertEqualsObjects(the_info.getName(), "haskell"); assertEqualsObjects(the_info.getLocation(), "java -jar proj/../haskellanalyzer/Main"); } }
'use strict'; describe('Directive: cssCode', function () { // load the directive's module and view beforeEach(module('<API key>')); beforeEach(module('app/cssCode/cssCode.html')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(function ($compile) { element = angular.element('<css-code></css-code>'); element = $compile(element)(scope); scope.$apply(); expect(element.text()).toBe('this is the cssCode directive'); })); });
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- Generated by The Webalizer Ver. 2.01-10 --> <!-- Distributed under the GNU GPL Version 2 --> <!-- Full text may be found at: --> <!-- Give the power back to the programmers --> <!-- Support the Free Software Foundation --> <HTML> <HEAD> <TITLE>Usage Statistics for johnnyedickcom.ipage.com - May 2012</TITLE> </HEAD> <BODY BGCOLOR="#E8E8E8" TEXT="#000000" LINK="#0000FF" VLINK="#FF0000"> <H2>Usage Statistics for johnnyedickcom.ipage.com</H2> <SMALL><STRONG> Summary Period: May 2012<BR> Generated 04-Oct-2012 23:43 EDT<BR> </STRONG></SMALL> <CENTER> <HR> <P> <SMALL> <A HREF="#DAYSTATS">[Daily Statistics]</A> <A HREF="#HOURSTATS">[Hourly Statistics]</A> <A HREF="#TOPURLS">[URLs]</A> <A HREF="#TOPENTRY">[Entry]</A> <A HREF="#TOPEXIT">[Exit]</A> <A HREF="#TOPSITES">[Sites]</A> <A HREF="#TOPREFS">[Referrers]</A> <A HREF="#TOPSEARCH">[Search]</A> <A HREF="#TOPAGENTS">[Agents]</A> <A HREF="#TOPCTRYS">[Countries]</A> </SMALL> <P> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH COLSPAN=3 ALIGN=center BGCOLOR="#C0C0C0">Monthly Statistics for May 2012</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Hits</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>5104</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Files</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>3149</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Pages</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>2357</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Visits</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>294</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total KBytes</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>122148</B></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Unique Sites</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>208</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Unique URLs</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>154</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Unique Referrers</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>35</B></FONT></TD></TR> <TR><TD WIDTH=380><FONT SIZE="-1">Total Unique User Agents</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>23</B></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH WIDTH=380 BGCOLOR="#C0C0C0"><FONT SIZE=-1 COLOR="#C0C0C0">.</FONT></TH> <TH WIDTH=65 BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE=-1>Avg </FONT></TH> <TH WIDTH=65 BGCOLOR="#C0C0C0" ALIGN=right><FONT SIZE=-1>Max </FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD><FONT SIZE="-1">Hits per Hour</FONT></TD> <TD ALIGN=right WIDTH=65><FONT SIZE="-1"><B>6</B></FONT></TD> <TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>1293</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Hits per Day</FONT></TD> <TD ALIGN=right WIDTH=65><FONT SIZE="-1"><B>164</B></FONT></TD> <TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>1368</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Files per Day</FONT></TD> <TD ALIGN=right WIDTH=65><FONT SIZE="-1"><B>101</B></FONT></TD> <TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>250</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Pages per Day</FONT></TD> <TD ALIGN=right WIDTH=65><FONT SIZE="-1"><B>76</B></FONT></TD> <TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>1312</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Visits per Day</FONT></TD> <TD ALIGN=right WIDTH=65><FONT SIZE="-1"><B>9</B></FONT></TD> <TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>15</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">KBytes per Day</FONT></TD> <TD ALIGN=right WIDTH=65><FONT SIZE="-1"><B>3940</B></FONT></TD> <TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>9760</B></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH COLSPAN=3 ALIGN=center BGCOLOR="#C0C0C0"> <FONT SIZE="-1">Hits by Response Code</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD><FONT SIZE="-1">Code 200 - OK</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>3149</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Code 206 - Partial Content</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>9</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Code 302 - Found</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>2</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Code 304 - Not Modified</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>59</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Code 403 - Forbidden</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>35</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Code 404 - Not Found</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>1849</B></FONT></TD></TR> <TR><TD><FONT SIZE="-1">Code 500 - Internal Server Error</FONT></TD> <TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>1</B></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="DAYSTATS"></A> <IMG SRC="daily_usage_201205.png" ALT="Daily usage for May 2012" HEIGHT=400 WIDTH=512><P> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" COLSPAN=13 ALIGN=center>Daily Statistics for May 2012</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH ALIGN=center BGCOLOR="#C0C0C0"><FONT SIZE="-1">Day</FONT></TH> <TH ALIGN=center BGCOLOR="#008040" COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH ALIGN=center BGCOLOR="#0080FF" COLSPAN=2><FONT SIZE="-1">Files</FONT></TH> <TH ALIGN=center BGCOLOR="#00E0FF" COLSPAN=2><FONT SIZE="-1">Pages</FONT></TH> <TH ALIGN=center BGCOLOR="#FFFF00" COLSPAN=2><FONT SIZE="-1">Visits</FONT></TH> <TH ALIGN=center BGCOLOR="#FF8000" COLSPAN=2><FONT SIZE="-1">Sites</FONT></TH> <TH ALIGN=center BGCOLOR="#FF0000" COLSPAN=2><FONT SIZE="-1">KBytes</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>199</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.90%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>168</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.34%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>42</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">8.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6362</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.21%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>105</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>97</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.15%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.74%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2205</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.81%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>121</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.37%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>103</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.27%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.61%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.74%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3863</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.16%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>86</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.68%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>78</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.48%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.33%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1664</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.36%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>100</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.96%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>79</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.37%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2253</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.84%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>77</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>59</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.87%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1316</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>181</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.55%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>150</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.40%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.42%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5878</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.81%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>204</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>164</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.91%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.81%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7351</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.02%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>127</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.49%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>118</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.75%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.38%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.37%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2874</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.35%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>283</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.54%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>250</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.94%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>53</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.42%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7753</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.35%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>47</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>609</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.50%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>36</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.93%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.37%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1608</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.32%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>264</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>167</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.30%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>139</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.90%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.40%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3327</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>99</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.94%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>89</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.83%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.89%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.81%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6227</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.10%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>108</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.12%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>93</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.95%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4469</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.66%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>119</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.33%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>107</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.40%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.15%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2858</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.34%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>88</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>80</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.54%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1899</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.55%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>94</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.84%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>83</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.64%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2275</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.86%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>46</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.90%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.83%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.15%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.40%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>432</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>58</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>39</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.24%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.13%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>955</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>226</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>189</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>44</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.87%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">8.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9760</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.99%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>158</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>125</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.97%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>35</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.48%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.74%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6221</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.09%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>235</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.60%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>200</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.61%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.74%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8513</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.97%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>78</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.53%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>54</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>32</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.36%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.42%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.62%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2784</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.28%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>91</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>73</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.32%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.15%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.33%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2018</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.65%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>47</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.83%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2030</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.66%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>156</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>134</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.26%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.38%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">8.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7876</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.45%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1368</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">26.80%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>76</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.41%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1312</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">55.66%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.69%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5222</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.28%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>156</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>142</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.61%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.13%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4373</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.58%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>61</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.20%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>52</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1055</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.86%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>86</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.68%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>70</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.13%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6117</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.01%</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="HOURSTATS"></A> <IMG SRC="hourly_usage_201205.png" ALT="Hourly usage for May 2012" HEIGHT=256 WIDTH=512><P> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" COLSPAN=13 ALIGN=center>Hourly Statistics for May 2012</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH ALIGN=center ROWSPAN=2 BGCOLOR="#C0C0C0"><FONT SIZE="-1">Hour</FONT></TH> <TH ALIGN=center BGCOLOR="#008040" COLSPAN=3><FONT SIZE="-1">Hits</FONT></TH> <TH ALIGN=center BGCOLOR="#0080FF" COLSPAN=3><FONT SIZE="-1">Files</FONT></TH> <TH ALIGN=center BGCOLOR="#00E0FF" COLSPAN=3><FONT SIZE="-1">Pages</FONT></TH> <TH ALIGN=center BGCOLOR="#FF0000" COLSPAN=3><FONT SIZE="-1">KBytes</FONT></TH></TR> <TR><TH ALIGN=center BGCOLOR="#008040"><FONT SIZE="-2">Avg</FONT></TH> <TH ALIGN=center BGCOLOR="#008040" COLSPAN=2><FONT SIZE="-2">Total</FONT></TH> <TH ALIGN=center BGCOLOR="#0080FF"><FONT SIZE="-2">Avg</FONT></TH> <TH ALIGN=center BGCOLOR="#0080FF" COLSPAN=2><FONT SIZE="-2">Total</FONT></TH> <TH ALIGN=center BGCOLOR="#00E0FF"><FONT SIZE="-2">Avg</FONT></TH> <TH ALIGN=center BGCOLOR="#00E0FF" COLSPAN=2><FONT SIZE="-2">Total</FONT></TH> <TH ALIGN=center BGCOLOR="#FF0000"><FONT SIZE="-2">Avg</FONT></TH> <TH ALIGN=center BGCOLOR="#FF0000" COLSPAN=2><FONT SIZE="-2">Total</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.49%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.38%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>472</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.39%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>80</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.57%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>61</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.94%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.32%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>36</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1125</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.92%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>169</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.31%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>145</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.60%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>35</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.48%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>150</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4650</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.81%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>81</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>73</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.32%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.44%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>49</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1507</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>197</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>97</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>125</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.30%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>92</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2847</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.33%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>193</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.16%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.39%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.30%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1181</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.97%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.24%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>140</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4342</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.55%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>872</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">17.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>680</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">21.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>540</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">22.91%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>467</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14482</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">11.86%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>36</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>799</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.65%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.55%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.60%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>58</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1809</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.48%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>581</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.48%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>52</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1607</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.32%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>170</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.33%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>152</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.83%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.81%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>176</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5450</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.46%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>52</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1618</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">31.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>305</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.69%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>42</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1313</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">55.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>477</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14782</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">12.10%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>103</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>83</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.64%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.55%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>159</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4928</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.03%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>353</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>317</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.07%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.74%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>374</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11592</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.49%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>271</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.31%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>237</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.53%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>342</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10593</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">8.67%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>352</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">6.90%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>314</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">9.97%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.32%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>458</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14196</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">11.62%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>282</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.53%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>248</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.85%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>415</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12870</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.54%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>89</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.74%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>79</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.64%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>120</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3717</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.04%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>133</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.61%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>109</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.46%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.89%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>173</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5376</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.40%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>75</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>60</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.91%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1750</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.43%</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>67</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.31%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>57</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.81%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.55%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>42</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1302</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.07%</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPURLS"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=6>Top 100 of 154 Total URLs</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#FF0000" ALIGN=center COLSPAN=2><FONT SIZE="-1">KBytes</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">URL</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>259</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.07%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>707</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.58%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/">/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>103</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>268</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.22%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/styles.css">/styles.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>102</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>188</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/fancyBox.js">/js/fancyBox.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>102</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1743</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.43%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/jquery.fancybox.js">/js/jquery.fancybox.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>102</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>55</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/slideWorks.js">/js/slideWorks.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>101</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>50</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/contactForm.js">/js/contactForm.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>101</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13197</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.80%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/jquery-1.7.1.js">/js/jquery-1.7.1.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>96</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>361</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.30%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/works.html">/works.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>72</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.41%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>188</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/styles/jquery.fancybox.css">/styles/jquery.fancybox.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>259</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.21%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/">/ClassWork/IT428/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>169</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/">/ClassWork/IT422/FinalProject/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.67%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>118</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SearchEngine.html">/ClassWork/IT428/SearchEngine.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>114</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.09%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/about.html">/about.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>32</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.63%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>48</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/ExternalStyleSheet.css">/ClassWork/IT428/ExternalStyleSheet.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.61%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>106</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.09%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment4.html">/ClassWork/IT428/Assignment4.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>91</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.07%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment2.html">/ClassWork/IT428/Assignment2.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.57%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1199</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.98%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/documents/<API key>.doc">/documents/<API key>.doc</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>87</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.07%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/<API key>.html">/ClassWork/IT428/<API key>.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.49%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>86</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.07%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/DataGridPhotos.html">/ClassWork/IT428/DataGridPhotos.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>83</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.07%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SkipIntro.html">/ClassWork/IT428/SkipIntro.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2769</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.27%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/documents/<API key>.pdf">/documents/<API key>.pdf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>55</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.05%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Progress/">/ClassWork/IT422/FinalProject/Progress/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>77</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment3.html">/ClassWork/IT428/Assignment3.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>69</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment1.html">/ClassWork/IT428/Assignment1.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1403</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/indexSlideShow.swf">/ClassWork/IT428/indexSlideShow.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.31%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>384</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.31%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/hc2010.swf">/ClassWork/IT428/hc2010.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1793</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.47%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/documents/Typographic Flash Cards.pdf">/documents/Typographic Flash Cards.pdf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.24%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>875</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/indexslide.swf">/ClassWork/IT422/FinalProject/IMAGES/indexslide.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.20%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>77</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/5secIntro.swf">/ClassWork/IT428/5secIntro.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>74</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Scripts/swfobject_modified.js">/ClassWork/IT428/Scripts/swfobject_modified.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>182</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SpryAssets/SpryEffects.js">/ClassWork/IT428/SpryAssets/SpryEffects.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>32</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>73</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SpryAssets/SpryMenuBar.js">/ClassWork/IT428/SpryAssets/SpryMenuBar.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SpryAssets/<API key>.css">/ClassWork/IT428/SpryAssets/<API key>.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/indexSlideUpTop.html">/indexSlideUpTop.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>35</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.16%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>162</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.13%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Flex/DogYears.swf">/ClassWork/IT428/Flex/DogYears.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>36</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/DrunkenHome.html">/ClassWork/IT422/FinalProject/DrunkenHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>37</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.12%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>178</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Flex/YahooSearch2.swf">/ClassWork/IT428/Flex/YahooSearch2.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastDrunken.html">/ClassWork/IT422/FinalProject/CastDrunken.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>39</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastHustle.html">/ClassWork/IT422/FinalProject/CastHustle.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastKiss.html">/ClassWork/IT422/FinalProject/CastKiss.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastOngBak.html">/ClassWork/IT422/FinalProject/CastOngBak.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>42</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/FearlessHome.html">/ClassWork/IT422/FinalProject/FearlessHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>43</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/HustleHome.html">/ClassWork/IT422/FinalProject/HustleHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>44</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Subscribe.html">/ClassWork/IT422/FinalProject/Subscribe.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/thanks.html">/ClassWork/IT422/FinalProject/thanks.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>46</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/">/ClassWork/IT422/Elastic/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>47</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastFearless.html">/ClassWork/IT422/FinalProject/CastFearless.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>48</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesDrunk.html">/ClassWork/IT422/FinalProject/ImagesDrunk.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>49</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesHustle.html">/ClassWork/IT422/FinalProject/ImagesHustle.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>50</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesKiss.html">/ClassWork/IT422/FinalProject/ImagesKiss.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>51</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/KissHome.html">/ClassWork/IT422/FinalProject/KissHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>52</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.03%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/MenuSpryAssets/SpryMenuBar.js">/ClassWork/IT422/FinalProject/MenuSpryAssets/SpryMenuBar.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>53</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/MenuSpryAssets/<API key>.css">/ClassWork/IT422/FinalProject/MenuSpryAssets/<API key>.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>54</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/OngBakHome.html">/ClassWork/IT422/FinalProject/OngBakHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>55</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.03%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Scripts/swfobject_modified.js">/ClassWork/IT422/FinalProject/Scripts/swfobject_modified.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>222</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/SpryData.js">/ClassWork/IT422/FinalProject/SpryAssets/SpryData.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>57</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>123</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/xpath.js">/ClassWork/IT422/FinalProject/SpryAssets/xpath.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>58</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/css/CastCss.css">/ClassWork/IT422/FinalProject/css/CastCss.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>59</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>222</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/rolloverSpryAssets/SpryData.js">/ClassWork/IT422/FinalProject/rolloverSpryAssets/SpryData.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>60</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/rolloverSpryAssets/SpryMasterDetail.css">/ClassWork/IT422/FinalProject/rolloverSpryAssets/SpryMasterDetail.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>61</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>123</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/rolloverSpryAssets/xpath.js">/ClassWork/IT422/FinalProject/rolloverSpryAssets/xpath.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>62</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>236</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.19%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Flex/ChartPresentation.swf">/ClassWork/IT428/Flex/ChartPresentation.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>63</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1042</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.85%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/johnnyedick.com_sitemap.xml">/johnnyedick.com_sitemap.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>64</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/DrunkenMasterII.xml">/ClassWork/IT422/FinalProject/DrunkenMasterII.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>65</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesDrunken.xml">/ClassWork/IT422/FinalProject/ImagesDrunken.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>66</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesFearless.html">/ClassWork/IT422/FinalProject/ImagesFearless.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>67</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesHustle.xml">/ClassWork/IT422/FinalProject/ImagesHustle.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>68</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesOngBak.html">/ClassWork/IT422/FinalProject/ImagesOngBak.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>69</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Kiss.xml">/ClassWork/IT422/FinalProject/Kiss.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>70</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Ongbak.xml">/ClassWork/IT422/FinalProject/Ongbak.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>71</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Apollo11/">/ClassWork/IT422/Apollo11/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>72</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/KDrama.html">/ClassWork/IT422/Elastic/KDrama.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>73</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastSpryAssets/SpryMasterDetail.css">/ClassWork/IT422/FinalProject/CastSpryAssets/SpryMasterDetail.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>74</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>87</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.07%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastSpryAssets/xpath.js">/ClassWork/IT422/FinalProject/CastSpryAssets/xpath.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>75</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesKiss.xml">/ClassWork/IT422/FinalProject/ImagesKiss.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>76</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesOngBak.xml">/ClassWork/IT422/FinalProject/ImagesOngBak.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>77</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Progress/Progress.xml">/ClassWork/IT422/FinalProject/Progress/Progress.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>78</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/<API key>.css">/ClassWork/IT422/FinalProject/SpryAssets/<API key>.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>79</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/<API key>.js">/ClassWork/IT422/FinalProject/SpryAssets/<API key>.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>80</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/<API key>.css">/ClassWork/IT422/FinalProject/SpryAssets/<API key>.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>81</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>91</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.07%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/<API key>.js">/ClassWork/IT422/FinalProject/SpryAssets/<API key>.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>82</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>47</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Flex/ShirtSales.swf">/ClassWork/IT428/Flex/ShirtSales.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>83</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/">/ClassWork/IT422/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>84</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Apollo11/crew.html">/ClassWork/IT422/Apollo11/crew.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>85</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/JDrama.html">/ClassWork/IT422/Elastic/JDrama.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>86</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1228</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Cast.accdb">/ClassWork/IT422/FinalProject/Cast.accdb</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>87</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>128</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastSpryAssets/SpryData.js">/ClassWork/IT422/FinalProject/CastSpryAssets/SpryData.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>88</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Fearless.xml">/ClassWork/IT422/FinalProject/Fearless.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>89</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>561</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.46%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/Thumbs.db">/ClassWork/IT422/FinalProject/IMAGES/Thumbs.db</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>90</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1234</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/fearleshomebanner.psd">/ClassWork/IT422/FinalProject/IMAGES/fearleshomebanner.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>91</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>552</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/indexslide.fla">/ClassWork/IT422/FinalProject/IMAGES/indexslide.fla</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>92</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/toolbar.psd">/ClassWork/IT422/FinalProject/IMAGES/toolbar.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>93</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/ImagesFearless.xml">/ClassWork/IT422/FinalProject/ImagesFearless.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>94</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/KungFu.xml">/ClassWork/IT422/FinalProject/KungFu.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>95</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1043</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.85%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/HomeBanner.psd">/ClassWork/IT422/FinalProject/PSDfiles/HomeBanner.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>96</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1562</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.28%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/bannerdrunk.psd">/ClassWork/IT422/FinalProject/PSDfiles/bannerdrunk.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>97</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1591</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.30%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/bannerhustlehome.psd">/ClassWork/IT422/FinalProject/PSDfiles/bannerhustlehome.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>98</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1328</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.09%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/bannerkiss.psd">/ClassWork/IT422/FinalProject/PSDfiles/bannerkiss.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>99</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1228</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/banneronbak.psd">/ClassWork/IT422/FinalProject/PSDfiles/banneronbak.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>100</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2670</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.19%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/fearlesscastbanner.psd">/ClassWork/IT422/FinalProject/PSDfiles/fearlesscastbanner.psd</A></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=6>Top 30 of 154 Total URLs By KBytes</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#FF0000" ALIGN=center COLSPAN=2><FONT SIZE="-1">KBytes</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">URL</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>101</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13197</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.80%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/jquery-1.7.1.js">/js/jquery-1.7.1.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2769</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.27%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/documents/<API key>.pdf">/documents/<API key>.pdf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2670</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.19%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/fearlesscastbanner.psd">/ClassWork/IT422/FinalProject/PSDfiles/fearlesscastbanner.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1793</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.47%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/documents/Typographic Flash Cards.pdf">/documents/Typographic Flash Cards.pdf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>102</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1743</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.43%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/jquery.fancybox.js">/js/jquery.fancybox.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1591</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.30%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/bannerhustlehome.psd">/ClassWork/IT422/FinalProject/PSDfiles/bannerhustlehome.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1562</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.28%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/bannerdrunk.psd">/ClassWork/IT422/FinalProject/PSDfiles/bannerdrunk.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1434</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.17%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/fearlessimagebanner.psd">/ClassWork/IT422/FinalProject/PSDfiles/fearlessimagebanner.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1403</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/indexSlideShow.swf">/ClassWork/IT428/indexSlideShow.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1328</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.09%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/bannerkiss.psd">/ClassWork/IT422/FinalProject/PSDfiles/bannerkiss.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1234</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/fearleshomebanner.psd">/ClassWork/IT422/FinalProject/IMAGES/fearleshomebanner.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1228</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Cast.accdb">/ClassWork/IT422/FinalProject/Cast.accdb</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1228</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/banneronbak.psd">/ClassWork/IT422/FinalProject/PSDfiles/banneronbak.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.57%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1199</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.98%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/documents/<API key>.doc">/documents/<API key>.doc</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1043</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.85%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/PSDfiles/HomeBanner.psd">/ClassWork/IT422/FinalProject/PSDfiles/HomeBanner.psd</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1042</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.85%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/johnnyedick.com_sitemap.xml">/johnnyedick.com_sitemap.xml</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.24%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>875</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/indexslide.swf">/ClassWork/IT422/FinalProject/IMAGES/indexslide.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>259</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.07%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>707</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.58%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/">/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>561</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.46%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/Thumbs.db">/ClassWork/IT422/FinalProject/IMAGES/Thumbs.db</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>552</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/IMAGES/indexslide.fla">/ClassWork/IT422/FinalProject/IMAGES/indexslide.fla</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.31%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>384</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.31%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/hc2010.swf">/ClassWork/IT428/hc2010.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>96</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>361</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.30%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/works.html">/works.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>103</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>268</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.22%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/styles.css">/styles.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>259</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.21%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/">/ClassWork/IT428/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>236</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.19%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Flex/ChartPresentation.swf">/ClassWork/IT428/Flex/ChartPresentation.swf</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>222</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/SpryAssets/SpryData.js">/ClassWork/IT422/FinalProject/SpryAssets/SpryData.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>222</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/rolloverSpryAssets/SpryData.js">/ClassWork/IT422/FinalProject/rolloverSpryAssets/SpryData.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>102</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>188</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/js/fancyBox.js">/js/fancyBox.js</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>72</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.41%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>188</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/styles/jquery.fancybox.css">/styles/jquery.fancybox.css</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>182</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SpryAssets/SpryEffects.js">/ClassWork/IT428/SpryAssets/SpryEffects.js</A></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPENTRY"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=6>Top 20 of 39 Total Entry Pages</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#FFFF00" ALIGN=center COLSPAN=2><FONT SIZE="-1">Visits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">URL</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>259</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.07%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>172</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">60.56%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/">/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>96</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.39%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/works.html">/works.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.17%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/indexSlideUpTop.html">/indexSlideUpTop.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.82%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Progress/">/ClassWork/IT422/FinalProject/Progress/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.11%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/">/ClassWork/IT428/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.41%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/">/ClassWork/IT422/Elastic/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.41%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/">/ClassWork/IT422/FinalProject/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.41%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment2.html">/ClassWork/IT428/Assignment2.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/thanks.html">/ClassWork/IT422/FinalProject/thanks.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment3.html">/ClassWork/IT428/Assignment3.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.67%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SearchEngine.html">/ClassWork/IT428/SearchEngine.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Apollo11/">/ClassWork/IT422/Apollo11/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/KDrama.html">/ClassWork/IT422/Elastic/KDrama.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastDrunken.html">/ClassWork/IT422/FinalProject/CastDrunken.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastFearless.html">/ClassWork/IT422/FinalProject/CastFearless.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastHustle.html">/ClassWork/IT422/FinalProject/CastHustle.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastKiss.html">/ClassWork/IT422/FinalProject/CastKiss.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastOngBak.html">/ClassWork/IT422/FinalProject/CastOngBak.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/DrunkenHome.html">/ClassWork/IT422/FinalProject/DrunkenHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/FearlessHome.html">/ClassWork/IT422/FinalProject/FearlessHome.html</A></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPEXIT"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=6>Top 20 of 39 Total Exit Pages</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#FFFF00" ALIGN=center COLSPAN=2><FONT SIZE="-1">Visits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">URL</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>259</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.07%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>117</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">42.24%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/">/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>96</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">11.19%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/works.html">/works.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.42%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment3.html">/ClassWork/IT428/Assignment3.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.97%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment1.html">/ClassWork/IT428/Assignment1.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.67%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.61%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/SearchEngine.html">/ClassWork/IT428/SearchEngine.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.25%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/">/ClassWork/IT428/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.25%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/indexSlideUpTop.html">/indexSlideUpTop.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.89%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Progress/">/ClassWork/IT422/FinalProject/Progress/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.17%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/">/ClassWork/IT422/FinalProject/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.81%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment2.html">/ClassWork/IT428/Assignment2.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.44%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/">/ClassWork/IT422/Elastic/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.44%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/DrunkenHome.html">/ClassWork/IT422/FinalProject/DrunkenHome.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/Subscribe.html">/ClassWork/IT422/FinalProject/Subscribe.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/thanks.html">/ClassWork/IT422/FinalProject/thanks.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.61%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT428/Assignment4.html">/ClassWork/IT428/Assignment4.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Apollo11/">/ClassWork/IT422/Apollo11/</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/Elastic/KDrama.html">/ClassWork/IT422/Elastic/KDrama.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastDrunken.html">/ClassWork/IT422/FinalProject/CastDrunken.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastFearless.html">/ClassWork/IT422/FinalProject/CastFearless.html</A></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http://johnnyedickcom.ipage.com/ClassWork/IT422/FinalProject/CastHustle.html">/ClassWork/IT422/FinalProject/CastHustle.html</A></FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPSITES"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=10>Top 50 of 208 Total Sites</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#0080FF" ALIGN=center COLSPAN=2><FONT SIZE="-1">Files</FONT></TH> <TH BGCOLOR="#FF0000" ALIGN=center COLSPAN=2><FONT SIZE="-1">KBytes</FONT></TH> <TH BGCOLOR="#FFFF00" ALIGN=center COLSPAN=2><FONT SIZE="-1">Visits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">Hostname</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1287</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">25.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3837</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">96.127.149.82</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>521</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>487</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">15.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>16338</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">13.38%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.78%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">71.80.199.42</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>370</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>324</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5601</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.42%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">108.163.224.130</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>163</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.19%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>125</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.97%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2180</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">184.154.164.186</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>155</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>111</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.52%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2151</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">173.236.59.218</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>150</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.94%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>126</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6603</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.41%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.36%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.169</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>147</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>134</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.26%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5657</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.63%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.124</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>143</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.80%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>133</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5088</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.36%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.209.219</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>126</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>60</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.91%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>787</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.64%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.84.93.229</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>121</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.37%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>85</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1508</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>53</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">18.03%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">199.21.99.69</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>101</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>90</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3768</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">206.169.235.14</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>95</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>82</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.60%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3899</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.19%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">68.186.101.141</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>86</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.68%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>85</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2358</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.93%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">173.10.98.81</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>81</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>78</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.48%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3316</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.189.222.224</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>80</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.57%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>74</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3491</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">199.196.224.102</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>78</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.53%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1074</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">67.212.188.154</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>76</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.49%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>52</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1071</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">99.198.111.42</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>73</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>65</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3314</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">38.100.226.83</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>63</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3698</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.03%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">200.59.197.6</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>62</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>57</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.81%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1848</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.13</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>59</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.16%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>46</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.46%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2752</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">63.226.245.113</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>54</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1352</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.11%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.171.188.148</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>53</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>51</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.62%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1323</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">207.250.79.99</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>51</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>50</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1240</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">50.34.245.162</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>48</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.94%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.83%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>356</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">70.161.177.214</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.80%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2685</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.20%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">174.127.153.66</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>37</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>808</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.66%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">208.79.144.67</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2340</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">65.47.30.114</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>39</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2548</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.09%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">131.107.0.84</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>39</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.79%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>712</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.58%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">131.191.104.80</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>31</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>35</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.69%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.05%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>879</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.72%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.37</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>32</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.67%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>32</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1117</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.91%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">174.21.88.135</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.05%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1132</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.93%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">199.106.165.81</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.65%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>33</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.05%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>924</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">70.89.119.142</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>35</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.49%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>638</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.52%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.231.244</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>36</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>646</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.53%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">178.210.218.166</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>37</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.45%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.73%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>535</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.44%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">78.86.76.53</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>77</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.74%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">208.115.113.91</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>39</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>537</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.44%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.232.168</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.41%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>75</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.72%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">208.115.111.75</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>315</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.26%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.213.20</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>42</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.27%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>59</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.05%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">69.58.178.56</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>43</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.27%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.32%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>287</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.24%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">95.108.158.240</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>44</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.24%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.38%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>269</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">61.9.18.97</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>45</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.16%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>181</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.15%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.193</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>46</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.13%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>703</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.58%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.173</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>47</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1267</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.194</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>48</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>192</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.16%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">93.138.109.202</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>49</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.12%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.19%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>67</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">38.100.21.14</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>50</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.111</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=10>Top 30 of 208 Total Sites By KBytes</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#0080FF" ALIGN=center COLSPAN=2><FONT SIZE="-1">Files</FONT></TH> <TH BGCOLOR="#FF0000" ALIGN=center COLSPAN=2><FONT SIZE="-1">KBytes</FONT></TH> <TH BGCOLOR="#FFFF00" ALIGN=center COLSPAN=2><FONT SIZE="-1">Visits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">Hostname</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>521</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>487</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">15.47%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>16338</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">13.38%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.78%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">71.80.199.42</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>150</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.94%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>126</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6603</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">5.41%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.36%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.169</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>147</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.88%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>134</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.26%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5657</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.63%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.124</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>370</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">7.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>324</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">10.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5601</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.42%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">108.163.224.130</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>143</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.80%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>133</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5088</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.17%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.36%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.209.219</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4000</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.27%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.177</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>95</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>82</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.60%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3899</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.19%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">68.186.101.141</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1287</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">25.22%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3837</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">96.127.149.82</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>101</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.98%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>90</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3768</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">206.169.235.14</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>63</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3698</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.03%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">200.59.197.6</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>80</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.57%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>74</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.35%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3491</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.86%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">199.196.224.102</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>81</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>78</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.48%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3316</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.189.222.224</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>73</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.43%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>65</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3314</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">38.100.226.83</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>59</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.16%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>46</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.46%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2752</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.25%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">63.226.245.113</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>41</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.80%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>38</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2685</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.20%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">174.127.153.66</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>39</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2548</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.09%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">131.107.0.84</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>86</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.68%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>85</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2358</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.93%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">173.10.98.81</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>40</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>34</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2340</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">65.47.30.114</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>163</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.19%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>125</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.97%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2180</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.78%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">184.154.164.186</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>155</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>111</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.52%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2151</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.76%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">173.236.59.218</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>62</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.21%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>57</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.81%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1848</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.51%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">72.233.211.13</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.03%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1594</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.30%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.202</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1566</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.28%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.243</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>121</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.37%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>85</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.70%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1508</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.23%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>53</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">18.03%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">199.21.99.69</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>25</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.03%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1438</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.18%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.195</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>26</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.10%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>54</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.71%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1352</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.11%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.171.188.148</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>27</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>53</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>51</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.62%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1323</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">207.250.79.99</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>28</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1267</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.04%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.68%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.194</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>29</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1257</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.03%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">66.249.72.196</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>30</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>51</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>50</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.59%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1240</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.01%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.34%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">50.34.245.162</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPREFS"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=4>Top 8 of 35 Total Referrers</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">Referrer</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2741</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">53.70%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">- (Direct Request)</FONT></TD></TR> <TR BGCOLOR="#D0D0E0"> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>248</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">4.86%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><STRONG>Google</STRONG></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.14%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><A HREF="http: <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPSEARCH"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=4>Top 2 of 2 Total Search Strings</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">Search String</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">80.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">johnny edick</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">20.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">edickj@cwu.edu</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPAGENTS"></A> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=4>Top 24 of 23 Total User Agents</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">User Agent</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1884</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">36.91%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Mozilla/5.0</FONT></TD></TR> <TR BGCOLOR="#D0D0E0"> <TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1884</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">36.91%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><STRONG>Netscape 6 compatible</STRONG></FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1378</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">27.00%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">MSIE 8.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>601</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">11.78%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">SiteLockSpider [en] (WinNT; I ;Nav)</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>5</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>590</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">11.56%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">MSIE 9.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>180</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.53%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Googlebot/2.1</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>7</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>174</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">3.41%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">panscient.com</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>8</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>122</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">2.39%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">YandexBot/3.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>9</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>56</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">1.10%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Baiduspider/2.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>10</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>43</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.84%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Ezooms/1.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>11</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.47%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Googlebot-Image/1.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.27%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">YandexImages/3.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>13</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.25%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1"><API key>/6.0.6000</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>14</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.12%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">MSIE 7.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>15</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>6</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.12%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">bingbot/2.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>16</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.06%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Googlebot/2.1 (+http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>17</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">BlackBerry9630/5.0.0.732 Profile/MIDP-2.1 Configuration/CLDC-</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>18</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.04%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">ia_archiver (+http: <TR> <TD ALIGN=center><FONT SIZE="-1"><B>19</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">MSIE 5.0</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>20</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Microsoft Office Existence Discovery</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>21</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Microsoft Office Protocol Discovery</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>22</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Nessus SOAP v0.0.1 (Nessus.org)</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>23</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">W3C_Validator/1.3</FONT></TD></TR> <TR> <TD ALIGN=center><FONT SIZE="-1"><B>24</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.02%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">stackexchangebot/1.0</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> <A NAME="TOPCTRYS"></A> <IMG SRC="ctry_usage_201205.png" ALT="Usage by Country for May 2012" HEIGHT=300 WIDTH=512><P> <TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=CENTER COLSPAN=8>Top 2 of 2 Total Countries</TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TH BGCOLOR="#C0C0C0" ALIGN=center><FONT SIZE="-1">#</FONT></TH> <TH BGCOLOR="#008040" ALIGN=center COLSPAN=2><FONT SIZE="-1">Hits</FONT></TH> <TH BGCOLOR="#0080FF" ALIGN=center COLSPAN=2><FONT SIZE="-1">Files</FONT></TH> <TH BGCOLOR="#FF0000" ALIGN=center COLSPAN=2><FONT SIZE="-1">KBytes</FONT></TH> <TH BGCOLOR="#00E0FF" ALIGN=center><FONT SIZE="-1">Country</FONT></TH></TR> <TR><TH HEIGHT=4></TH></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>1</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>5100</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">99.92%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>3158</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">100.29%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>122136</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">99.99%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">Unresolved/Unknown</FONT></TD></TR> <TR><TD ALIGN=center><FONT SIZE="-1"><B>2</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>4</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.08%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>0</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.00%</FONT></TD> <TD ALIGN=right><FONT SIZE="-1"><B>12</B></FONT></TD> <TD ALIGN=right><FONT SIZE="-2">0.01%</FONT></TD> <TD ALIGN=left NOWRAP><FONT SIZE="-1">US Commercial</FONT></TD></TR> <TR><TH HEIGHT=4></TH></TR> </TABLE> <P> </CENTER> <P> <HR> <TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0 BORDER=0> <TR> <TD ALIGN=left VALIGN=top> <SMALL>Generated by <A HREF="http: </SMALL> </TD> </TR> </TABLE> <!-- Webalizer Version 2.01-10 (Mod: 16-Apr-2002) --> </BODY> </HTML>
#include "py/mpconfig.h" #if MICROPY_VFS_FAT #if !MICROPY_VFS #error "with MICROPY_VFS_FAT enabled, must also enable MICROPY_VFS" #endif #include <string.h> #include "py/nlr.h" #include "py/runtime.h" #include "py/mperrno.h" #include "lib/oofatfs/ff.h" #include "extmod/vfs_fat.h" #include "lib/timeutils/timeutils.h" #if _MAX_SS == _MIN_SS #define SECSIZE(fs) (_MIN_SS) #else #define SECSIZE(fs) ((fs)->ssize) #endif #define mp_obj_fat_vfs_t fs_user_mount_t STATIC mp_obj_t fat_vfs_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_arg_check_num(n_args, n_kw, 1, 1, false); // create new object fs_user_mount_t *vfs = m_new_obj(fs_user_mount_t); vfs->base.type = type; vfs->flags = FSUSER_FREE_OBJ; vfs->fatfs.drv = vfs; // load block protocol methods mp_load_method(args[0], MP_QSTR_readblocks, vfs->readblocks); <API key>(args[0], MP_QSTR_writeblocks, vfs->writeblocks); <API key>(args[0], MP_QSTR_ioctl, vfs->u.ioctl); if (vfs->u.ioctl[0] != MP_OBJ_NULL) { // device supports new block protocol, so indicate it vfs->flags |= FSUSER_HAVE_IOCTL; } else { // no ioctl method, so assume the device uses the old block protocol <API key>(args[0], MP_QSTR_sync, vfs->u.old.sync); mp_load_method(args[0], MP_QSTR_count, vfs->u.old.count); } return MP_OBJ_FROM_PTR(vfs); } STATIC mp_obj_t fat_vfs_mkfs(mp_obj_t bdev_in) { // create new object fs_user_mount_t *vfs = MP_OBJ_TO_PTR(fat_vfs_make_new(&mp_fat_vfs_type, 1, 0, &bdev_in)); // make the filesystem uint8_t working_buf[_MAX_SS]; FRESULT res = f_mkfs(&vfs->fatfs, FM_FAT | FM_SFD, 0, working_buf, sizeof(working_buf)); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } return mp_const_none; } STATIC <API key>(<API key>, fat_vfs_mkfs); STATIC <API key>(fat_vfs_mkfs_obj, MP_ROM_PTR(&<API key>)); STATIC <API key>(fat_vfs_open_obj, <API key>); STATIC mp_obj_t <API key>(size_t n_args, const mp_obj_t *args) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(args[0]); bool is_str_type = true; const char *path; if (n_args == 2) { if (mp_obj_get_type(args[1]) == &mp_type_bytes) { is_str_type = false; } path = mp_obj_str_get_str(args[1]); } else { path = ""; } return fat_vfs_listdir2(self, path, is_str_type); } STATIC <API key>(fat_vfs_listdir_obj, 1, 2, <API key>); STATIC mp_obj_t <API key>(mp_obj_t vfs_in, mp_obj_t path_in, mp_int_t attr) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); const char *path = mp_obj_str_get_str(path_in); FILINFO fno; FRESULT res = f_stat(&self->fatfs, path, &fno); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } // check if path is a file or directory if ((fno.fattrib & AM_DIR) == attr) { res = f_unlink(&self->fatfs, path); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } return mp_const_none; } else { mp_raise_OSError(attr ? MP_ENOTDIR : MP_EISDIR); } } STATIC mp_obj_t fat_vfs_remove(mp_obj_t vfs_in, mp_obj_t path_in) { return <API key>(vfs_in, path_in, 0); // 0 == file attribute } STATIC <API key>(fat_vfs_remove_obj, fat_vfs_remove); STATIC mp_obj_t fat_vfs_rmdir(mp_obj_t vfs_in, mp_obj_t path_in) { return <API key>(vfs_in, path_in, AM_DIR); } STATIC <API key>(fat_vfs_rmdir_obj, fat_vfs_rmdir); STATIC mp_obj_t fat_vfs_rename(mp_obj_t vfs_in, mp_obj_t path_in, mp_obj_t path_out) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); const char *old_path = mp_obj_str_get_str(path_in); const char *new_path = mp_obj_str_get_str(path_out); FRESULT res = f_rename(&self->fatfs, old_path, new_path); if (res == FR_EXIST) { // if new_path exists then try removing it (but only if it's a file) <API key>(vfs_in, path_out, 0); // 0 == file attribute // try to rename again res = f_rename(&self->fatfs, old_path, new_path); } if (res == FR_OK) { return mp_const_none; } else { mp_raise_OSError(<API key>[res]); } } STATIC <API key>(fat_vfs_rename_obj, fat_vfs_rename); STATIC mp_obj_t fat_vfs_mkdir(mp_obj_t vfs_in, mp_obj_t path_o) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); const char *path = mp_obj_str_get_str(path_o); FRESULT res = f_mkdir(&self->fatfs, path); if (res == FR_OK) { return mp_const_none; } else { mp_raise_OSError(<API key>[res]); } } STATIC <API key>(fat_vfs_mkdir_obj, fat_vfs_mkdir); Change current directory. STATIC mp_obj_t fat_vfs_chdir(mp_obj_t vfs_in, mp_obj_t path_in) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); const char *path; path = mp_obj_str_get_str(path_in); FRESULT res = f_chdir(&self->fatfs, path); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } return mp_const_none; } STATIC <API key>(fat_vfs_chdir_obj, fat_vfs_chdir); Get the current directory. STATIC mp_obj_t fat_vfs_getcwd(mp_obj_t vfs_in) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); char buf[<API key> + 1]; FRESULT res = f_getcwd(&self->fatfs, buf, sizeof(buf)); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } return mp_obj_new_str(buf, strlen(buf), false); } STATIC <API key>(fat_vfs_getcwd_obj, fat_vfs_getcwd); \function stat(path) Get the status of a file or directory. STATIC mp_obj_t fat_vfs_stat(mp_obj_t vfs_in, mp_obj_t path_in) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); const char *path = mp_obj_str_get_str(path_in); FILINFO fno; if (path[0] == 0 || (path[0] == '/' && path[1] == 0)) { // stat root directory fno.fsize = 0; fno.fdate = 0x2821; // Jan 1, 2000 fno.ftime = 0; fno.fattrib = AM_DIR; } else { FRESULT res = f_stat(&self->fatfs, path, &fno); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } } mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(10, NULL)); mp_int_t mode = 0; if (fno.fattrib & AM_DIR) { mode |= 0x4000; // stat.S_IFDIR } else { mode |= 0x8000; // stat.S_IFREG } mp_int_t seconds = <API key>( 1980 + ((fno.fdate >> 9) & 0x7f), (fno.fdate >> 5) & 0x0f, fno.fdate & 0x1f, (fno.ftime >> 11) & 0x1f, (fno.ftime >> 5) & 0x3f, 2 * (fno.ftime & 0x1f) ); t->items[0] = <API key>(mode); // st_mode t->items[1] = <API key>(0); // st_ino t->items[2] = <API key>(0); // st_dev t->items[3] = <API key>(0); // st_nlink t->items[4] = <API key>(0); // st_uid t->items[5] = <API key>(0); // st_gid t->items[6] = <API key>(fno.fsize); // st_size t->items[7] = <API key>(seconds); // st_atime t->items[8] = <API key>(seconds); // st_mtime t->items[9] = <API key>(seconds); // st_ctime return MP_OBJ_FROM_PTR(t); } STATIC <API key>(fat_vfs_stat_obj, fat_vfs_stat); // Get the status of a VFS. STATIC mp_obj_t fat_vfs_statvfs(mp_obj_t vfs_in, mp_obj_t path_in) { mp_obj_fat_vfs_t *self = MP_OBJ_TO_PTR(vfs_in); (void)path_in; DWORD nclst; FATFS *fatfs = &self->fatfs; FRESULT res = f_getfree(fatfs, &nclst); if (FR_OK != res) { mp_raise_OSError(<API key>[res]); } mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(10, NULL)); t->items[0] = <API key>(fatfs->csize * SECSIZE(fatfs)); // f_bsize t->items[1] = t->items[0]; // f_frsize t->items[2] = <API key>((fatfs->n_fatent - 2)); // f_blocks t->items[3] = <API key>(nclst); // f_bfree t->items[4] = t->items[3]; // f_bavail t->items[5] = <API key>(0); // f_files t->items[6] = <API key>(0); // f_ffree t->items[7] = <API key>(0); // f_favail t->items[8] = <API key>(0); // f_flags t->items[9] = <API key>(_MAX_LFN); // f_namemax return MP_OBJ_FROM_PTR(t); } STATIC <API key>(fat_vfs_statvfs_obj, fat_vfs_statvfs); STATIC mp_obj_t vfs_fat_mount(mp_obj_t self_in, mp_obj_t readonly, mp_obj_t mkfs) { fs_user_mount_t *self = MP_OBJ_TO_PTR(self_in); // Read-only device indicated by writeblocks[0] == MP_OBJ_NULL. // User can specify read-only device by: // 1. readonly=True keyword argument // 2. nonexistent writeblocks method (then writeblocks[0] == MP_OBJ_NULL already) if (mp_obj_is_true(readonly)) { self->writeblocks[0] = MP_OBJ_NULL; } // mount the block device FRESULT res = f_mount(&self->fatfs); // check if we need to make the filesystem if (res == FR_NO_FILESYSTEM && mp_obj_is_true(mkfs)) { uint8_t working_buf[_MAX_SS]; res = f_mkfs(&self->fatfs, FM_FAT | FM_SFD, 0, working_buf, sizeof(working_buf)); } if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } return mp_const_none; } STATIC <API key>(vfs_fat_mount_obj, vfs_fat_mount); STATIC mp_obj_t vfs_fat_umount(mp_obj_t self_in) { fs_user_mount_t *self = MP_OBJ_TO_PTR(self_in); FRESULT res = f_umount(&self->fatfs); if (res != FR_OK) { mp_raise_OSError(<API key>[res]); } return mp_const_none; } STATIC <API key>(fat_vfs_umount_obj, vfs_fat_umount); STATIC const mp_rom_map_elem_t <API key>[] = { { MP_ROM_QSTR(MP_QSTR_mkfs), MP_ROM_PTR(&fat_vfs_mkfs_obj) }, { MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&fat_vfs_open_obj) }, { MP_ROM_QSTR(MP_QSTR_listdir), MP_ROM_PTR(&fat_vfs_listdir_obj) }, { MP_ROM_QSTR(MP_QSTR_mkdir), MP_ROM_PTR(&fat_vfs_mkdir_obj) }, { MP_ROM_QSTR(MP_QSTR_rmdir), MP_ROM_PTR(&fat_vfs_rmdir_obj) }, { MP_ROM_QSTR(MP_QSTR_chdir), MP_ROM_PTR(&fat_vfs_chdir_obj) }, { MP_ROM_QSTR(MP_QSTR_getcwd), MP_ROM_PTR(&fat_vfs_getcwd_obj) }, { MP_ROM_QSTR(MP_QSTR_remove), MP_ROM_PTR(&fat_vfs_remove_obj) }, { MP_ROM_QSTR(MP_QSTR_rename), MP_ROM_PTR(&fat_vfs_rename_obj) }, { MP_ROM_QSTR(MP_QSTR_stat), MP_ROM_PTR(&fat_vfs_stat_obj) }, { MP_ROM_QSTR(MP_QSTR_statvfs), MP_ROM_PTR(&fat_vfs_statvfs_obj) }, { MP_ROM_QSTR(MP_QSTR_mount), MP_ROM_PTR(&vfs_fat_mount_obj) }, { MP_ROM_QSTR(MP_QSTR_umount), MP_ROM_PTR(&fat_vfs_umount_obj) }, }; STATIC <API key>(fat_vfs_locals_dict, <API key>); const mp_obj_type_t mp_fat_vfs_type = { { &mp_type_type }, .name = MP_QSTR_VfsFat, .make_new = fat_vfs_make_new, .locals_dict = (mp_obj_dict_t*)&fat_vfs_locals_dict, }; #endif // MICROPY_VFS_FAT
using System; using System.Collections.Generic; using System.Linq; using hw.DebugFormatter; using hw.Helper; using Taabus.External; namespace Taabus { sealed class <API key> : <API key><Configuration> { <API key>(string fileName, Configuration configuration) : base(fileName, configuration) { } protected override string Serialize(Configuration data) { return InternalSerialize(data); } internal static <API key> Load(string fileName) { if(fileName == null) return null; return new <API key>(fileName, InternalLoad(fileName)); } internal static string CreateEmpty() { return InternalSerialize(new Configuration()); } static Configuration InternalLoad(string fileName) { var assembly = fileName.<API key>(); var type = assembly.GetType("V13"); if(type != null) return type.Invoke<Configuration>("Data"); // older version var type1 = assembly.GetType("TaabusProject"); if(type1 != null) return Convert(type1.Invoke<TaabusProject>("Project")); Tracer.FlaggedLine("Error: Unexpected configuration\nTypes expected: \"CSharp\", \"TaabusProject\"\nType(s) found: " + assembly.GetTypes().Select(t => t.PrettyName().Quote()).Stringify(", ")); Tracer.TraceBreak(); return null; } static Configuration Convert(TaabusProject target) { return new Configuration { <API key> = target.<API key>, Selection = target.Selection, Servers = target.Project.Servers.ToArray(), Items = new Item[0] }; } static string InternalSerialize(Configuration data) { return new Generator(data).TransformText(); } } [Serializer.Enable] public sealed class TaabusProject { public Project Project; public <API key>[] <API key>; public string[] Selection; } }
using Android.OS; using GetAllLinks.Core.ViewModels; using MvvmCross.Droid.Shared.Attributes; using Android.Views; namespace GetAllLinks.Droid.Views { [MvxFragment(typeof(<API key>), Resource.Layout.settingsView, ViewModelType = typeof(SettingsViewModel), IsCacheableFragment = false)] public class SettingsFragment : BaseFragment<SettingsViewModel> { public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { var view = base.OnCreateView(inflater, container, savedInstanceState); return view; } } }
<?php namespace Yateric\Tests\Stubs; use Yateric\Cacheable\Cacheable; class DecoratedObject { use Cacheable; public function nonStaticMethod($parameter = '') { return "nonstatic{$parameter}"; } public static function staticMethod($parameter = '') { return "static{$parameter}"; } }
{% extends "base/_base.html" %} {% import 'base/_speaker_macro.html' as speaker_macro %} {% set page_title = message.page_title_index %} {% block content %} <div class="ui vertical stripe segment pycon-odd-seg"> <div class="ui middle aligned stackable grid container"> <div class="row"> <div class="eight wide column"> <h3 class="ui header">{{ message.pycon_intro_title }}</h3> <p>{{ message.pycon_intro }}</p> </div> {% macro agenda_link(city) %} <div class="step"> <!--<i class="{{ 'remove from calendar' if city.completed else 'in cart' }} icon"></i>--> <div class="content"> <div class="title">{{ city.name }}</div> <div class="description">{{ city.date }}</div> </div> </div> {% endmacro %} <div class="six wide right floated column"> <div class="ui vertical steps"> {% for city_name in agenda.city_list %} {{ agenda_link(agenda[city_name]) }} {% endfor %} </div> </div> </div> <div class="row"> <div class="center aligned column"> <a class="ui huge primary button" href="{{ site.shanghai.booking_url }}" target="_blank">{{ message.<API key> }}</a> <a class="ui huge primary button" href="{{ site.hangzhou.booking_url }}" target="_blank">{{ message.<API key> }}</a> </div> </div> </div> </div> <div class="ui vertical stripe center aligned segment pycon-odd-seg"> {% macro sponsor_block(sponsor_meta, sponsor_list) %} <div class="ui text container"> <h3 class="ui center aligned header sponsors">{{ sponsor_meta.name }}</h3> </div> <div class="ui container"> <div class="ui small images sponsors"> {% if sponsor_list %} {% for sponsor_info in sponsor_list %} <a href="{{ sponsor_info.link }}" target="_blank"> <img class="ui image" src="{{ sponsor_info.logo }}"> </a> {% endfor %} {% endif %} </div> </div> {% endmacro %} {% for sponsor_meta in sponsors.meta %} {{ sponsor_block(sponsor_meta, sponsors[sponsor_meta.level]) }} {% endfor %} </div> <!-- FIXME: DRY --> {% for city in agenda.city_list %} {% set speaker_city = agenda[city].name + message.speakers %} {% set extra_class = loop.cycle('pycon-even-seg', 'pycon-odd-seg') %} {{ speaker_macro.speaker_block(speaker_city, selectspeakers(speakers, city), extra_class) }} {% endfor %} <!-- FIXME: DRY --> {% if agenda.city_list|length % 2 == 0 %} {% set extra_class = "pycon-even-seg" %} {% else %} {% set extra_class = "pycon-odd-seg" %} {% endif %} <div class="ui vertical stripe center aligned segment {{ extra_class }}"> <div class="ui text container"> <h3 class="ui center aligned header pythoners">{{ message.donators }}</h3> </div> <!-- TODO: CDN --> <div class="ui container pythoners"> {% for donator in donators %} <a class="ui image label"> <img src="{{ site.base_url }}/asset/images/avatar-2016/small/{{ loop.cycle('1', '2', '3', '4', '5', '6', '7', '8', '9') }}.jpg"> {{ donator}} </a> {% endfor %} </div> </div> {% endblock %}
var assert = require('assert'); var keys = require("cmd/common/keys/user.js"); var userKeysNock = require('test/fixtures/user/fixture_user_keys'); module.exports = { setUp : function(cb){ return cb(); }, 'list keys' : function(cb){ keys({ _ : ['list'] }, function(err, list){ assert.equal(err, null, err); assert.ok(list); assert.equal(list.list.length, 1); return cb(); }); }, 'create keys' : function(cb){ keys({ _ : ['add'] }, function(err){ assert.ok(!err, err); keys({ _ : ['add', 'UserKey'] }, function(err, key){ assert.equal(err, null, err); assert.ok(key.apiKey); assert.ok(key.apiKey.label); assert.ok(key.apiKey.key); return cb(); }); }); }, 'revoke keys' : function(cb){ keys.skipPrompt = true; keys({ _ : ['delete'] }, function(err){ assert.ok(err); keys({ _ : ['delete', 'UserKey'] }, function(err, key){ assert.equal(err, null, err); assert.ok(key.apiKey); assert.ok(key.apiKey.label); assert.ok(key.apiKey.key); return cb(); }); }); }, 'update keys' : function (cb) { keys.skipPrompt = true; keys({ _ : ['update'] }, function(err){ assert.ok(err); keys({ _ : ['update', 'UserKey', 'UserKey-Updated'] }, function(err, key){ assert.ok(!err, err); assert.ok(key.apiKey); assert.ok(key.apiKey.label); assert.equal('UserKey-Updated', key.apiKey.label); keys({ _ : ['update', '1239jncjjcd'] }, function(err){ assert.ok(err); return cb(); }); }); }); }, 'target keys' : function(cb){ var key_val = "<API key>"; keys({ _ : ['target', 'UserKey'] }, function(err, r){ assert.equal(err, null, err); assert.equal(r, key_val); keys({ _ : ['target'] }, function(err, r){ assert.equal(err, null); assert.equal(r, key_val); return cb(); }); }); }, tearDown : function(cb){ userKeysNock.done(); return cb(); } };
module.exports = { audioFilter: require('./audioFilter'), destination: require('./destination'), filename: require('./filename'), multer: require('./multer') }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Mon Jan 23 16:37:41 GMT 2017 --> <title>Resource</title> <meta name="date" content="2017-01-23"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Resource"; } } catch(err) { } var methods = {"i0":9,"i1":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../me/gandhiinc/blindeye/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/Resource.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../me/gandhiinc/blindeye/Pub.html" title="class in me.gandhiinc.blindeye"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../me/gandhiinc/blindeye/Roboticon.html" title="class in me.gandhiinc.blindeye"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?me/gandhiinc/blindeye/Resource.html" target="_top">Frames</a></li> <li><a href="Resource.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#enum.constant.summary">Enum Constants</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#enum.constant.detail">Enum Constants</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <div class="subTitle">me.gandhiinc.blindeye</div> <h2 title="Enum Resource" class="title">Enum Resource</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>java.lang.Enum&lt;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a>&gt;</li> <li> <ul class="inheritance"> <li>me.gandhiinc.blindeye.Resource</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.io.Serializable, java.lang.Comparable&lt;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a>&gt;</dd> </dl> <hr> <br> <pre>public enum <span class="typeNameLabel">Resource</span> extends java.lang.Enum&lt;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a>&gt;</pre> <div class="block">Enumeration of resource types</div> <dl> <dt><span class="simpleTagLabel">Author:</span></dt> <dd>ras570</dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="enum.constant.summary"> </a> <h3>Enum Constant Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Constant Summary table, listing enum constants, and an explanation"> <caption><span>Enum Constants</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Enum Constant and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../me/gandhiinc/blindeye/Resource.html#ENERGY">ENERGY</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../me/gandhiinc/blindeye/Resource.html#NONE">NONE</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../me/gandhiinc/blindeye/Resource.html#ORE">ORE</a></span></code>&nbsp;</td> </tr> </table> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="method.summary"> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>static <a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../me/gandhiinc/blindeye/Resource.html#valueOf-java.lang.String-">valueOf</a></span>(java.lang.String&nbsp;name)</code> <div class="block">Returns the enum constant of this type with the specified name.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>static <a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a>[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../me/gandhiinc/blindeye/Resource.html#values--">values</a></span>()</code> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Enum"> </a> <h3>Methods inherited from class&nbsp;java.lang.Enum</h3> <code>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>getClass, notify, notifyAll, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="enum.constant.detail"> </a> <h3>Enum Constant Detail</h3> <a name="NONE"> </a> <ul class="blockList"> <li class="blockList"> <h4>NONE</h4> <pre>public static final&nbsp;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a> NONE</pre> </li> </ul> <a name="ORE"> </a> <ul class="blockList"> <li class="blockList"> <h4>ORE</h4> <pre>public static final&nbsp;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a> ORE</pre> </li> </ul> <a name="ENERGY"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ENERGY</h4> <pre>public static final&nbsp;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a> ENERGY</pre> </li> </ul> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="method.detail"> </a> <h3>Method Detail</h3> <a name="values </a> <ul class="blockList"> <li class="blockList"> <h4>values</h4> <pre>public static&nbsp;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a>[]&nbsp;values()</pre> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows: <pre> for (Resource c : Resource.values()) &nbsp; System.out.println(c); </pre></div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>an array containing the constants of this enum type, in the order they are declared</dd> </dl> </li> </ul> <a name="valueOf-java.lang.String-"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>valueOf</h4> <pre>public static&nbsp;<a href="../../../me/gandhiinc/blindeye/Resource.html" title="enum in me.gandhiinc.blindeye">Resource</a>&nbsp;valueOf(java.lang.String&nbsp;name)</pre> <div class="block">Returns the enum constant of this type with the specified name. The string must match <i>exactly</i> an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the enum constant to be returned.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the enum constant with the specified name</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.<API key></code> - if this enum type has no constant with the specified name</dd> <dd><code>java.lang.<API key></code> - if the argument is null</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../me/gandhiinc/blindeye/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/Resource.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../me/gandhiinc/blindeye/Pub.html" title="class in me.gandhiinc.blindeye"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../me/gandhiinc/blindeye/Roboticon.html" title="class in me.gandhiinc.blindeye"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?me/gandhiinc/blindeye/Resource.html" target="_top">Frames</a></li> <li><a href="Resource.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#enum.constant.summary">Enum Constants</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#enum.constant.detail">Enum Constants</a>&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> </a></div> </body> </html>
package com.am.docker.study.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class RestDockerExample { @RequestMapping("/") public String home() { return "Hello Docker World"; } }
package com.elmakers.mine.bukkit.api.event; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; import com.elmakers.mine.bukkit.api.magic.Mage; import com.elmakers.mine.bukkit.api.spell.Spell; /** * A custom event that the Magic plugin will fire any time a * Mage casts a Spell. */ public class PreCastEvent extends Event implements Cancellable { private boolean cancelled; private final Mage mage; private final Spell spell; private static final HandlerList handlers = new HandlerList(); public PreCastEvent(Mage mage, Spell spell) { this.mage = mage; this.spell = spell; } @Override public HandlerList getHandlers() { return handlers; } public static HandlerList getHandlerList() { return handlers; } @Override public boolean isCancelled() { return cancelled; } @Override public void setCancelled(boolean cancelled) { this.cancelled = cancelled; } public Mage getMage() { return mage; } public Spell getSpell() { return spell; } }
using System; using MooGet; using NUnit.Framework; namespace MooGet.Specs { [TestFixture] public class SearchSpec : MooGetSpec { /* [TestFixture] public class API : SearchSpec { [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } [Test][Ignore] public void <API key>() { } } */ [TestFixture] public class Integration : SearchSpec { [Test] public void can_search_a_source() { var result = moo("search nhibernate --source {0}", PathToContent("example-feed.xml")); result.ShouldContain("FluentNHibernate"); result.ShouldContain("NHibernate.Core"); result.ShouldContain("NHibernate.Linq"); result.ShouldNotContain("NUnit"); } [Test] public void <API key>() { var result = moo("search castle --source {0}", PathToContent("example-feed.xml")); result.ShouldContain("Castle.Core (2.5.1, 1.2.0, 1.1.0)"); } } } }
using Physics2DDotNet; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Interfaces { public interface <API key> { IEnumerable<IConnectionSlot> Slots { get; } ALVector2D Position { get; } } }
#include <iostream> #include <string> // time complexity O(1) - constant // space complexity O(1) - constant bool is_unique (std::string s) { if (s.length() > 128) return false; bool char_list[128] = {0}; for (int i = 0; i < s.length(); i++) { if (char_list[s[i]]) return false; char_list[s[i]] = true; } return true; } int main () { std::cout << is_unique("ABCDEFGA") << std::endl; }
module PrettyShortUrls module Routes def pretty_short_urls connect ":name", :controller => "<API key>", :action => "redirect", :conditions => { :method => :get } end end end
package com.naosim.rtm.lib; import java.math.BigInteger; import java.security.MessageDigest; public class MD5 { public static String md5(String str) { try { byte[] str_bytes = str.getBytes("UTF-8"); MessageDigest md = MessageDigest.getInstance("MD5"); byte[] md5_bytes = md.digest(str_bytes); BigInteger big_int = new BigInteger(1, md5_bytes); return big_int.toString(16); }catch(Exception e){ throw new RuntimeException(e); } } }
package main import ( "bufio" "fmt" "os" "math/rand" "strconv" ) func computer(inputChannel chan int, resultChannel chan string){ for human_choice := range inputChannel { computer_choice := rand.Intn(3) evaluation(computer_choice, human_choice, resultChannel) } } func evaluation(computer_choice int, human_choice int, resultChannel chan string){ switch human_choice { case 0: switch computer_choice { case 0: resultChannel <- "draw" case 1: resultChannel <- "loss" case 2: resultChannel <- "win" } case 1: switch computer_choice { case 0: resultChannel <- "win" case 1: resultChannel <- "draw" case 2: resultChannel <- "loss" } case 2: switch computer_choice { case 0: resultChannel <- "loss" case 1: resultChannel <- "win" case 2: resultChannel <- "draw" } default: resultChannel <- "Only numbers between 0 and 2 are valid!" } close(resultChannel) } func main() { computerChannel := make(chan int) resultChannel := make(chan string) go computer(computerChannel, resultChannel) reader := bufio.NewReader(os.Stdin) fmt.Println("Choose: \n 0 = rock\n 1 = paper\n 2 = scissors") text, _ := reader.ReadString('\n') choice, _ := strconv.Atoi(text) computerChannel <- choice close(computerChannel) for message := range resultChannel { fmt.Println("Result:", message) } }
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.strings.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Fixed string * Sinks: w32_execv * BadSink : execute command with execv * Flow Variant: 34 Data flow: use of a union containing two methods of accessing the same data (within the same function) * * */ #include "std_testcase.h" #include <wchar.h> #ifdef _WIN32 #define COMMAND_INT_PATH "%WINDIR%\\system32\\cmd.exe" #define COMMAND_INT "cmd.exe" #define COMMAND_ARG1 "/c" #define COMMAND_ARG2 "dir" #define COMMAND_ARG3 data #else /* NOT _WIN32 */ #include <unistd.h> #define COMMAND_INT_PATH "/bin/sh" #define COMMAND_INT "sh" #define COMMAND_ARG1 "ls" #define COMMAND_ARG2 "-la" #define COMMAND_ARG3 data #endif #ifdef _WIN32 #include <winsock2.h> #include <windows.h> #include <direct.h> #pragma comment(lib, "ws2_32") /* include ws2_32.lib when linking */ #define CLOSE_SOCKET closesocket #else /* NOT _WIN32 */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define INVALID_SOCKET -1 #define SOCKET_ERROR -1 #define CLOSE_SOCKET close #define SOCKET int #endif #define TCP_PORT 27015 #define IP_ADDRESS "127.0.0.1" #include <process.h> #define EXECV _execv typedef union { char * unionFirst; char * unionSecond; } <API key>; #ifndef OMITBAD void <API key>() { char * data; <API key> myUnion; char dataBuffer[100] = ""; data = dataBuffer; { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; char *replace; SOCKET connectSocket = INVALID_SOCKET; size_t dataLen = strlen(data); do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ /* Abort on error or the connection was closed */ recvResult = recv(connectSocket, (char *)(data + dataLen), sizeof(char) * (100 - dataLen - 1), 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* Append null terminator */ data[dataLen + recvResult / sizeof(char)] = '\0'; /* Eliminate CRLF */ replace = strchr(data, '\r'); if (replace) { *replace = '\0'; } replace = strchr(data, '\n'); if (replace) { *replace = '\0'; } } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } myUnion.unionFirst = data; { char * data = myUnion.unionSecond; { char *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* execv - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECV(COMMAND_INT_PATH, args); } } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B() uses the GoodSource with the BadSink */ static void goodG2B() { char * data; <API key> myUnion; char dataBuffer[100] = ""; data = dataBuffer; /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); myUnion.unionFirst = data; { char * data = myUnion.unionSecond; { char *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* execv - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECV(COMMAND_INT_PATH, args); } } } void <API key>() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); <API key>(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); <API key>(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
import random import numpy as np import math from time import perf_counter import os import sys from collections import deque import gym import cntk from cntk.layers import Convolution, MaxPooling, Dense from cntk.models import Sequential, LayerStack from cntk.initializer import glorot_normal env = gym.make("Breakout-v0") NUM_ACTIONS = env.action_space.n SCREEN_H_ORIG, SCREEN_W_ORIG, NUM_COLOUR_CHANNELS = env.observation_space.shape def preprocess_image(screen_image): # crop the top and bottom screen_image = screen_image[35:195] # down sample by a factor of 2 screen_image = screen_image[::2, ::2] # convert to grey scale grey_image = np.zeros(screen_image.shape[0:2]) for i in range(len(screen_image)): for j in range(len(screen_image[i])): grey_image[i][j] = np.mean(screen_image[i][j]) return np.array([grey_image.astype(np.float)]) CHANNELS, IMAGE_H, IMAGE_W = preprocess_image(np.zeros((SCREEN_H_ORIG, SCREEN_W_ORIG))).shape STATE_DIMS = (1, IMAGE_H, IMAGE_W) class Brain: BATCH_SIZE = 5 def __init__(self): observation = cntk.ops.input_variable(STATE_DIMS, np.float32, name="s") q_target = cntk.ops.input_variable(NUM_ACTIONS, np.float32, name="q") # Define the structure of the neural network self.model = self.<API key>(observation, NUM_ACTIONS) self.learning_rate = cntk.learner.<API key>(0.0001, cntk.UnitType.sample) self.momentum = cntk.learner.<API key>(0.99) self.loss = cntk.ops.reduce_mean(cntk.ops.square(self.model - q_target), axis=0) mean_error = cntk.ops.reduce_mean(cntk.ops.square(self.model - q_target), axis=0) learner = cntk.adam_sgd(self.model.parameters, self.learning_rate, momentum=self.momentum) self.trainer = cntk.Trainer(self.model, self.loss, mean_error, learner) def train(self, x, y): data = dict(zip(self.loss.arguments, [y, x])) self.trainer.train_minibatch(data, outputs=[self.loss.output]) def predict(self, s): return self.model.eval([s]) @staticmethod def <API key>(input_vars, out_dims, num_hidden_layers): num_hidden_neurons = 128 hidden_layer = lambda: Dense(num_hidden_neurons, activation=cntk.ops.relu) output_layer = Dense(out_dims, activation=None) model = Sequential([LayerStack(num_hidden_layers, hidden_layer), output_layer])(input_vars) return model @staticmethod def <API key>(input_vars, out_dims): <API key> = Convolution((5, 5), 32, strides=1, activation=cntk.ops.relu, pad=True, init=glorot_normal(), init_bias=0.1) pooling_layer_1 = MaxPooling((2, 2), strides=(2, 2), pad=True) <API key> = Convolution((5, 5), 64, strides=1, activation=cntk.ops.relu, pad=True, init=glorot_normal(), init_bias=0.1) pooling_layer_2 = MaxPooling((2, 2), strides=(2, 2), pad=True) <API key> = Convolution((5, 5), 128, strides=1, activation=cntk.ops.relu, pad=True, init=glorot_normal(), init_bias=0.1) pooling_layer_3 = MaxPooling((2, 2), strides=(2, 2), pad=True) <API key> = Dense(1024, activation=cntk.ops.relu, init=glorot_normal(), init_bias=0.1) output_layer = Dense(out_dims, activation=None, init=glorot_normal(), init_bias=0.1) model = Sequential([<API key>, pooling_layer_1, <API key>, pooling_layer_2, #<API key>, pooling_layer_3, <API key>, output_layer])(input_vars) return model class Memory: def __init__(self, capacity): self.examplers = deque(maxlen=capacity) self.capacity = capacity def add(self, sample): self.examplers.append(sample) def get_random_samples(self, num_samples): num_samples = min(num_samples, len(self.examplers)) return random.sample(tuple(self.examplers), num_samples) def get_stack(self, start_index, stack_size): end_index = len(self.examplers) - stack_size if end_index < 0: stack = list(self.examplers) + [self.examplers[-1] for _ in range(-end_index)] else: start_index = min(start_index, end_index) stack = [self.examplers[i + start_index] for i in range(stack_size)] return np.stack(stack, axis=-1) def get_random_stacks(self, num_samples, stack_size): start_indices = random.sample(range(len(self.examplers)), num_samples) return [self.get_stack(start_index, stack_size) for start_index in start_indices] def get_latest_stack(self, stack_size): return self.get_stack(len(self.examplers), stack_size) class Agent: MEMORY_CAPACITY = 100000 DISCOUNT_FACTOR = 0.99 <API key> = 1.0 <API key> = 0.01 DECAY_RATE = 0.0001 def __init__(self): self.explore_rate = self.<API key> self.brain = Brain() self.memory = Memory(self.MEMORY_CAPACITY) self.steps = 0 def act(self, s): if random.random() < self.explore_rate: return random.randint(0, NUM_ACTIONS - 1) else: return np.argmax(self.brain.predict(s)) def observe(self, sample): self.steps += 1 self.memory.add(sample) # Reduces exploration rate linearly self.explore_rate = self.<API key> + (self.<API key> - self.<API key>) * math.exp(-self.DECAY_RATE * self.steps) def replay(self): batch = self.memory.get_random_samples(self.brain.BATCH_SIZE) batch_len = len(batch) states = np.array([sample[0] for sample in batch], dtype=np.float32) no_state = np.zeros(STATE_DIMS) resultant_states = np.array([(no_state if sample[3] is None else sample[3]) for sample in batch], dtype=np.float32) q_values_batch = self.brain.predict(states) <API key> = self.brain.predict(resultant_states) x = np.zeros((batch_len, ) + STATE_DIMS).astype(np.float32) y = np.zeros((batch_len, NUM_ACTIONS)).astype(np.float32) for i in range(batch_len): state, action, reward, resultant_state = batch[i] q_values = q_values_batch[0][i] if resultant_state is None: q_values[action] = reward else: q_values[action] = reward + self.DISCOUNT_FACTOR * np.amax(<API key>[0][i]) x[i] = state y[i] = q_values self.brain.train(x, y) @classmethod def action_from_output(cls, output_array): return np.argmax(output_array) def run_simulation(agent, solved_reward_level): state = env.reset() state = preprocess_image(state) total_rewards = 0 time_step = 0 while True: #env.render() time_step += 1 action = agent.act(state.astype(np.float32)) resultant_state, reward, done, info = env.step(action) resultant_state = preprocess_image(resultant_state) if done: # terminal state resultant_state = None agent.observe((state, action, reward, resultant_state)) agent.replay() state = resultant_state total_rewards += reward if total_rewards > solved_reward_level or done: return total_rewards, time_step def test(model_path, num_episodes=10): root = cntk.load_model(model_path) observation = env.reset() # reset environment for new episode done = False for episode in range(num_episodes): while not done: try: env.render() except Exception: # this might fail on a VM without OpenGL pass observation = preprocess_image(observation) action = np.argmax(root.eval(observation.astype(np.float32))) observation, reward, done, info = env.step(action) if done: observation = env.reset() # reset environment for new episode if __name__ == "__main__": # Ensure we always get the same amount of randomness np.random.seed(0) GYM_ENABLE_UPLOAD = False GYM_VIDEO_PATH = os.path.join(os.getcwd(), "videos", "<API key>") GYM_<TwitterConsumerkey>" MAX_NUM_EPISODES = 1000 STREAK_TO_END = 120 DONE_REWARD_LEVEL = 50 TRAINED_MODEL_DIR = os.path.join(os.getcwd(), "trained_models") if not os.path.exists(TRAINED_MODEL_DIR): os.makedirs(TRAINED_MODEL_DIR) TRAINED_MODEL_NAME = "atari_breakout_dpn.mod" <API key> = 1 EPISODES_PER_SAVE = 5 if len(sys.argv) < 2 or sys.argv[1] != "test_only": if GYM_ENABLE_UPLOAD: env.monitor.start(GYM_VIDEO_PATH, force=True) agent = Agent() episode_number = 0 num_streaks = 0 reward_sum = 0 time_step_sum = 0 solved_episode = -1 training_start_time = perf_counter() while episode_number < MAX_NUM_EPISODES: # Run the simulation and train the agent reward, time_step = run_simulation(agent, DONE_REWARD_LEVEL*2) reward_sum += reward time_step_sum += time_step episode_number += 1 if episode_number % <API key> == 0: t = perf_counter() - training_start_time print("(%d s) Episode: %d, Average reward = %.3f, Average number of time steps = %.3f." % (t, episode_number, reward_sum / <API key>, time_step_sum/<API key>)) reward_sum = 0 time_step_sum = 0 # It is considered solved when the sum of reward is over 200 if reward > DONE_REWARD_LEVEL: num_streaks += 1 solved_episode = episode_number else: num_streaks = 0 solved_episode = -1 # It's considered done when it's solved over 120 times consecutively if num_streaks > STREAK_TO_END: print("Task solved in %d episodes and repeated %d times." % (episode_number, num_streaks)) break if episode_number % EPISODES_PER_SAVE == 0: agent.brain.model.save_model(os.path.join(TRAINED_MODEL_DIR, TRAINED_MODEL_NAME), False) agent.brain.model.save_model(os.path.join(TRAINED_MODEL_DIR, TRAINED_MODEL_NAME), False) if GYM_ENABLE_UPLOAD: env.monitor.close() gym.upload(GYM_VIDEO_PATH, <TwitterConsumerkey>) # testing the model test(os.path.join(TRAINED_MODEL_DIR, TRAINED_MODEL_NAME), num_episodes=10)
package reborncore.client.gui.slots; import net.minecraft.inventory.Inventory; import net.minecraft.item.ItemStack; public class SlotFake extends BaseSlot { public boolean mCanInsertItem; public boolean mCanStackItem; public int mMaxStacksize = 127; public SlotFake(Inventory itemHandler, int par2, int par3, int par4, boolean aCanInsertItem, boolean aCanStackItem, int aMaxStacksize) { super(itemHandler, par2, par3, par4); this.mCanInsertItem = aCanInsertItem; this.mCanStackItem = aCanStackItem; this.mMaxStacksize = aMaxStacksize; } @Override public boolean canInsert(ItemStack par1ItemStack) { return this.mCanInsertItem; } @Override public int getMaxStackAmount() { return this.mMaxStacksize; } @Override public boolean hasStack() { return false; } @Override public ItemStack takeStack(int par1) { return !this.mCanStackItem ? ItemStack.EMPTY : super.takeStack(par1); } @Override public boolean canWorldBlockRemove() { return false; } }
#endregion using System.Reflection; namespace Pomona.Routing { public class <API key> : <API key> { public bool PropertyIsMapped(PropertyInfo propertyInfo) { return true; } } }
#include "uritests.h" #include "../guiutil.h" #include "../walletmodel.h" #include <QUrl> void URITests::uriTests() { SendCoinsRecipient rv; QUrl uri; uri.setUrl(QString("AnonymousCoin:<API key>?req-dontexist=")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); uri.setUrl(QString("AnonymousCoin:<API key>?dontexist=")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.label == QString()); QVERIFY(rv.amount == 0); uri.setUrl(QString("AnonymousCoin:<API key>?label=Wikipedia Example Address")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.label == QString("Wikipedia Example Address")); QVERIFY(rv.amount == 0); uri.setUrl(QString("AnonymousCoin:<API key>?amount=0.001")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.label == QString()); QVERIFY(rv.amount == 100000); uri.setUrl(QString("AnonymousCoin:<API key>?amount=1.001")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.label == QString()); QVERIFY(rv.amount == 100100000); uri.setUrl(QString("AnonymousCoin:<API key>?amount=100&label=Wikipedia Example")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.amount == 10000000000LL); QVERIFY(rv.label == QString("Wikipedia Example")); uri.setUrl(QString("AnonymousCoin:<API key>?message=Wikipedia Example Address")); QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.label == QString()); QVERIFY(GUIUtil::parseBitcoinURI("AnonymousCoin://<API key>?message=Wikipedia Example Address", &rv)); QVERIFY(rv.address == QString("<API key>")); QVERIFY(rv.label == QString()); // We currently don't implement the message parameter (ok, yea, we break spec...) uri.setUrl(QString("AnonymousCoin:<API key>?req-message=Wikipedia Example Address")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); uri.setUrl(QString("AnonymousCoin:<API key>?amount=1,000&label=Wikipedia Example")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); uri.setUrl(QString("AnonymousCoin:<API key>?amount=1,000.0&label=Wikipedia Example")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); }