//- UNCLASSIFIED

extends base
append base_help
	block brief_help
	:markdown
		# brief
		Provides a project briefing interface with options:

			- project = name of project (!{project})
			- proj = project information (!{JSON.stringify(proj)})

append base_parms
	- tech = "reveal"
	block brief_parms
		- project = flags.project || table

append base_body
	- art = `/artifacts/${project}/`

	//-
	section#title
		p.lg= project
		p.lg= proj.Title
		a(href=run) Notebook
		|  | 
		a(href=rtp) RTP
		|  | 
		a(href=jira)= "JIRA-"+proj.JIRA
		|  | 
		a(href=ras)= "RAS-"+proj.RAS
		|  | 
		a(href="/milestones.view?name=#{project}")= "Milestones"
		p.al!= `${host}:/${project}.brief`
		p.al!= proj.Lead
		p.al!= now

	//-
	each deck, set in files.deck
		section#decks
			h1.al #{set}
			each file in deck
				section
					h2.al #{file.classif} #{file.num} #{file.title}
					img(src=file.path,width="50%",height="50%")

	//-
	section#embeds
		h1 html live briefs
		each file in files.live
			section
				h2 #{file.classif} #{file.title}
				iframe(src=file.path, width="50%", height="50%")

	//-
	section#artifacts
		h2 artifacts
		// p!= gridify( index( files.artifact, "(a='link')=>!test" ), true )

	//-
	case project
		when "gtd"
		when "agtd"
			section
				div.al
					:markdown
						Welcome to the AGTD Harvestor [1] test / demostration portals:
							[System Requirements and Demos Briefing](/artifacts/agtd/AGTD_System_Requirements_WWW.ppsx)
							[This Test Portal](/brief.view?nb=demo)
							[Repo Artifact](#{Lookups.repos.agtd}/raw/master/AGTD_System_Requirements_WWW.ppsx)

						Before accessing AGTD repo artificats, you must first 
						<a href="https://github.com/phortitude/">signin to the AGTD repo</a>.
						If you do not yet have an AGTD repo signin, please request an account from one of our 
						<a href="mailto:#{Lookups.pocs.agtd}&subject=please add me to AGTD repo">
							project scientist
						</a>.

						When running your tests from a MSPPT portal, zoom into your test inset (e.g. the Word Cloud), 
						then click a Demo link of interest.  The "Word Cloud 26 Demo", for example, uses 26 scrapped documents to 
						demonstrate how we expect the item harvestor to implement its requirement to validate its scrapped results.  
						Each test will download a small javascript to your browser. 
						To customize your tests, you may click the Notebook link beside any Demo link.  

						The AGTD Harvestor is also evaluating your SBU as a potential test portal [1]:
							<a href="file:///#{Lookups.paths.sbu}\AGTD\System Requirements Briefing.ppsx">
								System Requirements and Demos
							</a> [2] or
							<a href="/brief.view?nb=demo">
								This Testing Portal
							</a> [3].

						[1] As the prototype AGTD Harvestor is NON OPERATIONAL, you may need to contact our 
						<a href="mailto:#{Lookups.pocs.agtd}&subject=please make the prototype AGTD Harvestor available for testing">
							project scientists
						</a> to request that the Harvestor be enabled for your tests.

						[2] Due to SBU issues, this interface is available only from your IE browser.  Links within this briefing
						will prompt for your PIN (often hidden behind the main window).  Please submit your remedy tickets to your Enterprise Service Center to 
						correct these problems.

						[3] Due to SBU service issues, this interface is available only from your Chrome browser. Please submit your remedy tickets to your Enterprise Service Center to 
						correct these problems.

						[4] If you have been officially asked to serve as an AGTD tester, please complete your Word Cloud test described above,
						then snapshot your screen and submit this snapshot to our 
						<a href="mailto:#{Lookups.pocs.agtd}&subject=please evaluate my AGTD Harvestor test results">
							project scientist
						</a>.
			section
				h4 Demos
				br
				a(href="/demo.blog?key=Description&name=google%20search") Title Mutations
				|  | 
				a(href="/demo.view?name=Google%20Search") Notebook
				br
				a(href="/conf.blog?key=Description&name=family&subs=true") Dead Links
				|  | 
				a(href="/conf.view?name=family") Notebook
				br
				a(href="/proxies.html") Google Backdoor Traps
				|  | 
				a(href="/proxies.view") Notebook
				br
				a(href="/demo.blog?key=Description&name=moderate%20wordcloud&subs=false") Scrape Validations
				|  | 
				a(href="/demo.view?name=moderate%20wordcloud") Notebook
		
		when "browse"
			section
				iframe(src="/fan.view?src=info&w=4000&h=800",width=2000,height=800)

		when "thresher"
		when "talenthresher"
		when "airspace"
			section#intro
				p.lg AirSpace
				p.al https:/totem.west.ile.nga.ic.gov/briefs?_project=airspace
				p.al brian.d.james@nga.mil

			section#results
				each file in files
					section
						if file.type == "jpg"
							h2= file.title
							img(src=file.path)
						else
							a(href=file.path)= file.title

		when "cluster"
			section#intro
				p.al.
					CLUSTER users may, for example, compare their
				
				a(href="/regress.run") ROC metrics

				p.al.
					results from feature vectors of different lengths, to decide how large their vectors must be to 
					catch their competitors ROC.  Here, 
					$$ t_{catch} = t_{lead} \quad { \frac {1 + \gamma} { \gamma } } $$
					provides the catch up time given your competitors lead time and the gain factor 
					$$ \gamma = \frac { V_{faster} - V_{slower} } {V_{slower}} = \frac { HitRate_{larger} - HitRate_{smaller} } { HitRate_{smaller} } $$
					between your feature vectors. For example, 
					when operating at a 10 % false alarm level, it would take $ t_{catch} = 85 years $ to catch up 
					to a competitor with a $ t_{lead} = 15 year $ lead, since
					$ \gamma = \frac {85 \text{%} - 70 \text{%}} {70 \text{%}} $ [report].
					When operating at a 20 % level, it takes 178 years closure time, since 
					$ \gamma = \frac {95 \text{%} - 87 \text{%}} {87 \text{%}} $ [report]. 

		when "totem"
			section#intro

				p.lg TOTEM
				p.al https:/totem.west.ile.nga.ic.gov/briefs?_project=totem
				p.al brian.d.james@nga.mil

			section#results
				h1.B.al Your TOTEM interface can be as easy as ...
				h2.R.al And this ...
				h3.G.al Finally ...

				//p test
				iframe(src="/nets.run")
				//img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

			section#progress
				h1 Recent Progress

				p.al.fragment.grow Transitioned GeoHub -> AWS -> ILE
				p.al.fragment.grow Briefed to STL GIAT
				p.al.fragment.grow Integrated Digital Globe Source
				p.al.fragment.grow Automated ROC with Different Forecasting Models
				p.al.fragment.grow Completed Shallow + Deep Learning Experiments
				p.al.fragment.grow Added 0,45,90 Degree Training
				p.al.fragment.grow Updated Tutorial 
				p.al.fragment.grow Added Caffe Placeholder
				p.al.fragment.grow Improved Web Service

			section#home

				section#background
					h1.al Totem
						a(href="#back") Background 
						|  | 
						a(href="#ideas") R&D
						|  | 
						a(href="#expt") Experiments
						|  | 
						a(href="#service") Service
						|  | 
						a(href="#arch") Architecture
					h2.al Background 
						a World Views
						|  || 
						a Players
						|  || 
						a Framework
						|  || 
						a Derisking Acquisition

					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

				section
					h1.al Background 
						a World Views
						|  || 
						a Players
						|  || 
						a Framework
						|  || 
						a Derisking Acquisition
					h2.al Which of your children are redundant ?
					img(src="#{art}/daffy-duck.jpg",width="50%",height="50%")

				section
					h1.al Background 
						a World Views
						|  || 
						a Players
						|  || 
						a Framework
						|  || 
						a Derisking Acquisition
					h2.al SWAG = Framework
					img(src="#{art}/porky-pig.jpg",width="50%",height="50%")

				section
					h1.al Background 
						a World Views
						|  || 
						a Players
						|  || 
						a Framework
						|  || 
						a Derisking Acquisition
					h2.al The Supply Chain
					img(src="#{art}/tasmanian-devil.jpg",width="50%",height="50%")

			section#service
				section
					h1.al Service
					h2.al Use Cases

					table
						tr
							th: p Doc
							th: p Generic
							th: p Specific
						tr
							td: a(href="/api.view") API
							td: a(href="/engines.view") Engines
							td: a(href="/swag.view") Dashboard
						tr
							td: a(href="/tutorial.view") Tutorial
							td: a(href="/workflow.view") Workflows
							td: a(href="/files.view") Positives 
						tr
							td: a(href="/skinguide.view") Skin Guide
							td: a(href="/issues.view") Issues	
							td: a(href="/files.view") Negatives
						tr
							td: a(href="/project.view?goto=ASP Reqts") Requirements
							td: a(href="/home.view") Home
							td: a(href="/project.view?goto=Roadmap") Roadmap

				//
					section#cm
						h2 Content Management - Wiki on Steriods

						table
							tr
								td: a(href="#cm.briefs") Briefings
								td: a(href="#cm.blogs") Blogs
							tr
								td: a(href="#cm.finders") Finders
								td: a(href="#cm.nav") Navigators
							tr
								td: a(href="#cm.engines") Engines
								td: a(href="#cm.workflows") Workflows
							tr
								td: p.lg Pubs
									a(href="#cm.inline") Inlined
									a(href="#cm.papers") Sourced
								td: a(href="#cm.dash") Dashboards

							tr
								td: a(href="#cm.immersive") Immersive
								td: a(href="#cm.analytics") Analytics

					section#cm.briefs
						h2 Briefing Skins
						pre
							code.mysql.
								extends brief
								append briefparms
									- Classif = "(U) Unclassified"
								append briefarea

									section#cm
										h4 Content Mgt

											section#cm.engines
												h4 Engines: Interface or End Points
												iframe(src="/exsite.view?option=engines&view=Kiss")

										etc
										etc

					section#cm.nav
						iframe(src="/exsite.view?option=navigators&view=Nada&holdoff=Navigation Skins")

					section#cm.engines
						iframe(src="/exsite.view?option=engines&view=Kiss&holdoff=Engine as Skin or End Point")

					section#cm.workflows
						iframe(src="/exsite.view?option=workflows&view=Kiss&holdoff=Engines in Stateless-Stateful Workflows")

					section#cm.dash
						iframe(src="/swag.view?holdoff=SWAG Dashboard")

					section#cm.inline
						h2 Mathjax Skins
						table
							tr
								pre
									code.html.
										p.al The Lorenz Equations
										p.
											\[
											\begin{align}
											\dot{x} & = \sigma(y-x) \\
											\dot{y} & = \rho x - y - xz \\
											\dot{z} & = -\beta z + xy
											\end{align}
											\]
										br
										p.al.lg.R Impressive 'eh
										p.
											\[
											J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}
											\]

							tr
								p.al The Lorenz Equations
								p.
									\[
									\begin{align}
									\dot{x} & = \sigma(y-x) \\
									\dot{y} & = \rho x - y - xz \\
									\dot{z} & = -\beta z + xy
									\end{align}
									\]
								br
								p.al.lg.R Impressive 'eh
								p.
									\[
									J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}
									\]

					section#cm.immersive
						img(src="/shares.construction.jpg",width="20px",height="20px")
						iframe(src="/exsite.view?option=immersion&view=Nada&holdoff=Gaming Skins")

				section#cm.blogs
					h1.al Service
					h2.al Skins are Printable
					img(src="#{art}/tasmanian-devil.jpg",width="25%",height="25%")

				section#cm.papers
					h1.al Service
					h2.al Tech Pub Skins
					img(src="#{art}/tasmanian-devil.jpg",width="25%",height="25%")

				section#cm.finders
					h1.al Service
					h2.al Data Finding Skins
					img(src="#{art}/tasmanian-devil.jpg",width="25%",height="25%")

				section#cm.analytics
					h1.al Service
					h2.al Data Analytic Skins
					img(src="#{art}/tasmanian-devil.jpg",width="25%",height="25%")

			section#arch
				section
					h2 Architecture
					h1 System
					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

				section
					h2 Architecture
					h1 Supply Chain
					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

				section
					h2 Architecture
					h1 Cloud Compute
					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

				section 
					h2 Architecture
					h1 Interface = Restful CRUD+E
					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

				section 
					h2 Architecture
					h1 Programmable State Machine
					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

				section 
					h2 Architecture
					h1 QoS Model = Google Business Model
					img(src="#{art}/bugs-bunny.jpg",width="50%",height="50%")

			section#roadmap
				h1 Roadmap
				//iframe(src="/project.view?goto=Roadmap&w=800&h=400")

		when "brief"
			section
				h3
				a(href="/brief.view?_project=totem") Totem
				|  | 
				a(href="/brief.view?_project=airspace") Airspace
				|  | 
				a(href="/brief.view?_project=regress") Regress
				|  | 
				a(href="/brief.view?_project=genpr") GenProc
				|  | 
				a(href="/brief.view?_project=swag") SWAG
				|  | 
				a(href="/brief.view?_project=itar") ITAR
				|  | 
				a(href="/brief.view?_project=whaci") Nartocracy
				|  | 
				a(href="/brief.view?_project=fats") FATs

		when "unfunded"
		when "ops"
		when "ideas"
			section#ideas
				h3 R&D
				h2 Unfunded Research Opportunities (Acquisition Vehicle Outreach)
				table
					tr
						td: p.fragment.highlight-red Low-Light Imaging 
						td: p.fragment.highlight-red HSI - CNN | Rotational Forest
					tr
						td: p.fragment.highlight-red ITAR Actor Patterns
						td: p.fragment.highlight-red Semantic - Full CNN | Cascade
					tr
						td: p.fragment.highlight-red GIS Integration
						td: p.fragment.highlight-red Assist Recall of Latent Brain Images
					tr
						td: p.fragment.highlight-red Engineered ROC / AI
						td: p.fragment.highlight-red Infer Backgroundfrom ROC Stats?
					tr
						td: p.fragment.highlight-red Break Captcha Codes 
						td: p.fragment.highlight-red Sync Neural Networks
					tr
						td: p.fragment.highlight-red Bi-Static Tripline
						td: p.fragment.highlight-red Solid Models
						

			section#bluf
				h3 BLUF

				p.lg.al Has NGA testified about making "___" part of its mission ?
				p.lg.al Development of "___" already internationally funded - so need we invest ?
				p.lg.al "___" market using same business model as .com bust
				p.lg.al Consider funding small (2 gov 1 vm) effort to evaluate "___"
						

		when "swag"
			section#intro

				p.lg SWAG
				p.al https:/totem.west.ile.nga.ic.gov/briefs?_project=swag
				p.al brian.d.james@nga.mil
				
			section#results
				h3 Experments
					a(href="#shallow") Shallow
					|  | 
					a(href="#deep") Deep

				each ex in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]
					section#expt
						h2= "Shallow Learning " + ex + ":17"
						iframe(src="/layout.view?area=shares&inline=expa#{ex}.jpg&w=800&h=400")

				each ex in [1,2,3,4]
					section#expt
						h2 Experiments
						h1= "< Deep Learning " + ex + ":4"
						iframe(src="/layout.view?area=shares&inline=expb#{ex}.jpg&w=800&h=400")

				each ex in [1,2,3]
					section#expt
						h2 Experiments
						h1= "< Deep Learning " + ex + ":4"
						iframe(src="/layout.view?area=shares&inline=expc#{ex}.jpg&w=800&h=400")
			section#tracking

		when "nartocracy"
		when "itar"
		when "fats"
			// reserved

	//-
		section#if
		h4= `${run} Interface`
		// iframe(src=run,width="90%",height="80%")

	//-
		- sets = { 1: [1,2,3], 2: [1,2,3,4,5,6,7,8,9], 3: [] }

		each mod in [1,2,3]
			each set in sets[mod]
				section#quiz(lesson="machines.#{mod}.#{set}", modules=3, pass=60)
					h2= `Test Your Knowledge (${mod}-${set})`
					#quiz.quiz
					button.quiz F1 Start|Submit|Next
					#results.quiz

//- UNCLASSIFIED
